Documentation
¶
Index ¶
- Constants
- 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)
- func (c *EthereumRpcConnection) ReportConnectionStatus(ctx context.Context)
- func (c *EthereumRpcConnection) SyncProgress() (*ethereum.SyncProgress, 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)
- func (c *EthereumSimulator) SyncProgress() (*ethereum.SyncProgress, error)
- type TransactionLog
Constants ¶
View Source
const ARBITRARY_TXHASH = "0xb41e0591756bd1331de35eac3e3da460c9b3503d10e7bf08b84f057f489cd189"
View Source
const STATUS_FAILED = "failed"
View Source
const STATUS_IN_PROGRESS = "in-progress"
View Source
const STATUS_SUCCESS = "success"
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 { govnr.TreeSupervisor // contains filtered or unexported fields }
func NewEthereumRpcConnection ¶ added in v0.7.1
func NewEthereumRpcConnection(config ethereumAdapterConfig, logger log.Logger, registry metric.Registry) *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
func (*EthereumRpcConnection) ReportConnectionStatus ¶ added in v0.7.11
func (c *EthereumRpcConnection) ReportConnectionStatus(ctx context.Context)
func (*EthereumRpcConnection) SyncProgress ¶ added in v0.7.11
func (c *EthereumRpcConnection) SyncProgress() (*ethereum.SyncProgress, error)
type EthereumSimulator ¶
type EthereumSimulator struct {
// contains filtered or unexported fields
}
func NewEthereumSimulatorConnection ¶
func NewEthereumSimulatorConnection(logger log.Logger) *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
func (*EthereumSimulator) SyncProgress ¶ added in v0.7.11
func (c *EthereumSimulator) SyncProgress() (*ethereum.SyncProgress, error)
Click to show internal directories.
Click to hide internal directories.