Versions in this module Expand all Collapse all v1 v1.0.0 May 14, 2020 Changes in this version + const Burner + const DefaultMaxMemoCharacters + const DefaultParamspace + const DefaultSigVerifyCostED25519 + const DefaultSigVerifyCostSecp256k1 + const DefaultTxSigLimit + const DefaultTxSizeCostPerByte + const FeeCollectorName + const MaxGasWanted + const Minter + const ModuleName + const QuerierRoute + const QueryAccount + const QueryParams + const Staking + const StoreKey + var AddressStoreKeyPrefix = []byte + var ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrUnexpectedEndOfGroupTypes = 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") + func AddressStoreKey(addr sdk.AccAddress) []byte + func CountSubKeys(pub crypto.PubKey) int + func DefaultTxDecoder(cdc *codec.Codec) sdk.TxDecoder + func DefaultTxEncoder(cdc *codec.Codec) sdk.TxEncoder + func KeyTestPubAddr() (crypto.PrivKey, crypto.PubKey, sdk.AccAddress) + func NewModuleAddress(name string) sdk.AccAddress + func NewTestCoins() sdk.Coins + func NewTestMsg(addrs ...sdk.AccAddress) *sdk.TestMsg + func NewTestTx(ctx sdk.Context, msgs []sdk.Msg, privs []crypto.PrivKey, accNums []uint64, ...) sdk.Tx + func NewTestTxWithMemo(ctx sdk.Context, msgs []sdk.Msg, privs []crypto.PrivKey, accNums []uint64, ...) sdk.Tx + func NewTestTxWithSignBytes(msgs []sdk.Msg, privs []crypto.PrivKey, accNums []uint64, seqs []uint64, ...) sdk.Tx + func ParamKeyTable() paramtypes.KeyTable + func ProtoBaseAccount() exported.Account + func RegisterCodec(cdc *codec.Codec) + func RegisterKeyTypeCodec(o interface{}, name string) + func SanitizeGenesisAccounts(genAccs exported.GenesisAccounts) exported.GenesisAccounts + func StdSignBytes(chainID string, accnum uint64, sequence uint64, fee StdFee, msgs []sdk.Msg, ...) []byte + func ValidateGenAccounts(accounts exported.GenesisAccounts) error + func ValidateGenesis(data GenesisState) error + type AccountRetriever struct + func NewAccountRetriever(codec Codec, querier NodeQuerier) AccountRetriever + func (ar AccountRetriever) EnsureExists(addr sdk.AccAddress) error + func (ar AccountRetriever) GetAccount(addr sdk.AccAddress) (exported.Account, error) + func (ar AccountRetriever) GetAccountNumberSequence(addr sdk.AccAddress) (uint64, uint64, error) + func (ar AccountRetriever) GetAccountWithHeight(addr sdk.AccAddress) (exported.Account, int64, error) + type BankKeeper interface + SendCoinsFromAccountToModule func(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, ...) error + type BaseAccount struct + AccountNumber uint64 + Address github_com_cosmos_cosmos_sdk_types.AccAddress + PubKey []byte + Sequence uint64 + func NewBaseAccount(address sdk.AccAddress, pubKey crypto.PubKey, accountNumber, sequence uint64) *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 crypto.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 crypto.PubKey) + func (acc BaseAccount) GetSequence() uint64 + func (acc BaseAccount) MarshalYAML() (interface{}, error) + func (acc BaseAccount) String() string + 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 Codec interface + MarshalAccount func(acc exported.Account) ([]byte, error) + MarshalAccountJSON func(acc exported.Account) ([]byte, error) + UnmarshalAccount func(bz []byte) (exported.Account, error) + UnmarshalAccountJSON func(bz []byte) (exported.Account, error) + type GenesisAccountIterator struct + func (GenesisAccountIterator) IterateGenesisAccounts(cdc Codec, appGenesis map[string]json.RawMessage, ...) + type GenesisState struct + Accounts exported.GenesisAccounts + Params Params + func DefaultGenesisState() GenesisState + func GetGenesisStateFromAppState(cdc Codec, appState map[string]json.RawMessage) GenesisState + func NewGenesisState(params Params, accounts exported.GenesisAccounts) GenesisState + 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 crypto.PubKey) error + func (ma ModuleAccount) SetSequence(seq uint64) error + func (ma ModuleAccount) String() string + func (ma ModuleAccount) Validate() error + type NodeQuerier interface + QueryWithData func(path string, data []byte) ([]byte, int64, error) + 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) 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 QueryAccountParams struct + Address sdk.AccAddress + func NewQueryAccountParams(addr sdk.AccAddress) QueryAccountParams + type StdFee struct + Amount sdk.Coins + Gas uint64 + func NewStdFee(gas uint64, amount sdk.Coins) StdFee + func NewTestStdFee() StdFee + func (fee StdFee) Bytes() []byte + func (fee StdFee) GasPrices() sdk.DecCoins + func (fee StdFee) GetAmount() sdk.Coins + func (fee StdFee) GetGas() uint64 + type StdSignDoc struct + AccountNumber uint64 + ChainID string + Fee json.RawMessage + Memo string + Msgs []json.RawMessage + Sequence uint64 + type StdSignMsg struct + AccountNumber uint64 + ChainID string + Fee StdFee + Memo string + Msgs []sdk.Msg + Sequence uint64 + func (msg StdSignMsg) Bytes() []byte + type StdSignature struct + PubKey []byte + Signature []byte + func MakeSignature(keybase keyring.Keyring, name, passphrase string, msg StdSignMsg) (sig StdSignature, err error) + func NewStdSignature(pk crypto.PubKey, sig []byte) StdSignature + func (ss StdSignature) GetPubKey() (pk crypto.PubKey) + func (ss StdSignature) GetSignature() []byte + func (ss StdSignature) MarshalYAML() (interface{}, error) + type StdTx struct + Fee StdFee + Memo string + Msgs []sdk.Msg + Signatures []StdSignature + func NewStdTx(msgs []sdk.Msg, fee StdFee, sigs []StdSignature, memo string) StdTx + func (tx StdTx) FeePayer() sdk.AccAddress + func (tx StdTx) GetFee() sdk.Coins + func (tx StdTx) GetGas() uint64 + func (tx StdTx) GetMemo() string + func (tx StdTx) GetMsgs() []sdk.Msg + func (tx StdTx) GetPubKeys() []crypto.PubKey + func (tx StdTx) GetSignBytes(ctx sdk.Context, acc exported.Account) []byte + func (tx StdTx) GetSignatures() [][]byte + func (tx StdTx) GetSigners() []sdk.AccAddress + func (tx StdTx) ValidateBasic() error + type TxBuilder struct + func NewTxBuilder(txEncoder sdk.TxEncoder, accNumber, seq, gas uint64, gasAdj float64, ...) TxBuilder + func NewTxBuilderFromCLI(input io.Reader) TxBuilder + func (bldr TxBuilder) AccountNumber() uint64 + func (bldr TxBuilder) BuildAndSign(name, passphrase string, msgs []sdk.Msg) ([]byte, error) + func (bldr TxBuilder) BuildSignMsg(msgs []sdk.Msg) (StdSignMsg, error) + func (bldr TxBuilder) BuildTxForSim(msgs []sdk.Msg) ([]byte, error) + func (bldr TxBuilder) ChainID() string + func (bldr TxBuilder) Fees() sdk.Coins + func (bldr TxBuilder) Gas() uint64 + func (bldr TxBuilder) GasAdjustment() float64 + func (bldr TxBuilder) GasPrices() sdk.DecCoins + func (bldr TxBuilder) Keybase() keyring.Keyring + func (bldr TxBuilder) Memo() string + func (bldr TxBuilder) Sequence() uint64 + func (bldr TxBuilder) Sign(name, passphrase string, msg StdSignMsg) ([]byte, error) + func (bldr TxBuilder) SignStdTx(name, passphrase string, stdTx StdTx, appendSig bool) (signedStdTx StdTx, err error) + func (bldr TxBuilder) SimulateAndExecute() bool + func (bldr TxBuilder) TxEncoder() sdk.TxEncoder + func (bldr TxBuilder) WithAccountNumber(accnum uint64) TxBuilder + func (bldr TxBuilder) WithChainID(chainID string) TxBuilder + func (bldr TxBuilder) WithFees(fees string) TxBuilder + func (bldr TxBuilder) WithGas(gas uint64) TxBuilder + func (bldr TxBuilder) WithGasPrices(gasPrices string) TxBuilder + func (bldr TxBuilder) WithKeybase(keybase keyring.Keyring) TxBuilder + func (bldr TxBuilder) WithMemo(memo string) TxBuilder + func (bldr TxBuilder) WithSequence(sequence uint64) TxBuilder + func (bldr TxBuilder) WithTxEncoder(txEncoder sdk.TxEncoder) TxBuilder v1.0.0-playground Jul 8, 2020