Documentation ¶
Index ¶
- Variables
- type Env
- func (e *Env) Accounts() []common.Address
- func (e *Env) Balance(address common.Address) *big.Int
- func (e *Env) BlockByHash(hash common.Hash) *types.Block
- func (e *Env) BlockByNumber(number *big.Int) *types.Block
- func (e *Env) BlockNumber() uint64
- func (e *Env) BlockTransactionCountByHash(hash common.Hash) uint
- func (e *Env) BlockTransactionCountByNumber() uint
- func (e *Env) Code(address common.Address) []byte
- func (e *Env) DeployEVMContract(creator *ecdsa.PrivateKey, contractABI abi.ABI, contractBytecode []byte, ...) (*types.Transaction, common.Address)
- func (e *Env) MustSendTransaction(args *jsonrpc.SendTxArgs) common.Hash
- func (e *Env) MustTxReceipt(hash common.Hash) *types.Receipt
- func (e *Env) NonceAt(address common.Address) uint64
- func (e *Env) RequestFunds(target common.Address) *types.Transaction
- func (e *Env) SendTransaction(args *jsonrpc.SendTxArgs) (common.Hash, error)
- func (e *Env) Sign(address common.Address, data []byte) []byte
- func (e *Env) SignTransaction(args *jsonrpc.SendTxArgs) []byte
- func (e *Env) Storage(address common.Address, key common.Hash) []byte
- func (e *Env) TestRPCGasLimit()
- func (e *Env) TestRPCGetLogs()
- func (e *Env) TestRPCInvalidNonce()
- func (e *Env) TransactionByBlockHashAndIndex(blockHash common.Hash, index uint) *types.Transaction
- func (e *Env) TransactionByBlockNumberAndIndex(blockNumber *big.Int, index uint) *jsonrpc.RPCTransaction
- func (e *Env) TransactionByHash(hash common.Hash) *types.Transaction
- func (e *Env) TxReceipt(hash common.Hash) (*types.Receipt, error)
- func (e *Env) UncleByBlockHashAndIndex(blockHash common.Hash, index uint) map[string]interface{}
- func (e *Env) UncleByBlockNumberAndIndex(blockNumber *big.Int, index uint) map[string]interface{}
- func (e *Env) UncleCountByBlockHash(hash common.Hash) uint
- func (e *Env) UncleCountByBlockNumber(blockNumber *big.Int) uint
Constants ¶
This section is empty.
Variables ¶
View Source
var RequestFundsAmount = big.NewInt(1e18) // 1 ETH
Functions ¶
This section is empty.
Types ¶
type Env ¶
type Env struct { T *testing.T Server *rpc.Server Client *ethclient.Client RawClient *rpc.Client ChainID int }
func (*Env) BlockNumber ¶
func (*Env) BlockTransactionCountByHash ¶
func (*Env) BlockTransactionCountByNumber ¶
func (*Env) DeployEVMContract ¶
func (e *Env) DeployEVMContract(creator *ecdsa.PrivateKey, contractABI abi.ABI, contractBytecode []byte, args ...interface{}) (*types.Transaction, common.Address)
func (*Env) MustSendTransaction ¶
func (e *Env) MustSendTransaction(args *jsonrpc.SendTxArgs) common.Hash
func (*Env) RequestFunds ¶
func (e *Env) RequestFunds(target common.Address) *types.Transaction
func (*Env) SendTransaction ¶
func (*Env) SignTransaction ¶
func (e *Env) SignTransaction(args *jsonrpc.SendTxArgs) []byte
func (*Env) TestRPCGasLimit ¶
func (e *Env) TestRPCGasLimit()
func (*Env) TestRPCGetLogs ¶
func (e *Env) TestRPCGetLogs()
func (*Env) TestRPCInvalidNonce ¶
func (e *Env) TestRPCInvalidNonce()
func (*Env) TransactionByBlockHashAndIndex ¶
func (*Env) TransactionByBlockNumberAndIndex ¶
func (*Env) TransactionByHash ¶
func (e *Env) TransactionByHash(hash common.Hash) *types.Transaction
func (*Env) UncleByBlockHashAndIndex ¶
func (*Env) UncleByBlockNumberAndIndex ¶
Click to show internal directories.
Click to hide internal directories.