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

Small Staking Commands fix #719

Merged
merged 3 commits into from
Nov 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
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
1 change: 1 addition & 0 deletions src/telliot_feeds/cli/commands/request_withdraw_stake.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ async def request_withdraw(
min_native_token_balance: float,
gas_multiplier: int,
max_priority_fee_range: int,
unsafe: bool,
) -> None:
"""Request withdraw of tokens from oracle"""
ctx.obj["ACCOUNT_NAME"] = account_str
Expand Down
1 change: 1 addition & 0 deletions src/telliot_feeds/cli/commands/stake.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ async def stake(
min_native_token_balance: float,
gas_multiplier: int,
max_priority_fee_range: int,
unsafe: bool,
) -> None:
"""Deposit tokens to oracle"""
ctx.obj["ACCOUNT_NAME"] = account_str
Expand Down
1 change: 1 addition & 0 deletions src/telliot_feeds/cli/commands/withdraw.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ async def withdraw(
min_native_token_balance: float,
gas_multiplier: int,
max_priority_fee_range: int,
unsafe: bool,
) -> None:
"""Withdraw of tokens from oracle"""
ctx.obj["ACCOUNT_NAME"] = account_str
Expand Down
2 changes: 1 addition & 1 deletion src/telliot_feeds/cli/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ def build_query(log: Optional[Callable[[str], None]] = click.echo) -> Any:
queries = [q for q in AbiQuery.__subclasses__() if q.__name__ not in ("LegacyRequest")]
options = [q.__name__ for q in queries]
# Sort options and queries by alphabetical order
options, queries = zip(*sorted(zip(options, queries)))
options, queries = [zip(*sorted(zip(options, queries)))]

menu = TerminalMenu(options, title=title)
selected_index = menu.show()
Expand Down
Loading