model

package
v0.0.0-...-1567bb8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pool

type Pool struct {
	ContractAddress common.Address `json:"contract_address"`
	TokenLeft       common.Address `json:"token_left"`
	TokenRight      common.Address `json:"token_right"`
	Fee             *big.Int       `json:"fee"`
}

type PoolMetric

type PoolMetric struct {
	Timestamp            time.Time               `json:"timestamp"`
	ContractAddress      common.MixedcaseAddress `json:"contract_address"`
	TotalValueLocked     decimal.Decimal         `json:"total_value_locked"`
	Volume               decimal.Decimal         `json:"volume"`
	Fee                  decimal.Decimal         `json:"fee"`
	AnnualPercentageRate string                  `json:"annual_percentage_rate"`
}

type Token

type Token struct {
	Name            string         `json:"name"`
	Symbol          string         `json:"symbol"`
	Decimals        uint8          `json:"decimals"`
	ContractAddress common.Address `json:"contract_address"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL