Skip to content

Commit

Permalink
Update confirm_operator_addresses script for tapir.
Browse files Browse the repository at this point in the history
  • Loading branch information
derekpierre committed Oct 6, 2023
1 parent 2ab8be1 commit 40001c6
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions scripts/tapir/confirm_operator_addresses.py
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)

0 comments on commit 40001c6

Please sign in to comment.