Skip to content

Commit

Permalink
update forkID=11 docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
laisolizq committed Sep 13, 2024
1 parent 9ec970d commit 2796cff
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 5 deletions.
36 changes: 36 additions & 0 deletions docker/scripts/tools/check-docker-deploy.js
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

View workflow job for this annotation

GitHub Actions / lint-and-test (16.x)

Unable to resolve path to module '../../../artifacts/contracts/v2/PolygonRollupManager.sol/PolygonRollupManager.json'

Check failure on line 6 in docker/scripts/tools/check-docker-deploy.js

View workflow job for this annotation

GitHub Actions / lint-and-test (16.x)

Strings must use singlequote

Check failure on line 6 in docker/scripts/tools/check-docker-deploy.js

View workflow job for this annotation

GitHub Actions / lint-and-test (16.x)

Unable to resolve path to module '../../../artifacts/contracts/v2/PolygonRollupManager.sol/PolygonRollupManager.json'

Check failure on line 6 in docker/scripts/tools/check-docker-deploy.js

View workflow job for this annotation

GitHub Actions / lint-and-test (16.x)

Strings must use singlequote

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

View workflow job for this annotation

GitHub Actions / lint-and-test (16.x)

Strings must use singlequote

Check failure on line 12 in docker/scripts/tools/check-docker-deploy.js

View workflow job for this annotation

GitHub Actions / lint-and-test (16.x)

Strings must use singlequote
const infoContract = await rollupManagerContract.rollupIDToRollupDataV2(1);
const info = {
"rollupContract": infoContract[0],

Check failure on line 15 in docker/scripts/tools/check-docker-deploy.js

View workflow job for this annotation

GitHub Actions / lint-and-test (16.x)

Unnecessarily quoted property 'rollupContract' found

Check failure on line 15 in docker/scripts/tools/check-docker-deploy.js

View workflow job for this annotation

GitHub Actions / lint-and-test (16.x)

Strings must use singlequote

Check failure on line 15 in docker/scripts/tools/check-docker-deploy.js

View workflow job for this annotation

GitHub Actions / lint-and-test (16.x)

Unnecessarily quoted property 'rollupContract' found

Check failure on line 15 in docker/scripts/tools/check-docker-deploy.js

View workflow job for this annotation

GitHub Actions / lint-and-test (16.x)

Strings must use singlequote
"chainID": infoContract[1],

Check failure on line 16 in docker/scripts/tools/check-docker-deploy.js

View workflow job for this annotation

GitHub Actions / lint-and-test (16.x)

Unnecessarily quoted property 'chainID' found

Check failure on line 16 in docker/scripts/tools/check-docker-deploy.js

View workflow job for this annotation

GitHub Actions / lint-and-test (16.x)

Strings must use singlequote

Check failure on line 16 in docker/scripts/tools/check-docker-deploy.js

View workflow job for this annotation

GitHub Actions / lint-and-test (16.x)

Unnecessarily quoted property 'chainID' found

Check failure on line 16 in docker/scripts/tools/check-docker-deploy.js

View workflow job for this annotation

GitHub Actions / lint-and-test (16.x)

Strings must use singlequote
"verifier": infoContract[2],

Check failure on line 17 in docker/scripts/tools/check-docker-deploy.js

View workflow job for this annotation

GitHub Actions / lint-and-test (16.x)

Unnecessarily quoted property 'verifier' found

Check failure on line 17 in docker/scripts/tools/check-docker-deploy.js

View workflow job for this annotation

GitHub Actions / lint-and-test (16.x)

Strings must use singlequote

Check failure on line 17 in docker/scripts/tools/check-docker-deploy.js

View workflow job for this annotation

GitHub Actions / lint-and-test (16.x)

Unnecessarily quoted property 'verifier' found

Check failure on line 17 in docker/scripts/tools/check-docker-deploy.js

View workflow job for this annotation

GitHub Actions / lint-and-test (16.x)

Strings must use singlequote
"forkID": infoContract[3],

Check failure on line 18 in docker/scripts/tools/check-docker-deploy.js

View workflow job for this annotation

GitHub Actions / lint-and-test (16.x)

Unnecessarily quoted property 'forkID' found

Check failure on line 18 in docker/scripts/tools/check-docker-deploy.js

View workflow job for this annotation

GitHub Actions / lint-and-test (16.x)

Unnecessarily quoted property 'forkID' found
"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);
});
10 changes: 5 additions & 5 deletions docker/scripts/v2/create_rollup_parameters_docker.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
"trustedSequencer": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
"chainID": 1001,
"adminZkEVM": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
"forkID": 8,
"forkID": 11,
"consensusContract": "PolygonPessimisticConsensus",
"gasTokenAddress":"",
"gasTokenAddress": "",
"deployerPvtKey": "",
"maxFeePerGas":"",
"maxPriorityFeePerGas":"",
"maxFeePerGas": "",
"maxPriorityFeePerGas": "",
"multiplierGas": "",
"programVKey": "0xac51a6a2e513d02e4f39ea51d4d133cec200b940805f1054eabbb6d6412c959f"
}
}

0 comments on commit 2796cff

Please sign in to comment.