mtypes

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: MIT Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UndefDBCid = DBCid{}

Functions

This section is empty.

Types

type DBCid

type DBCid cid.Cid

func NewDBCid

func NewDBCid(id cid.Cid) DBCid

func (DBCid) Cid

func (c DBCid) Cid() cid.Cid

func (*DBCid) Scan

func (c *DBCid) Scan(value interface{}) error

func (DBCid) String

func (c DBCid) String() string

func (DBCid) Value

func (c DBCid) Value() (driver.Value, error)

type Int

type Int struct {
	*big.Int
}

func NewFromGo

func NewFromGo(i *big.Int) Int

func NewInt

func NewInt(i int64) Int

func SafeFromGo

func SafeFromGo(i *big.Int) Int

func (*Int) Scan

func (bi *Int) Scan(value interface{}) error

Scan assigns a value from a database driver. An error should be returned if the value cannot be stored without loss of information.

Reference types such as []byte are only valid until the next call to Scan and should not be retained. Their underlying memory is owned by the driver. If retention is necessary, copy their values before the next call to Scan.

func (Int) Value

func (bi Int) Value() (driver.Value, error)

Value implement sql.Scanner

type MsgMeta

type MsgMeta struct {
	ExpireEpoch       abi.ChainEpoch `gorm:"column:expire_epoch;type:bigint;NOT NULL"`
	GasOverEstimation float64        `gorm:"column:gas_over_estimation;type:decimal(10,2)"`

	// todo set GasOverEstimation not null after https://github.com/go-gorm/sqlite/issues/121
	// GasOverEstimation float64        `gorm:"column:gas_over_estimation;type:decimal(10,2);NOT NULL"`
	MaxFee         Int     `gorm:"column:max_fee;type:varchar(256);default:0"`
	GasOverPremium float64 `gorm:"column:gas_over_premium;type:decimal(10,2);"`
}

func FromMeta

func FromMeta(srcMeta *types.SendSpec) *MsgMeta

func (*MsgMeta) Meta

func (meta *MsgMeta) Meta() *types.SendSpec

Jump to

Keyboard shortcuts

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