models

package
v0.0.0-...-efd78f8 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2023 License: MIT Imports: 1 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 {
	gorm.Model
	PoolAddress string     `gorm:"type:text;"`
	PoolData    []PoolData `gorm:"foreignKey:PoolID"`
}

type PoolData

type PoolData struct {
	gorm.Model
	PoolID        uint   `gorm:"uniqueIndex:idx_pool_block"`
	BlockNumber   int64  `gorm:"uniqueIndex:idx_pool_block;type:integer;"`
	Token0Balance string `gorm:"type:text;"`
	Token1Balance string `gorm:"type:text;"`
	Tick          string `gorm:"type:text;"`
	Token0Delta   string `gorm:"type:text;"`
	Token1Delta   string `gorm:"type:text;"`
}

Jump to

Keyboard shortcuts

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