57 Commits

Author SHA1 Message Date
Sergio Chouhy
4dd2f98fd4 Merge branch 'schouhy/add-block-context-system-accounts' of github.com:logos-blockchain/lssa into schouhy/add-block-context-system-accounts 2026-04-03 18:21:17 -03:00
Sergio Chouhy
deae71b09f handle comments 2026-04-03 18:13:24 -03:00
Sergio Chouhy
2aa585b847
Update programs/clock/core/src/lib.rs
Co-authored-by: Daniil Polyakov <arjentix@gmail.com>
2026-04-03 11:54:19 -03:00
Sergio Chouhy
55c75c55ae fix clippy 2026-04-02 21:44:33 -03:00
Sergio Chouhy
7c1f8f4d68 clippy 2026-04-02 21:23:30 -03:00
Sergio Chouhy
4d5010f044 Merge branch 'main' into schouhy/add-block-context-system-accounts 2026-04-02 19:48:55 -03:00
Sergio Chouhy
b525447e2d refactor so that indexer checks clock constraints 2026-04-02 18:30:10 -03:00
Andrea Franz
7d75eb2d59 chore(programs/amm): rename Swap to SwapExactInput 2026-04-02 16:10:12 +02:00
Andrea Franz
9a6ec0018b feat(programs/amm): add swap exact output functionality 2026-04-02 16:10:12 +02:00
Sergio Chouhy
3c5a1c9d0a Merge branch 'main' into schouhy/add-block-context-system-accounts 2026-03-31 20:53:10 -03:00
moudyellaz
5c592312f9 feat: extend ValidityWindow with Unix timestamp bounds 2026-03-31 13:46:08 +02:00
Sergio Chouhy
7078e403ed add timestamp to clock 2026-03-30 23:50:54 -03:00
Daniil Polyakov
6780f1c9a4 feat: protect from public pda griefing attacks 2026-03-28 01:23:57 +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
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