Documentation
¶
Index ¶
- type AcrossDeposit
- type AcrossV3RelayData
- type ChainClient
- type EventSig
- type Listener
- func (l *Listener) FetchKeygenEvents(ctx context.Context, contractAddress common.Address, startBlock *big.Int, ...) ([]ethTypes.Log, error)
- func (l *Listener) FetchRefreshEvents(ctx context.Context, contractAddress common.Address, startBlock *big.Int, ...) (*Refresh, ethTypes.Log, error)
- func (l *Listener) UnpackRefresh(abi abi.ABI, data []byte) (*Refresh, error)
- type Refresh
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AcrossDeposit ¶
type AcrossDeposit struct {
InputToken [32]byte
OutputToken [32]byte
InputAmount *big.Int
OutputAmount *big.Int
DestinationChainId *big.Int
DepositId *big.Int
QuoteTimestamp uint32
ExclusivityDeadline uint32
FillDeadline uint32
Depositor [32]byte
Recipient [32]byte
ExclusiveRelayer [32]byte
Message []byte
}
func (*AcrossDeposit) ToV3RelayData ¶
func (a *AcrossDeposit) ToV3RelayData(originChainID *big.Int) *AcrossV3RelayData
type AcrossV3RelayData ¶
type ChainClient ¶
type ChainClient interface {
FetchEventLogs(ctx context.Context, contractAddress common.Address, event string, startBlock *big.Int, endBlock *big.Int) ([]ethTypes.Log, error)
WaitAndReturnTxReceipt(h common.Hash) (*ethTypes.Receipt, error)
LatestBlock() (*big.Int, error)
BlockByNumber(ctx context.Context, number *big.Int) (*ethTypes.Block, error)
}
type Listener ¶
type Listener struct {
// contains filtered or unexported fields
}
func NewListener ¶
func NewListener(client ChainClient) *Listener
func (*Listener) FetchKeygenEvents ¶
func (*Listener) FetchRefreshEvents ¶
Click to show internal directories.
Click to hide internal directories.