silkaj issueshttps://git.duniter.org/clients/python/silkaj/-/issues2023-06-23T19:37:54+02:00https://git.duniter.org/clients/python/silkaj/-/issues/466Make the CLI looks better with rich-click2023-06-23T19:37:54+02:00MoulMake the CLI looks better with rich-click- https://pypi.org/project/rich-click/
- https://github.com/ewels/rich-click
- https://repology.org/badge/vertical-allrepos/python:rich-click.svg: Poor packaging, but available in Debian
- Do no longer really support Typer #439+ https://...- https://pypi.org/project/rich-click/
- https://github.com/ewels/rich-click
- https://repology.org/badge/vertical-allrepos/python:rich-click.svg: Poor packaging, but available in Debian
- Do no longer really support Typer #439+ https://github.com/ewels/rich-click/releases/tag/v1.6.0
## Todos
- [x] Introduce `rich-click`
- [x] Import top-level `click` in all files
- [x] Switch `click` to `rich-click` imports
- [x] [Read documentation](https://github.com/ewels/rich-click#usage) to understand the majority of aspects of this lib
- [x] Set [`SHOW_ARGUMENTS`](https://github.com/ewels/rich-click#positional-arguments)
- [x] [Group and sorting](https://github.com/ewels/rich-click#groups-and-sorting)
- [ ] Set [`MAX_WIDTH`](https://github.com/ewels/rich-click#help-width)? No, since if the width of the terminal is smaller than the set value, then it’s no longer responsive and take the value set not lower.0.12.0MoulMoulhttps://git.duniter.org/clients/python/silkaj/-/issues/390Implement generic network_tools.send_document()2021-10-03T09:05:26+02:00matograineImplement generic network_tools.send_document()Read this [comment](https://git.duniter.org/clients/python/silkaj/-/merge_requests/170#note_26663).
`network_tools.send_document()` function should take as parameters:
* BMA path where to send the document
* the signed document
It sho...Read this [comment](https://git.duniter.org/clients/python/silkaj/-/merge_requests/170#note_26663).
`network_tools.send_document()` function should take as parameters:
* BMA path where to send the document
* the signed document
It should indicate if the document was sent or not.
Should be first created, then applied to:
- [x] `tx`
- [x] `cert`
- [x] `membership`
- [ ] (`revoke`)
- [ ] (`identity`)0.10.0MoulMoulhttps://git.duniter.org/clients/python/silkaj/-/issues/344Fix import loop issue2021-05-11T16:18:21+02:00MoulFix import loop issueThe following discussion from !143 should be addressed:
- @moul started a [discussion](https://git.duniter.org/clients/python/silkaj/-/merge_requests/143#note_23695): (+1 comment)
> Is there anything that can be done for this impo...The following discussion from !143 should be addressed:
- @moul started a [discussion](https://git.duniter.org/clients/python/silkaj/-/merge_requests/143#note_23695): (+1 comment)
> Is there anything that can be done for this import loop issue?
> Did you try to understand the importation process order?
> I haven't check in details, but this is usually due to a wrong architectural design.
---
- [x] Get rid of `convert_time()`, and generalize `pendulum` usage
- [x] Remove following weird imports:
```bash
grep -rnA1 "had to import" silkaj
silkaj/money.py:27:# had to import from wot to avoid loop dependencies
silkaj/money.py-28-from silkaj.wot import check_public_key
--
silkaj/auth.py:26:# had to import pubkey_with_checksum from wot to avoid loop dependency.
silkaj/auth.py-27-from silkaj.wot import pubkey_with_checksum
--
silkaj/wot.py-29-from silkaj.tui import convert_time, pubkey_with_checksum
```0.10.0matograinematograinehttps://git.duniter.org/clients/python/silkaj/-/issues/336history: Pubkeys display issue with multisig txs2020-09-16T19:57:56+02:00matograinehistory: Pubkeys display issue with multisig txsVery specific issue, very low priority :-)
Using `history` command on the GTest account AhRMHUxMPXSeG7qXZrE6qCdjwK9p2bu5Eqei7xAWVEDK.
Sending multi-receiver tx has a nice display :
```
+---------------------+---------------------------...Very specific issue, very low priority :-)
Using `history` command on the GTest account AhRMHUxMPXSeG7qXZrE6qCdjwK9p2bu5Eqei7xAWVEDK.
Sending multi-receiver tx has a nice display :
```
+---------------------+------------------------------------------------------------------------------------------------------------------------+---------------+-----------------+------------------+
| 2020-04-24 15:12:42 | Total | -618.0 | -0.03 | G1Don |
| | hGQhtJuxNyLAoLkNk2 | -103.0 | -0.01 | |
| | 8Bg5D9TXoJSwZpJKfo | -103.0 | -0.01 | |
| | D5J3ZEKSHLrdCsskVk | -103.0 | -0.01 | |
| | 3TJVyePrqtJt5F6Z7a | -103.0 | -0.01 | |
| | APybrmPs6BrSF3wH33 | -103.0 | -0.01 | |
| | BoAUwYrNdpgC7UZvAd | -103.0 | -0.01 | |
+---------------------+------------------------------------------------------------------------------------------------------------------------+---------------+-----------------+------------------+
```
However, receiving multi-issuer tx "adds" the shortened pubkeys together, and makes it unreadable:
```
+---------------------+------------------------------------------------------------------------------------------------------------------------+---------------+-----------------+------------------+
| 2020-04-24 15:12:42 | hGQhtJuxNyLAoLkNk28Bg5D9TXoJSwZpJKfoD5J3ZEKSHLrdCsskVk3TJVyePrqtJt5F6Z7aAPybrmPs6BrSF3wH33BoAUwYrNdpgC7UZvAd | 618 | 0.035 | G1Don |
+---------------------+------------------------------------------------------------------------------------------------------------------------+---------------+-----------------+------------------+
```
multisig txs is only implemented on the alpha "Ğ1Don" generator, so this issue has very low priority for now.0.8.0MoulMoulhttps://git.duniter.org/clients/python/silkaj/-/issues/333always display pubkey with checksum2020-10-12T16:26:24+02:00matograinealways display pubkey with checksumI have seen two cases of lost transaction due to wrong manual copy of a pubkey.
I think the use of a checksum should become a norm in Duniter clients.
So, I propose that Silkaj should always display pubkeys as \<pubkey>:\<checksum>
edi...I have seen two cases of lost transaction due to wrong manual copy of a pubkey.
I think the use of a checksum should become a norm in Duniter clients.
So, I propose that Silkaj should always display pubkeys as \<pubkey>:\<checksum>
edit : format proposal for short display :
https://forum.duniter.org/t/securisation-des-virements-validation-de-la-clef-publique-de-destination/6901/29
* full : J4c8CARmP9vAFNGtHRuzx14zvxojyRWHW2darguVqjtX:KAv
* short : J4c8CA…:KAv0.8.0https://git.duniter.org/clients/python/silkaj/-/issues/309wot: Fix legend about received certifications2021-03-22T17:21:28+01:00matograinewot: Fix legend about received certificationsWhile using the `wot` command, I get this display (note the "certifications written into the blockchain" that should not be there) :
```bash
silkaj wot Maria44
Maria44 (HXSSj…) from block #300354-0000049C…
received 7 and sent 0/100 cert...While using the `wot` command, I get this display (note the "certifications written into the blockchain" that should not be there) :
```bash
silkaj wot Maria44
Maria44 (HXSSj…) from block #300354-0000049C…
received 7 and sent 0/100 certifications:
| received_expire | received | sent | sent_expire |
|-------------------+--------------------+--------+---------------|
| 2022-01-31 | Claire666 ✔ | | |
| 2022-01-31 | carinecoxi ✔ | | |
| 2022-01-31 | TristanG1 | | |
| 2022-01-31 | Michellecuyer26 | | |
| 2022-01-31 | ChristineWilloth26 | | |
| 2022-02-06 | ChristineWilloth26 | | |
| 2022-02-06 | Michellecuyer26 | | |
✔: Certifications written into the blockchain
Membership expiration due to certification expirations: 2022-01-31
member: False
outdistanced: True
```
There is the g1.duniter.org/wot/lookup/Maria44:
```
{
"partial": false,
"results": [
{
"pubkey": "HXSSjJF9BBAgpwUwoDrn6xYDkqnFMPvRpp6JCD6CZyin",
"uids": [
{
"uid": "Maria44",
"meta": {
"timestamp": "300354-0000049C71DA5D9300ACE240D60A05BAC43C51EA6CBFCEF5CCD2857BDD18E71B"
},
"revoked": false,
"revoked_on": null,
"revocation_sig": null,
"self": "41zM43fpQ2SThaFPVun3u+9xwmixXhSWvMq94H41rJhBl7f+gRWn6i0g8QTvYGRnYGFNcbr7fAwlejPXYlQrCw==",
"others": [
{
"pubkey": "761wHWRX2vZSLMkVs1bzrREjKzm9xKANBthseGRguBrZ",
"meta": {
"block_number": 305103,
"block_hash": "0000085BF649A621FBE2A74F9B15C627F29A701A23C74685BADEE8712B558547"
},
"uids": [
"Claire666"
],
"isMember": true,
"wasMember": true,
"signature": "9hdGzsOuiwB5XzvWKfb4/jsG81nwhtiBpKZBYE2zXxAN9gD474tmsOeYY5iaAw0JNLUmvGfBZ8L+dY0wVslrAQ=="
},
{
"pubkey": "3M4Ami4PZ3sui8KLXZSG8z4Gj6gV87s71vqrUyuT3GME",
"meta": {
"block_number": 305104,
"block_hash": "000000C38E17B9AC1AB2B56E248CB0FC8FDF6108AFB0DE742F00F108881DF539"
},
"uids": [
"carinecoxi"
],
"isMember": true,
"wasMember": true,
"signature": "OEPDLR/retyWs1PCS9tP4ta6jpuGsSnamdIE8w0adVgkg2wTSpTT3i3Zzds7PWZ8ZweEbxooYkM4KX0Yw3yRAg=="
},
{
"pubkey": "7Ay2uSL1zbtVBTxQMu27qMi6JWvWqFjfcCQMVKCVC7as",
"meta": {
"block_number": 305105,
"block_hash": "000006E6AD08EA6CD84519D54EEB91F03B6E984BDB678D83732EE642E1E8B1B8"
},
"uids": [
"TristanG1"
],
"isMember": true,
"wasMember": true,
"signature": "wgK3NuGt4/IXuDJNGj90O6NCVEAeR1f7rtxhzjqNDaVOLA1UZ/nOWgK09lBL27LXL/HKlLJ4SfLPyDOiKB04Cw=="
},
{
"pubkey": "C6Yz5vgyZ5KHxqRPy4zoAVqK4SNTvqq6DURTBqG2UesD",
"meta": {
"block_number": 305110,
"block_hash": "000002B372FB19662DC79EEED07EAED72EED7927B78A6374B5B101DE6ED79ECD"
},
"uids": [
"Michellecuyer26"
],
"isMember": true,
"wasMember": true,
"signature": "cj9gF1hJmmXyi+1jQv9w2j5yV9em755fIXaUIxmD5KZmyH2KZVlOa9o9T3AHAagcfkpEGaknTyVTTq5N+7NTCA=="
},
{
"pubkey": "RnhoVQ6yDpM6D4Av8edRHsDKjGbpeXnRKiCcR4Dmb7H",
"meta": {
"block_number": 305110,
"block_hash": "000002B372FB19662DC79EEED07EAED72EED7927B78A6374B5B101DE6ED79ECD"
},
"uids": [
"ChristineWilloth26"
],
"isMember": true,
"wasMember": true,
"signature": "PXttIS6xmLmcAtcsQgJqtHcYE5yMU2LnvHJ4NITJhqSX/IQeG7PgzJjSCTJkeSWS/Kw38r1UmzqiHkJrpateDg=="
},
{
"pubkey": "RnhoVQ6yDpM6D4Av8edRHsDKjGbpeXnRKiCcR4Dmb7H",
"meta": {
"block_number": 306792,
"block_hash": "0000011A6845D9914AE53287CC61D0183B968AD67620B06DC89CC19365D1C1BE"
},
"uids": [
"ChristineWilloth26"
],
"isMember": true,
"wasMember": true,
"signature": "z6KtLcViry/2EzDVHA/l7l3P+mzGCCuc55Nm61NGgmMtR0UAhTwNPRiZnkdgQZo1hS23f/C34azk7tMq1qYbDA=="
},
{
"pubkey": "C6Yz5vgyZ5KHxqRPy4zoAVqK4SNTvqq6DURTBqG2UesD",
"meta": {
"block_number": 306800,
"block_hash": "00000276F4AFAA98AFF519F60E3423A119383E8C697546DB0537321A3BFF46DE"
},
"uids": [
"Michellecuyer26"
],
"isMember": true,
"wasMember": true,
"signature": "+U5mq5J1IMcG/13Ixm9AVXv/AZd+rJy8+Vhy9dILRGLsH/QJ+ICD5/lnkrs2whB/AZr7Kkp9a4NP50QqC53lAg=="
}
]
}
],
"signed": []
}
]
}
```0.9.0matograinematograinehttps://git.duniter.org/clients/python/silkaj/-/issues/301Generalize pubkey checksum display and check and introduce `checksum` command2020-10-17T13:50:57+02:00MoulGeneralize pubkey checksum display and check and introduce `checksum` command- [x] #333: Always display a pubkey with its associated checksum
- [x] Check checksum validity when a pubkey is passed
- [x] Add new `checksum` command: you pass the pubkey and then it returns: `<pubkey>:>checksum>`
- [ ] #302: Checksum ...- [x] #333: Always display a pubkey with its associated checksum
- [x] Check checksum validity when a pubkey is passed
- [x] Add new `checksum` command: you pass the pubkey and then it returns: `<pubkey>:>checksum>`
- [ ] #302: Checksum mandate when passing a pubkey0.8.0matograinematograinehttps://git.duniter.org/clients/python/silkaj/-/issues/269Move convert_time() to tui.py2020-06-21T13:39:12+02:00MoulMove convert_time() to tui.py0.8.0MoulMoulhttps://git.duniter.org/clients/python/silkaj/-/issues/255balance: display the content in tables2020-06-24T15:51:08+02:00matograinebalance: display the content in tablesFor lightness and consistency with the transaction_confirmation() display, the balance display might looks like:
```
╒═════════════════════════════════════╤══════════════════════════════════════════════╕
│ Balance of pubkey ...For lightness and consistency with the transaction_confirmation() display, the balance display might looks like:
```
╒═════════════════════════════════════╤══════════════════════════════════════════════╕
│ Balance of pubkey │ AhRMHUxMPXSeG7qXZrE6qCdjwK9p2bu5Eqei7xAWVEDK │
├─────────────────────────────────────┼──────────────────────────────────────────────┤
│ Blockchain (unit|relative) │ 182483.75 ĞTest | 63.1869 UD ĞTest │
├─────────────────────────────────────┼──────────────────────────────────────────────┤
│ Pending transaction (unit|relative) │ -100.0 ĞTest | -0.0346 UD ĞTest │
├─────────────────────────────────────┼──────────────────────────────────────────────┤
│ Total amount (unit|relative) │ 182383.75 ĞTest | 63.1523 UD ĞTest │
├─────────────────────────────────────┼──────────────────────────────────────────────┤
│ Total relative to M/N │ 0.21 x M/N │
├─────────────────────────────────────┼──────────────────────────────────────────────┤
│ Total relative to M │ 0.04 % M │
╘═════════════════════════════════════╧══════════════════════════════════════════════╛
```
for now it is :
```
Blockchain:
-----------
Relative = 1.16 UD ĞTest
Quantitative = 3350.0 ĞTest
Pending Transaction:
--------------------
Relative = 0.03 UD ĞTest
Quantitative = 100.0 ĞTest
Total amount of: 3i7jBZz1bYVTtao3C6e7cN21JHYjHCDR9pKeReE4rdVe
----------------------------------------------------------------
Total Relative = 1.19 UD ĞTest
Total Quantitative = 3450.0 ĞTest
Total Relative to average money share = 0.0 × M/N
Total Relative to monetary mass = 0.081 % M
```
I already have the code for it, the question is only if it should be done or not.0.8.0matograinematograinehttps://git.duniter.org/clients/python/silkaj/-/issues/251Use and introduce a better date utility than datetime: pendulum2022-03-30T19:12:42+02:00MoulUse and introduce a better date utility than datetime: pendulum### Options
- [pendulum](https://pendulum.eustace.io/) − [repo](https://github.com/sdispater/pendulum) − [repology:py](https://repology.org/badge/vertical-allrepos/python:pendulum.svg) [repology](https://repology.org/badge/vertical-allre...### Options
- [pendulum](https://pendulum.eustace.io/) − [repo](https://github.com/sdispater/pendulum) − [repology:py](https://repology.org/badge/vertical-allrepos/python:pendulum.svg) [repology](https://repology.org/badge/vertical-allrepos/pendulum.svg): best time handling, by the author of Poetry, but not yet in Debian
- [Humanize](https://github.com/jmoiron/humanize) − [repology](https://repology.org/badge/vertical-allrepos/python:humanize.svg): time handling requires `datetime` usage, but not as good as `pendulum`, other humanize interesting tools, in Debian
- [Arrow](https://arrow.readthedocs.io/en/latest/) − [repo](https://github.com/crsmithdev/arrow) − [Debian package](https://packages.debian.org/search?suite=default§ion=all&arch=any&searchon=names&keywords=python3-arrow) − [repology](https://repology.org/badge/vertical-allrepos/python:arrow.svg) (didn’t found timedelta)
- [Delorean](https://delorean.readthedocs.io/en/latest/) − [repo](https://github.com/myusuf3/delorean)
- [`dateutil`](https://dateutil.readthedocs.io/en/stable/) − [repo](https://github.com/dateutil/dateutil/) − [repology](https://repology.org/badge/vertical-allrepos/python:python-dateutil.svg)
- `str(datetime.timedelta(secounds=X))` which is minimalist but works.
---
### Choice
- `pendulum`, and `humanize` seems to be the best libraries.0.8.0MoulMoulhttps://git.duniter.org/clients/python/silkaj/-/issues/236tx: Improve the confirmation display2020-06-24T16:10:34+02:00matograinetx: Improve the confirmation displayI'd like to change the confirmation display from :
```
╒════════════════════════════╤══════════════════════════════════════════════╕
│ pubkey’s balance before tx │ 2278.02 ĞTest │
├────────────────────────...I'd like to change the confirmation display from :
```
╒════════════════════════════╤══════════════════════════════════════════════╕
│ pubkey’s balance before tx │ 2278.02 ĞTest │
├────────────────────────────┼──────────────────────────────────────────────┤
│ total amount (unit) │ 15.7 ĞTest │
├────────────────────────────┼──────────────────────────────────────────────┤
│ total amount (relative) │ 0.018 UD ĞTest │
├────────────────────────────┼──────────────────────────────────────────────┤
│ pubkey’s balance after tx │ 2262.32 ĞTest │
├────────────────────────────┼──────────────────────────────────────────────┤
│ from (pubkey) │ 3i7jBZz1bYVTtao3C6e7cN21JHYjHCDR9pKeReE4rdVe │
├────────────────────────────┼──────────────────────────────────────────────┤
│ to (pubkey) │ d88fPFbDdJXJANHH7hedFMaRyGcnVZj9c5cDaE76LRN │
├────────────────────────────┼──────────────────────────────────────────────┤
│ to (id) │ matograine-G1Test │
├────────────────────────────┼──────────────────────────────────────────────┤
│ amount (unit) │ 8.7 ĞTest │
├────────────────────────────┼──────────────────────────────────────────────┤
│ amount (relative) │ 0.01 UD ĞTest │
├────────────────────────────┼──────────────────────────────────────────────┤
│ to (pubkey) │ 5tKxzdi43AKPnYb4Bzjs1LZecceouvJ3ZaCrFTde2chf │
├────────────────────────────┼──────────────────────────────────────────────┤
│ amount (unit) │ 2.6 ĞTest │
├────────────────────────────┼──────────────────────────────────────────────┤
│ amount (relative) │ 0.003 UD ĞTest │
├────────────────────────────┼──────────────────────────────────────────────┤
│ to (pubkey) │ BpERUYSfdzFPGWuE1y3VoHxamnTnK4Q6dZTNbaSkL1j3 │
├────────────────────────────┼──────────────────────────────────────────────┤
│ amount (unit) │ 4.4 ĞTest │
├────────────────────────────┼──────────────────────────────────────────────┤
│ amount (relative) │ 0.005 UD ĞTest │
├────────────────────────────┼──────────────────────────────────────────────┤
│ comment │ BABA YAGA │
╘════════════════════════════╧══════════════════════════════════════════════╛
```
to :
```
╒════════════════════════════════╤══════════════════════════════════════════════╕
│ pubkey’s balance before tx │ 2272.32 ĞTest │
├────────────────────────────────┼──────────────────────────────────────────────┤
│ total amount (unit | relative) │ 15.7 ĞTest || 0.018 UD │
├────────────────────────────────┼──────────────────────────────────────────────┤
│ pubkey’s balance after tx │ 2256.62 ĞTest │
├────────────────────────────────┼──────────────────────────────────────────────┤
│ from (pubkey) │ 3i7jBZz1bYVTtao3C6e7cN21JHYjHCDR9pKeReE4rdVe │
├────────────────────────────────┼──────────────────────────────────────────────┤
│ to (pubkey) │ d88fPFbDdJXJANHH7hedFMaRyGcnVZj9c5cDaE76LRN │
├────────────────────────────────┼──────────────────────────────────────────────┤
│ to (id) │ matograine-G1Test │
├────────────────────────────────┼──────────────────────────────────────────────┤
│ amount (unit | relative) │ 8.7 ĞTest || 0.01 UD │
├────────────────────────────────┼──────────────────────────────────────────────┤
│ to (pubkey) │ 5tKxzdi43AKPnYb4Bzjs1LZecceouvJ3ZaCrFTde2chf │
├────────────────────────────────┼──────────────────────────────────────────────┤
│ amount (unit | relative) │ 2.6 ĞTest || 0.003 UD │
├────────────────────────────────┼──────────────────────────────────────────────┤
│ to (pubkey) │ BpERUYSfdzFPGWuE1y3VoHxamnTnK4Q6dZTNbaSkL1j3 │
├────────────────────────────────┼──────────────────────────────────────────────┤
│ amount (unit | relative) │ 4.4 ĞTest || 0.005 UD │
├────────────────────────────────┼──────────────────────────────────────────────┤
│ comment │ BABA YAGA │
╘════════════════════════════════╧══════════════════════════════════════════════╛
```0.8.0matograinematograinehttps://git.duniter.org/clients/python/silkaj/-/issues/203Migrate from tabulate to texttable2022-06-28T21:19:50+02:00MoulMigrate from tabulate to texttable### `texttable`
- [texttable](https://github.com/foutaise/texttable)
- [x] Remove `tabulate` from [readme](https://git.duniter.org/clients/python/silkaj#dependencies)
- [x] Remove no longer necessary `--install-types` option to install `...### `texttable`
- [texttable](https://github.com/foutaise/texttable)
- [x] Remove `tabulate` from [readme](https://git.duniter.org/clients/python/silkaj#dependencies)
- [x] Remove no longer necessary `--install-types` option to install `types-tabulate` subs module for `mypy` pre-commit hook
Better tool? (was easier to develop `history`), available in most distributions: Debian, Fedora, Arch, FreeBSD…
---
### Differences
- `tabulate` uses a list of lists
- `texttable` uses also a list of lists
To be checked, were there an other difference?
<!--
---
### Rewrite `history` with `tabulate`
- [ ] (Try to) rewrite `history` command with `tabulate` command.
-->0.11.0MoulMoulhttps://git.duniter.org/clients/python/silkaj/-/issues/155Make `clear` calls works on Windows2019-03-26T23:43:36+01:00MoulMake `clear` calls works on Windows```bash
C:\WPy-3670\python-3.6.7.amd64\Scripts>silkaj info
'clear' n'est pas reconnu en tant que commande interne
ou externe, un programme exécutable ou un fichier de commandes.
``````bash
C:\WPy-3670\python-3.6.7.amd64\Scripts>silkaj info
'clear' n'est pas reconnu en tant que commande interne
ou externe, un programme exécutable ou un fichier de commandes.
```0.6.1MoulMoulhttps://git.duniter.org/clients/python/silkaj/-/issues/154net: can’t get screen size on Windows2019-03-26T23:43:06+01:00Bernardnet: can’t get screen size on WindowsNew error found:
```bash
C:\>python "C:\WPy-3670\python-3.6.7.amd64\Scripts\silkaj" network
'stty' n'est pas reconnu en tant que commande interne
ou externe, un programme exécutable ou un fichier de commandes.
Traceback (most recent ca...New error found:
```bash
C:\>python "C:\WPy-3670\python-3.6.7.amd64\Scripts\silkaj" network
'stty' n'est pas reconnu en tant que commande interne
ou externe, un programme exécutable ou un fichier de commandes.
Traceback (most recent call last):
File "C:\WPy-3670\python-3.6.7.amd64\Scripts\silkaj", line 13, in <module>
manage_cmd()
File "C:\WPy-3670\python-3.6.7.amd64\lib\site-packages\silkaj\cli_tools.py", line 148, in manage_cmd
network_info(cli_args.contains_switches("discover"))
File "C:\WPy-3670\python-3.6.7.amd64\lib\site-packages\silkaj\commands.py", line 148, in network_info
rows, columns = popen("stty size", "r").read().split()
ValueError: not enough values to unpack (expected 2, got 0)
```0.7.0MoulMoulhttps://git.duniter.org/clients/python/silkaj/-/issues/54Use ANSI colors2023-06-02T11:43:27+02:00MoulUse ANSI colors- on network view
- `history`
- …- on network view
- `history`
- …Backloghttps://git.duniter.org/clients/python/silkaj/-/issues/8Clear screen just before printing?2019-08-01T14:06:02+02:00MoulClear screen just before printing?It's annoying to wait for next result as `network` and `issuers n` sub-commands could take a while.
I don't really want to do it because:
- `os.system` is not recommended to use as it call OS commands.
- `os.system("clear")` need to be p...It's annoying to wait for next result as `network` and `issuers n` sub-commands could take a while.
I don't really want to do it because:
- `os.system` is not recommended to use as it call OS commands.
- `os.system("clear")` need to be put before every printing sub-commands against one currently.
- `import os` need to be put on `command.py` and more file if this file will be split.
0.1.0MoulMoulhttps://git.duniter.org/clients/python/silkaj/-/issues/247Backchange not counted in balance after tx2022-06-27T18:38:19+02:00matograineBackchange not counted in balance after txWhile sending a confirmation with a backchange_pubkey different from the issuer_pubkey, the transaction_confirmation display does not substract backchange from the pubkey's balance after tx.
example : this confirmation
```
bin/silkaj -...While sending a confirmation with a backchange_pubkey different from the issuer_pubkey, the transaction_confirmation display does not substract backchange from the pubkey's balance after tx.
example : this confirmation
```
bin/silkaj -p ts.gt.librelois.fr tx --output 5B8iMAzq1dNmFe3ZxFTBQkqhq4fsztg1gZvxHXCk1XYH --amount 1 --outputBackChange d88fPFbDdJXJANHH7hedFMaRyGcnVZj9c5cDaE76LRN --comment test
Please enter your Scrypt Salt (Secret identifier):
Please enter your Scrypt password (masked):
╒════════════════════════════════╤══════════════════════════════════════════════╕
│ pubkey’s balance before tx │ 1870.02 ĞTest │
├────────────────────────────────┼──────────────────────────────────────────────┤
│ total amount (unit | relative) │ 1.0 ĞTest || 0.0006 UD │
├────────────────────────────────┼──────────────────────────────────────────────┤
│ pubkey’s balance after tx │ 1869.02 ĞTest │
├────────────────────────────────┼──────────────────────────────────────────────┤
│ from (pubkey) │ 3i7jBZz1bYVTtao3C6e7cN21JHYjHCDR9pKeReE4rdVe │
├────────────────────────────────┼──────────────────────────────────────────────┤
│ to (pubkey) │ 5B8iMAzq1dNmFe3ZxFTBQkqhq4fsztg1gZvxHXCk1XYH │
├────────────────────────────────┼──────────────────────────────────────────────┤
│ to (id) │ moul-test │
├────────────────────────────────┼──────────────────────────────────────────────┤
│ amount (unit | relative) │ 1.0 ĞTest || 0.0006 UD │
├────────────────────────────────┼──────────────────────────────────────────────┤
│ Backchange (pubkey) │ d88fPFbDdJXJANHH7hedFMaRyGcnVZj9c5cDaE76LRN │
├────────────────────────────────┼──────────────────────────────────────────────┤
│ Backchange (id) │ matograine-G1Test │
├────────────────────────────────┼──────────────────────────────────────────────┤
│ comment │ test │
╘════════════════════════════════╧══════════════════════════════════════════════╛
Do you confirm sending this transaction? [yes/no]: yes
Generate Transaction:
- From: 3i7jBZz1bYVTtao3C6e7cN21JHYjHCDR9pKeReE4rdVe
- To: 5B8iMAzq1dNmFe3ZxFTBQkqhq4fsztg1gZvxHXCk1XYH
- Amount: 1.0
Transaction successfully sent.
```
is for tx in block 436258 (or a bit after) where tx = 1 and Backchange = 771.
We should have :
```
├────────────────────────────────┼──────────────────────────────────────────────┤
│ pubkey’s balance after tx │ 1098.02 ĞTest │
├────────────────────────────────┼──────────────────────────────────────────────┤
```