Skip to content
Snippets Groups Projects
Commit f33c2b59 authored by Moul's avatar Moul
Browse files

Delete argos command (#449)

Delete documentation
parent b49ff954
No related branches found
No related tags found
1 merge request!223Delete argos command (#449)
Pipeline #17554 passed
...@@ -93,7 +93,6 @@ silkaj -ep <hostname>:<port> <sub-command> ...@@ -93,7 +93,6 @@ silkaj -ep <hostname>:<port> <sub-command>
## Wrappers ## Wrappers
- [Install as a drop-down for GNOME Shell with Argos](doc/argos.md)
- [How-to: automate transactions and multi-output](doc/how-to_automate_transactions_and_multi-output.md) - [How-to: automate transactions and multi-output](doc/how-to_automate_transactions_and_multi-output.md)
- [Transaction generator written in Shell](https://gitlab.com/jytou/tgen) - [Transaction generator written in Shell](https://gitlab.com/jytou/tgen)
- [Ğ1Cotis](https://git.duniter.org/matograine/g1-cotis) - [Ğ1Cotis](https://git.duniter.org/matograine/g1-cotis)
......
## Install as a drop-down for GNOME Shell with Argos
Under GNOME Shell, with [Argos](https://github.com/p-e-w/argos) extension:
- [Install Argos](https://github.com/p-e-w/argos#installation)
- Inside `~/.config/argos/silkaj.30s.sh` put:
```bash
#!/usr/bin/env bash
/path/to/silkaj/silkaj argos
```
Add execution permission:
```bash
chmod u+x ~/.config/argos/silkaj.30s.sh
```
Argos will run the script every 30 seconds.
...@@ -47,41 +47,3 @@ def currency_info() -> None: ...@@ -47,41 +47,3 @@ def currency_info() -> None:
"\nDifference time:", "\nDifference time:",
current_time.diff_for_humans(mediantime, True), current_time.diff_for_humans(mediantime, True),
) )
@click.command(
"argos", help="Display currency information formatted for Argos or BitBar"
)
def argos_info() -> None:
head_block = get_head_block()
currency_symbol = get_currency_symbol()
print(currency_symbol, "|")
print("---")
ep = determine_endpoint()
if ep.port == 443:
href = f"href=https://{ep.host}/"
else:
href = f"href=http://{ep.host}:{ep.port}/"
current_time = from_timestamp(head_block["time"], tz="local")
mediantime = from_timestamp(head_block["medianTime"], tz="local")
print(
"Connected to node:",
ep.host,
ep.port,
"|",
href,
"\nCurrent block number:",
head_block["number"],
"\nCurrency name:",
currency_symbol,
"\nNumber of members:",
head_block["membersCount"],
"\nMinimal Proof-of-Work:",
head_block["powMin"],
"\nCurrent time:",
current_time.format(ALL),
"\nMedian time:",
mediantime.format(ALL),
"\nDifference time:",
current_time.diff_for_humans(mediantime, True),
)
...@@ -22,7 +22,7 @@ from silkaj.about import about ...@@ -22,7 +22,7 @@ from silkaj.about import about
from silkaj.auth import generate_auth_file from silkaj.auth import generate_auth_file
from silkaj.blockchain.blocks import list_blocks from silkaj.blockchain.blocks import list_blocks
from silkaj.blockchain.difficulty import difficulties from silkaj.blockchain.difficulty import difficulties
from silkaj.blockchain.information import argos_info, currency_info from silkaj.blockchain.information import currency_info
from silkaj.blockchain.verify import verify_blocks_signatures from silkaj.blockchain.verify import verify_blocks_signatures
from silkaj.checksum import checksum_command from silkaj.checksum import checksum_command
from silkaj.constants import ( from silkaj.constants import (
...@@ -136,7 +136,6 @@ def blockchain_group() -> None: ...@@ -136,7 +136,6 @@ def blockchain_group() -> None:
pass pass
blockchain_group.add_command(argos_info)
blockchain_group.add_command(list_blocks) blockchain_group.add_command(list_blocks)
blockchain_group.add_command(difficulties) blockchain_group.add_command(difficulties)
blockchain_group.add_command(currency_info) blockchain_group.add_command(currency_info)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment