domain

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2021 License: MIT Imports: 2 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {
	ID      uint64 `json:"id" pg:",pk"`
	Address string `json:"address" pg:",unique; type:varchar(64)"`
}

type AddressLiquidityPool added in v1.3.0

type AddressLiquidityPool struct {
	LiquidityPoolId uint64 `json:"liquidity_pool_id" pg:",pk"`
	AddressId       uint64 `json:"address_id"        pg:",pk"`
	Liquidity       string `json:"liquidity"`
}

type Balance

type Balance struct {
	AddressID uint64 `json:"address_id" pg:",pk"`
	CoinID    uint64 `json:"coin_id"    pg:",pk,use_zero"`
	Value     string `json:"value"      pg:"type:numeric(70)"`
}

type Coin

type Coin struct {
	ID             uint     `json:"id"  pg:",use_zero"`
	Type           CoinType `json:"type"`
	Name           string   `json:"name"`
	Symbol         string   `json:"symbol"`
	Volume         string   `json:"volume"`
	Crr            uint     `json:"crr"`
	Reserve        string   `json:"reserve"`
	MaxSupply      string   `json:"max_supply"`
	Version        uint     `json:"version"    pg:",use_zero"`
	OwnerAddressId uint     `json:"owner_address"`
}

type CoinType added in v1.2.8

type CoinType byte
const (
	CoinTypeBase CoinType
	CoinTypeToken
	CoinTypePoolToken
)

type LiquidityPool added in v1.3.0

type LiquidityPool struct {
	Id               uint64 `json:"id"`
	TokenId          uint64 `json:"token_id"`
	FirstCoinId      uint64 `json:"first_coin_id"  pg:",use_zero"`
	SecondCoinId     uint64 `json:"second_coin_id" pg:",use_zero"`
	FirstCoinVolume  string `json:"first_coin_volume"`
	SecondCoinVolume string `json:"second_coin_volume"`
	Liquidity        string `json:"liquidity"`
}

func (*LiquidityPool) GetTokenSymbol added in v1.3.0

func (lp *LiquidityPool) GetTokenSymbol() string

type Stake

type Stake struct {
	ID             uint   `json:"id"               pg:",pk"`
	OwnerAddressID uint64 `json:"owner_address_id"`
	ValidatorID    uint   `json:"validator_id"`
	CoinID         uint64 `json:"coin_id"          pg:",use_zero"`
	Value          string `json:"value"            pg:"type:numeric(70)"`
	BipValue       string `json:"bip_value"        pg:"type:numeric(70)"`
}

type Unbond

type Unbond struct {
	BlockId     uint   `json:"block_id"`
	AddressId   uint   `json:"address_id"`
	CoinId      uint   `json:"coin_id" pg:",use_zero"`
	ValidatorId uint   `json:"validator_id"`
	Value       string `json:"value"`
}

type Validator

type Validator struct {
	ID                   uint       `json:"id" pg:",pk"`
	RewardAddressID      *uint64    `json:"reward_address_id"`
	OwnerAddressID       *uint64    `json:"owner_address_id"`
	CreatedAtBlockID     *uint64    `json:"created_at_block_id"`
	Status               *uint8     `json:"status"`
	PublicKey            string     `json:"public_key"  pg:"type:varchar(64)"`
	Commission           *uint64    `json:"commission"`
	TotalStake           *string    `json:"total_stake"   pg:"type:numeric(70)"`
	Name                 *string    `json:"name"`
	SiteUrl              *string    `json:"site_url"`
	IconUrl              *string    `json:"icon_url"`
	Description          *string    `json:"description"`
	MetaUpdatedAtBlockID *uint64    `json:"meta_updated_at_block_id"`
	UpdateAt             *time.Time `json:"update_at"`
}

type ValidatorPublicKeys

type ValidatorPublicKeys struct {
	ID          uint       `json:"id"  pg:",pk"`
	ValidatorId uint       `json:"validator_id"`
	Key         string     `json:"key" pg:"type:varchar(64)"`
	CreatedAt   *time.Time `json:"created_at"`
	UpdateAt    *time.Time `json:"update_at"`
}

Jump to

Keyboard shortcuts

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