bank

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 30, 2020 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Overview

Package bank is mainly used to transfer coins between accounts,query account balances, and implement interface rpc.BankI

As a quick start:

TransferNFT coins to other account

 client := test.NewClient()
 amt := types.NewIntWithDecimal(1, 18)
 coins := types.NewCoins(types.NewCoin("point", amt))
 to := "iaa1rgnu8grzt6mwnjg7jss7w0sfyjn67g4et0hzfz"
 baseTx := types.BaseTx{
		From: "test1",
		Gas:  20000,
		Memo: "test",
		Mode: types.Commit,
 }
 result,err := client.BankI.Send(to,coins,baseTx)
 fmt.Println(result)

BurnNFT some coins from your account

 client := test.NewClient()
 amt := types.NewIntWithDecimal(1, 18)
 coins := types.NewCoins(types.NewCoin("point", amt))
 baseTx := types.BaseTx{
		From: "test1",
		Gas:  20000,
		Memo: "test",
		Mode: types.Commit,
 }
 result,err := client.BankI.BurnNFT(coins, baseTx)
 fmt.Println(result)

Set account memo

client := test.NewClient()
result,err := client.BankI.SetMemoRegexp("testMemo", baseTx)
fmt.Println(result)

Queries account information

client := test.NewClient()
result,err := client.BankI.QueryAccount("iaa1rgnu8grzt6mwnjg7jss7w0sfyjn67g4et0hzfz")
fmt.Println(result)

Queries the token information

client := test.NewClient()
result,err := client.BankI.QueryTokenStats("point")
fmt.Println(result)

Index

Constants

View Source
const (
	ModuleName = "bank"
)

Variables

View Source
var (
	ErrInvalidLengthBank        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowBank          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupBank = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ModuleCdc = codec.NewAminoCodec(amino)
)

Functions

func RegisterInterfaces added in v1.1.0

func RegisterInterfaces(registry types.InterfaceRegistry)

func RegisterQueryServer added in v1.1.0

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

Types

type BankI

type BankI interface {
	sdk.Module

	Send(to string, amount sdk.DecCoins, baseTx sdk.BaseTx) (sdk.ResultTx, sdk.Error)
	MultiSend(receipts MultiSendRequest, baseTx sdk.BaseTx) ([]sdk.ResultTx, sdk.Error)
	SubscribeSendTx(from, to string, callback EventMsgSendCallback) sdk.Subscription

	QueryAccount(address string) (sdk.BaseAccount, sdk.Error)
}

expose bank module api for user

func NewClient

func NewClient(bc sdk.BaseClient, cdc codec.Marshaler) BankI

type DenomUnit added in v1.1.0

type DenomUnit struct {
	// denom represents the string name of the given denom unit (e.g uatom).
	Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	// exponent represents power of 10 exponent that one must
	// raise the base_denom to in order to equal the given DenomUnit's denom
	// 1 denom = 1^exponent base_denom
	// (e.g. with a base_denom of uatom, one can create a DenomUnit of 'atom' with
	// exponent = 6, thus: 1 atom = 10^6 uatom).
	Exponent uint32 `protobuf:"varint,2,opt,name=exponent,proto3" json:"exponent,omitempty"`
	// aliases is a list of string aliases for the given denom
	Aliases []string `protobuf:"bytes,3,rep,name=aliases,proto3" json:"aliases,omitempty"`
}

DenomUnit represents a struct that describes a given denomination unit of the basic token.

func (*DenomUnit) Descriptor added in v1.1.0

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

func (*DenomUnit) GetAliases added in v1.1.0

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

func (*DenomUnit) GetDenom added in v1.1.0

func (m *DenomUnit) GetDenom() string

func (*DenomUnit) GetExponent added in v1.1.0

func (m *DenomUnit) GetExponent() uint32

func (*DenomUnit) Marshal added in v1.1.0

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

func (*DenomUnit) MarshalTo added in v1.1.0

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

func (*DenomUnit) MarshalToSizedBuffer added in v1.1.0

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

func (*DenomUnit) ProtoMessage added in v1.1.0

func (*DenomUnit) ProtoMessage()

func (*DenomUnit) Reset added in v1.1.0

func (m *DenomUnit) Reset()

func (*DenomUnit) Size added in v1.1.0

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

func (*DenomUnit) String added in v1.1.0

func (m *DenomUnit) String() string

func (*DenomUnit) Unmarshal added in v1.1.0

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

func (*DenomUnit) XXX_DiscardUnknown added in v1.1.0

func (m *DenomUnit) XXX_DiscardUnknown()

func (*DenomUnit) XXX_Marshal added in v1.1.0

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

func (*DenomUnit) XXX_Merge added in v1.1.0

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

func (*DenomUnit) XXX_Size added in v1.1.0

func (m *DenomUnit) XXX_Size() int

func (*DenomUnit) XXX_Unmarshal added in v1.1.0

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

type EventDataMsgSend

type EventDataMsgSend struct {
	Height int64      `json:"height"`
	Hash   string     `json:"hash"`
	From   string     `json:"from"`
	To     string     `json:"to"`
	Amount []sdk.Coin `json:"amount"`
}

type EventMsgSendCallback

type EventMsgSendCallback func(EventDataMsgSend)

type Input

type Input struct {
	Address github_com_bianjieai_irita_sdk_go_types.AccAddress `` /* 127-byte string literal not displayed */
	Coins   github_com_bianjieai_irita_sdk_go_types.Coins      `protobuf:"bytes,2,rep,name=coins,proto3,castrepeated=github.com/bianjieai/irita-sdk-go/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 MsgSend

func (*Input) Descriptor

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

func (*Input) Equal

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

func (*Input) GetCoins

func (*Input) Marshal

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

func (*Input) MarshalTo

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

func (*Input) MarshalToSizedBuffer

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

func (*Input) ProtoMessage

func (*Input) ProtoMessage()

func (*Input) Reset

func (m *Input) Reset()

func (*Input) Size

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

func (*Input) String

func (m *Input) String() string

func (*Input) Unmarshal

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

func (Input) ValidateBasic

func (in Input) ValidateBasic() error

ValidateBasic - validate transaction input

func (*Input) XXX_DiscardUnknown

func (m *Input) XXX_DiscardUnknown()

func (*Input) XXX_Marshal

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

func (*Input) XXX_Merge

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

func (*Input) XXX_Size

func (m *Input) XXX_Size() int

func (*Input) XXX_Unmarshal

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

type Metadata added in v1.1.0

type Metadata struct {
	Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
	// denom_units represents the list of DenomUnit's for a given coin
	DenomUnits []*DenomUnit `protobuf:"bytes,2,rep,name=denom_units,json=denomUnits,proto3" json:"denom_units,omitempty"`
	// base represents the base denom (should be the DenomUnit with exponent = 0).
	Base string `protobuf:"bytes,3,opt,name=base,proto3" json:"base,omitempty"`
	// display indicates the suggested denom that should be
	// displayed in clients.
	Display string `protobuf:"bytes,4,opt,name=display,proto3" json:"display,omitempty"`
}

Metadata represents a struct that describes a basic token.

func (*Metadata) Descriptor added in v1.1.0

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

func (*Metadata) GetBase added in v1.1.0

func (m *Metadata) GetBase() string

func (*Metadata) GetDenomUnits added in v1.1.0

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

func (*Metadata) GetDescription added in v1.1.0

func (m *Metadata) GetDescription() string

func (*Metadata) GetDisplay added in v1.1.0

func (m *Metadata) GetDisplay() string

func (*Metadata) Marshal added in v1.1.0

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

func (*Metadata) MarshalTo added in v1.1.0

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

func (*Metadata) MarshalToSizedBuffer added in v1.1.0

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

func (*Metadata) ProtoMessage added in v1.1.0

func (*Metadata) ProtoMessage()

func (*Metadata) Reset added in v1.1.0

func (m *Metadata) Reset()

func (*Metadata) Size added in v1.1.0

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

func (*Metadata) String added in v1.1.0

func (m *Metadata) String() string

func (*Metadata) Unmarshal added in v1.1.0

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

func (*Metadata) XXX_DiscardUnknown added in v1.1.0

func (m *Metadata) XXX_DiscardUnknown()

func (*Metadata) XXX_Marshal added in v1.1.0

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

func (*Metadata) XXX_Merge added in v1.1.0

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

func (*Metadata) XXX_Size added in v1.1.0

func (m *Metadata) XXX_Size() int

func (*Metadata) XXX_Unmarshal added in v1.1.0

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

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 represents an arbitrary multi-in, multi-out send message.

func NewMsgMultiSend

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

NewMsgSend - 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

Implements Msg.

func (MsgMultiSend) GetSigners

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

Implements Msg.

func (*MsgMultiSend) Marshal

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

func (*MsgMultiSend) MarshalTo

func (m *MsgMultiSend) MarshalTo(dAtA []byte) (int, 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) Route

func (msg MsgMultiSend) Route() string

func (*MsgMultiSend) Size

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

func (*MsgMultiSend) String

func (m *MsgMultiSend) String() string

func (MsgMultiSend) Type

func (msg MsgMultiSend) Type() string

Implements Msg.

func (*MsgMultiSend) Unmarshal

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

func (MsgMultiSend) ValidateBasic

func (msg MsgMultiSend) ValidateBasic() error

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_bianjieai_irita_sdk_go_types.AccAddress `` /* 174-byte string literal not displayed */
	ToAddress   github_com_bianjieai_irita_sdk_go_types.AccAddress `` /* 166-byte string literal not displayed */
	Amount      github_com_bianjieai_irita_sdk_go_types.Coins      `protobuf:"bytes,3,rep,name=amount,proto3,castrepeated=github.com/bianjieai/irita-sdk-go/types.Coins" json:"amount"`
}

MsgSend represents a message to send coins from one account to another.

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) Descriptor() ([]byte, []int)

func (*MsgSend) Equal

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

func (*MsgSend) GetAmount

func (*MsgSend) GetFromAddress

func (MsgSend) GetSignBytes

func (msg MsgSend) GetSignBytes() []byte

func (MsgSend) GetSigners

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

func (*MsgSend) GetToAddress

func (*MsgSend) Marshal

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

func (*MsgSend) MarshalTo

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

func (*MsgSend) MarshalToSizedBuffer

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

func (*MsgSend) ProtoMessage

func (*MsgSend) ProtoMessage()

func (*MsgSend) Reset

func (m *MsgSend) Reset()

func (MsgSend) Route

func (msg MsgSend) Route() string

func (*MsgSend) Size

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

func (*MsgSend) String

func (m *MsgSend) String() string

func (MsgSend) Type

func (msg MsgSend) Type() string

func (*MsgSend) Unmarshal

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

func (MsgSend) ValidateBasic

func (msg MsgSend) ValidateBasic() error

func (*MsgSend) XXX_DiscardUnknown

func (m *MsgSend) XXX_DiscardUnknown()

func (*MsgSend) XXX_Marshal

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

func (*MsgSend) XXX_Merge

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

func (*MsgSend) XXX_Size

func (m *MsgSend) XXX_Size() int

func (*MsgSend) XXX_Unmarshal

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

type MultiSendRequest

type MultiSendRequest struct {
	Receipts []Receipt
}

func (MultiSendRequest) Len

func (msr MultiSendRequest) Len() int

func (MultiSendRequest) Sub

func (msr MultiSendRequest) Sub(begin, end int) sdk.SplitAble

type Output

type Output struct {
	Address github_com_bianjieai_irita_sdk_go_types.AccAddress `` /* 127-byte string literal not displayed */
	Coins   github_com_bianjieai_irita_sdk_go_types.Coins      `protobuf:"bytes,2,rep,name=coins,proto3,castrepeated=github.com/bianjieai/irita-sdk-go/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 MsgSend

func (*Output) Descriptor

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

func (*Output) Equal

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

func (*Output) GetCoins

func (*Output) Marshal

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

func (*Output) MarshalTo

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

func (*Output) MarshalToSizedBuffer

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

func (*Output) ProtoMessage

func (*Output) ProtoMessage()

func (*Output) Reset

func (m *Output) Reset()

func (*Output) Size

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

func (*Output) String

func (m *Output) String() string

func (*Output) Unmarshal

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

func (Output) ValidateBasic

func (out Output) ValidateBasic() error

ValidateBasic - validate transaction output

func (*Output) XXX_DiscardUnknown

func (m *Output) XXX_DiscardUnknown()

func (*Output) XXX_Marshal

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

func (*Output) XXX_Merge

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

func (*Output) XXX_Size

func (m *Output) XXX_Size() int

func (*Output) XXX_Unmarshal

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

type Params added in v1.1.0

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 parameters for the bank module.

func (*Params) Descriptor added in v1.1.0

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

func (*Params) GetDefaultSendEnabled added in v1.1.0

func (m *Params) GetDefaultSendEnabled() bool

func (*Params) GetSendEnabled added in v1.1.0

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

func (*Params) Marshal added in v1.1.0

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

func (*Params) MarshalTo added in v1.1.0

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

func (*Params) MarshalToSizedBuffer added in v1.1.0

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

func (*Params) ProtoMessage added in v1.1.0

func (*Params) ProtoMessage()

func (*Params) Reset added in v1.1.0

func (m *Params) Reset()

func (*Params) Size added in v1.1.0

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

func (Params) String added in v1.1.0

func (p Params) String() string

String implements the stringer interface.

func (*Params) Unmarshal added in v1.1.0

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

func (*Params) XXX_DiscardUnknown added in v1.1.0

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal added in v1.1.0

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

func (*Params) XXX_Merge added in v1.1.0

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

func (*Params) XXX_Size added in v1.1.0

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal added in v1.1.0

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

type QueryAllBalancesRequest added in v1.1.0

type QueryAllBalancesRequest struct {
	// address is the address to query balances for.
	Address github_com_bianjieai_irita_sdk_go_types.AccAddress `` /* 127-byte string literal not displayed */
	// pagination defines an optional pagination for the request.
	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 (*QueryAllBalancesRequest) Descriptor added in v1.1.0

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

func (*QueryAllBalancesRequest) GetAddress added in v1.1.0

func (*QueryAllBalancesRequest) GetPagination added in v1.1.0

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

func (*QueryAllBalancesRequest) Marshal added in v1.1.0

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

func (*QueryAllBalancesRequest) MarshalTo added in v1.1.0

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

func (*QueryAllBalancesRequest) MarshalToSizedBuffer added in v1.1.0

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

func (*QueryAllBalancesRequest) ProtoMessage added in v1.1.0

func (*QueryAllBalancesRequest) ProtoMessage()

func (*QueryAllBalancesRequest) Reset added in v1.1.0

func (m *QueryAllBalancesRequest) Reset()

func (*QueryAllBalancesRequest) Size added in v1.1.0

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

func (*QueryAllBalancesRequest) String added in v1.1.0

func (m *QueryAllBalancesRequest) String() string

func (*QueryAllBalancesRequest) Unmarshal added in v1.1.0

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

func (*QueryAllBalancesRequest) XXX_DiscardUnknown added in v1.1.0

func (m *QueryAllBalancesRequest) XXX_DiscardUnknown()

func (*QueryAllBalancesRequest) XXX_Marshal added in v1.1.0

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

func (*QueryAllBalancesRequest) XXX_Merge added in v1.1.0

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

func (*QueryAllBalancesRequest) XXX_Size added in v1.1.0

func (m *QueryAllBalancesRequest) XXX_Size() int

func (*QueryAllBalancesRequest) XXX_Unmarshal added in v1.1.0

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

type QueryAllBalancesResponse added in v1.1.0

type QueryAllBalancesResponse struct {
	// balances is the balances of all the coins.
	Balances github_com_bianjieai_irita_sdk_go_types.Coins `protobuf:"bytes,1,rep,name=balances,proto3,castrepeated=github.com/bianjieai/irita-sdk-go/types.Coins" json:"balances"`
	// pagination defines the pagination in the response.
	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 added in v1.1.0

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

func (*QueryAllBalancesResponse) GetBalances added in v1.1.0

func (*QueryAllBalancesResponse) GetPagination added in v1.1.0

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

func (*QueryAllBalancesResponse) Marshal added in v1.1.0

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

func (*QueryAllBalancesResponse) MarshalTo added in v1.1.0

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

func (*QueryAllBalancesResponse) MarshalToSizedBuffer added in v1.1.0

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

func (*QueryAllBalancesResponse) ProtoMessage added in v1.1.0

func (*QueryAllBalancesResponse) ProtoMessage()

func (*QueryAllBalancesResponse) Reset added in v1.1.0

func (m *QueryAllBalancesResponse) Reset()

func (*QueryAllBalancesResponse) Size added in v1.1.0

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

func (*QueryAllBalancesResponse) String added in v1.1.0

func (m *QueryAllBalancesResponse) String() string

func (*QueryAllBalancesResponse) Unmarshal added in v1.1.0

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

func (*QueryAllBalancesResponse) XXX_DiscardUnknown added in v1.1.0

func (m *QueryAllBalancesResponse) XXX_DiscardUnknown()

func (*QueryAllBalancesResponse) XXX_Marshal added in v1.1.0

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

func (*QueryAllBalancesResponse) XXX_Merge added in v1.1.0

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

func (*QueryAllBalancesResponse) XXX_Size added in v1.1.0

func (m *QueryAllBalancesResponse) XXX_Size() int

func (*QueryAllBalancesResponse) XXX_Unmarshal added in v1.1.0

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

type QueryBalanceRequest added in v1.1.0

type QueryBalanceRequest struct {
	// address is the address to query balances for.
	Address github_com_bianjieai_irita_sdk_go_types.AccAddress `` /* 127-byte string literal not displayed */
	// 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 (*QueryBalanceRequest) Descriptor added in v1.1.0

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

func (*QueryBalanceRequest) GetAddress added in v1.1.0

func (*QueryBalanceRequest) GetDenom added in v1.1.0

func (m *QueryBalanceRequest) GetDenom() string

func (*QueryBalanceRequest) Marshal added in v1.1.0

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

func (*QueryBalanceRequest) MarshalTo added in v1.1.0

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

func (*QueryBalanceRequest) MarshalToSizedBuffer added in v1.1.0

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

func (*QueryBalanceRequest) ProtoMessage added in v1.1.0

func (*QueryBalanceRequest) ProtoMessage()

func (*QueryBalanceRequest) Reset added in v1.1.0

func (m *QueryBalanceRequest) Reset()

func (*QueryBalanceRequest) Size added in v1.1.0

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

func (*QueryBalanceRequest) String added in v1.1.0

func (m *QueryBalanceRequest) String() string

func (*QueryBalanceRequest) Unmarshal added in v1.1.0

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

func (*QueryBalanceRequest) XXX_DiscardUnknown added in v1.1.0

func (m *QueryBalanceRequest) XXX_DiscardUnknown()

func (*QueryBalanceRequest) XXX_Marshal added in v1.1.0

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

func (*QueryBalanceRequest) XXX_Merge added in v1.1.0

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

func (*QueryBalanceRequest) XXX_Size added in v1.1.0

func (m *QueryBalanceRequest) XXX_Size() int

func (*QueryBalanceRequest) XXX_Unmarshal added in v1.1.0

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

type QueryBalanceResponse added in v1.1.0

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 added in v1.1.0

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

func (*QueryBalanceResponse) GetBalance added in v1.1.0

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

func (*QueryBalanceResponse) Marshal added in v1.1.0

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

func (*QueryBalanceResponse) MarshalTo added in v1.1.0

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

func (*QueryBalanceResponse) MarshalToSizedBuffer added in v1.1.0

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

func (*QueryBalanceResponse) ProtoMessage added in v1.1.0

func (*QueryBalanceResponse) ProtoMessage()

func (*QueryBalanceResponse) Reset added in v1.1.0

func (m *QueryBalanceResponse) Reset()

func (*QueryBalanceResponse) Size added in v1.1.0

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

func (*QueryBalanceResponse) String added in v1.1.0

func (m *QueryBalanceResponse) String() string

func (*QueryBalanceResponse) Unmarshal added in v1.1.0

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

func (*QueryBalanceResponse) XXX_DiscardUnknown added in v1.1.0

func (m *QueryBalanceResponse) XXX_DiscardUnknown()

func (*QueryBalanceResponse) XXX_Marshal added in v1.1.0

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

func (*QueryBalanceResponse) XXX_Merge added in v1.1.0

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

func (*QueryBalanceResponse) XXX_Size added in v1.1.0

func (m *QueryBalanceResponse) XXX_Size() int

func (*QueryBalanceResponse) XXX_Unmarshal added in v1.1.0

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

type QueryClient added in v1.1.0

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)
	// Params queries the parameters of x/bank module.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
}

QueryClient is the client API for Query service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewQueryClient added in v1.1.0

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryParamsRequest added in v1.1.0

type QueryParamsRequest struct {
}

QueryParamsRequest defines the request type for querying x/bank parameters.

func (*QueryParamsRequest) Descriptor added in v1.1.0

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

func (*QueryParamsRequest) Marshal added in v1.1.0

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

func (*QueryParamsRequest) MarshalTo added in v1.1.0

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

func (*QueryParamsRequest) MarshalToSizedBuffer added in v1.1.0

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

func (*QueryParamsRequest) ProtoMessage added in v1.1.0

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset added in v1.1.0

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size added in v1.1.0

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

func (*QueryParamsRequest) String added in v1.1.0

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal added in v1.1.0

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

func (*QueryParamsRequest) XXX_DiscardUnknown added in v1.1.0

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal added in v1.1.0

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

func (*QueryParamsRequest) XXX_Merge added in v1.1.0

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

func (*QueryParamsRequest) XXX_Size added in v1.1.0

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal added in v1.1.0

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

type QueryParamsResponse added in v1.1.0

type QueryParamsResponse struct {
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

QueryParamsResponse defines the response type for querying x/bank parameters.

func (*QueryParamsResponse) Descriptor added in v1.1.0

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

func (*QueryParamsResponse) GetParams added in v1.1.0

func (m *QueryParamsResponse) GetParams() Params

func (*QueryParamsResponse) Marshal added in v1.1.0

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

func (*QueryParamsResponse) MarshalTo added in v1.1.0

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

func (*QueryParamsResponse) MarshalToSizedBuffer added in v1.1.0

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

func (*QueryParamsResponse) ProtoMessage added in v1.1.0

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset added in v1.1.0

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size added in v1.1.0

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

func (*QueryParamsResponse) String added in v1.1.0

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal added in v1.1.0

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

func (*QueryParamsResponse) XXX_DiscardUnknown added in v1.1.0

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal added in v1.1.0

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

func (*QueryParamsResponse) XXX_Merge added in v1.1.0

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

func (*QueryParamsResponse) XXX_Size added in v1.1.0

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal added in v1.1.0

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

type QueryServer added in v1.1.0

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)
	// Params queries the parameters of x/bank module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
}

QueryServer is the server API for Query service.

type QuerySupplyOfRequest added in v1.1.0

type QuerySupplyOfRequest struct {
	// denom is the coin denom to query balances for.
	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 added in v1.1.0

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

func (*QuerySupplyOfRequest) GetDenom added in v1.1.0

func (m *QuerySupplyOfRequest) GetDenom() string

func (*QuerySupplyOfRequest) Marshal added in v1.1.0

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

func (*QuerySupplyOfRequest) MarshalTo added in v1.1.0

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

func (*QuerySupplyOfRequest) MarshalToSizedBuffer added in v1.1.0

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

func (*QuerySupplyOfRequest) ProtoMessage added in v1.1.0

func (*QuerySupplyOfRequest) ProtoMessage()

func (*QuerySupplyOfRequest) Reset added in v1.1.0

func (m *QuerySupplyOfRequest) Reset()

func (*QuerySupplyOfRequest) Size added in v1.1.0

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

func (*QuerySupplyOfRequest) String added in v1.1.0

func (m *QuerySupplyOfRequest) String() string

func (*QuerySupplyOfRequest) Unmarshal added in v1.1.0

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

func (*QuerySupplyOfRequest) XXX_DiscardUnknown added in v1.1.0

func (m *QuerySupplyOfRequest) XXX_DiscardUnknown()

func (*QuerySupplyOfRequest) XXX_Marshal added in v1.1.0

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

func (*QuerySupplyOfRequest) XXX_Merge added in v1.1.0

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

func (*QuerySupplyOfRequest) XXX_Size added in v1.1.0

func (m *QuerySupplyOfRequest) XXX_Size() int

func (*QuerySupplyOfRequest) XXX_Unmarshal added in v1.1.0

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

type QuerySupplyOfResponse added in v1.1.0

type QuerySupplyOfResponse struct {
	// amount is the supply of the coin.
	Amount types.Coin `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount"`
}

QuerySupplyOfResponse is the response type for the Query/SupplyOf RPC method.

func (*QuerySupplyOfResponse) Descriptor added in v1.1.0

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

func (*QuerySupplyOfResponse) GetAmount added in v1.1.0

func (m *QuerySupplyOfResponse) GetAmount() types.Coin

func (*QuerySupplyOfResponse) Marshal added in v1.1.0

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

func (*QuerySupplyOfResponse) MarshalTo added in v1.1.0

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

func (*QuerySupplyOfResponse) MarshalToSizedBuffer added in v1.1.0

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

func (*QuerySupplyOfResponse) ProtoMessage added in v1.1.0

func (*QuerySupplyOfResponse) ProtoMessage()

func (*QuerySupplyOfResponse) Reset added in v1.1.0

func (m *QuerySupplyOfResponse) Reset()

func (*QuerySupplyOfResponse) Size added in v1.1.0

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

func (*QuerySupplyOfResponse) String added in v1.1.0

func (m *QuerySupplyOfResponse) String() string

func (*QuerySupplyOfResponse) Unmarshal added in v1.1.0

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

func (*QuerySupplyOfResponse) XXX_DiscardUnknown added in v1.1.0

func (m *QuerySupplyOfResponse) XXX_DiscardUnknown()

func (*QuerySupplyOfResponse) XXX_Marshal added in v1.1.0

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

func (*QuerySupplyOfResponse) XXX_Merge added in v1.1.0

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

func (*QuerySupplyOfResponse) XXX_Size added in v1.1.0

func (m *QuerySupplyOfResponse) XXX_Size() int

func (*QuerySupplyOfResponse) XXX_Unmarshal added in v1.1.0

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

type QueryTotalSupplyRequest added in v1.1.0

type QueryTotalSupplyRequest struct {
}

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

func (*QueryTotalSupplyRequest) Descriptor added in v1.1.0

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

func (*QueryTotalSupplyRequest) Marshal added in v1.1.0

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

func (*QueryTotalSupplyRequest) MarshalTo added in v1.1.0

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

func (*QueryTotalSupplyRequest) MarshalToSizedBuffer added in v1.1.0

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

func (*QueryTotalSupplyRequest) ProtoMessage added in v1.1.0

func (*QueryTotalSupplyRequest) ProtoMessage()

func (*QueryTotalSupplyRequest) Reset added in v1.1.0

func (m *QueryTotalSupplyRequest) Reset()

func (*QueryTotalSupplyRequest) Size added in v1.1.0

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

func (*QueryTotalSupplyRequest) String added in v1.1.0

func (m *QueryTotalSupplyRequest) String() string

func (*QueryTotalSupplyRequest) Unmarshal added in v1.1.0

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

func (*QueryTotalSupplyRequest) XXX_DiscardUnknown added in v1.1.0

func (m *QueryTotalSupplyRequest) XXX_DiscardUnknown()

func (*QueryTotalSupplyRequest) XXX_Marshal added in v1.1.0

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

func (*QueryTotalSupplyRequest) XXX_Merge added in v1.1.0

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

func (*QueryTotalSupplyRequest) XXX_Size added in v1.1.0

func (m *QueryTotalSupplyRequest) XXX_Size() int

func (*QueryTotalSupplyRequest) XXX_Unmarshal added in v1.1.0

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

type QueryTotalSupplyResponse added in v1.1.0

type QueryTotalSupplyResponse struct {
	// supply is the supply of the coins
	Supply github_com_bianjieai_irita_sdk_go_types.Coins `protobuf:"bytes,1,rep,name=supply,proto3,castrepeated=github.com/bianjieai/irita-sdk-go/types.Coins" json:"supply"`
}

QueryTotalSupplyResponse is the response type for the Query/TotalSupply RPC method

func (*QueryTotalSupplyResponse) Descriptor added in v1.1.0

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

func (*QueryTotalSupplyResponse) GetSupply added in v1.1.0

func (*QueryTotalSupplyResponse) Marshal added in v1.1.0

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

func (*QueryTotalSupplyResponse) MarshalTo added in v1.1.0

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

func (*QueryTotalSupplyResponse) MarshalToSizedBuffer added in v1.1.0

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

func (*QueryTotalSupplyResponse) ProtoMessage added in v1.1.0

func (*QueryTotalSupplyResponse) ProtoMessage()

func (*QueryTotalSupplyResponse) Reset added in v1.1.0

func (m *QueryTotalSupplyResponse) Reset()

func (*QueryTotalSupplyResponse) Size added in v1.1.0

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

func (*QueryTotalSupplyResponse) String added in v1.1.0

func (m *QueryTotalSupplyResponse) String() string

func (*QueryTotalSupplyResponse) Unmarshal added in v1.1.0

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

func (*QueryTotalSupplyResponse) XXX_DiscardUnknown added in v1.1.0

func (m *QueryTotalSupplyResponse) XXX_DiscardUnknown()

func (*QueryTotalSupplyResponse) XXX_Marshal added in v1.1.0

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

func (*QueryTotalSupplyResponse) XXX_Merge added in v1.1.0

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

func (*QueryTotalSupplyResponse) XXX_Size added in v1.1.0

func (m *QueryTotalSupplyResponse) XXX_Size() int

func (*QueryTotalSupplyResponse) XXX_Unmarshal added in v1.1.0

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

type Receipt

type Receipt struct {
	Address string       `json:"address"`
	Amount  sdk.DecCoins `json:"amount"`
}

type SendEnabled added in v1.1.0

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

SendEnabled maps coin denom to a send_enabled status (whether a denom is sendable).

func (*SendEnabled) Descriptor added in v1.1.0

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

func (*SendEnabled) Equal added in v1.1.0

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

func (*SendEnabled) GetDenom added in v1.1.0

func (m *SendEnabled) GetDenom() string

func (*SendEnabled) GetEnabled added in v1.1.0

func (m *SendEnabled) GetEnabled() bool

func (*SendEnabled) Marshal added in v1.1.0

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

func (*SendEnabled) MarshalTo added in v1.1.0

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

func (*SendEnabled) MarshalToSizedBuffer added in v1.1.0

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

func (*SendEnabled) ProtoMessage added in v1.1.0

func (*SendEnabled) ProtoMessage()

func (*SendEnabled) Reset added in v1.1.0

func (m *SendEnabled) Reset()

func (*SendEnabled) Size added in v1.1.0

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

func (SendEnabled) String added in v1.1.0

func (se SendEnabled) String() string

String implements stringer insterface

func (*SendEnabled) Unmarshal added in v1.1.0

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

func (*SendEnabled) XXX_DiscardUnknown added in v1.1.0

func (m *SendEnabled) XXX_DiscardUnknown()

func (*SendEnabled) XXX_Marshal added in v1.1.0

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

func (*SendEnabled) XXX_Merge added in v1.1.0

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

func (*SendEnabled) XXX_Size added in v1.1.0

func (m *SendEnabled) XXX_Size() int

func (*SendEnabled) XXX_Unmarshal added in v1.1.0

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

type Supply

type Supply struct {
	Total github_com_bianjieai_irita_sdk_go_types.Coins `protobuf:"bytes,1,rep,name=total,proto3,castrepeated=github.com/bianjieai/irita-sdk-go/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) Descriptor() ([]byte, []int)

func (*Supply) Equal

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

func (*Supply) Marshal

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

func (*Supply) MarshalTo

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

func (*Supply) MarshalToSizedBuffer

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

func (*Supply) ProtoMessage

func (*Supply) ProtoMessage()

func (*Supply) Reset

func (m *Supply) Reset()

func (*Supply) Size

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

func (Supply) String

func (supply Supply) String() string

String returns a human readable string representation of a supplier.

func (*Supply) Unmarshal

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

func (*Supply) XXX_DiscardUnknown

func (m *Supply) XXX_DiscardUnknown()

func (*Supply) XXX_Marshal

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

func (*Supply) XXX_Merge

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

func (*Supply) XXX_Size

func (m *Supply) XXX_Size() int

func (*Supply) XXX_Unmarshal

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

type UnimplementedQueryServer added in v1.1.0

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) AllBalances added in v1.1.0

func (*UnimplementedQueryServer) Balance added in v1.1.0

func (*UnimplementedQueryServer) Params added in v1.1.0

func (*UnimplementedQueryServer) SupplyOf added in v1.1.0

func (*UnimplementedQueryServer) TotalSupply added in v1.1.0

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL