CLI Farming
Commande-Line Interface Usage for RHEA Farming
You can setup the following parameters:
export FARMING=ref-farming.testnet
export EX=ref-finance.testnet
export TOKEN=token.ref-finance.testnetView general information
near view $FARMING get_metadataView all farms with pagination
near view $FARMING list_farms '{"from_index": 0, "limit": 100}'Notes:
Outdated_farms are excluded
There are three
farm_statusin contract, they are Created, Running, Endedstart_atis timestamp in secondssession_intervalis timestamp in seconds
View all seeds with pagination
View all rewards with pagination
View single seed information
View all farms per seed
View single farm information
View rewards per user
View unclaimed rewards per user
View seeds per user
Stake/Unstake seed
Claim rewards
Withdraw reward token
Create farm
To create a farm, you need to prepare the farming terms accordingly.
At this point, this is a farm with no reward deposited, farm status is Created.
To activate a farm, deposit some reward tokens into the farm with ft_transfer_call.
Last updated
Was this helpful?