chain

package
v0.20.2 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2024 License: Apache-2.0, MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChainConsensus

type ChainConsensus struct {
	Height          int64  `pg:",pk,notnull,use_zero"`
	ParentStateRoot string `pg:",pk,notnull"`
	ParentTipSet    string `pg:",pk,notnull"`
	TipSet          string
}

func (ChainConsensus) Persist

type ChainConsensusList

type ChainConsensusList []*ChainConsensus

func (ChainConsensusList) Persist

type ChainEconomics

type ChainEconomics struct {
	Height              int64  `pg:",pk,notnull,use_zero"`
	ParentStateRoot     string `pg:",pk,notnull"`
	CirculatingFil      string `pg:"type:numeric,notnull"`
	VestedFil           string `pg:"type:numeric,notnull"`
	MinedFil            string `pg:"type:numeric,notnull"`
	BurntFil            string `pg:"type:numeric,notnull"`
	LockedFil           string `pg:"type:numeric,notnull"`
	FilReserveDisbursed string `pg:"type:numeric,notnull"`
	// contains filtered or unexported fields
}

func (*ChainEconomics) AsVersion

func (c *ChainEconomics) AsVersion(version model.Version) (interface{}, bool)

func (*ChainEconomics) Persist

func (c *ChainEconomics) Persist(ctx context.Context, s model.StorageBatch, version model.Version) error

type ChainEconomicsList

type ChainEconomicsList []*ChainEconomics

func (ChainEconomicsList) Persist

type ChainEconomicsV0

type ChainEconomicsV0 struct {
	ParentStateRoot string `pg:",notnull"`
	CirculatingFil  string `pg:",notnull"`
	VestedFil       string `pg:",notnull"`
	MinedFil        string `pg:",notnull"`
	BurntFil        string `pg:",notnull"`
	LockedFil       string `pg:",notnull"`
	// contains filtered or unexported fields
}

type ChainEconomicsV2 added in v0.20.2

type ChainEconomicsV2 struct {
	Height              int64  `pg:",pk,notnull,use_zero"`
	ParentStateRoot     string `pg:",pk,notnull"`
	CirculatingFilV2    string `pg:"type:numeric,notnull"`
	VestedFil           string `pg:"type:numeric,notnull"`
	MinedFil            string `pg:"type:numeric,notnull"`
	BurntFil            string `pg:"type:numeric,notnull"`
	LockedFilV2         string `pg:"type:numeric,notnull"`
	FilReserveDisbursed string `pg:"type:numeric,notnull"`
	// contains filtered or unexported fields
}

func (*ChainEconomicsV2) Persist added in v0.20.2

type ChainEconomicsV2List added in v0.20.2

type ChainEconomicsV2List []*ChainEconomicsV2

func (ChainEconomicsV2List) Persist added in v0.20.2

Jump to

Keyboard shortcuts

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