Documentation ¶
Index ¶
- func ChainStrings() []string
- type Chain
- func (i Chain) IsAChain() bool
- func (i Chain) MarshalJSON() ([]byte, error)
- func (i Chain) MarshalText() ([]byte, error)
- func (i *Chain) Scan(value interface{}) error
- func (i Chain) String() string
- func (i *Chain) UnmarshalJSON(data []byte) error
- func (i *Chain) UnmarshalText(text []byte) error
- func (i Chain) Value() (driver.Value, error)
- type CrawlResult
- type EvmConfig
- type Routes
- type SwapLogData
- type TokenBalance
- type TokenContractInfo
- type Tradelog
- type TransferLogData
- type Transferlog
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChainStrings ¶
func ChainStrings() []string
ChainStrings returns a slice of all String values of the enum
Types ¶
type Chain ¶
type Chain uint64
enumer -type=Chain -linecomment -json=true -text=true -sql=true
func ChainString ¶
ChainString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
func (Chain) IsAChain ¶
IsAChain returns "true" if the value is listed in the enum definition. "false" otherwise
func (Chain) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface for Chain
func (Chain) MarshalText ¶
MarshalText implements the encoding.TextMarshaler interface for Chain
func (*Chain) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface for Chain
func (*Chain) UnmarshalText ¶
UnmarshalText implements the encoding.TextUnmarshaler interface for Chain
type CrawlResult ¶
type CrawlResult struct {
Trades []Tradelog `json:"trades"`
}
CrawlResult is result of the crawl
type Routes ¶
type Routes struct { LogIndex uint `json:"log_index"` TokenInAddress ethereum.Address `json:"token_in_address"` TokenInAmount float64 `json:"token_in_amount"` TokenInUsdtRate float64 `json:"token_in_usdt_rate"` AmountIn *big.Int `json:"-"` TokenOutAddress ethereum.Address `json:"token_out_address"` TokenOutAmount float64 `json:"token_out_amount"` TokenOutUsdtRate float64 `json:"token_out_usdt_rate"` AmountOut *big.Int `json:"-"` Exchange ethereum.Address `json:"exchange"` }
type SwapLogData ¶
type TokenBalance ¶
human-friendly
type TokenContractInfo ¶
type Tradelog ¶
type Tradelog struct { BlockTimestamp time.Time `json:"timestamp"` BlockNumber uint64 `json:"block_number"` TxIndex uint `json:"tx_index"` TxHash ethereum.Hash `json:"tx_hash"` Sender ethereum.Address `json:"sender"` TokenInAddress ethereum.Address `json:"token_in_address"` TokenInAmount float64 `json:"token_in_amount"` AmountIn *big.Int TokenInUsdtRate float64 `json:"token_in_usdt_rate"` TokenOutAddress ethereum.Address `json:"token_out_address"` TokenOutAmount float64 `json:"token_out_amount"` AmountOut *big.Int TokenOutUsdtRate float64 `json:"token_out_usdt_rate"` Routes []byte `json:"routes"` NativeTokenUsdtRate float64 `json:"native_token_usdt_rate"` }
type TransferLogData ¶
type Transferlog ¶
type Transferlog struct { BlockTimestamp time.Time `json:"timestamp"` BlockNumber uint64 `json:"block_number"` TxIndex uint `json:"tx_index"` TxHash ethereum.Hash `json:"tx_hash"` FromAddress ethereum.Address `json:"from_address"` ToAddress ethereum.Address `json:"to_address"` TokenAddress ethereum.Address `json:"token_in_address"` TokenAmount float64 `json:"token_in_amount"` IsCexIn bool `json:"is_cex_in"` Exchange ethereum.Address `json:"exchange"` }