Skip to content

Commit

Permalink
mini thingds
Browse files Browse the repository at this point in the history
  • Loading branch information
invocamanman committed Aug 5, 2024
1 parent 8942b02 commit 8f06eb7
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 27 deletions.
6 changes: 4 additions & 2 deletions contracts/v2/PolygonRollupManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ contract PolygonRollupManager is
address consensusImplementation;
address verifier;
uint64 forkID;
/// @custom:oz-renamed-from rollupCompatibilityID
/// @custom:oz-retyped-from uint8
VerifierType rollupVerifierType;
bool obsolete;
Expand Down Expand Up @@ -92,6 +93,7 @@ contract PolygonRollupManager is
uint64 _legacyLastPendingStateConsolidated;
uint64 lastVerifiedBatchBeforeUpgrade;
uint64 rollupTypeID;
/// @custom:oz-renamed-from rollupCompatibilityID
/// @custom:oz-retyped-from uint8
VerifierType rollupVerifierType;
bytes32 lastPessimisticRoot;
Expand Down Expand Up @@ -242,14 +244,14 @@ contract PolygonRollupManager is
uint32 public rollupTypeCount;

// Rollup type mapping
// @custom:oz-retyped-from PolygonRollupManagerPrevious.RollupType
/// @custom:oz-retyped-from PolygonRollupManagerPrevious.RollupType
mapping(uint32 rollupTypeID => RollupType) public rollupTypeMap;

// Number of rollups added, every new rollup will be assigned sequencially a new ID
uint32 public rollupCount;

// Rollups ID mapping
/// @custom:oz-renamed-from rollupIDToRollupData
/// @custom:oz-retyped-from PolygonRollupManagerPrevious.RollupData
mapping(uint32 rollupID => RollupData) internal _rollupIDToRollupData;

// Rollups address mapping
Expand Down
43 changes: 21 additions & 22 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"@openzeppelin/contracts": "4.8.2",
"@openzeppelin/contracts-upgradeable": "4.8.2",
"@openzeppelin/contracts5": "npm:@openzeppelin/contracts@^5.0.0",
"@openzeppelin/hardhat-upgrades": "2.5.0",
"@openzeppelin/hardhat-upgrades": "^2.5.1",
"@types/yargs": "^17.0.28",
"circomlibjs": "0.1.1",
"dotenv": "^8.6.0",
Expand Down Expand Up @@ -111,4 +111,4 @@
"verify:upgradeV2:mainnet": "npx hardhat run upgrade/upgradeToV2/verifyContracts.ts --network mainnet",
"saveUpgradeV2:mainnet": "mkdir -p upgrade/upgradeToV2/mainnet_$(date +%s) && cp -r upgrade/upgradeToV2/upgrade_*.json upgrade/upgradeToV2/mainnet_$(date +%s) && cp -r upgrade/upgradeToV2/deploy_*.json upgrade/upgradeToV2/mainnet_$(date +%s) && cp .openzeppelin/mainnet.json upgrade/upgradeToV2/mainnet_$(date +%s)"
}
}
}
1 change: 0 additions & 1 deletion test/contractsv2/PolygonRollupManagerUpgrade.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,6 @@ describe("Polygon Rollup manager upgraded", () => {
],
unsafeAllow: ["constructor", "state-variable-immutable"],
unsafeAllowRenames: true,
unsafeSkipStorageCheck: true,
call: {
fn: "initialize",
args: [
Expand Down

0 comments on commit 8f06eb7

Please sign in to comment.