bankv1beta1

package
v0.6.6-rc4 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2022 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Overview

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var File_cosmos_bank_v1beta1_authz_proto protoreflect.FileDescriptor
View Source
var File_cosmos_bank_v1beta1_bank_proto protoreflect.FileDescriptor
View Source
var File_cosmos_bank_v1beta1_genesis_proto protoreflect.FileDescriptor
View Source
var File_cosmos_bank_v1beta1_query_proto protoreflect.FileDescriptor
View Source
var File_cosmos_bank_v1beta1_tx_proto protoreflect.FileDescriptor
View Source
var Msg_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "cosmos.bank.v1beta1.Msg",
	HandlerType: (*MsgServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Send",
			Handler:    _Msg_Send_Handler,
		},
		{
			MethodName: "MultiSend",
			Handler:    _Msg_MultiSend_Handler,
		},
		{
			MethodName: "UpdateParams",
			Handler:    _Msg_UpdateParams_Handler,
		},
		{
			MethodName: "SetSendEnabled",
			Handler:    _Msg_SetSendEnabled_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "cosmos/bank/v1beta1/tx.proto",
}

Msg_ServiceDesc is the grpc.ServiceDesc for Msg service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var Query_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "cosmos.bank.v1beta1.Query",
	HandlerType: (*QueryServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Balance",
			Handler:    _Query_Balance_Handler,
		},
		{
			MethodName: "AllBalances",
			Handler:    _Query_AllBalances_Handler,
		},
		{
			MethodName: "SpendableBalances",
			Handler:    _Query_SpendableBalances_Handler,
		},
		{
			MethodName: "TotalSupply",
			Handler:    _Query_TotalSupply_Handler,
		},
		{
			MethodName: "SupplyOf",
			Handler:    _Query_SupplyOf_Handler,
		},
		{
			MethodName: "Params",
			Handler:    _Query_Params_Handler,
		},
		{
			MethodName: "DenomMetadata",
			Handler:    _Query_DenomMetadata_Handler,
		},
		{
			MethodName: "DenomsMetadata",
			Handler:    _Query_DenomsMetadata_Handler,
		},
		{
			MethodName: "DenomOwners",
			Handler:    _Query_DenomOwners_Handler,
		},
		{
			MethodName: "SendEnabled",
			Handler:    _Query_SendEnabled_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "cosmos/bank/v1beta1/query.proto",
}

Query_ServiceDesc is the grpc.ServiceDesc for Query service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterMsgServer

func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)

func RegisterQueryServer

func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)

Types

type Balance

type Balance struct {

	// address is the address of the balance holder.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// coins defines the different coins this balance holds.
	Coins []*v1beta1.Coin `protobuf:"bytes,2,rep,name=coins,proto3" json:"coins,omitempty"`
	// contains filtered or unexported fields
}

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

func (*Balance) Descriptor deprecated

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

Deprecated: Use Balance.ProtoReflect.Descriptor instead.

func (*Balance) GetAddress

func (x *Balance) GetAddress() string

func (*Balance) GetCoins

func (x *Balance) GetCoins() []*v1beta1.Coin

func (*Balance) ProtoMessage

func (*Balance) ProtoMessage()

func (*Balance) ProtoReflect

func (x *Balance) ProtoReflect() protoreflect.Message

func (*Balance) Reset

func (x *Balance) Reset()

func (*Balance) String

func (x *Balance) String() string

type DenomOwner

type DenomOwner struct {

	// address defines the address that owns a particular denomination.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// balance is the balance of the denominated coin for an account.
	Balance *v1beta1.Coin `protobuf:"bytes,2,opt,name=balance,proto3" json:"balance,omitempty"`
	// contains filtered or unexported fields
}

DenomOwner defines structure representing an account that owns or holds a particular denominated token. It contains the account address and account balance of the denominated token.

Since: cosmos-sdk 0.46

func (*DenomOwner) Descriptor deprecated

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

Deprecated: Use DenomOwner.ProtoReflect.Descriptor instead.

func (*DenomOwner) GetAddress

func (x *DenomOwner) GetAddress() string

func (*DenomOwner) GetBalance

func (x *DenomOwner) GetBalance() *v1beta1.Coin

func (*DenomOwner) ProtoMessage

func (*DenomOwner) ProtoMessage()

func (*DenomOwner) ProtoReflect

func (x *DenomOwner) ProtoReflect() protoreflect.Message

func (*DenomOwner) Reset

func (x *DenomOwner) Reset()

func (*DenomOwner) String

func (x *DenomOwner) String() string

type DenomUnit

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 = 10^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"`
	// contains filtered or unexported fields
}

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

func (*DenomUnit) Descriptor deprecated

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

Deprecated: Use DenomUnit.ProtoReflect.Descriptor instead.

func (*DenomUnit) GetAliases

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

func (*DenomUnit) GetDenom

func (x *DenomUnit) GetDenom() string

func (*DenomUnit) GetExponent

func (x *DenomUnit) GetExponent() uint32

func (*DenomUnit) ProtoMessage

func (*DenomUnit) ProtoMessage()

func (*DenomUnit) ProtoReflect

func (x *DenomUnit) ProtoReflect() protoreflect.Message

func (*DenomUnit) Reset

func (x *DenomUnit) Reset()

func (*DenomUnit) String

func (x *DenomUnit) String() string

type GenesisState

type GenesisState struct {

	// params defines all the parameters of the module.
	Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
	// balances is an array containing the balances of all the accounts.
	Balances []*Balance `protobuf:"bytes,2,rep,name=balances,proto3" json:"balances,omitempty"`
	// supply represents the total supply. If it is left empty, then supply will be calculated based on the provided
	// balances. Otherwise, it will be used to validate that the sum of the balances equals this amount.
	Supply []*v1beta1.Coin `protobuf:"bytes,3,rep,name=supply,proto3" json:"supply,omitempty"`
	// denom_metadata defines the metadata of the different coins.
	DenomMetadata []*Metadata `protobuf:"bytes,4,rep,name=denom_metadata,json=denomMetadata,proto3" json:"denom_metadata,omitempty"`
	// send_enabled defines the denoms where send is enabled or disabled.
	//
	// Since: cosmos-sdk 0.47
	SendEnabled []*SendEnabled `protobuf:"bytes,5,rep,name=send_enabled,json=sendEnabled,proto3" json:"send_enabled,omitempty"`
	// contains filtered or unexported fields
}

GenesisState defines the bank module's genesis state.

func (*GenesisState) Descriptor deprecated

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

Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.

func (*GenesisState) GetBalances

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

func (*GenesisState) GetDenomMetadata

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

func (*GenesisState) GetParams

func (x *GenesisState) GetParams() *Params

func (*GenesisState) GetSendEnabled

func (x *GenesisState) GetSendEnabled() []*SendEnabled

func (*GenesisState) GetSupply

func (x *GenesisState) GetSupply() []*v1beta1.Coin

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) ProtoReflect

func (x *GenesisState) ProtoReflect() protoreflect.Message

func (*GenesisState) Reset

func (x *GenesisState) Reset()

func (*GenesisState) String

func (x *GenesisState) String() string

type Input

type Input struct {
	Address string          `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Coins   []*v1beta1.Coin `protobuf:"bytes,2,rep,name=coins,proto3" json:"coins,omitempty"`
	// contains filtered or unexported fields
}

Input models transaction input.

func (*Input) Descriptor deprecated

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

Deprecated: Use Input.ProtoReflect.Descriptor instead.

func (*Input) GetAddress

func (x *Input) GetAddress() string

func (*Input) GetCoins

func (x *Input) GetCoins() []*v1beta1.Coin

func (*Input) ProtoMessage

func (*Input) ProtoMessage()

func (*Input) ProtoReflect

func (x *Input) ProtoReflect() protoreflect.Message

func (*Input) Reset

func (x *Input) Reset()

func (*Input) String

func (x *Input) String() string

type Metadata

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"`
	// name defines the name of the token (eg: Cosmos Atom)
	//
	// Since: cosmos-sdk 0.43
	Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"`
	// symbol is the token symbol usually shown on exchanges (eg: ATOM). This can
	// be the same as the display.
	//
	// Since: cosmos-sdk 0.43
	Symbol string `protobuf:"bytes,6,opt,name=symbol,proto3" json:"symbol,omitempty"`
	// URI to a document (on or off-chain) that contains additional information. Optional.
	//
	// Since: cosmos-sdk 0.46
	Uri string `protobuf:"bytes,7,opt,name=uri,proto3" json:"uri,omitempty"`
	// URIHash is a sha256 hash of a document pointed by URI. It's used to verify that
	// the document didn't change. Optional.
	//
	// Since: cosmos-sdk 0.46
	UriHash string `protobuf:"bytes,8,opt,name=uri_hash,json=uriHash,proto3" json:"uri_hash,omitempty"`
	// contains filtered or unexported fields
}

Metadata represents a struct that describes a basic token.

func (*Metadata) Descriptor deprecated

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

Deprecated: Use Metadata.ProtoReflect.Descriptor instead.

func (*Metadata) GetBase

func (x *Metadata) GetBase() string

func (*Metadata) GetDenomUnits

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

func (*Metadata) GetDescription

func (x *Metadata) GetDescription() string

func (*Metadata) GetDisplay

func (x *Metadata) GetDisplay() string

func (*Metadata) GetName

func (x *Metadata) GetName() string

func (*Metadata) GetSymbol

func (x *Metadata) GetSymbol() string

func (*Metadata) GetUri

func (x *Metadata) GetUri() string

func (*Metadata) GetUriHash

func (x *Metadata) GetUriHash() string

func (*Metadata) ProtoMessage

func (*Metadata) ProtoMessage()

func (*Metadata) ProtoReflect

func (x *Metadata) ProtoReflect() protoreflect.Message

func (*Metadata) Reset

func (x *Metadata) Reset()

func (*Metadata) String

func (x *Metadata) String() string

type MsgClient

type MsgClient interface {
	// Send defines a method for sending coins from one account to another account.
	Send(ctx context.Context, in *MsgSend, opts ...grpc.CallOption) (*MsgSendResponse, error)
	// MultiSend defines a method for sending coins from some accounts to other accounts.
	MultiSend(ctx context.Context, in *MsgMultiSend, opts ...grpc.CallOption) (*MsgMultiSendResponse, error)
	// UpdateParams defines a governance operation for updating the x/bank module parameters.
	// The authority is defined in the keeper.
	//
	// Since: cosmos-sdk 0.47
	UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
	// SetSendEnabled is a governance operation for setting the SendEnabled flag
	// on any number of Denoms. Only the entries to add or update should be
	// included. Entries that already exist in the store, but that aren't
	// included in this message, will be left unchanged.
	//
	// Since: cosmos-sdk 0.47
	SetSendEnabled(ctx context.Context, in *MsgSetSendEnabled, opts ...grpc.CallOption) (*MsgSetSendEnabledResponse, error)
}

MsgClient is the client API for Msg service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewMsgClient

func NewMsgClient(cc grpc.ClientConnInterface) MsgClient

type MsgMultiSend

type MsgMultiSend struct {

	// Inputs, despite being `repeated`, only allows one sender input. This is
	// checked in MsgMultiSend's ValidateBasic.
	Inputs  []*Input  `protobuf:"bytes,1,rep,name=inputs,proto3" json:"inputs,omitempty"`
	Outputs []*Output `protobuf:"bytes,2,rep,name=outputs,proto3" json:"outputs,omitempty"`
	// contains filtered or unexported fields
}

MsgMultiSend represents an arbitrary multi-in, multi-out send message.

func (*MsgMultiSend) Descriptor deprecated

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

Deprecated: Use MsgMultiSend.ProtoReflect.Descriptor instead.

func (*MsgMultiSend) GetInputs

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

func (*MsgMultiSend) GetOutputs

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

func (*MsgMultiSend) ProtoMessage

func (*MsgMultiSend) ProtoMessage()

func (*MsgMultiSend) ProtoReflect

func (x *MsgMultiSend) ProtoReflect() protoreflect.Message

func (*MsgMultiSend) Reset

func (x *MsgMultiSend) Reset()

func (*MsgMultiSend) String

func (x *MsgMultiSend) String() string

type MsgMultiSendResponse

type MsgMultiSendResponse struct {
	// contains filtered or unexported fields
}

MsgMultiSendResponse defines the Msg/MultiSend response type.

func (*MsgMultiSendResponse) Descriptor deprecated

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

Deprecated: Use MsgMultiSendResponse.ProtoReflect.Descriptor instead.

func (*MsgMultiSendResponse) ProtoMessage

func (*MsgMultiSendResponse) ProtoMessage()

func (*MsgMultiSendResponse) ProtoReflect

func (x *MsgMultiSendResponse) ProtoReflect() protoreflect.Message

func (*MsgMultiSendResponse) Reset

func (x *MsgMultiSendResponse) Reset()

func (*MsgMultiSendResponse) String

func (x *MsgMultiSendResponse) String() string

type MsgSend

type MsgSend struct {
	FromAddress string          `protobuf:"bytes,1,opt,name=from_address,json=fromAddress,proto3" json:"from_address,omitempty"`
	ToAddress   string          `protobuf:"bytes,2,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty"`
	Amount      []*v1beta1.Coin `protobuf:"bytes,3,rep,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

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

func (*MsgSend) Descriptor deprecated

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

Deprecated: Use MsgSend.ProtoReflect.Descriptor instead.

func (*MsgSend) GetAmount

func (x *MsgSend) GetAmount() []*v1beta1.Coin

func (*MsgSend) GetFromAddress

func (x *MsgSend) GetFromAddress() string

func (*MsgSend) GetToAddress

func (x *MsgSend) GetToAddress() string

func (*MsgSend) ProtoMessage

func (*MsgSend) ProtoMessage()

func (*MsgSend) ProtoReflect

func (x *MsgSend) ProtoReflect() protoreflect.Message

func (*MsgSend) Reset

func (x *MsgSend) Reset()

func (*MsgSend) String

func (x *MsgSend) String() string

type MsgSendResponse

type MsgSendResponse struct {
	// contains filtered or unexported fields
}

MsgSendResponse defines the Msg/Send response type.

func (*MsgSendResponse) Descriptor deprecated

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

Deprecated: Use MsgSendResponse.ProtoReflect.Descriptor instead.

func (*MsgSendResponse) ProtoMessage

func (*MsgSendResponse) ProtoMessage()

func (*MsgSendResponse) ProtoReflect

func (x *MsgSendResponse) ProtoReflect() protoreflect.Message

func (*MsgSendResponse) Reset

func (x *MsgSendResponse) Reset()

func (*MsgSendResponse) String

func (x *MsgSendResponse) String() string

type MsgServer

type MsgServer interface {
	// Send defines a method for sending coins from one account to another account.
	Send(context.Context, *MsgSend) (*MsgSendResponse, error)
	// MultiSend defines a method for sending coins from some accounts to other accounts.
	MultiSend(context.Context, *MsgMultiSend) (*MsgMultiSendResponse, error)
	// UpdateParams defines a governance operation for updating the x/bank module parameters.
	// The authority is defined in the keeper.
	//
	// Since: cosmos-sdk 0.47
	UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
	// SetSendEnabled is a governance operation for setting the SendEnabled flag
	// on any number of Denoms. Only the entries to add or update should be
	// included. Entries that already exist in the store, but that aren't
	// included in this message, will be left unchanged.
	//
	// Since: cosmos-sdk 0.47
	SetSendEnabled(context.Context, *MsgSetSendEnabled) (*MsgSetSendEnabledResponse, error)
	// contains filtered or unexported methods
}

MsgServer is the server API for Msg service. All implementations must embed UnimplementedMsgServer for forward compatibility

type MsgSetSendEnabled

type MsgSetSendEnabled struct {
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// send_enabled is the list of entries to add or update.
	SendEnabled []*SendEnabled `protobuf:"bytes,2,rep,name=send_enabled,json=sendEnabled,proto3" json:"send_enabled,omitempty"`
	// use_default_for is a list of denoms that should use the params.default_send_enabled value.
	// Denoms listed here will have their SendEnabled entries deleted.
	// If a denom is included that doesn't have a SendEnabled entry,
	// it will be ignored.
	UseDefaultFor []string `protobuf:"bytes,3,rep,name=use_default_for,json=useDefaultFor,proto3" json:"use_default_for,omitempty"`
	// contains filtered or unexported fields
}

MsgSetSendEnabled is the Msg/SetSendEnabled request type.

Only entries to add/update/delete need to be included. Existing SendEnabled entries that are not included in this message are left unchanged.

Since: cosmos-sdk 0.47

func (*MsgSetSendEnabled) Descriptor deprecated

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

Deprecated: Use MsgSetSendEnabled.ProtoReflect.Descriptor instead.

func (*MsgSetSendEnabled) GetAuthority

func (x *MsgSetSendEnabled) GetAuthority() string

func (*MsgSetSendEnabled) GetSendEnabled

func (x *MsgSetSendEnabled) GetSendEnabled() []*SendEnabled

func (*MsgSetSendEnabled) GetUseDefaultFor

func (x *MsgSetSendEnabled) GetUseDefaultFor() []string

func (*MsgSetSendEnabled) ProtoMessage

func (*MsgSetSendEnabled) ProtoMessage()

func (*MsgSetSendEnabled) ProtoReflect

func (x *MsgSetSendEnabled) ProtoReflect() protoreflect.Message

func (*MsgSetSendEnabled) Reset

func (x *MsgSetSendEnabled) Reset()

func (*MsgSetSendEnabled) String

func (x *MsgSetSendEnabled) String() string

type MsgSetSendEnabledResponse

type MsgSetSendEnabledResponse struct {
	// contains filtered or unexported fields
}

MsgSetSendEnabledResponse defines the Msg/SetSendEnabled response type.

Since: cosmos-sdk 0.47

func (*MsgSetSendEnabledResponse) Descriptor deprecated

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

Deprecated: Use MsgSetSendEnabledResponse.ProtoReflect.Descriptor instead.

func (*MsgSetSendEnabledResponse) ProtoMessage

func (*MsgSetSendEnabledResponse) ProtoMessage()

func (*MsgSetSendEnabledResponse) ProtoReflect

func (*MsgSetSendEnabledResponse) Reset

func (x *MsgSetSendEnabledResponse) Reset()

func (*MsgSetSendEnabledResponse) String

func (x *MsgSetSendEnabledResponse) String() string

type MsgUpdateParams

type MsgUpdateParams struct {

	// authority is the address of the governance account.
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// params defines the x/bank parameters to update.
	//
	// NOTE: All parameters must be supplied.
	Params *Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"`
	// contains filtered or unexported fields
}

MsgUpdateParams is the Msg/UpdateParams request type.

Since: cosmos-sdk 0.47

func (*MsgUpdateParams) Descriptor deprecated

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

Deprecated: Use MsgUpdateParams.ProtoReflect.Descriptor instead.

func (*MsgUpdateParams) GetAuthority

func (x *MsgUpdateParams) GetAuthority() string

func (*MsgUpdateParams) GetParams

func (x *MsgUpdateParams) GetParams() *Params

func (*MsgUpdateParams) ProtoMessage

func (*MsgUpdateParams) ProtoMessage()

func (*MsgUpdateParams) ProtoReflect

func (x *MsgUpdateParams) ProtoReflect() protoreflect.Message

func (*MsgUpdateParams) Reset

func (x *MsgUpdateParams) Reset()

func (*MsgUpdateParams) String

func (x *MsgUpdateParams) String() string

type MsgUpdateParamsResponse

type MsgUpdateParamsResponse struct {
	// contains filtered or unexported fields
}

MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.

Since: cosmos-sdk 0.47

func (*MsgUpdateParamsResponse) Descriptor deprecated

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

Deprecated: Use MsgUpdateParamsResponse.ProtoReflect.Descriptor instead.

func (*MsgUpdateParamsResponse) ProtoMessage

func (*MsgUpdateParamsResponse) ProtoMessage()

func (*MsgUpdateParamsResponse) ProtoReflect

func (x *MsgUpdateParamsResponse) ProtoReflect() protoreflect.Message

func (*MsgUpdateParamsResponse) Reset

func (x *MsgUpdateParamsResponse) Reset()

func (*MsgUpdateParamsResponse) String

func (x *MsgUpdateParamsResponse) String() string

type Output

type Output struct {
	Address string          `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Coins   []*v1beta1.Coin `protobuf:"bytes,2,rep,name=coins,proto3" json:"coins,omitempty"`
	// contains filtered or unexported fields
}

Output models transaction outputs.

func (*Output) Descriptor deprecated

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

Deprecated: Use Output.ProtoReflect.Descriptor instead.

func (*Output) GetAddress

func (x *Output) GetAddress() string

func (*Output) GetCoins

func (x *Output) GetCoins() []*v1beta1.Coin

func (*Output) ProtoMessage

func (*Output) ProtoMessage()

func (*Output) ProtoReflect

func (x *Output) ProtoReflect() protoreflect.Message

func (*Output) Reset

func (x *Output) Reset()

func (*Output) String

func (x *Output) String() string

type Params

type Params struct {

	// Deprecated: Use of SendEnabled in params is deprecated.
	// For genesis, use the newly added send_enabled field in the genesis object.
	// Storage, lookup, and manipulation of this information is now in the keeper.
	//
	// As of cosmos-sdk 0.47, this only exists for backwards compatibility of genesis files.
	//
	// Deprecated: Do not use.
	SendEnabled        []*SendEnabled `protobuf:"bytes,1,rep,name=send_enabled,json=sendEnabled,proto3" json:"send_enabled,omitempty"`
	DefaultSendEnabled bool           `protobuf:"varint,2,opt,name=default_send_enabled,json=defaultSendEnabled,proto3" json:"default_send_enabled,omitempty"`
	// contains filtered or unexported fields
}

Params defines the parameters for the bank module.

func (*Params) Descriptor deprecated

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

Deprecated: Use Params.ProtoReflect.Descriptor instead.

func (*Params) GetDefaultSendEnabled

func (x *Params) GetDefaultSendEnabled() bool

func (*Params) GetSendEnabled deprecated

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

Deprecated: Do not use.

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) ProtoReflect

func (x *Params) ProtoReflect() protoreflect.Message

func (*Params) Reset

func (x *Params) Reset()

func (*Params) String

func (x *Params) String() string

type QueryAllBalancesRequest

type QueryAllBalancesRequest struct {

	// address is the address to query balances for.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *v1beta11.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryBalanceRequest is the request type for the Query/AllBalances RPC method.

func (*QueryAllBalancesRequest) Descriptor deprecated

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

Deprecated: Use QueryAllBalancesRequest.ProtoReflect.Descriptor instead.

func (*QueryAllBalancesRequest) GetAddress

func (x *QueryAllBalancesRequest) GetAddress() string

func (*QueryAllBalancesRequest) GetPagination

func (x *QueryAllBalancesRequest) GetPagination() *v1beta11.PageRequest

func (*QueryAllBalancesRequest) ProtoMessage

func (*QueryAllBalancesRequest) ProtoMessage()

func (*QueryAllBalancesRequest) ProtoReflect

func (x *QueryAllBalancesRequest) ProtoReflect() protoreflect.Message

func (*QueryAllBalancesRequest) Reset

func (x *QueryAllBalancesRequest) Reset()

func (*QueryAllBalancesRequest) String

func (x *QueryAllBalancesRequest) String() string

type QueryAllBalancesResponse

type QueryAllBalancesResponse struct {

	// balances is the balances of all the coins.
	Balances []*v1beta1.Coin `protobuf:"bytes,1,rep,name=balances,proto3" json:"balances,omitempty"`
	// pagination defines the pagination in the response.
	Pagination *v1beta11.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryAllBalancesResponse is the response type for the Query/AllBalances RPC method.

func (*QueryAllBalancesResponse) Descriptor deprecated

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

Deprecated: Use QueryAllBalancesResponse.ProtoReflect.Descriptor instead.

func (*QueryAllBalancesResponse) GetBalances

func (x *QueryAllBalancesResponse) GetBalances() []*v1beta1.Coin

func (*QueryAllBalancesResponse) GetPagination

func (x *QueryAllBalancesResponse) GetPagination() *v1beta11.PageResponse

func (*QueryAllBalancesResponse) ProtoMessage

func (*QueryAllBalancesResponse) ProtoMessage()

func (*QueryAllBalancesResponse) ProtoReflect

func (x *QueryAllBalancesResponse) ProtoReflect() protoreflect.Message

func (*QueryAllBalancesResponse) Reset

func (x *QueryAllBalancesResponse) Reset()

func (*QueryAllBalancesResponse) String

func (x *QueryAllBalancesResponse) String() string

type QueryBalanceRequest

type QueryBalanceRequest struct {

	// address is the address to query balances for.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// denom is the coin denom to query balances for.
	Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"`
	// contains filtered or unexported fields
}

QueryBalanceRequest is the request type for the Query/Balance RPC method.

func (*QueryBalanceRequest) Descriptor deprecated

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

Deprecated: Use QueryBalanceRequest.ProtoReflect.Descriptor instead.

func (*QueryBalanceRequest) GetAddress

func (x *QueryBalanceRequest) GetAddress() string

func (*QueryBalanceRequest) GetDenom

func (x *QueryBalanceRequest) GetDenom() string

func (*QueryBalanceRequest) ProtoMessage

func (*QueryBalanceRequest) ProtoMessage()

func (*QueryBalanceRequest) ProtoReflect

func (x *QueryBalanceRequest) ProtoReflect() protoreflect.Message

func (*QueryBalanceRequest) Reset

func (x *QueryBalanceRequest) Reset()

func (*QueryBalanceRequest) String

func (x *QueryBalanceRequest) String() string

type QueryBalanceResponse

type QueryBalanceResponse struct {

	// balance is the balance of the coin.
	Balance *v1beta1.Coin `protobuf:"bytes,1,opt,name=balance,proto3" json:"balance,omitempty"`
	// contains filtered or unexported fields
}

QueryBalanceResponse is the response type for the Query/Balance RPC method.

func (*QueryBalanceResponse) Descriptor deprecated

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

Deprecated: Use QueryBalanceResponse.ProtoReflect.Descriptor instead.

func (*QueryBalanceResponse) GetBalance

func (x *QueryBalanceResponse) GetBalance() *v1beta1.Coin

func (*QueryBalanceResponse) ProtoMessage

func (*QueryBalanceResponse) ProtoMessage()

func (*QueryBalanceResponse) ProtoReflect

func (x *QueryBalanceResponse) ProtoReflect() protoreflect.Message

func (*QueryBalanceResponse) Reset

func (x *QueryBalanceResponse) Reset()

func (*QueryBalanceResponse) String

func (x *QueryBalanceResponse) String() string

type QueryClient

type QueryClient interface {
	// Balance queries the balance of a single coin for a single account.
	Balance(ctx context.Context, in *QueryBalanceRequest, opts ...grpc.CallOption) (*QueryBalanceResponse, error)
	// AllBalances queries the balance of all coins for a single account.
	//
	// When called from another module, this query might consume a high amount of
	// gas if the pagination field is incorrectly set.
	AllBalances(ctx context.Context, in *QueryAllBalancesRequest, opts ...grpc.CallOption) (*QueryAllBalancesResponse, error)
	// SpendableBalances queries the spenable balance of all coins for a single
	// account.
	//
	// When called from another module, this query might consume a high amount of
	// gas if the pagination field is incorrectly set.
	//
	// Since: cosmos-sdk 0.46
	SpendableBalances(ctx context.Context, in *QuerySpendableBalancesRequest, opts ...grpc.CallOption) (*QuerySpendableBalancesResponse, error)
	// TotalSupply queries the total supply of all coins.
	//
	// When called from another module, this query might consume a high amount of
	// gas if the pagination field is incorrectly set.
	TotalSupply(ctx context.Context, in *QueryTotalSupplyRequest, opts ...grpc.CallOption) (*QueryTotalSupplyResponse, error)
	// SupplyOf queries the supply of a single coin.
	//
	// When called from another module, this query might consume a high amount of
	// gas if the pagination field is incorrectly set.
	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)
	// DenomsMetadata queries the client metadata of a given coin denomination.
	DenomMetadata(ctx context.Context, in *QueryDenomMetadataRequest, opts ...grpc.CallOption) (*QueryDenomMetadataResponse, error)
	// DenomsMetadata queries the client metadata for all registered coin
	// denominations.
	DenomsMetadata(ctx context.Context, in *QueryDenomsMetadataRequest, opts ...grpc.CallOption) (*QueryDenomsMetadataResponse, error)
	// DenomOwners queries for all account addresses that own a particular token
	// denomination.
	//
	// When called from another module, this query might consume a high amount of
	// gas if the pagination field is incorrectly set.
	//
	// Since: cosmos-sdk 0.46
	DenomOwners(ctx context.Context, in *QueryDenomOwnersRequest, opts ...grpc.CallOption) (*QueryDenomOwnersResponse, error)
	// SendEnabled queries for SendEnabled entries.
	//
	// This query only returns denominations that have specific SendEnabled settings.
	// Any denomination that does not have a specific setting will use the default
	// params.default_send_enabled, and will not be returned by this query.
	//
	// Since: cosmos-sdk 0.47
	SendEnabled(ctx context.Context, in *QuerySendEnabledRequest, opts ...grpc.CallOption) (*QuerySendEnabledResponse, error)
}

QueryClient is the client API for Query service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewQueryClient

func NewQueryClient(cc grpc.ClientConnInterface) QueryClient

type QueryDenomMetadataRequest

type QueryDenomMetadataRequest struct {

	// denom is the coin denom to query the metadata for.
	Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	// contains filtered or unexported fields
}

QueryDenomMetadataRequest is the request type for the Query/DenomMetadata RPC method.

func (*QueryDenomMetadataRequest) Descriptor deprecated

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

Deprecated: Use QueryDenomMetadataRequest.ProtoReflect.Descriptor instead.

func (*QueryDenomMetadataRequest) GetDenom

func (x *QueryDenomMetadataRequest) GetDenom() string

func (*QueryDenomMetadataRequest) ProtoMessage

func (*QueryDenomMetadataRequest) ProtoMessage()

func (*QueryDenomMetadataRequest) ProtoReflect

func (*QueryDenomMetadataRequest) Reset

func (x *QueryDenomMetadataRequest) Reset()

func (*QueryDenomMetadataRequest) String

func (x *QueryDenomMetadataRequest) String() string

type QueryDenomMetadataResponse

type QueryDenomMetadataResponse struct {

	// metadata describes and provides all the client information for the requested token.
	Metadata *Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// contains filtered or unexported fields
}

QueryDenomMetadataResponse is the response type for the Query/DenomMetadata RPC method.

func (*QueryDenomMetadataResponse) Descriptor deprecated

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

Deprecated: Use QueryDenomMetadataResponse.ProtoReflect.Descriptor instead.

func (*QueryDenomMetadataResponse) GetMetadata

func (x *QueryDenomMetadataResponse) GetMetadata() *Metadata

func (*QueryDenomMetadataResponse) ProtoMessage

func (*QueryDenomMetadataResponse) ProtoMessage()

func (*QueryDenomMetadataResponse) ProtoReflect

func (*QueryDenomMetadataResponse) Reset

func (x *QueryDenomMetadataResponse) Reset()

func (*QueryDenomMetadataResponse) String

func (x *QueryDenomMetadataResponse) String() string

type QueryDenomOwnersRequest

type QueryDenomOwnersRequest struct {

	// denom defines the coin denomination to query all account holders for.
	Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *v1beta11.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryDenomOwnersRequest defines the request type for the DenomOwners RPC query, which queries for a paginated set of all account holders of a particular denomination.

func (*QueryDenomOwnersRequest) Descriptor deprecated

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

Deprecated: Use QueryDenomOwnersRequest.ProtoReflect.Descriptor instead.

func (*QueryDenomOwnersRequest) GetDenom

func (x *QueryDenomOwnersRequest) GetDenom() string

func (*QueryDenomOwnersRequest) GetPagination

func (x *QueryDenomOwnersRequest) GetPagination() *v1beta11.PageRequest

func (*QueryDenomOwnersRequest) ProtoMessage

func (*QueryDenomOwnersRequest) ProtoMessage()

func (*QueryDenomOwnersRequest) ProtoReflect

func (x *QueryDenomOwnersRequest) ProtoReflect() protoreflect.Message

func (*QueryDenomOwnersRequest) Reset

func (x *QueryDenomOwnersRequest) Reset()

func (*QueryDenomOwnersRequest) String

func (x *QueryDenomOwnersRequest) String() string

type QueryDenomOwnersResponse

type QueryDenomOwnersResponse struct {
	DenomOwners []*DenomOwner `protobuf:"bytes,1,rep,name=denom_owners,json=denomOwners,proto3" json:"denom_owners,omitempty"`
	// pagination defines the pagination in the response.
	Pagination *v1beta11.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryDenomOwnersResponse defines the RPC response of a DenomOwners RPC query.

Since: cosmos-sdk 0.46

func (*QueryDenomOwnersResponse) Descriptor deprecated

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

Deprecated: Use QueryDenomOwnersResponse.ProtoReflect.Descriptor instead.

func (*QueryDenomOwnersResponse) GetDenomOwners

func (x *QueryDenomOwnersResponse) GetDenomOwners() []*DenomOwner

func (*QueryDenomOwnersResponse) GetPagination

func (x *QueryDenomOwnersResponse) GetPagination() *v1beta11.PageResponse

func (*QueryDenomOwnersResponse) ProtoMessage

func (*QueryDenomOwnersResponse) ProtoMessage()

func (*QueryDenomOwnersResponse) ProtoReflect

func (x *QueryDenomOwnersResponse) ProtoReflect() protoreflect.Message

func (*QueryDenomOwnersResponse) Reset

func (x *QueryDenomOwnersResponse) Reset()

func (*QueryDenomOwnersResponse) String

func (x *QueryDenomOwnersResponse) String() string

type QueryDenomsMetadataRequest

type QueryDenomsMetadataRequest struct {

	// pagination defines an optional pagination for the request.
	Pagination *v1beta11.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryDenomsMetadataRequest is the request type for the Query/DenomsMetadata RPC method.

func (*QueryDenomsMetadataRequest) Descriptor deprecated

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

Deprecated: Use QueryDenomsMetadataRequest.ProtoReflect.Descriptor instead.

func (*QueryDenomsMetadataRequest) GetPagination

func (x *QueryDenomsMetadataRequest) GetPagination() *v1beta11.PageRequest

func (*QueryDenomsMetadataRequest) ProtoMessage

func (*QueryDenomsMetadataRequest) ProtoMessage()

func (*QueryDenomsMetadataRequest) ProtoReflect

func (*QueryDenomsMetadataRequest) Reset

func (x *QueryDenomsMetadataRequest) Reset()

func (*QueryDenomsMetadataRequest) String

func (x *QueryDenomsMetadataRequest) String() string

type QueryDenomsMetadataResponse

type QueryDenomsMetadataResponse struct {

	// metadata provides the client information for all the registered tokens.
	Metadatas []*Metadata `protobuf:"bytes,1,rep,name=metadatas,proto3" json:"metadatas,omitempty"`
	// pagination defines the pagination in the response.
	Pagination *v1beta11.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryDenomsMetadataResponse is the response type for the Query/DenomsMetadata RPC method.

func (*QueryDenomsMetadataResponse) Descriptor deprecated

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

Deprecated: Use QueryDenomsMetadataResponse.ProtoReflect.Descriptor instead.

func (*QueryDenomsMetadataResponse) GetMetadatas

func (x *QueryDenomsMetadataResponse) GetMetadatas() []*Metadata

func (*QueryDenomsMetadataResponse) GetPagination

func (*QueryDenomsMetadataResponse) ProtoMessage

func (*QueryDenomsMetadataResponse) ProtoMessage()

func (*QueryDenomsMetadataResponse) ProtoReflect

func (*QueryDenomsMetadataResponse) Reset

func (x *QueryDenomsMetadataResponse) Reset()

func (*QueryDenomsMetadataResponse) String

func (x *QueryDenomsMetadataResponse) String() string

type QueryParamsRequest

type QueryParamsRequest struct {
	// contains filtered or unexported fields
}

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

func (*QueryParamsRequest) Descriptor deprecated

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

Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead.

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) ProtoReflect

func (x *QueryParamsRequest) ProtoReflect() protoreflect.Message

func (*QueryParamsRequest) Reset

func (x *QueryParamsRequest) Reset()

func (*QueryParamsRequest) String

func (x *QueryParamsRequest) String() string

type QueryParamsResponse

type QueryParamsResponse struct {
	Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
	// contains filtered or unexported fields
}

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

func (*QueryParamsResponse) Descriptor deprecated

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

Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead.

func (*QueryParamsResponse) GetParams

func (x *QueryParamsResponse) GetParams() *Params

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) ProtoReflect

func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message

func (*QueryParamsResponse) Reset

func (x *QueryParamsResponse) Reset()

func (*QueryParamsResponse) String

func (x *QueryParamsResponse) String() string

type QuerySendEnabledRequest

type QuerySendEnabledRequest struct {

	// denoms is the specific denoms you want look up. Leave empty to get all entries.
	Denoms []string `protobuf:"bytes,1,rep,name=denoms,proto3" json:"denoms,omitempty"`
	// pagination defines an optional pagination for the request. This field is
	// only read if the denoms field is empty.
	Pagination *v1beta11.PageRequest `protobuf:"bytes,99,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QuerySendEnabledRequest defines the RPC request for looking up SendEnabled entries.

Since: cosmos-sdk 0.47

func (*QuerySendEnabledRequest) Descriptor deprecated

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

Deprecated: Use QuerySendEnabledRequest.ProtoReflect.Descriptor instead.

func (*QuerySendEnabledRequest) GetDenoms

func (x *QuerySendEnabledRequest) GetDenoms() []string

func (*QuerySendEnabledRequest) GetPagination

func (x *QuerySendEnabledRequest) GetPagination() *v1beta11.PageRequest

func (*QuerySendEnabledRequest) ProtoMessage

func (*QuerySendEnabledRequest) ProtoMessage()

func (*QuerySendEnabledRequest) ProtoReflect

func (x *QuerySendEnabledRequest) ProtoReflect() protoreflect.Message

func (*QuerySendEnabledRequest) Reset

func (x *QuerySendEnabledRequest) Reset()

func (*QuerySendEnabledRequest) String

func (x *QuerySendEnabledRequest) String() string

type QuerySendEnabledResponse

type QuerySendEnabledResponse struct {
	SendEnabled []*SendEnabled `protobuf:"bytes,1,rep,name=send_enabled,json=sendEnabled,proto3" json:"send_enabled,omitempty"`
	// pagination defines the pagination in the response. This field is only
	// populated if the denoms field in the request is empty.
	Pagination *v1beta11.PageResponse `protobuf:"bytes,99,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QuerySendEnabledResponse defines the RPC response of a SendEnable query.

Since: cosmos-sdk 0.47

func (*QuerySendEnabledResponse) Descriptor deprecated

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

Deprecated: Use QuerySendEnabledResponse.ProtoReflect.Descriptor instead.

func (*QuerySendEnabledResponse) GetPagination

func (x *QuerySendEnabledResponse) GetPagination() *v1beta11.PageResponse

func (*QuerySendEnabledResponse) GetSendEnabled

func (x *QuerySendEnabledResponse) GetSendEnabled() []*SendEnabled

func (*QuerySendEnabledResponse) ProtoMessage

func (*QuerySendEnabledResponse) ProtoMessage()

func (*QuerySendEnabledResponse) ProtoReflect

func (x *QuerySendEnabledResponse) ProtoReflect() protoreflect.Message

func (*QuerySendEnabledResponse) Reset

func (x *QuerySendEnabledResponse) Reset()

func (*QuerySendEnabledResponse) String

func (x *QuerySendEnabledResponse) String() string

type QueryServer

type QueryServer interface {
	// Balance queries the balance of a single coin for a single account.
	Balance(context.Context, *QueryBalanceRequest) (*QueryBalanceResponse, error)
	// AllBalances queries the balance of all coins for a single account.
	//
	// When called from another module, this query might consume a high amount of
	// gas if the pagination field is incorrectly set.
	AllBalances(context.Context, *QueryAllBalancesRequest) (*QueryAllBalancesResponse, error)
	// SpendableBalances queries the spenable balance of all coins for a single
	// account.
	//
	// When called from another module, this query might consume a high amount of
	// gas if the pagination field is incorrectly set.
	//
	// Since: cosmos-sdk 0.46
	SpendableBalances(context.Context, *QuerySpendableBalancesRequest) (*QuerySpendableBalancesResponse, error)
	// TotalSupply queries the total supply of all coins.
	//
	// When called from another module, this query might consume a high amount of
	// gas if the pagination field is incorrectly set.
	TotalSupply(context.Context, *QueryTotalSupplyRequest) (*QueryTotalSupplyResponse, error)
	// SupplyOf queries the supply of a single coin.
	//
	// When called from another module, this query might consume a high amount of
	// gas if the pagination field is incorrectly set.
	SupplyOf(context.Context, *QuerySupplyOfRequest) (*QuerySupplyOfResponse, error)
	// Params queries the parameters of x/bank module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// DenomsMetadata queries the client metadata of a given coin denomination.
	DenomMetadata(context.Context, *QueryDenomMetadataRequest) (*QueryDenomMetadataResponse, error)
	// DenomsMetadata queries the client metadata for all registered coin
	// denominations.
	DenomsMetadata(context.Context, *QueryDenomsMetadataRequest) (*QueryDenomsMetadataResponse, error)
	// DenomOwners queries for all account addresses that own a particular token
	// denomination.
	//
	// When called from another module, this query might consume a high amount of
	// gas if the pagination field is incorrectly set.
	//
	// Since: cosmos-sdk 0.46
	DenomOwners(context.Context, *QueryDenomOwnersRequest) (*QueryDenomOwnersResponse, error)
	// SendEnabled queries for SendEnabled entries.
	//
	// This query only returns denominations that have specific SendEnabled settings.
	// Any denomination that does not have a specific setting will use the default
	// params.default_send_enabled, and will not be returned by this query.
	//
	// Since: cosmos-sdk 0.47
	SendEnabled(context.Context, *QuerySendEnabledRequest) (*QuerySendEnabledResponse, error)
	// contains filtered or unexported methods
}

QueryServer is the server API for Query service. All implementations must embed UnimplementedQueryServer for forward compatibility

type QuerySpendableBalancesRequest

type QuerySpendableBalancesRequest struct {

	// address is the address to query spendable balances for.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *v1beta11.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QuerySpendableBalancesRequest defines the gRPC request structure for querying an account's spendable balances.

Since: cosmos-sdk 0.46

func (*QuerySpendableBalancesRequest) Descriptor deprecated

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

Deprecated: Use QuerySpendableBalancesRequest.ProtoReflect.Descriptor instead.

func (*QuerySpendableBalancesRequest) GetAddress

func (x *QuerySpendableBalancesRequest) GetAddress() string

func (*QuerySpendableBalancesRequest) GetPagination

func (*QuerySpendableBalancesRequest) ProtoMessage

func (*QuerySpendableBalancesRequest) ProtoMessage()

func (*QuerySpendableBalancesRequest) ProtoReflect

func (*QuerySpendableBalancesRequest) Reset

func (x *QuerySpendableBalancesRequest) Reset()

func (*QuerySpendableBalancesRequest) String

type QuerySpendableBalancesResponse

type QuerySpendableBalancesResponse struct {

	// balances is the spendable balances of all the coins.
	Balances []*v1beta1.Coin `protobuf:"bytes,1,rep,name=balances,proto3" json:"balances,omitempty"`
	// pagination defines the pagination in the response.
	Pagination *v1beta11.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QuerySpendableBalancesResponse defines the gRPC response structure for querying an account's spendable balances.

Since: cosmos-sdk 0.46

func (*QuerySpendableBalancesResponse) Descriptor deprecated

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

Deprecated: Use QuerySpendableBalancesResponse.ProtoReflect.Descriptor instead.

func (*QuerySpendableBalancesResponse) GetBalances

func (x *QuerySpendableBalancesResponse) GetBalances() []*v1beta1.Coin

func (*QuerySpendableBalancesResponse) GetPagination

func (*QuerySpendableBalancesResponse) ProtoMessage

func (*QuerySpendableBalancesResponse) ProtoMessage()

func (*QuerySpendableBalancesResponse) ProtoReflect

func (*QuerySpendableBalancesResponse) Reset

func (x *QuerySpendableBalancesResponse) Reset()

func (*QuerySpendableBalancesResponse) String

type QuerySupplyOfRequest

type QuerySupplyOfRequest struct {

	// denom is the coin denom to query balances for.
	Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	// contains filtered or unexported fields
}

QuerySupplyOfRequest is the request type for the Query/SupplyOf RPC method.

func (*QuerySupplyOfRequest) Descriptor deprecated

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

Deprecated: Use QuerySupplyOfRequest.ProtoReflect.Descriptor instead.

func (*QuerySupplyOfRequest) GetDenom

func (x *QuerySupplyOfRequest) GetDenom() string

func (*QuerySupplyOfRequest) ProtoMessage

func (*QuerySupplyOfRequest) ProtoMessage()

func (*QuerySupplyOfRequest) ProtoReflect

func (x *QuerySupplyOfRequest) ProtoReflect() protoreflect.Message

func (*QuerySupplyOfRequest) Reset

func (x *QuerySupplyOfRequest) Reset()

func (*QuerySupplyOfRequest) String

func (x *QuerySupplyOfRequest) String() string

type QuerySupplyOfResponse

type QuerySupplyOfResponse struct {

	// amount is the supply of the coin.
	Amount *v1beta1.Coin `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

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

func (*QuerySupplyOfResponse) Descriptor deprecated

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

Deprecated: Use QuerySupplyOfResponse.ProtoReflect.Descriptor instead.

func (*QuerySupplyOfResponse) GetAmount

func (x *QuerySupplyOfResponse) GetAmount() *v1beta1.Coin

func (*QuerySupplyOfResponse) ProtoMessage

func (*QuerySupplyOfResponse) ProtoMessage()

func (*QuerySupplyOfResponse) ProtoReflect

func (x *QuerySupplyOfResponse) ProtoReflect() protoreflect.Message

func (*QuerySupplyOfResponse) Reset

func (x *QuerySupplyOfResponse) Reset()

func (*QuerySupplyOfResponse) String

func (x *QuerySupplyOfResponse) String() string

type QueryTotalSupplyRequest

type QueryTotalSupplyRequest struct {

	// pagination defines an optional pagination for the request.
	//
	// Since: cosmos-sdk 0.43
	Pagination *v1beta11.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

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

func (*QueryTotalSupplyRequest) Descriptor deprecated

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

Deprecated: Use QueryTotalSupplyRequest.ProtoReflect.Descriptor instead.

func (*QueryTotalSupplyRequest) GetPagination

func (x *QueryTotalSupplyRequest) GetPagination() *v1beta11.PageRequest

func (*QueryTotalSupplyRequest) ProtoMessage

func (*QueryTotalSupplyRequest) ProtoMessage()

func (*QueryTotalSupplyRequest) ProtoReflect

func (x *QueryTotalSupplyRequest) ProtoReflect() protoreflect.Message

func (*QueryTotalSupplyRequest) Reset

func (x *QueryTotalSupplyRequest) Reset()

func (*QueryTotalSupplyRequest) String

func (x *QueryTotalSupplyRequest) String() string

type QueryTotalSupplyResponse

type QueryTotalSupplyResponse struct {

	// supply is the supply of the coins
	Supply []*v1beta1.Coin `protobuf:"bytes,1,rep,name=supply,proto3" json:"supply,omitempty"`
	// pagination defines the pagination in the response.
	//
	// Since: cosmos-sdk 0.43
	Pagination *v1beta11.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

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

func (*QueryTotalSupplyResponse) Descriptor deprecated

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

Deprecated: Use QueryTotalSupplyResponse.ProtoReflect.Descriptor instead.

func (*QueryTotalSupplyResponse) GetPagination

func (x *QueryTotalSupplyResponse) GetPagination() *v1beta11.PageResponse

func (*QueryTotalSupplyResponse) GetSupply

func (x *QueryTotalSupplyResponse) GetSupply() []*v1beta1.Coin

func (*QueryTotalSupplyResponse) ProtoMessage

func (*QueryTotalSupplyResponse) ProtoMessage()

func (*QueryTotalSupplyResponse) ProtoReflect

func (x *QueryTotalSupplyResponse) ProtoReflect() protoreflect.Message

func (*QueryTotalSupplyResponse) Reset

func (x *QueryTotalSupplyResponse) Reset()

func (*QueryTotalSupplyResponse) String

func (x *QueryTotalSupplyResponse) String() string

type SendAuthorization

type SendAuthorization struct {
	SpendLimit []*v1beta1.Coin `protobuf:"bytes,1,rep,name=spend_limit,json=spendLimit,proto3" json:"spend_limit,omitempty"`
	// allow_list specifies an optional list of addresses to whom the grantee can send tokens on behalf of the
	// granter. If omitted, any recipient is allowed.
	//
	// Since: cosmos-sdk 0.47
	AllowList []string `protobuf:"bytes,2,rep,name=allow_list,json=allowList,proto3" json:"allow_list,omitempty"`
	// contains filtered or unexported fields
}

SendAuthorization allows the grantee to spend up to spend_limit coins from the granter's account.

Since: cosmos-sdk 0.43

func (*SendAuthorization) Descriptor deprecated

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

Deprecated: Use SendAuthorization.ProtoReflect.Descriptor instead.

func (*SendAuthorization) GetAllowList

func (x *SendAuthorization) GetAllowList() []string

func (*SendAuthorization) GetSpendLimit

func (x *SendAuthorization) GetSpendLimit() []*v1beta1.Coin

func (*SendAuthorization) ProtoMessage

func (*SendAuthorization) ProtoMessage()

func (*SendAuthorization) ProtoReflect

func (x *SendAuthorization) ProtoReflect() protoreflect.Message

func (*SendAuthorization) Reset

func (x *SendAuthorization) Reset()

func (*SendAuthorization) String

func (x *SendAuthorization) String() string

type SendEnabled

type SendEnabled struct {
	Denom   string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	Enabled bool   `protobuf:"varint,2,opt,name=enabled,proto3" json:"enabled,omitempty"`
	// contains filtered or unexported fields
}

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

func (*SendEnabled) Descriptor deprecated

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

Deprecated: Use SendEnabled.ProtoReflect.Descriptor instead.

func (*SendEnabled) GetDenom

func (x *SendEnabled) GetDenom() string

func (*SendEnabled) GetEnabled

func (x *SendEnabled) GetEnabled() bool

func (*SendEnabled) ProtoMessage

func (*SendEnabled) ProtoMessage()

func (*SendEnabled) ProtoReflect

func (x *SendEnabled) ProtoReflect() protoreflect.Message

func (*SendEnabled) Reset

func (x *SendEnabled) Reset()

func (*SendEnabled) String

func (x *SendEnabled) String() string

type Supply deprecated

type Supply struct {
	Total []*v1beta1.Coin `protobuf:"bytes,1,rep,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

Supply represents a struct that passively keeps track of the total supply amounts in the network. This message is deprecated now that supply is indexed by denom.

Deprecated: Do not use.

func (*Supply) Descriptor deprecated

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

Deprecated: Use Supply.ProtoReflect.Descriptor instead.

func (*Supply) GetTotal

func (x *Supply) GetTotal() []*v1beta1.Coin

func (*Supply) ProtoMessage

func (*Supply) ProtoMessage()

func (*Supply) ProtoReflect

func (x *Supply) ProtoReflect() protoreflect.Message

func (*Supply) Reset

func (x *Supply) Reset()

func (*Supply) String

func (x *Supply) String() string

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer must be embedded to have forward compatible implementations.

func (UnimplementedMsgServer) MultiSend

func (UnimplementedMsgServer) Send

func (UnimplementedMsgServer) SetSendEnabled

func (UnimplementedMsgServer) UpdateParams

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer must be embedded to have forward compatible implementations.

func (UnimplementedQueryServer) Balance

func (UnimplementedQueryServer) Params

func (UnimplementedQueryServer) SupplyOf

type UnsafeMsgServer

type UnsafeMsgServer interface {
	// contains filtered or unexported methods
}

UnsafeMsgServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MsgServer will result in compilation errors.

type UnsafeQueryServer

type UnsafeQueryServer interface {
	// contains filtered or unexported methods
}

UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to QueryServer will result in compilation errors.

Jump to

Keyboard shortcuts

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