Skip to content

Commit 78419d3

Browse files
chore: update symbols (#14)
1 parent b42fb4e commit 78419d3

4 files changed

Lines changed: 16 additions & 16 deletions

File tree

‎README.md‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Consumer smart contract that reads from [Orakl Network](https://www.orakl.network) Data Feed.
44

5-
> Warning: This repository and smart contract are meant to be for deployment on [`Baobab`](https://docs.klaytn.foundation/misc/faq#what-is-cypress-what-is-baobab).
5+
> Warning: This repository and smart contract are meant to be for deployment on Kairos.
66
77
Currently, you can access the following data feeds from Orakl Network.
88

@@ -25,7 +25,7 @@ cp .env.example .env
2525
```
2626

2727
`PROVIDER` can be set to any JSON-RPC endpoint.
28-
The list of free available JSON-RPC endpoint can be found in [official Klaytn documentation](https://docs.klaytn.foundation/content/dapp/json-rpc/public-en#testnet-baobab-public-json-rpc-endpoints).
28+
The list of free available JSON-RPC endpoint can be found in [official Kaia documentation](https://docs.kaia.io/references/public-en/).
2929

3030
This repository supports connection to wallet either through mnemonic or private key.
3131

@@ -37,8 +37,8 @@ This repository supports connection to wallet either through mnemonic or private
3737
npx mnemonics
3838
```
3939

40-
After mnemonic is generated, you need to convert it to public address and fund it with KLAY.
41-
If you do not have any KLAY in your account, you cannot deploy smart contracts or make any transactions.
40+
After mnemonic is generated, you need to convert it to public address and fund it with $KAIA.
41+
If you do not have any $KAIA in your account, you cannot deploy smart contracts or make any transactions.
4242

4343
You can convert your newly generated mnemonic with following hardhat task.
4444
Please replace the `[MENONIC]` with your mnemonic.
@@ -48,7 +48,7 @@ npx hardhat address --mnemonic [MNEMONIC]
4848
```
4949

5050
The script will print out a public address corresponding to your mnemonic.
51-
Then, you can use this address to receive free KLAY using [Baobab's faucet](https://baobab.wallet.klaytn.foundation/faucet).
51+
Then, you can use this address to receive free $KAIA using [Kairos faucet](https://www.kaia.io/faucet).
5252

5353
### Private key
5454

@@ -72,31 +72,31 @@ yarn compile
7272

7373
```shell
7474
# feed example
75-
npx hardhat deploy --network baobab --deploy-scripts deploy/DataFeedConsumer
75+
npx hardhat deploy --network kairos --deploy-scripts deploy/DataFeedConsumer
7676
```
7777

7878
```shell
7979
# router example
80-
npx hardhat deploy --network baobab --deploy-scripts deploy/DataFeedRouterConsumer
80+
npx hardhat deploy --network kairos --deploy-scripts deploy/DataFeedRouterConsumer
8181
```
8282

8383
## Request the latest value from Data Feed
8484

8585
Before running the script below, one must deploy `DataFeedConsumer` smart contract.
8686
This step has to be performed only once.
87-
To deploy `DataFeedConsumer`, run `npx hardhat deploy --network baobab`.
87+
To deploy `DataFeedConsumer`, run `npx hardhat deploy --network kairos`.
8888

8989
> Reading information from feed is free of charge for public data feeds.
9090
> You pay only for deployment of smart contract and execution of its functions.
9191
9292
```shell
93-
npx hardhat run scripts/read-data.ts --network baobab
93+
npx hardhat run scripts/read-data.ts --network kairo
9494
```
9595

9696
## Request the latest value from Data Feed through RouterContract
9797

9898
Pair name's fixed with "BTC-USDT", try out getting latest value of different pairs by changing pair name from the script.
9999

100100
```shell
101-
npx hardhat run scripts/read-data-through-router.ts --network baobab
101+
npx hardhat run scripts/read-data-through-router.ts --network kairos
102102
```

‎deploy/DataFeedConsumer/DataFeedConsumer.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
88

99
console.log('0-DataFeedConsumer.ts')
1010

11-
if (network.name != 'baobab') {
11+
if (network.name != 'kairos') {
1212
console.log('Skipping')
1313
return
1414
}

‎deploy/DataFeedRouterConsumer/DataFeedRouterConsumer.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
88

99
console.log('1-DataFeedRouterConsumer.ts')
1010

11-
if (network.name != 'baobab') {
11+
if (network.name != 'kairos') {
1212
console.log('Skipping')
1313
return
1414
}

‎hardhat.config.ts‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ const config: HardhatUserConfig = {
4040
gas: 1_400_000,
4141
gasPrice: 250_000_000_000
4242
},
43-
baobab: {
43+
kairos: {
4444
url: process.env.PROVIDER || 'https://public-en.kairos.node.kaia.io',
4545
chainId: 1001,
4646
...commonConfig
4747
},
48-
cypress: {
48+
mainnet: {
4949
url: process.env.PROVIDER || 'https://public-en.node.kaia.io',
5050
...commonConfig
5151
}
@@ -59,10 +59,10 @@ const config: HardhatUserConfig = {
5959
https://raw.githubusercontent.com/Bisonai/orakl/master/contracts/v0.1/deployments/datafeeds-addresses.json
6060
*/
6161
feedProxy: {
62-
baobab: '0x23c95f4842ac01a6eca3381005c5749f575ea801' // BTC-USDT
62+
kairos: '0x23c95f4842ac01a6eca3381005c5749f575ea801' // BTC-USDT
6363
},
6464
feedRouter: {
65-
baobab: '0xd9dbbb92a6ecb8b8d3e386b8d0ad8284bd816ef1'
65+
kairos: '0xd9dbbb92a6ecb8b8d3e386b8d0ad8284bd816ef1'
6666
}
6767
}
6868
}

0 commit comments

Comments
 (0)