Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockMessage ¶
type BlockMessage struct { Height int64 `pg:",pk,notnull,use_zero"` Block string `pg:",pk,notnull"` Message string `pg:",pk,notnull"` }
func (*BlockMessage) PersistWithTx ¶
func (bm *BlockMessage) PersistWithTx(ctx context.Context, tx *pg.Tx) error
type BlockMessages ¶
type BlockMessages []*BlockMessage
func (BlockMessages) PersistWithTx ¶
func (bms BlockMessages) PersistWithTx(ctx context.Context, tx *pg.Tx) error
type Message ¶
type Message struct { Height int64 `pg:",pk,notnull,use_zero"` Cid string `pg:",pk,notnull"` From string `pg:",notnull"` To string `pg:",notnull"` Value string `pg:",notnull"` GasFeeCap string `pg:",notnull"` GasPremium string `pg:",notnull"` GasLimit int64 `pg:",use_zero"` SizeBytes int `pg:",use_zero"` Nonce uint64 `pg:",use_zero"` Method uint64 `pg:",use_zero"` }
type MessageGasEconomy ¶ added in v0.3.0
type MessageGasEconomy struct { Height int64 `pg:",pk,notnull,use_zero"` StateRoot string `pg:",pk,notnull"` BaseFee float64 `pg:",use_zero"` BaseFeeChangeLog float64 `pg:",use_zero"` GasLimitTotal int64 `pg:",use_zero"` GasLimitUniqueTotal int64 `pg:",use_zero"` GasFillRatio float64 `pg:",use_zero"` GasCapacityRatio float64 `pg:",use_zero"` GasWasteRatio float64 `pg:",use_zero"` // contains filtered or unexported fields }
func (*MessageGasEconomy) PersistWithTx ¶ added in v0.3.0
func (g *MessageGasEconomy) PersistWithTx(ctx context.Context, tx *pg.Tx) error
type MessageTaskResult ¶
type MessageTaskResult struct { Messages Messages ParsedMessages ParsedMessages BlockMessages BlockMessages Receipts Receipts MessageGasEconomy *MessageGasEconomy }
func (*MessageTaskResult) Persist ¶
func (mtr *MessageTaskResult) Persist(ctx context.Context, db *pg.DB) error
func (*MessageTaskResult) PersistWithTx ¶
func (mtr *MessageTaskResult) PersistWithTx(ctx context.Context, tx *pg.Tx) error
type ParsedMessage ¶ added in v0.3.0
type ParsedMessage struct { Height int64 `pg:",pk,notnull,use_zero"` Cid string `pg:",pk,notnull"` From string `pg:",notnull"` To string `pg:",notnull"` Value string `pg:",notnull"` Method string `pg:",notnull"` Params string `pg:",type:jsonb,notnull"` }
func (*ParsedMessage) PersistWithTx ¶ added in v0.3.0
func (bm *ParsedMessage) PersistWithTx(ctx context.Context, tx *pg.Tx) error
type ParsedMessages ¶ added in v0.3.0
type ParsedMessages []*ParsedMessage
func (ParsedMessages) PersistWithTx ¶ added in v0.3.0
func (pms ParsedMessages) PersistWithTx(ctx context.Context, tx *pg.Tx) error
Click to show internal directories.
Click to hide internal directories.