Rossco99 / oracle

Script for oracles to run to feed data to the epoch contract

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Oracle Script

An oracle script for the epoch.drops service related to Drops.

Setup

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.

Run with docker-compose

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

Run with bun:

bun run src/index.ts

More ways to run will be added soon. PRs welcome!

About

Script for oracles to run to feed data to the epoch contract


Languages

Language:TypeScript 93.1%Language:Makefile 3.5%Language:Dockerfile 1.7%Language:JavaScript 1.7%