Skip to content

Commit 47335c3

Browse files
ci: setup whitelist with arbitrumSepolia network support (#54)
* ci: upgrade whitelist-smart-contract to v1.0.0 * ci: add arbitrumSepolia network support for whitelist in dapp deploy * ci: add arbitrumSepolia network support for whitelist in dapp release * ci: update package-lock.json with whitelist-smart-contract v1.0.0 * ci: update whitelist environment variables and add explicit network flags * ci: update whitelist environment variables and add explicit network flags in release workflow * ci: pass whitelist network via env vars --------- Co-authored-by: Pierre Jeanjacquot <[email protected]>
1 parent c767e1c commit 47335c3

File tree

4 files changed

+19
-10
lines changed

4 files changed

+19
-10
lines changed

.github/workflows/dapp-deploy.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,12 @@ jobs:
133133
134134
- name: Add resource to whitelist
135135
env:
136-
CONTRACT_ADDRESS: ${{ secrets.WEB3TELEGRAM_WHITELIST_CONTRACT_ADDRESS }}
137-
WALLET_PRIVATE_KEY: ${{ secrets.WEB3TELEGRAM_APP_OWNER_PRIVATEKEY }}
136+
CONTRACT_ADDRESS: ${{ vars.WEB3TELEGRAM_WHITELIST_CONTRACT_ADDRESS }}
137+
PRIVATE_KEY: ${{ secrets.WEB3TELEGRAM_APP_OWNER_PRIVATEKEY }}
138138
run: |
139139
cd node_modules/whitelist-smart-contract
140-
export ADDRESS_TO_ADD=$(cat ../../deployment-dapp/.app-address) && npm run addResourceToWhitelist
140+
export ADDRESS_TO_ADD=$(cat ../../deployment-dapp/.app-address)
141+
npm run addResourceToWhitelist -- --network ${{ vars.WHITELIST_NETWORK_NAME }}
141142
142143
- name: Configure ENS
143144
if: ${{ vars.DAPP_ENS_NAME }}

.github/workflows/dapp-release.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,12 @@ jobs:
118118
119119
- name: Add resource to whitelist
120120
env:
121-
CONTRACT_ADDRESS: ${{ secrets.WEB3TELEGRAM_WHITELIST_CONTRACT_ADDRESS }}
122-
WALLET_PRIVATE_KEY: ${{ secrets.WEB3TELEGRAM_APP_OWNER_PRIVATEKEY }}
121+
CONTRACT_ADDRESS: ${{ vars.WEB3TELEGRAM_WHITELIST_CONTRACT_ADDRESS }}
122+
PRIVATE_KEY: ${{ secrets.WEB3TELEGRAM_APP_OWNER_PRIVATEKEY }}
123123
run: |
124124
cd node_modules/whitelist-smart-contract
125-
export ADDRESS_TO_ADD=$(cat ../../deployment-dapp/.app-address) && npm run addResourceToWhitelist
125+
export ADDRESS_TO_ADD=$(cat ../../deployment-dapp/.app-address)
126+
npm run addResourceToWhitelist -- --network ${{ vars.WHITELIST_NETWORK_NAME }}
126127
127128
- name: Configure ENS
128129
if: ${{ vars.DAPP_ENS_NAME }}

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,6 @@
7474
"prettier": "^2.8.4",
7575
"rimraf": "^5.0.7",
7676
"typescript": "^4.9.5",
77-
"whitelist-smart-contract": "github:iExecBlockchainComputing/whitelist-smart-contract#0.2.1"
77+
"whitelist-smart-contract": "github:iExecBlockchainComputing/whitelist-smart-contract#v1.0.0"
7878
}
7979
}

0 commit comments

Comments
 (0)