Skip to content

Commit

Permalink
Bump framework (#3595)
Browse files Browse the repository at this point in the history
* Fix Build

* Fix yarn new
  • Loading branch information
mxiao-cll authored Dec 2, 2024
1 parent 245e8d6 commit 8a15f40
Show file tree
Hide file tree
Showing 177 changed files with 683 additions and 2,113 deletions.
94 changes: 94 additions & 0 deletions .changeset/true-symbols-cross.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
---
'@chainlink/dydx-stark-adapter': patch
'@chainlink/historical-average-adapter': patch
'@chainlink/multi-address-list-adapter': patch
'@chainlink/market-status-adapter': patch
'@chainlink/apy-finance-test-adapter': patch
'@chainlink/nexus-kiln-adapter': patch
'@chainlink/gm-token-adapter': patch
'@chainlink/proof-of-reserves-adapter': patch
'@chainlink/stader-address-list-adapter': patch
'@chainlink/eth-beacon-adapter': patch
'@chainlink/frxeth-exchange-rate-adapter': patch
'@chainlink/instruxi-sxt-adapter': patch
'@chainlink/tradermade-adapter': patch
'@chainlink/aleno-adapter': patch
'@chainlink/finage-adapter': patch
'@chainlink/elwood-adapter': patch
'@chainlink/deep-blue-adapter': patch
'@chainlink/cfbenchmarks-adapter': patch
'@chainlink/dxfeed-secondary-adapter': patch
'@chainlink/tradinghours-adapter': patch
'@chainlink/moore-hk-adapter': patch
'@chainlink/gemini-adapter': patch
'@chainlink/gsr-adapter': patch
'@chainlink/alongside-adapter': patch
'@chainlink/m0-adapter': patch
'@chainlink/elven-adapter': patch
'@chainlink/dlc-btc-por-adapter': patch
'@chainlink/por-indexer-adapter': patch
'@chainlink/stader-balance-adapter': patch
'@chainlink/icap-adapter': patch
'@chainlink/view-function-multi-chain-adapter': patch
'@chainlink/dar-adapter': patch
'@chainlink/bitgo-adapter': patch
'@chainlink/s3-csv-reader-adapter': patch
'@chainlink/kaiko-state-adapter': patch
'@chainlink/tiingo-state-adapter': patch
'@chainlink/synthetix-feeds-adapter': patch
'@chainlink/lido-por-adapter': patch
'@chainlink/iex-cloud-adapter': patch
'@chainlink/avalanche-platform-adapter': patch
'@chainlink/lotus-adapter': patch
'@chainlink/openexchangerates-adapter': patch
'@chainlink/por-address-list-adapter': patch
'@chainlink/view-starknet-latest-answer-adapter': patch
'@chainlink/polygon-adapter': patch
'@chainlink/view-function-adapter': patch
'@chainlink/tp-adapter': patch
'@chainlink/moonbeam-address-list-adapter': patch
'@chainlink/gramchain-adapter': patch
'@chainlink/galaxy-adapter': patch
'@chainlink/superstate-adapter': patch
'@chainlink/nav-consulting-adapter': patch
'@chainlink/bank-frick-adapter': patch
'@chainlink/kaiko-adapter': patch
'@chainlink/finnhub-adapter': patch
'@chainlink/wbtc-address-set-adapter': patch
'@chainlink/expand-network-adapter': patch
'@chainlink/finalto-adapter': patch
'@chainlink/polkadot-balance-adapter': patch
'@chainlink/finnhub-secondary-adapter': patch
'@chainlink/coingecko-adapter': patch
'@chainlink/coinbase-prime-adapter': patch
'@chainlink/nft-blue-chip-adapter': patch
'@chainlink/ion.au-adapter': patch
'@chainlink/starknet-gas-price-adapter': patch
'@chainlink/clear-bank-adapter': patch
'@chainlink/coinmetrics-adapter': patch
'@chainlink/ignition-address-list-adapter': patch
'@chainlink/dxfeed-adapter': patch
'@chainlink/oanda-adapter': patch
'@chainlink/the-network-firm-adapter': patch
'@chainlink/blocksize-capital-adapter': patch
'@chainlink/fireblocks-adapter': patch
'@chainlink/mobula-state-adapter': patch
'@chainlink/ncfx-adapter': patch
'@chainlink/trueusd-adapter': patch
'@chainlink/cryptocompare-adapter': patch
'@chainlink/tiingo-adapter': patch
'@chainlink/anchorage-adapter': patch
'@chainlink/token-balance-adapter': patch
'@chainlink/harris-and-trotter-adapter': patch
'@chainlink/bitgo-reserves-adapter': patch
'@chainlink/intrinio-adapter': patch
'@chainlink/twosigma-adapter': patch
'@chainlink/coinmarketcap-adapter': patch
'@chainlink/coinpaprika-adapter': patch
'@chainlink/trumatic-matic-exchange-rate-adapter': patch
'@chainlink/tradingeconomics-adapter': patch
'@chainlink/token-allocation-adapter': patch
'@chainlink/token-allocation-test-adapter': patch
---

Bumped framework version
1,234 changes: 236 additions & 998 deletions .pnp.cjs

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/ejs-npm-2.7.4-879ed38a4e-39f5753d18.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/got-npm-7.1.0-83d1107046-b72514add3.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"scripts": {
"versions": "ts-node-transpile-only ./packages/scripts/src/versions",
"new": "ts-node-transpile-only ./packages/scripts/src/new",
"new-tsconfig": "ts-node-transpile-only ./packages/scripts/src/new tsconfig",
"bundle": "ncc build",
"clean": "rm -rf **/dist; tsc -b --clean ./packages/tsconfig.json",
"lint": "eslint --ext ts .",
Expand Down Expand Up @@ -53,7 +54,7 @@
"source-map-support": "0.5.21"
},
"devDependencies": {
"@chainlink/external-adapter-framework": "1.7.1",
"@chainlink/external-adapter-framework": "1.7.3",
"@changesets/changelog-github": "0.5.0",
"@changesets/cli": "2.27.9",
"@types/babel__core": "7.20.5",
Expand Down
4 changes: 2 additions & 2 deletions packages/composites/apy-finance-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
"start": "yarn server:dist"
},
"dependencies": {
"@chainlink/external-adapter-framework": "1.7.1",
"@chainlink/external-adapter-framework": "1.7.3",
"@chainlink/token-allocation-test-adapter": "workspace:*",
"axios": "1.7.7",
"axios": "1.7.8",
"ethers": "5.4.7",
"tslib": "^2.3.1"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/composites/gm-token/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"typescript": "5.6.3"
},
"dependencies": {
"@chainlink/external-adapter-framework": "1.7.1",
"@chainlink/external-adapter-framework": "1.7.3",
"decimal.js": "^10.3.1",
"ethers": "^5.4.6",
"tslib": "2.4.1"
Expand Down
2 changes: 1 addition & 1 deletion packages/composites/historical-average/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
},
"devDependencies": {
"@chainlink/ea-test-helpers": "workspace:*",
"@chainlink/external-adapter-framework": "1.7.1",
"@chainlink/external-adapter-framework": "1.7.3",
"@types/jest": "27.5.2",
"@types/node": "16.18.119",
"@types/supertest": "2.0.16",
Expand Down
2 changes: 1 addition & 1 deletion packages/composites/market-status/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"typescript": "5.6.3"
},
"dependencies": {
"@chainlink/external-adapter-framework": "1.7.1",
"@chainlink/external-adapter-framework": "1.7.3",
"@chainlink/ncfx-adapter": "workspace:*",
"@chainlink/tradinghours-adapter": "workspace:*",
"tslib": "2.4.1"
Expand Down
2 changes: 1 addition & 1 deletion packages/composites/multi-address-list/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"@chainlink/anchorage-adapter": "workspace:*",
"@chainlink/bitgo-adapter": "workspace:*",
"@chainlink/coinbase-prime-adapter": "workspace:*",
"@chainlink/external-adapter-framework": "1.7.1",
"@chainlink/external-adapter-framework": "1.7.3",
"node-schedule": "2.1.1",
"tslib": "2.4.1"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/composites/nexus-kiln/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"typescript": "5.6.3"
},
"dependencies": {
"@chainlink/external-adapter-framework": "1.7.1",
"@chainlink/external-adapter-framework": "1.7.3",
"tslib": "2.4.1"
}
}
2 changes: 1 addition & 1 deletion packages/composites/proof-of-reserves/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"tslib": "^2.3.1"
},
"devDependencies": {
"@chainlink/external-adapter-framework": "1.7.1",
"@chainlink/external-adapter-framework": "1.7.3",
"@types/jest": "27.5.2",
"@types/node": "16.18.119",
"@types/supertest": "2.0.16",
Expand Down
4 changes: 2 additions & 2 deletions packages/non-deployable/token-allocation-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
"build": "tsc -b"
},
"dependencies": {
"@chainlink/external-adapter-framework": "1.7.1",
"axios": "1.7.7",
"@chainlink/external-adapter-framework": "1.7.3",
"axios": "1.7.8",
"decimal.js": "^10.3.1",
"ethers": "^5.4.6",
"tslib": "^2.3.1"
Expand Down
2 changes: 1 addition & 1 deletion packages/non-deployable/token-allocation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"tslib": "^2.3.1"
},
"devDependencies": {
"@chainlink/external-adapter-framework": "1.7.1",
"@chainlink/external-adapter-framework": "1.7.3",
"@types/jest": "27.5.2",
"@types/node": "16.18.119",
"nock": "13.5.5",
Expand Down
4 changes: 2 additions & 2 deletions packages/scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
"@apidevtools/json-schema-ref-parser": "9.1.2",
"@chainlink/ea-bootstrap": "workspace:*",
"@chainlink/ea-factories": "workspace:*",
"@chainlink/external-adapter-framework": "1.7.1",
"@chainlink/external-adapter-framework": "1.7.3",
"airtable": "0.11.6",
"axios": "1.7.7",
"axios": "1.7.8",
"axios-mock-adapter": "1.20.0",
"axios-observable": "1.3.0",
"backoff-rxjs": "6.5.7",
Expand Down
50 changes: 32 additions & 18 deletions packages/scripts/src/new/index.ts
Original file line number Diff line number Diff line change
@@ -1,27 +1,41 @@
import { execSync } from 'child_process'
import { generate, writeJson } from './lib'

const ADAPTER_TYPES = ['composite', 'source', 'target']
if (process.argv[2] == 'tsconfig') {
// Update tsconfig files
generate().then(writeJson)
} else {
const ADAPTER_TYPES = ['composite', 'source', 'target']

const type = process.argv[2] || 'source'
const type = process.argv[2] || 'source'

if (!ADAPTER_TYPES.includes(type)) {
throw new Error(`Type must be one of: ${ADAPTER_TYPES.join(', ')}`)
}
let path = `packages/sources`
switch (type) {
case 'composite': {
path = 'packages/composites'
break
if (!ADAPTER_TYPES.includes(type)) {
throw new Error(`Type must be one of: ${ADAPTER_TYPES.join(', ')}`)
}
case 'target': {
path = 'packages/targets'
break
let path = `packages/sources`
switch (type) {
case 'composite': {
path = 'packages/composites'
break
}
case 'target': {
path = 'packages/targets'
break
}
}
}

// Create v3 adapter
execSync(`create-external-adapter ${path}`, { stdio: 'inherit' })
execSync(`rm -rf ./.yarn/cache/node_modules`)

const result = execSync(`find . -name "@chainlink-external-adapter-framework*"`, {
encoding: 'utf-8',
})

// Update tsconfig files
generate().then(writeJson)
execSync(`unzip ${result.trimEnd()} -d ./.yarn/cache`, { maxBuffer: 1024 * 1024 * 500 })

execSync(`npm install -g [email protected] > /dev/null 2>&1`)

console.log('Run the following command:')
console.log(
` yo ./.yarn/cache/node_modules/@chainlink/external-adapter-framework/generator-adapter ${path} --ignore-version-check && yarn new tsconfig`,
)
}
2 changes: 1 addition & 1 deletion packages/sources/aleno/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"typescript": "5.6.3"
},
"dependencies": {
"@chainlink/external-adapter-framework": "1.7.1",
"@chainlink/external-adapter-framework": "1.7.3",
"socket.io-client": "^4.8.1",
"tslib": "2.4.1"
}
Expand Down
4 changes: 2 additions & 2 deletions packages/sources/alongside/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
"start": "yarn server:dist"
},
"dependencies": {
"@chainlink/external-adapter-framework": "1.7.1",
"@chainlink/external-adapter-framework": "1.7.3",
"@types/crypto-js": "^4.1.1",
"axios": "1.7.7",
"axios": "1.7.8",
"crypto-js": "^4.2.0",
"ethers": "^5.4.2",
"mathjs": "^11.5.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/sources/anchorage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"typescript": "5.6.3"
},
"dependencies": {
"@chainlink/external-adapter-framework": "1.7.1",
"@chainlink/external-adapter-framework": "1.7.3",
"tslib": "2.4.1"
}
}
2 changes: 1 addition & 1 deletion packages/sources/avalanche-platform/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"typescript": "5.6.3"
},
"dependencies": {
"@chainlink/external-adapter-framework": "1.7.1",
"@chainlink/external-adapter-framework": "1.7.3",
"tslib": "2.4.1"
}
}
4 changes: 2 additions & 2 deletions packages/sources/bank-frick/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
"start": "yarn server:dist"
},
"dependencies": {
"@chainlink/external-adapter-framework": "1.7.1",
"axios": "1.7.7",
"@chainlink/external-adapter-framework": "1.7.3",
"axios": "1.7.8",
"fastify": "^3.29.4",
"tslib": "^2.3.1"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/sources/bitgo-reserves/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"typescript": "5.6.3"
},
"dependencies": {
"@chainlink/external-adapter-framework": "1.7.1",
"@chainlink/external-adapter-framework": "1.7.3",
"tslib": "2.4.1"
}
}
2 changes: 1 addition & 1 deletion packages/sources/bitgo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"typescript": "5.6.3"
},
"dependencies": {
"@chainlink/external-adapter-framework": "1.7.1",
"@chainlink/external-adapter-framework": "1.7.3",
"tslib": "2.4.1"
}
}
2 changes: 1 addition & 1 deletion packages/sources/blocksize-capital/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"start": "yarn server:dist"
},
"dependencies": {
"@chainlink/external-adapter-framework": "1.7.1",
"@chainlink/external-adapter-framework": "1.7.3",
"tslib": "^2.3.1"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/sources/cfbenchmarks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"start": "yarn server:dist"
},
"dependencies": {
"@chainlink/external-adapter-framework": "1.7.1",
"@chainlink/external-adapter-framework": "1.7.3",
"tslib": "2.4.1"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/sources/clear-bank/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@
"devDependencies": {
"@types/jest": "27.5.2",
"@types/node": "16.18.119",
"axios": "1.7.7",
"axios": "1.7.8",
"nock": "13.5.5",
"typescript": "5.6.3"
},
"dependencies": {
"@chainlink/external-adapter-framework": "1.7.1",
"@chainlink/external-adapter-framework": "1.7.3",
"tslib": "2.4.1"
}
}
2 changes: 1 addition & 1 deletion packages/sources/coinbase-prime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"typescript": "5.6.3"
},
"dependencies": {
"@chainlink/external-adapter-framework": "1.7.1",
"@chainlink/external-adapter-framework": "1.7.3",
"@types/crypto-js": "4.2.2",
"crypto-js": "4.2.0",
"tslib": "2.4.1"
Expand Down
2 changes: 1 addition & 1 deletion packages/sources/coingecko/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"start": "yarn server:dist"
},
"dependencies": {
"@chainlink/external-adapter-framework": "1.7.1",
"@chainlink/external-adapter-framework": "1.7.3",
"tslib": "2.4.1"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/sources/coinmarketcap/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"start": "yarn server:dist"
},
"dependencies": {
"@chainlink/external-adapter-framework": "1.7.1",
"@chainlink/external-adapter-framework": "1.7.3",
"tslib": "^2.3.1"
},
"devDependencies": {
Expand Down
Loading

0 comments on commit 8a15f40

Please sign in to comment.