43 Commits

Author SHA1 Message Date
r4bbit
fdd00c1060
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-23 13:58:29 +01: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
jonesmarvin8
2cecf71c93 additional lint fixes 2026-03-18 14:06:56 -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
ba8fdf4f29 fix conflicts from merging main 2026-03-17 19:16:09 -04:00
jonesmarvin8
b44e066e84 fix constructor 2026-03-17 09:29:00 -04:00
fryorcraken
55c930d784
update artifacts 2026-03-16 14:35:29 +11:00
Pravdyvy
cf92157728 fix: artifacts updates 2026-03-05 14:41:52 +02:00
Andrea Franz
fee1ab30e9 chore(programs/amm): fix initial LP supply calculations
ift-ts:sc:logos:2026q1-amm-core-improvements:fix-initial-lp-calc
2026-02-27 09:21:43 +01:00
Daniil Polyakov
72ce3ff1e4 chore: rebuild artifacts 2026-02-26 16:35:07 +03:00
Pravdyvy
f11d374ae7 Merge branch 'main' into Pravdyvy/indexer-state-management 2026-02-17 08:06:16 +02:00
jonesmarvin8
70a2f9ce4e artifact fixes 2026-02-16 20:13:47 -05:00
jonesmarvin8
08e65d8332 update artifacts 2026-02-16 08:11:34 -05:00
Pravdyvy
a4fc1dd570 fix: ci fix 1 2026-02-16 10:34:41 +02:00
Pravdyvy
344430a8f2 Merge branch 'arjentix/fix-sequencer-msg-id' into Pravdyvy/indexer-state-management 2026-02-16 10:16:25 +02:00
Daniil Polyakov
85d2a13148 chore: update keccak 2026-02-14 00:48:39 +03:00
Daniil Polyakov
6d7ca887e3 chore: rebuild artifacts 2026-02-12 16:35:58 +03:00
Daniil Polyakov
975cfb9ec6 feat: fully integrate Sequencer, Indexer and Explorer with Bedrock 2026-02-12 16:31:13 +03:00
jonesmarvin8
0930e4dd86 Merge branch 'main' into marvin/refactor-amm-program 2026-02-10 20:28:13 -05:00
Pravdyvy
92d254b66e feat: indexer block and public state tests 2026-02-10 15:29:23 +02:00
Pravdyvy
4afe687e4c Merge branch 'main' into Pravdyvy/indexer-state-management 2026-02-06 17:42:32 +02:00
Daniil Polyakov
9909f02803 refactor: split token program into crates 2026-02-06 00:08:43 +03:00
David Rusu
a939ceecad chore(artifacts): rebuild artifacts 2026-02-01 00:28:41 +04:00
Daniil Polyakov
8a00d8d8d4 feat: implement Explorer 2026-01-30 21:49:45 +03:00
Sergio Chouhy
81921c3406 build artifacts 2026-01-29 09:54:01 -03:00
jonesmarvin8
8d5e6a37e6 various fixes 2026-01-27 18:24:03 -05:00
Daniil Polyakov
2288a725d2 feat: implement indexer service skeleton 2026-01-26 23:31:28 +03:00
jonesmarvin8
7c231ae955 artifacts fixes 2026-01-23 16:56:53 -05:00
jonesmarvin8
2367bf343b refactor AMM 2026-01-23 16:30:54 -05:00
Daniil Polyakov
652be426ae refactor: split token program into crates 2026-01-23 00:53:21 +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
Daniil Polyakov
a097ff9d49 chore: rebuild artifacts 2026-01-17 02:28:31 +03:00
Daniil Polyakov
2d1ee4b279 Merge branch 'main' into Pravdyvy/amm-wallet-integration 2025-12-26 23:07:48 +03:00
Daniil Polyakov
9d37a88069 fix: proper type for token program instruction 2025-12-26 00:24:55 +03:00
Daniil Polyakov
2e82d2ddb8 chore: fix lints, fmt and artifacts 2025-12-24 03:39:39 +03:00
jonesmarvin8
e6a73a02b5 artifacts commitment 2025-12-23 18:03:00 -05:00
Pravdyvy
0a1bbb9d21 fix: merge fix 2025-12-22 05:12:48 +02:00
Daniil Polyakov
10b6cfcf93 fixup! fix: commit Cargo lock 2025-12-19 18:48:19 +03:00
Daniil Polyakov
621b7c0bfa fix: commit Cargo lock 2025-12-19 18:48:19 +03:00
Daniil Polyakov
45670902d1 fix: build risc0 bins to different target directories 2025-12-19 18:48:19 +03:00
Daniil Polyakov
dc38b8ea2d feat: add artifacts of program_methods and remove no_docker feature 2025-12-19 18:30:40 +03:00