Documentation ¶
Overview ¶
NOTE: Usage of x/params to manage parameters is deprecated in favor of x/gov controlled execution of MsgUpdateParams messages. These types remains solely for migration purposes and will be removed in a future release.
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func NewModuleAddress(name string) sdk.AccAddress
- func NewModuleAddressOrBech32Address(input string) sdk.AccAddress
- func PackAccounts(accounts GenesisAccounts) ([]*types.Any, error)
- func ParamKeyTable() paramtypes.KeyTabledeprecated
- func ProtoBaseAccount() sdk.AccountI
- func RegisterInterfaces(registry types.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- func ValidateGenAccounts(accounts GenesisAccounts) error
- func ValidateGenesis(data GenesisState) error
- type AccountIdeprecated
- type AccountRetriever
- func (ar AccountRetriever) EnsureExists(clientCtx client.Context, addr sdk.AccAddress) error
- func (ar AccountRetriever) GetAccount(clientCtx client.Context, addr sdk.AccAddress) (client.Account, error)
- func (ar AccountRetriever) GetAccountNumberSequence(clientCtx client.Context, addr sdk.AccAddress) (uint64, uint64, error)
- func (ar AccountRetriever) GetAccountWithHeight(clientCtx client.Context, addr sdk.AccAddress) (client.Account, int64, error)
- type AddressBytesToStringRequest
- func (*AddressBytesToStringRequest) Descriptor() ([]byte, []int)
- func (m *AddressBytesToStringRequest) GetAddressBytes() []byte
- func (m *AddressBytesToStringRequest) Marshal() (dAtA []byte, err error)
- func (m *AddressBytesToStringRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *AddressBytesToStringRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AddressBytesToStringRequest) ProtoMessage()
- func (m *AddressBytesToStringRequest) Reset()
- func (m *AddressBytesToStringRequest) Size() (n int)
- func (m *AddressBytesToStringRequest) String() string
- func (m *AddressBytesToStringRequest) Unmarshal(dAtA []byte) error
- func (m *AddressBytesToStringRequest) XXX_DiscardUnknown()
- func (m *AddressBytesToStringRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AddressBytesToStringRequest) XXX_Merge(src proto.Message)
- func (m *AddressBytesToStringRequest) XXX_Size() int
- func (m *AddressBytesToStringRequest) XXX_Unmarshal(b []byte) error
- type AddressBytesToStringResponse
- func (*AddressBytesToStringResponse) Descriptor() ([]byte, []int)
- func (m *AddressBytesToStringResponse) GetAddressString() string
- func (m *AddressBytesToStringResponse) Marshal() (dAtA []byte, err error)
- func (m *AddressBytesToStringResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *AddressBytesToStringResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AddressBytesToStringResponse) ProtoMessage()
- func (m *AddressBytesToStringResponse) Reset()
- func (m *AddressBytesToStringResponse) Size() (n int)
- func (m *AddressBytesToStringResponse) String() string
- func (m *AddressBytesToStringResponse) Unmarshal(dAtA []byte) error
- func (m *AddressBytesToStringResponse) XXX_DiscardUnknown()
- func (m *AddressBytesToStringResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AddressBytesToStringResponse) XXX_Merge(src proto.Message)
- func (m *AddressBytesToStringResponse) XXX_Size() int
- func (m *AddressBytesToStringResponse) XXX_Unmarshal(b []byte) error
- type AddressStringToBytesRequest
- func (*AddressStringToBytesRequest) Descriptor() ([]byte, []int)
- func (m *AddressStringToBytesRequest) GetAddressString() string
- func (m *AddressStringToBytesRequest) Marshal() (dAtA []byte, err error)
- func (m *AddressStringToBytesRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *AddressStringToBytesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AddressStringToBytesRequest) ProtoMessage()
- func (m *AddressStringToBytesRequest) Reset()
- func (m *AddressStringToBytesRequest) Size() (n int)
- func (m *AddressStringToBytesRequest) String() string
- func (m *AddressStringToBytesRequest) Unmarshal(dAtA []byte) error
- func (m *AddressStringToBytesRequest) XXX_DiscardUnknown()
- func (m *AddressStringToBytesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AddressStringToBytesRequest) XXX_Merge(src proto.Message)
- func (m *AddressStringToBytesRequest) XXX_Size() int
- func (m *AddressStringToBytesRequest) XXX_Unmarshal(b []byte) error
- type AddressStringToBytesResponse
- func (*AddressStringToBytesResponse) Descriptor() ([]byte, []int)
- func (m *AddressStringToBytesResponse) GetAddressBytes() []byte
- func (m *AddressStringToBytesResponse) Marshal() (dAtA []byte, err error)
- func (m *AddressStringToBytesResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *AddressStringToBytesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AddressStringToBytesResponse) ProtoMessage()
- func (m *AddressStringToBytesResponse) Reset()
- func (m *AddressStringToBytesResponse) Size() (n int)
- func (m *AddressStringToBytesResponse) String() string
- func (m *AddressStringToBytesResponse) Unmarshal(dAtA []byte) error
- func (m *AddressStringToBytesResponse) XXX_DiscardUnknown()
- func (m *AddressStringToBytesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AddressStringToBytesResponse) XXX_Merge(src proto.Message)
- func (m *AddressStringToBytesResponse) XXX_Size() int
- func (m *AddressStringToBytesResponse) XXX_Unmarshal(b []byte) error
- type BankKeeper
- type BaseAccount
- func (*BaseAccount) Descriptor() ([]byte, []int)
- func (acc BaseAccount) GetAccountNumber() uint64
- func (acc BaseAccount) GetAddress() sdk.AccAddress
- func (acc BaseAccount) GetPubKey() (pk cryptotypes.PubKey)
- func (acc BaseAccount) GetSequence() uint64
- func (m *BaseAccount) Marshal() (dAtA []byte, err error)
- func (m *BaseAccount) MarshalTo(dAtA []byte) (int, error)
- func (m *BaseAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*BaseAccount) ProtoMessage()
- func (m *BaseAccount) Reset()
- func (acc *BaseAccount) SetAccountNumber(accNumber uint64) error
- func (acc *BaseAccount) SetAddress(addr sdk.AccAddress) error
- func (acc *BaseAccount) SetPubKey(pubKey cryptotypes.PubKey) error
- func (acc *BaseAccount) SetSequence(seq uint64) error
- func (m *BaseAccount) Size() (n int)
- func (m *BaseAccount) String() string
- func (m *BaseAccount) Unmarshal(dAtA []byte) error
- func (acc BaseAccount) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
- func (acc BaseAccount) Validate() error
- func (m *BaseAccount) XXX_DiscardUnknown()
- func (m *BaseAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BaseAccount) XXX_Merge(src proto.Message)
- func (m *BaseAccount) XXX_Size() int
- func (m *BaseAccount) XXX_Unmarshal(b []byte) error
- type Bech32PrefixRequest
- func (*Bech32PrefixRequest) Descriptor() ([]byte, []int)
- func (m *Bech32PrefixRequest) Marshal() (dAtA []byte, err error)
- func (m *Bech32PrefixRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *Bech32PrefixRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Bech32PrefixRequest) ProtoMessage()
- func (m *Bech32PrefixRequest) Reset()
- func (m *Bech32PrefixRequest) Size() (n int)
- func (m *Bech32PrefixRequest) String() string
- func (m *Bech32PrefixRequest) Unmarshal(dAtA []byte) error
- func (m *Bech32PrefixRequest) XXX_DiscardUnknown()
- func (m *Bech32PrefixRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Bech32PrefixRequest) XXX_Merge(src proto.Message)
- func (m *Bech32PrefixRequest) XXX_Size() int
- func (m *Bech32PrefixRequest) XXX_Unmarshal(b []byte) error
- type Bech32PrefixResponse
- func (*Bech32PrefixResponse) Descriptor() ([]byte, []int)
- func (m *Bech32PrefixResponse) GetBech32Prefix() string
- func (m *Bech32PrefixResponse) Marshal() (dAtA []byte, err error)
- func (m *Bech32PrefixResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *Bech32PrefixResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Bech32PrefixResponse) ProtoMessage()
- func (m *Bech32PrefixResponse) Reset()
- func (m *Bech32PrefixResponse) Size() (n int)
- func (m *Bech32PrefixResponse) String() string
- func (m *Bech32PrefixResponse) Unmarshal(dAtA []byte) error
- func (m *Bech32PrefixResponse) XXX_DiscardUnknown()
- func (m *Bech32PrefixResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Bech32PrefixResponse) XXX_Merge(src proto.Message)
- func (m *Bech32PrefixResponse) XXX_Size() int
- func (m *Bech32PrefixResponse) XXX_Unmarshal(b []byte) error
- type GenesisAccount
- type GenesisAccountIterator
- type GenesisAccounts
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetAccounts() []*types.Any
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (g GenesisState) UnpackInterfaces(unpacker types.AnyUnpacker) error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type ModuleAccount
- func (*ModuleAccount) Descriptor() ([]byte, []int)
- func (ma ModuleAccount) GetName() string
- func (ma ModuleAccount) GetPermissions() []string
- func (ma ModuleAccount) HasPermission(permission string) bool
- func (m *ModuleAccount) Marshal() (dAtA []byte, err error)
- func (ma ModuleAccount) MarshalJSON() ([]byte, error)
- func (m *ModuleAccount) MarshalTo(dAtA []byte) (int, error)
- func (m *ModuleAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ModuleAccount) ProtoMessage()
- func (m *ModuleAccount) Reset()
- func (ma ModuleAccount) SetPubKey(pubKey cryptotypes.PubKey) error
- func (m *ModuleAccount) Size() (n int)
- func (m *ModuleAccount) String() string
- func (m *ModuleAccount) Unmarshal(dAtA []byte) error
- func (ma *ModuleAccount) UnmarshalJSON(bz []byte) error
- func (ma ModuleAccount) Validate() error
- func (m *ModuleAccount) XXX_DiscardUnknown()
- func (m *ModuleAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ModuleAccount) XXX_Merge(src proto.Message)
- func (m *ModuleAccount) XXX_Size() int
- func (m *ModuleAccount) XXX_Unmarshal(b []byte) error
- type ModuleAccountIdeprecated
- type ModuleCredential
- func (m *ModuleCredential) Address() cryptotypes.Address
- func (m *ModuleCredential) Bytes() []byte
- func (*ModuleCredential) Descriptor() ([]byte, []int)
- func (m *ModuleCredential) Equals(other cryptotypes.PubKey) bool
- func (m *ModuleCredential) GetDerivationKeys() [][]byte
- func (m *ModuleCredential) GetModuleName() string
- func (m *ModuleCredential) Marshal() (dAtA []byte, err error)
- func (m *ModuleCredential) MarshalTo(dAtA []byte) (int, error)
- func (m *ModuleCredential) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ModuleCredential) ProtoMessage()
- func (m *ModuleCredential) Reset()
- func (m *ModuleCredential) Size() (n int)
- func (m *ModuleCredential) String() string
- func (m *ModuleCredential) Type() string
- func (m *ModuleCredential) Unmarshal(dAtA []byte) error
- func (m *ModuleCredential) VerifySignature(_, _ []byte) bool
- func (m *ModuleCredential) XXX_DiscardUnknown()
- func (m *ModuleCredential) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ModuleCredential) XXX_Merge(src proto.Message)
- func (m *ModuleCredential) XXX_Size() int
- func (m *ModuleCredential) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgServer
- type MsgUpdateParams
- func (*MsgUpdateParams) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParams) GetAuthority() string
- func (m *MsgUpdateParams) GetParams() Params
- func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParams) ProtoMessage()
- func (m *MsgUpdateParams) Reset()
- func (m *MsgUpdateParams) Size() (n int)
- func (m *MsgUpdateParams) String() string
- func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateParams) XXX_DiscardUnknown()
- func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParams) XXX_Size() int
- func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
- type MsgUpdateParamsResponse
- func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParamsResponse) ProtoMessage()
- func (m *MsgUpdateParamsResponse) Reset()
- func (m *MsgUpdateParamsResponse) Size() (n int)
- func (m *MsgUpdateParamsResponse) String() string
- func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParamsResponse) XXX_Size() int
- func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (this *Params) Equal(that interface{}) bool
- func (m *Params) GetMaxMemoCharacters() uint64
- func (m *Params) GetSigVerifyCostED25519() uint64
- func (m *Params) GetSigVerifyCostSecp256k1() uint64
- func (m *Params) GetTxSigLimit() uint64
- func (m *Params) GetTxSizeCostPerByte() uint64
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (p Params) SigVerifyCostSecp256r1() uint64
- func (m *Params) Size() (n int)
- func (m *Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type PermissionsForAddress
- type QueryAccountAddressByIDRequest
- func (*QueryAccountAddressByIDRequest) Descriptor() ([]byte, []int)
- func (m *QueryAccountAddressByIDRequest) GetAccountId() uint64
- func (m *QueryAccountAddressByIDRequest) GetId() int64deprecated
- func (m *QueryAccountAddressByIDRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAccountAddressByIDRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAccountAddressByIDRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAccountAddressByIDRequest) ProtoMessage()
- func (m *QueryAccountAddressByIDRequest) Reset()
- func (m *QueryAccountAddressByIDRequest) Size() (n int)
- func (m *QueryAccountAddressByIDRequest) String() string
- func (m *QueryAccountAddressByIDRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAccountAddressByIDRequest) XXX_DiscardUnknown()
- func (m *QueryAccountAddressByIDRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAccountAddressByIDRequest) XXX_Merge(src proto.Message)
- func (m *QueryAccountAddressByIDRequest) XXX_Size() int
- func (m *QueryAccountAddressByIDRequest) XXX_Unmarshal(b []byte) error
- type QueryAccountAddressByIDResponse
- func (*QueryAccountAddressByIDResponse) Descriptor() ([]byte, []int)
- func (m *QueryAccountAddressByIDResponse) GetAccountAddress() string
- func (m *QueryAccountAddressByIDResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAccountAddressByIDResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAccountAddressByIDResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAccountAddressByIDResponse) ProtoMessage()
- func (m *QueryAccountAddressByIDResponse) Reset()
- func (m *QueryAccountAddressByIDResponse) Size() (n int)
- func (m *QueryAccountAddressByIDResponse) String() string
- func (m *QueryAccountAddressByIDResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAccountAddressByIDResponse) XXX_DiscardUnknown()
- func (m *QueryAccountAddressByIDResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAccountAddressByIDResponse) XXX_Merge(src proto.Message)
- func (m *QueryAccountAddressByIDResponse) XXX_Size() int
- func (m *QueryAccountAddressByIDResponse) XXX_Unmarshal(b []byte) error
- type QueryAccountInfoRequest
- func (*QueryAccountInfoRequest) Descriptor() ([]byte, []int)
- func (m *QueryAccountInfoRequest) GetAddress() string
- func (m *QueryAccountInfoRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAccountInfoRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAccountInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAccountInfoRequest) ProtoMessage()
- func (m *QueryAccountInfoRequest) Reset()
- func (m *QueryAccountInfoRequest) Size() (n int)
- func (m *QueryAccountInfoRequest) String() string
- func (m *QueryAccountInfoRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAccountInfoRequest) XXX_DiscardUnknown()
- func (m *QueryAccountInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAccountInfoRequest) XXX_Merge(src proto.Message)
- func (m *QueryAccountInfoRequest) XXX_Size() int
- func (m *QueryAccountInfoRequest) XXX_Unmarshal(b []byte) error
- type QueryAccountInfoResponse
- func (*QueryAccountInfoResponse) Descriptor() ([]byte, []int)
- func (m *QueryAccountInfoResponse) GetInfo() *BaseAccount
- func (m *QueryAccountInfoResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAccountInfoResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAccountInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAccountInfoResponse) ProtoMessage()
- func (m *QueryAccountInfoResponse) Reset()
- func (m *QueryAccountInfoResponse) Size() (n int)
- func (m *QueryAccountInfoResponse) String() string
- func (m *QueryAccountInfoResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAccountInfoResponse) XXX_DiscardUnknown()
- func (m *QueryAccountInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAccountInfoResponse) XXX_Merge(src proto.Message)
- func (m *QueryAccountInfoResponse) XXX_Size() int
- func (m *QueryAccountInfoResponse) XXX_Unmarshal(b []byte) error
- type QueryAccountRequest
- func (*QueryAccountRequest) Descriptor() ([]byte, []int)
- func (m *QueryAccountRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAccountRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAccountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAccountRequest) ProtoMessage()
- func (m *QueryAccountRequest) Reset()
- func (m *QueryAccountRequest) Size() (n int)
- func (m *QueryAccountRequest) String() string
- func (m *QueryAccountRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAccountRequest) XXX_DiscardUnknown()
- func (m *QueryAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAccountRequest) XXX_Merge(src proto.Message)
- func (m *QueryAccountRequest) XXX_Size() int
- func (m *QueryAccountRequest) XXX_Unmarshal(b []byte) error
- type QueryAccountResponse
- func (*QueryAccountResponse) Descriptor() ([]byte, []int)
- func (m *QueryAccountResponse) GetAccount() *types.Any
- func (m *QueryAccountResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAccountResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAccountResponse) ProtoMessage()
- func (m *QueryAccountResponse) Reset()
- func (m *QueryAccountResponse) Size() (n int)
- func (m *QueryAccountResponse) String() string
- func (m *QueryAccountResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAccountResponse) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
- func (m *QueryAccountResponse) XXX_DiscardUnknown()
- func (m *QueryAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAccountResponse) XXX_Merge(src proto.Message)
- func (m *QueryAccountResponse) XXX_Size() int
- func (m *QueryAccountResponse) XXX_Unmarshal(b []byte) error
- type QueryAccountsRequest
- func (*QueryAccountsRequest) Descriptor() ([]byte, []int)
- func (m *QueryAccountsRequest) GetPagination() *query.PageRequest
- func (m *QueryAccountsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAccountsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAccountsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAccountsRequest) ProtoMessage()
- func (m *QueryAccountsRequest) Reset()
- func (m *QueryAccountsRequest) Size() (n int)
- func (m *QueryAccountsRequest) String() string
- func (m *QueryAccountsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAccountsRequest) XXX_DiscardUnknown()
- func (m *QueryAccountsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAccountsRequest) XXX_Merge(src proto.Message)
- func (m *QueryAccountsRequest) XXX_Size() int
- func (m *QueryAccountsRequest) XXX_Unmarshal(b []byte) error
- type QueryAccountsResponse
- func (*QueryAccountsResponse) Descriptor() ([]byte, []int)
- func (m *QueryAccountsResponse) GetAccounts() []*types.Any
- func (m *QueryAccountsResponse) GetPagination() *query.PageResponse
- func (m *QueryAccountsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAccountsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAccountsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAccountsResponse) ProtoMessage()
- func (m *QueryAccountsResponse) Reset()
- func (m *QueryAccountsResponse) Size() (n int)
- func (m *QueryAccountsResponse) String() string
- func (m *QueryAccountsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAccountsResponse) XXX_DiscardUnknown()
- func (m *QueryAccountsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAccountsResponse) XXX_Merge(src proto.Message)
- func (m *QueryAccountsResponse) XXX_Size() int
- func (m *QueryAccountsResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryModuleAccountByNameRequest
- func (*QueryModuleAccountByNameRequest) Descriptor() ([]byte, []int)
- func (m *QueryModuleAccountByNameRequest) GetName() string
- func (m *QueryModuleAccountByNameRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryModuleAccountByNameRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryModuleAccountByNameRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryModuleAccountByNameRequest) ProtoMessage()
- func (m *QueryModuleAccountByNameRequest) Reset()
- func (m *QueryModuleAccountByNameRequest) Size() (n int)
- func (m *QueryModuleAccountByNameRequest) String() string
- func (m *QueryModuleAccountByNameRequest) Unmarshal(dAtA []byte) error
- func (m *QueryModuleAccountByNameRequest) XXX_DiscardUnknown()
- func (m *QueryModuleAccountByNameRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryModuleAccountByNameRequest) XXX_Merge(src proto.Message)
- func (m *QueryModuleAccountByNameRequest) XXX_Size() int
- func (m *QueryModuleAccountByNameRequest) XXX_Unmarshal(b []byte) error
- type QueryModuleAccountByNameResponse
- func (*QueryModuleAccountByNameResponse) Descriptor() ([]byte, []int)
- func (m *QueryModuleAccountByNameResponse) GetAccount() *types.Any
- func (m *QueryModuleAccountByNameResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryModuleAccountByNameResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryModuleAccountByNameResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryModuleAccountByNameResponse) ProtoMessage()
- func (m *QueryModuleAccountByNameResponse) Reset()
- func (m *QueryModuleAccountByNameResponse) Size() (n int)
- func (m *QueryModuleAccountByNameResponse) String() string
- func (m *QueryModuleAccountByNameResponse) Unmarshal(dAtA []byte) error
- func (m *QueryModuleAccountByNameResponse) XXX_DiscardUnknown()
- func (m *QueryModuleAccountByNameResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryModuleAccountByNameResponse) XXX_Merge(src proto.Message)
- func (m *QueryModuleAccountByNameResponse) XXX_Size() int
- func (m *QueryModuleAccountByNameResponse) XXX_Unmarshal(b []byte) error
- type QueryModuleAccountsRequest
- func (*QueryModuleAccountsRequest) Descriptor() ([]byte, []int)
- func (m *QueryModuleAccountsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryModuleAccountsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryModuleAccountsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryModuleAccountsRequest) ProtoMessage()
- func (m *QueryModuleAccountsRequest) Reset()
- func (m *QueryModuleAccountsRequest) Size() (n int)
- func (m *QueryModuleAccountsRequest) String() string
- func (m *QueryModuleAccountsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryModuleAccountsRequest) XXX_DiscardUnknown()
- func (m *QueryModuleAccountsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryModuleAccountsRequest) XXX_Merge(src proto.Message)
- func (m *QueryModuleAccountsRequest) XXX_Size() int
- func (m *QueryModuleAccountsRequest) XXX_Unmarshal(b []byte) error
- type QueryModuleAccountsResponse
- func (*QueryModuleAccountsResponse) Descriptor() ([]byte, []int)
- func (m *QueryModuleAccountsResponse) GetAccounts() []*types.Any
- func (m *QueryModuleAccountsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryModuleAccountsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryModuleAccountsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryModuleAccountsResponse) ProtoMessage()
- func (m *QueryModuleAccountsResponse) Reset()
- func (m *QueryModuleAccountsResponse) Size() (n int)
- func (m *QueryModuleAccountsResponse) String() string
- func (m *QueryModuleAccountsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryModuleAccountsResponse) XXX_DiscardUnknown()
- func (m *QueryModuleAccountsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryModuleAccountsResponse) XXX_Merge(src proto.Message)
- func (m *QueryModuleAccountsResponse) XXX_Size() int
- func (m *QueryModuleAccountsResponse) XXX_Unmarshal(b []byte) error
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsRequest) ProtoMessage()
- func (m *QueryParamsRequest) Reset()
- func (m *QueryParamsRequest) Size() (n int)
- func (m *QueryParamsRequest) String() string
- func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParamsRequest) XXX_DiscardUnknown()
- func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParamsRequest) XXX_Size() int
- func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) GetParams() Params
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type RandomGenesisAccountsFn
- type UnimplementedMsgServer
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) Account(ctx context.Context, req *QueryAccountRequest) (*QueryAccountResponse, error)
- func (*UnimplementedQueryServer) AccountAddressByID(ctx context.Context, req *QueryAccountAddressByIDRequest) (*QueryAccountAddressByIDResponse, error)
- func (*UnimplementedQueryServer) AccountInfo(ctx context.Context, req *QueryAccountInfoRequest) (*QueryAccountInfoResponse, error)
- func (*UnimplementedQueryServer) Accounts(ctx context.Context, req *QueryAccountsRequest) (*QueryAccountsResponse, error)
- func (*UnimplementedQueryServer) AddressBytesToString(ctx context.Context, req *AddressBytesToStringRequest) (*AddressBytesToStringResponse, error)
- func (*UnimplementedQueryServer) AddressStringToBytes(ctx context.Context, req *AddressStringToBytesRequest) (*AddressStringToBytesResponse, error)
- func (*UnimplementedQueryServer) Bech32Prefix(ctx context.Context, req *Bech32PrefixRequest) (*Bech32PrefixResponse, error)
- func (*UnimplementedQueryServer) ModuleAccountByName(ctx context.Context, req *QueryModuleAccountByNameRequest) (*QueryModuleAccountByNameResponse, error)
- func (*UnimplementedQueryServer) ModuleAccounts(ctx context.Context, req *QueryModuleAccountsRequest) (*QueryModuleAccountsResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
Constants ¶
const ( // module name ModuleName = "auth" // StoreKey is string representation of the store key for auth StoreKey = "acc" // FeeCollectorName the root string for the fee collector account address FeeCollectorName = "fee_collector" )
const ( DefaultMaxMemoCharacters uint64 = 256 DefaultTxSigLimit uint64 = 7 DefaultTxSizeCostPerByte uint64 = 10 DefaultSigVerifyCostED25519 uint64 = 590 DefaultSigVerifyCostSecp256k1 uint64 = 1000 )
Default parameter values
const ( Minter = "minter" Burner = "burner" Staking = "staking" )
permissions
const ( QueryAccount = "account" QueryParams = "params" )
query endpoints supported by the auth Querier
const ModuleCredentialType = "ModuleCredential"
Variables ¶
var ( ErrInvalidLengthAuth = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowAuth = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupAuth = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( // ParamsKey is the prefix for params key ParamsKey = collections.NewPrefix(0) // AddressStoreKeyPrefix prefix for account-by-address store AddressStoreKeyPrefix = collections.NewPrefix(1) // GlobalAccountNumberKey identifies the prefix where the monotonically increasing // account number is stored. GlobalAccountNumberKey = collections.NewPrefix(2) // AccountNumberStoreKeyPrefix prefix for account-by-id store AccountNumberStoreKeyPrefix = collections.NewPrefix("accountNumber") )
var ( KeyMaxMemoCharacters = []byte("MaxMemoCharacters") KeyTxSigLimit = []byte("TxSigLimit") KeyTxSizeCostPerByte = []byte("TxSizeCostPerByte") KeySigVerifyCostED25519 = []byte("SigVerifyCostED25519") KeySigVerifyCostSecp256k1 = []byte("SigVerifyCostSecp256k1") )
Parameter keys
Functions ¶
func NewModuleAddress ¶
func NewModuleAddress(name string) sdk.AccAddress
NewModuleAddress creates an AccAddress from the hash of the module's name
func NewModuleAddressOrBech32Address ¶ added in v0.47.0
func NewModuleAddressOrBech32Address(input string) sdk.AccAddress
NewModuleAddressOrAddress gets an input string and returns an AccAddress. If the input is a valid address, it returns the address. If the input is a module name, it returns the module address.
func PackAccounts ¶ added in v0.40.0
func PackAccounts(accounts GenesisAccounts) ([]*types.Any, error)
PackAccounts converts GenesisAccounts to Any slice
func ParamKeyTable
deprecated
func ParamKeyTable() paramtypes.KeyTable
Deprecated: ParamKeyTable for auth module
func ProtoBaseAccount ¶
ProtoBaseAccount - a prototype function for BaseAccount
func RegisterInterfaces ¶ added in v0.40.0
func RegisterInterfaces(registry types.InterfaceRegistry)
RegisterInterfaces associates protoName with AccountI interface and creates a registry of it's concrete implementations
func RegisterLegacyAminoCodec ¶ added in v0.40.0
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
RegisterLegacyAminoCodec registers the account interfaces and concrete types on the provided LegacyAmino codec. These types are used for Amino JSON serialization
func RegisterMsgServer ¶ added in v0.47.0
func RegisterQueryHandler ¶ added in v0.40.0
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶ added in v0.40.0
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶ added in v0.40.0
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶ added in v0.40.0
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶ added in v0.40.0
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
func ValidateGenAccounts ¶
func ValidateGenAccounts(accounts GenesisAccounts) error
ValidateGenAccounts validates an array of GenesisAccounts and checks for duplicates
func ValidateGenesis ¶
func ValidateGenesis(data GenesisState) error
ValidateGenesis performs basic validation of auth genesis data returning an error for any failed validation criteria.
Types ¶
type AccountI
deprecated
added in
v0.40.0
AccountI is an interface used to store coins at a given address within state. It presumes a notion of sequence numbers for replay protection, a notion of account numbers for replay protection for previously pruned accounts, and a pubkey for authentication purposes.
Many complex conditions can be used in the concrete struct which implements AccountI.
Deprecated: Use `AccountI` from types package instead.
type AccountRetriever ¶
type AccountRetriever struct{}
AccountRetriever defines the properties of a type that can be used to retrieve accounts.
func (AccountRetriever) EnsureExists ¶
func (ar AccountRetriever) EnsureExists(clientCtx client.Context, addr sdk.AccAddress) error
EnsureExists returns an error if no account exists for the given address else nil.
func (AccountRetriever) GetAccount ¶
func (ar AccountRetriever) GetAccount(clientCtx client.Context, addr sdk.AccAddress) (client.Account, error)
GetAccount queries for an account given an address and a block height. An error is returned if the query or decoding fails.
func (AccountRetriever) GetAccountNumberSequence ¶
func (ar AccountRetriever) GetAccountNumberSequence(clientCtx client.Context, addr sdk.AccAddress) (uint64, uint64, error)
GetAccountNumberSequence returns sequence and account number for the given address. It returns an error if the account couldn't be retrieved from the state.
func (AccountRetriever) GetAccountWithHeight ¶
func (ar AccountRetriever) GetAccountWithHeight(clientCtx client.Context, addr sdk.AccAddress) (client.Account, int64, error)
GetAccountWithHeight queries for an account given an address. Returns the height of the query with the account. An error is returned if the query or decoding fails.
type AddressBytesToStringRequest ¶ added in v0.46.0
type AddressBytesToStringRequest struct {
AddressBytes []byte `protobuf:"bytes,1,opt,name=address_bytes,json=addressBytes,proto3" json:"address_bytes,omitempty"`
}
AddressBytesToStringRequest is the request type for AddressString rpc method.
Since: cosmos-sdk 0.46
func (*AddressBytesToStringRequest) Descriptor ¶ added in v0.46.0
func (*AddressBytesToStringRequest) Descriptor() ([]byte, []int)
func (*AddressBytesToStringRequest) GetAddressBytes ¶ added in v0.46.0
func (m *AddressBytesToStringRequest) GetAddressBytes() []byte
func (*AddressBytesToStringRequest) Marshal ¶ added in v0.46.0
func (m *AddressBytesToStringRequest) Marshal() (dAtA []byte, err error)
func (*AddressBytesToStringRequest) MarshalTo ¶ added in v0.46.0
func (m *AddressBytesToStringRequest) MarshalTo(dAtA []byte) (int, error)
func (*AddressBytesToStringRequest) MarshalToSizedBuffer ¶ added in v0.46.0
func (m *AddressBytesToStringRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*AddressBytesToStringRequest) ProtoMessage ¶ added in v0.46.0
func (*AddressBytesToStringRequest) ProtoMessage()
func (*AddressBytesToStringRequest) Reset ¶ added in v0.46.0
func (m *AddressBytesToStringRequest) Reset()
func (*AddressBytesToStringRequest) Size ¶ added in v0.46.0
func (m *AddressBytesToStringRequest) Size() (n int)
func (*AddressBytesToStringRequest) String ¶ added in v0.46.0
func (m *AddressBytesToStringRequest) String() string
func (*AddressBytesToStringRequest) Unmarshal ¶ added in v0.46.0
func (m *AddressBytesToStringRequest) Unmarshal(dAtA []byte) error
func (*AddressBytesToStringRequest) XXX_DiscardUnknown ¶ added in v0.46.0
func (m *AddressBytesToStringRequest) XXX_DiscardUnknown()
func (*AddressBytesToStringRequest) XXX_Marshal ¶ added in v0.46.0
func (m *AddressBytesToStringRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AddressBytesToStringRequest) XXX_Merge ¶ added in v0.46.0
func (m *AddressBytesToStringRequest) XXX_Merge(src proto.Message)
func (*AddressBytesToStringRequest) XXX_Size ¶ added in v0.46.0
func (m *AddressBytesToStringRequest) XXX_Size() int
func (*AddressBytesToStringRequest) XXX_Unmarshal ¶ added in v0.46.0
func (m *AddressBytesToStringRequest) XXX_Unmarshal(b []byte) error
type AddressBytesToStringResponse ¶ added in v0.46.0
type AddressBytesToStringResponse struct {
AddressString string `protobuf:"bytes,1,opt,name=address_string,json=addressString,proto3" json:"address_string,omitempty"`
}
AddressBytesToStringResponse is the response type for AddressString rpc method.
Since: cosmos-sdk 0.46
func (*AddressBytesToStringResponse) Descriptor ¶ added in v0.46.0
func (*AddressBytesToStringResponse) Descriptor() ([]byte, []int)
func (*AddressBytesToStringResponse) GetAddressString ¶ added in v0.46.0
func (m *AddressBytesToStringResponse) GetAddressString() string
func (*AddressBytesToStringResponse) Marshal ¶ added in v0.46.0
func (m *AddressBytesToStringResponse) Marshal() (dAtA []byte, err error)
func (*AddressBytesToStringResponse) MarshalTo ¶ added in v0.46.0
func (m *AddressBytesToStringResponse) MarshalTo(dAtA []byte) (int, error)
func (*AddressBytesToStringResponse) MarshalToSizedBuffer ¶ added in v0.46.0
func (m *AddressBytesToStringResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*AddressBytesToStringResponse) ProtoMessage ¶ added in v0.46.0
func (*AddressBytesToStringResponse) ProtoMessage()
func (*AddressBytesToStringResponse) Reset ¶ added in v0.46.0
func (m *AddressBytesToStringResponse) Reset()
func (*AddressBytesToStringResponse) Size ¶ added in v0.46.0
func (m *AddressBytesToStringResponse) Size() (n int)
func (*AddressBytesToStringResponse) String ¶ added in v0.46.0
func (m *AddressBytesToStringResponse) String() string
func (*AddressBytesToStringResponse) Unmarshal ¶ added in v0.46.0
func (m *AddressBytesToStringResponse) Unmarshal(dAtA []byte) error
func (*AddressBytesToStringResponse) XXX_DiscardUnknown ¶ added in v0.46.0
func (m *AddressBytesToStringResponse) XXX_DiscardUnknown()
func (*AddressBytesToStringResponse) XXX_Marshal ¶ added in v0.46.0
func (m *AddressBytesToStringResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AddressBytesToStringResponse) XXX_Merge ¶ added in v0.46.0
func (m *AddressBytesToStringResponse) XXX_Merge(src proto.Message)
func (*AddressBytesToStringResponse) XXX_Size ¶ added in v0.46.0
func (m *AddressBytesToStringResponse) XXX_Size() int
func (*AddressBytesToStringResponse) XXX_Unmarshal ¶ added in v0.46.0
func (m *AddressBytesToStringResponse) XXX_Unmarshal(b []byte) error
type AddressStringToBytesRequest ¶ added in v0.46.0
type AddressStringToBytesRequest struct {
AddressString string `protobuf:"bytes,1,opt,name=address_string,json=addressString,proto3" json:"address_string,omitempty"`
}
AddressStringToBytesRequest is the request type for AccountBytes rpc method.
Since: cosmos-sdk 0.46
func (*AddressStringToBytesRequest) Descriptor ¶ added in v0.46.0
func (*AddressStringToBytesRequest) Descriptor() ([]byte, []int)
func (*AddressStringToBytesRequest) GetAddressString ¶ added in v0.46.0
func (m *AddressStringToBytesRequest) GetAddressString() string
func (*AddressStringToBytesRequest) Marshal ¶ added in v0.46.0
func (m *AddressStringToBytesRequest) Marshal() (dAtA []byte, err error)
func (*AddressStringToBytesRequest) MarshalTo ¶ added in v0.46.0
func (m *AddressStringToBytesRequest) MarshalTo(dAtA []byte) (int, error)
func (*AddressStringToBytesRequest) MarshalToSizedBuffer ¶ added in v0.46.0
func (m *AddressStringToBytesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*AddressStringToBytesRequest) ProtoMessage ¶ added in v0.46.0
func (*AddressStringToBytesRequest) ProtoMessage()
func (*AddressStringToBytesRequest) Reset ¶ added in v0.46.0
func (m *AddressStringToBytesRequest) Reset()
func (*AddressStringToBytesRequest) Size ¶ added in v0.46.0
func (m *AddressStringToBytesRequest) Size() (n int)
func (*AddressStringToBytesRequest) String ¶ added in v0.46.0
func (m *AddressStringToBytesRequest) String() string
func (*AddressStringToBytesRequest) Unmarshal ¶ added in v0.46.0
func (m *AddressStringToBytesRequest) Unmarshal(dAtA []byte) error
func (*AddressStringToBytesRequest) XXX_DiscardUnknown ¶ added in v0.46.0
func (m *AddressStringToBytesRequest) XXX_DiscardUnknown()
func (*AddressStringToBytesRequest) XXX_Marshal ¶ added in v0.46.0
func (m *AddressStringToBytesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AddressStringToBytesRequest) XXX_Merge ¶ added in v0.46.0
func (m *AddressStringToBytesRequest) XXX_Merge(src proto.Message)
func (*AddressStringToBytesRequest) XXX_Size ¶ added in v0.46.0
func (m *AddressStringToBytesRequest) XXX_Size() int
func (*AddressStringToBytesRequest) XXX_Unmarshal ¶ added in v0.46.0
func (m *AddressStringToBytesRequest) XXX_Unmarshal(b []byte) error
type AddressStringToBytesResponse ¶ added in v0.46.0
type AddressStringToBytesResponse struct {
AddressBytes []byte `protobuf:"bytes,1,opt,name=address_bytes,json=addressBytes,proto3" json:"address_bytes,omitempty"`
}
AddressStringToBytesResponse is the response type for AddressBytes rpc method.
Since: cosmos-sdk 0.46
func (*AddressStringToBytesResponse) Descriptor ¶ added in v0.46.0
func (*AddressStringToBytesResponse) Descriptor() ([]byte, []int)
func (*AddressStringToBytesResponse) GetAddressBytes ¶ added in v0.46.0
func (m *AddressStringToBytesResponse) GetAddressBytes() []byte
func (*AddressStringToBytesResponse) Marshal ¶ added in v0.46.0
func (m *AddressStringToBytesResponse) Marshal() (dAtA []byte, err error)
func (*AddressStringToBytesResponse) MarshalTo ¶ added in v0.46.0
func (m *AddressStringToBytesResponse) MarshalTo(dAtA []byte) (int, error)
func (*AddressStringToBytesResponse) MarshalToSizedBuffer ¶ added in v0.46.0
func (m *AddressStringToBytesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*AddressStringToBytesResponse) ProtoMessage ¶ added in v0.46.0
func (*AddressStringToBytesResponse) ProtoMessage()
func (*AddressStringToBytesResponse) Reset ¶ added in v0.46.0
func (m *AddressStringToBytesResponse) Reset()
func (*AddressStringToBytesResponse) Size ¶ added in v0.46.0
func (m *AddressStringToBytesResponse) Size() (n int)
func (*AddressStringToBytesResponse) String ¶ added in v0.46.0
func (m *AddressStringToBytesResponse) String() string
func (*AddressStringToBytesResponse) Unmarshal ¶ added in v0.46.0
func (m *AddressStringToBytesResponse) Unmarshal(dAtA []byte) error
func (*AddressStringToBytesResponse) XXX_DiscardUnknown ¶ added in v0.46.0
func (m *AddressStringToBytesResponse) XXX_DiscardUnknown()
func (*AddressStringToBytesResponse) XXX_Marshal ¶ added in v0.46.0
func (m *AddressStringToBytesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AddressStringToBytesResponse) XXX_Merge ¶ added in v0.46.0
func (m *AddressStringToBytesResponse) XXX_Merge(src proto.Message)
func (*AddressStringToBytesResponse) XXX_Size ¶ added in v0.46.0
func (m *AddressStringToBytesResponse) XXX_Size() int
func (*AddressStringToBytesResponse) XXX_Unmarshal ¶ added in v0.46.0
func (m *AddressStringToBytesResponse) XXX_Unmarshal(b []byte) error
type BankKeeper ¶
type BankKeeper interface { IsSendEnabledCoins(ctx context.Context, coins ...sdk.Coin) error SendCoins(ctx context.Context, from, to sdk.AccAddress, amt sdk.Coins) error SendCoinsFromAccountToModule(ctx context.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error }
BankKeeper defines the contract needed for supply related APIs (noalias)
type BaseAccount ¶
type BaseAccount struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` PubKey *types.Any `protobuf:"bytes,2,opt,name=pub_key,json=pubKey,proto3" json:"public_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"` }
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 NewBaseAccount ¶
func NewBaseAccount(address sdk.AccAddress, pubKey cryptotypes.PubKey, accountNumber, sequence uint64) *BaseAccount
NewBaseAccount creates a new BaseAccount object.
func NewBaseAccountWithAddress ¶
func NewBaseAccountWithAddress(addr sdk.AccAddress) *BaseAccount
NewBaseAccountWithAddress - returns a new base account with a given address leaving AccountNumber and Sequence to zero.
func NewBaseAccountWithPubKey ¶ added in v0.47.0
func NewBaseAccountWithPubKey(pubkey cryptotypes.PubKey) (*BaseAccount, error)
NewBaseAccountWithPubKey creates an account with an a pubkey.
func (*BaseAccount) Descriptor ¶
func (*BaseAccount) Descriptor() ([]byte, []int)
func (BaseAccount) GetAccountNumber ¶
func (acc BaseAccount) GetAccountNumber() uint64
GetAccountNumber - Implements AccountI
func (BaseAccount) GetAddress ¶
func (acc BaseAccount) GetAddress() sdk.AccAddress
GetAddress - Implements sdk.AccountI.
func (BaseAccount) GetPubKey ¶
func (acc BaseAccount) GetPubKey() (pk cryptotypes.PubKey)
GetPubKey - Implements sdk.AccountI.
func (BaseAccount) GetSequence ¶
func (acc BaseAccount) GetSequence() uint64
GetSequence - Implements sdk.AccountI.
func (*BaseAccount) Marshal ¶
func (m *BaseAccount) Marshal() (dAtA []byte, err error)
func (*BaseAccount) MarshalToSizedBuffer ¶
func (m *BaseAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*BaseAccount) ProtoMessage ¶
func (*BaseAccount) ProtoMessage()
func (*BaseAccount) Reset ¶
func (m *BaseAccount) Reset()
func (*BaseAccount) SetAccountNumber ¶
func (acc *BaseAccount) SetAccountNumber(accNumber uint64) error
SetAccountNumber - Implements AccountI
func (*BaseAccount) SetAddress ¶
func (acc *BaseAccount) SetAddress(addr sdk.AccAddress) error
SetAddress - Implements sdk.AccountI.
func (*BaseAccount) SetPubKey ¶
func (acc *BaseAccount) SetPubKey(pubKey cryptotypes.PubKey) error
SetPubKey - Implements sdk.AccountI.
func (*BaseAccount) SetSequence ¶
func (acc *BaseAccount) SetSequence(seq uint64) error
SetSequence - Implements sdk.AccountI.
func (*BaseAccount) Size ¶
func (m *BaseAccount) Size() (n int)
func (*BaseAccount) String ¶
func (m *BaseAccount) String() string
func (*BaseAccount) Unmarshal ¶
func (m *BaseAccount) Unmarshal(dAtA []byte) error
func (BaseAccount) UnpackInterfaces ¶ added in v0.40.0
func (acc BaseAccount) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces
func (BaseAccount) Validate ¶
func (acc BaseAccount) Validate() error
Validate checks for errors on the account fields
func (*BaseAccount) XXX_DiscardUnknown ¶
func (m *BaseAccount) XXX_DiscardUnknown()
func (*BaseAccount) XXX_Marshal ¶
func (m *BaseAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BaseAccount) XXX_Merge ¶
func (m *BaseAccount) XXX_Merge(src proto.Message)
func (*BaseAccount) XXX_Size ¶
func (m *BaseAccount) XXX_Size() int
func (*BaseAccount) XXX_Unmarshal ¶
func (m *BaseAccount) XXX_Unmarshal(b []byte) error
type Bech32PrefixRequest ¶ added in v0.46.0
type Bech32PrefixRequest struct { }
Bech32PrefixRequest is the request type for Bech32Prefix rpc method.
Since: cosmos-sdk 0.46
func (*Bech32PrefixRequest) Descriptor ¶ added in v0.46.0
func (*Bech32PrefixRequest) Descriptor() ([]byte, []int)
func (*Bech32PrefixRequest) Marshal ¶ added in v0.46.0
func (m *Bech32PrefixRequest) Marshal() (dAtA []byte, err error)
func (*Bech32PrefixRequest) MarshalTo ¶ added in v0.46.0
func (m *Bech32PrefixRequest) MarshalTo(dAtA []byte) (int, error)
func (*Bech32PrefixRequest) MarshalToSizedBuffer ¶ added in v0.46.0
func (m *Bech32PrefixRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Bech32PrefixRequest) ProtoMessage ¶ added in v0.46.0
func (*Bech32PrefixRequest) ProtoMessage()
func (*Bech32PrefixRequest) Reset ¶ added in v0.46.0
func (m *Bech32PrefixRequest) Reset()
func (*Bech32PrefixRequest) Size ¶ added in v0.46.0
func (m *Bech32PrefixRequest) Size() (n int)
func (*Bech32PrefixRequest) String ¶ added in v0.46.0
func (m *Bech32PrefixRequest) String() string
func (*Bech32PrefixRequest) Unmarshal ¶ added in v0.46.0
func (m *Bech32PrefixRequest) Unmarshal(dAtA []byte) error
func (*Bech32PrefixRequest) XXX_DiscardUnknown ¶ added in v0.46.0
func (m *Bech32PrefixRequest) XXX_DiscardUnknown()
func (*Bech32PrefixRequest) XXX_Marshal ¶ added in v0.46.0
func (m *Bech32PrefixRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Bech32PrefixRequest) XXX_Merge ¶ added in v0.46.0
func (m *Bech32PrefixRequest) XXX_Merge(src proto.Message)
func (*Bech32PrefixRequest) XXX_Size ¶ added in v0.46.0
func (m *Bech32PrefixRequest) XXX_Size() int
func (*Bech32PrefixRequest) XXX_Unmarshal ¶ added in v0.46.0
func (m *Bech32PrefixRequest) XXX_Unmarshal(b []byte) error
type Bech32PrefixResponse ¶ added in v0.46.0
type Bech32PrefixResponse struct {
Bech32Prefix string `protobuf:"bytes,1,opt,name=bech32_prefix,json=bech32Prefix,proto3" json:"bech32_prefix,omitempty"`
}
Bech32PrefixResponse is the response type for Bech32Prefix rpc method.
Since: cosmos-sdk 0.46
func (*Bech32PrefixResponse) Descriptor ¶ added in v0.46.0
func (*Bech32PrefixResponse) Descriptor() ([]byte, []int)
func (*Bech32PrefixResponse) GetBech32Prefix ¶ added in v0.46.0
func (m *Bech32PrefixResponse) GetBech32Prefix() string
func (*Bech32PrefixResponse) Marshal ¶ added in v0.46.0
func (m *Bech32PrefixResponse) Marshal() (dAtA []byte, err error)
func (*Bech32PrefixResponse) MarshalTo ¶ added in v0.46.0
func (m *Bech32PrefixResponse) MarshalTo(dAtA []byte) (int, error)
func (*Bech32PrefixResponse) MarshalToSizedBuffer ¶ added in v0.46.0
func (m *Bech32PrefixResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Bech32PrefixResponse) ProtoMessage ¶ added in v0.46.0
func (*Bech32PrefixResponse) ProtoMessage()
func (*Bech32PrefixResponse) Reset ¶ added in v0.46.0
func (m *Bech32PrefixResponse) Reset()
func (*Bech32PrefixResponse) Size ¶ added in v0.46.0
func (m *Bech32PrefixResponse) Size() (n int)
func (*Bech32PrefixResponse) String ¶ added in v0.46.0
func (m *Bech32PrefixResponse) String() string
func (*Bech32PrefixResponse) Unmarshal ¶ added in v0.46.0
func (m *Bech32PrefixResponse) Unmarshal(dAtA []byte) error
func (*Bech32PrefixResponse) XXX_DiscardUnknown ¶ added in v0.46.0
func (m *Bech32PrefixResponse) XXX_DiscardUnknown()
func (*Bech32PrefixResponse) XXX_Marshal ¶ added in v0.46.0
func (m *Bech32PrefixResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Bech32PrefixResponse) XXX_Merge ¶ added in v0.46.0
func (m *Bech32PrefixResponse) XXX_Merge(src proto.Message)
func (*Bech32PrefixResponse) XXX_Size ¶ added in v0.46.0
func (m *Bech32PrefixResponse) XXX_Size() int
func (*Bech32PrefixResponse) XXX_Unmarshal ¶ added in v0.46.0
func (m *Bech32PrefixResponse) XXX_Unmarshal(b []byte) error
type GenesisAccount ¶ added in v0.40.0
GenesisAccount defines a genesis account that embeds an AccountI with validation capabilities.
type GenesisAccountIterator ¶
type GenesisAccountIterator struct{}
GenesisAccountIterator implements genesis account iteration.
func (GenesisAccountIterator) IterateGenesisAccounts ¶
func (GenesisAccountIterator) IterateGenesisAccounts( cdc codec.Codec, appGenesis map[string]json.RawMessage, cb func(sdk.AccountI) (stop bool), )
IterateGenesisAccounts iterates over all the genesis accounts found in appGenesis and invokes a callback on each genesis account. If any call returns true, iteration stops.
type GenesisAccounts ¶ added in v0.40.0
type GenesisAccounts []GenesisAccount
GenesisAccounts defines a slice of GenesisAccount objects
func SanitizeGenesisAccounts ¶
func SanitizeGenesisAccounts(genAccs GenesisAccounts) GenesisAccounts
SanitizeGenesisAccounts sorts accounts and coin sets.
func UnpackAccounts ¶ added in v0.40.0
func UnpackAccounts(accountsAny []*types.Any) (GenesisAccounts, error)
UnpackAccounts converts Any slice to GenesisAccounts
type GenesisState ¶
type GenesisState struct { // params defines all the parameters of the module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` // accounts are the accounts present at genesis. Accounts []*types.Any `protobuf:"bytes,2,rep,name=accounts,proto3" json:"accounts,omitempty"` }
GenesisState defines the auth module's genesis state.
func DefaultGenesisState ¶
func DefaultGenesisState() *GenesisState
DefaultGenesisState - Return a default genesis state
func GetGenesisStateFromAppState ¶
func GetGenesisStateFromAppState(cdc codec.Codec, appState map[string]json.RawMessage) GenesisState
GetGenesisStateFromAppState returns x/auth GenesisState given raw application genesis state.
func NewGenesisState ¶
func NewGenesisState(params Params, accounts GenesisAccounts) *GenesisState
NewGenesisState - Create a new genesis state
func (*GenesisState) Descriptor ¶ added in v0.40.0
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetAccounts ¶ added in v0.40.0
func (m *GenesisState) GetAccounts() []*types.Any
func (*GenesisState) GetParams ¶ added in v0.40.0
func (m *GenesisState) GetParams() Params
func (*GenesisState) Marshal ¶ added in v0.40.0
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalTo ¶ added in v0.40.0
func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
func (*GenesisState) MarshalToSizedBuffer ¶ added in v0.40.0
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶ added in v0.40.0
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶ added in v0.40.0
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶ added in v0.40.0
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶ added in v0.40.0
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶ added in v0.40.0
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (GenesisState) UnpackInterfaces ¶ added in v0.40.0
func (g GenesisState) UnpackInterfaces(unpacker types.AnyUnpacker) error
UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces
func (*GenesisState) XXX_DiscardUnknown ¶ added in v0.40.0
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶ added in v0.40.0
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶ added in v0.40.0
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶ added in v0.40.0
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶ added in v0.40.0
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type ModuleAccount ¶
type ModuleAccount struct { *BaseAccount `protobuf:"bytes,1,opt,name=base_account,json=baseAccount,proto3,embedded=base_account" 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"` }
ModuleAccount defines an account for modules that holds coins on a pool.
func NewEmptyModuleAccount ¶
func NewEmptyModuleAccount(name string, permissions ...string) *ModuleAccount
NewEmptyModuleAccount creates a empty ModuleAccount from a string
func NewModuleAccount ¶
func NewModuleAccount(ba *BaseAccount, name string, permissions ...string) *ModuleAccount
NewModuleAccount creates a new ModuleAccount instance
func (*ModuleAccount) Descriptor ¶
func (*ModuleAccount) Descriptor() ([]byte, []int)
func (ModuleAccount) GetName ¶
func (ma ModuleAccount) GetName() string
GetName returns the name of the holder's module
func (ModuleAccount) GetPermissions ¶
func (ma ModuleAccount) GetPermissions() []string
GetPermissions returns permissions granted to the module account
func (ModuleAccount) HasPermission ¶
func (ma ModuleAccount) HasPermission(permission string) bool
HasPermission returns whether or not the module account has permission.
func (*ModuleAccount) Marshal ¶
func (m *ModuleAccount) Marshal() (dAtA []byte, err error)
func (ModuleAccount) MarshalJSON ¶
func (ma ModuleAccount) MarshalJSON() ([]byte, error)
MarshalJSON returns the JSON representation of a ModuleAccount.
func (*ModuleAccount) MarshalToSizedBuffer ¶
func (m *ModuleAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ModuleAccount) ProtoMessage ¶
func (*ModuleAccount) ProtoMessage()
func (*ModuleAccount) Reset ¶
func (m *ModuleAccount) Reset()
func (ModuleAccount) SetPubKey ¶
func (ma ModuleAccount) SetPubKey(pubKey cryptotypes.PubKey) error
SetPubKey - Implements AccountI
func (*ModuleAccount) Size ¶
func (m *ModuleAccount) Size() (n int)
func (*ModuleAccount) String ¶
func (m *ModuleAccount) String() string
func (*ModuleAccount) Unmarshal ¶
func (m *ModuleAccount) Unmarshal(dAtA []byte) error
func (*ModuleAccount) UnmarshalJSON ¶
func (ma *ModuleAccount) UnmarshalJSON(bz []byte) error
UnmarshalJSON unmarshals raw JSON bytes into a ModuleAccount.
func (ModuleAccount) Validate ¶
func (ma ModuleAccount) Validate() error
Validate checks for errors on the account fields
func (*ModuleAccount) XXX_DiscardUnknown ¶
func (m *ModuleAccount) XXX_DiscardUnknown()
func (*ModuleAccount) XXX_Marshal ¶
func (m *ModuleAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ModuleAccount) XXX_Merge ¶
func (m *ModuleAccount) XXX_Merge(src proto.Message)
func (*ModuleAccount) XXX_Size ¶
func (m *ModuleAccount) XXX_Size() int
func (*ModuleAccount) XXX_Unmarshal ¶
func (m *ModuleAccount) XXX_Unmarshal(b []byte) error
type ModuleAccountI
deprecated
added in
v0.40.0
type ModuleAccountI interface { sdk.ModuleAccountI }
ModuleAccountI defines an account interface for modules that hold tokens in an escrow.
Deprecated: Use `ModuleAccountI` from types package instead.
type ModuleCredential ¶ added in v0.47.0
type ModuleCredential struct { // module_name is the name of the module used for address derivation (passed into address.Module). ModuleName string `protobuf:"bytes,1,opt,name=module_name,json=moduleName,proto3" json:"module_name,omitempty"` // derivation_keys is for deriving a module account address (passed into address.Module) // adding more keys creates sub-account addresses (passed into address.Derive) DerivationKeys [][]byte `protobuf:"bytes,2,rep,name=derivation_keys,json=derivationKeys,proto3" json:"derivation_keys,omitempty"` }
ModuleCredential represents a unclaimable pubkey for base accounts controlled by modules.
Since: cosmos-sdk 0.47
func NewModuleCredential ¶ added in v0.47.0
func NewModuleCredential(moduleName string, derivationKeys ...[]byte) (*ModuleCredential, error)
NewModuleCredential creates new module credential key. All derivation keys must be non-empty.
func (*ModuleCredential) Address ¶ added in v0.47.0
func (m *ModuleCredential) Address() cryptotypes.Address
func (*ModuleCredential) Bytes ¶ added in v0.47.0
func (m *ModuleCredential) Bytes() []byte
func (*ModuleCredential) Descriptor ¶ added in v0.47.0
func (*ModuleCredential) Descriptor() ([]byte, []int)
func (*ModuleCredential) Equals ¶ added in v0.47.0
func (m *ModuleCredential) Equals(other cryptotypes.PubKey) bool
func (*ModuleCredential) GetDerivationKeys ¶ added in v0.47.0
func (m *ModuleCredential) GetDerivationKeys() [][]byte
func (*ModuleCredential) GetModuleName ¶ added in v0.47.0
func (m *ModuleCredential) GetModuleName() string
func (*ModuleCredential) Marshal ¶ added in v0.47.0
func (m *ModuleCredential) Marshal() (dAtA []byte, err error)
func (*ModuleCredential) MarshalTo ¶ added in v0.47.0
func (m *ModuleCredential) MarshalTo(dAtA []byte) (int, error)
func (*ModuleCredential) MarshalToSizedBuffer ¶ added in v0.47.0
func (m *ModuleCredential) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ModuleCredential) ProtoMessage ¶ added in v0.47.0
func (*ModuleCredential) ProtoMessage()
func (*ModuleCredential) Reset ¶ added in v0.47.0
func (m *ModuleCredential) Reset()
func (*ModuleCredential) Size ¶ added in v0.47.0
func (m *ModuleCredential) Size() (n int)
func (*ModuleCredential) String ¶ added in v0.47.0
func (m *ModuleCredential) String() string
func (*ModuleCredential) Type ¶ added in v0.47.0
func (m *ModuleCredential) Type() string
func (*ModuleCredential) Unmarshal ¶ added in v0.47.0
func (m *ModuleCredential) Unmarshal(dAtA []byte) error
func (*ModuleCredential) VerifySignature ¶ added in v0.47.0
func (m *ModuleCredential) VerifySignature(_, _ []byte) bool
VerifySignature returns always false, making the account unclaimable
func (*ModuleCredential) XXX_DiscardUnknown ¶ added in v0.47.0
func (m *ModuleCredential) XXX_DiscardUnknown()
func (*ModuleCredential) XXX_Marshal ¶ added in v0.47.0
func (m *ModuleCredential) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ModuleCredential) XXX_Merge ¶ added in v0.47.0
func (m *ModuleCredential) XXX_Merge(src proto.Message)
func (*ModuleCredential) XXX_Size ¶ added in v0.47.0
func (m *ModuleCredential) XXX_Size() int
func (*ModuleCredential) XXX_Unmarshal ¶ added in v0.47.0
func (m *ModuleCredential) XXX_Unmarshal(b []byte) error
type MsgClient ¶ added in v0.47.0
type MsgClient interface { // UpdateParams defines a (governance) operation for updating the x/auth module // parameters. The authority defaults 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://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMsgClient ¶ added in v0.47.0
func NewMsgClient(cc grpc1.ClientConn) MsgClient
type MsgServer ¶ added in v0.47.0
type MsgServer interface { // UpdateParams defines a (governance) operation for updating the x/auth module // parameters. The authority defaults to the x/gov module account. // // Since: cosmos-sdk 0.47 UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) }
MsgServer is the server API for Msg service.
type MsgUpdateParams ¶ added in v0.47.0
type MsgUpdateParams struct { // authority is the address that controls the module (defaults to x/gov unless overwritten). 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"` }
MsgUpdateParams is the Msg/UpdateParams request type.
Since: cosmos-sdk 0.47
func (*MsgUpdateParams) Descriptor ¶ added in v0.47.0
func (*MsgUpdateParams) Descriptor() ([]byte, []int)
func (*MsgUpdateParams) GetAuthority ¶ added in v0.47.0
func (m *MsgUpdateParams) GetAuthority() string
func (*MsgUpdateParams) GetParams ¶ added in v0.47.0
func (m *MsgUpdateParams) GetParams() Params
func (*MsgUpdateParams) Marshal ¶ added in v0.47.0
func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParams) MarshalTo ¶ added in v0.47.0
func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateParams) MarshalToSizedBuffer ¶ added in v0.47.0
func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParams) ProtoMessage ¶ added in v0.47.0
func (*MsgUpdateParams) ProtoMessage()
func (*MsgUpdateParams) Reset ¶ added in v0.47.0
func (m *MsgUpdateParams) Reset()
func (*MsgUpdateParams) Size ¶ added in v0.47.0
func (m *MsgUpdateParams) Size() (n int)
func (*MsgUpdateParams) String ¶ added in v0.47.0
func (m *MsgUpdateParams) String() string
func (*MsgUpdateParams) Unmarshal ¶ added in v0.47.0
func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
func (*MsgUpdateParams) XXX_DiscardUnknown ¶ added in v0.47.0
func (m *MsgUpdateParams) XXX_DiscardUnknown()
func (*MsgUpdateParams) XXX_Marshal ¶ added in v0.47.0
func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParams) XXX_Merge ¶ added in v0.47.0
func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
func (*MsgUpdateParams) XXX_Size ¶ added in v0.47.0
func (m *MsgUpdateParams) XXX_Size() int
func (*MsgUpdateParams) XXX_Unmarshal ¶ added in v0.47.0
func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
type MsgUpdateParamsResponse ¶ added in v0.47.0
type MsgUpdateParamsResponse struct { }
MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.
Since: cosmos-sdk 0.47
func (*MsgUpdateParamsResponse) Descriptor ¶ added in v0.47.0
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateParamsResponse) Marshal ¶ added in v0.47.0
func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParamsResponse) MarshalTo ¶ added in v0.47.0
func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) MarshalToSizedBuffer ¶ added in v0.47.0
func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) ProtoMessage ¶ added in v0.47.0
func (*MsgUpdateParamsResponse) ProtoMessage()
func (*MsgUpdateParamsResponse) Reset ¶ added in v0.47.0
func (m *MsgUpdateParamsResponse) Reset()
func (*MsgUpdateParamsResponse) Size ¶ added in v0.47.0
func (m *MsgUpdateParamsResponse) Size() (n int)
func (*MsgUpdateParamsResponse) String ¶ added in v0.47.0
func (m *MsgUpdateParamsResponse) String() string
func (*MsgUpdateParamsResponse) Unmarshal ¶ added in v0.47.0
func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateParamsResponse) XXX_DiscardUnknown ¶ added in v0.47.0
func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
func (*MsgUpdateParamsResponse) XXX_Marshal ¶ added in v0.47.0
func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParamsResponse) XXX_Merge ¶ added in v0.47.0
func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateParamsResponse) XXX_Size ¶ added in v0.47.0
func (m *MsgUpdateParamsResponse) XXX_Size() int
func (*MsgUpdateParamsResponse) XXX_Unmarshal ¶ added in v0.47.0
func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
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 */ }
Params defines the parameters for the auth module.
func NewParams ¶
func NewParams(maxMemoCharacters, txSigLimit, txSizeCostPerByte, sigVerifyCostED25519, sigVerifyCostSecp256k1 uint64) Params
NewParams creates a new Params object
func (*Params) Descriptor ¶
func (*Params) GetMaxMemoCharacters ¶
func (*Params) GetSigVerifyCostED25519 ¶
func (*Params) GetSigVerifyCostSecp256k1 ¶
func (*Params) GetTxSigLimit ¶
func (*Params) GetTxSizeCostPerByte ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs implements the ParamSet interface and returns all the key/value pairs pairs of auth module's parameters.
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (Params) SigVerifyCostSecp256r1 ¶ added in v0.43.0
SigVerifyCostSecp256r1 returns gas fee of secp256r1 signature verification. Set by benchmarking current implementation:
BenchmarkSig/secp256k1 4334 277167 ns/op 4128 B/op 79 allocs/op BenchmarkSig/secp256r1 10000 108769 ns/op 1672 B/op 33 allocs/op
Based on the results above secp256k1 is 2.7x is slwer. However we propose to discount it because we are we don't compare the cgo implementation of secp256k1, which is faster.
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type PermissionsForAddress ¶
type PermissionsForAddress struct {
// contains filtered or unexported fields
}
PermissionsForAddress defines all the registered permissions for an address
func NewPermissionsForAddress ¶
func NewPermissionsForAddress(name string, permissions []string) PermissionsForAddress
NewPermissionsForAddress creates a new PermissionsForAddress object
func (PermissionsForAddress) GetAddress ¶
func (pa PermissionsForAddress) GetAddress() sdk.AccAddress
GetAddress returns the address of the PermissionsForAddress object
func (PermissionsForAddress) GetPermissions ¶
func (pa PermissionsForAddress) GetPermissions() []string
GetPermissions returns the permissions granted to the address
func (PermissionsForAddress) HasPermission ¶
func (pa PermissionsForAddress) HasPermission(permission string) bool
HasPermission returns whether the PermissionsForAddress contains permission.
type QueryAccountAddressByIDRequest ¶ added in v0.46.0
type QueryAccountAddressByIDRequest struct { // Deprecated, use account_id instead // // 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"` // Deprecated: Do not use. // account_id is the account number of the address to be queried. // // Since: cosmos-sdk 0.47 AccountId uint64 `protobuf:"varint,2,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` }
QueryAccountAddressByIDRequest is the request type for AccountAddressByID rpc method
Since: cosmos-sdk 0.46.2
func (*QueryAccountAddressByIDRequest) Descriptor ¶ added in v0.46.0
func (*QueryAccountAddressByIDRequest) Descriptor() ([]byte, []int)
func (*QueryAccountAddressByIDRequest) GetAccountId ¶ added in v0.47.0
func (m *QueryAccountAddressByIDRequest) GetAccountId() uint64
func (*QueryAccountAddressByIDRequest) GetId
deprecated
added in
v0.46.0
func (m *QueryAccountAddressByIDRequest) GetId() int64
Deprecated: Do not use.
func (*QueryAccountAddressByIDRequest) Marshal ¶ added in v0.46.0
func (m *QueryAccountAddressByIDRequest) Marshal() (dAtA []byte, err error)
func (*QueryAccountAddressByIDRequest) MarshalTo ¶ added in v0.46.0
func (m *QueryAccountAddressByIDRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAccountAddressByIDRequest) MarshalToSizedBuffer ¶ added in v0.46.0
func (m *QueryAccountAddressByIDRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAccountAddressByIDRequest) ProtoMessage ¶ added in v0.46.0
func (*QueryAccountAddressByIDRequest) ProtoMessage()
func (*QueryAccountAddressByIDRequest) Reset ¶ added in v0.46.0
func (m *QueryAccountAddressByIDRequest) Reset()
func (*QueryAccountAddressByIDRequest) Size ¶ added in v0.46.0
func (m *QueryAccountAddressByIDRequest) Size() (n int)
func (*QueryAccountAddressByIDRequest) String ¶ added in v0.46.0
func (m *QueryAccountAddressByIDRequest) String() string
func (*QueryAccountAddressByIDRequest) Unmarshal ¶ added in v0.46.0
func (m *QueryAccountAddressByIDRequest) Unmarshal(dAtA []byte) error
func (*QueryAccountAddressByIDRequest) XXX_DiscardUnknown ¶ added in v0.46.0
func (m *QueryAccountAddressByIDRequest) XXX_DiscardUnknown()
func (*QueryAccountAddressByIDRequest) XXX_Marshal ¶ added in v0.46.0
func (m *QueryAccountAddressByIDRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAccountAddressByIDRequest) XXX_Merge ¶ added in v0.46.0
func (m *QueryAccountAddressByIDRequest) XXX_Merge(src proto.Message)
func (*QueryAccountAddressByIDRequest) XXX_Size ¶ added in v0.46.0
func (m *QueryAccountAddressByIDRequest) XXX_Size() int
func (*QueryAccountAddressByIDRequest) XXX_Unmarshal ¶ added in v0.46.0
func (m *QueryAccountAddressByIDRequest) XXX_Unmarshal(b []byte) error
type QueryAccountAddressByIDResponse ¶ added in v0.46.0
type QueryAccountAddressByIDResponse struct {
AccountAddress string `protobuf:"bytes,1,opt,name=account_address,json=accountAddress,proto3" json:"account_address,omitempty"`
}
QueryAccountAddressByIDResponse is the response type for AccountAddressByID rpc method
Since: cosmos-sdk 0.46.2
func (*QueryAccountAddressByIDResponse) Descriptor ¶ added in v0.46.0
func (*QueryAccountAddressByIDResponse) Descriptor() ([]byte, []int)
func (*QueryAccountAddressByIDResponse) GetAccountAddress ¶ added in v0.46.0
func (m *QueryAccountAddressByIDResponse) GetAccountAddress() string
func (*QueryAccountAddressByIDResponse) Marshal ¶ added in v0.46.0
func (m *QueryAccountAddressByIDResponse) Marshal() (dAtA []byte, err error)
func (*QueryAccountAddressByIDResponse) MarshalTo ¶ added in v0.46.0
func (m *QueryAccountAddressByIDResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAccountAddressByIDResponse) MarshalToSizedBuffer ¶ added in v0.46.0
func (m *QueryAccountAddressByIDResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAccountAddressByIDResponse) ProtoMessage ¶ added in v0.46.0
func (*QueryAccountAddressByIDResponse) ProtoMessage()
func (*QueryAccountAddressByIDResponse) Reset ¶ added in v0.46.0
func (m *QueryAccountAddressByIDResponse) Reset()
func (*QueryAccountAddressByIDResponse) Size ¶ added in v0.46.0
func (m *QueryAccountAddressByIDResponse) Size() (n int)
func (*QueryAccountAddressByIDResponse) String ¶ added in v0.46.0
func (m *QueryAccountAddressByIDResponse) String() string
func (*QueryAccountAddressByIDResponse) Unmarshal ¶ added in v0.46.0
func (m *QueryAccountAddressByIDResponse) Unmarshal(dAtA []byte) error
func (*QueryAccountAddressByIDResponse) XXX_DiscardUnknown ¶ added in v0.46.0
func (m *QueryAccountAddressByIDResponse) XXX_DiscardUnknown()
func (*QueryAccountAddressByIDResponse) XXX_Marshal ¶ added in v0.46.0
func (m *QueryAccountAddressByIDResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAccountAddressByIDResponse) XXX_Merge ¶ added in v0.46.0
func (m *QueryAccountAddressByIDResponse) XXX_Merge(src proto.Message)
func (*QueryAccountAddressByIDResponse) XXX_Size ¶ added in v0.46.0
func (m *QueryAccountAddressByIDResponse) XXX_Size() int
func (*QueryAccountAddressByIDResponse) XXX_Unmarshal ¶ added in v0.46.0
func (m *QueryAccountAddressByIDResponse) XXX_Unmarshal(b []byte) error
type QueryAccountInfoRequest ¶ added in v0.47.0
type QueryAccountInfoRequest struct { // address is the account address string. Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` }
QueryAccountInfoRequest is the Query/AccountInfo request type.
Since: cosmos-sdk 0.47
func (*QueryAccountInfoRequest) Descriptor ¶ added in v0.47.0
func (*QueryAccountInfoRequest) Descriptor() ([]byte, []int)
func (*QueryAccountInfoRequest) GetAddress ¶ added in v0.47.0
func (m *QueryAccountInfoRequest) GetAddress() string
func (*QueryAccountInfoRequest) Marshal ¶ added in v0.47.0
func (m *QueryAccountInfoRequest) Marshal() (dAtA []byte, err error)
func (*QueryAccountInfoRequest) MarshalTo ¶ added in v0.47.0
func (m *QueryAccountInfoRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAccountInfoRequest) MarshalToSizedBuffer ¶ added in v0.47.0
func (m *QueryAccountInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAccountInfoRequest) ProtoMessage ¶ added in v0.47.0
func (*QueryAccountInfoRequest) ProtoMessage()
func (*QueryAccountInfoRequest) Reset ¶ added in v0.47.0
func (m *QueryAccountInfoRequest) Reset()
func (*QueryAccountInfoRequest) Size ¶ added in v0.47.0
func (m *QueryAccountInfoRequest) Size() (n int)
func (*QueryAccountInfoRequest) String ¶ added in v0.47.0
func (m *QueryAccountInfoRequest) String() string
func (*QueryAccountInfoRequest) Unmarshal ¶ added in v0.47.0
func (m *QueryAccountInfoRequest) Unmarshal(dAtA []byte) error
func (*QueryAccountInfoRequest) XXX_DiscardUnknown ¶ added in v0.47.0
func (m *QueryAccountInfoRequest) XXX_DiscardUnknown()
func (*QueryAccountInfoRequest) XXX_Marshal ¶ added in v0.47.0
func (m *QueryAccountInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAccountInfoRequest) XXX_Merge ¶ added in v0.47.0
func (m *QueryAccountInfoRequest) XXX_Merge(src proto.Message)
func (*QueryAccountInfoRequest) XXX_Size ¶ added in v0.47.0
func (m *QueryAccountInfoRequest) XXX_Size() int
func (*QueryAccountInfoRequest) XXX_Unmarshal ¶ added in v0.47.0
func (m *QueryAccountInfoRequest) XXX_Unmarshal(b []byte) error
type QueryAccountInfoResponse ¶ added in v0.47.0
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"` }
QueryAccountInfoResponse is the Query/AccountInfo response type.
Since: cosmos-sdk 0.47
func (*QueryAccountInfoResponse) Descriptor ¶ added in v0.47.0
func (*QueryAccountInfoResponse) Descriptor() ([]byte, []int)
func (*QueryAccountInfoResponse) GetInfo ¶ added in v0.47.0
func (m *QueryAccountInfoResponse) GetInfo() *BaseAccount
func (*QueryAccountInfoResponse) Marshal ¶ added in v0.47.0
func (m *QueryAccountInfoResponse) Marshal() (dAtA []byte, err error)
func (*QueryAccountInfoResponse) MarshalTo ¶ added in v0.47.0
func (m *QueryAccountInfoResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAccountInfoResponse) MarshalToSizedBuffer ¶ added in v0.47.0
func (m *QueryAccountInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAccountInfoResponse) ProtoMessage ¶ added in v0.47.0
func (*QueryAccountInfoResponse) ProtoMessage()
func (*QueryAccountInfoResponse) Reset ¶ added in v0.47.0
func (m *QueryAccountInfoResponse) Reset()
func (*QueryAccountInfoResponse) Size ¶ added in v0.47.0
func (m *QueryAccountInfoResponse) Size() (n int)
func (*QueryAccountInfoResponse) String ¶ added in v0.47.0
func (m *QueryAccountInfoResponse) String() string
func (*QueryAccountInfoResponse) Unmarshal ¶ added in v0.47.0
func (m *QueryAccountInfoResponse) Unmarshal(dAtA []byte) error
func (*QueryAccountInfoResponse) XXX_DiscardUnknown ¶ added in v0.47.0
func (m *QueryAccountInfoResponse) XXX_DiscardUnknown()
func (*QueryAccountInfoResponse) XXX_Marshal ¶ added in v0.47.0
func (m *QueryAccountInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAccountInfoResponse) XXX_Merge ¶ added in v0.47.0
func (m *QueryAccountInfoResponse) XXX_Merge(src proto.Message)
func (*QueryAccountInfoResponse) XXX_Size ¶ added in v0.47.0
func (m *QueryAccountInfoResponse) XXX_Size() int
func (*QueryAccountInfoResponse) XXX_Unmarshal ¶ added in v0.47.0
func (m *QueryAccountInfoResponse) XXX_Unmarshal(b []byte) error
type QueryAccountRequest ¶ added in v0.40.0
type QueryAccountRequest struct { // address defines the address to query for. Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` }
QueryAccountRequest is the request type for the Query/Account RPC method.
func (*QueryAccountRequest) Descriptor ¶ added in v0.40.0
func (*QueryAccountRequest) Descriptor() ([]byte, []int)
func (*QueryAccountRequest) Marshal ¶ added in v0.40.0
func (m *QueryAccountRequest) Marshal() (dAtA []byte, err error)
func (*QueryAccountRequest) MarshalTo ¶ added in v0.40.0
func (m *QueryAccountRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAccountRequest) MarshalToSizedBuffer ¶ added in v0.40.0
func (m *QueryAccountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAccountRequest) ProtoMessage ¶ added in v0.40.0
func (*QueryAccountRequest) ProtoMessage()
func (*QueryAccountRequest) Reset ¶ added in v0.40.0
func (m *QueryAccountRequest) Reset()
func (*QueryAccountRequest) Size ¶ added in v0.40.0
func (m *QueryAccountRequest) Size() (n int)
func (*QueryAccountRequest) String ¶ added in v0.40.0
func (m *QueryAccountRequest) String() string
func (*QueryAccountRequest) Unmarshal ¶ added in v0.40.0
func (m *QueryAccountRequest) Unmarshal(dAtA []byte) error
func (*QueryAccountRequest) XXX_DiscardUnknown ¶ added in v0.40.0
func (m *QueryAccountRequest) XXX_DiscardUnknown()
func (*QueryAccountRequest) XXX_Marshal ¶ added in v0.40.0
func (m *QueryAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAccountRequest) XXX_Merge ¶ added in v0.40.0
func (m *QueryAccountRequest) XXX_Merge(src proto.Message)
func (*QueryAccountRequest) XXX_Size ¶ added in v0.40.0
func (m *QueryAccountRequest) XXX_Size() int
func (*QueryAccountRequest) XXX_Unmarshal ¶ added in v0.40.0
func (m *QueryAccountRequest) XXX_Unmarshal(b []byte) error
type QueryAccountResponse ¶ added in v0.40.0
type QueryAccountResponse struct { // account defines the account of the corresponding address. Account *types.Any `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` }
QueryAccountResponse is the response type for the Query/Account RPC method.
func (*QueryAccountResponse) Descriptor ¶ added in v0.40.0
func (*QueryAccountResponse) Descriptor() ([]byte, []int)
func (*QueryAccountResponse) GetAccount ¶ added in v0.40.0
func (m *QueryAccountResponse) GetAccount() *types.Any
func (*QueryAccountResponse) Marshal ¶ added in v0.40.0
func (m *QueryAccountResponse) Marshal() (dAtA []byte, err error)
func (*QueryAccountResponse) MarshalTo ¶ added in v0.40.0
func (m *QueryAccountResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAccountResponse) MarshalToSizedBuffer ¶ added in v0.40.0
func (m *QueryAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAccountResponse) ProtoMessage ¶ added in v0.40.0
func (*QueryAccountResponse) ProtoMessage()
func (*QueryAccountResponse) Reset ¶ added in v0.40.0
func (m *QueryAccountResponse) Reset()
func (*QueryAccountResponse) Size ¶ added in v0.40.0
func (m *QueryAccountResponse) Size() (n int)
func (*QueryAccountResponse) String ¶ added in v0.40.0
func (m *QueryAccountResponse) String() string
func (*QueryAccountResponse) Unmarshal ¶ added in v0.40.0
func (m *QueryAccountResponse) Unmarshal(dAtA []byte) error
func (*QueryAccountResponse) UnpackInterfaces ¶ added in v0.40.0
func (m *QueryAccountResponse) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
func (*QueryAccountResponse) XXX_DiscardUnknown ¶ added in v0.40.0
func (m *QueryAccountResponse) XXX_DiscardUnknown()
func (*QueryAccountResponse) XXX_Marshal ¶ added in v0.40.0
func (m *QueryAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAccountResponse) XXX_Merge ¶ added in v0.40.0
func (m *QueryAccountResponse) XXX_Merge(src proto.Message)
func (*QueryAccountResponse) XXX_Size ¶ added in v0.40.0
func (m *QueryAccountResponse) XXX_Size() int
func (*QueryAccountResponse) XXX_Unmarshal ¶ added in v0.40.0
func (m *QueryAccountResponse) XXX_Unmarshal(b []byte) error
type QueryAccountsRequest ¶ added in v0.43.0
type QueryAccountsRequest struct { // pagination defines an optional pagination for the request. Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryAccountsRequest is the request type for the Query/Accounts RPC method.
Since: cosmos-sdk 0.43
func (*QueryAccountsRequest) Descriptor ¶ added in v0.43.0
func (*QueryAccountsRequest) Descriptor() ([]byte, []int)
func (*QueryAccountsRequest) GetPagination ¶ added in v0.43.0
func (m *QueryAccountsRequest) GetPagination() *query.PageRequest
func (*QueryAccountsRequest) Marshal ¶ added in v0.43.0
func (m *QueryAccountsRequest) Marshal() (dAtA []byte, err error)
func (*QueryAccountsRequest) MarshalTo ¶ added in v0.43.0
func (m *QueryAccountsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAccountsRequest) MarshalToSizedBuffer ¶ added in v0.43.0
func (m *QueryAccountsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAccountsRequest) ProtoMessage ¶ added in v0.43.0
func (*QueryAccountsRequest) ProtoMessage()
func (*QueryAccountsRequest) Reset ¶ added in v0.43.0
func (m *QueryAccountsRequest) Reset()
func (*QueryAccountsRequest) Size ¶ added in v0.43.0
func (m *QueryAccountsRequest) Size() (n int)
func (*QueryAccountsRequest) String ¶ added in v0.43.0
func (m *QueryAccountsRequest) String() string
func (*QueryAccountsRequest) Unmarshal ¶ added in v0.43.0
func (m *QueryAccountsRequest) Unmarshal(dAtA []byte) error
func (*QueryAccountsRequest) XXX_DiscardUnknown ¶ added in v0.43.0
func (m *QueryAccountsRequest) XXX_DiscardUnknown()
func (*QueryAccountsRequest) XXX_Marshal ¶ added in v0.43.0
func (m *QueryAccountsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAccountsRequest) XXX_Merge ¶ added in v0.43.0
func (m *QueryAccountsRequest) XXX_Merge(src proto.Message)
func (*QueryAccountsRequest) XXX_Size ¶ added in v0.43.0
func (m *QueryAccountsRequest) XXX_Size() int
func (*QueryAccountsRequest) XXX_Unmarshal ¶ added in v0.43.0
func (m *QueryAccountsRequest) XXX_Unmarshal(b []byte) error
type QueryAccountsResponse ¶ added in v0.43.0
type QueryAccountsResponse struct { // accounts are the existing accounts Accounts []*types.Any `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"` // pagination defines the pagination in the response. Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryAccountsResponse is the response type for the Query/Accounts RPC method.
Since: cosmos-sdk 0.43
func (*QueryAccountsResponse) Descriptor ¶ added in v0.43.0
func (*QueryAccountsResponse) Descriptor() ([]byte, []int)
func (*QueryAccountsResponse) GetAccounts ¶ added in v0.43.0
func (m *QueryAccountsResponse) GetAccounts() []*types.Any
func (*QueryAccountsResponse) GetPagination ¶ added in v0.43.0
func (m *QueryAccountsResponse) GetPagination() *query.PageResponse
func (*QueryAccountsResponse) Marshal ¶ added in v0.43.0
func (m *QueryAccountsResponse) Marshal() (dAtA []byte, err error)
func (*QueryAccountsResponse) MarshalTo ¶ added in v0.43.0
func (m *QueryAccountsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAccountsResponse) MarshalToSizedBuffer ¶ added in v0.43.0
func (m *QueryAccountsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAccountsResponse) ProtoMessage ¶ added in v0.43.0
func (*QueryAccountsResponse) ProtoMessage()
func (*QueryAccountsResponse) Reset ¶ added in v0.43.0
func (m *QueryAccountsResponse) Reset()
func (*QueryAccountsResponse) Size ¶ added in v0.43.0
func (m *QueryAccountsResponse) Size() (n int)
func (*QueryAccountsResponse) String ¶ added in v0.43.0
func (m *QueryAccountsResponse) String() string
func (*QueryAccountsResponse) Unmarshal ¶ added in v0.43.0
func (m *QueryAccountsResponse) Unmarshal(dAtA []byte) error
func (*QueryAccountsResponse) XXX_DiscardUnknown ¶ added in v0.43.0
func (m *QueryAccountsResponse) XXX_DiscardUnknown()
func (*QueryAccountsResponse) XXX_Marshal ¶ added in v0.43.0
func (m *QueryAccountsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAccountsResponse) XXX_Merge ¶ added in v0.43.0
func (m *QueryAccountsResponse) XXX_Merge(src proto.Message)
func (*QueryAccountsResponse) XXX_Size ¶ added in v0.43.0
func (m *QueryAccountsResponse) XXX_Size() int
func (*QueryAccountsResponse) XXX_Unmarshal ¶ added in v0.43.0
func (m *QueryAccountsResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶ added in v0.40.0
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://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewQueryClient ¶ added in v0.40.0
func NewQueryClient(cc grpc1.ClientConn) QueryClient
type QueryModuleAccountByNameRequest ¶ added in v0.45.10
type QueryModuleAccountByNameRequest struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
QueryModuleAccountByNameRequest is the request type for the Query/ModuleAccountByName RPC method.
func (*QueryModuleAccountByNameRequest) Descriptor ¶ added in v0.45.10
func (*QueryModuleAccountByNameRequest) Descriptor() ([]byte, []int)
func (*QueryModuleAccountByNameRequest) GetName ¶ added in v0.45.10
func (m *QueryModuleAccountByNameRequest) GetName() string
func (*QueryModuleAccountByNameRequest) Marshal ¶ added in v0.45.10
func (m *QueryModuleAccountByNameRequest) Marshal() (dAtA []byte, err error)
func (*QueryModuleAccountByNameRequest) MarshalTo ¶ added in v0.45.10
func (m *QueryModuleAccountByNameRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryModuleAccountByNameRequest) MarshalToSizedBuffer ¶ added in v0.45.10
func (m *QueryModuleAccountByNameRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryModuleAccountByNameRequest) ProtoMessage ¶ added in v0.45.10
func (*QueryModuleAccountByNameRequest) ProtoMessage()
func (*QueryModuleAccountByNameRequest) Reset ¶ added in v0.45.10
func (m *QueryModuleAccountByNameRequest) Reset()
func (*QueryModuleAccountByNameRequest) Size ¶ added in v0.45.10
func (m *QueryModuleAccountByNameRequest) Size() (n int)
func (*QueryModuleAccountByNameRequest) String ¶ added in v0.45.10
func (m *QueryModuleAccountByNameRequest) String() string
func (*QueryModuleAccountByNameRequest) Unmarshal ¶ added in v0.45.10
func (m *QueryModuleAccountByNameRequest) Unmarshal(dAtA []byte) error
func (*QueryModuleAccountByNameRequest) XXX_DiscardUnknown ¶ added in v0.45.10
func (m *QueryModuleAccountByNameRequest) XXX_DiscardUnknown()
func (*QueryModuleAccountByNameRequest) XXX_Marshal ¶ added in v0.45.10
func (m *QueryModuleAccountByNameRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryModuleAccountByNameRequest) XXX_Merge ¶ added in v0.45.10
func (m *QueryModuleAccountByNameRequest) XXX_Merge(src proto.Message)
func (*QueryModuleAccountByNameRequest) XXX_Size ¶ added in v0.45.10
func (m *QueryModuleAccountByNameRequest) XXX_Size() int
func (*QueryModuleAccountByNameRequest) XXX_Unmarshal ¶ added in v0.45.10
func (m *QueryModuleAccountByNameRequest) XXX_Unmarshal(b []byte) error
type QueryModuleAccountByNameResponse ¶ added in v0.45.10
type QueryModuleAccountByNameResponse struct {
Account *types.Any `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
}
QueryModuleAccountByNameResponse is the response type for the Query/ModuleAccountByName RPC method.
func (*QueryModuleAccountByNameResponse) Descriptor ¶ added in v0.45.10
func (*QueryModuleAccountByNameResponse) Descriptor() ([]byte, []int)
func (*QueryModuleAccountByNameResponse) GetAccount ¶ added in v0.45.10
func (m *QueryModuleAccountByNameResponse) GetAccount() *types.Any
func (*QueryModuleAccountByNameResponse) Marshal ¶ added in v0.45.10
func (m *QueryModuleAccountByNameResponse) Marshal() (dAtA []byte, err error)
func (*QueryModuleAccountByNameResponse) MarshalTo ¶ added in v0.45.10
func (m *QueryModuleAccountByNameResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryModuleAccountByNameResponse) MarshalToSizedBuffer ¶ added in v0.45.10
func (m *QueryModuleAccountByNameResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryModuleAccountByNameResponse) ProtoMessage ¶ added in v0.45.10
func (*QueryModuleAccountByNameResponse) ProtoMessage()
func (*QueryModuleAccountByNameResponse) Reset ¶ added in v0.45.10
func (m *QueryModuleAccountByNameResponse) Reset()
func (*QueryModuleAccountByNameResponse) Size ¶ added in v0.45.10
func (m *QueryModuleAccountByNameResponse) Size() (n int)
func (*QueryModuleAccountByNameResponse) String ¶ added in v0.45.10
func (m *QueryModuleAccountByNameResponse) String() string
func (*QueryModuleAccountByNameResponse) Unmarshal ¶ added in v0.45.10
func (m *QueryModuleAccountByNameResponse) Unmarshal(dAtA []byte) error
func (*QueryModuleAccountByNameResponse) XXX_DiscardUnknown ¶ added in v0.45.10
func (m *QueryModuleAccountByNameResponse) XXX_DiscardUnknown()
func (*QueryModuleAccountByNameResponse) XXX_Marshal ¶ added in v0.45.10
func (m *QueryModuleAccountByNameResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryModuleAccountByNameResponse) XXX_Merge ¶ added in v0.45.10
func (m *QueryModuleAccountByNameResponse) XXX_Merge(src proto.Message)
func (*QueryModuleAccountByNameResponse) XXX_Size ¶ added in v0.45.10
func (m *QueryModuleAccountByNameResponse) XXX_Size() int
func (*QueryModuleAccountByNameResponse) XXX_Unmarshal ¶ added in v0.45.10
func (m *QueryModuleAccountByNameResponse) XXX_Unmarshal(b []byte) error
type QueryModuleAccountsRequest ¶ added in v0.46.0
type QueryModuleAccountsRequest struct { }
QueryModuleAccountsRequest is the request type for the Query/ModuleAccounts RPC method.
Since: cosmos-sdk 0.46
func (*QueryModuleAccountsRequest) Descriptor ¶ added in v0.46.0
func (*QueryModuleAccountsRequest) Descriptor() ([]byte, []int)
func (*QueryModuleAccountsRequest) Marshal ¶ added in v0.46.0
func (m *QueryModuleAccountsRequest) Marshal() (dAtA []byte, err error)
func (*QueryModuleAccountsRequest) MarshalTo ¶ added in v0.46.0
func (m *QueryModuleAccountsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryModuleAccountsRequest) MarshalToSizedBuffer ¶ added in v0.46.0
func (m *QueryModuleAccountsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryModuleAccountsRequest) ProtoMessage ¶ added in v0.46.0
func (*QueryModuleAccountsRequest) ProtoMessage()
func (*QueryModuleAccountsRequest) Reset ¶ added in v0.46.0
func (m *QueryModuleAccountsRequest) Reset()
func (*QueryModuleAccountsRequest) Size ¶ added in v0.46.0
func (m *QueryModuleAccountsRequest) Size() (n int)
func (*QueryModuleAccountsRequest) String ¶ added in v0.46.0
func (m *QueryModuleAccountsRequest) String() string
func (*QueryModuleAccountsRequest) Unmarshal ¶ added in v0.46.0
func (m *QueryModuleAccountsRequest) Unmarshal(dAtA []byte) error
func (*QueryModuleAccountsRequest) XXX_DiscardUnknown ¶ added in v0.46.0
func (m *QueryModuleAccountsRequest) XXX_DiscardUnknown()
func (*QueryModuleAccountsRequest) XXX_Marshal ¶ added in v0.46.0
func (m *QueryModuleAccountsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryModuleAccountsRequest) XXX_Merge ¶ added in v0.46.0
func (m *QueryModuleAccountsRequest) XXX_Merge(src proto.Message)
func (*QueryModuleAccountsRequest) XXX_Size ¶ added in v0.46.0
func (m *QueryModuleAccountsRequest) XXX_Size() int
func (*QueryModuleAccountsRequest) XXX_Unmarshal ¶ added in v0.46.0
func (m *QueryModuleAccountsRequest) XXX_Unmarshal(b []byte) error
type QueryModuleAccountsResponse ¶ added in v0.46.0
type QueryModuleAccountsResponse struct {
Accounts []*types.Any `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"`
}
QueryModuleAccountsResponse is the response type for the Query/ModuleAccounts RPC method.
Since: cosmos-sdk 0.46
func (*QueryModuleAccountsResponse) Descriptor ¶ added in v0.46.0
func (*QueryModuleAccountsResponse) Descriptor() ([]byte, []int)
func (*QueryModuleAccountsResponse) GetAccounts ¶ added in v0.46.0
func (m *QueryModuleAccountsResponse) GetAccounts() []*types.Any
func (*QueryModuleAccountsResponse) Marshal ¶ added in v0.46.0
func (m *QueryModuleAccountsResponse) Marshal() (dAtA []byte, err error)
func (*QueryModuleAccountsResponse) MarshalTo ¶ added in v0.46.0
func (m *QueryModuleAccountsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryModuleAccountsResponse) MarshalToSizedBuffer ¶ added in v0.46.0
func (m *QueryModuleAccountsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryModuleAccountsResponse) ProtoMessage ¶ added in v0.46.0
func (*QueryModuleAccountsResponse) ProtoMessage()
func (*QueryModuleAccountsResponse) Reset ¶ added in v0.46.0
func (m *QueryModuleAccountsResponse) Reset()
func (*QueryModuleAccountsResponse) Size ¶ added in v0.46.0
func (m *QueryModuleAccountsResponse) Size() (n int)
func (*QueryModuleAccountsResponse) String ¶ added in v0.46.0
func (m *QueryModuleAccountsResponse) String() string
func (*QueryModuleAccountsResponse) Unmarshal ¶ added in v0.46.0
func (m *QueryModuleAccountsResponse) Unmarshal(dAtA []byte) error
func (*QueryModuleAccountsResponse) XXX_DiscardUnknown ¶ added in v0.46.0
func (m *QueryModuleAccountsResponse) XXX_DiscardUnknown()
func (*QueryModuleAccountsResponse) XXX_Marshal ¶ added in v0.46.0
func (m *QueryModuleAccountsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryModuleAccountsResponse) XXX_Merge ¶ added in v0.46.0
func (m *QueryModuleAccountsResponse) XXX_Merge(src proto.Message)
func (*QueryModuleAccountsResponse) XXX_Size ¶ added in v0.46.0
func (m *QueryModuleAccountsResponse) XXX_Size() int
func (*QueryModuleAccountsResponse) XXX_Unmarshal ¶ added in v0.46.0
func (m *QueryModuleAccountsResponse) XXX_Unmarshal(b []byte) error
type QueryParamsRequest ¶ added in v0.40.0
type QueryParamsRequest struct { }
QueryParamsRequest is the request type for the Query/Params RPC method.
func (*QueryParamsRequest) Descriptor ¶ added in v0.40.0
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
func (*QueryParamsRequest) Marshal ¶ added in v0.40.0
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryParamsRequest) MarshalTo ¶ added in v0.40.0
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsRequest) MarshalToSizedBuffer ¶ added in v0.40.0
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsRequest) ProtoMessage ¶ added in v0.40.0
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) Reset ¶ added in v0.40.0
func (m *QueryParamsRequest) Reset()
func (*QueryParamsRequest) Size ¶ added in v0.40.0
func (m *QueryParamsRequest) Size() (n int)
func (*QueryParamsRequest) String ¶ added in v0.40.0
func (m *QueryParamsRequest) String() string
func (*QueryParamsRequest) Unmarshal ¶ added in v0.40.0
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryParamsRequest) XXX_DiscardUnknown ¶ added in v0.40.0
func (m *QueryParamsRequest) XXX_DiscardUnknown()
func (*QueryParamsRequest) XXX_Marshal ¶ added in v0.40.0
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsRequest) XXX_Merge ¶ added in v0.40.0
func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
func (*QueryParamsRequest) XXX_Size ¶ added in v0.40.0
func (m *QueryParamsRequest) XXX_Size() int
func (*QueryParamsRequest) XXX_Unmarshal ¶ added in v0.40.0
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
type QueryParamsResponse ¶ added in v0.40.0
type QueryParamsResponse struct { // params defines the parameters of the module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` }
QueryParamsResponse is the response type for the Query/Params RPC method.
func (*QueryParamsResponse) Descriptor ¶ added in v0.40.0
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) GetParams ¶ added in v0.40.0
func (m *QueryParamsResponse) GetParams() Params
func (*QueryParamsResponse) Marshal ¶ added in v0.40.0
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryParamsResponse) MarshalTo ¶ added in v0.40.0
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsResponse) MarshalToSizedBuffer ¶ added in v0.40.0
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsResponse) ProtoMessage ¶ added in v0.40.0
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) Reset ¶ added in v0.40.0
func (m *QueryParamsResponse) Reset()
func (*QueryParamsResponse) Size ¶ added in v0.40.0
func (m *QueryParamsResponse) Size() (n int)
func (*QueryParamsResponse) String ¶ added in v0.40.0
func (m *QueryParamsResponse) String() string
func (*QueryParamsResponse) Unmarshal ¶ added in v0.40.0
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryParamsResponse) XXX_DiscardUnknown ¶ added in v0.40.0
func (m *QueryParamsResponse) XXX_DiscardUnknown()
func (*QueryParamsResponse) XXX_Marshal ¶ added in v0.40.0
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsResponse) XXX_Merge ¶ added in v0.40.0
func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
func (*QueryParamsResponse) XXX_Size ¶ added in v0.40.0
func (m *QueryParamsResponse) XXX_Size() int
func (*QueryParamsResponse) XXX_Unmarshal ¶ added in v0.40.0
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶ added in v0.40.0
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) }
QueryServer is the server API for Query service.
type RandomGenesisAccountsFn ¶ added in v0.40.0
type RandomGenesisAccountsFn func(simState *module.SimulationState) GenesisAccounts
RandomGenesisAccountsFn defines the function required to generate custom account types
type UnimplementedMsgServer ¶ added in v0.47.0
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) UpdateParams ¶ added in v0.47.0
func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
type UnimplementedQueryServer ¶ added in v0.40.0
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Account ¶ added in v0.40.0
func (*UnimplementedQueryServer) Account(ctx context.Context, req *QueryAccountRequest) (*QueryAccountResponse, error)
func (*UnimplementedQueryServer) AccountAddressByID ¶ added in v0.46.0
func (*UnimplementedQueryServer) AccountAddressByID(ctx context.Context, req *QueryAccountAddressByIDRequest) (*QueryAccountAddressByIDResponse, error)
func (*UnimplementedQueryServer) AccountInfo ¶ added in v0.47.0
func (*UnimplementedQueryServer) AccountInfo(ctx context.Context, req *QueryAccountInfoRequest) (*QueryAccountInfoResponse, error)
func (*UnimplementedQueryServer) Accounts ¶ added in v0.43.0
func (*UnimplementedQueryServer) Accounts(ctx context.Context, req *QueryAccountsRequest) (*QueryAccountsResponse, error)
func (*UnimplementedQueryServer) AddressBytesToString ¶ added in v0.46.0
func (*UnimplementedQueryServer) AddressBytesToString(ctx context.Context, req *AddressBytesToStringRequest) (*AddressBytesToStringResponse, error)
func (*UnimplementedQueryServer) AddressStringToBytes ¶ added in v0.46.0
func (*UnimplementedQueryServer) AddressStringToBytes(ctx context.Context, req *AddressStringToBytesRequest) (*AddressStringToBytesResponse, error)
func (*UnimplementedQueryServer) Bech32Prefix ¶ added in v0.46.0
func (*UnimplementedQueryServer) Bech32Prefix(ctx context.Context, req *Bech32PrefixRequest) (*Bech32PrefixResponse, error)
func (*UnimplementedQueryServer) ModuleAccountByName ¶ added in v0.45.10
func (*UnimplementedQueryServer) ModuleAccountByName(ctx context.Context, req *QueryModuleAccountByNameRequest) (*QueryModuleAccountByNameResponse, error)
func (*UnimplementedQueryServer) ModuleAccounts ¶ added in v0.46.0
func (*UnimplementedQueryServer) ModuleAccounts(ctx context.Context, req *QueryModuleAccountsRequest) (*QueryModuleAccountsResponse, error)
func (*UnimplementedQueryServer) Params ¶ added in v0.40.0
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)