Skip to content

Commit

Permalink
Add testnets scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
noisekit committed Oct 29, 2024
1 parent 0acf138 commit 1d9db3c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 5 additions & 1 deletion liquidity/cypress/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 1d9db3c

Please sign in to comment.