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
Sergio Chouhy
3ed6288a65
Merge pull request #431 from logos-blockchain/schouhy/fix-slow-tests-because-of-program-id-computation
...
Avoid computing program ids to speed up tests
2026-04-07 21:10:02 -03:00
Daniil Polyakov
35d8df0d03
Merge pull request #438 from logos-blockchain/arjentix/fix-docker-builds-on-tags2
...
fix: use just sha without ref_name
v0.2.0-rc1
2026-04-08 00:07:28 +03:00
Daniil Polyakov
e4200e4b56
fix: use just sha without ref_name
2026-04-07 23:59:36 +03:00
Daniil Polyakov
7c1e5503c1
Merge pull request #437 from logos-blockchain/arjentix/fix-docker-builds-on-tags
...
fix: fix docker builds on tags
2026-04-07 23:48:12 +03:00
Sergio Chouhy
99bedb970d
Merge branch 'main' into schouhy/fix-slow-tests-because-of-program-id-computation
2026-04-07 17:39:01 -03:00
Daniil Polyakov
ac427bd517
fix: fix docker builds on tags
2026-04-07 23:34:51 +03:00
Sergio Chouhy
ccd8869205
add program id test
2026-04-07 17:33:35 -03:00
Daniil Polyakov
8700e404da
Merge pull request #428 from logos-blockchain/moudy/feat-caller-program-id-and-flash-swap
...
Add caller_program_id to ProgramInput and flash swap demo
2026-04-07 22:48:56 +03:00
Daniil Polyakov
951b06c0fd
Merge pull request #405 from logos-blockchain/Pravdyvy/db-structural-updates
...
DB structural updates
2026-04-07 22:32:58 +03:00
Moudy
7e1268f53f
fix: rebuild artifacts
2026-04-07 20:57:38 +02:00
Moudy
a87e8d93dc
fix: cargo fmt
2026-04-07 20:16:42 +02:00
Moudy
27fbd10d92
fix: post-merge test fixes for caller_program_id and genesis_timestamp
2026-04-07 20:15:17 +02:00
Moudy
56ee93b5b7
merge main into feat-caller-program-id-and-flash-swap
2026-04-07 19:44:55 +02:00
Moudy
b22a989fbc
merge main into feat-caller-program-id-and-flash-swap
2026-04-07 19:27:27 +02:00
Moudy
7d465dded7
fix: verify caller_program_id in program output
2026-04-07 19:03:06 +02:00
Moudy
495680e2ea
update test guest programs with caller_program_id in ProgramOutput
2026-04-07 17:54:59 +02:00
Sergio Chouhy
98e98c6214
Merge pull request #403 from logos-blockchain/schouhy/add-block-context-system-accounts
...
Add block context system accounts
2026-04-07 09:09:14 -03:00
Sergio Chouhy
1ba80f7631
count mandatory clock tx in max_block_size
2026-04-06 21:34:03 -03:00
Sergio Chouhy
d9ddd5e3f6
fix docs. refactor sequencer logic to check size before executing
2026-04-06 21:07:55 -03:00
Sergio Chouhy
3c014c721e
avoid computing program ids to speed up tests
2026-04-06 15:03:00 -03:00
Sergio Chouhy
ed1926b38a
use Timestamp instead of u64
2026-04-06 13:21:39 -03:00
Sergio Chouhy
015999b3a5
add clock usage example programs
2026-04-04 00:23:43 -03:00
Moudy
5273c9e076
fix: rebuild artifacts
2026-04-04 00:44:50 +02:00
Moudy
cc8e82278b
fix: add backticks in callback doc comment
2026-04-04 00:20:42 +02:00
Moudy
324750e618
fix: remove unfulfilled large_enum_variant expect, add backticks in docs, rebuild artifacts
2026-04-04 00:04:40 +02:00
Sergio Chouhy
34de497d4d
add test
2026-04-03 18:44:28 -03:00
Moudy
dca3d1a18d
fix: rebuild artifacts
2026-04-03 23:36:36 +02:00
Moudy
032f6b8906
fix: use AccountId::new instead of From<ProgramId>, apply formatting
2026-04-03 23:24:13 +02:00
Sergio Chouhy
4dd2f98fd4
Merge branch 'schouhy/add-block-context-system-accounts' of github.com:logos-blockchain/lssa into schouhy/add-block-context-system-accounts
2026-04-03 18:21:17 -03:00
Sergio Chouhy
deae71b09f
handle comments
2026-04-03 18:13:24 -03:00
moudyellaz
1d0c93e9cf
test: verify malicious self_program_id is rejected in public execution
2026-04-03 22:13:58 +02:00
Moudy
3cfc74695b
fix: compute intermediate states inside flash swap programs
2026-04-03 22:05:49 +02:00
Moudy
c85f19fe85
fix: clippy lints in flash swap guest programs
2026-04-03 20:16:59 +02:00
Moudy
5b42d8ed9c
fix: move flash swap types before all functions in test module
2026-04-03 18:14:49 +02:00
Sergio Chouhy
2aa585b847
Update programs/clock/core/src/lib.rs
...
Co-authored-by: Daniil Polyakov <arjentix@gmail.com>
2026-04-03 11:54:19 -03:00
Moudy
324593c4c7
fix: format expect attribute
2026-04-03 16:08:08 +02:00
Moudy
eefaf64b6d
fix: move flash swap types before tests, use expect instead of allow
2026-04-03 16:04:49 +02:00
Moudy
9fb55a75d6
fix: ordering of items and allow large_enum_variant in test module
2026-04-03 15:40:55 +02:00
Moudy
bc0583368d
fix: set is_authorized on PDA accounts in flash swap chained calls
2026-04-03 15:18:23 +02:00
Moudy
02e336b240
fix: add missing caller_program_id argument in test
2026-04-03 11:47:34 +02:00
Sergio Chouhy
55c75c55ae
fix clippy
2026-04-02 21:44:33 -03:00
Sergio Chouhy
7c1f8f4d68
clippy
2026-04-02 21:23:30 -03:00
Moudy
74e16db68f
fix: apply formatting and rebuild artifacts
2026-04-03 01:17:42 +02:00
Moudy
88e3b368c3
fix: rebuild artifacts
2026-04-03 00:58:11 +02:00
moudyellaz
af81719414
feat: add flash swap integration tests
2026-04-03 00:58:11 +02:00
moudyellaz
599724b72f
feat: register flash_swap programs as test programs
2026-04-03 00:58:11 +02:00
moudyellaz
38ea2a01fa
feat: add flash_swap_initiator and flash_swap_callback guest programs
2026-04-03 00:58:11 +02:00
moudyellaz
087baebcca
feat: add caller_program_id to ProgramInput
2026-04-03 00:58:11 +02:00
Moudy
d105a51c04
fix: rebuild artifacts
2026-04-03 00:58:11 +02:00