diff --git a/scripts/lynx/coordinator_sets_reimbursement_pool.py b/scripts/lynx/coordinator_sets_reimbursement_pool.py new file mode 100644 index 00000000..05f78fb9 --- /dev/null +++ b/scripts/lynx/coordinator_sets_reimbursement_pool.py @@ -0,0 +1,25 @@ +#!/usr/bin/python3 + +from ape import project, networks + +from deployment.constants import ARTIFACTS_DIR +from deployment.params import Transactor +from deployment.registry import contracts_from_registry + +LYNX_REGISTRY_FILEPATH = ARTIFACTS_DIR / "lynx.json" + +def main(): + """ + Coordinator sets the ReimbursementPool + + ape run lynx coordinator_sets_reimbursement_pool --network polygon:amoy:infura + """ + + transactor = Transactor() + deployments = contracts_from_registry( + filepath=LYNX_REGISTRY_FILEPATH, chain_id=networks.active_provider.chain_id + ) + coordinator = deployments[project.Coordinator.contract_type.name] + reimbursement_pool = deployments[project.ReimbursementPool.contract_type.name] + + transactor.transact(coordinator.setReimbursementPool, reimbursement_pool.address)