Versions in this module Expand all Collapse all v0 v0.0.8 Mar 30, 2021 v0.0.6 Mar 28, 2021 Changes in this version + const LotusExecutionTraceV1 + const StageApplies + const StageChecks + const StageFinished + const StagePreconditions + const TestSealProofType + var GenscriptCommit = "dirty" + var KnownProtocolVersions = []ProtocolVersion + var RootVerifier = MustNewIDAddr(80) + var TotalNetworkBalance = big.Mul(big.NewInt(totalFilecoin), big.NewInt(filecoinPrecision)) + func CalculateBurntGas(am *ApplicableMessage) big.Int + func CalculateSenderDeduction(am *ApplicableMessage) big.Int + func Deserialize(b []byte, out interface{}) error + func EncodeCAR(dagserv format.DAGService, roots ...cid.Cid) ([]byte, error) + func EncodeTraces(traces []types.ExecutionTrace) *schema.Diagnostics + func GetMinerReward(am *ApplicableMessage) abi.TokenAmount + func MustDeserialize(b []byte, out interface{}) + func MustIDFromAddress(a address.Address) uint64 + func MustNewActorAddr(data string) address.Address + func MustNewBLSAddr(seed int64) address.Address + func MustNewIDAddr(id uint64) address.Address + func MustNewSECP256K1Addr(pubkey string) address.Address + func MustNextIDAddr(id address.Address) address.Address + func MustSerialize(i cbg.CBORMarshaler) []byte + func RecoverStateTree(ctx context.Context, raw []byte, root cid.Cid) (*state.StateTree, error) + func Serialize(i cbg.CBORMarshaler) ([]byte, error) + type Account struct + Handle AddressHandle + Initial abi.TokenAmount + type ActorPredicate func(handle AddressHandle, initial *OptionalActor, final *OptionalActor, ...) error + func BalanceUpdated(offset abi.TokenAmount) ActorPredicate + func NonceUpdated() ActorPredicate + type ActorState struct + Addr address.Address + Balance abi.TokenAmount + Code cid.Cid + State cbor.Marshaler + type Actors struct + func NewActors(bc *BuilderCommon, b *StateTracker) *Actors + func (a *Actors) Account(typ address.Protocol, balance abi.TokenAmount) AddressHandle + func (a *Actors) AccountHandles() []AddressHandle + func (a *Actors) AccountN(typ address.Protocol, balance abi.TokenAmount, handles ...*AddressHandle) + func (a *Actors) Accounts() []Account + func (a *Actors) Count() int + func (a *Actors) HandleFor(addr address.Address) AddressHandle + func (a *Actors) InitialBalance(addr address.Address) abi.TokenAmount + func (a *Actors) Miner(cfg MinerActorCfg) Miner + func (a *Actors) MinerN(cfg MinerActorCfg, miners ...*Miner) + func (a *Actors) Miners() []Miner + type ActorsZeroStateFn func(*StateTracker, schema.Selector) + type AddressHandle struct + ID address.Address + Robust address.Address + func (ah *AddressHandle) NextActorAddress(nonce, numActorsCreated uint64) address.Address + func (ah AddressHandle) IDAddr() address.Address + func (ah AddressHandle) RobustAddr() address.Address + func (ah AddressHandle) String() string + type ApplicableMessage struct + Applied bool + EpochOffset abi.ChainEpoch + Failed bool + Message *types.Message + Result *vm.ApplyRet + type ApplyRetPredicate func(ret *vm.ApplyRet) error + func ExitCode(expect exitcode.ExitCode) ApplyRetPredicate + func Failed() ApplyRetPredicate + func MessageReturns(expect cbg.CBORMarshaler) ApplyRetPredicate + type Asserter struct + func NewAsserter(id string, pv ProtocolVersion, lenient bool, suppliers suppliers) *Asserter + func (a *Asserter) ActorExists(addr address.Address) + func (a *Asserter) ActorMissing(addr address.Address) + func (a *Asserter) AtState(root cid.Cid) *Asserter + func (a *Asserter) BalanceEq(addr address.Address, expected abi.TokenAmount) + func (a *Asserter) Errorf(format string, args ...interface{}) + func (a *Asserter) EveryMessageResultSatisfies(predicate ApplyRetPredicate, except ...*ApplicableMessage) + func (a *Asserter) EveryMessageSenderSatisfies(predicate ActorPredicate, except ...*ApplicableMessage) + func (a *Asserter) ExitCodeEq(actual exitcode.ExitCode, expected exitcode.ExitCode) + func (a *Asserter) FailNow() + func (a *Asserter) HeadEq(addr address.Address, expected cid.Cid) + func (a *Asserter) In(v interface{}, set ...interface{}) + func (a *Asserter) LastMessageResultSatisfies(predicate ApplyRetPredicate) + func (a *Asserter) MessageSendersSatisfy(predicate ActorPredicate, ams ...*ApplicableMessage) + func (a *Asserter) NonceEq(addr address.Address, expected uint64) + type Block = schema.Block + type Builder interface + CommitApplies func() + CommitPreconditions func() + Finish func() *schema.TestVector + type BuilderCommon struct + Actors *Actors + Assert *Asserter + ProtocolVersion ProtocolVersion + Stage Stage + Wallet *Wallet + type Generator struct + IncludeFilter *regexp.Regexp + Mode OverwriteMode + OutputPath string + func NewGenerator() *Generator + func (g *Generator) Close() + func (g *Generator) Group(group string, vectors ...*VectorDef) + type MessageVectorBuilder struct + Messages *Messages + PostRoot cid.Cid + PreRoot cid.Cid + StateTracker *StateTracker + func MessageVector(metadata *schema.Metadata, selector schema.Selector, mode Mode, hints []string, ...) *MessageVectorBuilder + func (b *MessageVectorBuilder) CommitApplies() + func (b *MessageVectorBuilder) CommitPreconditions() + func (b *MessageVectorBuilder) Finish() *schema.TestVector + func (b *MessageVectorBuilder) SetBaseFee(basefee abi.TokenAmount) + func (b *MessageVectorBuilder) SetCirculatingSupply(supply abi.TokenAmount) + type Messages struct + func NewMessages(bc *BuilderCommon, st *StateTracker) *Messages + func (m *Messages) All() []*ApplicableMessage + func (m *Messages) ApplyN(ams ...*ApplicableMessage) + func (m *Messages) ApplyOne(am *ApplicableMessage) + func (m *Messages) Include(msgs ...*ApplicableMessage) + func (m *Messages) Message(msg *types.Message, opts ...MsgOpt) *ApplicableMessage + func (m *Messages) Raw(from, to address.Address, method abi.MethodNum, params []byte, opts ...MsgOpt) *ApplicableMessage + func (m *Messages) SetDefaults(opts ...MsgOpt) *Messages + func (m *Messages) Sugar() *sugarMsg + func (m *Messages) Typed(from, to address.Address, typedm TypedCall, opts ...MsgOpt) *ApplicableMessage + type Metadata = schema.Metadata + type Miner struct + MinerActorAddr AddressHandle + OwnerAddr AddressHandle + WorkerAddr AddressHandle + type MinerActorCfg struct + OwnerBalance abi.TokenAmount + PeriodBoundary abi.ChainEpoch + SealProofType abi.RegisteredSealProof + type Mode int + const ModeLenientAssertions + const ModeStandard + type MsgOpt func(*msgOpts) + func EpochOffset(epoch abi.ChainEpoch) MsgOpt + func GasFeeCap(feeCap int64) MsgOpt + func GasLimit(limit int64) MsgOpt + func GasPremium(premium int64) MsgOpt + func Nonce(n uint64) MsgOpt + func Value(value big.Int) MsgOpt + type OptionalActor = types.Actor + type OverwriteMode int + const OverwriteForce + const OverwriteNone + const OverwriteUpdate + type ProtocolVersion struct + Actors actors.Version + FirstEpoch abi.ChainEpoch + ID string + Network network.Version + StateTree types.StateTreeVersion + ZeroStateTree func(*StateTracker, schema.Selector) + func KnownProtocolVersionsBefore(id string) []ProtocolVersion + func KnownProtocolVersionsBetween(from, to string) []ProtocolVersion + func KnownProtocolVersionsFrom(id string) []ProtocolVersion + type RewardSummary struct + EpochReward abi.TokenAmount + NextPerBlockReward abi.TokenAmount + Treasury abi.TokenAmount + type Rewards struct + func NewRewards(bc *BuilderCommon, st *StateTracker) *Rewards + func (r *Rewards) ForEpochOffset(epochOffset int64) *RewardSummary + func (r *Rewards) RecordAt(epochOffset int64) + type Stage string + type StateTracker struct + ActorsVersion actors.Version + CurrRoot cid.Cid + Driver *conformance.Driver + EmptyArrayCid cid.Cid + EmptyBitfieldCid cid.Cid + EmptyDeadlinesCid cid.Cid + EmptyMapCid cid.Cid + EmptyMultiMapCid cid.Cid + EmptyObjectCid cid.Cid + EmptyVestingFundsCid cid.Cid + StateTree *state.StateTree + StateTreeVersion types.StateTreeVersion + Stores *Stores + func NewStateTracker(bc *BuilderCommon, selector schema.Selector, vector *schema.TestVector, ...) *StateTracker + func (st *StateTracker) ActorState(addr address.Address, out cbg.CBORUnmarshaler) *types.Actor + func (st *StateTracker) ActorsZeroStateV0(selector schema.Selector) + func (st *StateTracker) ActorsZeroStateV2(selector schema.Selector) + func (st *StateTracker) ApplyMessage(am *ApplicableMessage) + func (st *StateTracker) Balance(addr address.Address) abi.TokenAmount + func (st *StateTracker) Code(addr address.Address) cid.Cid + func (st *StateTracker) CreateActor(code cid.Cid, addr address.Address, balance abi.TokenAmount, ...) AddressHandle + func (st *StateTracker) Flush() cid.Cid + func (st *StateTracker) Fork(root cid.Cid) *StateTracker + func (st *StateTracker) Head(addr address.Address) cid.Cid + func (st *StateTracker) Header(addr address.Address) *types.Actor + func (st *StateTracker) Load(root cid.Cid) + func (st *StateTracker) Nonce(addr address.Address) uint64 + type Stores struct + ADTStore adt.Store + BlockService blockservice.BlockService + Blockstore blockstore.Blockstore + CBORStore cbor.IpldStore + DAGService format.DAGService + Datastore ds.Batching + Exchange exchange.Interface + func NewLocalStores(ctx context.Context) *Stores + func NewProxyingStore(ctx context.Context, api api.FullNode) *Stores + type Tipset struct + PostStateRoot cid.Cid + func (ts *Tipset) Block(miner Miner, winCount int64, msgs ...*ApplicableMessage) + type TipsetSeq struct + func NewTipsetSeq(initialEpoch abi.ChainEpoch) *TipsetSeq + func (tss *TipsetSeq) All() []*Tipset + func (tss *TipsetSeq) Messages() []*ApplicableMessage + func (tss *TipsetSeq) Next(baseFee abi.TokenAmount) *Tipset + func (tss *TipsetSeq) NullRounds(count uint64) + type TipsetVectorBuilder struct + InitialEpochOffset abi.ChainEpoch + PostRoot cid.Cid + PreRoot cid.Cid + Rewards *Rewards + StagedMessages *Messages + StateTracker *StateTracker + Tipsets *TipsetSeq + func TipsetVector(metadata *schema.Metadata, selector schema.Selector, mode Mode, hints []string, ...) *TipsetVectorBuilder + func (b *TipsetVectorBuilder) CommitApplies() + func (b *TipsetVectorBuilder) CommitPreconditions() + func (b *TipsetVectorBuilder) Finish() *schema.TestVector + func (b *TipsetVectorBuilder) SetInitialEpochOffset(epoch abi.ChainEpoch) + type TypedCall func(m *Messages) (method abi.MethodNum, params []byte) + func AccountConstructor(params *address.Address) TypedCall + func AccountPubkeyAddress(params *abi.EmptyValue) TypedCall + func ChaosSend(args *chaos.SendArgs) TypedCall + func CronConstructor(params *cron.ConstructorParams) TypedCall + func CronEpochTick(params *abi.EmptyValue) TypedCall + func InitConstructor(params *init_.ConstructorParams) TypedCall + func InitExec(params *init_.ExecParams) TypedCall + func MarketActivateDeals(params *market.ActivateDealsParams) TypedCall + func MarketAddBalance(params *address.Address) TypedCall + func MarketComputeDataCommitment(params *market.ComputeDataCommitmentParams) TypedCall + func MarketConstructor(params *abi.EmptyValue) TypedCall + func MarketCronTick(params *abi.EmptyValue) TypedCall + func MarketOnMinerSectorsTerminate(params *market.OnMinerSectorsTerminateParams) TypedCall + func MarketPublishStorageDeals(params *market.PublishStorageDealsParams) TypedCall + func MarketVerifyDealsForActivation(params *market.VerifyDealsForActivationParams) TypedCall + func MarketWithdrawBalance(params *market.WithdrawBalanceParams) TypedCall + func MinerAddLockedFund(params *big.Int) TypedCall + func MinerChangeMultiaddrs(params *miner.ChangeMultiaddrsParams) TypedCall + func MinerChangePeerID(params *miner.ChangePeerIDParams) TypedCall + func MinerChangeWorkerAddress(params *miner.ChangeWorkerAddressParams) TypedCall + func MinerCheckSectorProven(params *miner.CheckSectorProvenParams) TypedCall + func MinerConfirmSectorProofsValid(params *builtin.ConfirmSectorProofsParams) TypedCall + func MinerConstructor(params *power.MinerConstructorParams) TypedCall + func MinerControlAddresses(params *abi.EmptyValue) TypedCall + func MinerDeclareFaults(params *miner.DeclareFaultsParams) TypedCall + func MinerDeclareFaultsRecovered(params *miner.DeclareFaultsRecoveredParams) TypedCall + func MinerExtendSectorExpiration(params *miner.ExtendSectorExpirationParams) TypedCall + func MinerOnDeferredCronEvent(params *miner.CronEventPayload) TypedCall + func MinerPreCommitSector(params *miner.SectorPreCommitInfo) TypedCall + func MinerProveCommitSector(params *miner.ProveCommitSectorParams) TypedCall + func MinerReportConsensusFault(params *miner.ReportConsensusFaultParams) TypedCall + func MinerSubmitWindowedPoSt(params *miner.SubmitWindowedPoStParams) TypedCall + func MinerTerminateSectors(params *miner.TerminateSectorsParams) TypedCall + func MinerWithdrawBalance(params *miner.WithdrawBalanceParams) TypedCall + func MultisigAddSigner(params *multisig.AddSignerParams) TypedCall + func MultisigChangeNumApprovalsThreshold(params *multisig.ChangeNumApprovalsThresholdParams) TypedCall + func MultisigRemoveSigner(params *multisig.RemoveSignerParams) TypedCall + func MultisigSwapSigner(params *multisig.SwapSignerParams) TypedCall + func PowerConstructor(params *abi.EmptyValue) TypedCall + func PowerCreateMiner(params *power.CreateMinerParams) TypedCall + func PowerCurrentTotalPower(params *abi.EmptyValue) TypedCall + func PowerEnrollCronEvent(params *power.EnrollCronEventParams) TypedCall + func PowerOnConsensusFault(params *big.Int) TypedCall + func PowerOnEpochTickEnd(params *abi.EmptyValue) TypedCall + func PowerSubmitPoRepForBulkVerify(params *proof.SealVerifyInfo) TypedCall + func PowerUpdateClaimedPower(params *power.UpdateClaimedPowerParams) TypedCall + func PowerUpdatePledgeTotal(params *big.Int) TypedCall + func RewardAwardBlockReward(params *reward.AwardBlockRewardParams) TypedCall + func RewardConstructor(params *abi.EmptyValue) TypedCall + func RewardThisEpochReward(params *abi.EmptyValue) TypedCall + func RewardUpdateNetworkKPI(params *big.Int) TypedCall + func Transfer() TypedCall + type VectorDef struct + Hints []string + MessageFunc func(v *MessageVectorBuilder) + Metadata *schema.Metadata + Mode Mode + Selector schema.Selector + SupportedVersions []ProtocolVersion + TipsetFunc func(v *TipsetVectorBuilder) + type Wallet struct + func NewWallet() *Wallet + func (w *Wallet) NewBLSAccount() address.Address + func (w *Wallet) NewSECP256k1Account() address.Address + func (w *Wallet) Sign(addr address.Address, data []byte) (*acrypto.Signature, error)