@voltr/vault-sdk 0.2.0 → 1.0.0
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 +33 -6
- package/dist/client.d.ts +153 -32
- package/dist/client.js +205 -47
- package/dist/constants.d.ts +6 -2
- package/dist/constants.js +8 -3
- package/dist/idl/voltr_vault.json +772 -63
- package/dist/types/vault.d.ts +4 -4
- package/dist/types/voltr_vault.d.ts +771 -62
- package/package.json +4 -2
|
@@ -106,6 +106,263 @@
|
|
|
106
106
|
],
|
|
107
107
|
"args": []
|
|
108
108
|
},
|
|
109
|
+
{
|
|
110
|
+
"name": "cancel_request_withdraw_vault",
|
|
111
|
+
"discriminator": [
|
|
112
|
+
231,
|
|
113
|
+
54,
|
|
114
|
+
14,
|
|
115
|
+
6,
|
|
116
|
+
223,
|
|
117
|
+
124,
|
|
118
|
+
127,
|
|
119
|
+
238
|
|
120
|
+
],
|
|
121
|
+
"accounts": [
|
|
122
|
+
{
|
|
123
|
+
"name": "user_transfer_authority",
|
|
124
|
+
"docs": [
|
|
125
|
+
"The authority that owns the LP tokens and wants to redeem them"
|
|
126
|
+
],
|
|
127
|
+
"writable": true,
|
|
128
|
+
"signer": true
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"name": "protocol",
|
|
132
|
+
"pda": {
|
|
133
|
+
"seeds": [
|
|
134
|
+
{
|
|
135
|
+
"kind": "const",
|
|
136
|
+
"value": [
|
|
137
|
+
112,
|
|
138
|
+
114,
|
|
139
|
+
111,
|
|
140
|
+
116,
|
|
141
|
+
111,
|
|
142
|
+
99,
|
|
143
|
+
111,
|
|
144
|
+
108
|
|
145
|
+
]
|
|
146
|
+
}
|
|
147
|
+
]
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"name": "vault",
|
|
152
|
+
"writable": true
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"name": "vault_lp_mint",
|
|
156
|
+
"writable": true,
|
|
157
|
+
"pda": {
|
|
158
|
+
"seeds": [
|
|
159
|
+
{
|
|
160
|
+
"kind": "const",
|
|
161
|
+
"value": [
|
|
162
|
+
118,
|
|
163
|
+
97,
|
|
164
|
+
117,
|
|
165
|
+
108,
|
|
166
|
+
116,
|
|
167
|
+
95,
|
|
168
|
+
108,
|
|
169
|
+
112,
|
|
170
|
+
95,
|
|
171
|
+
109,
|
|
172
|
+
105,
|
|
173
|
+
110,
|
|
174
|
+
116
|
|
175
|
+
]
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"kind": "account",
|
|
179
|
+
"path": "vault"
|
|
180
|
+
}
|
|
181
|
+
]
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"name": "user_lp_ata",
|
|
186
|
+
"docs": [
|
|
187
|
+
"The user's LP token account from which LP tokens will be burned."
|
|
188
|
+
],
|
|
189
|
+
"writable": true,
|
|
190
|
+
"pda": {
|
|
191
|
+
"seeds": [
|
|
192
|
+
{
|
|
193
|
+
"kind": "account",
|
|
194
|
+
"path": "user_transfer_authority"
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"kind": "account",
|
|
198
|
+
"path": "lp_token_program"
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"kind": "account",
|
|
202
|
+
"path": "vault_lp_mint"
|
|
203
|
+
}
|
|
204
|
+
],
|
|
205
|
+
"program": {
|
|
206
|
+
"kind": "const",
|
|
207
|
+
"value": [
|
|
208
|
+
140,
|
|
209
|
+
151,
|
|
210
|
+
37,
|
|
211
|
+
143,
|
|
212
|
+
78,
|
|
213
|
+
36,
|
|
214
|
+
137,
|
|
215
|
+
241,
|
|
216
|
+
187,
|
|
217
|
+
61,
|
|
218
|
+
16,
|
|
219
|
+
41,
|
|
220
|
+
20,
|
|
221
|
+
142,
|
|
222
|
+
13,
|
|
223
|
+
131,
|
|
224
|
+
11,
|
|
225
|
+
90,
|
|
226
|
+
19,
|
|
227
|
+
153,
|
|
228
|
+
218,
|
|
229
|
+
255,
|
|
230
|
+
16,
|
|
231
|
+
132,
|
|
232
|
+
4,
|
|
233
|
+
142,
|
|
234
|
+
123,
|
|
235
|
+
216,
|
|
236
|
+
219,
|
|
237
|
+
233,
|
|
238
|
+
248,
|
|
239
|
+
89
|
|
240
|
+
]
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"name": "request_withdraw_lp_ata",
|
|
246
|
+
"docs": [
|
|
247
|
+
"The request's associated token account for LP."
|
|
248
|
+
],
|
|
249
|
+
"writable": true,
|
|
250
|
+
"pda": {
|
|
251
|
+
"seeds": [
|
|
252
|
+
{
|
|
253
|
+
"kind": "account",
|
|
254
|
+
"path": "request_withdraw_vault_receipt"
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
"kind": "account",
|
|
258
|
+
"path": "lp_token_program"
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"kind": "account",
|
|
262
|
+
"path": "vault_lp_mint"
|
|
263
|
+
}
|
|
264
|
+
],
|
|
265
|
+
"program": {
|
|
266
|
+
"kind": "const",
|
|
267
|
+
"value": [
|
|
268
|
+
140,
|
|
269
|
+
151,
|
|
270
|
+
37,
|
|
271
|
+
143,
|
|
272
|
+
78,
|
|
273
|
+
36,
|
|
274
|
+
137,
|
|
275
|
+
241,
|
|
276
|
+
187,
|
|
277
|
+
61,
|
|
278
|
+
16,
|
|
279
|
+
41,
|
|
280
|
+
20,
|
|
281
|
+
142,
|
|
282
|
+
13,
|
|
283
|
+
131,
|
|
284
|
+
11,
|
|
285
|
+
90,
|
|
286
|
+
19,
|
|
287
|
+
153,
|
|
288
|
+
218,
|
|
289
|
+
255,
|
|
290
|
+
16,
|
|
291
|
+
132,
|
|
292
|
+
4,
|
|
293
|
+
142,
|
|
294
|
+
123,
|
|
295
|
+
216,
|
|
296
|
+
219,
|
|
297
|
+
233,
|
|
298
|
+
248,
|
|
299
|
+
89
|
|
300
|
+
]
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
"name": "request_withdraw_vault_receipt",
|
|
306
|
+
"writable": true,
|
|
307
|
+
"pda": {
|
|
308
|
+
"seeds": [
|
|
309
|
+
{
|
|
310
|
+
"kind": "const",
|
|
311
|
+
"value": [
|
|
312
|
+
114,
|
|
313
|
+
101,
|
|
314
|
+
113,
|
|
315
|
+
117,
|
|
316
|
+
101,
|
|
317
|
+
115,
|
|
318
|
+
116,
|
|
319
|
+
95,
|
|
320
|
+
119,
|
|
321
|
+
105,
|
|
322
|
+
116,
|
|
323
|
+
104,
|
|
324
|
+
100,
|
|
325
|
+
114,
|
|
326
|
+
97,
|
|
327
|
+
119,
|
|
328
|
+
95,
|
|
329
|
+
118,
|
|
330
|
+
97,
|
|
331
|
+
117,
|
|
332
|
+
108,
|
|
333
|
+
116,
|
|
334
|
+
95,
|
|
335
|
+
114,
|
|
336
|
+
101,
|
|
337
|
+
99,
|
|
338
|
+
101,
|
|
339
|
+
105,
|
|
340
|
+
112,
|
|
341
|
+
116
|
|
342
|
+
]
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
"kind": "account",
|
|
346
|
+
"path": "vault"
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
"kind": "account",
|
|
350
|
+
"path": "user_transfer_authority"
|
|
351
|
+
}
|
|
352
|
+
]
|
|
353
|
+
}
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
"name": "lp_token_program",
|
|
357
|
+
"address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
"name": "system_program",
|
|
361
|
+
"address": "11111111111111111111111111111111"
|
|
362
|
+
}
|
|
363
|
+
],
|
|
364
|
+
"args": []
|
|
365
|
+
},
|
|
109
366
|
{
|
|
110
367
|
"name": "deposit_strategy",
|
|
111
368
|
"discriminator": [
|
|
@@ -1044,16 +1301,16 @@
|
|
|
1044
1301
|
}
|
|
1045
1302
|
},
|
|
1046
1303
|
{
|
|
1047
|
-
"name": "
|
|
1304
|
+
"name": "request_withdraw_lp_ata",
|
|
1048
1305
|
"docs": [
|
|
1049
|
-
"The
|
|
1306
|
+
"The request's LP token account from which LP tokens will be burned."
|
|
1050
1307
|
],
|
|
1051
1308
|
"writable": true,
|
|
1052
1309
|
"pda": {
|
|
1053
1310
|
"seeds": [
|
|
1054
1311
|
{
|
|
1055
1312
|
"kind": "account",
|
|
1056
|
-
"path": "
|
|
1313
|
+
"path": "request_withdraw_vault_receipt"
|
|
1057
1314
|
},
|
|
1058
1315
|
{
|
|
1059
1316
|
"kind": "account",
|
|
@@ -1260,6 +1517,57 @@
|
|
|
1260
1517
|
}
|
|
1261
1518
|
}
|
|
1262
1519
|
},
|
|
1520
|
+
{
|
|
1521
|
+
"name": "request_withdraw_vault_receipt",
|
|
1522
|
+
"writable": true,
|
|
1523
|
+
"pda": {
|
|
1524
|
+
"seeds": [
|
|
1525
|
+
{
|
|
1526
|
+
"kind": "const",
|
|
1527
|
+
"value": [
|
|
1528
|
+
114,
|
|
1529
|
+
101,
|
|
1530
|
+
113,
|
|
1531
|
+
117,
|
|
1532
|
+
101,
|
|
1533
|
+
115,
|
|
1534
|
+
116,
|
|
1535
|
+
95,
|
|
1536
|
+
119,
|
|
1537
|
+
105,
|
|
1538
|
+
116,
|
|
1539
|
+
104,
|
|
1540
|
+
100,
|
|
1541
|
+
114,
|
|
1542
|
+
97,
|
|
1543
|
+
119,
|
|
1544
|
+
95,
|
|
1545
|
+
118,
|
|
1546
|
+
97,
|
|
1547
|
+
117,
|
|
1548
|
+
108,
|
|
1549
|
+
116,
|
|
1550
|
+
95,
|
|
1551
|
+
114,
|
|
1552
|
+
101,
|
|
1553
|
+
99,
|
|
1554
|
+
101,
|
|
1555
|
+
105,
|
|
1556
|
+
112,
|
|
1557
|
+
116
|
|
1558
|
+
]
|
|
1559
|
+
},
|
|
1560
|
+
{
|
|
1561
|
+
"kind": "account",
|
|
1562
|
+
"path": "vault"
|
|
1563
|
+
},
|
|
1564
|
+
{
|
|
1565
|
+
"kind": "account",
|
|
1566
|
+
"path": "user_transfer_authority"
|
|
1567
|
+
}
|
|
1568
|
+
]
|
|
1569
|
+
}
|
|
1570
|
+
},
|
|
1263
1571
|
{
|
|
1264
1572
|
"name": "adaptor_program"
|
|
1265
1573
|
},
|
|
@@ -1276,18 +1584,6 @@
|
|
|
1276
1584
|
}
|
|
1277
1585
|
],
|
|
1278
1586
|
"args": [
|
|
1279
|
-
{
|
|
1280
|
-
"name": "amount",
|
|
1281
|
-
"type": "u64"
|
|
1282
|
-
},
|
|
1283
|
-
{
|
|
1284
|
-
"name": "is_amount_in_lp",
|
|
1285
|
-
"type": "bool"
|
|
1286
|
-
},
|
|
1287
|
-
{
|
|
1288
|
-
"name": "is_withdraw_all",
|
|
1289
|
-
"type": "bool"
|
|
1290
|
-
},
|
|
1291
1587
|
{
|
|
1292
1588
|
"name": "user_args",
|
|
1293
1589
|
"type": {
|
|
@@ -1981,48 +2277,309 @@
|
|
|
1981
2277
|
]
|
|
1982
2278
|
},
|
|
1983
2279
|
{
|
|
1984
|
-
"name": "protocol",
|
|
2280
|
+
"name": "protocol",
|
|
2281
|
+
"pda": {
|
|
2282
|
+
"seeds": [
|
|
2283
|
+
{
|
|
2284
|
+
"kind": "const",
|
|
2285
|
+
"value": [
|
|
2286
|
+
112,
|
|
2287
|
+
114,
|
|
2288
|
+
111,
|
|
2289
|
+
116,
|
|
2290
|
+
111,
|
|
2291
|
+
99,
|
|
2292
|
+
111,
|
|
2293
|
+
108
|
|
2294
|
+
]
|
|
2295
|
+
}
|
|
2296
|
+
]
|
|
2297
|
+
}
|
|
2298
|
+
},
|
|
2299
|
+
{
|
|
2300
|
+
"name": "vault",
|
|
2301
|
+
"writable": true
|
|
2302
|
+
},
|
|
2303
|
+
{
|
|
2304
|
+
"name": "adaptor_add_receipt",
|
|
2305
|
+
"writable": true,
|
|
2306
|
+
"pda": {
|
|
2307
|
+
"seeds": [
|
|
2308
|
+
{
|
|
2309
|
+
"kind": "const",
|
|
2310
|
+
"value": [
|
|
2311
|
+
97,
|
|
2312
|
+
100,
|
|
2313
|
+
97,
|
|
2314
|
+
112,
|
|
2315
|
+
116,
|
|
2316
|
+
111,
|
|
2317
|
+
114,
|
|
2318
|
+
95,
|
|
2319
|
+
97,
|
|
2320
|
+
100,
|
|
2321
|
+
100,
|
|
2322
|
+
95,
|
|
2323
|
+
114,
|
|
2324
|
+
101,
|
|
2325
|
+
99,
|
|
2326
|
+
101,
|
|
2327
|
+
105,
|
|
2328
|
+
112,
|
|
2329
|
+
116
|
|
2330
|
+
]
|
|
2331
|
+
},
|
|
2332
|
+
{
|
|
2333
|
+
"kind": "account",
|
|
2334
|
+
"path": "vault"
|
|
2335
|
+
},
|
|
2336
|
+
{
|
|
2337
|
+
"kind": "account",
|
|
2338
|
+
"path": "adaptor_program"
|
|
2339
|
+
}
|
|
2340
|
+
]
|
|
2341
|
+
}
|
|
2342
|
+
},
|
|
2343
|
+
{
|
|
2344
|
+
"name": "adaptor_program"
|
|
2345
|
+
},
|
|
2346
|
+
{
|
|
2347
|
+
"name": "system_program",
|
|
2348
|
+
"address": "11111111111111111111111111111111"
|
|
2349
|
+
}
|
|
2350
|
+
],
|
|
2351
|
+
"args": []
|
|
2352
|
+
},
|
|
2353
|
+
{
|
|
2354
|
+
"name": "request_withdraw_vault",
|
|
2355
|
+
"discriminator": [
|
|
2356
|
+
248,
|
|
2357
|
+
225,
|
|
2358
|
+
47,
|
|
2359
|
+
22,
|
|
2360
|
+
116,
|
|
2361
|
+
144,
|
|
2362
|
+
23,
|
|
2363
|
+
143
|
|
2364
|
+
],
|
|
2365
|
+
"accounts": [
|
|
2366
|
+
{
|
|
2367
|
+
"name": "payer",
|
|
2368
|
+
"docs": [
|
|
2369
|
+
"The payer of the request"
|
|
2370
|
+
],
|
|
2371
|
+
"writable": true,
|
|
2372
|
+
"signer": true
|
|
2373
|
+
},
|
|
2374
|
+
{
|
|
2375
|
+
"name": "user_transfer_authority",
|
|
2376
|
+
"docs": [
|
|
2377
|
+
"The authority that owns the LP tokens and wants to redeem them"
|
|
2378
|
+
],
|
|
2379
|
+
"signer": true
|
|
2380
|
+
},
|
|
2381
|
+
{
|
|
2382
|
+
"name": "protocol",
|
|
2383
|
+
"pda": {
|
|
2384
|
+
"seeds": [
|
|
2385
|
+
{
|
|
2386
|
+
"kind": "const",
|
|
2387
|
+
"value": [
|
|
2388
|
+
112,
|
|
2389
|
+
114,
|
|
2390
|
+
111,
|
|
2391
|
+
116,
|
|
2392
|
+
111,
|
|
2393
|
+
99,
|
|
2394
|
+
111,
|
|
2395
|
+
108
|
|
2396
|
+
]
|
|
2397
|
+
}
|
|
2398
|
+
]
|
|
2399
|
+
}
|
|
2400
|
+
},
|
|
2401
|
+
{
|
|
2402
|
+
"name": "vault"
|
|
2403
|
+
},
|
|
2404
|
+
{
|
|
2405
|
+
"name": "vault_lp_mint",
|
|
2406
|
+
"pda": {
|
|
2407
|
+
"seeds": [
|
|
2408
|
+
{
|
|
2409
|
+
"kind": "const",
|
|
2410
|
+
"value": [
|
|
2411
|
+
118,
|
|
2412
|
+
97,
|
|
2413
|
+
117,
|
|
2414
|
+
108,
|
|
2415
|
+
116,
|
|
2416
|
+
95,
|
|
2417
|
+
108,
|
|
2418
|
+
112,
|
|
2419
|
+
95,
|
|
2420
|
+
109,
|
|
2421
|
+
105,
|
|
2422
|
+
110,
|
|
2423
|
+
116
|
|
2424
|
+
]
|
|
2425
|
+
},
|
|
2426
|
+
{
|
|
2427
|
+
"kind": "account",
|
|
2428
|
+
"path": "vault"
|
|
2429
|
+
}
|
|
2430
|
+
]
|
|
2431
|
+
}
|
|
2432
|
+
},
|
|
2433
|
+
{
|
|
2434
|
+
"name": "user_lp_ata",
|
|
2435
|
+
"docs": [
|
|
2436
|
+
"The user's LP token account from which LP tokens will be burned."
|
|
2437
|
+
],
|
|
2438
|
+
"writable": true,
|
|
2439
|
+
"pda": {
|
|
2440
|
+
"seeds": [
|
|
2441
|
+
{
|
|
2442
|
+
"kind": "account",
|
|
2443
|
+
"path": "user_transfer_authority"
|
|
2444
|
+
},
|
|
2445
|
+
{
|
|
2446
|
+
"kind": "account",
|
|
2447
|
+
"path": "lp_token_program"
|
|
2448
|
+
},
|
|
2449
|
+
{
|
|
2450
|
+
"kind": "account",
|
|
2451
|
+
"path": "vault_lp_mint"
|
|
2452
|
+
}
|
|
2453
|
+
],
|
|
2454
|
+
"program": {
|
|
2455
|
+
"kind": "const",
|
|
2456
|
+
"value": [
|
|
2457
|
+
140,
|
|
2458
|
+
151,
|
|
2459
|
+
37,
|
|
2460
|
+
143,
|
|
2461
|
+
78,
|
|
2462
|
+
36,
|
|
2463
|
+
137,
|
|
2464
|
+
241,
|
|
2465
|
+
187,
|
|
2466
|
+
61,
|
|
2467
|
+
16,
|
|
2468
|
+
41,
|
|
2469
|
+
20,
|
|
2470
|
+
142,
|
|
2471
|
+
13,
|
|
2472
|
+
131,
|
|
2473
|
+
11,
|
|
2474
|
+
90,
|
|
2475
|
+
19,
|
|
2476
|
+
153,
|
|
2477
|
+
218,
|
|
2478
|
+
255,
|
|
2479
|
+
16,
|
|
2480
|
+
132,
|
|
2481
|
+
4,
|
|
2482
|
+
142,
|
|
2483
|
+
123,
|
|
2484
|
+
216,
|
|
2485
|
+
219,
|
|
2486
|
+
233,
|
|
2487
|
+
248,
|
|
2488
|
+
89
|
|
2489
|
+
]
|
|
2490
|
+
}
|
|
2491
|
+
}
|
|
2492
|
+
},
|
|
2493
|
+
{
|
|
2494
|
+
"name": "request_withdraw_lp_ata",
|
|
2495
|
+
"docs": [
|
|
2496
|
+
"The request's associated token account for LP."
|
|
2497
|
+
],
|
|
2498
|
+
"writable": true,
|
|
1985
2499
|
"pda": {
|
|
1986
2500
|
"seeds": [
|
|
1987
2501
|
{
|
|
1988
|
-
"kind": "
|
|
1989
|
-
"
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
]
|
|
2502
|
+
"kind": "account",
|
|
2503
|
+
"path": "request_withdraw_vault_receipt"
|
|
2504
|
+
},
|
|
2505
|
+
{
|
|
2506
|
+
"kind": "account",
|
|
2507
|
+
"path": "lp_token_program"
|
|
2508
|
+
},
|
|
2509
|
+
{
|
|
2510
|
+
"kind": "account",
|
|
2511
|
+
"path": "vault_lp_mint"
|
|
1999
2512
|
}
|
|
2000
|
-
]
|
|
2513
|
+
],
|
|
2514
|
+
"program": {
|
|
2515
|
+
"kind": "const",
|
|
2516
|
+
"value": [
|
|
2517
|
+
140,
|
|
2518
|
+
151,
|
|
2519
|
+
37,
|
|
2520
|
+
143,
|
|
2521
|
+
78,
|
|
2522
|
+
36,
|
|
2523
|
+
137,
|
|
2524
|
+
241,
|
|
2525
|
+
187,
|
|
2526
|
+
61,
|
|
2527
|
+
16,
|
|
2528
|
+
41,
|
|
2529
|
+
20,
|
|
2530
|
+
142,
|
|
2531
|
+
13,
|
|
2532
|
+
131,
|
|
2533
|
+
11,
|
|
2534
|
+
90,
|
|
2535
|
+
19,
|
|
2536
|
+
153,
|
|
2537
|
+
218,
|
|
2538
|
+
255,
|
|
2539
|
+
16,
|
|
2540
|
+
132,
|
|
2541
|
+
4,
|
|
2542
|
+
142,
|
|
2543
|
+
123,
|
|
2544
|
+
216,
|
|
2545
|
+
219,
|
|
2546
|
+
233,
|
|
2547
|
+
248,
|
|
2548
|
+
89
|
|
2549
|
+
]
|
|
2550
|
+
}
|
|
2001
2551
|
}
|
|
2002
2552
|
},
|
|
2003
2553
|
{
|
|
2004
|
-
"name": "
|
|
2005
|
-
"writable": true
|
|
2006
|
-
},
|
|
2007
|
-
{
|
|
2008
|
-
"name": "adaptor_add_receipt",
|
|
2554
|
+
"name": "request_withdraw_vault_receipt",
|
|
2009
2555
|
"writable": true,
|
|
2010
2556
|
"pda": {
|
|
2011
2557
|
"seeds": [
|
|
2012
2558
|
{
|
|
2013
2559
|
"kind": "const",
|
|
2014
2560
|
"value": [
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2561
|
+
114,
|
|
2562
|
+
101,
|
|
2563
|
+
113,
|
|
2564
|
+
117,
|
|
2565
|
+
101,
|
|
2566
|
+
115,
|
|
2019
2567
|
116,
|
|
2020
|
-
|
|
2568
|
+
95,
|
|
2569
|
+
119,
|
|
2570
|
+
105,
|
|
2571
|
+
116,
|
|
2572
|
+
104,
|
|
2573
|
+
100,
|
|
2021
2574
|
114,
|
|
2575
|
+
97,
|
|
2576
|
+
119,
|
|
2022
2577
|
95,
|
|
2578
|
+
118,
|
|
2023
2579
|
97,
|
|
2024
|
-
|
|
2025
|
-
|
|
2580
|
+
117,
|
|
2581
|
+
108,
|
|
2582
|
+
116,
|
|
2026
2583
|
95,
|
|
2027
2584
|
114,
|
|
2028
2585
|
101,
|
|
@@ -2039,20 +2596,34 @@
|
|
|
2039
2596
|
},
|
|
2040
2597
|
{
|
|
2041
2598
|
"kind": "account",
|
|
2042
|
-
"path": "
|
|
2599
|
+
"path": "user_transfer_authority"
|
|
2043
2600
|
}
|
|
2044
2601
|
]
|
|
2045
2602
|
}
|
|
2046
2603
|
},
|
|
2047
2604
|
{
|
|
2048
|
-
"name": "
|
|
2605
|
+
"name": "lp_token_program",
|
|
2606
|
+
"address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
|
|
2049
2607
|
},
|
|
2050
2608
|
{
|
|
2051
2609
|
"name": "system_program",
|
|
2052
2610
|
"address": "11111111111111111111111111111111"
|
|
2053
2611
|
}
|
|
2054
2612
|
],
|
|
2055
|
-
"args": [
|
|
2613
|
+
"args": [
|
|
2614
|
+
{
|
|
2615
|
+
"name": "amount",
|
|
2616
|
+
"type": "u64"
|
|
2617
|
+
},
|
|
2618
|
+
{
|
|
2619
|
+
"name": "is_amount_in_lp",
|
|
2620
|
+
"type": "bool"
|
|
2621
|
+
},
|
|
2622
|
+
{
|
|
2623
|
+
"name": "is_withdraw_all",
|
|
2624
|
+
"type": "bool"
|
|
2625
|
+
}
|
|
2626
|
+
]
|
|
2056
2627
|
},
|
|
2057
2628
|
{
|
|
2058
2629
|
"name": "update_vault",
|
|
@@ -2572,16 +3143,16 @@
|
|
|
2572
3143
|
}
|
|
2573
3144
|
},
|
|
2574
3145
|
{
|
|
2575
|
-
"name": "
|
|
3146
|
+
"name": "request_withdraw_lp_ata",
|
|
2576
3147
|
"docs": [
|
|
2577
|
-
"The
|
|
3148
|
+
"The request's LP token account from which LP tokens will be burned."
|
|
2578
3149
|
],
|
|
2579
3150
|
"writable": true,
|
|
2580
3151
|
"pda": {
|
|
2581
3152
|
"seeds": [
|
|
2582
3153
|
{
|
|
2583
3154
|
"kind": "account",
|
|
2584
|
-
"path": "
|
|
3155
|
+
"path": "request_withdraw_vault_receipt"
|
|
2585
3156
|
},
|
|
2586
3157
|
{
|
|
2587
3158
|
"kind": "account",
|
|
@@ -2789,6 +3360,57 @@
|
|
|
2789
3360
|
}
|
|
2790
3361
|
}
|
|
2791
3362
|
},
|
|
3363
|
+
{
|
|
3364
|
+
"name": "request_withdraw_vault_receipt",
|
|
3365
|
+
"writable": true,
|
|
3366
|
+
"pda": {
|
|
3367
|
+
"seeds": [
|
|
3368
|
+
{
|
|
3369
|
+
"kind": "const",
|
|
3370
|
+
"value": [
|
|
3371
|
+
114,
|
|
3372
|
+
101,
|
|
3373
|
+
113,
|
|
3374
|
+
117,
|
|
3375
|
+
101,
|
|
3376
|
+
115,
|
|
3377
|
+
116,
|
|
3378
|
+
95,
|
|
3379
|
+
119,
|
|
3380
|
+
105,
|
|
3381
|
+
116,
|
|
3382
|
+
104,
|
|
3383
|
+
100,
|
|
3384
|
+
114,
|
|
3385
|
+
97,
|
|
3386
|
+
119,
|
|
3387
|
+
95,
|
|
3388
|
+
118,
|
|
3389
|
+
97,
|
|
3390
|
+
117,
|
|
3391
|
+
108,
|
|
3392
|
+
116,
|
|
3393
|
+
95,
|
|
3394
|
+
114,
|
|
3395
|
+
101,
|
|
3396
|
+
99,
|
|
3397
|
+
101,
|
|
3398
|
+
105,
|
|
3399
|
+
112,
|
|
3400
|
+
116
|
|
3401
|
+
]
|
|
3402
|
+
},
|
|
3403
|
+
{
|
|
3404
|
+
"kind": "account",
|
|
3405
|
+
"path": "vault"
|
|
3406
|
+
},
|
|
3407
|
+
{
|
|
3408
|
+
"kind": "account",
|
|
3409
|
+
"path": "user_transfer_authority"
|
|
3410
|
+
}
|
|
3411
|
+
]
|
|
3412
|
+
}
|
|
3413
|
+
},
|
|
2792
3414
|
{
|
|
2793
3415
|
"name": "asset_token_program"
|
|
2794
3416
|
},
|
|
@@ -2801,20 +3423,7 @@
|
|
|
2801
3423
|
"address": "11111111111111111111111111111111"
|
|
2802
3424
|
}
|
|
2803
3425
|
],
|
|
2804
|
-
"args": [
|
|
2805
|
-
{
|
|
2806
|
-
"name": "amount",
|
|
2807
|
-
"type": "u64"
|
|
2808
|
-
},
|
|
2809
|
-
{
|
|
2810
|
-
"name": "amount_in_lp",
|
|
2811
|
-
"type": "bool"
|
|
2812
|
-
},
|
|
2813
|
-
{
|
|
2814
|
-
"name": "withdraw_all",
|
|
2815
|
-
"type": "bool"
|
|
2816
|
-
}
|
|
2817
|
-
]
|
|
3426
|
+
"args": []
|
|
2818
3427
|
}
|
|
2819
3428
|
],
|
|
2820
3429
|
"accounts": [
|
|
@@ -2857,6 +3466,19 @@
|
|
|
2857
3466
|
40
|
|
2858
3467
|
]
|
|
2859
3468
|
},
|
|
3469
|
+
{
|
|
3470
|
+
"name": "RequestWithdrawVaultReceipt",
|
|
3471
|
+
"discriminator": [
|
|
3472
|
+
203,
|
|
3473
|
+
81,
|
|
3474
|
+
223,
|
|
3475
|
+
141,
|
|
3476
|
+
175,
|
|
3477
|
+
108,
|
|
3478
|
+
101,
|
|
3479
|
+
114
|
|
3480
|
+
]
|
|
3481
|
+
},
|
|
2860
3482
|
{
|
|
2861
3483
|
"name": "StrategyInitReceipt",
|
|
2862
3484
|
"discriminator": [
|
|
@@ -2959,6 +3581,11 @@
|
|
|
2959
3581
|
"code": 6014,
|
|
2960
3582
|
"name": "InvalidFeeConfiguration",
|
|
2961
3583
|
"msg": "Fee configuration invalid."
|
|
3584
|
+
},
|
|
3585
|
+
{
|
|
3586
|
+
"code": 6015,
|
|
3587
|
+
"name": "WithdrawalNotYetAvailable",
|
|
3588
|
+
"msg": "Withdrawal not yet available."
|
|
2962
3589
|
}
|
|
2963
3590
|
],
|
|
2964
3591
|
"types": [
|
|
@@ -3140,6 +3767,20 @@
|
|
|
3140
3767
|
],
|
|
3141
3768
|
"type": "u16"
|
|
3142
3769
|
},
|
|
3770
|
+
{
|
|
3771
|
+
"name": "redemption_fee",
|
|
3772
|
+
"docs": [
|
|
3773
|
+
"The redemption fee in basis points (BPS)."
|
|
3774
|
+
],
|
|
3775
|
+
"type": "u16"
|
|
3776
|
+
},
|
|
3777
|
+
{
|
|
3778
|
+
"name": "issuance_fee",
|
|
3779
|
+
"docs": [
|
|
3780
|
+
"The issuance fee in basis points (BPS)."
|
|
3781
|
+
],
|
|
3782
|
+
"type": "u16"
|
|
3783
|
+
},
|
|
3143
3784
|
{
|
|
3144
3785
|
"name": "reserved",
|
|
3145
3786
|
"docs": [
|
|
@@ -3148,7 +3789,7 @@
|
|
|
3148
3789
|
"type": {
|
|
3149
3790
|
"array": [
|
|
3150
3791
|
"u8",
|
|
3151
|
-
|
|
3792
|
+
52
|
|
3152
3793
|
]
|
|
3153
3794
|
}
|
|
3154
3795
|
}
|
|
@@ -3210,7 +3851,7 @@
|
|
|
3210
3851
|
"kind": "struct",
|
|
3211
3852
|
"fields": [
|
|
3212
3853
|
{
|
|
3213
|
-
"name": "
|
|
3854
|
+
"name": "highest_asset_per_lp_decimal_bits",
|
|
3214
3855
|
"docs": [
|
|
3215
3856
|
"The highest recorded total asset value per share"
|
|
3216
3857
|
],
|
|
@@ -3322,6 +3963,46 @@
|
|
|
3322
3963
|
]
|
|
3323
3964
|
}
|
|
3324
3965
|
},
|
|
3966
|
+
{
|
|
3967
|
+
"name": "RequestWithdrawVaultReceipt",
|
|
3968
|
+
"serialization": "bytemuckunsafe",
|
|
3969
|
+
"repr": {
|
|
3970
|
+
"kind": "c"
|
|
3971
|
+
},
|
|
3972
|
+
"type": {
|
|
3973
|
+
"kind": "struct",
|
|
3974
|
+
"fields": [
|
|
3975
|
+
{
|
|
3976
|
+
"name": "vault",
|
|
3977
|
+
"type": "pubkey"
|
|
3978
|
+
},
|
|
3979
|
+
{
|
|
3980
|
+
"name": "user",
|
|
3981
|
+
"type": "pubkey"
|
|
3982
|
+
},
|
|
3983
|
+
{
|
|
3984
|
+
"name": "amount_lp_escrowed",
|
|
3985
|
+
"type": "u64"
|
|
3986
|
+
},
|
|
3987
|
+
{
|
|
3988
|
+
"name": "amount_asset_to_withdraw_decimal_bits",
|
|
3989
|
+
"type": "u128"
|
|
3990
|
+
},
|
|
3991
|
+
{
|
|
3992
|
+
"name": "withdrawable_from_ts",
|
|
3993
|
+
"type": "u64"
|
|
3994
|
+
},
|
|
3995
|
+
{
|
|
3996
|
+
"name": "bump",
|
|
3997
|
+
"type": "u8"
|
|
3998
|
+
},
|
|
3999
|
+
{
|
|
4000
|
+
"name": "version",
|
|
4001
|
+
"type": "u8"
|
|
4002
|
+
}
|
|
4003
|
+
]
|
|
4004
|
+
}
|
|
4005
|
+
},
|
|
3325
4006
|
{
|
|
3326
4007
|
"name": "StrategyInitReceipt",
|
|
3327
4008
|
"serialization": "bytemuckunsafe",
|
|
@@ -3658,6 +4339,13 @@
|
|
|
3658
4339
|
],
|
|
3659
4340
|
"type": "u64"
|
|
3660
4341
|
},
|
|
4342
|
+
{
|
|
4343
|
+
"name": "withdrawal_waiting_period",
|
|
4344
|
+
"docs": [
|
|
4345
|
+
"The waiting period for a withdrawal. prec: seconds"
|
|
4346
|
+
],
|
|
4347
|
+
"type": "u64"
|
|
4348
|
+
},
|
|
3661
4349
|
{
|
|
3662
4350
|
"name": "reserved",
|
|
3663
4351
|
"docs": [
|
|
@@ -3666,7 +4354,7 @@
|
|
|
3666
4354
|
"type": {
|
|
3667
4355
|
"array": [
|
|
3668
4356
|
"u8",
|
|
3669
|
-
|
|
4357
|
+
48
|
|
3670
4358
|
]
|
|
3671
4359
|
}
|
|
3672
4360
|
}
|
|
@@ -3726,6 +4414,27 @@
|
|
|
3726
4414
|
"The locked profit degradation duration."
|
|
3727
4415
|
],
|
|
3728
4416
|
"type": "u64"
|
|
4417
|
+
},
|
|
4418
|
+
{
|
|
4419
|
+
"name": "redemption_fee",
|
|
4420
|
+
"docs": [
|
|
4421
|
+
"The redemption fee in basis points (BPS)."
|
|
4422
|
+
],
|
|
4423
|
+
"type": "u16"
|
|
4424
|
+
},
|
|
4425
|
+
{
|
|
4426
|
+
"name": "issuance_fee",
|
|
4427
|
+
"docs": [
|
|
4428
|
+
"The issuance fee in basis points (BPS)."
|
|
4429
|
+
],
|
|
4430
|
+
"type": "u16"
|
|
4431
|
+
},
|
|
4432
|
+
{
|
|
4433
|
+
"name": "withdrawal_waiting_period",
|
|
4434
|
+
"docs": [
|
|
4435
|
+
"The waiting period for a withdrawal."
|
|
4436
|
+
],
|
|
4437
|
+
"type": "u64"
|
|
3729
4438
|
}
|
|
3730
4439
|
]
|
|
3731
4440
|
}
|