authv1beta1

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: Apache-2.0 Imports: 19 Imported by: 25

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.

Index

Constants

This section is empty.

Variables

View Source
var File_cosmos_auth_v1beta1_auth_proto protoreflect.FileDescriptor
View Source
var File_cosmos_auth_v1beta1_genesis_proto protoreflect.FileDescriptor
View Source
var File_cosmos_auth_v1beta1_query_proto protoreflect.FileDescriptor
View Source
var File_cosmos_auth_v1beta1_tx_proto protoreflect.FileDescriptor
View Source
var Msg_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "cosmos.auth.v1beta1.Msg",
	HandlerType: (*MsgServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "UpdateParams",
			Handler:    _Msg_UpdateParams_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "cosmos/auth/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.auth.v1beta1.Query",
	HandlerType: (*QueryServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Accounts",
			Handler:    _Query_Accounts_Handler,
		},
		{
			MethodName: "Account",
			Handler:    _Query_Account_Handler,
		},
		{
			MethodName: "AccountAddressByID",
			Handler:    _Query_AccountAddressByID_Handler,
		},
		{
			MethodName: "Params",
			Handler:    _Query_Params_Handler,
		},
		{
			MethodName: "ModuleAccounts",
			Handler:    _Query_ModuleAccounts_Handler,
		},
		{
			MethodName: "ModuleAccountByName",
			Handler:    _Query_ModuleAccountByName_Handler,
		},
		{
			MethodName: "Bech32Prefix",
			Handler:    _Query_Bech32Prefix_Handler,
		},
		{
			MethodName: "AddressBytesToString",
			Handler:    _Query_AddressBytesToString_Handler,
		},
		{
			MethodName: "AddressStringToBytes",
			Handler:    _Query_AddressStringToBytes_Handler,
		},
		{
			MethodName: "AccountInfo",
			Handler:    _Query_AccountInfo_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "cosmos/auth/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 AddressBytesToStringRequest

type AddressBytesToStringRequest struct {
	AddressBytes []byte `protobuf:"bytes,1,opt,name=address_bytes,json=addressBytes,proto3" json:"address_bytes,omitempty"`
	// contains filtered or unexported fields
}

AddressBytesToStringRequest is the request type for AddressString rpc method.

Since: cosmos-sdk 0.46

func (*AddressBytesToStringRequest) Descriptor deprecated

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

Deprecated: Use AddressBytesToStringRequest.ProtoReflect.Descriptor instead.

func (*AddressBytesToStringRequest) GetAddressBytes

func (x *AddressBytesToStringRequest) GetAddressBytes() []byte

func (*AddressBytesToStringRequest) ProtoMessage

func (*AddressBytesToStringRequest) ProtoMessage()

func (*AddressBytesToStringRequest) ProtoReflect

func (*AddressBytesToStringRequest) Reset

func (x *AddressBytesToStringRequest) Reset()

func (*AddressBytesToStringRequest) String

func (x *AddressBytesToStringRequest) String() string

type AddressBytesToStringResponse

type AddressBytesToStringResponse struct {
	AddressString string `protobuf:"bytes,1,opt,name=address_string,json=addressString,proto3" json:"address_string,omitempty"`
	// contains filtered or unexported fields
}

AddressBytesToStringResponse is the response type for AddressString rpc method.

Since: cosmos-sdk 0.46

func (*AddressBytesToStringResponse) Descriptor deprecated

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

Deprecated: Use AddressBytesToStringResponse.ProtoReflect.Descriptor instead.

func (*AddressBytesToStringResponse) GetAddressString

func (x *AddressBytesToStringResponse) GetAddressString() string

func (*AddressBytesToStringResponse) ProtoMessage

func (*AddressBytesToStringResponse) ProtoMessage()

func (*AddressBytesToStringResponse) ProtoReflect

func (*AddressBytesToStringResponse) Reset

func (x *AddressBytesToStringResponse) Reset()

func (*AddressBytesToStringResponse) String

type AddressStringToBytesRequest

type AddressStringToBytesRequest struct {
	AddressString string `protobuf:"bytes,1,opt,name=address_string,json=addressString,proto3" json:"address_string,omitempty"`
	// contains filtered or unexported fields
}

AddressStringToBytesRequest is the request type for AccountBytes rpc method.

Since: cosmos-sdk 0.46

func (*AddressStringToBytesRequest) Descriptor deprecated

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

Deprecated: Use AddressStringToBytesRequest.ProtoReflect.Descriptor instead.

func (*AddressStringToBytesRequest) GetAddressString

func (x *AddressStringToBytesRequest) GetAddressString() string

func (*AddressStringToBytesRequest) ProtoMessage

func (*AddressStringToBytesRequest) ProtoMessage()

func (*AddressStringToBytesRequest) ProtoReflect

func (*AddressStringToBytesRequest) Reset

func (x *AddressStringToBytesRequest) Reset()

func (*AddressStringToBytesRequest) String

func (x *AddressStringToBytesRequest) String() string

type AddressStringToBytesResponse

type AddressStringToBytesResponse struct {
	AddressBytes []byte `protobuf:"bytes,1,opt,name=address_bytes,json=addressBytes,proto3" json:"address_bytes,omitempty"`
	// contains filtered or unexported fields
}

AddressStringToBytesResponse is the response type for AddressBytes rpc method.

Since: cosmos-sdk 0.46

func (*AddressStringToBytesResponse) Descriptor deprecated

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

Deprecated: Use AddressStringToBytesResponse.ProtoReflect.Descriptor instead.

func (*AddressStringToBytesResponse) GetAddressBytes

func (x *AddressStringToBytesResponse) GetAddressBytes() []byte

func (*AddressStringToBytesResponse) ProtoMessage

func (*AddressStringToBytesResponse) ProtoMessage()

func (*AddressStringToBytesResponse) ProtoReflect

func (*AddressStringToBytesResponse) Reset

func (x *AddressStringToBytesResponse) Reset()

func (*AddressStringToBytesResponse) String

type BaseAccount

type BaseAccount struct {
	Address       string     `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	PubKey        *anypb.Any `protobuf:"bytes,2,opt,name=pub_key,json=pubKey,proto3" json:"pub_key,omitempty"`
	AccountNumber uint64     `protobuf:"varint,3,opt,name=account_number,json=accountNumber,proto3" json:"account_number,omitempty"`
	Sequence      uint64     `protobuf:"varint,4,opt,name=sequence,proto3" json:"sequence,omitempty"`
	// contains filtered or unexported fields
}

BaseAccount defines a base account type. It contains all the necessary fields for basic account functionality. Any custom account type should extend this type for additional functionality (e.g. vesting).

func (*BaseAccount) Descriptor deprecated

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

Deprecated: Use BaseAccount.ProtoReflect.Descriptor instead.

func (*BaseAccount) GetAccountNumber

func (x *BaseAccount) GetAccountNumber() uint64

func (*BaseAccount) GetAddress

func (x *BaseAccount) GetAddress() string

func (*BaseAccount) GetPubKey

func (x *BaseAccount) GetPubKey() *anypb.Any

func (*BaseAccount) GetSequence

func (x *BaseAccount) GetSequence() uint64

func (*BaseAccount) ProtoMessage

func (*BaseAccount) ProtoMessage()

func (*BaseAccount) ProtoReflect

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

func (*BaseAccount) Reset

func (x *BaseAccount) Reset()

func (*BaseAccount) String

func (x *BaseAccount) String() string

type Bech32PrefixRequest

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

Bech32PrefixRequest is the request type for Bech32Prefix rpc method.

Since: cosmos-sdk 0.46

func (*Bech32PrefixRequest) Descriptor deprecated

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

Deprecated: Use Bech32PrefixRequest.ProtoReflect.Descriptor instead.

func (*Bech32PrefixRequest) ProtoMessage

func (*Bech32PrefixRequest) ProtoMessage()

func (*Bech32PrefixRequest) ProtoReflect

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

func (*Bech32PrefixRequest) Reset

func (x *Bech32PrefixRequest) Reset()

func (*Bech32PrefixRequest) String

func (x *Bech32PrefixRequest) String() string

type Bech32PrefixResponse

type Bech32PrefixResponse struct {
	Bech32Prefix string `protobuf:"bytes,1,opt,name=bech32_prefix,json=bech32Prefix,proto3" json:"bech32_prefix,omitempty"`
	// contains filtered or unexported fields
}

Bech32PrefixResponse is the response type for Bech32Prefix rpc method.

Since: cosmos-sdk 0.46

func (*Bech32PrefixResponse) Descriptor deprecated

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

Deprecated: Use Bech32PrefixResponse.ProtoReflect.Descriptor instead.

func (*Bech32PrefixResponse) GetBech32Prefix

func (x *Bech32PrefixResponse) GetBech32Prefix() string

func (*Bech32PrefixResponse) ProtoMessage

func (*Bech32PrefixResponse) ProtoMessage()

func (*Bech32PrefixResponse) ProtoReflect

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

func (*Bech32PrefixResponse) Reset

func (x *Bech32PrefixResponse) Reset()

func (*Bech32PrefixResponse) String

func (x *Bech32PrefixResponse) 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"`
	// accounts are the accounts present at genesis.
	Accounts []*anypb.Any `protobuf:"bytes,2,rep,name=accounts,proto3" json:"accounts,omitempty"`
	// contains filtered or unexported fields
}

GenesisState defines the auth module's genesis state.

func (*GenesisState) Descriptor deprecated

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

Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.

func (*GenesisState) GetAccounts

func (x *GenesisState) GetAccounts() []*anypb.Any

func (*GenesisState) GetParams

func (x *GenesisState) GetParams() *Params

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 ModuleAccount

type ModuleAccount struct {
	BaseAccount *BaseAccount `protobuf:"bytes,1,opt,name=base_account,json=baseAccount,proto3" json:"base_account,omitempty"`
	Name        string       `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Permissions []string     `protobuf:"bytes,3,rep,name=permissions,proto3" json:"permissions,omitempty"`
	// contains filtered or unexported fields
}

ModuleAccount defines an account for modules that holds coins on a pool.

func (*ModuleAccount) Descriptor deprecated

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

Deprecated: Use ModuleAccount.ProtoReflect.Descriptor instead.

func (*ModuleAccount) GetBaseAccount

func (x *ModuleAccount) GetBaseAccount() *BaseAccount

func (*ModuleAccount) GetName

func (x *ModuleAccount) GetName() string

func (*ModuleAccount) GetPermissions

func (x *ModuleAccount) GetPermissions() []string

func (*ModuleAccount) ProtoMessage

func (*ModuleAccount) ProtoMessage()

func (*ModuleAccount) ProtoReflect

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

func (*ModuleAccount) Reset

func (x *ModuleAccount) Reset()

func (*ModuleAccount) String

func (x *ModuleAccount) String() string

type MsgClient

type MsgClient interface {
	// UpdateParams defines a governance operation for updating the x/auth module
	// parameters. The authority is hard-coded to the x/gov module account.
	//
	// Since: cosmos-sdk 0.47
	UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, 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 MsgServer

type MsgServer interface {
	// UpdateParams defines a governance operation for updating the x/auth module
	// parameters. The authority is hard-coded to the x/gov module account.
	//
	// Since: cosmos-sdk 0.47
	UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
	// contains filtered or unexported methods
}

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

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/auth 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 Params

type Params struct {
	MaxMemoCharacters      uint64 `protobuf:"varint,1,opt,name=max_memo_characters,json=maxMemoCharacters,proto3" json:"max_memo_characters,omitempty"`
	TxSigLimit             uint64 `protobuf:"varint,2,opt,name=tx_sig_limit,json=txSigLimit,proto3" json:"tx_sig_limit,omitempty"`
	TxSizeCostPerByte      uint64 `protobuf:"varint,3,opt,name=tx_size_cost_per_byte,json=txSizeCostPerByte,proto3" json:"tx_size_cost_per_byte,omitempty"`
	SigVerifyCostEd25519   uint64 `` /* 126-byte string literal not displayed */
	SigVerifyCostSecp256K1 uint64 `` /* 132-byte string literal not displayed */
	// contains filtered or unexported fields
}

Params defines the parameters for the auth module.

func (*Params) Descriptor deprecated

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

Deprecated: Use Params.ProtoReflect.Descriptor instead.

func (*Params) GetMaxMemoCharacters

func (x *Params) GetMaxMemoCharacters() uint64

func (*Params) GetSigVerifyCostEd25519

func (x *Params) GetSigVerifyCostEd25519() uint64

func (*Params) GetSigVerifyCostSecp256K1

func (x *Params) GetSigVerifyCostSecp256K1() uint64

func (*Params) GetTxSigLimit

func (x *Params) GetTxSigLimit() uint64

func (*Params) GetTxSizeCostPerByte

func (x *Params) GetTxSizeCostPerByte() uint64

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 QueryAccountAddressByIDRequest

type QueryAccountAddressByIDRequest struct {

	// id is the account number of the address to be queried. This field
	// should have been an uint64 (like all account numbers), and will be
	// updated to uint64 in a future version of the auth query.
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

QueryAccountAddressByIDRequest is the request type for AccountAddressByID rpc method

Since: cosmos-sdk 0.46.2

func (*QueryAccountAddressByIDRequest) Descriptor deprecated

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

Deprecated: Use QueryAccountAddressByIDRequest.ProtoReflect.Descriptor instead.

func (*QueryAccountAddressByIDRequest) GetId

func (*QueryAccountAddressByIDRequest) ProtoMessage

func (*QueryAccountAddressByIDRequest) ProtoMessage()

func (*QueryAccountAddressByIDRequest) ProtoReflect

func (*QueryAccountAddressByIDRequest) Reset

func (x *QueryAccountAddressByIDRequest) Reset()

func (*QueryAccountAddressByIDRequest) String

type QueryAccountAddressByIDResponse

type QueryAccountAddressByIDResponse struct {
	AccountAddress string `protobuf:"bytes,1,opt,name=account_address,json=accountAddress,proto3" json:"account_address,omitempty"`
	// contains filtered or unexported fields
}

QueryAccountAddressByIDResponse is the response type for AccountAddressByID rpc method

Since: cosmos-sdk 0.46.2

func (*QueryAccountAddressByIDResponse) Descriptor deprecated

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

Deprecated: Use QueryAccountAddressByIDResponse.ProtoReflect.Descriptor instead.

func (*QueryAccountAddressByIDResponse) GetAccountAddress

func (x *QueryAccountAddressByIDResponse) GetAccountAddress() string

func (*QueryAccountAddressByIDResponse) ProtoMessage

func (*QueryAccountAddressByIDResponse) ProtoMessage()

func (*QueryAccountAddressByIDResponse) ProtoReflect

func (*QueryAccountAddressByIDResponse) Reset

func (*QueryAccountAddressByIDResponse) String

type QueryAccountInfoRequest added in v0.2.2

type QueryAccountInfoRequest struct {

	// address is the account address string.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

QueryAccountInfoRequest is the Query/AccountInfo request type.

Since: cosmos-sdk 0.47

func (*QueryAccountInfoRequest) Descriptor deprecated added in v0.2.2

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

Deprecated: Use QueryAccountInfoRequest.ProtoReflect.Descriptor instead.

func (*QueryAccountInfoRequest) GetAddress added in v0.2.2

func (x *QueryAccountInfoRequest) GetAddress() string

func (*QueryAccountInfoRequest) ProtoMessage added in v0.2.2

func (*QueryAccountInfoRequest) ProtoMessage()

func (*QueryAccountInfoRequest) ProtoReflect added in v0.2.2

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

func (*QueryAccountInfoRequest) Reset added in v0.2.2

func (x *QueryAccountInfoRequest) Reset()

func (*QueryAccountInfoRequest) String added in v0.2.2

func (x *QueryAccountInfoRequest) String() string

type QueryAccountInfoResponse added in v0.2.2

type QueryAccountInfoResponse struct {

	// info is the account info which is represented by BaseAccount.
	Info *BaseAccount `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"`
	// contains filtered or unexported fields
}

QueryAccountInfoResponse is the Query/AccountInfo response type.

Since: cosmos-sdk 0.47

func (*QueryAccountInfoResponse) Descriptor deprecated added in v0.2.2

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

Deprecated: Use QueryAccountInfoResponse.ProtoReflect.Descriptor instead.

func (*QueryAccountInfoResponse) GetInfo added in v0.2.2

func (x *QueryAccountInfoResponse) GetInfo() *BaseAccount

func (*QueryAccountInfoResponse) ProtoMessage added in v0.2.2

func (*QueryAccountInfoResponse) ProtoMessage()

func (*QueryAccountInfoResponse) ProtoReflect added in v0.2.2

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

func (*QueryAccountInfoResponse) Reset added in v0.2.2

func (x *QueryAccountInfoResponse) Reset()

func (*QueryAccountInfoResponse) String added in v0.2.2

func (x *QueryAccountInfoResponse) String() string

type QueryAccountRequest

type QueryAccountRequest struct {

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

QueryAccountRequest is the request type for the Query/Account RPC method.

func (*QueryAccountRequest) Descriptor deprecated

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

Deprecated: Use QueryAccountRequest.ProtoReflect.Descriptor instead.

func (*QueryAccountRequest) GetAddress

func (x *QueryAccountRequest) GetAddress() string

func (*QueryAccountRequest) ProtoMessage

func (*QueryAccountRequest) ProtoMessage()

func (*QueryAccountRequest) ProtoReflect

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

func (*QueryAccountRequest) Reset

func (x *QueryAccountRequest) Reset()

func (*QueryAccountRequest) String

func (x *QueryAccountRequest) String() string

type QueryAccountResponse

type QueryAccountResponse struct {

	// account defines the account of the corresponding address.
	Account *anypb.Any `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
	// contains filtered or unexported fields
}

QueryAccountResponse is the response type for the Query/Account RPC method.

func (*QueryAccountResponse) Descriptor deprecated

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

Deprecated: Use QueryAccountResponse.ProtoReflect.Descriptor instead.

func (*QueryAccountResponse) GetAccount

func (x *QueryAccountResponse) GetAccount() *anypb.Any

func (*QueryAccountResponse) ProtoMessage

func (*QueryAccountResponse) ProtoMessage()

func (*QueryAccountResponse) ProtoReflect

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

func (*QueryAccountResponse) Reset

func (x *QueryAccountResponse) Reset()

func (*QueryAccountResponse) String

func (x *QueryAccountResponse) String() string

type QueryAccountsRequest

type QueryAccountsRequest struct {

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

QueryAccountsRequest is the request type for the Query/Accounts RPC method.

Since: cosmos-sdk 0.43

func (*QueryAccountsRequest) Descriptor deprecated

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

Deprecated: Use QueryAccountsRequest.ProtoReflect.Descriptor instead.

func (*QueryAccountsRequest) GetPagination

func (x *QueryAccountsRequest) GetPagination() *v1beta1.PageRequest

func (*QueryAccountsRequest) ProtoMessage

func (*QueryAccountsRequest) ProtoMessage()

func (*QueryAccountsRequest) ProtoReflect

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

func (*QueryAccountsRequest) Reset

func (x *QueryAccountsRequest) Reset()

func (*QueryAccountsRequest) String

func (x *QueryAccountsRequest) String() string

type QueryAccountsResponse

type QueryAccountsResponse struct {

	// accounts are the existing accounts
	Accounts []*anypb.Any `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"`
	// pagination defines the pagination in the response.
	Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryAccountsResponse is the response type for the Query/Accounts RPC method.

Since: cosmos-sdk 0.43

func (*QueryAccountsResponse) Descriptor deprecated

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

Deprecated: Use QueryAccountsResponse.ProtoReflect.Descriptor instead.

func (*QueryAccountsResponse) GetAccounts

func (x *QueryAccountsResponse) GetAccounts() []*anypb.Any

func (*QueryAccountsResponse) GetPagination

func (x *QueryAccountsResponse) GetPagination() *v1beta1.PageResponse

func (*QueryAccountsResponse) ProtoMessage

func (*QueryAccountsResponse) ProtoMessage()

func (*QueryAccountsResponse) ProtoReflect

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

func (*QueryAccountsResponse) Reset

func (x *QueryAccountsResponse) Reset()

func (*QueryAccountsResponse) String

func (x *QueryAccountsResponse) String() string

type QueryClient

type QueryClient interface {
	// Accounts returns all the existing accounts.
	//
	// 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.43
	Accounts(ctx context.Context, in *QueryAccountsRequest, opts ...grpc.CallOption) (*QueryAccountsResponse, error)
	// Account returns account details based on address.
	Account(ctx context.Context, in *QueryAccountRequest, opts ...grpc.CallOption) (*QueryAccountResponse, error)
	// AccountAddressByID returns account address based on account number.
	//
	// Since: cosmos-sdk 0.46.2
	AccountAddressByID(ctx context.Context, in *QueryAccountAddressByIDRequest, opts ...grpc.CallOption) (*QueryAccountAddressByIDResponse, error)
	// Params queries all parameters.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// ModuleAccounts returns all the existing module accounts.
	//
	// Since: cosmos-sdk 0.46
	ModuleAccounts(ctx context.Context, in *QueryModuleAccountsRequest, opts ...grpc.CallOption) (*QueryModuleAccountsResponse, error)
	// ModuleAccountByName returns the module account info by module name
	ModuleAccountByName(ctx context.Context, in *QueryModuleAccountByNameRequest, opts ...grpc.CallOption) (*QueryModuleAccountByNameResponse, error)
	// Bech32Prefix queries bech32Prefix
	//
	// Since: cosmos-sdk 0.46
	Bech32Prefix(ctx context.Context, in *Bech32PrefixRequest, opts ...grpc.CallOption) (*Bech32PrefixResponse, error)
	// AddressBytesToString converts Account Address bytes to string
	//
	// Since: cosmos-sdk 0.46
	AddressBytesToString(ctx context.Context, in *AddressBytesToStringRequest, opts ...grpc.CallOption) (*AddressBytesToStringResponse, error)
	// AddressStringToBytes converts Address string to bytes
	//
	// Since: cosmos-sdk 0.46
	AddressStringToBytes(ctx context.Context, in *AddressStringToBytesRequest, opts ...grpc.CallOption) (*AddressStringToBytesResponse, error)
	// AccountInfo queries account info which is common to all account types.
	//
	// Since: cosmos-sdk 0.47
	AccountInfo(ctx context.Context, in *QueryAccountInfoRequest, opts ...grpc.CallOption) (*QueryAccountInfoResponse, 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 QueryModuleAccountByNameRequest added in v0.2.2

type QueryModuleAccountByNameRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

QueryModuleAccountByNameRequest is the request type for the Query/ModuleAccountByName RPC method.

func (*QueryModuleAccountByNameRequest) Descriptor deprecated added in v0.2.2

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

Deprecated: Use QueryModuleAccountByNameRequest.ProtoReflect.Descriptor instead.

func (*QueryModuleAccountByNameRequest) GetName added in v0.2.2

func (*QueryModuleAccountByNameRequest) ProtoMessage added in v0.2.2

func (*QueryModuleAccountByNameRequest) ProtoMessage()

func (*QueryModuleAccountByNameRequest) ProtoReflect added in v0.2.2

func (*QueryModuleAccountByNameRequest) Reset added in v0.2.2

func (*QueryModuleAccountByNameRequest) String added in v0.2.2

type QueryModuleAccountByNameResponse added in v0.2.2

type QueryModuleAccountByNameResponse struct {
	Account *anypb.Any `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
	// contains filtered or unexported fields
}

QueryModuleAccountByNameResponse is the response type for the Query/ModuleAccountByName RPC method.

func (*QueryModuleAccountByNameResponse) Descriptor deprecated added in v0.2.2

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

Deprecated: Use QueryModuleAccountByNameResponse.ProtoReflect.Descriptor instead.

func (*QueryModuleAccountByNameResponse) GetAccount added in v0.2.2

func (x *QueryModuleAccountByNameResponse) GetAccount() *anypb.Any

func (*QueryModuleAccountByNameResponse) ProtoMessage added in v0.2.2

func (*QueryModuleAccountByNameResponse) ProtoMessage()

func (*QueryModuleAccountByNameResponse) ProtoReflect added in v0.2.2

func (*QueryModuleAccountByNameResponse) Reset added in v0.2.2

func (*QueryModuleAccountByNameResponse) String added in v0.2.2

type QueryModuleAccountsRequest

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

QueryModuleAccountsRequest is the request type for the Query/ModuleAccounts RPC method.

Since: cosmos-sdk 0.46

func (*QueryModuleAccountsRequest) Descriptor deprecated

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

Deprecated: Use QueryModuleAccountsRequest.ProtoReflect.Descriptor instead.

func (*QueryModuleAccountsRequest) ProtoMessage

func (*QueryModuleAccountsRequest) ProtoMessage()

func (*QueryModuleAccountsRequest) ProtoReflect

func (*QueryModuleAccountsRequest) Reset

func (x *QueryModuleAccountsRequest) Reset()

func (*QueryModuleAccountsRequest) String

func (x *QueryModuleAccountsRequest) String() string

type QueryModuleAccountsResponse

type QueryModuleAccountsResponse struct {
	Accounts []*anypb.Any `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"`
	// contains filtered or unexported fields
}

QueryModuleAccountsResponse is the response type for the Query/ModuleAccounts RPC method.

Since: cosmos-sdk 0.46

func (*QueryModuleAccountsResponse) Descriptor deprecated

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

Deprecated: Use QueryModuleAccountsResponse.ProtoReflect.Descriptor instead.

func (*QueryModuleAccountsResponse) GetAccounts

func (x *QueryModuleAccountsResponse) GetAccounts() []*anypb.Any

func (*QueryModuleAccountsResponse) ProtoMessage

func (*QueryModuleAccountsResponse) ProtoMessage()

func (*QueryModuleAccountsResponse) ProtoReflect

func (*QueryModuleAccountsResponse) Reset

func (x *QueryModuleAccountsResponse) Reset()

func (*QueryModuleAccountsResponse) String

func (x *QueryModuleAccountsResponse) String() string

type QueryParamsRequest

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

QueryParamsRequest is the request type for the Query/Params RPC method.

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 defines the parameters of the module.
	Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
	// contains filtered or unexported fields
}

QueryParamsResponse is the response type for the Query/Params RPC method.

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 QueryServer

type QueryServer interface {
	// Accounts returns all the existing accounts.
	//
	// 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.43
	Accounts(context.Context, *QueryAccountsRequest) (*QueryAccountsResponse, error)
	// Account returns account details based on address.
	Account(context.Context, *QueryAccountRequest) (*QueryAccountResponse, error)
	// AccountAddressByID returns account address based on account number.
	//
	// Since: cosmos-sdk 0.46.2
	AccountAddressByID(context.Context, *QueryAccountAddressByIDRequest) (*QueryAccountAddressByIDResponse, error)
	// Params queries all parameters.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// ModuleAccounts returns all the existing module accounts.
	//
	// Since: cosmos-sdk 0.46
	ModuleAccounts(context.Context, *QueryModuleAccountsRequest) (*QueryModuleAccountsResponse, error)
	// ModuleAccountByName returns the module account info by module name
	ModuleAccountByName(context.Context, *QueryModuleAccountByNameRequest) (*QueryModuleAccountByNameResponse, error)
	// Bech32Prefix queries bech32Prefix
	//
	// Since: cosmos-sdk 0.46
	Bech32Prefix(context.Context, *Bech32PrefixRequest) (*Bech32PrefixResponse, error)
	// AddressBytesToString converts Account Address bytes to string
	//
	// Since: cosmos-sdk 0.46
	AddressBytesToString(context.Context, *AddressBytesToStringRequest) (*AddressBytesToStringResponse, error)
	// AddressStringToBytes converts Address string to bytes
	//
	// Since: cosmos-sdk 0.46
	AddressStringToBytes(context.Context, *AddressStringToBytesRequest) (*AddressStringToBytesResponse, error)
	// AccountInfo queries account info which is common to all account types.
	//
	// Since: cosmos-sdk 0.47
	AccountInfo(context.Context, *QueryAccountInfoRequest) (*QueryAccountInfoResponse, error)
	// contains filtered or unexported methods
}

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer must be embedded to have forward compatible implementations.

func (UnimplementedMsgServer) UpdateParams

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer must be embedded to have forward compatible implementations.

func (UnimplementedQueryServer) Account

func (UnimplementedQueryServer) AccountAddressByID

func (UnimplementedQueryServer) AccountInfo added in v0.2.2

func (UnimplementedQueryServer) Accounts

func (UnimplementedQueryServer) AddressBytesToString

func (UnimplementedQueryServer) AddressStringToBytes

func (UnimplementedQueryServer) Bech32Prefix

func (UnimplementedQueryServer) ModuleAccountByName added in v0.2.2

func (UnimplementedQueryServer) ModuleAccounts

func (UnimplementedQueryServer) Params

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