Skip to content

Commit

Permalink
Update lynx configure_staking script and run it for amoy.
Browse files Browse the repository at this point in the history
  • Loading branch information
derekpierre committed Mar 28, 2024
1 parent 23752b6 commit 661f3f9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion deployment/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"0xb15d5a4e2be34f4be154a1b08a94ab920ffd8a41": "0x890069745E9497C6f99Db68C4588deC5669F3d3E",
"0x210eeac07542f815ebb6fd6689637d8ca2689392": "0xf48F720A2Ed237c24F5A7686543D90596bb8D44D",
"0x48C8039c32F4c6f5cb206A5911C8Ae814929C16B": "0xce057adc39dcD1b3eA28661194E8963481CC48b2",
"0xE4c8d3bcf8C87D73CE38Ab2DC288d309072ee4E7": "0x81B6a7b73C270659D0DAb223Ef81f3b36b812466",
# TODO - now that we are starting lynx fresh again - should we continue to include manu's node?
# "0xE4c8d3bcf8C87D73CE38Ab2DC288d309072ee4E7": "0x81B6a7b73C270659D0DAb223Ef81f3b36b812466",
}

TAPIR_NODES = {
Expand Down
10 changes: 5 additions & 5 deletions scripts/lynx/configure_staking.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ def configure_sepolia_root(transactor: Transactor) -> int:
return min_stake_size


def configure_mumbai_root(transactor: Transactor, stake_size: int):
"""Configures MockTACoApplication on Mumbai."""
# Set up lynx stakes on Mumbai
poly_network = networks.polygon.mumbai
def configure_amoy_root(transactor: Transactor, stake_size: int):
"""Configures MockTACoApplication on Amoy."""
# Set up lynx stakes on Amoy
poly_network = networks.polygon.amoy
with poly_network.use_provider("infura"):
deployments = contracts_from_registry(
filepath=LYNX_REGISTRY_FILEPATH, chain_id=poly_network.chain_id
Expand All @@ -74,4 +74,4 @@ def main():
check_plugins()
transactor = Transactor()
stake_size = configure_sepolia_root(transactor)
configure_mumbai_root(transactor, stake_size)
configure_amoy_root(transactor, stake_size)

0 comments on commit 661f3f9

Please sign in to comment.