# Packages
Package adt provides amt array and map for contract to store something big, avoid to load big data most code move from https://github.com/filecoin-project/specs-actors/tree/master/actors/util/adt.
No description provided by the author
Package ferrors fvm errors.
Package frc42dispatch implement frc42 reference https://github.com/filecoin-project/FIPs/blob/master/FRCs/frc-0042.md.
Package sys is used to interact with fvm and in this package non-fvm file used to index for ide, this can be convenient for development file with _call suffix defines the wasm export function file with _simulate used to simulate system call, useful for actor unit test others file was wrap for _call file, make the type and style more closely match the standard of go.
No description provided by the author
Package types go-fvm-sdk types.
# Functions
Abort abort execution, code must be non-okay value.
AvailableGas current gas.
BalanceOf Returns balanece of account.
BaseFee gets the base fee for the current epoch.
BatchVerifySeals batch verifies seals.
Caller get caller, from address of message todo cache invocation in context.
CallerAddress return caller address.
Charge charges the gas.
ComputeUnsealedSectorCid computes an unsealed sector CID (CommD) from its constituent piece CIDs (CommPs) and sizes.
Constructor construct a acor with initialize state.
CreateActor Creates a new actor of the specified type in the state tree, under the provided address.
CurrentBalance gets the current balance for the calling actor.
CurrEpoch get network current epoch.
EmitEvent emit event to fvm.
Exit abort contract with data and exit message.
ExitWithBlkId abort contract with specify block id and exit message avoid to create block again sometimes.
Get get a block.
GetActorCodeCid look up the code ID at an actor address.
GetBeaconRandomness gets 32 bytes of randomness from the beacon system (currently Drand).
GetBlock gets the data of the block referenced by BlockId.
GetBuiltinActorType determines whether the supplied CodeCID belongs to a built-in actor type, and to which.
GetChainRandomness gets 32 bytes of randomness from the ticket chain.
GetCodeCidForType Returns the CodeCID for a built-in actor type.
HashBlake2b hashes input data using blake2b with 256 bit output.
InitializeAccount create an account actor for address.
IsAccountAddress use check whether specific address is action type.
IsNil check whether interface is nil.
LoadState loads actors current state.
LoadStateFromCid load actor state by message cid.
LookupDelegatedAddress look up the address at an actor ID.
MethodNumber method number.
MsgGasPremium gaspremium in message.
MustAddressFromActorId convert actor id to address, panic if marshal fail, used it carefully.
MustCborMarshal marshal obj to bytes, panic if marshal fail, used it carefully.
NewLogger create a logging if debugging is enabled.
NextActorAddress generates a new actor address for an actor deployed by the calling actor.
Origin get origin direct caller.
OriginAddress return message origin caller address.
ParamsRaw returns the message codec and parameters.
Put store a block.
PutBlock writes the supplied block and returns the BlockId.
Receiver get recevier, to address of message.
ReceiverAddress return message to address.
ResolveAddress resolves the ID address of an actor.
ResolveOrInitAddress get actor id from address, if not found create one.
Root Get the IPLD root CID.
SameAddress check if two address is the same actor.
SaveState save actor state.
SelfDestruct destroys the calling actor, sending its current balance to the supplied address, which cannot be itself.
Send call another actor.
SetRoot set the actor's state-tree root.
TipsetCid gets cid.
TipsetTimestamp gets Timestamp.
TotalFilCircSupply gets the circulating supply.
ValueReceived the amount was transferred in message.
VerifyAggregateSeals verifies aggregate proof of replication of sectors.
VerifyConsensusFault verifies that two block headers provide proof of a consensus fault: - both headers mined by the same actor - headers are different - first header is of the same or lower epoch as the second - at least one of the headers appears in the current chain at or after epoch `earliest` - the headers provide evidence of a fault (see the spec for the different fault types).
VerifyPost verifies a sector seal proof.
VerifyReplicaUpdate verifies sector replica update.
VerifySeal verifies a sector seal proof.
VerifySignature verifies that a signature is valid for an address and plaintext.
Version network version.
WithGasLimit used to set gas limit for send call.
WithReadonly used to set readonly mode for send call.
# Variables
WriteCborArray marshal cbor array to bytes.
# Structs
MethodInfo used to mark actor export function.
# Interfaces
Logger is a debug-only logger that uses the FVM syscalls.
# Type aliases
SendOption options for set send params.