make
./contract-metaallocator-cli --help
You can also install globally in /usr/local/bin/
:
make && make install
contract-metaallocator-cli --help
It's working as an addition to standard lotus
command, so to use it you need Lotus Daemon running locally. Use LOTUS_PATH
env var if you have your Lotus initialzed in non-standard location.
Deploy new instance of allocator contract.
USAGE:
contract-metaallocator-cli deploy-allocator-contract [command options] registryAddress initialContractOwner
OPTIONS:
--from value optionally specify your address to send the message from
registryAddress
- EVM address of the Allocator Contract Registry- testnet & mainnet addresses TBD
initialContractOwner
- EVM address of the contract owner. Contract owner will be able to manage allowance usingadd-allowance
andset-allowance
commands.
List registered allocator contracts.
USAGE:
contract-metaallocator-cli list-contracts [command options] registryAddress
registryAddress
- EVM address of the Allocator Contract Registry- testnet & mainnet addresses TBD
List allocators in given allocator contract
USAGE:
contract-metaallocator-cli list-allocators [command options] allocatorContractAddress
allocatorContractAddress
- EVM address of the Allocator Contract
Grant allowance to an allocator.
USAGE:
contract-metaallocator-cli add-allowance [command options] allocatorContractAddress allocatorAddress amount
OPTIONS:
--from value optionally specify your address to send the message from
allocatorContractAddress
- EVM address of the Allocator ContractallocatorAddress
- EVM address of the Allocator to grant allowance toamount
- amount of allowance to grant
Set the allowance of a given allocator - can be used to remove it.
USAGE:
contract-metaallocator-cli set-allowance [command options] allocatorContractAddress allocatorAddress amount
OPTIONS:
--from value optionally specify your address to send the message from
allocatorContractAddress
- EVM address of the Allocator ContractallocatorAddress
- EVM address of the Allocatoramount
- the new allowance
Add verified client with datacap.
USAGE:
contract-metaallocator-cli add-verified-client [command options] allocatorContractAddress clientAddress amount
OPTIONS:
--from value optionally specify your address to send the message from
allocatorContractAddress
- EVM address of the Allocator ContractclientAddress
- Filecoin address of the clientamount
- datacap to grant