types

package
v0.0.6-0...-3c1b1dd Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2020 License: Apache-2.0, MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplyMessageResult

type ApplyMessageResult struct {
	Msg     Message
	Receipt MessageReceipt
	Penalty abi.TokenAmount
	Reward  abi.TokenAmount
	Root    string
}

func (ApplyMessageResult) GasUsed

func (mr ApplyMessageResult) GasUsed() GasUnits

func (ApplyMessageResult) GoContainer

func (mr ApplyMessageResult) GoContainer() string

func (ApplyMessageResult) GoSyntax

func (mr ApplyMessageResult) GoSyntax() string

func (ApplyMessageResult) StateRoot

func (mr ApplyMessageResult) StateRoot() cid.Cid

type ApplyTipSetResult

type ApplyTipSetResult struct {
	Receipts []MessageReceipt
	Root     string
}

func (ApplyTipSetResult) GoContainer

func (tr ApplyTipSetResult) GoContainer() string

func (ApplyTipSetResult) GoSyntax

func (tr ApplyTipSetResult) GoSyntax() string

func (ApplyTipSetResult) StateRoot

func (tr ApplyTipSetResult) StateRoot() cid.Cid

type BlockMessagesInfo

type BlockMessagesInfo struct {
	BLSMessages  []*Message
	SECPMessages []*SignedMessage
	Miner        address.Address
	TicketCount  int64
}

BlockMessagesInfo contains messages for one block in a tipset.

type ExecutionContext

type ExecutionContext struct {
	Epoch abi.ChainEpoch  // The epoch number ("height") during which a message is executed.
	Miner address.Address // The miner actor which earns gas fees from message execution.
}

ExecutionContext provides the context for execution of a message.

func NewExecutionContext

func NewExecutionContext(epoch int64, miner address.Address) *ExecutionContext

NewExecutionContext builds a new execution context.

type GasUnits

type GasUnits int64

func (GasUnits) Big

func (gu GasUnits) Big() big.Int

type Message

type Message struct {
	// Address of the receiving actor.
	To address.Address
	// Address of the sending actor.
	From address.Address
	// Expected CallSeqNum of the sending actor (only for top-level messages).
	CallSeqNum uint64

	// Amount of value to transfer from sender's to receiver's balance.
	Value big.Int

	GasLimit   int64
	GasFeeCap  abi.TokenAmount
	GasPremium abi.TokenAmount

	// Optional method to invoke on receiver, zero for a plain value send.
	Method abi.MethodNum
	/// Serialized parameters to the method (if method is non-zero).
	Params []byte
}

func (*Message) Cid

func (m *Message) Cid() cid.Cid

func (*Message) MarshalCBOR

func (t *Message) MarshalCBOR(w io.Writer) error

func (*Message) Serialize

func (m *Message) Serialize() ([]byte, error)

func (*Message) UnmarshalCBOR

func (t *Message) UnmarshalCBOR(r io.Reader) error

type MessageReceipt

type MessageReceipt struct {
	ExitCode    exitcode.ExitCode
	ReturnValue []byte

	GasUsed GasUnits
}

MessageReceipt is the return value of message application.

type PreSeal

type PreSeal struct {
	CommR     cid.Cid
	CommD     cid.Cid
	SectorID  abi.SectorNumber
	Deal      market.DealProposal
	ProofType abi.RegisteredSealProof
}

type SignedMessage

type SignedMessage struct {
	Message   Message
	Signature crypto.Signature
}

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) UnmarshalCBOR

func (t *SignedMessage) UnmarshalCBOR(r io.Reader) error

type Trackable

type Trackable interface {
	GoSyntax() string
	GoContainer() string
}

Jump to

Keyboard shortcuts

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