package
1.17.0-rc2
Repository: https://github.com/filecoin-project/venus.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

AssertCidsEqual asserts that two CIDS are identical.
AssertHaveSameCid asserts that two values have identical CIDs.
AutoSealInterval specifies an interval for automatically sealing.
CidFromString generates Cid from string input.
CmdTimeout allows setting the `cmdTimeout` config option on the daemon.
ContainerDir sets the `containerDir` path for the daemon.
DefaultAddress specifies a key file for this daemon to add to their wallet during init.
EmptyReceipts returns a slice of n empty receipts.
GenesisFile allows setting the `genesisFile` config option on the daemon.
GenesisFilePath returns the path to the test genesis.
GetFilecoinBinary returns the path where the filecoin binary will be if it has been built.
GetFreePort gets a free port from the kernel Credit: https://github.com/phayes/freeport.
GetGitRoot return the project root joined with any path fragments.
InitArgs allows setting additional arguments to repo initialization.
IsRelay starts the daemon with the --is-relay option.
KeyFile specifies a key file for this daemon to add to their wallet during init.
MustGenerateBLSKeyInfo produces n distinct BLS keyinfos.
MustGenerateKeyInfo generates `n` distinct keyinfos using seed `seed`.
MustGenerateMixedKeyInfo produces m bls keys and n secp keys.
MustGetFilecoinBinary returns the path where the filecoin binary will be if it has been built and panics otherwise.
NewCidForTestGetter returns a closure that returns a Cid unique to that invocation.
NewDaemon creates a new `TestDaemon`, using the passed in configuration options.
NewFakeBlockValidator createas a FakeBlockValidator that passes everything as valid.
NewForTestGetter returns a closure that returns an address unique to that invocation.
NewMessage creates a new message.
NewMessageForTestGetter returns a closure that returns a message unique to that invocation.
NewMessageMaker creates a new message maker with a set of signing keys.
NewMeteredMessage adds gas price and gas limit to the message.
NewMockMessagePoolValidator creates a MockMessagePoolValidator.
NewMockSigner returns a new mock signer, capable of signing data with keys (addresses derived from) in keyinfo.
NewMockSignersAndKeyInfo is a convenience function to generate a mock signers with some keys.
NewMsgs returns n messages.
NewMsgsWithAddrs returns a slice of `n` messages who's `From` field's are pulled from `a`.
NewReceiptMaker creates a new receipt maker.
NewSignedMessage accepts a message `msg` and a signer `s`.
NewSignedMessageForTestGetter returns a closure that returns a SignedMessage unique to that invocation.
NewSignedMsgs returns n signed messages.
NewStubBlockValidator creates a StubBlockValidator that allows errors to configured for blocks passed to the Validate* methods.
RandPeerID is a libp2p random peer ID generator.
ReadOutput reads the `stdout` and `stderr` streams completely and returns a new Output object.
No description provided by the author
RequireIntPeerID takes in an integer and creates a unique peer id for it.
RequireNewTipSet instantiates and returns a new tipset of the given blocks and requires that the setup validation succeed.
RequireRandomPeerID returns a new libp2p peer ID or panics.
RequireTipset is a helper that constructs a tipset.
No description provided by the author
Root return the project root joined with any path fragments.
RunSuccessFirstLine executes the given command, asserts success and returns the first line of stdout.
RunSuccessLines executes the given command, asserts success and returns an array of lines of the stdout.
SignMsgs returns a slice of signed messages where the original messages are `msgs`, if signing one of the `msgs` fails an error is returned.
WaitForIt waits until the given callback returns true.
WaitTimeout waits for the waitgroup for the specified max timeout.

# Constants

DefaultDaemonCmdTimeout is the default timeout for executing commands.

# Variables

EmptyMessagesCID is the cid of an empty collection of messages.
EmptyReceiptsCID is the cid of an empty collection of receipts.
EmptyTxMetaCID is the cid of a TxMeta wrapping empty cids.

# Structs

CmdOutput collects the output from a CLI command issued to a process.
FakeBlockValidator passes everything as valid.
MessageMaker creates unique, signed messages for use in tests.
MockMessagePoolValidator is a mock validator.
MockSigner implements the Signer interface.
ReceiptMaker generates unique receipts.
StubBlockValidator is a mockable block validator.
TestDaemon is used to manage a Filecoin daemon instance for testing purposes.

# Interfaces

HasCid allows two values with CIDs to be compared.