An oracle script for the epoch.drops service related to Drops.
Create an .env
file in the root folder containing:
CHAIN_NAME=EOS
ACCOUNT_NAME=oracle1.gm
PERMISSION_LEVEL=active
PRIVATE_KEY=5PRIVATKEY
The permission can be scoped to epoch.drops
and all actions on the contract for security purposes.
A docker-compose.yaml
file is included to make deployment with Docker and Docker Compose as easy as possible.
After creating the .env
file, run the build:
docker-compose build
And then launch the oracle with:
docker-compose up -d
You can view logs via:
docker-compose logs
And stop the oracle with:
docker-compose down
bun run src/index.ts
More ways to run will be added soon. PRs welcome!