1484 Commits

Author SHA1 Message Date
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
Sergio Chouhy
d16908d463 remove pinata instructions 2025-12-02 16:48:12 -03:00
Sergio Chouhy
c360db9698 Merge branch 'main' into schouhy/add-readme-explainers 2025-12-02 16:40:26 -03:00
Sergio Chouhy
407c3f3c95 improve expect message 2025-12-02 16:27:22 -03: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
2d34925725
Merge pull request #163 from vacp2p/schouhhy/expand-readme
Update Readme with documentation
2025-12-02 12:20:58 -03:00
Sergio Chouhy
dcef017f9b nit 2025-12-02 12:12:56 -03: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
ce9cadc46d Merge branch 'schouhy/implement-pda-for-public-accounts' of github.com:vacp2p/nescience-testnet into schouhy/implement-pda-for-public-accounts 2025-12-02 10:50:43 -03:00
Sergio Chouhy
fdc53927ca
Update nssa/src/program.rs
Co-authored-by: Daniil Polyakov <arjentix@gmail.com>
2025-12-02 10:50:06 -03:00
Sergio Chouhy
3d529d19fa solve comments 2025-12-02 10:48:21 -03:00
Pravdyvy
2fd4a37ee4 fix: private definition support 2025-12-02 15:27:20 +02:00
Pravdyvy
4fb6ba9530 Merge branch 'main' into Pravdyvy/private-definition-token 2025-12-02 07:53:47 +02:00
Daniil Polyakov
04ab7444a4
Merge pull request #205 from vacp2p/arjentix/iss-200-wallet-compute-pinata-solution
Refactor wallet & compute pinata solution in wallet
2025-12-02 02:42:28 +03:00
Daniil Polyakov
df88d8bad6 feat: compute pinata solution in wallet 2025-12-02 01:21:34 +03:00
Daniil Polyakov
4afbd65e3b feat: add transaction output after pinata call 2025-12-01 17:08:07 +03:00
Daniil Polyakov
0c44785a07 refactor: small adjustments to privacy preserving tx sending 2025-12-01 17:08:07 +03:00
Daniil Polyakov
55fc4e9777 refactor: implement program interactions as facades 2025-12-01 17:08:07 +03:00
Daniil Polyakov
df64f8864f refactor: implement universal interface for privacy-preserving transactions 2025-12-01 17:08:07 +03:00
Daniil Polyakov
aee6f45a8b refactor: move some stuff to a more suitable place 2025-12-01 17:08:07 +03:00
Sergio Chouhy
500e0862f3 s/address/account_id/ 2025-12-01 10:48:43 -03:00
Sergio Chouhy
ed38be57bb add explainers 2025-12-01 10:42:59 -03:00
Sergio Chouhy
c937cb591e wip 2025-12-01 10:25:23 -03:00
Pravdyvy
b1b7bc4463 fix: fmt 2025-12-01 14:19:25 +02:00
Pravdyvy
38acb89b93 Merge branch 'main' into Pravdyvy/private-definition-token 2025-12-01 14:19:01 +02:00
Pravdyvy
28c20f4d21 Merge branch 'main' into Pravdyvy/keys-restoration-from-mnemonic 2025-12-01 14:02:02 +02:00
Pravdyvy
fa73a0a704
Merge pull request #149 from vacp2p/Pravdyvy/deterministic-key-derivation
Deterministic key derivation
2025-12-01 13:59:55 +02:00
Pravdyvy
0f617a8601 Merge branch 'Pravdyvy/deterministic-key-derivation' into Pravdyvy/keys-restoration-from-mnemonic 2025-12-01 12:01:45 +02:00
Daniil Polyakov
5801073f84 feat: compute pinata solution in wallet 2025-11-30 03:56:24 +03:00
Daniil Polyakov
2cf60fff10 feat: add transaction output after pinata call 2025-11-30 03:56:12 +03:00
Daniil Polyakov
a8abec196b refactor: small adjustments to privacy preserving tx sending 2025-11-30 03:55:27 +03:00
Daniil Polyakov
777486ce2c refactor: implement program interactions as facades 2025-11-30 03:16:54 +03:00
Daniil Polyakov
41a833c258 refactor: implement universal interface for privacy-preserving transactions 2025-11-30 03:16:54 +03:00
Daniil Polyakov
c94d353b54 refactor: move some stuff to a more suitable place 2025-11-30 03:16:54 +03:00
Sergio Chouhy
7ab44507f5 test 2025-11-29 00:06:06 -03:00
Sergio Chouhy
640ed18f90 Merge branch 'main' into schouhy/add-readme-explainers 2025-11-28 23:38:43 -03:00
Sergio Chouhy
bfbd50e8cb add docs 2025-11-28 17:09:38 -03:00
Sergio Chouhy
c7bcd20a38 add init function to the token program 2025-11-28 14:16:54 -03:00