SuperBluestar / solidity-oracle-schedule

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tendi-revenue-dist

Current project is based on nodejs 16.12 and yarn 1.22.17

Download from github

Download zip file or git clone https://github.com/zess11/tendi-revenue-dist.git

Install

Go to the source directory and open terminal, please run this command.

npm install

Compile

npx hardhat compile

Config

Rename .env.example to .env and open it, then fill the mainnet url and account's private key.

PRIVATE_KEY=Your mainnet account's private key
PROVIDER_URL=Your mainnet infra url

For example
image As you can see, you just copy and past your mainnet's infra url and account's private key for deploying.
Open the scripts/deploy.js and fill the Oracle's owner address at line 8.
Oracle's owner is the account to access to Revenue contract from tendi-revenue-oracle service.
You can also set this same account when deploy tendi-revenue-oracle service.
image Please run this command.

npx hardhat run scripts/deploy.js --network mainnet

Once deployed, you can see the Revenue contract's address on terminal.
Save the Revenue contract's address and use it when deploy tendi-revenue-oracle service.

About


Languages

Language:Solidity 93.6%Language:JavaScript 6.3%Language:Shell 0.1%