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

Registrar-related script fixes #221

Merged
merged 1 commit into from
Jul 24, 2023

Conversation

0xNeshi
Copy link
Contributor

@0xNeshi 0xNeshi commented Jul 24, 2023

Ticket(s):

Explanation of the solution

  • Registrar was setting networkName: "Polygon" as default for any network being deployed to (see Registrar.initialize) -> this was causing issues when updating its network connections with scripts that accepted partial updates (see how updateRegistrar helper function work).
    @stevieraykatz @SovereignAndrey I updated the initializer function to accept a networkName parameter as well, but it's possible I wasn't aware that "Polygon" was supposed to be the default network to set here. If so, let me know and I will revert this change.
  • Renamed RegistrarMessages.InstantiateRequest.axelarGasRecv -> axelarGasService.
  • Fixed script logs.

Instructions on making this work

  • run yarn or yarn install to install npm dependencies
  • run yarn test to verify all tests still pass
  • run manage:registrar:setNetworkInfo script on desired network
  • verify it works

@0xNeshi 0xNeshi added the bug Something isn't working label Jul 24, 2023
@0xNeshi 0xNeshi self-assigned this Jul 24, 2023
@SovereignAndrey
Copy link
Contributor

SovereignAndrey commented Jul 24, 2023

updated the initializer function to accept a networkName parameter

That's a fine way to do it I think. 👍

@stevieraykatz stevieraykatz merged commit 97588dc into goerli-test-setup Jul 24, 2023
1 check passed
@stevieraykatz stevieraykatz deleted the goerli-test-setup-fixes branch July 24, 2023 20:33
SovereignAndrey pushed a commit that referenced this pull request Jul 25, 2023
* Add task for specifically deploying local infra

* Deploy Router and Registrar to goerli, added goerli to contract-address json

* Added new task for fee setting, fixed task for AP params

* added infrastructure for managing strategy params

* Added deployment task and deployed to Goerli

* lint

* Add network info updating task

* Fixes to tasks

* Made changes according to comments, still have some changes that are needed

* Remove duped types from types, fix some small nits

* lint

* Use deployer address as placeholder until we have a ms on goerli

* Remove unused import

* Fixes and cleanup after merging master, new task for deploying all of Side Chain

* Updates to dummy strategy, deployed new version

* Fixes to tasks to use APTeamMS as owner of registrar, new task for updating network configs

* Small fix to updateRegistrarNetworkConnections and other small changes to existing tasks

* Registrar-related script fixes (#221)

Good finds all around.

* Add primary registrar upgrade task, upgrade registrar on mumbai

* Remove debug logging

* Fixed bad assumption in updateRegistrarNetworkConnections

* Fixed issues in Router, adjusted tests accordingly (#229)

---------

Co-authored-by: Nenad Misic <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants