@lavarage/sdk 7.5.21 → 8.0.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.
Files changed (87) hide show
  1. package/constants.ts +6 -0
  2. package/crossbar.ts +53 -0
  3. package/dist/index.d.mts +5559 -1791
  4. package/dist/index.d.ts +5559 -1791
  5. package/dist/index.js +3502 -4975
  6. package/dist/index.js.map +1 -1
  7. package/dist/index.mjs +3301 -4772
  8. package/dist/index.mjs.map +1 -1
  9. package/docs/functions/borrowV1.html +1 -1
  10. package/docs/functions/borrowV2.html +1 -1
  11. package/docs/functions/closePositionEvm.html +2 -2
  12. package/docs/functions/closeTradeV1.html +2 -2
  13. package/docs/functions/closeTradeV2.html +2 -2
  14. package/docs/functions/createTpDelegate.html +2 -2
  15. package/docs/functions/getActiveLoanCountEvm.html +2 -2
  16. package/docs/functions/getActiveLoansBatchEvm.html +2 -2
  17. package/docs/functions/getAllPositions.html +2 -2
  18. package/docs/functions/getAvailableExposureEvm.html +2 -2
  19. package/docs/functions/getClosedPositions.html +2 -2
  20. package/docs/functions/getClosedPositionsEvm.html +2 -2
  21. package/docs/functions/getCollateralExposureEvm.html +2 -2
  22. package/docs/functions/getCollateralInfoEvm.html +2 -2
  23. package/docs/functions/getDelegateAccounts.html +2 -2
  24. package/docs/functions/getLiquidatedPositions.html +2 -2
  25. package/docs/functions/getLiquidatedPositionsEvm.html +2 -2
  26. package/docs/functions/getLoanEvm.html +2 -2
  27. package/docs/functions/getLoansByBorrowerEvm.html +2 -2
  28. package/docs/functions/getOffers.html +2 -2
  29. package/docs/functions/getOffersEvm.html +2 -2
  30. package/docs/functions/getOpenPositions.html +2 -2
  31. package/docs/functions/getOpeningFeeEvm.html +2 -2
  32. package/docs/functions/getPda.html +2 -2
  33. package/docs/functions/getPositionAccountPDA.html +2 -2
  34. package/docs/functions/getPositionsEvm.html +2 -2
  35. package/docs/functions/getProfitFeeEvm.html +2 -2
  36. package/docs/functions/getTokenBalanceEvm.html +2 -2
  37. package/docs/functions/getUserLoansEvm.html +2 -2
  38. package/docs/functions/lending.addToWithdrawalAccessList.html +1 -1
  39. package/docs/functions/lending.createOffer.html +2 -2
  40. package/docs/functions/lending.depositFunds.html +2 -2
  41. package/docs/functions/lending.getNodeWalletPDA.html +2 -2
  42. package/docs/functions/lending.getTradingPoolPDA.html +2 -2
  43. package/docs/functions/lending.getWithdrawalAccessList.html +1 -1
  44. package/docs/functions/lending.getWithdrawalAccessListPDA.html +1 -1
  45. package/docs/functions/lending.removeFromWithdrawalAccessList.html +1 -1
  46. package/docs/functions/lending.updateInterestRate.html +2 -2
  47. package/docs/functions/lending.updateMaxBorrow.html +2 -2
  48. package/docs/functions/lending.updateMaxExposure.html +2 -2
  49. package/docs/functions/lending.updateOffer.html +2 -2
  50. package/docs/functions/lending.withdrawFunds.html +2 -2
  51. package/docs/functions/lending.withdrawFundsV1.html +2 -2
  52. package/docs/functions/lending.withdrawFundsV2.html +2 -2
  53. package/docs/functions/liquidatePositionEvm.html +2 -2
  54. package/docs/functions/mergePositionV2.html +2 -2
  55. package/docs/functions/modifyTpDelegate.html +2 -2
  56. package/docs/functions/openPositionEvm.html +2 -2
  57. package/docs/functions/openTradeV1.html +2 -2
  58. package/docs/functions/openTradeV2.html +2 -2
  59. package/docs/functions/partialRepayV1.html +2 -2
  60. package/docs/functions/partialRepayV2.html +2 -2
  61. package/docs/functions/removeTpDelegate.html +2 -2
  62. package/docs/functions/splitPositionV2.html +2 -2
  63. package/docs/functions/updateMaxLendPerTokenBatchEvm.html +2 -2
  64. package/docs/hierarchy.html +1 -1
  65. package/docs/index.html +2 -2
  66. package/docs/modules/IDLV2.html +2 -2
  67. package/docs/modules/lending.html +1 -1
  68. package/docs/modules.html +2 -2
  69. package/docs/types/IDLV2.Lavarage.html +2 -2
  70. package/docs/types/Lavarage.html +2 -2
  71. package/docs/variables/IDL.html +1 -1
  72. package/docs/variables/IDLV2.IDL.html +1 -1
  73. package/idl/lavarageSOL.json +1852 -0
  74. package/idl/lavarageSOL.ts +1858 -0
  75. package/idl/lavarageUSDC.json +5377 -0
  76. package/idl/lavarageUSDC.ts +5383 -0
  77. package/idl/userVault.json +244 -0
  78. package/idl/userVault.ts +250 -0
  79. package/index.ts +81 -42
  80. package/lending.ts +225 -86
  81. package/package.json +6 -4
  82. package/switchboard.ts +23 -0
  83. package/tsconfig.json +2 -1
  84. package/utils.ts +54 -0
  85. package/idl/lavarage.ts +0 -3465
  86. package/idl/lavaragev2.ts +0 -3791
  87. package/idl/referralVault.ts +0 -276
@@ -0,0 +1,1858 @@
1
+ /**
2
+ * Program IDL in camelCase format in order to be used in JS/TS.
3
+ *
4
+ * Note that this is only a type helper and is not the actual IDL. The original
5
+ * IDL can be found at `target/idl/lavarage.json`.
6
+ */
7
+ export type Lavarage = {
8
+ "address": "CRSeeBqjDnm3UPefJ9gxrtngTsnQRhEJiTA345Q83X3v",
9
+ "metadata": {
10
+ "name": "lavarage",
11
+ "version": "0.1.0",
12
+ "spec": "0.1.0"
13
+ },
14
+ "instructions": [
15
+ {
16
+ "name": "lpOperatorCreateTradingPool",
17
+ "discriminator": [
18
+ 182,
19
+ 99,
20
+ 232,
21
+ 188,
22
+ 202,
23
+ 38,
24
+ 71,
25
+ 211
26
+ ],
27
+ "accounts": [
28
+ {
29
+ "name": "tradingPool",
30
+ "writable": true
31
+ },
32
+ {
33
+ "name": "operator",
34
+ "writable": true,
35
+ "signer": true
36
+ },
37
+ {
38
+ "name": "nodeWallet"
39
+ },
40
+ {
41
+ "name": "mint"
42
+ },
43
+ {
44
+ "name": "systemProgram"
45
+ }
46
+ ],
47
+ "args": [
48
+ {
49
+ "name": "interestRate",
50
+ "type": "u8"
51
+ }
52
+ ]
53
+ },
54
+ {
55
+ "name": "lpOperatorCreateNodeWallet",
56
+ "discriminator": [
57
+ 193,
58
+ 83,
59
+ 139,
60
+ 125,
61
+ 229,
62
+ 111,
63
+ 150,
64
+ 164
65
+ ],
66
+ "accounts": [
67
+ {
68
+ "name": "nodeWallet",
69
+ "writable": true
70
+ },
71
+ {
72
+ "name": "operator",
73
+ "writable": true,
74
+ "signer": true
75
+ },
76
+ {
77
+ "name": "systemProgram"
78
+ }
79
+ ],
80
+ "args": []
81
+ },
82
+ {
83
+ "name": "lpOperatorFundNodeWallet",
84
+ "discriminator": [
85
+ 204,
86
+ 29,
87
+ 191,
88
+ 156,
89
+ 11,
90
+ 132,
91
+ 135,
92
+ 61
93
+ ],
94
+ "accounts": [
95
+ {
96
+ "name": "nodeWallet",
97
+ "writable": true
98
+ },
99
+ {
100
+ "name": "funder",
101
+ "writable": true,
102
+ "signer": true
103
+ },
104
+ {
105
+ "name": "systemProgram"
106
+ }
107
+ ],
108
+ "args": [
109
+ {
110
+ "name": "amount",
111
+ "type": "u64"
112
+ }
113
+ ]
114
+ },
115
+ {
116
+ "name": "lpOperatorWithdrawFromNodeWallet",
117
+ "discriminator": [
118
+ 162,
119
+ 244,
120
+ 237,
121
+ 100,
122
+ 96,
123
+ 130,
124
+ 60,
125
+ 117
126
+ ],
127
+ "accounts": [
128
+ {
129
+ "name": "nodeWallet",
130
+ "writable": true
131
+ },
132
+ {
133
+ "name": "funder",
134
+ "writable": true,
135
+ "signer": true
136
+ },
137
+ {
138
+ "name": "systemProgram"
139
+ },
140
+ {
141
+ "name": "withdrawalAccessList"
142
+ }
143
+ ],
144
+ "args": [
145
+ {
146
+ "name": "amount",
147
+ "type": "u64"
148
+ }
149
+ ]
150
+ },
151
+ {
152
+ "name": "lpOperatorUpdateMaxBorrow",
153
+ "discriminator": [
154
+ 47,
155
+ 66,
156
+ 56,
157
+ 156,
158
+ 203,
159
+ 107,
160
+ 44,
161
+ 148
162
+ ],
163
+ "accounts": [
164
+ {
165
+ "name": "tradingPool",
166
+ "writable": true
167
+ },
168
+ {
169
+ "name": "nodeWallet"
170
+ },
171
+ {
172
+ "name": "operator",
173
+ "writable": true,
174
+ "signer": true
175
+ },
176
+ {
177
+ "name": "systemProgram"
178
+ }
179
+ ],
180
+ "args": [
181
+ {
182
+ "name": "amount",
183
+ "type": "u64"
184
+ }
185
+ ]
186
+ },
187
+ {
188
+ "name": "lpOperatorUpdateMaxExposure",
189
+ "discriminator": [
190
+ 43,
191
+ 226,
192
+ 68,
193
+ 201,
194
+ 78,
195
+ 18,
196
+ 155,
197
+ 107
198
+ ],
199
+ "accounts": [
200
+ {
201
+ "name": "tradingPool",
202
+ "writable": true
203
+ },
204
+ {
205
+ "name": "nodeWallet"
206
+ },
207
+ {
208
+ "name": "operator",
209
+ "writable": true,
210
+ "signer": true
211
+ },
212
+ {
213
+ "name": "systemProgram"
214
+ }
215
+ ],
216
+ "args": [
217
+ {
218
+ "name": "amount",
219
+ "type": "u64"
220
+ }
221
+ ]
222
+ },
223
+ {
224
+ "name": "lpOperatorUpdateInterestRate",
225
+ "discriminator": [
226
+ 25,
227
+ 217,
228
+ 30,
229
+ 158,
230
+ 210,
231
+ 240,
232
+ 173,
233
+ 10
234
+ ],
235
+ "accounts": [
236
+ {
237
+ "name": "tradingPool",
238
+ "writable": true
239
+ },
240
+ {
241
+ "name": "nodeWallet"
242
+ },
243
+ {
244
+ "name": "operator",
245
+ "writable": true,
246
+ "signer": true
247
+ },
248
+ {
249
+ "name": "systemProgram"
250
+ }
251
+ ],
252
+ "args": [
253
+ {
254
+ "name": "amount",
255
+ "type": "u8"
256
+ }
257
+ ]
258
+ },
259
+ {
260
+ "name": "lpLiquidate",
261
+ "discriminator": [
262
+ 36,
263
+ 244,
264
+ 70,
265
+ 20,
266
+ 135,
267
+ 159,
268
+ 86,
269
+ 149
270
+ ],
271
+ "accounts": [
272
+ {
273
+ "name": "mint"
274
+ },
275
+ {
276
+ "name": "positionAccount",
277
+ "writable": true
278
+ },
279
+ {
280
+ "name": "trader",
281
+ "writable": true
282
+ },
283
+ {
284
+ "name": "tradingPool",
285
+ "writable": true
286
+ },
287
+ {
288
+ "name": "fromTokenAccount",
289
+ "writable": true
290
+ },
291
+ {
292
+ "name": "toTokenAccount",
293
+ "writable": true
294
+ },
295
+ {
296
+ "name": "nodeWallet",
297
+ "writable": true
298
+ },
299
+ {
300
+ "name": "tokenProgram"
301
+ },
302
+ {
303
+ "name": "randomAccountAsId"
304
+ },
305
+ {
306
+ "name": "clock"
307
+ },
308
+ {
309
+ "name": "operator",
310
+ "signer": true
311
+ },
312
+ {
313
+ "name": "oracle",
314
+ "signer": true
315
+ }
316
+ ],
317
+ "args": [
318
+ {
319
+ "name": "positionSize",
320
+ "type": "u64"
321
+ }
322
+ ]
323
+ },
324
+ {
325
+ "name": "lpCollectInterest",
326
+ "discriminator": [
327
+ 181,
328
+ 55,
329
+ 21,
330
+ 23,
331
+ 53,
332
+ 171,
333
+ 73,
334
+ 115
335
+ ],
336
+ "accounts": [
337
+ {
338
+ "name": "mint"
339
+ },
340
+ {
341
+ "name": "positionAccount",
342
+ "writable": true
343
+ },
344
+ {
345
+ "name": "trader",
346
+ "writable": true
347
+ },
348
+ {
349
+ "name": "tradingPool",
350
+ "writable": true
351
+ },
352
+ {
353
+ "name": "fromTokenAccount",
354
+ "writable": true
355
+ },
356
+ {
357
+ "name": "toTokenAccount",
358
+ "writable": true
359
+ },
360
+ {
361
+ "name": "nodeWallet",
362
+ "writable": true
363
+ },
364
+ {
365
+ "name": "tokenProgram"
366
+ },
367
+ {
368
+ "name": "randomAccountAsId"
369
+ },
370
+ {
371
+ "name": "clock"
372
+ },
373
+ {
374
+ "name": "operator",
375
+ "signer": true
376
+ },
377
+ {
378
+ "name": "oracle",
379
+ "signer": true
380
+ }
381
+ ],
382
+ "args": [
383
+ {
384
+ "name": "price",
385
+ "type": "u128"
386
+ }
387
+ ]
388
+ },
389
+ {
390
+ "name": "tradingOpenBorrow",
391
+ "discriminator": [
392
+ 53,
393
+ 88,
394
+ 1,
395
+ 144,
396
+ 58,
397
+ 65,
398
+ 182,
399
+ 60
400
+ ],
401
+ "accounts": [
402
+ {
403
+ "name": "positionAccount",
404
+ "writable": true
405
+ },
406
+ {
407
+ "name": "trader",
408
+ "writable": true,
409
+ "signer": true
410
+ },
411
+ {
412
+ "name": "tradingPool",
413
+ "writable": true
414
+ },
415
+ {
416
+ "name": "nodeWallet",
417
+ "writable": true
418
+ },
419
+ {
420
+ "name": "instructions"
421
+ },
422
+ {
423
+ "name": "systemProgram"
424
+ },
425
+ {
426
+ "name": "clock"
427
+ },
428
+ {
429
+ "name": "randomAccountAsId"
430
+ },
431
+ {
432
+ "name": "feeReceipient",
433
+ "writable": true
434
+ },
435
+ {
436
+ "name": "positionTokenAccount",
437
+ "writable": true
438
+ },
439
+ {
440
+ "name": "collateralTokenProgram"
441
+ },
442
+ {
443
+ "name": "associatedTokenProgram"
444
+ },
445
+ {
446
+ "name": "collateralMint"
447
+ },
448
+ {
449
+ "name": "usersTokenAccount",
450
+ "writable": true
451
+ }
452
+ ],
453
+ "args": [
454
+ {
455
+ "name": "positionSize",
456
+ "type": "u64"
457
+ },
458
+ {
459
+ "name": "userPays",
460
+ "type": "u64"
461
+ }
462
+ ]
463
+ },
464
+ {
465
+ "name": "tradingOpenBorrowWithReferral",
466
+ "discriminator": [
467
+ 126,
468
+ 119,
469
+ 109,
470
+ 0,
471
+ 131,
472
+ 111,
473
+ 251,
474
+ 238
475
+ ],
476
+ "accounts": [
477
+ {
478
+ "name": "positionAccount",
479
+ "writable": true
480
+ },
481
+ {
482
+ "name": "trader",
483
+ "writable": true,
484
+ "signer": true
485
+ },
486
+ {
487
+ "name": "tradingPool",
488
+ "writable": true
489
+ },
490
+ {
491
+ "name": "nodeWallet",
492
+ "writable": true
493
+ },
494
+ {
495
+ "name": "instructions"
496
+ },
497
+ {
498
+ "name": "systemProgram"
499
+ },
500
+ {
501
+ "name": "clock"
502
+ },
503
+ {
504
+ "name": "randomAccountAsId"
505
+ },
506
+ {
507
+ "name": "feeReceipient",
508
+ "writable": true
509
+ },
510
+ {
511
+ "name": "positionTokenAccount",
512
+ "writable": true
513
+ },
514
+ {
515
+ "name": "collateralTokenProgram"
516
+ },
517
+ {
518
+ "name": "associatedTokenProgram"
519
+ },
520
+ {
521
+ "name": "collateralMint"
522
+ },
523
+ {
524
+ "name": "usersTokenAccount",
525
+ "writable": true
526
+ }
527
+ ],
528
+ "args": [
529
+ {
530
+ "name": "positionSize",
531
+ "type": "u64"
532
+ },
533
+ {
534
+ "name": "userPays",
535
+ "type": "u64"
536
+ },
537
+ {
538
+ "name": "discountBps",
539
+ "type": "u64"
540
+ },
541
+ {
542
+ "name": "referralBps",
543
+ "type": "u64"
544
+ }
545
+ ]
546
+ },
547
+ {
548
+ "name": "tradingOpenAddCollateral",
549
+ "discriminator": [
550
+ 21,
551
+ 160,
552
+ 90,
553
+ 163,
554
+ 189,
555
+ 122,
556
+ 164,
557
+ 50
558
+ ],
559
+ "accounts": [
560
+ {
561
+ "name": "positionAccount",
562
+ "writable": true
563
+ },
564
+ {
565
+ "name": "trader",
566
+ "writable": true,
567
+ "signer": true
568
+ },
569
+ {
570
+ "name": "tradingPool",
571
+ "writable": true
572
+ },
573
+ {
574
+ "name": "systemProgram"
575
+ },
576
+ {
577
+ "name": "mint"
578
+ },
579
+ {
580
+ "name": "toTokenAccount",
581
+ "writable": true
582
+ },
583
+ {
584
+ "name": "randomAccountAsId"
585
+ },
586
+ {
587
+ "name": "tokenProgram"
588
+ },
589
+ {
590
+ "name": "associatedTokenProgram"
591
+ }
592
+ ],
593
+ "args": [
594
+ {
595
+ "name": "maxInterestRate",
596
+ "type": "u8"
597
+ }
598
+ ]
599
+ },
600
+ {
601
+ "name": "tradingCloseBorrowCollateral",
602
+ "discriminator": [
603
+ 160,
604
+ 104,
605
+ 113,
606
+ 179,
607
+ 42,
608
+ 80,
609
+ 8,
610
+ 16
611
+ ],
612
+ "accounts": [
613
+ {
614
+ "name": "positionAccount",
615
+ "writable": true
616
+ },
617
+ {
618
+ "name": "trader",
619
+ "writable": true,
620
+ "signer": true
621
+ },
622
+ {
623
+ "name": "tradingPool",
624
+ "writable": true
625
+ },
626
+ {
627
+ "name": "instructions"
628
+ },
629
+ {
630
+ "name": "systemProgram"
631
+ },
632
+ {
633
+ "name": "mint"
634
+ },
635
+ {
636
+ "name": "fromTokenAccount",
637
+ "writable": true
638
+ },
639
+ {
640
+ "name": "toTokenAccount",
641
+ "writable": true
642
+ },
643
+ {
644
+ "name": "tokenProgram"
645
+ },
646
+ {
647
+ "name": "clock"
648
+ },
649
+ {
650
+ "name": "randomAccountAsId"
651
+ },
652
+ {
653
+ "name": "associatedTokenProgram"
654
+ }
655
+ ],
656
+ "args": []
657
+ },
658
+ {
659
+ "name": "tradingDataAccruedInterest",
660
+ "discriminator": [
661
+ 227,
662
+ 39,
663
+ 217,
664
+ 0,
665
+ 88,
666
+ 3,
667
+ 25,
668
+ 115
669
+ ],
670
+ "accounts": [
671
+ {
672
+ "name": "positionAccount",
673
+ "writable": true
674
+ },
675
+ {
676
+ "name": "trader",
677
+ "writable": true,
678
+ "signer": true
679
+ },
680
+ {
681
+ "name": "tradingPool",
682
+ "writable": true
683
+ },
684
+ {
685
+ "name": "nodeWallet",
686
+ "writable": true
687
+ },
688
+ {
689
+ "name": "systemProgram"
690
+ },
691
+ {
692
+ "name": "clock"
693
+ },
694
+ {
695
+ "name": "randomAccountAsId"
696
+ },
697
+ {
698
+ "name": "feeReceipient",
699
+ "writable": true
700
+ }
701
+ ],
702
+ "args": [],
703
+ "returns": "u64"
704
+ },
705
+ {
706
+ "name": "tradingCloseRepaySol",
707
+ "discriminator": [
708
+ 74,
709
+ 90,
710
+ 5,
711
+ 111,
712
+ 35,
713
+ 171,
714
+ 135,
715
+ 56
716
+ ],
717
+ "accounts": [
718
+ {
719
+ "name": "positionAccount",
720
+ "writable": true
721
+ },
722
+ {
723
+ "name": "trader",
724
+ "writable": true,
725
+ "signer": true
726
+ },
727
+ {
728
+ "name": "tradingPool",
729
+ "writable": true
730
+ },
731
+ {
732
+ "name": "nodeWallet",
733
+ "writable": true
734
+ },
735
+ {
736
+ "name": "systemProgram"
737
+ },
738
+ {
739
+ "name": "clock"
740
+ },
741
+ {
742
+ "name": "randomAccountAsId"
743
+ },
744
+ {
745
+ "name": "feeReceipient",
746
+ "writable": true
747
+ }
748
+ ],
749
+ "args": [
750
+ {
751
+ "name": "closingPositionSize",
752
+ "type": "u64"
753
+ },
754
+ {
755
+ "name": "closeType",
756
+ "type": "u64"
757
+ }
758
+ ]
759
+ },
760
+ {
761
+ "name": "tradingCloseRepaySolWithReferral",
762
+ "discriminator": [
763
+ 113,
764
+ 176,
765
+ 203,
766
+ 24,
767
+ 224,
768
+ 228,
769
+ 31,
770
+ 35
771
+ ],
772
+ "accounts": [
773
+ {
774
+ "name": "positionAccount",
775
+ "writable": true
776
+ },
777
+ {
778
+ "name": "trader",
779
+ "writable": true,
780
+ "signer": true
781
+ },
782
+ {
783
+ "name": "tradingPool",
784
+ "writable": true
785
+ },
786
+ {
787
+ "name": "nodeWallet",
788
+ "writable": true
789
+ },
790
+ {
791
+ "name": "systemProgram"
792
+ },
793
+ {
794
+ "name": "clock"
795
+ },
796
+ {
797
+ "name": "randomAccountAsId"
798
+ },
799
+ {
800
+ "name": "feeReceipient",
801
+ "writable": true
802
+ }
803
+ ],
804
+ "args": [
805
+ {
806
+ "name": "closingPositionSize",
807
+ "type": "u64"
808
+ },
809
+ {
810
+ "name": "closeType",
811
+ "type": "u64"
812
+ },
813
+ {
814
+ "name": "discountBps",
815
+ "type": "u64"
816
+ },
817
+ {
818
+ "name": "referralBps",
819
+ "type": "u64"
820
+ }
821
+ ]
822
+ },
823
+ {
824
+ "name": "tradingClosePartialRepaySol",
825
+ "discriminator": [
826
+ 29,
827
+ 236,
828
+ 62,
829
+ 88,
830
+ 170,
831
+ 105,
832
+ 68,
833
+ 2
834
+ ],
835
+ "accounts": [
836
+ {
837
+ "name": "positionAccount",
838
+ "writable": true
839
+ },
840
+ {
841
+ "name": "trader",
842
+ "writable": true,
843
+ "signer": true
844
+ },
845
+ {
846
+ "name": "tradingPool",
847
+ "writable": true
848
+ },
849
+ {
850
+ "name": "nodeWallet",
851
+ "writable": true
852
+ },
853
+ {
854
+ "name": "systemProgram"
855
+ },
856
+ {
857
+ "name": "clock"
858
+ },
859
+ {
860
+ "name": "randomAccountAsId"
861
+ },
862
+ {
863
+ "name": "feeReceipient",
864
+ "writable": true
865
+ }
866
+ ],
867
+ "args": [
868
+ {
869
+ "name": "repayPercentage",
870
+ "type": "u64"
871
+ }
872
+ ]
873
+ },
874
+ {
875
+ "name": "tradingClosePositionAccount",
876
+ "discriminator": [
877
+ 112,
878
+ 178,
879
+ 77,
880
+ 58,
881
+ 204,
882
+ 138,
883
+ 62,
884
+ 85
885
+ ],
886
+ "accounts": [
887
+ {
888
+ "name": "positionAccount",
889
+ "writable": true
890
+ },
891
+ {
892
+ "name": "admin",
893
+ "signer": true
894
+ },
895
+ {
896
+ "name": "feeReceipient",
897
+ "writable": true
898
+ },
899
+ {
900
+ "name": "systemProgram"
901
+ }
902
+ ],
903
+ "args": []
904
+ },
905
+ {
906
+ "name": "tradingClosePoolAccount",
907
+ "discriminator": [
908
+ 226,
909
+ 22,
910
+ 159,
911
+ 126,
912
+ 37,
913
+ 223,
914
+ 57,
915
+ 107
916
+ ],
917
+ "accounts": [
918
+ {
919
+ "name": "poolAccount",
920
+ "writable": true
921
+ },
922
+ {
923
+ "name": "operator",
924
+ "signer": true
925
+ },
926
+ {
927
+ "name": "admin",
928
+ "signer": true
929
+ },
930
+ {
931
+ "name": "feeReceipient",
932
+ "writable": true
933
+ },
934
+ {
935
+ "name": "systemProgram"
936
+ }
937
+ ],
938
+ "args": []
939
+ },
940
+ {
941
+ "name": "syncNodeWallet",
942
+ "discriminator": [
943
+ 185,
944
+ 205,
945
+ 57,
946
+ 48,
947
+ 112,
948
+ 135,
949
+ 240,
950
+ 250
951
+ ],
952
+ "accounts": [
953
+ {
954
+ "name": "nodeWallet",
955
+ "writable": true
956
+ },
957
+ {
958
+ "name": "funder",
959
+ "writable": true,
960
+ "signer": true
961
+ },
962
+ {
963
+ "name": "systemProgram"
964
+ }
965
+ ],
966
+ "args": []
967
+ },
968
+ {
969
+ "name": "tradingCreateTpDelegate",
970
+ "discriminator": [
971
+ 174,
972
+ 200,
973
+ 59,
974
+ 127,
975
+ 100,
976
+ 216,
977
+ 183,
978
+ 8
979
+ ],
980
+ "accounts": [
981
+ {
982
+ "name": "delegate",
983
+ "writable": true
984
+ },
985
+ {
986
+ "name": "originalOperator",
987
+ "writable": true,
988
+ "signer": true
989
+ },
990
+ {
991
+ "name": "delegatedAccount"
992
+ },
993
+ {
994
+ "name": "systemProgram"
995
+ }
996
+ ],
997
+ "args": [
998
+ {
999
+ "name": "price",
1000
+ "type": "u64"
1001
+ },
1002
+ {
1003
+ "name": "lowerThreshold",
1004
+ "type": "u64"
1005
+ },
1006
+ {
1007
+ "name": "delegateOperator",
1008
+ "type": "pubkey"
1009
+ },
1010
+ {
1011
+ "name": "partialPercentage",
1012
+ "type": "u64"
1013
+ }
1014
+ ]
1015
+ },
1016
+ {
1017
+ "name": "tradingRemoveTpDelegate",
1018
+ "discriminator": [
1019
+ 88,
1020
+ 18,
1021
+ 149,
1022
+ 143,
1023
+ 124,
1024
+ 43,
1025
+ 68,
1026
+ 178
1027
+ ],
1028
+ "accounts": [
1029
+ {
1030
+ "name": "delegate",
1031
+ "writable": true
1032
+ },
1033
+ {
1034
+ "name": "originalOperator",
1035
+ "writable": true,
1036
+ "signer": true
1037
+ },
1038
+ {
1039
+ "name": "delegatedAccount"
1040
+ },
1041
+ {
1042
+ "name": "systemProgram"
1043
+ }
1044
+ ],
1045
+ "args": []
1046
+ },
1047
+ {
1048
+ "name": "delegateExecuteTp",
1049
+ "discriminator": [
1050
+ 207,
1051
+ 251,
1052
+ 148,
1053
+ 38,
1054
+ 214,
1055
+ 153,
1056
+ 54,
1057
+ 242
1058
+ ],
1059
+ "accounts": [
1060
+ {
1061
+ "name": "delegate",
1062
+ "writable": true
1063
+ },
1064
+ {
1065
+ "name": "delegateOperator",
1066
+ "signer": true
1067
+ },
1068
+ {
1069
+ "name": "account",
1070
+ "writable": true
1071
+ },
1072
+ {
1073
+ "name": "tradingPool",
1074
+ "writable": true
1075
+ },
1076
+ {
1077
+ "name": "tokenProgram"
1078
+ },
1079
+ {
1080
+ "name": "positionTokenAccount",
1081
+ "writable": true
1082
+ },
1083
+ {
1084
+ "name": "delegateTokenAccount",
1085
+ "writable": true
1086
+ },
1087
+ {
1088
+ "name": "systemProgram"
1089
+ },
1090
+ {
1091
+ "name": "mint"
1092
+ }
1093
+ ],
1094
+ "args": [
1095
+ {
1096
+ "name": "seed",
1097
+ "type": "pubkey"
1098
+ }
1099
+ ]
1100
+ },
1101
+ {
1102
+ "name": "delegateClosePosition",
1103
+ "discriminator": [
1104
+ 100,
1105
+ 249,
1106
+ 236,
1107
+ 96,
1108
+ 249,
1109
+ 195,
1110
+ 17,
1111
+ 157
1112
+ ],
1113
+ "accounts": [
1114
+ {
1115
+ "name": "delegate",
1116
+ "writable": true
1117
+ },
1118
+ {
1119
+ "name": "delegateOperator",
1120
+ "signer": true
1121
+ },
1122
+ {
1123
+ "name": "account",
1124
+ "writable": true
1125
+ },
1126
+ {
1127
+ "name": "tradingPool",
1128
+ "writable": true
1129
+ },
1130
+ {
1131
+ "name": "nodeWallet",
1132
+ "writable": true
1133
+ },
1134
+ {
1135
+ "name": "tokenProgram"
1136
+ },
1137
+ {
1138
+ "name": "nodeWalletTokenAccount",
1139
+ "writable": true
1140
+ },
1141
+ {
1142
+ "name": "delegateTokenAccount",
1143
+ "writable": true
1144
+ },
1145
+ {
1146
+ "name": "feeTokenAccount",
1147
+ "writable": true
1148
+ },
1149
+ {
1150
+ "name": "profitTokenAccount",
1151
+ "writable": true
1152
+ },
1153
+ {
1154
+ "name": "systemProgram"
1155
+ },
1156
+ {
1157
+ "name": "qtMint"
1158
+ }
1159
+ ],
1160
+ "args": [
1161
+ {
1162
+ "name": "closingPositionSize",
1163
+ "type": "u64"
1164
+ }
1165
+ ]
1166
+ },
1167
+ {
1168
+ "name": "tradingManagementSplitPosition",
1169
+ "discriminator": [
1170
+ 230,
1171
+ 180,
1172
+ 252,
1173
+ 200,
1174
+ 8,
1175
+ 246,
1176
+ 131,
1177
+ 54
1178
+ ],
1179
+ "accounts": [
1180
+ {
1181
+ "name": "originalPosition",
1182
+ "writable": true
1183
+ },
1184
+ {
1185
+ "name": "newPositionOne",
1186
+ "writable": true
1187
+ },
1188
+ {
1189
+ "name": "newPositionTwo",
1190
+ "writable": true
1191
+ },
1192
+ {
1193
+ "name": "mint"
1194
+ },
1195
+ {
1196
+ "name": "originalPositionTokenAccount",
1197
+ "writable": true
1198
+ },
1199
+ {
1200
+ "name": "newPositionTokenAccountOne",
1201
+ "writable": true
1202
+ },
1203
+ {
1204
+ "name": "newPositionTokenAccountTwo",
1205
+ "writable": true
1206
+ },
1207
+ {
1208
+ "name": "trader",
1209
+ "writable": true,
1210
+ "signer": true
1211
+ },
1212
+ {
1213
+ "name": "tokenProgram"
1214
+ },
1215
+ {
1216
+ "name": "systemProgram"
1217
+ }
1218
+ ],
1219
+ "args": [
1220
+ {
1221
+ "name": "splitRatioBps",
1222
+ "type": "u64"
1223
+ },
1224
+ {
1225
+ "name": "seed1",
1226
+ "type": "pubkey"
1227
+ },
1228
+ {
1229
+ "name": "seed2",
1230
+ "type": "pubkey"
1231
+ }
1232
+ ]
1233
+ },
1234
+ {
1235
+ "name": "initWithdrawalAccessList",
1236
+ "discriminator": [
1237
+ 118,
1238
+ 110,
1239
+ 194,
1240
+ 104,
1241
+ 220,
1242
+ 145,
1243
+ 69,
1244
+ 31
1245
+ ],
1246
+ "accounts": [
1247
+ {
1248
+ "name": "withdrawalAccessList",
1249
+ "writable": true
1250
+ },
1251
+ {
1252
+ "name": "authority",
1253
+ "writable": true,
1254
+ "signer": true
1255
+ },
1256
+ {
1257
+ "name": "systemProgram"
1258
+ }
1259
+ ],
1260
+ "args": []
1261
+ },
1262
+ {
1263
+ "name": "addWithdrawalAccess",
1264
+ "discriminator": [
1265
+ 45,
1266
+ 247,
1267
+ 214,
1268
+ 153,
1269
+ 224,
1270
+ 115,
1271
+ 136,
1272
+ 178
1273
+ ],
1274
+ "accounts": [
1275
+ {
1276
+ "name": "withdrawalAccessList",
1277
+ "writable": true
1278
+ },
1279
+ {
1280
+ "name": "nodeWallet"
1281
+ },
1282
+ {
1283
+ "name": "authority",
1284
+ "signer": true
1285
+ }
1286
+ ],
1287
+ "args": [
1288
+ {
1289
+ "name": "toPubkey",
1290
+ "type": "pubkey"
1291
+ }
1292
+ ]
1293
+ },
1294
+ {
1295
+ "name": "removeWithdrawalAccess",
1296
+ "discriminator": [
1297
+ 218,
1298
+ 186,
1299
+ 7,
1300
+ 130,
1301
+ 180,
1302
+ 40,
1303
+ 111,
1304
+ 122
1305
+ ],
1306
+ "accounts": [
1307
+ {
1308
+ "name": "withdrawalAccessList",
1309
+ "writable": true
1310
+ },
1311
+ {
1312
+ "name": "authority",
1313
+ "signer": true
1314
+ }
1315
+ ],
1316
+ "args": [
1317
+ {
1318
+ "name": "fromPubkey",
1319
+ "type": "string"
1320
+ }
1321
+ ]
1322
+ }
1323
+ ],
1324
+ "accounts": [
1325
+ {
1326
+ "name": "delegate",
1327
+ "discriminator": [
1328
+ 92,
1329
+ 145,
1330
+ 166,
1331
+ 111,
1332
+ 11,
1333
+ 38,
1334
+ 38,
1335
+ 247
1336
+ ]
1337
+ },
1338
+ {
1339
+ "name": "nodeWallet",
1340
+ "discriminator": [
1341
+ 48,
1342
+ 117,
1343
+ 214,
1344
+ 115,
1345
+ 125,
1346
+ 23,
1347
+ 94,
1348
+ 246
1349
+ ]
1350
+ },
1351
+ {
1352
+ "name": "pool",
1353
+ "discriminator": [
1354
+ 241,
1355
+ 154,
1356
+ 109,
1357
+ 4,
1358
+ 17,
1359
+ 177,
1360
+ 109,
1361
+ 188
1362
+ ]
1363
+ },
1364
+ {
1365
+ "name": "position",
1366
+ "discriminator": [
1367
+ 170,
1368
+ 188,
1369
+ 143,
1370
+ 228,
1371
+ 122,
1372
+ 64,
1373
+ 247,
1374
+ 208
1375
+ ]
1376
+ },
1377
+ {
1378
+ "name": "withdrawalAccessList",
1379
+ "discriminator": [
1380
+ 29,
1381
+ 144,
1382
+ 191,
1383
+ 76,
1384
+ 108,
1385
+ 26,
1386
+ 73,
1387
+ 234
1388
+ ]
1389
+ }
1390
+ ],
1391
+ "events": [
1392
+ {
1393
+ "name": "positionCloseEvent",
1394
+ "discriminator": [
1395
+ 85,
1396
+ 5,
1397
+ 166,
1398
+ 100,
1399
+ 218,
1400
+ 87,
1401
+ 230,
1402
+ 129
1403
+ ]
1404
+ },
1405
+ {
1406
+ "name": "positionOpenEvent",
1407
+ "discriminator": [
1408
+ 84,
1409
+ 127,
1410
+ 249,
1411
+ 160,
1412
+ 99,
1413
+ 95,
1414
+ 120,
1415
+ 120
1416
+ ]
1417
+ }
1418
+ ],
1419
+ "errors": [
1420
+ {
1421
+ "code": 6000,
1422
+ "name": "addressMismatch",
1423
+ "msg": "Address Mismatch"
1424
+ },
1425
+ {
1426
+ "code": 6001,
1427
+ "name": "programMismatch",
1428
+ "msg": "Program Mismatch"
1429
+ },
1430
+ {
1431
+ "code": 6002,
1432
+ "name": "missingRepay",
1433
+ "msg": "Missing Repay"
1434
+ },
1435
+ {
1436
+ "code": 6003,
1437
+ "name": "incorrectOwner",
1438
+ "msg": "Incorrect Owner"
1439
+ },
1440
+ {
1441
+ "code": 6004,
1442
+ "name": "incorrectProgramAuthority",
1443
+ "msg": "Incorrect Program Authority"
1444
+ },
1445
+ {
1446
+ "code": 6005,
1447
+ "name": "cannotBorrowBeforeRepay",
1448
+ "msg": "Cannot Borrow Before Repay"
1449
+ },
1450
+ {
1451
+ "code": 6006,
1452
+ "name": "unknownInstruction",
1453
+ "msg": "Unknown Instruction"
1454
+ },
1455
+ {
1456
+ "code": 6007,
1457
+ "name": "expectedCollateralNotEnough",
1458
+ "msg": "Expected collateral not enough"
1459
+ },
1460
+ {
1461
+ "code": 6008,
1462
+ "name": "forTesting",
1463
+ "msg": "testError"
1464
+ },
1465
+ {
1466
+ "code": 6009,
1467
+ "name": "blacklistedAccount",
1468
+ "msg": "Account is blacklisted"
1469
+ },
1470
+ {
1471
+ "code": 6010,
1472
+ "name": "closeStatusRecallTimestampZero",
1473
+ "msg": "Close status recall timestamp is zero"
1474
+ }
1475
+ ],
1476
+ "types": [
1477
+ {
1478
+ "name": "withdrawalAccessEntry",
1479
+ "type": {
1480
+ "kind": "struct",
1481
+ "fields": [
1482
+ {
1483
+ "name": "fromPubkey",
1484
+ "type": "string"
1485
+ },
1486
+ {
1487
+ "name": "toPubkey",
1488
+ "type": "pubkey"
1489
+ }
1490
+ ]
1491
+ }
1492
+ },
1493
+ {
1494
+ "name": "lendingErrors",
1495
+ "docs": [
1496
+ "Errors for this program"
1497
+ ],
1498
+ "type": {
1499
+ "kind": "enum",
1500
+ "variants": [
1501
+ {
1502
+ "name": "addressMismatch"
1503
+ },
1504
+ {
1505
+ "name": "programMismatch"
1506
+ },
1507
+ {
1508
+ "name": "missingRepay"
1509
+ },
1510
+ {
1511
+ "name": "incorrectOwner"
1512
+ },
1513
+ {
1514
+ "name": "incorrectProgramAuthority"
1515
+ },
1516
+ {
1517
+ "name": "cannotBorrowBeforeRepay"
1518
+ },
1519
+ {
1520
+ "name": "unknownInstruction"
1521
+ },
1522
+ {
1523
+ "name": "expectedCollateralNotEnough"
1524
+ },
1525
+ {
1526
+ "name": "accessEntryAlreadyExists"
1527
+ },
1528
+ {
1529
+ "name": "accessEntryNotFound"
1530
+ },
1531
+ {
1532
+ "name": "unauthorizedWithdrawal"
1533
+ },
1534
+ {
1535
+ "name": "accountAlreadyInitialized"
1536
+ }
1537
+ ]
1538
+ }
1539
+ },
1540
+ {
1541
+ "name": "errorCode",
1542
+ "type": {
1543
+ "kind": "enum",
1544
+ "variants": [
1545
+ {
1546
+ "name": "invalidSignature"
1547
+ },
1548
+ {
1549
+ "name": "invalidOracle"
1550
+ }
1551
+ ]
1552
+ }
1553
+ },
1554
+ {
1555
+ "name": "errorCode",
1556
+ "type": {
1557
+ "kind": "enum",
1558
+ "variants": [
1559
+ {
1560
+ "name": "invalidSplitRatio"
1561
+ },
1562
+ {
1563
+ "name": "positionsNotMergeable"
1564
+ }
1565
+ ]
1566
+ }
1567
+ },
1568
+ {
1569
+ "name": "errorCode",
1570
+ "type": {
1571
+ "kind": "enum",
1572
+ "variants": [
1573
+ {
1574
+ "name": "onlyDelegateOperator"
1575
+ },
1576
+ {
1577
+ "name": "addressMismatch"
1578
+ },
1579
+ {
1580
+ "name": "invalidDelegateType"
1581
+ }
1582
+ ]
1583
+ }
1584
+ },
1585
+ {
1586
+ "name": "positionCloseType",
1587
+ "type": {
1588
+ "kind": "enum",
1589
+ "variants": [
1590
+ {
1591
+ "name": "closedByUser"
1592
+ },
1593
+ {
1594
+ "name": "liquidated"
1595
+ }
1596
+ ]
1597
+ }
1598
+ },
1599
+ {
1600
+ "name": "delegate",
1601
+ "type": {
1602
+ "kind": "struct",
1603
+ "fields": [
1604
+ {
1605
+ "name": "delegateType",
1606
+ "type": "u8"
1607
+ },
1608
+ {
1609
+ "name": "field1",
1610
+ "type": "u64"
1611
+ },
1612
+ {
1613
+ "name": "field2",
1614
+ "type": "u64"
1615
+ },
1616
+ {
1617
+ "name": "field3",
1618
+ "type": "u64"
1619
+ },
1620
+ {
1621
+ "name": "field4",
1622
+ "type": "pubkey"
1623
+ },
1624
+ {
1625
+ "name": "field5",
1626
+ "type": "pubkey"
1627
+ },
1628
+ {
1629
+ "name": "originalOperator",
1630
+ "type": "pubkey"
1631
+ },
1632
+ {
1633
+ "name": "delegateOperator",
1634
+ "type": "pubkey"
1635
+ },
1636
+ {
1637
+ "name": "account",
1638
+ "type": "pubkey"
1639
+ }
1640
+ ]
1641
+ }
1642
+ },
1643
+ {
1644
+ "name": "nodeWallet",
1645
+ "type": {
1646
+ "kind": "struct",
1647
+ "fields": [
1648
+ {
1649
+ "name": "totalFunds",
1650
+ "type": "u64"
1651
+ },
1652
+ {
1653
+ "name": "totalBorrowed",
1654
+ "type": "u64"
1655
+ },
1656
+ {
1657
+ "name": "maintenanceLtv",
1658
+ "type": "u8"
1659
+ },
1660
+ {
1661
+ "name": "liquidationLtv",
1662
+ "type": "u8"
1663
+ },
1664
+ {
1665
+ "name": "nodeOperator",
1666
+ "type": "pubkey"
1667
+ }
1668
+ ]
1669
+ }
1670
+ },
1671
+ {
1672
+ "name": "pool",
1673
+ "type": {
1674
+ "kind": "struct",
1675
+ "fields": [
1676
+ {
1677
+ "name": "interestRate",
1678
+ "type": "u8"
1679
+ },
1680
+ {
1681
+ "name": "collateralType",
1682
+ "type": "pubkey"
1683
+ },
1684
+ {
1685
+ "name": "maxBorrow",
1686
+ "type": "u64"
1687
+ },
1688
+ {
1689
+ "name": "nodeWallet",
1690
+ "type": "pubkey"
1691
+ },
1692
+ {
1693
+ "name": "maxExposure",
1694
+ "type": "u64"
1695
+ },
1696
+ {
1697
+ "name": "currentExposure",
1698
+ "type": "u64"
1699
+ }
1700
+ ]
1701
+ }
1702
+ },
1703
+ {
1704
+ "name": "position",
1705
+ "type": {
1706
+ "kind": "struct",
1707
+ "fields": [
1708
+ {
1709
+ "name": "pool",
1710
+ "type": "pubkey"
1711
+ },
1712
+ {
1713
+ "name": "closeStatusRecallTimestamp",
1714
+ "type": "u64"
1715
+ },
1716
+ {
1717
+ "name": "amount",
1718
+ "type": "u64"
1719
+ },
1720
+ {
1721
+ "name": "userPaid",
1722
+ "type": "u64"
1723
+ },
1724
+ {
1725
+ "name": "collateralAmount",
1726
+ "type": "u64"
1727
+ },
1728
+ {
1729
+ "name": "timestamp",
1730
+ "type": "i64"
1731
+ },
1732
+ {
1733
+ "name": "trader",
1734
+ "type": "pubkey"
1735
+ },
1736
+ {
1737
+ "name": "seed",
1738
+ "type": "pubkey"
1739
+ },
1740
+ {
1741
+ "name": "closeTimestamp",
1742
+ "type": "i64"
1743
+ },
1744
+ {
1745
+ "name": "closingPositionSize",
1746
+ "type": "u64"
1747
+ },
1748
+ {
1749
+ "name": "interestRate",
1750
+ "type": "u8"
1751
+ },
1752
+ {
1753
+ "name": "lastInterestCollect",
1754
+ "type": "i64"
1755
+ }
1756
+ ]
1757
+ }
1758
+ },
1759
+ {
1760
+ "name": "withdrawalAccessList",
1761
+ "type": {
1762
+ "kind": "struct",
1763
+ "fields": [
1764
+ {
1765
+ "name": "authority",
1766
+ "type": "pubkey"
1767
+ },
1768
+ {
1769
+ "name": "accessEntries",
1770
+ "type": {
1771
+ "vec": {
1772
+ "defined": {
1773
+ "name": "withdrawalAccessEntry"
1774
+ }
1775
+ }
1776
+ }
1777
+ }
1778
+ ]
1779
+ }
1780
+ },
1781
+ {
1782
+ "name": "positionCloseEvent",
1783
+ "type": {
1784
+ "kind": "struct",
1785
+ "fields": [
1786
+ {
1787
+ "name": "pool",
1788
+ "type": "pubkey"
1789
+ },
1790
+ {
1791
+ "name": "amount",
1792
+ "type": "u64"
1793
+ },
1794
+ {
1795
+ "name": "userPaid",
1796
+ "type": "u64"
1797
+ },
1798
+ {
1799
+ "name": "collateralAmount",
1800
+ "type": "u64"
1801
+ },
1802
+ {
1803
+ "name": "openTimestamp",
1804
+ "type": "i64"
1805
+ },
1806
+ {
1807
+ "name": "trader",
1808
+ "type": "pubkey"
1809
+ },
1810
+ {
1811
+ "name": "closeType",
1812
+ "type": "u8"
1813
+ },
1814
+ {
1815
+ "name": "closeTimestamp",
1816
+ "type": "i64"
1817
+ },
1818
+ {
1819
+ "name": "closingPositionSize",
1820
+ "type": "u64"
1821
+ }
1822
+ ]
1823
+ }
1824
+ },
1825
+ {
1826
+ "name": "positionOpenEvent",
1827
+ "type": {
1828
+ "kind": "struct",
1829
+ "fields": [
1830
+ {
1831
+ "name": "pool",
1832
+ "type": "pubkey"
1833
+ },
1834
+ {
1835
+ "name": "amount",
1836
+ "type": "u64"
1837
+ },
1838
+ {
1839
+ "name": "userPaid",
1840
+ "type": "u64"
1841
+ },
1842
+ {
1843
+ "name": "collateralAmount",
1844
+ "type": "u64"
1845
+ },
1846
+ {
1847
+ "name": "openTimestamp",
1848
+ "type": "i64"
1849
+ },
1850
+ {
1851
+ "name": "trader",
1852
+ "type": "pubkey"
1853
+ }
1854
+ ]
1855
+ }
1856
+ }
1857
+ ]
1858
+ };