Skip to content

Commit

Permalink
chore: update tooling (bgd-labs#527)
Browse files Browse the repository at this point in the history
**BREAKING CHANGES**:
- updates to a new version of **catapulta-verify** which relies on etherscan api v2 and generalizes the routescan verification. Please add a `ETHERSCAN_API_KEY` without any network suffix to your `.env`. This new version should be more reliable and support a bigger set of networks.

- new version of origin and `aave-cli`. Please run `npm i` to update. The new version will no longer generate IRs inside `.assets/`, but instead inline an image link, which in theory could also be embedded in aips.
  • Loading branch information
sakulstra authored Nov 24, 2024
1 parent ad22f03 commit b61496d
Show file tree
Hide file tree
Showing 85 changed files with 127 additions and 232 deletions.
1 change: 0 additions & 1 deletion .assets/02a040db3fc4a88618783a9156e7fb51928e1ede.svg

This file was deleted.

1 change: 0 additions & 1 deletion .assets/03dc42930b2b94af37ef869d012c4734aedb52e6.svg

This file was deleted.

1 change: 0 additions & 1 deletion .assets/0afe490affc1bc77fe6675127b18e9aeeb4b1404.svg

This file was deleted.

1 change: 0 additions & 1 deletion .assets/0fcfb1e84443509c42e21db9e4320c00e1db6098.svg

This file was deleted.

1 change: 0 additions & 1 deletion .assets/1899e5ae4f4fd5b0d2565edd912a160acb2d0b78.svg

This file was deleted.

1 change: 0 additions & 1 deletion .assets/18e6ba583d4d35e38cb678120492b2b4d52d19ea.svg

This file was deleted.

1 change: 0 additions & 1 deletion .assets/1aa0fb636d34a35d35ce67919bc0d7d2e36d3839.svg

This file was deleted.

1 change: 0 additions & 1 deletion .assets/1c1fbd79406b4b3a8c64ec79ef429f7c422d0387.svg

This file was deleted.

1 change: 0 additions & 1 deletion .assets/20b02c78bc8b99547929074a8d98940dc76ac4e3.svg

This file was deleted.

1 change: 0 additions & 1 deletion .assets/237c21391c0b67eb1236e3875c882cd6115a3758.svg

This file was deleted.

1 change: 0 additions & 1 deletion .assets/2e9d5ba5e949c7896bc79e7fdd98872cb43375b0.svg

This file was deleted.

1 change: 0 additions & 1 deletion .assets/39a3707c0ded91bbfde8953567853db55452a227.svg

This file was deleted.

1 change: 0 additions & 1 deletion .assets/39d5ff798c0771402486c6f1ca63f2a1868d80d9.svg

This file was deleted.

1 change: 0 additions & 1 deletion .assets/3b30aea0d7ed061d9d9b0eeecb2e4835c7844ba5.svg

This file was deleted.

1 change: 0 additions & 1 deletion .assets/4820a9e881eaa3f3def4916e47e0c330b34ab151.svg

This file was deleted.

1 change: 0 additions & 1 deletion .assets/4f7a3ee47355f466dc627787f8cd371573621162.svg

This file was deleted.

1 change: 0 additions & 1 deletion .assets/59f72276d32ba1eeba45953b23c84ea37048e299.svg

This file was deleted.

1 change: 0 additions & 1 deletion .assets/5dbd5b9335471c83b44949206c9b2186657b836f.svg

This file was deleted.

1 change: 0 additions & 1 deletion .assets/5e92a6663aeee25254a2740f3a545f211faeacbf.svg

This file was deleted.

1 change: 0 additions & 1 deletion .assets/5f455cedf818a43aba043e71714721fd1e844501.svg

This file was deleted.

1 change: 0 additions & 1 deletion .assets/75cdb567a41d55d63ab2bb1326ea702df0bfacf4.svg

This file was deleted.

1 change: 0 additions & 1 deletion .assets/7bc797fb2b1f421fa40a6d9a0028d1f78db71dc0.svg

This file was deleted.

1 change: 0 additions & 1 deletion .assets/7ee454df22dbd82f0c1929bc14104d54c7081a49.svg

This file was deleted.

1 change: 0 additions & 1 deletion .assets/873d4c8affcd41504dffeb1e9750d8e5357e2775.svg

This file was deleted.

1 change: 0 additions & 1 deletion .assets/8aa25c38caec024924773d1a5c7c63ab45c4eecf.svg

This file was deleted.

1 change: 0 additions & 1 deletion .assets/8fc705464b3515a654de9893168a1b1321feccb4.svg
Diff not rendered.
1 change: 0 additions & 1 deletion .assets/92cd89f015c573a55ccf57593f88a74f7b8bc050.svg
Diff not rendered.
1 change: 0 additions & 1 deletion .assets/9c784d12784a084406c3794fbe177e93da4c3479.svg
Diff not rendered.
1 change: 0 additions & 1 deletion .assets/a4faa118ed690be4e95fae01b8535036cda67e3d.svg
Diff not rendered.
1 change: 0 additions & 1 deletion .assets/a9a0275265838d424840d721917e0a4e3a5d8044.svg
Diff not rendered.
1 change: 0 additions & 1 deletion .assets/ac33ca939f6fc30c2fd799aaa6f59b0521c19e9f.svg
Diff not rendered.
1 change: 0 additions & 1 deletion .assets/c229e34ea67f12eea11bf5403763207eeab38cff.svg
Diff not rendered.
1 change: 0 additions & 1 deletion .assets/c277de9f9a155f6a0e47e0443845a3c9de5f6b84.svg
Diff not rendered.
1 change: 0 additions & 1 deletion .assets/ceb223a18f5aad36d9f6087d1d468b4dd5ba56a1.svg
Diff not rendered.
1 change: 0 additions & 1 deletion .assets/d8d51b9f960b17304a3bdcaf8922d3ae84b3c30f.svg
Diff not rendered.
1 change: 0 additions & 1 deletion .assets/dcedb30554ccb68f317b952113777790df5ca547.svg
Diff not rendered.
1 change: 0 additions & 1 deletion .assets/e6c7eef36a7e70a1f1b35633097516fe5e21508b.svg
Diff not rendered.
1 change: 0 additions & 1 deletion .assets/ec2b4dc8236ac87f8058f121d86de1d99e029c5c.svg
Diff not rendered.
1 change: 0 additions & 1 deletion .assets/fb6ebf3fa05cf980f374598b56757dbc5cae3662.svg
Diff not rendered.
1 change: 0 additions & 1 deletion .assets/fe79e1c7a3e943262824d4f683059c85d91a233d.svg
Diff not rendered.
34 changes: 20 additions & 14 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,25 @@ LEDGER_SENDER=
PRIVATE_KEY=

# Test rpc_endpoints
RPC_MAINNET=https://eth.llamarpc.com
RPC_AVALANCHE=https://api.avax.network/ext/bc/C/rpc
RPC_OPTIMISM=https://optimism.llamarpc.com
RPC_POLYGON=https://polygon.llamarpc.com
RPC_ARBITRUM=https://arbitrum.llamarpc.com
RPC_FANTOM=https://rpc.ftm.tools
RPC_HARMONY=https://api.harmony.one
RPC_METIS=https://andromeda.metis.io/?owner=1088
RPC_BASE=https://base.llamarpc.com
RPC_ZKEVM=https://zkevm-rpc.com
RPC_GNOSIS=https://rpc.ankr.com/gnosis
RPC_BNB=https://binance.llamarpc.com
RPC_SCROLL=https://rpc.scroll.io
RPC_ZKSYNC=https://mainnet.era.zksync.io
# To generate RPCs based on you api keys, you can use
# export ALCHEMY_API_KEY=yourAlchemyKey && npx @bgd-labs/rpc-env
RPC_MAINNET=
RPC_AVALANCHE=
RPC_OPTIMISM=
RPC_POLYGON=
RPC_ARBITRUM=
RPC_FANTOM=
RPC_HARMONY=
RPC_METIS=
RPC_BASE=
RPC_ZKEVM=
RPC_GNOSIS=
RPC_BNB=
RPC_SCROLL=
RPC_ZKSYNC=

# Etherscan api keys for verification & download utils
# Dedicated api keys for each chain are required when using foundry verification
ETHERSCAN_API_KEY_MAINNET=
ETHERSCAN_API_KEY_POLYGON=
ETHERSCAN_API_KEY_AVALANCHE=
Expand All @@ -35,6 +38,9 @@ ETHERSCAN_API_KEY_BNB=
ETHERSCAN_API_KEY_SCROLL=
ETHERESCAN_API_KEY_ZKSYNC=

# Catapulta verify uses etherscan v2 api, therefore adding a single api key is good enough
ETHERSCAN_API_KEY=

# Simulation/fork creation
TENDERLY_ACCESS_TOKEN=
TENDERLY_ACCOUNT=
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ on:
jobs:
test:
uses: bgd-labs/github-workflows/.github/workflows/comment.yml@main
secrets: inherit
secrets:
READ_ONLY_PAT: ${{ secrets.READ_ONLY_PAT }}
1 change: 0 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,3 @@ jobs:
test-js:
uses: bgd-labs/github-workflows/.github/workflows/test-node.yml@main
secrets: inherit
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ If for whatever reason verification fails, there's a good chance the error is on
To retry a specific verification you can follow the following steps:

1. copy verify.example.json to verify.json
2. replace the `chain` with the appropriate chainId
3. replace the `hash` with the transaction hash of the deployment transaction (make sure it's the deployment transaction, not the one registering the payload on the payloadscontroller)
4. run `FOUNDRY_PROFILE=<chainAlias> forge build --force`
5. run `FOUNDRY_PROFILE=<chainAlias> npx catapulta-verify -b verify.json`
2. enter an `ETHERSCAN_API_KEY` in your `.env`
3. replace the `chain` with the appropriate chainId
4. replace the `hash` with the transaction hash of the deployment transaction (make sure it's the deployment transaction, not the one registering the payload on the payloadscontroller)
5. run `FOUNDRY_PROFILE=<chainAlias> forge build --force`
6. run `FOUNDRY_PROFILE=<chainAlias> npx catapulta-verify -b verify.json`
Loading

0 comments on commit b61496d

Please sign in to comment.