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
66e9881f38
Merge branch 'main' into schouhy/add-block-context
2026-03-20 14:14:11 -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
0d46f0798a
clippy
2026-03-19 18:55:02 -03:00
Daniil Polyakov
7b50c68550
chore: move nssa dependency of amm to dev-dependencies
2026-03-20 00:48:04 +03:00
Daniil Polyakov
c40c62a484
fix: satisfy clippy
2026-03-19 18:03:23 +03:00
jonesmarvin8
5d9980cf63
lint fixes
2026-03-18 13:10:36 -04:00
jonesmarvin8
a83725512d
Merge branch 'main' into marvin/nonce
2026-03-18 07:59:55 -04:00
jonesmarvin8
1035893fd9
fix lint
2026-03-17 19:09:25 -04:00
jonesmarvin8
8dd5037e28
Merge branch 'main' into marvin/nonce
2026-03-17 16:45:08 -04:00
jonesmarvin8
7481b54cf8
fixed lint and artifacts
2026-03-17 16:20:32 -04:00
jonesmarvin8
f5ba922b70
Merge branch 'main' into marvin/refactor-amm-state-tests
2026-03-17 15:59:12 -04:00
jonesmarvin8
b544b919a6
combine test files
2026-03-17 15:51:25 -04: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
Daniil Polyakov
756f2f4135
feat: add workspace lints to every crate
2026-03-17 15:13:44 +03:00
jonesmarvin8
84abe02573
add serialize/deserialize impls
2026-03-02 11:54:41 -05:00
jonesmarvin8
71d07ccdf7
fmt
2026-03-02 10:51:30 -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
87c251b6e2
incorporate lip_supply_init to this refactoring
2026-02-27 10:24:47 -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
6209317cd4
fmt and artifacts
2026-02-25 17:37:49 -05:00
jonesmarvin8
82966e652d
fix nssa import issue with programs::amm
2026-02-24 18:18:23 -05:00
jonesmarvin8
8095408e1b
initialize branch
2026-02-19 19:15:04 -05:00
jonesmarvin8
a821f04fb8
Merge branch 'main' into marvin/nonce
2026-02-16 19:56:44 -05:00
Sergio Chouhy
32c36af126
fmt, clippy
2026-02-16 15:56:28 -03:00
jonesmarvin8
77f2fb6994
update nonce mechanism
2026-02-12 19:22:03 -05:00
Daniil Polyakov
975cfb9ec6
feat: fully integrate Sequencer, Indexer and Explorer with Bedrock
2026-02-12 16:31:13 +03:00
jonesmarvin8
68254a835d
fix license for amm and machete issue
2026-02-10 20:54:42 -05:00
jonesmarvin8
0930e4dd86
Merge branch 'main' into marvin/refactor-amm-program
2026-02-10 20:28:13 -05:00
jonesmarvin8
8d5e6a37e6
various fixes
2026-01-27 18:24:03 -05:00
jonesmarvin8
3205e69e11
Update programs/amm/src/new_definition.rs
...
Co-authored-by: Daniil Polyakov <arjentix@gmail.com>
2026-01-26 15:15:04 -05:00
jonesmarvin8
55b13a6f41
fmt
2026-01-23 16:58:25 -05:00
jonesmarvin8
7c231ae955
artifacts fixes
2026-01-23 16:56:53 -05:00
jonesmarvin8
15d78527fe
fixed fmt
2026-01-23 16:35:18 -05:00
jonesmarvin8
2367bf343b
refactor AMM
2026-01-23 16:30:54 -05:00
jonesmarvin8
e4e476fde9
begin refactoring
2026-01-22 20:48:05 -05:00
Daniil Polyakov
652be426ae
refactor: split token program into crates
2026-01-23 00:53:21 +03:00