From 2f282874aa87ed17f9330216569f956fdb4bb3ae Mon Sep 17 00:00:00 2001 From: Roman Petriv Date: Tue, 26 Sep 2023 12:36:29 +0300 Subject: [PATCH] chore: remove staging links --- packages/api/README.md | 14 ++------------ packages/api/performance/addresspage.yaml | 10 ++-------- packages/api/performance/homepage.yaml | 10 ++-------- packages/api/performance/load-test.yaml | 18 +++--------------- packages/app/README.md | 8 +------- packages/app/tests/mocks.ts | 2 +- 6 files changed, 11 insertions(+), 51 deletions(-) diff --git a/packages/api/README.md b/packages/api/README.md index c3367f4a8a..fc0ef18ba8 100644 --- a/packages/api/README.md +++ b/packages/api/README.md @@ -78,11 +78,7 @@ artillery run ./performance/load-test.yaml -e ``` supported environments: -* stage -* testnet -* testnet-prod -* mainnet -* mainnet-prod +* local Feel free to add other API requests to the config if anything is missing. Keep in mind that performance tests may affect the running environment or/and any of its dependencies. @@ -94,12 +90,6 @@ artillery run ./performance/load-test.yaml -e testnet -o ./performance/29-06/tes for more command options check [official artillery docs](https://www.artillery.io/docs). -## Environments - -### *Staging* - - [Testnet](https://staging-block-explorer-api.testnets.zksync.dev) - - [Mainnet](https://staging-block-explorer-api.mainnet.zksync.io) - -### *Production* +## Production links - [Testnet](https://block-explorer-api.testnets.zksync.dev) - [Mainnet](https://block-explorer-api.mainnet.zksync.io) diff --git a/packages/api/performance/addresspage.yaml b/packages/api/performance/addresspage.yaml index 81e917a6ce..a9acb166db 100644 --- a/packages/api/performance/addresspage.yaml +++ b/packages/api/performance/addresspage.yaml @@ -8,14 +8,8 @@ config: arrivalCount: 100 environments: - stage: - target: "https://staging-block-explorer-api.stage.zksync.dev" - testnet-prod: - target: "https://block-explorer-api.testnets.zksync.dev" - testnet: - target: "https://staging-block-explorer-api.testnets.zksync.dev" - mainnet: - target: "https://staging-block-explorer-api.mainnet.zksync.io" + local: + target: "http://localhost:3000" plugins: metrics-by-endpoint: useOnlyRequestNames: true diff --git a/packages/api/performance/homepage.yaml b/packages/api/performance/homepage.yaml index 465b48a183..00111190f7 100644 --- a/packages/api/performance/homepage.yaml +++ b/packages/api/performance/homepage.yaml @@ -8,14 +8,8 @@ config: arrivalCount: 100 environments: - stage: - target: "https://staging-block-explorer-api.stage.zksync.dev" - testnet-prod: - target: "https://block-explorer-api.testnets.zksync.dev" - testnet: - target: "https://staging-block-explorer-api.testnets.zksync.dev" - mainnet: - target: "https://staging-block-explorer-api.mainnet.zksync.io" + local: + target: "http://localhost:3000" plugins: metrics-by-endpoint: useOnlyRequestNames: true diff --git a/packages/api/performance/load-test.yaml b/packages/api/performance/load-test.yaml index 1c0674214a..ac1d66faac 100644 --- a/packages/api/performance/load-test.yaml +++ b/packages/api/performance/load-test.yaml @@ -8,24 +8,12 @@ config: arrivalCount: 100 environments: - stage: - target: "https://staging-block-explorer-api.stage.zksync.dev" - testnet-prod: - target: "https://block-explorer-api.testnets.zksync.dev" + local: + target: "http://localhost:3000" variables: addresses: - ["0x0000000000000000000000000000000000008001"] - - ["0x8E113670acAB84C88508D7Fc47d93F3AC4ecFA69"] - testnet: - target: "https://staging-block-explorer-api.testnets.zksync.dev" - variables: - addresses: - - ["0x0000000000000000000000000000000000008001"] - - ["0x8E113670acAB84C88508D7Fc47d93F3AC4ecFA69"] - mainnet: - target: "https://staging-block-explorer-api.mainnet.zksync.io" - mainnet-prod: - target: "https://block-explorer-api.mainnet.zksync.io" + - ["0x000000000000000000000000000000000000800A"] plugins: metrics-by-endpoint: useOnlyRequestNames: true diff --git a/packages/app/README.md b/packages/app/README.md index c607898ec9..a7f59f2fe7 100644 --- a/packages/app/README.md +++ b/packages/app/README.md @@ -105,12 +105,6 @@ npm run test:e2e npm run lint ``` -## Environments - -### *Staging* - - [Web Application](https://staging-scan-v2.zksync.dev) - - [Storybook](https://staging-storybook-scan-v2.zksync.dev) - -### *Production* +## Production links - [Web Application](https://explorer.zksync.io) - [Storybook](https://storybook-scan-v2.zksync.dev) diff --git a/packages/app/tests/mocks.ts b/packages/app/tests/mocks.ts index ba8b3027de..30c0db3af3 100644 --- a/packages/app/tests/mocks.ts +++ b/packages/app/tests/mocks.ts @@ -38,7 +38,7 @@ export const GOERLI_NETWORK: NetworkConfig = { export const GOERLI_BETA_NETWORK: NetworkConfig = { name: "goerli-beta", apiUrl: "", - apiURLv2: "https://staging-block-explorer-api.testnets.zksync.dev", + apiURLv2: "https://block-explorer-api.mock.zksync.dev", icon: "", l2ChainId: 270, rpcUrl: "",