model

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChainInfo

type ChainInfo struct {
	bun.BaseModel `bun:"table:meta.chain_info"`

	ID        int64  `bun:"id,pk,autoincrement"`
	ChainName string `bun:"chain_name"`
	Mainnet   bool   `bun:"mainnet"`
	ChainID   string `bun:"chain_id"`
}

func (ChainInfo) String

func (ci ChainInfo) String() string

type IndexPointer

type IndexPointer struct {
	bun.BaseModel `bun:"table:meta.index_pointer"`

	ID          int64  `bun:"id,pk,autoincrement"`
	ChainInfoID int64  `bun:"chain_info_id,pk,notnull"`
	IndexName   string `bun:"index_name"`
	Pointer     int64  `bun:"pointer,notnull"`
}

func (IndexPointer) String

func (ip IndexPointer) String() string

type ValidatorInfo

type ValidatorInfo struct {
	bun.BaseModel `bun:"table:meta.validator_info"`

	ID              int64  `bun:"id,pk,autoincrement"`
	ChainInfoID     int64  `bun:"chain_info_id,pk,notnull"`
	HexAddress      string `bun:"hex_address,unique:uniq_hex_address_by_chain"`
	OperatorAddress string `bun:"operator_address,unique:uniq_operator_address_by_chain"`
	Moniker         string `bun:"moniker"`
}

func (ValidatorInfo) String

func (vi ValidatorInfo) String() string

Jump to

Keyboard shortcuts

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