chain

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: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Deserialize

func Deserialize(b []byte, out interface{}) error

func MustDeserialize

func MustDeserialize(b []byte, out interface{})

func MustSerialize

func MustSerialize(i cbg.CBORMarshaler) []byte

func Serialize

func Serialize(i cbg.CBORMarshaler) ([]byte, error)

Types

type MessageProducer

type MessageProducer struct {
	// contains filtered or unexported fields
}

The created messages are retained for subsequent export or evaluation in a VM.

func NewMessageProducer

func NewMessageProducer(defaultGasFeeCap abi_spec.TokenAmount, defaultGasPremium abi_spec.TokenAmount, defaultGasLimit int64) *MessageProducer

NewMessageProducer creates a new message producer, delegating message creation to `factory`.

func (*MessageProducer) AccountConstructor

func (mp *MessageProducer) AccountConstructor(from, to address.Address, params *address.Address, opts ...MsgOpt) *types.Message

func (*MessageProducer) AccountPubkeyAddress

func (mp *MessageProducer) AccountPubkeyAddress(from, to address.Address, params *adt.EmptyValue, opts ...MsgOpt) *types.Message

func (*MessageProducer) Build

func (mp *MessageProducer) Build(from, to address.Address, method abi_spec.MethodNum, params []byte, opts ...MsgOpt) *types.Message

Build creates and returns a single message, using default gas parameters unless modified by `opts`.

func (*MessageProducer) BuildFull

func (mp *MessageProducer) BuildFull(from, to address.Address, method abi_spec.MethodNum, callSeq uint64, value, gasFeeCap abi_spec.TokenAmount, gasPremium abi_spec.TokenAmount, gasLimit int64, params []byte) *types.Message

BuildFull creates and returns a single message.

func (*MessageProducer) CreateMinerActor

func (mp *MessageProducer) CreateMinerActor(owner, worker address.Address, sealProofType abi_spec.RegisteredSealProof, pid peer.ID, maddrs []abi_spec.Multiaddrs, opts ...MsgOpt) *types.Message

func (*MessageProducer) CreateMultisigActor

func (mp *MessageProducer) CreateMultisigActor(from address.Address, signers []address.Address, unlockDuration abi_spec.ChainEpoch, numApprovals uint64, opts ...MsgOpt) *types.Message

func (*MessageProducer) CreatePaymentChannelActor

func (mp *MessageProducer) CreatePaymentChannelActor(from, to address.Address, opts ...MsgOpt) *types.Message

func (*MessageProducer) CronConstructor

func (mp *MessageProducer) CronConstructor(from, to address.Address, params *cron.ConstructorParams, opts ...MsgOpt) *types.Message

func (*MessageProducer) CronEpochTick

func (mp *MessageProducer) CronEpochTick(from, to address.Address, params *adt.EmptyValue, opts ...MsgOpt) *types.Message

func (*MessageProducer) InitConstructor

func (mp *MessageProducer) InitConstructor(from, to address.Address, params *init_.ConstructorParams, opts ...MsgOpt) *types.Message

func (*MessageProducer) InitExec

func (mp *MessageProducer) InitExec(from, to address.Address, params *init_.ExecParams, opts ...MsgOpt) *types.Message

func (*MessageProducer) MarketActivateDeals

func (mp *MessageProducer) MarketActivateDeals(from, to address.Address, params *market.ActivateDealsParams, opts ...MsgOpt) *types.Message

func (*MessageProducer) MarketAddBalance

func (mp *MessageProducer) MarketAddBalance(from, to address.Address, params *address.Address, opts ...MsgOpt) *types.Message

func (*MessageProducer) MarketComputeDataCommitment

func (mp *MessageProducer) MarketComputeDataCommitment(from, to address.Address, params *market.ComputeDataCommitmentParams, opts ...MsgOpt) *types.Message

func (*MessageProducer) MarketConstructor

func (mp *MessageProducer) MarketConstructor(from, to address.Address, params *adt.EmptyValue, opts ...MsgOpt) *types.Message

func (*MessageProducer) MarketCronTick

func (mp *MessageProducer) MarketCronTick(from, to address.Address, params *adt.EmptyValue, opts ...MsgOpt) *types.Message

func (*MessageProducer) MarketOnMinerSectorsTerminate

func (mp *MessageProducer) MarketOnMinerSectorsTerminate(from, to address.Address, params *market.OnMinerSectorsTerminateParams, opts ...MsgOpt) *types.Message

func (*MessageProducer) MarketPublishStorageDeals

func (mp *MessageProducer) MarketPublishStorageDeals(from, to address.Address, params *market.PublishStorageDealsParams, opts ...MsgOpt) *types.Message

func (*MessageProducer) MarketVerifyDealsForActivation

func (mp *MessageProducer) MarketVerifyDealsForActivation(from, to address.Address, params *market.VerifyDealsForActivationParams, opts ...MsgOpt) *types.Message

func (*MessageProducer) MarketWithdrawBalance

func (mp *MessageProducer) MarketWithdrawBalance(from, to address.Address, params *market.WithdrawBalanceParams, opts ...MsgOpt) *types.Message

func (*MessageProducer) Messages

func (mp *MessageProducer) Messages() []*types.Message

Messages returns a slice containing all messages created by the producer.

func (*MessageProducer) MinerAddLockedFund

func (mp *MessageProducer) MinerAddLockedFund(from, to address.Address, params *big.Int, opts ...MsgOpt) *types.Message

func (*MessageProducer) MinerChangeMultiaddrs

func (mp *MessageProducer) MinerChangeMultiaddrs(from, to address.Address, params *miner.ChangeMultiaddrsParams, opts ...MsgOpt) *types.Message

func (*MessageProducer) MinerChangePeerID

func (mp *MessageProducer) MinerChangePeerID(from, to address.Address, params *miner.ChangePeerIDParams, opts ...MsgOpt) *types.Message

func (*MessageProducer) MinerChangeWorkerAddress

func (mp *MessageProducer) MinerChangeWorkerAddress(from, to address.Address, params *miner.ChangeWorkerAddressParams, opts ...MsgOpt) *types.Message

func (*MessageProducer) MinerCheckSectorProven

func (mp *MessageProducer) MinerCheckSectorProven(from, to address.Address, params *miner.CheckSectorProvenParams, opts ...MsgOpt) *types.Message

func (*MessageProducer) MinerConfirmSectorProofsValid

func (mp *MessageProducer) MinerConfirmSectorProofsValid(from, to address.Address, params *builtin_spec.ConfirmSectorProofsParams, opts ...MsgOpt) *types.Message

func (*MessageProducer) MinerConstructor

func (mp *MessageProducer) MinerConstructor(from, to address.Address, params *power.MinerConstructorParams, opts ...MsgOpt) *types.Message

func (*MessageProducer) MinerControlAddresses

func (mp *MessageProducer) MinerControlAddresses(from, to address.Address, params *adt.EmptyValue, opts ...MsgOpt) *types.Message

func (*MessageProducer) MinerDeclareFaults

func (mp *MessageProducer) MinerDeclareFaults(from, to address.Address, params *miner.DeclareFaultsParams, opts ...MsgOpt) *types.Message

func (*MessageProducer) MinerDeclareFaultsRecovered

func (mp *MessageProducer) MinerDeclareFaultsRecovered(from, to address.Address, params *miner.DeclareFaultsRecoveredParams, opts ...MsgOpt) *types.Message

func (*MessageProducer) MinerExtendSectorExpiration

func (mp *MessageProducer) MinerExtendSectorExpiration(from, to address.Address, params *miner.ExtendSectorExpirationParams, opts ...MsgOpt) *types.Message

func (*MessageProducer) MinerOnDeferredCronEvent

func (mp *MessageProducer) MinerOnDeferredCronEvent(from, to address.Address, params *miner.CronEventPayload, opts ...MsgOpt) *types.Message

func (*MessageProducer) MinerPreCommitSector

func (mp *MessageProducer) MinerPreCommitSector(from, to address.Address, params *miner.SectorPreCommitInfo, opts ...MsgOpt) *types.Message

func (*MessageProducer) MinerProveCommitSector

func (mp *MessageProducer) MinerProveCommitSector(from, to address.Address, params *miner.ProveCommitSectorParams, opts ...MsgOpt) *types.Message

func (*MessageProducer) MinerReportConsensusFault

func (mp *MessageProducer) MinerReportConsensusFault(from, to address.Address, params *miner.ReportConsensusFaultParams, opts ...MsgOpt) *types.Message

func (*MessageProducer) MinerSubmitWindowedPoSt

func (mp *MessageProducer) MinerSubmitWindowedPoSt(from, to address.Address, params *miner.SubmitWindowedPoStParams, opts ...MsgOpt) *types.Message

func (*MessageProducer) MinerTerminateSectors

func (mp *MessageProducer) MinerTerminateSectors(from, to address.Address, params *miner.TerminateSectorsParams, opts ...MsgOpt) *types.Message

func (*MessageProducer) MinerWithdrawBalance

func (mp *MessageProducer) MinerWithdrawBalance(from, to address.Address, params *miner.WithdrawBalanceParams, opts ...MsgOpt) *types.Message

func (*MessageProducer) MultisigAddSigner

func (mp *MessageProducer) MultisigAddSigner(from, to address.Address, params *multisig.AddSignerParams, opts ...MsgOpt) *types.Message

func (*MessageProducer) MultisigApprove

func (mp *MessageProducer) MultisigApprove(from, to address.Address, params *multisig.TxnIDParams, opts ...MsgOpt) *types.Message

func (*MessageProducer) MultisigCancel

func (mp *MessageProducer) MultisigCancel(from, to address.Address, params *multisig.TxnIDParams, opts ...MsgOpt) *types.Message

func (*MessageProducer) MultisigChangeNumApprovalsThreshold

func (mp *MessageProducer) MultisigChangeNumApprovalsThreshold(from, to address.Address, params *multisig.ChangeNumApprovalsThresholdParams, opts ...MsgOpt) *types.Message

func (*MessageProducer) MultisigConstructor

func (mp *MessageProducer) MultisigConstructor(from, to address.Address, params *multisig.ConstructorParams, opts ...MsgOpt) *types.Message

func (*MessageProducer) MultisigPropose

func (mp *MessageProducer) MultisigPropose(from, to address.Address, params *multisig.ProposeParams, opts ...MsgOpt) *types.Message

func (*MessageProducer) MultisigRemoveSigner

func (mp *MessageProducer) MultisigRemoveSigner(from, to address.Address, params *multisig.RemoveSignerParams, opts ...MsgOpt) *types.Message

func (*MessageProducer) MultisigSwapSigner

func (mp *MessageProducer) MultisigSwapSigner(from, to address.Address, params *multisig.SwapSignerParams, opts ...MsgOpt) *types.Message

func (*MessageProducer) PaychCollect

func (mp *MessageProducer) PaychCollect(from, to address.Address, params *adt.EmptyValue, opts ...MsgOpt) *types.Message

func (*MessageProducer) PaychConstructor

func (mp *MessageProducer) PaychConstructor(from, to address.Address, params *paych.ConstructorParams, opts ...MsgOpt) *types.Message

func (*MessageProducer) PaychSettle

func (mp *MessageProducer) PaychSettle(from, to address.Address, params *adt.EmptyValue, opts ...MsgOpt) *types.Message

func (*MessageProducer) PaychUpdateChannelState

func (mp *MessageProducer) PaychUpdateChannelState(from, to address.Address, params *paych.UpdateChannelStateParams, opts ...MsgOpt) *types.Message

func (*MessageProducer) PowerConstructor

func (mp *MessageProducer) PowerConstructor(from, to address.Address, params *adt.EmptyValue, opts ...MsgOpt) *types.Message

func (*MessageProducer) PowerCreateMiner

func (mp *MessageProducer) PowerCreateMiner(from, to address.Address, params *power.CreateMinerParams, opts ...MsgOpt) *types.Message

func (*MessageProducer) PowerCurrentTotalPower

func (mp *MessageProducer) PowerCurrentTotalPower(from, to address.Address, params *adt.EmptyValue, opts ...MsgOpt) *types.Message

func (*MessageProducer) PowerEnrollCronEvent

func (mp *MessageProducer) PowerEnrollCronEvent(from, to address.Address, params *power.EnrollCronEventParams, opts ...MsgOpt) *types.Message

func (*MessageProducer) PowerOnConsensusFault

func (mp *MessageProducer) PowerOnConsensusFault(from, to address.Address, params *big.Int, opts ...MsgOpt) *types.Message

func (*MessageProducer) PowerOnEpochTickEnd

func (mp *MessageProducer) PowerOnEpochTickEnd(from, to address.Address, params *adt.EmptyValue, opts ...MsgOpt) *types.Message

func (*MessageProducer) PowerSubmitPoRepForBulkVerify

func (mp *MessageProducer) PowerSubmitPoRepForBulkVerify(from, to address.Address, params *proof.SealVerifyInfo, opts ...MsgOpt) *types.Message

func (*MessageProducer) PowerUpdateClaimedPower

func (mp *MessageProducer) PowerUpdateClaimedPower(from, to address.Address, params *power.UpdateClaimedPowerParams, opts ...MsgOpt) *types.Message

func (*MessageProducer) PowerUpdatePledgeTotal

func (mp *MessageProducer) PowerUpdatePledgeTotal(from, to address.Address, params *big.Int, opts ...MsgOpt) *types.Message

func (*MessageProducer) PuppetConstructor

func (mp *MessageProducer) PuppetConstructor(from, to address.Address, params *adt.EmptyValue, opts ...MsgOpt) *types.Message

func (*MessageProducer) PuppetSend

func (mp *MessageProducer) PuppetSend(from, to address.Address, params *puppet.SendParams, opts ...MsgOpt) *types.Message

func (*MessageProducer) RewardAwardBlockReward

func (mp *MessageProducer) RewardAwardBlockReward(from, to address.Address, params *reward.AwardBlockRewardParams, opts ...MsgOpt) *types.Message

func (*MessageProducer) RewardConstructor

func (mp *MessageProducer) RewardConstructor(from, to address.Address, params *adt.EmptyValue, opts ...MsgOpt) *types.Message

func (*MessageProducer) RewardLastPerEpochReward

func (mp *MessageProducer) RewardLastPerEpochReward(from, to address.Address, params *adt.EmptyValue, opts ...MsgOpt) *types.Message

func (*MessageProducer) RewardUpdateNetworkKPI

func (mp *MessageProducer) RewardUpdateNetworkKPI(from, to address.Address, params *big.Int, opts ...MsgOpt) *types.Message

func (*MessageProducer) Transfer

func (mp *MessageProducer) Transfer(from, to address.Address, opts ...MsgOpt) *types.Message

Transfer builds a simple value transfer message and returns it.

type MsgOpt

type MsgOpt func(*msgOpts)

MsgOpt is an option configuring message value or gas parameters.

func GasFeeCap

func GasFeeCap(feeCap int64) MsgOpt

func GasLimit

func GasLimit(limit int64) MsgOpt

func GasPremium

func GasPremium(premium int64) MsgOpt

func Nonce

func Nonce(n uint64) MsgOpt

func Value

func Value(value big_spec.Int) MsgOpt

type Validator

type Validator struct {
	// contains filtered or unexported fields
}

validator arranges the execution of a sequence of messages, returning the resulting receipts and state.

func NewValidator

func NewValidator(executor state.Applier) *Validator

NewValidator builds a new validator.

func (*Validator) ApplyMessage

func (v *Validator) ApplyMessage(epoch abi.ChainEpoch, message *types.Message) (types.ApplyMessageResult, error)

ApplyMessages applies a message to a state

func (*Validator) ApplySignedMessage

func (v *Validator) ApplySignedMessage(epoch abi.ChainEpoch, message *types.SignedMessage) (types.ApplyMessageResult, error)

func (*Validator) ApplyTipSetMessages

func (v *Validator) ApplyTipSetMessages(epoch abi.ChainEpoch, blocks []types.BlockMessagesInfo, rnd state.RandomnessSource) (types.ApplyTipSetResult, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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