Documentation ¶
Index ¶
- Constants
- Variables
- func NoOpSendRestrictionFn(_ context.Context, _, toAddr []byte, _ sdk.Coins) ([]byte, error)
- func RegisterInterfaces(registrar registry.InterfaceRegistrar)
- type Balance
- func (*Balance) Descriptor() ([]byte, []int)
- func (m *Balance) Marshal() (dAtA []byte, err error)
- func (m *Balance) MarshalTo(dAtA []byte) (int, error)
- func (m *Balance) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Balance) ProtoMessage()
- func (m *Balance) Reset()
- func (m *Balance) Size() (n int)
- func (m *Balance) String() string
- func (m *Balance) Unmarshal(dAtA []byte) error
- func (m *Balance) XXX_DiscardUnknown()
- func (m *Balance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Balance) XXX_Merge(src proto.Message)
- func (m *Balance) XXX_Size() int
- func (m *Balance) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetBalances() []Balance
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) GetSupply() github_com_cosmos_cosmos_sdk_types.Coins
- 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 MsgMint
- func (*MsgMint) Descriptor() ([]byte, []int)
- func (m *MsgMint) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *MsgMint) GetAuthority() string
- func (m *MsgMint) GetToAddress() string
- func (m *MsgMint) Marshal() (dAtA []byte, err error)
- func (m *MsgMint) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgMint) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgMint) ProtoMessage()
- func (m *MsgMint) Reset()
- func (m *MsgMint) Size() (n int)
- func (m *MsgMint) String() string
- func (m *MsgMint) Unmarshal(dAtA []byte) error
- func (m *MsgMint) XXX_DiscardUnknown()
- func (m *MsgMint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgMint) XXX_Merge(src proto.Message)
- func (m *MsgMint) XXX_Size() int
- func (m *MsgMint) XXX_Unmarshal(b []byte) error
- type MsgMintResponse
- func (*MsgMintResponse) Descriptor() ([]byte, []int)
- func (m *MsgMintResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgMintResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgMintResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgMintResponse) ProtoMessage()
- func (m *MsgMintResponse) Reset()
- func (m *MsgMintResponse) Size() (n int)
- func (m *MsgMintResponse) String() string
- func (m *MsgMintResponse) Unmarshal(dAtA []byte) error
- func (m *MsgMintResponse) XXX_DiscardUnknown()
- func (m *MsgMintResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgMintResponse) XXX_Merge(src proto.Message)
- func (m *MsgMintResponse) XXX_Size() int
- func (m *MsgMintResponse) XXX_Unmarshal(b []byte) error
- type MsgSend
- func (*MsgSend) Descriptor() ([]byte, []int)
- func (m *MsgSend) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *MsgSend) GetFromAddress() string
- func (m *MsgSend) GetToAddress() string
- 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 (m *MsgSend) Size() (n int)
- func (m *MsgSend) String() string
- func (m *MsgSend) Unmarshal(dAtA []byte) 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 MsgSendResponse
- func (*MsgSendResponse) Descriptor() ([]byte, []int)
- func (m *MsgSendResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgSendResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSendResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSendResponse) ProtoMessage()
- func (m *MsgSendResponse) Reset()
- func (m *MsgSendResponse) Size() (n int)
- func (m *MsgSendResponse) String() string
- func (m *MsgSendResponse) Unmarshal(dAtA []byte) error
- func (m *MsgSendResponse) XXX_DiscardUnknown()
- func (m *MsgSendResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSendResponse) XXX_Merge(src proto.Message)
- func (m *MsgSendResponse) XXX_Size() int
- func (m *MsgSendResponse) XXX_Unmarshal(b []byte) error
- type MsgUpdateParams
- func (*MsgUpdateParams) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParams) GetAuthority() string
- func (m *MsgUpdateParams) GetParams() Params
- 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 (m *MsgUpdateParams) Size() (n int)
- func (m *MsgUpdateParams) String() string
- func (m *MsgUpdateParams) Unmarshal(dAtA []byte) 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 (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 (m *Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type QueryBalanceRequest
- func (*QueryBalanceRequest) Descriptor() ([]byte, []int)
- 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 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 SendRestrictionFn
Constants ¶
const ( EventTypeTransfer = "transfer" AttributeKeyRecipient = "recipient" AttributeKeySender = sdk.AttributeKeySender // supply and balance tracking events name and attributes EventTypeCoinSpent = "coin_spent" EventTypeCoinReceived = "coin_received" EventTypeCoinMint = "coinbase" // NOTE(fdymylja): using mint clashes with mint module event EventTypeCoinBurn = "burn" AttributeKeySpender = "spender" AttributeKeyReceiver = "receiver" AttributeKeyMinter = "minter" AttributeKeyBurner = "burner" )
bank module event types
const ( // ModuleName is the name of the module ModuleName = "bankv2" // StoreKey defines the primary module store key StoreKey = ModuleName // GovModuleName duplicates the gov module's name to avoid a dependency with x/gov. GovModuleName = "gov" // MintModuleName duplicates the mint module's name to avoid a cyclic dependency with x/mint. // It should be synced with the mint module's name if it is ever changed. // See: https://github.com/cosmos/cosmos-sdk/blob/0e34478eb7420b69869ed50f129fc274a97a9b06/x/mint/types/keys.go#L13 MintModuleName = "mint" )
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 ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( // ParamsKey is the prefix for x/bank/v2 parameters ParamsKey = collections.NewPrefix(2) // BalancesPrefix is the prefix for the account balances store. We use a byte // (instead of `[]byte("balances")` to save some disk space). BalancesPrefix = collections.NewPrefix(3) DenomAddressPrefix = collections.NewPrefix(4) SupplyKey = collections.NewPrefix(5) )
Functions ¶
func NoOpSendRestrictionFn ¶
NoOpSendRestrictionFn is a no-op SendRestrictionFn.
func RegisterInterfaces ¶
func RegisterInterfaces(registrar registry.InterfaceRegistrar)
Types ¶
type Balance ¶
type Balance struct { // address is the address of the balance holder. Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // coins defines the different coins this balance holds. 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"` }
Balance defines an account address and balance pair used in the bank module's genesis state.
func (*Balance) Descriptor ¶
func (*Balance) MarshalToSizedBuffer ¶
func (*Balance) ProtoMessage ¶
func (*Balance) ProtoMessage()
func (*Balance) XXX_DiscardUnknown ¶
func (m *Balance) XXX_DiscardUnknown()
func (*Balance) XXX_Marshal ¶
func (*Balance) XXX_Unmarshal ¶
type GenesisState ¶
type GenesisState struct { // params defines all the parameters of the module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` // balances is an array containing the balances of all the accounts. Balances []Balance `protobuf:"bytes,2,rep,name=balances,proto3" json:"balances"` // supply represents the total supply. If it is left empty, then supply will be calculated based on the provided // balances. Otherwise, it will be used to validate that the sum of the balances equals this amount. Supply github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=supply,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"supply"` }
GenesisState defines the bank/v2 module's genesis state.
func DefaultGenesisState ¶
func DefaultGenesisState() *GenesisState
DefaultGenesisState returns a default bank/v2 module genesis state.
func NewGenesisState ¶
func NewGenesisState(params Params) *GenesisState
NewGenesisState creates a new genesis state.
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetBalances ¶
func (m *GenesisState) GetBalances() []Balance
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
func (*GenesisState) GetSupply ¶
func (m *GenesisState) GetSupply() github_com_cosmos_cosmos_sdk_types.Coins
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
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 MsgMint ¶
type MsgMint struct { // authority is the address that controls the module (defaults to x/gov unless overwritten). Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` ToAddress string `protobuf:"bytes,2,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty"` 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"` }
MsgMint is the Msg/Mint request type.
func (*MsgMint) Descriptor ¶
func (*MsgMint) GetAmount ¶
func (m *MsgMint) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins
func (*MsgMint) GetAuthority ¶
func (*MsgMint) GetToAddress ¶
func (*MsgMint) MarshalToSizedBuffer ¶
func (*MsgMint) ProtoMessage ¶
func (*MsgMint) ProtoMessage()
func (*MsgMint) XXX_DiscardUnknown ¶
func (m *MsgMint) XXX_DiscardUnknown()
func (*MsgMint) XXX_Marshal ¶
func (*MsgMint) XXX_Unmarshal ¶
type MsgMintResponse ¶
type MsgMintResponse struct { }
MsgMint defines the response structure for executing a MsgMint message.
func (*MsgMintResponse) Descriptor ¶
func (*MsgMintResponse) Descriptor() ([]byte, []int)
func (*MsgMintResponse) Marshal ¶
func (m *MsgMintResponse) Marshal() (dAtA []byte, err error)
func (*MsgMintResponse) MarshalToSizedBuffer ¶
func (m *MsgMintResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgMintResponse) ProtoMessage ¶
func (*MsgMintResponse) ProtoMessage()
func (*MsgMintResponse) Reset ¶
func (m *MsgMintResponse) Reset()
func (*MsgMintResponse) Size ¶
func (m *MsgMintResponse) Size() (n int)
func (*MsgMintResponse) String ¶
func (m *MsgMintResponse) String() string
func (*MsgMintResponse) Unmarshal ¶
func (m *MsgMintResponse) Unmarshal(dAtA []byte) error
func (*MsgMintResponse) XXX_DiscardUnknown ¶
func (m *MsgMintResponse) XXX_DiscardUnknown()
func (*MsgMintResponse) XXX_Marshal ¶
func (m *MsgMintResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgMintResponse) XXX_Merge ¶
func (m *MsgMintResponse) XXX_Merge(src proto.Message)
func (*MsgMintResponse) XXX_Size ¶
func (m *MsgMintResponse) XXX_Size() int
func (*MsgMintResponse) XXX_Unmarshal ¶
func (m *MsgMintResponse) XXX_Unmarshal(b []byte) error
type MsgSend ¶
type MsgSend struct { FromAddress string `protobuf:"bytes,1,opt,name=from_address,json=fromAddress,proto3" json:"from_address,omitempty"` ToAddress string `protobuf:"bytes,2,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty"` 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 represents a message to send coins from one account to another.
func NewMsgSend ¶
NewMsgSend constructs a msg to send coins from one account to another.
func (*MsgSend) Descriptor ¶
func (*MsgSend) GetAmount ¶
func (m *MsgSend) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins
func (*MsgSend) GetFromAddress ¶
func (*MsgSend) GetToAddress ¶
func (*MsgSend) MarshalToSizedBuffer ¶
func (*MsgSend) ProtoMessage ¶
func (*MsgSend) ProtoMessage()
func (*MsgSend) XXX_DiscardUnknown ¶
func (m *MsgSend) XXX_DiscardUnknown()
func (*MsgSend) XXX_Marshal ¶
func (*MsgSend) XXX_Unmarshal ¶
type MsgSendResponse ¶
type MsgSendResponse struct { }
MsgSendResponse defines the response structure for executing a MsgSend message.
func (*MsgSendResponse) Descriptor ¶
func (*MsgSendResponse) Descriptor() ([]byte, []int)
func (*MsgSendResponse) Marshal ¶
func (m *MsgSendResponse) Marshal() (dAtA []byte, err error)
func (*MsgSendResponse) MarshalToSizedBuffer ¶
func (m *MsgSendResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSendResponse) ProtoMessage ¶
func (*MsgSendResponse) ProtoMessage()
func (*MsgSendResponse) Reset ¶
func (m *MsgSendResponse) Reset()
func (*MsgSendResponse) Size ¶
func (m *MsgSendResponse) Size() (n int)
func (*MsgSendResponse) String ¶
func (m *MsgSendResponse) String() string
func (*MsgSendResponse) Unmarshal ¶
func (m *MsgSendResponse) Unmarshal(dAtA []byte) error
func (*MsgSendResponse) XXX_DiscardUnknown ¶
func (m *MsgSendResponse) XXX_DiscardUnknown()
func (*MsgSendResponse) XXX_Marshal ¶
func (m *MsgSendResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSendResponse) XXX_Merge ¶
func (m *MsgSendResponse) XXX_Merge(src proto.Message)
func (*MsgSendResponse) XXX_Size ¶
func (m *MsgSendResponse) XXX_Size() int
func (*MsgSendResponse) XXX_Unmarshal ¶
func (m *MsgSendResponse) XXX_Unmarshal(b []byte) error
type MsgUpdateParams ¶
type MsgUpdateParams struct { // authority is the address that controls the module (defaults to x/gov unless overwritten). Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // params defines the x/bank 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.
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) 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) 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) 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.
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 parameters for the bank/v2 module.
func DefaultParams ¶
func DefaultParams() Params
DefaultParams is the default parameter configuration for the bank/v2 module
func NewParams ¶
func NewParams() Params
NewParams creates a new parameter configuration for the bank/v2 module
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 QueryBalanceRequest ¶
type QueryBalanceRequest struct { // address is the address to query balances for. Address string `protobuf:"bytes,1,opt,name=address,proto3" 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, denom string) *QueryBalanceRequest
NewQueryBalanceRequest creates a new instance of QueryBalanceRequest.
func (*QueryBalanceRequest) Descriptor ¶
func (*QueryBalanceRequest) Descriptor() ([]byte, []int)
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 QueryParamsRequest ¶
type QueryParamsRequest struct { }
QueryParamsRequest defines the request type for querying x/bank/v2 parameters.
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 provides the parameters of the bank module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` }
QueryParamsResponse defines the response type for querying x/bank/v2 parameters.
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 SendRestrictionFn ¶
type SendRestrictionFn func(ctx context.Context, fromAddr, toAddr []byte, amt sdk.Coins) (newToAddr []byte, err error)
A SendRestrictionFn can restrict sends and/or provide a new receiver address.
func ComposeSendRestrictions ¶
func ComposeSendRestrictions(restrictions ...SendRestrictionFn) SendRestrictionFn
ComposeSendRestrictions combines multiple SendRestrictionFn into one. nil entries are ignored. If all entries are nil, nil is returned. If exactly one entry is not nil, it is returned. Otherwise, a new SendRestrictionFn is returned that runs the non-nil restrictions in the order they are given. The composition runs each send restriction until an error is encountered and returns that error, otherwise it returns the toAddr of the last send restriction.
func (SendRestrictionFn) IsOnePerModuleType ¶
func (SendRestrictionFn) IsOnePerModuleType()
IsOnePerModuleType implements the depinject.OnePerModuleType interface.
func (SendRestrictionFn) Then ¶
func (r SendRestrictionFn) Then(second SendRestrictionFn) SendRestrictionFn
Then creates a composite restriction that runs this one then the provided second one.