diff --git a/README.md b/README.md index 7715a8c2084ba25c03e2dc77a5dd3f38bee713a5..33db7152ed98b12a8d3ddac2f97a8a8a223df9e7 100644 --- a/README.md +++ b/README.md @@ -93,7 +93,6 @@ silkaj -ep <hostname>:<port> <sub-command> ## 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) - [Transaction generator written in Shell](https://gitlab.com/jytou/tgen) - [Äž1Cotis](https://git.duniter.org/matograine/g1-cotis) diff --git a/doc/argos.md b/doc/argos.md deleted file mode 100644 index 5be04753d327a66012752f84792eaadd6c0b7fd0..0000000000000000000000000000000000000000 --- a/doc/argos.md +++ /dev/null @@ -1,19 +0,0 @@ -## 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. diff --git a/silkaj/blockchain/information.py b/silkaj/blockchain/information.py index 6a775cd676f591f37c1362fcfb249cfa5b5b712e..18609dc0d1905f092cc005bed9c7d604e9ba2e39 100644 --- a/silkaj/blockchain/information.py +++ b/silkaj/blockchain/information.py @@ -47,41 +47,3 @@ def currency_info() -> None: "\nDifference time:", 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), - ) diff --git a/silkaj/cli.py b/silkaj/cli.py index 0eefc99cbfda3a65474bedd90c2b0b91cfb7ace8..742f3a104f7cdf899287a4a29e0872c732de83ed 100644 --- a/silkaj/cli.py +++ b/silkaj/cli.py @@ -22,7 +22,7 @@ from silkaj.about import about from silkaj.auth import generate_auth_file from silkaj.blockchain.blocks import list_blocks 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.checksum import checksum_command from silkaj.constants import ( @@ -136,7 +136,6 @@ def blockchain_group() -> None: pass -blockchain_group.add_command(argos_info) blockchain_group.add_command(list_blocks) blockchain_group.add_command(difficulties) blockchain_group.add_command(currency_info)