Skip to content

Conversation

@afck
Copy link
Contributor

@afck afck commented Nov 7, 2025

Backport of #4642 and #4927. (Without epoch: not in wallet on testnet_conway.)

Motivation

This is the result after a few discussions about what wallet show should look like.

Proposal

Add separators between the chains. Format everything in a "Key: Value" style.

Test Plan

Sample output:

2025-11-06T16:46:41.842672Z  INFO linera: Reading wallet from file: /tmp/.tmp6RClv1/wallet_0.json
2025-11-06T16:46:41.843635Z  INFO linera_service::wallet: Found 4 chains
-----------------------
Chain ID:             7471c597d573ef4d53934b9fcc6a05b9d46cb3718244d01ff817234ac2ae8c28
Tags:                 DEFAULT, ADMIN
Parent chain:         -
Default owner:        0x227d131b5f2e3987daf184f2d22af7e7e0f174d2baca1228a45f12be11e80a5c
Timestamp:            2025-11-06 16:46:37.399799
Blocks:               1
Latest block hash:    718814dae46334008efb769d5c24521c879cd756bb600c2bb56b09c1609d4c52
-----------------------
Chain ID:             5d719d9ace5441bdd4e4f7469fb3335445813935fdc2acc0dff60162642f2787
Parent chain:         -
Default owner:        0x929139f3c9b52dac48795038b7427aa5d07333718f74de7ea21c40fc28c11ae6
Timestamp:            2025-11-06 16:46:22.179469
Blocks:               0
-----------------------

Release Plan

  • These changes should be released in a new SDK.

Links

afck added 2 commits November 7, 2025 14:14
It's hard to tell from `wallet show` which chain is the admin chain. The
table layout uses a lot of horizontal space.

Improve the `wallet show` output:

```
WALLET (4 chains in total)

Child Chain [DEFAULT]
  Chain ID:     a08244c18c828b7b89289f7164428e0b861fb462042416f6c2cfb1f4b53c8621
  Owner:        0x86843df3f162b0a820724d37612ecde13c9a022d0cc96b765be127d34cec2d19
  Timestamp:    2025-09-24 12:54:53.051239
  Blocks:       0
  Epoch:        0

Admin Chain
  Chain ID:     82fc0ff002b793c66db0c57e657c05a30a98cd49d335f8125d0c3bdc4997ffa1
  Owner:        No owner key
  Timestamp:    2025-09-24 12:53:29.841442
  Blocks:       0
  Epoch:        0

Root Chain 1
  Chain ID:     0b67f224ab915776d170eeb7d497e8d1ed831126f22eaf9138de48e3c47c8639
  Owner:        No owner key
  Timestamp:    2025-09-24 12:55:04.030389
  Blocks:       2
  Epoch:        0
  Latest Block: f67e7ee881b6f9235f1a4cc6f2515d9ce4afccb1bd799f8780987901a581ac03

Child Chain
  Chain ID:     87c4ef0bfc8d6581529dc32c98d05ba99be9e9202f8f788f9c0c2a872c02fdf6
  Owner:        0x9010b58faf7b4908de3069aa7aa042ba4f2eb0de13724059960aaa5be33aa6a6
  Timestamp:    2025-09-24 12:55:04.030389
  Blocks:       0
  Epoch:        0
```

* Discuss the new layout!
* CI
* I ran the README tests locally.

- These changes _could_ be backported to `testnet_conway`, and
- released in a new SDK.

- Original attempt:
linera-io#4541
- [reviewer
checklist](https://github.com/linera-io/linera-protocol/blob/main/CONTRIBUTING.md#reviewer-checklist)
This is the result after a few discussions about what `wallet show`
should look like.

Add separators between the chains. Format everything in a "Key: Value"
style.

Sample output:

```
2025-11-06T16:46:41.842672Z  INFO linera: Reading wallet from file: /tmp/.tmp6RClv1/wallet_0.json
2025-11-06T16:46:41.843635Z  INFO linera_service::wallet: Found 4 chains
-----------------------
  Chain ID:             7471c597d573ef4d53934b9fcc6a05b9d46cb3718244d01ff817234ac2ae8c28
  Tags:                 DEFAULT, ADMIN
  Parent chain:         -
  Default owner:        0x227d131b5f2e3987daf184f2d22af7e7e0f174d2baca1228a45f12be11e80a5c
  Timestamp:            2025-11-06 16:46:37.399799
  Blocks:               1
  Epoch:                0
  Latest block hash:    718814dae46334008efb769d5c24521c879cd756bb600c2bb56b09c1609d4c52
-----------------------
  Chain ID:             5d719d9ace5441bdd4e4f7469fb3335445813935fdc2acc0dff60162642f2787
  Parent chain:         -
  Default owner:        0x929139f3c9b52dac48795038b7427aa5d07333718f74de7ea21c40fc28c11ae6
  Timestamp:            2025-11-06 16:46:22.179469
  Blocks:               0
  Epoch:                0
-----------------------
```

- These changes should be backported to `testnet_conway`, then
    - be released in a new SDK.

- Previous `wallet show` change:
linera-io#4642
- [reviewer
checklist](https://github.com/linera-io/linera-protocol/blob/main/CONTRIBUTING.md#reviewer-checklist)
@afck afck requested review from bart-linera, deuszx and ma2bd November 7, 2025 13:36
@ma2bd ma2bd merged commit 9d13e2a into linera-io:testnet_conway Nov 7, 2025
30 checks passed
@afck afck deleted the conway-wallet-show branch November 7, 2025 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants