-
Notifications
You must be signed in to change notification settings - Fork 314
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* eslint-disable no-await-in-loop */ | ||
|
||
const ethers = require('ethers'); | ||
require('dotenv').config(); | ||
|
||
const rollupManagerAbi = require("../../../artifacts/contracts/v2/PolygonRollupManager.sol/PolygonRollupManager.json").abi; | ||
Check failure on line 6 in docker/scripts/tools/check-docker-deploy.js GitHub Actions / lint-and-test (16.x)
Check failure on line 6 in docker/scripts/tools/check-docker-deploy.js GitHub Actions / lint-and-test (16.x)
Check failure on line 6 in docker/scripts/tools/check-docker-deploy.js GitHub Actions / lint-and-test (16.x)
|
||
|
||
async function main() { | ||
const currentProvider = ethers.getDefaultProvider('http://localhost:8545'); | ||
const signerNode = await currentProvider.getSigner(); | ||
|
||
const rollupManagerContract = new ethers.Contract("0xB7f8BC63BbcaD18155201308C8f3540b07f84F5e", rollupManagerAbi, signerNode); | ||
Check failure on line 12 in docker/scripts/tools/check-docker-deploy.js GitHub Actions / lint-and-test (16.x)
|
||
const infoContract = await rollupManagerContract.rollupIDToRollupDataV2(1); | ||
const info = { | ||
"rollupContract": infoContract[0], | ||
Check failure on line 15 in docker/scripts/tools/check-docker-deploy.js GitHub Actions / lint-and-test (16.x)
Check failure on line 15 in docker/scripts/tools/check-docker-deploy.js GitHub Actions / lint-and-test (16.x)
Check failure on line 15 in docker/scripts/tools/check-docker-deploy.js GitHub Actions / lint-and-test (16.x)
|
||
"chainID": infoContract[1], | ||
Check failure on line 16 in docker/scripts/tools/check-docker-deploy.js GitHub Actions / lint-and-test (16.x)
Check failure on line 16 in docker/scripts/tools/check-docker-deploy.js GitHub Actions / lint-and-test (16.x)
Check failure on line 16 in docker/scripts/tools/check-docker-deploy.js GitHub Actions / lint-and-test (16.x)
|
||
"verifier": infoContract[2], | ||
Check failure on line 17 in docker/scripts/tools/check-docker-deploy.js GitHub Actions / lint-and-test (16.x)
Check failure on line 17 in docker/scripts/tools/check-docker-deploy.js GitHub Actions / lint-and-test (16.x)
Check failure on line 17 in docker/scripts/tools/check-docker-deploy.js GitHub Actions / lint-and-test (16.x)
|
||
"forkID": infoContract[3], | ||
Check failure on line 18 in docker/scripts/tools/check-docker-deploy.js GitHub Actions / lint-and-test (16.x)
|
||
"lastLocalExitRoot": infoContract[4], | ||
"lastBatchSequenced": infoContract[5], | ||
"lastVerifiedBatch": infoContract[6], | ||
"lastVerifiedBatchBeforeUpgrade": infoContract[7], | ||
"rollupTypeID": infoContract[8], | ||
"rollupVerifierType": infoContract[9], | ||
"lastPessimisticRoot": infoContract[10], | ||
"programVKey": infoContract[11], | ||
} | ||
console.log(info) | ||
} | ||
|
||
main() | ||
.then(() => process.exit(0)) | ||
.catch((error) => { | ||
console.error(error); | ||
process.exit(1); | ||
}); |