Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allows for optional staking #4

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion run_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def get_service_template(config: MechQuickstartConfig) -> ServiceTemplate:
"nft": "bafybeifgj3kackzfoq4fxjiuousm6epgwx7jbc3n2gjwzjgvtbbz7fc3su",
"cost_of_bond": COST_OF_BOND,
"threshold": 1,
"use_staking": True,
"use_staking": config.use_staking,
"fund_requirements": FundRequirementsTemplate(
{
"agent": AGENT_TOPUP,
Expand Down
5 changes: 5 additions & 0 deletions utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,11 @@ def get_local_config() -> MechQuickstartConfig:
mech_quickstart_config.gnosis_rpc = input(
f"Please enter a {ChainType.from_id(mech_quickstart_config.home_chain_id).name} RPC URL: "
)

if mech_quickstart_config.use_staking is None:
mech_quickstart_config.use_staking = input_with_default_value(
"Do you wish to use staking for your service? (True/False)" , False
)

if mech_quickstart_config.mech_hash is None:
mech_hash = (
Expand Down
Loading