From 0c567d09e5d63e409f6345081cc72db70d5b7281 Mon Sep 17 00:00:00 2001 From: Paul Razvan Berg Date: Wed, 10 Jan 2024 20:42:23 +0200 Subject: [PATCH 1/2] ci: remove etherscan api keys --- .env.example | 7 ------- .github/workflows/create-merkle-streamer-ll.yml | 7 ------- .github/workflows/deploy-batch.yml | 7 ------- .github/workflows/deploy-merkle-streamer-factory.yml | 7 ------- .github/workflows/deploy-periphery.yml | 7 ------- .github/workflows/deploy-protocol.yml | 7 ------- foundry.toml | 10 ---------- 7 files changed, 52 deletions(-) diff --git a/.env.example b/.env.example index d1339b96..5c5efc6e 100644 --- a/.env.example +++ b/.env.example @@ -1,11 +1,4 @@ -export API_KEY_ARBISCAN="YOUR_API_KEY_ARBISCAN" -export API_KEY_BSCSCAN="YOUR_API_KEY_BSCSCAN" -export API_KEY_ETHERSCAN="YOUR_API_KEY_ETHERSCAN" -export API_KEY_GNOSISSCAN="YOUR_API_KEY_GNOSISSCAN" export API_KEY_INFURA="YOUR_API_KEY_INFURA" -export API_KEY_OPTIMISTIC_ETHERSCAN="YOUR_API_KEY_OPTIMISTIC_ETHERSCAN" -export API_KEY_POLYGONSCAN="YOUR_API_KEY_POLYGONSCAN" -export API_KEY_SNOWTRACE="YOUR_API_KEY_SNOWTRACE" export FOUNDRY_PROFILE="lite" export MNEMONIC="YOUR_MNEMONIC" export RPC_URL_MAINNET="YOUR_RPC_URL_MAINNET" diff --git a/.github/workflows/create-merkle-streamer-ll.yml b/.github/workflows/create-merkle-streamer-ll.yml index 9f2ae1cb..8e560b89 100644 --- a/.github/workflows/create-merkle-streamer-ll.yml +++ b/.github/workflows/create-merkle-streamer-ll.yml @@ -1,14 +1,7 @@ name: "Create Merkle Streamer LockupLinear" env: - API_KEY_ARBISCAN: ${{ secrets.API_KEY_ARBISCAN }} - API_KEY_BSCSCAN: ${{ secrets.API_KEY_BSCSCAN }} - API_KEY_ETHERSCAN: ${{ secrets.API_KEY_ETHERSCAN }} - API_KEY_GNOSISSCAN: ${{ secrets.API_KEY_GNOSISSCAN }} API_KEY_INFURA: ${{ secrets.API_KEY_INFURA }} - API_KEY_OPTIMISTIC_ETHERSCAN: ${{ secrets.API_KEY_OPTIMISTIC_ETHERSCAN }} - API_KEY_POLYGONSCAN: ${{ secrets.API_KEY_POLYGONSCAN }} - API_KEY_SNOWTRACE: ${{ secrets.API_KEY_SNOWTRACE }} FOUNDRY_PROFILE: "optimized" MNEMONIC: ${{ secrets.MNEMONIC }} RPC_URL_MAINNET: ${{ secrets.RPC_URL_MAINNET }} diff --git a/.github/workflows/deploy-batch.yml b/.github/workflows/deploy-batch.yml index d386485f..d3e4369e 100644 --- a/.github/workflows/deploy-batch.yml +++ b/.github/workflows/deploy-batch.yml @@ -1,14 +1,7 @@ name: "Deploy Batch" env: - API_KEY_ARBISCAN: ${{ secrets.API_KEY_ARBISCAN }} - API_KEY_BSCSCAN: ${{ secrets.API_KEY_BSCSCAN }} - API_KEY_ETHERSCAN: ${{ secrets.API_KEY_ETHERSCAN }} - API_KEY_GNOSISSCAN: ${{ secrets.API_KEY_GNOSISSCAN }} API_KEY_INFURA: ${{ secrets.API_KEY_INFURA }} - API_KEY_OPTIMISTIC_ETHERSCAN: ${{ secrets.API_KEY_OPTIMISTIC_ETHERSCAN }} - API_KEY_POLYGONSCAN: ${{ secrets.API_KEY_POLYGONSCAN }} - API_KEY_SNOWTRACE: ${{ secrets.API_KEY_SNOWTRACE }} FOUNDRY_PROFILE: "optimized" MNEMONIC: ${{ secrets.MNEMONIC }} RPC_URL_MAINNET: ${{ secrets.RPC_URL_MAINNET }} diff --git a/.github/workflows/deploy-merkle-streamer-factory.yml b/.github/workflows/deploy-merkle-streamer-factory.yml index ea5945fc..9783d5a0 100644 --- a/.github/workflows/deploy-merkle-streamer-factory.yml +++ b/.github/workflows/deploy-merkle-streamer-factory.yml @@ -1,14 +1,7 @@ name: "Deploy Merkle Streamer Factory" env: - API_KEY_ARBISCAN: ${{ secrets.API_KEY_ARBISCAN }} - API_KEY_BSCSCAN: ${{ secrets.API_KEY_BSCSCAN }} - API_KEY_ETHERSCAN: ${{ secrets.API_KEY_ETHERSCAN }} - API_KEY_GNOSISSCAN: ${{ secrets.API_KEY_GNOSISSCAN }} API_KEY_INFURA: ${{ secrets.API_KEY_INFURA }} - API_KEY_OPTIMISTIC_ETHERSCAN: ${{ secrets.API_KEY_OPTIMISTIC_ETHERSCAN }} - API_KEY_POLYGONSCAN: ${{ secrets.API_KEY_POLYGONSCAN }} - API_KEY_SNOWTRACE: ${{ secrets.API_KEY_SNOWTRACE }} FOUNDRY_PROFILE: "optimized" MNEMONIC: ${{ secrets.MNEMONIC }} RPC_URL_MAINNET: ${{ secrets.RPC_URL_MAINNET }} diff --git a/.github/workflows/deploy-periphery.yml b/.github/workflows/deploy-periphery.yml index 1cee8254..474ab07a 100644 --- a/.github/workflows/deploy-periphery.yml +++ b/.github/workflows/deploy-periphery.yml @@ -1,14 +1,7 @@ name: "Deploy Periphery" env: - API_KEY_ARBISCAN: ${{ secrets.API_KEY_ARBISCAN }} - API_KEY_BSCSCAN: ${{ secrets.API_KEY_BSCSCAN }} - API_KEY_ETHERSCAN: ${{ secrets.API_KEY_ETHERSCAN }} - API_KEY_GNOSISSCAN: ${{ secrets.API_KEY_GNOSISSCAN }} API_KEY_INFURA: ${{ secrets.API_KEY_INFURA }} - API_KEY_OPTIMISTIC_ETHERSCAN: ${{ secrets.API_KEY_OPTIMISTIC_ETHERSCAN }} - API_KEY_POLYGONSCAN: ${{ secrets.API_KEY_POLYGONSCAN }} - API_KEY_SNOWTRACE: ${{ secrets.API_KEY_SNOWTRACE }} FOUNDRY_PROFILE: "optimized" MNEMONIC: ${{ secrets.MNEMONIC }} RPC_URL_MAINNET: ${{ secrets.RPC_URL_MAINNET }} diff --git a/.github/workflows/deploy-protocol.yml b/.github/workflows/deploy-protocol.yml index ec27aa6d..2b75bbc2 100644 --- a/.github/workflows/deploy-protocol.yml +++ b/.github/workflows/deploy-protocol.yml @@ -1,14 +1,7 @@ name: "Deploy Protocol" env: - API_KEY_ARBISCAN: ${{ secrets.API_KEY_ARBISCAN }} - API_KEY_BSCSCAN: ${{ secrets.API_KEY_BSCSCAN }} - API_KEY_ETHERSCAN: ${{ secrets.API_KEY_ETHERSCAN }} - API_KEY_GNOSISSCAN: ${{ secrets.API_KEY_GNOSISSCAN }} API_KEY_INFURA: ${{ secrets.API_KEY_INFURA }} - API_KEY_OPTIMISTIC_ETHERSCAN: ${{ secrets.API_KEY_OPTIMISTIC_ETHERSCAN }} - API_KEY_POLYGONSCAN: ${{ secrets.API_KEY_POLYGONSCAN }} - API_KEY_SNOWTRACE: ${{ secrets.API_KEY_SNOWTRACE }} FOUNDRY_OPTIMIZER_RUNS: "1000" # needed to compile V2 Core FOUNDRY_PROFILE: "optimized" MNEMONIC: ${{ secrets.MNEMONIC }} diff --git a/foundry.toml b/foundry.toml index 8d3b02eb..8e8d78d9 100644 --- a/foundry.toml +++ b/foundry.toml @@ -41,16 +41,6 @@ out = "docs" repository = "https://github.com/sablier-labs/v2-periphery" -[etherscan] - arbitrum = { key = "${API_KEY_ARBISCAN}" } - avalanche = { key = "${API_KEY_SNOWTRACE" } - bnb_smart_chain = { key = "${API_KEY_BSCSCAN}" } - gnosis_chain = { key = "${API_KEY_GNOSISSCAN}" } - mainnet = { key = "${API_KEY_ETHERSCAN}" } - optimism = { key = "${API_KEY_OPTIMISTIC_ETHERSCAN}" } - polygon = { key = "${API_KEY_POLYGONSCAN}" } - sepolia = { key = "${API_KEY_ETHERSCAN}" } - [fmt] bracket_spacing = true int_types = "long" From c5a813d49927776a45cc6401e0852cc9443c3225 Mon Sep 17 00:00:00 2001 From: andreivladbrg Date: Thu, 11 Jan 2024 16:25:55 +0200 Subject: [PATCH 2/2] docs: remove API_KEY_ETHERSCAN from contributing file --- CONTRIBUTING.md | 1 - 1 file changed, 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 17248ea3..2f4c5ccb 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -69,7 +69,6 @@ populate it with the appropriate environment values. You need to provide your mn To make CI work in your pull request, ensure that the necessary environment variables are configured in your forked repository's secrets. Please add the following variables in your GitHub Secrets: -- API_KEY_ETHERSCAN - API_KEY_INFURA - RPC_URL_MAINNET