Skip to content

Commit

Permalink
Merge pull request #8 from DefiantLabs/osmosis-old-gamm-pool-creation…
Browse files Browse the repository at this point in the history
…-types

Osmosis old gamm pool creation types
  • Loading branch information
pharr117 authored May 26, 2023
2 parents e23a386 + 6eda779 commit da4755d
Show file tree
Hide file tree
Showing 6 changed files with 2,339 additions and 123 deletions.
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

0 comments on commit da4755d

Please sign in to comment.