Documentation ¶
Index ¶
- func MustNewInternalEVMAddressFromString(addrStr string) types.InternalEVMAddress
- type Suite
- func (suite *Suite) Commit()
- func (suite *Suite) DeployERC20() types.InternalEVMAddress
- func (suite *Suite) EventsContains(events sdk.Events, expectedEvent sdk.Event)
- func (suite *Suite) EventsDoNotContain(events sdk.Events, eventType string)
- func (suite *Suite) FundAccountWithKava(addr sdk.AccAddress, coins sdk.Coins)
- func (suite *Suite) FundModuleAccountWithKava(moduleName string, coins sdk.Coins)
- func (suite *Suite) GetERC20BalanceOf(contractAbi abi.ABI, contractAddr types.InternalEVMAddress, ...) *big.Int
- func (suite *Suite) GetEvents() sdk.Events
- func (suite *Suite) MintFeeCollector(coins sdk.Coins)
- func (suite *Suite) QueryContract(contractAbi abi.ABI, from common.Address, fromKey *ethsecp256k1.PrivKey, ...) ([]interface{}, error)
- func (suite *Suite) SendTx(contractAddr types.InternalEVMAddress, from common.Address, ...) (*evmtypes.MsgEthereumTxResponse, error)
- func (suite *Suite) SetupTest()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustNewInternalEVMAddressFromString ¶ added in v0.19.0
func MustNewInternalEVMAddressFromString(addrStr string) types.InternalEVMAddress
MustNewInternalEVMAddressFromString returns a new InternalEVMAddress from a hex string. This will panic if the input hex string is invalid.
Types ¶
type Suite ¶
type Suite struct { suite.Suite App app.TestApp Ctx sdk.Context Address common.Address BankKeeper bankkeeper.Keeper AccountKeeper authkeeper.AccountKeeper Keeper keeper.Keeper EvmBankKeeper keeper.EvmBankKeeper Addrs []sdk.AccAddress EvmModuleAddr sdk.AccAddress QueryClient types.QueryClient QueryClientEvm evmtypes.QueryClient Key1 *ethsecp256k1.PrivKey Key1Addr types.InternalEVMAddress Key2 *ethsecp256k1.PrivKey }
func (*Suite) DeployERC20 ¶ added in v0.19.0
func (suite *Suite) DeployERC20() types.InternalEVMAddress
func (*Suite) EventsContains ¶ added in v0.19.0
EventsContains asserts that the expected event is in the provided events
func (*Suite) EventsDoNotContain ¶ added in v0.19.0
EventsDoNotContain asserts that the event is **not** is in the provided events
func (*Suite) FundAccountWithKava ¶
func (suite *Suite) FundAccountWithKava(addr sdk.AccAddress, coins sdk.Coins)
func (*Suite) FundModuleAccountWithKava ¶
func (*Suite) GetERC20BalanceOf ¶ added in v0.19.0
func (suite *Suite) GetERC20BalanceOf( contractAbi abi.ABI, contractAddr types.InternalEVMAddress, accountAddr types.InternalEVMAddress, ) *big.Int
func (*Suite) MintFeeCollector ¶ added in v0.19.0
func (*Suite) QueryContract ¶ added in v0.19.0
func (*Suite) SendTx ¶ added in v0.19.0
func (suite *Suite) SendTx( contractAddr types.InternalEVMAddress, from common.Address, signerKey *ethsecp256k1.PrivKey, transferData []byte, ) (*evmtypes.MsgEthereumTxResponse, error)
SendTx submits a transaction to the block.
Click to show internal directories.
Click to hide internal directories.