From 40001c68cf7b07f2bcad862092a3384c802ba4fb Mon Sep 17 00:00:00 2001 From: derekpierre Date: Fri, 6 Oct 2023 15:56:53 -0400 Subject: [PATCH] Update confirm_operator_addresses script for tapir. --- scripts/tapir/confirm_operator_addresses.py | 23 +++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 scripts/tapir/confirm_operator_addresses.py diff --git a/scripts/tapir/confirm_operator_addresses.py b/scripts/tapir/confirm_operator_addresses.py new file mode 100644 index 00000000..c22951c2 --- /dev/null +++ b/scripts/tapir/confirm_operator_addresses.py @@ -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)