Skip to content

Commit

Permalink
Merge pull request #70 from agicommies/runtime/117
Browse files Browse the repository at this point in the history
:using correct parameters on update:
  • Loading branch information
PsicoThePato authored Jun 8, 2024
2 parents bace04b + a448bc0 commit 7c5a20d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
12 changes: 6 additions & 6 deletions src/communex/cli/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,21 +90,20 @@ def propose_globally(
cid: str,
max_allowed_modules: int = typer.Option(None),
max_registrations_per_block: int = typer.Option(None),
min_name_length: int = typer.Option(None),
max_name_length: int = typer.Option(None),
min_name_length: int = typer.Option(None),
min_burn: int = typer.Option(None),
max_burn: int = typer.Option(None),
min_weight_stake: int = typer.Option(None),
max_allowed_subnets: int = typer.Option(None),
floor_delegation_fee: int = typer.Option(None),
floor_founder_share: int = typer.Option(None),
subnet_stake_threshold: int = typer.Option(None),
max_allowed_weights: int = typer.Option(None),
curator: str = typer.Option(None),
proposal_cost: int = typer.Option(None),
proposal_expiration: int = typer.Option(None),
proposal_participation_threshold: int = typer.Option(None),
subnet_stake_threshold: int = typer.Option(None),
general_subnet_application_cost: int = typer.Option(None),
floor_founder_share: int = typer.Option(None),
floor_delegation_fee: int = typer.Option(None),
max_allowed_weights: int = typer.Option(None),
):
provided_params = locals().copy()
provided_params.pop("ctx")
Expand Down Expand Up @@ -240,3 +239,4 @@ def registration_burn(
context.info(
f"The cost to register on a netuid: {netuid} is: {registration_cost} $COMAI"
)

10 changes: 7 additions & 3 deletions src/communex/cli/subnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,21 +163,25 @@ def propose_on_subnet(
netuid: int,
key: str,
cid: str,
name: str = typer.Option(None),
founder: str = typer.Option(None),
founder_share: int = typer.Option(None),
immunity_period: int = typer.Option(None),
incentive_ratio: int = typer.Option(None),
max_allowed_uids: int = typer.Option(None),
max_allowed_weights: int = typer.Option(None),
min_allowed_weights: int = typer.Option(None),
max_weight_age: int = typer.Option(None),
min_stake: int = typer.Option(None),
name: str = typer.Option(None),
tempo: int = typer.Option(None),
trust_ratio: int = typer.Option(None),
vote_mode: str = typer.Option(None),
max_weight_age: int = typer.Option(None),
bonds_ma: int = typer.Option(None),
maximum_set_weight_calls_per_epoch: int = typer.Option(None),
target_registrations_per_interval: int = typer.Option(None),
target_registrations_interval: int = typer.Option(None),
max_registrations_per_interval: int = typer.Option(None),
vote_mode: str = typer.Option(None),
adjustment_alpha: int = typer.Option(None),
):
"""
Adds a proposal to a specific subnet.
Expand Down

0 comments on commit 7c5a20d

Please sign in to comment.