indexer

package
v0.0.0-...-5cadadf Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 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 ChainModel

type ChainModel struct {
	ChainId string `json:"chainId" gorm:"not null;index:;index:,unique,composite:chain_id_address_key"`
	Address string `json:"address" gorm:"not null;index:;index:,unique,composite:chain_id_address_key"`
}

type LatestPool

type LatestPool struct {
	*gorm.Model
	ChainModel
	Height       uint64 `json:"height"`
	Asset0       string `json:"asset0" gorm:"index"`
	Asset0Amount string `json:"asset0Amount"`
	Asset1       string `json:"asset1" gorm:"index"`
	Asset1Amount string `json:"asset1Amount"`
	Lp           string `json:"lp" gorm:"index"`
	LpAmount     string `json:"lpAmount"`
}

type Token

type Token struct {
	*gorm.Model
	ChainModel
	Protocol string `json:"protocol"`
	Symbol   string `json:"symbol"`
	Name     string `json:"name"`
	Decimals uint8  `json:"decimals"`
	Icon     string `json:"icon"`
	Verified bool   `json:"verified" gorm:"not null;default:false"`
}

Jump to

Keyboard shortcuts

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