chain

package
v0.8.7 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2022 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

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

type ChainConsensusList

type ChainConsensusList []*ChainConsensus

func (ChainConsensusList) Persist

type ChainEconomics

type ChainEconomics struct {
	Height              int64  `pg:",pk,notnull,use_zero"`
	ParentStateRoot     string `pg:",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
}

Jump to

Keyboard shortcuts

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