@xitadel-fi/sdk 0.1.9 → 0.2.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/dist/sdk/src/program.js +22 -0
- package/dist/target/idl/xitadel.json +215 -6
- package/dist/target/types/xitadel.d.ts +209 -0
- package/package.json +1 -1
package/dist/sdk/src/program.js
CHANGED
|
@@ -198,9 +198,11 @@ class XitadelProgram {
|
|
|
198
198
|
const createInvestorLTTAtaIx = (0, spl_token_1.createAssociatedTokenAccountInstruction)(investor, investorLTTAta, investor, lttId);
|
|
199
199
|
instructions.push(createInvestorLTTAtaIx);
|
|
200
200
|
}
|
|
201
|
+
const configPda = this.getConfigPda();
|
|
201
202
|
instructions.push(await this.program.methods
|
|
202
203
|
.fundLtt(fundingAmount)
|
|
203
204
|
.accountsPartial({
|
|
205
|
+
config: configPda,
|
|
204
206
|
investor,
|
|
205
207
|
lttConfiguration: lttConfigPda,
|
|
206
208
|
fundingVaultAta,
|
|
@@ -225,9 +227,11 @@ class XitadelProgram {
|
|
|
225
227
|
const lttConfigPda = this.getLTTConfigPda(lttId);
|
|
226
228
|
const lttConfig = await this.program.account.lttConfiguration.fetch(lttConfigPda);
|
|
227
229
|
const collateralVaultAta = (0, spl_token_1.getAssociatedTokenAddressSync)(lttConfig.collateralTokenMint, lttConfigPda, true);
|
|
230
|
+
const configPda = this.getConfigPda();
|
|
228
231
|
return this.program.methods
|
|
229
232
|
.activateLiquidation(Buffer.from(signedReport))
|
|
230
233
|
.accountsPartial({
|
|
234
|
+
config: configPda,
|
|
231
235
|
lttConfiguration: lttConfigPda,
|
|
232
236
|
priceFeed: pricefeed,
|
|
233
237
|
signer: keeperBot,
|
|
@@ -255,9 +259,11 @@ class XitadelProgram {
|
|
|
255
259
|
const lttConfigPda = this.getLTTConfigPda(lttId);
|
|
256
260
|
const lttConfig = await this.program.account.lttConfiguration.fetch(lttConfigPda);
|
|
257
261
|
const collateralVaultAta = (0, spl_token_1.getAssociatedTokenAddressSync)(lttConfig.collateralTokenMint, lttConfigPda, true);
|
|
262
|
+
const configPda = this.getConfigPda();
|
|
258
263
|
return this.program.methods
|
|
259
264
|
.executeLiquidation(Buffer.from(signedReport))
|
|
260
265
|
.accountsPartial({
|
|
266
|
+
config: configPda,
|
|
261
267
|
priceFeed,
|
|
262
268
|
lttConfiguration: lttConfigPda,
|
|
263
269
|
signer: keeperBot,
|
|
@@ -293,9 +299,11 @@ class XitadelProgram {
|
|
|
293
299
|
if (needsCreate) {
|
|
294
300
|
instructions.push((0, spl_token_1.createAssociatedTokenAccountInstruction)(withdrawer, withdrawerCollateralAta, withdrawer, lttConfig.collateralTokenMint));
|
|
295
301
|
}
|
|
302
|
+
const configPda = this.getConfigPda();
|
|
296
303
|
instructions.push(await this.program.methods
|
|
297
304
|
.withdrawCollateral(amount, Buffer.from(signedReport))
|
|
298
305
|
.accountsPartial({
|
|
306
|
+
config: configPda,
|
|
299
307
|
lttConfiguration: lttConfigPda,
|
|
300
308
|
issuer: withdrawer,
|
|
301
309
|
collateralVaultAta,
|
|
@@ -326,9 +334,11 @@ class XitadelProgram {
|
|
|
326
334
|
const lttConfig = await this.program.account.lttConfiguration.fetch(lttConfigPda);
|
|
327
335
|
const fundingVaultAta = (0, spl_token_1.getAssociatedTokenAddressSync)(lttConfig.fundingTokenMint, lttConfigPda, true);
|
|
328
336
|
const withdrawerFundingAta = (0, spl_token_1.getAssociatedTokenAddressSync)(lttConfig.fundingTokenMint, withdrawer, true);
|
|
337
|
+
const configPda = this.getConfigPda();
|
|
329
338
|
return this.program.methods
|
|
330
339
|
.withdrawUsdc(amount)
|
|
331
340
|
.accountsPartial({
|
|
341
|
+
config: configPda,
|
|
332
342
|
lttConfiguration: lttConfigPda,
|
|
333
343
|
issuer: withdrawer,
|
|
334
344
|
fundingVaultAta,
|
|
@@ -379,9 +389,11 @@ class XitadelProgram {
|
|
|
379
389
|
if (investorCollateralAtaInfo == null) {
|
|
380
390
|
instructions.push((0, spl_token_1.createAssociatedTokenAccountInstruction)(investor, investorCollateralAta, investor, lttConfig.collateralTokenMint));
|
|
381
391
|
}
|
|
392
|
+
const configPda = this.getConfigPda();
|
|
382
393
|
instructions.push(await this.program.methods
|
|
383
394
|
.redeem(amount)
|
|
384
395
|
.accountsPartial({
|
|
396
|
+
config: configPda,
|
|
385
397
|
investor: investor,
|
|
386
398
|
lttConfiguration: lttConfigPda,
|
|
387
399
|
fundingVaultAta,
|
|
@@ -411,9 +423,11 @@ class XitadelProgram {
|
|
|
411
423
|
const lttConfig = await this.program.account.lttConfiguration.fetch(lttConfigPda);
|
|
412
424
|
const fundingVaultAta = (0, spl_token_1.getAssociatedTokenAddressSync)(lttConfig.fundingTokenMint, lttConfigPda, true);
|
|
413
425
|
const collateralVaultAta = (0, spl_token_1.getAssociatedTokenAddressSync)(lttConfig.collateralTokenMint, lttConfigPda, true);
|
|
426
|
+
const configPda = this.getConfigPda();
|
|
414
427
|
return this.program.methods
|
|
415
428
|
.updateLttStatus()
|
|
416
429
|
.accountsPartial({
|
|
430
|
+
config: configPda,
|
|
417
431
|
lttConfiguration: lttConfigPda,
|
|
418
432
|
fundingVaultAta,
|
|
419
433
|
collateralVaultAta,
|
|
@@ -484,10 +498,12 @@ class XitadelProgram {
|
|
|
484
498
|
if (positionNftAccountInfo == null) {
|
|
485
499
|
instructions.push((0, spl_token_1.createAssociatedTokenAccountInstruction)(signer, positionNftAccount, lpAuthority, positionNftMint, spl_token_1.TOKEN_2022_PROGRAM_ID));
|
|
486
500
|
}
|
|
501
|
+
const configPda = this.getConfigPda();
|
|
487
502
|
// Add the main deactivate instruction
|
|
488
503
|
instructions.push(await this.program.methods
|
|
489
504
|
.deactivateLtt()
|
|
490
505
|
.accountsPartial({
|
|
506
|
+
config: configPda,
|
|
491
507
|
signer: signer,
|
|
492
508
|
lttConfiguration: lttConfigPda,
|
|
493
509
|
lpAuthority: lpAuthority,
|
|
@@ -623,9 +639,11 @@ class XitadelProgram {
|
|
|
623
639
|
addresses: uniqueAddresses.slice(i, i + chunkSize),
|
|
624
640
|
}));
|
|
625
641
|
}
|
|
642
|
+
const configPda = this.getConfigPda();
|
|
626
643
|
instructions.push(await this.program.methods
|
|
627
644
|
.activateLtt()
|
|
628
645
|
.accountsPartial({
|
|
646
|
+
config: configPda,
|
|
629
647
|
signer: signer,
|
|
630
648
|
lttConfiguration: lttConfigPda,
|
|
631
649
|
lpAuthority,
|
|
@@ -709,9 +727,11 @@ class XitadelProgram {
|
|
|
709
727
|
const [positionNftAccountB] = web3_js_1.PublicKey.findProgramAddressSync([constants_1.POSITION_NFT_ACCOUNT_SEED, positionNftMintB.toBuffer()], cpAmmProgramId);
|
|
710
728
|
const collateralVaultAta = (0, spl_token_1.getAssociatedTokenAddressSync)(lttConfig.collateralTokenMint, lttConfigPda, true);
|
|
711
729
|
const fundingVaultAta = (0, spl_token_1.getAssociatedTokenAddressSync)(lttConfig.fundingTokenMint, lttConfigPda, true);
|
|
730
|
+
const configPda = this.getConfigPda();
|
|
712
731
|
const maturateIx = await this.program.methods
|
|
713
732
|
.maturate()
|
|
714
733
|
.accountsPartial({
|
|
734
|
+
config: configPda,
|
|
715
735
|
signer,
|
|
716
736
|
lpAuthority,
|
|
717
737
|
lttConfiguration: lttConfigPda,
|
|
@@ -752,9 +772,11 @@ class XitadelProgram {
|
|
|
752
772
|
const lttConfigPda = this.getLTTConfigPda(lttId);
|
|
753
773
|
const lttConfig = await this.program.account.lttConfiguration.fetch(lttConfigPda);
|
|
754
774
|
const collateralVaultAta = (0, spl_token_1.getAssociatedTokenAddressSync)(lttConfig.collateralTokenMint, lttConfigPda, true);
|
|
775
|
+
const configPda = this.getConfigPda();
|
|
755
776
|
return this.program.methods
|
|
756
777
|
.stopLiquidation(Buffer.from(signedReport))
|
|
757
778
|
.accountsPartial({
|
|
779
|
+
config: configPda,
|
|
758
780
|
lttConfiguration: lttConfigPda,
|
|
759
781
|
signer: signer,
|
|
760
782
|
priceFeed,
|
|
@@ -20,6 +20,24 @@
|
|
|
20
20
|
18
|
|
21
21
|
],
|
|
22
22
|
"accounts": [
|
|
23
|
+
{
|
|
24
|
+
"name": "config",
|
|
25
|
+
"pda": {
|
|
26
|
+
"seeds": [
|
|
27
|
+
{
|
|
28
|
+
"kind": "const",
|
|
29
|
+
"value": [
|
|
30
|
+
99,
|
|
31
|
+
111,
|
|
32
|
+
110,
|
|
33
|
+
102,
|
|
34
|
+
105,
|
|
35
|
+
103
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
}
|
|
40
|
+
},
|
|
23
41
|
{
|
|
24
42
|
"name": "ltt_configuration",
|
|
25
43
|
"writable": true,
|
|
@@ -200,6 +218,24 @@
|
|
|
200
218
|
92
|
|
201
219
|
],
|
|
202
220
|
"accounts": [
|
|
221
|
+
{
|
|
222
|
+
"name": "config",
|
|
223
|
+
"pda": {
|
|
224
|
+
"seeds": [
|
|
225
|
+
{
|
|
226
|
+
"kind": "const",
|
|
227
|
+
"value": [
|
|
228
|
+
99,
|
|
229
|
+
111,
|
|
230
|
+
110,
|
|
231
|
+
102,
|
|
232
|
+
105,
|
|
233
|
+
103
|
|
234
|
+
]
|
|
235
|
+
}
|
|
236
|
+
]
|
|
237
|
+
}
|
|
238
|
+
},
|
|
203
239
|
{
|
|
204
240
|
"name": "signer",
|
|
205
241
|
"writable": true,
|
|
@@ -837,6 +873,24 @@
|
|
|
837
873
|
237
|
|
838
874
|
],
|
|
839
875
|
"accounts": [
|
|
876
|
+
{
|
|
877
|
+
"name": "config",
|
|
878
|
+
"pda": {
|
|
879
|
+
"seeds": [
|
|
880
|
+
{
|
|
881
|
+
"kind": "const",
|
|
882
|
+
"value": [
|
|
883
|
+
99,
|
|
884
|
+
111,
|
|
885
|
+
110,
|
|
886
|
+
102,
|
|
887
|
+
105,
|
|
888
|
+
103
|
|
889
|
+
]
|
|
890
|
+
}
|
|
891
|
+
]
|
|
892
|
+
}
|
|
893
|
+
},
|
|
840
894
|
{
|
|
841
895
|
"name": "signer",
|
|
842
896
|
"writable": true,
|
|
@@ -1109,7 +1163,8 @@
|
|
|
1109
1163
|
}
|
|
1110
1164
|
},
|
|
1111
1165
|
{
|
|
1112
|
-
"name": "position_nft_mint"
|
|
1166
|
+
"name": "position_nft_mint",
|
|
1167
|
+
"writable": true
|
|
1113
1168
|
},
|
|
1114
1169
|
{
|
|
1115
1170
|
"name": "position_nft_account",
|
|
@@ -1548,6 +1603,24 @@
|
|
|
1548
1603
|
124
|
|
1549
1604
|
],
|
|
1550
1605
|
"accounts": [
|
|
1606
|
+
{
|
|
1607
|
+
"name": "config",
|
|
1608
|
+
"pda": {
|
|
1609
|
+
"seeds": [
|
|
1610
|
+
{
|
|
1611
|
+
"kind": "const",
|
|
1612
|
+
"value": [
|
|
1613
|
+
99,
|
|
1614
|
+
111,
|
|
1615
|
+
110,
|
|
1616
|
+
102,
|
|
1617
|
+
105,
|
|
1618
|
+
103
|
|
1619
|
+
]
|
|
1620
|
+
}
|
|
1621
|
+
]
|
|
1622
|
+
}
|
|
1623
|
+
},
|
|
1551
1624
|
{
|
|
1552
1625
|
"name": "signer",
|
|
1553
1626
|
"writable": true,
|
|
@@ -1823,6 +1896,24 @@
|
|
|
1823
1896
|
43
|
|
1824
1897
|
],
|
|
1825
1898
|
"accounts": [
|
|
1899
|
+
{
|
|
1900
|
+
"name": "config",
|
|
1901
|
+
"pda": {
|
|
1902
|
+
"seeds": [
|
|
1903
|
+
{
|
|
1904
|
+
"kind": "const",
|
|
1905
|
+
"value": [
|
|
1906
|
+
99,
|
|
1907
|
+
111,
|
|
1908
|
+
110,
|
|
1909
|
+
102,
|
|
1910
|
+
105,
|
|
1911
|
+
103
|
|
1912
|
+
]
|
|
1913
|
+
}
|
|
1914
|
+
]
|
|
1915
|
+
}
|
|
1916
|
+
},
|
|
1826
1917
|
{
|
|
1827
1918
|
"name": "ltt_configuration",
|
|
1828
1919
|
"writable": true,
|
|
@@ -2252,7 +2343,8 @@
|
|
|
2252
2343
|
}
|
|
2253
2344
|
},
|
|
2254
2345
|
{
|
|
2255
|
-
"name": "position_nft_mint"
|
|
2346
|
+
"name": "position_nft_mint",
|
|
2347
|
+
"writable": true
|
|
2256
2348
|
},
|
|
2257
2349
|
{
|
|
2258
2350
|
"name": "harvest_vault_position_nft_ata",
|
|
@@ -2887,6 +2979,24 @@
|
|
|
2887
2979
|
38
|
|
2888
2980
|
],
|
|
2889
2981
|
"accounts": [
|
|
2982
|
+
{
|
|
2983
|
+
"name": "config",
|
|
2984
|
+
"pda": {
|
|
2985
|
+
"seeds": [
|
|
2986
|
+
{
|
|
2987
|
+
"kind": "const",
|
|
2988
|
+
"value": [
|
|
2989
|
+
99,
|
|
2990
|
+
111,
|
|
2991
|
+
110,
|
|
2992
|
+
102,
|
|
2993
|
+
105,
|
|
2994
|
+
103
|
|
2995
|
+
]
|
|
2996
|
+
}
|
|
2997
|
+
]
|
|
2998
|
+
}
|
|
2999
|
+
},
|
|
2890
3000
|
{
|
|
2891
3001
|
"name": "signer",
|
|
2892
3002
|
"writable": true,
|
|
@@ -3200,10 +3310,12 @@
|
|
|
3200
3310
|
"name": "token_b_mint",
|
|
3201
3311
|
"docs": [
|
|
3202
3312
|
"The mint of token b"
|
|
3203
|
-
]
|
|
3313
|
+
],
|
|
3314
|
+
"writable": true
|
|
3204
3315
|
},
|
|
3205
3316
|
{
|
|
3206
|
-
"name": "position_nft_mint"
|
|
3317
|
+
"name": "position_nft_mint",
|
|
3318
|
+
"writable": true
|
|
3207
3319
|
},
|
|
3208
3320
|
{
|
|
3209
3321
|
"name": "position_nft_account",
|
|
@@ -3212,7 +3324,8 @@
|
|
|
3212
3324
|
]
|
|
3213
3325
|
},
|
|
3214
3326
|
{
|
|
3215
|
-
"name": "position_nft_mint_b"
|
|
3327
|
+
"name": "position_nft_mint_b",
|
|
3328
|
+
"writable": true
|
|
3216
3329
|
},
|
|
3217
3330
|
{
|
|
3218
3331
|
"name": "position_nft_account_b",
|
|
@@ -3255,6 +3368,24 @@
|
|
|
3255
3368
|
225
|
|
3256
3369
|
],
|
|
3257
3370
|
"accounts": [
|
|
3371
|
+
{
|
|
3372
|
+
"name": "config",
|
|
3373
|
+
"pda": {
|
|
3374
|
+
"seeds": [
|
|
3375
|
+
{
|
|
3376
|
+
"kind": "const",
|
|
3377
|
+
"value": [
|
|
3378
|
+
99,
|
|
3379
|
+
111,
|
|
3380
|
+
110,
|
|
3381
|
+
102,
|
|
3382
|
+
105,
|
|
3383
|
+
103
|
|
3384
|
+
]
|
|
3385
|
+
}
|
|
3386
|
+
]
|
|
3387
|
+
}
|
|
3388
|
+
},
|
|
3258
3389
|
{
|
|
3259
3390
|
"name": "investor",
|
|
3260
3391
|
"writable": true,
|
|
@@ -4122,6 +4253,24 @@
|
|
|
4122
4253
|
92
|
|
4123
4254
|
],
|
|
4124
4255
|
"accounts": [
|
|
4256
|
+
{
|
|
4257
|
+
"name": "config",
|
|
4258
|
+
"pda": {
|
|
4259
|
+
"seeds": [
|
|
4260
|
+
{
|
|
4261
|
+
"kind": "const",
|
|
4262
|
+
"value": [
|
|
4263
|
+
99,
|
|
4264
|
+
111,
|
|
4265
|
+
110,
|
|
4266
|
+
102,
|
|
4267
|
+
105,
|
|
4268
|
+
103
|
|
4269
|
+
]
|
|
4270
|
+
}
|
|
4271
|
+
]
|
|
4272
|
+
}
|
|
4273
|
+
},
|
|
4125
4274
|
{
|
|
4126
4275
|
"name": "ltt_configuration",
|
|
4127
4276
|
"writable": true,
|
|
@@ -4261,6 +4410,24 @@
|
|
|
4261
4410
|
104
|
|
4262
4411
|
],
|
|
4263
4412
|
"accounts": [
|
|
4413
|
+
{
|
|
4414
|
+
"name": "config",
|
|
4415
|
+
"pda": {
|
|
4416
|
+
"seeds": [
|
|
4417
|
+
{
|
|
4418
|
+
"kind": "const",
|
|
4419
|
+
"value": [
|
|
4420
|
+
99,
|
|
4421
|
+
111,
|
|
4422
|
+
110,
|
|
4423
|
+
102,
|
|
4424
|
+
105,
|
|
4425
|
+
103
|
|
4426
|
+
]
|
|
4427
|
+
}
|
|
4428
|
+
]
|
|
4429
|
+
}
|
|
4430
|
+
},
|
|
4264
4431
|
{
|
|
4265
4432
|
"name": "ltt_configuration",
|
|
4266
4433
|
"writable": true,
|
|
@@ -4495,6 +4662,24 @@
|
|
|
4495
4662
|
150
|
|
4496
4663
|
],
|
|
4497
4664
|
"accounts": [
|
|
4665
|
+
{
|
|
4666
|
+
"name": "config",
|
|
4667
|
+
"pda": {
|
|
4668
|
+
"seeds": [
|
|
4669
|
+
{
|
|
4670
|
+
"kind": "const",
|
|
4671
|
+
"value": [
|
|
4672
|
+
99,
|
|
4673
|
+
111,
|
|
4674
|
+
110,
|
|
4675
|
+
102,
|
|
4676
|
+
105,
|
|
4677
|
+
103
|
|
4678
|
+
]
|
|
4679
|
+
}
|
|
4680
|
+
]
|
|
4681
|
+
}
|
|
4682
|
+
},
|
|
4498
4683
|
{
|
|
4499
4684
|
"name": "issuer",
|
|
4500
4685
|
"writable": true,
|
|
@@ -4711,7 +4896,8 @@
|
|
|
4711
4896
|
}
|
|
4712
4897
|
},
|
|
4713
4898
|
{
|
|
4714
|
-
"name": "collateral_token_mint"
|
|
4899
|
+
"name": "collateral_token_mint",
|
|
4900
|
+
"writable": true
|
|
4715
4901
|
},
|
|
4716
4902
|
{
|
|
4717
4903
|
"name": "chainlink_program"
|
|
@@ -4971,6 +5157,24 @@
|
|
|
4971
5157
|
155
|
|
4972
5158
|
],
|
|
4973
5159
|
"accounts": [
|
|
5160
|
+
{
|
|
5161
|
+
"name": "config",
|
|
5162
|
+
"pda": {
|
|
5163
|
+
"seeds": [
|
|
5164
|
+
{
|
|
5165
|
+
"kind": "const",
|
|
5166
|
+
"value": [
|
|
5167
|
+
99,
|
|
5168
|
+
111,
|
|
5169
|
+
110,
|
|
5170
|
+
102,
|
|
5171
|
+
105,
|
|
5172
|
+
103
|
|
5173
|
+
]
|
|
5174
|
+
}
|
|
5175
|
+
]
|
|
5176
|
+
}
|
|
5177
|
+
},
|
|
4974
5178
|
{
|
|
4975
5179
|
"name": "ltt_configuration",
|
|
4976
5180
|
"writable": true,
|
|
@@ -5438,6 +5642,11 @@
|
|
|
5438
5642
|
"code": 6039,
|
|
5439
5643
|
"name": "InvalidVerifierAccount",
|
|
5440
5644
|
"msg": "Invalid verifier account"
|
|
5645
|
+
},
|
|
5646
|
+
{
|
|
5647
|
+
"code": 6040,
|
|
5648
|
+
"name": "CircuitBreakerActive",
|
|
5649
|
+
"msg": "Circuit breaker is active - program is paused"
|
|
5441
5650
|
}
|
|
5442
5651
|
],
|
|
5443
5652
|
"types": [
|
|
@@ -26,6 +26,24 @@ export type Xitadel = {
|
|
|
26
26
|
18
|
|
27
27
|
];
|
|
28
28
|
"accounts": [
|
|
29
|
+
{
|
|
30
|
+
"name": "config";
|
|
31
|
+
"pda": {
|
|
32
|
+
"seeds": [
|
|
33
|
+
{
|
|
34
|
+
"kind": "const";
|
|
35
|
+
"value": [
|
|
36
|
+
99,
|
|
37
|
+
111,
|
|
38
|
+
110,
|
|
39
|
+
102,
|
|
40
|
+
105,
|
|
41
|
+
103
|
|
42
|
+
];
|
|
43
|
+
}
|
|
44
|
+
];
|
|
45
|
+
};
|
|
46
|
+
},
|
|
29
47
|
{
|
|
30
48
|
"name": "lttConfiguration";
|
|
31
49
|
"writable": true;
|
|
@@ -206,6 +224,24 @@ export type Xitadel = {
|
|
|
206
224
|
92
|
|
207
225
|
];
|
|
208
226
|
"accounts": [
|
|
227
|
+
{
|
|
228
|
+
"name": "config";
|
|
229
|
+
"pda": {
|
|
230
|
+
"seeds": [
|
|
231
|
+
{
|
|
232
|
+
"kind": "const";
|
|
233
|
+
"value": [
|
|
234
|
+
99,
|
|
235
|
+
111,
|
|
236
|
+
110,
|
|
237
|
+
102,
|
|
238
|
+
105,
|
|
239
|
+
103
|
|
240
|
+
];
|
|
241
|
+
}
|
|
242
|
+
];
|
|
243
|
+
};
|
|
244
|
+
},
|
|
209
245
|
{
|
|
210
246
|
"name": "signer";
|
|
211
247
|
"writable": true;
|
|
@@ -843,6 +879,24 @@ export type Xitadel = {
|
|
|
843
879
|
237
|
|
844
880
|
];
|
|
845
881
|
"accounts": [
|
|
882
|
+
{
|
|
883
|
+
"name": "config";
|
|
884
|
+
"pda": {
|
|
885
|
+
"seeds": [
|
|
886
|
+
{
|
|
887
|
+
"kind": "const";
|
|
888
|
+
"value": [
|
|
889
|
+
99,
|
|
890
|
+
111,
|
|
891
|
+
110,
|
|
892
|
+
102,
|
|
893
|
+
105,
|
|
894
|
+
103
|
|
895
|
+
];
|
|
896
|
+
}
|
|
897
|
+
];
|
|
898
|
+
};
|
|
899
|
+
},
|
|
846
900
|
{
|
|
847
901
|
"name": "signer";
|
|
848
902
|
"writable": true;
|
|
@@ -1116,6 +1170,7 @@ export type Xitadel = {
|
|
|
1116
1170
|
},
|
|
1117
1171
|
{
|
|
1118
1172
|
"name": "positionNftMint";
|
|
1173
|
+
"writable": true;
|
|
1119
1174
|
},
|
|
1120
1175
|
{
|
|
1121
1176
|
"name": "positionNftAccount";
|
|
@@ -1554,6 +1609,24 @@ export type Xitadel = {
|
|
|
1554
1609
|
124
|
|
1555
1610
|
];
|
|
1556
1611
|
"accounts": [
|
|
1612
|
+
{
|
|
1613
|
+
"name": "config";
|
|
1614
|
+
"pda": {
|
|
1615
|
+
"seeds": [
|
|
1616
|
+
{
|
|
1617
|
+
"kind": "const";
|
|
1618
|
+
"value": [
|
|
1619
|
+
99,
|
|
1620
|
+
111,
|
|
1621
|
+
110,
|
|
1622
|
+
102,
|
|
1623
|
+
105,
|
|
1624
|
+
103
|
|
1625
|
+
];
|
|
1626
|
+
}
|
|
1627
|
+
];
|
|
1628
|
+
};
|
|
1629
|
+
},
|
|
1557
1630
|
{
|
|
1558
1631
|
"name": "signer";
|
|
1559
1632
|
"writable": true;
|
|
@@ -1829,6 +1902,24 @@ export type Xitadel = {
|
|
|
1829
1902
|
43
|
|
1830
1903
|
];
|
|
1831
1904
|
"accounts": [
|
|
1905
|
+
{
|
|
1906
|
+
"name": "config";
|
|
1907
|
+
"pda": {
|
|
1908
|
+
"seeds": [
|
|
1909
|
+
{
|
|
1910
|
+
"kind": "const";
|
|
1911
|
+
"value": [
|
|
1912
|
+
99,
|
|
1913
|
+
111,
|
|
1914
|
+
110,
|
|
1915
|
+
102,
|
|
1916
|
+
105,
|
|
1917
|
+
103
|
|
1918
|
+
];
|
|
1919
|
+
}
|
|
1920
|
+
];
|
|
1921
|
+
};
|
|
1922
|
+
},
|
|
1832
1923
|
{
|
|
1833
1924
|
"name": "lttConfiguration";
|
|
1834
1925
|
"writable": true;
|
|
@@ -2259,6 +2350,7 @@ export type Xitadel = {
|
|
|
2259
2350
|
},
|
|
2260
2351
|
{
|
|
2261
2352
|
"name": "positionNftMint";
|
|
2353
|
+
"writable": true;
|
|
2262
2354
|
},
|
|
2263
2355
|
{
|
|
2264
2356
|
"name": "harvestVaultPositionNftAta";
|
|
@@ -2893,6 +2985,24 @@ export type Xitadel = {
|
|
|
2893
2985
|
38
|
|
2894
2986
|
];
|
|
2895
2987
|
"accounts": [
|
|
2988
|
+
{
|
|
2989
|
+
"name": "config";
|
|
2990
|
+
"pda": {
|
|
2991
|
+
"seeds": [
|
|
2992
|
+
{
|
|
2993
|
+
"kind": "const";
|
|
2994
|
+
"value": [
|
|
2995
|
+
99,
|
|
2996
|
+
111,
|
|
2997
|
+
110,
|
|
2998
|
+
102,
|
|
2999
|
+
105,
|
|
3000
|
+
103
|
|
3001
|
+
];
|
|
3002
|
+
}
|
|
3003
|
+
];
|
|
3004
|
+
};
|
|
3005
|
+
},
|
|
2896
3006
|
{
|
|
2897
3007
|
"name": "signer";
|
|
2898
3008
|
"writable": true;
|
|
@@ -3207,9 +3317,11 @@ export type Xitadel = {
|
|
|
3207
3317
|
"docs": [
|
|
3208
3318
|
"The mint of token b"
|
|
3209
3319
|
];
|
|
3320
|
+
"writable": true;
|
|
3210
3321
|
},
|
|
3211
3322
|
{
|
|
3212
3323
|
"name": "positionNftMint";
|
|
3324
|
+
"writable": true;
|
|
3213
3325
|
},
|
|
3214
3326
|
{
|
|
3215
3327
|
"name": "positionNftAccount";
|
|
@@ -3219,6 +3331,7 @@ export type Xitadel = {
|
|
|
3219
3331
|
},
|
|
3220
3332
|
{
|
|
3221
3333
|
"name": "positionNftMintB";
|
|
3334
|
+
"writable": true;
|
|
3222
3335
|
},
|
|
3223
3336
|
{
|
|
3224
3337
|
"name": "positionNftAccountB";
|
|
@@ -3261,6 +3374,24 @@ export type Xitadel = {
|
|
|
3261
3374
|
225
|
|
3262
3375
|
];
|
|
3263
3376
|
"accounts": [
|
|
3377
|
+
{
|
|
3378
|
+
"name": "config";
|
|
3379
|
+
"pda": {
|
|
3380
|
+
"seeds": [
|
|
3381
|
+
{
|
|
3382
|
+
"kind": "const";
|
|
3383
|
+
"value": [
|
|
3384
|
+
99,
|
|
3385
|
+
111,
|
|
3386
|
+
110,
|
|
3387
|
+
102,
|
|
3388
|
+
105,
|
|
3389
|
+
103
|
|
3390
|
+
];
|
|
3391
|
+
}
|
|
3392
|
+
];
|
|
3393
|
+
};
|
|
3394
|
+
},
|
|
3264
3395
|
{
|
|
3265
3396
|
"name": "investor";
|
|
3266
3397
|
"writable": true;
|
|
@@ -4128,6 +4259,24 @@ export type Xitadel = {
|
|
|
4128
4259
|
92
|
|
4129
4260
|
];
|
|
4130
4261
|
"accounts": [
|
|
4262
|
+
{
|
|
4263
|
+
"name": "config";
|
|
4264
|
+
"pda": {
|
|
4265
|
+
"seeds": [
|
|
4266
|
+
{
|
|
4267
|
+
"kind": "const";
|
|
4268
|
+
"value": [
|
|
4269
|
+
99,
|
|
4270
|
+
111,
|
|
4271
|
+
110,
|
|
4272
|
+
102,
|
|
4273
|
+
105,
|
|
4274
|
+
103
|
|
4275
|
+
];
|
|
4276
|
+
}
|
|
4277
|
+
];
|
|
4278
|
+
};
|
|
4279
|
+
},
|
|
4131
4280
|
{
|
|
4132
4281
|
"name": "lttConfiguration";
|
|
4133
4282
|
"writable": true;
|
|
@@ -4267,6 +4416,24 @@ export type Xitadel = {
|
|
|
4267
4416
|
104
|
|
4268
4417
|
];
|
|
4269
4418
|
"accounts": [
|
|
4419
|
+
{
|
|
4420
|
+
"name": "config";
|
|
4421
|
+
"pda": {
|
|
4422
|
+
"seeds": [
|
|
4423
|
+
{
|
|
4424
|
+
"kind": "const";
|
|
4425
|
+
"value": [
|
|
4426
|
+
99,
|
|
4427
|
+
111,
|
|
4428
|
+
110,
|
|
4429
|
+
102,
|
|
4430
|
+
105,
|
|
4431
|
+
103
|
|
4432
|
+
];
|
|
4433
|
+
}
|
|
4434
|
+
];
|
|
4435
|
+
};
|
|
4436
|
+
},
|
|
4270
4437
|
{
|
|
4271
4438
|
"name": "lttConfiguration";
|
|
4272
4439
|
"writable": true;
|
|
@@ -4501,6 +4668,24 @@ export type Xitadel = {
|
|
|
4501
4668
|
150
|
|
4502
4669
|
];
|
|
4503
4670
|
"accounts": [
|
|
4671
|
+
{
|
|
4672
|
+
"name": "config";
|
|
4673
|
+
"pda": {
|
|
4674
|
+
"seeds": [
|
|
4675
|
+
{
|
|
4676
|
+
"kind": "const";
|
|
4677
|
+
"value": [
|
|
4678
|
+
99,
|
|
4679
|
+
111,
|
|
4680
|
+
110,
|
|
4681
|
+
102,
|
|
4682
|
+
105,
|
|
4683
|
+
103
|
|
4684
|
+
];
|
|
4685
|
+
}
|
|
4686
|
+
];
|
|
4687
|
+
};
|
|
4688
|
+
},
|
|
4504
4689
|
{
|
|
4505
4690
|
"name": "issuer";
|
|
4506
4691
|
"writable": true;
|
|
@@ -4718,6 +4903,7 @@ export type Xitadel = {
|
|
|
4718
4903
|
},
|
|
4719
4904
|
{
|
|
4720
4905
|
"name": "collateralTokenMint";
|
|
4906
|
+
"writable": true;
|
|
4721
4907
|
},
|
|
4722
4908
|
{
|
|
4723
4909
|
"name": "chainlinkProgram";
|
|
@@ -4977,6 +5163,24 @@ export type Xitadel = {
|
|
|
4977
5163
|
155
|
|
4978
5164
|
];
|
|
4979
5165
|
"accounts": [
|
|
5166
|
+
{
|
|
5167
|
+
"name": "config";
|
|
5168
|
+
"pda": {
|
|
5169
|
+
"seeds": [
|
|
5170
|
+
{
|
|
5171
|
+
"kind": "const";
|
|
5172
|
+
"value": [
|
|
5173
|
+
99,
|
|
5174
|
+
111,
|
|
5175
|
+
110,
|
|
5176
|
+
102,
|
|
5177
|
+
105,
|
|
5178
|
+
103
|
|
5179
|
+
];
|
|
5180
|
+
}
|
|
5181
|
+
];
|
|
5182
|
+
};
|
|
5183
|
+
},
|
|
4980
5184
|
{
|
|
4981
5185
|
"name": "lttConfiguration";
|
|
4982
5186
|
"writable": true;
|
|
@@ -5444,6 +5648,11 @@ export type Xitadel = {
|
|
|
5444
5648
|
"code": 6039;
|
|
5445
5649
|
"name": "invalidVerifierAccount";
|
|
5446
5650
|
"msg": "Invalid verifier account";
|
|
5651
|
+
},
|
|
5652
|
+
{
|
|
5653
|
+
"code": 6040;
|
|
5654
|
+
"name": "circuitBreakerActive";
|
|
5655
|
+
"msg": "Circuit breaker is active - program is paused";
|
|
5447
5656
|
}
|
|
5448
5657
|
];
|
|
5449
5658
|
"types": [
|