Skip to content

Latest commit

 

History

History
35 lines (21 loc) · 988 Bytes

File metadata and controls

35 lines (21 loc) · 988 Bytes

WaxDAO updatefarm

This script will call the waxdaofarmer::updatefarm action to periodically update V1 farms.

Installation

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.

Usage

Then run the script with npm run start.

Environment Variables

The following environment variables are required:

  • ACTOR: The account to use for the transaction
  • PERMISSION: The permission to use for the transaction
  • PRIVATE_KEY: The private key
  • CHAIN_ID: The chain ID
  • CHAIN_URL: The chain URL
  • INTERVAL: The interval in seconds between updates (default: 60)
  • BATCH_SIZE: The number of farms to update at once (default: 4)

Best Practices

It is best to use a unique private key on a permission that can only call the waxdaofarmer::updatefarm action.

License

This project is licensed under the MIT License - see the LICENSE file for details.