536 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
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
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
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
Daniil Polyakov
756f2f4135 feat: add workspace lints to every crate 2026-03-17 15:13:44 +03:00
jonesmarvin8
dd64f0b1f8 Merge branch 'main' into marvin/nonce 2026-03-16 11:22:24 -04:00
jonesmarvin8
d665540495
Merge pull request #357 from logos-blockchain/marvin/issue_295
[Issue 295] ensure! in public transaction
2026-03-16 09:49:52 -04:00
jonesmarvin8
620dd3ad10 Merge branch 'main' into marvin/refactor-amm-state-tests 2026-03-16 09:37:24 -04:00
jonesmarvin8
6e74cca512 fixed unit test 2026-03-16 09:12:29 -04:00
fryorcraken
546c3d0986
fix: remove unused bytemuck dep and apply nightly fmt
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-13 13:46:20 +11:00
fryorcraken
339c0dc048
Prefer hex string to vector of number for stdout 2026-03-13 13:46:19 +11:00
jonesmarvin8
b5d0d2d0c1 fmt and lint 2026-03-09 13:05:29 -04:00
jonesmarvin8
d029def7c7 add ensure test 2026-03-09 12:21:44 -04:00
Pravdyvy
e3764e1911 fix: shared secret receiver fix 2026-03-05 12:35:18 +02:00
Pravdyvy
06665160c6 fix: updated pinata balance 2026-03-04 17:47:38 +02:00
jonesmarvin8
181d43e6d2 test fixing 2026-03-02 16:13:23 -05:00
jonesmarvin8
84abe02573 add serialize/deserialize impls 2026-03-02 11:54:41 -05:00
jonesmarvin8
d863b763d1 Merge branch 'main' into marvin/nonce 2026-03-02 10:49:07 -05:00
jonesmarvin8
227f006179 add clone property and shift feature restriction 2026-03-02 10:15:55 -05:00
jonesmarvin8
157495ad59 fix lint 2026-02-27 10:49:00 -05:00
jonesmarvin8
3c677ce78c Merge branch 'main' into marvin/refactor-amm-state-tests 2026-02-27 09:34:13 -05: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
jonesmarvin8
3c10263023 Merge branch 'main' into marvin/issue_295 2026-02-26 12:41:00 -05:00
Sergio Chouhy
70471f0a54 compress proofs 2026-02-26 11:19:55 -03:00
Daniil Polyakov
437e5addb4 feat: use human-readable byte sizes and durations 2026-02-26 16:25:24 +03:00
Daniil Polyakov
8b5524901c feat: configurable block size limit 2026-02-26 16:21:43 +03:00
jonesmarvin8
6209317cd4 fmt and artifacts 2026-02-25 17:37:49 -05:00
jonesmarvin8
d58df166e7 initialize branch 2026-02-25 15:32:31 -05:00
jonesmarvin8
82966e652d fix nssa import issue with programs::amm 2026-02-24 18:18:23 -05:00
jonesmarvin8
abfb707900 fixed test 2026-02-19 20:07:55 -05:00
jonesmarvin8
8095408e1b initialize branch 2026-02-19 19:15:04 -05:00
jonesmarvin8
c0d4a98f3c fixed unit test 2026-02-19 19:09:19 -05:00
jonesmarvin8
b3e2162d71 fix machete and unit test 2026-02-17 19:56:35 -05:00