Documentation ¶
Index ¶
- func MustNewInternalEVMAddressFromString(addrStr string) types.InternalEVMAddress
- func RandomEvmAccount() (common.Address, *ethsecp256k1.PrivKey)
- func RandomEvmAddress() common.Address
- func RandomInternalEVMAddress() types.InternalEVMAddress
- type Suite
- func (suite *Suite) BigIntsEqual(expected *big.Int, actual *big.Int, msg string)
- 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) ModuleBalance(denom string) sdk.Int
- 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.
func RandomEvmAccount ¶ added in v0.24.0
func RandomEvmAccount() (common.Address, *ethsecp256k1.PrivKey)
func RandomEvmAddress ¶ added in v0.24.0
func RandomInternalEVMAddress ¶ added in v0.24.0
func RandomInternalEVMAddress() types.InternalEVMAddress
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) BigIntsEqual ¶ added in v0.24.0
BigIntsEqual is a helper method for comparing the equality of two big ints
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) ModuleBalance ¶ added in v0.24.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.