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
79d70b3a66
add test for empty intersection in circuit
2026-03-25 17:33:27 -03:00
Sergio Chouhy
7bbd2dd5d7
add public validity window checks
2026-03-19 15:03:45 -03: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
Sergio Chouhy
fe4a89191c
add state to rocksdb
2026-01-27 01:20:17 -03:00
Daniil Polyakov
2b2a52d0b8
feat: error on unclaimed modified accounts
2026-01-19 17:29:59 +03:00
Daniil Polyakov
67d5a3e9f4
fix: check public account authorization in privacy preserving circuit
2026-01-17 02:28:31 +03:00
jonesmarvin8
e73e4b0558
Merge pull request #250 from logos-blockchain/main
...
merge main into simple amm
2025-12-19 08:36:08 -05:00
jonesmarvin8
a5496eb5d5
various comments addressed
2025-12-18 18:45:57 -05:00
Daniil Polyakov
f729072fae
feat: allow private authorized uninitialized accounts
2025-12-18 21:48:37 +03:00
jonesmarvin8
d78d97c815
Reapply "Merge branch 'main' into simple_amm"
...
This reverts commit 2419d4a1126afa9882b3fefbe518582ae130a817.
2025-12-15 18:13:31 -05:00
jonesmarvin8
2419d4a112
Revert "Merge branch 'main' into simple_amm"
...
This reverts commit 8dd1c2d84677aa5efe00ca820ec634a19b73de07, reversing
changes made to 2e37e20014fc8ddaa4559cbdf2c13ec8eb356f24.
2025-12-15 17:53:20 -05:00
jonesmarvin8
8dd1c2d846
Merge branch 'main' into simple_amm
2025-12-15 17:41:45 -05:00
Sergio Chouhy
5276cc8f07
Merge branch 'schouhy/move-modified-transfer-to-test-methods' into schouhy/implement-privacy-preserving-tail-calls
2025-12-10 14:51:46 -03:00
Sergio Chouhy
e9c9058827
move modified transfer program to test programs
2025-12-10 14:07:06 -03:00
Sergio Chouhy
f54cdf4a4c
Merge branch 'main' into schouhy/implement-privacy-preserving-tail-calls
2025-12-09 23:53:27 -03:00
jonesmarvin8
8506f5948f
Merge branch 'main' into simple_amm
2025-12-06 20:07:12 -05:00
jonesmarvin8
1ae10f553b
test: add test for malicious program performing balance overflow attack
2025-12-06 21:28:45 +03:00
Sergio Chouhy
7e971a6c4d
Merge branch 'main' into schouhy/implement-pda-for-public-accounts
2025-12-05 10:00:23 -03:00
Sergio Chouhy
cf9c567e29
remove pub attribute
2025-12-04 16:26:40 -03:00
Sergio Chouhy
44b4c53d04
add test that initialized accounts cannot be claimed
2025-12-03 17:36:53 -03:00
Sergio Chouhy
d677db7f4e
add account post state struct with claiming request field
2025-12-03 15:17:33 -03:00
jonesmarvin8
c0c1228e10
fixed accountId
2025-12-02 15:20:16 -05:00
Sergio Chouhy
407c3f3c95
improve expect message
2025-12-02 16:27:22 -03:00
jonesmarvin8
10d42f352b
AMM functions written
2025-12-02 13:33:00 -05:00
Sergio Chouhy
dcef017f9b
nit
2025-12-02 12:12:56 -03:00
Sergio Chouhy
fdc53927ca
Update nssa/src/program.rs
...
Co-authored-by: Daniil Polyakov <arjentix@gmail.com>
2025-12-02 10:50:06 -03:00
Sergio Chouhy
1989fd25a1
add pinata token example and test
2025-11-28 11:10:00 -03:00
Daniil Polyakov
a714e3c563
feat: enhance rustfmt config
2025-11-26 00:33:09 +03:00
Sergio Chouhy
48fc643952
add chained call test
2025-10-30 09:36:20 -03:00
Sergio Chouhy
3a27719392
add tail-chain logic for public transactions
2025-10-29 13:40:56 -03:00
Sergio Chouhy
e3a498faf0
Merge branch 'main' into schouhy/add-program-deployment-transactions
2025-10-20 19:19:18 -03:00
Sergio Chouhy
6157e3023b
add execution of deployed program in integration test
2025-10-16 16:54:34 -03:00
Sergio Chouhy
ba20728f40
update version tags in domain separator
2025-10-16 16:19:03 -03:00
Sergio Chouhy
da28f3317b
add transition function for program deployment
2025-10-15 17:28:50 -03:00
Sergio Chouhy
ba35fafad4
fmt
2025-10-13 15:15:38 -03:00
Sergio Chouhy
69b610269b
use risc0 method for image_id computaiton
2025-10-10 16:46:12 -03:00
Sergio Chouhy
e8f660c2c7
wip
2025-10-08 20:27:09 -03:00
Sergio Chouhy
bedcccb633
Merge branch 'schouhy/change-authorization-mechanism' into schouhy/add-token-program
2025-09-25 12:52:17 -03:00
Sergio Chouhy
4a755a0c23
Merge branch 'main' into schouhy/change-authorization-mechanism
2025-09-25 12:39:13 -03:00
Sergio Chouhy
b9e0ff230f
add token program
2025-09-16 11:37:36 -03:00
Sergio Chouhy
29914b3220
fmt
2025-09-16 11:37:36 -03:00
Sergio Chouhy
bfbb5e2870
rename fingerprint to account_id
2025-09-16 11:37:36 -03:00
Sergio Chouhy
32910e76e3
refactor
2025-09-16 11:37:36 -03:00
Sergio Chouhy
c3b2f4691b
fmt, clippy
2025-09-16 11:37:36 -03:00
Sergio Chouhy
3d240c72f8
wip
2025-09-16 11:37:36 -03:00