-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add script to confirm operator addresses for Lynx nodes.
- Loading branch information
1 parent
ca7e27a
commit 0ad8570
Showing
2 changed files
with
28 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
from ape import project | ||
from ape.cli import get_user_selected_account | ||
from deployment.constants import ARTIFACTS_DIR, LYNX_NODES | ||
from deployment.registry import contracts_from_registry | ||
|
||
ROOT_REGISTRY_FILEPATH = ARTIFACTS_DIR / "lynx" / "lynx-alpha-13-root-registry.json" | ||
|
||
|
||
def main(): | ||
""" | ||
Confirm lynx operator addresses on the Goerli side of the bridge | ||
ape run lynx confirm_operator_addresses --network ethereum:goerli:infura | ||
""" | ||
|
||
deployer_account = get_user_selected_account() | ||
deployments = contracts_from_registry(filepath=ROOT_REGISTRY_FILEPATH) | ||
mock_polygon_root = deployments[project.MockPolygonRoot.contract_type.name] | ||
for _, operator in LYNX_NODES.items(): | ||
mock_polygon_root.confirmOperatorAddress(operator, sender=deployer_account) |