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) DeploySimpleStorageContract(auth *bind.TransactOpts, stringValue string) ([]byte, error)
- func (c *EthereumRpcConnection) GetTransactionLogs(ctx context.Context, txHash primitives.Uint256, eventSignature []byte) ([]*TransactionLog, 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) 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)
- 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 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)
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)
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)
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)
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 }
func (*TransactionLog) PackedDataArgumentAt ¶ added in v0.7.1
func (l *TransactionLog) PackedDataArgumentAt(index int) ([]byte, error)
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.