Skip to content

Commit 6681fcf

Browse files
feat: deploy-on-arbitrumSepolia (#475)
* 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 --------- Co-authored-by: GitHub Actions Bot <github-actions[bot]@users.noreply.github.com>
1 parent 6bea05a commit 6681fcf

File tree

39 files changed

+258281
-7068
lines changed

39 files changed

+258281
-7068
lines changed

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

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +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-
# For Verification
83-
EXPLORER_API_KEY: ${{ secrets.EXPLORER_API_KEY }}
84-
IS_VERIFICATION_API_V2: ${{ vars.IS_VERIFICATION_API_V2 }}
82+
HARDHAT_IGNITION_CONFIRM_DEPLOYMENT: ${{ vars.HARDHAT_IGNITION_CONFIRM_DEPLOYMENT }}
8583
run: |
8684
if [ "${{ inputs.network }}" = "hardhat" ]; then
8785
npm run deploy -- --network ${{ inputs.network }}
@@ -92,8 +90,25 @@ jobs:
9290
else
9391
DEPLOYMENT_ID="${{ inputs.network }}"
9492
fi
95-
npm run deploy -- --network ${{ inputs.network }} --deployment-id "$DEPLOYMENT_ID" --verify
93+
npm run deploy -- --network ${{ inputs.network }} --deployment-id "$DEPLOYMENT_ID"
94+
fi
95+
96+
- name: Verify contract
97+
if: inputs.network != 'hardhat'
98+
continue-on-error: true
99+
working-directory: packages/smart-contract
100+
env:
101+
# For Verification
102+
EXPLORER_API_KEY: ${{ secrets.EXPLORER_API_KEY }}
103+
IS_VERIFICATION_API_V2: ${{ vars.IS_VERIFICATION_API_V2 }}
104+
run: |
105+
# For testnets, use network-environment; for mainnets, use network only
106+
if [ "$IS_MAINNET" = false ]; then
107+
DEPLOYMENT_ID="${{ inputs.network }}-${{ inputs.environment }}"
108+
else
109+
DEPLOYMENT_ID="${{ inputs.network }}"
96110
fi
111+
npm run verify -- "$DEPLOYMENT_ID"
97112
98113
- name: Save deployment artifacts
99114
if: inputs.network != 'hardhat'

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

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,27 @@ jobs:
9898
DEPLOYMENT_ID="${{ inputs.network }}"
9999
fi
100100
echo "deployment-id=$DEPLOYMENT_ID" >> $GITHUB_OUTPUT
101-
POCO_ADDRESS="${{ vars.POCO_ADDRESS }}" \
102-
DATASET_REGISTRY_ADDRESS="${{ vars.DATASET_REGISTRY_ADDRESS }}" \
103101
DEPLOYMENT_ID="$DEPLOYMENT_ID" \
104102
npm run deploy -- --network ${{ inputs.network }}
105103
fi
106104
105+
- name: Verify contracts
106+
if: inputs.network != 'hardhat'
107+
continue-on-error: true
108+
working-directory: packages/sharing-smart-contract
109+
env:
110+
# For Verification
111+
EXPLORER_API_KEY: ${{ secrets.EXPLORER_API_KEY }}
112+
IS_VERIFICATION_API_V2: ${{ vars.IS_VERIFICATION_API_V2 }}
113+
run: |
114+
# For testnets, use network-environment; for mainnets, use network only
115+
if [ "$IS_MAINNET" = false ]; then
116+
DEPLOYMENT_ID="${{ inputs.network }}-${{ inputs.environment }}"
117+
else
118+
DEPLOYMENT_ID="${{ inputs.network }}"
119+
fi
120+
npm run verify -- "$DEPLOYMENT_ID"
121+
107122
- name: Save deployment artifacts
108123
if: inputs.network != 'hardhat'
109124
uses: stefanzweifel/git-auto-commit-action@v5
@@ -114,6 +129,3 @@ jobs:
114129
commit_user_email: 'github-actions[bot]@users.noreply.github.com'
115130
commit_author: 'GitHub Actions Bot <github-actions[bot]@users.noreply.github.com>'
116131

117-
- name: Verify contracts
118-
# TODO
119-
run: echo "Verification step is not implemented yet"

0 commit comments

Comments
 (0)