Documentation ¶
Index ¶
- func DefaultOption() *option
- type ETHClient
- func (cl *ETHClient) DetectBesuConsensusType() (chains.ConsensusType, error)
- func (cl ETHClient) GetProof(address common.Address, storageKeys [][]byte, blockNumber *big.Int) (*StateProof, error)
- func (cl *ETHClient) GetTransactionReceipt(ctx context.Context, txHash common.Hash) (*gethtypes.Receipt, bool, error)
- func (cl *ETHClient) WaitForReceiptAndGet(ctx context.Context, tx *gethtypes.Transaction) (*gethtypes.Receipt, error)
- type ErrorsRepository
- type Option
- type Receipt
- type StateProof
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultOption ¶ added in v0.2.0
func DefaultOption() *option
Types ¶
type ETHClient ¶
func NewETHClient ¶
func NewETHClient(endpoint string, erepo ErrorsRepository, opts ...Option) (*ETHClient, error)
func (*ETHClient) DetectBesuConsensusType ¶ added in v0.3.29
func (cl *ETHClient) DetectBesuConsensusType() (chains.ConsensusType, error)
func (*ETHClient) GetTransactionReceipt ¶ added in v0.2.0
func (*ETHClient) WaitForReceiptAndGet ¶ added in v0.2.0
type ErrorsRepository ¶ added in v0.3.25
type ErrorsRepository struct {
// contains filtered or unexported fields
}
func NewErrorsRepository ¶ added in v0.3.25
func NewErrorsRepository() ErrorsRepository
func (*ErrorsRepository) GetError ¶ added in v0.3.25
func (r *ErrorsRepository) GetError(sel [4]byte) (abi.Error, bool)
func (*ErrorsRepository) ParseError ¶ added in v0.3.25
func (r *ErrorsRepository) ParseError(bz []byte) (abi.Error, interface{}, error)
type Option ¶ added in v0.2.0
type Option func(*option)
func WithRetryOption ¶ added in v0.2.0
func WithRetryOption(rops ...retry.Option) Option
type Receipt ¶
type Receipt struct { // Consensus fields: These fields are defined by the Yellow Paper Type uint8 `json:"type,omitempty"` PostState []byte `json:"root"` Status uint64 `json:"status"` CumulativeGasUsed uint64 `json:"cumulativeGasUsed" gencodec:"required"` Bloom gethtypes.Bloom `json:"logsBloom" gencodec:"required"` Logs []*gethtypes.Log `json:"logs" gencodec:"required"` // Implementation fields: These fields are added by geth when processing a transaction. TxHash common.Hash `json:"transactionHash" gencodec:"required"` ContractAddress common.Address `json:"contractAddress"` GasUsed uint64 `json:"gasUsed" gencodec:"required"` EffectiveGasPrice *big.Int `json:"effectiveGasPrice"` // Inclusion information: These fields provide information about the inclusion of the // transaction corresponding to this receipt. BlockHash common.Hash `json:"blockHash,omitempty"` BlockNumber *big.Int `json:"blockNumber,omitempty"` TransactionIndex uint `json:"transactionIndex"` RevertReason hexutil.Bytes `json:"revertReason,omitempty"` }
Receipt definition from geth v1.11.6 Modified to add RevertReason field Receipt represents the results of a transaction.
func (Receipt) GetGethReceipt ¶ added in v0.3.12
func (Receipt) HasRevertReason ¶ added in v0.2.0
func (*Receipt) UnmarshalJSON ¶ added in v0.3.12
UnmarshalJSON unmarshals from JSON.
Click to show internal directories.
Click to hide internal directories.