@glamsystems/glam-sdk 1.1.0-alpha.6 → 1.1.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.
Files changed (137) hide show
  1. package/LICENSE +201 -0
  2. package/buffer-layout.d.ts +88 -0
  3. package/index.cjs.d.ts +1 -0
  4. package/index.cjs.js +1 -92594
  5. package/index.esm.d.ts +1 -0
  6. package/index.esm.js +1 -92146
  7. package/package.json +29 -17
  8. package/src/assets.d.ts +39 -0
  9. package/src/client/access.d.ts +57 -0
  10. package/src/client/base.d.ts +234 -0
  11. package/src/client/bridge.d.ts +205 -0
  12. package/src/client/bridgeRegistry.d.ts +32 -0
  13. package/src/client/cctp.d.ts +164 -0
  14. package/src/client/epi.d.ts +228 -0
  15. package/src/client/fees.d.ts +33 -0
  16. package/src/client/invest.d.ts +37 -0
  17. package/src/client/jupiter-lend/borrow.d.ts +92 -0
  18. package/src/client/jupiter-lend/earn.d.ts +64 -0
  19. package/src/client/jupiter-lend/index.d.ts +3 -0
  20. package/src/client/jupiter-lend/shared.d.ts +129 -0
  21. package/src/client/jupiter.d.ts +53 -0
  22. package/src/client/kamino/farm.d.ts +39 -0
  23. package/src/client/kamino/index.d.ts +4 -0
  24. package/src/client/kamino/lending.d.ts +94 -0
  25. package/src/client/kamino/types.d.ts +56 -0
  26. package/src/client/kamino/vaults.d.ts +39 -0
  27. package/src/client/loopscale/borrow.d.ts +118 -0
  28. package/src/client/loopscale/core.d.ts +604 -0
  29. package/src/client/loopscale/index.d.ts +5 -0
  30. package/src/client/loopscale/lend.d.ts +123 -0
  31. package/src/client/loopscale/vault.d.ts +43 -0
  32. package/src/client/marinade.d.ts +42 -0
  33. package/src/client/mint.d.ts +143 -0
  34. package/src/client/orca.d.ts +255 -0
  35. package/src/client/phoenix.d.ts +214 -0
  36. package/src/client/price.d.ts +182 -0
  37. package/src/client/stake-pool.d.ts +39 -0
  38. package/src/client/stake.d.ts +34 -0
  39. package/src/client/state.d.ts +56 -0
  40. package/src/client/timelock.d.ts +31 -0
  41. package/src/client/vault.d.ts +98 -0
  42. package/src/client.d.ts +82 -0
  43. package/src/clientConfig.d.ts +32 -0
  44. package/src/constants.d.ts +111 -0
  45. package/src/deser/base.d.ts +18 -0
  46. package/src/deser/index.d.ts +4 -0
  47. package/src/deser/integrationPolicies.d.ts +195 -0
  48. package/src/deser/kaminoLayouts.d.ts +264 -0
  49. package/src/deser/loopscaleLayouts.d.ts +157 -0
  50. package/src/deser/tokenAclLayouts.d.ts +67 -0
  51. package/src/error.d.ts +29 -0
  52. package/src/glamExports.d.ts +6260 -0
  53. package/src/globalConfig.d.ts +27 -0
  54. package/src/index.d.ts +24 -0
  55. package/src/models/acl.d.ts +43 -0
  56. package/src/models/index.d.ts +8 -0
  57. package/src/models/mint.d.ts +57 -0
  58. package/src/models/state.d.ts +94 -0
  59. package/src/models/types.d.ts +28 -0
  60. package/src/protocols.d.ts +29 -0
  61. package/src/utils/accounts.d.ts +71 -0
  62. package/src/utils/bitmask.d.ts +53 -0
  63. package/src/utils/blockhash.d.ts +11 -0
  64. package/src/utils/common.d.ts +73 -0
  65. package/src/utils/computeBudget.d.ts +15 -0
  66. package/src/utils/evm.d.ts +10 -0
  67. package/src/utils/fraction.d.ts +29 -0
  68. package/src/utils/glamPDAs.d.ts +15 -0
  69. package/src/utils/helius.d.ts +66 -0
  70. package/src/utils/index.d.ts +17 -0
  71. package/src/utils/jupiterApi.d.ts +95 -0
  72. package/src/utils/lookupTables.d.ts +83 -0
  73. package/src/utils/phoenixApi.d.ts +146 -0
  74. package/src/utils/pkmap.d.ts +87 -0
  75. package/src/utils/pkset.d.ts +73 -0
  76. package/src/utils/positionCategorizer.d.ts +38 -0
  77. package/src/utils/rpc.d.ts +18 -0
  78. package/src/utils/timelock.d.ts +52 -0
  79. package/src/utils/transaction.d.ts +13 -0
  80. package/target/idl/ext_bridge-staging.json +2379 -0
  81. package/target/idl/ext_bridge.json +2379 -0
  82. package/target/idl/ext_drift.json +5464 -0
  83. package/target/idl/ext_epi-staging.json +2862 -0
  84. package/target/idl/ext_epi.json +2862 -0
  85. package/target/idl/ext_loopscale-staging.json +4708 -0
  86. package/target/idl/ext_loopscale.json +4708 -0
  87. package/target/idl/ext_marinade-staging.json +1587 -0
  88. package/target/idl/ext_phoenix-staging.json +3525 -0
  89. package/target/idl/ext_phoenix.json +3525 -0
  90. package/target/idl/mock_layerzero_endpoint.json +144 -0
  91. package/target/idl/mock_layerzero_oft.json +155 -0
  92. package/target/idl/mock_wormhole_verify_vaa_shim.json +58 -0
  93. package/target/types/ext_bridge-staging.d.ts +2385 -0
  94. package/target/types/ext_bridge-staging.ts +2385 -0
  95. package/target/types/ext_bridge.d.ts +2385 -0
  96. package/target/types/ext_bridge.ts +2385 -0
  97. package/target/types/ext_cctp-staging.d.ts +1268 -0
  98. package/target/types/ext_cctp.d.ts +1268 -0
  99. package/target/types/ext_drift.d.ts +5470 -0
  100. package/target/types/ext_drift.ts +5470 -0
  101. package/target/types/ext_epi-staging.d.ts +2868 -0
  102. package/target/types/ext_epi-staging.ts +2868 -0
  103. package/target/types/ext_epi.d.ts +2868 -0
  104. package/target/types/ext_epi.ts +2868 -0
  105. package/target/types/ext_jupiter-staging.d.ts +1966 -0
  106. package/target/types/ext_jupiter.d.ts +1966 -0
  107. package/target/types/ext_kamino-staging.d.ts +3433 -0
  108. package/target/types/ext_kamino.d.ts +3433 -0
  109. package/target/types/ext_loopscale-staging.d.ts +4714 -0
  110. package/target/types/ext_loopscale-staging.ts +4714 -0
  111. package/target/types/ext_loopscale.d.ts +4714 -0
  112. package/target/types/ext_loopscale.ts +4714 -0
  113. package/target/types/ext_marinade-staging.d.ts +1593 -0
  114. package/target/types/ext_marinade-staging.ts +1593 -0
  115. package/target/types/ext_marinade.d.ts +1593 -0
  116. package/target/types/ext_orca-staging.d.ts +2829 -0
  117. package/target/types/ext_orca.d.ts +2829 -0
  118. package/target/types/ext_phoenix-staging.d.ts +3531 -0
  119. package/target/types/ext_phoenix-staging.ts +3531 -0
  120. package/target/types/ext_phoenix.d.ts +3531 -0
  121. package/target/types/ext_phoenix.ts +3531 -0
  122. package/target/types/ext_spl-staging.d.ts +1274 -0
  123. package/target/types/ext_spl.d.ts +1274 -0
  124. package/target/types/ext_stake_pool-staging.d.ts +1622 -0
  125. package/target/types/ext_stake_pool.d.ts +1622 -0
  126. package/target/types/glam_config.d.ts +755 -0
  127. package/target/types/glam_mint-staging.d.ts +8802 -0
  128. package/target/types/glam_mint.d.ts +6349 -0
  129. package/target/types/glam_policies.d.ts +477 -0
  130. package/target/types/glam_protocol-staging.d.ts +3362 -0
  131. package/target/types/glam_protocol.d.ts +2783 -0
  132. package/target/types/mock_layerzero_endpoint.d.ts +150 -0
  133. package/target/types/mock_layerzero_endpoint.ts +150 -0
  134. package/target/types/mock_layerzero_oft.d.ts +161 -0
  135. package/target/types/mock_layerzero_oft.ts +161 -0
  136. package/target/types/mock_wormhole_verify_vaa_shim.d.ts +64 -0
  137. package/target/types/mock_wormhole_verify_vaa_shim.ts +64 -0
@@ -0,0 +1,3531 @@
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/ext_phoenix.json`.
6
+ */
7
+ export type ExtPhoenix = {
8
+ "address": "G1NTPhharzUz2WsdjBVrczrYjM2USsPMtboHYgdbSpiL",
9
+ "metadata": {
10
+ "name": "extPhoenix",
11
+ "version": "0.1.1",
12
+ "spec": "0.1.0",
13
+ "description": "Phoenix and Ember integration for GLAM Protocol"
14
+ },
15
+ "instructions": [
16
+ {
17
+ "name": "cancelAll",
18
+ "docs": [
19
+ "Cancels all of the trader's resting orders on the market identified by the orderbook account."
20
+ ],
21
+ "discriminator": [
22
+ 98,
23
+ 191,
24
+ 75,
25
+ 220,
26
+ 115,
27
+ 40,
28
+ 71,
29
+ 237
30
+ ],
31
+ "accounts": [
32
+ {
33
+ "name": "glamState",
34
+ "writable": true
35
+ },
36
+ {
37
+ "name": "glamVault",
38
+ "writable": true,
39
+ "pda": {
40
+ "seeds": [
41
+ {
42
+ "kind": "const",
43
+ "value": [
44
+ 118,
45
+ 97,
46
+ 117,
47
+ 108,
48
+ 116
49
+ ]
50
+ },
51
+ {
52
+ "kind": "account",
53
+ "path": "glamState"
54
+ }
55
+ ],
56
+ "program": {
57
+ "kind": "account",
58
+ "path": "glamProtocolProgram"
59
+ }
60
+ }
61
+ },
62
+ {
63
+ "name": "glamSigner",
64
+ "writable": true,
65
+ "signer": true
66
+ },
67
+ {
68
+ "name": "integrationAuthority",
69
+ "pda": {
70
+ "seeds": [
71
+ {
72
+ "kind": "const",
73
+ "value": [
74
+ 105,
75
+ 110,
76
+ 116,
77
+ 101,
78
+ 103,
79
+ 114,
80
+ 97,
81
+ 116,
82
+ 105,
83
+ 111,
84
+ 110,
85
+ 45,
86
+ 97,
87
+ 117,
88
+ 116,
89
+ 104,
90
+ 111,
91
+ 114,
92
+ 105,
93
+ 116,
94
+ 121
95
+ ]
96
+ }
97
+ ]
98
+ }
99
+ },
100
+ {
101
+ "name": "cpiProgram",
102
+ "address": "EtrnLzgbS7nMMy5fbD42kXiUzGg8XQzJ972Xtk1cjWih"
103
+ },
104
+ {
105
+ "name": "glamProtocolProgram",
106
+ "address": "GLAMpaME8wdTEzxtiYEAa5yD8fZbxZiz2hNtV58RZiEz"
107
+ },
108
+ {
109
+ "name": "systemProgram",
110
+ "address": "11111111111111111111111111111111"
111
+ }
112
+ ],
113
+ "args": []
114
+ },
115
+ {
116
+ "name": "cancelOrdersById",
117
+ "docs": [
118
+ "Cancels specific resting orders by their order IDs."
119
+ ],
120
+ "discriminator": [
121
+ 234,
122
+ 204,
123
+ 126,
124
+ 94,
125
+ 222,
126
+ 22,
127
+ 141,
128
+ 24
129
+ ],
130
+ "accounts": [
131
+ {
132
+ "name": "glamState",
133
+ "writable": true
134
+ },
135
+ {
136
+ "name": "glamVault",
137
+ "writable": true,
138
+ "pda": {
139
+ "seeds": [
140
+ {
141
+ "kind": "const",
142
+ "value": [
143
+ 118,
144
+ 97,
145
+ 117,
146
+ 108,
147
+ 116
148
+ ]
149
+ },
150
+ {
151
+ "kind": "account",
152
+ "path": "glamState"
153
+ }
154
+ ],
155
+ "program": {
156
+ "kind": "account",
157
+ "path": "glamProtocolProgram"
158
+ }
159
+ }
160
+ },
161
+ {
162
+ "name": "glamSigner",
163
+ "writable": true,
164
+ "signer": true
165
+ },
166
+ {
167
+ "name": "integrationAuthority",
168
+ "pda": {
169
+ "seeds": [
170
+ {
171
+ "kind": "const",
172
+ "value": [
173
+ 105,
174
+ 110,
175
+ 116,
176
+ 101,
177
+ 103,
178
+ 114,
179
+ 97,
180
+ 116,
181
+ 105,
182
+ 111,
183
+ 110,
184
+ 45,
185
+ 97,
186
+ 117,
187
+ 116,
188
+ 104,
189
+ 111,
190
+ 114,
191
+ 105,
192
+ 116,
193
+ 121
194
+ ]
195
+ }
196
+ ]
197
+ }
198
+ },
199
+ {
200
+ "name": "cpiProgram",
201
+ "address": "EtrnLzgbS7nMMy5fbD42kXiUzGg8XQzJ972Xtk1cjWih"
202
+ },
203
+ {
204
+ "name": "glamProtocolProgram",
205
+ "address": "GLAMpaME8wdTEzxtiYEAa5yD8fZbxZiz2hNtV58RZiEz"
206
+ },
207
+ {
208
+ "name": "systemProgram",
209
+ "address": "11111111111111111111111111111111"
210
+ }
211
+ ],
212
+ "args": [
213
+ {
214
+ "name": "orderIds",
215
+ "type": {
216
+ "defined": {
217
+ "name": "orderIds"
218
+ }
219
+ }
220
+ }
221
+ ]
222
+ },
223
+ {
224
+ "name": "cancelUpTo",
225
+ "docs": [
226
+ "Cancels orders on one side of the book up to an optional count and/or tick limit."
227
+ ],
228
+ "discriminator": [
229
+ 26,
230
+ 209,
231
+ 244,
232
+ 253,
233
+ 59,
234
+ 175,
235
+ 227,
236
+ 54
237
+ ],
238
+ "accounts": [
239
+ {
240
+ "name": "glamState",
241
+ "writable": true
242
+ },
243
+ {
244
+ "name": "glamVault",
245
+ "writable": true,
246
+ "pda": {
247
+ "seeds": [
248
+ {
249
+ "kind": "const",
250
+ "value": [
251
+ 118,
252
+ 97,
253
+ 117,
254
+ 108,
255
+ 116
256
+ ]
257
+ },
258
+ {
259
+ "kind": "account",
260
+ "path": "glamState"
261
+ }
262
+ ],
263
+ "program": {
264
+ "kind": "account",
265
+ "path": "glamProtocolProgram"
266
+ }
267
+ }
268
+ },
269
+ {
270
+ "name": "glamSigner",
271
+ "writable": true,
272
+ "signer": true
273
+ },
274
+ {
275
+ "name": "integrationAuthority",
276
+ "pda": {
277
+ "seeds": [
278
+ {
279
+ "kind": "const",
280
+ "value": [
281
+ 105,
282
+ 110,
283
+ 116,
284
+ 101,
285
+ 103,
286
+ 114,
287
+ 97,
288
+ 116,
289
+ 105,
290
+ 111,
291
+ 110,
292
+ 45,
293
+ 97,
294
+ 117,
295
+ 116,
296
+ 104,
297
+ 111,
298
+ 114,
299
+ 105,
300
+ 116,
301
+ 121
302
+ ]
303
+ }
304
+ ]
305
+ }
306
+ },
307
+ {
308
+ "name": "cpiProgram",
309
+ "address": "EtrnLzgbS7nMMy5fbD42kXiUzGg8XQzJ972Xtk1cjWih"
310
+ },
311
+ {
312
+ "name": "glamProtocolProgram",
313
+ "address": "GLAMpaME8wdTEzxtiYEAa5yD8fZbxZiz2hNtV58RZiEz"
314
+ },
315
+ {
316
+ "name": "systemProgram",
317
+ "address": "11111111111111111111111111111111"
318
+ }
319
+ ],
320
+ "args": [
321
+ {
322
+ "name": "args",
323
+ "type": {
324
+ "defined": {
325
+ "name": "cancelUpToInstruction"
326
+ }
327
+ }
328
+ }
329
+ ]
330
+ },
331
+ {
332
+ "name": "deposit",
333
+ "docs": [
334
+ "Ember deposit: converts the vault's input mint into the Phoenix-side output mint."
335
+ ],
336
+ "discriminator": [
337
+ 242,
338
+ 35,
339
+ 198,
340
+ 137,
341
+ 82,
342
+ 225,
343
+ 242,
344
+ 182
345
+ ],
346
+ "accounts": [
347
+ {
348
+ "name": "glamState",
349
+ "writable": true
350
+ },
351
+ {
352
+ "name": "glamVault",
353
+ "writable": true,
354
+ "pda": {
355
+ "seeds": [
356
+ {
357
+ "kind": "const",
358
+ "value": [
359
+ 118,
360
+ 97,
361
+ 117,
362
+ 108,
363
+ 116
364
+ ]
365
+ },
366
+ {
367
+ "kind": "account",
368
+ "path": "glamState"
369
+ }
370
+ ],
371
+ "program": {
372
+ "kind": "account",
373
+ "path": "glamProtocolProgram"
374
+ }
375
+ }
376
+ },
377
+ {
378
+ "name": "glamSigner",
379
+ "writable": true,
380
+ "signer": true
381
+ },
382
+ {
383
+ "name": "integrationAuthority",
384
+ "pda": {
385
+ "seeds": [
386
+ {
387
+ "kind": "const",
388
+ "value": [
389
+ 105,
390
+ 110,
391
+ 116,
392
+ 101,
393
+ 103,
394
+ 114,
395
+ 97,
396
+ 116,
397
+ 105,
398
+ 111,
399
+ 110,
400
+ 45,
401
+ 97,
402
+ 117,
403
+ 116,
404
+ 104,
405
+ 111,
406
+ 114,
407
+ 105,
408
+ 116,
409
+ 121
410
+ ]
411
+ }
412
+ ]
413
+ }
414
+ },
415
+ {
416
+ "name": "cpiProgram",
417
+ "address": "EMBERpYNE6ehWmXymZZS2skiFmCa9V5dp14e1iduM5qy"
418
+ },
419
+ {
420
+ "name": "glamProtocolProgram",
421
+ "address": "GLAMpaME8wdTEzxtiYEAa5yD8fZbxZiz2hNtV58RZiEz"
422
+ },
423
+ {
424
+ "name": "systemProgram",
425
+ "address": "11111111111111111111111111111111"
426
+ },
427
+ {
428
+ "name": "emberState"
429
+ },
430
+ {
431
+ "name": "inputMint"
432
+ },
433
+ {
434
+ "name": "outputMint",
435
+ "writable": true
436
+ },
437
+ {
438
+ "name": "inputTokenAccount",
439
+ "writable": true
440
+ },
441
+ {
442
+ "name": "outputTokenAccount",
443
+ "writable": true
444
+ },
445
+ {
446
+ "name": "emberVault",
447
+ "writable": true
448
+ },
449
+ {
450
+ "name": "tokenProgram"
451
+ }
452
+ ],
453
+ "args": [
454
+ {
455
+ "name": "depositParams",
456
+ "type": {
457
+ "defined": {
458
+ "name": "depositParams"
459
+ }
460
+ }
461
+ }
462
+ ]
463
+ },
464
+ {
465
+ "name": "depositFunds",
466
+ "docs": [
467
+ "Deposits base or quote mint tokens from the vault's token account into the Phoenix trader account."
468
+ ],
469
+ "discriminator": [
470
+ 202,
471
+ 39,
472
+ 52,
473
+ 211,
474
+ 53,
475
+ 20,
476
+ 250,
477
+ 88
478
+ ],
479
+ "accounts": [
480
+ {
481
+ "name": "glamState",
482
+ "writable": true
483
+ },
484
+ {
485
+ "name": "glamVault",
486
+ "writable": true,
487
+ "pda": {
488
+ "seeds": [
489
+ {
490
+ "kind": "const",
491
+ "value": [
492
+ 118,
493
+ 97,
494
+ 117,
495
+ 108,
496
+ 116
497
+ ]
498
+ },
499
+ {
500
+ "kind": "account",
501
+ "path": "glamState"
502
+ }
503
+ ],
504
+ "program": {
505
+ "kind": "account",
506
+ "path": "glamProtocolProgram"
507
+ }
508
+ }
509
+ },
510
+ {
511
+ "name": "glamSigner",
512
+ "writable": true,
513
+ "signer": true
514
+ },
515
+ {
516
+ "name": "integrationAuthority",
517
+ "pda": {
518
+ "seeds": [
519
+ {
520
+ "kind": "const",
521
+ "value": [
522
+ 105,
523
+ 110,
524
+ 116,
525
+ 101,
526
+ 103,
527
+ 114,
528
+ 97,
529
+ 116,
530
+ 105,
531
+ 111,
532
+ 110,
533
+ 45,
534
+ 97,
535
+ 117,
536
+ 116,
537
+ 104,
538
+ 111,
539
+ 114,
540
+ 105,
541
+ 116,
542
+ 121
543
+ ]
544
+ }
545
+ ]
546
+ }
547
+ },
548
+ {
549
+ "name": "cpiProgram",
550
+ "address": "EtrnLzgbS7nMMy5fbD42kXiUzGg8XQzJ972Xtk1cjWih"
551
+ },
552
+ {
553
+ "name": "glamProtocolProgram",
554
+ "address": "GLAMpaME8wdTEzxtiYEAa5yD8fZbxZiz2hNtV58RZiEz"
555
+ },
556
+ {
557
+ "name": "systemProgram",
558
+ "address": "11111111111111111111111111111111"
559
+ }
560
+ ],
561
+ "args": [
562
+ {
563
+ "name": "params",
564
+ "type": {
565
+ "defined": {
566
+ "name": "depositFundsInstruction"
567
+ }
568
+ }
569
+ }
570
+ ]
571
+ },
572
+ {
573
+ "name": "placeLimitOrder",
574
+ "docs": [
575
+ "Places a limit order; the unfilled portion rests on the orderbook."
576
+ ],
577
+ "discriminator": [
578
+ 108,
579
+ 176,
580
+ 33,
581
+ 186,
582
+ 146,
583
+ 229,
584
+ 1,
585
+ 197
586
+ ],
587
+ "accounts": [
588
+ {
589
+ "name": "glamState",
590
+ "writable": true
591
+ },
592
+ {
593
+ "name": "glamVault",
594
+ "writable": true,
595
+ "pda": {
596
+ "seeds": [
597
+ {
598
+ "kind": "const",
599
+ "value": [
600
+ 118,
601
+ 97,
602
+ 117,
603
+ 108,
604
+ 116
605
+ ]
606
+ },
607
+ {
608
+ "kind": "account",
609
+ "path": "glamState"
610
+ }
611
+ ],
612
+ "program": {
613
+ "kind": "account",
614
+ "path": "glamProtocolProgram"
615
+ }
616
+ }
617
+ },
618
+ {
619
+ "name": "glamSigner",
620
+ "writable": true,
621
+ "signer": true
622
+ },
623
+ {
624
+ "name": "integrationAuthority",
625
+ "pda": {
626
+ "seeds": [
627
+ {
628
+ "kind": "const",
629
+ "value": [
630
+ 105,
631
+ 110,
632
+ 116,
633
+ 101,
634
+ 103,
635
+ 114,
636
+ 97,
637
+ 116,
638
+ 105,
639
+ 111,
640
+ 110,
641
+ 45,
642
+ 97,
643
+ 117,
644
+ 116,
645
+ 104,
646
+ 111,
647
+ 114,
648
+ 105,
649
+ 116,
650
+ 121
651
+ ]
652
+ }
653
+ ]
654
+ }
655
+ },
656
+ {
657
+ "name": "cpiProgram",
658
+ "address": "EtrnLzgbS7nMMy5fbD42kXiUzGg8XQzJ972Xtk1cjWih"
659
+ },
660
+ {
661
+ "name": "glamProtocolProgram",
662
+ "address": "GLAMpaME8wdTEzxtiYEAa5yD8fZbxZiz2hNtV58RZiEz"
663
+ },
664
+ {
665
+ "name": "systemProgram",
666
+ "address": "11111111111111111111111111111111"
667
+ }
668
+ ],
669
+ "args": [
670
+ {
671
+ "name": "packet",
672
+ "type": {
673
+ "defined": {
674
+ "name": "orderPacket"
675
+ }
676
+ }
677
+ }
678
+ ]
679
+ },
680
+ {
681
+ "name": "placeMarketOrder",
682
+ "docs": [
683
+ "Places an immediate-or-cancel market order; unfilled size is dropped rather than rested."
684
+ ],
685
+ "discriminator": [
686
+ 90,
687
+ 118,
688
+ 192,
689
+ 252,
690
+ 192,
691
+ 99,
692
+ 39,
693
+ 145
694
+ ],
695
+ "accounts": [
696
+ {
697
+ "name": "glamState",
698
+ "writable": true
699
+ },
700
+ {
701
+ "name": "glamVault",
702
+ "writable": true,
703
+ "pda": {
704
+ "seeds": [
705
+ {
706
+ "kind": "const",
707
+ "value": [
708
+ 118,
709
+ 97,
710
+ 117,
711
+ 108,
712
+ 116
713
+ ]
714
+ },
715
+ {
716
+ "kind": "account",
717
+ "path": "glamState"
718
+ }
719
+ ],
720
+ "program": {
721
+ "kind": "account",
722
+ "path": "glamProtocolProgram"
723
+ }
724
+ }
725
+ },
726
+ {
727
+ "name": "glamSigner",
728
+ "writable": true,
729
+ "signer": true
730
+ },
731
+ {
732
+ "name": "integrationAuthority",
733
+ "pda": {
734
+ "seeds": [
735
+ {
736
+ "kind": "const",
737
+ "value": [
738
+ 105,
739
+ 110,
740
+ 116,
741
+ 101,
742
+ 103,
743
+ 114,
744
+ 97,
745
+ 116,
746
+ 105,
747
+ 111,
748
+ 110,
749
+ 45,
750
+ 97,
751
+ 117,
752
+ 116,
753
+ 104,
754
+ 111,
755
+ 114,
756
+ 105,
757
+ 116,
758
+ 121
759
+ ]
760
+ }
761
+ ]
762
+ }
763
+ },
764
+ {
765
+ "name": "cpiProgram",
766
+ "address": "EtrnLzgbS7nMMy5fbD42kXiUzGg8XQzJ972Xtk1cjWih"
767
+ },
768
+ {
769
+ "name": "glamProtocolProgram",
770
+ "address": "GLAMpaME8wdTEzxtiYEAa5yD8fZbxZiz2hNtV58RZiEz"
771
+ },
772
+ {
773
+ "name": "systemProgram",
774
+ "address": "11111111111111111111111111111111"
775
+ }
776
+ ],
777
+ "args": [
778
+ {
779
+ "name": "packet",
780
+ "type": {
781
+ "defined": {
782
+ "name": "orderPacket"
783
+ }
784
+ }
785
+ }
786
+ ]
787
+ },
788
+ {
789
+ "name": "placeMultiLimitOrder",
790
+ "docs": [
791
+ "Places multiple limit orders (bids and/or asks) on a single market in one CPI."
792
+ ],
793
+ "discriminator": [
794
+ 236,
795
+ 208,
796
+ 221,
797
+ 172,
798
+ 141,
799
+ 226,
800
+ 129,
801
+ 84
802
+ ],
803
+ "accounts": [
804
+ {
805
+ "name": "glamState",
806
+ "writable": true
807
+ },
808
+ {
809
+ "name": "glamVault",
810
+ "writable": true,
811
+ "pda": {
812
+ "seeds": [
813
+ {
814
+ "kind": "const",
815
+ "value": [
816
+ 118,
817
+ 97,
818
+ 117,
819
+ 108,
820
+ 116
821
+ ]
822
+ },
823
+ {
824
+ "kind": "account",
825
+ "path": "glamState"
826
+ }
827
+ ],
828
+ "program": {
829
+ "kind": "account",
830
+ "path": "glamProtocolProgram"
831
+ }
832
+ }
833
+ },
834
+ {
835
+ "name": "glamSigner",
836
+ "writable": true,
837
+ "signer": true
838
+ },
839
+ {
840
+ "name": "integrationAuthority",
841
+ "pda": {
842
+ "seeds": [
843
+ {
844
+ "kind": "const",
845
+ "value": [
846
+ 105,
847
+ 110,
848
+ 116,
849
+ 101,
850
+ 103,
851
+ 114,
852
+ 97,
853
+ 116,
854
+ 105,
855
+ 111,
856
+ 110,
857
+ 45,
858
+ 97,
859
+ 117,
860
+ 116,
861
+ 104,
862
+ 111,
863
+ 114,
864
+ 105,
865
+ 116,
866
+ 121
867
+ ]
868
+ }
869
+ ]
870
+ }
871
+ },
872
+ {
873
+ "name": "cpiProgram",
874
+ "address": "EtrnLzgbS7nMMy5fbD42kXiUzGg8XQzJ972Xtk1cjWih"
875
+ },
876
+ {
877
+ "name": "glamProtocolProgram",
878
+ "address": "GLAMpaME8wdTEzxtiYEAa5yD8fZbxZiz2hNtV58RZiEz"
879
+ },
880
+ {
881
+ "name": "systemProgram",
882
+ "address": "11111111111111111111111111111111"
883
+ }
884
+ ],
885
+ "args": [
886
+ {
887
+ "name": "packet",
888
+ "type": {
889
+ "defined": {
890
+ "name": "multipleOrderPacket"
891
+ }
892
+ }
893
+ }
894
+ ]
895
+ },
896
+ {
897
+ "name": "registerTrader",
898
+ "docs": [
899
+ "Initializes a Phoenix trader account (parent or child subaccount) owned by the vault."
900
+ ],
901
+ "discriminator": [
902
+ 75,
903
+ 243,
904
+ 224,
905
+ 167,
906
+ 1,
907
+ 5,
908
+ 51,
909
+ 32
910
+ ],
911
+ "accounts": [
912
+ {
913
+ "name": "glamState",
914
+ "writable": true
915
+ },
916
+ {
917
+ "name": "glamVault",
918
+ "writable": true,
919
+ "pda": {
920
+ "seeds": [
921
+ {
922
+ "kind": "const",
923
+ "value": [
924
+ 118,
925
+ 97,
926
+ 117,
927
+ 108,
928
+ 116
929
+ ]
930
+ },
931
+ {
932
+ "kind": "account",
933
+ "path": "glamState"
934
+ }
935
+ ],
936
+ "program": {
937
+ "kind": "account",
938
+ "path": "glamProtocolProgram"
939
+ }
940
+ }
941
+ },
942
+ {
943
+ "name": "glamSigner",
944
+ "writable": true,
945
+ "signer": true
946
+ },
947
+ {
948
+ "name": "integrationAuthority",
949
+ "pda": {
950
+ "seeds": [
951
+ {
952
+ "kind": "const",
953
+ "value": [
954
+ 105,
955
+ 110,
956
+ 116,
957
+ 101,
958
+ 103,
959
+ 114,
960
+ 97,
961
+ 116,
962
+ 105,
963
+ 111,
964
+ 110,
965
+ 45,
966
+ 97,
967
+ 117,
968
+ 116,
969
+ 104,
970
+ 111,
971
+ 114,
972
+ 105,
973
+ 116,
974
+ 121
975
+ ]
976
+ }
977
+ ]
978
+ }
979
+ },
980
+ {
981
+ "name": "cpiProgram",
982
+ "address": "EtrnLzgbS7nMMy5fbD42kXiUzGg8XQzJ972Xtk1cjWih"
983
+ },
984
+ {
985
+ "name": "glamProtocolProgram",
986
+ "address": "GLAMpaME8wdTEzxtiYEAa5yD8fZbxZiz2hNtV58RZiEz"
987
+ },
988
+ {
989
+ "name": "systemProgram",
990
+ "address": "11111111111111111111111111111111"
991
+ },
992
+ {
993
+ "name": "logAuthority"
994
+ },
995
+ {
996
+ "name": "globalConfig"
997
+ },
998
+ {
999
+ "name": "traderAccount",
1000
+ "writable": true
1001
+ }
1002
+ ],
1003
+ "args": [
1004
+ {
1005
+ "name": "args",
1006
+ "type": {
1007
+ "defined": {
1008
+ "name": "registerTraderParams"
1009
+ }
1010
+ }
1011
+ }
1012
+ ]
1013
+ },
1014
+ {
1015
+ "name": "setPhoenixPolicy",
1016
+ "docs": [
1017
+ "Sets the GLAM Phoenix policy (market allowlist, order types, and price-deviation limits) on the vault state."
1018
+ ],
1019
+ "discriminator": [
1020
+ 57,
1021
+ 235,
1022
+ 161,
1023
+ 196,
1024
+ 65,
1025
+ 41,
1026
+ 80,
1027
+ 85
1028
+ ],
1029
+ "accounts": [
1030
+ {
1031
+ "name": "glamState",
1032
+ "writable": true
1033
+ },
1034
+ {
1035
+ "name": "glamSigner",
1036
+ "writable": true,
1037
+ "signer": true
1038
+ },
1039
+ {
1040
+ "name": "glamProtocolProgram",
1041
+ "address": "GLAMpaME8wdTEzxtiYEAa5yD8fZbxZiz2hNtV58RZiEz"
1042
+ }
1043
+ ],
1044
+ "args": [
1045
+ {
1046
+ "name": "policy",
1047
+ "type": {
1048
+ "defined": {
1049
+ "name": "phoenixPolicy"
1050
+ }
1051
+ }
1052
+ }
1053
+ ]
1054
+ },
1055
+ {
1056
+ "name": "syncParentToChild",
1057
+ "docs": [
1058
+ "Syncs collateral and state from a parent trader account down to a child subaccount."
1059
+ ],
1060
+ "discriminator": [
1061
+ 175,
1062
+ 137,
1063
+ 217,
1064
+ 11,
1065
+ 235,
1066
+ 39,
1067
+ 150,
1068
+ 19
1069
+ ],
1070
+ "accounts": [
1071
+ {
1072
+ "name": "glamState",
1073
+ "writable": true
1074
+ },
1075
+ {
1076
+ "name": "glamVault",
1077
+ "writable": true,
1078
+ "pda": {
1079
+ "seeds": [
1080
+ {
1081
+ "kind": "const",
1082
+ "value": [
1083
+ 118,
1084
+ 97,
1085
+ 117,
1086
+ 108,
1087
+ 116
1088
+ ]
1089
+ },
1090
+ {
1091
+ "kind": "account",
1092
+ "path": "glamState"
1093
+ }
1094
+ ],
1095
+ "program": {
1096
+ "kind": "account",
1097
+ "path": "glamProtocolProgram"
1098
+ }
1099
+ }
1100
+ },
1101
+ {
1102
+ "name": "glamSigner",
1103
+ "writable": true,
1104
+ "signer": true
1105
+ },
1106
+ {
1107
+ "name": "integrationAuthority",
1108
+ "pda": {
1109
+ "seeds": [
1110
+ {
1111
+ "kind": "const",
1112
+ "value": [
1113
+ 105,
1114
+ 110,
1115
+ 116,
1116
+ 101,
1117
+ 103,
1118
+ 114,
1119
+ 97,
1120
+ 116,
1121
+ 105,
1122
+ 111,
1123
+ 110,
1124
+ 45,
1125
+ 97,
1126
+ 117,
1127
+ 116,
1128
+ 104,
1129
+ 111,
1130
+ 114,
1131
+ 105,
1132
+ 116,
1133
+ 121
1134
+ ]
1135
+ }
1136
+ ]
1137
+ }
1138
+ },
1139
+ {
1140
+ "name": "cpiProgram",
1141
+ "address": "EtrnLzgbS7nMMy5fbD42kXiUzGg8XQzJ972Xtk1cjWih"
1142
+ },
1143
+ {
1144
+ "name": "glamProtocolProgram",
1145
+ "address": "GLAMpaME8wdTEzxtiYEAa5yD8fZbxZiz2hNtV58RZiEz"
1146
+ },
1147
+ {
1148
+ "name": "systemProgram",
1149
+ "address": "11111111111111111111111111111111"
1150
+ }
1151
+ ],
1152
+ "args": []
1153
+ },
1154
+ {
1155
+ "name": "transferCollateral",
1156
+ "docs": [
1157
+ "Transfers collateral from a source trader subaccount to a destination trader subaccount."
1158
+ ],
1159
+ "discriminator": [
1160
+ 157,
1161
+ 163,
1162
+ 63,
1163
+ 27,
1164
+ 242,
1165
+ 72,
1166
+ 251,
1167
+ 97
1168
+ ],
1169
+ "accounts": [
1170
+ {
1171
+ "name": "glamState",
1172
+ "writable": true
1173
+ },
1174
+ {
1175
+ "name": "glamVault",
1176
+ "writable": true,
1177
+ "pda": {
1178
+ "seeds": [
1179
+ {
1180
+ "kind": "const",
1181
+ "value": [
1182
+ 118,
1183
+ 97,
1184
+ 117,
1185
+ 108,
1186
+ 116
1187
+ ]
1188
+ },
1189
+ {
1190
+ "kind": "account",
1191
+ "path": "glamState"
1192
+ }
1193
+ ],
1194
+ "program": {
1195
+ "kind": "account",
1196
+ "path": "glamProtocolProgram"
1197
+ }
1198
+ }
1199
+ },
1200
+ {
1201
+ "name": "glamSigner",
1202
+ "writable": true,
1203
+ "signer": true
1204
+ },
1205
+ {
1206
+ "name": "integrationAuthority",
1207
+ "pda": {
1208
+ "seeds": [
1209
+ {
1210
+ "kind": "const",
1211
+ "value": [
1212
+ 105,
1213
+ 110,
1214
+ 116,
1215
+ 101,
1216
+ 103,
1217
+ 114,
1218
+ 97,
1219
+ 116,
1220
+ 105,
1221
+ 111,
1222
+ 110,
1223
+ 45,
1224
+ 97,
1225
+ 117,
1226
+ 116,
1227
+ 104,
1228
+ 111,
1229
+ 114,
1230
+ 105,
1231
+ 116,
1232
+ 121
1233
+ ]
1234
+ }
1235
+ ]
1236
+ }
1237
+ },
1238
+ {
1239
+ "name": "cpiProgram",
1240
+ "address": "EtrnLzgbS7nMMy5fbD42kXiUzGg8XQzJ972Xtk1cjWih"
1241
+ },
1242
+ {
1243
+ "name": "glamProtocolProgram",
1244
+ "address": "GLAMpaME8wdTEzxtiYEAa5yD8fZbxZiz2hNtV58RZiEz"
1245
+ },
1246
+ {
1247
+ "name": "systemProgram",
1248
+ "address": "11111111111111111111111111111111"
1249
+ }
1250
+ ],
1251
+ "args": [
1252
+ {
1253
+ "name": "params",
1254
+ "type": {
1255
+ "defined": {
1256
+ "name": "transferCollateralInstruction"
1257
+ }
1258
+ }
1259
+ }
1260
+ ]
1261
+ },
1262
+ {
1263
+ "name": "transferCollateralChildToParent",
1264
+ "docs": [
1265
+ "Transfers collateral from a child subaccount back to its parent trader account."
1266
+ ],
1267
+ "discriminator": [
1268
+ 51,
1269
+ 100,
1270
+ 177,
1271
+ 115,
1272
+ 139,
1273
+ 135,
1274
+ 247,
1275
+ 139
1276
+ ],
1277
+ "accounts": [
1278
+ {
1279
+ "name": "glamState",
1280
+ "writable": true
1281
+ },
1282
+ {
1283
+ "name": "glamVault",
1284
+ "writable": true,
1285
+ "pda": {
1286
+ "seeds": [
1287
+ {
1288
+ "kind": "const",
1289
+ "value": [
1290
+ 118,
1291
+ 97,
1292
+ 117,
1293
+ 108,
1294
+ 116
1295
+ ]
1296
+ },
1297
+ {
1298
+ "kind": "account",
1299
+ "path": "glamState"
1300
+ }
1301
+ ],
1302
+ "program": {
1303
+ "kind": "account",
1304
+ "path": "glamProtocolProgram"
1305
+ }
1306
+ }
1307
+ },
1308
+ {
1309
+ "name": "glamSigner",
1310
+ "writable": true,
1311
+ "signer": true
1312
+ },
1313
+ {
1314
+ "name": "integrationAuthority",
1315
+ "pda": {
1316
+ "seeds": [
1317
+ {
1318
+ "kind": "const",
1319
+ "value": [
1320
+ 105,
1321
+ 110,
1322
+ 116,
1323
+ 101,
1324
+ 103,
1325
+ 114,
1326
+ 97,
1327
+ 116,
1328
+ 105,
1329
+ 111,
1330
+ 110,
1331
+ 45,
1332
+ 97,
1333
+ 117,
1334
+ 116,
1335
+ 104,
1336
+ 111,
1337
+ 114,
1338
+ 105,
1339
+ 116,
1340
+ 121
1341
+ ]
1342
+ }
1343
+ ]
1344
+ }
1345
+ },
1346
+ {
1347
+ "name": "cpiProgram",
1348
+ "address": "EtrnLzgbS7nMMy5fbD42kXiUzGg8XQzJ972Xtk1cjWih"
1349
+ },
1350
+ {
1351
+ "name": "glamProtocolProgram",
1352
+ "address": "GLAMpaME8wdTEzxtiYEAa5yD8fZbxZiz2hNtV58RZiEz"
1353
+ },
1354
+ {
1355
+ "name": "systemProgram",
1356
+ "address": "11111111111111111111111111111111"
1357
+ }
1358
+ ],
1359
+ "args": [
1360
+ {
1361
+ "name": "params",
1362
+ "type": {
1363
+ "defined": {
1364
+ "name": "transferCollateralChildToParentInstruction"
1365
+ }
1366
+ }
1367
+ }
1368
+ ]
1369
+ },
1370
+ {
1371
+ "name": "updateTraderState",
1372
+ "docs": [
1373
+ "Refreshes the trader account's cached state (PnL, funding, margin) against current market data."
1374
+ ],
1375
+ "discriminator": [
1376
+ 249,
1377
+ 139,
1378
+ 82,
1379
+ 44,
1380
+ 126,
1381
+ 66,
1382
+ 133,
1383
+ 220
1384
+ ],
1385
+ "accounts": [
1386
+ {
1387
+ "name": "glamState",
1388
+ "writable": true
1389
+ },
1390
+ {
1391
+ "name": "glamVault",
1392
+ "writable": true,
1393
+ "pda": {
1394
+ "seeds": [
1395
+ {
1396
+ "kind": "const",
1397
+ "value": [
1398
+ 118,
1399
+ 97,
1400
+ 117,
1401
+ 108,
1402
+ 116
1403
+ ]
1404
+ },
1405
+ {
1406
+ "kind": "account",
1407
+ "path": "glamState"
1408
+ }
1409
+ ],
1410
+ "program": {
1411
+ "kind": "account",
1412
+ "path": "glamProtocolProgram"
1413
+ }
1414
+ }
1415
+ },
1416
+ {
1417
+ "name": "glamSigner",
1418
+ "writable": true,
1419
+ "signer": true
1420
+ },
1421
+ {
1422
+ "name": "integrationAuthority",
1423
+ "pda": {
1424
+ "seeds": [
1425
+ {
1426
+ "kind": "const",
1427
+ "value": [
1428
+ 105,
1429
+ 110,
1430
+ 116,
1431
+ 101,
1432
+ 103,
1433
+ 114,
1434
+ 97,
1435
+ 116,
1436
+ 105,
1437
+ 111,
1438
+ 110,
1439
+ 45,
1440
+ 97,
1441
+ 117,
1442
+ 116,
1443
+ 104,
1444
+ 111,
1445
+ 114,
1446
+ 105,
1447
+ 116,
1448
+ 121
1449
+ ]
1450
+ }
1451
+ ]
1452
+ }
1453
+ },
1454
+ {
1455
+ "name": "cpiProgram",
1456
+ "address": "EtrnLzgbS7nMMy5fbD42kXiUzGg8XQzJ972Xtk1cjWih"
1457
+ },
1458
+ {
1459
+ "name": "glamProtocolProgram",
1460
+ "address": "GLAMpaME8wdTEzxtiYEAa5yD8fZbxZiz2hNtV58RZiEz"
1461
+ },
1462
+ {
1463
+ "name": "systemProgram",
1464
+ "address": "11111111111111111111111111111111"
1465
+ }
1466
+ ],
1467
+ "args": []
1468
+ },
1469
+ {
1470
+ "name": "withdraw",
1471
+ "docs": [
1472
+ "Ember withdraw: converts the Phoenix-side output mint back to the input mint; `None` = full balance."
1473
+ ],
1474
+ "discriminator": [
1475
+ 183,
1476
+ 18,
1477
+ 70,
1478
+ 156,
1479
+ 148,
1480
+ 109,
1481
+ 161,
1482
+ 34
1483
+ ],
1484
+ "accounts": [
1485
+ {
1486
+ "name": "glamState",
1487
+ "writable": true
1488
+ },
1489
+ {
1490
+ "name": "glamVault",
1491
+ "writable": true,
1492
+ "pda": {
1493
+ "seeds": [
1494
+ {
1495
+ "kind": "const",
1496
+ "value": [
1497
+ 118,
1498
+ 97,
1499
+ 117,
1500
+ 108,
1501
+ 116
1502
+ ]
1503
+ },
1504
+ {
1505
+ "kind": "account",
1506
+ "path": "glamState"
1507
+ }
1508
+ ],
1509
+ "program": {
1510
+ "kind": "account",
1511
+ "path": "glamProtocolProgram"
1512
+ }
1513
+ }
1514
+ },
1515
+ {
1516
+ "name": "glamSigner",
1517
+ "writable": true,
1518
+ "signer": true
1519
+ },
1520
+ {
1521
+ "name": "integrationAuthority",
1522
+ "pda": {
1523
+ "seeds": [
1524
+ {
1525
+ "kind": "const",
1526
+ "value": [
1527
+ 105,
1528
+ 110,
1529
+ 116,
1530
+ 101,
1531
+ 103,
1532
+ 114,
1533
+ 97,
1534
+ 116,
1535
+ 105,
1536
+ 111,
1537
+ 110,
1538
+ 45,
1539
+ 97,
1540
+ 117,
1541
+ 116,
1542
+ 104,
1543
+ 111,
1544
+ 114,
1545
+ 105,
1546
+ 116,
1547
+ 121
1548
+ ]
1549
+ }
1550
+ ]
1551
+ }
1552
+ },
1553
+ {
1554
+ "name": "cpiProgram",
1555
+ "address": "EMBERpYNE6ehWmXymZZS2skiFmCa9V5dp14e1iduM5qy"
1556
+ },
1557
+ {
1558
+ "name": "glamProtocolProgram",
1559
+ "address": "GLAMpaME8wdTEzxtiYEAa5yD8fZbxZiz2hNtV58RZiEz"
1560
+ },
1561
+ {
1562
+ "name": "systemProgram",
1563
+ "address": "11111111111111111111111111111111"
1564
+ },
1565
+ {
1566
+ "name": "emberState"
1567
+ },
1568
+ {
1569
+ "name": "inputMint"
1570
+ },
1571
+ {
1572
+ "name": "outputMint",
1573
+ "writable": true
1574
+ },
1575
+ {
1576
+ "name": "inputTokenAccount",
1577
+ "writable": true
1578
+ },
1579
+ {
1580
+ "name": "outputTokenAccount",
1581
+ "writable": true
1582
+ },
1583
+ {
1584
+ "name": "emberVault",
1585
+ "writable": true
1586
+ },
1587
+ {
1588
+ "name": "tokenProgram"
1589
+ }
1590
+ ],
1591
+ "args": [
1592
+ {
1593
+ "name": "withdrawParams",
1594
+ "type": {
1595
+ "defined": {
1596
+ "name": "withdrawParams"
1597
+ }
1598
+ }
1599
+ }
1600
+ ]
1601
+ },
1602
+ {
1603
+ "name": "withdrawFunds",
1604
+ "docs": [
1605
+ "Withdraws base or quote mint tokens from the Phoenix trader account back to the vault's token account."
1606
+ ],
1607
+ "discriminator": [
1608
+ 241,
1609
+ 36,
1610
+ 29,
1611
+ 111,
1612
+ 208,
1613
+ 31,
1614
+ 104,
1615
+ 217
1616
+ ],
1617
+ "accounts": [
1618
+ {
1619
+ "name": "glamState",
1620
+ "writable": true
1621
+ },
1622
+ {
1623
+ "name": "glamVault",
1624
+ "writable": true,
1625
+ "pda": {
1626
+ "seeds": [
1627
+ {
1628
+ "kind": "const",
1629
+ "value": [
1630
+ 118,
1631
+ 97,
1632
+ 117,
1633
+ 108,
1634
+ 116
1635
+ ]
1636
+ },
1637
+ {
1638
+ "kind": "account",
1639
+ "path": "glamState"
1640
+ }
1641
+ ],
1642
+ "program": {
1643
+ "kind": "account",
1644
+ "path": "glamProtocolProgram"
1645
+ }
1646
+ }
1647
+ },
1648
+ {
1649
+ "name": "glamSigner",
1650
+ "writable": true,
1651
+ "signer": true
1652
+ },
1653
+ {
1654
+ "name": "integrationAuthority",
1655
+ "pda": {
1656
+ "seeds": [
1657
+ {
1658
+ "kind": "const",
1659
+ "value": [
1660
+ 105,
1661
+ 110,
1662
+ 116,
1663
+ 101,
1664
+ 103,
1665
+ 114,
1666
+ 97,
1667
+ 116,
1668
+ 105,
1669
+ 111,
1670
+ 110,
1671
+ 45,
1672
+ 97,
1673
+ 117,
1674
+ 116,
1675
+ 104,
1676
+ 111,
1677
+ 114,
1678
+ 105,
1679
+ 116,
1680
+ 121
1681
+ ]
1682
+ }
1683
+ ]
1684
+ }
1685
+ },
1686
+ {
1687
+ "name": "cpiProgram",
1688
+ "address": "EtrnLzgbS7nMMy5fbD42kXiUzGg8XQzJ972Xtk1cjWih"
1689
+ },
1690
+ {
1691
+ "name": "glamProtocolProgram",
1692
+ "address": "GLAMpaME8wdTEzxtiYEAa5yD8fZbxZiz2hNtV58RZiEz"
1693
+ },
1694
+ {
1695
+ "name": "systemProgram",
1696
+ "address": "11111111111111111111111111111111"
1697
+ }
1698
+ ],
1699
+ "args": [
1700
+ {
1701
+ "name": "params",
1702
+ "type": {
1703
+ "defined": {
1704
+ "name": "withdrawFundsInstruction"
1705
+ }
1706
+ }
1707
+ }
1708
+ ]
1709
+ }
1710
+ ],
1711
+ "accounts": [
1712
+ {
1713
+ "name": "stateAccount",
1714
+ "discriminator": [
1715
+ 142,
1716
+ 247,
1717
+ 54,
1718
+ 95,
1719
+ 85,
1720
+ 133,
1721
+ 249,
1722
+ 103
1723
+ ]
1724
+ }
1725
+ ],
1726
+ "errors": [
1727
+ {
1728
+ "code": 6000,
1729
+ "name": "payloadTooLarge",
1730
+ "msg": "Phoenix packet payload is too large"
1731
+ },
1732
+ {
1733
+ "code": 6001,
1734
+ "name": "marketNotAllowed",
1735
+ "msg": "Market is not allowed by Phoenix policy"
1736
+ },
1737
+ {
1738
+ "code": 6002,
1739
+ "name": "orderSizeExceeded",
1740
+ "msg": "Order size exceeds Phoenix policy"
1741
+ },
1742
+ {
1743
+ "code": 6003,
1744
+ "name": "riskIncreasingOrderDisabled",
1745
+ "msg": "Risk-increasing orders are disabled by Phoenix policy"
1746
+ },
1747
+ {
1748
+ "code": 6004,
1749
+ "name": "reduceOnlyRequired",
1750
+ "msg": "Order must be reduce-only by Phoenix policy"
1751
+ },
1752
+ {
1753
+ "code": 6005,
1754
+ "name": "missingReferencePrice",
1755
+ "msg": "Missing reference price for Phoenix price tolerance check"
1756
+ },
1757
+ {
1758
+ "code": 6006,
1759
+ "name": "priceDeviationExceeded",
1760
+ "msg": "Order price exceeds Phoenix price tolerance"
1761
+ },
1762
+ {
1763
+ "code": 6007,
1764
+ "name": "invalidPhoenixAccount",
1765
+ "msg": "Invalid Phoenix account"
1766
+ },
1767
+ {
1768
+ "code": 6008,
1769
+ "name": "invalidEmberMint",
1770
+ "msg": "Invalid Ember mint"
1771
+ },
1772
+ {
1773
+ "code": 6009,
1774
+ "name": "invalidEmberTokenAccount",
1775
+ "msg": "Invalid Ember token account"
1776
+ },
1777
+ {
1778
+ "code": 6010,
1779
+ "name": "emberAmountExceeded",
1780
+ "msg": "Ember conversion amount exceeds policy"
1781
+ },
1782
+ {
1783
+ "code": 6011,
1784
+ "name": "invalidAmount",
1785
+ "msg": "Amount must be greater than zero"
1786
+ },
1787
+ {
1788
+ "code": 6012,
1789
+ "name": "invalidPhoenixAccountOrder",
1790
+ "msg": "Invalid Phoenix account order"
1791
+ },
1792
+ {
1793
+ "code": 6013,
1794
+ "name": "duplicateAccount",
1795
+ "msg": "Duplicate account"
1796
+ },
1797
+ {
1798
+ "code": 6014,
1799
+ "name": "unexpectedSigner",
1800
+ "msg": "Unexpected signer account"
1801
+ },
1802
+ {
1803
+ "code": 6015,
1804
+ "name": "invalidPhoenixPda",
1805
+ "msg": "Invalid Phoenix PDA"
1806
+ },
1807
+ {
1808
+ "code": 6016,
1809
+ "name": "invalidOrderPacket",
1810
+ "msg": "Invalid Phoenix order packet"
1811
+ },
1812
+ {
1813
+ "code": 6017,
1814
+ "name": "invalidOrderType",
1815
+ "msg": "Invalid Phoenix order type"
1816
+ },
1817
+ {
1818
+ "code": 6018,
1819
+ "name": "invalidOrderFlags",
1820
+ "msg": "Invalid Phoenix order flags"
1821
+ },
1822
+ {
1823
+ "code": 6019,
1824
+ "name": "invalidTraderCapability",
1825
+ "msg": "Invalid Phoenix trader capability"
1826
+ },
1827
+ {
1828
+ "code": 6020,
1829
+ "name": "duplicateTraderCapability",
1830
+ "msg": "Duplicate Phoenix trader capability"
1831
+ },
1832
+ {
1833
+ "code": 6021,
1834
+ "name": "emptyTraderCapabilityUpdates",
1835
+ "msg": "Trader capability updates must not be empty"
1836
+ },
1837
+ {
1838
+ "code": 6022,
1839
+ "name": "tooManyTraderCapabilityUpdates",
1840
+ "msg": "Too many trader capability updates"
1841
+ },
1842
+ {
1843
+ "code": 6023,
1844
+ "name": "invalidCancelLimit",
1845
+ "msg": "Invalid cancel-up-to limit"
1846
+ },
1847
+ {
1848
+ "code": 6024,
1849
+ "name": "glamVaultLamportsDecreased",
1850
+ "msg": "GLAM vault lamports decreased during external CPI"
1851
+ },
1852
+ {
1853
+ "code": 6025,
1854
+ "name": "tooManyPhoenixMarkets",
1855
+ "msg": "Too many Phoenix markets in policy allowlist"
1856
+ },
1857
+ {
1858
+ "code": 6026,
1859
+ "name": "invalidPhoenixPolicy",
1860
+ "msg": "Invalid Phoenix policy"
1861
+ },
1862
+ {
1863
+ "code": 6027,
1864
+ "name": "invalidReferencePriceTimestamp",
1865
+ "msg": "Invalid Phoenix reference price timestamp"
1866
+ },
1867
+ {
1868
+ "code": 6028,
1869
+ "name": "referencePriceStale",
1870
+ "msg": "Phoenix reference price is stale"
1871
+ },
1872
+ {
1873
+ "code": 6029,
1874
+ "name": "orderTypeNotAllowed",
1875
+ "msg": "Phoenix order type is not allowed by policy"
1876
+ }
1877
+ ],
1878
+ "types": [
1879
+ {
1880
+ "name": "accountType",
1881
+ "type": {
1882
+ "kind": "enum",
1883
+ "variants": [
1884
+ {
1885
+ "name": "vault"
1886
+ },
1887
+ {
1888
+ "name": "tokenizedVault"
1889
+ },
1890
+ {
1891
+ "name": "mint"
1892
+ },
1893
+ {
1894
+ "name": "singleAssetVault"
1895
+ }
1896
+ ]
1897
+ }
1898
+ },
1899
+ {
1900
+ "name": "accruedFees",
1901
+ "type": {
1902
+ "kind": "struct",
1903
+ "fields": [
1904
+ {
1905
+ "name": "vaultSubscriptionFee",
1906
+ "type": "u128"
1907
+ },
1908
+ {
1909
+ "name": "vaultRedemptionFee",
1910
+ "type": "u128"
1911
+ },
1912
+ {
1913
+ "name": "managerSubscriptionFee",
1914
+ "type": "u128"
1915
+ },
1916
+ {
1917
+ "name": "managerRedemptionFee",
1918
+ "type": "u128"
1919
+ },
1920
+ {
1921
+ "name": "managementFee",
1922
+ "type": "u128"
1923
+ },
1924
+ {
1925
+ "name": "performanceFee",
1926
+ "type": "u128"
1927
+ },
1928
+ {
1929
+ "name": "protocolBaseFee",
1930
+ "type": "u128"
1931
+ },
1932
+ {
1933
+ "name": "protocolFlowFee",
1934
+ "type": "u128"
1935
+ }
1936
+ ]
1937
+ }
1938
+ },
1939
+ {
1940
+ "name": "baseLots",
1941
+ "type": {
1942
+ "kind": "struct",
1943
+ "fields": [
1944
+ {
1945
+ "name": "inner",
1946
+ "type": "u64"
1947
+ }
1948
+ ]
1949
+ }
1950
+ },
1951
+ {
1952
+ "name": "cancelId",
1953
+ "type": {
1954
+ "kind": "struct",
1955
+ "fields": [
1956
+ {
1957
+ "name": "nodePointer",
1958
+ "type": {
1959
+ "defined": {
1960
+ "name": "nodePointer"
1961
+ }
1962
+ }
1963
+ },
1964
+ {
1965
+ "name": "orderId",
1966
+ "type": {
1967
+ "defined": {
1968
+ "name": "fifoOrderId"
1969
+ }
1970
+ }
1971
+ }
1972
+ ]
1973
+ }
1974
+ },
1975
+ {
1976
+ "name": "cancelUpToInstruction",
1977
+ "type": {
1978
+ "kind": "struct",
1979
+ "fields": [
1980
+ {
1981
+ "name": "side",
1982
+ "type": {
1983
+ "defined": {
1984
+ "name": "side"
1985
+ }
1986
+ }
1987
+ },
1988
+ {
1989
+ "name": "numOrdersToCancel",
1990
+ "type": {
1991
+ "option": "u64"
1992
+ }
1993
+ },
1994
+ {
1995
+ "name": "tickLimit",
1996
+ "type": {
1997
+ "option": "u64"
1998
+ }
1999
+ }
2000
+ ]
2001
+ }
2002
+ },
2003
+ {
2004
+ "name": "condensedOrder",
2005
+ "type": {
2006
+ "kind": "struct",
2007
+ "fields": [
2008
+ {
2009
+ "name": "priceInTicks",
2010
+ "type": "u64"
2011
+ },
2012
+ {
2013
+ "name": "sizeInBaseLots",
2014
+ "type": "u64"
2015
+ },
2016
+ {
2017
+ "name": "lastValidSlot",
2018
+ "type": {
2019
+ "option": "u64"
2020
+ }
2021
+ }
2022
+ ]
2023
+ }
2024
+ },
2025
+ {
2026
+ "name": "createdModel",
2027
+ "type": {
2028
+ "kind": "struct",
2029
+ "fields": [
2030
+ {
2031
+ "name": "key",
2032
+ "type": {
2033
+ "array": [
2034
+ "u8",
2035
+ 8
2036
+ ]
2037
+ }
2038
+ },
2039
+ {
2040
+ "name": "createdBy",
2041
+ "type": "pubkey"
2042
+ },
2043
+ {
2044
+ "name": "createdAt",
2045
+ "type": "i64"
2046
+ }
2047
+ ]
2048
+ }
2049
+ },
2050
+ {
2051
+ "name": "delegateAcl",
2052
+ "type": {
2053
+ "kind": "struct",
2054
+ "fields": [
2055
+ {
2056
+ "name": "pubkey",
2057
+ "type": "pubkey"
2058
+ },
2059
+ {
2060
+ "name": "integrationPermissions",
2061
+ "type": {
2062
+ "vec": {
2063
+ "defined": {
2064
+ "name": "integrationPermissions"
2065
+ }
2066
+ }
2067
+ }
2068
+ },
2069
+ {
2070
+ "name": "expiresAt",
2071
+ "type": "i64"
2072
+ }
2073
+ ]
2074
+ }
2075
+ },
2076
+ {
2077
+ "name": "depositFundsInstruction",
2078
+ "type": {
2079
+ "kind": "struct",
2080
+ "fields": [
2081
+ {
2082
+ "name": "amount",
2083
+ "type": "u64"
2084
+ }
2085
+ ]
2086
+ }
2087
+ },
2088
+ {
2089
+ "name": "depositParams",
2090
+ "type": {
2091
+ "kind": "struct",
2092
+ "fields": [
2093
+ {
2094
+ "name": "amount",
2095
+ "type": "u64"
2096
+ }
2097
+ ]
2098
+ }
2099
+ },
2100
+ {
2101
+ "name": "engineField",
2102
+ "type": {
2103
+ "kind": "struct",
2104
+ "fields": [
2105
+ {
2106
+ "name": "name",
2107
+ "type": {
2108
+ "defined": {
2109
+ "name": "engineFieldName"
2110
+ }
2111
+ }
2112
+ },
2113
+ {
2114
+ "name": "value",
2115
+ "type": {
2116
+ "defined": {
2117
+ "name": "engineFieldValue"
2118
+ }
2119
+ }
2120
+ }
2121
+ ]
2122
+ }
2123
+ },
2124
+ {
2125
+ "name": "engineFieldName",
2126
+ "type": {
2127
+ "kind": "enum",
2128
+ "variants": [
2129
+ {
2130
+ "name": "owner"
2131
+ },
2132
+ {
2133
+ "name": "portfolioManagerName"
2134
+ },
2135
+ {
2136
+ "name": "name"
2137
+ },
2138
+ {
2139
+ "name": "uri"
2140
+ },
2141
+ {
2142
+ "name": "assets"
2143
+ },
2144
+ {
2145
+ "name": "delegateAcls"
2146
+ },
2147
+ {
2148
+ "name": "integrationAcls"
2149
+ },
2150
+ {
2151
+ "name": "timelockDuration"
2152
+ },
2153
+ {
2154
+ "name": "borrowable"
2155
+ },
2156
+ {
2157
+ "name": "defaultAccountStateFrozen"
2158
+ },
2159
+ {
2160
+ "name": "permanentDelegate"
2161
+ },
2162
+ {
2163
+ "name": "notifyAndSettle"
2164
+ },
2165
+ {
2166
+ "name": "feeStructure"
2167
+ },
2168
+ {
2169
+ "name": "feeParams"
2170
+ },
2171
+ {
2172
+ "name": "claimableFees"
2173
+ },
2174
+ {
2175
+ "name": "claimedFees"
2176
+ },
2177
+ {
2178
+ "name": "oracleConfigs"
2179
+ }
2180
+ ]
2181
+ }
2182
+ },
2183
+ {
2184
+ "name": "engineFieldValue",
2185
+ "type": {
2186
+ "kind": "enum",
2187
+ "variants": [
2188
+ {
2189
+ "name": "boolean",
2190
+ "fields": [
2191
+ {
2192
+ "name": "val",
2193
+ "type": "bool"
2194
+ }
2195
+ ]
2196
+ },
2197
+ {
2198
+ "name": "u8",
2199
+ "fields": [
2200
+ {
2201
+ "name": "val",
2202
+ "type": "u8"
2203
+ }
2204
+ ]
2205
+ },
2206
+ {
2207
+ "name": "u32",
2208
+ "fields": [
2209
+ {
2210
+ "name": "val",
2211
+ "type": "u32"
2212
+ }
2213
+ ]
2214
+ },
2215
+ {
2216
+ "name": "u64",
2217
+ "fields": [
2218
+ {
2219
+ "name": "val",
2220
+ "type": "u64"
2221
+ }
2222
+ ]
2223
+ },
2224
+ {
2225
+ "name": "string",
2226
+ "fields": [
2227
+ {
2228
+ "name": "val",
2229
+ "type": "string"
2230
+ }
2231
+ ]
2232
+ },
2233
+ {
2234
+ "name": "pubkey",
2235
+ "fields": [
2236
+ {
2237
+ "name": "val",
2238
+ "type": "pubkey"
2239
+ }
2240
+ ]
2241
+ },
2242
+ {
2243
+ "name": "vecPubkey",
2244
+ "fields": [
2245
+ {
2246
+ "name": "val",
2247
+ "type": {
2248
+ "vec": "pubkey"
2249
+ }
2250
+ }
2251
+ ]
2252
+ },
2253
+ {
2254
+ "name": "vecU8",
2255
+ "fields": [
2256
+ {
2257
+ "name": "val",
2258
+ "type": "bytes"
2259
+ }
2260
+ ]
2261
+ },
2262
+ {
2263
+ "name": "vecU32",
2264
+ "fields": [
2265
+ {
2266
+ "name": "val",
2267
+ "type": {
2268
+ "vec": "u32"
2269
+ }
2270
+ }
2271
+ ]
2272
+ },
2273
+ {
2274
+ "name": "vecDelegateAcl",
2275
+ "fields": [
2276
+ {
2277
+ "name": "val",
2278
+ "type": {
2279
+ "vec": {
2280
+ "defined": {
2281
+ "name": "delegateAcl"
2282
+ }
2283
+ }
2284
+ }
2285
+ }
2286
+ ]
2287
+ },
2288
+ {
2289
+ "name": "vecIntegrationAcl",
2290
+ "fields": [
2291
+ {
2292
+ "name": "val",
2293
+ "type": {
2294
+ "vec": {
2295
+ "defined": {
2296
+ "name": "integrationAcl"
2297
+ }
2298
+ }
2299
+ }
2300
+ }
2301
+ ]
2302
+ },
2303
+ {
2304
+ "name": "feeStructure",
2305
+ "fields": [
2306
+ {
2307
+ "name": "val",
2308
+ "type": {
2309
+ "defined": {
2310
+ "name": "feeStructure"
2311
+ }
2312
+ }
2313
+ }
2314
+ ]
2315
+ },
2316
+ {
2317
+ "name": "feeParams",
2318
+ "fields": [
2319
+ {
2320
+ "name": "val",
2321
+ "type": {
2322
+ "defined": {
2323
+ "name": "feeParams"
2324
+ }
2325
+ }
2326
+ }
2327
+ ]
2328
+ },
2329
+ {
2330
+ "name": "accruedFees",
2331
+ "fields": [
2332
+ {
2333
+ "name": "val",
2334
+ "type": {
2335
+ "defined": {
2336
+ "name": "accruedFees"
2337
+ }
2338
+ }
2339
+ }
2340
+ ]
2341
+ },
2342
+ {
2343
+ "name": "notifyAndSettle",
2344
+ "fields": [
2345
+ {
2346
+ "name": "val",
2347
+ "type": {
2348
+ "defined": {
2349
+ "name": "notifyAndSettle"
2350
+ }
2351
+ }
2352
+ }
2353
+ ]
2354
+ },
2355
+ {
2356
+ "name": "oracleConfigs",
2357
+ "fields": [
2358
+ {
2359
+ "name": "val",
2360
+ "type": {
2361
+ "defined": {
2362
+ "name": "oracleConfigs"
2363
+ }
2364
+ }
2365
+ }
2366
+ ]
2367
+ }
2368
+ ]
2369
+ }
2370
+ },
2371
+ {
2372
+ "name": "entryExitFees",
2373
+ "type": {
2374
+ "kind": "struct",
2375
+ "fields": [
2376
+ {
2377
+ "name": "subscriptionFeeBps",
2378
+ "type": "u16"
2379
+ },
2380
+ {
2381
+ "name": "redemptionFeeBps",
2382
+ "type": "u16"
2383
+ }
2384
+ ]
2385
+ }
2386
+ },
2387
+ {
2388
+ "name": "fifoOrderId",
2389
+ "type": {
2390
+ "kind": "struct",
2391
+ "fields": [
2392
+ {
2393
+ "name": "priceInTicks",
2394
+ "type": {
2395
+ "defined": {
2396
+ "name": "ticks"
2397
+ }
2398
+ }
2399
+ },
2400
+ {
2401
+ "name": "orderSequenceNumber",
2402
+ "type": "u64"
2403
+ }
2404
+ ]
2405
+ }
2406
+ },
2407
+ {
2408
+ "name": "feeParams",
2409
+ "type": {
2410
+ "kind": "struct",
2411
+ "fields": [
2412
+ {
2413
+ "name": "yearInSeconds",
2414
+ "type": "u32"
2415
+ },
2416
+ {
2417
+ "name": "paHighWaterMark",
2418
+ "type": "i128"
2419
+ },
2420
+ {
2421
+ "name": "paLastNav",
2422
+ "type": "i128"
2423
+ },
2424
+ {
2425
+ "name": "lastAum",
2426
+ "type": "i128"
2427
+ },
2428
+ {
2429
+ "name": "lastPerformanceFeeCrystallized",
2430
+ "type": "i64"
2431
+ },
2432
+ {
2433
+ "name": "lastManagementFeeCrystallized",
2434
+ "type": "i64"
2435
+ },
2436
+ {
2437
+ "name": "lastProtocolFeeCrystallized",
2438
+ "type": "i64"
2439
+ }
2440
+ ]
2441
+ }
2442
+ },
2443
+ {
2444
+ "name": "feeStructure",
2445
+ "type": {
2446
+ "kind": "struct",
2447
+ "fields": [
2448
+ {
2449
+ "name": "vault",
2450
+ "type": {
2451
+ "defined": {
2452
+ "name": "entryExitFees"
2453
+ }
2454
+ }
2455
+ },
2456
+ {
2457
+ "name": "manager",
2458
+ "type": {
2459
+ "defined": {
2460
+ "name": "entryExitFees"
2461
+ }
2462
+ }
2463
+ },
2464
+ {
2465
+ "name": "management",
2466
+ "type": {
2467
+ "defined": {
2468
+ "name": "managementFee"
2469
+ }
2470
+ }
2471
+ },
2472
+ {
2473
+ "name": "performance",
2474
+ "type": {
2475
+ "defined": {
2476
+ "name": "performanceFee"
2477
+ }
2478
+ }
2479
+ },
2480
+ {
2481
+ "name": "protocol",
2482
+ "type": {
2483
+ "defined": {
2484
+ "name": "protocolFees"
2485
+ }
2486
+ }
2487
+ }
2488
+ ]
2489
+ }
2490
+ },
2491
+ {
2492
+ "name": "hurdleType",
2493
+ "type": {
2494
+ "kind": "enum",
2495
+ "variants": [
2496
+ {
2497
+ "name": "hard"
2498
+ },
2499
+ {
2500
+ "name": "soft"
2501
+ }
2502
+ ]
2503
+ }
2504
+ },
2505
+ {
2506
+ "name": "integrationAcl",
2507
+ "docs": [
2508
+ "An integration program can have multiple protocols supported.",
2509
+ "Enabled protocols are stored in a bitmask, and each protocol can have its own policy."
2510
+ ],
2511
+ "type": {
2512
+ "kind": "struct",
2513
+ "fields": [
2514
+ {
2515
+ "name": "integrationProgram",
2516
+ "type": "pubkey"
2517
+ },
2518
+ {
2519
+ "name": "protocolsBitmask",
2520
+ "type": "u16"
2521
+ },
2522
+ {
2523
+ "name": "protocolPolicies",
2524
+ "type": {
2525
+ "vec": {
2526
+ "defined": {
2527
+ "name": "protocolPolicy"
2528
+ }
2529
+ }
2530
+ }
2531
+ }
2532
+ ]
2533
+ }
2534
+ },
2535
+ {
2536
+ "name": "integrationPermissions",
2537
+ "docs": [
2538
+ "Stores delegate permissions for an integration program."
2539
+ ],
2540
+ "type": {
2541
+ "kind": "struct",
2542
+ "fields": [
2543
+ {
2544
+ "name": "integrationProgram",
2545
+ "type": "pubkey"
2546
+ },
2547
+ {
2548
+ "name": "protocolPermissions",
2549
+ "type": {
2550
+ "vec": {
2551
+ "defined": {
2552
+ "name": "protocolPermissions"
2553
+ }
2554
+ }
2555
+ }
2556
+ }
2557
+ ]
2558
+ }
2559
+ },
2560
+ {
2561
+ "name": "managementFee",
2562
+ "type": {
2563
+ "kind": "struct",
2564
+ "fields": [
2565
+ {
2566
+ "name": "feeBps",
2567
+ "type": "u16"
2568
+ }
2569
+ ]
2570
+ }
2571
+ },
2572
+ {
2573
+ "name": "multipleOrderPacket",
2574
+ "type": {
2575
+ "kind": "struct",
2576
+ "fields": [
2577
+ {
2578
+ "name": "bids",
2579
+ "type": {
2580
+ "vec": {
2581
+ "defined": {
2582
+ "name": "condensedOrder"
2583
+ }
2584
+ }
2585
+ }
2586
+ },
2587
+ {
2588
+ "name": "asks",
2589
+ "type": {
2590
+ "vec": {
2591
+ "defined": {
2592
+ "name": "condensedOrder"
2593
+ }
2594
+ }
2595
+ }
2596
+ },
2597
+ {
2598
+ "name": "clientOrderId",
2599
+ "type": {
2600
+ "option": {
2601
+ "array": [
2602
+ "u8",
2603
+ 16
2604
+ ]
2605
+ }
2606
+ }
2607
+ },
2608
+ {
2609
+ "name": "slide",
2610
+ "type": "bool"
2611
+ }
2612
+ ]
2613
+ }
2614
+ },
2615
+ {
2616
+ "name": "nodePointer",
2617
+ "type": {
2618
+ "kind": "struct",
2619
+ "fields": [
2620
+ {
2621
+ "name": "value",
2622
+ "type": "u32"
2623
+ }
2624
+ ]
2625
+ }
2626
+ },
2627
+ {
2628
+ "name": "noticePeriodType",
2629
+ "type": {
2630
+ "kind": "enum",
2631
+ "variants": [
2632
+ {
2633
+ "name": "hard"
2634
+ },
2635
+ {
2636
+ "name": "soft"
2637
+ }
2638
+ ]
2639
+ }
2640
+ },
2641
+ {
2642
+ "name": "notifyAndSettle",
2643
+ "type": {
2644
+ "kind": "struct",
2645
+ "fields": [
2646
+ {
2647
+ "name": "model",
2648
+ "type": {
2649
+ "defined": {
2650
+ "name": "valuationModel"
2651
+ }
2652
+ }
2653
+ },
2654
+ {
2655
+ "name": "permissionlessFulfillment",
2656
+ "type": "bool"
2657
+ },
2658
+ {
2659
+ "name": "subscribeNoticePeriodType",
2660
+ "type": {
2661
+ "defined": {
2662
+ "name": "noticePeriodType"
2663
+ }
2664
+ }
2665
+ },
2666
+ {
2667
+ "name": "subscribeNoticePeriod",
2668
+ "type": "u64"
2669
+ },
2670
+ {
2671
+ "name": "subscribeSettlementPeriod",
2672
+ "type": "u64"
2673
+ },
2674
+ {
2675
+ "name": "subscribeCancellationWindow",
2676
+ "type": "u64"
2677
+ },
2678
+ {
2679
+ "name": "redeemNoticePeriodType",
2680
+ "type": {
2681
+ "defined": {
2682
+ "name": "noticePeriodType"
2683
+ }
2684
+ }
2685
+ },
2686
+ {
2687
+ "name": "redeemNoticePeriod",
2688
+ "type": "u64"
2689
+ },
2690
+ {
2691
+ "name": "redeemSettlementPeriod",
2692
+ "type": "u64"
2693
+ },
2694
+ {
2695
+ "name": "redeemCancellationWindow",
2696
+ "type": "u64"
2697
+ },
2698
+ {
2699
+ "name": "timeUnit",
2700
+ "type": {
2701
+ "defined": {
2702
+ "name": "timeUnit"
2703
+ }
2704
+ }
2705
+ },
2706
+ {
2707
+ "name": "padding",
2708
+ "type": {
2709
+ "array": [
2710
+ "u8",
2711
+ 3
2712
+ ]
2713
+ }
2714
+ }
2715
+ ]
2716
+ }
2717
+ },
2718
+ {
2719
+ "name": "oracleConfigs",
2720
+ "docs": [
2721
+ "Vault-specific oracle configs. If available, these configs are preferred over the global config."
2722
+ ],
2723
+ "type": {
2724
+ "kind": "struct",
2725
+ "fields": [
2726
+ {
2727
+ "name": "maxAgesSeconds",
2728
+ "type": {
2729
+ "vec": {
2730
+ "array": [
2731
+ "u16",
2732
+ 2
2733
+ ]
2734
+ }
2735
+ }
2736
+ },
2737
+ {
2738
+ "name": "padding",
2739
+ "type": {
2740
+ "array": [
2741
+ "u8",
2742
+ 12
2743
+ ]
2744
+ }
2745
+ }
2746
+ ]
2747
+ }
2748
+ },
2749
+ {
2750
+ "name": "orderFlags",
2751
+ "type": {
2752
+ "kind": "struct",
2753
+ "fields": [
2754
+ {
2755
+ "name": "flags",
2756
+ "type": "u8"
2757
+ }
2758
+ ]
2759
+ }
2760
+ },
2761
+ {
2762
+ "name": "orderIds",
2763
+ "type": {
2764
+ "kind": "struct",
2765
+ "fields": [
2766
+ {
2767
+ "name": "orderIds",
2768
+ "type": {
2769
+ "vec": {
2770
+ "defined": {
2771
+ "name": "cancelId"
2772
+ }
2773
+ }
2774
+ }
2775
+ }
2776
+ ]
2777
+ }
2778
+ },
2779
+ {
2780
+ "name": "orderPacket",
2781
+ "type": {
2782
+ "kind": "struct",
2783
+ "fields": [
2784
+ {
2785
+ "name": "kind",
2786
+ "type": {
2787
+ "defined": {
2788
+ "name": "orderPacketKind"
2789
+ }
2790
+ }
2791
+ }
2792
+ ]
2793
+ }
2794
+ },
2795
+ {
2796
+ "name": "orderPacketKind",
2797
+ "type": {
2798
+ "kind": "enum",
2799
+ "variants": [
2800
+ {
2801
+ "name": "postOnly",
2802
+ "fields": [
2803
+ {
2804
+ "name": "side",
2805
+ "type": {
2806
+ "defined": {
2807
+ "name": "side"
2808
+ }
2809
+ }
2810
+ },
2811
+ {
2812
+ "name": "priceInTicks",
2813
+ "type": {
2814
+ "defined": {
2815
+ "name": "ticks"
2816
+ }
2817
+ }
2818
+ },
2819
+ {
2820
+ "name": "numBaseLots",
2821
+ "type": {
2822
+ "defined": {
2823
+ "name": "baseLots"
2824
+ }
2825
+ }
2826
+ },
2827
+ {
2828
+ "name": "clientOrderId",
2829
+ "type": {
2830
+ "array": [
2831
+ "u8",
2832
+ 16
2833
+ ]
2834
+ }
2835
+ },
2836
+ {
2837
+ "name": "slide",
2838
+ "type": "bool"
2839
+ },
2840
+ {
2841
+ "name": "lastValidSlot",
2842
+ "type": {
2843
+ "option": "u64"
2844
+ }
2845
+ },
2846
+ {
2847
+ "name": "orderFlags",
2848
+ "type": {
2849
+ "defined": {
2850
+ "name": "orderFlags"
2851
+ }
2852
+ }
2853
+ },
2854
+ {
2855
+ "name": "cancelExisting",
2856
+ "type": "bool"
2857
+ }
2858
+ ]
2859
+ },
2860
+ {
2861
+ "name": "limit",
2862
+ "fields": [
2863
+ {
2864
+ "name": "side",
2865
+ "type": {
2866
+ "defined": {
2867
+ "name": "side"
2868
+ }
2869
+ }
2870
+ },
2871
+ {
2872
+ "name": "priceInTicks",
2873
+ "type": {
2874
+ "defined": {
2875
+ "name": "ticks"
2876
+ }
2877
+ }
2878
+ },
2879
+ {
2880
+ "name": "numBaseLots",
2881
+ "type": {
2882
+ "defined": {
2883
+ "name": "baseLots"
2884
+ }
2885
+ }
2886
+ },
2887
+ {
2888
+ "name": "selfTradeBehavior",
2889
+ "type": {
2890
+ "defined": {
2891
+ "name": "selfTradeBehavior"
2892
+ }
2893
+ }
2894
+ },
2895
+ {
2896
+ "name": "matchLimit",
2897
+ "type": {
2898
+ "option": "u64"
2899
+ }
2900
+ },
2901
+ {
2902
+ "name": "clientOrderId",
2903
+ "type": {
2904
+ "array": [
2905
+ "u8",
2906
+ 16
2907
+ ]
2908
+ }
2909
+ },
2910
+ {
2911
+ "name": "lastValidSlot",
2912
+ "type": {
2913
+ "option": "u64"
2914
+ }
2915
+ },
2916
+ {
2917
+ "name": "orderFlags",
2918
+ "type": {
2919
+ "defined": {
2920
+ "name": "orderFlags"
2921
+ }
2922
+ }
2923
+ },
2924
+ {
2925
+ "name": "cancelExisting",
2926
+ "type": "bool"
2927
+ }
2928
+ ]
2929
+ },
2930
+ {
2931
+ "name": "immediateOrCancel",
2932
+ "fields": [
2933
+ {
2934
+ "name": "side",
2935
+ "type": {
2936
+ "defined": {
2937
+ "name": "side"
2938
+ }
2939
+ }
2940
+ },
2941
+ {
2942
+ "name": "priceInTicks",
2943
+ "type": {
2944
+ "option": {
2945
+ "defined": {
2946
+ "name": "ticks"
2947
+ }
2948
+ }
2949
+ }
2950
+ },
2951
+ {
2952
+ "name": "numBaseLots",
2953
+ "type": {
2954
+ "defined": {
2955
+ "name": "baseLots"
2956
+ }
2957
+ }
2958
+ },
2959
+ {
2960
+ "name": "numQuoteLots",
2961
+ "type": {
2962
+ "option": {
2963
+ "defined": {
2964
+ "name": "quoteLots"
2965
+ }
2966
+ }
2967
+ }
2968
+ },
2969
+ {
2970
+ "name": "minBaseLotsToFill",
2971
+ "type": {
2972
+ "defined": {
2973
+ "name": "baseLots"
2974
+ }
2975
+ }
2976
+ },
2977
+ {
2978
+ "name": "minQuoteLotsToFill",
2979
+ "type": {
2980
+ "defined": {
2981
+ "name": "quoteLots"
2982
+ }
2983
+ }
2984
+ },
2985
+ {
2986
+ "name": "selfTradeBehavior",
2987
+ "type": {
2988
+ "defined": {
2989
+ "name": "selfTradeBehavior"
2990
+ }
2991
+ }
2992
+ },
2993
+ {
2994
+ "name": "matchLimit",
2995
+ "type": {
2996
+ "option": "u64"
2997
+ }
2998
+ },
2999
+ {
3000
+ "name": "clientOrderId",
3001
+ "type": {
3002
+ "array": [
3003
+ "u8",
3004
+ 16
3005
+ ]
3006
+ }
3007
+ },
3008
+ {
3009
+ "name": "lastValidSlot",
3010
+ "type": {
3011
+ "option": "u64"
3012
+ }
3013
+ },
3014
+ {
3015
+ "name": "orderFlags",
3016
+ "type": {
3017
+ "defined": {
3018
+ "name": "orderFlags"
3019
+ }
3020
+ }
3021
+ },
3022
+ {
3023
+ "name": "cancelExisting",
3024
+ "type": "bool"
3025
+ }
3026
+ ]
3027
+ }
3028
+ ]
3029
+ }
3030
+ },
3031
+ {
3032
+ "name": "performanceFee",
3033
+ "type": {
3034
+ "kind": "struct",
3035
+ "fields": [
3036
+ {
3037
+ "name": "feeBps",
3038
+ "type": "u16"
3039
+ },
3040
+ {
3041
+ "name": "hurdleRateBps",
3042
+ "type": "u16"
3043
+ },
3044
+ {
3045
+ "name": "hurdleType",
3046
+ "type": {
3047
+ "defined": {
3048
+ "name": "hurdleType"
3049
+ }
3050
+ }
3051
+ }
3052
+ ]
3053
+ }
3054
+ },
3055
+ {
3056
+ "name": "phoenixPolicy",
3057
+ "type": {
3058
+ "kind": "struct",
3059
+ "fields": [
3060
+ {
3061
+ "name": "marketsAllowlist",
3062
+ "docs": [
3063
+ "Phoenix markets the vault is allowed to trade on. Any order routed to a",
3064
+ "market outside this list is rejected with `MarketNotAllowed`. Capped at",
3065
+ "`MAX_PHOENIX_MARKETS_ALLOWLIST` entries; duplicates and the default",
3066
+ "pubkey are rejected by `validate_for_set`. An empty list disables all",
3067
+ "trading."
3068
+ ],
3069
+ "type": {
3070
+ "vec": "pubkey"
3071
+ }
3072
+ },
3073
+ {
3074
+ "name": "allowedOrderTypes",
3075
+ "docs": [
3076
+ "Allowed Phoenix `OrderPacketKind` discriminants. Current values are:",
3077
+ "`0 = PostOnly`, `1 = Limit`, and `2 = ImmediateOrCancel`. An empty list",
3078
+ "disables all order placement."
3079
+ ],
3080
+ "type": "bytes"
3081
+ },
3082
+ {
3083
+ "name": "requireReduceOnlyOrders",
3084
+ "docs": [
3085
+ "When `true`, every order must have the reduce-only flag set; orders",
3086
+ "without it are rejected with `ReduceOnlyRequired`. Use this to lock the",
3087
+ "vault into pure position-unwinding mode."
3088
+ ],
3089
+ "type": "bool"
3090
+ },
3091
+ {
3092
+ "name": "maxPriceDeviationBps",
3093
+ "docs": [
3094
+ "Maximum allowed deviation in basis points. Retained in policy state for",
3095
+ "future enforcement; currently not checked by order placement."
3096
+ ],
3097
+ "type": "u16"
3098
+ },
3099
+ {
3100
+ "name": "maxReferencePriceAgeSecs",
3101
+ "docs": [
3102
+ "Maximum reference price age in seconds. Retained in policy state for",
3103
+ "future enforcement; currently not checked by order placement."
3104
+ ],
3105
+ "type": "u32"
3106
+ }
3107
+ ]
3108
+ }
3109
+ },
3110
+ {
3111
+ "name": "pricedProtocol",
3112
+ "type": {
3113
+ "kind": "struct",
3114
+ "fields": [
3115
+ {
3116
+ "name": "rent",
3117
+ "type": "u64"
3118
+ },
3119
+ {
3120
+ "name": "amount",
3121
+ "type": "i128"
3122
+ },
3123
+ {
3124
+ "name": "decimals",
3125
+ "type": "u8"
3126
+ },
3127
+ {
3128
+ "name": "lastUpdatedSlot",
3129
+ "type": "u64"
3130
+ },
3131
+ {
3132
+ "name": "integrationProgram",
3133
+ "type": "pubkey"
3134
+ },
3135
+ {
3136
+ "name": "protocolBitflag",
3137
+ "type": "u16"
3138
+ },
3139
+ {
3140
+ "name": "positions",
3141
+ "type": {
3142
+ "vec": "pubkey"
3143
+ }
3144
+ }
3145
+ ]
3146
+ }
3147
+ },
3148
+ {
3149
+ "name": "protocolFees",
3150
+ "type": {
3151
+ "kind": "struct",
3152
+ "fields": [
3153
+ {
3154
+ "name": "baseFeeBps",
3155
+ "type": "u16"
3156
+ },
3157
+ {
3158
+ "name": "flowFeeBps",
3159
+ "type": "u16"
3160
+ }
3161
+ ]
3162
+ }
3163
+ },
3164
+ {
3165
+ "name": "protocolPermissions",
3166
+ "docs": [
3167
+ "Represents a delegate's permissions for a specific protocol"
3168
+ ],
3169
+ "type": {
3170
+ "kind": "struct",
3171
+ "fields": [
3172
+ {
3173
+ "name": "protocolBitflag",
3174
+ "type": "u16"
3175
+ },
3176
+ {
3177
+ "name": "permissionsBitmask",
3178
+ "type": "u64"
3179
+ }
3180
+ ]
3181
+ }
3182
+ },
3183
+ {
3184
+ "name": "protocolPolicy",
3185
+ "docs": [
3186
+ "Stores policy data for an integrated protocol.",
3187
+ "Integration programs serialize/deserialize this data."
3188
+ ],
3189
+ "type": {
3190
+ "kind": "struct",
3191
+ "fields": [
3192
+ {
3193
+ "name": "protocolBitflag",
3194
+ "type": "u16"
3195
+ },
3196
+ {
3197
+ "name": "data",
3198
+ "type": "bytes"
3199
+ }
3200
+ ]
3201
+ }
3202
+ },
3203
+ {
3204
+ "name": "quoteLots",
3205
+ "type": {
3206
+ "kind": "struct",
3207
+ "fields": [
3208
+ {
3209
+ "name": "inner",
3210
+ "type": "u64"
3211
+ }
3212
+ ]
3213
+ }
3214
+ },
3215
+ {
3216
+ "name": "registerTraderParams",
3217
+ "type": {
3218
+ "kind": "struct",
3219
+ "fields": [
3220
+ {
3221
+ "name": "maxPositions",
3222
+ "type": "u64"
3223
+ },
3224
+ {
3225
+ "name": "traderPdaIndex",
3226
+ "type": "u8"
3227
+ },
3228
+ {
3229
+ "name": "traderSubaccountIndex",
3230
+ "type": "u8"
3231
+ }
3232
+ ]
3233
+ }
3234
+ },
3235
+ {
3236
+ "name": "selfTradeBehavior",
3237
+ "type": {
3238
+ "kind": "enum",
3239
+ "variants": [
3240
+ {
3241
+ "name": "abort"
3242
+ },
3243
+ {
3244
+ "name": "cancelProvide"
3245
+ },
3246
+ {
3247
+ "name": "decrementTake"
3248
+ }
3249
+ ]
3250
+ }
3251
+ },
3252
+ {
3253
+ "name": "side",
3254
+ "type": {
3255
+ "kind": "enum",
3256
+ "variants": [
3257
+ {
3258
+ "name": "bid"
3259
+ },
3260
+ {
3261
+ "name": "ask"
3262
+ }
3263
+ ]
3264
+ }
3265
+ },
3266
+ {
3267
+ "name": "stateAccount",
3268
+ "type": {
3269
+ "kind": "struct",
3270
+ "fields": [
3271
+ {
3272
+ "name": "accountType",
3273
+ "type": {
3274
+ "defined": {
3275
+ "name": "accountType"
3276
+ }
3277
+ }
3278
+ },
3279
+ {
3280
+ "name": "enabled",
3281
+ "type": "bool"
3282
+ },
3283
+ {
3284
+ "name": "vault",
3285
+ "type": "pubkey"
3286
+ },
3287
+ {
3288
+ "name": "owner",
3289
+ "type": "pubkey"
3290
+ },
3291
+ {
3292
+ "name": "portfolioManagerName",
3293
+ "type": {
3294
+ "array": [
3295
+ "u8",
3296
+ 32
3297
+ ]
3298
+ }
3299
+ },
3300
+ {
3301
+ "name": "created",
3302
+ "type": {
3303
+ "defined": {
3304
+ "name": "createdModel"
3305
+ }
3306
+ }
3307
+ },
3308
+ {
3309
+ "name": "baseAssetMint",
3310
+ "type": "pubkey"
3311
+ },
3312
+ {
3313
+ "name": "baseAssetDecimals",
3314
+ "type": "u8"
3315
+ },
3316
+ {
3317
+ "name": "baseAssetTokenProgram",
3318
+ "type": "u8"
3319
+ },
3320
+ {
3321
+ "name": "name",
3322
+ "type": {
3323
+ "array": [
3324
+ "u8",
3325
+ 32
3326
+ ]
3327
+ }
3328
+ },
3329
+ {
3330
+ "name": "timelockDuration",
3331
+ "type": "u32"
3332
+ },
3333
+ {
3334
+ "name": "timelockExpiresAt",
3335
+ "type": "u64"
3336
+ },
3337
+ {
3338
+ "name": "mint",
3339
+ "type": "pubkey"
3340
+ },
3341
+ {
3342
+ "name": "assets",
3343
+ "type": {
3344
+ "vec": "pubkey"
3345
+ }
3346
+ },
3347
+ {
3348
+ "name": "integrationAcls",
3349
+ "type": {
3350
+ "vec": {
3351
+ "defined": {
3352
+ "name": "integrationAcl"
3353
+ }
3354
+ }
3355
+ }
3356
+ },
3357
+ {
3358
+ "name": "delegateAcls",
3359
+ "type": {
3360
+ "vec": {
3361
+ "defined": {
3362
+ "name": "delegateAcl"
3363
+ }
3364
+ }
3365
+ }
3366
+ },
3367
+ {
3368
+ "name": "externalPositions",
3369
+ "type": {
3370
+ "vec": "pubkey"
3371
+ }
3372
+ },
3373
+ {
3374
+ "name": "pricedProtocols",
3375
+ "type": {
3376
+ "vec": {
3377
+ "defined": {
3378
+ "name": "pricedProtocol"
3379
+ }
3380
+ }
3381
+ }
3382
+ },
3383
+ {
3384
+ "name": "params",
3385
+ "type": {
3386
+ "vec": {
3387
+ "vec": {
3388
+ "defined": {
3389
+ "name": "engineField"
3390
+ }
3391
+ }
3392
+ }
3393
+ }
3394
+ }
3395
+ ]
3396
+ }
3397
+ },
3398
+ {
3399
+ "name": "ticks",
3400
+ "type": {
3401
+ "kind": "struct",
3402
+ "fields": [
3403
+ {
3404
+ "name": "inner",
3405
+ "type": "u64"
3406
+ }
3407
+ ]
3408
+ }
3409
+ },
3410
+ {
3411
+ "name": "timeUnit",
3412
+ "type": {
3413
+ "kind": "enum",
3414
+ "variants": [
3415
+ {
3416
+ "name": "second"
3417
+ },
3418
+ {
3419
+ "name": "slot"
3420
+ }
3421
+ ]
3422
+ }
3423
+ },
3424
+ {
3425
+ "name": "transferCollateralChildToParentInstruction",
3426
+ "type": {
3427
+ "kind": "struct",
3428
+ "fields": [
3429
+ {
3430
+ "name": "amount",
3431
+ "type": "u64"
3432
+ }
3433
+ ]
3434
+ }
3435
+ },
3436
+ {
3437
+ "name": "transferCollateralInstruction",
3438
+ "type": {
3439
+ "kind": "struct",
3440
+ "fields": [
3441
+ {
3442
+ "name": "amount",
3443
+ "type": "u64"
3444
+ }
3445
+ ]
3446
+ }
3447
+ },
3448
+ {
3449
+ "name": "valuationModel",
3450
+ "type": {
3451
+ "kind": "enum",
3452
+ "variants": [
3453
+ {
3454
+ "name": "continuous"
3455
+ },
3456
+ {
3457
+ "name": "periodic"
3458
+ }
3459
+ ]
3460
+ }
3461
+ },
3462
+ {
3463
+ "name": "withdrawFundsInstruction",
3464
+ "type": {
3465
+ "kind": "struct",
3466
+ "fields": [
3467
+ {
3468
+ "name": "amount",
3469
+ "type": "u64"
3470
+ }
3471
+ ]
3472
+ }
3473
+ },
3474
+ {
3475
+ "name": "withdrawParams",
3476
+ "type": {
3477
+ "kind": "struct",
3478
+ "fields": [
3479
+ {
3480
+ "name": "amount",
3481
+ "type": {
3482
+ "option": "u64"
3483
+ }
3484
+ }
3485
+ ]
3486
+ }
3487
+ }
3488
+ ],
3489
+ "constants": [
3490
+ {
3491
+ "name": "phoenixPermCancelOrders",
3492
+ "type": "u64",
3493
+ "value": "16"
3494
+ },
3495
+ {
3496
+ "name": "phoenixPermCreateModifyOrders",
3497
+ "type": "u64",
3498
+ "value": "8"
3499
+ },
3500
+ {
3501
+ "name": "phoenixPermDeposit",
3502
+ "type": "u64",
3503
+ "value": "2"
3504
+ },
3505
+ {
3506
+ "name": "phoenixPermInitTrader",
3507
+ "type": "u64",
3508
+ "value": "1"
3509
+ },
3510
+ {
3511
+ "name": "phoenixPermTransferCollateral",
3512
+ "type": "u64",
3513
+ "value": "32"
3514
+ },
3515
+ {
3516
+ "name": "phoenixPermUpdateTraderState",
3517
+ "type": "u64",
3518
+ "value": "64"
3519
+ },
3520
+ {
3521
+ "name": "phoenixPermWithdraw",
3522
+ "type": "u64",
3523
+ "value": "4"
3524
+ },
3525
+ {
3526
+ "name": "protoPhoenix",
3527
+ "type": "u16",
3528
+ "value": "1"
3529
+ }
3530
+ ]
3531
+ };