Documentation ¶
Index ¶
- Variables
- func DebugPrint(msg string, value interface{})
- func FindFirstBlock(client *ethclient.Client, days int) (int64, error)
- func GetBlockHeader(client *ethclient.Client, blockNumber *big.Int) (*types.Header, error)
- func GetBlockTimestamp(client *ethclient.Client, blockNumber *big.Int) (time.Time, error)
- func GetBlockTimestamps(client *ethclient.Client, startBlock *big.Int, endBlock *big.Int) (time.Time, time.Time, error)
- func GetClient(ethURL string) (*ethclient.Client, error)
- func GetEstimatedTimestamp(startTime time.Time, endTime time.Time, startBlock *big.Int, endBlock *big.Int, ...) time.Time
- func ListenToEvents(chain *model.Chain, protocol *model.Protocol, ...)
- func ScanHistory(client *ethclient.Client, chain *model.Chain, protocol *model.Protocol, ...) error
- type AaveBorrowEvent
- type AaveLiquidationCallEvent
- func (e AaveLiquidationCallEvent) GetBorrower() common.Address
- func (e AaveLiquidationCallEvent) GetCollateralToken() common.Address
- func (e AaveLiquidationCallEvent) GetDebtToken() common.Address
- func (e AaveLiquidationCallEvent) GetLiquidator() common.Address
- func (e AaveLiquidationCallEvent) GetRepayAmount() *big.Int
- func (e AaveLiquidationCallEvent) GetSeizeAmount() *big.Int
- func (e AaveLiquidationCallEvent) String() string
- func (e AaveLiquidationCallEvent) Type() string
- type AaveRepay
- type AaveSupply
- type AaveTransferEvent
- type Borrowable
- type Chain
- type CompoundBorrowEvent
- type CompoundLiquidateBorrowEvent
- func (e CompoundLiquidateBorrowEvent) GetBorrower() common.Address
- func (e CompoundLiquidateBorrowEvent) GetCollateralToken() common.Address
- func (e CompoundLiquidateBorrowEvent) GetDebtToken() common.Address
- func (e CompoundLiquidateBorrowEvent) GetLiquidator() common.Address
- func (e CompoundLiquidateBorrowEvent) GetRepayAmount() *big.Int
- func (e CompoundLiquidateBorrowEvent) GetSeizeAmount() *big.Int
- func (e CompoundLiquidateBorrowEvent) String() string
- func (e CompoundLiquidateBorrowEvent) Type() string
- type CompoundMintEvent
- type CompoundRepayBorrowEvent
- func (e CompoundRepayBorrowEvent) GetBorrowToken() common.Address
- func (e CompoundRepayBorrowEvent) GetBorrower() common.Address
- func (e CompoundRepayBorrowEvent) GetRepayAmount() *big.Int
- func (e CompoundRepayBorrowEvent) GetRepayer() common.Address
- func (e CompoundRepayBorrowEvent) String() string
- func (e CompoundRepayBorrowEvent) Type() string
- type Depositable
- type Liquidatable
- type PossibleEvent
- type Repayable
- type ScanRequest
- type Transaction
- type Transactional
- type Typable
- type Unpacker
Constants ¶
This section is empty.
Variables ¶
View Source
var ScanChannel chan ScanRequest
Functions ¶
func DebugPrint ¶
func DebugPrint(msg string, value interface{})
func GetBlockHeader ¶
func GetBlockTimestamp ¶
func GetBlockTimestamps ¶
func GetEstimatedTimestamp ¶
func ListenToEvents ¶
Types ¶
type AaveBorrowEvent ¶
type AaveBorrowEvent struct { Reserve common.Address User common.Address OnBehalfOf common.Address Amount *big.Int InterestRateMode uint8 BorrowRate *big.Int ReferralCode *big.Int Transaction }
func (AaveBorrowEvent) GetBorrowAmount ¶
func (e AaveBorrowEvent) GetBorrowAmount() *big.Int
func (AaveBorrowEvent) GetBorrowToken ¶
func (e AaveBorrowEvent) GetBorrowToken() common.Address
func (AaveBorrowEvent) GetBorrower ¶
func (e AaveBorrowEvent) GetBorrower() common.Address
func (AaveBorrowEvent) String ¶
func (e AaveBorrowEvent) String() string
func (AaveBorrowEvent) Type ¶
func (e AaveBorrowEvent) Type() string
type AaveLiquidationCallEvent ¶
type AaveLiquidationCallEvent struct { CollateralAsset common.Address DebtAsset common.Address User common.Address DebtToCover *big.Int LiquidatedCollateralAmount *big.Int Liquidator common.Address ReceiveAToken bool Transaction }
func (AaveLiquidationCallEvent) GetBorrower ¶
func (e AaveLiquidationCallEvent) GetBorrower() common.Address
func (AaveLiquidationCallEvent) GetCollateralToken ¶
func (e AaveLiquidationCallEvent) GetCollateralToken() common.Address
func (AaveLiquidationCallEvent) GetDebtToken ¶
func (e AaveLiquidationCallEvent) GetDebtToken() common.Address
func (AaveLiquidationCallEvent) GetLiquidator ¶
func (e AaveLiquidationCallEvent) GetLiquidator() common.Address
func (AaveLiquidationCallEvent) GetRepayAmount ¶
func (e AaveLiquidationCallEvent) GetRepayAmount() *big.Int
func (AaveLiquidationCallEvent) GetSeizeAmount ¶
func (e AaveLiquidationCallEvent) GetSeizeAmount() *big.Int
func (AaveLiquidationCallEvent) String ¶
func (e AaveLiquidationCallEvent) String() string
func (AaveLiquidationCallEvent) Type ¶
func (e AaveLiquidationCallEvent) Type() string
type AaveRepay ¶
type AaveRepay struct { Reserve common.Address User common.Address Repayer common.Address Amount *big.Int UseATokens bool Transaction }
func (AaveRepay) GetBorrowToken ¶
func (AaveRepay) GetBorrower ¶
func (AaveRepay) GetRepayAmount ¶
func (AaveRepay) GetRepayer ¶
type AaveSupply ¶
type AaveSupply struct { Reserve common.Address User common.Address OnBehalfOf common.Address Amount *big.Int ReferralCode *big.Int Transaction }
func (AaveSupply) GetDepositAmount ¶
func (e AaveSupply) GetDepositAmount() *big.Int
func (AaveSupply) GetDepositToken ¶
func (e AaveSupply) GetDepositToken() common.Address
func (AaveSupply) GetDepositor ¶
func (e AaveSupply) GetDepositor() common.Address
func (AaveSupply) String ¶
func (e AaveSupply) String() string
func (AaveSupply) Type ¶
func (e AaveSupply) Type() string
type AaveTransferEvent ¶
func (AaveTransferEvent) String ¶
func (e AaveTransferEvent) String() string
func (AaveTransferEvent) Type ¶
func (e AaveTransferEvent) Type() string
type Borrowable ¶
type CompoundBorrowEvent ¶
type CompoundBorrowEvent struct { BorrowAmount *big.Int AccountBorrows *big.Int TotalBorrows *big.Int Borrower common.Address BorrowToken common.Address }
func (CompoundBorrowEvent) GetBorrowAmount ¶
func (e CompoundBorrowEvent) GetBorrowAmount() *big.Int
func (CompoundBorrowEvent) GetBorrowToken ¶
func (e CompoundBorrowEvent) GetBorrowToken() common.Address
func (CompoundBorrowEvent) GetBorrower ¶
func (e CompoundBorrowEvent) GetBorrower() common.Address
func (CompoundBorrowEvent) String ¶
func (e CompoundBorrowEvent) String() string
func (CompoundBorrowEvent) Type ¶
func (e CompoundBorrowEvent) Type() string
type CompoundLiquidateBorrowEvent ¶
type CompoundLiquidateBorrowEvent struct { SeizeTokens *big.Int RepayAmount *big.Int Liquidator common.Address Borrower common.Address CTokenCollateral common.Address DebtToken common.Address }
func (CompoundLiquidateBorrowEvent) GetBorrower ¶
func (e CompoundLiquidateBorrowEvent) GetBorrower() common.Address
func (CompoundLiquidateBorrowEvent) GetCollateralToken ¶
func (e CompoundLiquidateBorrowEvent) GetCollateralToken() common.Address
func (CompoundLiquidateBorrowEvent) GetDebtToken ¶
func (e CompoundLiquidateBorrowEvent) GetDebtToken() common.Address
func (CompoundLiquidateBorrowEvent) GetLiquidator ¶
func (e CompoundLiquidateBorrowEvent) GetLiquidator() common.Address
func (CompoundLiquidateBorrowEvent) GetRepayAmount ¶
func (e CompoundLiquidateBorrowEvent) GetRepayAmount() *big.Int
func (CompoundLiquidateBorrowEvent) GetSeizeAmount ¶
func (e CompoundLiquidateBorrowEvent) GetSeizeAmount() *big.Int
func (CompoundLiquidateBorrowEvent) String ¶
func (e CompoundLiquidateBorrowEvent) String() string
func (CompoundLiquidateBorrowEvent) Type ¶
func (e CompoundLiquidateBorrowEvent) Type() string
type CompoundMintEvent ¶
type CompoundMintEvent struct { MintAmount *big.Int MintTokens *big.Int Minter common.Address DepositToken common.Address }
func (CompoundMintEvent) GetDepositAmount ¶
func (e CompoundMintEvent) GetDepositAmount() *big.Int
func (CompoundMintEvent) GetDepositToken ¶
func (e CompoundMintEvent) GetDepositToken() common.Address
func (CompoundMintEvent) GetDepositor ¶
func (e CompoundMintEvent) GetDepositor() common.Address
func (CompoundMintEvent) String ¶
func (e CompoundMintEvent) String() string
func (CompoundMintEvent) Type ¶
func (e CompoundMintEvent) Type() string
type CompoundRepayBorrowEvent ¶
type CompoundRepayBorrowEvent struct { RepayAmount *big.Int AccountBorrows *big.Int TotalBorrows *big.Int Borrower common.Address Payer common.Address BorrowToken common.Address }
func (CompoundRepayBorrowEvent) GetBorrowToken ¶
func (e CompoundRepayBorrowEvent) GetBorrowToken() common.Address
func (CompoundRepayBorrowEvent) GetBorrower ¶
func (e CompoundRepayBorrowEvent) GetBorrower() common.Address
func (CompoundRepayBorrowEvent) GetRepayAmount ¶
func (e CompoundRepayBorrowEvent) GetRepayAmount() *big.Int
func (CompoundRepayBorrowEvent) GetRepayer ¶
func (e CompoundRepayBorrowEvent) GetRepayer() common.Address
func (CompoundRepayBorrowEvent) String ¶
func (e CompoundRepayBorrowEvent) String() string
func (CompoundRepayBorrowEvent) Type ¶
func (e CompoundRepayBorrowEvent) Type() string
type Depositable ¶
type Liquidatable ¶
type PossibleEvent ¶
type PossibleEvent struct { Borrowable Borrowable Repayable Repayable Liquidatable Liquidatable Depositable Depositable }
func UnpackAaveEvent ¶
func UnpackAaveEvent(abi abi.ABI, protocolInstance *model.ProtocolInstance, eventDefn *model.EventDefn, log types.Log) (PossibleEvent, error)
func UnpackCompoundEvent ¶
func UnpackCompoundEvent(abi abi.ABI, protocolInstance *model.ProtocolInstance, eventDefn *model.EventDefn, log types.Log) (PossibleEvent, error)
type ScanRequest ¶
type Transaction ¶
type Transaction struct {
TxHash string
}
func (Transaction) Txn ¶
func (e Transaction) Txn() string
type Transactional ¶
type Transactional interface {
Txn() string
}
Click to show internal directories.
Click to hide internal directories.