Documentation ¶
Index ¶
- Constants
- Variables
- func AddressFromBalancesStore(key []byte) sdk.AccAddress
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterCodec(cdc *codec.Codec)
- func RegisterInterfaces(registry types.InterfaceRegistry)
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- func ValidateGenesis(data GenesisState) error
- func ValidateInputsOutputs(inputs []Input, outputs []Output) error
- type AccountKeeper
- type Balance
- type GenesisBalancesIterator
- type GenesisState
- type Input
- func (*Input) Descriptor() ([]byte, []int)
- func (this *Input) Equal(that interface{}) bool
- func (m *Input) GetAddress() github_com_cosmos_cosmos_sdk_types.AccAddress
- func (m *Input) GetCoins() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *Input) Marshal() (dAtA []byte, err error)
- func (m *Input) MarshalTo(dAtA []byte) (int, error)
- func (m *Input) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Input) ProtoMessage()
- func (m *Input) Reset()
- func (m *Input) Size() (n int)
- func (m *Input) String() string
- func (m *Input) Unmarshal(dAtA []byte) error
- func (in Input) ValidateBasic() error
- func (m *Input) XXX_DiscardUnknown()
- func (m *Input) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Input) XXX_Merge(src proto.Message)
- func (m *Input) XXX_Size() int
- func (m *Input) XXX_Unmarshal(b []byte) error
- type MsgMultiSend
- func (*MsgMultiSend) Descriptor() ([]byte, []int)
- func (this *MsgMultiSend) Equal(that interface{}) bool
- func (m *MsgMultiSend) GetInputs() []Input
- func (m *MsgMultiSend) GetOutputs() []Output
- func (msg MsgMultiSend) GetSignBytes() []byte
- func (msg MsgMultiSend) GetSigners() []sdk.AccAddress
- func (m *MsgMultiSend) Marshal() (dAtA []byte, err error)
- func (m *MsgMultiSend) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgMultiSend) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgMultiSend) ProtoMessage()
- func (m *MsgMultiSend) Reset()
- func (msg MsgMultiSend) Route() string
- func (m *MsgMultiSend) Size() (n int)
- func (m *MsgMultiSend) String() string
- func (msg MsgMultiSend) Type() string
- func (m *MsgMultiSend) Unmarshal(dAtA []byte) error
- func (msg MsgMultiSend) ValidateBasic() error
- func (m *MsgMultiSend) XXX_DiscardUnknown()
- func (m *MsgMultiSend) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgMultiSend) XXX_Merge(src proto.Message)
- func (m *MsgMultiSend) XXX_Size() int
- func (m *MsgMultiSend) XXX_Unmarshal(b []byte) error
- type MsgSend
- func (*MsgSend) Descriptor() ([]byte, []int)
- func (this *MsgSend) Equal(that interface{}) bool
- func (m *MsgSend) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *MsgSend) GetFromAddress() github_com_cosmos_cosmos_sdk_types.AccAddress
- func (msg MsgSend) GetSignBytes() []byte
- func (msg MsgSend) GetSigners() []sdk.AccAddress
- func (m *MsgSend) GetToAddress() github_com_cosmos_cosmos_sdk_types.AccAddress
- func (m *MsgSend) Marshal() (dAtA []byte, err error)
- func (m *MsgSend) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSend) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSend) ProtoMessage()
- func (m *MsgSend) Reset()
- func (msg MsgSend) Route() string
- func (m *MsgSend) Size() (n int)
- func (m *MsgSend) String() string
- func (msg MsgSend) Type() string
- func (m *MsgSend) Unmarshal(dAtA []byte) error
- func (msg MsgSend) ValidateBasic() error
- func (m *MsgSend) XXX_DiscardUnknown()
- func (m *MsgSend) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSend) XXX_Merge(src proto.Message)
- func (m *MsgSend) XXX_Size() int
- func (m *MsgSend) XXX_Unmarshal(b []byte) error
- type Output
- func (*Output) Descriptor() ([]byte, []int)
- func (this *Output) Equal(that interface{}) bool
- func (m *Output) GetAddress() github_com_cosmos_cosmos_sdk_types.AccAddress
- func (m *Output) GetCoins() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *Output) Marshal() (dAtA []byte, err error)
- func (m *Output) MarshalTo(dAtA []byte) (int, error)
- func (m *Output) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Output) ProtoMessage()
- func (m *Output) Reset()
- func (m *Output) Size() (n int)
- func (m *Output) String() string
- func (m *Output) Unmarshal(dAtA []byte) error
- func (out Output) ValidateBasic() error
- func (m *Output) XXX_DiscardUnknown()
- func (m *Output) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Output) XXX_Merge(src proto.Message)
- func (m *Output) XXX_Size() int
- func (m *Output) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetDefaultSendEnabled() bool
- func (m *Params) GetSendEnabled() []*SendEnabled
- 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 (p Params) SendEnabledDenom(denom string) bool
- func (p Params) SetSendEnabledParam(denom string, sendEnabled bool) Params
- 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 QueryAllBalancesRequest
- func (*QueryAllBalancesRequest) Descriptor() ([]byte, []int)
- func (m *QueryAllBalancesRequest) GetAddress() github_com_cosmos_cosmos_sdk_types.AccAddress
- func (m *QueryAllBalancesRequest) GetPagination() *query.PageRequest
- func (m *QueryAllBalancesRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAllBalancesRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllBalancesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllBalancesRequest) ProtoMessage()
- func (m *QueryAllBalancesRequest) Reset()
- func (m *QueryAllBalancesRequest) Size() (n int)
- func (m *QueryAllBalancesRequest) String() string
- func (m *QueryAllBalancesRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAllBalancesRequest) XXX_DiscardUnknown()
- func (m *QueryAllBalancesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllBalancesRequest) XXX_Merge(src proto.Message)
- func (m *QueryAllBalancesRequest) XXX_Size() int
- func (m *QueryAllBalancesRequest) XXX_Unmarshal(b []byte) error
- type QueryAllBalancesResponse
- func (*QueryAllBalancesResponse) Descriptor() ([]byte, []int)
- func (m *QueryAllBalancesResponse) GetBalances() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *QueryAllBalancesResponse) GetPagination() *query.PageResponse
- func (m *QueryAllBalancesResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAllBalancesResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllBalancesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllBalancesResponse) ProtoMessage()
- func (m *QueryAllBalancesResponse) Reset()
- func (m *QueryAllBalancesResponse) Size() (n int)
- func (m *QueryAllBalancesResponse) String() string
- func (m *QueryAllBalancesResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAllBalancesResponse) XXX_DiscardUnknown()
- func (m *QueryAllBalancesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllBalancesResponse) XXX_Merge(src proto.Message)
- func (m *QueryAllBalancesResponse) XXX_Size() int
- func (m *QueryAllBalancesResponse) XXX_Unmarshal(b []byte) error
- type QueryBalanceRequest
- func (*QueryBalanceRequest) Descriptor() ([]byte, []int)
- func (m *QueryBalanceRequest) GetAddress() github_com_cosmos_cosmos_sdk_types.AccAddress
- func (m *QueryBalanceRequest) GetDenom() string
- func (m *QueryBalanceRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryBalanceRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBalanceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBalanceRequest) ProtoMessage()
- func (m *QueryBalanceRequest) Reset()
- func (m *QueryBalanceRequest) Size() (n int)
- func (m *QueryBalanceRequest) String() string
- func (m *QueryBalanceRequest) Unmarshal(dAtA []byte) error
- func (m *QueryBalanceRequest) XXX_DiscardUnknown()
- func (m *QueryBalanceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBalanceRequest) XXX_Merge(src proto.Message)
- func (m *QueryBalanceRequest) XXX_Size() int
- func (m *QueryBalanceRequest) XXX_Unmarshal(b []byte) error
- type QueryBalanceResponse
- func (*QueryBalanceResponse) Descriptor() ([]byte, []int)
- func (m *QueryBalanceResponse) GetBalance() *types.Coin
- func (m *QueryBalanceResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryBalanceResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBalanceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBalanceResponse) ProtoMessage()
- func (m *QueryBalanceResponse) Reset()
- func (m *QueryBalanceResponse) Size() (n int)
- func (m *QueryBalanceResponse) String() string
- func (m *QueryBalanceResponse) Unmarshal(dAtA []byte) error
- func (m *QueryBalanceResponse) XXX_DiscardUnknown()
- func (m *QueryBalanceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBalanceResponse) XXX_Merge(src proto.Message)
- func (m *QueryBalanceResponse) XXX_Size() int
- func (m *QueryBalanceResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryServer
- type QuerySupplyOfParams
- type QuerySupplyOfRequest
- func (*QuerySupplyOfRequest) Descriptor() ([]byte, []int)
- func (m *QuerySupplyOfRequest) GetDenom() string
- func (m *QuerySupplyOfRequest) Marshal() (dAtA []byte, err error)
- func (m *QuerySupplyOfRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySupplyOfRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySupplyOfRequest) ProtoMessage()
- func (m *QuerySupplyOfRequest) Reset()
- func (m *QuerySupplyOfRequest) Size() (n int)
- func (m *QuerySupplyOfRequest) String() string
- func (m *QuerySupplyOfRequest) Unmarshal(dAtA []byte) error
- func (m *QuerySupplyOfRequest) XXX_DiscardUnknown()
- func (m *QuerySupplyOfRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySupplyOfRequest) XXX_Merge(src proto.Message)
- func (m *QuerySupplyOfRequest) XXX_Size() int
- func (m *QuerySupplyOfRequest) XXX_Unmarshal(b []byte) error
- type QuerySupplyOfResponse
- func (*QuerySupplyOfResponse) Descriptor() ([]byte, []int)
- func (m *QuerySupplyOfResponse) Marshal() (dAtA []byte, err error)
- func (m *QuerySupplyOfResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySupplyOfResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySupplyOfResponse) ProtoMessage()
- func (m *QuerySupplyOfResponse) Reset()
- func (m *QuerySupplyOfResponse) Size() (n int)
- func (m *QuerySupplyOfResponse) String() string
- func (m *QuerySupplyOfResponse) Unmarshal(dAtA []byte) error
- func (m *QuerySupplyOfResponse) XXX_DiscardUnknown()
- func (m *QuerySupplyOfResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySupplyOfResponse) XXX_Merge(src proto.Message)
- func (m *QuerySupplyOfResponse) XXX_Size() int
- func (m *QuerySupplyOfResponse) XXX_Unmarshal(b []byte) error
- type QueryTotalSupplyParams
- type QueryTotalSupplyRequest
- func (*QueryTotalSupplyRequest) Descriptor() ([]byte, []int)
- func (m *QueryTotalSupplyRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryTotalSupplyRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryTotalSupplyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryTotalSupplyRequest) ProtoMessage()
- func (m *QueryTotalSupplyRequest) Reset()
- func (m *QueryTotalSupplyRequest) Size() (n int)
- func (m *QueryTotalSupplyRequest) String() string
- func (m *QueryTotalSupplyRequest) Unmarshal(dAtA []byte) error
- func (m *QueryTotalSupplyRequest) XXX_DiscardUnknown()
- func (m *QueryTotalSupplyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryTotalSupplyRequest) XXX_Merge(src proto.Message)
- func (m *QueryTotalSupplyRequest) XXX_Size() int
- func (m *QueryTotalSupplyRequest) XXX_Unmarshal(b []byte) error
- type QueryTotalSupplyResponse
- func (*QueryTotalSupplyResponse) Descriptor() ([]byte, []int)
- func (m *QueryTotalSupplyResponse) GetSupply() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *QueryTotalSupplyResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryTotalSupplyResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryTotalSupplyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryTotalSupplyResponse) ProtoMessage()
- func (m *QueryTotalSupplyResponse) Reset()
- func (m *QueryTotalSupplyResponse) Size() (n int)
- func (m *QueryTotalSupplyResponse) String() string
- func (m *QueryTotalSupplyResponse) Unmarshal(dAtA []byte) error
- func (m *QueryTotalSupplyResponse) XXX_DiscardUnknown()
- func (m *QueryTotalSupplyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryTotalSupplyResponse) XXX_Merge(src proto.Message)
- func (m *QueryTotalSupplyResponse) XXX_Size() int
- func (m *QueryTotalSupplyResponse) XXX_Unmarshal(b []byte) error
- type SendEnabled
- func (*SendEnabled) Descriptor() ([]byte, []int)
- func (this *SendEnabled) Equal(that interface{}) bool
- func (m *SendEnabled) GetDenom() string
- func (m *SendEnabled) GetEnabled() bool
- func (m *SendEnabled) Marshal() (dAtA []byte, err error)
- func (m *SendEnabled) MarshalTo(dAtA []byte) (int, error)
- func (m *SendEnabled) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SendEnabled) ProtoMessage()
- func (m *SendEnabled) Reset()
- func (m *SendEnabled) Size() (n int)
- func (se SendEnabled) String() string
- func (m *SendEnabled) Unmarshal(dAtA []byte) error
- func (m *SendEnabled) XXX_DiscardUnknown()
- func (m *SendEnabled) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SendEnabled) XXX_Merge(src proto.Message)
- func (m *SendEnabled) XXX_Size() int
- func (m *SendEnabled) XXX_Unmarshal(b []byte) error
- type SendEnabledParams
- type Supply
- func (supply *Supply) Deflate(amount sdk.Coins)
- func (*Supply) Descriptor() ([]byte, []int)
- func (this *Supply) Equal(that interface{}) bool
- func (supply Supply) GetTotal() sdk.Coins
- func (supply *Supply) Inflate(amount sdk.Coins)
- func (m *Supply) Marshal() (dAtA []byte, err error)
- func (m *Supply) MarshalTo(dAtA []byte) (int, error)
- func (m *Supply) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Supply) ProtoMessage()
- func (m *Supply) Reset()
- func (supply *Supply) SetTotal(total sdk.Coins)
- func (m *Supply) Size() (n int)
- func (supply Supply) String() string
- func (m *Supply) Unmarshal(dAtA []byte) error
- func (supply Supply) ValidateBasic() error
- func (m *Supply) XXX_DiscardUnknown()
- func (m *Supply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Supply) XXX_Merge(src proto.Message)
- func (m *Supply) XXX_Size() int
- func (m *Supply) XXX_Unmarshal(b []byte) error
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) AllBalances(ctx context.Context, req *QueryAllBalancesRequest) (*QueryAllBalancesResponse, error)
- func (*UnimplementedQueryServer) Balance(ctx context.Context, req *QueryBalanceRequest) (*QueryBalanceResponse, error)
- func (*UnimplementedQueryServer) SupplyOf(ctx context.Context, req *QuerySupplyOfRequest) (*QuerySupplyOfResponse, error)
- func (*UnimplementedQueryServer) TotalSupply(ctx context.Context, req *QueryTotalSupplyRequest) (*QueryTotalSupplyResponse, error)
Constants ¶
const ( EventTypeTransfer = "transfer" AttributeKeyRecipient = "recipient" AttributeKeySender = "sender" AttributeValueCategory = ModuleName )
bank module event types
const ( // ModuleName defines the module name ModuleName = "bank" // StoreKey defines the primary module store key StoreKey = ModuleName // RouterKey defines the module's message routing key RouterKey = ModuleName // QuerierRoute defines the module's query routing key QuerierRoute = ModuleName )
const ( TypeMsgSend = "send" TypeMsgMultiSend = "multisend" )
bank message types
const ( QueryBalance = "balance" QueryAllBalances = "all_balances" QueryTotalSupply = "total_supply" QuerySupplyOf = "supply_of" )
Querier path constants
const ( // DefaultSendEnabled enabled DefaultSendEnabled = true )
Variables ¶
var ( ErrInvalidLengthBank = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowBank = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupBank = fmt.Errorf("proto: unexpected end of group") )
var ( ErrNoInputs = sdkerrors.Register(ModuleName, 2, "no inputs to send transaction") ErrNoOutputs = sdkerrors.Register(ModuleName, 3, "no outputs to send transaction") ErrInputOutputMismatch = sdkerrors.Register(ModuleName, 4, "sum inputs != sum outputs") ErrSendDisabled = sdkerrors.Register(ModuleName, 5, "send transactions are disabled") )
x/bank module sentinel errors
var ( BalancesPrefix = []byte("balances") SupplyKey = []byte{0x00} )
KVStore keys
var ( // KeySendEnabled is store's key for SendEnabled Params KeySendEnabled = []byte("SendEnabled") // KeyDefaultSendEnabled is store's key for the DefaultSendEnabled option KeyDefaultSendEnabled = []byte("DefaultSendEnabled") )
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 ( // ModuleCdc references the global x/staking module codec. Note, the codec should // ONLY be used in certain instances of tests and for JSON encoding as Amino is // still used for that purpose. // // The actual codec used for serialization should be provided to x/staking and // defined at the application level. ModuleCdc = codec.NewHybridCodec(amino, types.NewInterfaceRegistry()) )
Functions ¶
func AddressFromBalancesStore ¶
func AddressFromBalancesStore(key []byte) sdk.AccAddress
AddressFromBalancesStore returns an account address from a balances prefix store. The key must not contain the perfix BalancesPrefix as the prefix store iterator discards the actual prefix.
func RegisterCodec ¶
RegisterCodec registers the necessary x/bank interfaces and concrete types on the provided Amino codec. These types are used for Amino JSON serialization.
func RegisterInterfaces ¶
func RegisterInterfaces(registry types.InterfaceRegistry)
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
func ValidateGenesis ¶
func ValidateGenesis(data GenesisState) error
ValidateGenesis performs basic validation of supply genesis data returning an error for any failed validation criteria.
func ValidateInputsOutputs ¶
ValidateInputsOutputs validates that each respective input and output is valid and that the sum of inputs is equal to the sum of outputs.
Types ¶
type AccountKeeper ¶
type AccountKeeper interface { NewAccount(sdk.Context, types.AccountI) types.AccountI NewAccountWithAddress(ctx sdk.Context, addr sdk.AccAddress) types.AccountI GetAccount(ctx sdk.Context, addr sdk.AccAddress) types.AccountI GetAllAccounts(ctx sdk.Context) []types.AccountI SetAccount(ctx sdk.Context, acc types.AccountI) IterateAccounts(ctx sdk.Context, process func(types.AccountI) bool) ValidatePermissions(macc types.ModuleAccountI) error GetModuleAddress(moduleName string) sdk.AccAddress GetModuleAddressAndPermissions(moduleName string) (addr sdk.AccAddress, permissions []string) GetModuleAccountAndPermissions(ctx sdk.Context, moduleName string) (types.ModuleAccountI, []string) GetModuleAccount(ctx sdk.Context, moduleName string) types.ModuleAccountI SetModuleAccount(ctx sdk.Context, macc types.ModuleAccountI) }
AccountKeeper defines the account contract that must be fulfilled when creating a x/bank keeper.
type Balance ¶
type Balance struct { Address sdk.AccAddress `json:"address" yaml:"address"` Coins sdk.Coins `json:"coins" yaml:"coins"` }
Balance defines an account address and balance pair used in the bank module's genesis state.
func SanitizeGenesisBalances ¶
SanitizeGenesisAccounts sorts addresses and coin sets.
func (Balance) GetAddress ¶
func (b Balance) GetAddress() sdk.AccAddress
GetAddress returns the account address of the Balance object.
type GenesisBalancesIterator ¶
type GenesisBalancesIterator struct{}
GenesisAccountIterator implements genesis account iteration.
func (GenesisBalancesIterator) IterateGenesisBalances ¶
func (GenesisBalancesIterator) IterateGenesisBalances( cdc codec.JSONMarshaler, appState map[string]json.RawMessage, cb func(exported.GenesisBalance) (stop bool), )
IterateGenesisAccounts iterates over all the genesis accounts found in appGenesis and invokes a callback on each genesis account. If any call returns true, iteration stops.
type GenesisState ¶
type GenesisState struct { Params Params `json:"params" yaml:"params"` Balances []Balance `json:"balances" yaml:"balances"` Supply sdk.Coins `json:"supply" yaml:"supply"` }
GenesisState defines the bank module's genesis state.
func DefaultGenesisState ¶
func DefaultGenesisState() GenesisState
DefaultGenesisState returns a default bank module genesis state.
func GetGenesisStateFromAppState ¶
func GetGenesisStateFromAppState(cdc codec.JSONMarshaler, appState map[string]json.RawMessage) GenesisState
GetGenesisStateFromAppState returns x/bank GenesisState given raw application genesis state.
func NewGenesisState ¶
func NewGenesisState(params Params, balances []Balance, supply sdk.Coins) GenesisState
NewGenesisState creates a new genesis state.
type Input ¶
type Input struct { Address github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=address,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"address,omitempty"` Coins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=coins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"coins"` }
Input models transaction input
func NewInput ¶
func NewInput(addr sdk.AccAddress, coins sdk.Coins) Input
NewInput - create a transaction input, used with MsgMultiSend
func (*Input) Descriptor ¶
func (*Input) GetAddress ¶
func (m *Input) GetAddress() github_com_cosmos_cosmos_sdk_types.AccAddress
func (*Input) GetCoins ¶
func (m *Input) GetCoins() github_com_cosmos_cosmos_sdk_types.Coins
func (*Input) ProtoMessage ¶
func (*Input) ProtoMessage()
func (Input) ValidateBasic ¶
ValidateBasic - validate transaction input
func (*Input) XXX_DiscardUnknown ¶
func (m *Input) XXX_DiscardUnknown()
func (*Input) XXX_Marshal ¶
func (*Input) XXX_Unmarshal ¶
type MsgMultiSend ¶
type MsgMultiSend struct { Inputs []Input `protobuf:"bytes,1,rep,name=inputs,proto3" json:"inputs"` Outputs []Output `protobuf:"bytes,2,rep,name=outputs,proto3" json:"outputs"` }
MsgMultiSend - high level transaction of the coin module
func NewMsgMultiSend ¶
func NewMsgMultiSend(in []Input, out []Output) *MsgMultiSend
NewMsgMultiSend - construct arbitrary multi-in, multi-out send msg.
func (*MsgMultiSend) Descriptor ¶
func (*MsgMultiSend) Descriptor() ([]byte, []int)
func (*MsgMultiSend) Equal ¶
func (this *MsgMultiSend) Equal(that interface{}) bool
func (*MsgMultiSend) GetInputs ¶
func (m *MsgMultiSend) GetInputs() []Input
func (*MsgMultiSend) GetOutputs ¶
func (m *MsgMultiSend) GetOutputs() []Output
func (MsgMultiSend) GetSignBytes ¶
func (msg MsgMultiSend) GetSignBytes() []byte
GetSignBytes Implements Msg.
func (MsgMultiSend) GetSigners ¶
func (msg MsgMultiSend) GetSigners() []sdk.AccAddress
GetSigners Implements Msg.
func (*MsgMultiSend) Marshal ¶
func (m *MsgMultiSend) Marshal() (dAtA []byte, err error)
func (*MsgMultiSend) MarshalToSizedBuffer ¶
func (m *MsgMultiSend) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgMultiSend) ProtoMessage ¶
func (*MsgMultiSend) ProtoMessage()
func (*MsgMultiSend) Reset ¶
func (m *MsgMultiSend) Reset()
func (*MsgMultiSend) Size ¶
func (m *MsgMultiSend) Size() (n int)
func (*MsgMultiSend) String ¶
func (m *MsgMultiSend) String() string
func (*MsgMultiSend) Unmarshal ¶
func (m *MsgMultiSend) Unmarshal(dAtA []byte) error
func (MsgMultiSend) ValidateBasic ¶
func (msg MsgMultiSend) ValidateBasic() error
ValidateBasic Implements Msg.
func (*MsgMultiSend) XXX_DiscardUnknown ¶
func (m *MsgMultiSend) XXX_DiscardUnknown()
func (*MsgMultiSend) XXX_Marshal ¶
func (m *MsgMultiSend) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgMultiSend) XXX_Merge ¶
func (m *MsgMultiSend) XXX_Merge(src proto.Message)
func (*MsgMultiSend) XXX_Size ¶
func (m *MsgMultiSend) XXX_Size() int
func (*MsgMultiSend) XXX_Unmarshal ¶
func (m *MsgMultiSend) XXX_Unmarshal(b []byte) error
type MsgSend ¶
type MsgSend struct { FromAddress github_com_cosmos_cosmos_sdk_types.AccAddress `` /* 169-byte string literal not displayed */ ToAddress github_com_cosmos_cosmos_sdk_types.AccAddress `` /* 161-byte string literal not displayed */ Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"` }
MsgSend - high level transaction of the coin module
func NewMsgSend ¶
func NewMsgSend(fromAddr, toAddr sdk.AccAddress, amount sdk.Coins) *MsgSend
NewMsgSend - construct arbitrary multi-in, multi-out send msg.
func (*MsgSend) Descriptor ¶
func (*MsgSend) GetAmount ¶
func (m *MsgSend) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins
func (*MsgSend) GetFromAddress ¶
func (m *MsgSend) GetFromAddress() github_com_cosmos_cosmos_sdk_types.AccAddress
func (MsgSend) GetSigners ¶
func (msg MsgSend) GetSigners() []sdk.AccAddress
GetSigners Implements Msg.
func (*MsgSend) GetToAddress ¶
func (m *MsgSend) GetToAddress() github_com_cosmos_cosmos_sdk_types.AccAddress
func (*MsgSend) MarshalToSizedBuffer ¶
func (*MsgSend) ProtoMessage ¶
func (*MsgSend) ProtoMessage()
func (MsgSend) ValidateBasic ¶
ValidateBasic Implements Msg.
func (*MsgSend) XXX_DiscardUnknown ¶
func (m *MsgSend) XXX_DiscardUnknown()
func (*MsgSend) XXX_Marshal ¶
func (*MsgSend) XXX_Unmarshal ¶
type Output ¶
type Output struct { Address github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=address,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"address,omitempty"` Coins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=coins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"coins"` }
Output models transaction outputs
func NewOutput ¶
func NewOutput(addr sdk.AccAddress, coins sdk.Coins) Output
NewOutput - create a transaction output, used with MsgMultiSend
func (*Output) Descriptor ¶
func (*Output) GetAddress ¶
func (m *Output) GetAddress() github_com_cosmos_cosmos_sdk_types.AccAddress
func (*Output) GetCoins ¶
func (m *Output) GetCoins() github_com_cosmos_cosmos_sdk_types.Coins
func (*Output) MarshalToSizedBuffer ¶
func (*Output) ProtoMessage ¶
func (*Output) ProtoMessage()
func (Output) ValidateBasic ¶
ValidateBasic - validate transaction output
func (*Output) XXX_DiscardUnknown ¶
func (m *Output) XXX_DiscardUnknown()
func (*Output) XXX_Marshal ¶
func (*Output) XXX_Unmarshal ¶
type Params ¶
type Params struct { SendEnabled []*SendEnabled `protobuf:"bytes,1,rep,name=send_enabled,json=sendEnabled,proto3" json:"send_enabled,omitempty" yaml:"send_enabled,omitempty"` DefaultSendEnabled bool `` /* 156-byte string literal not displayed */ }
Params defines the set of bank parameters.
func DefaultParams ¶
func DefaultParams() Params
DefaultParams is the default parameter configuration for the bank module
func NewParams ¶
func NewParams(defaultSendEnabled bool, sendEnabledParams SendEnabledParams) Params
NewParams creates a new parameter configuration for the bank module
func (*Params) Descriptor ¶
func (*Params) GetDefaultSendEnabled ¶
func (*Params) GetSendEnabled ¶
func (m *Params) GetSendEnabled() []*SendEnabled
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs implements params.ParamSet
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (Params) SendEnabledDenom ¶
SendEnabledDenom returns true if the given denom is enabled for sending
func (Params) SetSendEnabledParam ¶
SetSendEnabledParam returns an updated set of Parameters with the given denom send enabled flag set.
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type QueryAllBalancesRequest ¶
type QueryAllBalancesRequest struct { // address is the address to query balances for Address github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=address,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"address,omitempty"` Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryBalanceRequest is the request type for the Query/AllBalances RPC method
func NewQueryAllBalancesRequest ¶
func NewQueryAllBalancesRequest(addr sdk.AccAddress, req *query.PageRequest) *QueryAllBalancesRequest
NewQueryAllBalancesRequest creates a new instance of QueryAllBalancesRequest.
func (*QueryAllBalancesRequest) Descriptor ¶
func (*QueryAllBalancesRequest) Descriptor() ([]byte, []int)
func (*QueryAllBalancesRequest) GetAddress ¶
func (m *QueryAllBalancesRequest) GetAddress() github_com_cosmos_cosmos_sdk_types.AccAddress
func (*QueryAllBalancesRequest) GetPagination ¶
func (m *QueryAllBalancesRequest) GetPagination() *query.PageRequest
func (*QueryAllBalancesRequest) Marshal ¶
func (m *QueryAllBalancesRequest) Marshal() (dAtA []byte, err error)
func (*QueryAllBalancesRequest) MarshalTo ¶
func (m *QueryAllBalancesRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllBalancesRequest) MarshalToSizedBuffer ¶
func (m *QueryAllBalancesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllBalancesRequest) ProtoMessage ¶
func (*QueryAllBalancesRequest) ProtoMessage()
func (*QueryAllBalancesRequest) Reset ¶
func (m *QueryAllBalancesRequest) Reset()
func (*QueryAllBalancesRequest) Size ¶
func (m *QueryAllBalancesRequest) Size() (n int)
func (*QueryAllBalancesRequest) String ¶
func (m *QueryAllBalancesRequest) String() string
func (*QueryAllBalancesRequest) Unmarshal ¶
func (m *QueryAllBalancesRequest) Unmarshal(dAtA []byte) error
func (*QueryAllBalancesRequest) XXX_DiscardUnknown ¶
func (m *QueryAllBalancesRequest) XXX_DiscardUnknown()
func (*QueryAllBalancesRequest) XXX_Marshal ¶
func (m *QueryAllBalancesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllBalancesRequest) XXX_Merge ¶
func (m *QueryAllBalancesRequest) XXX_Merge(src proto.Message)
func (*QueryAllBalancesRequest) XXX_Size ¶
func (m *QueryAllBalancesRequest) XXX_Size() int
func (*QueryAllBalancesRequest) XXX_Unmarshal ¶
func (m *QueryAllBalancesRequest) XXX_Unmarshal(b []byte) error
type QueryAllBalancesResponse ¶
type QueryAllBalancesResponse struct { // balances is the balances of the coins Balances github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=balances,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"balances"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryAllBalancesResponse is the response type for the Query/AllBalances RPC method
func (*QueryAllBalancesResponse) Descriptor ¶
func (*QueryAllBalancesResponse) Descriptor() ([]byte, []int)
func (*QueryAllBalancesResponse) GetBalances ¶
func (m *QueryAllBalancesResponse) GetBalances() github_com_cosmos_cosmos_sdk_types.Coins
func (*QueryAllBalancesResponse) GetPagination ¶
func (m *QueryAllBalancesResponse) GetPagination() *query.PageResponse
func (*QueryAllBalancesResponse) Marshal ¶
func (m *QueryAllBalancesResponse) Marshal() (dAtA []byte, err error)
func (*QueryAllBalancesResponse) MarshalTo ¶
func (m *QueryAllBalancesResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllBalancesResponse) MarshalToSizedBuffer ¶
func (m *QueryAllBalancesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllBalancesResponse) ProtoMessage ¶
func (*QueryAllBalancesResponse) ProtoMessage()
func (*QueryAllBalancesResponse) Reset ¶
func (m *QueryAllBalancesResponse) Reset()
func (*QueryAllBalancesResponse) Size ¶
func (m *QueryAllBalancesResponse) Size() (n int)
func (*QueryAllBalancesResponse) String ¶
func (m *QueryAllBalancesResponse) String() string
func (*QueryAllBalancesResponse) Unmarshal ¶
func (m *QueryAllBalancesResponse) Unmarshal(dAtA []byte) error
func (*QueryAllBalancesResponse) XXX_DiscardUnknown ¶
func (m *QueryAllBalancesResponse) XXX_DiscardUnknown()
func (*QueryAllBalancesResponse) XXX_Marshal ¶
func (m *QueryAllBalancesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllBalancesResponse) XXX_Merge ¶
func (m *QueryAllBalancesResponse) XXX_Merge(src proto.Message)
func (*QueryAllBalancesResponse) XXX_Size ¶
func (m *QueryAllBalancesResponse) XXX_Size() int
func (*QueryAllBalancesResponse) XXX_Unmarshal ¶
func (m *QueryAllBalancesResponse) XXX_Unmarshal(b []byte) error
type QueryBalanceRequest ¶
type QueryBalanceRequest struct { // address is the address to query balances for Address github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=address,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"address,omitempty"` // denom is the coin denom to query balances for Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"` }
QueryBalanceRequest is the request type for the Query/Balance RPC method
func NewQueryBalanceRequest ¶
func NewQueryBalanceRequest(addr sdk.AccAddress, denom string) *QueryBalanceRequest
NewQueryBalanceRequest creates a new instance of QueryBalanceRequest.
func (*QueryBalanceRequest) Descriptor ¶
func (*QueryBalanceRequest) Descriptor() ([]byte, []int)
func (*QueryBalanceRequest) GetAddress ¶
func (m *QueryBalanceRequest) GetAddress() github_com_cosmos_cosmos_sdk_types.AccAddress
func (*QueryBalanceRequest) GetDenom ¶
func (m *QueryBalanceRequest) GetDenom() string
func (*QueryBalanceRequest) Marshal ¶
func (m *QueryBalanceRequest) Marshal() (dAtA []byte, err error)
func (*QueryBalanceRequest) MarshalTo ¶
func (m *QueryBalanceRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryBalanceRequest) MarshalToSizedBuffer ¶
func (m *QueryBalanceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryBalanceRequest) ProtoMessage ¶
func (*QueryBalanceRequest) ProtoMessage()
func (*QueryBalanceRequest) Reset ¶
func (m *QueryBalanceRequest) Reset()
func (*QueryBalanceRequest) Size ¶
func (m *QueryBalanceRequest) Size() (n int)
func (*QueryBalanceRequest) String ¶
func (m *QueryBalanceRequest) String() string
func (*QueryBalanceRequest) Unmarshal ¶
func (m *QueryBalanceRequest) Unmarshal(dAtA []byte) error
func (*QueryBalanceRequest) XXX_DiscardUnknown ¶
func (m *QueryBalanceRequest) XXX_DiscardUnknown()
func (*QueryBalanceRequest) XXX_Marshal ¶
func (m *QueryBalanceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryBalanceRequest) XXX_Merge ¶
func (m *QueryBalanceRequest) XXX_Merge(src proto.Message)
func (*QueryBalanceRequest) XXX_Size ¶
func (m *QueryBalanceRequest) XXX_Size() int
func (*QueryBalanceRequest) XXX_Unmarshal ¶
func (m *QueryBalanceRequest) XXX_Unmarshal(b []byte) error
type QueryBalanceResponse ¶
type QueryBalanceResponse struct { // balance is the balance of the coin Balance *types.Coin `protobuf:"bytes,1,opt,name=balance,proto3" json:"balance,omitempty"` }
QueryBalanceResponse is the response type for the Query/Balance RPC method
func (*QueryBalanceResponse) Descriptor ¶
func (*QueryBalanceResponse) Descriptor() ([]byte, []int)
func (*QueryBalanceResponse) GetBalance ¶
func (m *QueryBalanceResponse) GetBalance() *types.Coin
func (*QueryBalanceResponse) Marshal ¶
func (m *QueryBalanceResponse) Marshal() (dAtA []byte, err error)
func (*QueryBalanceResponse) MarshalTo ¶
func (m *QueryBalanceResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryBalanceResponse) MarshalToSizedBuffer ¶
func (m *QueryBalanceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryBalanceResponse) ProtoMessage ¶
func (*QueryBalanceResponse) ProtoMessage()
func (*QueryBalanceResponse) Reset ¶
func (m *QueryBalanceResponse) Reset()
func (*QueryBalanceResponse) Size ¶
func (m *QueryBalanceResponse) Size() (n int)
func (*QueryBalanceResponse) String ¶
func (m *QueryBalanceResponse) String() string
func (*QueryBalanceResponse) Unmarshal ¶
func (m *QueryBalanceResponse) Unmarshal(dAtA []byte) error
func (*QueryBalanceResponse) XXX_DiscardUnknown ¶
func (m *QueryBalanceResponse) XXX_DiscardUnknown()
func (*QueryBalanceResponse) XXX_Marshal ¶
func (m *QueryBalanceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryBalanceResponse) XXX_Merge ¶
func (m *QueryBalanceResponse) XXX_Merge(src proto.Message)
func (*QueryBalanceResponse) XXX_Size ¶
func (m *QueryBalanceResponse) XXX_Size() int
func (*QueryBalanceResponse) XXX_Unmarshal ¶
func (m *QueryBalanceResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface { // Balance queries the balance of a single coin for a single account Balance(ctx context.Context, in *QueryBalanceRequest, opts ...grpc.CallOption) (*QueryBalanceResponse, error) // AllBalances queries the balance of all coins for a single account AllBalances(ctx context.Context, in *QueryAllBalancesRequest, opts ...grpc.CallOption) (*QueryAllBalancesResponse, error) // TotalSupply queries the total supply of all coins TotalSupply(ctx context.Context, in *QueryTotalSupplyRequest, opts ...grpc.CallOption) (*QueryTotalSupplyResponse, error) // SupplyOf queries the supply of a single coin SupplyOf(ctx context.Context, in *QuerySupplyOfRequest, opts ...grpc.CallOption) (*QuerySupplyOfResponse, 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 QueryServer ¶
type QueryServer interface { // Balance queries the balance of a single coin for a single account Balance(context.Context, *QueryBalanceRequest) (*QueryBalanceResponse, error) // AllBalances queries the balance of all coins for a single account AllBalances(context.Context, *QueryAllBalancesRequest) (*QueryAllBalancesResponse, error) // TotalSupply queries the total supply of all coins TotalSupply(context.Context, *QueryTotalSupplyRequest) (*QueryTotalSupplyResponse, error) // SupplyOf queries the supply of a single coin SupplyOf(context.Context, *QuerySupplyOfRequest) (*QuerySupplyOfResponse, error) }
QueryServer is the server API for Query service.
type QuerySupplyOfParams ¶
type QuerySupplyOfParams struct {
Denom string
}
QuerySupplyOfParams defines the params for the following queries:
- 'custom/bank/totalSupplyOf'
func NewQuerySupplyOfParams ¶
func NewQuerySupplyOfParams(denom string) QuerySupplyOfParams
NewQuerySupplyOfParams creates a new instance to query the total supply of a given denomination
type QuerySupplyOfRequest ¶
type QuerySupplyOfRequest struct {
Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
}
QuerySupplyOfRequest is the request type for the Query/SupplyOf RPC method
func (*QuerySupplyOfRequest) Descriptor ¶
func (*QuerySupplyOfRequest) Descriptor() ([]byte, []int)
func (*QuerySupplyOfRequest) GetDenom ¶
func (m *QuerySupplyOfRequest) GetDenom() string
func (*QuerySupplyOfRequest) Marshal ¶
func (m *QuerySupplyOfRequest) Marshal() (dAtA []byte, err error)
func (*QuerySupplyOfRequest) MarshalTo ¶
func (m *QuerySupplyOfRequest) MarshalTo(dAtA []byte) (int, error)
func (*QuerySupplyOfRequest) MarshalToSizedBuffer ¶
func (m *QuerySupplyOfRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySupplyOfRequest) ProtoMessage ¶
func (*QuerySupplyOfRequest) ProtoMessage()
func (*QuerySupplyOfRequest) Reset ¶
func (m *QuerySupplyOfRequest) Reset()
func (*QuerySupplyOfRequest) Size ¶
func (m *QuerySupplyOfRequest) Size() (n int)
func (*QuerySupplyOfRequest) String ¶
func (m *QuerySupplyOfRequest) String() string
func (*QuerySupplyOfRequest) Unmarshal ¶
func (m *QuerySupplyOfRequest) Unmarshal(dAtA []byte) error
func (*QuerySupplyOfRequest) XXX_DiscardUnknown ¶
func (m *QuerySupplyOfRequest) XXX_DiscardUnknown()
func (*QuerySupplyOfRequest) XXX_Marshal ¶
func (m *QuerySupplyOfRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySupplyOfRequest) XXX_Merge ¶
func (m *QuerySupplyOfRequest) XXX_Merge(src proto.Message)
func (*QuerySupplyOfRequest) XXX_Size ¶
func (m *QuerySupplyOfRequest) XXX_Size() int
func (*QuerySupplyOfRequest) XXX_Unmarshal ¶
func (m *QuerySupplyOfRequest) XXX_Unmarshal(b []byte) error
type QuerySupplyOfResponse ¶
type QuerySupplyOfResponse struct { // amount is the supply of the coin Amount github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,1,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"amount"` }
QuerySupplyOfResponse is the response type for the Query/SupplyOf RPC method
func (*QuerySupplyOfResponse) Descriptor ¶
func (*QuerySupplyOfResponse) Descriptor() ([]byte, []int)
func (*QuerySupplyOfResponse) Marshal ¶
func (m *QuerySupplyOfResponse) Marshal() (dAtA []byte, err error)
func (*QuerySupplyOfResponse) MarshalTo ¶
func (m *QuerySupplyOfResponse) MarshalTo(dAtA []byte) (int, error)
func (*QuerySupplyOfResponse) MarshalToSizedBuffer ¶
func (m *QuerySupplyOfResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySupplyOfResponse) ProtoMessage ¶
func (*QuerySupplyOfResponse) ProtoMessage()
func (*QuerySupplyOfResponse) Reset ¶
func (m *QuerySupplyOfResponse) Reset()
func (*QuerySupplyOfResponse) Size ¶
func (m *QuerySupplyOfResponse) Size() (n int)
func (*QuerySupplyOfResponse) String ¶
func (m *QuerySupplyOfResponse) String() string
func (*QuerySupplyOfResponse) Unmarshal ¶
func (m *QuerySupplyOfResponse) Unmarshal(dAtA []byte) error
func (*QuerySupplyOfResponse) XXX_DiscardUnknown ¶
func (m *QuerySupplyOfResponse) XXX_DiscardUnknown()
func (*QuerySupplyOfResponse) XXX_Marshal ¶
func (m *QuerySupplyOfResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySupplyOfResponse) XXX_Merge ¶
func (m *QuerySupplyOfResponse) XXX_Merge(src proto.Message)
func (*QuerySupplyOfResponse) XXX_Size ¶
func (m *QuerySupplyOfResponse) XXX_Size() int
func (*QuerySupplyOfResponse) XXX_Unmarshal ¶
func (m *QuerySupplyOfResponse) XXX_Unmarshal(b []byte) error
type QueryTotalSupplyParams ¶
type QueryTotalSupplyParams struct {
Page, Limit int
}
QueryTotalSupplyParams defines the params for the following queries:
- 'custom/bank/totalSupply'
func NewQueryTotalSupplyParams ¶
func NewQueryTotalSupplyParams(page, limit int) QueryTotalSupplyParams
NewQueryTotalSupplyParams creates a new instance to query the total supply
type QueryTotalSupplyRequest ¶
type QueryTotalSupplyRequest struct { }
QueryTotalSupplyRequest is the request type for the Query/TotalSupply RPC method
func (*QueryTotalSupplyRequest) Descriptor ¶
func (*QueryTotalSupplyRequest) Descriptor() ([]byte, []int)
func (*QueryTotalSupplyRequest) Marshal ¶
func (m *QueryTotalSupplyRequest) Marshal() (dAtA []byte, err error)
func (*QueryTotalSupplyRequest) MarshalTo ¶
func (m *QueryTotalSupplyRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryTotalSupplyRequest) MarshalToSizedBuffer ¶
func (m *QueryTotalSupplyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryTotalSupplyRequest) ProtoMessage ¶
func (*QueryTotalSupplyRequest) ProtoMessage()
func (*QueryTotalSupplyRequest) Reset ¶
func (m *QueryTotalSupplyRequest) Reset()
func (*QueryTotalSupplyRequest) Size ¶
func (m *QueryTotalSupplyRequest) Size() (n int)
func (*QueryTotalSupplyRequest) String ¶
func (m *QueryTotalSupplyRequest) String() string
func (*QueryTotalSupplyRequest) Unmarshal ¶
func (m *QueryTotalSupplyRequest) Unmarshal(dAtA []byte) error
func (*QueryTotalSupplyRequest) XXX_DiscardUnknown ¶
func (m *QueryTotalSupplyRequest) XXX_DiscardUnknown()
func (*QueryTotalSupplyRequest) XXX_Marshal ¶
func (m *QueryTotalSupplyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryTotalSupplyRequest) XXX_Merge ¶
func (m *QueryTotalSupplyRequest) XXX_Merge(src proto.Message)
func (*QueryTotalSupplyRequest) XXX_Size ¶
func (m *QueryTotalSupplyRequest) XXX_Size() int
func (*QueryTotalSupplyRequest) XXX_Unmarshal ¶
func (m *QueryTotalSupplyRequest) XXX_Unmarshal(b []byte) error
type QueryTotalSupplyResponse ¶
type QueryTotalSupplyResponse struct { // supply is the supply of the coins Supply github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=supply,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"supply"` }
QueryTotalSupplyResponse is the response type for the Query/TotalSupply RPC method
func (*QueryTotalSupplyResponse) Descriptor ¶
func (*QueryTotalSupplyResponse) Descriptor() ([]byte, []int)
func (*QueryTotalSupplyResponse) GetSupply ¶
func (m *QueryTotalSupplyResponse) GetSupply() github_com_cosmos_cosmos_sdk_types.Coins
func (*QueryTotalSupplyResponse) Marshal ¶
func (m *QueryTotalSupplyResponse) Marshal() (dAtA []byte, err error)
func (*QueryTotalSupplyResponse) MarshalTo ¶
func (m *QueryTotalSupplyResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryTotalSupplyResponse) MarshalToSizedBuffer ¶
func (m *QueryTotalSupplyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryTotalSupplyResponse) ProtoMessage ¶
func (*QueryTotalSupplyResponse) ProtoMessage()
func (*QueryTotalSupplyResponse) Reset ¶
func (m *QueryTotalSupplyResponse) Reset()
func (*QueryTotalSupplyResponse) Size ¶
func (m *QueryTotalSupplyResponse) Size() (n int)
func (*QueryTotalSupplyResponse) String ¶
func (m *QueryTotalSupplyResponse) String() string
func (*QueryTotalSupplyResponse) Unmarshal ¶
func (m *QueryTotalSupplyResponse) Unmarshal(dAtA []byte) error
func (*QueryTotalSupplyResponse) XXX_DiscardUnknown ¶
func (m *QueryTotalSupplyResponse) XXX_DiscardUnknown()
func (*QueryTotalSupplyResponse) XXX_Marshal ¶
func (m *QueryTotalSupplyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryTotalSupplyResponse) XXX_Merge ¶
func (m *QueryTotalSupplyResponse) XXX_Merge(src proto.Message)
func (*QueryTotalSupplyResponse) XXX_Size ¶
func (m *QueryTotalSupplyResponse) XXX_Size() int
func (*QueryTotalSupplyResponse) XXX_Unmarshal ¶
func (m *QueryTotalSupplyResponse) XXX_Unmarshal(b []byte) error
type SendEnabled ¶
type SendEnabled struct { Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"` Enabled bool `protobuf:"varint,2,opt,name=enabled,proto3" json:"enabled,omitempty"` }
Send enabled configuration properties for each denomination
func NewSendEnabled ¶
func NewSendEnabled(denom string, sendEnabled bool) *SendEnabled
NewSendEnabled creates a new SendEnabled object The denom may be left empty to control the global default setting of send_enabled
func (*SendEnabled) Descriptor ¶
func (*SendEnabled) Descriptor() ([]byte, []int)
func (*SendEnabled) Equal ¶
func (this *SendEnabled) Equal(that interface{}) bool
func (*SendEnabled) GetDenom ¶
func (m *SendEnabled) GetDenom() string
func (*SendEnabled) GetEnabled ¶
func (m *SendEnabled) GetEnabled() bool
func (*SendEnabled) Marshal ¶
func (m *SendEnabled) Marshal() (dAtA []byte, err error)
func (*SendEnabled) MarshalToSizedBuffer ¶
func (m *SendEnabled) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SendEnabled) ProtoMessage ¶
func (*SendEnabled) ProtoMessage()
func (*SendEnabled) Reset ¶
func (m *SendEnabled) Reset()
func (*SendEnabled) Size ¶
func (m *SendEnabled) Size() (n int)
func (SendEnabled) String ¶
func (se SendEnabled) String() string
String implements stringer insterface
func (*SendEnabled) Unmarshal ¶
func (m *SendEnabled) Unmarshal(dAtA []byte) error
func (*SendEnabled) XXX_DiscardUnknown ¶
func (m *SendEnabled) XXX_DiscardUnknown()
func (*SendEnabled) XXX_Marshal ¶
func (m *SendEnabled) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SendEnabled) XXX_Merge ¶
func (m *SendEnabled) XXX_Merge(src proto.Message)
func (*SendEnabled) XXX_Size ¶
func (m *SendEnabled) XXX_Size() int
func (*SendEnabled) XXX_Unmarshal ¶
func (m *SendEnabled) XXX_Unmarshal(b []byte) error
type SendEnabledParams ¶
type SendEnabledParams []*SendEnabled
SendEnabledParams is a collection of parameters indicating if a coin denom is enabled for sending
type Supply ¶
type Supply struct {
Total github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=total,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"total"`
}
Supply represents a struct that passively keeps track of the total supply amounts in the network.
func (*Supply) Descriptor ¶
func (*Supply) MarshalToSizedBuffer ¶
func (*Supply) ProtoMessage ¶
func (*Supply) ProtoMessage()
func (Supply) ValidateBasic ¶
ValidateBasic validates the Supply coins and returns error if invalid
func (*Supply) XXX_DiscardUnknown ¶
func (m *Supply) XXX_DiscardUnknown()
func (*Supply) XXX_Marshal ¶
func (*Supply) XXX_Unmarshal ¶
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) AllBalances ¶
func (*UnimplementedQueryServer) AllBalances(ctx context.Context, req *QueryAllBalancesRequest) (*QueryAllBalancesResponse, error)
func (*UnimplementedQueryServer) Balance ¶
func (*UnimplementedQueryServer) Balance(ctx context.Context, req *QueryBalanceRequest) (*QueryBalanceResponse, error)
func (*UnimplementedQueryServer) SupplyOf ¶
func (*UnimplementedQueryServer) SupplyOf(ctx context.Context, req *QuerySupplyOfRequest) (*QuerySupplyOfResponse, error)
func (*UnimplementedQueryServer) TotalSupply ¶
func (*UnimplementedQueryServer) TotalSupply(ctx context.Context, req *QueryTotalSupplyRequest) (*QueryTotalSupplyResponse, error)