From caf65bbc9ddc9629386d1de3b9cbeaec9c5a405a Mon Sep 17 00:00:00 2001 From: 0xmad <0xmad@users.noreply.github.com> Date: Tue, 14 May 2024 12:30:03 -0500 Subject: [PATCH] fix(contract): gatekeeper deploy config skip - [x] Skip deploying contracts by default - [x] Add lowdb to dependencies --- contracts/package.json | 2 +- contracts/tasks/deploy/maci/02-gatekeepers.ts | 6 +++--- pnpm-lock.yaml | 13 ++++++------- 3 files changed, 10 insertions(+), 11 deletions(-) diff --git a/contracts/package.json b/contracts/package.json index 79a4874545..66105c218c 100644 --- a/contracts/package.json +++ b/contracts/package.json @@ -78,6 +78,7 @@ "circomlibjs": "^0.1.7", "ethers": "^6.12.1", "hardhat": "^2.22.3", + "lowdb": "^1.0.0", "maci-circuits": "^1.2.1", "maci-core": "^1.2.1", "maci-crypto": "^1.2.1", @@ -95,7 +96,6 @@ "dotenv": "^16.4.5", "hardhat-artifactor": "^0.2.0", "hardhat-contract-sizer": "^2.10.0", - "lowdb": "^1.0.0", "ts-node": "^10.9.1", "typescript": "^5.4.5" } diff --git a/contracts/tasks/deploy/maci/02-gatekeepers.ts b/contracts/tasks/deploy/maci/02-gatekeepers.ts index 31c6bf9a62..b02de32c20 100644 --- a/contracts/tasks/deploy/maci/02-gatekeepers.ts +++ b/contracts/tasks/deploy/maci/02-gatekeepers.ts @@ -21,9 +21,9 @@ deployment.deployTask("full:deploy-gatekeepers", "Deploy gatekeepers").then((tas const deployEASGatekeeper = deployment.getDeployConfigField(EContracts.EASGatekeeper, "deploy"); const deployGitcoinGatekeeper = deployment.getDeployConfigField(EContracts.GitcoinPassportGatekeeper, "deploy"); - const skipDeployFreeForAllGatekeeper = deployFreeForAllGatekeeper === false; - const skipDeployEASGatekeeper = deployEASGatekeeper === false; - const skipDeployGitcoinGatekeeper = deployGitcoinGatekeeper === false; + const skipDeployFreeForAllGatekeeper = deployFreeForAllGatekeeper !== true; + const skipDeployEASGatekeeper = deployEASGatekeeper !== true; + const skipDeployGitcoinGatekeeper = deployGitcoinGatekeeper !== true; const canSkipDeploy = incremental && diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6eabe17252..cd4be866b5 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -244,6 +244,9 @@ importers: hardhat: specifier: ^2.22.3 version: 2.22.3(ts-node@10.9.2)(typescript@5.4.5) + lowdb: + specifier: ^1.0.0 + version: 1.0.0 maci-circuits: specifier: ^1.2.1 version: link:../circuits @@ -290,9 +293,6 @@ importers: hardhat-contract-sizer: specifier: ^2.10.0 version: 2.10.0(hardhat@2.22.3) - lowdb: - specifier: ^1.0.0 - version: 1.0.0 ts-node: specifier: ^10.9.1 version: 10.9.2(@types/node@20.12.11)(typescript@5.4.5) @@ -12979,7 +12979,7 @@ packages: /is-promise@2.2.2: resolution: {integrity: sha512-+lP4/6lKUBfQjZ2pdxThZvLUAafmZb8OAxFb8XXtiQmS35INgr85hdOGoEs124ez1FCnZJt6jau/T+alh58QFQ==} - dev: true + dev: false /is-reference@3.0.2: resolution: {integrity: sha512-v3rht/LgVcsdZa3O2Nqs+NMowLOxeOm7Ay9+/ARQ2F+qEoANRcqrjAZKGN0v8ymUetZGgkp26LTnGT7H0Qo9Pg==} @@ -14294,7 +14294,7 @@ packages: lodash: 4.17.21 pify: 3.0.0 steno: 0.4.4 - dev: true + dev: false /lower-case@2.0.2: resolution: {integrity: sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==} @@ -16473,7 +16473,6 @@ packages: /pify@3.0.0: resolution: {integrity: sha512-C3FsVNH1udSEX48gGX1xfvwTWfsYWj5U+8/uK15BGzIGrKoUpghX8hWZwa/OFnakBiiVNmBvemTJR5mcy7iPcg==} engines: {node: '>=4'} - dev: true /pify@4.0.1: resolution: {integrity: sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==} @@ -19081,7 +19080,7 @@ packages: resolution: {integrity: sha512-EEHMVYHNXFHfGtgjNITnka0aHhiAlo93F7z2/Pwd+g0teG9CnM3JIINM7hVVB5/rhw9voufD7Wukwgtw2uqh6w==} dependencies: graceful-fs: 4.2.11 - dev: true + dev: false /streamsearch@1.1.0: resolution: {integrity: sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==}