Skip to main content
Zondax Github LinkZondax Github Link
Theme SwitchTheme Switch

Specifications

Actors and methods supported

Actor/methodSupported?
Account
Constructor✖️
PubkeyAddress✖️
AuthenticateMessage✖️
UniversalReceiverHook✖️
Cron
Constructor✖️
EpochTick✖️
Datacap Token
Constructor✖️
Mint✖️
Destroy✖️
Name✖️
Symbol✖️
TotalSupply✖️
BalanceOf✖️
Transfer✖️
TransferFrom✖️
IncreaseAllowance✖️
DecreaseAllowance✖️
RevokeAllowance✖️
Burn✖️
BurnFrom✖️
Allowance✖️
Init
Constructor✖️
Exec✖️
Exec4✖️
Market
Constructor✖️
AddBalance✔️
WithdrawBalance✔️
PublishStorageDeals✖️
VerifyDealsForActivation✖️
ActivateDeals✖️
OnMinerSectorsTerminate✖️
ComputeDataCommitment✖️
CronTick✖️
GetBalance✔️
GetDealDataCommitment✔️
GetDealClient✔️
GetDealProvider✔️
GetDealLabel✔️
GetDealTerm✔️
GetDealEpochPrice✔️
GetDealClientCollateral✔️
GetDealProviderCollateral✔️
GetDealVerified✔️
GetDealActivation✔️
Miner
Constructor✖️
ControlAddresses✖️
ChangeWorkerAddress✖️
ChangePeerID✖️
SubmitWindowedPoSt✖️
PreCommitSector✖️
ProveCommitSector✖️
ExtendSectorExpiration✖️
TerminateSectors✖️
DeclareFaults✖️
DeclareFaultsRecovered✖️
OnDeferredCronEvent✖️
CheckSectorProven✖️
ApplyRewards✖️
ReportConsensusFault✖️
WithdrawBalance✖️
ConfirmSectorProofsValid✖️
ChangeMultiaddrs✖️
CompactPartitions✖️
CompactSectorNumbers✖️
ConfirmUpdateWorkerKey✖️
RepayDebt✖️
ChangeOwnerAddress✔️
DisputeWindowedPoSt✖️
PreCommitSectorBatch✖️
ProveCommitAggregate✖️
ProveReplicaUpdates✖️
PreCommitSectorBatch2✖️
ProveReplicaUpdates2✖️
ChangeBeneficiary✔️
GetBeneficiary✔️
ExtendSectorExpiration2✖️
GetOwner✔️
IsControllingAddress✔️
GetSectorSize✔️
GetVestingFunds✔️
GetAvailableBalance✔️
Read peer ID, multiaddr✖️
Read pre-commit deposit✖️
Read initial pledge total✖️
Read fee debt✖️
Multisig
Constructor✖️
Propose✖️
Approve✖️
Cancel✖️
AddSigner✖️
RemoveSigner✖️
SwapSigner✖️
ChangeNumApprovalsThreshold✖️
LockBalance✖️
UniversalReceiverHook✖️
List signers and threshold✖️
Payment Channel
Constructor✖️
UpdateChannelState✖️
Settle✖️
Collect✖️
List from/to✖️
Get redeemed amount✖️
Power
Constructor✖️
CreateMiner✖️
UpdateClaimedPower✖️
EnrollCronEvent✖️
OnEpochTickEnd✖️
UpdatePledgeTotal✖️
SubmitPoRepForBulkVerify✖️
CurrentTotalPower✖️
NetworkRawPower✖️
MinerRawPower✖️
Get miner count, consensus count✖️
Compute pledge collateral for new sector✖️
Get network bytes committed?✖️
Get network total pledge collateral?✖️
Get network epoch QA power✖️
Get network epoch pledge collateral✖️
Get miner's QA power✖️
Reward
Constructor✖️
AwardBlockReward✖️
ThisEpochReward✖️
UpdateNetworkKPI✖️
System
Constructor✖️
Verified Registry
Constructor✖️
AddVerifier✖️
RemoveVerifier✖️
AddVerifiedClient✖️
RemoveVerifiedClientDataCap✖️
RemoveExpiredAllocations✖️
ClaimAllocations✖️
GetClaims✖️
ExtendClaimTerms✖️
RemoveExpiredClaims✖️
UniversalReceiverHook✖️
List/get allocations✖️
List claims✖️
List/check verifiers✖️

Mock scenarios

Miner Actor

MethodsScenario 1
constructor
Paramsaddress owner;set owner
int64 available_balanceset available_balance
int64 vesting_funds_epochset vesting_funds_epoch
int256 vesting_funds_amountset vesting_funds_amount
ReturnNone
set_ownerif no owner, set owner to be the attribute. If there's an owner, return error
Paramsaddress owner;
ReturnNone
get_owner
Paramsvoid-
ReturnCommonTypes.Addr owneraddress owner;return owner if there's an owner. return error if no owner
is_controlling_address
ParamsCommonTypes.Addraddress addr;any
Returnbool is_controlling;return false
get_sector_size
Paramsvoid-
ReturnCommonTypes.SectorSize sector_size;_8MiB
get_available_balance
Paramsvoid-
Returnint256 available_balance;return the value set in constructor
get_vesting_funds
Paramsvoid-
ReturnCommonTypes.VestingFunds[]int64 epoch;return the value set in constructor
int256 amount;return the value set in constructor
change_beneficiary
ParamsCommonTypes.Addr new_beneficiary;change the beneficiary info according to the params
int256 new_quota;change the beneficiary info according to the params
uint64 new_expiration;change the beneficiary info according to the params
Returnvoid-
get_beneficiary
Paramsvoid-
ReturnCommonTypes.ActiveBeneficiary active;Addr beneficiary;return the beneficiary set in change_beneficiary
BeneficiaryTerm term;int256 quota;return the quota set in change_beneficiary
int256 used_quota;0
uint64 expiration;return the expiration set in change_beneficiary
CommonTypes.PendingBeneficiaryChange proposed;Addr new_beneficiary;Return null for pendingBeneficiary
int256 new_quota;-
uint64 new_expiration;-
bool approved_by_beneficiary;-
bool approved_by_nominee;-

Market actor

MethodsScenario 1
constructor
Params
ReturnNone
add_balance
ParamsCommonTypes.Addr provider_or_client;Use a hash table to store the amount deposited by the provider_or_clientReturn
withdraw_balance
ParamsCommonTypes.Addr provider_or_client;Deduct the amount deposited by the provider_or_client in the hash table.
int amount;If less than the specified amount is available, yields the entire available balance
Returnint amount_withdrawn;min(available_balance, amount)
get_deal_activation
Paramsuint64 deal_id;Return data in the mock deals tab; if deal_id does not exisit in that tab, return error
Returnint64 activated;Return data in the mock deals tab; if deal_id does not exisit in that tab, return error
int64 terminated;Return data in the mock deals tab; if deal_id does not exisit in that tab, return error
get_balance
ParamsCommonTypes.Addr addr;any address
Returnuint256 balance;return the balance of the address
uint256 locked;return 0
get_deal_data_commitment
Paramsuint64 deal_id;Return data in the mock deals tab; if deal_id does not exisit in that tab, return error
ReturnCID data;Return data in the mock deals tab; if deal_id does not exisit in that tab, return error
uint64 size;Return data in the mock deals tab; if deal_id does not exisit in that tab, return error
get_deal_client
Paramsuint64 deal_id;Return data in the mock deals tab; if deal_id does not exisit in that tab, return error
Returnuint64 client;Return data in the mock deals tab; if deal_id does not exisit in that tab, return error
get_deal_provider
Paramsuint64 deal_id;Return data in the mock deals tab; if deal_id does not exisit in that tab, return error
Returnuint64 provider;Return data in the mock deals tab; if deal_id does not exisit in that tab, return error
get_deal_label
Paramsuint64 deal_id;Return data in the mock deals tab; if deal_id does not exisit in that tab, return error
Returnbytes label;Return data in the mock deals tab; if deal_id does not exisit in that tab, return error
get_deal_term
Paramsuint64 deal_id;Return data in the mock deals tab; if deal_id does not exisit in that tab, return error
Returnint64 start;Return data in the mock deals tab; if deal_id does not exisit in that tab, return error
int64 end;Return data in the mock deals tab; if deal_id does not exisit in that tab, return error
get_deal_total_price
Paramsuint64 deal_id;Return data in the mock deals tab; if deal_id does not exisit in that tab, return error
Returnuint256 price_per_epoch;Return data in the mock deals tab; if deal_id does not exisit in that tab, return error
get_deal_client_collateral
Paramsuint64 deal_id;Return data in the mock deals tab; if deal_id does not exisit in that tab, return error
Returnuint256 collateral;Return data in the mock deals tab; if deal_id does not exisit in that tab, return error
get_deal_provider_collateral
Paramsuint64 deal_id;Return data in the mock deals tab; if deal_id does not exisit in that tab, return error
Returnuint256 collateral;Return data in the mock deals tab; if deal_id does not exisit in that tab, return error
get_deal_verified
Paramsuint64 deal_id;Return data in the mock deals tab; if deal_id does not exisit in that tab, return error
Returnbool verified;Return data in the mock deals tab; if deal_id does not exisit in that tab, return error