entities

package
v0.0.0-...-2d7adcb Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: MIT Imports: 3 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 {
	Id            int            `gorm:"primaryKey"`
	BlockNumber   int            `gorm:"type:integer"`
	Factory       string         `gorm:"type:varchar(42)"`
	Address       string         `gorm:"type:varchar(42)"`
	Token0        string         `gorm:"type:varchar(42)"`
	Token1        string         `gorm:"type:varchar(42)"`
	FactoryCommon common.Address `gorm:"-"`
	AddressCommon common.Address `gorm:"-"`
	Token0Common  common.Address `gorm:"-"`
	Token1Common  common.Address `gorm:"-"`
}

func (*Pool) AfterFind

func (e *Pool) AfterFind(_ *gorm.DB) (err error)

type Reserves

type Reserves struct {
	Reserve0  *uint256.Int
	Reserve1  *uint256.Int
	LastBlock uint64
	LastIndex uint
}

Jump to

Keyboard shortcuts

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