phessophissy
4c7e1bd016
docs: fix code example issues in README
...
- Add missing AMMRoute import
- Move stxAddress declaration before its usage
- Add missing 'amount' variable declaration
- Fix 'sdk' -> 'alex' variable name consistency
- Fix undefined x1, x2 variables in route example
- Use allRoutes[0] as example route instead
2025-12-13 16:28:04 +08:00
Kyle Fang
9c26d12f36
3.2.1
2025-04-24 09:58:42 +00:00
Kyle Fang
b3c6561287
feat: include lp fee in quoting
2025-04-24 09:53:55 +00:00
Kyle Fang
8dd0a81924
3.2.0
2025-03-18 14:34:51 +00:00
Kyle Fang
5407f595cc
fix: unit test
2025-03-18 14:34:43 +00:00
Kyle Fang
8749b3154b
fix: lint
2025-03-18 14:23:01 +00:00
Kyle Fang
a0cf373f93
3.1.0
2025-03-18 14:21:26 +00:00
c4605
67688fbcb0
feat: fetchTokenInfo() support wrap token address
2025-03-18 22:20:54 +08:00
c4605
6562e486a6
feat: refactor getDetailedRoute and add amount details to route info
2025-03-18 22:20:54 +08:00
Kyle Fang
15aea83cc5
feat: add support to vault wrap token
2025-03-05 08:53:40 +00:00
c4605
47de5feb74
feat: add alexSDK.getAllPossibleRoutesWithDetails
2025-03-05 16:42:25 +08:00
Kyle Fang
1f5c534cc4
3.0.4
2025-02-24 10:10:26 +00:00
Kyle Fang
885a8f433c
feat: add pool id to PoolData
2025-02-24 10:09:46 +00:00
Kyle Fang
57d5b59b54
fix: build
2024-12-22 04:19:39 +00:00
Kyle Fang
637b264ecb
chore: bump
2024-12-22 04:15:37 +00:00
Kyle Fang
d3b756066d
Revert "feat: fallback to single route for dex"
...
This reverts commit b1b3424eba .
2024-12-22 04:15:18 +00:00
Kyle Fang
da55b56e87
fix: duplicate routes
2024-12-22 04:15:07 +00:00
Kyle Fang
b1b3424eba
feat: fallback to single route for dex
2024-12-22 02:22:47 +00:00
Kyle Fang
e3df209177
feat: add isSponsoredTxServiceAvailable and fix PC
2024-12-13 05:17:02 +00:00
Kyle Fang
292c1c3b38
chore: bump to 3.0.0
2024-12-11 05:58:41 +00:00
Kyle Fang
e3f41e92ab
feat: update typo
2024-12-11 05:54:09 +00:00
Kyle Fang
267859b635
fix: unit test
2024-12-11 04:34:23 +00:00
Kyle Fang
ef577a22dd
fix: lint
2024-12-11 04:31:18 +00:00
Kyle Fang
c4cbf1f45c
fix: order of parameters for sponsor tx
2024-12-11 04:19:47 +00:00
Kyle Fang
921ab3201b
feat: add sponsored tx broadcast
2024-12-11 04:07:47 +00:00
Kyle Fang
5d3dea011d
Fix ES linter warnings.
3.0.0-beta.1
2024-11-28 05:38:26 +00:00
Kyle Fang
ef7caab4b4
chore: bump version for clarity codegen
2024-11-28 05:23:17 +00:00
Kyle Fang
f4e47bb84f
chore: bump version to 2.2.0-beta.0
2024-11-28 04:58:03 +00:00
Kyle Fang
cb0d0681e1
feat: update the codebase to latest stacks.js SDK
2024-11-28 04:55:52 +00:00
Kyle Fang
a865bb3f17
chore: bump version
2024-11-19 09:45:34 +00:00
Kyle Fang
794df86dc6
feat: add fetchTokenInfo to alexSDK
2024-11-19 09:44:58 +00:00
ignacio.pena@coinfabrik.com
cf4d5e4ace
fixed link to api doc
2024-09-12 07:51:33 +08:00
david weil
a1f6259e29
fix overflow test
2024-09-11 07:24:06 +08:00
Kyle Fang
888bfdf0c6
feat: add github action to automatically deploy on main branch
2024-09-07 01:53:00 +00:00
Kyle Fang
42a3686b24
feat: add github action to automatically deploy on main branch
2024-09-07 01:47:29 +00:00
Ignacio Peña
075372b11c
Base PR to include ts-doc in sdk library sources ( #15 )
...
* add typedoc comments
* documentation.md was removed because typedoc is now used
* running typedoc
* removed docs
* added docs into gitignore
* irrelevant subtitle removed
2024-09-07 09:47:16 +08:00
ignaciopenia
f673f2d280
Fix/handle other errors ( #13 )
...
* add tests to mock-externals suite
* tests: complete custom and alternative routes coverage
* handle STACKS_API_HOST error
* tests: lint fix
* tests: empty route coverage
* refactor mock-externals suite
* tests: coverage on fungible token balances and null token cases
* refactor mock-externals suite
* tests: remove unused structure
* temp commit
* remove redundant describe
* lint fix
---------
Co-authored-by: simsbluebox <simsbluebox@gmail.com >
Co-authored-by: david weil <david.weil@coinfabrik.com >
2024-07-24 11:50:15 +08:00
ignaciopenia
38e997e8c6
Docs/refactor readme ( #14 )
...
* docs: update docs with new functions
* docs: add types to documentation.md
2024-07-23 15:33:07 +08:00
ignaciopenia
9c5de7dec5
Backlog tests and coverage ( #12 )
...
* add tests to mock-externals suite
* tests: complete custom and alternative routes coverage
* tests: lint fix
* tests: empty route coverage
* refactor mock-externals suite
* tests: coverage on fungible token balances and null token cases
* refactor mock-externals suite
* tests: remove unused structure
* remove redundant describe
* lint fix
---------
Co-authored-by: simsbluebox <simsbluebox@gmail.com >
2024-07-23 15:32:09 +08:00
Kyle Fang
924cca8a2e
fix: check in updates to pnpm-lock
2024-07-15 21:26:52 +08:00
david weil
fc23587ce3
Tests/sdk features stage 2 ( #11 )
...
* tests: enhance tests for existing functions
* tests: add test cases for existing functions
* tests: add test cases for three new functions
* tests: Introduce mock for getFeeRate function
* tests: implement workaround for Jest BigInt assertion issue
* tests: wip test cases getRoute, getAmountTo, runSwap
* tests: mocked functions runSwap, getLatestPrices
* temp commit
* tests: mocked functions getBalances, fetchSwappableCurrency
* tests: add additional tests for error scenarios
* tests: add more coverage to runSwap SDK method
* temp commit
* temp commit
* sync merge
* code linted + documentation update
* tests: SDK getWayPoints method
* tests: add lint fix command
* tests: add getFeeRate with custom route
* test: add external error tests
* fix: minor changes
* conflicts resolved
---------
Co-authored-by: ignacio.pena@coinfabrik.com <ignacio.pena@coinfabrik.com >
Co-authored-by: simsbluebox <simsbluebox@gmail.com >
Co-authored-by: david weil <david.weil@endlesstruction.com.ar >
2024-07-15 21:25:14 +08:00
Kyle Fang
4c9ee30faf
feat: add ci script
2024-07-12 09:30:38 +08:00
Kyle Fang
03ab838ddc
feat: move TxToBroadCast back to SwapHelper
2024-07-12 09:30:38 +08:00
Kyle Fang
8d666ee029
feat: remove supported currency section
...
the new sdk fetches supported tokens in runtime
2024-07-12 09:30:38 +08:00
Kyle Fang
da4091e7e0
feat: add routing related tests
2024-07-12 09:30:38 +08:00
Kyle Fang
28461a41fa
tests: add ajv to automatically validate external responses in runtime
2024-07-12 09:30:38 +08:00
david weil
de391d1ddd
Tests/sdk features: coverage. Stage 1 ( #9 )
...
* tests: enhance tests for existing functions
* tests: add test cases for existing functions
* tests: add test cases for three new functions
* merge from alex changes
* fix: error with variable name
* fix: removed unused variable
* fix: testing of getRoute updated to its signature
---------
Co-authored-by: ignacio.pena@coinfabrik.com <ignacio.pena@coinfabrik.com >
Co-authored-by: simsbluebox <simsbluebox@gmail.com >
Co-authored-by: david weil <david.weil@endlesstruction.com.ar >
2024-07-11 17:56:32 +08:00
Kyle Fang
8489554ffc
feat: add support for custom route
...
Also fix typo of router -> route
2024-07-04 15:24:06 +08:00
fiftyeightandeight
d5660b4238
Merge pull request #6 from CoinFabrik/docs/refactor-readme-apidoc-aside
...
Docs/refactor readme api-doc aside
2024-07-04 14:06:56 +08:00
fiftyeightandeight
c271735854
Merge pull request #5 from CoinFabrik/docs/refactor-readme
...
Docs/refactor readme
2024-07-04 14:06:41 +08:00