Documentation ¶
Index ¶
- Constants
- func BitLen(a Int) uint
- func Cmp(a, b Int) int
- func MsgStateToString(state MessageState) string
- func StateToString(state State) string
- type Address
- type Arguments
- type Int
- func Add(a, b Int) Int
- func Div(a, b Int) Int
- func Exp(a Int, e Int) Int
- func FromBytes(buf []byte) (Int, error)
- func FromString(s string) (Int, error)
- func Lsh(a Int, n uint) Int
- func Max(x, y Int) Int
- func Min(x, y Int) Int
- func Mod(a, b Int) Int
- func Mul(a, b Int) Int
- func MustFromString(s string) Int
- func NewFromGo(i *big.Int) Int
- func NewInt(i int64) Int
- func NewIntUnsigned(i uint64) Int
- func PositiveFromUnsignedBytes(b []byte) Int
- func Product(ints ...Int) Int
- func Rsh(a Int, n uint) Int
- func Sub(a, b Int) Int
- func Subtract(num1 Int, ints ...Int) Int
- func Sum(ints ...Int) Int
- func Zero() Int
- func (bi Int) Abs() Int
- func (bi *Int) Bytes() ([]byte, error)
- func (bi Int) Copy() Int
- func (bi Int) Equals(o Int) bool
- func (bi Int) GreaterThan(o Int) bool
- func (bi Int) GreaterThanEqual(o Int) bool
- func (bi *Int) IsZero() bool
- func (bi Int) LessThan(o Int) bool
- func (bi Int) LessThanEqual(o Int) bool
- func (bi *Int) MarshalBinary() ([]byte, error)
- func (bi *Int) MarshalJSON() ([]byte, error)
- func (bi Int) Neg() Int
- func (bi *Int) Nil() bool
- func (bi *Int) NilOrZero() bool
- func (bi *Int) Scan(value interface{}) error
- func (bi *Int) UnmarshalBinary(buf []byte) error
- func (bi *Int) UnmarshalJSON(b []byte) error
- func (bi Int) Value() (driver.Value, error)
- type Message
- type MessageState
- type MessageWithUID
- type MsgMeta
- type Node
- type NodeType
- type NonceMap
- type SendParams
- type SharedParams
- type State
- type UUID
Constants ¶
const ( ParamsJSON = "json" ParamsHex = "hex" )
const BigIntMaxSerializedLen = 128
BigIntMaxSerializedLen is the max length of a byte slice representing a CBOR serialized big.
Variables ¶
This section is empty.
Functions ¶
func MsgStateToString ¶
func MsgStateToString(state MessageState) string
func StateToString ¶
Types ¶
type Address ¶
type Address struct { ID UUID `json:"id"` Addr address.Address `json:"addr"` //max for current, use nonce and +1 Nonce uint64 `json:"nonce"` Weight int64 `json:"weight"` // number of address selection messages SelMsgNum uint64 `json:"selMsgNum"` State State `json:"state"` GasOverEstimation float64 `json:"gasOverEstimation"` MaxFee big.Int `json:"maxFee,omitempty"` MaxFeeCap big.Int `json:"maxFeeCap"` IsDeleted int `json:"isDeleted"` // 是否删除 1:是 -1:否 CreatedAt time.Time `json:"createAt"` // 创建时间 UpdatedAt time.Time `json:"updateAt"` // 更新时间 }
type Int ¶
func FromString ¶
func MustFromString ¶
MustFromString convers dec string into big integer and panics if conversion is not sucessful.
func NewIntUnsigned ¶
func PositiveFromUnsignedBytes ¶
PositiveFromUnsignedBytes interprets b as the bytes of a big-endian unsigned integer and returns a positive Int with this absolute value.
func (Int) GreaterThanEqual ¶
GreaterThanEqual returns true if bi >= o
func (Int) LessThanEqual ¶
LessThanEqual returns true if bi <= o
func (*Int) MarshalBinary ¶
func (*Int) MarshalJSON ¶
func (*Int) Scan ¶
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) UnmarshalBinary ¶
func (*Int) UnmarshalJSON ¶
type Message ¶
type Message struct { ID string UnsignedCid *cid.Cid SignedCid *cid.Cid venusTypes.UnsignedMessage Signature *crypto.Signature Height int64 Confidence int64 Receipt *venusTypes.MessageReceipt TipSetKey venusTypes.TipSetKey Meta *MsgMeta WalletName string FromUser string State MessageState CreatedAt time.Time UpdatedAt time.Time }
func FromUnsignedMessage ¶
func FromUnsignedMessage(unsignedMsg venusTypes.UnsignedMessage) *Message
type MessageState ¶
type MessageState int
const ( UnKnown MessageState = iota UnFillMsg FillMsg OnChainMsg FailedMsg ReplacedMsg NoWalletMsg )
type MessageWithUID ¶
type MessageWithUID struct { UnsignedMessage venusTypes.UnsignedMessage ID string }
type NonceMap ¶
type NonceMap struct {
// contains filtered or unexported fields
}
func NewNonceMap ¶
func NewNonceMap() *NonceMap
type SendParams ¶ added in v1.1.1
type SendParams struct { To address.Address From address.Address Val abi.TokenAmount Account string GasPremium *abi.TokenAmount GasFeeCap *abi.TokenAmount GasLimit *int64 Method abi.MethodNum Params string ParamsType string // json or hex }
type SharedParams ¶
type SharedParams struct {}
func (*SharedParams) GetMsgMeta ¶
func (sp *SharedParams) GetMsgMeta() *MsgMeta
type State ¶
type State int
const ( Alive State Removing Removed Forbiden // forbiden received message )
type UUID ¶
func (UUID) MarshalJSON ¶
func (*UUID) Scan ¶
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.