Versions in this module Expand all Collapse all v0 v0.44.4 Oct 27, 2021 Changes in this version + const Burner + const DefaultMaxMemoCharacters + const DefaultSigVerifyCostED25519 + const DefaultSigVerifyCostSecp256k1 + const DefaultTxSigLimit + const DefaultTxSizeCostPerByte + const FeeCollectorName + const Minter + const ModuleName + const QuerierRoute + const QueryAccount + const QueryParams + const Staking + const StoreKey + var AddressStoreKeyPrefix = []byte + var ErrIntOverflowAuth = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthAuth = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrUnexpectedEndOfGroupAuth = fmt.Errorf("proto: unexpected end of group") + var ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") + var ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") + var GlobalAccountNumberKey = []byte("globalAccountNumber") + var KeyMaxMemoCharacters = []byte("MaxMemoCharacters") + var KeySigVerifyCostED25519 = []byte("SigVerifyCostED25519") + var KeySigVerifyCostSecp256k1 = []byte("SigVerifyCostSecp256k1") + var KeyTxSigLimit = []byte("TxSigLimit") + var KeyTxSizeCostPerByte = []byte("TxSizeCostPerByte") + var ModuleCdc = codec.NewAminoCodec(amino) + func AddressStoreKey(addr sdk.AccAddress) []byte + func NewModuleAddress(name string) sdk.AccAddress + func PackAccounts(accounts GenesisAccounts) ([]*types.Any, error) + func ParamKeyTable() paramtypes.KeyTable + func RegisterInterfaces(registry types.InterfaceRegistry) + func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) + 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 AccountI interface + GetAccountNumber func() uint64 + GetAddress func() sdk.AccAddress + GetPubKey func() cryptotypes.PubKey + GetSequence func() uint64 + SetAccountNumber func(uint64) error + SetAddress func(sdk.AccAddress) error + SetPubKey func(cryptotypes.PubKey) error + SetSequence func(uint64) error + String func() string + func ProtoBaseAccount() AccountI + type AccountRetriever struct + 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 BankKeeper interface + SendCoinsFromAccountToModule func(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, ...) error + type BaseAccount struct + AccountNumber uint64 + Address string + PubKey *types.Any + Sequence uint64 + func NewBaseAccount(address sdk.AccAddress, pubKey cryptotypes.PubKey, ...) *BaseAccount + func NewBaseAccountWithAddress(addr sdk.AccAddress) *BaseAccount + func (*BaseAccount) Descriptor() ([]byte, []int) + func (*BaseAccount) ProtoMessage() + 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 (acc BaseAccount) GetAccountNumber() uint64 + func (acc BaseAccount) GetAddress() sdk.AccAddress + func (acc BaseAccount) GetPubKey() (pk cryptotypes.PubKey) + func (acc BaseAccount) GetSequence() uint64 + func (acc BaseAccount) MarshalYAML() (interface{}, error) + func (acc BaseAccount) String() string + func (acc BaseAccount) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error + func (acc BaseAccount) Validate() error + 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 (m *BaseAccount) Reset() + func (m *BaseAccount) Size() (n int) + func (m *BaseAccount) Unmarshal(dAtA []byte) 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 GenesisAccount interface + Validate func() error + type GenesisAccountIterator struct + func (GenesisAccountIterator) IterateGenesisAccounts(cdc codec.Codec, appGenesis map[string]json.RawMessage, ...) + type GenesisAccounts []GenesisAccount + func SanitizeGenesisAccounts(genAccs GenesisAccounts) GenesisAccounts + func UnpackAccounts(accountsAny []*types.Any) (GenesisAccounts, error) + func (ga GenesisAccounts) Contains(addr sdk.Address) bool + type GenesisState struct + Accounts []*types.Any + Params Params + func DefaultGenesisState() *GenesisState + func GetGenesisStateFromAppState(cdc codec.Codec, appState map[string]json.RawMessage) GenesisState + func NewGenesisState(params Params, accounts GenesisAccounts) *GenesisState + func (*GenesisState) Descriptor() ([]byte, []int) + func (*GenesisState) ProtoMessage() + func (g GenesisState) UnpackInterfaces(unpacker types.AnyUnpacker) error + 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 (m *GenesisState) Reset() + func (m *GenesisState) Size() (n int) + func (m *GenesisState) String() string + func (m *GenesisState) Unmarshal(dAtA []byte) 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 struct + Name string + Permissions []string + func NewEmptyModuleAccount(name string, permissions ...string) *ModuleAccount + func NewModuleAccount(ba *BaseAccount, name string, permissions ...string) *ModuleAccount + func (*ModuleAccount) Descriptor() ([]byte, []int) + func (*ModuleAccount) ProtoMessage() + func (m *ModuleAccount) Marshal() (dAtA []byte, err error) + func (m *ModuleAccount) MarshalTo(dAtA []byte) (int, error) + func (m *ModuleAccount) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *ModuleAccount) Reset() + func (m *ModuleAccount) Size() (n int) + func (m *ModuleAccount) Unmarshal(dAtA []byte) 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 + func (ma *ModuleAccount) UnmarshalJSON(bz []byte) error + func (ma ModuleAccount) GetName() string + func (ma ModuleAccount) GetPermissions() []string + func (ma ModuleAccount) HasPermission(permission string) bool + func (ma ModuleAccount) MarshalJSON() ([]byte, error) + func (ma ModuleAccount) MarshalYAML() (interface{}, error) + func (ma ModuleAccount) SetPubKey(pubKey cryptotypes.PubKey) error + func (ma ModuleAccount) SetSequence(seq uint64) error + func (ma ModuleAccount) String() string + func (ma ModuleAccount) Validate() error + type ModuleAccountI interface + GetName func() string + GetPermissions func() []string + HasPermission func(string) bool + type Params struct + MaxMemoCharacters uint64 + SigVerifyCostED25519 uint64 + SigVerifyCostSecp256k1 uint64 + TxSigLimit uint64 + TxSizeCostPerByte uint64 + func DefaultParams() Params + func NewParams(...) Params + func (*Params) Descriptor() ([]byte, []int) + func (*Params) ProtoMessage() + 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 (m *Params) Reset() + func (m *Params) Size() (n int) + func (m *Params) Unmarshal(dAtA []byte) error + func (m *Params) XXX_DiscardUnknown() + func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Params) XXX_Merge(src proto.Message) + func (m *Params) XXX_Size() int + func (m *Params) XXX_Unmarshal(b []byte) error + func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs + func (p Params) SigVerifyCostSecp256r1() uint64 + func (p Params) String() string + func (p Params) Validate() error + func (this *Params) Equal(that interface{}) bool + type PermissionsForAddress struct + func NewPermissionsForAddress(name string, permissions []string) PermissionsForAddress + func (pa PermissionsForAddress) GetAddress() sdk.AccAddress + func (pa PermissionsForAddress) GetPermissions() []string + func (pa PermissionsForAddress) HasPermission(permission string) bool + type QueryAccountRequest struct + Address string + func (*QueryAccountRequest) Descriptor() ([]byte, []int) + func (*QueryAccountRequest) ProtoMessage() + 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 (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 struct + Account *types.Any + func (*QueryAccountResponse) Descriptor() ([]byte, []int) + func (*QueryAccountResponse) ProtoMessage() + 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 (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 struct + Pagination *query.PageRequest + func (*QueryAccountsRequest) Descriptor() ([]byte, []int) + func (*QueryAccountsRequest) ProtoMessage() + 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 (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 struct + Accounts []*types.Any + Pagination *query.PageResponse + func (*QueryAccountsResponse) Descriptor() ([]byte, []int) + func (*QueryAccountsResponse) ProtoMessage() + 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 (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 interface + Account func(ctx context.Context, in *QueryAccountRequest, opts ...grpc.CallOption) (*QueryAccountResponse, error) + Accounts func(ctx context.Context, in *QueryAccountsRequest, opts ...grpc.CallOption) (*QueryAccountsResponse, error) + Params func(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) + func NewQueryClient(cc grpc1.ClientConn) QueryClient + type QueryParamsRequest struct + func (*QueryParamsRequest) Descriptor() ([]byte, []int) + func (*QueryParamsRequest) ProtoMessage() + 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 (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 struct + Params Params + func (*QueryParamsResponse) Descriptor() ([]byte, []int) + func (*QueryParamsResponse) ProtoMessage() + 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 (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 interface + Account func(context.Context, *QueryAccountRequest) (*QueryAccountResponse, error) + Accounts func(context.Context, *QueryAccountsRequest) (*QueryAccountsResponse, error) + Params func(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) + type RandomGenesisAccountsFn func(simState *module.SimulationState) GenesisAccounts + type UnimplementedQueryServer struct + func (*UnimplementedQueryServer) Account(ctx context.Context, req *QueryAccountRequest) (*QueryAccountResponse, error) + func (*UnimplementedQueryServer) Accounts(ctx context.Context, req *QueryAccountsRequest) (*QueryAccountsResponse, error) + func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)