Documentation ¶
Index ¶
- func AddressStateToString(state AddressState) string
- func MessageStateToString(state MessageState) string
- type Address
- type AddressSpec
- type AddressState
- type Message
- type MessageState
- type MessageWithUID
- type Node
- type NodeType
- type QuickSendParams
- type QuickSendParamsCodec
- type ReplacMessageParams
- type SendSpec
- type SharedSpec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddressStateToString ¶
func AddressStateToString(state AddressState) string
func MessageStateToString ¶
func MessageStateToString(state MessageState) string
Types ¶
type Address ¶
type Address struct { ID types.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 AddressState `json:"state"` GasOverEstimation float64 `json:"gasOverEstimation"` MaxFee big.Int `json:"maxFee,omitempty"` GasFeeCap big.Int `json:"gasFeeCap"` GasOverPremium float64 `json:"gasOverPremium"` BaseFee big.Int `json:"baseFee"` IsDeleted int `json:"isDeleted"` // 是否删除 1:是 -1:否 CreatedAt time.Time `json:"createAt"` // 创建时间 UpdatedAt time.Time `json:"updateAt"` // 更新时间 }
type AddressSpec ¶ added in v1.8.0
type AddressState ¶
type AddressState int
const ( AddressStateAlive AddressState AddressStateRemoving AddressStateRemoved AddressStateForbbiden // forbbiden received message )
func (AddressState) String ¶
func (as AddressState) String() string
type Message ¶
type Message struct { ID string UnsignedCid *cid.Cid SignedCid *cid.Cid shared.Message Signature *crypto.Signature Height int64 Confidence int64 Receipt *shared.MessageReceipt TipSetKey shared.TipSetKey Meta *SendSpec WalletName string State MessageState // Error is set if the message failed to fill ErrorMsg string CreatedAt time.Time UpdatedAt time.Time }
func FromUnsignedMessage ¶
func (*Message) MarshalJSON ¶
todo ignore use message MarshalJSON method
type MessageState ¶
type MessageState int
const ( UnKnown MessageState = iota UnFillMsg FillMsg OnChainMsg FailedMsg NonceConflictMsg )
func (MessageState) String ¶
func (mst MessageState) String() string
type MessageWithUID ¶
type QuickSendParams ¶
type QuickSendParams 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 QuickSendParamsCodec // json or hex }
type QuickSendParamsCodec ¶
type QuickSendParamsCodec string
const ( QuickSendParamsCodecJSON QuickSendParamsCodec = "json" QuickSendParamsCodecHex QuickSendParamsCodec = "hex" )
type ReplacMessageParams ¶ added in v1.6.1
type ReplacMessageParams struct { ID string Auto bool MaxFee abi.TokenAmount GasLimit int64 GasPremium abi.TokenAmount GasFeecap abi.TokenAmount GasOverPremium float64 }
type SharedSpec ¶
type SharedSpec struct {}
func (*SharedSpec) GetSendSpec ¶
func (ss *SharedSpec) GetSendSpec() *SendSpec
Click to show internal directories.
Click to hide internal directories.