Skip to content

Commit

Permalink
remove not required wasmbindings
Browse files Browse the repository at this point in the history
  • Loading branch information
jelysn committed Dec 1, 2023
1 parent 91ff5cf commit 09ce2b4
Show file tree
Hide file tree
Showing 34 changed files with 12 additions and 1,237 deletions.
55 changes: 12 additions & 43 deletions wasmbindings/types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,26 +237,17 @@ type ElysMsg struct {
// accountedpool messages

// amm messages
AmmCreatePool *ammtypes.MsgCreatePool `json:"amm_create_pool,omitempty"`
AmmJoinPool *ammtypes.MsgJoinPool `json:"amm_join_pool,omitempty"`
AmmExitPool *ammtypes.MsgExitPool `json:"amm_exit_pool,omitempty"`
AmmSwapExactAmountIn *ammtypes.MsgSwapExactAmountIn `json:"amm_swap_exact_amount_in,omitempty"`
AmmSwapExactAmountOut *ammtypes.MsgSwapExactAmountOut `json:"amm_swap_exact_amount_out,omitempty"`
AmmSwapByDenom *ammtypes.MsgSwapByDenom `json:"amm_swap_by_denom,omitempty"`
AmmFeedMultipleExternalLiquidity *ammtypes.MsgFeedMultipleExternalLiquidity `json:"amm_feed_multiple_external_liquidity,omitempty"`
AmmUpdatePoolParams *ammtypes.MsgUpdatePoolParams `json:"amm_update_pool_params,omitempty"`
AmmCreatePool *ammtypes.MsgCreatePool `json:"amm_create_pool,omitempty"`
AmmJoinPool *ammtypes.MsgJoinPool `json:"amm_join_pool,omitempty"`
AmmExitPool *ammtypes.MsgExitPool `json:"amm_exit_pool,omitempty"`
AmmSwapExactAmountIn *ammtypes.MsgSwapExactAmountIn `json:"amm_swap_exact_amount_in,omitempty"`
AmmSwapExactAmountOut *ammtypes.MsgSwapExactAmountOut `json:"amm_swap_exact_amount_out,omitempty"`
AmmSwapByDenom *ammtypes.MsgSwapByDenom `json:"amm_swap_by_denom,omitempty"`

// assetprofile messages
AssetProfileCreateEntry *assetprofiletypes.MsgCreateEntry `json:"asset_profile_create_entry,omitempty"`
AssetProfileUpdateEntry *assetprofiletypes.MsgUpdateEntry `json:"asset_profile_update_entry,omitempty"`
AssetProfileDeleteEntry *assetprofiletypes.MsgDeleteEntry `json:"asset_profile_delete_entry,omitempty"`

// auth messages

// burner messages

// clock messages
ClockUpdateParams *clocktypes.MsgUpdateParams `json:"clock_update_params,omitempty"`

// commitment messages
CommitmentCommitLiquidTokens *commitmenttypes.MsgCommitLiquidTokens `json:"commitment_commit_liquid_tokens,omitempty"`
Expand All @@ -279,45 +270,23 @@ type ElysMsg struct {
IncentiveWithdrawValidatorCommission *incentivetypes.MsgWithdrawValidatorCommission `json:"incentive_withdraw_validator_commission"`

// leveragelp messages
LeveragelpOpen *leveragelptypes.MsgOpen `json:"leveragelp_open,omitempty"`
LeveragelpClose *leveragelptypes.MsgClose `json:"leveragelp_close,omitempty"`
LeveragelpUpdateParams *leveragelptypes.MsgUpdateParams `json:"leveragelp_update_params,omitempty"`
LeveragelpUpdatePools *leveragelptypes.MsgUpdatePools `json:"leveragelp_update_pools,omitempty"`
LeveragelpWhitelist *leveragelptypes.MsgWhitelist `json:"leveragelp_whitelist,omitempty"`
LeveragelpDewhitelist *leveragelptypes.MsgDewhitelist `json:"leveragelp_dewhitelist,omitempty"`
LeveragelpOpen *leveragelptypes.MsgOpen `json:"leveragelp_open,omitempty"`
LeveragelpClose *leveragelptypes.MsgClose `json:"leveragelp_close,omitempty"`

// margin messages
MarginOpen *margintypes.MsgOpen `json:"margin_open,omitempty"`
MarginClose *margintypes.MsgClose `json:"margin_close,omitempty"`
MarginBrokerOpen *margintypes.MsgBrokerOpen `json:"margin_broker_open,omitempty"`
MarginBrokerClose *margintypes.MsgBrokerClose `json:"margin_broker_close,omitempty"`
MarginUpdateParams *margintypes.MsgUpdateParams `json:"margin_update_params,omitempty"`
MarginUpdatePools *margintypes.MsgUpdatePools `json:"margin_update_pools,omitempty"`
MarginWhitelist *margintypes.MsgWhitelist `json:"margin_whitelist,omitempty"`
MarginDewhitelist *margintypes.MsgDewhitelist `json:"margin_dewhitelist,omitempty"`
MarginOpen *margintypes.MsgOpen `json:"margin_open,omitempty"`
MarginClose *margintypes.MsgClose `json:"margin_close,omitempty"`
MarginBrokerOpen *margintypes.MsgBrokerOpen `json:"margin_broker_open,omitempty"`
MarginBrokerClose *margintypes.MsgBrokerClose `json:"margin_broker_close,omitempty"`

// oracle messages
OracleFeedPrice *oracletypes.MsgFeedPrice `json:"oracle_feed_price,omitempty"`
OracleFeedMultiplePrices *oracletypes.MsgFeedMultiplePrices `json:"oracle_feed_multiple_price,omitempty"`
OracleRequestBandPrice *oracletypes.MsgRequestBandPrice `json:"oracle_request_band_price,omitempty"`
OracleSetPriceFeeder *oracletypes.MsgSetPriceFeeder `json:"oracle_set_price_feeder,omitempty"`
OracleDeletePriceFeeder *oracletypes.MsgDeletePriceFeeder `json:"oracle_delete_price_feeder,omitempty"`

// parameter messages

// stablestake messages
StakestakeBond *stablestaketypes.MsgBond `json:"stablestake_bond,omitempty"`
StakestakeUnbond *stablestaketypes.MsgUnbond `json:"stablestake_unbond,omitempty"`

// tokenomics messages
TokenomicsCreateAirdrop *tokenomicstypes.MsgCreateAirdrop `json:"tokenomics_create_airdrop,omitempty"`
TokenomicsUpdateAirdrop *tokenomicstypes.MsgUpdateAirdrop `json:"tokenomics_update_airdrop,omitempty"`
TokenomicsDeleteAirdrop *tokenomicstypes.MsgDeleteAirdrop `json:"tokenomics_delete_airdrop,omitempty"`
TokenomicsUpdateGenesisInflation *tokenomicstypes.MsgUpdateGenesisInflation `json:"tokenomics_update_genesis_inflation,omitempty"`
TokenomicsCreateTimeBasedInflation *tokenomicstypes.MsgCreateTimeBasedInflation `json:"tokenomics_create_time_based_inflation,omitempty"`
TokenomicsUpdateTimeBasedInflation *tokenomicstypes.MsgUpdateTimeBasedInflation `json:"tokenomics_update_time_based_inflation,omitempty"`
TokenomicsDeleteTimeBasedInflation *tokenomicstypes.MsgDeleteTimeBasedInflation `json:"tokenomics_delete_time_based_inflation,omitempty"`

// transferhook messages
}

Expand Down
4 changes: 0 additions & 4 deletions x/amm/client/wasm/messenger.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@ func (m *Messenger) HandleMsg(ctx sdk.Context, contractAddr sdk.AccAddress, cont
return m.msgSwapExactAmountOut(ctx, contractAddr, msg.AmmSwapExactAmountOut)
case msg.AmmSwapByDenom != nil:
return m.msgSwapByDenom(ctx, contractAddr, msg.AmmSwapByDenom)
case msg.AmmFeedMultipleExternalLiquidity != nil:
return m.msgFeedMultipleExternalLiquidity(ctx, contractAddr, msg.AmmFeedMultipleExternalLiquidity)
case msg.AmmUpdatePoolParams != nil:
return m.msgUpdatePoolParams(ctx, contractAddr, msg.AmmUpdatePoolParams)
default:
// This handler cannot handle the message
return nil, nil, wasmbindingstypes.ErrCannotHandleMsg
Expand Down
44 changes: 0 additions & 44 deletions x/amm/client/wasm/msg_feed_multiple_external_liquidity.go

This file was deleted.

44 changes: 0 additions & 44 deletions x/amm/client/wasm/msg_update_pool_params.go

This file was deleted.

6 changes: 0 additions & 6 deletions x/assetprofile/client/wasm/messenger.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,6 @@ func NewMessenger(keeper *keeper.Keeper) *Messenger {

func (m *Messenger) HandleMsg(ctx sdk.Context, contractAddr sdk.AccAddress, contractIBCPortID string, msg wasmbindingstypes.ElysMsg) ([]sdk.Event, [][]byte, error) {
switch {
case msg.AssetProfileCreateEntry != nil:
return m.msgCreateEntry(ctx, contractAddr, msg.AssetProfileCreateEntry)
case msg.AssetProfileUpdateEntry != nil:
return m.msgUpdateEntry(ctx, contractAddr, msg.AssetProfileUpdateEntry)
case msg.AssetProfileDeleteEntry != nil:
return m.msgDeleteEntry(ctx, contractAddr, msg.AssetProfileDeleteEntry)
default:
// This handler cannot handle the message
return nil, nil, wasmbindingstypes.ErrCannotHandleMsg
Expand Down
44 changes: 0 additions & 44 deletions x/assetprofile/client/wasm/msg_create_entry.go

This file was deleted.

44 changes: 0 additions & 44 deletions x/assetprofile/client/wasm/msg_delete_entry.go

This file was deleted.

44 changes: 0 additions & 44 deletions x/assetprofile/client/wasm/msg_update_entry.go

This file was deleted.

2 changes: 0 additions & 2 deletions x/clock/client/wasm/messenger.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ func NewMessenger(keeper *keeper.Keeper) *Messenger {

func (m *Messenger) HandleMsg(ctx sdk.Context, contractAddr sdk.AccAddress, contractIBCPortID string, msg wasmbindingstypes.ElysMsg) ([]sdk.Event, [][]byte, error) {
switch {
case msg.ClockUpdateParams != nil:
return m.msgUpdateParams(ctx, contractAddr, msg.ClockUpdateParams)
default:
// This handler cannot handle the message
return nil, nil, wasmbindingstypes.ErrCannotHandleMsg
Expand Down
44 changes: 0 additions & 44 deletions x/clock/client/wasm/msg_update_params.go

This file was deleted.

Loading

0 comments on commit 09ce2b4

Please sign in to comment.