Documentation
¶
Index ¶
- Constants
- type Actor
- type BeaconEntry
- type BlockHeader
- type BlockMessages
- type ExecutionTrace
- type GasTrace
- type HeadChange
- type InvocResult
- type IpldObject
- type KeyInfo
- type KeyType
- type Loc
- type Message
- func (m *Message) Caller() address.Address
- func (m *Message) ChainLength() int
- func (m *Message) Cid() cid.Cid
- func (t *Message) MarshalCBOR(w io.Writer) error
- func (m *Message) MarshalJSON() ([]byte, error)
- func (m *Message) Receiver() address.Address
- func (m *Message) Serialize() ([]byte, error)
- func (m *Message) ToStorageBlock() (block.Block, error)
- func (t *Message) UnmarshalCBOR(r io.Reader) error
- func (m *Message) VMMessage() *Message
- type MessageReceipt
- type MessageSendSpec
- type MsgLookup
- type ObjStat
- type ParentMessage
- type RawMessage
- type SignedMessage
- type Ticket
- type TipSet
- type TipSetKey
- type Version
Constants ¶
View Source
const MessageVersion = 0
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BeaconEntry ¶
type BlockHeader ¶
type BlockHeader struct {
Miner string
Ticket *Ticket
Parents []cid.Cid
ParentWeight decimal.Decimal
Height int64
ParentStateRoot cid.Cid
ParentMessageReceipts cid.Cid
Messages cid.Cid
BLSAggregate *crypto.Signature
Timestamp uint64
BlockSig *crypto.Signature
ForkSignaling uint64
ParentBaseFee decimal.Decimal
}
type BlockMessages ¶
type BlockMessages struct {
BlsMessages []*Message `json:"BlsMessages"`
SecpkMessages []*SignedMessage `json:"SecpkMessages"`
Cids []cid.Cid `json:"Cids"`
}
type ExecutionTrace ¶
type ExecutionTrace struct {
Msg *Message
MsgRct *MessageReceipt
Error string
Duration time.Duration
GasCharges []*GasTrace
Subcalls []ExecutionTrace
}
type GasTrace ¶
type GasTrace struct {
Name string
Location []Loc `json:"loc"`
TotalGas int64 `json:"tg"`
ComputeGas int64 `json:"cg"`
StorageGas int64 `json:"sg"`
TotalVirtualGas int64 `json:"vtg"`
VirtualComputeGas int64 `json:"vcg"`
VirtualStorageGas int64 `json:"vsg"`
TimeTaken time.Duration `json:"tt"`
Extra interface{} `json:"ex,omitempty"`
}
type HeadChange ¶
type InvocResult ¶
type InvocResult struct {
Msg *Message
MsgRct *MessageReceipt
ExecutionTrace ExecutionTrace
Error string
Duration time.Duration
}
type IpldObject ¶
type Message ¶
type Message struct {
Version uint64 `json:"Version"`
To address.Address `json:"To"`
From address.Address `json:"From"`
Nonce uint64 `json:"Nonce"`
Value abi.TokenAmount `json:"Value"`
GasLimit int64 `json:"GasLimit"`
GasFeeCap abi.TokenAmount `json:"GasFeeCap"`
GasPremium abi.TokenAmount `json:"GasPremium"`
Method abi.MethodNum `json:"Method"`
Params []byte `json:"Params"`
}
func DecodeMessage ¶
func (*Message) ChainLength ¶
func (*Message) MarshalJSON ¶
type MessageReceipt ¶
type MessageSendSpec ¶
type MessageSendSpec struct {
MaxFee abi.TokenAmount `json:"MaxFee"`
}
type MsgLookup ¶
type MsgLookup struct {
Message cid.Cid // Can be different than requested, in case it was replaced, but only gas values changed
Receipt MessageReceipt
ReturnDec interface{}
TipSet TipSetKey
Height int64
}
type ParentMessage ¶
type RawMessage ¶
type RawMessage Message
type SignedMessage ¶
type SignedMessage struct {
Message Message `json:"Message"`
Signature crypto.Signature `json:"Signature"`
}
func DecodeSignedMessage ¶
func DecodeSignedMessage(data []byte) (*SignedMessage, error)
func (*SignedMessage) Cid ¶
func (sm *SignedMessage) Cid() cid.Cid
func (*SignedMessage) MarshalCBOR ¶
func (t *SignedMessage) MarshalCBOR(w io.Writer) error
func (*SignedMessage) Serialize ¶
func (sm *SignedMessage) Serialize() ([]byte, error)
func (*SignedMessage) ToStorageBlock ¶
func (sm *SignedMessage) ToStorageBlock() (block.Block, error)
func (*SignedMessage) UnmarshalCBOR ¶
func (t *SignedMessage) UnmarshalCBOR(r io.Reader) error
Click to show internal directories.
Click to hide internal directories.