Skip to content
This repository has been archived by the owner on Jun 15, 2024. It is now read-only.

dgma/tyche-node-london-hack

Repository files navigation

Quality gate

Decentralized Oracle Node

Implementation of the Oracle node that utilizes commit/reveal mechanism to update the Oracle contract with the current price from random sources.

This repo contains a docker compose configuration to run 12 nodes in parrallel

[NOTE] This implementation is for the demo purposes only.

image info

Local Development

  1. Create a .env file with the following environment variables specified
COINMARKETCAP_KEY="<api_key_here>"
RPC="https://base-sepolia.g.alchemy.com/v2/ykvfAeCiG45ysR_S_SetqZETLRvy-p-s"
WS_RPC="wss://base-sepolia.g.alchemy.com/v2/ykvfAeCiG45ysR_S_SetqZETLRvy-p-s"
NETWORK="baseSepolia"
APININJAS_KEY="<api_key_here>"
  1. Create a .env file for each node implementation under the src/oracle-nodes/* folder the following environment variables specified
# src/oracle-nodes/node1

# Node primary key
NODE_PK="<primary_key_here>"
  1. Now you can run any of the nodes locally. For example
npx ts-node src/oracle-nodes/node1

Or you can run all of the nodes together with docker-compose

docker compose build
docker compose up

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •