Documentation
¶
Index ¶
- func DefaultContext(t *testing.T, key storetypes.StoreKey) sdk.Context
- func GenerateRandomEthKey() (*ecdsa.PrivateKey, *ecdsa.PublicKey, ethcmn.Address, error)
- func GenerateRandomEthKeyFromRand(r io.Reader) (*ecdsa.PrivateKey, *ecdsa.PublicKey, ethcmn.Address, error)
- func KVStore(t *testing.T) sdk.KVStore
- func NewCodec(registrars ...func(types.InterfaceRegistry)) codec.Codec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultContext ¶ added in v4.2.0
DefaultContext creates a sdk.Context with a fresh MemDB that can be used in tests.
func GenerateRandomEthKey ¶
GenerateRandomEthKey generates a random Ethereum key pair.
func GenerateRandomEthKeyFromRand ¶
func GenerateRandomEthKeyFromRand(r io.Reader) (*ecdsa.PrivateKey, *ecdsa.PublicKey, ethcmn.Address, error)
GenerateRandomEthKeyFromRand generates a random Ethereum key pair from a reader.
func NewCodec ¶ added in v4.2.0
func NewCodec(registrars ...func(types.InterfaceRegistry)) codec.Codec
NewCodec creates Codec instance and registers standard Cosmos SDK interfaces (message interface, tx, pub & private keys) as well as all types provided through the registrar ( typically a RegisterInterfaces function in Cosmos SDK modules)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.