Skip to content

Commit

Permalink
Merge pull request #1740 from api3dao/deploy-api3-chains-2
Browse files Browse the repository at this point in the history
Bump @api3/chains version to 2.0.0
  • Loading branch information
bbenligiray authored Apr 15, 2023
2 parents 2f45b15 + 52b7e24 commit 1d43657
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 6 deletions.
5 changes: 3 additions & 2 deletions packages/airnode-protocol/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@
"test:verify-local": "hardhat run scripts/verify-local.ts",
"test:verify-local:network": "hardhat run scripts/verify-local.ts --network $NETWORK",
"test:coverage": "hardhat coverage",
"test:gas": "REPORT_GAS=TRUE hardhat test"
"test:gas": "REPORT_GAS=TRUE hardhat test",
"write-example-env-file": "hardhat run scripts/write-example-env-file.ts"
},
"devDependencies": {
"@api3/chains": "https://github.com/api3dao/chains.git#new-chains",
"@api3/chains": "^2.0.0",
"@nomiclabs/hardhat-ethers": "^2.2.2",
"@nomiclabs/hardhat-etherscan": "^3.1.7",
"@nomiclabs/hardhat-waffle": "^2.0.5",
Expand Down
9 changes: 9 additions & 0 deletions packages/airnode-protocol/scripts/write-example-env-file.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import * as fs from 'fs';
import * as api3Chains from '@api3/chains';

fs.writeFileSync(
'example.env',
api3Chains.getEnvVariables().reduce((fileContents: string, envVariableName: string) => {
return fileContents + `${envVariableName}=""\n`;
}, '')
);
11 changes: 7 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,12 @@
"@jridgewell/gen-mapping" "^0.1.0"
"@jridgewell/trace-mapping" "^0.3.9"

"@api3/chains@https://github.com/api3dao/chains.git#new-chains":
version "1.4.0"
resolved "https://github.com/api3dao/chains.git#d046cb9378c16c1da1160d029f8151e97b2616c2"
"@api3/chains@^2.0.0":
version "2.0.0"
resolved "https://registry.yarnpkg.com/@api3/chains/-/chains-2.0.0.tgz#48bd8d808e1cbdaa523da2831722b92cbe0329a3"
integrity sha512-CpLJUG2JSfkbro8Xb1/51Vcb2OBp5M/Gw8SNdYaJa/dJrltPKyEFVaaRrU3koQQ1Mag1ThZZOnYcwnA5dpXAmg==
dependencies:
zod "^3.21.4"

"@api3/[email protected]":
version "2.0.0"
Expand Down Expand Up @@ -15139,7 +15142,7 @@ zksync-web3@^0.8.1:
resolved "https://registry.yarnpkg.com/zksync-web3/-/zksync-web3-0.8.1.tgz#db289d8f6caf61f4d5ddc471fa3448d93208dc14"
integrity sha512-1A4aHPQ3MyuGjpv5X/8pVEN+MdZqMjfVmiweQSRjOlklXYu65wT9BGEOtCmMs5d3gIvLp4ssfTeuR5OCKOD2kw==

zod@^3.20.6:
zod@^3.20.6, zod@^3.21.4:
version "3.21.4"
resolved "https://registry.yarnpkg.com/zod/-/zod-3.21.4.tgz#10882231d992519f0a10b5dd58a38c9dabbb64db"
integrity sha512-m46AKbrzKVzOzs/DZgVnG5H55N1sv1M8qZU3A8RIKbs3mrACDNeIOeilDymVb2HdmP8uwshOCF4uJ8uM9rCqJw==

0 comments on commit 1d43657

Please sign in to comment.