67 Commits

Author SHA1 Message Date
Sergio Chouhy
985f610cea wip 2026-04-15 15:42:04 -03:00
fryorcraken
0dc8409efc
feat: add --account-label as alternative to --account-id across all wallet subcommands
Allow users to identify accounts by their human-readable label instead of the
full `Privacy/base58` account ID. This makes the CLI much more ergonomic for
users who have labeled their accounts.

- [x] Add `resolve_account_label()` in `helperfunctions.rs` that looks up a label,
  determines account privacy (public/private), and returns the full `Privacy/id` string
- [x] Add `--account-label` (or `--from-label`, `--to-label`, `--definition-label`,
  `--holder-label`, `--user-holding-*-label`) as mutually exclusive alternative to
  every `--account-id`-style flag across all subcommands:
  - `account get`, `account label`
  - `auth-transfer init`, `auth-transfer send`
  - `token new`, `token send`, `token burn`, `token mint`
  - `pinata claim`
  - `amm new`, `amm swap`, `amm add-liquidity`, `amm remove-liquidity`
- [x] Update zsh completion script with `_wallet_account_labels()` helper
- [x] Add bash completion script with `_wallet_get_account_labels()` helper

1. Start a local sequencer
2. Create accounts and label them: `wallet account new public --label alice`
3. Use labels in commands: `wallet account get --account-label alice`
4. Verify mutual exclusivity: `wallet account get --account-id <id> --account-label alice` should error
5. Test shell completions: `wallet account get --account-label <TAB>` should list labels

None

None

- [x] Complete PR description
- [x] Implement the core functionality
- [ ] Add/update tests
- [x] Add/update documentation and inline comments

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-08 14:53:27 +10:00
Pravdyvy
dc3650edd7 Merge branch 'main' into Pravdyvy/hardcoded-initial-state 2026-03-19 19:02:19 +02:00
Pravdyvy
afa0a63c95 fix: suggestions fix 2 2026-03-19 18:01:15 +02:00
jonesmarvin8
5d9980cf63 lint fixes 2026-03-18 13:10:36 -04:00
Pravdyvy
a0ab6ad92d fix: lint fix 2026-03-18 18:32:05 +02:00
Pravdyvy
5ab7d40727 Merge branch 'main' into Pravdyvy/hardcoded-initial-state 2026-03-18 18:18:52 +02:00
jonesmarvin8
0bcb626adc lint fixes 2026-03-18 10:28:52 -04:00
jonesmarvin8
ba8fdf4f29 fix conflicts from merging main 2026-03-17 19:16:09 -04:00
Daniil Polyakov
252848a145 feat: update rust to 1.94.0 2026-03-17 21:25:30 +03:00
Daniil Polyakov
aa462b66eb feat: add nursery clippy lints 2026-03-17 21:25:30 +03:00
Daniil Polyakov
e3b93b6e9a feat: add restriction clippy lints 2026-03-17 21:25:30 +03:00
Daniil Polyakov
efe8393ba0 feat: add pedantic clippy lints 2026-03-17 21:25:30 +03:00
jonesmarvin8
b44e066e84 fix constructor 2026-03-17 09:29:00 -04:00
jonesmarvin8
dd64f0b1f8 Merge branch 'main' into marvin/nonce 2026-03-16 11:22:24 -04:00
Pravdyvy
6e756ac371 Merge branch 'main' into Pravdyvy/hardcoded-initial-state 2026-03-16 15:20:48 +02:00
Pravdyvy
02953999aa feat: general initial state 2026-03-13 18:23:39 +02:00
fryorcraken
e20860ea97
fix: use base58 encoding for program_owner instead of hex
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 14:04:17 +11:00
fryorcraken
339c0dc048
Prefer hex string to vector of number for stdout 2026-03-13 13:46:19 +11:00
jonesmarvin8
889326d2ad clean up and fixed tests 2026-02-16 19:53:32 -05:00
jonesmarvin8
77f2fb6994 update nonce mechanism 2026-02-12 19:22:03 -05:00
Daniil Polyakov
975cfb9ec6 feat: fully integrate Sequencer, Indexer and Explorer with Bedrock 2026-02-12 16:31:13 +03:00
fryorcraken
636a3daedc
add wallet account label feature
- can add a label to own account via `wallet` CLI
- labels are displayed with `wallet account get` command
- labels are displayed with `wallet account list` command
- labels are persisted.
2026-01-28 15:19:09 +11:00
Daniil Polyakov
7296088005 feat: introduce parallel integration tests, wallet without global vars and etc 2025-12-31 04:30:22 +03:00
Daniil Polyakov
46ac451284 feat: add basic auth to wallet 2025-12-09 18:20:50 +03:00
Daniil Polyakov
91c898f19c refactor: split block polling 2025-12-03 18:30:22 +03:00
Daniil Polyakov
aee6f45a8b refactor: move some stuff to a more suitable place 2025-12-01 17:08:07 +03:00
Pravdyvy
6c409b6fb1 Merge branch 'main' into Pravdyvy/deterministic-key-derivation 2025-11-27 13:46:35 +02:00
Pravdyvy
fc531021fb fix: comments fix 1 2025-11-26 07:32:35 +02:00
Daniil Polyakov
a714e3c563 feat: enhance rustfmt config 2025-11-26 00:33:09 +03:00
Daniil Polyakov
ea9c659fb1 refactor: rename Address to AccountId 2025-11-25 21:38:07 +03:00
Pravdyvy
ec149d3227 feat: deterministic keys 2025-11-11 12:15:20 +02:00
Pravdyvy
20c276e63e fix: continuation of integration 2025-11-10 16:29:33 +02:00
Oleksandr Pravdyvyi
228f7591d5
fix: lint and fmt 2025-10-30 17:23:50 +02:00
Oleksandr Pravdyvyi
2c21abc2d9
fix: default config paths agnostic 2025-10-30 15:33:58 +02:00
Oleksandr Pravdyvyi
813868f16f
feat: linux default config paths 2025-10-29 13:23:07 +02:00
Oleksandr Pravdyvyi
5840f9b779
fix: cli full refactor 2025-10-28 16:02:30 +02:00
Oleksandr Pravdyvyi
27bb5bbb0f
temp: temp changes 2025-10-28 14:40:16 +02:00
Oleksandr Pravdyvyi
66ee0c5449
fix: account subcommand updated 2025-10-24 15:26:30 +03:00
Oleksandr Pravdyvyi
9614c3143b
feat: integration test and async fs 2025-10-16 15:58:35 +03:00
Sergio Chouhy
f8153c6fb9 fmt, clippy 2025-10-03 17:07:15 -03:00
Sergio Chouhy
8f874a6b4f refactor 2025-10-03 16:50:23 -03:00
Sergio Chouhy
46f899ac95 fmt 2025-10-03 08:11:55 -03:00
Sergio Chouhy
9141fbf06c use random nonces for private accounts in wallet 2025-10-03 01:30:40 -03:00
Oleksandr Pravdyvyi
9336a6c130
Merge branch 'Pravdyvy/key-protocol-update-private' into Pravdyvy/wallet-privacy-preserving-transactions 2025-09-17 09:04:43 +03:00
Oleksandr Pravdyvyi
931b8c7176
Merge branch 'Pravdyvy/sequencer-update' into Pravdyvy/key-protocol-update-private 2025-09-17 08:45:21 +03:00
Sergio Chouhy
d796d7baf1 add get-account wallet command. Small refactor 2025-09-15 18:13:08 -03:00
Oleksandr Pravdyvyi
854d96af72
fix; privacy preserving tx gen 1 2025-09-11 18:32:46 +03:00
Oleksandr Pravdyvyi
4837413989
fix: merge fix 2025-09-08 15:03:02 +03:00
Oleksandr Pravdyvyi
7052bccfbc
fix: try edition 2024 2025-09-04 14:38:41 +03:00