eos

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TablePrefix = "eos"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action struct {
	ID              int64  `xorm:"id bigint autoincr pk"`
	TransactionHash string `xorm:"transaction_hash char(64) notnull index"`
	BlockNum        int64  `xorm:"block_num int index"`
	Account         string `xorm:"account char(12) notnull"`
	Name            string `xorm:"name varchar(20) notnull"`
	Authorization   string `xorm:"authorization varchar(128) notnull"`
	Data            string `xorm:"data text notnull"`
	HexData         string `xorm:"hex_data text"`
}

func (Action) TableName

func (t Action) TableName() string

type Block

type Block struct {
	ID                int64  `xorm:"id bigint autoincr pk"`
	BlockNum          int64  `xorm:"block_num int notnull unique index"`
	Hash              string `xorm:"hash char(64) notnull index"`
	Previous          string `xorm:"previous char(64) notnull"`
	Timestamp         int64  `xorm:"timestamp int notnull index"`
	TimestampISO      string `xorm:"timestampISO char(24) notnull"`
	ProducerSignature string `xorm:"producer_signature varchar(128) notnull"`
	Producer          string `xorm:"producer char(12)"`
	NewProducers      string `xorm:"new_producers text"`
	TransactionMRoot  string `xorm:"transaction_mroot char(64) notnull"`
	ActionMRoot       string `xorm:"action_mroot char(64) notnull"`
	ScheduleVersion   int64  `xorm:"schedule_version int notnull"`
	RefBlockPrefix    int64  `xorm:"ref_block_prefix bigint notnull"`
	TransactionLen    int64  `xorm:"tx_len int notnull"`
	Confirmed         int64  `xorm:"confirmed int notnull"`
}

func (Block) TableName

func (t Block) TableName() string

type Meta

type Meta struct {
	ID          int64     `xorm:"id bigint autoincr pk"`
	Name        string    `xorm:"name varchar(255) notnull unique"`
	LastID      int64     `xorm:"last_id bigint notnull"`
	Count       int64     `xorm:"count bigint notnull"`
	CreatedTime time.Time `xorm:"created_time created notnull"`
	UpdatedTime time.Time `xorm:"updated_time updated notnull"`
}

func (Meta) TableName

func (t Meta) TableName() string

type Transaction

type Transaction struct {
	ID                    int64  `xorm:"id bigint autoincr pk"`
	Hash                  string `xorm:"hash char(64) notnull index"`
	BlockNum              int64  `xorm:"block_num int index"`
	Status                string `xorm:"status varchar(24) notnull"`
	Compression           string `xorm:"compression varchar(40) notnull"`
	Expiration            string `xorm:"expiration char(24) notnull"`
	CpuUsageUs            int64  `xorm:"cpu_usage_us int notnull"`
	NetUsageWords         int64  `xorm:"net_usage_words int notnull"`
	DelaySec              int64  `xorm:"delay_sec int notnull"`
	MaxCpuUsageMs         int64  `xorm:"max_cpu_usage_ms int notnull"`
	MaxNetUsageWords      int64  `xorm:"max_net_usage_words int notnull"`
	PackedContextFreeData string `xorm:"packed_context_free_data varchar(512)"`
	PackedTrx             string `xorm:"packed_trx text"`
	RefBlockNum           int64  `xorm:"ref_block_num int notnull"`
	RefBlockPrefix        int64  `xorm:"ref_block_prefix bigint notnull"`
}

func (Transaction) TableName

func (t Transaction) TableName() string

Jump to

Keyboard shortcuts

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