Skip to content
This repository has been archived by the owner on Oct 6, 2023. It is now read-only.

Get our contracts deployed to Goerli for cross-chain testing #210

Merged
merged 24 commits into from
Jul 25, 2023

Conversation

stevieraykatz
Copy link
Contributor

@stevieraykatz stevieraykatz commented Jul 18, 2023

Ticket(s): #204

Explanation of the solution

  • Create tasks necessary for deploying side-chain infrastructure (Router, registrar)
  • Create/modify tasks for configuring the side-chain infra
  • Create a dummy vault for purposes of testing full stack investment calls
  • Deploy Router
  • Deploy Registrar
  • Deploy DummyVault
  • Configure all the things (both primary and side-chain)

Instructions on making this work

  • run yarn or yarn install to install npm dependencies
  • run yarn test to verify all tests still pass

@stevieraykatz stevieraykatz self-assigned this Jul 18, 2023
@stevieraykatz
Copy link
Contributor Author

@misicnenad it would be great to get your eyes on this infra sooner than later.

I created a new, separate address json specifically for integrations because it will have an arbitrary length (which doesn't play nicely with the generic 'address obj` and which is also independent of chain, i.e. each named integration will have a unique set of contracts on a singular and specific chain.

It does however have a reusable structure: {strategy, locked, liquid}. As such, the manageStratParams tooling is set up to write these specific objects to the json files as strategies are deployed.

The new stratConfig.ts file is meant to be the "settable config" for each new strategy. I'm open to suggestions on how to manage this. I wanted to avoid needing file path/system scrapers for pulling configs from each respective integration folder so I opted for this more strictly typed, all-encompassing config file.

tasks/deploy/deployLocalRegistrar.ts Show resolved Hide resolved
tasks/deploy/deployLocalRegistrar.ts Show resolved Hide resolved
utils/manageStratParams/types.ts Show resolved Hide resolved
utils/manageStratParams/types.ts Outdated Show resolved Hide resolved
utils/manageStratParams/manageStratParams.ts Show resolved Hide resolved
utils/manageStratParams/manageStratParams.ts Outdated Show resolved Hide resolved
utils/manageStratParams/helpers.ts Outdated Show resolved Hide resolved
tasks/manage/registrar/setFeeSetting.ts Show resolved Hide resolved
tasks/deploy/integrations/dummyIntegration.ts Outdated Show resolved Hide resolved
tasks/deploy/deployLocalRegistrar.ts Outdated Show resolved Hide resolved
@stevieraykatz stevieraykatz changed the title [WIP] Get our contracts deployed to Goerli for cross-chain testing Get our contracts deployed to Goerli for cross-chain testing Jul 22, 2023
@stevieraykatz stevieraykatz removed the WIP label Jul 22, 2023
@stevieraykatz
Copy link
Contributor Author

Last pending step is to set the Goerli network info on the primary Registrar (mumbai network).

Good finds all around.
@SovereignAndrey SovereignAndrey merged commit a1c5d30 into master Jul 25, 2023
1 check passed
@SovereignAndrey SovereignAndrey deleted the goerli-test-setup branch July 25, 2023 05:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants