Documentation
¶
Index ¶
- func CompareStores(t *testing.T, storeKey sdk.StoreKey, expected store.KVStore, ...)
- func Funds(amount int64) sdk.Coins
- func RunWithOCC(testCtx *TestContext, msgs []*TestMessage) ([]types.Event, []*types.ExecTxResult, types.ResponseEndBlock, error)
- func RunWithoutOCC(testCtx *TestContext, msgs []*TestMessage) ([]types.Event, []*types.ExecTxResult, types.ResponseEndBlock, error)
- type TestAcct
- type TestContext
- type TestMessage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareStores ¶
func RunWithOCC ¶
func RunWithOCC(testCtx *TestContext, msgs []*TestMessage) ([]types.Event, []*types.ExecTxResult, types.ResponseEndBlock, error)
RunWithOCC runs the given messages with OCC enabled, number of workers is configured via context
func RunWithoutOCC ¶
func RunWithoutOCC(testCtx *TestContext, msgs []*TestMessage) ([]types.Event, []*types.ExecTxResult, types.ResponseEndBlock, error)
RunWithoutOCC runs the given messages without OCC enabled
Types ¶
type TestAcct ¶
type TestAcct struct {
ValidatorAddress sdk.ValAddress
AccountAddress sdk.AccAddress
PrivateKey cryptotypes.PrivKey
PublicKey cryptotypes.PubKey
EvmAddress common.Address
EvmSigner ethtypes.Signer
EvmPrivateKey *ecdsa.PrivateKey
}
func NewTestAccounts ¶
type TestContext ¶
type TestContext struct {
Ctx sdk.Context
CodeID uint64
Validator TestAcct
TestAccounts []TestAcct
ContractKeeper *wasmkeeper.PermissionedKeeper
TestApp *app.App
}
func NewTestContext ¶
func NewTestContext(t *testing.T, testAccts []TestAcct, blockTime time.Time, workers int, occEnabled bool) *TestContext
NewTestContext initializes a new TestContext with a new app and a new contract
type TestMessage ¶
func JoinMsgs ¶
func JoinMsgs(msgsList ...[]*TestMessage) []*TestMessage
func Shuffle ¶
func Shuffle(msgs []*TestMessage) []*TestMessage
Click to show internal directories.
Click to hide internal directories.