Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
silkaj
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
clients
python
silkaj
Commits
f33c2b59
Commit
f33c2b59
authored
2 years ago
by
Moul
Browse files
Options
Downloads
Patches
Plain Diff
Delete argos command (
#449
)
Delete documentation
parent
b49ff954
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!223
Delete argos command (#449)
Pipeline
#17554
passed
2 years ago
Stage: checks
Stage: tests
Stage: package
Stage: coverage
Stage: deploy
Changes
4
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
README.md
+0
-1
0 additions, 1 deletion
README.md
doc/argos.md
+0
-19
0 additions, 19 deletions
doc/argos.md
silkaj/blockchain/information.py
+0
-38
0 additions, 38 deletions
silkaj/blockchain/information.py
silkaj/cli.py
+1
-2
1 addition, 2 deletions
silkaj/cli.py
with
1 addition
and
60 deletions
README.md
+
0
−
1
View file @
f33c2b59
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
doc/argos.md
deleted
100644 → 0
+
0
−
19
View file @
b49ff954
## 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.
This diff is collapsed.
Click to expand it.
silkaj/blockchain/information.py
+
0
−
38
View file @
f33c2b59
...
@@ -47,41 +47,3 @@ def currency_info() -> None:
...
@@ -47,41 +47,3 @@ def currency_info() -> None:
"
\n
Difference time:
"
,
"
\n
Difference 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
,
"
\n
Current block number:
"
,
head_block
[
"
number
"
],
"
\n
Currency name:
"
,
currency_symbol
,
"
\n
Number of members:
"
,
head_block
[
"
membersCount
"
],
"
\n
Minimal Proof-of-Work:
"
,
head_block
[
"
powMin
"
],
"
\n
Current time:
"
,
current_time
.
format
(
ALL
),
"
\n
Median time:
"
,
mediantime
.
format
(
ALL
),
"
\n
Difference time:
"
,
current_time
.
diff_for_humans
(
mediantime
,
True
),
)
This diff is collapsed.
Click to expand it.
silkaj/cli.py
+
1
−
2
View file @
f33c2b59
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment