forked from cerc-io/laconicd
4da8dd8d7b
* Add commands to get bonds by id and owner * Add commands to get bond module params and balances * Add commands to refill, withdraw and cancel bond * Add implementations for bond tx commands * Use indexed map to implement command for getting bond by owner * Use collections for bond module params * Clean up
19 lines
511 B
Go
19 lines
511 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)
|
|
}
|