Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(wasmbindings): remove gamm and twap bindings #3766

Merged
merged 2 commits into from
Dec 19, 2022

Conversation

p0mvn
Copy link
Member

@p0mvn p0mvn commented Dec 16, 2022

Closes: #XXX

What is the purpose of the change

Removing bindings gamm and twap. These have been causing additional overhead during refactors while not having production use cases.

In production, everyone should be using osmosis-std instead.

Bank and tokenfactory bindings have use cases outside of Osmosis so these are kept for now.

An announcement about removal is to be made post-merge.

Testing and Verifying

This change is a trivial rework / code cleanup without any test coverage.

Documentation and Release Note

  • Does this pull request introduce a new feature or user-facing behavior changes? yes
  • Is a relevant changelog entry added to the Unreleased section in CHANGELOG.md? yes
  • How is the feature or change documented? not applicable

@github-actions github-actions bot added the C:app-wiring Changes to the app folder label Dec 16, 2022
@p0mvn p0mvn added the V:state/breaking State machine breaking PR label Dec 16, 2022
@p0mvn p0mvn marked this pull request as ready for review December 16, 2022 19:42
@@ -369,7 +369,6 @@ func (appKeepers *AppKeepers) InitNormalKeepers(
// if we want to allow any custom callbacks
supportedFeatures := "iterator,staking,stargate,osmosis,cosmwasm_1_1"

wasmOpts = append(owasm.RegisterCustomPlugins(appKeepers.GAMMKeeper, appKeepers.BankKeeper, appKeepers.TwapKeeper, appKeepers.TokenFactoryKeeper), wasmOpts...)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bank definitely still needs to be there. TokenFactory is moving to general bindings as well, so I think we should keep that for now.

ACK for gamm + twap

@p0mvn p0mvn changed the title refactor(wasmbindings): remove bindings refactor(wasmbindings): remove gamm and twap bindings Dec 16, 2022
@p0mvn p0mvn force-pushed the roman/remove-bindings branch from fefdd83 to 2d8ff60 Compare December 16, 2022 21:27
@p0mvn p0mvn force-pushed the roman/remove-bindings branch from 2d8ff60 to 7096ecf Compare December 16, 2022 21:39
Copy link
Contributor

@nicolaslara nicolaslara left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@p0mvn
Copy link
Member Author

p0mvn commented Dec 19, 2022

Planning to merge. No one has gotten back to me about using these on Telegram or Discord

Copy link
Member

@czarcas7ic czarcas7ic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK with the understanding that integrators will be without wasmbindings for swap messages if we do not implement the swaprouter wasmbindings by the next release

@p0mvn
Copy link
Member Author

p0mvn commented Dec 19, 2022

The only concern raised by the integrators is having the following queries whitelisted:

setWhitelistedQuery("/osmosis.gamm.v1beta1.Query/EstimateSwapExactAmountIn", &gammtypes.QuerySwapExactAmountInResponse{})
setWhitelistedQuery("/osmosis.gamm.v1beta1.Query/EstimateSwapExactAmountOut", &gammtypes.QuerySwapExactAmountOutResponse{})

As a result, this should be good to be merged

@p0mvn p0mvn merged commit 39dc5ec into main Dec 19, 2022
@p0mvn p0mvn deleted the roman/remove-bindings branch December 19, 2022 19:00
@github-actions github-actions bot mentioned this pull request Feb 15, 2024
@github-actions github-actions bot mentioned this pull request May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C:app-wiring Changes to the app folder V:state/breaking State machine breaking PR
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants