Documentation ¶
Index ¶
- type ChainClient
- func (cl ChainClient) GetContractState(ctx context.Context, address common.Address, storageKeys [][]byte, bn *big.Int, ...) (ContractState, error)
- func (cl ChainClient) GetETHProof(address common.Address, storageKeys [][]byte, blockNumber *big.Int) (*ETHProof, error)
- func (cl ChainClient) GetEthContractState(ctx context.Context, address common.Address, storageKeys [][]byte, bn *big.Int) (ContractState, error)
- func (cl ChainClient) GetMockContractState(ctx context.Context, address common.Address, storageKeys [][]byte, bn *big.Int) (ContractState, error)
- func (cl ChainClient) MineBlock(time time.Time) ([]byte, error)
- func (cl ChainClient) WaitForReceiptAndGet(ctx context.Context, tx *gethtypes.Transaction) (Receipt, error)
- type ContractState
- type ETHClient
- type ETHContractState
- type ETHProof
- type GenTxOpts
- type Receipt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChainClient ¶
func NewETHClient ¶
func NewETHClient(endpoint string, ethChainID int64) (*ChainClient, error)
func (ChainClient) GetContractState ¶
func (ChainClient) GetETHProof ¶
func (ChainClient) GetEthContractState ¶
func (cl ChainClient) GetEthContractState(ctx context.Context, address common.Address, storageKeys [][]byte, bn *big.Int) (ContractState, error)
func (ChainClient) GetMockContractState ¶
func (cl ChainClient) GetMockContractState(ctx context.Context, address common.Address, storageKeys [][]byte, bn *big.Int) (ContractState, error)
func (ChainClient) WaitForReceiptAndGet ¶
func (cl ChainClient) WaitForReceiptAndGet(ctx context.Context, tx *gethtypes.Transaction) (Receipt, error)
type ContractState ¶
type ETHContractState ¶
type ETHContractState struct {
// contains filtered or unexported fields
}
func (ETHContractState) ETHProof ¶
func (cs ETHContractState) ETHProof() *ETHProof
func (ETHContractState) Header ¶
func (cs ETHContractState) Header() *gethtypes.Header
type GenTxOpts ¶
type GenTxOpts func(ctx context.Context) *bind.TransactOpts
func MakeGenTxOpts ¶
func MakeGenTxOpts(chainID *big.Int, prv *ecdsa.PrivateKey) GenTxOpts
type Receipt ¶
type Receipt interface { PostState() []byte Status() uint64 CumulativeGasUsed() uint64 Bloom() gethtypes.Bloom Logs() []*gethtypes.Log TxHash() common.Hash ContractAddress() common.Address GasUsed() uint64 BlockHash() common.Hash BlockNumber() *big.Int TransactionIndex() uint RevertReason() string }
Click to show internal directories.
Click to hide internal directories.