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) 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) FundAccountWithFury(addr sdk.AccAddress, coins sdk.Coins)
- func (suite *Suite) FundModuleAccountWithFury(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 ¶
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 ¶
func RandomEvmAccount() (common.Address, *ethsecp256k1.PrivKey)
func RandomEvmAddress ¶
func RandomInternalEVMAddress ¶
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) DeployERC20 ¶
func (suite *Suite) DeployERC20() types.InternalEVMAddress
func (*Suite) EventsContains ¶
EventsContains asserts that the expected event is in the provided events
func (*Suite) EventsDoNotContain ¶
EventsDoNotContain asserts that the event is **not** is in the provided events
func (*Suite) FundAccountWithFury ¶
func (suite *Suite) FundAccountWithFury(addr sdk.AccAddress, coins sdk.Coins)
func (*Suite) FundModuleAccountWithFury ¶
func (*Suite) GetERC20BalanceOf ¶
func (suite *Suite) GetERC20BalanceOf( contractAbi abi.ABI, contractAddr types.InternalEVMAddress, accountAddr types.InternalEVMAddress, ) *big.Int
func (*Suite) MintFeeCollector ¶
func (*Suite) QueryContract ¶
func (*Suite) SendTx ¶
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.