Skip to content

Commit

Permalink
Replace deprecated NetworkBoundCommand with ConnectedProviderCommand …
Browse files Browse the repository at this point in the history
…for scripts to work properly.
  • Loading branch information
derekpierre committed Mar 28, 2024
1 parent 661f3f9 commit 599483f
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 11 deletions.
7 changes: 4 additions & 3 deletions scripts/authorize_enrico.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@

import click
from ape import project
from ape.cli import NetworkBoundCommand, account_option, network_option
from ape.cli import ConnectedProviderCommand, account_option, network_option
from eth_utils import to_checksum_address

from deployment.constants import SUPPORTED_TACO_DOMAINS
from deployment.params import Transactor
from deployment.registry import contracts_from_registry
from deployment.utils import check_plugins, registry_filepath_from_domain
from eth_utils import to_checksum_address


@click.command(cls=NetworkBoundCommand)
@click.command(cls=ConnectedProviderCommand)
@network_option(required=True)
@account_option()
@click.option(
Expand Down
5 changes: 3 additions & 2 deletions scripts/grant_initiator_role.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@

import click
from ape import networks, project
from ape.cli import NetworkBoundCommand, account_option, network_option
from ape.cli import ConnectedProviderCommand, account_option, network_option

from deployment.constants import SUPPORTED_TACO_DOMAINS
from deployment.params import Transactor
from deployment.registry import contracts_from_registry
from deployment.utils import check_plugins, registry_filepath_from_domain


@click.command(cls=NetworkBoundCommand)
@click.command(cls=ConnectedProviderCommand)
@network_option(required=True)
@account_option()
@click.option(
Expand Down
5 changes: 3 additions & 2 deletions scripts/initiate_ritual.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@

import click
from ape import project
from ape.cli import NetworkBoundCommand, account_option, network_option
from ape.cli import ConnectedProviderCommand, account_option, network_option

from deployment.constants import LYNX, LYNX_NODES, SUPPORTED_TACO_DOMAINS, TAPIR, TAPIR_NODES
from deployment.params import Transactor
from deployment.registry import contracts_from_registry
from deployment.utils import check_plugins, registry_filepath_from_domain


@click.command(cls=NetworkBoundCommand)
@click.command(cls=ConnectedProviderCommand)
@network_option(required=True)
@account_option()
@click.option(
Expand Down
4 changes: 2 additions & 2 deletions scripts/ritual_state_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import click
from ape import networks, project
from ape.cli import NetworkBoundCommand, network_option
from ape.cli import ConnectedProviderCommand, network_option

from deployment.constants import SUPPORTED_TACO_DOMAINS
from deployment.registry import contracts_from_registry
Expand Down Expand Up @@ -64,7 +64,7 @@ def print_ritual_state(ritual_id, coordinator) -> RitualState:
return ritual_state


@click.command(cls=NetworkBoundCommand)
@click.command(cls=ConnectedProviderCommand)
@network_option(required=True)
@click.option(
"--domain",
Expand Down
5 changes: 3 additions & 2 deletions scripts/verify.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import click
from ape import networks
from ape.cli import NetworkBoundCommand, network_option
from ape.cli import ConnectedProviderCommand, network_option

from deployment.constants import SUPPORTED_TACO_DOMAINS
from deployment.registry import contracts_from_registry
from deployment.utils import registry_filepath_from_domain, verify_contracts


@click.command(cls=NetworkBoundCommand)
@click.command(cls=ConnectedProviderCommand)
@network_option(required=True)
@click.option(
"--domain",
Expand Down

0 comments on commit 599483f

Please sign in to comment.