Documentation
¶
Index ¶
- type DeployingEthereumConnection
- type EthereumCaller
- type EthereumConnection
- type EthereumRpcConnection
- func (c *EthereumRpcConnection) CallContract(ctx context.Context, contractAddress []byte, packedInput []byte, ...) (packedOutput []byte, err error)
- func (c *EthereumRpcConnection) DeployEthereumContract(auth *bind.TransactOpts, abijson string, bytecode string, ...) (*common.Address, *bind.BoundContract, error)
- func (c *EthereumRpcConnection) DeployEthereumContractManually(ctx context.Context, auth *bind.TransactOpts, abijson string, bytecode string, ...) (*common.Address, error)
- func (c *EthereumRpcConnection) DeploySimpleStorageContract(auth *bind.TransactOpts, stringValue string) ([]byte, error)
- func (c *EthereumRpcConnection) GetTransactionLogs(ctx context.Context, txHash primitives.Uint256, eventSignature []byte) ([]*TransactionLog, error)
- func (rpc *EthereumRpcConnection) HeaderByNumber(ctx context.Context, number *big.Int) (*types.Header, error)
- func (c *EthereumRpcConnection) Receipt(txHash common.Hash) (*types.Receipt, error)
- type EthereumSimulator
- func (c *EthereumSimulator) CallContract(ctx context.Context, contractAddress []byte, packedInput []byte, ...) (packedOutput []byte, err error)
- func (es *EthereumSimulator) Commit()
- func (c *EthereumSimulator) DeployEthereumContract(auth *bind.TransactOpts, abijson string, bytecode string, ...) (*common.Address, *bind.BoundContract, error)
- func (c *EthereumSimulator) DeployEthereumContractManually(ctx context.Context, auth *bind.TransactOpts, abijson string, bytecode string, ...) (*common.Address, error)
- func (c *EthereumSimulator) DeploySimpleStorageContract(auth *bind.TransactOpts, stringValue string) ([]byte, error)
- func (es *EthereumSimulator) GetAuth() *bind.TransactOpts
- func (c *EthereumSimulator) GetTransactionLogs(ctx context.Context, txHash primitives.Uint256, eventSignature []byte) ([]*TransactionLog, error)
- func (es *EthereumSimulator) HeaderByNumber(ctx context.Context, number *big.Int) (*types.Header, error)
- func (c *EthereumSimulator) Receipt(txHash common.Hash) (*types.Receipt, error)
- type TransactionLog
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeployingEthereumConnection ¶ added in v0.7.1
type DeployingEthereumConnection interface { EthereumConnection DeploySimpleStorageContract(auth *bind.TransactOpts, stringValue string) ([]byte, error) DeployEthereumContract(auth *bind.TransactOpts, abijson string, bytecode string, params ...interface{}) (*common.Address, *bind.BoundContract, error) }
type EthereumCaller ¶ added in v0.7.1
type EthereumConnection ¶
type EthereumConnection interface { CallContract(ctx context.Context, contractAddress []byte, packedInput []byte, blockNumber *big.Int) (packedOutput []byte, err error) GetTransactionLogs(ctx context.Context, txHash primitives.Uint256, eventSignature []byte) ([]*TransactionLog, error) HeaderByNumber(ctx context.Context, number *big.Int) (*types.Header, error) }
type EthereumRpcConnection ¶ added in v0.7.1
type EthereumRpcConnection struct {
// contains filtered or unexported fields
}
func NewEthereumRpcConnection ¶ added in v0.7.1
func NewEthereumRpcConnection(config ethereumAdapterConfig, logger log.BasicLogger) *EthereumRpcConnection
func (*EthereumRpcConnection) CallContract ¶ added in v0.7.1
func (*EthereumRpcConnection) DeployEthereumContract ¶ added in v0.7.1
func (c *EthereumRpcConnection) DeployEthereumContract(auth *bind.TransactOpts, abijson string, bytecode string, params ...interface{}) (*common.Address, *bind.BoundContract, error)
this is a helper for integration test, not used in production code
func (*EthereumRpcConnection) DeployEthereumContractManually ¶ added in v0.7.5
func (*EthereumRpcConnection) DeploySimpleStorageContract ¶ added in v0.7.1
func (c *EthereumRpcConnection) DeploySimpleStorageContract(auth *bind.TransactOpts, stringValue string) ([]byte, error)
this is a helper for integration test, not used in production code
func (*EthereumRpcConnection) GetTransactionLogs ¶ added in v0.7.1
func (c *EthereumRpcConnection) GetTransactionLogs(ctx context.Context, txHash primitives.Uint256, eventSignature []byte) ([]*TransactionLog, error)
func (*EthereumRpcConnection) HeaderByNumber ¶ added in v0.7.5
type EthereumSimulator ¶
type EthereumSimulator struct {
// contains filtered or unexported fields
}
func NewEthereumSimulatorConnection ¶
func NewEthereumSimulatorConnection(logger log.BasicLogger) *EthereumSimulator
func (*EthereumSimulator) CallContract ¶ added in v0.7.1
func (*EthereumSimulator) Commit ¶ added in v0.7.1
func (es *EthereumSimulator) Commit()
func (*EthereumSimulator) DeployEthereumContract ¶ added in v0.7.1
func (c *EthereumSimulator) DeployEthereumContract(auth *bind.TransactOpts, abijson string, bytecode string, params ...interface{}) (*common.Address, *bind.BoundContract, error)
this is a helper for integration test, not used in production code
func (*EthereumSimulator) DeployEthereumContractManually ¶ added in v0.7.5
func (*EthereumSimulator) DeploySimpleStorageContract ¶ added in v0.7.1
func (c *EthereumSimulator) DeploySimpleStorageContract(auth *bind.TransactOpts, stringValue string) ([]byte, error)
this is a helper for integration test, not used in production code
func (*EthereumSimulator) GetAuth ¶
func (es *EthereumSimulator) GetAuth() *bind.TransactOpts
func (*EthereumSimulator) GetTransactionLogs ¶ added in v0.7.1
func (c *EthereumSimulator) GetTransactionLogs(ctx context.Context, txHash primitives.Uint256, eventSignature []byte) ([]*TransactionLog, error)
func (*EthereumSimulator) HeaderByNumber ¶ added in v0.7.5
type TransactionLog ¶ added in v0.7.1
type TransactionLog struct { ContractAddress []byte PackedTopics [][]byte // indexed fields Data []byte // non-indexed fields RepackedData []byte BlockNumber uint64 TxIndex uint32 }
func (*TransactionLog) PackedDataArgumentAt ¶ added in v0.7.1
TODO(v1): this assumes that in events Data every input is 32 bytes (eg. no tuples), is this always the case? [OdedW]
Click to show internal directories.
Click to hide internal directories.