@sodax/sdk 1.5.6-beta → 2.0.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +91 -7
- package/ai-exported/AGENTS.md +99 -0
- package/ai-exported/integration/README.md +41 -0
- package/ai-exported/integration/ai-rules.md +75 -0
- package/ai-exported/integration/architecture.md +519 -0
- package/ai-exported/integration/chain-specifics.md +189 -0
- package/ai-exported/integration/features/README.md +19 -0
- package/ai-exported/integration/features/auxiliary-services.md +189 -0
- package/ai-exported/integration/features/bridge.md +136 -0
- package/ai-exported/integration/features/dex.md +182 -0
- package/ai-exported/integration/features/icx-bnusd-baln.md +181 -0
- package/ai-exported/integration/features/money-market.md +198 -0
- package/ai-exported/integration/features/staking.md +166 -0
- package/ai-exported/integration/features/swap.md +207 -0
- package/ai-exported/integration/quickstart.md +213 -0
- package/ai-exported/integration/recipes/README.md +21 -0
- package/ai-exported/integration/recipes/backend-server-init.md +69 -0
- package/ai-exported/integration/recipes/chain-key-narrowing.md +65 -0
- package/ai-exported/integration/recipes/gas-estimation.md +33 -0
- package/ai-exported/integration/recipes/initialize-sodax.md +53 -0
- package/ai-exported/integration/recipes/raw-tx-flow.md +71 -0
- package/ai-exported/integration/recipes/result-and-errors.md +104 -0
- package/ai-exported/integration/recipes/signed-tx-flow.md +46 -0
- package/ai-exported/integration/recipes/testing.md +101 -0
- package/ai-exported/integration/reference/README.md +18 -0
- package/ai-exported/integration/reference/chain-keys.md +67 -0
- package/ai-exported/integration/reference/error-codes.md +165 -0
- package/ai-exported/integration/reference/glossary.md +32 -0
- package/ai-exported/integration/reference/public-api.md +138 -0
- package/ai-exported/integration/reference/wallet-providers.md +62 -0
- package/ai-exported/migration/README.md +58 -0
- package/ai-exported/migration/ai-rules.md +80 -0
- package/ai-exported/migration/breaking-changes/architecture.md +335 -0
- package/ai-exported/migration/breaking-changes/result-and-errors.md +363 -0
- package/ai-exported/migration/breaking-changes/type-system.md +321 -0
- package/ai-exported/migration/checklist.md +61 -0
- package/ai-exported/migration/features/README.md +35 -0
- package/ai-exported/migration/features/auxiliary-services.md +156 -0
- package/ai-exported/migration/features/bridge.md +125 -0
- package/ai-exported/migration/features/dex.md +143 -0
- package/ai-exported/migration/features/icx-bnusd-baln.md +151 -0
- package/ai-exported/migration/features/money-market.md +214 -0
- package/ai-exported/migration/features/staking.md +138 -0
- package/ai-exported/migration/features/swap.md +198 -0
- package/ai-exported/migration/recipes.md +288 -0
- package/ai-exported/migration/reference/README.md +18 -0
- package/ai-exported/migration/reference/deleted-exports.md +100 -0
- package/ai-exported/migration/reference/error-code-crosswalk.md +104 -0
- package/ai-exported/migration/reference/return-shapes.md +49 -0
- package/ai-exported/migration/reference/sodax-config.md +52 -0
- package/dist/index.cjs +32154 -31601
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8442 -6974
- package/dist/index.d.ts +8442 -6974
- package/dist/index.mjs +32642 -32130
- package/dist/index.mjs.map +1 -1
- package/package.json +19 -11
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "
|
|
7
|
+
"version": "2.0.0-rc.1",
|
|
8
8
|
"license": "MIT",
|
|
9
9
|
"description": "Sodax SDK",
|
|
10
10
|
"keywords": [
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
"frontend",
|
|
14
14
|
"interface"
|
|
15
15
|
],
|
|
16
|
-
"homepage": "https://github.com/icon-project/sodax-
|
|
16
|
+
"homepage": "https://github.com/icon-project/sodax-sdks/tree/main/packages/sdk",
|
|
17
17
|
"bugs": {
|
|
18
|
-
"url": "https://github.com/icon-project/sodax-
|
|
18
|
+
"url": "https://github.com/icon-project/sodax-sdks/issues"
|
|
19
19
|
},
|
|
20
20
|
"repository": {
|
|
21
21
|
"type": "git",
|
|
22
|
-
"url": "https://github.com/icon-project/sodax-
|
|
22
|
+
"url": "https://github.com/icon-project/sodax-sdks"
|
|
23
23
|
},
|
|
24
24
|
"type": "module",
|
|
25
25
|
"main": "./dist/index.cjs",
|
|
@@ -36,7 +36,8 @@
|
|
|
36
36
|
"node": ">=18.0.0"
|
|
37
37
|
},
|
|
38
38
|
"files": [
|
|
39
|
-
"dist"
|
|
39
|
+
"dist",
|
|
40
|
+
"ai-exported"
|
|
40
41
|
],
|
|
41
42
|
"dependencies": {
|
|
42
43
|
"@bitcoinerlab/secp256k1": "^1.2.0",
|
|
@@ -44,17 +45,17 @@
|
|
|
44
45
|
"@injectivelabs/networks": "1.18.14",
|
|
45
46
|
"@injectivelabs/sdk-ts": "1.18.14",
|
|
46
47
|
"@mysten/sui": "1.21.2",
|
|
48
|
+
"@ordjs/runestone": "^1.6.0",
|
|
47
49
|
"@pancakeswap/chains": "^0.7.0",
|
|
48
50
|
"@pancakeswap/infinity-sdk": "^1.0.0",
|
|
49
51
|
"@pancakeswap/permit2-sdk": "^1.1.7",
|
|
50
52
|
"@pancakeswap/swap-sdk-core": "^1.5.1",
|
|
51
53
|
"@pancakeswap/v3-sdk": "^3.9.7",
|
|
52
|
-
"@ordjs/runestone": "^1.6.0",
|
|
53
54
|
"@solana/spl-token": "0.4.9",
|
|
54
55
|
"@solana/web3.js": "1.98.0",
|
|
55
|
-
"@stellar/stellar-sdk": "12.3.0",
|
|
56
|
-
"@stacks/transactions": "7.3.1",
|
|
57
56
|
"@stacks/network": "7.3.1",
|
|
57
|
+
"@stacks/transactions": "7.3.1",
|
|
58
|
+
"@stellar/stellar-sdk": "15.1.0",
|
|
58
59
|
"bignumber.js": "9.3.1",
|
|
59
60
|
"bitcoinjs-lib": "^6.1.5",
|
|
60
61
|
"bn.js": "^5.2.1",
|
|
@@ -63,16 +64,18 @@
|
|
|
63
64
|
"near-api-js": "7.2.0",
|
|
64
65
|
"rlp": "3.0.0",
|
|
65
66
|
"runelib": "^1.0.7",
|
|
66
|
-
"tiny-invariant": "1.3.3",
|
|
67
67
|
"viem": "2.29.2",
|
|
68
|
-
"@sodax/types": "
|
|
68
|
+
"@sodax/types": "2.0.0-rc.1"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
71
|
"@arethetypeswrong/cli": "0.17.4",
|
|
72
72
|
"@changesets/cli": "2.29.7",
|
|
73
|
+
"@stryker-mutator/core": "9.6.1",
|
|
74
|
+
"@stryker-mutator/vitest-runner": "9.6.1",
|
|
73
75
|
"@types/bn.js": "^5.1.6",
|
|
74
76
|
"@types/node": "22.18.1",
|
|
75
77
|
"@vitest/coverage-v8": "2.1.9",
|
|
78
|
+
"madge": "8.0.0",
|
|
76
79
|
"tsup": "8.5.0",
|
|
77
80
|
"typescript": "5.5.4",
|
|
78
81
|
"vitest": "2.1.9"
|
|
@@ -83,11 +86,16 @@
|
|
|
83
86
|
"test-e2e": "vitest run ./src/e2e-tests",
|
|
84
87
|
"coverage": "vitest run --coverage",
|
|
85
88
|
"dev": "tsup --watch",
|
|
86
|
-
"ci": "pnpm run pretty && pnpm run build && pnpm run test",
|
|
89
|
+
"ci": "pnpm run pretty && pnpm run build && pnpm run test && pnpm run check:ai-exported && pnpm run check:ai-scope && pnpm run check:ai-links && pnpm run check:ai-imports",
|
|
87
90
|
"checkTs": "tsc --noEmit",
|
|
88
91
|
"pretty": "biome format . --write",
|
|
89
92
|
"lint": "biome lint . --write",
|
|
90
93
|
"check-exports": "attw $(pnpm pack) --ignore-rules=cjs-resolves-to-esm",
|
|
94
|
+
"check:circular-deps": "madge --circular --exclude 'types/dist' $(find ./src -name '*.ts')",
|
|
95
|
+
"check:ai-exported": "bash ./scripts/check-ai-exported.sh",
|
|
96
|
+
"check:ai-scope": "bash ./scripts/check-ai-scope.sh",
|
|
97
|
+
"check:ai-links": "bash ./scripts/check-ai-links.sh",
|
|
98
|
+
"check:ai-imports": "bash ./scripts/check-ai-imports.sh",
|
|
91
99
|
"local-release": "changeset version && changeset publish",
|
|
92
100
|
"clean": "rm -rf node_modules && rm -rf dist && rm -rf .turbo"
|
|
93
101
|
}
|