Documentation ¶
Overview ¶
Package zksyncera implements transfer operation on ZkSync Era network.
Index ¶
- type Auditor
- type Payer
- func (p *Payer) CheckNonceGroup(ctx context.Context, log *zap.Logger, nonceGroup *pipelinedb.NonceGroup, ...) (pipelinedb.TxState, []*pipelinedb.TxStatus, error)
- func (p *Payer) CheckPreconditions(ctx context.Context) ([]string, error)
- func (p *Payer) CreateRawTransaction(ctx context.Context, log *zap.Logger, payouts []*pipelinedb.Payout, ...) (tx payer.Transaction, from common.Address, err error)
- func (p *Payer) GetTokenBalance(ctx context.Context) (*big.Int, error)
- func (p *Payer) GetTokenDecimals(ctx context.Context) (int32, error)
- func (p *Payer) NextNonce(ctx context.Context) (uint64, error)
- func (p *Payer) PrintEstimate(ctx context.Context, remaining int64) error
- func (p *Payer) SendTransaction(ctx context.Context, log *zap.Logger, tx payer.Transaction) error
- func (p *Payer) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auditor ¶
type Auditor struct {
// contains filtered or unexported fields
}
func NewAuditor ¶
func (*Auditor) CheckConfirmedTransactionState ¶
func (a *Auditor) CheckConfirmedTransactionState(ctx context.Context, hash string) (pipelinedb.TxState, error)
CheckConfirmedTransactionState checks the state from the confirmation receipt.
func (*Auditor) CheckTransactionState ¶
func (a *Auditor) CheckTransactionState(ctx context.Context, hash string) (pipelinedb.TxState, error)
CheckTransactionState checks the transaction state of any transaction.
type Payer ¶
type Payer struct {
// contains filtered or unexported fields
}
func (*Payer) CheckNonceGroup ¶
func (p *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) GetTokenBalance ¶
func (*Payer) GetTokenDecimals ¶
func (*Payer) PrintEstimate ¶
func (*Payer) SendTransaction ¶
Click to show internal directories.
Click to hide internal directories.