Skip to content

Commit

Permalink
Update Tapir configure_staking to use amoy instead of mumbai.
Browse files Browse the repository at this point in the history
  • Loading branch information
derekpierre committed Apr 2, 2024
1 parent 32a9c67 commit 6c56f80
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions scripts/tapir/configure_staking.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/python3

from ape import networks, project

from deployment.constants import ARTIFACTS_DIR, TAPIR_NODES
from deployment.params import Transactor
from deployment.registry import contracts_from_registry
Expand Down Expand Up @@ -45,10 +46,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."""
def configure_amoy_root(transactor: Transactor, stake_size: int):
"""Configures MockTACoApplication on Amoy."""
# Set up Tapir stakes on Mumbai
poly_network = networks.polygon.mumbai
poly_network = networks.polygon.amoy
with poly_network.use_provider("infura"):
deployments = contracts_from_registry(
filepath=TAPIR_REGISTRY_FILEPATH, chain_id=poly_network.chain_id
Expand All @@ -72,4 +73,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 6c56f80

Please sign in to comment.