Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterInterfaces(registry types.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- type Bond
- func (*Bond) Descriptor() ([]byte, []int)
- func (m *Bond) GetBalance() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *Bond) GetId() string
- func (m *Bond) GetOwner() string
- func (m *Bond) Marshal() (dAtA []byte, err error)
- func (m *Bond) MarshalTo(dAtA []byte) (int, error)
- func (m *Bond) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Bond) ProtoMessage()
- func (m *Bond) Reset()
- func (m *Bond) Size() (n int)
- func (m *Bond) String() string
- func (m *Bond) Unmarshal(dAtA []byte) error
- func (m *Bond) XXX_DiscardUnknown()
- func (m *Bond) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Bond) XXX_Merge(src proto.Message)
- func (m *Bond) XXX_Size() int
- func (m *Bond) XXX_Unmarshal(b []byte) error
- type BondUsageKeeper
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetBonds() []*Bond
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type MsgCancelBond
- func (*MsgCancelBond) Descriptor() ([]byte, []int)
- func (m *MsgCancelBond) GetId() string
- func (msg MsgCancelBond) GetSignBytes() []byte
- func (m *MsgCancelBond) GetSigner() string
- func (msg MsgCancelBond) GetSigners() []sdk.AccAddress
- func (m *MsgCancelBond) Marshal() (dAtA []byte, err error)
- func (m *MsgCancelBond) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCancelBond) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCancelBond) ProtoMessage()
- func (m *MsgCancelBond) Reset()
- func (msg MsgCancelBond) Route() string
- func (m *MsgCancelBond) Size() (n int)
- func (m *MsgCancelBond) String() string
- func (msg MsgCancelBond) Type() string
- func (m *MsgCancelBond) Unmarshal(dAtA []byte) error
- func (msg MsgCancelBond) ValidateBasic() error
- func (m *MsgCancelBond) XXX_DiscardUnknown()
- func (m *MsgCancelBond) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCancelBond) XXX_Merge(src proto.Message)
- func (m *MsgCancelBond) XXX_Size() int
- func (m *MsgCancelBond) XXX_Unmarshal(b []byte) error
- type MsgCancelBondResponse
- func (*MsgCancelBondResponse) Descriptor() ([]byte, []int)
- func (m *MsgCancelBondResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCancelBondResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCancelBondResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCancelBondResponse) ProtoMessage()
- func (m *MsgCancelBondResponse) Reset()
- func (m *MsgCancelBondResponse) Size() (n int)
- func (m *MsgCancelBondResponse) String() string
- func (m *MsgCancelBondResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCancelBondResponse) XXX_DiscardUnknown()
- func (m *MsgCancelBondResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCancelBondResponse) XXX_Merge(src proto.Message)
- func (m *MsgCancelBondResponse) XXX_Size() int
- func (m *MsgCancelBondResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgCreateBond
- func (*MsgCreateBond) Descriptor() ([]byte, []int)
- func (m *MsgCreateBond) GetCoins() github_com_cosmos_cosmos_sdk_types.Coins
- func (msg MsgCreateBond) GetSignBytes() []byte
- func (m *MsgCreateBond) GetSigner() string
- func (msg MsgCreateBond) GetSigners() []sdk.AccAddress
- func (m *MsgCreateBond) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateBond) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateBond) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateBond) ProtoMessage()
- func (m *MsgCreateBond) Reset()
- func (msg MsgCreateBond) Route() string
- func (m *MsgCreateBond) Size() (n int)
- func (m *MsgCreateBond) String() string
- func (msg MsgCreateBond) Type() string
- func (m *MsgCreateBond) Unmarshal(dAtA []byte) error
- func (msg MsgCreateBond) ValidateBasic() error
- func (m *MsgCreateBond) XXX_DiscardUnknown()
- func (m *MsgCreateBond) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateBond) XXX_Merge(src proto.Message)
- func (m *MsgCreateBond) XXX_Size() int
- func (m *MsgCreateBond) XXX_Unmarshal(b []byte) error
- type MsgCreateBondResponse
- func (*MsgCreateBondResponse) Descriptor() ([]byte, []int)
- func (m *MsgCreateBondResponse) GetId() string
- func (m *MsgCreateBondResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateBondResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateBondResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateBondResponse) ProtoMessage()
- func (m *MsgCreateBondResponse) Reset()
- func (m *MsgCreateBondResponse) Size() (n int)
- func (m *MsgCreateBondResponse) String() string
- func (m *MsgCreateBondResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCreateBondResponse) XXX_DiscardUnknown()
- func (m *MsgCreateBondResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateBondResponse) XXX_Merge(src proto.Message)
- func (m *MsgCreateBondResponse) XXX_Size() int
- func (m *MsgCreateBondResponse) XXX_Unmarshal(b []byte) error
- type MsgRefillBond
- func (*MsgRefillBond) Descriptor() ([]byte, []int)
- func (m *MsgRefillBond) GetCoins() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *MsgRefillBond) GetId() string
- func (msg MsgRefillBond) GetSignBytes() []byte
- func (m *MsgRefillBond) GetSigner() string
- func (msg MsgRefillBond) GetSigners() []sdk.AccAddress
- func (m *MsgRefillBond) Marshal() (dAtA []byte, err error)
- func (m *MsgRefillBond) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRefillBond) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRefillBond) ProtoMessage()
- func (m *MsgRefillBond) Reset()
- func (msg MsgRefillBond) Route() string
- func (m *MsgRefillBond) Size() (n int)
- func (m *MsgRefillBond) String() string
- func (msg MsgRefillBond) Type() string
- func (m *MsgRefillBond) Unmarshal(dAtA []byte) error
- func (msg MsgRefillBond) ValidateBasic() error
- func (m *MsgRefillBond) XXX_DiscardUnknown()
- func (m *MsgRefillBond) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRefillBond) XXX_Merge(src proto.Message)
- func (m *MsgRefillBond) XXX_Size() int
- func (m *MsgRefillBond) XXX_Unmarshal(b []byte) error
- type MsgRefillBondResponse
- func (*MsgRefillBondResponse) Descriptor() ([]byte, []int)
- func (m *MsgRefillBondResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgRefillBondResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRefillBondResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRefillBondResponse) ProtoMessage()
- func (m *MsgRefillBondResponse) Reset()
- func (m *MsgRefillBondResponse) Size() (n int)
- func (m *MsgRefillBondResponse) String() string
- func (m *MsgRefillBondResponse) Unmarshal(dAtA []byte) error
- func (m *MsgRefillBondResponse) XXX_DiscardUnknown()
- func (m *MsgRefillBondResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRefillBondResponse) XXX_Merge(src proto.Message)
- func (m *MsgRefillBondResponse) XXX_Size() int
- func (m *MsgRefillBondResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgWithdrawBond
- func (*MsgWithdrawBond) Descriptor() ([]byte, []int)
- func (m *MsgWithdrawBond) GetCoins() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *MsgWithdrawBond) GetId() string
- func (msg MsgWithdrawBond) GetSignBytes() []byte
- func (m *MsgWithdrawBond) GetSigner() string
- func (msg MsgWithdrawBond) GetSigners() []sdk.AccAddress
- func (m *MsgWithdrawBond) Marshal() (dAtA []byte, err error)
- func (m *MsgWithdrawBond) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgWithdrawBond) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgWithdrawBond) ProtoMessage()
- func (m *MsgWithdrawBond) Reset()
- func (msg MsgWithdrawBond) Route() string
- func (m *MsgWithdrawBond) Size() (n int)
- func (m *MsgWithdrawBond) String() string
- func (msg MsgWithdrawBond) Type() string
- func (m *MsgWithdrawBond) Unmarshal(dAtA []byte) error
- func (msg MsgWithdrawBond) ValidateBasic() error
- func (m *MsgWithdrawBond) XXX_DiscardUnknown()
- func (m *MsgWithdrawBond) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgWithdrawBond) XXX_Merge(src proto.Message)
- func (m *MsgWithdrawBond) XXX_Size() int
- func (m *MsgWithdrawBond) XXX_Unmarshal(b []byte) error
- type MsgWithdrawBondResponse
- func (*MsgWithdrawBondResponse) Descriptor() ([]byte, []int)
- func (m *MsgWithdrawBondResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgWithdrawBondResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgWithdrawBondResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgWithdrawBondResponse) ProtoMessage()
- func (m *MsgWithdrawBondResponse) Reset()
- func (m *MsgWithdrawBondResponse) Size() (n int)
- func (m *MsgWithdrawBondResponse) String() string
- func (m *MsgWithdrawBondResponse) Unmarshal(dAtA []byte) error
- func (m *MsgWithdrawBondResponse) XXX_DiscardUnknown()
- func (m *MsgWithdrawBondResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgWithdrawBondResponse) XXX_Merge(src proto.Message)
- func (m *MsgWithdrawBondResponse) XXX_Size() int
- func (m *MsgWithdrawBondResponse) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetMaxBondAmount() types.Coin
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (m *Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryGetBondByIDRequest
- func (*QueryGetBondByIDRequest) Descriptor() ([]byte, []int)
- func (m *QueryGetBondByIDRequest) GetId() string
- func (m *QueryGetBondByIDRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryGetBondByIDRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetBondByIDRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetBondByIDRequest) ProtoMessage()
- func (m *QueryGetBondByIDRequest) Reset()
- func (m *QueryGetBondByIDRequest) Size() (n int)
- func (m *QueryGetBondByIDRequest) String() string
- func (m *QueryGetBondByIDRequest) Unmarshal(dAtA []byte) error
- func (m *QueryGetBondByIDRequest) XXX_DiscardUnknown()
- func (m *QueryGetBondByIDRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetBondByIDRequest) XXX_Merge(src proto.Message)
- func (m *QueryGetBondByIDRequest) XXX_Size() int
- func (m *QueryGetBondByIDRequest) XXX_Unmarshal(b []byte) error
- type QueryGetBondByIDResponse
- func (*QueryGetBondByIDResponse) Descriptor() ([]byte, []int)
- func (m *QueryGetBondByIDResponse) GetBond() *Bond
- func (m *QueryGetBondByIDResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryGetBondByIDResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetBondByIDResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetBondByIDResponse) ProtoMessage()
- func (m *QueryGetBondByIDResponse) Reset()
- func (m *QueryGetBondByIDResponse) Size() (n int)
- func (m *QueryGetBondByIDResponse) String() string
- func (m *QueryGetBondByIDResponse) Unmarshal(dAtA []byte) error
- func (m *QueryGetBondByIDResponse) XXX_DiscardUnknown()
- func (m *QueryGetBondByIDResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetBondByIDResponse) XXX_Merge(src proto.Message)
- func (m *QueryGetBondByIDResponse) XXX_Size() int
- func (m *QueryGetBondByIDResponse) XXX_Unmarshal(b []byte) error
- type QueryGetBondModuleBalanceRequest
- func (*QueryGetBondModuleBalanceRequest) Descriptor() ([]byte, []int)
- func (m *QueryGetBondModuleBalanceRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryGetBondModuleBalanceRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetBondModuleBalanceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetBondModuleBalanceRequest) ProtoMessage()
- func (m *QueryGetBondModuleBalanceRequest) Reset()
- func (m *QueryGetBondModuleBalanceRequest) Size() (n int)
- func (m *QueryGetBondModuleBalanceRequest) String() string
- func (m *QueryGetBondModuleBalanceRequest) Unmarshal(dAtA []byte) error
- func (m *QueryGetBondModuleBalanceRequest) XXX_DiscardUnknown()
- func (m *QueryGetBondModuleBalanceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetBondModuleBalanceRequest) XXX_Merge(src proto.Message)
- func (m *QueryGetBondModuleBalanceRequest) XXX_Size() int
- func (m *QueryGetBondModuleBalanceRequest) XXX_Unmarshal(b []byte) error
- type QueryGetBondModuleBalanceResponse
- func (*QueryGetBondModuleBalanceResponse) Descriptor() ([]byte, []int)
- func (m *QueryGetBondModuleBalanceResponse) GetBalance() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *QueryGetBondModuleBalanceResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryGetBondModuleBalanceResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetBondModuleBalanceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetBondModuleBalanceResponse) ProtoMessage()
- func (m *QueryGetBondModuleBalanceResponse) Reset()
- func (m *QueryGetBondModuleBalanceResponse) Size() (n int)
- func (m *QueryGetBondModuleBalanceResponse) String() string
- func (m *QueryGetBondModuleBalanceResponse) Unmarshal(dAtA []byte) error
- func (m *QueryGetBondModuleBalanceResponse) XXX_DiscardUnknown()
- func (m *QueryGetBondModuleBalanceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetBondModuleBalanceResponse) XXX_Merge(src proto.Message)
- func (m *QueryGetBondModuleBalanceResponse) XXX_Size() int
- func (m *QueryGetBondModuleBalanceResponse) XXX_Unmarshal(b []byte) error
- type QueryGetBondsByOwnerRequest
- func (*QueryGetBondsByOwnerRequest) Descriptor() ([]byte, []int)
- func (m *QueryGetBondsByOwnerRequest) GetOwner() string
- func (m *QueryGetBondsByOwnerRequest) GetPagination() *query.PageResponse
- func (m *QueryGetBondsByOwnerRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryGetBondsByOwnerRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetBondsByOwnerRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetBondsByOwnerRequest) ProtoMessage()
- func (m *QueryGetBondsByOwnerRequest) Reset()
- func (m *QueryGetBondsByOwnerRequest) Size() (n int)
- func (m *QueryGetBondsByOwnerRequest) String() string
- func (m *QueryGetBondsByOwnerRequest) Unmarshal(dAtA []byte) error
- func (m *QueryGetBondsByOwnerRequest) XXX_DiscardUnknown()
- func (m *QueryGetBondsByOwnerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetBondsByOwnerRequest) XXX_Merge(src proto.Message)
- func (m *QueryGetBondsByOwnerRequest) XXX_Size() int
- func (m *QueryGetBondsByOwnerRequest) XXX_Unmarshal(b []byte) error
- type QueryGetBondsByOwnerResponse
- func (*QueryGetBondsByOwnerResponse) Descriptor() ([]byte, []int)
- func (m *QueryGetBondsByOwnerResponse) GetBonds() []Bond
- func (m *QueryGetBondsByOwnerResponse) GetPagination() *query.PageResponse
- func (m *QueryGetBondsByOwnerResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryGetBondsByOwnerResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetBondsByOwnerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetBondsByOwnerResponse) ProtoMessage()
- func (m *QueryGetBondsByOwnerResponse) Reset()
- func (m *QueryGetBondsByOwnerResponse) Size() (n int)
- func (m *QueryGetBondsByOwnerResponse) String() string
- func (m *QueryGetBondsByOwnerResponse) Unmarshal(dAtA []byte) error
- func (m *QueryGetBondsByOwnerResponse) XXX_DiscardUnknown()
- func (m *QueryGetBondsByOwnerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetBondsByOwnerResponse) XXX_Merge(src proto.Message)
- func (m *QueryGetBondsByOwnerResponse) XXX_Size() int
- func (m *QueryGetBondsByOwnerResponse) XXX_Unmarshal(b []byte) error
- type QueryGetBondsRequest
- func (*QueryGetBondsRequest) Descriptor() ([]byte, []int)
- func (m *QueryGetBondsRequest) GetPagination() *query.PageRequest
- func (m *QueryGetBondsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryGetBondsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetBondsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetBondsRequest) ProtoMessage()
- func (m *QueryGetBondsRequest) Reset()
- func (m *QueryGetBondsRequest) Size() (n int)
- func (m *QueryGetBondsRequest) String() string
- func (m *QueryGetBondsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryGetBondsRequest) XXX_DiscardUnknown()
- func (m *QueryGetBondsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetBondsRequest) XXX_Merge(src proto.Message)
- func (m *QueryGetBondsRequest) XXX_Size() int
- func (m *QueryGetBondsRequest) XXX_Unmarshal(b []byte) error
- type QueryGetBondsResponse
- func (*QueryGetBondsResponse) Descriptor() ([]byte, []int)
- func (m *QueryGetBondsResponse) GetBonds() []*Bond
- func (m *QueryGetBondsResponse) GetPagination() *query.PageResponse
- func (m *QueryGetBondsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryGetBondsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetBondsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetBondsResponse) ProtoMessage()
- func (m *QueryGetBondsResponse) Reset()
- func (m *QueryGetBondsResponse) Size() (n int)
- func (m *QueryGetBondsResponse) String() string
- func (m *QueryGetBondsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryGetBondsResponse) XXX_DiscardUnknown()
- func (m *QueryGetBondsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetBondsResponse) XXX_Merge(src proto.Message)
- func (m *QueryGetBondsResponse) XXX_Size() int
- func (m *QueryGetBondsResponse) XXX_Unmarshal(b []byte) error
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsRequest) ProtoMessage()
- func (m *QueryParamsRequest) Reset()
- func (m *QueryParamsRequest) Size() (n int)
- func (m *QueryParamsRequest) String() string
- func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParamsRequest) XXX_DiscardUnknown()
- func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParamsRequest) XXX_Size() int
- func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) GetParams() *Params
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) CancelBond(ctx context.Context, req *MsgCancelBond) (*MsgCancelBondResponse, error)
- func (*UnimplementedMsgServer) CreateBond(ctx context.Context, req *MsgCreateBond) (*MsgCreateBondResponse, error)
- func (*UnimplementedMsgServer) RefillBond(ctx context.Context, req *MsgRefillBond) (*MsgRefillBondResponse, error)
- func (*UnimplementedMsgServer) WithdrawBond(ctx context.Context, req *MsgWithdrawBond) (*MsgWithdrawBondResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) Bonds(ctx context.Context, req *QueryGetBondsRequest) (*QueryGetBondsResponse, error)
- func (*UnimplementedQueryServer) GetBondByID(ctx context.Context, req *QueryGetBondByIDRequest) (*QueryGetBondByIDResponse, error)
- func (*UnimplementedQueryServer) GetBondsByOwner(ctx context.Context, req *QueryGetBondsByOwnerRequest) (*QueryGetBondsByOwnerResponse, error)
- func (*UnimplementedQueryServer) GetBondsModuleBalance(ctx context.Context, req *QueryGetBondModuleBalanceRequest) (*QueryGetBondModuleBalanceResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
Constants ¶
const ( EventTypeCreateBond = "crate_bond" EventTypeRefillBond = "refill_bond" EventTypeCancelBond = "cancel_bond" EventTypeWithdrawBond = "withdraw_bond" AttributeKeySigner = "signer" AttributeKeyAmount = "amount" AttributeKeyBondID = "bond_id" AttributeValueCategory = ModuleName )
const ( // ModuleName is the name of the staking module ModuleName = "bond" // StoreKey is the string store representation StoreKey = ModuleName // QuerierRoute is the querier route for the staking module QuerierRoute = ModuleName // RouterKey is the msg router key for the staking module RouterKey = ModuleName )
Variables ¶
var ( ErrInvalidLengthBond = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowBond = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupBond = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var (
DefaultMaxBondAmountTokens = sdk.NewInt(100000000000)
)
Default parameter values.
var (
ModuleCdc = codec.NewAminoCodec(amino)
)
var (
ParamStoreKeyMaxBondAmount = []byte("MaxBondAmount")
)
Parameter keys
Functions ¶
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
ParamKeyTable ParamTable for staking module
func RegisterInterfaces ¶
func RegisterInterfaces(registry types.InterfaceRegistry)
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
RegisterLegacyAminoCodec registers the necessary x/bond interfaces and concrete types on the provided LegacyAmino codec. These types are used for Amino JSON serialization.
func RegisterMsgServer ¶
func RegisterQueryHandler ¶
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
Types ¶
type Bond ¶
type Bond struct { // id is unique identifier of the bond Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // owner of the bond Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` // balance of the bond Balance github_com_cosmos_cosmos_sdk_types.Coins `` /* 141-byte string literal not displayed */ }
Bond represents funds deposited by an account for record rent payments.
func (*Bond) Descriptor ¶
func (*Bond) GetBalance ¶
func (m *Bond) GetBalance() github_com_cosmos_cosmos_sdk_types.Coins
func (*Bond) ProtoMessage ¶
func (*Bond) ProtoMessage()
func (*Bond) XXX_DiscardUnknown ¶
func (m *Bond) XXX_DiscardUnknown()
func (*Bond) XXX_Unmarshal ¶
type BondUsageKeeper ¶
type BondUsageKeeper interface { ModuleName() string UsesBond(ctx sdk.Context, bondID string) bool }
BondUsageKeeper keep track of bond usage in other modules. Used to, for example, prevent deletion of a bond that's in use.
type GenesisState ¶
type GenesisState struct { // params defines all the parameters of the module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` // bonds defines all the bonds Bonds []*Bond `protobuf:"bytes,2,rep,name=bonds,proto3" json:"bonds,omitempty" json:"bonds" yaml:"bonds"` }
GenesisState defines the bond module's genesis state.
func DefaultGenesisState ¶
func DefaultGenesisState() *GenesisState
DefaultGenesisState sets default evm genesis state with empty accounts and default params and chain config values.
func NewGenesisState ¶ added in v0.7.0
func NewGenesisState(params Params, bonds []*Bond) *GenesisState
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetBonds ¶
func (m *GenesisState) GetBonds() []*Bond
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalToSizedBuffer ¶
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (*GenesisState) XXX_DiscardUnknown ¶
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type MsgCancelBond ¶
type MsgCancelBond struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Signer string `protobuf:"bytes,2,opt,name=signer,proto3" json:"signer,omitempty"` }
MsgCancelBond defines a SDK message for the cancel the bond.
func NewMsgCancelBond ¶
func NewMsgCancelBond(id string, signer sdk.AccAddress) MsgCancelBond
NewMsgCancelBond is the constructor function for CalcelBond.
func (*MsgCancelBond) Descriptor ¶
func (*MsgCancelBond) Descriptor() ([]byte, []int)
func (*MsgCancelBond) GetId ¶
func (m *MsgCancelBond) GetId() string
func (MsgCancelBond) GetSignBytes ¶
func (msg MsgCancelBond) GetSignBytes() []byte
GetSignBytes gets the sign bytes for the msg MsgCreateBond
func (*MsgCancelBond) GetSigner ¶
func (m *MsgCancelBond) GetSigner() string
func (MsgCancelBond) GetSigners ¶
func (msg MsgCancelBond) GetSigners() []sdk.AccAddress
func (*MsgCancelBond) Marshal ¶
func (m *MsgCancelBond) Marshal() (dAtA []byte, err error)
func (*MsgCancelBond) MarshalToSizedBuffer ¶
func (m *MsgCancelBond) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCancelBond) ProtoMessage ¶
func (*MsgCancelBond) ProtoMessage()
func (*MsgCancelBond) Reset ¶
func (m *MsgCancelBond) Reset()
func (*MsgCancelBond) Size ¶
func (m *MsgCancelBond) Size() (n int)
func (*MsgCancelBond) String ¶
func (m *MsgCancelBond) String() string
func (*MsgCancelBond) Unmarshal ¶
func (m *MsgCancelBond) Unmarshal(dAtA []byte) error
func (MsgCancelBond) ValidateBasic ¶
func (msg MsgCancelBond) ValidateBasic() error
func (*MsgCancelBond) XXX_DiscardUnknown ¶
func (m *MsgCancelBond) XXX_DiscardUnknown()
func (*MsgCancelBond) XXX_Marshal ¶
func (m *MsgCancelBond) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCancelBond) XXX_Merge ¶
func (m *MsgCancelBond) XXX_Merge(src proto.Message)
func (*MsgCancelBond) XXX_Size ¶
func (m *MsgCancelBond) XXX_Size() int
func (*MsgCancelBond) XXX_Unmarshal ¶
func (m *MsgCancelBond) XXX_Unmarshal(b []byte) error
type MsgCancelBondResponse ¶
type MsgCancelBondResponse struct { }
MsgCancelBondResponse defines the Msg/CancelBond response type.
func (*MsgCancelBondResponse) Descriptor ¶
func (*MsgCancelBondResponse) Descriptor() ([]byte, []int)
func (*MsgCancelBondResponse) Marshal ¶
func (m *MsgCancelBondResponse) Marshal() (dAtA []byte, err error)
func (*MsgCancelBondResponse) MarshalTo ¶
func (m *MsgCancelBondResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCancelBondResponse) MarshalToSizedBuffer ¶
func (m *MsgCancelBondResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCancelBondResponse) ProtoMessage ¶
func (*MsgCancelBondResponse) ProtoMessage()
func (*MsgCancelBondResponse) Reset ¶
func (m *MsgCancelBondResponse) Reset()
func (*MsgCancelBondResponse) Size ¶
func (m *MsgCancelBondResponse) Size() (n int)
func (*MsgCancelBondResponse) String ¶
func (m *MsgCancelBondResponse) String() string
func (*MsgCancelBondResponse) Unmarshal ¶
func (m *MsgCancelBondResponse) Unmarshal(dAtA []byte) error
func (*MsgCancelBondResponse) XXX_DiscardUnknown ¶
func (m *MsgCancelBondResponse) XXX_DiscardUnknown()
func (*MsgCancelBondResponse) XXX_Marshal ¶
func (m *MsgCancelBondResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCancelBondResponse) XXX_Merge ¶
func (m *MsgCancelBondResponse) XXX_Merge(src proto.Message)
func (*MsgCancelBondResponse) XXX_Size ¶
func (m *MsgCancelBondResponse) XXX_Size() int
func (*MsgCancelBondResponse) XXX_Unmarshal ¶
func (m *MsgCancelBondResponse) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { // CreateBond defines a method for creating a new bond. CreateBond(ctx context.Context, in *MsgCreateBond, opts ...grpc.CallOption) (*MsgCreateBondResponse, error) // RefillBond defines a method for refilling amount for bond. RefillBond(ctx context.Context, in *MsgRefillBond, opts ...grpc.CallOption) (*MsgRefillBondResponse, error) // WithdrawBond defines a method for withdrawing amount from bond. WithdrawBond(ctx context.Context, in *MsgWithdrawBond, opts ...grpc.CallOption) (*MsgWithdrawBondResponse, error) // CancelBond defines a method for cancelling a bond. CancelBond(ctx context.Context, in *MsgCancelBond, opts ...grpc.CallOption) (*MsgCancelBondResponse, error) }
MsgClient is the client API for Msg service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMsgClient ¶
func NewMsgClient(cc grpc1.ClientConn) MsgClient
type MsgCreateBond ¶
type MsgCreateBond struct { Signer string `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer,omitempty"` Coins github_com_cosmos_cosmos_sdk_types.Coins `` /* 133-byte string literal not displayed */ }
MsgCreateBond defines a SDK message for creating a new bond.
func NewMsgCreateBond ¶
func NewMsgCreateBond(coins sdk.Coins, signer sdk.AccAddress) MsgCreateBond
NewMsgCreateBond is the constructor function for MsgCreateBond.
func (*MsgCreateBond) Descriptor ¶
func (*MsgCreateBond) Descriptor() ([]byte, []int)
func (*MsgCreateBond) GetCoins ¶
func (m *MsgCreateBond) GetCoins() github_com_cosmos_cosmos_sdk_types.Coins
func (MsgCreateBond) GetSignBytes ¶
func (msg MsgCreateBond) GetSignBytes() []byte
GetSignBytes gets the sign bytes for the msg MsgCreateBond
func (*MsgCreateBond) GetSigner ¶
func (m *MsgCreateBond) GetSigner() string
func (MsgCreateBond) GetSigners ¶
func (msg MsgCreateBond) GetSigners() []sdk.AccAddress
func (*MsgCreateBond) Marshal ¶
func (m *MsgCreateBond) Marshal() (dAtA []byte, err error)
func (*MsgCreateBond) MarshalToSizedBuffer ¶
func (m *MsgCreateBond) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateBond) ProtoMessage ¶
func (*MsgCreateBond) ProtoMessage()
func (*MsgCreateBond) Reset ¶
func (m *MsgCreateBond) Reset()
func (*MsgCreateBond) Size ¶
func (m *MsgCreateBond) Size() (n int)
func (*MsgCreateBond) String ¶
func (m *MsgCreateBond) String() string
func (*MsgCreateBond) Unmarshal ¶
func (m *MsgCreateBond) Unmarshal(dAtA []byte) error
func (MsgCreateBond) ValidateBasic ¶
func (msg MsgCreateBond) ValidateBasic() error
func (*MsgCreateBond) XXX_DiscardUnknown ¶
func (m *MsgCreateBond) XXX_DiscardUnknown()
func (*MsgCreateBond) XXX_Marshal ¶
func (m *MsgCreateBond) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateBond) XXX_Merge ¶
func (m *MsgCreateBond) XXX_Merge(src proto.Message)
func (*MsgCreateBond) XXX_Size ¶
func (m *MsgCreateBond) XXX_Size() int
func (*MsgCreateBond) XXX_Unmarshal ¶
func (m *MsgCreateBond) XXX_Unmarshal(b []byte) error
type MsgCreateBondResponse ¶
type MsgCreateBondResponse struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
}
MsgCreateBondResponse defines the Msg/CreateBond response type.
func (*MsgCreateBondResponse) Descriptor ¶
func (*MsgCreateBondResponse) Descriptor() ([]byte, []int)
func (*MsgCreateBondResponse) GetId ¶
func (m *MsgCreateBondResponse) GetId() string
func (*MsgCreateBondResponse) Marshal ¶
func (m *MsgCreateBondResponse) Marshal() (dAtA []byte, err error)
func (*MsgCreateBondResponse) MarshalTo ¶
func (m *MsgCreateBondResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateBondResponse) MarshalToSizedBuffer ¶
func (m *MsgCreateBondResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateBondResponse) ProtoMessage ¶
func (*MsgCreateBondResponse) ProtoMessage()
func (*MsgCreateBondResponse) Reset ¶
func (m *MsgCreateBondResponse) Reset()
func (*MsgCreateBondResponse) Size ¶
func (m *MsgCreateBondResponse) Size() (n int)
func (*MsgCreateBondResponse) String ¶
func (m *MsgCreateBondResponse) String() string
func (*MsgCreateBondResponse) Unmarshal ¶
func (m *MsgCreateBondResponse) Unmarshal(dAtA []byte) error
func (*MsgCreateBondResponse) XXX_DiscardUnknown ¶
func (m *MsgCreateBondResponse) XXX_DiscardUnknown()
func (*MsgCreateBondResponse) XXX_Marshal ¶
func (m *MsgCreateBondResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateBondResponse) XXX_Merge ¶
func (m *MsgCreateBondResponse) XXX_Merge(src proto.Message)
func (*MsgCreateBondResponse) XXX_Size ¶
func (m *MsgCreateBondResponse) XXX_Size() int
func (*MsgCreateBondResponse) XXX_Unmarshal ¶
func (m *MsgCreateBondResponse) XXX_Unmarshal(b []byte) error
type MsgRefillBond ¶
type MsgRefillBond struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Signer string `protobuf:"bytes,2,opt,name=signer,proto3" json:"signer,omitempty"` Coins github_com_cosmos_cosmos_sdk_types.Coins `` /* 133-byte string literal not displayed */ }
MsgRefillBond defines a SDK message for refill the amount for bond.
func NewMsgRefillBond ¶
func NewMsgRefillBond(id string, amount sdk.Coin, signer sdk.AccAddress) MsgRefillBond
NewMsgRefillBond is the constructor function for MsgRefillBond.
func (*MsgRefillBond) Descriptor ¶
func (*MsgRefillBond) Descriptor() ([]byte, []int)
func (*MsgRefillBond) GetCoins ¶
func (m *MsgRefillBond) GetCoins() github_com_cosmos_cosmos_sdk_types.Coins
func (*MsgRefillBond) GetId ¶
func (m *MsgRefillBond) GetId() string
func (MsgRefillBond) GetSignBytes ¶
func (msg MsgRefillBond) GetSignBytes() []byte
GetSignBytes gets the sign bytes for the msg MsgCreateBond
func (*MsgRefillBond) GetSigner ¶
func (m *MsgRefillBond) GetSigner() string
func (MsgRefillBond) GetSigners ¶
func (msg MsgRefillBond) GetSigners() []sdk.AccAddress
func (*MsgRefillBond) Marshal ¶
func (m *MsgRefillBond) Marshal() (dAtA []byte, err error)
func (*MsgRefillBond) MarshalToSizedBuffer ¶
func (m *MsgRefillBond) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRefillBond) ProtoMessage ¶
func (*MsgRefillBond) ProtoMessage()
func (*MsgRefillBond) Reset ¶
func (m *MsgRefillBond) Reset()
func (*MsgRefillBond) Size ¶
func (m *MsgRefillBond) Size() (n int)
func (*MsgRefillBond) String ¶
func (m *MsgRefillBond) String() string
func (*MsgRefillBond) Unmarshal ¶
func (m *MsgRefillBond) Unmarshal(dAtA []byte) error
func (MsgRefillBond) ValidateBasic ¶
func (msg MsgRefillBond) ValidateBasic() error
func (*MsgRefillBond) XXX_DiscardUnknown ¶
func (m *MsgRefillBond) XXX_DiscardUnknown()
func (*MsgRefillBond) XXX_Marshal ¶
func (m *MsgRefillBond) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRefillBond) XXX_Merge ¶
func (m *MsgRefillBond) XXX_Merge(src proto.Message)
func (*MsgRefillBond) XXX_Size ¶
func (m *MsgRefillBond) XXX_Size() int
func (*MsgRefillBond) XXX_Unmarshal ¶
func (m *MsgRefillBond) XXX_Unmarshal(b []byte) error
type MsgRefillBondResponse ¶
type MsgRefillBondResponse struct { }
MsgRefillBondResponse defines the Msg/RefillBond response type.
func (*MsgRefillBondResponse) Descriptor ¶
func (*MsgRefillBondResponse) Descriptor() ([]byte, []int)
func (*MsgRefillBondResponse) Marshal ¶
func (m *MsgRefillBondResponse) Marshal() (dAtA []byte, err error)
func (*MsgRefillBondResponse) MarshalTo ¶
func (m *MsgRefillBondResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgRefillBondResponse) MarshalToSizedBuffer ¶
func (m *MsgRefillBondResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRefillBondResponse) ProtoMessage ¶
func (*MsgRefillBondResponse) ProtoMessage()
func (*MsgRefillBondResponse) Reset ¶
func (m *MsgRefillBondResponse) Reset()
func (*MsgRefillBondResponse) Size ¶
func (m *MsgRefillBondResponse) Size() (n int)
func (*MsgRefillBondResponse) String ¶
func (m *MsgRefillBondResponse) String() string
func (*MsgRefillBondResponse) Unmarshal ¶
func (m *MsgRefillBondResponse) Unmarshal(dAtA []byte) error
func (*MsgRefillBondResponse) XXX_DiscardUnknown ¶
func (m *MsgRefillBondResponse) XXX_DiscardUnknown()
func (*MsgRefillBondResponse) XXX_Marshal ¶
func (m *MsgRefillBondResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRefillBondResponse) XXX_Merge ¶
func (m *MsgRefillBondResponse) XXX_Merge(src proto.Message)
func (*MsgRefillBondResponse) XXX_Size ¶
func (m *MsgRefillBondResponse) XXX_Size() int
func (*MsgRefillBondResponse) XXX_Unmarshal ¶
func (m *MsgRefillBondResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { // CreateBond defines a method for creating a new bond. CreateBond(context.Context, *MsgCreateBond) (*MsgCreateBondResponse, error) // RefillBond defines a method for refilling amount for bond. RefillBond(context.Context, *MsgRefillBond) (*MsgRefillBondResponse, error) // WithdrawBond defines a method for withdrawing amount from bond. WithdrawBond(context.Context, *MsgWithdrawBond) (*MsgWithdrawBondResponse, error) // CancelBond defines a method for cancelling a bond. CancelBond(context.Context, *MsgCancelBond) (*MsgCancelBondResponse, error) }
MsgServer is the server API for Msg service.
type MsgWithdrawBond ¶
type MsgWithdrawBond struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Signer string `protobuf:"bytes,2,opt,name=signer,proto3" json:"signer,omitempty"` Coins github_com_cosmos_cosmos_sdk_types.Coins `` /* 133-byte string literal not displayed */ }
MsgWithdrawBond defines a SDK message for withdrawing amount from bond.
func NewMsgWithdrawBond ¶
func NewMsgWithdrawBond(id string, amount sdk.Coin, signer sdk.AccAddress) MsgWithdrawBond
NewMsgWithdrawBond is the constructor function for NewMsgWithdrawBond.
func (*MsgWithdrawBond) Descriptor ¶
func (*MsgWithdrawBond) Descriptor() ([]byte, []int)
func (*MsgWithdrawBond) GetCoins ¶
func (m *MsgWithdrawBond) GetCoins() github_com_cosmos_cosmos_sdk_types.Coins
func (*MsgWithdrawBond) GetId ¶
func (m *MsgWithdrawBond) GetId() string
func (MsgWithdrawBond) GetSignBytes ¶
func (msg MsgWithdrawBond) GetSignBytes() []byte
GetSignBytes gets the sign bytes for the msg MsgCreateBond
func (*MsgWithdrawBond) GetSigner ¶
func (m *MsgWithdrawBond) GetSigner() string
func (MsgWithdrawBond) GetSigners ¶
func (msg MsgWithdrawBond) GetSigners() []sdk.AccAddress
func (*MsgWithdrawBond) Marshal ¶
func (m *MsgWithdrawBond) Marshal() (dAtA []byte, err error)
func (*MsgWithdrawBond) MarshalToSizedBuffer ¶
func (m *MsgWithdrawBond) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgWithdrawBond) ProtoMessage ¶
func (*MsgWithdrawBond) ProtoMessage()
func (*MsgWithdrawBond) Reset ¶
func (m *MsgWithdrawBond) Reset()
func (*MsgWithdrawBond) Size ¶
func (m *MsgWithdrawBond) Size() (n int)
func (*MsgWithdrawBond) String ¶
func (m *MsgWithdrawBond) String() string
func (*MsgWithdrawBond) Unmarshal ¶
func (m *MsgWithdrawBond) Unmarshal(dAtA []byte) error
func (MsgWithdrawBond) ValidateBasic ¶
func (msg MsgWithdrawBond) ValidateBasic() error
func (*MsgWithdrawBond) XXX_DiscardUnknown ¶
func (m *MsgWithdrawBond) XXX_DiscardUnknown()
func (*MsgWithdrawBond) XXX_Marshal ¶
func (m *MsgWithdrawBond) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgWithdrawBond) XXX_Merge ¶
func (m *MsgWithdrawBond) XXX_Merge(src proto.Message)
func (*MsgWithdrawBond) XXX_Size ¶
func (m *MsgWithdrawBond) XXX_Size() int
func (*MsgWithdrawBond) XXX_Unmarshal ¶
func (m *MsgWithdrawBond) XXX_Unmarshal(b []byte) error
type MsgWithdrawBondResponse ¶
type MsgWithdrawBondResponse struct { }
MsgWithdrawBondResponse defines the Msg/WithdrawBond response type.
func (*MsgWithdrawBondResponse) Descriptor ¶
func (*MsgWithdrawBondResponse) Descriptor() ([]byte, []int)
func (*MsgWithdrawBondResponse) Marshal ¶
func (m *MsgWithdrawBondResponse) Marshal() (dAtA []byte, err error)
func (*MsgWithdrawBondResponse) MarshalTo ¶
func (m *MsgWithdrawBondResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgWithdrawBondResponse) MarshalToSizedBuffer ¶
func (m *MsgWithdrawBondResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgWithdrawBondResponse) ProtoMessage ¶
func (*MsgWithdrawBondResponse) ProtoMessage()
func (*MsgWithdrawBondResponse) Reset ¶
func (m *MsgWithdrawBondResponse) Reset()
func (*MsgWithdrawBondResponse) Size ¶
func (m *MsgWithdrawBondResponse) Size() (n int)
func (*MsgWithdrawBondResponse) String ¶
func (m *MsgWithdrawBondResponse) String() string
func (*MsgWithdrawBondResponse) Unmarshal ¶
func (m *MsgWithdrawBondResponse) Unmarshal(dAtA []byte) error
func (*MsgWithdrawBondResponse) XXX_DiscardUnknown ¶
func (m *MsgWithdrawBondResponse) XXX_DiscardUnknown()
func (*MsgWithdrawBondResponse) XXX_Marshal ¶
func (m *MsgWithdrawBondResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgWithdrawBondResponse) XXX_Merge ¶
func (m *MsgWithdrawBondResponse) XXX_Merge(src proto.Message)
func (*MsgWithdrawBondResponse) XXX_Size ¶
func (m *MsgWithdrawBondResponse) XXX_Size() int
func (*MsgWithdrawBondResponse) XXX_Unmarshal ¶
func (m *MsgWithdrawBondResponse) XXX_Unmarshal(b []byte) error
type Params ¶
type Params struct { // max_bond_amount is maximum amount to bond MaxBondAmount types.Coin `` /* 138-byte string literal not displayed */ }
Params defines the bond module parameters
func DefaultParams ¶
func DefaultParams() Params
DefaultParams returns default evm parameters ExtraEIPs is empty to prevent overriding the latest hard fork instruction set
func (*Params) Descriptor ¶
func (*Params) GetMaxBondAmount ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs returns the parameter set pairs.
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type QueryClient ¶
type QueryClient interface { // Params queries bonds module params. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) // Bonds queries bonds list. Bonds(ctx context.Context, in *QueryGetBondsRequest, opts ...grpc.CallOption) (*QueryGetBondsResponse, error) // GetBondById GetBondByID(ctx context.Context, in *QueryGetBondByIDRequest, opts ...grpc.CallOption) (*QueryGetBondByIDResponse, error) // Get Bonds List by Owner GetBondsByOwner(ctx context.Context, in *QueryGetBondsByOwnerRequest, opts ...grpc.CallOption) (*QueryGetBondsByOwnerResponse, error) // Get Bonds module balance GetBondsModuleBalance(ctx context.Context, in *QueryGetBondModuleBalanceRequest, opts ...grpc.CallOption) (*QueryGetBondModuleBalanceResponse, error) }
QueryClient is the client API for Query service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewQueryClient ¶
func NewQueryClient(cc grpc1.ClientConn) QueryClient
type QueryGetBondByIDRequest ¶
type QueryGetBondByIDRequest struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" json:"id" yaml:"id"`
}
QueryGetBondByID
func (*QueryGetBondByIDRequest) Descriptor ¶
func (*QueryGetBondByIDRequest) Descriptor() ([]byte, []int)
func (*QueryGetBondByIDRequest) GetId ¶ added in v0.8.0
func (m *QueryGetBondByIDRequest) GetId() string
func (*QueryGetBondByIDRequest) Marshal ¶
func (m *QueryGetBondByIDRequest) Marshal() (dAtA []byte, err error)
func (*QueryGetBondByIDRequest) MarshalTo ¶
func (m *QueryGetBondByIDRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetBondByIDRequest) MarshalToSizedBuffer ¶
func (m *QueryGetBondByIDRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetBondByIDRequest) ProtoMessage ¶
func (*QueryGetBondByIDRequest) ProtoMessage()
func (*QueryGetBondByIDRequest) Reset ¶
func (m *QueryGetBondByIDRequest) Reset()
func (*QueryGetBondByIDRequest) Size ¶
func (m *QueryGetBondByIDRequest) Size() (n int)
func (*QueryGetBondByIDRequest) String ¶
func (m *QueryGetBondByIDRequest) String() string
func (*QueryGetBondByIDRequest) Unmarshal ¶
func (m *QueryGetBondByIDRequest) Unmarshal(dAtA []byte) error
func (*QueryGetBondByIDRequest) XXX_DiscardUnknown ¶
func (m *QueryGetBondByIDRequest) XXX_DiscardUnknown()
func (*QueryGetBondByIDRequest) XXX_Marshal ¶
func (m *QueryGetBondByIDRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetBondByIDRequest) XXX_Merge ¶
func (m *QueryGetBondByIDRequest) XXX_Merge(src proto.Message)
func (*QueryGetBondByIDRequest) XXX_Size ¶
func (m *QueryGetBondByIDRequest) XXX_Size() int
func (*QueryGetBondByIDRequest) XXX_Unmarshal ¶
func (m *QueryGetBondByIDRequest) XXX_Unmarshal(b []byte) error
type QueryGetBondByIDResponse ¶
type QueryGetBondByIDResponse struct {
Bond *Bond `protobuf:"bytes,1,opt,name=bond,proto3" json:"bond,omitempty" json:"bond" yaml:"bond"`
}
QueryGetBondByIDResponse returns QueryGetBondByID query response
func (*QueryGetBondByIDResponse) Descriptor ¶
func (*QueryGetBondByIDResponse) Descriptor() ([]byte, []int)
func (*QueryGetBondByIDResponse) GetBond ¶
func (m *QueryGetBondByIDResponse) GetBond() *Bond
func (*QueryGetBondByIDResponse) Marshal ¶
func (m *QueryGetBondByIDResponse) Marshal() (dAtA []byte, err error)
func (*QueryGetBondByIDResponse) MarshalTo ¶
func (m *QueryGetBondByIDResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetBondByIDResponse) MarshalToSizedBuffer ¶
func (m *QueryGetBondByIDResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetBondByIDResponse) ProtoMessage ¶
func (*QueryGetBondByIDResponse) ProtoMessage()
func (*QueryGetBondByIDResponse) Reset ¶
func (m *QueryGetBondByIDResponse) Reset()
func (*QueryGetBondByIDResponse) Size ¶
func (m *QueryGetBondByIDResponse) Size() (n int)
func (*QueryGetBondByIDResponse) String ¶
func (m *QueryGetBondByIDResponse) String() string
func (*QueryGetBondByIDResponse) Unmarshal ¶
func (m *QueryGetBondByIDResponse) Unmarshal(dAtA []byte) error
func (*QueryGetBondByIDResponse) XXX_DiscardUnknown ¶
func (m *QueryGetBondByIDResponse) XXX_DiscardUnknown()
func (*QueryGetBondByIDResponse) XXX_Marshal ¶
func (m *QueryGetBondByIDResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetBondByIDResponse) XXX_Merge ¶
func (m *QueryGetBondByIDResponse) XXX_Merge(src proto.Message)
func (*QueryGetBondByIDResponse) XXX_Size ¶
func (m *QueryGetBondByIDResponse) XXX_Size() int
func (*QueryGetBondByIDResponse) XXX_Unmarshal ¶
func (m *QueryGetBondByIDResponse) XXX_Unmarshal(b []byte) error
type QueryGetBondModuleBalanceRequest ¶
type QueryGetBondModuleBalanceRequest struct { }
QueryGetBondModuleBalanceRequest is request type for bond module balance rpc method
func (*QueryGetBondModuleBalanceRequest) Descriptor ¶
func (*QueryGetBondModuleBalanceRequest) Descriptor() ([]byte, []int)
func (*QueryGetBondModuleBalanceRequest) Marshal ¶
func (m *QueryGetBondModuleBalanceRequest) Marshal() (dAtA []byte, err error)
func (*QueryGetBondModuleBalanceRequest) MarshalTo ¶
func (m *QueryGetBondModuleBalanceRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetBondModuleBalanceRequest) MarshalToSizedBuffer ¶
func (m *QueryGetBondModuleBalanceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetBondModuleBalanceRequest) ProtoMessage ¶
func (*QueryGetBondModuleBalanceRequest) ProtoMessage()
func (*QueryGetBondModuleBalanceRequest) Reset ¶
func (m *QueryGetBondModuleBalanceRequest) Reset()
func (*QueryGetBondModuleBalanceRequest) Size ¶
func (m *QueryGetBondModuleBalanceRequest) Size() (n int)
func (*QueryGetBondModuleBalanceRequest) String ¶
func (m *QueryGetBondModuleBalanceRequest) String() string
func (*QueryGetBondModuleBalanceRequest) Unmarshal ¶
func (m *QueryGetBondModuleBalanceRequest) Unmarshal(dAtA []byte) error
func (*QueryGetBondModuleBalanceRequest) XXX_DiscardUnknown ¶
func (m *QueryGetBondModuleBalanceRequest) XXX_DiscardUnknown()
func (*QueryGetBondModuleBalanceRequest) XXX_Marshal ¶
func (m *QueryGetBondModuleBalanceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetBondModuleBalanceRequest) XXX_Merge ¶
func (m *QueryGetBondModuleBalanceRequest) XXX_Merge(src proto.Message)
func (*QueryGetBondModuleBalanceRequest) XXX_Size ¶
func (m *QueryGetBondModuleBalanceRequest) XXX_Size() int
func (*QueryGetBondModuleBalanceRequest) XXX_Unmarshal ¶
func (m *QueryGetBondModuleBalanceRequest) XXX_Unmarshal(b []byte) error
type QueryGetBondModuleBalanceResponse ¶
type QueryGetBondModuleBalanceResponse struct {
Balance github_com_cosmos_cosmos_sdk_types.Coins `` /* 137-byte string literal not displayed */
}
QueryGetBondModuleBalanceResponse is the response type for bond module balance rpc method
func (*QueryGetBondModuleBalanceResponse) Descriptor ¶
func (*QueryGetBondModuleBalanceResponse) Descriptor() ([]byte, []int)
func (*QueryGetBondModuleBalanceResponse) GetBalance ¶
func (m *QueryGetBondModuleBalanceResponse) GetBalance() github_com_cosmos_cosmos_sdk_types.Coins
func (*QueryGetBondModuleBalanceResponse) Marshal ¶
func (m *QueryGetBondModuleBalanceResponse) Marshal() (dAtA []byte, err error)
func (*QueryGetBondModuleBalanceResponse) MarshalTo ¶
func (m *QueryGetBondModuleBalanceResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetBondModuleBalanceResponse) MarshalToSizedBuffer ¶
func (m *QueryGetBondModuleBalanceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetBondModuleBalanceResponse) ProtoMessage ¶
func (*QueryGetBondModuleBalanceResponse) ProtoMessage()
func (*QueryGetBondModuleBalanceResponse) Reset ¶
func (m *QueryGetBondModuleBalanceResponse) Reset()
func (*QueryGetBondModuleBalanceResponse) Size ¶
func (m *QueryGetBondModuleBalanceResponse) Size() (n int)
func (*QueryGetBondModuleBalanceResponse) String ¶
func (m *QueryGetBondModuleBalanceResponse) String() string
func (*QueryGetBondModuleBalanceResponse) Unmarshal ¶
func (m *QueryGetBondModuleBalanceResponse) Unmarshal(dAtA []byte) error
func (*QueryGetBondModuleBalanceResponse) XXX_DiscardUnknown ¶
func (m *QueryGetBondModuleBalanceResponse) XXX_DiscardUnknown()
func (*QueryGetBondModuleBalanceResponse) XXX_Marshal ¶
func (m *QueryGetBondModuleBalanceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetBondModuleBalanceResponse) XXX_Merge ¶
func (m *QueryGetBondModuleBalanceResponse) XXX_Merge(src proto.Message)
func (*QueryGetBondModuleBalanceResponse) XXX_Size ¶
func (m *QueryGetBondModuleBalanceResponse) XXX_Size() int
func (*QueryGetBondModuleBalanceResponse) XXX_Unmarshal ¶
func (m *QueryGetBondModuleBalanceResponse) XXX_Unmarshal(b []byte) error
type QueryGetBondsByOwnerRequest ¶
type QueryGetBondsByOwnerRequest struct { Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` // pagination defines the pagination in the response. Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryGetBondsByOwnerRequest is request type for Query/GetBondsByOwner RPC Method
func (*QueryGetBondsByOwnerRequest) Descriptor ¶
func (*QueryGetBondsByOwnerRequest) Descriptor() ([]byte, []int)
func (*QueryGetBondsByOwnerRequest) GetOwner ¶
func (m *QueryGetBondsByOwnerRequest) GetOwner() string
func (*QueryGetBondsByOwnerRequest) GetPagination ¶
func (m *QueryGetBondsByOwnerRequest) GetPagination() *query.PageResponse
func (*QueryGetBondsByOwnerRequest) Marshal ¶
func (m *QueryGetBondsByOwnerRequest) Marshal() (dAtA []byte, err error)
func (*QueryGetBondsByOwnerRequest) MarshalTo ¶
func (m *QueryGetBondsByOwnerRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetBondsByOwnerRequest) MarshalToSizedBuffer ¶
func (m *QueryGetBondsByOwnerRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetBondsByOwnerRequest) ProtoMessage ¶
func (*QueryGetBondsByOwnerRequest) ProtoMessage()
func (*QueryGetBondsByOwnerRequest) Reset ¶
func (m *QueryGetBondsByOwnerRequest) Reset()
func (*QueryGetBondsByOwnerRequest) Size ¶
func (m *QueryGetBondsByOwnerRequest) Size() (n int)
func (*QueryGetBondsByOwnerRequest) String ¶
func (m *QueryGetBondsByOwnerRequest) String() string
func (*QueryGetBondsByOwnerRequest) Unmarshal ¶
func (m *QueryGetBondsByOwnerRequest) Unmarshal(dAtA []byte) error
func (*QueryGetBondsByOwnerRequest) XXX_DiscardUnknown ¶
func (m *QueryGetBondsByOwnerRequest) XXX_DiscardUnknown()
func (*QueryGetBondsByOwnerRequest) XXX_Marshal ¶
func (m *QueryGetBondsByOwnerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetBondsByOwnerRequest) XXX_Merge ¶
func (m *QueryGetBondsByOwnerRequest) XXX_Merge(src proto.Message)
func (*QueryGetBondsByOwnerRequest) XXX_Size ¶
func (m *QueryGetBondsByOwnerRequest) XXX_Size() int
func (*QueryGetBondsByOwnerRequest) XXX_Unmarshal ¶
func (m *QueryGetBondsByOwnerRequest) XXX_Unmarshal(b []byte) error
type QueryGetBondsByOwnerResponse ¶
type QueryGetBondsByOwnerResponse struct { Bonds []Bond `protobuf:"bytes,1,rep,name=bonds,proto3" json:"bonds" json:"bonds" yaml:"bonds"` // pagination defines the pagination in the response. Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryGetBondsByOwnerResponse is response type for Query/GetBondsByOwner RPC Method
func (*QueryGetBondsByOwnerResponse) Descriptor ¶
func (*QueryGetBondsByOwnerResponse) Descriptor() ([]byte, []int)
func (*QueryGetBondsByOwnerResponse) GetBonds ¶
func (m *QueryGetBondsByOwnerResponse) GetBonds() []Bond
func (*QueryGetBondsByOwnerResponse) GetPagination ¶
func (m *QueryGetBondsByOwnerResponse) GetPagination() *query.PageResponse
func (*QueryGetBondsByOwnerResponse) Marshal ¶
func (m *QueryGetBondsByOwnerResponse) Marshal() (dAtA []byte, err error)
func (*QueryGetBondsByOwnerResponse) MarshalTo ¶
func (m *QueryGetBondsByOwnerResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetBondsByOwnerResponse) MarshalToSizedBuffer ¶
func (m *QueryGetBondsByOwnerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetBondsByOwnerResponse) ProtoMessage ¶
func (*QueryGetBondsByOwnerResponse) ProtoMessage()
func (*QueryGetBondsByOwnerResponse) Reset ¶
func (m *QueryGetBondsByOwnerResponse) Reset()
func (*QueryGetBondsByOwnerResponse) Size ¶
func (m *QueryGetBondsByOwnerResponse) Size() (n int)
func (*QueryGetBondsByOwnerResponse) String ¶
func (m *QueryGetBondsByOwnerResponse) String() string
func (*QueryGetBondsByOwnerResponse) Unmarshal ¶
func (m *QueryGetBondsByOwnerResponse) Unmarshal(dAtA []byte) error
func (*QueryGetBondsByOwnerResponse) XXX_DiscardUnknown ¶
func (m *QueryGetBondsByOwnerResponse) XXX_DiscardUnknown()
func (*QueryGetBondsByOwnerResponse) XXX_Marshal ¶
func (m *QueryGetBondsByOwnerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetBondsByOwnerResponse) XXX_Merge ¶
func (m *QueryGetBondsByOwnerResponse) XXX_Merge(src proto.Message)
func (*QueryGetBondsByOwnerResponse) XXX_Size ¶
func (m *QueryGetBondsByOwnerResponse) XXX_Size() int
func (*QueryGetBondsByOwnerResponse) XXX_Unmarshal ¶
func (m *QueryGetBondsByOwnerResponse) XXX_Unmarshal(b []byte) error
type QueryGetBondsRequest ¶
type QueryGetBondsRequest struct { // pagination defines an optional pagination for the request. Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryGetBondById queries a bond by bond-id.
func (*QueryGetBondsRequest) Descriptor ¶
func (*QueryGetBondsRequest) Descriptor() ([]byte, []int)
func (*QueryGetBondsRequest) GetPagination ¶
func (m *QueryGetBondsRequest) GetPagination() *query.PageRequest
func (*QueryGetBondsRequest) Marshal ¶
func (m *QueryGetBondsRequest) Marshal() (dAtA []byte, err error)
func (*QueryGetBondsRequest) MarshalTo ¶
func (m *QueryGetBondsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetBondsRequest) MarshalToSizedBuffer ¶
func (m *QueryGetBondsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetBondsRequest) ProtoMessage ¶
func (*QueryGetBondsRequest) ProtoMessage()
func (*QueryGetBondsRequest) Reset ¶
func (m *QueryGetBondsRequest) Reset()
func (*QueryGetBondsRequest) Size ¶
func (m *QueryGetBondsRequest) Size() (n int)
func (*QueryGetBondsRequest) String ¶
func (m *QueryGetBondsRequest) String() string
func (*QueryGetBondsRequest) Unmarshal ¶
func (m *QueryGetBondsRequest) Unmarshal(dAtA []byte) error
func (*QueryGetBondsRequest) XXX_DiscardUnknown ¶
func (m *QueryGetBondsRequest) XXX_DiscardUnknown()
func (*QueryGetBondsRequest) XXX_Marshal ¶
func (m *QueryGetBondsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetBondsRequest) XXX_Merge ¶
func (m *QueryGetBondsRequest) XXX_Merge(src proto.Message)
func (*QueryGetBondsRequest) XXX_Size ¶
func (m *QueryGetBondsRequest) XXX_Size() int
func (*QueryGetBondsRequest) XXX_Unmarshal ¶
func (m *QueryGetBondsRequest) XXX_Unmarshal(b []byte) error
type QueryGetBondsResponse ¶
type QueryGetBondsResponse struct { Bonds []*Bond `protobuf:"bytes,1,rep,name=bonds,proto3" json:"bonds,omitempty" json:"bonds" yaml:"bonds"` // pagination defines the pagination in the response. Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryGetBondsResponse is response type for get the bonds by bond-id
func (*QueryGetBondsResponse) Descriptor ¶
func (*QueryGetBondsResponse) Descriptor() ([]byte, []int)
func (*QueryGetBondsResponse) GetBonds ¶
func (m *QueryGetBondsResponse) GetBonds() []*Bond
func (*QueryGetBondsResponse) GetPagination ¶
func (m *QueryGetBondsResponse) GetPagination() *query.PageResponse
func (*QueryGetBondsResponse) Marshal ¶
func (m *QueryGetBondsResponse) Marshal() (dAtA []byte, err error)
func (*QueryGetBondsResponse) MarshalTo ¶
func (m *QueryGetBondsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetBondsResponse) MarshalToSizedBuffer ¶
func (m *QueryGetBondsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetBondsResponse) ProtoMessage ¶
func (*QueryGetBondsResponse) ProtoMessage()
func (*QueryGetBondsResponse) Reset ¶
func (m *QueryGetBondsResponse) Reset()
func (*QueryGetBondsResponse) Size ¶
func (m *QueryGetBondsResponse) Size() (n int)
func (*QueryGetBondsResponse) String ¶
func (m *QueryGetBondsResponse) String() string
func (*QueryGetBondsResponse) Unmarshal ¶
func (m *QueryGetBondsResponse) Unmarshal(dAtA []byte) error
func (*QueryGetBondsResponse) XXX_DiscardUnknown ¶
func (m *QueryGetBondsResponse) XXX_DiscardUnknown()
func (*QueryGetBondsResponse) XXX_Marshal ¶
func (m *QueryGetBondsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetBondsResponse) XXX_Merge ¶
func (m *QueryGetBondsResponse) XXX_Merge(src proto.Message)
func (*QueryGetBondsResponse) XXX_Size ¶
func (m *QueryGetBondsResponse) XXX_Size() int
func (*QueryGetBondsResponse) XXX_Unmarshal ¶
func (m *QueryGetBondsResponse) XXX_Unmarshal(b []byte) error
type QueryParamsRequest ¶
type QueryParamsRequest struct { }
QueryParamsRequest is request for query the bond module params
func (*QueryParamsRequest) Descriptor ¶
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
func (*QueryParamsRequest) Marshal ¶
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryParamsRequest) MarshalTo ¶
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsRequest) MarshalToSizedBuffer ¶
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsRequest) ProtoMessage ¶
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) Reset ¶
func (m *QueryParamsRequest) Reset()
func (*QueryParamsRequest) Size ¶
func (m *QueryParamsRequest) Size() (n int)
func (*QueryParamsRequest) String ¶
func (m *QueryParamsRequest) String() string
func (*QueryParamsRequest) Unmarshal ¶
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryParamsRequest) XXX_DiscardUnknown ¶
func (m *QueryParamsRequest) XXX_DiscardUnknown()
func (*QueryParamsRequest) XXX_Marshal ¶
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsRequest) XXX_Merge ¶
func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
func (*QueryParamsRequest) XXX_Size ¶
func (m *QueryParamsRequest) XXX_Size() int
func (*QueryParamsRequest) XXX_Unmarshal ¶
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
type QueryParamsResponse ¶
type QueryParamsResponse struct {
Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty" json:"params" yaml:"params"`
}
QueryParamsResponse returns response type of bond module params
func (*QueryParamsResponse) Descriptor ¶
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) GetParams ¶
func (m *QueryParamsResponse) GetParams() *Params
func (*QueryParamsResponse) Marshal ¶
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryParamsResponse) MarshalTo ¶
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsResponse) MarshalToSizedBuffer ¶
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsResponse) ProtoMessage ¶
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) Reset ¶
func (m *QueryParamsResponse) Reset()
func (*QueryParamsResponse) Size ¶
func (m *QueryParamsResponse) Size() (n int)
func (*QueryParamsResponse) String ¶
func (m *QueryParamsResponse) String() string
func (*QueryParamsResponse) Unmarshal ¶
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryParamsResponse) XXX_DiscardUnknown ¶
func (m *QueryParamsResponse) XXX_DiscardUnknown()
func (*QueryParamsResponse) XXX_Marshal ¶
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsResponse) XXX_Merge ¶
func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
func (*QueryParamsResponse) XXX_Size ¶
func (m *QueryParamsResponse) XXX_Size() int
func (*QueryParamsResponse) XXX_Unmarshal ¶
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // Params queries bonds module params. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) // Bonds queries bonds list. Bonds(context.Context, *QueryGetBondsRequest) (*QueryGetBondsResponse, error) // GetBondById GetBondByID(context.Context, *QueryGetBondByIDRequest) (*QueryGetBondByIDResponse, error) // Get Bonds List by Owner GetBondsByOwner(context.Context, *QueryGetBondsByOwnerRequest) (*QueryGetBondsByOwnerResponse, error) // Get Bonds module balance GetBondsModuleBalance(context.Context, *QueryGetBondModuleBalanceRequest) (*QueryGetBondModuleBalanceResponse, error) }
QueryServer is the server API for Query service.
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) CancelBond ¶
func (*UnimplementedMsgServer) CancelBond(ctx context.Context, req *MsgCancelBond) (*MsgCancelBondResponse, error)
func (*UnimplementedMsgServer) CreateBond ¶
func (*UnimplementedMsgServer) CreateBond(ctx context.Context, req *MsgCreateBond) (*MsgCreateBondResponse, error)
func (*UnimplementedMsgServer) RefillBond ¶
func (*UnimplementedMsgServer) RefillBond(ctx context.Context, req *MsgRefillBond) (*MsgRefillBondResponse, error)
func (*UnimplementedMsgServer) WithdrawBond ¶
func (*UnimplementedMsgServer) WithdrawBond(ctx context.Context, req *MsgWithdrawBond) (*MsgWithdrawBondResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Bonds ¶
func (*UnimplementedQueryServer) Bonds(ctx context.Context, req *QueryGetBondsRequest) (*QueryGetBondsResponse, error)
func (*UnimplementedQueryServer) GetBondByID ¶
func (*UnimplementedQueryServer) GetBondByID(ctx context.Context, req *QueryGetBondByIDRequest) (*QueryGetBondByIDResponse, error)
func (*UnimplementedQueryServer) GetBondsByOwner ¶
func (*UnimplementedQueryServer) GetBondsByOwner(ctx context.Context, req *QueryGetBondsByOwnerRequest) (*QueryGetBondsByOwnerResponse, error)
func (*UnimplementedQueryServer) GetBondsModuleBalance ¶
func (*UnimplementedQueryServer) GetBondsModuleBalance(ctx context.Context, req *QueryGetBondModuleBalanceRequest) (*QueryGetBondModuleBalanceResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)