@glamsystems/glam-sdk 1.0.12 → 1.0.13
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/index.cjs.js +9309 -4898
- package/index.esm.js +9299 -4900
- package/package.json +1 -1
- package/src/assets.d.ts +3 -0
- package/src/client/access.d.ts +13 -0
- package/src/client/base.d.ts +3 -1
- package/src/client/drift/protocol-v2.d.ts +37 -0
- package/src/client/fees.d.ts +3 -0
- package/src/client/invest.d.ts +1 -1
- package/src/client/mint.d.ts +54 -1
- package/src/constants.d.ts +5 -0
- package/src/deser/index.d.ts +1 -0
- package/src/deser/tokenAclLayouts.d.ts +67 -0
- package/src/glamExports.d.ts +210 -260
- package/src/index.d.ts +1 -0
- package/src/utils/accounts.d.ts +5 -0
- package/src/utils/bitmask.d.ts +3 -0
- package/src/utils/glamPDAs.d.ts +5 -0
- package/target/idl/ext_drift-staging.json +1598 -149
- package/target/idl/ext_drift.json +1096 -127
- package/target/idl/glam_config.json +3 -0
- package/target/idl/glam_mint-staging.json +865 -0
- package/target/idl/glam_mint.json +25 -0
- package/target/idl/glam_protocol-staging.json +305 -0
- package/target/idl/glam_protocol.json +15 -0
- package/target/types/ext_drift-staging.ts +1598 -149
- package/target/types/ext_drift.d.ts +1102 -133
- package/target/types/ext_drift.ts +1096 -127
- package/target/types/glam_config.d.ts +3 -0
- package/target/types/glam_config.ts +3 -0
- package/target/types/glam_mint-staging.ts +865 -0
- package/target/types/glam_mint.d.ts +25 -0
- package/target/types/glam_mint.ts +25 -0
- package/target/types/glam_protocol-staging.ts +305 -0
- package/target/types/glam_protocol.d.ts +15 -0
- package/target/types/glam_protocol.ts +15 -0
|
@@ -13,6 +13,224 @@ export type ExtDrift = {
|
|
|
13
13
|
"description": "Drift integration for GLAM Protocol";
|
|
14
14
|
};
|
|
15
15
|
"instructions": [
|
|
16
|
+
{
|
|
17
|
+
"name": "cancelOrder";
|
|
18
|
+
"discriminator": [
|
|
19
|
+
95,
|
|
20
|
+
129,
|
|
21
|
+
237,
|
|
22
|
+
240,
|
|
23
|
+
8,
|
|
24
|
+
49,
|
|
25
|
+
223,
|
|
26
|
+
132
|
|
27
|
+
];
|
|
28
|
+
"accounts": [
|
|
29
|
+
{
|
|
30
|
+
"name": "glamState";
|
|
31
|
+
"writable": true;
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "glamVault";
|
|
35
|
+
"writable": true;
|
|
36
|
+
"pda": {
|
|
37
|
+
"seeds": [
|
|
38
|
+
{
|
|
39
|
+
"kind": "const";
|
|
40
|
+
"value": [
|
|
41
|
+
118,
|
|
42
|
+
97,
|
|
43
|
+
117,
|
|
44
|
+
108,
|
|
45
|
+
116
|
|
46
|
+
];
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"kind": "account";
|
|
50
|
+
"path": "glamState";
|
|
51
|
+
}
|
|
52
|
+
];
|
|
53
|
+
"program": {
|
|
54
|
+
"kind": "account";
|
|
55
|
+
"path": "glamProtocolProgram";
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"name": "glamSigner";
|
|
61
|
+
"writable": true;
|
|
62
|
+
"signer": true;
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"name": "integrationAuthority";
|
|
66
|
+
"pda": {
|
|
67
|
+
"seeds": [
|
|
68
|
+
{
|
|
69
|
+
"kind": "const";
|
|
70
|
+
"value": [
|
|
71
|
+
105,
|
|
72
|
+
110,
|
|
73
|
+
116,
|
|
74
|
+
101,
|
|
75
|
+
103,
|
|
76
|
+
114,
|
|
77
|
+
97,
|
|
78
|
+
116,
|
|
79
|
+
105,
|
|
80
|
+
111,
|
|
81
|
+
110,
|
|
82
|
+
45,
|
|
83
|
+
97,
|
|
84
|
+
117,
|
|
85
|
+
116,
|
|
86
|
+
104,
|
|
87
|
+
111,
|
|
88
|
+
114,
|
|
89
|
+
105,
|
|
90
|
+
116,
|
|
91
|
+
121
|
|
92
|
+
];
|
|
93
|
+
}
|
|
94
|
+
];
|
|
95
|
+
};
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"name": "cpiProgram";
|
|
99
|
+
"address": "dRiftyHA39MWEi3m9aunc5MzRF1JYuBsbn6VPcn33UH";
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"name": "glamProtocolProgram";
|
|
103
|
+
"address": "GLAMpaME8wdTEzxtiYEAa5yD8fZbxZiz2hNtV58RZiEz";
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"name": "systemProgram";
|
|
107
|
+
"address": "11111111111111111111111111111111";
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"name": "state";
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"name": "user";
|
|
114
|
+
"writable": true;
|
|
115
|
+
}
|
|
116
|
+
];
|
|
117
|
+
"args": [
|
|
118
|
+
{
|
|
119
|
+
"name": "orderId";
|
|
120
|
+
"type": {
|
|
121
|
+
"option": "u32";
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
];
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"name": "cancelOrderByUserId";
|
|
128
|
+
"discriminator": [
|
|
129
|
+
107,
|
|
130
|
+
211,
|
|
131
|
+
250,
|
|
132
|
+
133,
|
|
133
|
+
18,
|
|
134
|
+
37,
|
|
135
|
+
57,
|
|
136
|
+
100
|
|
137
|
+
];
|
|
138
|
+
"accounts": [
|
|
139
|
+
{
|
|
140
|
+
"name": "glamState";
|
|
141
|
+
"writable": true;
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"name": "glamVault";
|
|
145
|
+
"writable": true;
|
|
146
|
+
"pda": {
|
|
147
|
+
"seeds": [
|
|
148
|
+
{
|
|
149
|
+
"kind": "const";
|
|
150
|
+
"value": [
|
|
151
|
+
118,
|
|
152
|
+
97,
|
|
153
|
+
117,
|
|
154
|
+
108,
|
|
155
|
+
116
|
|
156
|
+
];
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"kind": "account";
|
|
160
|
+
"path": "glamState";
|
|
161
|
+
}
|
|
162
|
+
];
|
|
163
|
+
"program": {
|
|
164
|
+
"kind": "account";
|
|
165
|
+
"path": "glamProtocolProgram";
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"name": "glamSigner";
|
|
171
|
+
"writable": true;
|
|
172
|
+
"signer": true;
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"name": "integrationAuthority";
|
|
176
|
+
"pda": {
|
|
177
|
+
"seeds": [
|
|
178
|
+
{
|
|
179
|
+
"kind": "const";
|
|
180
|
+
"value": [
|
|
181
|
+
105,
|
|
182
|
+
110,
|
|
183
|
+
116,
|
|
184
|
+
101,
|
|
185
|
+
103,
|
|
186
|
+
114,
|
|
187
|
+
97,
|
|
188
|
+
116,
|
|
189
|
+
105,
|
|
190
|
+
111,
|
|
191
|
+
110,
|
|
192
|
+
45,
|
|
193
|
+
97,
|
|
194
|
+
117,
|
|
195
|
+
116,
|
|
196
|
+
104,
|
|
197
|
+
111,
|
|
198
|
+
114,
|
|
199
|
+
105,
|
|
200
|
+
116,
|
|
201
|
+
121
|
|
202
|
+
];
|
|
203
|
+
}
|
|
204
|
+
];
|
|
205
|
+
};
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"name": "cpiProgram";
|
|
209
|
+
"address": "dRiftyHA39MWEi3m9aunc5MzRF1JYuBsbn6VPcn33UH";
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"name": "glamProtocolProgram";
|
|
213
|
+
"address": "GLAMpaME8wdTEzxtiYEAa5yD8fZbxZiz2hNtV58RZiEz";
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"name": "systemProgram";
|
|
217
|
+
"address": "11111111111111111111111111111111";
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"name": "state";
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"name": "user";
|
|
224
|
+
"writable": true;
|
|
225
|
+
}
|
|
226
|
+
];
|
|
227
|
+
"args": [
|
|
228
|
+
{
|
|
229
|
+
"name": "userOrderId";
|
|
230
|
+
"type": "u8";
|
|
231
|
+
}
|
|
232
|
+
];
|
|
233
|
+
},
|
|
16
234
|
{
|
|
17
235
|
"name": "cancelOrders";
|
|
18
236
|
"discriminator": [
|
|
@@ -144,16 +362,729 @@ export type ExtDrift = {
|
|
|
144
362
|
];
|
|
145
363
|
},
|
|
146
364
|
{
|
|
147
|
-
"name": "cancelOrdersByIds";
|
|
365
|
+
"name": "cancelOrdersByIds";
|
|
366
|
+
"discriminator": [
|
|
367
|
+
134,
|
|
368
|
+
19,
|
|
369
|
+
144,
|
|
370
|
+
165,
|
|
371
|
+
94,
|
|
372
|
+
240,
|
|
373
|
+
210,
|
|
374
|
+
94
|
|
375
|
+
];
|
|
376
|
+
"accounts": [
|
|
377
|
+
{
|
|
378
|
+
"name": "glamState";
|
|
379
|
+
"writable": true;
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
"name": "glamVault";
|
|
383
|
+
"writable": true;
|
|
384
|
+
"pda": {
|
|
385
|
+
"seeds": [
|
|
386
|
+
{
|
|
387
|
+
"kind": "const";
|
|
388
|
+
"value": [
|
|
389
|
+
118,
|
|
390
|
+
97,
|
|
391
|
+
117,
|
|
392
|
+
108,
|
|
393
|
+
116
|
|
394
|
+
];
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
"kind": "account";
|
|
398
|
+
"path": "glamState";
|
|
399
|
+
}
|
|
400
|
+
];
|
|
401
|
+
"program": {
|
|
402
|
+
"kind": "account";
|
|
403
|
+
"path": "glamProtocolProgram";
|
|
404
|
+
};
|
|
405
|
+
};
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
"name": "glamSigner";
|
|
409
|
+
"writable": true;
|
|
410
|
+
"signer": true;
|
|
411
|
+
},
|
|
412
|
+
{
|
|
413
|
+
"name": "integrationAuthority";
|
|
414
|
+
"pda": {
|
|
415
|
+
"seeds": [
|
|
416
|
+
{
|
|
417
|
+
"kind": "const";
|
|
418
|
+
"value": [
|
|
419
|
+
105,
|
|
420
|
+
110,
|
|
421
|
+
116,
|
|
422
|
+
101,
|
|
423
|
+
103,
|
|
424
|
+
114,
|
|
425
|
+
97,
|
|
426
|
+
116,
|
|
427
|
+
105,
|
|
428
|
+
111,
|
|
429
|
+
110,
|
|
430
|
+
45,
|
|
431
|
+
97,
|
|
432
|
+
117,
|
|
433
|
+
116,
|
|
434
|
+
104,
|
|
435
|
+
111,
|
|
436
|
+
114,
|
|
437
|
+
105,
|
|
438
|
+
116,
|
|
439
|
+
121
|
|
440
|
+
];
|
|
441
|
+
}
|
|
442
|
+
];
|
|
443
|
+
};
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
"name": "cpiProgram";
|
|
447
|
+
"address": "dRiftyHA39MWEi3m9aunc5MzRF1JYuBsbn6VPcn33UH";
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
"name": "glamProtocolProgram";
|
|
451
|
+
"address": "GLAMpaME8wdTEzxtiYEAa5yD8fZbxZiz2hNtV58RZiEz";
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
"name": "systemProgram";
|
|
455
|
+
"address": "11111111111111111111111111111111";
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
"name": "state";
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
"name": "user";
|
|
462
|
+
"writable": true;
|
|
463
|
+
}
|
|
464
|
+
];
|
|
465
|
+
"args": [
|
|
466
|
+
{
|
|
467
|
+
"name": "orderIds";
|
|
468
|
+
"type": {
|
|
469
|
+
"vec": "u32";
|
|
470
|
+
};
|
|
471
|
+
}
|
|
472
|
+
];
|
|
473
|
+
},
|
|
474
|
+
{
|
|
475
|
+
"name": "deleteUser";
|
|
476
|
+
"discriminator": [
|
|
477
|
+
186,
|
|
478
|
+
85,
|
|
479
|
+
17,
|
|
480
|
+
249,
|
|
481
|
+
219,
|
|
482
|
+
231,
|
|
483
|
+
98,
|
|
484
|
+
251
|
|
485
|
+
];
|
|
486
|
+
"accounts": [
|
|
487
|
+
{
|
|
488
|
+
"name": "glamState";
|
|
489
|
+
"writable": true;
|
|
490
|
+
},
|
|
491
|
+
{
|
|
492
|
+
"name": "glamVault";
|
|
493
|
+
"writable": true;
|
|
494
|
+
"pda": {
|
|
495
|
+
"seeds": [
|
|
496
|
+
{
|
|
497
|
+
"kind": "const";
|
|
498
|
+
"value": [
|
|
499
|
+
118,
|
|
500
|
+
97,
|
|
501
|
+
117,
|
|
502
|
+
108,
|
|
503
|
+
116
|
|
504
|
+
];
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
"kind": "account";
|
|
508
|
+
"path": "glamState";
|
|
509
|
+
}
|
|
510
|
+
];
|
|
511
|
+
"program": {
|
|
512
|
+
"kind": "account";
|
|
513
|
+
"path": "glamProtocolProgram";
|
|
514
|
+
};
|
|
515
|
+
};
|
|
516
|
+
},
|
|
517
|
+
{
|
|
518
|
+
"name": "glamSigner";
|
|
519
|
+
"writable": true;
|
|
520
|
+
"signer": true;
|
|
521
|
+
},
|
|
522
|
+
{
|
|
523
|
+
"name": "integrationAuthority";
|
|
524
|
+
"pda": {
|
|
525
|
+
"seeds": [
|
|
526
|
+
{
|
|
527
|
+
"kind": "const";
|
|
528
|
+
"value": [
|
|
529
|
+
105,
|
|
530
|
+
110,
|
|
531
|
+
116,
|
|
532
|
+
101,
|
|
533
|
+
103,
|
|
534
|
+
114,
|
|
535
|
+
97,
|
|
536
|
+
116,
|
|
537
|
+
105,
|
|
538
|
+
111,
|
|
539
|
+
110,
|
|
540
|
+
45,
|
|
541
|
+
97,
|
|
542
|
+
117,
|
|
543
|
+
116,
|
|
544
|
+
104,
|
|
545
|
+
111,
|
|
546
|
+
114,
|
|
547
|
+
105,
|
|
548
|
+
116,
|
|
549
|
+
121
|
|
550
|
+
];
|
|
551
|
+
}
|
|
552
|
+
];
|
|
553
|
+
};
|
|
554
|
+
},
|
|
555
|
+
{
|
|
556
|
+
"name": "cpiProgram";
|
|
557
|
+
"address": "dRiftyHA39MWEi3m9aunc5MzRF1JYuBsbn6VPcn33UH";
|
|
558
|
+
},
|
|
559
|
+
{
|
|
560
|
+
"name": "glamProtocolProgram";
|
|
561
|
+
"address": "GLAMpaME8wdTEzxtiYEAa5yD8fZbxZiz2hNtV58RZiEz";
|
|
562
|
+
},
|
|
563
|
+
{
|
|
564
|
+
"name": "systemProgram";
|
|
565
|
+
"address": "11111111111111111111111111111111";
|
|
566
|
+
},
|
|
567
|
+
{
|
|
568
|
+
"name": "user";
|
|
569
|
+
"writable": true;
|
|
570
|
+
},
|
|
571
|
+
{
|
|
572
|
+
"name": "userStats";
|
|
573
|
+
"writable": true;
|
|
574
|
+
},
|
|
575
|
+
{
|
|
576
|
+
"name": "state";
|
|
577
|
+
"writable": true;
|
|
578
|
+
}
|
|
579
|
+
];
|
|
580
|
+
"args": [];
|
|
581
|
+
},
|
|
582
|
+
{
|
|
583
|
+
"name": "deposit";
|
|
584
|
+
"discriminator": [
|
|
585
|
+
242,
|
|
586
|
+
35,
|
|
587
|
+
198,
|
|
588
|
+
137,
|
|
589
|
+
82,
|
|
590
|
+
225,
|
|
591
|
+
242,
|
|
592
|
+
182
|
|
593
|
+
];
|
|
594
|
+
"accounts": [
|
|
595
|
+
{
|
|
596
|
+
"name": "glamState";
|
|
597
|
+
"writable": true;
|
|
598
|
+
},
|
|
599
|
+
{
|
|
600
|
+
"name": "glamVault";
|
|
601
|
+
"writable": true;
|
|
602
|
+
"pda": {
|
|
603
|
+
"seeds": [
|
|
604
|
+
{
|
|
605
|
+
"kind": "const";
|
|
606
|
+
"value": [
|
|
607
|
+
118,
|
|
608
|
+
97,
|
|
609
|
+
117,
|
|
610
|
+
108,
|
|
611
|
+
116
|
|
612
|
+
];
|
|
613
|
+
},
|
|
614
|
+
{
|
|
615
|
+
"kind": "account";
|
|
616
|
+
"path": "glamState";
|
|
617
|
+
}
|
|
618
|
+
];
|
|
619
|
+
"program": {
|
|
620
|
+
"kind": "account";
|
|
621
|
+
"path": "glamProtocolProgram";
|
|
622
|
+
};
|
|
623
|
+
};
|
|
624
|
+
},
|
|
625
|
+
{
|
|
626
|
+
"name": "glamSigner";
|
|
627
|
+
"writable": true;
|
|
628
|
+
"signer": true;
|
|
629
|
+
},
|
|
630
|
+
{
|
|
631
|
+
"name": "integrationAuthority";
|
|
632
|
+
"pda": {
|
|
633
|
+
"seeds": [
|
|
634
|
+
{
|
|
635
|
+
"kind": "const";
|
|
636
|
+
"value": [
|
|
637
|
+
105,
|
|
638
|
+
110,
|
|
639
|
+
116,
|
|
640
|
+
101,
|
|
641
|
+
103,
|
|
642
|
+
114,
|
|
643
|
+
97,
|
|
644
|
+
116,
|
|
645
|
+
105,
|
|
646
|
+
111,
|
|
647
|
+
110,
|
|
648
|
+
45,
|
|
649
|
+
97,
|
|
650
|
+
117,
|
|
651
|
+
116,
|
|
652
|
+
104,
|
|
653
|
+
111,
|
|
654
|
+
114,
|
|
655
|
+
105,
|
|
656
|
+
116,
|
|
657
|
+
121
|
|
658
|
+
];
|
|
659
|
+
}
|
|
660
|
+
];
|
|
661
|
+
};
|
|
662
|
+
},
|
|
663
|
+
{
|
|
664
|
+
"name": "cpiProgram";
|
|
665
|
+
"address": "dRiftyHA39MWEi3m9aunc5MzRF1JYuBsbn6VPcn33UH";
|
|
666
|
+
},
|
|
667
|
+
{
|
|
668
|
+
"name": "glamProtocolProgram";
|
|
669
|
+
"address": "GLAMpaME8wdTEzxtiYEAa5yD8fZbxZiz2hNtV58RZiEz";
|
|
670
|
+
},
|
|
671
|
+
{
|
|
672
|
+
"name": "systemProgram";
|
|
673
|
+
"address": "11111111111111111111111111111111";
|
|
674
|
+
},
|
|
675
|
+
{
|
|
676
|
+
"name": "state";
|
|
677
|
+
},
|
|
678
|
+
{
|
|
679
|
+
"name": "user";
|
|
680
|
+
"writable": true;
|
|
681
|
+
},
|
|
682
|
+
{
|
|
683
|
+
"name": "userStats";
|
|
684
|
+
"writable": true;
|
|
685
|
+
},
|
|
686
|
+
{
|
|
687
|
+
"name": "spotMarketVault";
|
|
688
|
+
"writable": true;
|
|
689
|
+
},
|
|
690
|
+
{
|
|
691
|
+
"name": "userTokenAccount";
|
|
692
|
+
"writable": true;
|
|
693
|
+
},
|
|
694
|
+
{
|
|
695
|
+
"name": "tokenProgram";
|
|
696
|
+
}
|
|
697
|
+
];
|
|
698
|
+
"args": [
|
|
699
|
+
{
|
|
700
|
+
"name": "marketIndex";
|
|
701
|
+
"type": "u16";
|
|
702
|
+
},
|
|
703
|
+
{
|
|
704
|
+
"name": "amount";
|
|
705
|
+
"type": "u64";
|
|
706
|
+
},
|
|
707
|
+
{
|
|
708
|
+
"name": "reduceOnly";
|
|
709
|
+
"type": "bool";
|
|
710
|
+
}
|
|
711
|
+
];
|
|
712
|
+
},
|
|
713
|
+
{
|
|
714
|
+
"name": "initializeUser";
|
|
715
|
+
"discriminator": [
|
|
716
|
+
111,
|
|
717
|
+
17,
|
|
718
|
+
185,
|
|
719
|
+
250,
|
|
720
|
+
60,
|
|
721
|
+
122,
|
|
722
|
+
38,
|
|
723
|
+
254
|
|
724
|
+
];
|
|
725
|
+
"accounts": [
|
|
726
|
+
{
|
|
727
|
+
"name": "glamState";
|
|
728
|
+
"writable": true;
|
|
729
|
+
},
|
|
730
|
+
{
|
|
731
|
+
"name": "glamVault";
|
|
732
|
+
"writable": true;
|
|
733
|
+
"pda": {
|
|
734
|
+
"seeds": [
|
|
735
|
+
{
|
|
736
|
+
"kind": "const";
|
|
737
|
+
"value": [
|
|
738
|
+
118,
|
|
739
|
+
97,
|
|
740
|
+
117,
|
|
741
|
+
108,
|
|
742
|
+
116
|
|
743
|
+
];
|
|
744
|
+
},
|
|
745
|
+
{
|
|
746
|
+
"kind": "account";
|
|
747
|
+
"path": "glamState";
|
|
748
|
+
}
|
|
749
|
+
];
|
|
750
|
+
"program": {
|
|
751
|
+
"kind": "account";
|
|
752
|
+
"path": "glamProtocolProgram";
|
|
753
|
+
};
|
|
754
|
+
};
|
|
755
|
+
},
|
|
756
|
+
{
|
|
757
|
+
"name": "glamSigner";
|
|
758
|
+
"writable": true;
|
|
759
|
+
"signer": true;
|
|
760
|
+
},
|
|
761
|
+
{
|
|
762
|
+
"name": "integrationAuthority";
|
|
763
|
+
"pda": {
|
|
764
|
+
"seeds": [
|
|
765
|
+
{
|
|
766
|
+
"kind": "const";
|
|
767
|
+
"value": [
|
|
768
|
+
105,
|
|
769
|
+
110,
|
|
770
|
+
116,
|
|
771
|
+
101,
|
|
772
|
+
103,
|
|
773
|
+
114,
|
|
774
|
+
97,
|
|
775
|
+
116,
|
|
776
|
+
105,
|
|
777
|
+
111,
|
|
778
|
+
110,
|
|
779
|
+
45,
|
|
780
|
+
97,
|
|
781
|
+
117,
|
|
782
|
+
116,
|
|
783
|
+
104,
|
|
784
|
+
111,
|
|
785
|
+
114,
|
|
786
|
+
105,
|
|
787
|
+
116,
|
|
788
|
+
121
|
|
789
|
+
];
|
|
790
|
+
}
|
|
791
|
+
];
|
|
792
|
+
};
|
|
793
|
+
},
|
|
794
|
+
{
|
|
795
|
+
"name": "cpiProgram";
|
|
796
|
+
"address": "dRiftyHA39MWEi3m9aunc5MzRF1JYuBsbn6VPcn33UH";
|
|
797
|
+
},
|
|
798
|
+
{
|
|
799
|
+
"name": "glamProtocolProgram";
|
|
800
|
+
"address": "GLAMpaME8wdTEzxtiYEAa5yD8fZbxZiz2hNtV58RZiEz";
|
|
801
|
+
},
|
|
802
|
+
{
|
|
803
|
+
"name": "user";
|
|
804
|
+
"writable": true;
|
|
805
|
+
},
|
|
806
|
+
{
|
|
807
|
+
"name": "userStats";
|
|
808
|
+
"writable": true;
|
|
809
|
+
},
|
|
810
|
+
{
|
|
811
|
+
"name": "state";
|
|
812
|
+
"writable": true;
|
|
813
|
+
},
|
|
814
|
+
{
|
|
815
|
+
"name": "rent";
|
|
816
|
+
"address": "SysvarRent111111111111111111111111111111111";
|
|
817
|
+
},
|
|
818
|
+
{
|
|
819
|
+
"name": "systemProgram";
|
|
820
|
+
"address": "11111111111111111111111111111111";
|
|
821
|
+
}
|
|
822
|
+
];
|
|
823
|
+
"args": [
|
|
824
|
+
{
|
|
825
|
+
"name": "subAccountId";
|
|
826
|
+
"type": "u16";
|
|
827
|
+
},
|
|
828
|
+
{
|
|
829
|
+
"name": "name";
|
|
830
|
+
"type": {
|
|
831
|
+
"array": [
|
|
832
|
+
"u8",
|
|
833
|
+
32
|
|
834
|
+
];
|
|
835
|
+
};
|
|
836
|
+
}
|
|
837
|
+
];
|
|
838
|
+
},
|
|
839
|
+
{
|
|
840
|
+
"name": "initializeUserStats";
|
|
841
|
+
"discriminator": [
|
|
842
|
+
254,
|
|
843
|
+
243,
|
|
844
|
+
72,
|
|
845
|
+
98,
|
|
846
|
+
251,
|
|
847
|
+
130,
|
|
848
|
+
168,
|
|
849
|
+
213
|
|
850
|
+
];
|
|
851
|
+
"accounts": [
|
|
852
|
+
{
|
|
853
|
+
"name": "glamState";
|
|
854
|
+
"writable": true;
|
|
855
|
+
},
|
|
856
|
+
{
|
|
857
|
+
"name": "glamVault";
|
|
858
|
+
"writable": true;
|
|
859
|
+
"pda": {
|
|
860
|
+
"seeds": [
|
|
861
|
+
{
|
|
862
|
+
"kind": "const";
|
|
863
|
+
"value": [
|
|
864
|
+
118,
|
|
865
|
+
97,
|
|
866
|
+
117,
|
|
867
|
+
108,
|
|
868
|
+
116
|
|
869
|
+
];
|
|
870
|
+
},
|
|
871
|
+
{
|
|
872
|
+
"kind": "account";
|
|
873
|
+
"path": "glamState";
|
|
874
|
+
}
|
|
875
|
+
];
|
|
876
|
+
"program": {
|
|
877
|
+
"kind": "account";
|
|
878
|
+
"path": "glamProtocolProgram";
|
|
879
|
+
};
|
|
880
|
+
};
|
|
881
|
+
},
|
|
882
|
+
{
|
|
883
|
+
"name": "glamSigner";
|
|
884
|
+
"writable": true;
|
|
885
|
+
"signer": true;
|
|
886
|
+
},
|
|
887
|
+
{
|
|
888
|
+
"name": "integrationAuthority";
|
|
889
|
+
"pda": {
|
|
890
|
+
"seeds": [
|
|
891
|
+
{
|
|
892
|
+
"kind": "const";
|
|
893
|
+
"value": [
|
|
894
|
+
105,
|
|
895
|
+
110,
|
|
896
|
+
116,
|
|
897
|
+
101,
|
|
898
|
+
103,
|
|
899
|
+
114,
|
|
900
|
+
97,
|
|
901
|
+
116,
|
|
902
|
+
105,
|
|
903
|
+
111,
|
|
904
|
+
110,
|
|
905
|
+
45,
|
|
906
|
+
97,
|
|
907
|
+
117,
|
|
908
|
+
116,
|
|
909
|
+
104,
|
|
910
|
+
111,
|
|
911
|
+
114,
|
|
912
|
+
105,
|
|
913
|
+
116,
|
|
914
|
+
121
|
|
915
|
+
];
|
|
916
|
+
}
|
|
917
|
+
];
|
|
918
|
+
};
|
|
919
|
+
},
|
|
920
|
+
{
|
|
921
|
+
"name": "cpiProgram";
|
|
922
|
+
"address": "dRiftyHA39MWEi3m9aunc5MzRF1JYuBsbn6VPcn33UH";
|
|
923
|
+
},
|
|
924
|
+
{
|
|
925
|
+
"name": "glamProtocolProgram";
|
|
926
|
+
"address": "GLAMpaME8wdTEzxtiYEAa5yD8fZbxZiz2hNtV58RZiEz";
|
|
927
|
+
},
|
|
928
|
+
{
|
|
929
|
+
"name": "userStats";
|
|
930
|
+
"writable": true;
|
|
931
|
+
},
|
|
932
|
+
{
|
|
933
|
+
"name": "state";
|
|
934
|
+
"writable": true;
|
|
935
|
+
},
|
|
936
|
+
{
|
|
937
|
+
"name": "rent";
|
|
938
|
+
"address": "SysvarRent111111111111111111111111111111111";
|
|
939
|
+
},
|
|
940
|
+
{
|
|
941
|
+
"name": "systemProgram";
|
|
942
|
+
"address": "11111111111111111111111111111111";
|
|
943
|
+
}
|
|
944
|
+
];
|
|
945
|
+
"args": [];
|
|
946
|
+
},
|
|
947
|
+
{
|
|
948
|
+
"name": "liquidatePerp";
|
|
949
|
+
"discriminator": [
|
|
950
|
+
75,
|
|
951
|
+
35,
|
|
952
|
+
119,
|
|
953
|
+
247,
|
|
954
|
+
191,
|
|
955
|
+
18,
|
|
956
|
+
139,
|
|
957
|
+
2
|
|
958
|
+
];
|
|
959
|
+
"accounts": [
|
|
960
|
+
{
|
|
961
|
+
"name": "glamState";
|
|
962
|
+
"writable": true;
|
|
963
|
+
},
|
|
964
|
+
{
|
|
965
|
+
"name": "glamVault";
|
|
966
|
+
"writable": true;
|
|
967
|
+
"pda": {
|
|
968
|
+
"seeds": [
|
|
969
|
+
{
|
|
970
|
+
"kind": "const";
|
|
971
|
+
"value": [
|
|
972
|
+
118,
|
|
973
|
+
97,
|
|
974
|
+
117,
|
|
975
|
+
108,
|
|
976
|
+
116
|
|
977
|
+
];
|
|
978
|
+
},
|
|
979
|
+
{
|
|
980
|
+
"kind": "account";
|
|
981
|
+
"path": "glamState";
|
|
982
|
+
}
|
|
983
|
+
];
|
|
984
|
+
"program": {
|
|
985
|
+
"kind": "account";
|
|
986
|
+
"path": "glamProtocolProgram";
|
|
987
|
+
};
|
|
988
|
+
};
|
|
989
|
+
},
|
|
990
|
+
{
|
|
991
|
+
"name": "glamSigner";
|
|
992
|
+
"writable": true;
|
|
993
|
+
"signer": true;
|
|
994
|
+
},
|
|
995
|
+
{
|
|
996
|
+
"name": "integrationAuthority";
|
|
997
|
+
"pda": {
|
|
998
|
+
"seeds": [
|
|
999
|
+
{
|
|
1000
|
+
"kind": "const";
|
|
1001
|
+
"value": [
|
|
1002
|
+
105,
|
|
1003
|
+
110,
|
|
1004
|
+
116,
|
|
1005
|
+
101,
|
|
1006
|
+
103,
|
|
1007
|
+
114,
|
|
1008
|
+
97,
|
|
1009
|
+
116,
|
|
1010
|
+
105,
|
|
1011
|
+
111,
|
|
1012
|
+
110,
|
|
1013
|
+
45,
|
|
1014
|
+
97,
|
|
1015
|
+
117,
|
|
1016
|
+
116,
|
|
1017
|
+
104,
|
|
1018
|
+
111,
|
|
1019
|
+
114,
|
|
1020
|
+
105,
|
|
1021
|
+
116,
|
|
1022
|
+
121
|
|
1023
|
+
];
|
|
1024
|
+
}
|
|
1025
|
+
];
|
|
1026
|
+
};
|
|
1027
|
+
},
|
|
1028
|
+
{
|
|
1029
|
+
"name": "cpiProgram";
|
|
1030
|
+
"address": "dRiftyHA39MWEi3m9aunc5MzRF1JYuBsbn6VPcn33UH";
|
|
1031
|
+
},
|
|
1032
|
+
{
|
|
1033
|
+
"name": "glamProtocolProgram";
|
|
1034
|
+
"address": "GLAMpaME8wdTEzxtiYEAa5yD8fZbxZiz2hNtV58RZiEz";
|
|
1035
|
+
},
|
|
1036
|
+
{
|
|
1037
|
+
"name": "systemProgram";
|
|
1038
|
+
"address": "11111111111111111111111111111111";
|
|
1039
|
+
},
|
|
1040
|
+
{
|
|
1041
|
+
"name": "state";
|
|
1042
|
+
},
|
|
1043
|
+
{
|
|
1044
|
+
"name": "liquidator";
|
|
1045
|
+
"writable": true;
|
|
1046
|
+
},
|
|
1047
|
+
{
|
|
1048
|
+
"name": "liquidatorStats";
|
|
1049
|
+
"writable": true;
|
|
1050
|
+
},
|
|
1051
|
+
{
|
|
1052
|
+
"name": "user";
|
|
1053
|
+
"writable": true;
|
|
1054
|
+
},
|
|
1055
|
+
{
|
|
1056
|
+
"name": "userStats";
|
|
1057
|
+
"writable": true;
|
|
1058
|
+
}
|
|
1059
|
+
];
|
|
1060
|
+
"args": [
|
|
1061
|
+
{
|
|
1062
|
+
"name": "marketIndex";
|
|
1063
|
+
"type": "u16";
|
|
1064
|
+
},
|
|
1065
|
+
{
|
|
1066
|
+
"name": "liquidatorMaxBaseAssetAmount";
|
|
1067
|
+
"type": "u64";
|
|
1068
|
+
},
|
|
1069
|
+
{
|
|
1070
|
+
"name": "limitPrice";
|
|
1071
|
+
"type": {
|
|
1072
|
+
"option": "u64";
|
|
1073
|
+
};
|
|
1074
|
+
}
|
|
1075
|
+
];
|
|
1076
|
+
},
|
|
1077
|
+
{
|
|
1078
|
+
"name": "liquidateSpot";
|
|
148
1079
|
"discriminator": [
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
1080
|
+
107,
|
|
1081
|
+
0,
|
|
1082
|
+
128,
|
|
1083
|
+
41,
|
|
1084
|
+
35,
|
|
1085
|
+
229,
|
|
1086
|
+
251,
|
|
1087
|
+
18
|
|
157
1088
|
];
|
|
158
1089
|
"accounts": [
|
|
159
1090
|
{
|
|
@@ -239,31 +1170,55 @@ export type ExtDrift = {
|
|
|
239
1170
|
{
|
|
240
1171
|
"name": "state";
|
|
241
1172
|
},
|
|
1173
|
+
{
|
|
1174
|
+
"name": "liquidator";
|
|
1175
|
+
"writable": true;
|
|
1176
|
+
},
|
|
1177
|
+
{
|
|
1178
|
+
"name": "liquidatorStats";
|
|
1179
|
+
"writable": true;
|
|
1180
|
+
},
|
|
242
1181
|
{
|
|
243
1182
|
"name": "user";
|
|
244
1183
|
"writable": true;
|
|
1184
|
+
},
|
|
1185
|
+
{
|
|
1186
|
+
"name": "userStats";
|
|
1187
|
+
"writable": true;
|
|
245
1188
|
}
|
|
246
1189
|
];
|
|
247
1190
|
"args": [
|
|
248
1191
|
{
|
|
249
|
-
"name": "
|
|
1192
|
+
"name": "assetMarketIndex";
|
|
1193
|
+
"type": "u16";
|
|
1194
|
+
},
|
|
1195
|
+
{
|
|
1196
|
+
"name": "liabilityMarketIndex";
|
|
1197
|
+
"type": "u16";
|
|
1198
|
+
},
|
|
1199
|
+
{
|
|
1200
|
+
"name": "liquidatorMaxLiabilityTransfer";
|
|
1201
|
+
"type": "u128";
|
|
1202
|
+
},
|
|
1203
|
+
{
|
|
1204
|
+
"name": "limitPrice";
|
|
250
1205
|
"type": {
|
|
251
|
-
"
|
|
1206
|
+
"option": "u64";
|
|
252
1207
|
};
|
|
253
1208
|
}
|
|
254
1209
|
];
|
|
255
1210
|
},
|
|
256
1211
|
{
|
|
257
|
-
"name": "
|
|
1212
|
+
"name": "modifyOrder";
|
|
258
1213
|
"discriminator": [
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
1214
|
+
47,
|
|
1215
|
+
124,
|
|
1216
|
+
117,
|
|
1217
|
+
255,
|
|
1218
|
+
201,
|
|
1219
|
+
197,
|
|
1220
|
+
130,
|
|
1221
|
+
94
|
|
267
1222
|
];
|
|
268
1223
|
"accounts": [
|
|
269
1224
|
{
|
|
@@ -347,31 +1302,41 @@ export type ExtDrift = {
|
|
|
347
1302
|
"address": "11111111111111111111111111111111";
|
|
348
1303
|
},
|
|
349
1304
|
{
|
|
350
|
-
"name": "
|
|
351
|
-
"writable": true;
|
|
1305
|
+
"name": "state";
|
|
352
1306
|
},
|
|
353
1307
|
{
|
|
354
|
-
"name": "
|
|
1308
|
+
"name": "user";
|
|
355
1309
|
"writable": true;
|
|
1310
|
+
}
|
|
1311
|
+
];
|
|
1312
|
+
"args": [
|
|
1313
|
+
{
|
|
1314
|
+
"name": "orderId";
|
|
1315
|
+
"type": {
|
|
1316
|
+
"option": "u32";
|
|
1317
|
+
};
|
|
356
1318
|
},
|
|
357
1319
|
{
|
|
358
|
-
"name": "
|
|
359
|
-
"
|
|
1320
|
+
"name": "modifyOrderParams";
|
|
1321
|
+
"type": {
|
|
1322
|
+
"defined": {
|
|
1323
|
+
"name": "modifyOrderParams";
|
|
1324
|
+
};
|
|
1325
|
+
};
|
|
360
1326
|
}
|
|
361
1327
|
];
|
|
362
|
-
"args": [];
|
|
363
1328
|
},
|
|
364
1329
|
{
|
|
365
|
-
"name": "
|
|
1330
|
+
"name": "modifyOrderByUserId";
|
|
366
1331
|
"discriminator": [
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
1332
|
+
158,
|
|
1333
|
+
77,
|
|
1334
|
+
4,
|
|
1335
|
+
253,
|
|
1336
|
+
252,
|
|
1337
|
+
194,
|
|
1338
|
+
161,
|
|
1339
|
+
179
|
|
375
1340
|
];
|
|
376
1341
|
"accounts": [
|
|
377
1342
|
{
|
|
@@ -460,49 +1425,34 @@ export type ExtDrift = {
|
|
|
460
1425
|
{
|
|
461
1426
|
"name": "user";
|
|
462
1427
|
"writable": true;
|
|
463
|
-
},
|
|
464
|
-
{
|
|
465
|
-
"name": "userStats";
|
|
466
|
-
"writable": true;
|
|
467
|
-
},
|
|
468
|
-
{
|
|
469
|
-
"name": "spotMarketVault";
|
|
470
|
-
"writable": true;
|
|
471
|
-
},
|
|
472
|
-
{
|
|
473
|
-
"name": "userTokenAccount";
|
|
474
|
-
"writable": true;
|
|
475
|
-
},
|
|
476
|
-
{
|
|
477
|
-
"name": "tokenProgram";
|
|
478
1428
|
}
|
|
479
1429
|
];
|
|
480
1430
|
"args": [
|
|
481
1431
|
{
|
|
482
|
-
"name": "
|
|
483
|
-
"type": "
|
|
484
|
-
},
|
|
485
|
-
{
|
|
486
|
-
"name": "amount";
|
|
487
|
-
"type": "u64";
|
|
1432
|
+
"name": "userOrderId";
|
|
1433
|
+
"type": "u8";
|
|
488
1434
|
},
|
|
489
1435
|
{
|
|
490
|
-
"name": "
|
|
491
|
-
"type":
|
|
1436
|
+
"name": "modifyOrderParams";
|
|
1437
|
+
"type": {
|
|
1438
|
+
"defined": {
|
|
1439
|
+
"name": "modifyOrderParams";
|
|
1440
|
+
};
|
|
1441
|
+
};
|
|
492
1442
|
}
|
|
493
1443
|
];
|
|
494
1444
|
},
|
|
495
1445
|
{
|
|
496
|
-
"name": "
|
|
1446
|
+
"name": "placeAndTakePerpOrder";
|
|
497
1447
|
"discriminator": [
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
1448
|
+
213,
|
|
1449
|
+
51,
|
|
1450
|
+
1,
|
|
1451
|
+
187,
|
|
1452
|
+
108,
|
|
1453
|
+
220,
|
|
1454
|
+
230,
|
|
1455
|
+
224
|
|
506
1456
|
];
|
|
507
1457
|
"accounts": [
|
|
508
1458
|
{
|
|
@@ -582,53 +1532,49 @@ export type ExtDrift = {
|
|
|
582
1532
|
"address": "GLAMpaME8wdTEzxtiYEAa5yD8fZbxZiz2hNtV58RZiEz";
|
|
583
1533
|
},
|
|
584
1534
|
{
|
|
585
|
-
"name": "
|
|
586
|
-
"
|
|
587
|
-
},
|
|
588
|
-
{
|
|
589
|
-
"name": "userStats";
|
|
590
|
-
"writable": true;
|
|
1535
|
+
"name": "systemProgram";
|
|
1536
|
+
"address": "11111111111111111111111111111111";
|
|
591
1537
|
},
|
|
592
1538
|
{
|
|
593
1539
|
"name": "state";
|
|
594
|
-
"writable": true;
|
|
595
1540
|
},
|
|
596
1541
|
{
|
|
597
|
-
"name": "
|
|
598
|
-
"
|
|
1542
|
+
"name": "user";
|
|
1543
|
+
"writable": true;
|
|
599
1544
|
},
|
|
600
1545
|
{
|
|
601
|
-
"name": "
|
|
602
|
-
"
|
|
1546
|
+
"name": "userStats";
|
|
1547
|
+
"writable": true;
|
|
603
1548
|
}
|
|
604
1549
|
];
|
|
605
1550
|
"args": [
|
|
606
1551
|
{
|
|
607
|
-
"name": "
|
|
608
|
-
"type":
|
|
1552
|
+
"name": "params";
|
|
1553
|
+
"type": {
|
|
1554
|
+
"defined": {
|
|
1555
|
+
"name": "orderParams";
|
|
1556
|
+
};
|
|
1557
|
+
};
|
|
609
1558
|
},
|
|
610
1559
|
{
|
|
611
|
-
"name": "
|
|
1560
|
+
"name": "successCondition";
|
|
612
1561
|
"type": {
|
|
613
|
-
"
|
|
614
|
-
"u8",
|
|
615
|
-
32
|
|
616
|
-
];
|
|
1562
|
+
"option": "u32";
|
|
617
1563
|
};
|
|
618
1564
|
}
|
|
619
1565
|
];
|
|
620
1566
|
},
|
|
621
1567
|
{
|
|
622
|
-
"name": "
|
|
1568
|
+
"name": "placeOrders";
|
|
623
1569
|
"discriminator": [
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
1570
|
+
60,
|
|
1571
|
+
63,
|
|
1572
|
+
50,
|
|
1573
|
+
123,
|
|
1574
|
+
12,
|
|
1575
|
+
197,
|
|
1576
|
+
60,
|
|
1577
|
+
190
|
|
632
1578
|
];
|
|
633
1579
|
"accounts": [
|
|
634
1580
|
{
|
|
@@ -708,35 +1654,41 @@ export type ExtDrift = {
|
|
|
708
1654
|
"address": "GLAMpaME8wdTEzxtiYEAa5yD8fZbxZiz2hNtV58RZiEz";
|
|
709
1655
|
},
|
|
710
1656
|
{
|
|
711
|
-
"name": "
|
|
712
|
-
"
|
|
1657
|
+
"name": "systemProgram";
|
|
1658
|
+
"address": "11111111111111111111111111111111";
|
|
713
1659
|
},
|
|
714
1660
|
{
|
|
715
1661
|
"name": "state";
|
|
716
|
-
"writable": true;
|
|
717
1662
|
},
|
|
718
1663
|
{
|
|
719
|
-
"name": "
|
|
720
|
-
"
|
|
721
|
-
}
|
|
1664
|
+
"name": "user";
|
|
1665
|
+
"writable": true;
|
|
1666
|
+
}
|
|
1667
|
+
];
|
|
1668
|
+
"args": [
|
|
722
1669
|
{
|
|
723
|
-
"name": "
|
|
724
|
-
"
|
|
1670
|
+
"name": "params";
|
|
1671
|
+
"type": {
|
|
1672
|
+
"vec": {
|
|
1673
|
+
"defined": {
|
|
1674
|
+
"name": "orderParams";
|
|
1675
|
+
};
|
|
1676
|
+
};
|
|
1677
|
+
};
|
|
725
1678
|
}
|
|
726
1679
|
];
|
|
727
|
-
"args": [];
|
|
728
1680
|
},
|
|
729
1681
|
{
|
|
730
|
-
"name": "
|
|
1682
|
+
"name": "placePerpOrder";
|
|
731
1683
|
"discriminator": [
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
1684
|
+
69,
|
|
1685
|
+
161,
|
|
1686
|
+
93,
|
|
1687
|
+
202,
|
|
1688
|
+
120,
|
|
1689
|
+
126,
|
|
1690
|
+
76,
|
|
1691
|
+
185
|
|
740
1692
|
];
|
|
741
1693
|
"accounts": [
|
|
742
1694
|
{
|
|
@@ -829,32 +1781,26 @@ export type ExtDrift = {
|
|
|
829
1781
|
];
|
|
830
1782
|
"args": [
|
|
831
1783
|
{
|
|
832
|
-
"name": "
|
|
833
|
-
"type": {
|
|
834
|
-
"option": "u32";
|
|
835
|
-
};
|
|
836
|
-
},
|
|
837
|
-
{
|
|
838
|
-
"name": "modifyOrderParams";
|
|
1784
|
+
"name": "params";
|
|
839
1785
|
"type": {
|
|
840
1786
|
"defined": {
|
|
841
|
-
"name": "
|
|
1787
|
+
"name": "orderParams";
|
|
842
1788
|
};
|
|
843
1789
|
};
|
|
844
1790
|
}
|
|
845
1791
|
];
|
|
846
1792
|
},
|
|
847
1793
|
{
|
|
848
|
-
"name": "
|
|
1794
|
+
"name": "placeSpotOrder";
|
|
849
1795
|
"discriminator": [
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
1796
|
+
45,
|
|
1797
|
+
79,
|
|
1798
|
+
81,
|
|
1799
|
+
160,
|
|
1800
|
+
248,
|
|
1801
|
+
90,
|
|
1802
|
+
91,
|
|
1803
|
+
220
|
|
858
1804
|
];
|
|
859
1805
|
"accounts": [
|
|
860
1806
|
{
|
|
@@ -949,10 +1895,8 @@ export type ExtDrift = {
|
|
|
949
1895
|
{
|
|
950
1896
|
"name": "params";
|
|
951
1897
|
"type": {
|
|
952
|
-
"
|
|
953
|
-
"
|
|
954
|
-
"name": "orderParams";
|
|
955
|
-
};
|
|
1898
|
+
"defined": {
|
|
1899
|
+
"name": "orderParams";
|
|
956
1900
|
};
|
|
957
1901
|
};
|
|
958
1902
|
}
|
|
@@ -3741,6 +4685,26 @@ export type ExtDrift = {
|
|
|
3741
4685
|
];
|
|
3742
4686
|
};
|
|
3743
4687
|
},
|
|
4688
|
+
{
|
|
4689
|
+
"name": "spotFulfillmentType";
|
|
4690
|
+
"type": {
|
|
4691
|
+
"kind": "enum";
|
|
4692
|
+
"variants": [
|
|
4693
|
+
{
|
|
4694
|
+
"name": "serumV3";
|
|
4695
|
+
},
|
|
4696
|
+
{
|
|
4697
|
+
"name": "match";
|
|
4698
|
+
},
|
|
4699
|
+
{
|
|
4700
|
+
"name": "phoenixV1";
|
|
4701
|
+
},
|
|
4702
|
+
{
|
|
4703
|
+
"name": "openbookV2";
|
|
4704
|
+
}
|
|
4705
|
+
];
|
|
4706
|
+
};
|
|
4707
|
+
},
|
|
3744
4708
|
{
|
|
3745
4709
|
"name": "stateAccount";
|
|
3746
4710
|
"type": {
|
|
@@ -3955,6 +4919,11 @@ export type ExtDrift = {
|
|
|
3955
4919
|
"type": "u64";
|
|
3956
4920
|
"value": "1";
|
|
3957
4921
|
},
|
|
4922
|
+
{
|
|
4923
|
+
"name": "protoDriftProtocolPermLiquidate";
|
|
4924
|
+
"type": "u64";
|
|
4925
|
+
"value": "2048";
|
|
4926
|
+
},
|
|
3958
4927
|
{
|
|
3959
4928
|
"name": "protoDriftProtocolPermPerpMarkets";
|
|
3960
4929
|
"type": "u64";
|