@ichidao/ichi-vaults-sdk 0.0.76 → 0.0.78
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 +84 -22
- package/dist/src/__tests__/index.test.js +35 -4
- package/dist/src/__tests__/index.test.js.map +1 -1
- package/dist/src/functions/chains.d.ts +3 -0
- package/dist/src/functions/chains.js +29 -0
- package/dist/src/functions/chains.js.map +1 -0
- package/dist/src/functions/deposit.js +34 -25
- package/dist/src/functions/deposit.js.map +1 -1
- package/dist/src/functions/userBalances.d.ts +2 -0
- package/dist/src/functions/userBalances.js +2 -1
- package/dist/src/functions/userBalances.js.map +1 -1
- package/dist/src/functions/vaultPositions.d.ts +17 -0
- package/dist/src/functions/vaultPositions.js +149 -0
- package/dist/src/functions/vaultPositions.js.map +1 -0
- package/dist/src/functions/withdraw.js +29 -23
- package/dist/src/functions/withdraw.js.map +1 -1
- package/dist/src/graphql/constants.js +73 -73
- package/dist/src/graphql/constants.js.map +1 -1
- package/dist/src/index.cjs.js +3 -1
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.esm.js +3 -1
- package/dist/src/index.js +2 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/src/functions/chains.d.ts +3 -0
- package/dist/src/src/functions/userBalances.d.ts +2 -0
- package/dist/src/src/functions/vaultPositions.d.ts +17 -0
- package/dist/src/src/index.d.ts +2 -0
- package/package.json +1 -1
@@ -8,18 +8,18 @@ var types_1 = require("../types");
|
|
8
8
|
exports.graphUrls = (_a = {},
|
9
9
|
_a[types_1.SupportedChainId.arbitrum] = (_b = {},
|
10
10
|
_b[types_1.SupportedDex.UniswapV3] = {
|
11
|
-
url: 'https://api.studio.thegraph.com/query/
|
12
|
-
publishedUrl: 'https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/
|
11
|
+
url: 'https://api.studio.thegraph.com/query/88584/arbitrum-v1/version/latest',
|
12
|
+
publishedUrl: 'https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/EHrAjHvipRZ6oUpdxjMMQmmtTBGEgTeLfAbcGmwDP5MS',
|
13
13
|
supportsCollectFees: false,
|
14
14
|
},
|
15
15
|
_b[types_1.SupportedDex.Ramses] = {
|
16
|
-
url: 'https://api.studio.thegraph.com/query/
|
17
|
-
publishedUrl: 'https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/
|
16
|
+
url: 'https://api.studio.thegraph.com/query/88584/arbitrum-v1-ramses/version/latest',
|
17
|
+
publishedUrl: 'https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/GUje3ta3bDgpyT5pUzhpuxZJetRMhYHSuBdbLC6aKh7u',
|
18
18
|
supportsCollectFees: false,
|
19
19
|
},
|
20
20
|
_b[types_1.SupportedDex.Sushiswap] = {
|
21
|
-
url: 'https://api.studio.thegraph.com/query/
|
22
|
-
publishedUrl: 'https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/
|
21
|
+
url: 'https://api.studio.thegraph.com/query/88584/arbitrum-v1-sushiswap/version/latest',
|
22
|
+
publishedUrl: 'https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/9LLNtWuxZC8CJ8VKNXFonZTfCZ2dkNFQ75WfAjjG5tWu',
|
23
23
|
supportsCollectFees: false,
|
24
24
|
},
|
25
25
|
_b),
|
@@ -39,47 +39,47 @@ exports.graphUrls = (_a = {},
|
|
39
39
|
_d),
|
40
40
|
_a[types_1.SupportedChainId.mainnet] = (_e = {},
|
41
41
|
_e[types_1.SupportedDex.UniswapV3] = {
|
42
|
-
url: 'https://api.studio.thegraph.com/query/
|
43
|
-
publishedUrl: 'https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/
|
42
|
+
url: 'https://api.studio.thegraph.com/query/88584/mainnet-v1/version/latest',
|
43
|
+
publishedUrl: 'https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/rsoxiRb9Ps8nd7FheU2QGeWVhTALCQjUZeUv8pS93gt',
|
44
44
|
supportsCollectFees: false,
|
45
45
|
},
|
46
46
|
_e[types_1.SupportedDex.Blueprint] = {
|
47
|
-
url: 'https://api.studio.thegraph.com/query/
|
48
|
-
publishedUrl: 'https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/
|
47
|
+
url: 'https://api.studio.thegraph.com/query/88584/mainnet-v1-blueprint/version/latest',
|
48
|
+
publishedUrl: 'https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/DZ7m2Dr1ZVkeQMgi1LDLwKSCvscEUteGSKbAmcspF68G',
|
49
49
|
supportsCollectFees: false,
|
50
50
|
},
|
51
51
|
_e[types_1.SupportedDex.Pancakeswap] = {
|
52
|
-
url: 'https://api.studio.thegraph.com/query/
|
53
|
-
publishedUrl: 'https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/
|
52
|
+
url: 'https://api.studio.thegraph.com/query/88584/mainnet-v1-pancakeswap/version/latest',
|
53
|
+
publishedUrl: 'https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/GtYgZPoaEtbiajpAEZCGk9Z6MGHFmXeNyvnG5voF5AuS',
|
54
54
|
supportsCollectFees: true,
|
55
55
|
},
|
56
56
|
_e),
|
57
57
|
_a[types_1.SupportedChainId.polygon] = (_f = {},
|
58
58
|
_f[types_1.SupportedDex.UniswapV3] = {
|
59
|
-
url: 'https://api.studio.thegraph.com/query/
|
60
|
-
publishedUrl: 'https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/
|
59
|
+
url: 'https://api.studio.thegraph.com/query/88584/polygon-v1/version/latest',
|
60
|
+
publishedUrl: 'https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/6WH2uyXvDZByPEBQ46mieAgvyS9ELiuGXfffyGKbw1Qf',
|
61
61
|
supportsCollectFees: false,
|
62
62
|
},
|
63
63
|
_f[types_1.SupportedDex.Retro] = {
|
64
|
-
url: 'https://api.studio.thegraph.com/query/
|
65
|
-
publishedUrl: 'https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/
|
64
|
+
url: 'https://api.studio.thegraph.com/query/88584/polygon-v1-retro/version/latest',
|
65
|
+
publishedUrl: 'https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/5WyaMUnnbvGWkzpGyWNETNhgPgohtmV8wFn7Bn7akcUj',
|
66
66
|
supportsCollectFees: false,
|
67
67
|
},
|
68
68
|
_f[types_1.SupportedDex.Quickswap] = {
|
69
|
-
url: 'https://api.studio.thegraph.com/query/
|
70
|
-
publishedUrl: 'https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/
|
69
|
+
url: 'https://api.studio.thegraph.com/query/88584/polygon-v1-quickswap/version/latest',
|
70
|
+
publishedUrl: 'https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/CbYdVpAtj6bU1jcb7FcEWn2ydLdVNhwRy1c7C2XGrNa9',
|
71
71
|
supportsCollectFees: true,
|
72
72
|
},
|
73
73
|
_f),
|
74
74
|
_a[types_1.SupportedChainId.base] = (_g = {},
|
75
75
|
_g[types_1.SupportedDex.Equalizer] = {
|
76
|
-
url: 'https://api.studio.thegraph.com/query/
|
77
|
-
publishedUrl: 'https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/
|
76
|
+
url: 'https://api.studio.thegraph.com/query/88584/base-v1-equalizer/version/latest',
|
77
|
+
publishedUrl: 'https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/FeWJod9KKVkeRrC7MB54cJNu9qYhoyNzDYPa8D62U2AS',
|
78
78
|
supportsCollectFees: true,
|
79
79
|
},
|
80
80
|
_g[types_1.SupportedDex.UniswapV3] = {
|
81
|
-
url: 'https://api.studio.thegraph.com/query/
|
82
|
-
publishedUrl: 'https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/
|
81
|
+
url: 'https://api.studio.thegraph.com/query/88584/base-v1/v0.0.3',
|
82
|
+
publishedUrl: 'https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/2RW5ke8ps9rAjPaAxxQpe8rFexLWWMLL5ySzwLZPnG6g',
|
83
83
|
supportsCollectFees: true,
|
84
84
|
},
|
85
85
|
_g),
|
@@ -93,48 +93,48 @@ exports.graphUrls = (_a = {},
|
|
93
93
|
_a[types_1.SupportedChainId.blast] = (_j = {},
|
94
94
|
_j[types_1.SupportedDex.Fenix] = {
|
95
95
|
url: 'https://api.goldsky.com/api/public/project_clxadvm41bujy01ui2qalezdn/subgraphs/blast-v1-fenix/1.0.0/gn',
|
96
|
-
publishedUrl: 'https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/
|
96
|
+
publishedUrl: 'https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/G9BZYDTLCdJxoETspoVtVzTeuzYgn8h5bYmq7ydLUr6a',
|
97
97
|
supportsCollectFees: true,
|
98
98
|
},
|
99
99
|
_j[types_1.SupportedDex.Thruster] = {
|
100
|
-
url: 'https://api.studio.thegraph.com/query/
|
101
|
-
publishedUrl: 'https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/
|
100
|
+
url: 'https://api.studio.thegraph.com/query/88584/blast-v1-thruster/version/latest',
|
101
|
+
publishedUrl: 'https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/JDXqs18mzaghk5kZRTRLtQZAMkrqhfYk1LJagcAgHwPc',
|
102
102
|
supportsCollectFees: true,
|
103
103
|
},
|
104
104
|
_j[types_1.SupportedDex.UniswapV3] = {
|
105
|
-
url: 'https://api.studio.thegraph.com/query/
|
106
|
-
publishedUrl: 'https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/
|
105
|
+
url: 'https://api.studio.thegraph.com/query/88584/blast-v1/version/latest',
|
106
|
+
publishedUrl: 'https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/2WUyxDQ824jLYkQ53JXMByumvXVgTeJcLD6XezRr9QgV',
|
107
107
|
supportsCollectFees: true,
|
108
108
|
},
|
109
109
|
_j),
|
110
110
|
_a[types_1.SupportedChainId.blast_sepolia_testnet] = (_k = {},
|
111
111
|
_k[types_1.SupportedDex.Fenix] = {
|
112
112
|
url: 'https://api.goldsky.com/api/public/project_clxadvm41bujy01ui2qalezdn/subgraphs/blast-sepolia-v1-fenix/1.0.0/gn',
|
113
|
-
publishedUrl: 'https://api.
|
113
|
+
publishedUrl: 'https://api.goldsky.com/api/public/project_clxadvm41bujy01ui2qalezdn/subgraphs/blast-sepolia-v1-fenix/1.0.0/gn',
|
114
114
|
supportsCollectFees: true,
|
115
115
|
},
|
116
116
|
_k),
|
117
117
|
_a[types_1.SupportedChainId.bsc] = (_l = {},
|
118
118
|
_l[types_1.SupportedDex.UniswapV3] = {
|
119
|
-
url: 'https://api.studio.thegraph.com/query/
|
120
|
-
publishedUrl: 'https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/
|
119
|
+
url: 'https://api.studio.thegraph.com/query/88584/bnb-v1/version/latest',
|
120
|
+
publishedUrl: 'https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/A5d7JgbjDdfD2iSgArqdBUQubFEWHG264vCZuqWBiJDU',
|
121
121
|
supportsCollectFees: false,
|
122
122
|
},
|
123
123
|
_l[types_1.SupportedDex.Pancakeswap] = {
|
124
|
-
url: 'https://api.studio.thegraph.com/query/
|
125
|
-
publishedUrl: 'https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/
|
124
|
+
url: 'https://api.studio.thegraph.com/query/88584/bnb-v1-pancakeswap/version/latest',
|
125
|
+
publishedUrl: 'https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/GC3MXRrHoAvHKpMt1GZf6K9PMHTeTfpZZWPisMJdBEJs',
|
126
126
|
supportsCollectFees: false,
|
127
127
|
},
|
128
128
|
_l[types_1.SupportedDex.Thena] = {
|
129
|
-
url: 'https://api.studio.thegraph.com/query/
|
130
|
-
publishedUrl: 'https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/
|
129
|
+
url: 'https://api.studio.thegraph.com/query/88584/bnb-v1-thena/version/latest',
|
130
|
+
publishedUrl: 'https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/6x5DWy8Tnber9jND8qbxjtCtus11tkkjd6r2qJphoLvf',
|
131
131
|
supportsCollectFees: true,
|
132
132
|
},
|
133
133
|
_l),
|
134
134
|
_a[types_1.SupportedChainId.celo] = (_m = {},
|
135
135
|
_m[types_1.SupportedDex.UniswapV3] = {
|
136
|
-
url: 'https://api.studio.thegraph.com/query/
|
137
|
-
publishedUrl: 'https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/
|
136
|
+
url: 'https://api.studio.thegraph.com/query/88584/celo-v1/version/latest',
|
137
|
+
publishedUrl: 'https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/7dD1q2C5qCXmQpGCgnUsHmFaufD9c9qfppNoeEjEfkLm',
|
138
138
|
supportsCollectFees: true,
|
139
139
|
},
|
140
140
|
_m),
|
@@ -154,13 +154,13 @@ exports.graphUrls = (_a = {},
|
|
154
154
|
_p),
|
155
155
|
_a[types_1.SupportedChainId.fantom] = (_q = {},
|
156
156
|
_q[types_1.SupportedDex.Equalizer] = {
|
157
|
-
url: 'https://api.studio.thegraph.com/query/
|
158
|
-
publishedUrl: 'https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/
|
157
|
+
url: 'https://api.studio.thegraph.com/query/88584/fantom-v1-equalizer/version/latest',
|
158
|
+
publishedUrl: 'https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/sB5joTEeHxm7ab61PTbGsrqMpkdsFeMdiwjsURXWXcY',
|
159
159
|
supportsCollectFees: true,
|
160
160
|
},
|
161
161
|
_q[types_1.SupportedDex.SpiritSwap] = {
|
162
|
-
url: 'https://api.studio.thegraph.com/query/
|
163
|
-
publishedUrl: 'https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/
|
162
|
+
url: 'https://api.studio.thegraph.com/query/88584/fantom-v1-spiritswap/version/latest',
|
163
|
+
publishedUrl: 'https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/62EgsMcsvnSR2vUbS2c6u1Au3janYYtuKFhd3D2NkyMd',
|
164
164
|
supportsCollectFees: true,
|
165
165
|
},
|
166
166
|
_q),
|
@@ -173,8 +173,8 @@ exports.graphUrls = (_a = {},
|
|
173
173
|
_r),
|
174
174
|
_a[types_1.SupportedChainId.fuse] = (_s = {},
|
175
175
|
_s[types_1.SupportedDex.Voltage] = {
|
176
|
-
url: 'https://api.studio.thegraph.com/query/
|
177
|
-
publishedUrl: 'https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/
|
176
|
+
url: 'https://api.studio.thegraph.com/query/88584/fuse-v1-voltage/version/latest',
|
177
|
+
publishedUrl: 'https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/3vPXgLUrHhG6tRs6YoT7656UQXSa2dN6breZt9P8TfsQ',
|
178
178
|
supportsCollectFees: true,
|
179
179
|
},
|
180
180
|
_s),
|
@@ -187,9 +187,9 @@ exports.graphUrls = (_a = {},
|
|
187
187
|
_t),
|
188
188
|
_a[types_1.SupportedChainId.hedera] = (_u = {},
|
189
189
|
_u[types_1.SupportedDex.SaucerSwap] = {
|
190
|
-
url: '
|
191
|
-
publishedUrl: '
|
192
|
-
supportsCollectFees:
|
190
|
+
url: 'https://mainnet-thegraph.swirldslabs.com/subgraphs/name/ichi-org/hedera-v1-saucerswap',
|
191
|
+
publishedUrl: 'https://mainnet-thegraph.swirldslabs.com/subgraphs/name/ichi-org/hedera-v1-saucerswap',
|
192
|
+
supportsCollectFees: true,
|
193
193
|
},
|
194
194
|
_u),
|
195
195
|
_a[types_1.SupportedChainId.hedera_testnet] = (_v = {},
|
@@ -208,28 +208,28 @@ exports.graphUrls = (_a = {},
|
|
208
208
|
_w),
|
209
209
|
_a[types_1.SupportedChainId.linea] = (_x = {},
|
210
210
|
_x[types_1.SupportedDex.Linehub] = {
|
211
|
-
url: 'https://api.studio.thegraph.com/query/
|
212
|
-
publishedUrl: 'https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/
|
211
|
+
url: 'https://api.studio.thegraph.com/query/88584/linea-v1-linehub/v0.0.3',
|
212
|
+
publishedUrl: 'https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/T2KQrNBqn6Et7xEjDAhMrvb9aJBYnHqmQhimbauYW9E',
|
213
213
|
supportsCollectFees: true,
|
214
214
|
},
|
215
215
|
_x[types_1.SupportedDex.Lynex] = {
|
216
|
-
url: 'https://api.studio.thegraph.com/query/
|
217
|
-
publishedUrl: 'https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/
|
216
|
+
url: 'https://api.studio.thegraph.com/query/88584/linea-v1-lynex/version/latest',
|
217
|
+
publishedUrl: 'https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/BXngwuUh7YYXg9QY2bFW5tqhuG2okNgczm1utfpEyCX9',
|
218
218
|
supportsCollectFees: true,
|
219
219
|
},
|
220
220
|
_x[types_1.SupportedDex.Metavault] = {
|
221
|
-
url: 'https://api.studio.thegraph.com/query/
|
222
|
-
publishedUrl: 'https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/
|
221
|
+
url: 'https://api.studio.thegraph.com/query/88584/linea-v1-metavault/v0.0.3',
|
222
|
+
publishedUrl: 'https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/CVBmJy2wVp3NPZQRzwHjboNyfVKsp2jaQoXZbFx1rR2A',
|
223
223
|
supportsCollectFees: true,
|
224
224
|
},
|
225
225
|
_x[types_1.SupportedDex.Nile] = {
|
226
|
-
url: 'https://api.studio.thegraph.com/query/
|
227
|
-
publishedUrl: 'https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/
|
226
|
+
url: 'https://api.studio.thegraph.com/query/88584/linea-v1-nile/v0.0.4',
|
227
|
+
publishedUrl: 'https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/3vrWez6BeB5jnvzXh9Vs9rbUSWmSKNbwDTcnuHQTbehu',
|
228
228
|
supportsCollectFees: true,
|
229
229
|
},
|
230
230
|
_x[types_1.SupportedDex.UniswapV3] = {
|
231
|
-
url: 'https://api.studio.thegraph.com/query/
|
232
|
-
publishedUrl: 'https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/
|
231
|
+
url: 'https://api.studio.thegraph.com/query/88584/linea-v1/version/latest',
|
232
|
+
publishedUrl: 'https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/3FDwqSf1ftVtvDiTZExGZut3TPJKVx74htgPL2cuWh7g',
|
233
233
|
supportsCollectFees: true,
|
234
234
|
},
|
235
235
|
_x),
|
@@ -259,13 +259,13 @@ exports.graphUrls = (_a = {},
|
|
259
259
|
_z),
|
260
260
|
_a[types_1.SupportedChainId.polygon_zkevm] = (_0 = {},
|
261
261
|
_0[types_1.SupportedDex.Pancakeswap] = {
|
262
|
-
url: 'https://api.studio.thegraph.com/query/
|
263
|
-
publishedUrl: 'https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/
|
262
|
+
url: 'https://api.studio.thegraph.com/query/88584/zkevm-v1-pancakeswap/version/latest',
|
263
|
+
publishedUrl: 'https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/6suvZcqmzNcrr6ewVwjeMtq2vNsZ6Z7pL3dVjWvDF96f',
|
264
264
|
supportsCollectFees: true,
|
265
265
|
},
|
266
266
|
_0[types_1.SupportedDex.Quickswap] = {
|
267
|
-
url: 'https://api.studio.thegraph.com/query/
|
268
|
-
publishedUrl: 'https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/
|
267
|
+
url: 'https://api.studio.thegraph.com/query/88584/zkevm-v1-quickswap/version/latest',
|
268
|
+
publishedUrl: 'https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/4LAUjmgShgrvFFv7W9zPRKKDqLeSHMp1BMtPeR7cfBHt',
|
269
269
|
supportsCollectFees: true,
|
270
270
|
},
|
271
271
|
_0),
|
@@ -278,13 +278,13 @@ exports.graphUrls = (_a = {},
|
|
278
278
|
_1),
|
279
279
|
_a[types_1.SupportedChainId.scroll] = (_2 = {},
|
280
280
|
_2[types_1.SupportedDex.Metavault] = {
|
281
|
-
url: 'https://api.studio.thegraph.com/query/
|
282
|
-
publishedUrl: 'https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/
|
281
|
+
url: 'https://api.studio.thegraph.com/query/88584/scroll-v1-metavault/v0.0.3',
|
282
|
+
publishedUrl: 'https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/J9ftF7FnUTbLDxxTXza1ekix2w39dspgpiFiquRK1qL',
|
283
283
|
supportsCollectFees: true,
|
284
284
|
},
|
285
285
|
_2[types_1.SupportedDex.UniswapV3] = {
|
286
|
-
url: 'https://api.studio.thegraph.com/query/
|
287
|
-
publishedUrl: 'https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/
|
286
|
+
url: 'https://api.studio.thegraph.com/query/88584/scroll-v1/version/latest',
|
287
|
+
publishedUrl: 'https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/3LqDsCLFLTTkwSfoCNVuHufLBeWyogSb1fZYicPmjron',
|
288
288
|
supportsCollectFees: true,
|
289
289
|
},
|
290
290
|
_2),
|
@@ -304,8 +304,8 @@ exports.graphUrls = (_a = {},
|
|
304
304
|
_4),
|
305
305
|
_a[types_1.SupportedChainId.taiko_hekla] = (_5 = {},
|
306
306
|
_5[types_1.SupportedDex.Henjin] = {
|
307
|
-
url: '
|
308
|
-
publishedUrl: '
|
307
|
+
url: 'none',
|
308
|
+
publishedUrl: 'none',
|
309
309
|
supportsCollectFees: true,
|
310
310
|
},
|
311
311
|
_5),
|
@@ -318,27 +318,27 @@ exports.graphUrls = (_a = {},
|
|
318
318
|
_6),
|
319
319
|
_a[types_1.SupportedChainId.x_layer_testnet] = (_7 = {},
|
320
320
|
_7[types_1.SupportedDex.XSwap] = {
|
321
|
-
url: 'https://api.studio.thegraph.com/query/
|
322
|
-
publishedUrl: 'https://
|
321
|
+
url: 'https://api.studio.thegraph.com/query/88584/xlayer-sepolia-v1-xswap/version/latest',
|
322
|
+
publishedUrl: 'https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/EsPs6Mz2akM2Hbqm66jTb4YrnW1cjHVDnoqcJV2Xvitt',
|
323
323
|
supportsCollectFees: true,
|
324
324
|
},
|
325
325
|
_7),
|
326
326
|
_a[types_1.SupportedChainId.zksync_era] = (_8 = {},
|
327
327
|
_8[types_1.SupportedDex.Pancakeswap] = {
|
328
|
-
url: 'https://api.studio.thegraph.com/query/
|
329
|
-
publishedUrl: 'https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/
|
328
|
+
url: 'https://api.studio.thegraph.com/query/88584/zksync-v1-pancakeswap/version/latest',
|
329
|
+
publishedUrl: 'https://gateway-arbitrum.network.thegraph.com/api/[api-key]/subgraphs/id/HRoLbVrr8T8zCbC769cMseTpHq9Ebnqv5fKaJKJ4qkYc',
|
330
330
|
supportsCollectFees: true,
|
331
331
|
},
|
332
332
|
_8[types_1.SupportedDex.Velocore] = {
|
333
|
-
url: 'https://api.studio.thegraph.com/query/
|
334
|
-
publishedUrl: 'https://api.studio.thegraph.com/query/
|
333
|
+
url: 'https://api.studio.thegraph.com/query/88584/zksync-v1-velocore/version/latest',
|
334
|
+
publishedUrl: 'https://api.studio.thegraph.com/query/88584/zksync-v1-velocore/version/latest',
|
335
335
|
supportsCollectFees: false,
|
336
336
|
},
|
337
337
|
_8),
|
338
338
|
_a[types_1.SupportedChainId.zksync_era_testnet] = (_9 = {},
|
339
339
|
_9[types_1.SupportedDex.Velocore] = {
|
340
|
-
url: '
|
341
|
-
publishedUrl: '
|
340
|
+
url: 'none',
|
341
|
+
publishedUrl: 'none',
|
342
342
|
supportsCollectFees: true,
|
343
343
|
},
|
344
344
|
_9),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/graphql/constants.ts"],"names":[],"mappings":";;;;AAAA,iDAAiD;AACjD,kCAA0D;AAY1D,2DAA2D;AAC9C,QAAA,SAAS;IACpB,GAAC,wBAAgB,CAAC,QAAQ;QACxB,GAAC,oBAAY,CAAC,SAAS,IAAG;YACxB,GAAG,EAAE,wEAAwE;YAC7E,YAAY,EACV,uHAAuH;YACzH,mBAAmB,EAAE,KAAK;SAC3B;QACD,GAAC,oBAAY,CAAC,MAAM,IAAG;YACrB,GAAG,EAAE,+EAA+E;YACpF,YAAY,EACV,uHAAuH;YACzH,mBAAmB,EAAE,KAAK;SAC3B;QACD,GAAC,oBAAY,CAAC,SAAS,IAAG;YACxB,GAAG,EAAE,kFAAkF;YACvF,YAAY,EACV,uHAAuH;YACzH,mBAAmB,EAAE,KAAK;SAC3B;WACF;IACD,GAAC,wBAAgB,CAAC,OAAO;QACvB,GAAC,oBAAY,CAAC,OAAO,IAAG;YACtB,GAAG,EAAE,8DAA8D;YACnE,YAAY,EAAE,8DAA8D;YAC5E,mBAAmB,EAAE,IAAI;SAC1B;WACF;IACD,GAAC,wBAAgB,CAAC,eAAe;QAC/B,GAAC,oBAAY,CAAC,OAAO,IAAG;YACtB,GAAG,EAAE,mEAAmE;YACxE,YAAY,EAAE,mEAAmE;YACjF,mBAAmB,EAAE,IAAI;SAC1B;WACF;IACD,GAAC,wBAAgB,CAAC,OAAO;QACvB,GAAC,oBAAY,CAAC,SAAS,IAAG;YACxB,GAAG,EAAE,uEAAuE;YAC5E,YAAY,EACV,
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/graphql/constants.ts"],"names":[],"mappings":";;;;AAAA,iD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uHAAuH;YACzH,mBAAmB,EAAE,IAAI;SAC1B;WACF;IACD,GAAC,wBAAgB,CAAC,UAAU;QAC1B,GAAC,oBAAY,CAAC,WAAW,IAAG;YAC1B,GAAG,EAAE,kFAAkF;YACvF,YAAY,EACV,uHAAuH;YACzH,mBAAmB,EAAE,IAAI;SAC1B;QACD,GAAC,oBAAY,CAAC,QAAQ,IAAG;YACvB,GAAG,EAAE,+EAA+E;YACpF,YAAY,EAAE,+EAA+E;YAC7F,mBAAmB,EAAE,KAAK;SAC3B;WACF;IACD,GAAC,wBAAgB,CAAC,kBAAkB;QAClC,GAAC,oBAAY,CAAC,QAAQ,IAAG;YACvB,GAAG,EAAE,MAAM;YACX,YAAY,EAAE,MAAM;YACpB,mBAAmB,EAAE,IAAI;SAC1B;WACF;QACD"}
|
package/dist/src/index.cjs.js
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
/**
|
3
3
|
* @license
|
4
4
|
* author: ICHI DAO <core@ichi.org>
|
5
|
-
* ichi-vaults-sdk.js v0.0.
|
5
|
+
* ichi-vaults-sdk.js v0.0.78
|
6
6
|
* Released under the MIT license.
|
7
7
|
*/
|
8
8
|
|
@@ -21,4 +21,6 @@ tslib_1.__exportStar(require("./functions/calculateDtr"), exports);
|
|
21
21
|
tslib_1.__exportStar(require("./functions/calculateApr"), exports);
|
22
22
|
tslib_1.__exportStar(require("./functions/vaultMetrics"), exports);
|
23
23
|
tslib_1.__exportStar(require("./functions/vaultTvl"), exports);
|
24
|
+
tslib_1.__exportStar(require("./functions/chains"), exports);
|
25
|
+
tslib_1.__exportStar(require("./functions/vaultPositions"), exports);
|
24
26
|
tslib_1.__exportStar(require("./types/index"), exports);
|
package/dist/src/index.d.ts
CHANGED
@@ -8,4 +8,6 @@ export * from './functions/calculateDtr';
|
|
8
8
|
export * from './functions/calculateApr';
|
9
9
|
export * from './functions/vaultMetrics';
|
10
10
|
export * from './functions/vaultTvl';
|
11
|
+
export * from './functions/chains';
|
12
|
+
export * from './functions/vaultPositions';
|
11
13
|
export * from './types/index';
|
package/dist/src/index.esm.js
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
/**
|
3
3
|
* @license
|
4
4
|
* author: ICHI DAO <core@ichi.org>
|
5
|
-
* ichi-vaults-sdk.js v0.0.
|
5
|
+
* ichi-vaults-sdk.js v0.0.78
|
6
6
|
* Released under the MIT license.
|
7
7
|
*/
|
8
8
|
|
@@ -19,4 +19,6 @@ tslib_1.__exportStar(require("./functions/calculateDtr"), exports);
|
|
19
19
|
tslib_1.__exportStar(require("./functions/calculateApr"), exports);
|
20
20
|
tslib_1.__exportStar(require("./functions/vaultMetrics"), exports);
|
21
21
|
tslib_1.__exportStar(require("./functions/vaultTvl"), exports);
|
22
|
+
tslib_1.__exportStar(require("./functions/chains"), exports);
|
23
|
+
tslib_1.__exportStar(require("./functions/vaultPositions"), exports);
|
22
24
|
tslib_1.__exportStar(require("./types/index"), exports);
|
package/dist/src/index.js
CHANGED
@@ -25,5 +25,7 @@ __exportStar(require("./functions/calculateDtr"), exports);
|
|
25
25
|
__exportStar(require("./functions/calculateApr"), exports);
|
26
26
|
__exportStar(require("./functions/vaultMetrics"), exports);
|
27
27
|
__exportStar(require("./functions/vaultTvl"), exports);
|
28
|
+
__exportStar(require("./functions/chains"), exports);
|
29
|
+
__exportStar(require("./functions/vaultPositions"), exports);
|
28
30
|
__exportStar(require("./types/index"), exports);
|
29
31
|
//# sourceMappingURL=index.js.map
|
package/dist/src/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAA2C;AAC3C,4DAA0C;AAC1C,2DAAyC;AACzC,sDAAoC;AACpC,uDAAqC;AACrC,oDAAkC;AAClC,4DAA0C;AAC1C,2DAAyC;AACzC,2DAAyC;AACzC,2DAAyC;AACzC,uDAAqC;AACrC,gDAA8B"}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAA2C;AAC3C,4DAA0C;AAC1C,2DAAyC;AACzC,sDAAoC;AACpC,uDAAqC;AACrC,oDAAkC;AAClC,4DAA0C;AAC1C,2DAAyC;AACzC,2DAAyC;AACzC,2DAAyC;AACzC,uDAAqC;AACrC,qDAAmC;AACnC,6DAA2C;AAC3C,gDAA8B"}
|
@@ -1,8 +1,10 @@
|
|
1
1
|
import { JsonRpcProvider } from '@ethersproject/providers';
|
2
2
|
import { BigNumber } from 'ethers';
|
3
3
|
import { SupportedDex, UserAmounts, UserAmountsBN, UserAmountsInVault, UserAmountsInVaultBN, UserBalanceInVault, UserBalanceInVaultBN } from '../types';
|
4
|
+
import { UserBalancesQueryData } from '../types/vaultQueryData';
|
4
5
|
export declare function getUserBalance(accountAddress: string, vaultAddress: string, jsonProvider: JsonRpcProvider, dex: SupportedDex): Promise<string>;
|
5
6
|
export declare function getUserBalance(accountAddress: string, vaultAddress: string, jsonProvider: JsonRpcProvider, dex: SupportedDex, raw: true): Promise<BigNumber>;
|
7
|
+
export declare function sendUserBalancesQueryRequest(url: string, accountAddress: string, query: string): Promise<UserBalancesQueryData['user']>;
|
6
8
|
export declare function getAllUserBalances(accountAddress: string, jsonProvider: JsonRpcProvider, dex: SupportedDex): Promise<UserBalanceInVault[]>;
|
7
9
|
export declare function getAllUserBalances(accountAddress: string, jsonProvider: JsonRpcProvider, dex: SupportedDex, raw: true): Promise<UserBalanceInVaultBN[]>;
|
8
10
|
export declare function getUserAmounts(accountAddress: string, vaultAddress: string, jsonProvider: JsonRpcProvider, dex: SupportedDex): Promise<UserAmounts>;
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { JsonRpcProvider } from '@ethersproject/providers';
|
2
|
+
import { SupportedDex } from '../types';
|
3
|
+
export type VaultPositionsInfo = {
|
4
|
+
currentTick: number;
|
5
|
+
currentPrice: number;
|
6
|
+
positions: {
|
7
|
+
tickLower: number;
|
8
|
+
tickUpper: number;
|
9
|
+
priceLower: number;
|
10
|
+
priceUpper: number;
|
11
|
+
liquidity: string;
|
12
|
+
amountToken0: string;
|
13
|
+
amountToken1: string;
|
14
|
+
positionTvl: number;
|
15
|
+
}[];
|
16
|
+
};
|
17
|
+
export declare function getVaultPositions(vaultAddress: string, jsonProvider: JsonRpcProvider, dex: SupportedDex): Promise<VaultPositionsInfo>;
|
package/dist/src/src/index.d.ts
CHANGED
@@ -8,4 +8,6 @@ export * from './functions/calculateDtr';
|
|
8
8
|
export * from './functions/calculateApr';
|
9
9
|
export * from './functions/vaultMetrics';
|
10
10
|
export * from './functions/vaultTvl';
|
11
|
+
export * from './functions/chains';
|
12
|
+
export * from './functions/vaultPositions';
|
11
13
|
export * from './types/index';
|