Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterInterfaces(registry types.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- 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 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 QueryServer
- type UnimplementedMsgServer
- 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 ( 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 RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
Types ¶
type GenesisState ¶
type GenesisState struct { }
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) 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 { // 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 { // 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 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 { }
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 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)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.