Sergio Chouhy
6f380f1e74
fmt
2026-03-28 03:54:57 -03:00
Sergio Chouhy
936b8aaf1e
remove blockid from common
2026-03-28 03:52:14 -03:00
Sergio Chouhy
3fdf93df4f
rename timestamp_ms to timestamp
2026-03-28 03:47:25 -03:00
Sergio Chouhy
3b7fe58f6f
remove common TimeStamp
2026-03-28 03:47:07 -03:00
Sergio Chouhy
b92dcbb711
add type aliases
2026-03-28 03:13:46 -03:00
Sergio Chouhy
fba95ca2a8
add tests for timestamp validity windows
2026-03-28 02:30:15 -03:00
Sergio Chouhy
caf74b8346
refactor validity window with generic
2026-03-28 01:13:48 -03:00
Sergio Chouhy
4746548994
Merge branch 'main' into feature/validity-window-timestamps
2026-03-27 23:26:00 -03:00
Sergio Chouhy
287b196569
remove redundant docstring
2026-03-26 18:16:18 -03:00
Sergio Chouhy
e618e08bdc
use validity window as intstruction type in test programs
2026-03-26 18:10:31 -03:00
Sergio Chouhy
25a86d4bac
move standard derives to beginning
2026-03-26 15:27:37 -03:00
Sergio Chouhy
acf609ecc8
Merge branch 'main' into schouhy/add-block-context
2026-03-26 13:24:46 -03:00
r4bbit
0ed91e869e
feat(programs): add Associated Token Account program with wallet CLI and tutorial
...
Introduce the ATA program, which derives deterministic per-token holding
accounts from (owner, token_definition) via SHA256, eliminating the need
to manually create and track holding account IDs.
Program (programs/associated_token_account/):
- Create, Transfer, and Burn instructions with PDA-based authorization
- Deterministic address derivation: SHA256(owner || definition) → seed → AccountId
- Idempotent Create (no-op if ATA already exists)
Wallet CLI (`wallet ata`):
- `address` — derive ATA address locally (no network call)
- `create` — initialize an ATA on-chain
- `send` — transfer tokens from owner's ATA to a recipient
- `burn` — burn tokens from owner's ATA
- `list` — query ATAs across multiple token definitions
Usage:
wallet deploy-program artifacts/program_methods/associated_token_account.bin
wallet ata address --owner <ID> --token-definition <DEF_ID>
wallet ata create --owner Public/<ID> --token-definition <DEF_ID>
wallet ata send --from Public/<ID> --token-definition <DEF_ID> --to <RECIPIENT> --amount 100
wallet ata burn --holder Public/<ID> --token-definition <DEF_ID> --amount 50
wallet ata list --owner <ID> --token-definition <DEF1> <DEF2>
Includes tutorial: docs/LEZ testnet v0.1 tutorials/associated-token-accounts.md
2026-03-26 13:19:29 +01:00
Sergio Chouhy
d7b0c42255
clippy
2026-03-25 20:26:04 -03:00
Sergio Chouhy
70ccb1befa
add constructors from ranges
2026-03-25 17:42:17 -03:00
Sergio Chouhy
953a1dacd3
clippy
2026-03-25 17:35:10 -03:00
Sergio Chouhy
79d70b3a66
add test for empty intersection in circuit
2026-03-25 17:33:27 -03:00
Sergio Chouhy
abc30c0ce0
remove old program output constructors
2026-03-25 16:56:04 -03:00
Sergio Chouhy
3356aef291
handle comments
2026-03-25 16:03:39 -03:00
Sergio Chouhy
4d5d767249
add tests. minor refactor
2026-03-25 14:55:23 -03:00
Moudy
47d9257d6f
fix: add backticks to doc comment for clippy doc_markdown
2026-03-24 16:35:41 +01:00
moudyellaz
3ba2441b6e
style: apply nightly cargo fmt
2026-03-24 12:44:19 +01:00
moudyellaz
a838a45a2c
style: apply cargo fmt
2026-03-24 11:49:15 +01:00
moudyellaz
0043f29dc2
feat: extend ValidityWindow with Unix timestamp bounds
2026-03-24 11:28:44 +01:00
Sergio Chouhy
66e9881f38
Merge branch 'main' into schouhy/add-block-context
2026-03-20 14:14:11 -03:00
Sergio Chouhy
3257440448
enforce valid window construction
2026-03-20 13:49:17 -03:00
jonesmarvin8
6f77c75b9c
Issue 257 - update ds and add ds to commitment ( #397 )
...
* initialize branch
* minor errors
* update artifacts and lint
* lint fix
2026-03-20 10:39:04 -04:00
Sergio Chouhy
607a34058d
Merge branch 'main' into schouhy/add-block-context
2026-03-20 09:52:16 -03:00
Sergio Chouhy
d9a1e56983
add docs
2026-03-19 19:41:02 -03:00
Sergio Chouhy
aeddb56978
fmt
2026-03-19 18:55:19 -03:00
Sergio Chouhy
0d46f0798a
clippy
2026-03-19 18:55:02 -03:00
Daniil Polyakov
05c2c3a56d
fix: encode transactions with borsh in sequencer rpc
2026-03-20 00:48:04 +03:00
Daniil Polyakov
be94e133fa
feat: refactor sequencer RPC server-side
2026-03-20 00:41:05 +03:00
Sergio Chouhy
a069004451
add validity window checks on privacy preserving transactions
2026-03-19 18:32:54 -03:00
Sergio Chouhy
7bbd2dd5d7
add public validity window checks
2026-03-19 15:03:45 -03:00
Sergio Chouhy
895dd942cf
add validity range to program output
2026-03-19 12:10:02 -03:00
Daniil Polyakov
c40c62a484
fix: satisfy clippy
2026-03-19 18:03:23 +03:00
jonesmarvin8
2cecf71c93
additional lint fixes
2026-03-18 14:06:56 -04:00
jonesmarvin8
b81b725bd1
fmt
2026-03-18 13:47:21 -04:00
jonesmarvin8
5d9980cf63
lint fixes
2026-03-18 13:10:36 -04:00
jonesmarvin8
0bcb626adc
lint fixes
2026-03-18 10:28:52 -04:00
jonesmarvin8
a83725512d
Merge branch 'main' into marvin/nonce
2026-03-18 07:59:55 -04:00
jonesmarvin8
ba8fdf4f29
fix conflicts from merging main
2026-03-17 19:16:09 -04:00
jonesmarvin8
a12d1e5912
fixed merge issue with main
2026-03-17 18:01:00 -04:00
jonesmarvin8
8dd5037e28
Merge branch 'main' into marvin/nonce
2026-03-17 16:45:08 -04:00
jonesmarvin8
f5ba922b70
Merge branch 'main' into marvin/refactor-amm-state-tests
2026-03-17 15:59:12 -04:00
jonesmarvin8
66d501e4d7
fixed tests
2026-03-17 14:50:21 -04:00
Daniil Polyakov
252848a145
feat: update rust to 1.94.0
2026-03-17 21:25:30 +03:00
Daniil Polyakov
3b0e842a42
feat: update dependencies
2026-03-17 21:25:30 +03:00
Daniil Polyakov
aa462b66eb
feat: add nursery clippy lints
2026-03-17 21:25:30 +03:00