Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- 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 GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- 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 (gs *GenesisState) Validate() 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 MsgBurnHeldBalance
- func (*MsgBurnHeldBalance) Descriptor() ([]byte, []int)
- func (m *MsgBurnHeldBalance) GetAuthority() string
- func (m *MsgBurnHeldBalance) GetBurnCoins() github_com_cosmos_cosmos_sdk_types.Coins
- func (msg *MsgBurnHeldBalance) GetSigners() []sdk.AccAddress
- func (m *MsgBurnHeldBalance) Marshal() (dAtA []byte, err error)
- func (m *MsgBurnHeldBalance) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgBurnHeldBalance) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgBurnHeldBalance) ProtoMessage()
- func (m *MsgBurnHeldBalance) Reset()
- func (msg *MsgBurnHeldBalance) Route() string
- func (m *MsgBurnHeldBalance) Size() (n int)
- func (m *MsgBurnHeldBalance) String() string
- func (msg *MsgBurnHeldBalance) Type() string
- func (m *MsgBurnHeldBalance) Unmarshal(dAtA []byte) error
- func (msg *MsgBurnHeldBalance) Validate() error
- func (m *MsgBurnHeldBalance) XXX_DiscardUnknown()
- func (m *MsgBurnHeldBalance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgBurnHeldBalance) XXX_Merge(src proto.Message)
- func (m *MsgBurnHeldBalance) XXX_Size() int
- func (m *MsgBurnHeldBalance) XXX_Unmarshal(b []byte) error
- type MsgBurnHeldBalanceResponse
- func (*MsgBurnHeldBalanceResponse) Descriptor() ([]byte, []int)
- func (m *MsgBurnHeldBalanceResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgBurnHeldBalanceResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgBurnHeldBalanceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgBurnHeldBalanceResponse) ProtoMessage()
- func (m *MsgBurnHeldBalanceResponse) Reset()
- func (m *MsgBurnHeldBalanceResponse) Size() (n int)
- func (m *MsgBurnHeldBalanceResponse) String() string
- func (m *MsgBurnHeldBalanceResponse) Unmarshal(dAtA []byte) error
- func (m *MsgBurnHeldBalanceResponse) XXX_DiscardUnknown()
- func (m *MsgBurnHeldBalanceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgBurnHeldBalanceResponse) XXX_Merge(src proto.Message)
- func (m *MsgBurnHeldBalanceResponse) XXX_Size() int
- func (m *MsgBurnHeldBalanceResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgPayout
- func (*MsgPayout) Descriptor() ([]byte, []int)
- func (m *MsgPayout) GetAuthority() string
- func (m *MsgPayout) GetPayoutPairs() []PayoutPair
- func (msg *MsgPayout) GetSigners() []sdk.AccAddress
- func (m *MsgPayout) Marshal() (dAtA []byte, err error)
- func (m *MsgPayout) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgPayout) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgPayout) ProtoMessage()
- func (m *MsgPayout) Reset()
- func (msg *MsgPayout) Route() string
- func (m *MsgPayout) Size() (n int)
- func (m *MsgPayout) String() string
- func (msg *MsgPayout) Type() string
- func (m *MsgPayout) Unmarshal(dAtA []byte) error
- func (msg *MsgPayout) Validate() error
- func (m *MsgPayout) XXX_DiscardUnknown()
- func (m *MsgPayout) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgPayout) XXX_Merge(src proto.Message)
- func (m *MsgPayout) XXX_Size() int
- func (m *MsgPayout) XXX_Unmarshal(b []byte) error
- type MsgPayoutResponse
- func (*MsgPayoutResponse) Descriptor() ([]byte, []int)
- func (m *MsgPayoutResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgPayoutResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgPayoutResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgPayoutResponse) ProtoMessage()
- func (m *MsgPayoutResponse) Reset()
- func (m *MsgPayoutResponse) Size() (n int)
- func (m *MsgPayoutResponse) String() string
- func (m *MsgPayoutResponse) Unmarshal(dAtA []byte) error
- func (m *MsgPayoutResponse) XXX_DiscardUnknown()
- func (m *MsgPayoutResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgPayoutResponse) XXX_Merge(src proto.Message)
- func (m *MsgPayoutResponse) XXX_Size() int
- func (m *MsgPayoutResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgUpdateParams
- func (*MsgUpdateParams) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParams) GetAuthority() string
- func (m *MsgUpdateParams) GetParams() Params
- func (msg *MsgUpdateParams) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParams) ProtoMessage()
- func (m *MsgUpdateParams) Reset()
- func (msg *MsgUpdateParams) Route() string
- func (m *MsgUpdateParams) Size() (n int)
- func (m *MsgUpdateParams) String() string
- func (msg *MsgUpdateParams) Type() string
- func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
- func (msg *MsgUpdateParams) Validate() error
- func (m *MsgUpdateParams) XXX_DiscardUnknown()
- func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParams) XXX_Size() int
- func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
- type MsgUpdateParamsResponse
- func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParamsResponse) ProtoMessage()
- func (m *MsgUpdateParamsResponse) Reset()
- func (m *MsgUpdateParamsResponse) Size() (n int)
- func (m *MsgUpdateParamsResponse) String() string
- func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParamsResponse) XXX_Size() int
- func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (this *Params) Equal(that interface{}) bool
- 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 (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (p *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 PayoutPair
- func (*PayoutPair) Descriptor() ([]byte, []int)
- func (m *PayoutPair) GetAddress() string
- func (m *PayoutPair) GetCoin() github_com_cosmos_cosmos_sdk_types.Coin
- func (m *PayoutPair) Marshal() (dAtA []byte, err error)
- func (m *PayoutPair) MarshalTo(dAtA []byte) (int, error)
- func (m *PayoutPair) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PayoutPair) ProtoMessage()
- func (m *PayoutPair) Reset()
- func (m *PayoutPair) Size() (n int)
- func (m *PayoutPair) String() string
- func (m *PayoutPair) Unmarshal(dAtA []byte) error
- func (m *PayoutPair) XXX_DiscardUnknown()
- func (m *PayoutPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PayoutPair) XXX_Merge(src proto.Message)
- func (m *PayoutPair) XXX_Size() int
- func (m *PayoutPair) XXX_Unmarshal(b []byte) error
- type QueryClient
- 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) BurnHeldBalance(ctx context.Context, req *MsgBurnHeldBalance) (*MsgBurnHeldBalanceResponse, error)
- func (*UnimplementedMsgServer) Payout(ctx context.Context, req *MsgPayout) (*MsgPayoutResponse, error)
- func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
- type UnimplementedQueryServer
Constants ¶
const ( ModuleName = "manifest" StoreKey = ModuleName QuerierRoute = ModuleName )
Variables ¶
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 ParamsKey = collections.NewPrefix(0)
ParamsKey saves the current module params.
Functions ¶
func RegisterInterfaces ¶
func RegisterInterfaces(registry types.InterfaceRegistry)
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
RegisterLegacyAminoCodec registers concrete types on the LegacyAmino codec
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 GenesisState ¶
type GenesisState struct { // Params defines all the paramaters of the module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` }
GenesisState defines the module genesis state
func NewGenesisState ¶
func NewGenesisState() *GenesisState
NewGenesisState creates a new genesis state with default values.
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
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) Validate ¶
func (gs *GenesisState) Validate() error
Validate performs basic genesis state validation returning an error upon any
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 MsgBurnHeldBalance ¶
type MsgBurnHeldBalance struct { // sender is the address of the tokenholder. Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // burn_coins are the coins to be burned by the tokenholder. BurnCoins github_com_cosmos_cosmos_sdk_types.Coins `` /* 132-byte string literal not displayed */ }
MsgPayout is the Msg/BurnHeldBalance request type.
func NewMsgBurnHeldBalance ¶
func NewMsgBurnHeldBalance( sender sdk.Address, coins sdk.Coins, ) *MsgBurnHeldBalance
func (*MsgBurnHeldBalance) Descriptor ¶
func (*MsgBurnHeldBalance) Descriptor() ([]byte, []int)
func (*MsgBurnHeldBalance) GetAuthority ¶
func (m *MsgBurnHeldBalance) GetAuthority() string
func (*MsgBurnHeldBalance) GetBurnCoins ¶
func (m *MsgBurnHeldBalance) GetBurnCoins() github_com_cosmos_cosmos_sdk_types.Coins
func (*MsgBurnHeldBalance) GetSigners ¶
func (msg *MsgBurnHeldBalance) GetSigners() []sdk.AccAddress
GetSigners returns the expected signers for the message.
func (*MsgBurnHeldBalance) Marshal ¶
func (m *MsgBurnHeldBalance) Marshal() (dAtA []byte, err error)
func (*MsgBurnHeldBalance) MarshalTo ¶
func (m *MsgBurnHeldBalance) MarshalTo(dAtA []byte) (int, error)
func (*MsgBurnHeldBalance) MarshalToSizedBuffer ¶
func (m *MsgBurnHeldBalance) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgBurnHeldBalance) ProtoMessage ¶
func (*MsgBurnHeldBalance) ProtoMessage()
func (*MsgBurnHeldBalance) Reset ¶
func (m *MsgBurnHeldBalance) Reset()
func (*MsgBurnHeldBalance) Route ¶
func (msg *MsgBurnHeldBalance) Route() string
Route returns the name of the module
func (*MsgBurnHeldBalance) Size ¶
func (m *MsgBurnHeldBalance) Size() (n int)
func (*MsgBurnHeldBalance) String ¶
func (m *MsgBurnHeldBalance) String() string
func (*MsgBurnHeldBalance) Type ¶
func (msg *MsgBurnHeldBalance) Type() string
Type returns the action
func (*MsgBurnHeldBalance) Unmarshal ¶
func (m *MsgBurnHeldBalance) Unmarshal(dAtA []byte) error
func (*MsgBurnHeldBalance) Validate ¶
func (msg *MsgBurnHeldBalance) Validate() error
Validate does a sanity check on the provided data.
func (*MsgBurnHeldBalance) XXX_DiscardUnknown ¶
func (m *MsgBurnHeldBalance) XXX_DiscardUnknown()
func (*MsgBurnHeldBalance) XXX_Marshal ¶
func (m *MsgBurnHeldBalance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgBurnHeldBalance) XXX_Merge ¶
func (m *MsgBurnHeldBalance) XXX_Merge(src proto.Message)
func (*MsgBurnHeldBalance) XXX_Size ¶
func (m *MsgBurnHeldBalance) XXX_Size() int
func (*MsgBurnHeldBalance) XXX_Unmarshal ¶
func (m *MsgBurnHeldBalance) XXX_Unmarshal(b []byte) error
type MsgBurnHeldBalanceResponse ¶
type MsgBurnHeldBalanceResponse struct { }
MsgBurnHeldBalanceResponse defines the response structure for executing a MsgBurnHeldBalance message.
func (*MsgBurnHeldBalanceResponse) Descriptor ¶
func (*MsgBurnHeldBalanceResponse) Descriptor() ([]byte, []int)
func (*MsgBurnHeldBalanceResponse) Marshal ¶
func (m *MsgBurnHeldBalanceResponse) Marshal() (dAtA []byte, err error)
func (*MsgBurnHeldBalanceResponse) MarshalTo ¶
func (m *MsgBurnHeldBalanceResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgBurnHeldBalanceResponse) MarshalToSizedBuffer ¶
func (m *MsgBurnHeldBalanceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgBurnHeldBalanceResponse) ProtoMessage ¶
func (*MsgBurnHeldBalanceResponse) ProtoMessage()
func (*MsgBurnHeldBalanceResponse) Reset ¶
func (m *MsgBurnHeldBalanceResponse) Reset()
func (*MsgBurnHeldBalanceResponse) Size ¶
func (m *MsgBurnHeldBalanceResponse) Size() (n int)
func (*MsgBurnHeldBalanceResponse) String ¶
func (m *MsgBurnHeldBalanceResponse) String() string
func (*MsgBurnHeldBalanceResponse) Unmarshal ¶
func (m *MsgBurnHeldBalanceResponse) Unmarshal(dAtA []byte) error
func (*MsgBurnHeldBalanceResponse) XXX_DiscardUnknown ¶
func (m *MsgBurnHeldBalanceResponse) XXX_DiscardUnknown()
func (*MsgBurnHeldBalanceResponse) XXX_Marshal ¶
func (m *MsgBurnHeldBalanceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgBurnHeldBalanceResponse) XXX_Merge ¶
func (m *MsgBurnHeldBalanceResponse) XXX_Merge(src proto.Message)
func (*MsgBurnHeldBalanceResponse) XXX_Size ¶
func (m *MsgBurnHeldBalanceResponse) XXX_Size() int
func (*MsgBurnHeldBalanceResponse) XXX_Unmarshal ¶
func (m *MsgBurnHeldBalanceResponse) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { // UpdateParams defines a governance operation for updating the parameters. // // Since: cosmos-sdk 0.47 UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) // Payout allows the authority to manually pay out stakeholders. Payout(ctx context.Context, in *MsgPayout, opts ...grpc.CallOption) (*MsgPayoutResponse, error) // BurnHeldBalance allows a tokenholder to burn coins they own. BurnHeldBalance(ctx context.Context, in *MsgBurnHeldBalance, opts ...grpc.CallOption) (*MsgBurnHeldBalanceResponse, 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 MsgPayout ¶
type MsgPayout struct { // authority is the address of the controlling account. Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // payout_pairs are the pairs of addresses and coins to be paid out. PayoutPairs []PayoutPair `protobuf:"bytes,2,rep,name=payout_pairs,json=payoutPairs,proto3" json:"payout_pairs"` }
MsgPayout is the Msg/Payout request type.
func NewMsgPayout ¶
func NewMsgPayout( sender sdk.Address, payouts []PayoutPair, ) *MsgPayout
func (*MsgPayout) Descriptor ¶
func (*MsgPayout) GetAuthority ¶
func (*MsgPayout) GetPayoutPairs ¶
func (m *MsgPayout) GetPayoutPairs() []PayoutPair
func (*MsgPayout) GetSigners ¶
func (msg *MsgPayout) GetSigners() []sdk.AccAddress
GetSigners returns the expected signers for the message.
func (*MsgPayout) MarshalToSizedBuffer ¶
func (*MsgPayout) ProtoMessage ¶
func (*MsgPayout) ProtoMessage()
func (*MsgPayout) XXX_DiscardUnknown ¶
func (m *MsgPayout) XXX_DiscardUnknown()
func (*MsgPayout) XXX_Marshal ¶
func (*MsgPayout) XXX_Unmarshal ¶
type MsgPayoutResponse ¶
type MsgPayoutResponse struct { }
MsgPayoutResponse defines the response structure for executing a MsgPayout message.
func (*MsgPayoutResponse) Descriptor ¶
func (*MsgPayoutResponse) Descriptor() ([]byte, []int)
func (*MsgPayoutResponse) Marshal ¶
func (m *MsgPayoutResponse) Marshal() (dAtA []byte, err error)
func (*MsgPayoutResponse) MarshalTo ¶
func (m *MsgPayoutResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgPayoutResponse) MarshalToSizedBuffer ¶
func (m *MsgPayoutResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgPayoutResponse) ProtoMessage ¶
func (*MsgPayoutResponse) ProtoMessage()
func (*MsgPayoutResponse) Reset ¶
func (m *MsgPayoutResponse) Reset()
func (*MsgPayoutResponse) Size ¶
func (m *MsgPayoutResponse) Size() (n int)
func (*MsgPayoutResponse) String ¶
func (m *MsgPayoutResponse) String() string
func (*MsgPayoutResponse) Unmarshal ¶
func (m *MsgPayoutResponse) Unmarshal(dAtA []byte) error
func (*MsgPayoutResponse) XXX_DiscardUnknown ¶
func (m *MsgPayoutResponse) XXX_DiscardUnknown()
func (*MsgPayoutResponse) XXX_Marshal ¶
func (m *MsgPayoutResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgPayoutResponse) XXX_Merge ¶
func (m *MsgPayoutResponse) XXX_Merge(src proto.Message)
func (*MsgPayoutResponse) XXX_Size ¶
func (m *MsgPayoutResponse) XXX_Size() int
func (*MsgPayoutResponse) XXX_Unmarshal ¶
func (m *MsgPayoutResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { // UpdateParams defines a governance operation for updating the parameters. // // Since: cosmos-sdk 0.47 UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) // Payout allows the authority to manually pay out stakeholders. Payout(context.Context, *MsgPayout) (*MsgPayoutResponse, error) // BurnHeldBalance allows a tokenholder to burn coins they own. BurnHeldBalance(context.Context, *MsgBurnHeldBalance) (*MsgBurnHeldBalanceResponse, error) }
MsgServer is the server API for Msg service.
type MsgUpdateParams ¶
type MsgUpdateParams struct { // authority is the address of the controlling account. Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // params defines the parameters to update. // // NOTE: All parameters must be supplied. Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"` }
MsgUpdateParams is the Msg/UpdateParams request type.
Since: cosmos-sdk 0.47
func NewMsgUpdateParams ¶
func NewMsgUpdateParams( sender sdk.Address, ) *MsgUpdateParams
NewMsgUpdateParams creates new instance of MsgUpdateParams
func (*MsgUpdateParams) Descriptor ¶
func (*MsgUpdateParams) Descriptor() ([]byte, []int)
func (*MsgUpdateParams) GetAuthority ¶
func (m *MsgUpdateParams) GetAuthority() string
func (*MsgUpdateParams) GetParams ¶
func (m *MsgUpdateParams) GetParams() Params
func (*MsgUpdateParams) GetSigners ¶
func (msg *MsgUpdateParams) GetSigners() []sdk.AccAddress
GetSigners returns the expected signers for a MsgUpdateParams message.
func (*MsgUpdateParams) Marshal ¶
func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParams) MarshalToSizedBuffer ¶
func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParams) ProtoMessage ¶
func (*MsgUpdateParams) ProtoMessage()
func (*MsgUpdateParams) Reset ¶
func (m *MsgUpdateParams) Reset()
func (*MsgUpdateParams) Route ¶
func (msg *MsgUpdateParams) Route() string
Route returns the name of the module
func (*MsgUpdateParams) Size ¶
func (m *MsgUpdateParams) Size() (n int)
func (*MsgUpdateParams) String ¶
func (m *MsgUpdateParams) String() string
func (*MsgUpdateParams) Unmarshal ¶
func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
func (*MsgUpdateParams) Validate ¶
func (msg *MsgUpdateParams) Validate() error
Validate does a sanity check on the provided data.
func (*MsgUpdateParams) XXX_DiscardUnknown ¶
func (m *MsgUpdateParams) XXX_DiscardUnknown()
func (*MsgUpdateParams) XXX_Marshal ¶
func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParams) XXX_Merge ¶
func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
func (*MsgUpdateParams) XXX_Size ¶
func (m *MsgUpdateParams) XXX_Size() int
func (*MsgUpdateParams) XXX_Unmarshal ¶
func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
type MsgUpdateParamsResponse ¶
type MsgUpdateParamsResponse struct { }
MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.
Since: cosmos-sdk 0.47
func (*MsgUpdateParamsResponse) Descriptor ¶
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateParamsResponse) Marshal ¶
func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParamsResponse) MarshalTo ¶
func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) MarshalToSizedBuffer ¶
func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) ProtoMessage ¶
func (*MsgUpdateParamsResponse) ProtoMessage()
func (*MsgUpdateParamsResponse) Reset ¶
func (m *MsgUpdateParamsResponse) Reset()
func (*MsgUpdateParamsResponse) Size ¶
func (m *MsgUpdateParamsResponse) Size() (n int)
func (*MsgUpdateParamsResponse) String ¶
func (m *MsgUpdateParamsResponse) String() string
func (*MsgUpdateParamsResponse) Unmarshal ¶
func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateParamsResponse) XXX_DiscardUnknown ¶
func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
func (*MsgUpdateParamsResponse) XXX_Marshal ¶
func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParamsResponse) XXX_Merge ¶
func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateParamsResponse) XXX_Size ¶
func (m *MsgUpdateParamsResponse) XXX_Size() int
func (*MsgUpdateParamsResponse) XXX_Unmarshal ¶
func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
type Params ¶
type Params struct { }
Params defines the set of module parameters.
func (*Params) Descriptor ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type PayoutPair ¶
type PayoutPair struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Coin github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,2,opt,name=coin,proto3,casttype=github.com/cosmos/cosmos-sdk/types.Coin" json:"coin"` }
PayoutPair is the object that pairs an address with a coin to be paid out.
func NewPayoutPair ¶
func NewPayoutPair(addr sdk.AccAddress, denom string, amt int64) PayoutPair
func (*PayoutPair) Descriptor ¶
func (*PayoutPair) Descriptor() ([]byte, []int)
func (*PayoutPair) GetAddress ¶
func (m *PayoutPair) GetAddress() string
func (*PayoutPair) GetCoin ¶
func (m *PayoutPair) GetCoin() github_com_cosmos_cosmos_sdk_types.Coin
func (*PayoutPair) Marshal ¶
func (m *PayoutPair) Marshal() (dAtA []byte, err error)
func (*PayoutPair) MarshalToSizedBuffer ¶
func (m *PayoutPair) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PayoutPair) ProtoMessage ¶
func (*PayoutPair) ProtoMessage()
func (*PayoutPair) Reset ¶
func (m *PayoutPair) Reset()
func (*PayoutPair) Size ¶
func (m *PayoutPair) Size() (n int)
func (*PayoutPair) String ¶
func (m *PayoutPair) String() string
func (*PayoutPair) Unmarshal ¶
func (m *PayoutPair) Unmarshal(dAtA []byte) error
func (*PayoutPair) XXX_DiscardUnknown ¶
func (m *PayoutPair) XXX_DiscardUnknown()
func (*PayoutPair) XXX_Marshal ¶
func (m *PayoutPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PayoutPair) XXX_Merge ¶
func (m *PayoutPair) XXX_Merge(src proto.Message)
func (*PayoutPair) XXX_Size ¶
func (m *PayoutPair) XXX_Size() int
func (*PayoutPair) XXX_Unmarshal ¶
func (m *PayoutPair) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface { // Params queries all parameters of the module. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, 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 QueryParamsRequest ¶
type QueryParamsRequest struct { }
QueryParamsRequest is the request type for the Query/Params RPC method.
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 defines the parameters of the module. Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` }
QueryParamsResponse is the response type for the Query/Params RPC method.
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 all parameters of the module. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, 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) BurnHeldBalance ¶
func (*UnimplementedMsgServer) BurnHeldBalance(ctx context.Context, req *MsgBurnHeldBalance) (*MsgBurnHeldBalanceResponse, error)
func (*UnimplementedMsgServer) Payout ¶
func (*UnimplementedMsgServer) Payout(ctx context.Context, req *MsgPayout) (*MsgPayoutResponse, error)
func (*UnimplementedMsgServer) UpdateParams ¶
func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)