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
- Variables
- func RegisterInterfaces(registry types.InterfaceRegistry)
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- type BankI
- type DenomUnit
- func (*DenomUnit) Descriptor() ([]byte, []int)
- func (m *DenomUnit) GetAliases() []string
- func (m *DenomUnit) GetDenom() string
- func (m *DenomUnit) GetExponent() uint32
- func (m *DenomUnit) Marshal() (dAtA []byte, err error)
- func (m *DenomUnit) MarshalTo(dAtA []byte) (int, error)
- func (m *DenomUnit) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DenomUnit) ProtoMessage()
- func (m *DenomUnit) Reset()
- func (m *DenomUnit) Size() (n int)
- func (m *DenomUnit) String() string
- func (m *DenomUnit) Unmarshal(dAtA []byte) error
- func (m *DenomUnit) XXX_DiscardUnknown()
- func (m *DenomUnit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DenomUnit) XXX_Merge(src proto.Message)
- func (m *DenomUnit) XXX_Size() int
- func (m *DenomUnit) XXX_Unmarshal(b []byte) error
- type EventDataMsgSend
- type EventMsgSendCallback
- type Input
- func (*Input) Descriptor() ([]byte, []int)
- func (this *Input) Equal(that interface{}) bool
- func (m *Input) GetAddress() github_com_bianjieai_irita_sdk_go_types.AccAddress
- func (m *Input) GetCoins() github_com_bianjieai_irita_sdk_go_types.Coins
- func (m *Input) Marshal() (dAtA []byte, err error)
- func (m *Input) MarshalTo(dAtA []byte) (int, error)
- func (m *Input) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Input) ProtoMessage()
- func (m *Input) Reset()
- func (m *Input) Size() (n int)
- func (m *Input) String() string
- func (m *Input) Unmarshal(dAtA []byte) error
- func (in Input) ValidateBasic() error
- func (m *Input) XXX_DiscardUnknown()
- func (m *Input) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Input) XXX_Merge(src proto.Message)
- func (m *Input) XXX_Size() int
- func (m *Input) XXX_Unmarshal(b []byte) error
- type Metadata
- func (*Metadata) Descriptor() ([]byte, []int)
- func (m *Metadata) GetBase() string
- func (m *Metadata) GetDenomUnits() []*DenomUnit
- func (m *Metadata) GetDescription() string
- func (m *Metadata) GetDisplay() string
- func (m *Metadata) Marshal() (dAtA []byte, err error)
- func (m *Metadata) MarshalTo(dAtA []byte) (int, error)
- func (m *Metadata) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Metadata) ProtoMessage()
- func (m *Metadata) Reset()
- func (m *Metadata) Size() (n int)
- func (m *Metadata) String() string
- func (m *Metadata) Unmarshal(dAtA []byte) error
- func (m *Metadata) XXX_DiscardUnknown()
- func (m *Metadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Metadata) XXX_Merge(src proto.Message)
- func (m *Metadata) XXX_Size() int
- func (m *Metadata) XXX_Unmarshal(b []byte) error
- type MsgMultiSend
- func (*MsgMultiSend) Descriptor() ([]byte, []int)
- func (this *MsgMultiSend) Equal(that interface{}) bool
- func (m *MsgMultiSend) GetInputs() []Input
- func (m *MsgMultiSend) GetOutputs() []Output
- func (msg MsgMultiSend) GetSignBytes() []byte
- func (msg MsgMultiSend) GetSigners() []sdk.AccAddress
- func (m *MsgMultiSend) Marshal() (dAtA []byte, err error)
- func (m *MsgMultiSend) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgMultiSend) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgMultiSend) ProtoMessage()
- func (m *MsgMultiSend) Reset()
- func (msg MsgMultiSend) Route() string
- func (m *MsgMultiSend) Size() (n int)
- func (m *MsgMultiSend) String() string
- func (msg MsgMultiSend) Type() string
- func (m *MsgMultiSend) Unmarshal(dAtA []byte) error
- func (msg MsgMultiSend) ValidateBasic() error
- func (m *MsgMultiSend) XXX_DiscardUnknown()
- func (m *MsgMultiSend) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgMultiSend) XXX_Merge(src proto.Message)
- func (m *MsgMultiSend) XXX_Size() int
- func (m *MsgMultiSend) XXX_Unmarshal(b []byte) error
- type MsgSend
- func (*MsgSend) Descriptor() ([]byte, []int)
- func (this *MsgSend) Equal(that interface{}) bool
- func (m *MsgSend) GetAmount() github_com_bianjieai_irita_sdk_go_types.Coins
- func (m *MsgSend) GetFromAddress() github_com_bianjieai_irita_sdk_go_types.AccAddress
- func (msg MsgSend) GetSignBytes() []byte
- func (msg MsgSend) GetSigners() []sdk.AccAddress
- func (m *MsgSend) GetToAddress() github_com_bianjieai_irita_sdk_go_types.AccAddress
- func (m *MsgSend) Marshal() (dAtA []byte, err error)
- func (m *MsgSend) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSend) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSend) ProtoMessage()
- func (m *MsgSend) Reset()
- func (msg MsgSend) Route() string
- func (m *MsgSend) Size() (n int)
- func (m *MsgSend) String() string
- func (msg MsgSend) Type() string
- func (m *MsgSend) Unmarshal(dAtA []byte) error
- func (msg MsgSend) ValidateBasic() error
- func (m *MsgSend) XXX_DiscardUnknown()
- func (m *MsgSend) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSend) XXX_Merge(src proto.Message)
- func (m *MsgSend) XXX_Size() int
- func (m *MsgSend) XXX_Unmarshal(b []byte) error
- type MultiSendRequest
- type Output
- func (*Output) Descriptor() ([]byte, []int)
- func (this *Output) Equal(that interface{}) bool
- func (m *Output) GetAddress() github_com_bianjieai_irita_sdk_go_types.AccAddress
- func (m *Output) GetCoins() github_com_bianjieai_irita_sdk_go_types.Coins
- func (m *Output) Marshal() (dAtA []byte, err error)
- func (m *Output) MarshalTo(dAtA []byte) (int, error)
- func (m *Output) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Output) ProtoMessage()
- func (m *Output) Reset()
- func (m *Output) Size() (n int)
- func (m *Output) String() string
- func (m *Output) Unmarshal(dAtA []byte) error
- func (out Output) ValidateBasic() error
- func (m *Output) XXX_DiscardUnknown()
- func (m *Output) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Output) XXX_Merge(src proto.Message)
- func (m *Output) XXX_Size() int
- func (m *Output) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetDefaultSendEnabled() bool
- func (m *Params) GetSendEnabled() []*SendEnabled
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (p Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type QueryAllBalancesRequest
- func (*QueryAllBalancesRequest) Descriptor() ([]byte, []int)
- func (m *QueryAllBalancesRequest) GetAddress() github_com_bianjieai_irita_sdk_go_types.AccAddress
- func (m *QueryAllBalancesRequest) GetPagination() *query.PageRequest
- func (m *QueryAllBalancesRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAllBalancesRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllBalancesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllBalancesRequest) ProtoMessage()
- func (m *QueryAllBalancesRequest) Reset()
- func (m *QueryAllBalancesRequest) Size() (n int)
- func (m *QueryAllBalancesRequest) String() string
- func (m *QueryAllBalancesRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAllBalancesRequest) XXX_DiscardUnknown()
- func (m *QueryAllBalancesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllBalancesRequest) XXX_Merge(src proto.Message)
- func (m *QueryAllBalancesRequest) XXX_Size() int
- func (m *QueryAllBalancesRequest) XXX_Unmarshal(b []byte) error
- type QueryAllBalancesResponse
- func (*QueryAllBalancesResponse) Descriptor() ([]byte, []int)
- func (m *QueryAllBalancesResponse) GetBalances() github_com_bianjieai_irita_sdk_go_types.Coins
- func (m *QueryAllBalancesResponse) GetPagination() *query.PageResponse
- func (m *QueryAllBalancesResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAllBalancesResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllBalancesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllBalancesResponse) ProtoMessage()
- func (m *QueryAllBalancesResponse) Reset()
- func (m *QueryAllBalancesResponse) Size() (n int)
- func (m *QueryAllBalancesResponse) String() string
- func (m *QueryAllBalancesResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAllBalancesResponse) XXX_DiscardUnknown()
- func (m *QueryAllBalancesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllBalancesResponse) XXX_Merge(src proto.Message)
- func (m *QueryAllBalancesResponse) XXX_Size() int
- func (m *QueryAllBalancesResponse) XXX_Unmarshal(b []byte) error
- type QueryBalanceRequest
- func (*QueryBalanceRequest) Descriptor() ([]byte, []int)
- func (m *QueryBalanceRequest) GetAddress() github_com_bianjieai_irita_sdk_go_types.AccAddress
- func (m *QueryBalanceRequest) GetDenom() string
- func (m *QueryBalanceRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryBalanceRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBalanceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBalanceRequest) ProtoMessage()
- func (m *QueryBalanceRequest) Reset()
- func (m *QueryBalanceRequest) Size() (n int)
- func (m *QueryBalanceRequest) String() string
- func (m *QueryBalanceRequest) Unmarshal(dAtA []byte) error
- func (m *QueryBalanceRequest) XXX_DiscardUnknown()
- func (m *QueryBalanceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBalanceRequest) XXX_Merge(src proto.Message)
- func (m *QueryBalanceRequest) XXX_Size() int
- func (m *QueryBalanceRequest) XXX_Unmarshal(b []byte) error
- type QueryBalanceResponse
- func (*QueryBalanceResponse) Descriptor() ([]byte, []int)
- func (m *QueryBalanceResponse) GetBalance() *types.Coin
- func (m *QueryBalanceResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryBalanceResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBalanceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBalanceResponse) ProtoMessage()
- func (m *QueryBalanceResponse) Reset()
- func (m *QueryBalanceResponse) Size() (n int)
- func (m *QueryBalanceResponse) String() string
- func (m *QueryBalanceResponse) Unmarshal(dAtA []byte) error
- func (m *QueryBalanceResponse) XXX_DiscardUnknown()
- func (m *QueryBalanceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBalanceResponse) XXX_Merge(src proto.Message)
- func (m *QueryBalanceResponse) XXX_Size() int
- func (m *QueryBalanceResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsRequest) ProtoMessage()
- func (m *QueryParamsRequest) Reset()
- func (m *QueryParamsRequest) Size() (n int)
- func (m *QueryParamsRequest) String() string
- func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParamsRequest) XXX_DiscardUnknown()
- func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParamsRequest) XXX_Size() int
- func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) GetParams() Params
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type QuerySupplyOfRequest
- func (*QuerySupplyOfRequest) Descriptor() ([]byte, []int)
- func (m *QuerySupplyOfRequest) GetDenom() string
- func (m *QuerySupplyOfRequest) Marshal() (dAtA []byte, err error)
- func (m *QuerySupplyOfRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySupplyOfRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySupplyOfRequest) ProtoMessage()
- func (m *QuerySupplyOfRequest) Reset()
- func (m *QuerySupplyOfRequest) Size() (n int)
- func (m *QuerySupplyOfRequest) String() string
- func (m *QuerySupplyOfRequest) Unmarshal(dAtA []byte) error
- func (m *QuerySupplyOfRequest) XXX_DiscardUnknown()
- func (m *QuerySupplyOfRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySupplyOfRequest) XXX_Merge(src proto.Message)
- func (m *QuerySupplyOfRequest) XXX_Size() int
- func (m *QuerySupplyOfRequest) XXX_Unmarshal(b []byte) error
- type QuerySupplyOfResponse
- func (*QuerySupplyOfResponse) Descriptor() ([]byte, []int)
- func (m *QuerySupplyOfResponse) GetAmount() types.Coin
- func (m *QuerySupplyOfResponse) Marshal() (dAtA []byte, err error)
- func (m *QuerySupplyOfResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySupplyOfResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySupplyOfResponse) ProtoMessage()
- func (m *QuerySupplyOfResponse) Reset()
- func (m *QuerySupplyOfResponse) Size() (n int)
- func (m *QuerySupplyOfResponse) String() string
- func (m *QuerySupplyOfResponse) Unmarshal(dAtA []byte) error
- func (m *QuerySupplyOfResponse) XXX_DiscardUnknown()
- func (m *QuerySupplyOfResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySupplyOfResponse) XXX_Merge(src proto.Message)
- func (m *QuerySupplyOfResponse) XXX_Size() int
- func (m *QuerySupplyOfResponse) XXX_Unmarshal(b []byte) error
- type QueryTotalSupplyRequest
- func (*QueryTotalSupplyRequest) Descriptor() ([]byte, []int)
- func (m *QueryTotalSupplyRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryTotalSupplyRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryTotalSupplyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryTotalSupplyRequest) ProtoMessage()
- func (m *QueryTotalSupplyRequest) Reset()
- func (m *QueryTotalSupplyRequest) Size() (n int)
- func (m *QueryTotalSupplyRequest) String() string
- func (m *QueryTotalSupplyRequest) Unmarshal(dAtA []byte) error
- func (m *QueryTotalSupplyRequest) XXX_DiscardUnknown()
- func (m *QueryTotalSupplyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryTotalSupplyRequest) XXX_Merge(src proto.Message)
- func (m *QueryTotalSupplyRequest) XXX_Size() int
- func (m *QueryTotalSupplyRequest) XXX_Unmarshal(b []byte) error
- type QueryTotalSupplyResponse
- func (*QueryTotalSupplyResponse) Descriptor() ([]byte, []int)
- func (m *QueryTotalSupplyResponse) GetSupply() github_com_bianjieai_irita_sdk_go_types.Coins
- func (m *QueryTotalSupplyResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryTotalSupplyResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryTotalSupplyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryTotalSupplyResponse) ProtoMessage()
- func (m *QueryTotalSupplyResponse) Reset()
- func (m *QueryTotalSupplyResponse) Size() (n int)
- func (m *QueryTotalSupplyResponse) String() string
- func (m *QueryTotalSupplyResponse) Unmarshal(dAtA []byte) error
- func (m *QueryTotalSupplyResponse) XXX_DiscardUnknown()
- func (m *QueryTotalSupplyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryTotalSupplyResponse) XXX_Merge(src proto.Message)
- func (m *QueryTotalSupplyResponse) XXX_Size() int
- func (m *QueryTotalSupplyResponse) XXX_Unmarshal(b []byte) error
- type Receipt
- type SendEnabled
- func (*SendEnabled) Descriptor() ([]byte, []int)
- func (this *SendEnabled) Equal(that interface{}) bool
- func (m *SendEnabled) GetDenom() string
- func (m *SendEnabled) GetEnabled() bool
- func (m *SendEnabled) Marshal() (dAtA []byte, err error)
- func (m *SendEnabled) MarshalTo(dAtA []byte) (int, error)
- func (m *SendEnabled) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SendEnabled) ProtoMessage()
- func (m *SendEnabled) Reset()
- func (m *SendEnabled) Size() (n int)
- func (se SendEnabled) String() string
- func (m *SendEnabled) Unmarshal(dAtA []byte) error
- func (m *SendEnabled) XXX_DiscardUnknown()
- func (m *SendEnabled) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SendEnabled) XXX_Merge(src proto.Message)
- func (m *SendEnabled) XXX_Size() int
- func (m *SendEnabled) XXX_Unmarshal(b []byte) error
- type Supply
- func (*Supply) Descriptor() ([]byte, []int)
- func (this *Supply) Equal(that interface{}) bool
- func (m *Supply) Marshal() (dAtA []byte, err error)
- func (m *Supply) MarshalTo(dAtA []byte) (int, error)
- func (m *Supply) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Supply) ProtoMessage()
- func (m *Supply) Reset()
- func (m *Supply) Size() (n int)
- func (supply Supply) String() string
- func (m *Supply) Unmarshal(dAtA []byte) error
- func (m *Supply) XXX_DiscardUnknown()
- func (m *Supply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Supply) XXX_Merge(src proto.Message)
- func (m *Supply) XXX_Size() int
- func (m *Supply) XXX_Unmarshal(b []byte) error
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) AllBalances(ctx context.Context, req *QueryAllBalancesRequest) (*QueryAllBalancesResponse, error)
- func (*UnimplementedQueryServer) Balance(ctx context.Context, req *QueryBalanceRequest) (*QueryBalanceResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
- func (*UnimplementedQueryServer) SupplyOf(ctx context.Context, req *QuerySupplyOfRequest) (*QuerySupplyOfResponse, error)
- func (*UnimplementedQueryServer) TotalSupply(ctx context.Context, req *QueryTotalSupplyRequest) (*QueryTotalSupplyResponse, error)
Constants ¶
const (
ModuleName = "bank"
)
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 ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var (
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
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) GetAliases ¶ added in v1.1.0
func (*DenomUnit) GetExponent ¶ added in v1.1.0
func (*DenomUnit) MarshalToSizedBuffer ¶ added in v1.1.0
func (*DenomUnit) ProtoMessage ¶ added in v1.1.0
func (*DenomUnit) ProtoMessage()
func (*DenomUnit) XXX_DiscardUnknown ¶ added in v1.1.0
func (m *DenomUnit) XXX_DiscardUnknown()
func (*DenomUnit) XXX_Marshal ¶ added in v1.1.0
func (*DenomUnit) XXX_Unmarshal ¶ added in v1.1.0
type EventDataMsgSend ¶
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) GetAddress ¶
func (m *Input) GetAddress() github_com_bianjieai_irita_sdk_go_types.AccAddress
func (*Input) GetCoins ¶
func (m *Input) GetCoins() github_com_bianjieai_irita_sdk_go_types.Coins
func (*Input) ProtoMessage ¶
func (*Input) ProtoMessage()
func (Input) ValidateBasic ¶
ValidateBasic - validate transaction input
func (*Input) XXX_DiscardUnknown ¶
func (m *Input) XXX_DiscardUnknown()
func (*Input) XXX_Marshal ¶
func (*Input) XXX_Unmarshal ¶
type 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) GetDenomUnits ¶ added in v1.1.0
func (*Metadata) GetDescription ¶ added in v1.1.0
func (*Metadata) GetDisplay ¶ added in v1.1.0
func (*Metadata) MarshalToSizedBuffer ¶ added in v1.1.0
func (*Metadata) ProtoMessage ¶ added in v1.1.0
func (*Metadata) ProtoMessage()
func (*Metadata) XXX_DiscardUnknown ¶ added in v1.1.0
func (m *Metadata) XXX_DiscardUnknown()
func (*Metadata) XXX_Marshal ¶ added in v1.1.0
func (*Metadata) XXX_Unmarshal ¶ added in v1.1.0
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) GetSigners ¶
func (msg MsgMultiSend) GetSigners() []sdk.AccAddress
Implements Msg.
func (*MsgMultiSend) Marshal ¶
func (m *MsgMultiSend) Marshal() (dAtA []byte, err error)
func (*MsgMultiSend) MarshalToSizedBuffer ¶
func (m *MsgMultiSend) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgMultiSend) ProtoMessage ¶
func (*MsgMultiSend) ProtoMessage()
func (*MsgMultiSend) Reset ¶
func (m *MsgMultiSend) Reset()
func (MsgMultiSend) 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) Unmarshal ¶
func (m *MsgMultiSend) Unmarshal(dAtA []byte) error
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) GetAmount ¶
func (m *MsgSend) GetAmount() github_com_bianjieai_irita_sdk_go_types.Coins
func (*MsgSend) GetFromAddress ¶
func (m *MsgSend) GetFromAddress() github_com_bianjieai_irita_sdk_go_types.AccAddress
func (MsgSend) GetSignBytes ¶
func (MsgSend) GetSigners ¶
func (msg MsgSend) GetSigners() []sdk.AccAddress
func (*MsgSend) GetToAddress ¶
func (m *MsgSend) GetToAddress() github_com_bianjieai_irita_sdk_go_types.AccAddress
func (*MsgSend) MarshalToSizedBuffer ¶
func (*MsgSend) ProtoMessage ¶
func (*MsgSend) ProtoMessage()
func (MsgSend) ValidateBasic ¶
func (*MsgSend) XXX_DiscardUnknown ¶
func (m *MsgSend) XXX_DiscardUnknown()
func (*MsgSend) XXX_Marshal ¶
func (*MsgSend) XXX_Unmarshal ¶
type MultiSendRequest ¶
type MultiSendRequest struct {
Receipts []Receipt
}
func (MultiSendRequest) Len ¶
func (msr MultiSendRequest) Len() int
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) GetAddress ¶
func (m *Output) GetAddress() github_com_bianjieai_irita_sdk_go_types.AccAddress
func (*Output) GetCoins ¶
func (m *Output) GetCoins() github_com_bianjieai_irita_sdk_go_types.Coins
func (*Output) MarshalToSizedBuffer ¶
func (*Output) ProtoMessage ¶
func (*Output) ProtoMessage()
func (Output) ValidateBasic ¶
ValidateBasic - validate transaction output
func (*Output) XXX_DiscardUnknown ¶
func (m *Output) XXX_DiscardUnknown()
func (*Output) XXX_Marshal ¶
func (*Output) XXX_Unmarshal ¶
type Params ¶ 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) GetDefaultSendEnabled ¶ added in v1.1.0
func (*Params) GetSendEnabled ¶ added in v1.1.0
func (m *Params) GetSendEnabled() []*SendEnabled
func (*Params) MarshalToSizedBuffer ¶ added in v1.1.0
func (*Params) ProtoMessage ¶ added in v1.1.0
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶ added in v1.1.0
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶ added in v1.1.0
func (*Params) XXX_Unmarshal ¶ added in v1.1.0
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 (m *QueryAllBalancesRequest) GetAddress() github_com_bianjieai_irita_sdk_go_types.AccAddress
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 (m *QueryAllBalancesResponse) GetBalances() github_com_bianjieai_irita_sdk_go_types.Coins
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 (m *QueryBalanceRequest) GetAddress() github_com_bianjieai_irita_sdk_go_types.AccAddress
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 (m *QueryTotalSupplyResponse) GetSupply() github_com_bianjieai_irita_sdk_go_types.Coins
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 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) MarshalToSizedBuffer ¶
func (*Supply) ProtoMessage ¶
func (*Supply) ProtoMessage()
func (*Supply) XXX_DiscardUnknown ¶
func (m *Supply) XXX_DiscardUnknown()
func (*Supply) XXX_Marshal ¶
func (*Supply) XXX_Unmarshal ¶
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) AllBalances(ctx context.Context, req *QueryAllBalancesRequest) (*QueryAllBalancesResponse, error)
func (*UnimplementedQueryServer) Balance ¶ added in v1.1.0
func (*UnimplementedQueryServer) Balance(ctx context.Context, req *QueryBalanceRequest) (*QueryBalanceResponse, error)
func (*UnimplementedQueryServer) Params ¶ added in v1.1.0
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
func (*UnimplementedQueryServer) SupplyOf ¶ added in v1.1.0
func (*UnimplementedQueryServer) SupplyOf(ctx context.Context, req *QuerySupplyOfRequest) (*QuerySupplyOfResponse, error)
func (*UnimplementedQueryServer) TotalSupply ¶ added in v1.1.0
func (*UnimplementedQueryServer) TotalSupply(ctx context.Context, req *QueryTotalSupplyRequest) (*QueryTotalSupplyResponse, error)