Skip to content

Commit

Permalink
Arbitrum Mainnet support (#292)
Browse files Browse the repository at this point in the history
* Refactor contracts generation, reusing @synthetixio/v3-contracts

* Return back multi-preset deployments support and add Arbitrum Mainnet

* Yarn harder

* Pretty

* Fix builds

* Deps harder

* Fix incorrect DefinePlugin config

* Comment out unused providers

* Update onboard init

* Test in electron

* Fix governance build

* Fix incorrect imports

* Run in chrome

* Intercept harder

* Deps

* Fix bad bundling

* Fix tests

* Fix build for tests

* Fix test harder

* Cannot borrow on base andromeda

* More tests fixes

* Extract localstorage hook

* Log useQuery exceptions

* Simplify Manage a bit

* Fix missing checks for useLiquidityPosition query

* Restructure and simplify Liquidity tests

* Skip Andromeda Deposit test as price updates fail in test env

* Deps

* Update TS build

* Fix missing preset

* Set CHAIN_ID and PRESET for tests

* Refactor contracts harder

* fix cci

* Fix deps

* Rollback cypress config change

* Fix importers

* Skip test

* INFURA_KEY

* Better error for contract loader

* Fix sepolia stringification
  • Loading branch information
noisekit authored Jun 7, 2024
1 parent eba2471 commit 3b691e2
Show file tree
Hide file tree
Showing 813 changed files with 2,417 additions and 242,085 deletions.
61 changes: 44 additions & 17 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ parameters:

cypress-version:
type: string
default: '13.6.4'
default: '13.11.0'

commands:
yarn-install:
Expand Down Expand Up @@ -137,21 +137,28 @@ jobs:
steps:
- checkout
- yarn-install
- run:
name: Build
command: |-
yarn workspaces foreach --all --topological-dev --verbose --no-private run build
# codegen is part of build, so ensure we have all the autogenerated code committed
git diff --name-only --exit-code
- run: yarn codegen
- run: yarn build:ts
- run: git diff --name-only --exit-code
- run: yarn typecheck

governance-cy:
governance-e2e:
parameters:
chainId:
type: integer
preset:
type: string
provider-url:
type: string
working_directory: /tmp/app
docker:
- image: cypress/included:<< pipeline.parameters.cypress-version >>
resource_class: large
environment:
NODE_ENV: test
CYPRESS_CHAIN_ID: << parameters.chainId >>
CYPRESS_PRESET: << parameters.preset >>
TESTNET: 1
steps:
- checkout
- install-foundry
Expand All @@ -160,12 +167,12 @@ jobs:
- run:
name: Run server localhost:3000
working_directory: /tmp/app/governance/ui
command: yarn dev:testnet
command: yarn start
background: true

- run:
name: Run anvil localhost:8545
command: anvil --fork-url https://sepolia.infura.io/v3/$INFURA_KEY
command: anvil --fork-url "<< parameters.provider-url >>"
background: true

- run:
Expand Down Expand Up @@ -197,14 +204,20 @@ jobs:

liquidity-e2e:
parameters:
chain:
chainId:
type: integer
preset:
type: string
provider-url:
type: string
working_directory: /tmp/app
docker:
- image: cypress/included:<< pipeline.parameters.cypress-version >>
resource_class: large
environment:
NODE_ENV: test
CYPRESS_CHAIN_ID: << parameters.chainId >>
CYPRESS_PRESET: << parameters.preset >>
steps:
- checkout
- install-foundry
Expand All @@ -218,7 +231,7 @@ jobs:

- run:
name: Run anvil localhost:8545
command: anvil --fork-url https://<< parameters.chain >>.infura.io/v3/$INFURA_KEY
command: anvil --fork-url "<< parameters.provider-url >>"
background: true

- run:
Expand Down Expand Up @@ -260,7 +273,7 @@ jobs:

- run:
working_directory: /tmp/app/liquidity/cypress
command: cypress run --component --browser chrome
command: cypress run --component

- store_test_results:
path: 'liquidity/cypress/cypress/reports'
Expand Down Expand Up @@ -337,16 +350,30 @@ workflows:
- typecheck
- tests
- liquidity-cy
- governance-cy
- governance-e2e:
name: governance-e2e-sepolia
chainId: 11155111
preset: main
provider-url: https://sepolia.infura.io/v3/$INFURA_KEY
- liquidity-e2e:
chain: base-mainnet
name: liquidity-e2e-base-mainnet
chainId: 8453
preset: andromeda
provider-url: https://base-mainnet.infura.io/v3/$INFURA_KEY
- liquidity-e2e:
chain: sepolia
name: liquidity-e2e-sepolia
chainId: 11155111
preset: main
provider-url: https://sepolia.infura.io/v3/$INFURA_KEY
- combine-coverage:
requires:
[tests, liquidity-cy, governance-cy, liquidity-e2e-base-mainnet, liquidity-e2e-sepolia]
[
tests,
liquidity-cy,
governance-e2e-sepolia,
liquidity-e2e-base-mainnet,
liquidity-e2e-sepolia,
]
- liquidity-armada:
requires:
- checks
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/bl-npm-5.1.0-872d13e4d1-0340d3d70d.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/cids-npm-1.1.9-e64481d6ea-daa116c94c.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 3b691e2

Please sign in to comment.