@strkfarm/sdk 1.1.70 → 2.0.0-dev.2
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/dist/cli.js +2 -2
- package/dist/cli.mjs +2 -2
- package/dist/index.browser.global.js +67016 -59681
- package/dist/index.browser.mjs +29832 -23221
- package/dist/index.d.ts +2006 -787
- package/dist/index.js +25403 -18769
- package/dist/index.mjs +25333 -18739
- package/package.json +80 -76
- package/src/data/extended-deposit.abi.json +3613 -0
- package/src/data/universal-vault.abi.json +135 -20
- package/src/dataTypes/address.ts +7 -0
- package/src/global.ts +240 -193
- package/src/interfaces/common.tsx +26 -2
- package/src/modules/ExtendedWrapperSDk/index.ts +62 -0
- package/src/modules/ExtendedWrapperSDk/types.ts +311 -0
- package/src/modules/ExtendedWrapperSDk/wrapper.ts +395 -0
- package/src/modules/avnu.ts +17 -4
- package/src/modules/ekubo-quoter.ts +99 -10
- package/src/modules/erc20.ts +67 -21
- package/src/modules/harvests.ts +16 -29
- package/src/modules/index.ts +5 -1
- package/src/modules/lst-apr.ts +36 -0
- package/src/modules/midas.ts +159 -0
- package/src/modules/pricer-from-api.ts +2 -2
- package/src/modules/pricer-lst.ts +1 -1
- package/src/modules/pricer.ts +3 -38
- package/src/modules/token-market-data.ts +202 -0
- package/src/node/deployer.ts +1 -36
- package/src/strategies/autoCompounderStrk.ts +1 -1
- package/src/strategies/base-strategy.ts +20 -3
- package/src/strategies/ekubo-cl-vault.tsx +123 -306
- package/src/strategies/index.ts +4 -1
- package/src/strategies/svk-strategy.ts +247 -0
- package/src/strategies/universal-adapters/adapter-optimizer.ts +65 -0
- package/src/strategies/universal-adapters/adapter-utils.ts +5 -1
- package/src/strategies/universal-adapters/avnu-adapter.ts +411 -0
- package/src/strategies/universal-adapters/baseAdapter.ts +181 -153
- package/src/strategies/universal-adapters/common-adapter.ts +98 -77
- package/src/strategies/universal-adapters/extended-adapter.ts +661 -0
- package/src/strategies/universal-adapters/index.ts +5 -1
- package/src/strategies/universal-adapters/unused-balance-adapter.ts +109 -0
- package/src/strategies/universal-adapters/vesu-adapter.ts +220 -218
- package/src/strategies/universal-adapters/vesu-multiply-adapter.ts +924 -0
- package/src/strategies/universal-adapters/vesu-supply-only-adapter.ts +58 -51
- package/src/strategies/universal-lst-muliplier-strategy.tsx +707 -774
- package/src/strategies/universal-strategy.tsx +1098 -1180
- package/src/strategies/vesu-extended-strategy/services/operationService.ts +34 -0
- package/src/strategies/vesu-extended-strategy/utils/config.runtime.ts +77 -0
- package/src/strategies/vesu-extended-strategy/utils/constants.ts +49 -0
- package/src/strategies/vesu-extended-strategy/utils/helper.ts +376 -0
- package/src/strategies/vesu-extended-strategy/vesu-extended-strategy.tsx +1134 -0
- package/src/strategies/vesu-rebalance.tsx +16 -19
- package/src/utils/health-factor-math.ts +11 -5
package/package.json
CHANGED
|
@@ -1,79 +1,83 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
"files": [
|
|
25
|
-
"dist",
|
|
26
|
-
"src"
|
|
27
|
-
],
|
|
28
|
-
"scripts": {
|
|
29
|
-
"test": "jest",
|
|
30
|
-
"build": "tsup --clean && pnpm run build:esm && npm run build:dts && npm run build:iife && npm run build-cli && pnpm run build:iife-esm",
|
|
31
|
-
"build:esm": "tsup --clean false --format esm --platform node",
|
|
32
|
-
"build-cli:esm": "tsup ./src/cli.ts --clean false --format esm --platform node",
|
|
33
|
-
"build-cli": "tsup ./src/cli.ts --clean false && pnpm run build-cli:esm",
|
|
34
|
-
"build:dts": "tsup --clean false --dts-only",
|
|
35
|
-
"build:iife": "tsup --clean false --format iife --platform browser",
|
|
36
|
-
"build:iife-esm": "tsup --clean false --format iife --format esm --platform browser"
|
|
37
|
-
},
|
|
38
|
-
"keywords": [],
|
|
39
|
-
"author": "",
|
|
40
|
-
"license": "ISC",
|
|
41
|
-
"devDependencies": {
|
|
42
|
-
"@types/jest": "^29.5.12",
|
|
43
|
-
"@types/node-telegram-bot-api": "^0.64.7",
|
|
44
|
-
"jest": "^29.7.0",
|
|
45
|
-
"jest-environment-jsdom": "^29.7.0",
|
|
46
|
-
"request": "^2.88.2",
|
|
47
|
-
"ts-jest": "^29.1.5",
|
|
48
|
-
"ts-node": "^10.9.2",
|
|
49
|
-
"tsup": "^8.1.0",
|
|
50
|
-
"typedoc": "^0.26.3",
|
|
51
|
-
"typescript": "^5.5.3"
|
|
52
|
-
},
|
|
53
|
-
"peerDependencies": {
|
|
54
|
-
"@types/react": "^19.1.2",
|
|
55
|
-
"axios": "^1.7.2",
|
|
56
|
-
"react": "19.1.2",
|
|
57
|
-
"starknet": "8.5.2"
|
|
58
|
-
},
|
|
59
|
-
"dependencies": {
|
|
60
|
-
"@apollo/client": "3.11.8",
|
|
61
|
-
"@avnu/avnu-sdk": "3.0.2",
|
|
62
|
-
"@ericnordelo/strk-merkle-tree": "^1.0.0",
|
|
63
|
-
"@noble/curves": "^1.0.0",
|
|
64
|
-
"@noble/hashes": "^2.0.0",
|
|
65
|
-
"@scure/starknet": "^2.0.0",
|
|
66
|
-
"bignumber.js": "4.0.4",
|
|
67
|
-
"browser-assert": "^1.2.1",
|
|
68
|
-
"chalk": "^4.1.2",
|
|
69
|
-
"commander": "^12.1.0",
|
|
70
|
-
"ethers": "^6.13.5",
|
|
71
|
-
"graphql": "16.9.0",
|
|
72
|
-
"inquirer": "^10.1.2",
|
|
73
|
-
"node-telegram-bot-api": "^0.66.0",
|
|
74
|
-
"proxy-from-env": "^1.1.0",
|
|
75
|
-
"redis": "^4.7.0",
|
|
76
|
-
"stacktrace-js": "^2.0.2",
|
|
77
|
-
"winston": "^3.13.0"
|
|
2
|
+
"name": "@strkfarm/sdk",
|
|
3
|
+
"version": "2.0.0-dev.2",
|
|
4
|
+
"description": "STRKFarm TS SDK (Meant for our internal use, but feel free to use it)",
|
|
5
|
+
"typings": "dist/index.d.ts",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"bin": {
|
|
8
|
+
"accountsecure": "dist/cli.js"
|
|
9
|
+
},
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"import": {
|
|
13
|
+
"browser": "./dist/index.browser.mjs",
|
|
14
|
+
"default": "./dist/index.mjs"
|
|
15
|
+
},
|
|
16
|
+
"require": {
|
|
17
|
+
"browser": "./dist/index.browser.global.js",
|
|
18
|
+
"default": "./dist/index.js"
|
|
19
|
+
},
|
|
20
|
+
"browser": "./dist/index.browser.global.js",
|
|
21
|
+
"types": "./dist/index.d.ts"
|
|
78
22
|
}
|
|
23
|
+
},
|
|
24
|
+
"files": [
|
|
25
|
+
"dist",
|
|
26
|
+
"src"
|
|
27
|
+
],
|
|
28
|
+
"scripts": {
|
|
29
|
+
"test": "jest",
|
|
30
|
+
"build": "tsup --clean && pnpm run build:esm && npm run build:dts && npm run build:iife && npm run build-cli && pnpm run build:iife-esm",
|
|
31
|
+
"build:esm": "tsup --clean false --format esm --platform node",
|
|
32
|
+
"build-cli:esm": "tsup ./src/cli.ts --clean false --format esm --platform node",
|
|
33
|
+
"build-cli": "tsup ./src/cli.ts --clean false && pnpm run build-cli:esm",
|
|
34
|
+
"build:dts": "tsup --clean false --dts-only",
|
|
35
|
+
"build:iife": "tsup --clean false --format iife --platform browser",
|
|
36
|
+
"build:iife-esm": "tsup --clean false --format iife --format esm --platform browser"
|
|
37
|
+
},
|
|
38
|
+
"keywords": [],
|
|
39
|
+
"author": "",
|
|
40
|
+
"license": "ISC",
|
|
41
|
+
"publishConfig": {
|
|
42
|
+
"tag": "dev"
|
|
43
|
+
},
|
|
44
|
+
"devDependencies": {
|
|
45
|
+
"@types/jest": "^29.5.12",
|
|
46
|
+
"@types/node-telegram-bot-api": "^0.64.7",
|
|
47
|
+
"jest": "^29.7.0",
|
|
48
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
49
|
+
"request": "^2.88.2",
|
|
50
|
+
"ts-jest": "^29.1.5",
|
|
51
|
+
"ts-node": "^10.9.2",
|
|
52
|
+
"tsup": "^8.1.0",
|
|
53
|
+
"typedoc": "^0.26.3",
|
|
54
|
+
"typescript": "^5.5.3"
|
|
55
|
+
},
|
|
56
|
+
"peerDependencies": {
|
|
57
|
+
"@types/react": "^19.1.2",
|
|
58
|
+
"axios": "^1.7.2",
|
|
59
|
+
"react": "19.1.0",
|
|
60
|
+
"starknet": "8.5.2"
|
|
61
|
+
},
|
|
62
|
+
"dependencies": {
|
|
63
|
+
"@apollo/client": "3.11.8",
|
|
64
|
+
"@avnu/avnu-sdk": "3.0.2",
|
|
65
|
+
"@ericnordelo/strk-merkle-tree": "^1.0.0",
|
|
66
|
+
"@noble/curves": "^1.0.0",
|
|
67
|
+
"@noble/hashes": "^2.0.0",
|
|
68
|
+
"@scure/starknet": "^2.0.0",
|
|
69
|
+
"bignumber.js": "4.0.4",
|
|
70
|
+
"browser-assert": "^1.2.1",
|
|
71
|
+
"chalk": "^4.1.2",
|
|
72
|
+
"commander": "^12.1.0",
|
|
73
|
+
"dotenv": "^17.2.3",
|
|
74
|
+
"ethers": "^6.13.5",
|
|
75
|
+
"graphql": "16.9.0",
|
|
76
|
+
"inquirer": "^10.1.2",
|
|
77
|
+
"node-telegram-bot-api": "^0.66.0",
|
|
78
|
+
"proxy-from-env": "^1.1.0",
|
|
79
|
+
"redis": "^4.7.0",
|
|
80
|
+
"stacktrace-js": "^2.0.2",
|
|
81
|
+
"winston": "^3.13.0"
|
|
82
|
+
}
|
|
79
83
|
}
|