Request form
Cookbook may introduce a token in the future. Share and contribute to be eligible for future airdrops.
close icon
relevant tag icon
Filecoin Miner Operator
copy icon
FILL
• version 1.0.0
FEVM
Mining

Filecoin Miner Operator

Provides functions for retrieving information about Filecoin miners, changing their beneficiary, worker address, and peer ID, as well as withdrawing funds and repaying debt.

*Visit desktop site to download or deploy

Version

1.0.0

Creator

FILL

Last Publish

3/18/2023
Any contract you deploy is yours.
Fully owned and controlled by your wallet.
Documentation
Source Code
test(uint64,uint256) :
This function sends a specified amount of cryptocurrency to a miner's ID using the SendAPI. (autogenerated documentation)
testBeneficiary(uint64) :
This function tests and changes the beneficiary of a miner using the MinerAPI library in Solidity. (autogenerated documentation)
get_owner(uint64) :
This function gets the owner of a miner by calling the MinerAPI and passing in the miner's ID. (autogenerated documentation)
change_owner_address(uint64) :
This function changes the owner address of a miner and calls a MinerAPI function to update the change. (autogenerated documentation)
is_controlling_address(uint64) :
This function checks if a given address is controlling a specified miner ID using the MinerAPI.isControllingAddress function. (autogenerated documentation)
get_sector_size(uint64) :
This function returns the sector size of a given target using the MinerAPI and FilActorId. (autogenerated documentation)
get_available_balance(uint64) :
This function returns the available balance of a target FilActorId by calling the MinerAPI. (autogenerated documentation)
get_vesting_funds(uint64) :
This function retrieves vesting funds for a given target and returns the result using MinerAPI and FilActorId. (autogenerated documentation)
change_beneficiary(uint64) :
This function changes the beneficiary of a miner and calls the MinerAPI to execute the change. (autogenerated documentation)
get_beneficiary(uint64) :
This function retrieves the beneficiary of a given target and returns it as a wrapped FilActorId. (autogenerated documentation)
change_worker_address(uint64) :
This function changes the worker address of a miner and calls the MinerAPI to execute the change. (autogenerated documentation)
change_peer_id(uint64) :
This function changes the peer ID of a miner using the MinerAPI and a new FilAddress. (autogenerated documentation)
change_multiaddresses(uint64) :
This function changes the multiaddresses of a miner by calling the MinerAPI function with the given target and parameters. (autogenerated documentation)
repay_debt(uint64) :
This function repays debt for a target FilActorId using the MinerAPI. (autogenerated documentation)
confirm_change_worker_address(uint64) :
This function confirms a change in worker address for a miner by calling a MinerAPI function with the target address as a parameter. (autogenerated documentation)
get_peer_id(uint64) :
This function returns the peer ID of a given target miner using the MinerAPI library. (autogenerated documentation)
get_multiaddresses(uint64) :
This function returns multiple addresses associated with a given target using MinerAPI and FilActorId. (autogenerated documentation)
withdraw_balance(uint64) :
This function withdraws a specified amount of balance from a target account using MinerAPI. (autogenerated documentation)

Get Cookin'
share iconShare

copy iconNo-Code Deploy
copy iconDownload Source
copy iconnpx cookbookdev i Filecoin-Miner-Operator
copy icon

Bytecode

Download

Verification

Download

Last Publish

3/18/2023

Solidity Compiler

v0.8.17+commit.8df45f5f

Version

1.0.0

Creator

FILL

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