309 Commits

Author SHA1 Message Date
jonesmarvin8
b1ad51f5b9 logic fixes and streamlining examples
fixed remove_liquidity logic and added enum/constructors for examples
2025-12-04 21:53:58 -05:00
jonesmarvin8
90d6580377 simplified swap logic
removed branching logic from swap logic, and adjusted tests accordingly.
2025-12-02 17:21:49 -05:00
jonesmarvin8
c0c1228e10 fixed accountId 2025-12-02 15:20:16 -05:00
jonesmarvin8
3e9f0f9384 fixed omitted vault checks
Previous versions mistakenly used token_definition instead of vault account id to check for vaults.

Functions and corresponding tests fixed.

Minor error in arithmetic in state.rs for remove_liquidity fixed.
2025-12-02 13:40:54 -05:00
jonesmarvin8
863ed888ad minor fix to remove_liquidity
Fixed line 2767 to use delta_lp in liquidity_pool_cap
2025-12-02 13:40:54 -05:00
jonesmarvin8
93ee75a339 additional tests
Tests for chain_calls included in amm.rs,
All tests in state.rs
2025-12-02 13:40:53 -05:00
jonesmarvin8
352b97910a state tests written 2025-12-02 13:40:11 -05:00
jonesmarvin8
0a645281c6 token_program non-deterministic issue 2025-12-02 13:40:11 -05:00
jonesmarvin8
9da684b7c6 fixed some deterministic issues 2025-12-02 13:40:11 -05:00
jonesmarvin8
5547f0635c attempted test functions in state.rs
Additional minor clean up in amm.rs
2025-12-02 13:40:10 -05:00
jonesmarvin8
2166bbfe03 test fixes and comments 2025-12-02 13:37:40 -05:00
jonesmarvin8
853d4d6b59 Tests written 2025-12-02 13:36:07 -05:00
jonesmarvin8
a426839b3b Updated based on chain calls fixes 2025-12-02 13:36:07 -05:00
jonesmarvin8
10d42f352b AMM functions written 2025-12-02 13:33:00 -05:00
jonesmarvin8
e8f1bca17e initialize amm program PR 2025-12-02 13:31:38 -05:00
Sergio Chouhy
468b39bc32
Merge pull request #203 from vacp2p/schouhy/add-init-function-to-token-program
Add init function to the token program
2025-12-02 12:11:49 -03:00
Sergio Chouhy
c7bcd20a38 add init function to the token program 2025-11-28 14:16:54 -03:00
Pravdyvy
46515ce695 Merge branch 'main' into Pravdyvy/deterministic-key-derivation 2025-11-28 09:18:02 +02:00
Sergio Chouhy
702882c6ee
Merge pull request #161 from vacp2p/schouhy/add-multi-chain-calls
Add multi chain calls
2025-11-27 12:39:23 -03:00
Sergio Chouhy
409ec19959 fix concatenation of call stack 2025-11-27 10:53:25 -03:00
Sergio Chouhy
f46d7ee426 nit 2025-11-27 10:46:35 -03:00
Sergio Chouhy
aba1d844f8 consume call stack from the other end 2025-11-27 10:42:58 -03:00
Sergio Chouhy
103332f6cd nit 2025-11-27 09:56:52 -03:00
Sergio Chouhy
577fad6d5f refactor call stack execution loop 2025-11-27 09:54:14 -03:00
Pravdyvy
055c5388e0 Merge branch 'main' into Pravdyvy/deterministic-key-derivation 2025-11-27 13:49:00 +02:00
Pravdyvy
6c409b6fb1 Merge branch 'main' into Pravdyvy/deterministic-key-derivation 2025-11-27 13:46:35 +02:00
Pravdyvy
00386eba24 fix: fmt 2025-11-27 06:03:43 +02:00
Pravdyvy
72d389a7c3 Merge branch 'main' into Pravdyvy/iss131-error-handling 2025-11-27 05:53:03 +02:00
Sergio Chouhy
d1d2292028 fmt 2025-11-26 20:13:23 -03:00
Sergio Chouhy
12e21c935c Merge branch 'main' into schouhy/add-multi-chain-calls 2025-11-26 17:12:35 -03:00
Pravdyvy
4d1d765cbe Merge branch 'main' into Pravdyvy/iss131-error-handling 2025-11-26 06:49:46 +02:00
Daniil Polyakov
a714e3c563 feat: enhance rustfmt config 2025-11-26 00:33:09 +03:00
Daniil Polyakov
ea9c659fb1 refactor: rename Address to AccountId 2025-11-25 21:38:07 +03:00
Pravdyvy
46fad3c5e7 fix: comments fix 1 2025-11-25 09:40:46 +02:00
Pravdyvy
adcf70da76 fix: test run 2025-11-25 08:58:15 +02:00
Pravdyvy
2f07853975 fix: borsh integrated into transactions 2025-11-19 14:28:18 +02:00
Pravdyvy
30bcd20ac5 fix: privacy-preserving test 2025-11-19 09:00:32 +02:00
Pravdyvy
ef73336aa5 fix: borsh derivation on publci transactions 2025-11-18 17:52:46 +02:00
Sergio Chouhy
fd4ebde1fb fix account passing mechanism 2025-11-17 15:43:01 -03:00
Sergio Chouhy
c7b415b2f4 add max depth reached error for chained calls 2025-11-12 19:55:02 -03:00
Sergio Chouhy
a94440fa1f rename 2025-11-12 19:18:04 -03:00
Sergio Chouhy
2e582e7874 add multi chain calls 2025-11-12 19:08:46 -03:00
Pravdyvy
d9a130cc55 feat: private tree 2025-11-07 16:21:14 +02:00
Sergio Chouhy
4be1977925
Merge pull request #146 from vacp2p/schouhy/add-tail-call-mechanism
Add tail call mechanism for public executions
2025-11-03 10:36:39 -03:00
Pravdyvy
aa36cc09fa
Merge pull request #141 from vacp2p/Pravdyvy/cli-refactor
CLI refactor
2025-11-03 15:35:30 +02:00
Sergio Chouhy
12974f6f6b refactor 2025-10-30 14:10:33 -03:00
Sergio Chouhy
0fb72e452f fix claiming mechanism for chained calls 2025-10-30 10:52:53 -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
6d9d6b3d28 add chained_call field to program output 2025-10-29 00:40:56 -03:00