Documentation ¶
Index ¶
- type ERC20Suite
- func (s *ERC20Suite) Allowance(owner, spender common.Address) *big.Int
- func (s *ERC20Suite) Approve(spender common.Address, amount *big.Int, result bool)
- func (s *ERC20Suite) BalanceOf(account common.Address) *big.Int
- func (s *ERC20Suite) Burn(from common.Address, amount *big.Int, result bool)
- func (s *ERC20Suite) Call(method string, res interface{}, args ...interface{})
- func (s *ERC20Suite) Decimals() uint8
- func (s *ERC20Suite) Deploy(symbol string) common.Address
- func (s *ERC20Suite) Deposit(value *big.Int, result bool)
- func (s *ERC20Suite) Initialize(symbol string, result bool)
- func (s *ERC20Suite) Mint(to common.Address, amount *big.Int, result bool)
- func (s *ERC20Suite) Name() string
- func (s *ERC20Suite) OnTest(name, symbol string, decimals uint8, totalSupply *big.Int, ...)
- func (s *ERC20Suite) Owner() common.Address
- func (s *ERC20Suite) Send(method string, args ...interface{}) *evmtypes.MsgEthereumTxResponse
- func (s *ERC20Suite) Symbol() string
- func (s *ERC20Suite) TotalSupply() *big.Int
- func (s *ERC20Suite) Transfer(recipient common.Address, amount *big.Int, result bool)
- func (s *ERC20Suite) TransferFrom(sender, recipient common.Address, amount *big.Int, result bool)
- func (s *ERC20Suite) TransferOwnership(newOwner common.Address, result bool)
- func (s *ERC20Suite) Withdraw(to common.Address, amount *big.Int, result bool)
- func (s *ERC20Suite) WithdrawSelf(amount *big.Int, result bool)
- type EVMSuite
- func (s *EVMSuite) AccAddr() sdk.AccAddress
- func (s *EVMSuite) Call(abi abi.ABI, method string, res interface{}, args ...interface{})
- func (s *EVMSuite) CallContract(data []byte) error
- func (s *EVMSuite) CallEVM(data []byte, gasLimit uint64) *evmtypes.MsgEthereumTxResponse
- func (s *EVMSuite) DeployUpgradableERC20Logic(symbol string) common.Address
- func (s *EVMSuite) EthereumTx(to *common.Address, data []byte, value *big.Int, gasLimit uint64) (*evmtypes.MsgEthereumTxResponse, error)
- func (s *EVMSuite) GetContractAddr() *common.Address
- func (s *EVMSuite) GetFrom() common.Address
- func (s *EVMSuite) HexAddr() common.Address
- func (s *EVMSuite) Init(ass *require.Assertions, ctx sdk.Context, evmKeeper *fxevmkeeper.Keeper, ...) *EVMSuite
- func (s *EVMSuite) Send(abi abi.ABI, method string, args ...interface{}) *evmtypes.MsgEthereumTxResponse
- func (s *EVMSuite) WithContractAddr(addr common.Address)
- func (s *EVMSuite) WithFrom(from common.Address)
- func (s *EVMSuite) WithGasPrice(gasPrice *big.Int)
- func (s *EVMSuite) WithSigner(signer *helpers.Signer)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ERC20Suite ¶
func NewERC20Suite ¶
func NewERC20Suite(evmSuite EVMSuite) ERC20Suite
func (*ERC20Suite) Allowance ¶
func (s *ERC20Suite) Allowance(owner, spender common.Address) *big.Int
func (*ERC20Suite) Call ¶
func (s *ERC20Suite) Call(method string, res interface{}, args ...interface{})
func (*ERC20Suite) Decimals ¶
func (s *ERC20Suite) Decimals() uint8
func (*ERC20Suite) Initialize ¶
func (s *ERC20Suite) Initialize(symbol string, result bool)
func (*ERC20Suite) Name ¶
func (s *ERC20Suite) Name() string
func (*ERC20Suite) Owner ¶
func (s *ERC20Suite) Owner() common.Address
func (*ERC20Suite) Send ¶
func (s *ERC20Suite) Send(method string, args ...interface{}) *evmtypes.MsgEthereumTxResponse
func (*ERC20Suite) Symbol ¶
func (s *ERC20Suite) Symbol() string
func (*ERC20Suite) TotalSupply ¶
func (s *ERC20Suite) TotalSupply() *big.Int
func (*ERC20Suite) TransferFrom ¶
func (*ERC20Suite) TransferOwnership ¶
func (s *ERC20Suite) TransferOwnership(newOwner common.Address, result bool)
func (*ERC20Suite) WithdrawSelf ¶
func (s *ERC20Suite) WithdrawSelf(amount *big.Int, result bool)
type EVMSuite ¶
type EVMSuite struct { *require.Assertions // contains filtered or unexported fields }
func (*EVMSuite) AccAddr ¶
func (s *EVMSuite) AccAddr() sdk.AccAddress
func (*EVMSuite) CallContract ¶
func (*EVMSuite) CallEVM ¶
func (s *EVMSuite) CallEVM(data []byte, gasLimit uint64) *evmtypes.MsgEthereumTxResponse
func (*EVMSuite) DeployUpgradableERC20Logic ¶
func (*EVMSuite) EthereumTx ¶
func (*EVMSuite) GetContractAddr ¶
func (*EVMSuite) Init ¶
func (s *EVMSuite) Init(ass *require.Assertions, ctx sdk.Context, evmKeeper *fxevmkeeper.Keeper, signer *helpers.Signer) *EVMSuite
func (*EVMSuite) WithContractAddr ¶
func (*EVMSuite) WithGasPrice ¶
func (*EVMSuite) WithSigner ¶
Click to show internal directories.
Click to hide internal directories.