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

Osmosis old gamm pool creation types #8

Merged
merged 2 commits into from
May 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions client/codec/osmosis/v15/x/gamm/types/codecs.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ func RegisterInterfaces(registry types.InterfaceRegistry) {
&MsgJoinSwapShareAmountOut{},
&MsgExitSwapShareAmountIn{},
&MsgExitSwapExternAmountOut{},
// Old Osmosis GAMM message types
&MsgCreatePool{},
&MsgCreateBalancerPool{},
)
msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc)
}
Expand Down
39 changes: 39 additions & 0 deletions client/codec/osmosis/v15/x/gamm/types/msgs.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ var (
_ sdk.Msg = (*MsgJoinSwapShareAmountOut)(nil)
_ sdk.Msg = (*MsgExitSwapShareAmountIn)(nil)
_ sdk.Msg = (*MsgExitSwapExternAmountOut)(nil)
//Old Osmosis GAMM message types
_ sdk.Msg = (*MsgCreatePool)(nil)
_ sdk.Msg = (*MsgCreateBalancerPool)(nil)
)

// WARNING: The functions in here are interface stub definitions, not usable in their current state
Expand Down Expand Up @@ -152,3 +155,39 @@ func (msg MsgExitSwapExternAmountOut) GetSignBytes() []byte {
func (msg MsgExitSwapExternAmountOut) GetSigners() []sdk.AccAddress {
return nil
}

// Old Message Types

// CreatePool
func (msg MsgCreatePool) Route() string { return "" }

func (msg MsgCreatePool) Type() string { return "" }

func (msg MsgCreatePool) ValidateBasic() error {
return nil
}

func (msg MsgCreatePool) GetSignBytes() []byte {
return nil
}

func (msg MsgCreatePool) GetSigners() []sdk.AccAddress {
return nil
}

// CreatePool
func (msg MsgCreateBalancerPool) Route() string { return "" }

func (msg MsgCreateBalancerPool) Type() string { return "" }

func (msg MsgCreateBalancerPool) ValidateBasic() error {
return nil
}

func (msg MsgCreateBalancerPool) GetSignBytes() []byte {
return nil
}

func (msg MsgCreateBalancerPool) GetSigners() []sdk.AccAddress {
return nil
}
Loading