generated from AngleProtocol/boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: wrong lzEndpoint function name * chore: check-roles github action * feat: roles script that run every day and send a discord message * chore: add DISCORD_TOKEN to env in ci * feat: convert the check-roles message to embed * chore: specify the chain_ids to run the script * feat: don't post new messages unless something new is here * chore: use ci profile in check-roles ci * feat: update logs for a better understanding in checkRoles script * chore: use matrixes inside check-roles ci with run for each chain id * chore: compile inside check-roles ci * chore: add MAINNET uri * * fix: filter out undefined embed message * chore: set parallel to 2 * chore: install dependencies in check-roles ci * fix: check if the key is a decimal in checkScript * chore: try eth_node_uri_mainnet with llamarpc * chore: try to setup repo before * chore: update back to all chain ids * chore: set max parallel to 1 * chore: retry forge script checkRoles * chore: set timeout for retries * chore: remove on PR run check-roles script
- Loading branch information
1 parent
92df1c4
commit 07a037f
Showing
9 changed files
with
749 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,4 @@ | |
#ETH_NODE_URI_FORK=http://localhost:8545 | ||
#MNEMONIC_FORK="" | ||
|
||
#DISCORD_TOKEN="" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: "check-roles" | ||
|
||
env: | ||
FOUNDRY_PROFILE: "ci" | ||
|
||
on: | ||
schedule: | ||
- cron: "0 0 * * *" # every day at midnight | ||
|
||
jobs: | ||
check-roles: | ||
runs-on: ubuntu-latest | ||
continue-on-error: true | ||
strategy: | ||
matrix: | ||
chain: [1,42161,137,100,43114,8453,56,42220,1101,10,59144] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
cache: "yarn" | ||
|
||
- name: Install Foundry | ||
uses: foundry-rs/foundry-toolchain@v1 | ||
with: | ||
version: nightly | ||
|
||
- name: Setup repo | ||
uses: ./.github/actions/setup-repo | ||
with: | ||
registry-token: ${{ secrets.GH_REGISTRY_ACCESS_TOKEN }} | ||
|
||
- name: Compile | ||
run: forge build | ||
|
||
- uses: nick-fields/retry@v2 | ||
with: | ||
max_attempts: 5 | ||
command: forge script CheckRoles | ||
timeout_minutes: 60 | ||
env: | ||
ETH_NODE_URI_MAINNET: ${{ secrets.ETH_NODE_URI_MAINNET }} | ||
ETH_NODE_URI_ARBITRUM: ${{ secrets.ETH_NODE_URI_ARBITRUM }} | ||
ETH_NODE_URI_AVALANCHE: ${{ secrets.ETH_NODE_URI_AVALANCHE }} | ||
ETH_NODE_URI_OPTIMISM: ${{ secrets.ETH_NODE_URI_OPTIMISM }} | ||
ETH_NODE_URI_POLYGON: ${{ secrets.ETH_NODE_URI_POLYGON }} | ||
ETH_NODE_URI_GNOSIS: ${{ secrets.ETH_NODE_URI_GNOSIS }} | ||
ETH_NODE_URI_BSC: ${{ secrets.ETH_NODE_URI_BSC }} | ||
ETH_NODE_URI_CELO: ${{ secrets.ETH_NODE_URI_CELO }} | ||
ETH_NODE_URI_POLYGON_ZKEVM: ${{ secrets.ETH_NODE_URI_POLYGON_ZKEVM }} | ||
ETH_NODE_URI_BASE: ${{ secrets.ETH_NODE_URI_BASE }} | ||
ETH_NODE_URI_LINEA: ${{ secrets.ETH_NODE_URI_LINEA }} | ||
CHAIN_IDS: ${{ matrix.chain }} | ||
|
||
- name: Run script | ||
run: yarn check-roles | ||
env: | ||
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule utils
updated
4 files
+1 −0 | src/CommonUtils.sol | |
+2 −1 | src/Constants.sol | |
+8 −21 | src/VanityAddress.sol | |
+1 −0 | utils/contractAddress.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.