Documentation ¶
Index ¶
- func MakeTestAccAddress() sdk.AccAddress
- func MakeTestAccAddressFromPubKey(pubKey crypto.PubKey) sdk.AccAddress
- func MakeTestAccount() (crypto.PrivKey, crypto.PubKey, sdk.AccAddress, sdk.ValAddress, sdk.ConsAddress)
- func MakeTestCodec(codecRegisters []CodecRegister) *codec.Codec
- func MakeTestConsAddressFromPubKey(pubKey crypto.PubKey) sdk.ConsAddress
- func MakeTestContext(kvStoreKeys map[string]*sdk.KVStoreKey, ...) sdk.Context
- func MakeTestDB() *dbm.MemDB
- func MakeTestPrivKey() crypto.PrivKey
- func MakeTestPubKey() crypto.PubKey
- func MakeTestPubKeyFromPrivKey(privKey crypto.PrivKey) crypto.PubKey
- func MakeTestStore(db *dbm.MemDB, storeKeys map[string]*sdk.KVStoreKey, ...) sdk.CommitMultiStore
- func MakeTestTimestampCurrent() time.Time
- func MakeTestValAddressFromPubKey(pubKey crypto.PubKey) sdk.ValAddress
- type CodecRegister
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeTestAccAddress ¶
func MakeTestAccAddress() sdk.AccAddress
MakeTestAccAddress creates an instant account address.
func MakeTestAccAddressFromPubKey ¶
func MakeTestAccAddressFromPubKey(pubKey crypto.PubKey) sdk.AccAddress
MakeTestAccAddressFromPubKey creates a account address from a given public key.
func MakeTestAccount ¶
func MakeTestAccount() (crypto.PrivKey, crypto.PubKey, sdk.AccAddress, sdk.ValAddress, sdk.ConsAddress)
MakeTestAccount creates an instant key-pair and associated addresses.
func MakeTestCodec ¶
func MakeTestCodec(codecRegisters []CodecRegister) *codec.Codec
MakeTestCodec creates an instant codec and registers the modules in it for testing.
func MakeTestConsAddressFromPubKey ¶
func MakeTestConsAddressFromPubKey(pubKey crypto.PubKey) sdk.ConsAddress
MakeTestConsAddressFromPubKey creates a consensus address from a given public key.
func MakeTestContext ¶
func MakeTestContext( kvStoreKeys map[string]*sdk.KVStoreKey, transientStoreKeys map[string]*sdk.TransientStoreKey, isCheckTx bool, chainID string, ) sdk.Context
MakeTestContext creates an context instance for testing.
func MakeTestPrivKey ¶
MakeTestPrivKey creates an instant private key.
func MakeTestPubKey ¶
MakeTestPubKey creates an instant public key.
func MakeTestPubKeyFromPrivKey ¶
MakeTestPubKeyFromPrivKey creates a public key from a private key.
func MakeTestStore ¶
func MakeTestStore( db *dbm.MemDB, storeKeys map[string]*sdk.KVStoreKey, transientStoreKeys map[string]*sdk.TransientStoreKey, ) sdk.CommitMultiStore
MakeTestStore creates an instant private multi-store. Note: StoreKey mustn't be newly created / different from keeper's.
func MakeTestTimestampCurrent ¶
MakeTestTimestampCurrent creates a current timestamp.
func MakeTestValAddressFromPubKey ¶
func MakeTestValAddressFromPubKey(pubKey crypto.PubKey) sdk.ValAddress
MakeTestValAddressFromPubKey creates a validator address from a given public key.
Types ¶
type CodecRegister ¶
CodecRegister is the alias for module codec register function.