entities

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BalanceSourceType

type BalanceSourceType string
const (
	AssetPoolBalanceType                  BalanceSourceType = "ASSET_POOL"
	PartiesTotalBalanceType               BalanceSourceType = "PARTIES_TOTAL"
	UnrealisedWithdrawalsTotalBalanceType BalanceSourceType = "UNREALISED_WITHDRAWALS_TOTAL"
)

func (BalanceSourceType) IsValid

func (n BalanceSourceType) IsValid() error

type BlockSigner

type BlockSigner struct {
	VegaTime time.Time                         `db:"vega_time"`
	Role     BlockSignerRole                   `db:"role"`
	TmPubKey vega_entities.TendermintPublicKey `db:"tendermint_pub_key"`
}

type BlockSignerRole

type BlockSignerRole string
const (
	BlockSignerRoleProposer BlockSignerRole = "ROLE_PROPOSER"
	BlockSignerRoleSigner   BlockSignerRole = "ROLE_SIGNER"
)

func (BlockSignerRole) IsValid

func (n BlockSignerRole) IsValid() error

type MetaMonitoringStatusCheck added in v0.6.0

type MetaMonitoringStatusCheck struct {
	CheckName  string
	IsHealthy  int32
	LastUpdate *time.Time
}

type NetworkBalance

type NetworkBalance struct {
	BalanceTime             time.Time
	AssetEthereumHexAddress string
	BalanceSource           BalanceSourceType
	Balance                 decimal.Decimal
}

func NewAssetPoolBalance

func NewAssetPoolBalance(time time.Time, assetHexAddress string, balance decimal.Decimal) NetworkBalance

type TendermintAddress

type TendermintAddress string

func (*TendermintAddress) Bytes

func (pk *TendermintAddress) Bytes() ([]byte, error)

func (TendermintAddress) EncodeBinary

func (pk TendermintAddress) EncodeBinary(ci *pgtype.ConnInfo, buf []byte) ([]byte, error)

func (*TendermintAddress) String

func (pk *TendermintAddress) String() string

Jump to

Keyboard shortcuts

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