Request form
Cookbook may introduce a token in the future. Share and contribute to be eligible for future airdrops.
close icon
relevant tag icon
FEVM Market API
copy icon
Zondax
• version 1.0.0
FEVM

FEVM Market API

This library is a proxy to the singleton Storage Market actor (address: f05). Calling one of its methods will result in a cross-actor call being performed.

*Visit desktop site to download or deploy

Version

1.0.0

Creator

Zondax

Last Publish

3/17/2023
Any contract you deploy is yours.
Fully owned and controlled by your wallet.
Documentation
Source Code
addBalance(uint256) :
This function adds balance to a FilAddress by calling the AddBalanceMethodNum in the Market actor. (autogenerated documentation)
withdrawBalance() :
This function withdraws a balance from a market actor by calling its method and deserializing the result. (autogenerated documentation)
getBalance() :
This function gets the balance of a Filecoin address by calling the GetBalance method on the Market actor. It uses serialization and deserialization to communicate with the actor. (autogenerated documentation)
getDealDataCommitment(uint64) :
This function retrieves commitment data for a given deal ID from the Market actor using CBOR encoding. (autogenerated documentation)
getDealClient(uint64) :
This function retrieves the client ID associated with a given deal ID by calling a method on the Market actor and deserializing the result. (autogenerated documentation)
getDealProvider(uint64) :
This function retrieves the provider of a deal by calling a method on the Market actor and deserializing the result. (autogenerated documentation)
getDealLabel(uint64) :
This function retrieves the label of a deal by calling a smart contract and deserializing the result. (autogenerated documentation)
getDealTerm(uint64) :
This function retrieves the terms of a deal by calling a smart contract and deserializing the result. (autogenerated documentation)
getDealTotalPrice(uint64) :
This function gets the total price of a deal by calling a method on the Market actor and deserializing the result. (autogenerated documentation)
getDealClientCollateral(uint64) :
This function retrieves the client collateral for a given deal ID by calling a method on the Market actor and deserializing the result. (autogenerated documentation)
getDealProviderCollateral(uint64) :
This function retrieves the collateral amount for a given deal ID from the market actor using CBOR encoding. (autogenerated documentation)
getDealVerified(uint64) :
This function retrieves the verification status of a deal from the market actor using its ID. It works by calling the market actor's GetDealVerifiedMethodNum method with the serialized deal ID as input and returning the deserialized boolean result. (autogenerated documentation)
getDealActivation(uint64) :
This function retrieves the activation status of a deal from the market actor using its ID, and returns the result. (autogenerated documentation)
publishStorageDeals() :
This function publishes storage deals and returns the result by calling an actor's method with serialized parameters. (autogenerated documentation)

Get Cookin'
share iconShare

copy iconDownload Source
copy iconnpx cookbookdev i FEVM-Market-API
copy icon

Last Publish

3/17/2023

Version

1.0.0

Creator

Zondax

Cookbook is free.
Any contract you deploy is yours.
Your contract is owned and controlled by you.