Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix build dockerv2:contracts #326

Merged
merged 3 commits into from
Sep 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion deployment/v2/3_deployContracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ async function main() {
0, // unused parameter
],
{
initializer: "initialize",
initializer: "initialize(address,uint64,uint64,address,address,address,address,address,uint64,uint64)",
constructorArgs: [
polygonZkEVMGlobalExitRoot?.target,
polTokenAddress,
Expand Down
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-console */

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)

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

async function main() {
const currentProvider = ethers.getDefaultProvider('http://localhost:8545');
const signerNode = await currentProvider.getSigner();

const rollupManagerContract = new ethers.Contract('0xB7f8BC63BbcaD18155201308C8f3540b07f84F5e', rollupManagerAbi, signerNode);
const infoContract = await rollupManagerContract.rollupIDToRollupDataV2(1);
const info = {
rollupContract: infoContract[0],
chainID: infoContract[1],
verifier: infoContract[2],
forkID: infoContract[3],
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"
}
}
Loading