Documentation ¶
Index ¶
- Variables
- func ConvertFromDecimals(amount *big.Float, decimals int) *big.Int
- func ConvertToDecimals(amount *big.Int, decimals int) *big.Float
- func IsValidChain(c *Chain) bool
- func MustParseABI(strABI string) abi.ABI
- func PairParseSwap(txLog types.Log) (*contract.PairSwap, error)
- func PairParseSync(txLog types.Log) (*contract.PairSync, error)
- func TokenParseApproval(txLog types.Log) (*contract.TokenApproval, error)
- func TokenParseTransfer(txLog types.Log) (*contract.TokenTransfer, error)
- type Chain
- type ChainData
Constants ¶
This section is empty.
Variables ¶
View Source
var ( PairABI abi.ABI = MustParseABI(contract.PairABI) TokenABI abi.ABI = MustParseABI(contract.TokenABI) )
Functions ¶
func IsValidChain ¶
func MustParseABI ¶
func TokenParseApproval ¶
func TokenParseApproval(txLog types.Log) (*contract.TokenApproval, error)
func TokenParseTransfer ¶
func TokenParseTransfer(txLog types.Log) (*contract.TokenTransfer, error)
Types ¶
type Chain ¶
type Chain string
func (Chain) GetBlockTime ¶
func (Chain) GetWSClient ¶
Click to show internal directories.
Click to hide internal directories.