Skip to content

Commit

Permalink
Script to set ReimbursementPool contract on Lynx
Browse files Browse the repository at this point in the history
  • Loading branch information
cygnusv committed Aug 30, 2024
1 parent 969dff2 commit f76a026
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions scripts/lynx/coordinator_sets_reimbursement_pool.py
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit f76a026

Please sign in to comment.