bcts-sampleusingtellor v1.0.12
Initial Setup
Prerequisites
The following tools are expected to be installed on your system to run this project:
- Node
- NPM
- YARN
- Hardhat
- Git
Setup
Publish to NPM repository Tellor Protocol dependencies.
Publish usingTellor to NPM repo (see the README.md in the usingTellor folder).
Install dependencies:
yarn installCompile
Compile contracts:
npx hardhat compileLint
Run linter:
npx eslint .Publish
Publish to NPM repository.
Login to your account at https://www.npmjs.com/:
npm loginPublish package to your NPM account:
npm publishUsage
Test Locally (on hardhat)
Run unit tests on the contracts (on hardhat):
npx hardhat testTest Locally (on localhost)
- Start HTTP and WebSocket JSON-RPC server at
http://127.0.0.1:8545/:
npx hardhat node- Run unit tests on the contracts (by other command line terminal):
npx hardhat test --network localhostDeploy Smart Contracts
You need to set the environment variables NODE_URL and PRIVATE_KEY.
To learn more about these environment variables, see the README.md in the tellorFlex folder.
Deploy Smart Contracts onto Fantom testnet
Deploy the contracts onto the Fantom testnet:
npx hardhat run --network fantom_testnet scripts/deploySampleUsingTellor.jsDeploy Smart Contracts onto SwissDLT testnet
Deploy the contracts onto the SwissDLT testnet:
npx hardhat run --network swissdlt_testnet scripts/deploySampleUsingTellor.jsDeploy Smart Contracts onto Hedera testnet
Deploy the contracts onto the Hedera testnet:
npx hardhat run --network hedera_testnet scripts/deploySampleUsingTellor.jsContributing
Bug reports and pull requests are welcome on GitHub at: https://github.com/SELISEdigitalplatforms/l3-solidity-bcts-tellor