e511051f3e
* Add message service with a create bond command * Add query proto file with bonds list query * Remove legacy amino coded registration * Add bond to auth module config * Use collections package for bond module state
19 lines
520 B
Go
19 lines
520 B
Go
package bond
|
|
|
|
import (
|
|
types "github.com/cosmos/cosmos-sdk/codec/types"
|
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
|
"github.com/cosmos/cosmos-sdk/types/msgservice"
|
|
)
|
|
|
|
// RegisterInterfaces registers the interfaces types with the interface registry.
|
|
func RegisterInterfaces(registry types.InterfaceRegistry) {
|
|
registry.RegisterImplementations((*sdk.Msg)(nil),
|
|
&MsgCreateBond{},
|
|
// &MsgRefillBond{},
|
|
// &MsgCancelBond{},
|
|
// &MsgWithdrawBond{},
|
|
)
|
|
msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc)
|
|
}
|