Documentation ¶
Overview ¶
Package eth provides Ethereum related helper functions
Index ¶
- func GetTransactionInfo(ctx context.Context, client ethereum.TransactionReader, hash common.Hash) (pipelinedb.TxState, *types.Transaction, *types.Receipt, error)
- func TxStateFromReceipt(receipt *types.Receipt) pipelinedb.TxState
- type Auditor
- type Client
- type Payer
- func (e *Payer) CheckNonceGroup(ctx context.Context, log *zap.Logger, nonceGroup *pipelinedb.NonceGroup, ...) (pipelinedb.TxState, []*pipelinedb.TxStatus, error)
- func (e *Payer) CheckPreconditions(ctx context.Context) (unmet []string, err error)
- func (e *Payer) CreateRawTransaction(ctx context.Context, log *zap.Logger, payouts []*pipelinedb.Payout, ...) (_ payer.Transaction, _ common.Address, err error)
- func (e *Payer) EstimatedGasFee(ctx context.Context) (*big.Int, error)
- func (e *Payer) GetTokenBalance(ctx context.Context) (*big.Int, error)
- func (e *Payer) GetTokenDecimals(ctx context.Context) (int32, error)
- func (e *Payer) NextNonce(ctx context.Context) (uint64, error)
- func (e *Payer) PrintEstimate(ctx context.Context, remaining int64) error
- func (e *Payer) SendTransaction(ctx context.Context, log *zap.Logger, t payer.Transaction) error
- func (e *Payer) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTransactionInfo ¶
func TxStateFromReceipt ¶
func TxStateFromReceipt(receipt *types.Receipt) pipelinedb.TxState
Types ¶
type Auditor ¶
type Auditor struct {
// contains filtered or unexported fields
}
Auditor audits eth transactions.
func NewAuditor ¶
func (*Auditor) CheckConfirmedTransactionState ¶
func (*Auditor) CheckTransactionState ¶
type Client ¶
type Client interface { bind.ContractBackend ethereum.ChainReader ethereum.ChainStateReader ethereum.PendingStateReader ethereum.TransactionReader }
type Payer ¶
type Payer struct {
// contains filtered or unexported fields
}
func (*Payer) CheckNonceGroup ¶
func (e *Payer) CheckNonceGroup(ctx context.Context, log *zap.Logger, nonceGroup *pipelinedb.NonceGroup, checkOnly bool) (pipelinedb.TxState, []*pipelinedb.TxStatus, error)
func (*Payer) CheckPreconditions ¶
func (*Payer) CreateRawTransaction ¶
func (*Payer) EstimatedGasFee ¶
func (*Payer) GetTokenBalance ¶
func (*Payer) GetTokenDecimals ¶
func (*Payer) PrintEstimate ¶
func (*Payer) SendTransaction ¶
Click to show internal directories.
Click to hide internal directories.