Skip to content

Commit 7e388ed

Browse files
Le-Caignecgithub-actions[bot]zguesmi
authored
fix: dataProtector contract verification (#477)
* fix: Add HARDHAT_IGNITION_CONFIRM_DEPLOYMENT variable to deployment workflows * fix: Update deployment workflow to include verification step and adjust environment variables * fix: Update salt value in ignition strategy configuration * fix: Add verification step for contracts in deployment workflows * fix: Update salt value in ignition strategy configuration * chore: save deployment artifacts for arbitrumSepolia dev (16581801531) * fix: Update salt value in ignition strategy configuration and add TODO for dynamic handling based on environment * chore: save deployment artifacts for arbitrumSepolia prod (16581922762) * fix: Remove unused variables from deployment script * Refactor code structure for improved readability and maintainability * chore: save deployment artifacts for arbitrumSepolia dev (16582220797) * fix: update salt value in create2 strategy configuration * chore: save deployment artifacts for arbitrumSepolia prod (16582270946) * fix: uncomment build-and-test job in deployment workflow * fix: update addresses and start blocks for arbitrum-sepolia network * chore: update devDependencies in smart-contract package.json - Bump @nomicfoundation/hardhat-toolbox from ^5.0.0 to ^6.1.0 - Downgrade hardhat from ^2.23.0 to ^2.26.1 * fix: update verification script to use ignition for consistency * Update .github/workflows/core-smart-contract-deploy.yml Co-authored-by: Zied Guesmi <[email protected]> * fix: update deployment workflow to save artifacts conditionally * Update packages/smart-contract/hardhat.config.ts Co-authored-by: Zied Guesmi <[email protected]> * Update packages/sharing-smart-contract/hardhat.config.cjs Co-authored-by: Zied Guesmi <[email protected]> --------- Co-authored-by: GitHub Actions Bot <github-actions[bot]@users.noreply.github.com> Co-authored-by: Zied Guesmi <[email protected]>
1 parent b05f3d2 commit 7e388ed

File tree

8 files changed

+1875
-2060
lines changed

8 files changed

+1875
-2060
lines changed

.github/workflows/core-smart-contract-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
7979
RPC_URL: ${{ secrets.RPC_URL }}
8080
DEPLOYER_PRIVATE_KEY: ${{ secrets.DEPLOYER_PRIVATE_KEY }}
8181
DATASET_REGISTRY_ADDRESS: ${{ vars.DATASET_REGISTRY_ADDRESS }}
82-
HARDHAT_IGNITION_CONFIRM_DEPLOYMENT: ${{ vars.HARDHAT_IGNITION_CONFIRM_DEPLOYMENT }}
82+
HARDHAT_IGNITION_CONFIRM_DEPLOYMENT: false
8383
run: |
8484
if [ "${{ inputs.network }}" = "hardhat" ]; then
8585
npm run deploy -- --network ${{ inputs.network }}

.github/workflows/sharing-smart-contract-deploy.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,16 @@ jobs:
101101
DEPLOYMENT_ID="$DEPLOYMENT_ID" \
102102
npm run deploy -- --network ${{ inputs.network }}
103103
fi
104+
105+
- name: Save deployment artifacts
106+
if: inputs.network != 'hardhat'
107+
uses: stefanzweifel/git-auto-commit-action@v5
108+
with:
109+
commit_message: 'chore: save deployment artifacts for ${{ inputs.network }} ${{ inputs.environment }} (${{ github.run_id }})'
110+
file_pattern: 'packages/sharing-smart-contract/ignition/deployments/* packages/sharing-smart-contract/.openzeppelin/*'
111+
commit_user_name: 'GitHub Actions Bot'
112+
commit_user_email: 'github-actions[bot]@users.noreply.github.com'
113+
commit_author: 'GitHub Actions Bot <github-actions[bot]@users.noreply.github.com>'
104114

105115
- name: Verify contracts
106116
if: inputs.network != 'hardhat'
@@ -119,13 +129,3 @@ jobs:
119129
fi
120130
npm run verify -- "$DEPLOYMENT_ID"
121131
122-
- name: Save deployment artifacts
123-
if: inputs.network != 'hardhat'
124-
uses: stefanzweifel/git-auto-commit-action@v5
125-
with:
126-
commit_message: 'chore: save deployment artifacts for ${{ inputs.network }} ${{ inputs.environment }} (${{ github.run_id }})'
127-
file_pattern: 'packages/sharing-smart-contract/ignition/deployments/* packages/sharing-smart-contract/.openzeppelin/*'
128-
commit_user_name: 'GitHub Actions Bot'
129-
commit_user_email: 'github-actions[bot]@users.noreply.github.com'
130-
commit_author: 'GitHub Actions Bot <github-actions[bot]@users.noreply.github.com>'
131-

packages/sharing-smart-contract/hardhat.config.cjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,8 @@ module.exports = {
142142
strategyConfig: {
143143
//TODO: Handle salt dynamically depending on the network and the dev/prod environment
144144
create2: {
145-
salt: "0x0100001000010000100010000100000000100001000000000100000000000004",
145+
// salt: "0x0100001000010000100010000100000000100001000000000100000000000004", testnet
146+
salt: "0x0000000000000000000000000000000000000000000000000000000000000000",
146147
},
147148
},
148149
},

packages/sharing-smart-contract/package-lock.json

Lines changed: 622 additions & 728 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/sharing-smart-contract/package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
"scripts": {
99
"clean": "hardhat clean",
1010
"compile": "hardhat clean && hardhat compile && npm run artifact-to-abis",
11-
"verify:ignition": "hardhat ignition verify --include-unrelated-contracts",
12-
"verify": "hardhat verify",
11+
"verify": "hardhat ignition verify --include-unrelated-contracts",
1312
"deploy": "hardhat run scripts/deploy.js",
1413
"update-env": "hardhat run ./scripts/updateEnv.js",
1514
"upgrade": "hardhat run ./scripts/upgrade.js",
@@ -34,13 +33,13 @@
3433
],
3534
"devDependencies": {
3635
"@nomicfoundation/hardhat-foundry": "^1.1.3",
37-
"@nomicfoundation/hardhat-toolbox": "^5.0.0",
36+
"@nomicfoundation/hardhat-toolbox": "^6.1.0",
3837
"@nomiclabs/hardhat-solhint": "^4.0.1",
3938
"dotenv": "^16.5.0",
4039
"eslint": "^9.24.0",
4140
"eslint-config-prettier": "^10.1.2",
4241
"eslint-plugin-import": "^2.31.0",
43-
"hardhat": "^2.23.0",
42+
"hardhat": "^2.26.1",
4443
"hardhat-contract-sizer": "^2.10.0",
4544
"hardhat-dependency-compiler": "^1.2.1",
4645
"prettier": "^3.3.3",

packages/smart-contract/hardhat.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ const config: HardhatUserConfig = {
8484
ignition: {
8585
strategyConfig: {
8686
create2: {
87-
salt: '0x15687ade6b13dd23b6410e059fce02263e68e1af5ee0cf426798f4616f74f8aa',
87+
// salt: '0x15687ade6b13dd23b6410e059fce02263e68e1af5ee0cf426798f4616f74f8aa',
88+
salt: '0x0000000000000000000000000000000000000000000000000000000000000000',
8889
},
8990
},
9091
},

0 commit comments

Comments
 (0)