cosmos-sdk: github.com/cosmos/cosmos-sdk/x/bank/types Index | Files

package types

import "github.com/cosmos/cosmos-sdk/x/bank/types"

Index

Package Files

bank.pb.go codec.go errors.go events.go expected_keepers.go genesis.go genesis.pb.go key.go msgs.go params.go querier.go query.pb.go supply.go

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 (
    ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
    ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
    ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
var (
    BalancesPrefix      = []byte("balances")
    SupplyKey           = []byte{0x00}
    DenomMetadataPrefix = []byte{0x1}
)

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())
)

func AddressFromBalancesStore Uses

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 DenomMetadataKey Uses

func DenomMetadataKey(denom string) []byte

DenomMetadataKey returns the denomination metadata key.

func ParamKeyTable Uses

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable for bank module.

func RegisterCodec Uses

func RegisterCodec(cdc *codec.Codec)

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 Uses

func RegisterInterfaces(registry types.InterfaceRegistry)

func RegisterQueryServer Uses

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func ValidateGenesis Uses

func ValidateGenesis(data GenesisState) error

ValidateGenesis performs basic validation of supply genesis data returning an error for any failed validation criteria.

func ValidateInputsOutputs Uses

func ValidateInputsOutputs(inputs []Input, outputs []Output) error

ValidateInputsOutputs validates that each respective input and output is valid and that the sum of inputs is equal to the sum of outputs.

type AccountKeeper Uses

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 Uses

type Balance 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"`
}

Balance defines an account address and balance pair used in the bank module's genesis state.

func SanitizeGenesisBalances Uses

func SanitizeGenesisBalances(balances []Balance) []Balance

SanitizeGenesisAccounts sorts addresses and coin sets.

func (*Balance) Descriptor Uses

func (*Balance) Descriptor() ([]byte, []int)

func (Balance) GetAddress Uses

func (b Balance) GetAddress() sdk.AccAddress

GetAddress returns the account address of the Balance object.

func (Balance) GetCoins Uses

func (b Balance) GetCoins() sdk.Coins

GetAddress returns the account coins of the Balance object.

func (*Balance) Marshal Uses

func (m *Balance) Marshal() (dAtA []byte, err error)

func (*Balance) MarshalTo Uses

func (m *Balance) MarshalTo(dAtA []byte) (int, error)

func (*Balance) MarshalToSizedBuffer Uses

func (m *Balance) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Balance) ProtoMessage Uses

func (*Balance) ProtoMessage()

func (*Balance) Reset Uses

func (m *Balance) Reset()

func (*Balance) Size Uses

func (m *Balance) Size() (n int)

func (*Balance) String Uses

func (m *Balance) String() string

func (*Balance) Unmarshal Uses

func (m *Balance) Unmarshal(dAtA []byte) error

func (*Balance) XXX_DiscardUnknown Uses

func (m *Balance) XXX_DiscardUnknown()

func (*Balance) XXX_Marshal Uses

func (m *Balance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Balance) XXX_Merge Uses

func (m *Balance) XXX_Merge(src proto.Message)

func (*Balance) XXX_Size Uses

func (m *Balance) XXX_Size() int

func (*Balance) XXX_Unmarshal Uses

func (m *Balance) XXX_Unmarshal(b []byte) error

type DenomUnits Uses

type DenomUnits struct {
    Denom    string   `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
    Exponent uint32   `protobuf:"varint,2,opt,name=exponent,proto3" json:"exponent,omitempty"`
    Aliases  []string `protobuf:"bytes,3,rep,name=aliases,proto3" json:"aliases,omitempty"`
}

DenomUnits represents a struct that describes different denominations units of the basic token

func (*DenomUnits) Descriptor Uses

func (*DenomUnits) Descriptor() ([]byte, []int)

func (*DenomUnits) GetAliases Uses

func (m *DenomUnits) GetAliases() []string

func (*DenomUnits) GetDenom Uses

func (m *DenomUnits) GetDenom() string

func (*DenomUnits) GetExponent Uses

func (m *DenomUnits) GetExponent() uint32

func (*DenomUnits) Marshal Uses

func (m *DenomUnits) Marshal() (dAtA []byte, err error)

func (*DenomUnits) MarshalTo Uses

func (m *DenomUnits) MarshalTo(dAtA []byte) (int, error)

func (*DenomUnits) MarshalToSizedBuffer Uses

func (m *DenomUnits) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DenomUnits) ProtoMessage Uses

func (*DenomUnits) ProtoMessage()

func (*DenomUnits) Reset Uses

func (m *DenomUnits) Reset()

func (*DenomUnits) Size Uses

func (m *DenomUnits) Size() (n int)

func (*DenomUnits) String Uses

func (m *DenomUnits) String() string

func (*DenomUnits) Unmarshal Uses

func (m *DenomUnits) Unmarshal(dAtA []byte) error

func (*DenomUnits) XXX_DiscardUnknown Uses

func (m *DenomUnits) XXX_DiscardUnknown()

func (*DenomUnits) XXX_Marshal Uses

func (m *DenomUnits) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DenomUnits) XXX_Merge Uses

func (m *DenomUnits) XXX_Merge(src proto.Message)

func (*DenomUnits) XXX_Size Uses

func (m *DenomUnits) XXX_Size() int

func (*DenomUnits) XXX_Unmarshal Uses

func (m *DenomUnits) XXX_Unmarshal(b []byte) error

type GenesisBalancesIterator Uses

type GenesisBalancesIterator struct{}

GenesisAccountIterator implements genesis account iteration.

func (GenesisBalancesIterator) IterateGenesisBalances Uses

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 Uses

type GenesisState struct {
    Params        Params                                   `protobuf:"bytes,1,opt,name=params,proto3,casttype=Params" json:"params"`
    Balances      []Balance                                `protobuf:"bytes,2,rep,name=balances,proto3,casttype=Balance" json:"balances"`
    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"`
    DenomMetadata []Metadata                               `protobuf:"bytes,4,rep,name=denom_metadata,json=denomMetadata,proto3,casttype=Metadata" json:"denom_metadata" yaml:"denom_metadata"`
}

GenesisState defines the bank module's genesis state.

func DefaultGenesisState Uses

func DefaultGenesisState() GenesisState

DefaultGenesisState returns a default bank module genesis state.

func GetGenesisStateFromAppState Uses

func GetGenesisStateFromAppState(cdc codec.JSONMarshaler, appState map[string]json.RawMessage) GenesisState

GetGenesisStateFromAppState returns x/bank GenesisState given raw application genesis state.

func NewGenesisState Uses

func NewGenesisState(params Params, balances []Balance, supply sdk.Coins, denomMetaData []Metadata) GenesisState

NewGenesisState creates a new genesis state.

func (*GenesisState) Descriptor Uses

func (*GenesisState) Descriptor() ([]byte, []int)

func (*GenesisState) GetBalances Uses

func (m *GenesisState) GetBalances() []Balance

func (*GenesisState) GetDenomMetadata Uses

func (m *GenesisState) GetDenomMetadata() []Metadata

func (*GenesisState) GetParams Uses

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetSupply Uses

func (m *GenesisState) GetSupply() github_com_cosmos_cosmos_sdk_types.Coins

func (*GenesisState) Marshal Uses

func (m *GenesisState) Marshal() (dAtA []byte, err error)

func (*GenesisState) MarshalTo Uses

func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)

func (*GenesisState) MarshalToSizedBuffer Uses

func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GenesisState) ProtoMessage Uses

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset Uses

func (m *GenesisState) Reset()

func (*GenesisState) Size Uses

func (m *GenesisState) Size() (n int)

func (*GenesisState) String Uses

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal Uses

func (m *GenesisState) Unmarshal(dAtA []byte) error

func (*GenesisState) XXX_DiscardUnknown Uses

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal Uses

func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GenesisState) XXX_Merge Uses

func (m *GenesisState) XXX_Merge(src proto.Message)

func (*GenesisState) XXX_Size Uses

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal Uses

func (m *GenesisState) XXX_Unmarshal(b []byte) error

type Input Uses

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 Uses

func NewInput(addr sdk.AccAddress, coins sdk.Coins) Input

NewInput - create a transaction input, used with MsgMultiSend

func (*Input) Descriptor Uses

func (*Input) Descriptor() ([]byte, []int)

func (*Input) Equal Uses

func (this *Input) Equal(that interface{}) bool

func (*Input) GetAddress Uses

func (m *Input) GetAddress() github_com_cosmos_cosmos_sdk_types.AccAddress

func (*Input) GetCoins Uses

func (m *Input) GetCoins() github_com_cosmos_cosmos_sdk_types.Coins

func (*Input) Marshal Uses

func (m *Input) Marshal() (dAtA []byte, err error)

func (*Input) MarshalTo Uses

func (m *Input) MarshalTo(dAtA []byte) (int, error)

func (*Input) MarshalToSizedBuffer Uses

func (m *Input) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Input) ProtoMessage Uses

func (*Input) ProtoMessage()

func (*Input) Reset Uses

func (m *Input) Reset()

func (*Input) Size Uses

func (m *Input) Size() (n int)

func (*Input) String Uses

func (m *Input) String() string

func (*Input) Unmarshal Uses

func (m *Input) Unmarshal(dAtA []byte) error

func (Input) ValidateBasic Uses

func (in Input) ValidateBasic() error

ValidateBasic - validate transaction input

func (*Input) XXX_DiscardUnknown Uses

func (m *Input) XXX_DiscardUnknown()

func (*Input) XXX_Marshal Uses

func (m *Input) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Input) XXX_Merge Uses

func (m *Input) XXX_Merge(src proto.Message)

func (*Input) XXX_Size Uses

func (m *Input) XXX_Size() int

func (*Input) XXX_Unmarshal Uses

func (m *Input) XXX_Unmarshal(b []byte) error

type Metadata Uses

type Metadata struct {
    Description string        `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
    DenomUnits  []*DenomUnits `protobuf:"bytes,2,rep,name=denom_units,json=denomUnits,proto3" json:"denom_units,omitempty"`
    Base        string        `protobuf:"bytes,3,opt,name=base,proto3" json:"base,omitempty"`
    Display     string        `protobuf:"bytes,4,opt,name=display,proto3" json:"display,omitempty"`
}

Metadata represents a struct that describes a basic token

func (*Metadata) Descriptor Uses

func (*Metadata) Descriptor() ([]byte, []int)

func (*Metadata) GetBase Uses

func (m *Metadata) GetBase() string

func (*Metadata) GetDenomUnits Uses

func (m *Metadata) GetDenomUnits() []*DenomUnits

func (*Metadata) GetDescription Uses

func (m *Metadata) GetDescription() string

func (*Metadata) GetDisplay Uses

func (m *Metadata) GetDisplay() string

func (*Metadata) Marshal Uses

func (m *Metadata) Marshal() (dAtA []byte, err error)

func (*Metadata) MarshalTo Uses

func (m *Metadata) MarshalTo(dAtA []byte) (int, error)

func (*Metadata) MarshalToSizedBuffer Uses

func (m *Metadata) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Metadata) ProtoMessage Uses

func (*Metadata) ProtoMessage()

func (*Metadata) Reset Uses

func (m *Metadata) Reset()

func (*Metadata) Size Uses

func (m *Metadata) Size() (n int)

func (*Metadata) String Uses

func (m *Metadata) String() string

func (*Metadata) Unmarshal Uses

func (m *Metadata) Unmarshal(dAtA []byte) error

func (*Metadata) XXX_DiscardUnknown Uses

func (m *Metadata) XXX_DiscardUnknown()

func (*Metadata) XXX_Marshal Uses

func (m *Metadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Metadata) XXX_Merge Uses

func (m *Metadata) XXX_Merge(src proto.Message)

func (*Metadata) XXX_Size Uses

func (m *Metadata) XXX_Size() int

func (*Metadata) XXX_Unmarshal Uses

func (m *Metadata) XXX_Unmarshal(b []byte) error

type MsgMultiSend Uses

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 Uses

func NewMsgMultiSend(in []Input, out []Output) *MsgMultiSend

NewMsgMultiSend - construct arbitrary multi-in, multi-out send msg.

func (*MsgMultiSend) Descriptor Uses

func (*MsgMultiSend) Descriptor() ([]byte, []int)

func (*MsgMultiSend) Equal Uses

func (this *MsgMultiSend) Equal(that interface{}) bool

func (*MsgMultiSend) GetInputs Uses

func (m *MsgMultiSend) GetInputs() []Input

func (*MsgMultiSend) GetOutputs Uses

func (m *MsgMultiSend) GetOutputs() []Output

func (MsgMultiSend) GetSignBytes Uses

func (msg MsgMultiSend) GetSignBytes() []byte

GetSignBytes Implements Msg.

func (MsgMultiSend) GetSigners Uses

func (msg MsgMultiSend) GetSigners() []sdk.AccAddress

GetSigners Implements Msg.

func (*MsgMultiSend) Marshal Uses

func (m *MsgMultiSend) Marshal() (dAtA []byte, err error)

func (*MsgMultiSend) MarshalTo Uses

func (m *MsgMultiSend) MarshalTo(dAtA []byte) (int, error)

func (*MsgMultiSend) MarshalToSizedBuffer Uses

func (m *MsgMultiSend) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgMultiSend) ProtoMessage Uses

func (*MsgMultiSend) ProtoMessage()

func (*MsgMultiSend) Reset Uses

func (m *MsgMultiSend) Reset()

func (MsgMultiSend) Route Uses

func (msg MsgMultiSend) Route() string

Route Implements Msg

func (*MsgMultiSend) Size Uses

func (m *MsgMultiSend) Size() (n int)

func (*MsgMultiSend) String Uses

func (m *MsgMultiSend) String() string

func (MsgMultiSend) Type Uses

func (msg MsgMultiSend) Type() string

Type Implements Msg

func (*MsgMultiSend) Unmarshal Uses

func (m *MsgMultiSend) Unmarshal(dAtA []byte) error

func (MsgMultiSend) ValidateBasic Uses

func (msg MsgMultiSend) ValidateBasic() error

ValidateBasic Implements Msg.

func (*MsgMultiSend) XXX_DiscardUnknown Uses

func (m *MsgMultiSend) XXX_DiscardUnknown()

func (*MsgMultiSend) XXX_Marshal Uses

func (m *MsgMultiSend) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgMultiSend) XXX_Merge Uses

func (m *MsgMultiSend) XXX_Merge(src proto.Message)

func (*MsgMultiSend) XXX_Size Uses

func (m *MsgMultiSend) XXX_Size() int

func (*MsgMultiSend) XXX_Unmarshal Uses

func (m *MsgMultiSend) XXX_Unmarshal(b []byte) error

type MsgSend Uses

type MsgSend struct {
    FromAddress github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=from_address,json=fromAddress,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"from_address,omitempty" yaml:"from_address"`
    ToAddress   github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,2,opt,name=to_address,json=toAddress,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"to_address,omitempty" yaml:"to_address"`
    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 Uses

func NewMsgSend(fromAddr, toAddr sdk.AccAddress, amount sdk.Coins) *MsgSend

NewMsgSend - construct arbitrary multi-in, multi-out send msg.

func (*MsgSend) Descriptor Uses

func (*MsgSend) Descriptor() ([]byte, []int)

func (*MsgSend) Equal Uses

func (this *MsgSend) Equal(that interface{}) bool

func (*MsgSend) GetAmount Uses

func (m *MsgSend) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins

func (*MsgSend) GetFromAddress Uses

func (m *MsgSend) GetFromAddress() github_com_cosmos_cosmos_sdk_types.AccAddress

func (MsgSend) GetSignBytes Uses

func (msg MsgSend) GetSignBytes() []byte

GetSignBytes Implements Msg.

func (MsgSend) GetSigners Uses

func (msg MsgSend) GetSigners() []sdk.AccAddress

GetSigners Implements Msg.

func (*MsgSend) GetToAddress Uses

func (m *MsgSend) GetToAddress() github_com_cosmos_cosmos_sdk_types.AccAddress

func (*MsgSend) Marshal Uses

func (m *MsgSend) Marshal() (dAtA []byte, err error)

func (*MsgSend) MarshalTo Uses

func (m *MsgSend) MarshalTo(dAtA []byte) (int, error)

func (*MsgSend) MarshalToSizedBuffer Uses

func (m *MsgSend) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgSend) ProtoMessage Uses

func (*MsgSend) ProtoMessage()

func (*MsgSend) Reset Uses

func (m *MsgSend) Reset()

func (MsgSend) Route Uses

func (msg MsgSend) Route() string

Route Implements Msg.

func (*MsgSend) Size Uses

func (m *MsgSend) Size() (n int)

func (*MsgSend) String Uses

func (m *MsgSend) String() string

func (MsgSend) Type Uses

func (msg MsgSend) Type() string

Type Implements Msg.

func (*MsgSend) Unmarshal Uses

func (m *MsgSend) Unmarshal(dAtA []byte) error

func (MsgSend) ValidateBasic Uses

func (msg MsgSend) ValidateBasic() error

ValidateBasic Implements Msg.

func (*MsgSend) XXX_DiscardUnknown Uses

func (m *MsgSend) XXX_DiscardUnknown()

func (*MsgSend) XXX_Marshal Uses

func (m *MsgSend) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgSend) XXX_Merge Uses

func (m *MsgSend) XXX_Merge(src proto.Message)

func (*MsgSend) XXX_Size Uses

func (m *MsgSend) XXX_Size() int

func (*MsgSend) XXX_Unmarshal Uses

func (m *MsgSend) XXX_Unmarshal(b []byte) error

type Output Uses

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 Uses

func NewOutput(addr sdk.AccAddress, coins sdk.Coins) Output

NewOutput - create a transaction output, used with MsgMultiSend

func (*Output) Descriptor Uses

func (*Output) Descriptor() ([]byte, []int)

func (*Output) Equal Uses

func (this *Output) Equal(that interface{}) bool

func (*Output) GetAddress Uses

func (m *Output) GetAddress() github_com_cosmos_cosmos_sdk_types.AccAddress

func (*Output) GetCoins Uses

func (m *Output) GetCoins() github_com_cosmos_cosmos_sdk_types.Coins

func (*Output) Marshal Uses

func (m *Output) Marshal() (dAtA []byte, err error)

func (*Output) MarshalTo Uses

func (m *Output) MarshalTo(dAtA []byte) (int, error)

func (*Output) MarshalToSizedBuffer Uses

func (m *Output) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Output) ProtoMessage Uses

func (*Output) ProtoMessage()

func (*Output) Reset Uses

func (m *Output) Reset()

func (*Output) Size Uses

func (m *Output) Size() (n int)

func (*Output) String Uses

func (m *Output) String() string

func (*Output) Unmarshal Uses

func (m *Output) Unmarshal(dAtA []byte) error

func (Output) ValidateBasic Uses

func (out Output) ValidateBasic() error

ValidateBasic - validate transaction output

func (*Output) XXX_DiscardUnknown Uses

func (m *Output) XXX_DiscardUnknown()

func (*Output) XXX_Marshal Uses

func (m *Output) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Output) XXX_Merge Uses

func (m *Output) XXX_Merge(src proto.Message)

func (*Output) XXX_Size Uses

func (m *Output) XXX_Size() int

func (*Output) XXX_Unmarshal Uses

func (m *Output) XXX_Unmarshal(b []byte) error

type Params Uses

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           `protobuf:"varint,2,opt,name=default_send_enabled,json=defaultSendEnabled,proto3" json:"default_send_enabled,omitempty" yaml:"default_send_enabled,omitempty"`
}

Params defines the set of bank parameters.

func DefaultParams Uses

func DefaultParams() Params

DefaultParams is the default parameter configuration for the bank module

func NewParams Uses

func NewParams(defaultSendEnabled bool, sendEnabledParams SendEnabledParams) Params

NewParams creates a new parameter configuration for the bank module

func (*Params) Descriptor Uses

func (*Params) Descriptor() ([]byte, []int)

func (*Params) GetDefaultSendEnabled Uses

func (m *Params) GetDefaultSendEnabled() bool

func (*Params) GetSendEnabled Uses

func (m *Params) GetSendEnabled() []*SendEnabled

func (*Params) Marshal Uses

func (m *Params) Marshal() (dAtA []byte, err error)

func (*Params) MarshalTo Uses

func (m *Params) MarshalTo(dAtA []byte) (int, error)

func (*Params) MarshalToSizedBuffer Uses

func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Params) ParamSetPairs Uses

func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs

ParamSetPairs implements params.ParamSet

func (*Params) ProtoMessage Uses

func (*Params) ProtoMessage()

func (*Params) Reset Uses

func (m *Params) Reset()

func (Params) SendEnabledDenom Uses

func (p Params) SendEnabledDenom(denom string) bool

SendEnabledDenom returns true if the given denom is enabled for sending

func (Params) SetSendEnabledParam Uses

func (p Params) SetSendEnabledParam(denom string, sendEnabled bool) Params

SetSendEnabledParam returns an updated set of Parameters with the given denom send enabled flag set.

func (*Params) Size Uses

func (m *Params) Size() (n int)

func (Params) String Uses

func (p Params) String() string

String implements the Stringer interface.

func (*Params) Unmarshal Uses

func (m *Params) Unmarshal(dAtA []byte) error

func (Params) Validate Uses

func (p Params) Validate() error

Validate all bank module parameters

func (*Params) XXX_DiscardUnknown Uses

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal Uses

func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Params) XXX_Merge Uses

func (m *Params) XXX_Merge(src proto.Message)

func (*Params) XXX_Size Uses

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal Uses

func (m *Params) XXX_Unmarshal(b []byte) error

type QueryAllBalancesRequest Uses

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 Uses

func NewQueryAllBalancesRequest(addr sdk.AccAddress, req *query.PageRequest) *QueryAllBalancesRequest

NewQueryAllBalancesRequest creates a new instance of QueryAllBalancesRequest.

func (*QueryAllBalancesRequest) Descriptor Uses

func (*QueryAllBalancesRequest) Descriptor() ([]byte, []int)

func (*QueryAllBalancesRequest) GetAddress Uses

func (m *QueryAllBalancesRequest) GetAddress() github_com_cosmos_cosmos_sdk_types.AccAddress

func (*QueryAllBalancesRequest) GetPagination Uses

func (m *QueryAllBalancesRequest) GetPagination() *query.PageRequest

func (*QueryAllBalancesRequest) Marshal Uses

func (m *QueryAllBalancesRequest) Marshal() (dAtA []byte, err error)

func (*QueryAllBalancesRequest) MarshalTo Uses

func (m *QueryAllBalancesRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryAllBalancesRequest) MarshalToSizedBuffer Uses

func (m *QueryAllBalancesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryAllBalancesRequest) ProtoMessage Uses

func (*QueryAllBalancesRequest) ProtoMessage()

func (*QueryAllBalancesRequest) Reset Uses

func (m *QueryAllBalancesRequest) Reset()

func (*QueryAllBalancesRequest) Size Uses

func (m *QueryAllBalancesRequest) Size() (n int)

func (*QueryAllBalancesRequest) String Uses

func (m *QueryAllBalancesRequest) String() string

func (*QueryAllBalancesRequest) Unmarshal Uses

func (m *QueryAllBalancesRequest) Unmarshal(dAtA []byte) error

func (*QueryAllBalancesRequest) XXX_DiscardUnknown Uses

func (m *QueryAllBalancesRequest) XXX_DiscardUnknown()

func (*QueryAllBalancesRequest) XXX_Marshal Uses

func (m *QueryAllBalancesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryAllBalancesRequest) XXX_Merge Uses

func (m *QueryAllBalancesRequest) XXX_Merge(src proto.Message)

func (*QueryAllBalancesRequest) XXX_Size Uses

func (m *QueryAllBalancesRequest) XXX_Size() int

func (*QueryAllBalancesRequest) XXX_Unmarshal Uses

func (m *QueryAllBalancesRequest) XXX_Unmarshal(b []byte) error

type QueryAllBalancesResponse Uses

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 Uses

func (*QueryAllBalancesResponse) Descriptor() ([]byte, []int)

func (*QueryAllBalancesResponse) GetBalances Uses

func (m *QueryAllBalancesResponse) GetBalances() github_com_cosmos_cosmos_sdk_types.Coins

func (*QueryAllBalancesResponse) GetPagination Uses

func (m *QueryAllBalancesResponse) GetPagination() *query.PageResponse

func (*QueryAllBalancesResponse) Marshal Uses

func (m *QueryAllBalancesResponse) Marshal() (dAtA []byte, err error)

func (*QueryAllBalancesResponse) MarshalTo Uses

func (m *QueryAllBalancesResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryAllBalancesResponse) MarshalToSizedBuffer Uses

func (m *QueryAllBalancesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryAllBalancesResponse) ProtoMessage Uses

func (*QueryAllBalancesResponse) ProtoMessage()

func (*QueryAllBalancesResponse) Reset Uses

func (m *QueryAllBalancesResponse) Reset()

func (*QueryAllBalancesResponse) Size Uses

func (m *QueryAllBalancesResponse) Size() (n int)

func (*QueryAllBalancesResponse) String Uses

func (m *QueryAllBalancesResponse) String() string

func (*QueryAllBalancesResponse) Unmarshal Uses

func (m *QueryAllBalancesResponse) Unmarshal(dAtA []byte) error

func (*QueryAllBalancesResponse) XXX_DiscardUnknown Uses

func (m *QueryAllBalancesResponse) XXX_DiscardUnknown()

func (*QueryAllBalancesResponse) XXX_Marshal Uses

func (m *QueryAllBalancesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryAllBalancesResponse) XXX_Merge Uses

func (m *QueryAllBalancesResponse) XXX_Merge(src proto.Message)

func (*QueryAllBalancesResponse) XXX_Size Uses

func (m *QueryAllBalancesResponse) XXX_Size() int

func (*QueryAllBalancesResponse) XXX_Unmarshal Uses

func (m *QueryAllBalancesResponse) XXX_Unmarshal(b []byte) error

type QueryBalanceRequest Uses

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 Uses

func NewQueryBalanceRequest(addr sdk.AccAddress, denom string) *QueryBalanceRequest

NewQueryBalanceRequest creates a new instance of QueryBalanceRequest.

func (*QueryBalanceRequest) Descriptor Uses

func (*QueryBalanceRequest) Descriptor() ([]byte, []int)

func (*QueryBalanceRequest) GetAddress Uses

func (m *QueryBalanceRequest) GetAddress() github_com_cosmos_cosmos_sdk_types.AccAddress

func (*QueryBalanceRequest) GetDenom Uses

func (m *QueryBalanceRequest) GetDenom() string

func (*QueryBalanceRequest) Marshal Uses

func (m *QueryBalanceRequest) Marshal() (dAtA []byte, err error)

func (*QueryBalanceRequest) MarshalTo Uses

func (m *QueryBalanceRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryBalanceRequest) MarshalToSizedBuffer Uses

func (m *QueryBalanceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryBalanceRequest) ProtoMessage Uses

func (*QueryBalanceRequest) ProtoMessage()

func (*QueryBalanceRequest) Reset Uses

func (m *QueryBalanceRequest) Reset()

func (*QueryBalanceRequest) Size Uses

func (m *QueryBalanceRequest) Size() (n int)

func (*QueryBalanceRequest) String Uses

func (m *QueryBalanceRequest) String() string

func (*QueryBalanceRequest) Unmarshal Uses

func (m *QueryBalanceRequest) Unmarshal(dAtA []byte) error

func (*QueryBalanceRequest) XXX_DiscardUnknown Uses

func (m *QueryBalanceRequest) XXX_DiscardUnknown()

func (*QueryBalanceRequest) XXX_Marshal Uses

func (m *QueryBalanceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryBalanceRequest) XXX_Merge Uses

func (m *QueryBalanceRequest) XXX_Merge(src proto.Message)

func (*QueryBalanceRequest) XXX_Size Uses

func (m *QueryBalanceRequest) XXX_Size() int

func (*QueryBalanceRequest) XXX_Unmarshal Uses

func (m *QueryBalanceRequest) XXX_Unmarshal(b []byte) error

type QueryBalanceResponse Uses

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 Uses

func (*QueryBalanceResponse) Descriptor() ([]byte, []int)

func (*QueryBalanceResponse) GetBalance Uses

func (m *QueryBalanceResponse) GetBalance() *types.Coin

func (*QueryBalanceResponse) Marshal Uses

func (m *QueryBalanceResponse) Marshal() (dAtA []byte, err error)

func (*QueryBalanceResponse) MarshalTo Uses

func (m *QueryBalanceResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryBalanceResponse) MarshalToSizedBuffer Uses

func (m *QueryBalanceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryBalanceResponse) ProtoMessage Uses

func (*QueryBalanceResponse) ProtoMessage()

func (*QueryBalanceResponse) Reset Uses

func (m *QueryBalanceResponse) Reset()

func (*QueryBalanceResponse) Size Uses

func (m *QueryBalanceResponse) Size() (n int)

func (*QueryBalanceResponse) String Uses

func (m *QueryBalanceResponse) String() string

func (*QueryBalanceResponse) Unmarshal Uses

func (m *QueryBalanceResponse) Unmarshal(dAtA []byte) error

func (*QueryBalanceResponse) XXX_DiscardUnknown Uses

func (m *QueryBalanceResponse) XXX_DiscardUnknown()

func (*QueryBalanceResponse) XXX_Marshal Uses

func (m *QueryBalanceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryBalanceResponse) XXX_Merge Uses

func (m *QueryBalanceResponse) XXX_Merge(src proto.Message)

func (*QueryBalanceResponse) XXX_Size Uses

func (m *QueryBalanceResponse) XXX_Size() int

func (*QueryBalanceResponse) XXX_Unmarshal Uses

func (m *QueryBalanceResponse) XXX_Unmarshal(b []byte) error

type QueryClient Uses

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 Uses

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryServer Uses

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 Uses

type QuerySupplyOfParams struct {
    Denom string
}

QuerySupplyOfParams defines the params for the following queries:

- 'custom/bank/totalSupplyOf'

func NewQuerySupplyOfParams Uses

func NewQuerySupplyOfParams(denom string) QuerySupplyOfParams

NewQuerySupplyOfParams creates a new instance to query the total supply of a given denomination

type QuerySupplyOfRequest Uses

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 Uses

func (*QuerySupplyOfRequest) Descriptor() ([]byte, []int)

func (*QuerySupplyOfRequest) GetDenom Uses

func (m *QuerySupplyOfRequest) GetDenom() string

func (*QuerySupplyOfRequest) Marshal Uses

func (m *QuerySupplyOfRequest) Marshal() (dAtA []byte, err error)

func (*QuerySupplyOfRequest) MarshalTo Uses

func (m *QuerySupplyOfRequest) MarshalTo(dAtA []byte) (int, error)

func (*QuerySupplyOfRequest) MarshalToSizedBuffer Uses

func (m *QuerySupplyOfRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QuerySupplyOfRequest) ProtoMessage Uses

func (*QuerySupplyOfRequest) ProtoMessage()

func (*QuerySupplyOfRequest) Reset Uses

func (m *QuerySupplyOfRequest) Reset()

func (*QuerySupplyOfRequest) Size Uses

func (m *QuerySupplyOfRequest) Size() (n int)

func (*QuerySupplyOfRequest) String Uses

func (m *QuerySupplyOfRequest) String() string

func (*QuerySupplyOfRequest) Unmarshal Uses

func (m *QuerySupplyOfRequest) Unmarshal(dAtA []byte) error

func (*QuerySupplyOfRequest) XXX_DiscardUnknown Uses

func (m *QuerySupplyOfRequest) XXX_DiscardUnknown()

func (*QuerySupplyOfRequest) XXX_Marshal Uses

func (m *QuerySupplyOfRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QuerySupplyOfRequest) XXX_Merge Uses

func (m *QuerySupplyOfRequest) XXX_Merge(src proto.Message)

func (*QuerySupplyOfRequest) XXX_Size Uses

func (m *QuerySupplyOfRequest) XXX_Size() int

func (*QuerySupplyOfRequest) XXX_Unmarshal Uses

func (m *QuerySupplyOfRequest) XXX_Unmarshal(b []byte) error

type QuerySupplyOfResponse Uses

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 Uses

func (*QuerySupplyOfResponse) Descriptor() ([]byte, []int)

func (*QuerySupplyOfResponse) Marshal Uses

func (m *QuerySupplyOfResponse) Marshal() (dAtA []byte, err error)

func (*QuerySupplyOfResponse) MarshalTo Uses

func (m *QuerySupplyOfResponse) MarshalTo(dAtA []byte) (int, error)

func (*QuerySupplyOfResponse) MarshalToSizedBuffer Uses

func (m *QuerySupplyOfResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QuerySupplyOfResponse) ProtoMessage Uses

func (*QuerySupplyOfResponse) ProtoMessage()

func (*QuerySupplyOfResponse) Reset Uses

func (m *QuerySupplyOfResponse) Reset()

func (*QuerySupplyOfResponse) Size Uses

func (m *QuerySupplyOfResponse) Size() (n int)

func (*QuerySupplyOfResponse) String Uses

func (m *QuerySupplyOfResponse) String() string

func (*QuerySupplyOfResponse) Unmarshal Uses

func (m *QuerySupplyOfResponse) Unmarshal(dAtA []byte) error

func (*QuerySupplyOfResponse) XXX_DiscardUnknown Uses

func (m *QuerySupplyOfResponse) XXX_DiscardUnknown()

func (*QuerySupplyOfResponse) XXX_Marshal Uses

func (m *QuerySupplyOfResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QuerySupplyOfResponse) XXX_Merge Uses

func (m *QuerySupplyOfResponse) XXX_Merge(src proto.Message)

func (*QuerySupplyOfResponse) XXX_Size Uses

func (m *QuerySupplyOfResponse) XXX_Size() int

func (*QuerySupplyOfResponse) XXX_Unmarshal Uses

func (m *QuerySupplyOfResponse) XXX_Unmarshal(b []byte) error

type QueryTotalSupplyParams Uses

type QueryTotalSupplyParams struct {
    Page, Limit int
}

QueryTotalSupplyParams defines the params for the following queries:

- 'custom/bank/totalSupply'

func NewQueryTotalSupplyParams Uses

func NewQueryTotalSupplyParams(page, limit int) QueryTotalSupplyParams

NewQueryTotalSupplyParams creates a new instance to query the total supply

type QueryTotalSupplyRequest Uses

type QueryTotalSupplyRequest struct {
}

QueryTotalSupplyRequest is the request type for the Query/TotalSupply RPC method

func (*QueryTotalSupplyRequest) Descriptor Uses

func (*QueryTotalSupplyRequest) Descriptor() ([]byte, []int)

func (*QueryTotalSupplyRequest) Marshal Uses

func (m *QueryTotalSupplyRequest) Marshal() (dAtA []byte, err error)

func (*QueryTotalSupplyRequest) MarshalTo Uses

func (m *QueryTotalSupplyRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryTotalSupplyRequest) MarshalToSizedBuffer Uses

func (m *QueryTotalSupplyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryTotalSupplyRequest) ProtoMessage Uses

func (*QueryTotalSupplyRequest) ProtoMessage()

func (*QueryTotalSupplyRequest) Reset Uses

func (m *QueryTotalSupplyRequest) Reset()

func (*QueryTotalSupplyRequest) Size Uses

func (m *QueryTotalSupplyRequest) Size() (n int)

func (*QueryTotalSupplyRequest) String Uses

func (m *QueryTotalSupplyRequest) String() string

func (*QueryTotalSupplyRequest) Unmarshal Uses

func (m *QueryTotalSupplyRequest) Unmarshal(dAtA []byte) error

func (*QueryTotalSupplyRequest) XXX_DiscardUnknown Uses

func (m *QueryTotalSupplyRequest) XXX_DiscardUnknown()

func (*QueryTotalSupplyRequest) XXX_Marshal Uses

func (m *QueryTotalSupplyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryTotalSupplyRequest) XXX_Merge Uses

func (m *QueryTotalSupplyRequest) XXX_Merge(src proto.Message)

func (*QueryTotalSupplyRequest) XXX_Size Uses

func (m *QueryTotalSupplyRequest) XXX_Size() int

func (*QueryTotalSupplyRequest) XXX_Unmarshal Uses

func (m *QueryTotalSupplyRequest) XXX_Unmarshal(b []byte) error

type QueryTotalSupplyResponse Uses

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 Uses

func (*QueryTotalSupplyResponse) Descriptor() ([]byte, []int)

func (*QueryTotalSupplyResponse) GetSupply Uses

func (m *QueryTotalSupplyResponse) GetSupply() github_com_cosmos_cosmos_sdk_types.Coins

func (*QueryTotalSupplyResponse) Marshal Uses

func (m *QueryTotalSupplyResponse) Marshal() (dAtA []byte, err error)

func (*QueryTotalSupplyResponse) MarshalTo Uses

func (m *QueryTotalSupplyResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryTotalSupplyResponse) MarshalToSizedBuffer Uses

func (m *QueryTotalSupplyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryTotalSupplyResponse) ProtoMessage Uses

func (*QueryTotalSupplyResponse) ProtoMessage()

func (*QueryTotalSupplyResponse) Reset Uses

func (m *QueryTotalSupplyResponse) Reset()

func (*QueryTotalSupplyResponse) Size Uses

func (m *QueryTotalSupplyResponse) Size() (n int)

func (*QueryTotalSupplyResponse) String Uses

func (m *QueryTotalSupplyResponse) String() string

func (*QueryTotalSupplyResponse) Unmarshal Uses

func (m *QueryTotalSupplyResponse) Unmarshal(dAtA []byte) error

func (*QueryTotalSupplyResponse) XXX_DiscardUnknown Uses

func (m *QueryTotalSupplyResponse) XXX_DiscardUnknown()

func (*QueryTotalSupplyResponse) XXX_Marshal Uses

func (m *QueryTotalSupplyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryTotalSupplyResponse) XXX_Merge Uses

func (m *QueryTotalSupplyResponse) XXX_Merge(src proto.Message)

func (*QueryTotalSupplyResponse) XXX_Size Uses

func (m *QueryTotalSupplyResponse) XXX_Size() int

func (*QueryTotalSupplyResponse) XXX_Unmarshal Uses

func (m *QueryTotalSupplyResponse) XXX_Unmarshal(b []byte) error

type SendEnabled Uses

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 Uses

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 Uses

func (*SendEnabled) Descriptor() ([]byte, []int)

func (*SendEnabled) Equal Uses

func (this *SendEnabled) Equal(that interface{}) bool

func (*SendEnabled) GetDenom Uses

func (m *SendEnabled) GetDenom() string

func (*SendEnabled) GetEnabled Uses

func (m *SendEnabled) GetEnabled() bool

func (*SendEnabled) Marshal Uses

func (m *SendEnabled) Marshal() (dAtA []byte, err error)

func (*SendEnabled) MarshalTo Uses

func (m *SendEnabled) MarshalTo(dAtA []byte) (int, error)

func (*SendEnabled) MarshalToSizedBuffer Uses

func (m *SendEnabled) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SendEnabled) ProtoMessage Uses

func (*SendEnabled) ProtoMessage()

func (*SendEnabled) Reset Uses

func (m *SendEnabled) Reset()

func (*SendEnabled) Size Uses

func (m *SendEnabled) Size() (n int)

func (SendEnabled) String Uses

func (se SendEnabled) String() string

String implements stringer insterface

func (*SendEnabled) Unmarshal Uses

func (m *SendEnabled) Unmarshal(dAtA []byte) error

func (*SendEnabled) XXX_DiscardUnknown Uses

func (m *SendEnabled) XXX_DiscardUnknown()

func (*SendEnabled) XXX_Marshal Uses

func (m *SendEnabled) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SendEnabled) XXX_Merge Uses

func (m *SendEnabled) XXX_Merge(src proto.Message)

func (*SendEnabled) XXX_Size Uses

func (m *SendEnabled) XXX_Size() int

func (*SendEnabled) XXX_Unmarshal Uses

func (m *SendEnabled) XXX_Unmarshal(b []byte) error

type SendEnabledParams Uses

type SendEnabledParams []*SendEnabled

SendEnabledParams is a collection of parameters indicating if a coin denom is enabled for sending

type Supply Uses

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 DefaultSupply Uses

func DefaultSupply() *Supply

DefaultSupply creates an empty Supply

func NewSupply Uses

func NewSupply(total sdk.Coins) *Supply

NewSupply creates a new Supply instance

func (*Supply) Deflate Uses

func (supply *Supply) Deflate(amount sdk.Coins)

Deflate subtracts coins from the total supply.

func (*Supply) Descriptor Uses

func (*Supply) Descriptor() ([]byte, []int)

func (*Supply) Equal Uses

func (this *Supply) Equal(that interface{}) bool

func (Supply) GetTotal Uses

func (supply Supply) GetTotal() sdk.Coins

GetTotal returns the supply total.

func (*Supply) Inflate Uses

func (supply *Supply) Inflate(amount sdk.Coins)

Inflate adds coins to the total supply

func (*Supply) Marshal Uses

func (m *Supply) Marshal() (dAtA []byte, err error)

func (*Supply) MarshalTo Uses

func (m *Supply) MarshalTo(dAtA []byte) (int, error)

func (*Supply) MarshalToSizedBuffer Uses

func (m *Supply) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Supply) ProtoMessage Uses

func (*Supply) ProtoMessage()

func (*Supply) Reset Uses

func (m *Supply) Reset()

func (*Supply) SetTotal Uses

func (supply *Supply) SetTotal(total sdk.Coins)

SetTotal sets the total supply.

func (*Supply) Size Uses

func (m *Supply) Size() (n int)

func (Supply) String Uses

func (supply Supply) String() string

String returns a human readable string representation of a supplier.

func (*Supply) Unmarshal Uses

func (m *Supply) Unmarshal(dAtA []byte) error

func (Supply) ValidateBasic Uses

func (supply Supply) ValidateBasic() error

ValidateBasic validates the Supply coins and returns error if invalid

func (*Supply) XXX_DiscardUnknown Uses

func (m *Supply) XXX_DiscardUnknown()

func (*Supply) XXX_Marshal Uses

func (m *Supply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Supply) XXX_Merge Uses

func (m *Supply) XXX_Merge(src proto.Message)

func (*Supply) XXX_Size Uses

func (m *Supply) XXX_Size() int

func (*Supply) XXX_Unmarshal Uses

func (m *Supply) XXX_Unmarshal(b []byte) error

type UnimplementedQueryServer Uses

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) AllBalances Uses

func (*UnimplementedQueryServer) AllBalances(ctx context.Context, req *QueryAllBalancesRequest) (*QueryAllBalancesResponse, error)

func (*UnimplementedQueryServer) Balance Uses

func (*UnimplementedQueryServer) Balance(ctx context.Context, req *QueryBalanceRequest) (*QueryBalanceResponse, error)

func (*UnimplementedQueryServer) SupplyOf Uses

func (*UnimplementedQueryServer) SupplyOf(ctx context.Context, req *QuerySupplyOfRequest) (*QuerySupplyOfResponse, error)

func (*UnimplementedQueryServer) TotalSupply Uses

func (*UnimplementedQueryServer) TotalSupply(ctx context.Context, req *QueryTotalSupplyRequest) (*QueryTotalSupplyResponse, error)

Package types imports 25 packages (graph) and is imported by 9 packages. Updated 2020-08-04. Refresh now. Tools for package owners.