Everything in this document should be executed from the root directory of the following git repository.
git clone https://github.com/Bisonai/data-feed-consumer
yarn install
npx mnemonics
MNEMONIC=<YOUR MNEMONIC FROM STEP 1>
PROVIDER=https://api.baobab.klaytn.net:8651
npx hardhat address --mnemonic "<YOUR MNEMONIC FROM STEP 1>"
Insert your address from previous step and request $KLAY.
https://baobab.wallet.klaytn.foundation/faucet
https://github.com/Bisonai/data-feed-consumer/blob/master/contracts/DataFeedConsumer.sol
function latestRoundData()
external
view
returns (
uint80 id,
int256 answer,
uint256 startedAt,
uint256 updatedAt,
uint80 answeredInRound
);
yarn compile
npx hardhat deploy --network baobab
npx hardhat run scripts/read-data.ts --network baobab