Skip to content

jcking89/scrt-prediction

Repository files navigation

Price Prediction

This repo is a price prediction contracts on Secret Network.

Deployed contracts

Testnet

Name Address
Oracle secret19hd5ywtp9uqczw8e40vq0psgn9zefey02n806e
SCRT prediction secret1aaxgtpzv8a3pdkznmwkyh4w99uylj4x4232lg7

Development

Environment Setup

  1. Install npm dependencies by using npm i or yarn add
  2. Run local node
docker run -it -p 9091:9091 -p 1337:1337 --name secretjs-testnet enigmampc/secret-network-sw-dev:v1.2.2-1
  1. Update accounts/local.js file with the seed accounts of local node.

  2. Create .env file and add TESTNET_ADDRESS, TESTNET_MENMONIC, MAINNET_ADDRESS, MAINNET_MNEMONIC. These are required to deploy contracts on testnet and mainnet.

How to compile

yarn compile

How to test

yarn test

How to deploy oracle

  1. Complete .env file.
  2. scripts/deployOracle.js will deploy oracle contract, and register SCRT native token and set owner address as a feeder. So before run this, please update asset info, and feeder address.
  3. Run the following commands polar run scripts/deployOracle.js --network testnet

How to deploy prediction

  1. Complete .env file.
  2. Update config in scripts/deployPrediction.js.
  3. Run the following commands polar run scripts/deployPrediction.js --network testnet

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors