-
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.
Update confirm_operator_addresses script for tapir.
- Loading branch information
1 parent
2ab8be1
commit 40001c6
Showing
1 changed file
with
23 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/bin/python3 | ||
|
||
from ape import project | ||
from deployment.constants import ARTIFACTS_DIR, TAPIR_NODES | ||
from deployment.params import Transactor | ||
from deployment.registry import contracts_from_registry | ||
from deployment.utils import check_plugins | ||
|
||
REGISTRY_FILEPATH = ARTIFACTS_DIR / "tapir.json" | ||
|
||
|
||
def main(): | ||
""" | ||
Confirm tapir operator addresses on the Sepolia side of the bridge | ||
ape run tapir confirm_operator_addresses --network ethereum:sepolia:infura | ||
""" | ||
check_plugins() | ||
transactor = Transactor() | ||
deployments = contracts_from_registry(filepath=REGISTRY_FILEPATH) | ||
mock_polygon_root = deployments[project.MockPolygonRoot.contract_type.name] | ||
for _, operator in TAPIR_NODES.items(): | ||
transactor.transact(mock_polygon_root.confirmOperatorAddress, operator) |