Skip to content

Commit

Permalink
Remove goerli.
Browse files Browse the repository at this point in the history
- And some kovan / Rinkeby stragglers.
  • Loading branch information
Juan Ignacio Ubeira committed May 3, 2024
1 parent de8c3a5 commit 2a0d203
Show file tree
Hide file tree
Showing 123 changed files with 19 additions and 539 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ jobs:
AVALANCHE_RPC_ENDPOINT: ${{ secrets.AVALANCHE_RPC_ENDPOINT }}
ZKEVM_RPC_ENDPOINT: ${{ secrets.ZKEVM_RPC_ENDPOINT }}
BASE_RPC_ENDPOINT: ${{ secrets.BASE_RPC_ENDPOINT }}
GOERLI_RPC_ENDPOINT: ${{ secrets.GOERLI_RPC_ENDPOINT }}
SEPOLIA_RPC_ENDPOINT: ${{ secrets.SEPOLIA_RPC_ENDPOINT }}
- name: Test
run: yarn test
20 changes: 0 additions & 20 deletions .github/workflows/deployment-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,16 +117,6 @@ jobs:
FANTOM_RPC_ENDPOINT: ${{ secrets.FANTOM_RPC_ENDPOINT }}
with:
network-name: fantom
check-goerli-deployments:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Check Goerli Deployment Addresses
uses: ./.github/actions/check-network-deployments
env:
GOERLI_RPC_ENDPOINT: ${{ secrets.GOERLI_RPC_ENDPOINT }}
with:
network-name: goerli
check-sepolia-deployments:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -238,16 +228,6 @@ jobs:
FANTOM_RPC_ENDPOINT: ${{ secrets.FANTOM_RPC_ENDPOINT }}
with:
network-name: fantom
check-goerli-action-ids:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Check Goerli Action IDs
uses: ./.github/actions/check-network-action-ids
env:
GOERLI_RPC_ENDPOINT: ${{ secrets.GOERLI_RPC_ENDPOINT }}
with:
network-name: goerli
check-sepolia-action-ids:
runs-on: ubuntu-latest
steps:
Expand Down
11 changes: 0 additions & 11 deletions .github/workflows/timelock-authorizer-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,17 +120,6 @@ jobs:
with:
network-name: fantom

verify-goerli-timelock-authorizer-config:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Verify Goerli Timelock Authorizer Configuration
uses: ./.github/actions/verify-network-timelock-authorizer-config
env:
GOERLI_RPC_ENDPOINT: ${{ secrets.GOERLI_RPC_ENDPOINT }}
with:
network-name: goerli

verify-sepolia-timelock-authorizer-config:
runs-on: ubuntu-latest
steps:
Expand Down
4 changes: 0 additions & 4 deletions DEPLOYING.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,6 @@ This data is accessed via the [`local-networks-config`](https://www.npmjs.com/pa
"bsc": {
"url": "https://bsc.rpc.endpoint/myAPIKey",
"verificationAPIKey": "bsc-etherscan-API-key"
},
"goerli": {
"url": "https://goerli.rpc.endpoint/myAPIKey",
"verificationAPIKey": "goerli-etherscan-API-key"
}
},
"defaultConfig": {
Expand Down
4 changes: 0 additions & 4 deletions addresses/.supported-networks.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@
"chainId": 100,
"block-explorer": "https://gnosisscan.io"
},
"goerli": {
"chainId": 5,
"block-explorer": "https://goerli.etherscan.io"
},
"optimism": {
"chainId": 10,
"block-explorer": "https://optimistic.etherscan.io"
Expand Down
3 changes: 0 additions & 3 deletions ci/prepare-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ if (process.env.CI) {
"zkevm": {
"url": "${process.env.ZKEVM_RPC_ENDPOINT}"
},
"goerli": {
"url": "${process.env.GOERLI_RPC_ENDPOINT}"
},
"sepolia": {
"url": "${process.env.SEPOLIA_RPC_ENDPOINT}"
},
Expand Down
4 changes: 1 addition & 3 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@ import {
withRetries,
} from './src/network';

const THEGRAPHURLS: { [key: string]: string } = {
goerli: 'https://api.thegraph.com/subgraphs/name/balancer-labs/balancer-authorizer-goerli',
};
const THEGRAPHURLS: { [key: string]: string } = {};

task('deploy', 'Run deployment task')
.addParam('id', 'Deployment task ID')
Expand Down
12 changes: 6 additions & 6 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Artifact } from 'hardhat/types';
* @dev Returns the task id and contract name for a canonical contract deployed on a specific network.
* Throws if the address doesn't match any known Balancer deployment.
* @param address Address of the contract to be fetched
* @param network Name of the network looking the deployment for (e.g. mainnet, polygon, goerli, etc)
* @param network Name of the network looking the deployment for (e.g. mainnet, polygon, etc)
*/
export function lookupBalancerContractByAddress(address: string, network: string): { task: string; name: string } {
// eslint-disable-next-line @typescript-eslint/no-var-requires
Expand All @@ -21,7 +21,7 @@ export function lookupBalancerContractByAddress(address: string, network: string
* @dev Creates an ethers Contract object for a canonical contract deployed on a specific network
* @param task ID of the task to fetch the deployed contract
* @param contract Name of the contract to be fetched
* @param network Name of the network looking the deployment for (e.g. mainnet, polygon, goerli, etc)
* @param network Name of the network looking the deployment for (e.g. mainnet, polygon, etc)
*/
export async function getBalancerContract(task: string, contract: string, network: string): Promise<Contract> {
const address = await getBalancerContractAddress(task, contract, network);
Expand Down Expand Up @@ -74,7 +74,7 @@ export function getBalancerContractBytecode(task: string, contract: string): str
* @dev Returns the contract address of a deployed contract for a specific task on a network
* @param task ID of the task looking the deployment for
* @param contract Name of the contract to fetched the address of
* @param network Name of the network looking the deployment for (e.g. mainnet, polygon, goerli, etc)
* @param network Name of the network looking the deployment for (e.g. mainnet, polygon, etc)
*/
export function getBalancerContractAddress(task: string, contract: string, network: string): string {
const output = getBalancerDeployment(task, network);
Expand All @@ -84,7 +84,7 @@ export function getBalancerContractAddress(task: string, contract: string, netwo
/**
* @dev Returns the deployment output for a specific task on a network
* @param task ID of the task to look the deployment output of the required network
* @param network Name of the network looking the deployment output for (e.g. mainnet, polygon, goerli, etc)
* @param network Name of the network looking the deployment output for (e.g. mainnet, polygon, etc)
*/
export function getBalancerDeployment(task: string, network: string): { [key: string]: string } {
return require(getBalancerDeploymentPath(task, network));
Expand All @@ -102,15 +102,15 @@ function getBalancerContractArtifactPath(task: string, contract: string): string
/**
* @dev Returns the deployment path for a specific task on a network
* @param task ID of the task to look the deployment path for the required network
* @param network Name of the network looking the deployment path for (e.g. mainnet, polygon, goerli, etc)
* @param network Name of the network looking the deployment path for (e.g. mainnet, polygon, etc)
*/
function getBalancerDeploymentPath(task: string, network: string): string {
return `@balancer-labs/v2-deployments/dist/tasks/${task}/output/${network}.json`;
}

/**
* @dev Returns the path for the list of Balancer contract addresses on a network
* @param network Name of the network looking the deployment path for (e.g. mainnet, polygon, goerli, etc)
* @param network Name of the network looking the deployment path for (e.g. mainnet, polygon, etc)
*/
function getBalancerContractAddresses(network: string): string {
return `@balancer-labs/v2-deployments/dist/addresses/${network}.json`;
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@
"check": "yarn check-artifacts && yarn check-deployments",
"check-artifacts": "hardhat check-artifacts",
"check-network-deployments": "hardhat check-deployments --network",
"check-deployments": "hardhat check-deployments --network mainnet && hardhat check-deployments --network polygon && hardhat check-deployments --network arbitrum && hardhat check-deployments --network optimism && hardhat check-deployments --network gnosis && hardhat check-deployments --network bsc && hardhat check-deployments --network avalanche && hardhat check-deployments --network zkevm && hardhat check-deployments --network base && hardhat check-deployments --network fantom && hardhat check-deployments --network goerli && hardhat check-deployments --network sepolia",
"check-deployments": "hardhat check-deployments --network mainnet && hardhat check-deployments --network polygon && hardhat check-deployments --network arbitrum && hardhat check-deployments --network optimism && hardhat check-deployments --network gnosis && hardhat check-deployments --network bsc && hardhat check-deployments --network avalanche && hardhat check-deployments --network zkevm && hardhat check-deployments --network base && hardhat check-deployments --network fantom && hardhat check-deployments --network sepolia",
"check-network-action-ids": "hardhat check-action-ids --network",
"check-action-ids": "hardhat check-action-ids --network mainnet && hardhat check-action-ids --network polygon && hardhat check-action-ids --network arbitrum && hardhat check-action-ids --network optimism && hardhat check-action-ids --network gnosis && hardhat check-action-ids --network bsc && hardhat check-action-ids --network avalanche && hardhat check-action-ids --network zkevm && hardhat check-action-ids --network base && hardhat check-action-ids --network fantom && hardhat check-action-ids --network goerli && hardhat check-action-ids --network sepolia",
"check-action-ids": "hardhat check-action-ids --network mainnet && hardhat check-action-ids --network polygon && hardhat check-action-ids --network arbitrum && hardhat check-action-ids --network optimism && hardhat check-action-ids --network gnosis && hardhat check-action-ids --network bsc && hardhat check-action-ids --network avalanche && hardhat check-action-ids --network zkevm && hardhat check-action-ids --network base && hardhat check-action-ids --network fantom && hardhat check-action-ids --network sepolia",
"extract-artifacts": "hardhat extract-artifacts",
"build-address-lookup": "hardhat build-address-lookup --network mainnet && hardhat build-address-lookup --network polygon && hardhat build-address-lookup --network arbitrum && hardhat build-address-lookup --network optimism && hardhat build-address-lookup --network gnosis && hardhat build-address-lookup --network bsc && hardhat build-address-lookup --network avalanche && hardhat build-address-lookup --network zkevm && hardhat build-address-lookup --network base && hardhat build-address-lookup --network fantom && hardhat build-address-lookup --network goerli && hardhat build-address-lookup --network sepolia",
"check-address-lookup": "hardhat check-address-lookup --network mainnet && hardhat check-address-lookup --network polygon && hardhat check-address-lookup --network arbitrum && hardhat check-address-lookup --network optimism && hardhat check-address-lookup --network gnosis && hardhat check-address-lookup --network bsc && hardhat check-address-lookup --network avalanche && hardhat check-address-lookup --network zkevm && hardhat check-address-lookup --network base && hardhat check-address-lookup --network fantom && hardhat check-address-lookup --network goerli && hardhat check-address-lookup --network sepolia",
"build-timelock-authorizer-config": "hardhat build-timelock-authorizer-config --network mainnet && hardhat build-timelock-authorizer-config --network polygon && hardhat build-timelock-authorizer-config --network arbitrum && hardhat build-timelock-authorizer-config --network optimism && hardhat build-timelock-authorizer-config --network gnosis && hardhat build-timelock-authorizer-config --network bsc && hardhat build-timelock-authorizer-config --network avalanche && hardhat build-timelock-authorizer-config --network zkevm && hardhat build-timelock-authorizer-config --network base && hardhat build-timelock-authorizer-config --network fantom && hardhat build-timelock-authorizer-config --network goerli && hardhat build-timelock-authorizer-config --network sepolia",
"check-timelock-authorizer-config": "hardhat check-timelock-authorizer-config --network mainnet && hardhat check-timelock-authorizer-config --network polygon && hardhat check-timelock-authorizer-config --network arbitrum && hardhat check-timelock-authorizer-config --network optimism && hardhat check-timelock-authorizer-config --network gnosis && hardhat check-timelock-authorizer-config --network bsc && hardhat check-timelock-authorizer-config --network avalanche && hardhat check-timelock-authorizer-config --network zkevm && hardhat check-timelock-authorizer-config --network base && hardhat check-timelock-authorizer-config --network fantom && hardhat check-timelock-authorizer-config --network goerli && hardhat check-timelock-authorizer-config --network sepolia",
"build-address-lookup": "hardhat build-address-lookup --network mainnet && hardhat build-address-lookup --network polygon && hardhat build-address-lookup --network arbitrum && hardhat build-address-lookup --network optimism && hardhat build-address-lookup --network gnosis && hardhat build-address-lookup --network bsc && hardhat build-address-lookup --network avalanche && hardhat build-address-lookup --network zkevm && hardhat build-address-lookup --network base && hardhat build-address-lookup --network fantom && hardhat build-address-lookup --network sepolia",
"check-address-lookup": "hardhat check-address-lookup --network mainnet && hardhat check-address-lookup --network polygon && hardhat check-address-lookup --network arbitrum && hardhat check-address-lookup --network optimism && hardhat check-address-lookup --network gnosis && hardhat check-address-lookup --network bsc && hardhat check-address-lookup --network avalanche && hardhat check-address-lookup --network zkevm && hardhat check-address-lookup --network base && hardhat check-address-lookup --network fantom && hardhat check-address-lookup --network sepolia",
"build-timelock-authorizer-config": "hardhat build-timelock-authorizer-config --network mainnet && hardhat build-timelock-authorizer-config --network polygon && hardhat build-timelock-authorizer-config --network arbitrum && hardhat build-timelock-authorizer-config --network optimism && hardhat build-timelock-authorizer-config --network gnosis && hardhat build-timelock-authorizer-config --network bsc && hardhat build-timelock-authorizer-config --network avalanche && hardhat build-timelock-authorizer-config --network zkevm && hardhat build-timelock-authorizer-config --network base && hardhat build-timelock-authorizer-config --network fantom && hardhat build-timelock-authorizer-config --network sepolia",
"check-timelock-authorizer-config": "hardhat check-timelock-authorizer-config --network mainnet && hardhat check-timelock-authorizer-config --network polygon && hardhat check-timelock-authorizer-config --network arbitrum && hardhat check-timelock-authorizer-config --network optimism && hardhat check-timelock-authorizer-config --network gnosis && hardhat check-timelock-authorizer-config --network bsc && hardhat check-timelock-authorizer-config --network avalanche && hardhat check-timelock-authorizer-config --network zkevm && hardhat check-timelock-authorizer-config --network base && hardhat check-timelock-authorizer-config --network fantom && hardhat check-timelock-authorizer-config --network sepolia",
"verify-network-timelock-authorizer-config": "hardhat verify-timelock-authorizer-config --network",
"verify-timelock-authorizer-config": "hardhat verify-timelock-authorizer-config --network mainnet && hardhat verify-timelock-authorizer-config --network polygon && hardhat verify-timelock-authorizer-config --network arbitrum && hardhat verify-timelock-authorizer-config --network optimism && hardhat verify-timelock-authorizer-config --network gnosis && hardhat verify-timelock-authorizer-config --network bsc && hardhat verify-timelock-authorizer-config --network avalanche && hardhat verify-timelock-authorizer-config --network zkevm && hardhat verify-timelock-authorizer-config --network base && hardhat verify-timelock-authorizer-config --network fantom && hardhat verify-timelock-authorizer-config --network goerli && hardhat verify-timelock-authorizer-config --network sepolia",
"verify-timelock-authorizer-config": "hardhat verify-timelock-authorizer-config --network mainnet && hardhat verify-timelock-authorizer-config --network polygon && hardhat verify-timelock-authorizer-config --network arbitrum && hardhat verify-timelock-authorizer-config --network optimism && hardhat verify-timelock-authorizer-config --network gnosis && hardhat verify-timelock-authorizer-config --network bsc && hardhat verify-timelock-authorizer-config --network avalanche && hardhat verify-timelock-authorizer-config --network zkevm && hardhat verify-timelock-authorizer-config --network base && hardhat verify-timelock-authorizer-config --network fantom && hardhat verify-timelock-authorizer-config --network sepolia",
"lint": "yarn lint:solidity && yarn lint:typescript",
"lint:solidity": "solhint 'src/helpers/contracts/**/*.sol'",
"lint:typescript": "NODE_NO_WARNINGS=1 eslint . --ext .ts --ignore-path ./.eslintignore --max-warnings 0",
Expand Down
1 change: 0 additions & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ export { Artifact, Libraries } from 'hardhat/types';
import Task from './task';

export const NETWORKS = [
'goerli',
'mainnet',
'polygon',
'arbitrum',
Expand Down
3 changes: 0 additions & 3 deletions tasks/20210418-authorizer/input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ export default {
zkevm: {
admin: '0x2f237e7643a3bF6Ef265dd6FCBcd26a7Cc38dbAa',
},
goerli: {
admin: '0xE0a171587b1Cae546E069A943EDa96916F5EE977',
},
sepolia: {
admin: '0x171C0fF5943CE5f133130436A29bF61E26516003',
},
Expand Down
1 change: 0 additions & 1 deletion tasks/20210418-authorizer/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,5 @@ This contract is expected to be eventually replaced by one with a) native suppor
- [Polygon zkeVM mainnet addresses](./output/zkevm.json)
- [Base mainnet addresses](./output/base.json)
- [Fantom mainnet addresses](./output/fantom.json)
- [Goerli testnet addresses](./output/goerli.json)
- [Sepolia testnet addresses](./output/sepolia.json)
- [`Authorizer` artifact](./artifact/Authorizer.json)
1 change: 0 additions & 1 deletion tasks/20210418-vault/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ Aditionally, the `WETH` argument may represent different things in different net
- [Polygon zkeVM mainnet addresses](./output/zkevm.json)
- [Base mainnet addresses](./output/base.json)
- [Fantom mainnet addresses](./output/fantom.json)
- [Goerli testnet addresses](./output/goerli.json)
- [Sepolia testnet addresses](./output/sepolia.json)
- [`Vault` artifact](./artifact/Vault.json)
- [`BalancerHelpers` artifact](./artifact/BalancerHelpers.json)
6 changes: 0 additions & 6 deletions tasks/20210812-wsteth-rate-provider/input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,4 @@ export default {
mainnet: {
wstETH: '0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0',
},
kovan: {
wstETH: '0xA387B91e393cFB9356A460370842BC8dBB2F29aF',
},
goerli: {
wstETH: '0x6320cD32aA674d2898A68ec82e869385Fc5f7E2f',
},
};
1 change: 0 additions & 1 deletion tasks/20210812-wsteth-rate-provider/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ Deployment of the `WstETHRateProvider`, for using wstETH in Meta Stable Pools.
## Useful Files

- [Ethereum mainnet addresses](./output/mainnet.json)
- [Goerli testnet addresses](./output/goerli.json)
- [`WstETHRateProvider` artifact](./artifact/WstETHRateProvider.json)
1 change: 0 additions & 1 deletion tasks/20211202-no-protocol-fee-lbp/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,5 @@ Deployment of the `NoProtocolFeeLiquidityBootstrappingPool`, for Liquidity Boots
- [Avalanche mainnet addresses](./output/avalanche.json)
- [Polygon zkeVM mainnet addresses](./output/zkevm.json)
- [Base mainnet addresses](./output/base.json)
- [Goerli testnet addresses](./output/goerli.json)
- [Sepolia testnet addresses](./output/sepolia.json)
- [`NoProtocolFeeLiquidityBootstrappingPoolFactory` artifact](./artifact/NoProtocolFeeLiquidityBootstrappingPoolFactory.json)
1 change: 0 additions & 1 deletion tasks/20220325-authorizer-adaptor/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,5 @@ The adaptor may then be the admin for these systems and acts as a proxy forwardi
- [Polygon zkeVM mainnet addresses](./output/zkevm.json)
- [Base mainnet addresses](./output/base.json)
- [Fantom mainnet addresses](./output/fantom.json)
- [Goerli testnet addresses](./output/goerli.json)
- [Sepolia testnet addresses](./output/sepolia.json)
- [`AuthorizerAdaptor` artifact](./artifact/AuthorizerAdaptor.json)
3 changes: 0 additions & 3 deletions tasks/20220325-bal-token-holder-factory/input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ export default {
kovan: {
BAL: TestBALTask.output({ network: 'kovan' }).TestBalancerToken,
},
goerli: {
BAL: TestBALTask.output({ network: 'goerli' }).TestBalancerToken,
},
sepolia: {
BAL: TestBALTask.output({ network: 'sepolia' }).TestBalancerToken,
},
Expand Down
1 change: 0 additions & 1 deletion tasks/20220325-bal-token-holder-factory/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@ Deployment of `BALTokenHolderFactory` which deploys simple contracts which holds
## Useful Files

- [Ethereum mainnet addresses](./output/mainnet.json)
- [Goerli testnet addresses](./output/goerli.json)
- [Sepolia testnet addresses](./output/sepolia.json)
- [`BALTokenHolderFactory` artifact](./artifact/BALTokenHolderFactory.json)
Loading

0 comments on commit 2a0d203

Please sign in to comment.