From 1d9db3cff8183bd4fdc5dd368fff68ea326e2169 Mon Sep 17 00:00:00 2001 From: Noisekit Date: Tue, 29 Oct 2024 13:36:37 +1100 Subject: [PATCH] Add testnets scripts --- liquidity/cypress/package.json | 6 +++++- package.json | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/liquidity/cypress/package.json b/liquidity/cypress/package.json index 85284c10..b26bc33d 100644 --- a/liquidity/cypress/package.json +++ b/liquidity/cypress/package.json @@ -5,15 +5,19 @@ "version": "0.0.9", "scripts": { "anvil:arbitrum": "anvil --auto-impersonate --chain-id 42161 --fork-url wss://arbitrum-mainnet.infura.io/ws/v3/$INFURA_KEY --timeout 5000 --retries 0 --no-rate-limit --steps-tracing", + "anvil:arbitrum-sepolia": "anvil --auto-impersonate --chain-id 421614 --fork-url wss://arbitrum-sepolia.infura.io/ws/v3/$INFURA_KEY --timeout 5000 --retries 0 --no-rate-limit --steps-tracing", "anvil:sepolia": "anvil --auto-impersonate --chain-id 11155111 --fork-url wss://sepolia.infura.io/ws/v3/$INFURA_KEY --timeout 5000 --retries 0 --no-rate-limit --steps-tracing", "anvil:base": "anvil --auto-impersonate --chain-id 8453 --fork-url wss://base-mainnet.infura.io/ws/v3/$INFURA_KEY --timeout 5000 --retries 0 --no-rate-limit --steps-tracing", + "anvil:base-sepolia": "anvil --auto-impersonate --chain-id 84532 --fork-url wss://base-sepolia.infura.io/ws/v3/$INFURA_KEY --timeout 5000 --retries 0 --no-rate-limit --steps-tracing", "cy": "NODE_ENV=test cypress open --component --browser chrome", "e2e:arbitrum": "NODE_ENV=test CYPRESS_CHAIN_ID=42161 CYPRESS_PRESET=main cypress open --e2e --browser chrome --config specPattern='./cypress/e2e/42161-main/*.e2e.js'", "e2e:base": "NODE_ENV=test CYPRESS_CHAIN_ID=8453 CYPRESS_PRESET=andromeda cypress open --e2e --browser chrome --config specPattern='./cypress/e2e/8453-andromeda/*.e2e.js'", "sync-time": "ts-node bin/syncTime.ts", "update-prices": "ts-node bin/doAllPriceUpdates.ts 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80", "update-prices:arbitrum": "NODE_ENV=test CYPRESS_CHAIN_ID=42161 CYPRESS_PRESET=main yarn update-prices", - "update-prices:base": "NODE_ENV=test CYPRESS_CHAIN_ID=8453 CYPRESS_PRESET=andromeda yarn update-prices" + "update-prices:arbitrum-sepolia": "NODE_ENV=test CYPRESS_CHAIN_ID=421614 CYPRESS_PRESET=main yarn update-prices", + "update-prices:base": "NODE_ENV=test CYPRESS_CHAIN_ID=8453 CYPRESS_PRESET=andromeda yarn update-prices", + "update-prices:base-sepolia": "NODE_ENV=test CYPRESS_CHAIN_ID=84532 CYPRESS_PRESET=andromeda yarn update-prices" }, "devDependencies": { "@chakra-ui/react": "^2.8.2", diff --git a/package.json b/package.json index 28e12490..9f3add70 100644 --- a/package.json +++ b/package.json @@ -9,11 +9,15 @@ "start": "yarn workspace @snx-v3/liquidity start", "build": "yarn workspace @snx-v3/liquidity build", "update-prices:arbitrum": "yarn workspace @snx-v3/liquidity-cypress update-prices:arbitrum", + "update-prices:arbitrum-sepolia": "yarn workspace @snx-v3/liquidity-cypress update-prices:arbitrum-sepolia", "update-prices:base": "yarn workspace @snx-v3/liquidity-cypress update-prices:base", + "update-prices:base-sepolia": "yarn workspace @snx-v3/liquidity-cypress update-prices:base-sepolia", "sync-time": "yarn workspace @snx-v3/liquidity-cypress sync-time", "anvil:arbitrum": "yarn workspace @snx-v3/liquidity-cypress anvil:arbitrum", + "anvil:arbitrum-sepolia": "yarn workspace @snx-v3/liquidity-cypress anvil:arbitrum-sepolia", "anvil:sepolia": "yarn workspace @snx-v3/liquidity-cypress anvil:sepolia", "anvil:base": "yarn workspace @snx-v3/liquidity-cypress anvil:base", + "anvil:base-sepolia": "yarn workspace @snx-v3/liquidity-cypress anvil:base-sepolia", "cy": "yarn workspace @snx-v3/liquidity-cypress cy", "e2e:arbitrum": "yarn workspace @snx-v3/liquidity-cypress e2e:arbitrum", "e2e:base": "yarn workspace @snx-v3/liquidity-cypress e2e:base",