From 3a6f17f71c206d0949004ff8597faa6f4512353b Mon Sep 17 00:00:00 2001 From: Ryan Hall Date: Fri, 10 Jan 2025 12:38:11 -0300 Subject: [PATCH] deploy V1 registry to Base-Sepolia --- script/deploy/DeployLPNRegistryV1.s.sol | 4 ++++ script/output/test/Groth16VerifierExtension.sol.ignore | 4 ++-- script/output/test/base_sepolia/v1-deployment.json | 6 +++--- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/script/deploy/DeployLPNRegistryV1.s.sol b/script/deploy/DeployLPNRegistryV1.s.sol index afc786f..bbcdc6d 100644 --- a/script/deploy/DeployLPNRegistryV1.s.sol +++ b/script/deploy/DeployLPNRegistryV1.s.sol @@ -23,6 +23,10 @@ contract DeployLPNRegistryV1 is BaseDeployer { function run() external returns (Deployment memory) { if (getDeployedRegistry() == address(0)) { + if (ERC1967FactoryConstants.ADDRESS.code.length == 0) { + revert("ERC1967Factory not deployed"); + } + deployment.registryImpl = deployImplementation(); address owner = isMainnet() ? address(SAFE) : deployer; diff --git a/script/output/test/Groth16VerifierExtension.sol.ignore b/script/output/test/Groth16VerifierExtension.sol.ignore index 73725b6..89063f9 100644 --- a/script/output/test/Groth16VerifierExtension.sol.ignore +++ b/script/output/test/Groth16VerifierExtension.sol.ignore @@ -48,11 +48,11 @@ contract Groth16VerifierExtension is Verifier { // TODO: These constants are possible to be changed depending on user queries exploration. // Once we know which queries users are mostly doing, we'll be able to modify these constants. // Maximum number of the results - uint32 constant MAX_NUM_OUTPUTS = 3; + uint32 constant MAX_NUM_OUTPUTS = 5; // Maximum number of the items per result uint32 constant MAX_NUM_ITEMS_PER_OUTPUT = 5; // Maximum number of the placeholders - uint32 constant MAX_NUM_PLACEHOLDERS = 10; + uint32 constant MAX_NUM_PLACEHOLDERS = 5; // The start uint256 offset of the public inputs in calldata. // groth16_proof_number (8) + groth16_input_number (3) diff --git a/script/output/test/base_sepolia/v1-deployment.json b/script/output/test/base_sepolia/v1-deployment.json index 2d26ed7..eb5621b 100644 --- a/script/output/test/base_sepolia/v1-deployment.json +++ b/script/output/test/base_sepolia/v1-deployment.json @@ -2,12 +2,12 @@ "addresses": { "queryClientImpl": "0x0000000000000000000000000000000000000000", "queryClientProxy": "0x0000000000000000000000000000000000000000", - "registryImpl": "0x0000000000000000000000000000000000000000", - "registryProxy": "0x0000000000000000000000000000000000000000" + "registryImpl": "0xED4b45b1171C36dA9D3552B5Dba8602d2870b9b5", + "registryProxy": "0xC9135b51c4DD04B6E082e2cB56a5C26b3a53Ee47" }, "chainInfo": { "chainId": 84532, - "deploymentBlock": 0 + "deploymentBlock": 20301643 }, "storageContracts": { "erc20AvgBalance": "0x0000000000000000000000000000000000000000",