This script will call the waxdaofarmer::updatefarm action to periodically update V1 farms.
This script requires Node.js >=20 and NPM.
Clone the repository with git clone and cd into the directory.
Install the required packages with npm ci.
Then run the script with npm run start.
The following environment variables are required:
ACTOR: The account to use for the transactionPERMISSION: The permission to use for the transactionPRIVATE_KEY: The private keyCHAIN_ID: The chain IDCHAIN_URL: The chain URLINTERVAL: The interval in seconds between updates (default: 60)BATCH_SIZE: The number of farms to update at once (default: 4)
It is best to use a unique private key on a permission that can only call the waxdaofarmer::updatefarm action.
This project is licensed under the MIT License - see the LICENSE file for details.