Skip to content

Commit

Permalink
Deploy contracts for 5 new data feeds (#923)
Browse files Browse the repository at this point in the history
* feat: add migration files, update script

* feat: deployment

* feat: update based on feedbacks

* fix: fix typo
  • Loading branch information
nick-bisonai authored Nov 14, 2023
1 parent 066c192 commit 23117a8
Show file tree
Hide file tree
Showing 33 changed files with 19,815 additions and 18 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

1,290 changes: 1,290 additions & 0 deletions contracts/deployments/baobab/Aggregator_CHF-USD_20231114131122.json

Large diffs are not rendered by default.

1,290 changes: 1,290 additions & 0 deletions contracts/deployments/baobab/Aggregator_EUR-USD_20231114131122.json

Large diffs are not rendered by default.

1,290 changes: 1,290 additions & 0 deletions contracts/deployments/baobab/Aggregator_GBP-USD_20231114131122.json

Large diffs are not rendered by default.

1,290 changes: 1,290 additions & 0 deletions contracts/deployments/baobab/Aggregator_JPY-USD_20231114131122.json

Large diffs are not rendered by default.

1,290 changes: 1,290 additions & 0 deletions contracts/deployments/baobab/Aggregator_KRW-USD_20231114131122.json

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

1,290 changes: 1,290 additions & 0 deletions contracts/deployments/cypress/Aggregator_CHF-USD_20231114131189.json

Large diffs are not rendered by default.

1,290 changes: 1,290 additions & 0 deletions contracts/deployments/cypress/Aggregator_EUR-USD_20231114131189.json

Large diffs are not rendered by default.

1,290 changes: 1,290 additions & 0 deletions contracts/deployments/cypress/Aggregator_GBP-USD_20231114131189.json

Large diffs are not rendered by default.

1,290 changes: 1,290 additions & 0 deletions contracts/deployments/cypress/Aggregator_JPY-USD_20231114131189.json

Large diffs are not rendered by default.

1,290 changes: 1,290 additions & 0 deletions contracts/deployments/cypress/Aggregator_KRW-USD_20231114131189.json

Large diffs are not rendered by default.

18 changes: 18 additions & 0 deletions contracts/migration/baobab/Aggregator/20231114131186_CHF-USD.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"deploy": {
"name": "CHF-USD",
"timeout": 0,
"validator": "0x0000000000000000000000000000000000000000",
"decimals": 8,
"description": "CHF-USD"
},
"changeOracles": {
"removed": [],
"added": [
"0xa68a486a654Ca02623e8A41f703A1b24A2cd666e"
],
"minSubmissionCount": 1,
"maxSubmissionCount": 1,
"restartDelay": 0
}
}
18 changes: 18 additions & 0 deletions contracts/migration/baobab/Aggregator/20231114131186_EUR-USD.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"deploy": {
"name": "EUR-USD",
"timeout": 0,
"validator": "0x0000000000000000000000000000000000000000",
"decimals": 8,
"description": "EUR-USD"
},
"changeOracles": {
"removed": [],
"added": [
"0xafF31EA948e85D19eB9ff197B1954A0A90A74E69"
],
"minSubmissionCount": 1,
"maxSubmissionCount": 1,
"restartDelay": 0
}
}
18 changes: 18 additions & 0 deletions contracts/migration/baobab/Aggregator/20231114131186_GBP-USD.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"deploy": {
"name": "GBP-USD",
"timeout": 0,
"validator": "0x0000000000000000000000000000000000000000",
"decimals": 8,
"description": "GBP-USD"
},
"changeOracles": {
"removed": [],
"added": [
"0xDe3bE8Bd48b1b5b049678Cc66A38F0D959087a69"
],
"minSubmissionCount": 1,
"maxSubmissionCount": 1,
"restartDelay": 0
}
}
18 changes: 18 additions & 0 deletions contracts/migration/baobab/Aggregator/20231114131186_JPY-USD.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"deploy": {
"name": "JPY-USD",
"timeout": 0,
"validator": "0x0000000000000000000000000000000000000000",
"decimals": 8,
"description": "JPY-USD"
},
"changeOracles": {
"removed": [],
"added": [
"0xe06715500bdBd5dafeF2415DC75A11bb1380bfb1"
],
"minSubmissionCount": 1,
"maxSubmissionCount": 1,
"restartDelay": 0
}
}
18 changes: 18 additions & 0 deletions contracts/migration/baobab/Aggregator/20231114131186_KRW-USD.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"deploy": {
"name": "KRW-USD",
"timeout": 0,
"validator": "0x0000000000000000000000000000000000000000",
"decimals": 8,
"description": "KRW-USD"
},
"changeOracles": {
"removed": [],
"added": [
"0x30167101c91dac2757e4F55e337f3aB6E23eC671"
],
"minSubmissionCount": 1,
"maxSubmissionCount": 1,
"restartDelay": 0
}
}
5 changes: 5 additions & 0 deletions contracts/migration/baobab/Aggregator/migration.lock
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,8 @@
20231102141119_KSP-KRW.json
20231102141119_MBX-KRW.json
20231102141119_WEMIX-USDT.json
20231114131186_CHF-USD.json
20231114131186_EUR-USD.json
20231114131186_GBP-USD.json
20231114131186_JPY-USD.json
20231114131186_KRW-USD.json
18 changes: 18 additions & 0 deletions contracts/migration/cypress/Aggregator/20231114131165_CHF-USD.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"deploy": {
"name": "CHF-USD",
"timeout": 0,
"validator": "0x0000000000000000000000000000000000000000",
"decimals": 8,
"description": "CHF-USD"
},
"changeOracles": {
"removed": [],
"added": [
"0x60e898B16E74B1367be5520195F5556A0b193fF5"
],
"minSubmissionCount": 1,
"maxSubmissionCount": 1,
"restartDelay": 0
}
}
18 changes: 18 additions & 0 deletions contracts/migration/cypress/Aggregator/20231114131165_EUR-USD.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"deploy": {
"name": "EUR-USD",
"timeout": 0,
"validator": "0x0000000000000000000000000000000000000000",
"decimals": 8,
"description": "EUR-USD"
},
"changeOracles": {
"removed": [],
"added": [
"0xE505dd4Ff478b7CA2BF4cfCa1A116daD12E4eD71"
],
"minSubmissionCount": 1,
"maxSubmissionCount": 1,
"restartDelay": 0
}
}
18 changes: 18 additions & 0 deletions contracts/migration/cypress/Aggregator/20231114131165_GBP-USD.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"deploy": {
"name": "GBP-USD",
"timeout": 0,
"validator": "0x0000000000000000000000000000000000000000",
"decimals": 8,
"description": "GBP-USD"
},
"changeOracles": {
"removed": [],
"added": [
"0x496Fb9Ab3BEc7eaFD2b66C227D197d4a5Fb634e7"
],
"minSubmissionCount": 1,
"maxSubmissionCount": 1,
"restartDelay": 0
}
}
18 changes: 18 additions & 0 deletions contracts/migration/cypress/Aggregator/20231114131165_JPY-USD.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"deploy": {
"name": "JPY-USD",
"timeout": 0,
"validator": "0x0000000000000000000000000000000000000000",
"decimals": 8,
"description": "JPY-USD"
},
"changeOracles": {
"removed": [],
"added": [
"0x5EBFdE0c96047a9ff4CC4FA4A07d934c2686877A"
],
"minSubmissionCount": 1,
"maxSubmissionCount": 1,
"restartDelay": 0
}
}
18 changes: 18 additions & 0 deletions contracts/migration/cypress/Aggregator/20231114131165_KRW-USD.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"deploy": {
"name": "KRW-USD",
"timeout": 0,
"validator": "0x0000000000000000000000000000000000000000",
"decimals": 8,
"description": "KRW-USD"
},
"changeOracles": {
"removed": [],
"added": [
"0x14d2B6C6515D9D99D8FCCFfAcA39979F077D6C9B"
],
"minSubmissionCount": 1,
"maxSubmissionCount": 1,
"restartDelay": 0
}
}
5 changes: 5 additions & 0 deletions contracts/migration/cypress/Aggregator/migration.lock
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,8 @@
20231102141113_KSP-KRW.json
20231102141113_MBX-KRW.json
20231102141113_WEMIX-USDT.json
20231114131165_CHF-USD.json
20231114131165_EUR-USD.json
20231114131165_GBP-USD.json
20231114131165_JPY-USD.json
20231114131165_KRW-USD.json
Original file line number Diff line number Diff line change
@@ -1,29 +1,16 @@
const { getFormattedDate, loadJson, storeJson } = require('../utils.cjs')
const { ethers } = require('hardhat')

const priceFeeds = [
'BNB-USDT',
'BTC-USDT',
'BUSD-USDT',
'DAI-USDT',
'DOT-USDT',
'ETH-USDT',
'KLAY-USDT',
'MATIC-USDT',
'SOL-USDT',
'TRX-USDT',
'USDC-USDT',
'MNR-KRW'
]
const priceFeeds = []

async function generateWallet() {
const wallet = ethers.Wallet.createRandom()
return wallet
}

async function main() {
const baseSource = './migration/baobab/Aggregator/'
const aggregatorSource = './migration/baobab/Aggregator/20230616160687_BNB-USDT.json'
const baseSource = './migration/cypress/Aggregator/'
const aggregatorSource = './migration/cypress/Aggregator/20231022211021_JOY-USDT.json'
const data = await loadJson(aggregatorSource)
const date = getFormattedDate()

Expand All @@ -49,13 +36,13 @@ async function main() {
console.log(data)

const storeFilePath = `${baseSource}${date}_${priceFeed}.json`
storeJson(storeFilePath, JSON.stringify(data))
storeJson(storeFilePath, JSON.stringify(data, null, 2))
}

// store Wallets
console.log(walletList)
const storeFilePath = `${baseSource}accountList.json`
storeJson(storeFilePath, JSON.stringify(walletList))
storeJson(storeFilePath, JSON.stringify(walletList, null, 2))
}

main().catch((error) => {
Expand Down

0 comments on commit 23117a8

Please sign in to comment.