@drift-labs/sdk 2.145.0-beta.1 → 2.145.0-beta.3
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/VERSION +1 -1
- package/lib/browser/accounts/types.d.ts +13 -1
- package/lib/browser/accounts/webSocketProgramAccountSubscriberV2.d.ts +53 -0
- package/lib/browser/accounts/webSocketProgramAccountSubscriberV2.js +453 -0
- package/lib/browser/addresses/pda.d.ts +9 -0
- package/lib/browser/addresses/pda.js +60 -1
- package/lib/browser/adminClient.d.ts +160 -8
- package/lib/browser/adminClient.js +754 -18
- package/lib/browser/constituentMap/constituentMap.d.ts +64 -0
- package/lib/browser/constituentMap/constituentMap.js +170 -0
- package/lib/browser/constituentMap/pollingConstituentAccountSubscriber.d.ts +24 -0
- package/lib/browser/constituentMap/pollingConstituentAccountSubscriber.js +60 -0
- package/lib/browser/constituentMap/webSocketConstituentAccountSubscriber.d.ts +24 -0
- package/lib/browser/constituentMap/webSocketConstituentAccountSubscriber.js +58 -0
- package/lib/browser/driftClient.d.ts +89 -2
- package/lib/browser/driftClient.js +497 -30
- package/lib/browser/driftClientConfig.d.ts +2 -7
- package/lib/browser/idl/drift.json +3513 -577
- package/lib/browser/index.d.ts +1 -4
- package/lib/browser/index.js +2 -9
- package/lib/browser/memcmp.d.ts +3 -1
- package/lib/browser/memcmp.js +19 -1
- package/lib/browser/types.d.ts +149 -0
- package/lib/browser/types.js +13 -1
- package/lib/node/accounts/types.d.ts +13 -1
- package/lib/node/accounts/types.d.ts.map +1 -1
- package/lib/node/accounts/webSocketProgramAccountSubscriberV2.d.ts +54 -0
- package/lib/node/accounts/webSocketProgramAccountSubscriberV2.d.ts.map +1 -0
- package/lib/node/accounts/webSocketProgramAccountSubscriberV2.js +453 -0
- package/lib/node/addresses/pda.d.ts +9 -0
- package/lib/node/addresses/pda.d.ts.map +1 -1
- package/lib/node/addresses/pda.js +60 -1
- package/lib/node/adminClient.d.ts +160 -8
- package/lib/node/adminClient.d.ts.map +1 -1
- package/lib/node/adminClient.js +754 -18
- package/lib/node/constituentMap/constituentMap.d.ts +65 -0
- package/lib/node/constituentMap/constituentMap.d.ts.map +1 -0
- package/lib/node/constituentMap/constituentMap.js +170 -0
- package/lib/node/constituentMap/pollingConstituentAccountSubscriber.d.ts +25 -0
- package/lib/node/constituentMap/pollingConstituentAccountSubscriber.d.ts.map +1 -0
- package/lib/node/constituentMap/pollingConstituentAccountSubscriber.js +60 -0
- package/lib/node/constituentMap/webSocketConstituentAccountSubscriber.d.ts +25 -0
- package/lib/node/constituentMap/webSocketConstituentAccountSubscriber.d.ts.map +1 -0
- package/lib/node/constituentMap/webSocketConstituentAccountSubscriber.js +58 -0
- package/lib/node/driftClient.d.ts +89 -2
- package/lib/node/driftClient.d.ts.map +1 -1
- package/lib/node/driftClient.js +497 -30
- package/lib/node/driftClientConfig.d.ts +2 -7
- package/lib/node/driftClientConfig.d.ts.map +1 -1
- package/lib/node/idl/drift.json +3513 -577
- package/lib/node/index.d.ts +1 -4
- package/lib/node/index.d.ts.map +1 -1
- package/lib/node/index.js +2 -9
- package/lib/node/memcmp.d.ts +3 -1
- package/lib/node/memcmp.d.ts.map +1 -1
- package/lib/node/memcmp.js +19 -1
- package/lib/node/types.d.ts +149 -0
- package/lib/node/types.d.ts.map +1 -1
- package/lib/node/types.js +13 -1
- package/package.json +1 -1
- package/src/accounts/types.ts +20 -0
- package/src/accounts/webSocketProgramAccountSubscriberV2.ts +596 -0
- package/src/addresses/pda.ts +115 -1
- package/src/adminClient.ts +1612 -41
- package/src/constituentMap/constituentMap.ts +285 -0
- package/src/constituentMap/pollingConstituentAccountSubscriber.ts +97 -0
- package/src/constituentMap/webSocketConstituentAccountSubscriber.ts +112 -0
- package/src/driftClient.ts +1114 -23
- package/src/driftClientConfig.ts +8 -15
- package/src/idl/drift.json +3513 -577
- package/src/index.ts +1 -4
- package/src/memcmp.ts +23 -1
- package/src/types.ts +162 -0
package/src/idl/drift.json
CHANGED
|
@@ -4285,6 +4285,11 @@
|
|
|
4285
4285
|
"isMut": true,
|
|
4286
4286
|
"isSigner": false
|
|
4287
4287
|
},
|
|
4288
|
+
{
|
|
4289
|
+
"name": "ammCache",
|
|
4290
|
+
"isMut": true,
|
|
4291
|
+
"isSigner": false
|
|
4292
|
+
},
|
|
4288
4293
|
{
|
|
4289
4294
|
"name": "oracle",
|
|
4290
4295
|
"isMut": false,
|
|
@@ -4410,9 +4415,65 @@
|
|
|
4410
4415
|
32
|
|
4411
4416
|
]
|
|
4412
4417
|
}
|
|
4418
|
+
},
|
|
4419
|
+
{
|
|
4420
|
+
"name": "lpPoolId",
|
|
4421
|
+
"type": "u8"
|
|
4413
4422
|
}
|
|
4414
4423
|
]
|
|
4415
4424
|
},
|
|
4425
|
+
{
|
|
4426
|
+
"name": "initializeAmmCache",
|
|
4427
|
+
"accounts": [
|
|
4428
|
+
{
|
|
4429
|
+
"name": "admin",
|
|
4430
|
+
"isMut": true,
|
|
4431
|
+
"isSigner": true
|
|
4432
|
+
},
|
|
4433
|
+
{
|
|
4434
|
+
"name": "state",
|
|
4435
|
+
"isMut": false,
|
|
4436
|
+
"isSigner": false
|
|
4437
|
+
},
|
|
4438
|
+
{
|
|
4439
|
+
"name": "ammCache",
|
|
4440
|
+
"isMut": true,
|
|
4441
|
+
"isSigner": false
|
|
4442
|
+
},
|
|
4443
|
+
{
|
|
4444
|
+
"name": "rent",
|
|
4445
|
+
"isMut": false,
|
|
4446
|
+
"isSigner": false
|
|
4447
|
+
},
|
|
4448
|
+
{
|
|
4449
|
+
"name": "systemProgram",
|
|
4450
|
+
"isMut": false,
|
|
4451
|
+
"isSigner": false
|
|
4452
|
+
}
|
|
4453
|
+
],
|
|
4454
|
+
"args": []
|
|
4455
|
+
},
|
|
4456
|
+
{
|
|
4457
|
+
"name": "updateInitialAmmCacheInfo",
|
|
4458
|
+
"accounts": [
|
|
4459
|
+
{
|
|
4460
|
+
"name": "state",
|
|
4461
|
+
"isMut": true,
|
|
4462
|
+
"isSigner": false
|
|
4463
|
+
},
|
|
4464
|
+
{
|
|
4465
|
+
"name": "admin",
|
|
4466
|
+
"isMut": false,
|
|
4467
|
+
"isSigner": true
|
|
4468
|
+
},
|
|
4469
|
+
{
|
|
4470
|
+
"name": "ammCache",
|
|
4471
|
+
"isMut": true,
|
|
4472
|
+
"isSigner": false
|
|
4473
|
+
}
|
|
4474
|
+
],
|
|
4475
|
+
"args": []
|
|
4476
|
+
},
|
|
4416
4477
|
{
|
|
4417
4478
|
"name": "initializePredictionMarket",
|
|
4418
4479
|
"accounts": [
|
|
@@ -4626,6 +4687,97 @@
|
|
|
4626
4687
|
}
|
|
4627
4688
|
]
|
|
4628
4689
|
},
|
|
4690
|
+
{
|
|
4691
|
+
"name": "updatePerpMarketLpPoolPausedOperations",
|
|
4692
|
+
"accounts": [
|
|
4693
|
+
{
|
|
4694
|
+
"name": "admin",
|
|
4695
|
+
"isMut": false,
|
|
4696
|
+
"isSigner": true
|
|
4697
|
+
},
|
|
4698
|
+
{
|
|
4699
|
+
"name": "state",
|
|
4700
|
+
"isMut": false,
|
|
4701
|
+
"isSigner": false
|
|
4702
|
+
},
|
|
4703
|
+
{
|
|
4704
|
+
"name": "perpMarket",
|
|
4705
|
+
"isMut": true,
|
|
4706
|
+
"isSigner": false
|
|
4707
|
+
}
|
|
4708
|
+
],
|
|
4709
|
+
"args": [
|
|
4710
|
+
{
|
|
4711
|
+
"name": "lpPausedOperations",
|
|
4712
|
+
"type": "u8"
|
|
4713
|
+
}
|
|
4714
|
+
]
|
|
4715
|
+
},
|
|
4716
|
+
{
|
|
4717
|
+
"name": "updatePerpMarketLpPoolStatus",
|
|
4718
|
+
"accounts": [
|
|
4719
|
+
{
|
|
4720
|
+
"name": "admin",
|
|
4721
|
+
"isMut": false,
|
|
4722
|
+
"isSigner": true
|
|
4723
|
+
},
|
|
4724
|
+
{
|
|
4725
|
+
"name": "state",
|
|
4726
|
+
"isMut": false,
|
|
4727
|
+
"isSigner": false
|
|
4728
|
+
},
|
|
4729
|
+
{
|
|
4730
|
+
"name": "perpMarket",
|
|
4731
|
+
"isMut": true,
|
|
4732
|
+
"isSigner": false
|
|
4733
|
+
},
|
|
4734
|
+
{
|
|
4735
|
+
"name": "ammCache",
|
|
4736
|
+
"isMut": true,
|
|
4737
|
+
"isSigner": false
|
|
4738
|
+
}
|
|
4739
|
+
],
|
|
4740
|
+
"args": [
|
|
4741
|
+
{
|
|
4742
|
+
"name": "lpStatus",
|
|
4743
|
+
"type": "u8"
|
|
4744
|
+
}
|
|
4745
|
+
]
|
|
4746
|
+
},
|
|
4747
|
+
{
|
|
4748
|
+
"name": "updatePerpMarketLpPoolFeeTransferScalar",
|
|
4749
|
+
"accounts": [
|
|
4750
|
+
{
|
|
4751
|
+
"name": "admin",
|
|
4752
|
+
"isMut": false,
|
|
4753
|
+
"isSigner": true
|
|
4754
|
+
},
|
|
4755
|
+
{
|
|
4756
|
+
"name": "state",
|
|
4757
|
+
"isMut": false,
|
|
4758
|
+
"isSigner": false
|
|
4759
|
+
},
|
|
4760
|
+
{
|
|
4761
|
+
"name": "perpMarket",
|
|
4762
|
+
"isMut": true,
|
|
4763
|
+
"isSigner": false
|
|
4764
|
+
}
|
|
4765
|
+
],
|
|
4766
|
+
"args": [
|
|
4767
|
+
{
|
|
4768
|
+
"name": "optionalLpFeeTransferScalar",
|
|
4769
|
+
"type": {
|
|
4770
|
+
"option": "u8"
|
|
4771
|
+
}
|
|
4772
|
+
},
|
|
4773
|
+
{
|
|
4774
|
+
"name": "optionalLpNetPnlTransferScalar",
|
|
4775
|
+
"type": {
|
|
4776
|
+
"option": "u8"
|
|
4777
|
+
}
|
|
4778
|
+
}
|
|
4779
|
+
]
|
|
4780
|
+
},
|
|
4629
4781
|
{
|
|
4630
4782
|
"name": "settleExpiredMarketPoolsToRevenuePool",
|
|
4631
4783
|
"accounts": [
|
|
@@ -5085,6 +5237,32 @@
|
|
|
5085
5237
|
}
|
|
5086
5238
|
]
|
|
5087
5239
|
},
|
|
5240
|
+
{
|
|
5241
|
+
"name": "updatePerpMarketLpPoolId",
|
|
5242
|
+
"accounts": [
|
|
5243
|
+
{
|
|
5244
|
+
"name": "admin",
|
|
5245
|
+
"isMut": false,
|
|
5246
|
+
"isSigner": true
|
|
5247
|
+
},
|
|
5248
|
+
{
|
|
5249
|
+
"name": "state",
|
|
5250
|
+
"isMut": false,
|
|
5251
|
+
"isSigner": false
|
|
5252
|
+
},
|
|
5253
|
+
{
|
|
5254
|
+
"name": "perpMarket",
|
|
5255
|
+
"isMut": true,
|
|
5256
|
+
"isSigner": false
|
|
5257
|
+
}
|
|
5258
|
+
],
|
|
5259
|
+
"args": [
|
|
5260
|
+
{
|
|
5261
|
+
"name": "lpPoolId",
|
|
5262
|
+
"type": "u8"
|
|
5263
|
+
}
|
|
5264
|
+
]
|
|
5265
|
+
},
|
|
5088
5266
|
{
|
|
5089
5267
|
"name": "updateInsuranceFundUnstakingPeriod",
|
|
5090
5268
|
"accounts": [
|
|
@@ -6143,6 +6321,11 @@
|
|
|
6143
6321
|
"name": "oldOracle",
|
|
6144
6322
|
"isMut": false,
|
|
6145
6323
|
"isSigner": false
|
|
6324
|
+
},
|
|
6325
|
+
{
|
|
6326
|
+
"name": "ammCache",
|
|
6327
|
+
"isMut": true,
|
|
6328
|
+
"isSigner": false
|
|
6146
6329
|
}
|
|
6147
6330
|
],
|
|
6148
6331
|
"args": [
|
|
@@ -7576,248 +7759,2162 @@
|
|
|
7576
7759
|
"type": "bool"
|
|
7577
7760
|
}
|
|
7578
7761
|
]
|
|
7579
|
-
}
|
|
7580
|
-
],
|
|
7581
|
-
"accounts": [
|
|
7582
|
-
{
|
|
7583
|
-
"name": "OpenbookV2FulfillmentConfig",
|
|
7584
|
-
"type": {
|
|
7585
|
-
"kind": "struct",
|
|
7586
|
-
"fields": [
|
|
7587
|
-
{
|
|
7588
|
-
"name": "pubkey",
|
|
7589
|
-
"type": "publicKey"
|
|
7590
|
-
},
|
|
7591
|
-
{
|
|
7592
|
-
"name": "openbookV2ProgramId",
|
|
7593
|
-
"type": "publicKey"
|
|
7594
|
-
},
|
|
7595
|
-
{
|
|
7596
|
-
"name": "openbookV2Market",
|
|
7597
|
-
"type": "publicKey"
|
|
7598
|
-
},
|
|
7599
|
-
{
|
|
7600
|
-
"name": "openbookV2MarketAuthority",
|
|
7601
|
-
"type": "publicKey"
|
|
7602
|
-
},
|
|
7603
|
-
{
|
|
7604
|
-
"name": "openbookV2EventHeap",
|
|
7605
|
-
"type": "publicKey"
|
|
7606
|
-
},
|
|
7607
|
-
{
|
|
7608
|
-
"name": "openbookV2Bids",
|
|
7609
|
-
"type": "publicKey"
|
|
7610
|
-
},
|
|
7611
|
-
{
|
|
7612
|
-
"name": "openbookV2Asks",
|
|
7613
|
-
"type": "publicKey"
|
|
7614
|
-
},
|
|
7615
|
-
{
|
|
7616
|
-
"name": "openbookV2BaseVault",
|
|
7617
|
-
"type": "publicKey"
|
|
7618
|
-
},
|
|
7619
|
-
{
|
|
7620
|
-
"name": "openbookV2QuoteVault",
|
|
7621
|
-
"type": "publicKey"
|
|
7622
|
-
},
|
|
7623
|
-
{
|
|
7624
|
-
"name": "marketIndex",
|
|
7625
|
-
"type": "u16"
|
|
7626
|
-
},
|
|
7627
|
-
{
|
|
7628
|
-
"name": "fulfillmentType",
|
|
7629
|
-
"type": {
|
|
7630
|
-
"defined": "SpotFulfillmentType"
|
|
7631
|
-
}
|
|
7632
|
-
},
|
|
7633
|
-
{
|
|
7634
|
-
"name": "status",
|
|
7635
|
-
"type": {
|
|
7636
|
-
"defined": "SpotFulfillmentConfigStatus"
|
|
7637
|
-
}
|
|
7638
|
-
},
|
|
7639
|
-
{
|
|
7640
|
-
"name": "padding",
|
|
7641
|
-
"type": {
|
|
7642
|
-
"array": [
|
|
7643
|
-
"u8",
|
|
7644
|
-
4
|
|
7645
|
-
]
|
|
7646
|
-
}
|
|
7647
|
-
}
|
|
7648
|
-
]
|
|
7649
|
-
}
|
|
7650
7762
|
},
|
|
7651
7763
|
{
|
|
7652
|
-
"name": "
|
|
7653
|
-
"
|
|
7654
|
-
|
|
7655
|
-
|
|
7656
|
-
|
|
7657
|
-
|
|
7658
|
-
|
|
7659
|
-
|
|
7660
|
-
|
|
7661
|
-
|
|
7662
|
-
|
|
7663
|
-
|
|
7664
|
-
|
|
7665
|
-
|
|
7666
|
-
|
|
7667
|
-
|
|
7668
|
-
|
|
7669
|
-
|
|
7670
|
-
|
|
7764
|
+
"name": "initializeLpPool",
|
|
7765
|
+
"accounts": [
|
|
7766
|
+
{
|
|
7767
|
+
"name": "admin",
|
|
7768
|
+
"isMut": true,
|
|
7769
|
+
"isSigner": true
|
|
7770
|
+
},
|
|
7771
|
+
{
|
|
7772
|
+
"name": "lpPool",
|
|
7773
|
+
"isMut": true,
|
|
7774
|
+
"isSigner": false
|
|
7775
|
+
},
|
|
7776
|
+
{
|
|
7777
|
+
"name": "mint",
|
|
7778
|
+
"isMut": false,
|
|
7779
|
+
"isSigner": false
|
|
7780
|
+
},
|
|
7781
|
+
{
|
|
7782
|
+
"name": "lpPoolTokenVault",
|
|
7783
|
+
"isMut": true,
|
|
7784
|
+
"isSigner": false
|
|
7785
|
+
},
|
|
7786
|
+
{
|
|
7787
|
+
"name": "ammConstituentMapping",
|
|
7788
|
+
"isMut": true,
|
|
7789
|
+
"isSigner": false
|
|
7790
|
+
},
|
|
7791
|
+
{
|
|
7792
|
+
"name": "constituentTargetBase",
|
|
7793
|
+
"isMut": true,
|
|
7794
|
+
"isSigner": false
|
|
7795
|
+
},
|
|
7796
|
+
{
|
|
7797
|
+
"name": "constituentCorrelations",
|
|
7798
|
+
"isMut": true,
|
|
7799
|
+
"isSigner": false
|
|
7800
|
+
},
|
|
7801
|
+
{
|
|
7802
|
+
"name": "state",
|
|
7803
|
+
"isMut": false,
|
|
7804
|
+
"isSigner": false
|
|
7805
|
+
},
|
|
7806
|
+
{
|
|
7807
|
+
"name": "tokenProgram",
|
|
7808
|
+
"isMut": false,
|
|
7809
|
+
"isSigner": false
|
|
7810
|
+
},
|
|
7811
|
+
{
|
|
7812
|
+
"name": "rent",
|
|
7813
|
+
"isMut": false,
|
|
7814
|
+
"isSigner": false
|
|
7815
|
+
},
|
|
7816
|
+
{
|
|
7817
|
+
"name": "systemProgram",
|
|
7818
|
+
"isMut": false,
|
|
7819
|
+
"isSigner": false
|
|
7820
|
+
}
|
|
7821
|
+
],
|
|
7822
|
+
"args": [
|
|
7823
|
+
{
|
|
7824
|
+
"name": "lpPoolId",
|
|
7825
|
+
"type": "u8"
|
|
7826
|
+
},
|
|
7827
|
+
{
|
|
7828
|
+
"name": "minMintFee",
|
|
7829
|
+
"type": "i64"
|
|
7830
|
+
},
|
|
7831
|
+
{
|
|
7832
|
+
"name": "maxAum",
|
|
7833
|
+
"type": "u128"
|
|
7834
|
+
},
|
|
7835
|
+
{
|
|
7836
|
+
"name": "maxSettleQuoteAmountPerMarket",
|
|
7837
|
+
"type": "u64"
|
|
7838
|
+
},
|
|
7839
|
+
{
|
|
7840
|
+
"name": "whitelistMint",
|
|
7841
|
+
"type": "publicKey"
|
|
7842
|
+
}
|
|
7843
|
+
]
|
|
7844
|
+
},
|
|
7845
|
+
{
|
|
7846
|
+
"name": "updateFeatureBitFlagsSettleLpPool",
|
|
7847
|
+
"accounts": [
|
|
7848
|
+
{
|
|
7849
|
+
"name": "admin",
|
|
7850
|
+
"isMut": false,
|
|
7851
|
+
"isSigner": true
|
|
7852
|
+
},
|
|
7853
|
+
{
|
|
7854
|
+
"name": "state",
|
|
7855
|
+
"isMut": true,
|
|
7856
|
+
"isSigner": false
|
|
7857
|
+
}
|
|
7858
|
+
],
|
|
7859
|
+
"args": [
|
|
7860
|
+
{
|
|
7861
|
+
"name": "enable",
|
|
7862
|
+
"type": "bool"
|
|
7863
|
+
}
|
|
7864
|
+
]
|
|
7865
|
+
},
|
|
7866
|
+
{
|
|
7867
|
+
"name": "updateFeatureBitFlagsSwapLpPool",
|
|
7868
|
+
"accounts": [
|
|
7869
|
+
{
|
|
7870
|
+
"name": "admin",
|
|
7871
|
+
"isMut": false,
|
|
7872
|
+
"isSigner": true
|
|
7873
|
+
},
|
|
7874
|
+
{
|
|
7875
|
+
"name": "state",
|
|
7876
|
+
"isMut": true,
|
|
7877
|
+
"isSigner": false
|
|
7878
|
+
}
|
|
7879
|
+
],
|
|
7880
|
+
"args": [
|
|
7881
|
+
{
|
|
7882
|
+
"name": "enable",
|
|
7883
|
+
"type": "bool"
|
|
7884
|
+
}
|
|
7885
|
+
]
|
|
7886
|
+
},
|
|
7887
|
+
{
|
|
7888
|
+
"name": "updateFeatureBitFlagsMintRedeemLpPool",
|
|
7889
|
+
"accounts": [
|
|
7890
|
+
{
|
|
7891
|
+
"name": "admin",
|
|
7892
|
+
"isMut": false,
|
|
7893
|
+
"isSigner": true
|
|
7894
|
+
},
|
|
7895
|
+
{
|
|
7896
|
+
"name": "state",
|
|
7897
|
+
"isMut": true,
|
|
7898
|
+
"isSigner": false
|
|
7899
|
+
}
|
|
7900
|
+
],
|
|
7901
|
+
"args": [
|
|
7902
|
+
{
|
|
7903
|
+
"name": "enable",
|
|
7904
|
+
"type": "bool"
|
|
7905
|
+
}
|
|
7906
|
+
]
|
|
7907
|
+
},
|
|
7908
|
+
{
|
|
7909
|
+
"name": "initializeConstituent",
|
|
7910
|
+
"accounts": [
|
|
7911
|
+
{
|
|
7912
|
+
"name": "state",
|
|
7913
|
+
"isMut": false,
|
|
7914
|
+
"isSigner": false
|
|
7915
|
+
},
|
|
7916
|
+
{
|
|
7917
|
+
"name": "admin",
|
|
7918
|
+
"isMut": true,
|
|
7919
|
+
"isSigner": true
|
|
7920
|
+
},
|
|
7921
|
+
{
|
|
7922
|
+
"name": "lpPool",
|
|
7923
|
+
"isMut": true,
|
|
7924
|
+
"isSigner": false
|
|
7925
|
+
},
|
|
7926
|
+
{
|
|
7927
|
+
"name": "constituentTargetBase",
|
|
7928
|
+
"isMut": true,
|
|
7929
|
+
"isSigner": false
|
|
7930
|
+
},
|
|
7931
|
+
{
|
|
7932
|
+
"name": "constituentCorrelations",
|
|
7933
|
+
"isMut": true,
|
|
7934
|
+
"isSigner": false
|
|
7935
|
+
},
|
|
7936
|
+
{
|
|
7937
|
+
"name": "constituent",
|
|
7938
|
+
"isMut": true,
|
|
7939
|
+
"isSigner": false
|
|
7940
|
+
},
|
|
7941
|
+
{
|
|
7942
|
+
"name": "spotMarket",
|
|
7943
|
+
"isMut": false,
|
|
7944
|
+
"isSigner": false
|
|
7945
|
+
},
|
|
7946
|
+
{
|
|
7947
|
+
"name": "spotMarketMint",
|
|
7948
|
+
"isMut": false,
|
|
7949
|
+
"isSigner": false
|
|
7950
|
+
},
|
|
7951
|
+
{
|
|
7952
|
+
"name": "constituentVault",
|
|
7953
|
+
"isMut": true,
|
|
7954
|
+
"isSigner": false
|
|
7955
|
+
},
|
|
7956
|
+
{
|
|
7957
|
+
"name": "rent",
|
|
7958
|
+
"isMut": false,
|
|
7959
|
+
"isSigner": false
|
|
7960
|
+
},
|
|
7961
|
+
{
|
|
7962
|
+
"name": "systemProgram",
|
|
7963
|
+
"isMut": false,
|
|
7964
|
+
"isSigner": false
|
|
7965
|
+
},
|
|
7966
|
+
{
|
|
7967
|
+
"name": "tokenProgram",
|
|
7968
|
+
"isMut": false,
|
|
7969
|
+
"isSigner": false
|
|
7970
|
+
}
|
|
7971
|
+
],
|
|
7972
|
+
"args": [
|
|
7973
|
+
{
|
|
7974
|
+
"name": "spotMarketIndex",
|
|
7975
|
+
"type": "u16"
|
|
7976
|
+
},
|
|
7977
|
+
{
|
|
7978
|
+
"name": "decimals",
|
|
7979
|
+
"type": "u8"
|
|
7980
|
+
},
|
|
7981
|
+
{
|
|
7982
|
+
"name": "maxWeightDeviation",
|
|
7983
|
+
"type": "i64"
|
|
7984
|
+
},
|
|
7985
|
+
{
|
|
7986
|
+
"name": "swapFeeMin",
|
|
7987
|
+
"type": "i64"
|
|
7988
|
+
},
|
|
7989
|
+
{
|
|
7990
|
+
"name": "swapFeeMax",
|
|
7991
|
+
"type": "i64"
|
|
7992
|
+
},
|
|
7993
|
+
{
|
|
7994
|
+
"name": "maxBorrowTokenAmount",
|
|
7995
|
+
"type": "u64"
|
|
7996
|
+
},
|
|
7997
|
+
{
|
|
7998
|
+
"name": "oracleStalenessThreshold",
|
|
7999
|
+
"type": "u64"
|
|
8000
|
+
},
|
|
8001
|
+
{
|
|
8002
|
+
"name": "costToTrade",
|
|
8003
|
+
"type": "i32"
|
|
8004
|
+
},
|
|
8005
|
+
{
|
|
8006
|
+
"name": "constituentDerivativeIndex",
|
|
8007
|
+
"type": {
|
|
8008
|
+
"option": "i16"
|
|
8009
|
+
}
|
|
8010
|
+
},
|
|
8011
|
+
{
|
|
8012
|
+
"name": "constituentDerivativeDepegThreshold",
|
|
8013
|
+
"type": "u64"
|
|
8014
|
+
},
|
|
8015
|
+
{
|
|
8016
|
+
"name": "derivativeWeight",
|
|
8017
|
+
"type": "u64"
|
|
8018
|
+
},
|
|
8019
|
+
{
|
|
8020
|
+
"name": "volatility",
|
|
8021
|
+
"type": "u64"
|
|
8022
|
+
},
|
|
8023
|
+
{
|
|
8024
|
+
"name": "gammaExecution",
|
|
8025
|
+
"type": "u8"
|
|
8026
|
+
},
|
|
8027
|
+
{
|
|
8028
|
+
"name": "gammaInventory",
|
|
8029
|
+
"type": "u8"
|
|
8030
|
+
},
|
|
8031
|
+
{
|
|
8032
|
+
"name": "xi",
|
|
8033
|
+
"type": "u8"
|
|
8034
|
+
},
|
|
8035
|
+
{
|
|
8036
|
+
"name": "newConstituentCorrelations",
|
|
8037
|
+
"type": {
|
|
8038
|
+
"vec": "i64"
|
|
8039
|
+
}
|
|
8040
|
+
}
|
|
8041
|
+
]
|
|
8042
|
+
},
|
|
8043
|
+
{
|
|
8044
|
+
"name": "updateConstituentStatus",
|
|
8045
|
+
"accounts": [
|
|
8046
|
+
{
|
|
8047
|
+
"name": "admin",
|
|
8048
|
+
"isMut": true,
|
|
8049
|
+
"isSigner": true
|
|
8050
|
+
},
|
|
8051
|
+
{
|
|
8052
|
+
"name": "state",
|
|
8053
|
+
"isMut": false,
|
|
8054
|
+
"isSigner": false
|
|
8055
|
+
},
|
|
8056
|
+
{
|
|
8057
|
+
"name": "constituent",
|
|
8058
|
+
"isMut": true,
|
|
8059
|
+
"isSigner": false
|
|
8060
|
+
}
|
|
8061
|
+
],
|
|
8062
|
+
"args": [
|
|
8063
|
+
{
|
|
8064
|
+
"name": "newStatus",
|
|
8065
|
+
"type": "u8"
|
|
8066
|
+
}
|
|
8067
|
+
]
|
|
8068
|
+
},
|
|
8069
|
+
{
|
|
8070
|
+
"name": "updateConstituentPausedOperations",
|
|
8071
|
+
"accounts": [
|
|
8072
|
+
{
|
|
8073
|
+
"name": "admin",
|
|
8074
|
+
"isMut": true,
|
|
8075
|
+
"isSigner": true
|
|
8076
|
+
},
|
|
8077
|
+
{
|
|
8078
|
+
"name": "state",
|
|
8079
|
+
"isMut": false,
|
|
8080
|
+
"isSigner": false
|
|
8081
|
+
},
|
|
8082
|
+
{
|
|
8083
|
+
"name": "constituent",
|
|
8084
|
+
"isMut": true,
|
|
8085
|
+
"isSigner": false
|
|
8086
|
+
}
|
|
8087
|
+
],
|
|
8088
|
+
"args": [
|
|
8089
|
+
{
|
|
8090
|
+
"name": "pausedOperations",
|
|
8091
|
+
"type": "u8"
|
|
8092
|
+
}
|
|
8093
|
+
]
|
|
8094
|
+
},
|
|
8095
|
+
{
|
|
8096
|
+
"name": "updateConstituentParams",
|
|
8097
|
+
"accounts": [
|
|
8098
|
+
{
|
|
8099
|
+
"name": "lpPool",
|
|
8100
|
+
"isMut": false,
|
|
8101
|
+
"isSigner": false
|
|
8102
|
+
},
|
|
8103
|
+
{
|
|
8104
|
+
"name": "constituentTargetBase",
|
|
8105
|
+
"isMut": true,
|
|
8106
|
+
"isSigner": false
|
|
8107
|
+
},
|
|
8108
|
+
{
|
|
8109
|
+
"name": "admin",
|
|
8110
|
+
"isMut": true,
|
|
8111
|
+
"isSigner": true
|
|
8112
|
+
},
|
|
8113
|
+
{
|
|
8114
|
+
"name": "state",
|
|
8115
|
+
"isMut": false,
|
|
8116
|
+
"isSigner": false
|
|
8117
|
+
},
|
|
8118
|
+
{
|
|
8119
|
+
"name": "constituent",
|
|
8120
|
+
"isMut": true,
|
|
8121
|
+
"isSigner": false
|
|
8122
|
+
}
|
|
8123
|
+
],
|
|
8124
|
+
"args": [
|
|
8125
|
+
{
|
|
8126
|
+
"name": "constituentParams",
|
|
8127
|
+
"type": {
|
|
8128
|
+
"defined": "ConstituentParams"
|
|
8129
|
+
}
|
|
8130
|
+
}
|
|
8131
|
+
]
|
|
8132
|
+
},
|
|
8133
|
+
{
|
|
8134
|
+
"name": "updateLpPoolParams",
|
|
8135
|
+
"accounts": [
|
|
8136
|
+
{
|
|
8137
|
+
"name": "lpPool",
|
|
8138
|
+
"isMut": true,
|
|
8139
|
+
"isSigner": false
|
|
8140
|
+
},
|
|
8141
|
+
{
|
|
8142
|
+
"name": "admin",
|
|
8143
|
+
"isMut": true,
|
|
8144
|
+
"isSigner": true
|
|
8145
|
+
},
|
|
8146
|
+
{
|
|
8147
|
+
"name": "state",
|
|
8148
|
+
"isMut": false,
|
|
8149
|
+
"isSigner": false
|
|
8150
|
+
}
|
|
8151
|
+
],
|
|
8152
|
+
"args": [
|
|
8153
|
+
{
|
|
8154
|
+
"name": "lpPoolParams",
|
|
8155
|
+
"type": {
|
|
8156
|
+
"defined": "LpPoolParams"
|
|
8157
|
+
}
|
|
8158
|
+
}
|
|
8159
|
+
]
|
|
8160
|
+
},
|
|
8161
|
+
{
|
|
8162
|
+
"name": "addAmmConstituentMappingData",
|
|
8163
|
+
"accounts": [
|
|
8164
|
+
{
|
|
8165
|
+
"name": "admin",
|
|
8166
|
+
"isMut": true,
|
|
8167
|
+
"isSigner": true
|
|
8168
|
+
},
|
|
8169
|
+
{
|
|
8170
|
+
"name": "lpPool",
|
|
8171
|
+
"isMut": false,
|
|
8172
|
+
"isSigner": false
|
|
8173
|
+
},
|
|
8174
|
+
{
|
|
8175
|
+
"name": "ammConstituentMapping",
|
|
8176
|
+
"isMut": true,
|
|
8177
|
+
"isSigner": false
|
|
8178
|
+
},
|
|
8179
|
+
{
|
|
8180
|
+
"name": "constituentTargetBase",
|
|
8181
|
+
"isMut": true,
|
|
8182
|
+
"isSigner": false
|
|
8183
|
+
},
|
|
8184
|
+
{
|
|
8185
|
+
"name": "state",
|
|
8186
|
+
"isMut": false,
|
|
8187
|
+
"isSigner": false
|
|
8188
|
+
},
|
|
8189
|
+
{
|
|
8190
|
+
"name": "systemProgram",
|
|
8191
|
+
"isMut": false,
|
|
8192
|
+
"isSigner": false
|
|
8193
|
+
}
|
|
8194
|
+
],
|
|
8195
|
+
"args": [
|
|
8196
|
+
{
|
|
8197
|
+
"name": "ammConstituentMappingData",
|
|
8198
|
+
"type": {
|
|
8199
|
+
"vec": {
|
|
8200
|
+
"defined": "AddAmmConstituentMappingDatum"
|
|
8201
|
+
}
|
|
8202
|
+
}
|
|
8203
|
+
}
|
|
8204
|
+
]
|
|
8205
|
+
},
|
|
8206
|
+
{
|
|
8207
|
+
"name": "updateAmmConstituentMappingData",
|
|
8208
|
+
"accounts": [
|
|
8209
|
+
{
|
|
8210
|
+
"name": "admin",
|
|
8211
|
+
"isMut": true,
|
|
8212
|
+
"isSigner": true
|
|
8213
|
+
},
|
|
8214
|
+
{
|
|
8215
|
+
"name": "lpPool",
|
|
8216
|
+
"isMut": false,
|
|
8217
|
+
"isSigner": false
|
|
8218
|
+
},
|
|
8219
|
+
{
|
|
8220
|
+
"name": "ammConstituentMapping",
|
|
8221
|
+
"isMut": true,
|
|
8222
|
+
"isSigner": false
|
|
8223
|
+
},
|
|
8224
|
+
{
|
|
8225
|
+
"name": "systemProgram",
|
|
8226
|
+
"isMut": false,
|
|
8227
|
+
"isSigner": false
|
|
8228
|
+
},
|
|
8229
|
+
{
|
|
8230
|
+
"name": "state",
|
|
8231
|
+
"isMut": false,
|
|
8232
|
+
"isSigner": false
|
|
8233
|
+
}
|
|
8234
|
+
],
|
|
8235
|
+
"args": [
|
|
8236
|
+
{
|
|
8237
|
+
"name": "ammConstituentMappingData",
|
|
8238
|
+
"type": {
|
|
8239
|
+
"vec": {
|
|
8240
|
+
"defined": "AddAmmConstituentMappingDatum"
|
|
8241
|
+
}
|
|
8242
|
+
}
|
|
8243
|
+
}
|
|
8244
|
+
]
|
|
8245
|
+
},
|
|
8246
|
+
{
|
|
8247
|
+
"name": "removeAmmConstituentMappingData",
|
|
8248
|
+
"accounts": [
|
|
8249
|
+
{
|
|
8250
|
+
"name": "admin",
|
|
8251
|
+
"isMut": true,
|
|
8252
|
+
"isSigner": true
|
|
8253
|
+
},
|
|
8254
|
+
{
|
|
8255
|
+
"name": "lpPool",
|
|
8256
|
+
"isMut": false,
|
|
8257
|
+
"isSigner": false
|
|
8258
|
+
},
|
|
8259
|
+
{
|
|
8260
|
+
"name": "ammConstituentMapping",
|
|
8261
|
+
"isMut": true,
|
|
8262
|
+
"isSigner": false
|
|
8263
|
+
},
|
|
8264
|
+
{
|
|
8265
|
+
"name": "systemProgram",
|
|
8266
|
+
"isMut": false,
|
|
8267
|
+
"isSigner": false
|
|
8268
|
+
},
|
|
8269
|
+
{
|
|
8270
|
+
"name": "state",
|
|
8271
|
+
"isMut": false,
|
|
8272
|
+
"isSigner": false
|
|
8273
|
+
}
|
|
8274
|
+
],
|
|
8275
|
+
"args": [
|
|
8276
|
+
{
|
|
8277
|
+
"name": "perpMarketIndex",
|
|
8278
|
+
"type": "u16"
|
|
8279
|
+
},
|
|
8280
|
+
{
|
|
8281
|
+
"name": "constituentIndex",
|
|
8282
|
+
"type": "u16"
|
|
8283
|
+
}
|
|
8284
|
+
]
|
|
8285
|
+
},
|
|
8286
|
+
{
|
|
8287
|
+
"name": "updateConstituentCorrelationData",
|
|
8288
|
+
"accounts": [
|
|
8289
|
+
{
|
|
8290
|
+
"name": "admin",
|
|
8291
|
+
"isMut": true,
|
|
8292
|
+
"isSigner": true
|
|
8293
|
+
},
|
|
8294
|
+
{
|
|
8295
|
+
"name": "lpPool",
|
|
8296
|
+
"isMut": false,
|
|
8297
|
+
"isSigner": false
|
|
8298
|
+
},
|
|
8299
|
+
{
|
|
8300
|
+
"name": "constituentCorrelations",
|
|
8301
|
+
"isMut": true,
|
|
8302
|
+
"isSigner": false
|
|
8303
|
+
},
|
|
8304
|
+
{
|
|
8305
|
+
"name": "state",
|
|
8306
|
+
"isMut": false,
|
|
8307
|
+
"isSigner": false
|
|
8308
|
+
}
|
|
8309
|
+
],
|
|
8310
|
+
"args": [
|
|
8311
|
+
{
|
|
8312
|
+
"name": "index1",
|
|
8313
|
+
"type": "u16"
|
|
8314
|
+
},
|
|
8315
|
+
{
|
|
8316
|
+
"name": "index2",
|
|
8317
|
+
"type": "u16"
|
|
8318
|
+
},
|
|
8319
|
+
{
|
|
8320
|
+
"name": "correlation",
|
|
8321
|
+
"type": "i64"
|
|
8322
|
+
}
|
|
8323
|
+
]
|
|
8324
|
+
},
|
|
8325
|
+
{
|
|
8326
|
+
"name": "updateLpConstituentTargetBase",
|
|
8327
|
+
"accounts": [
|
|
8328
|
+
{
|
|
8329
|
+
"name": "state",
|
|
8330
|
+
"isMut": false,
|
|
8331
|
+
"isSigner": false
|
|
8332
|
+
},
|
|
8333
|
+
{
|
|
8334
|
+
"name": "keeper",
|
|
8335
|
+
"isMut": true,
|
|
8336
|
+
"isSigner": true
|
|
8337
|
+
},
|
|
8338
|
+
{
|
|
8339
|
+
"name": "ammConstituentMapping",
|
|
8340
|
+
"isMut": false,
|
|
8341
|
+
"isSigner": false
|
|
8342
|
+
},
|
|
8343
|
+
{
|
|
8344
|
+
"name": "constituentTargetBase",
|
|
8345
|
+
"isMut": true,
|
|
8346
|
+
"isSigner": false
|
|
8347
|
+
},
|
|
8348
|
+
{
|
|
8349
|
+
"name": "ammCache",
|
|
8350
|
+
"isMut": false,
|
|
8351
|
+
"isSigner": false
|
|
8352
|
+
},
|
|
8353
|
+
{
|
|
8354
|
+
"name": "lpPool",
|
|
8355
|
+
"isMut": false,
|
|
8356
|
+
"isSigner": false
|
|
8357
|
+
}
|
|
8358
|
+
],
|
|
8359
|
+
"args": []
|
|
8360
|
+
},
|
|
8361
|
+
{
|
|
8362
|
+
"name": "updateLpPoolAum",
|
|
8363
|
+
"accounts": [
|
|
8364
|
+
{
|
|
8365
|
+
"name": "state",
|
|
8366
|
+
"isMut": false,
|
|
8367
|
+
"isSigner": false
|
|
8368
|
+
},
|
|
8369
|
+
{
|
|
8370
|
+
"name": "keeper",
|
|
8371
|
+
"isMut": true,
|
|
8372
|
+
"isSigner": true
|
|
8373
|
+
},
|
|
8374
|
+
{
|
|
8375
|
+
"name": "lpPool",
|
|
8376
|
+
"isMut": true,
|
|
8377
|
+
"isSigner": false
|
|
8378
|
+
},
|
|
8379
|
+
{
|
|
8380
|
+
"name": "constituentTargetBase",
|
|
8381
|
+
"isMut": true,
|
|
8382
|
+
"isSigner": false
|
|
8383
|
+
},
|
|
8384
|
+
{
|
|
8385
|
+
"name": "ammCache",
|
|
8386
|
+
"isMut": true,
|
|
8387
|
+
"isSigner": false
|
|
8388
|
+
}
|
|
8389
|
+
],
|
|
8390
|
+
"args": []
|
|
8391
|
+
},
|
|
8392
|
+
{
|
|
8393
|
+
"name": "updateAmmCache",
|
|
8394
|
+
"accounts": [
|
|
8395
|
+
{
|
|
8396
|
+
"name": "keeper",
|
|
8397
|
+
"isMut": true,
|
|
8398
|
+
"isSigner": true
|
|
8399
|
+
},
|
|
8400
|
+
{
|
|
8401
|
+
"name": "state",
|
|
8402
|
+
"isMut": false,
|
|
8403
|
+
"isSigner": false
|
|
8404
|
+
},
|
|
8405
|
+
{
|
|
8406
|
+
"name": "ammCache",
|
|
8407
|
+
"isMut": true,
|
|
8408
|
+
"isSigner": false
|
|
8409
|
+
},
|
|
8410
|
+
{
|
|
8411
|
+
"name": "quoteMarket",
|
|
8412
|
+
"isMut": false,
|
|
8413
|
+
"isSigner": false
|
|
8414
|
+
}
|
|
8415
|
+
],
|
|
8416
|
+
"args": []
|
|
8417
|
+
},
|
|
8418
|
+
{
|
|
8419
|
+
"name": "overrideAmmCacheInfo",
|
|
8420
|
+
"accounts": [
|
|
8421
|
+
{
|
|
8422
|
+
"name": "state",
|
|
8423
|
+
"isMut": true,
|
|
8424
|
+
"isSigner": false
|
|
8425
|
+
},
|
|
8426
|
+
{
|
|
8427
|
+
"name": "admin",
|
|
8428
|
+
"isMut": false,
|
|
8429
|
+
"isSigner": true
|
|
8430
|
+
},
|
|
8431
|
+
{
|
|
8432
|
+
"name": "ammCache",
|
|
8433
|
+
"isMut": true,
|
|
8434
|
+
"isSigner": false
|
|
8435
|
+
}
|
|
8436
|
+
],
|
|
8437
|
+
"args": [
|
|
8438
|
+
{
|
|
8439
|
+
"name": "marketIndex",
|
|
8440
|
+
"type": "u16"
|
|
8441
|
+
},
|
|
8442
|
+
{
|
|
8443
|
+
"name": "overrideParams",
|
|
8444
|
+
"type": {
|
|
8445
|
+
"defined": "OverrideAmmCacheParams"
|
|
8446
|
+
}
|
|
8447
|
+
}
|
|
8448
|
+
]
|
|
8449
|
+
},
|
|
8450
|
+
{
|
|
8451
|
+
"name": "resetAmmCache",
|
|
8452
|
+
"accounts": [
|
|
8453
|
+
{
|
|
8454
|
+
"name": "admin",
|
|
8455
|
+
"isMut": true,
|
|
8456
|
+
"isSigner": true
|
|
8457
|
+
},
|
|
8458
|
+
{
|
|
8459
|
+
"name": "state",
|
|
8460
|
+
"isMut": false,
|
|
8461
|
+
"isSigner": false
|
|
8462
|
+
},
|
|
8463
|
+
{
|
|
8464
|
+
"name": "ammCache",
|
|
8465
|
+
"isMut": true,
|
|
8466
|
+
"isSigner": false
|
|
8467
|
+
},
|
|
8468
|
+
{
|
|
8469
|
+
"name": "systemProgram",
|
|
8470
|
+
"isMut": false,
|
|
8471
|
+
"isSigner": false
|
|
8472
|
+
}
|
|
8473
|
+
],
|
|
8474
|
+
"args": []
|
|
8475
|
+
},
|
|
8476
|
+
{
|
|
8477
|
+
"name": "lpPoolSwap",
|
|
8478
|
+
"accounts": [
|
|
8479
|
+
{
|
|
8480
|
+
"name": "state",
|
|
8481
|
+
"isMut": false,
|
|
8482
|
+
"isSigner": false
|
|
8483
|
+
},
|
|
8484
|
+
{
|
|
8485
|
+
"name": "lpPool",
|
|
8486
|
+
"isMut": false,
|
|
8487
|
+
"isSigner": false
|
|
8488
|
+
},
|
|
8489
|
+
{
|
|
8490
|
+
"name": "constituentTargetBase",
|
|
8491
|
+
"isMut": false,
|
|
8492
|
+
"isSigner": false
|
|
8493
|
+
},
|
|
8494
|
+
{
|
|
8495
|
+
"name": "constituentCorrelations",
|
|
8496
|
+
"isMut": false,
|
|
8497
|
+
"isSigner": false
|
|
8498
|
+
},
|
|
8499
|
+
{
|
|
8500
|
+
"name": "constituentInTokenAccount",
|
|
8501
|
+
"isMut": true,
|
|
8502
|
+
"isSigner": false
|
|
8503
|
+
},
|
|
8504
|
+
{
|
|
8505
|
+
"name": "constituentOutTokenAccount",
|
|
8506
|
+
"isMut": true,
|
|
8507
|
+
"isSigner": false
|
|
8508
|
+
},
|
|
8509
|
+
{
|
|
8510
|
+
"name": "userInTokenAccount",
|
|
8511
|
+
"isMut": true,
|
|
8512
|
+
"isSigner": false
|
|
8513
|
+
},
|
|
8514
|
+
{
|
|
8515
|
+
"name": "userOutTokenAccount",
|
|
8516
|
+
"isMut": true,
|
|
8517
|
+
"isSigner": false
|
|
8518
|
+
},
|
|
8519
|
+
{
|
|
8520
|
+
"name": "inConstituent",
|
|
8521
|
+
"isMut": true,
|
|
8522
|
+
"isSigner": false
|
|
8523
|
+
},
|
|
8524
|
+
{
|
|
8525
|
+
"name": "outConstituent",
|
|
8526
|
+
"isMut": true,
|
|
8527
|
+
"isSigner": false
|
|
8528
|
+
},
|
|
8529
|
+
{
|
|
8530
|
+
"name": "inMarketMint",
|
|
8531
|
+
"isMut": false,
|
|
8532
|
+
"isSigner": false
|
|
8533
|
+
},
|
|
8534
|
+
{
|
|
8535
|
+
"name": "outMarketMint",
|
|
8536
|
+
"isMut": false,
|
|
8537
|
+
"isSigner": false
|
|
8538
|
+
},
|
|
8539
|
+
{
|
|
8540
|
+
"name": "authority",
|
|
8541
|
+
"isMut": false,
|
|
8542
|
+
"isSigner": true
|
|
8543
|
+
},
|
|
8544
|
+
{
|
|
8545
|
+
"name": "tokenProgram",
|
|
8546
|
+
"isMut": false,
|
|
8547
|
+
"isSigner": false
|
|
8548
|
+
}
|
|
8549
|
+
],
|
|
8550
|
+
"args": [
|
|
8551
|
+
{
|
|
8552
|
+
"name": "inMarketIndex",
|
|
8553
|
+
"type": "u16"
|
|
8554
|
+
},
|
|
8555
|
+
{
|
|
8556
|
+
"name": "outMarketIndex",
|
|
8557
|
+
"type": "u16"
|
|
8558
|
+
},
|
|
8559
|
+
{
|
|
8560
|
+
"name": "inAmount",
|
|
8561
|
+
"type": "u64"
|
|
8562
|
+
},
|
|
8563
|
+
{
|
|
8564
|
+
"name": "minOutAmount",
|
|
8565
|
+
"type": "u64"
|
|
8566
|
+
}
|
|
8567
|
+
]
|
|
8568
|
+
},
|
|
8569
|
+
{
|
|
8570
|
+
"name": "viewLpPoolSwapFees",
|
|
8571
|
+
"accounts": [
|
|
8572
|
+
{
|
|
8573
|
+
"name": "driftSigner",
|
|
8574
|
+
"isMut": false,
|
|
8575
|
+
"isSigner": false
|
|
8576
|
+
},
|
|
8577
|
+
{
|
|
8578
|
+
"name": "state",
|
|
8579
|
+
"isMut": false,
|
|
8580
|
+
"isSigner": false
|
|
8581
|
+
},
|
|
8582
|
+
{
|
|
8583
|
+
"name": "lpPool",
|
|
8584
|
+
"isMut": false,
|
|
8585
|
+
"isSigner": false
|
|
8586
|
+
},
|
|
8587
|
+
{
|
|
8588
|
+
"name": "constituentTargetBase",
|
|
8589
|
+
"isMut": false,
|
|
8590
|
+
"isSigner": false
|
|
8591
|
+
},
|
|
8592
|
+
{
|
|
8593
|
+
"name": "constituentCorrelations",
|
|
8594
|
+
"isMut": false,
|
|
8595
|
+
"isSigner": false
|
|
8596
|
+
},
|
|
8597
|
+
{
|
|
8598
|
+
"name": "constituentInTokenAccount",
|
|
8599
|
+
"isMut": true,
|
|
8600
|
+
"isSigner": false
|
|
8601
|
+
},
|
|
8602
|
+
{
|
|
8603
|
+
"name": "constituentOutTokenAccount",
|
|
8604
|
+
"isMut": true,
|
|
8605
|
+
"isSigner": false
|
|
8606
|
+
},
|
|
8607
|
+
{
|
|
8608
|
+
"name": "inConstituent",
|
|
8609
|
+
"isMut": true,
|
|
8610
|
+
"isSigner": false
|
|
8611
|
+
},
|
|
8612
|
+
{
|
|
8613
|
+
"name": "outConstituent",
|
|
8614
|
+
"isMut": true,
|
|
8615
|
+
"isSigner": false
|
|
8616
|
+
},
|
|
8617
|
+
{
|
|
8618
|
+
"name": "authority",
|
|
8619
|
+
"isMut": false,
|
|
8620
|
+
"isSigner": true
|
|
8621
|
+
},
|
|
8622
|
+
{
|
|
8623
|
+
"name": "tokenProgram",
|
|
8624
|
+
"isMut": false,
|
|
8625
|
+
"isSigner": false
|
|
8626
|
+
}
|
|
8627
|
+
],
|
|
8628
|
+
"args": [
|
|
8629
|
+
{
|
|
8630
|
+
"name": "inMarketIndex",
|
|
8631
|
+
"type": "u16"
|
|
8632
|
+
},
|
|
8633
|
+
{
|
|
8634
|
+
"name": "outMarketIndex",
|
|
8635
|
+
"type": "u16"
|
|
8636
|
+
},
|
|
8637
|
+
{
|
|
8638
|
+
"name": "inAmount",
|
|
8639
|
+
"type": "u64"
|
|
8640
|
+
},
|
|
8641
|
+
{
|
|
8642
|
+
"name": "inTargetWeight",
|
|
8643
|
+
"type": "i64"
|
|
8644
|
+
},
|
|
8645
|
+
{
|
|
8646
|
+
"name": "outTargetWeight",
|
|
8647
|
+
"type": "i64"
|
|
8648
|
+
}
|
|
8649
|
+
]
|
|
8650
|
+
},
|
|
8651
|
+
{
|
|
8652
|
+
"name": "lpPoolAddLiquidity",
|
|
8653
|
+
"accounts": [
|
|
8654
|
+
{
|
|
8655
|
+
"name": "state",
|
|
8656
|
+
"isMut": false,
|
|
8657
|
+
"isSigner": false
|
|
8658
|
+
},
|
|
8659
|
+
{
|
|
8660
|
+
"name": "lpPool",
|
|
8661
|
+
"isMut": true,
|
|
8662
|
+
"isSigner": false
|
|
8663
|
+
},
|
|
8664
|
+
{
|
|
8665
|
+
"name": "authority",
|
|
8666
|
+
"isMut": false,
|
|
8667
|
+
"isSigner": true
|
|
8668
|
+
},
|
|
8669
|
+
{
|
|
8670
|
+
"name": "inMarketMint",
|
|
8671
|
+
"isMut": false,
|
|
8672
|
+
"isSigner": false
|
|
8673
|
+
},
|
|
8674
|
+
{
|
|
8675
|
+
"name": "inConstituent",
|
|
8676
|
+
"isMut": true,
|
|
8677
|
+
"isSigner": false
|
|
8678
|
+
},
|
|
8679
|
+
{
|
|
8680
|
+
"name": "userInTokenAccount",
|
|
8681
|
+
"isMut": true,
|
|
8682
|
+
"isSigner": false
|
|
8683
|
+
},
|
|
8684
|
+
{
|
|
8685
|
+
"name": "constituentInTokenAccount",
|
|
8686
|
+
"isMut": true,
|
|
8687
|
+
"isSigner": false
|
|
8688
|
+
},
|
|
8689
|
+
{
|
|
8690
|
+
"name": "userLpTokenAccount",
|
|
8691
|
+
"isMut": true,
|
|
8692
|
+
"isSigner": false
|
|
8693
|
+
},
|
|
8694
|
+
{
|
|
8695
|
+
"name": "lpMint",
|
|
8696
|
+
"isMut": true,
|
|
8697
|
+
"isSigner": false
|
|
8698
|
+
},
|
|
8699
|
+
{
|
|
8700
|
+
"name": "constituentTargetBase",
|
|
8701
|
+
"isMut": false,
|
|
8702
|
+
"isSigner": false
|
|
8703
|
+
},
|
|
8704
|
+
{
|
|
8705
|
+
"name": "lpPoolTokenVault",
|
|
8706
|
+
"isMut": true,
|
|
8707
|
+
"isSigner": false
|
|
8708
|
+
},
|
|
8709
|
+
{
|
|
8710
|
+
"name": "tokenProgram",
|
|
8711
|
+
"isMut": false,
|
|
8712
|
+
"isSigner": false
|
|
8713
|
+
}
|
|
8714
|
+
],
|
|
8715
|
+
"args": [
|
|
8716
|
+
{
|
|
8717
|
+
"name": "inMarketIndex",
|
|
8718
|
+
"type": "u16"
|
|
8719
|
+
},
|
|
8720
|
+
{
|
|
8721
|
+
"name": "inAmount",
|
|
8722
|
+
"type": "u128"
|
|
8723
|
+
},
|
|
8724
|
+
{
|
|
8725
|
+
"name": "minMintAmount",
|
|
8726
|
+
"type": "u64"
|
|
8727
|
+
}
|
|
8728
|
+
]
|
|
8729
|
+
},
|
|
8730
|
+
{
|
|
8731
|
+
"name": "lpPoolRemoveLiquidity",
|
|
8732
|
+
"accounts": [
|
|
8733
|
+
{
|
|
8734
|
+
"name": "state",
|
|
8735
|
+
"isMut": false,
|
|
8736
|
+
"isSigner": false
|
|
8737
|
+
},
|
|
8738
|
+
{
|
|
8739
|
+
"name": "driftSigner",
|
|
8740
|
+
"isMut": false,
|
|
8741
|
+
"isSigner": false
|
|
8742
|
+
},
|
|
8743
|
+
{
|
|
8744
|
+
"name": "lpPool",
|
|
8745
|
+
"isMut": true,
|
|
8746
|
+
"isSigner": false
|
|
8747
|
+
},
|
|
8748
|
+
{
|
|
8749
|
+
"name": "authority",
|
|
8750
|
+
"isMut": false,
|
|
8751
|
+
"isSigner": true
|
|
8752
|
+
},
|
|
8753
|
+
{
|
|
8754
|
+
"name": "outMarketMint",
|
|
8755
|
+
"isMut": false,
|
|
8756
|
+
"isSigner": false
|
|
8757
|
+
},
|
|
8758
|
+
{
|
|
8759
|
+
"name": "outConstituent",
|
|
8760
|
+
"isMut": true,
|
|
8761
|
+
"isSigner": false
|
|
8762
|
+
},
|
|
8763
|
+
{
|
|
8764
|
+
"name": "userOutTokenAccount",
|
|
8765
|
+
"isMut": true,
|
|
8766
|
+
"isSigner": false
|
|
8767
|
+
},
|
|
8768
|
+
{
|
|
8769
|
+
"name": "constituentOutTokenAccount",
|
|
8770
|
+
"isMut": true,
|
|
8771
|
+
"isSigner": false
|
|
8772
|
+
},
|
|
8773
|
+
{
|
|
8774
|
+
"name": "userLpTokenAccount",
|
|
8775
|
+
"isMut": true,
|
|
8776
|
+
"isSigner": false
|
|
8777
|
+
},
|
|
8778
|
+
{
|
|
8779
|
+
"name": "spotMarketTokenAccount",
|
|
8780
|
+
"isMut": true,
|
|
8781
|
+
"isSigner": false
|
|
8782
|
+
},
|
|
8783
|
+
{
|
|
8784
|
+
"name": "lpMint",
|
|
8785
|
+
"isMut": true,
|
|
8786
|
+
"isSigner": false
|
|
8787
|
+
},
|
|
8788
|
+
{
|
|
8789
|
+
"name": "constituentTargetBase",
|
|
8790
|
+
"isMut": false,
|
|
8791
|
+
"isSigner": false
|
|
8792
|
+
},
|
|
8793
|
+
{
|
|
8794
|
+
"name": "lpPoolTokenVault",
|
|
8795
|
+
"isMut": true,
|
|
8796
|
+
"isSigner": false
|
|
8797
|
+
},
|
|
8798
|
+
{
|
|
8799
|
+
"name": "tokenProgram",
|
|
8800
|
+
"isMut": false,
|
|
8801
|
+
"isSigner": false
|
|
8802
|
+
},
|
|
8803
|
+
{
|
|
8804
|
+
"name": "ammCache",
|
|
8805
|
+
"isMut": false,
|
|
8806
|
+
"isSigner": false
|
|
8807
|
+
}
|
|
8808
|
+
],
|
|
8809
|
+
"args": [
|
|
8810
|
+
{
|
|
8811
|
+
"name": "inMarketIndex",
|
|
8812
|
+
"type": "u16"
|
|
8813
|
+
},
|
|
8814
|
+
{
|
|
8815
|
+
"name": "inAmount",
|
|
8816
|
+
"type": "u64"
|
|
8817
|
+
},
|
|
8818
|
+
{
|
|
8819
|
+
"name": "minOutAmount",
|
|
8820
|
+
"type": "u128"
|
|
8821
|
+
}
|
|
8822
|
+
]
|
|
8823
|
+
},
|
|
8824
|
+
{
|
|
8825
|
+
"name": "viewLpPoolAddLiquidityFees",
|
|
8826
|
+
"accounts": [
|
|
8827
|
+
{
|
|
8828
|
+
"name": "state",
|
|
8829
|
+
"isMut": false,
|
|
8830
|
+
"isSigner": false
|
|
8831
|
+
},
|
|
8832
|
+
{
|
|
8833
|
+
"name": "lpPool",
|
|
8834
|
+
"isMut": false,
|
|
8835
|
+
"isSigner": false
|
|
8836
|
+
},
|
|
8837
|
+
{
|
|
8838
|
+
"name": "authority",
|
|
8839
|
+
"isMut": false,
|
|
8840
|
+
"isSigner": true
|
|
8841
|
+
},
|
|
8842
|
+
{
|
|
8843
|
+
"name": "inMarketMint",
|
|
8844
|
+
"isMut": false,
|
|
8845
|
+
"isSigner": false
|
|
8846
|
+
},
|
|
8847
|
+
{
|
|
8848
|
+
"name": "inConstituent",
|
|
8849
|
+
"isMut": false,
|
|
8850
|
+
"isSigner": false
|
|
8851
|
+
},
|
|
8852
|
+
{
|
|
8853
|
+
"name": "lpMint",
|
|
8854
|
+
"isMut": false,
|
|
8855
|
+
"isSigner": false
|
|
8856
|
+
},
|
|
8857
|
+
{
|
|
8858
|
+
"name": "constituentTargetBase",
|
|
8859
|
+
"isMut": false,
|
|
8860
|
+
"isSigner": false
|
|
8861
|
+
}
|
|
8862
|
+
],
|
|
8863
|
+
"args": [
|
|
8864
|
+
{
|
|
8865
|
+
"name": "inMarketIndex",
|
|
8866
|
+
"type": "u16"
|
|
8867
|
+
},
|
|
8868
|
+
{
|
|
8869
|
+
"name": "inAmount",
|
|
8870
|
+
"type": "u128"
|
|
8871
|
+
}
|
|
8872
|
+
]
|
|
8873
|
+
},
|
|
8874
|
+
{
|
|
8875
|
+
"name": "viewLpPoolRemoveLiquidityFees",
|
|
8876
|
+
"accounts": [
|
|
8877
|
+
{
|
|
8878
|
+
"name": "state",
|
|
8879
|
+
"isMut": false,
|
|
8880
|
+
"isSigner": false
|
|
8881
|
+
},
|
|
8882
|
+
{
|
|
8883
|
+
"name": "lpPool",
|
|
8884
|
+
"isMut": false,
|
|
8885
|
+
"isSigner": false
|
|
8886
|
+
},
|
|
8887
|
+
{
|
|
8888
|
+
"name": "authority",
|
|
8889
|
+
"isMut": false,
|
|
8890
|
+
"isSigner": true
|
|
8891
|
+
},
|
|
8892
|
+
{
|
|
8893
|
+
"name": "outMarketMint",
|
|
8894
|
+
"isMut": false,
|
|
8895
|
+
"isSigner": false
|
|
8896
|
+
},
|
|
8897
|
+
{
|
|
8898
|
+
"name": "outConstituent",
|
|
8899
|
+
"isMut": false,
|
|
8900
|
+
"isSigner": false
|
|
8901
|
+
},
|
|
8902
|
+
{
|
|
8903
|
+
"name": "lpMint",
|
|
8904
|
+
"isMut": false,
|
|
8905
|
+
"isSigner": false
|
|
8906
|
+
},
|
|
8907
|
+
{
|
|
8908
|
+
"name": "constituentTargetBase",
|
|
8909
|
+
"isMut": false,
|
|
8910
|
+
"isSigner": false
|
|
8911
|
+
}
|
|
8912
|
+
],
|
|
8913
|
+
"args": [
|
|
8914
|
+
{
|
|
8915
|
+
"name": "inMarketIndex",
|
|
8916
|
+
"type": "u16"
|
|
8917
|
+
},
|
|
8918
|
+
{
|
|
8919
|
+
"name": "inAmount",
|
|
8920
|
+
"type": "u64"
|
|
8921
|
+
}
|
|
8922
|
+
]
|
|
8923
|
+
},
|
|
8924
|
+
{
|
|
8925
|
+
"name": "beginLpSwap",
|
|
8926
|
+
"accounts": [
|
|
8927
|
+
{
|
|
8928
|
+
"name": "state",
|
|
8929
|
+
"isMut": false,
|
|
8930
|
+
"isSigner": false
|
|
8931
|
+
},
|
|
8932
|
+
{
|
|
8933
|
+
"name": "admin",
|
|
8934
|
+
"isMut": true,
|
|
8935
|
+
"isSigner": true
|
|
8936
|
+
},
|
|
8937
|
+
{
|
|
8938
|
+
"name": "signerOutTokenAccount",
|
|
8939
|
+
"isMut": true,
|
|
8940
|
+
"isSigner": false,
|
|
8941
|
+
"docs": [
|
|
8942
|
+
"Signer token accounts"
|
|
8943
|
+
]
|
|
8944
|
+
},
|
|
8945
|
+
{
|
|
8946
|
+
"name": "signerInTokenAccount",
|
|
8947
|
+
"isMut": true,
|
|
8948
|
+
"isSigner": false
|
|
8949
|
+
},
|
|
8950
|
+
{
|
|
8951
|
+
"name": "constituentOutTokenAccount",
|
|
8952
|
+
"isMut": true,
|
|
8953
|
+
"isSigner": false,
|
|
8954
|
+
"docs": [
|
|
8955
|
+
"Constituent token accounts"
|
|
8956
|
+
]
|
|
8957
|
+
},
|
|
8958
|
+
{
|
|
8959
|
+
"name": "constituentInTokenAccount",
|
|
8960
|
+
"isMut": true,
|
|
8961
|
+
"isSigner": false
|
|
8962
|
+
},
|
|
8963
|
+
{
|
|
8964
|
+
"name": "outConstituent",
|
|
8965
|
+
"isMut": true,
|
|
8966
|
+
"isSigner": false,
|
|
8967
|
+
"docs": [
|
|
8968
|
+
"Constituents"
|
|
8969
|
+
]
|
|
8970
|
+
},
|
|
8971
|
+
{
|
|
8972
|
+
"name": "inConstituent",
|
|
8973
|
+
"isMut": true,
|
|
8974
|
+
"isSigner": false
|
|
8975
|
+
},
|
|
8976
|
+
{
|
|
8977
|
+
"name": "lpPool",
|
|
8978
|
+
"isMut": false,
|
|
8979
|
+
"isSigner": false
|
|
8980
|
+
},
|
|
8981
|
+
{
|
|
8982
|
+
"name": "instructions",
|
|
8983
|
+
"isMut": false,
|
|
8984
|
+
"isSigner": false,
|
|
8985
|
+
"docs": [
|
|
8986
|
+
"Instructions Sysvar for instruction introspection"
|
|
8987
|
+
]
|
|
8988
|
+
},
|
|
8989
|
+
{
|
|
8990
|
+
"name": "tokenProgram",
|
|
8991
|
+
"isMut": false,
|
|
8992
|
+
"isSigner": false
|
|
8993
|
+
}
|
|
8994
|
+
],
|
|
8995
|
+
"args": [
|
|
8996
|
+
{
|
|
8997
|
+
"name": "inMarketIndex",
|
|
8998
|
+
"type": "u16"
|
|
8999
|
+
},
|
|
9000
|
+
{
|
|
9001
|
+
"name": "outMarketIndex",
|
|
9002
|
+
"type": "u16"
|
|
9003
|
+
},
|
|
9004
|
+
{
|
|
9005
|
+
"name": "amountIn",
|
|
9006
|
+
"type": "u64"
|
|
9007
|
+
}
|
|
9008
|
+
]
|
|
9009
|
+
},
|
|
9010
|
+
{
|
|
9011
|
+
"name": "endLpSwap",
|
|
9012
|
+
"accounts": [
|
|
9013
|
+
{
|
|
9014
|
+
"name": "state",
|
|
9015
|
+
"isMut": false,
|
|
9016
|
+
"isSigner": false
|
|
9017
|
+
},
|
|
9018
|
+
{
|
|
9019
|
+
"name": "admin",
|
|
9020
|
+
"isMut": true,
|
|
9021
|
+
"isSigner": true
|
|
9022
|
+
},
|
|
9023
|
+
{
|
|
9024
|
+
"name": "signerOutTokenAccount",
|
|
9025
|
+
"isMut": true,
|
|
9026
|
+
"isSigner": false,
|
|
9027
|
+
"docs": [
|
|
9028
|
+
"Signer token accounts"
|
|
9029
|
+
]
|
|
9030
|
+
},
|
|
9031
|
+
{
|
|
9032
|
+
"name": "signerInTokenAccount",
|
|
9033
|
+
"isMut": true,
|
|
9034
|
+
"isSigner": false
|
|
9035
|
+
},
|
|
9036
|
+
{
|
|
9037
|
+
"name": "constituentOutTokenAccount",
|
|
9038
|
+
"isMut": true,
|
|
9039
|
+
"isSigner": false,
|
|
9040
|
+
"docs": [
|
|
9041
|
+
"Constituent token accounts"
|
|
9042
|
+
]
|
|
9043
|
+
},
|
|
9044
|
+
{
|
|
9045
|
+
"name": "constituentInTokenAccount",
|
|
9046
|
+
"isMut": true,
|
|
9047
|
+
"isSigner": false
|
|
9048
|
+
},
|
|
9049
|
+
{
|
|
9050
|
+
"name": "outConstituent",
|
|
9051
|
+
"isMut": true,
|
|
9052
|
+
"isSigner": false,
|
|
9053
|
+
"docs": [
|
|
9054
|
+
"Constituents"
|
|
9055
|
+
]
|
|
9056
|
+
},
|
|
9057
|
+
{
|
|
9058
|
+
"name": "inConstituent",
|
|
9059
|
+
"isMut": true,
|
|
9060
|
+
"isSigner": false
|
|
9061
|
+
},
|
|
9062
|
+
{
|
|
9063
|
+
"name": "lpPool",
|
|
9064
|
+
"isMut": false,
|
|
9065
|
+
"isSigner": false
|
|
9066
|
+
},
|
|
9067
|
+
{
|
|
9068
|
+
"name": "instructions",
|
|
9069
|
+
"isMut": false,
|
|
9070
|
+
"isSigner": false,
|
|
9071
|
+
"docs": [
|
|
9072
|
+
"Instructions Sysvar for instruction introspection"
|
|
9073
|
+
]
|
|
9074
|
+
},
|
|
9075
|
+
{
|
|
9076
|
+
"name": "tokenProgram",
|
|
9077
|
+
"isMut": false,
|
|
9078
|
+
"isSigner": false
|
|
9079
|
+
}
|
|
9080
|
+
],
|
|
9081
|
+
"args": [
|
|
9082
|
+
{
|
|
9083
|
+
"name": "inMarketIndex",
|
|
9084
|
+
"type": "u16"
|
|
9085
|
+
},
|
|
9086
|
+
{
|
|
9087
|
+
"name": "outMarketIndex",
|
|
9088
|
+
"type": "u16"
|
|
9089
|
+
}
|
|
9090
|
+
]
|
|
9091
|
+
},
|
|
9092
|
+
{
|
|
9093
|
+
"name": "updateConstituentOracleInfo",
|
|
9094
|
+
"accounts": [
|
|
9095
|
+
{
|
|
9096
|
+
"name": "state",
|
|
9097
|
+
"isMut": false,
|
|
9098
|
+
"isSigner": false
|
|
9099
|
+
},
|
|
9100
|
+
{
|
|
9101
|
+
"name": "keeper",
|
|
9102
|
+
"isMut": true,
|
|
9103
|
+
"isSigner": true
|
|
9104
|
+
},
|
|
9105
|
+
{
|
|
9106
|
+
"name": "constituent",
|
|
9107
|
+
"isMut": true,
|
|
9108
|
+
"isSigner": false
|
|
9109
|
+
},
|
|
9110
|
+
{
|
|
9111
|
+
"name": "spotMarket",
|
|
9112
|
+
"isMut": false,
|
|
9113
|
+
"isSigner": false
|
|
9114
|
+
},
|
|
9115
|
+
{
|
|
9116
|
+
"name": "oracle",
|
|
9117
|
+
"isMut": false,
|
|
9118
|
+
"isSigner": false
|
|
9119
|
+
}
|
|
9120
|
+
],
|
|
9121
|
+
"args": []
|
|
9122
|
+
},
|
|
9123
|
+
{
|
|
9124
|
+
"name": "depositToProgramVault",
|
|
9125
|
+
"accounts": [
|
|
9126
|
+
{
|
|
9127
|
+
"name": "state",
|
|
9128
|
+
"isMut": false,
|
|
9129
|
+
"isSigner": false
|
|
9130
|
+
},
|
|
9131
|
+
{
|
|
9132
|
+
"name": "admin",
|
|
9133
|
+
"isMut": true,
|
|
9134
|
+
"isSigner": true
|
|
9135
|
+
},
|
|
9136
|
+
{
|
|
9137
|
+
"name": "constituent",
|
|
9138
|
+
"isMut": true,
|
|
9139
|
+
"isSigner": false
|
|
9140
|
+
},
|
|
9141
|
+
{
|
|
9142
|
+
"name": "constituentTokenAccount",
|
|
9143
|
+
"isMut": true,
|
|
9144
|
+
"isSigner": false
|
|
9145
|
+
},
|
|
9146
|
+
{
|
|
9147
|
+
"name": "spotMarket",
|
|
9148
|
+
"isMut": true,
|
|
9149
|
+
"isSigner": false
|
|
9150
|
+
},
|
|
9151
|
+
{
|
|
9152
|
+
"name": "spotMarketVault",
|
|
9153
|
+
"isMut": true,
|
|
9154
|
+
"isSigner": false
|
|
9155
|
+
},
|
|
9156
|
+
{
|
|
9157
|
+
"name": "tokenProgram",
|
|
9158
|
+
"isMut": false,
|
|
9159
|
+
"isSigner": false
|
|
9160
|
+
},
|
|
9161
|
+
{
|
|
9162
|
+
"name": "mint",
|
|
9163
|
+
"isMut": false,
|
|
9164
|
+
"isSigner": false
|
|
9165
|
+
},
|
|
9166
|
+
{
|
|
9167
|
+
"name": "oracle",
|
|
9168
|
+
"isMut": false,
|
|
9169
|
+
"isSigner": false
|
|
9170
|
+
}
|
|
9171
|
+
],
|
|
9172
|
+
"args": [
|
|
9173
|
+
{
|
|
9174
|
+
"name": "amount",
|
|
9175
|
+
"type": "u64"
|
|
9176
|
+
}
|
|
9177
|
+
]
|
|
9178
|
+
},
|
|
9179
|
+
{
|
|
9180
|
+
"name": "withdrawFromProgramVault",
|
|
9181
|
+
"accounts": [
|
|
9182
|
+
{
|
|
9183
|
+
"name": "state",
|
|
9184
|
+
"isMut": false,
|
|
9185
|
+
"isSigner": false
|
|
9186
|
+
},
|
|
9187
|
+
{
|
|
9188
|
+
"name": "admin",
|
|
9189
|
+
"isMut": true,
|
|
9190
|
+
"isSigner": true
|
|
9191
|
+
},
|
|
9192
|
+
{
|
|
9193
|
+
"name": "driftSigner",
|
|
9194
|
+
"isMut": false,
|
|
9195
|
+
"isSigner": false
|
|
9196
|
+
},
|
|
9197
|
+
{
|
|
9198
|
+
"name": "constituent",
|
|
9199
|
+
"isMut": true,
|
|
9200
|
+
"isSigner": false
|
|
9201
|
+
},
|
|
9202
|
+
{
|
|
9203
|
+
"name": "constituentTokenAccount",
|
|
9204
|
+
"isMut": true,
|
|
9205
|
+
"isSigner": false
|
|
9206
|
+
},
|
|
9207
|
+
{
|
|
9208
|
+
"name": "spotMarket",
|
|
9209
|
+
"isMut": true,
|
|
9210
|
+
"isSigner": false
|
|
9211
|
+
},
|
|
9212
|
+
{
|
|
9213
|
+
"name": "spotMarketVault",
|
|
9214
|
+
"isMut": true,
|
|
9215
|
+
"isSigner": false
|
|
9216
|
+
},
|
|
9217
|
+
{
|
|
9218
|
+
"name": "tokenProgram",
|
|
9219
|
+
"isMut": false,
|
|
9220
|
+
"isSigner": false
|
|
9221
|
+
},
|
|
9222
|
+
{
|
|
9223
|
+
"name": "mint",
|
|
9224
|
+
"isMut": false,
|
|
9225
|
+
"isSigner": false
|
|
9226
|
+
},
|
|
9227
|
+
{
|
|
9228
|
+
"name": "oracle",
|
|
9229
|
+
"isMut": false,
|
|
9230
|
+
"isSigner": false
|
|
9231
|
+
}
|
|
9232
|
+
],
|
|
9233
|
+
"args": [
|
|
9234
|
+
{
|
|
9235
|
+
"name": "amount",
|
|
9236
|
+
"type": "u64"
|
|
9237
|
+
}
|
|
9238
|
+
]
|
|
9239
|
+
},
|
|
9240
|
+
{
|
|
9241
|
+
"name": "settlePerpToLpPool",
|
|
9242
|
+
"accounts": [
|
|
9243
|
+
{
|
|
9244
|
+
"name": "state",
|
|
9245
|
+
"isMut": false,
|
|
9246
|
+
"isSigner": false
|
|
9247
|
+
},
|
|
9248
|
+
{
|
|
9249
|
+
"name": "lpPool",
|
|
9250
|
+
"isMut": true,
|
|
9251
|
+
"isSigner": false
|
|
9252
|
+
},
|
|
9253
|
+
{
|
|
9254
|
+
"name": "keeper",
|
|
9255
|
+
"isMut": true,
|
|
9256
|
+
"isSigner": true
|
|
9257
|
+
},
|
|
9258
|
+
{
|
|
9259
|
+
"name": "ammCache",
|
|
9260
|
+
"isMut": true,
|
|
9261
|
+
"isSigner": false
|
|
9262
|
+
},
|
|
9263
|
+
{
|
|
9264
|
+
"name": "quoteMarket",
|
|
9265
|
+
"isMut": true,
|
|
9266
|
+
"isSigner": false
|
|
9267
|
+
},
|
|
9268
|
+
{
|
|
9269
|
+
"name": "constituent",
|
|
9270
|
+
"isMut": true,
|
|
9271
|
+
"isSigner": false
|
|
9272
|
+
},
|
|
9273
|
+
{
|
|
9274
|
+
"name": "constituentQuoteTokenAccount",
|
|
9275
|
+
"isMut": true,
|
|
9276
|
+
"isSigner": false
|
|
9277
|
+
},
|
|
9278
|
+
{
|
|
9279
|
+
"name": "quoteTokenVault",
|
|
9280
|
+
"isMut": true,
|
|
9281
|
+
"isSigner": false
|
|
9282
|
+
},
|
|
9283
|
+
{
|
|
9284
|
+
"name": "tokenProgram",
|
|
9285
|
+
"isMut": false,
|
|
9286
|
+
"isSigner": false
|
|
9287
|
+
},
|
|
9288
|
+
{
|
|
9289
|
+
"name": "driftSigner",
|
|
9290
|
+
"isMut": false,
|
|
9291
|
+
"isSigner": false
|
|
9292
|
+
}
|
|
9293
|
+
],
|
|
9294
|
+
"args": []
|
|
9295
|
+
}
|
|
9296
|
+
],
|
|
9297
|
+
"accounts": [
|
|
9298
|
+
{
|
|
9299
|
+
"name": "AmmCache",
|
|
9300
|
+
"type": {
|
|
9301
|
+
"kind": "struct",
|
|
9302
|
+
"fields": [
|
|
9303
|
+
{
|
|
9304
|
+
"name": "bump",
|
|
9305
|
+
"type": "u8"
|
|
9306
|
+
},
|
|
9307
|
+
{
|
|
9308
|
+
"name": "padding",
|
|
9309
|
+
"type": {
|
|
9310
|
+
"array": [
|
|
9311
|
+
"u8",
|
|
9312
|
+
3
|
|
9313
|
+
]
|
|
9314
|
+
}
|
|
9315
|
+
},
|
|
9316
|
+
{
|
|
9317
|
+
"name": "cache",
|
|
9318
|
+
"type": {
|
|
9319
|
+
"vec": {
|
|
9320
|
+
"defined": "CacheInfo"
|
|
9321
|
+
}
|
|
9322
|
+
}
|
|
9323
|
+
}
|
|
9324
|
+
]
|
|
9325
|
+
}
|
|
9326
|
+
},
|
|
9327
|
+
{
|
|
9328
|
+
"name": "OpenbookV2FulfillmentConfig",
|
|
9329
|
+
"type": {
|
|
9330
|
+
"kind": "struct",
|
|
9331
|
+
"fields": [
|
|
9332
|
+
{
|
|
9333
|
+
"name": "pubkey",
|
|
9334
|
+
"type": "publicKey"
|
|
9335
|
+
},
|
|
9336
|
+
{
|
|
9337
|
+
"name": "openbookV2ProgramId",
|
|
9338
|
+
"type": "publicKey"
|
|
9339
|
+
},
|
|
9340
|
+
{
|
|
9341
|
+
"name": "openbookV2Market",
|
|
9342
|
+
"type": "publicKey"
|
|
9343
|
+
},
|
|
9344
|
+
{
|
|
9345
|
+
"name": "openbookV2MarketAuthority",
|
|
9346
|
+
"type": "publicKey"
|
|
9347
|
+
},
|
|
9348
|
+
{
|
|
9349
|
+
"name": "openbookV2EventHeap",
|
|
9350
|
+
"type": "publicKey"
|
|
9351
|
+
},
|
|
9352
|
+
{
|
|
9353
|
+
"name": "openbookV2Bids",
|
|
9354
|
+
"type": "publicKey"
|
|
9355
|
+
},
|
|
9356
|
+
{
|
|
9357
|
+
"name": "openbookV2Asks",
|
|
9358
|
+
"type": "publicKey"
|
|
9359
|
+
},
|
|
9360
|
+
{
|
|
9361
|
+
"name": "openbookV2BaseVault",
|
|
9362
|
+
"type": "publicKey"
|
|
9363
|
+
},
|
|
9364
|
+
{
|
|
9365
|
+
"name": "openbookV2QuoteVault",
|
|
9366
|
+
"type": "publicKey"
|
|
9367
|
+
},
|
|
9368
|
+
{
|
|
9369
|
+
"name": "marketIndex",
|
|
9370
|
+
"type": "u16"
|
|
9371
|
+
},
|
|
9372
|
+
{
|
|
9373
|
+
"name": "fulfillmentType",
|
|
9374
|
+
"type": {
|
|
9375
|
+
"defined": "SpotFulfillmentType"
|
|
9376
|
+
}
|
|
9377
|
+
},
|
|
9378
|
+
{
|
|
9379
|
+
"name": "status",
|
|
9380
|
+
"type": {
|
|
9381
|
+
"defined": "SpotFulfillmentConfigStatus"
|
|
9382
|
+
}
|
|
9383
|
+
},
|
|
9384
|
+
{
|
|
9385
|
+
"name": "padding",
|
|
9386
|
+
"type": {
|
|
9387
|
+
"array": [
|
|
9388
|
+
"u8",
|
|
9389
|
+
4
|
|
9390
|
+
]
|
|
9391
|
+
}
|
|
9392
|
+
}
|
|
9393
|
+
]
|
|
9394
|
+
}
|
|
9395
|
+
},
|
|
9396
|
+
{
|
|
9397
|
+
"name": "PhoenixV1FulfillmentConfig",
|
|
9398
|
+
"type": {
|
|
9399
|
+
"kind": "struct",
|
|
9400
|
+
"fields": [
|
|
9401
|
+
{
|
|
9402
|
+
"name": "pubkey",
|
|
9403
|
+
"type": "publicKey"
|
|
9404
|
+
},
|
|
9405
|
+
{
|
|
9406
|
+
"name": "phoenixProgramId",
|
|
9407
|
+
"type": "publicKey"
|
|
9408
|
+
},
|
|
9409
|
+
{
|
|
9410
|
+
"name": "phoenixLogAuthority",
|
|
9411
|
+
"type": "publicKey"
|
|
9412
|
+
},
|
|
9413
|
+
{
|
|
9414
|
+
"name": "phoenixMarket",
|
|
9415
|
+
"type": "publicKey"
|
|
9416
|
+
},
|
|
9417
|
+
{
|
|
9418
|
+
"name": "phoenixBaseVault",
|
|
9419
|
+
"type": "publicKey"
|
|
9420
|
+
},
|
|
9421
|
+
{
|
|
9422
|
+
"name": "phoenixQuoteVault",
|
|
9423
|
+
"type": "publicKey"
|
|
9424
|
+
},
|
|
9425
|
+
{
|
|
9426
|
+
"name": "marketIndex",
|
|
9427
|
+
"type": "u16"
|
|
9428
|
+
},
|
|
9429
|
+
{
|
|
9430
|
+
"name": "fulfillmentType",
|
|
9431
|
+
"type": {
|
|
9432
|
+
"defined": "SpotFulfillmentType"
|
|
9433
|
+
}
|
|
9434
|
+
},
|
|
9435
|
+
{
|
|
9436
|
+
"name": "status",
|
|
9437
|
+
"type": {
|
|
9438
|
+
"defined": "SpotFulfillmentConfigStatus"
|
|
9439
|
+
}
|
|
9440
|
+
},
|
|
9441
|
+
{
|
|
9442
|
+
"name": "padding",
|
|
9443
|
+
"type": {
|
|
9444
|
+
"array": [
|
|
9445
|
+
"u8",
|
|
9446
|
+
4
|
|
9447
|
+
]
|
|
9448
|
+
}
|
|
9449
|
+
}
|
|
9450
|
+
]
|
|
9451
|
+
}
|
|
9452
|
+
},
|
|
9453
|
+
{
|
|
9454
|
+
"name": "SerumV3FulfillmentConfig",
|
|
9455
|
+
"type": {
|
|
9456
|
+
"kind": "struct",
|
|
9457
|
+
"fields": [
|
|
9458
|
+
{
|
|
9459
|
+
"name": "pubkey",
|
|
9460
|
+
"type": "publicKey"
|
|
9461
|
+
},
|
|
9462
|
+
{
|
|
9463
|
+
"name": "serumProgramId",
|
|
9464
|
+
"type": "publicKey"
|
|
9465
|
+
},
|
|
9466
|
+
{
|
|
9467
|
+
"name": "serumMarket",
|
|
9468
|
+
"type": "publicKey"
|
|
9469
|
+
},
|
|
9470
|
+
{
|
|
9471
|
+
"name": "serumRequestQueue",
|
|
9472
|
+
"type": "publicKey"
|
|
9473
|
+
},
|
|
9474
|
+
{
|
|
9475
|
+
"name": "serumEventQueue",
|
|
9476
|
+
"type": "publicKey"
|
|
9477
|
+
},
|
|
9478
|
+
{
|
|
9479
|
+
"name": "serumBids",
|
|
9480
|
+
"type": "publicKey"
|
|
9481
|
+
},
|
|
9482
|
+
{
|
|
9483
|
+
"name": "serumAsks",
|
|
9484
|
+
"type": "publicKey"
|
|
9485
|
+
},
|
|
9486
|
+
{
|
|
9487
|
+
"name": "serumBaseVault",
|
|
9488
|
+
"type": "publicKey"
|
|
9489
|
+
},
|
|
9490
|
+
{
|
|
9491
|
+
"name": "serumQuoteVault",
|
|
9492
|
+
"type": "publicKey"
|
|
9493
|
+
},
|
|
9494
|
+
{
|
|
9495
|
+
"name": "serumOpenOrders",
|
|
9496
|
+
"type": "publicKey"
|
|
9497
|
+
},
|
|
9498
|
+
{
|
|
9499
|
+
"name": "serumSignerNonce",
|
|
9500
|
+
"type": "u64"
|
|
9501
|
+
},
|
|
9502
|
+
{
|
|
9503
|
+
"name": "marketIndex",
|
|
9504
|
+
"type": "u16"
|
|
9505
|
+
},
|
|
9506
|
+
{
|
|
9507
|
+
"name": "fulfillmentType",
|
|
9508
|
+
"type": {
|
|
9509
|
+
"defined": "SpotFulfillmentType"
|
|
9510
|
+
}
|
|
9511
|
+
},
|
|
9512
|
+
{
|
|
9513
|
+
"name": "status",
|
|
9514
|
+
"type": {
|
|
9515
|
+
"defined": "SpotFulfillmentConfigStatus"
|
|
9516
|
+
}
|
|
9517
|
+
},
|
|
9518
|
+
{
|
|
9519
|
+
"name": "padding",
|
|
9520
|
+
"type": {
|
|
9521
|
+
"array": [
|
|
9522
|
+
"u8",
|
|
9523
|
+
4
|
|
9524
|
+
]
|
|
9525
|
+
}
|
|
9526
|
+
}
|
|
9527
|
+
]
|
|
9528
|
+
}
|
|
9529
|
+
},
|
|
9530
|
+
{
|
|
9531
|
+
"name": "HighLeverageModeConfig",
|
|
9532
|
+
"type": {
|
|
9533
|
+
"kind": "struct",
|
|
9534
|
+
"fields": [
|
|
9535
|
+
{
|
|
9536
|
+
"name": "maxUsers",
|
|
9537
|
+
"type": "u32"
|
|
7671
9538
|
},
|
|
7672
9539
|
{
|
|
7673
|
-
"name": "
|
|
7674
|
-
"type": "
|
|
9540
|
+
"name": "currentUsers",
|
|
9541
|
+
"type": "u32"
|
|
7675
9542
|
},
|
|
7676
9543
|
{
|
|
7677
|
-
"name": "
|
|
7678
|
-
"type": "
|
|
9544
|
+
"name": "reduceOnly",
|
|
9545
|
+
"type": "u8"
|
|
7679
9546
|
},
|
|
7680
9547
|
{
|
|
7681
|
-
"name": "
|
|
7682
|
-
"type":
|
|
9548
|
+
"name": "padding1",
|
|
9549
|
+
"type": {
|
|
9550
|
+
"array": [
|
|
9551
|
+
"u8",
|
|
9552
|
+
3
|
|
9553
|
+
]
|
|
9554
|
+
}
|
|
7683
9555
|
},
|
|
7684
9556
|
{
|
|
7685
|
-
"name": "
|
|
9557
|
+
"name": "currentMaintenanceUsers",
|
|
9558
|
+
"type": "u32"
|
|
9559
|
+
},
|
|
9560
|
+
{
|
|
9561
|
+
"name": "padding2",
|
|
7686
9562
|
"type": {
|
|
7687
|
-
"
|
|
9563
|
+
"array": [
|
|
9564
|
+
"u8",
|
|
9565
|
+
24
|
|
9566
|
+
]
|
|
7688
9567
|
}
|
|
9568
|
+
}
|
|
9569
|
+
]
|
|
9570
|
+
}
|
|
9571
|
+
},
|
|
9572
|
+
{
|
|
9573
|
+
"name": "IfRebalanceConfig",
|
|
9574
|
+
"type": {
|
|
9575
|
+
"kind": "struct",
|
|
9576
|
+
"fields": [
|
|
9577
|
+
{
|
|
9578
|
+
"name": "pubkey",
|
|
9579
|
+
"type": "publicKey"
|
|
9580
|
+
},
|
|
9581
|
+
{
|
|
9582
|
+
"name": "totalInAmount",
|
|
9583
|
+
"docs": [
|
|
9584
|
+
"total amount to be sold"
|
|
9585
|
+
],
|
|
9586
|
+
"type": "u64"
|
|
9587
|
+
},
|
|
9588
|
+
{
|
|
9589
|
+
"name": "currentInAmount",
|
|
9590
|
+
"docs": [
|
|
9591
|
+
"amount already sold"
|
|
9592
|
+
],
|
|
9593
|
+
"type": "u64"
|
|
9594
|
+
},
|
|
9595
|
+
{
|
|
9596
|
+
"name": "currentOutAmount",
|
|
9597
|
+
"docs": [
|
|
9598
|
+
"amount already bought"
|
|
9599
|
+
],
|
|
9600
|
+
"type": "u64"
|
|
9601
|
+
},
|
|
9602
|
+
{
|
|
9603
|
+
"name": "currentOutAmountTransferred",
|
|
9604
|
+
"docs": [
|
|
9605
|
+
"amount already transferred to revenue pool"
|
|
9606
|
+
],
|
|
9607
|
+
"type": "u64"
|
|
9608
|
+
},
|
|
9609
|
+
{
|
|
9610
|
+
"name": "currentInAmountSinceLastTransfer",
|
|
9611
|
+
"docs": [
|
|
9612
|
+
"amount already bought in epoch"
|
|
9613
|
+
],
|
|
9614
|
+
"type": "u64"
|
|
9615
|
+
},
|
|
9616
|
+
{
|
|
9617
|
+
"name": "epochStartTs",
|
|
9618
|
+
"docs": [
|
|
9619
|
+
"start time of epoch"
|
|
9620
|
+
],
|
|
9621
|
+
"type": "i64"
|
|
9622
|
+
},
|
|
9623
|
+
{
|
|
9624
|
+
"name": "epochInAmount",
|
|
9625
|
+
"docs": [
|
|
9626
|
+
"amount already bought in epoch"
|
|
9627
|
+
],
|
|
9628
|
+
"type": "u64"
|
|
9629
|
+
},
|
|
9630
|
+
{
|
|
9631
|
+
"name": "epochMaxInAmount",
|
|
9632
|
+
"docs": [
|
|
9633
|
+
"max amount to swap in epoch"
|
|
9634
|
+
],
|
|
9635
|
+
"type": "u64"
|
|
9636
|
+
},
|
|
9637
|
+
{
|
|
9638
|
+
"name": "epochDuration",
|
|
9639
|
+
"docs": [
|
|
9640
|
+
"duration of epoch"
|
|
9641
|
+
],
|
|
9642
|
+
"type": "i64"
|
|
9643
|
+
},
|
|
9644
|
+
{
|
|
9645
|
+
"name": "outMarketIndex",
|
|
9646
|
+
"docs": [
|
|
9647
|
+
"market index to sell"
|
|
9648
|
+
],
|
|
9649
|
+
"type": "u16"
|
|
9650
|
+
},
|
|
9651
|
+
{
|
|
9652
|
+
"name": "inMarketIndex",
|
|
9653
|
+
"docs": [
|
|
9654
|
+
"market index to buy"
|
|
9655
|
+
],
|
|
9656
|
+
"type": "u16"
|
|
9657
|
+
},
|
|
9658
|
+
{
|
|
9659
|
+
"name": "maxSlippageBps",
|
|
9660
|
+
"type": "u16"
|
|
9661
|
+
},
|
|
9662
|
+
{
|
|
9663
|
+
"name": "swapMode",
|
|
9664
|
+
"type": "u8"
|
|
7689
9665
|
},
|
|
7690
9666
|
{
|
|
7691
9667
|
"name": "status",
|
|
9668
|
+
"type": "u8"
|
|
9669
|
+
},
|
|
9670
|
+
{
|
|
9671
|
+
"name": "padding2",
|
|
7692
9672
|
"type": {
|
|
7693
|
-
"
|
|
9673
|
+
"array": [
|
|
9674
|
+
"u8",
|
|
9675
|
+
32
|
|
9676
|
+
]
|
|
7694
9677
|
}
|
|
9678
|
+
}
|
|
9679
|
+
]
|
|
9680
|
+
}
|
|
9681
|
+
},
|
|
9682
|
+
{
|
|
9683
|
+
"name": "InsuranceFundStake",
|
|
9684
|
+
"type": {
|
|
9685
|
+
"kind": "struct",
|
|
9686
|
+
"fields": [
|
|
9687
|
+
{
|
|
9688
|
+
"name": "authority",
|
|
9689
|
+
"type": "publicKey"
|
|
9690
|
+
},
|
|
9691
|
+
{
|
|
9692
|
+
"name": "ifShares",
|
|
9693
|
+
"type": "u128"
|
|
9694
|
+
},
|
|
9695
|
+
{
|
|
9696
|
+
"name": "lastWithdrawRequestShares",
|
|
9697
|
+
"type": "u128"
|
|
9698
|
+
},
|
|
9699
|
+
{
|
|
9700
|
+
"name": "ifBase",
|
|
9701
|
+
"type": "u128"
|
|
9702
|
+
},
|
|
9703
|
+
{
|
|
9704
|
+
"name": "lastValidTs",
|
|
9705
|
+
"type": "i64"
|
|
9706
|
+
},
|
|
9707
|
+
{
|
|
9708
|
+
"name": "lastWithdrawRequestValue",
|
|
9709
|
+
"type": "u64"
|
|
9710
|
+
},
|
|
9711
|
+
{
|
|
9712
|
+
"name": "lastWithdrawRequestTs",
|
|
9713
|
+
"type": "i64"
|
|
9714
|
+
},
|
|
9715
|
+
{
|
|
9716
|
+
"name": "costBasis",
|
|
9717
|
+
"type": "i64"
|
|
9718
|
+
},
|
|
9719
|
+
{
|
|
9720
|
+
"name": "marketIndex",
|
|
9721
|
+
"type": "u16"
|
|
7695
9722
|
},
|
|
7696
9723
|
{
|
|
7697
9724
|
"name": "padding",
|
|
7698
9725
|
"type": {
|
|
7699
9726
|
"array": [
|
|
7700
9727
|
"u8",
|
|
9728
|
+
14
|
|
9729
|
+
]
|
|
9730
|
+
}
|
|
9731
|
+
}
|
|
9732
|
+
]
|
|
9733
|
+
}
|
|
9734
|
+
},
|
|
9735
|
+
{
|
|
9736
|
+
"name": "ProtocolIfSharesTransferConfig",
|
|
9737
|
+
"type": {
|
|
9738
|
+
"kind": "struct",
|
|
9739
|
+
"fields": [
|
|
9740
|
+
{
|
|
9741
|
+
"name": "whitelistedSigners",
|
|
9742
|
+
"type": {
|
|
9743
|
+
"array": [
|
|
9744
|
+
"publicKey",
|
|
7701
9745
|
4
|
|
7702
9746
|
]
|
|
7703
9747
|
}
|
|
9748
|
+
},
|
|
9749
|
+
{
|
|
9750
|
+
"name": "maxTransferPerEpoch",
|
|
9751
|
+
"type": "u128"
|
|
9752
|
+
},
|
|
9753
|
+
{
|
|
9754
|
+
"name": "currentEpochTransfer",
|
|
9755
|
+
"type": "u128"
|
|
9756
|
+
},
|
|
9757
|
+
{
|
|
9758
|
+
"name": "nextEpochTs",
|
|
9759
|
+
"type": "i64"
|
|
9760
|
+
},
|
|
9761
|
+
{
|
|
9762
|
+
"name": "padding",
|
|
9763
|
+
"type": {
|
|
9764
|
+
"array": [
|
|
9765
|
+
"u128",
|
|
9766
|
+
8
|
|
9767
|
+
]
|
|
9768
|
+
}
|
|
7704
9769
|
}
|
|
7705
9770
|
]
|
|
7706
9771
|
}
|
|
7707
9772
|
},
|
|
7708
9773
|
{
|
|
7709
|
-
"name": "
|
|
9774
|
+
"name": "LPPool",
|
|
7710
9775
|
"type": {
|
|
7711
9776
|
"kind": "struct",
|
|
7712
9777
|
"fields": [
|
|
7713
9778
|
{
|
|
7714
|
-
"name": "pubkey",
|
|
7715
|
-
"
|
|
9779
|
+
"name": "pubkey",
|
|
9780
|
+
"docs": [
|
|
9781
|
+
"address of the vault."
|
|
9782
|
+
],
|
|
9783
|
+
"type": "publicKey"
|
|
9784
|
+
},
|
|
9785
|
+
{
|
|
9786
|
+
"name": "mint",
|
|
9787
|
+
"type": "publicKey"
|
|
9788
|
+
},
|
|
9789
|
+
{
|
|
9790
|
+
"name": "whitelistMint",
|
|
9791
|
+
"type": "publicKey"
|
|
9792
|
+
},
|
|
9793
|
+
{
|
|
9794
|
+
"name": "constituentTargetBase",
|
|
9795
|
+
"type": "publicKey"
|
|
9796
|
+
},
|
|
9797
|
+
{
|
|
9798
|
+
"name": "constituentCorrelations",
|
|
9799
|
+
"type": "publicKey"
|
|
9800
|
+
},
|
|
9801
|
+
{
|
|
9802
|
+
"name": "maxAum",
|
|
9803
|
+
"docs": [
|
|
9804
|
+
"The current number of VaultConstituents in the vault, each constituent is pda(LPPool.address, constituent_index)",
|
|
9805
|
+
"which constituent is the quote, receives revenue pool distributions. (maybe this should just be implied idx 0)",
|
|
9806
|
+
"pub quote_constituent_index: u16,",
|
|
9807
|
+
"QUOTE_PRECISION: Max AUM, Prohibit minting new DLP beyond this"
|
|
9808
|
+
],
|
|
9809
|
+
"type": "u128"
|
|
9810
|
+
},
|
|
9811
|
+
{
|
|
9812
|
+
"name": "lastAum",
|
|
9813
|
+
"docs": [
|
|
9814
|
+
"QUOTE_PRECISION: AUM of the vault in USD, updated lazily"
|
|
9815
|
+
],
|
|
9816
|
+
"type": "u128"
|
|
9817
|
+
},
|
|
9818
|
+
{
|
|
9819
|
+
"name": "cumulativeQuoteSentToPerpMarkets",
|
|
9820
|
+
"docs": [
|
|
9821
|
+
"QUOTE PRECISION: Cumulative quotes from settles"
|
|
9822
|
+
],
|
|
9823
|
+
"type": "u128"
|
|
7716
9824
|
},
|
|
7717
9825
|
{
|
|
7718
|
-
"name": "
|
|
7719
|
-
"type": "
|
|
9826
|
+
"name": "cumulativeQuoteReceivedFromPerpMarkets",
|
|
9827
|
+
"type": "u128"
|
|
7720
9828
|
},
|
|
7721
9829
|
{
|
|
7722
|
-
"name": "
|
|
7723
|
-
"
|
|
9830
|
+
"name": "totalMintRedeemFeesPaid",
|
|
9831
|
+
"docs": [
|
|
9832
|
+
"QUOTE_PRECISION: Total fees paid for minting and redeeming LP tokens"
|
|
9833
|
+
],
|
|
9834
|
+
"type": "i128"
|
|
7724
9835
|
},
|
|
7725
9836
|
{
|
|
7726
|
-
"name": "
|
|
7727
|
-
"
|
|
9837
|
+
"name": "lastAumSlot",
|
|
9838
|
+
"docs": [
|
|
9839
|
+
"timestamp of last AUM slot"
|
|
9840
|
+
],
|
|
9841
|
+
"type": "u64"
|
|
7728
9842
|
},
|
|
7729
9843
|
{
|
|
7730
|
-
"name": "
|
|
7731
|
-
"type": "
|
|
9844
|
+
"name": "maxSettleQuoteAmount",
|
|
9845
|
+
"type": "u64"
|
|
7732
9846
|
},
|
|
7733
9847
|
{
|
|
7734
|
-
"name": "
|
|
7735
|
-
"
|
|
9848
|
+
"name": "padding",
|
|
9849
|
+
"docs": [
|
|
9850
|
+
"timestamp of last vAMM revenue rebalance"
|
|
9851
|
+
],
|
|
9852
|
+
"type": "u64"
|
|
7736
9853
|
},
|
|
7737
9854
|
{
|
|
7738
|
-
"name": "
|
|
7739
|
-
"
|
|
9855
|
+
"name": "mintRedeemId",
|
|
9856
|
+
"docs": [
|
|
9857
|
+
"Every mint/redeem has a monotonically increasing id. This is the next id to use"
|
|
9858
|
+
],
|
|
9859
|
+
"type": "u64"
|
|
7740
9860
|
},
|
|
7741
9861
|
{
|
|
7742
|
-
"name": "
|
|
7743
|
-
"type": "
|
|
9862
|
+
"name": "settleId",
|
|
9863
|
+
"type": "u64"
|
|
7744
9864
|
},
|
|
7745
9865
|
{
|
|
7746
|
-
"name": "
|
|
7747
|
-
"
|
|
9866
|
+
"name": "minMintFee",
|
|
9867
|
+
"docs": [
|
|
9868
|
+
"PERCENTAGE_PRECISION"
|
|
9869
|
+
],
|
|
9870
|
+
"type": "i64"
|
|
7748
9871
|
},
|
|
7749
9872
|
{
|
|
7750
|
-
"name": "
|
|
7751
|
-
"type": "
|
|
9873
|
+
"name": "tokenSupply",
|
|
9874
|
+
"type": "u64"
|
|
7752
9875
|
},
|
|
7753
9876
|
{
|
|
7754
|
-
"name": "
|
|
9877
|
+
"name": "volatility",
|
|
7755
9878
|
"type": "u64"
|
|
7756
9879
|
},
|
|
7757
9880
|
{
|
|
7758
|
-
"name": "
|
|
9881
|
+
"name": "constituents",
|
|
7759
9882
|
"type": "u16"
|
|
7760
9883
|
},
|
|
7761
9884
|
{
|
|
7762
|
-
"name": "
|
|
7763
|
-
"type":
|
|
7764
|
-
"defined": "SpotFulfillmentType"
|
|
7765
|
-
}
|
|
9885
|
+
"name": "quoteConsituentIndex",
|
|
9886
|
+
"type": "u16"
|
|
7766
9887
|
},
|
|
7767
9888
|
{
|
|
7768
|
-
"name": "
|
|
7769
|
-
"type":
|
|
7770
|
-
"defined": "SpotFulfillmentConfigStatus"
|
|
7771
|
-
}
|
|
9889
|
+
"name": "bump",
|
|
9890
|
+
"type": "u8"
|
|
7772
9891
|
},
|
|
7773
9892
|
{
|
|
7774
|
-
"name": "
|
|
7775
|
-
"type":
|
|
7776
|
-
"array": [
|
|
7777
|
-
"u8",
|
|
7778
|
-
4
|
|
7779
|
-
]
|
|
7780
|
-
}
|
|
7781
|
-
}
|
|
7782
|
-
]
|
|
7783
|
-
}
|
|
7784
|
-
},
|
|
7785
|
-
{
|
|
7786
|
-
"name": "HighLeverageModeConfig",
|
|
7787
|
-
"type": {
|
|
7788
|
-
"kind": "struct",
|
|
7789
|
-
"fields": [
|
|
7790
|
-
{
|
|
7791
|
-
"name": "maxUsers",
|
|
7792
|
-
"type": "u32"
|
|
9893
|
+
"name": "gammaExecution",
|
|
9894
|
+
"type": "u8"
|
|
7793
9895
|
},
|
|
7794
9896
|
{
|
|
7795
|
-
"name": "
|
|
7796
|
-
"type": "
|
|
9897
|
+
"name": "xi",
|
|
9898
|
+
"type": "u8"
|
|
7797
9899
|
},
|
|
7798
9900
|
{
|
|
7799
|
-
"name": "
|
|
9901
|
+
"name": "targetOracleDelayFeeBpsPer10Slots",
|
|
7800
9902
|
"type": "u8"
|
|
7801
9903
|
},
|
|
7802
9904
|
{
|
|
7803
|
-
"name": "
|
|
7804
|
-
"type":
|
|
7805
|
-
"array": [
|
|
7806
|
-
"u8",
|
|
7807
|
-
3
|
|
7808
|
-
]
|
|
7809
|
-
}
|
|
9905
|
+
"name": "targetPositionDelayFeeBpsPer10Slots",
|
|
9906
|
+
"type": "u8"
|
|
7810
9907
|
},
|
|
7811
9908
|
{
|
|
7812
|
-
"name": "
|
|
7813
|
-
"type": "
|
|
9909
|
+
"name": "lpPoolId",
|
|
9910
|
+
"type": "u8"
|
|
7814
9911
|
},
|
|
7815
9912
|
{
|
|
7816
|
-
"name": "
|
|
9913
|
+
"name": "padding",
|
|
7817
9914
|
"type": {
|
|
7818
9915
|
"array": [
|
|
7819
9916
|
"u8",
|
|
7820
|
-
|
|
9917
|
+
174
|
|
7821
9918
|
]
|
|
7822
9919
|
}
|
|
7823
9920
|
}
|
|
@@ -7825,97 +9922,173 @@
|
|
|
7825
9922
|
}
|
|
7826
9923
|
},
|
|
7827
9924
|
{
|
|
7828
|
-
"name": "
|
|
9925
|
+
"name": "Constituent",
|
|
7829
9926
|
"type": {
|
|
7830
9927
|
"kind": "struct",
|
|
7831
9928
|
"fields": [
|
|
7832
9929
|
{
|
|
7833
9930
|
"name": "pubkey",
|
|
9931
|
+
"docs": [
|
|
9932
|
+
"address of the constituent"
|
|
9933
|
+
],
|
|
7834
9934
|
"type": "publicKey"
|
|
7835
9935
|
},
|
|
7836
9936
|
{
|
|
7837
|
-
"name": "
|
|
9937
|
+
"name": "mint",
|
|
9938
|
+
"type": "publicKey"
|
|
9939
|
+
},
|
|
9940
|
+
{
|
|
9941
|
+
"name": "lpPool",
|
|
9942
|
+
"type": "publicKey"
|
|
9943
|
+
},
|
|
9944
|
+
{
|
|
9945
|
+
"name": "vault",
|
|
9946
|
+
"type": "publicKey"
|
|
9947
|
+
},
|
|
9948
|
+
{
|
|
9949
|
+
"name": "totalSwapFees",
|
|
7838
9950
|
"docs": [
|
|
7839
|
-
"total
|
|
9951
|
+
"total fees received by the constituent. Positive = fees received, Negative = fees paid"
|
|
7840
9952
|
],
|
|
7841
|
-
"type": "
|
|
9953
|
+
"type": "i128"
|
|
7842
9954
|
},
|
|
7843
9955
|
{
|
|
7844
|
-
"name": "
|
|
9956
|
+
"name": "spotBalance",
|
|
7845
9957
|
"docs": [
|
|
7846
|
-
"
|
|
9958
|
+
"spot borrow-lend balance for constituent"
|
|
7847
9959
|
],
|
|
7848
|
-
"type":
|
|
9960
|
+
"type": {
|
|
9961
|
+
"defined": "ConstituentSpotBalance"
|
|
9962
|
+
}
|
|
7849
9963
|
},
|
|
7850
9964
|
{
|
|
7851
|
-
"name": "
|
|
9965
|
+
"name": "lastSpotBalanceTokenAmount",
|
|
9966
|
+
"type": "i64"
|
|
9967
|
+
},
|
|
9968
|
+
{
|
|
9969
|
+
"name": "cumulativeSpotInterestAccruedTokenAmount",
|
|
9970
|
+
"type": "i64"
|
|
9971
|
+
},
|
|
9972
|
+
{
|
|
9973
|
+
"name": "maxWeightDeviation",
|
|
7852
9974
|
"docs": [
|
|
7853
|
-
"
|
|
9975
|
+
"max deviation from target_weight allowed for the constituent",
|
|
9976
|
+
"precision: PERCENTAGE_PRECISION"
|
|
7854
9977
|
],
|
|
7855
|
-
"type": "
|
|
9978
|
+
"type": "i64"
|
|
7856
9979
|
},
|
|
7857
9980
|
{
|
|
7858
|
-
"name": "
|
|
9981
|
+
"name": "swapFeeMin",
|
|
7859
9982
|
"docs": [
|
|
7860
|
-
"
|
|
9983
|
+
"min fee charged on swaps to/from this constituent",
|
|
9984
|
+
"precision: PERCENTAGE_PRECISION"
|
|
7861
9985
|
],
|
|
7862
|
-
"type": "
|
|
9986
|
+
"type": "i64"
|
|
7863
9987
|
},
|
|
7864
9988
|
{
|
|
7865
|
-
"name": "
|
|
9989
|
+
"name": "swapFeeMax",
|
|
7866
9990
|
"docs": [
|
|
7867
|
-
"
|
|
9991
|
+
"max fee charged on swaps to/from this constituent",
|
|
9992
|
+
"precision: PERCENTAGE_PRECISION"
|
|
7868
9993
|
],
|
|
7869
|
-
"type": "
|
|
9994
|
+
"type": "i64"
|
|
7870
9995
|
},
|
|
7871
9996
|
{
|
|
7872
|
-
"name": "
|
|
9997
|
+
"name": "maxBorrowTokenAmount",
|
|
7873
9998
|
"docs": [
|
|
7874
|
-
"
|
|
9999
|
+
"Max Borrow amount:",
|
|
10000
|
+
"precision: token precision"
|
|
7875
10001
|
],
|
|
7876
|
-
"type": "
|
|
10002
|
+
"type": "u64"
|
|
7877
10003
|
},
|
|
7878
10004
|
{
|
|
7879
|
-
"name": "
|
|
10005
|
+
"name": "vaultTokenBalance",
|
|
7880
10006
|
"docs": [
|
|
7881
|
-
"
|
|
10007
|
+
"ata token balance in token precision"
|
|
7882
10008
|
],
|
|
7883
10009
|
"type": "u64"
|
|
7884
10010
|
},
|
|
7885
10011
|
{
|
|
7886
|
-
"name": "
|
|
10012
|
+
"name": "lastOraclePrice",
|
|
10013
|
+
"type": "i64"
|
|
10014
|
+
},
|
|
10015
|
+
{
|
|
10016
|
+
"name": "lastOracleSlot",
|
|
10017
|
+
"type": "u64"
|
|
10018
|
+
},
|
|
10019
|
+
{
|
|
10020
|
+
"name": "oracleStalenessThreshold",
|
|
7887
10021
|
"docs": [
|
|
7888
|
-
"
|
|
10022
|
+
"Delay allowed for valid AUM calculation"
|
|
7889
10023
|
],
|
|
7890
10024
|
"type": "u64"
|
|
7891
10025
|
},
|
|
7892
10026
|
{
|
|
7893
|
-
"name": "
|
|
10027
|
+
"name": "flashLoanInitialTokenAmount",
|
|
10028
|
+
"type": "u64"
|
|
10029
|
+
},
|
|
10030
|
+
{
|
|
10031
|
+
"name": "nextSwapId",
|
|
7894
10032
|
"docs": [
|
|
7895
|
-
"
|
|
10033
|
+
"Every swap to/from this constituent has a monotonically increasing id. This is the next id to use"
|
|
7896
10034
|
],
|
|
7897
|
-
"type": "
|
|
10035
|
+
"type": "u64"
|
|
7898
10036
|
},
|
|
7899
10037
|
{
|
|
7900
|
-
"name": "
|
|
10038
|
+
"name": "derivativeWeight",
|
|
7901
10039
|
"docs": [
|
|
7902
|
-
"
|
|
10040
|
+
"percentable of derivatve weight to go to this specific derivative PERCENTAGE_PRECISION. Zero if no derivative weight"
|
|
7903
10041
|
],
|
|
7904
|
-
"type": "
|
|
10042
|
+
"type": "u64"
|
|
7905
10043
|
},
|
|
7906
10044
|
{
|
|
7907
|
-
"name": "
|
|
10045
|
+
"name": "volatility",
|
|
10046
|
+
"type": "u64"
|
|
10047
|
+
},
|
|
10048
|
+
{
|
|
10049
|
+
"name": "constituentDerivativeDepegThreshold",
|
|
10050
|
+
"type": "u64"
|
|
10051
|
+
},
|
|
10052
|
+
{
|
|
10053
|
+
"name": "constituentDerivativeIndex",
|
|
7908
10054
|
"docs": [
|
|
7909
|
-
"
|
|
10055
|
+
"The `constituent_index` of the parent constituent. -1 if it is a parent index",
|
|
10056
|
+
"Example: if in a pool with SOL (parent) and dSOL (derivative),",
|
|
10057
|
+
"SOL.constituent_index = 1, SOL.constituent_derivative_index = -1,",
|
|
10058
|
+
"dSOL.constituent_index = 2, dSOL.constituent_derivative_index = 1"
|
|
7910
10059
|
],
|
|
10060
|
+
"type": "i16"
|
|
10061
|
+
},
|
|
10062
|
+
{
|
|
10063
|
+
"name": "spotMarketIndex",
|
|
7911
10064
|
"type": "u16"
|
|
7912
10065
|
},
|
|
7913
10066
|
{
|
|
7914
|
-
"name": "
|
|
10067
|
+
"name": "constituentIndex",
|
|
7915
10068
|
"type": "u16"
|
|
7916
10069
|
},
|
|
7917
10070
|
{
|
|
7918
|
-
"name": "
|
|
10071
|
+
"name": "decimals",
|
|
10072
|
+
"type": "u8"
|
|
10073
|
+
},
|
|
10074
|
+
{
|
|
10075
|
+
"name": "bump",
|
|
10076
|
+
"type": "u8"
|
|
10077
|
+
},
|
|
10078
|
+
{
|
|
10079
|
+
"name": "vaultBump",
|
|
10080
|
+
"type": "u8"
|
|
10081
|
+
},
|
|
10082
|
+
{
|
|
10083
|
+
"name": "gammaInventory",
|
|
10084
|
+
"type": "u8"
|
|
10085
|
+
},
|
|
10086
|
+
{
|
|
10087
|
+
"name": "gammaExecution",
|
|
10088
|
+
"type": "u8"
|
|
10089
|
+
},
|
|
10090
|
+
{
|
|
10091
|
+
"name": "xi",
|
|
7919
10092
|
"type": "u8"
|
|
7920
10093
|
},
|
|
7921
10094
|
{
|
|
@@ -7923,11 +10096,15 @@
|
|
|
7923
10096
|
"type": "u8"
|
|
7924
10097
|
},
|
|
7925
10098
|
{
|
|
7926
|
-
"name": "
|
|
10099
|
+
"name": "pausedOperations",
|
|
10100
|
+
"type": "u8"
|
|
10101
|
+
},
|
|
10102
|
+
{
|
|
10103
|
+
"name": "padding",
|
|
7927
10104
|
"type": {
|
|
7928
10105
|
"array": [
|
|
7929
10106
|
"u8",
|
|
7930
|
-
|
|
10107
|
+
162
|
|
7931
10108
|
]
|
|
7932
10109
|
}
|
|
7933
10110
|
}
|
|
@@ -7935,92 +10112,98 @@
|
|
|
7935
10112
|
}
|
|
7936
10113
|
},
|
|
7937
10114
|
{
|
|
7938
|
-
"name": "
|
|
10115
|
+
"name": "AmmConstituentMapping",
|
|
7939
10116
|
"type": {
|
|
7940
10117
|
"kind": "struct",
|
|
7941
10118
|
"fields": [
|
|
7942
10119
|
{
|
|
7943
|
-
"name": "
|
|
10120
|
+
"name": "lpPool",
|
|
7944
10121
|
"type": "publicKey"
|
|
7945
10122
|
},
|
|
7946
10123
|
{
|
|
7947
|
-
"name": "
|
|
7948
|
-
"type": "
|
|
7949
|
-
},
|
|
7950
|
-
{
|
|
7951
|
-
"name": "lastWithdrawRequestShares",
|
|
7952
|
-
"type": "u128"
|
|
7953
|
-
},
|
|
7954
|
-
{
|
|
7955
|
-
"name": "ifBase",
|
|
7956
|
-
"type": "u128"
|
|
7957
|
-
},
|
|
7958
|
-
{
|
|
7959
|
-
"name": "lastValidTs",
|
|
7960
|
-
"type": "i64"
|
|
10124
|
+
"name": "bump",
|
|
10125
|
+
"type": "u8"
|
|
7961
10126
|
},
|
|
7962
10127
|
{
|
|
7963
|
-
"name": "
|
|
7964
|
-
"type":
|
|
10128
|
+
"name": "padding",
|
|
10129
|
+
"type": {
|
|
10130
|
+
"array": [
|
|
10131
|
+
"u8",
|
|
10132
|
+
3
|
|
10133
|
+
]
|
|
10134
|
+
}
|
|
7965
10135
|
},
|
|
7966
10136
|
{
|
|
7967
|
-
"name": "
|
|
7968
|
-
"type":
|
|
7969
|
-
|
|
10137
|
+
"name": "weights",
|
|
10138
|
+
"type": {
|
|
10139
|
+
"vec": {
|
|
10140
|
+
"defined": "AmmConstituentDatum"
|
|
10141
|
+
}
|
|
10142
|
+
}
|
|
10143
|
+
}
|
|
10144
|
+
]
|
|
10145
|
+
}
|
|
10146
|
+
},
|
|
10147
|
+
{
|
|
10148
|
+
"name": "ConstituentTargetBase",
|
|
10149
|
+
"type": {
|
|
10150
|
+
"kind": "struct",
|
|
10151
|
+
"fields": [
|
|
7970
10152
|
{
|
|
7971
|
-
"name": "
|
|
7972
|
-
"type": "
|
|
10153
|
+
"name": "lpPool",
|
|
10154
|
+
"type": "publicKey"
|
|
7973
10155
|
},
|
|
7974
10156
|
{
|
|
7975
|
-
"name": "
|
|
7976
|
-
"type": "
|
|
10157
|
+
"name": "bump",
|
|
10158
|
+
"type": "u8"
|
|
7977
10159
|
},
|
|
7978
10160
|
{
|
|
7979
10161
|
"name": "padding",
|
|
7980
10162
|
"type": {
|
|
7981
10163
|
"array": [
|
|
7982
10164
|
"u8",
|
|
7983
|
-
|
|
10165
|
+
3
|
|
7984
10166
|
]
|
|
7985
10167
|
}
|
|
10168
|
+
},
|
|
10169
|
+
{
|
|
10170
|
+
"name": "targets",
|
|
10171
|
+
"type": {
|
|
10172
|
+
"vec": {
|
|
10173
|
+
"defined": "TargetsDatum"
|
|
10174
|
+
}
|
|
10175
|
+
}
|
|
7986
10176
|
}
|
|
7987
10177
|
]
|
|
7988
10178
|
}
|
|
7989
10179
|
},
|
|
7990
10180
|
{
|
|
7991
|
-
"name": "
|
|
10181
|
+
"name": "ConstituentCorrelations",
|
|
7992
10182
|
"type": {
|
|
7993
10183
|
"kind": "struct",
|
|
7994
10184
|
"fields": [
|
|
7995
10185
|
{
|
|
7996
|
-
"name": "
|
|
7997
|
-
"type":
|
|
7998
|
-
"array": [
|
|
7999
|
-
"publicKey",
|
|
8000
|
-
4
|
|
8001
|
-
]
|
|
8002
|
-
}
|
|
8003
|
-
},
|
|
8004
|
-
{
|
|
8005
|
-
"name": "maxTransferPerEpoch",
|
|
8006
|
-
"type": "u128"
|
|
8007
|
-
},
|
|
8008
|
-
{
|
|
8009
|
-
"name": "currentEpochTransfer",
|
|
8010
|
-
"type": "u128"
|
|
10186
|
+
"name": "lpPool",
|
|
10187
|
+
"type": "publicKey"
|
|
8011
10188
|
},
|
|
8012
10189
|
{
|
|
8013
|
-
"name": "
|
|
8014
|
-
"type": "
|
|
10190
|
+
"name": "bump",
|
|
10191
|
+
"type": "u8"
|
|
8015
10192
|
},
|
|
8016
10193
|
{
|
|
8017
10194
|
"name": "padding",
|
|
8018
10195
|
"type": {
|
|
8019
10196
|
"array": [
|
|
8020
|
-
"
|
|
8021
|
-
|
|
10197
|
+
"u8",
|
|
10198
|
+
3
|
|
8022
10199
|
]
|
|
8023
10200
|
}
|
|
10201
|
+
},
|
|
10202
|
+
{
|
|
10203
|
+
"name": "correlations",
|
|
10204
|
+
"type": {
|
|
10205
|
+
"vec": "i64"
|
|
10206
|
+
}
|
|
8024
10207
|
}
|
|
8025
10208
|
]
|
|
8026
10209
|
}
|
|
@@ -8343,19 +10526,35 @@
|
|
|
8343
10526
|
"type": "u8"
|
|
8344
10527
|
},
|
|
8345
10528
|
{
|
|
8346
|
-
"name": "
|
|
8347
|
-
"type": "
|
|
10529
|
+
"name": "lpFeeTransferScalar",
|
|
10530
|
+
"type": "u8"
|
|
10531
|
+
},
|
|
10532
|
+
{
|
|
10533
|
+
"name": "lpStatus",
|
|
10534
|
+
"type": "u8"
|
|
10535
|
+
},
|
|
10536
|
+
{
|
|
10537
|
+
"name": "lpPausedOperations",
|
|
10538
|
+
"type": "u8"
|
|
10539
|
+
},
|
|
10540
|
+
{
|
|
10541
|
+
"name": "lpExchangeFeeExcluscionScalar",
|
|
10542
|
+
"type": "u8"
|
|
8348
10543
|
},
|
|
8349
10544
|
{
|
|
8350
10545
|
"name": "lastFillPrice",
|
|
8351
10546
|
"type": "u64"
|
|
8352
10547
|
},
|
|
10548
|
+
{
|
|
10549
|
+
"name": "lpPoolId",
|
|
10550
|
+
"type": "u8"
|
|
10551
|
+
},
|
|
8353
10552
|
{
|
|
8354
10553
|
"name": "padding",
|
|
8355
10554
|
"type": {
|
|
8356
10555
|
"array": [
|
|
8357
10556
|
"u8",
|
|
8358
|
-
|
|
10557
|
+
23
|
|
8359
10558
|
]
|
|
8360
10559
|
}
|
|
8361
10560
|
}
|
|
@@ -9189,12 +11388,16 @@
|
|
|
9189
11388
|
"name": "featureBitFlags",
|
|
9190
11389
|
"type": "u8"
|
|
9191
11390
|
},
|
|
11391
|
+
{
|
|
11392
|
+
"name": "lpPoolFeatureBitFlags",
|
|
11393
|
+
"type": "u8"
|
|
11394
|
+
},
|
|
9192
11395
|
{
|
|
9193
11396
|
"name": "padding",
|
|
9194
11397
|
"type": {
|
|
9195
11398
|
"array": [
|
|
9196
11399
|
"u8",
|
|
9197
|
-
|
|
11400
|
+
8
|
|
9198
11401
|
]
|
|
9199
11402
|
}
|
|
9200
11403
|
}
|
|
@@ -9261,518 +11464,827 @@
|
|
|
9261
11464
|
}
|
|
9262
11465
|
},
|
|
9263
11466
|
{
|
|
9264
|
-
"name": "orders",
|
|
11467
|
+
"name": "orders",
|
|
11468
|
+
"docs": [
|
|
11469
|
+
"The user's orders"
|
|
11470
|
+
],
|
|
11471
|
+
"type": {
|
|
11472
|
+
"array": [
|
|
11473
|
+
{
|
|
11474
|
+
"defined": "Order"
|
|
11475
|
+
},
|
|
11476
|
+
32
|
|
11477
|
+
]
|
|
11478
|
+
}
|
|
11479
|
+
},
|
|
11480
|
+
{
|
|
11481
|
+
"name": "lastAddPerpLpSharesTs",
|
|
11482
|
+
"docs": [
|
|
11483
|
+
"The last time the user added perp lp positions"
|
|
11484
|
+
],
|
|
11485
|
+
"type": "i64"
|
|
11486
|
+
},
|
|
11487
|
+
{
|
|
11488
|
+
"name": "totalDeposits",
|
|
11489
|
+
"docs": [
|
|
11490
|
+
"The total values of deposits the user has made",
|
|
11491
|
+
"precision: QUOTE_PRECISION"
|
|
11492
|
+
],
|
|
11493
|
+
"type": "u64"
|
|
11494
|
+
},
|
|
11495
|
+
{
|
|
11496
|
+
"name": "totalWithdraws",
|
|
11497
|
+
"docs": [
|
|
11498
|
+
"The total values of withdrawals the user has made",
|
|
11499
|
+
"precision: QUOTE_PRECISION"
|
|
11500
|
+
],
|
|
11501
|
+
"type": "u64"
|
|
11502
|
+
},
|
|
11503
|
+
{
|
|
11504
|
+
"name": "totalSocialLoss",
|
|
11505
|
+
"docs": [
|
|
11506
|
+
"The total socialized loss the users has incurred upon the protocol",
|
|
11507
|
+
"precision: QUOTE_PRECISION"
|
|
11508
|
+
],
|
|
11509
|
+
"type": "u64"
|
|
11510
|
+
},
|
|
11511
|
+
{
|
|
11512
|
+
"name": "settledPerpPnl",
|
|
11513
|
+
"docs": [
|
|
11514
|
+
"Fees (taker fees, maker rebate, referrer reward, filler reward) and pnl for perps",
|
|
11515
|
+
"precision: QUOTE_PRECISION"
|
|
11516
|
+
],
|
|
11517
|
+
"type": "i64"
|
|
11518
|
+
},
|
|
11519
|
+
{
|
|
11520
|
+
"name": "cumulativeSpotFees",
|
|
11521
|
+
"docs": [
|
|
11522
|
+
"Fees (taker fees, maker rebate, filler reward) for spot",
|
|
11523
|
+
"precision: QUOTE_PRECISION"
|
|
11524
|
+
],
|
|
11525
|
+
"type": "i64"
|
|
11526
|
+
},
|
|
11527
|
+
{
|
|
11528
|
+
"name": "cumulativePerpFunding",
|
|
11529
|
+
"docs": [
|
|
11530
|
+
"Cumulative funding paid/received for perps",
|
|
11531
|
+
"precision: QUOTE_PRECISION"
|
|
11532
|
+
],
|
|
11533
|
+
"type": "i64"
|
|
11534
|
+
},
|
|
11535
|
+
{
|
|
11536
|
+
"name": "liquidationMarginFreed",
|
|
11537
|
+
"docs": [
|
|
11538
|
+
"The amount of margin freed during liquidation. Used to force the liquidation to occur over a period of time",
|
|
11539
|
+
"Defaults to zero when not being liquidated",
|
|
11540
|
+
"precision: QUOTE_PRECISION"
|
|
11541
|
+
],
|
|
11542
|
+
"type": "u64"
|
|
11543
|
+
},
|
|
11544
|
+
{
|
|
11545
|
+
"name": "lastActiveSlot",
|
|
11546
|
+
"docs": [
|
|
11547
|
+
"The last slot a user was active. Used to determine if a user is idle"
|
|
11548
|
+
],
|
|
11549
|
+
"type": "u64"
|
|
11550
|
+
},
|
|
11551
|
+
{
|
|
11552
|
+
"name": "nextOrderId",
|
|
11553
|
+
"docs": [
|
|
11554
|
+
"Every user order has an order id. This is the next order id to be used"
|
|
11555
|
+
],
|
|
11556
|
+
"type": "u32"
|
|
11557
|
+
},
|
|
11558
|
+
{
|
|
11559
|
+
"name": "maxMarginRatio",
|
|
11560
|
+
"docs": [
|
|
11561
|
+
"Custom max initial margin ratio for the user"
|
|
11562
|
+
],
|
|
11563
|
+
"type": "u32"
|
|
11564
|
+
},
|
|
11565
|
+
{
|
|
11566
|
+
"name": "nextLiquidationId",
|
|
11567
|
+
"docs": [
|
|
11568
|
+
"The next liquidation id to be used for user"
|
|
11569
|
+
],
|
|
11570
|
+
"type": "u16"
|
|
11571
|
+
},
|
|
11572
|
+
{
|
|
11573
|
+
"name": "subAccountId",
|
|
11574
|
+
"docs": [
|
|
11575
|
+
"The sub account id for this user"
|
|
11576
|
+
],
|
|
11577
|
+
"type": "u16"
|
|
11578
|
+
},
|
|
11579
|
+
{
|
|
11580
|
+
"name": "status",
|
|
11581
|
+
"docs": [
|
|
11582
|
+
"Whether the user is active, being liquidated or bankrupt"
|
|
11583
|
+
],
|
|
11584
|
+
"type": "u8"
|
|
11585
|
+
},
|
|
11586
|
+
{
|
|
11587
|
+
"name": "isMarginTradingEnabled",
|
|
11588
|
+
"docs": [
|
|
11589
|
+
"Whether the user has enabled margin trading"
|
|
11590
|
+
],
|
|
11591
|
+
"type": "bool"
|
|
11592
|
+
},
|
|
11593
|
+
{
|
|
11594
|
+
"name": "idle",
|
|
11595
|
+
"docs": [
|
|
11596
|
+
"User is idle if they haven't interacted with the protocol in 1 week and they have no orders, perp positions or borrows",
|
|
11597
|
+
"Off-chain keeper bots can ignore users that are idle"
|
|
11598
|
+
],
|
|
11599
|
+
"type": "bool"
|
|
11600
|
+
},
|
|
11601
|
+
{
|
|
11602
|
+
"name": "openOrders",
|
|
11603
|
+
"docs": [
|
|
11604
|
+
"number of open orders"
|
|
11605
|
+
],
|
|
11606
|
+
"type": "u8"
|
|
11607
|
+
},
|
|
11608
|
+
{
|
|
11609
|
+
"name": "hasOpenOrder",
|
|
11610
|
+
"docs": [
|
|
11611
|
+
"Whether or not user has open order"
|
|
11612
|
+
],
|
|
11613
|
+
"type": "bool"
|
|
11614
|
+
},
|
|
11615
|
+
{
|
|
11616
|
+
"name": "openAuctions",
|
|
11617
|
+
"docs": [
|
|
11618
|
+
"number of open orders with auction"
|
|
11619
|
+
],
|
|
11620
|
+
"type": "u8"
|
|
11621
|
+
},
|
|
11622
|
+
{
|
|
11623
|
+
"name": "hasOpenAuction",
|
|
11624
|
+
"docs": [
|
|
11625
|
+
"Whether or not user has open order with auction"
|
|
11626
|
+
],
|
|
11627
|
+
"type": "bool"
|
|
11628
|
+
},
|
|
11629
|
+
{
|
|
11630
|
+
"name": "marginMode",
|
|
11631
|
+
"type": {
|
|
11632
|
+
"defined": "MarginMode"
|
|
11633
|
+
}
|
|
11634
|
+
},
|
|
11635
|
+
{
|
|
11636
|
+
"name": "poolId",
|
|
11637
|
+
"type": "u8"
|
|
11638
|
+
},
|
|
11639
|
+
{
|
|
11640
|
+
"name": "padding1",
|
|
11641
|
+
"type": {
|
|
11642
|
+
"array": [
|
|
11643
|
+
"u8",
|
|
11644
|
+
3
|
|
11645
|
+
]
|
|
11646
|
+
}
|
|
11647
|
+
},
|
|
11648
|
+
{
|
|
11649
|
+
"name": "lastFuelBonusUpdateTs",
|
|
11650
|
+
"type": "u32"
|
|
11651
|
+
},
|
|
11652
|
+
{
|
|
11653
|
+
"name": "padding",
|
|
11654
|
+
"type": {
|
|
11655
|
+
"array": [
|
|
11656
|
+
"u8",
|
|
11657
|
+
12
|
|
11658
|
+
]
|
|
11659
|
+
}
|
|
11660
|
+
}
|
|
11661
|
+
]
|
|
11662
|
+
}
|
|
11663
|
+
},
|
|
11664
|
+
{
|
|
11665
|
+
"name": "UserStats",
|
|
11666
|
+
"type": {
|
|
11667
|
+
"kind": "struct",
|
|
11668
|
+
"fields": [
|
|
11669
|
+
{
|
|
11670
|
+
"name": "authority",
|
|
11671
|
+
"docs": [
|
|
11672
|
+
"The authority for all of a users sub accounts"
|
|
11673
|
+
],
|
|
11674
|
+
"type": "publicKey"
|
|
11675
|
+
},
|
|
11676
|
+
{
|
|
11677
|
+
"name": "referrer",
|
|
9265
11678
|
"docs": [
|
|
9266
|
-
"The user
|
|
11679
|
+
"The address that referred this user"
|
|
11680
|
+
],
|
|
11681
|
+
"type": "publicKey"
|
|
11682
|
+
},
|
|
11683
|
+
{
|
|
11684
|
+
"name": "fees",
|
|
11685
|
+
"docs": [
|
|
11686
|
+
"Stats on the fees paid by the user"
|
|
9267
11687
|
],
|
|
9268
11688
|
"type": {
|
|
9269
|
-
"
|
|
9270
|
-
{
|
|
9271
|
-
"defined": "Order"
|
|
9272
|
-
},
|
|
9273
|
-
32
|
|
9274
|
-
]
|
|
11689
|
+
"defined": "UserFees"
|
|
9275
11690
|
}
|
|
9276
11691
|
},
|
|
9277
11692
|
{
|
|
9278
|
-
"name": "
|
|
11693
|
+
"name": "nextEpochTs",
|
|
9279
11694
|
"docs": [
|
|
9280
|
-
"The
|
|
11695
|
+
"The timestamp of the next epoch",
|
|
11696
|
+
"Epoch is used to limit referrer rewards earned in single epoch"
|
|
9281
11697
|
],
|
|
9282
11698
|
"type": "i64"
|
|
9283
11699
|
},
|
|
9284
11700
|
{
|
|
9285
|
-
"name": "
|
|
11701
|
+
"name": "makerVolume30d",
|
|
9286
11702
|
"docs": [
|
|
9287
|
-
"
|
|
11703
|
+
"Rolling 30day maker volume for user",
|
|
9288
11704
|
"precision: QUOTE_PRECISION"
|
|
9289
11705
|
],
|
|
9290
11706
|
"type": "u64"
|
|
9291
11707
|
},
|
|
9292
11708
|
{
|
|
9293
|
-
"name": "
|
|
11709
|
+
"name": "takerVolume30d",
|
|
9294
11710
|
"docs": [
|
|
9295
|
-
"
|
|
11711
|
+
"Rolling 30day taker volume for user",
|
|
9296
11712
|
"precision: QUOTE_PRECISION"
|
|
9297
11713
|
],
|
|
9298
11714
|
"type": "u64"
|
|
9299
11715
|
},
|
|
9300
11716
|
{
|
|
9301
|
-
"name": "
|
|
11717
|
+
"name": "fillerVolume30d",
|
|
9302
11718
|
"docs": [
|
|
9303
|
-
"
|
|
11719
|
+
"Rolling 30day filler volume for user",
|
|
9304
11720
|
"precision: QUOTE_PRECISION"
|
|
9305
11721
|
],
|
|
9306
11722
|
"type": "u64"
|
|
9307
11723
|
},
|
|
9308
11724
|
{
|
|
9309
|
-
"name": "
|
|
11725
|
+
"name": "lastMakerVolume30dTs",
|
|
9310
11726
|
"docs": [
|
|
9311
|
-
"
|
|
9312
|
-
"precision: QUOTE_PRECISION"
|
|
11727
|
+
"last time the maker volume was updated"
|
|
9313
11728
|
],
|
|
9314
11729
|
"type": "i64"
|
|
9315
11730
|
},
|
|
9316
11731
|
{
|
|
9317
|
-
"name": "
|
|
11732
|
+
"name": "lastTakerVolume30dTs",
|
|
9318
11733
|
"docs": [
|
|
9319
|
-
"
|
|
9320
|
-
"precision: QUOTE_PRECISION"
|
|
11734
|
+
"last time the taker volume was updated"
|
|
9321
11735
|
],
|
|
9322
11736
|
"type": "i64"
|
|
9323
11737
|
},
|
|
9324
11738
|
{
|
|
9325
|
-
"name": "
|
|
11739
|
+
"name": "lastFillerVolume30dTs",
|
|
9326
11740
|
"docs": [
|
|
9327
|
-
"
|
|
9328
|
-
"precision: QUOTE_PRECISION"
|
|
11741
|
+
"last time the filler volume was updated"
|
|
9329
11742
|
],
|
|
9330
11743
|
"type": "i64"
|
|
9331
11744
|
},
|
|
9332
11745
|
{
|
|
9333
|
-
"name": "
|
|
11746
|
+
"name": "ifStakedQuoteAssetAmount",
|
|
9334
11747
|
"docs": [
|
|
9335
|
-
"The amount of
|
|
9336
|
-
"Defaults to zero when not being liquidated",
|
|
9337
|
-
"precision: QUOTE_PRECISION"
|
|
11748
|
+
"The amount of tokens staked in the quote spot markets if"
|
|
9338
11749
|
],
|
|
9339
11750
|
"type": "u64"
|
|
9340
11751
|
},
|
|
9341
11752
|
{
|
|
9342
|
-
"name": "
|
|
11753
|
+
"name": "numberOfSubAccounts",
|
|
9343
11754
|
"docs": [
|
|
9344
|
-
"The
|
|
11755
|
+
"The current number of sub accounts"
|
|
9345
11756
|
],
|
|
9346
|
-
"type": "
|
|
11757
|
+
"type": "u16"
|
|
9347
11758
|
},
|
|
9348
11759
|
{
|
|
9349
|
-
"name": "
|
|
11760
|
+
"name": "numberOfSubAccountsCreated",
|
|
9350
11761
|
"docs": [
|
|
9351
|
-
"
|
|
11762
|
+
"The number of sub accounts created. Can be greater than the number of sub accounts if user",
|
|
11763
|
+
"has deleted sub accounts"
|
|
9352
11764
|
],
|
|
9353
|
-
"type": "
|
|
11765
|
+
"type": "u16"
|
|
9354
11766
|
},
|
|
9355
11767
|
{
|
|
9356
|
-
"name": "
|
|
11768
|
+
"name": "referrerStatus",
|
|
9357
11769
|
"docs": [
|
|
9358
|
-
"
|
|
11770
|
+
"Flags for referrer status:",
|
|
11771
|
+
"First bit (LSB): 1 if user is a referrer, 0 otherwise",
|
|
11772
|
+
"Second bit: 1 if user was referred, 0 otherwise"
|
|
9359
11773
|
],
|
|
9360
|
-
"type": "
|
|
11774
|
+
"type": "u8"
|
|
9361
11775
|
},
|
|
9362
11776
|
{
|
|
9363
|
-
"name": "
|
|
11777
|
+
"name": "disableUpdatePerpBidAskTwap",
|
|
11778
|
+
"type": "bool"
|
|
11779
|
+
},
|
|
11780
|
+
{
|
|
11781
|
+
"name": "padding1",
|
|
11782
|
+
"type": {
|
|
11783
|
+
"array": [
|
|
11784
|
+
"u8",
|
|
11785
|
+
1
|
|
11786
|
+
]
|
|
11787
|
+
}
|
|
11788
|
+
},
|
|
11789
|
+
{
|
|
11790
|
+
"name": "fuelOverflowStatus",
|
|
9364
11791
|
"docs": [
|
|
9365
|
-
"
|
|
11792
|
+
"whether the user has a FuelOverflow account"
|
|
9366
11793
|
],
|
|
9367
|
-
"type": "
|
|
11794
|
+
"type": "u8"
|
|
9368
11795
|
},
|
|
9369
11796
|
{
|
|
9370
|
-
"name": "
|
|
11797
|
+
"name": "fuelInsurance",
|
|
9371
11798
|
"docs": [
|
|
9372
|
-
"
|
|
11799
|
+
"accumulated fuel for token amounts of insurance"
|
|
9373
11800
|
],
|
|
9374
|
-
"type": "
|
|
11801
|
+
"type": "u32"
|
|
9375
11802
|
},
|
|
9376
11803
|
{
|
|
9377
|
-
"name": "
|
|
11804
|
+
"name": "fuelDeposits",
|
|
9378
11805
|
"docs": [
|
|
9379
|
-
"
|
|
11806
|
+
"accumulated fuel for notional of deposits"
|
|
9380
11807
|
],
|
|
9381
|
-
"type": "
|
|
11808
|
+
"type": "u32"
|
|
9382
11809
|
},
|
|
9383
11810
|
{
|
|
9384
|
-
"name": "
|
|
11811
|
+
"name": "fuelBorrows",
|
|
9385
11812
|
"docs": [
|
|
9386
|
-
"
|
|
11813
|
+
"accumulate fuel bonus for notional of borrows"
|
|
9387
11814
|
],
|
|
9388
|
-
"type": "
|
|
11815
|
+
"type": "u32"
|
|
9389
11816
|
},
|
|
9390
11817
|
{
|
|
9391
|
-
"name": "
|
|
11818
|
+
"name": "fuelPositions",
|
|
9392
11819
|
"docs": [
|
|
9393
|
-
"
|
|
9394
|
-
"Off-chain keeper bots can ignore users that are idle"
|
|
11820
|
+
"accumulated fuel for perp open interest"
|
|
9395
11821
|
],
|
|
9396
|
-
"type": "
|
|
11822
|
+
"type": "u32"
|
|
9397
11823
|
},
|
|
9398
11824
|
{
|
|
9399
|
-
"name": "
|
|
11825
|
+
"name": "fuelTaker",
|
|
9400
11826
|
"docs": [
|
|
9401
|
-
"
|
|
11827
|
+
"accumulate fuel bonus for taker volume"
|
|
9402
11828
|
],
|
|
9403
|
-
"type": "
|
|
11829
|
+
"type": "u32"
|
|
9404
11830
|
},
|
|
9405
11831
|
{
|
|
9406
|
-
"name": "
|
|
11832
|
+
"name": "fuelMaker",
|
|
9407
11833
|
"docs": [
|
|
9408
|
-
"
|
|
11834
|
+
"accumulate fuel bonus for maker volume"
|
|
9409
11835
|
],
|
|
9410
|
-
"type": "
|
|
11836
|
+
"type": "u32"
|
|
9411
11837
|
},
|
|
9412
11838
|
{
|
|
9413
|
-
"name": "
|
|
11839
|
+
"name": "ifStakedGovTokenAmount",
|
|
9414
11840
|
"docs": [
|
|
9415
|
-
"
|
|
11841
|
+
"The amount of tokens staked in the governance spot markets if"
|
|
9416
11842
|
],
|
|
9417
|
-
"type": "
|
|
11843
|
+
"type": "u64"
|
|
9418
11844
|
},
|
|
9419
11845
|
{
|
|
9420
|
-
"name": "
|
|
11846
|
+
"name": "lastFuelIfBonusUpdateTs",
|
|
9421
11847
|
"docs": [
|
|
9422
|
-
"
|
|
11848
|
+
"last unix ts user stats data was used to update if fuel (u32 to save space)"
|
|
9423
11849
|
],
|
|
9424
|
-
"type": "
|
|
11850
|
+
"type": "u32"
|
|
9425
11851
|
},
|
|
9426
11852
|
{
|
|
9427
|
-
"name": "
|
|
11853
|
+
"name": "padding",
|
|
9428
11854
|
"type": {
|
|
9429
|
-
"
|
|
11855
|
+
"array": [
|
|
11856
|
+
"u8",
|
|
11857
|
+
12
|
|
11858
|
+
]
|
|
9430
11859
|
}
|
|
11860
|
+
}
|
|
11861
|
+
]
|
|
11862
|
+
}
|
|
11863
|
+
},
|
|
11864
|
+
{
|
|
11865
|
+
"name": "ReferrerName",
|
|
11866
|
+
"type": {
|
|
11867
|
+
"kind": "struct",
|
|
11868
|
+
"fields": [
|
|
11869
|
+
{
|
|
11870
|
+
"name": "authority",
|
|
11871
|
+
"type": "publicKey"
|
|
9431
11872
|
},
|
|
9432
11873
|
{
|
|
9433
|
-
"name": "
|
|
9434
|
-
"type": "
|
|
11874
|
+
"name": "user",
|
|
11875
|
+
"type": "publicKey"
|
|
9435
11876
|
},
|
|
9436
11877
|
{
|
|
9437
|
-
"name": "
|
|
11878
|
+
"name": "userStats",
|
|
11879
|
+
"type": "publicKey"
|
|
11880
|
+
},
|
|
11881
|
+
{
|
|
11882
|
+
"name": "name",
|
|
9438
11883
|
"type": {
|
|
9439
11884
|
"array": [
|
|
9440
11885
|
"u8",
|
|
9441
|
-
|
|
11886
|
+
32
|
|
9442
11887
|
]
|
|
9443
11888
|
}
|
|
11889
|
+
}
|
|
11890
|
+
]
|
|
11891
|
+
}
|
|
11892
|
+
},
|
|
11893
|
+
{
|
|
11894
|
+
"name": "FuelOverflow",
|
|
11895
|
+
"type": {
|
|
11896
|
+
"kind": "struct",
|
|
11897
|
+
"fields": [
|
|
11898
|
+
{
|
|
11899
|
+
"name": "authority",
|
|
11900
|
+
"docs": [
|
|
11901
|
+
"The authority of this overflow account"
|
|
11902
|
+
],
|
|
11903
|
+
"type": "publicKey"
|
|
9444
11904
|
},
|
|
9445
11905
|
{
|
|
9446
|
-
"name": "
|
|
11906
|
+
"name": "fuelInsurance",
|
|
11907
|
+
"type": "u128"
|
|
11908
|
+
},
|
|
11909
|
+
{
|
|
11910
|
+
"name": "fuelDeposits",
|
|
11911
|
+
"type": "u128"
|
|
11912
|
+
},
|
|
11913
|
+
{
|
|
11914
|
+
"name": "fuelBorrows",
|
|
11915
|
+
"type": "u128"
|
|
11916
|
+
},
|
|
11917
|
+
{
|
|
11918
|
+
"name": "fuelPositions",
|
|
11919
|
+
"type": "u128"
|
|
11920
|
+
},
|
|
11921
|
+
{
|
|
11922
|
+
"name": "fuelTaker",
|
|
11923
|
+
"type": "u128"
|
|
11924
|
+
},
|
|
11925
|
+
{
|
|
11926
|
+
"name": "fuelMaker",
|
|
11927
|
+
"type": "u128"
|
|
11928
|
+
},
|
|
11929
|
+
{
|
|
11930
|
+
"name": "lastFuelSweepTs",
|
|
11931
|
+
"type": "u32"
|
|
11932
|
+
},
|
|
11933
|
+
{
|
|
11934
|
+
"name": "lastResetTs",
|
|
9447
11935
|
"type": "u32"
|
|
9448
11936
|
},
|
|
9449
11937
|
{
|
|
9450
11938
|
"name": "padding",
|
|
9451
11939
|
"type": {
|
|
9452
11940
|
"array": [
|
|
9453
|
-
"
|
|
9454
|
-
|
|
11941
|
+
"u128",
|
|
11942
|
+
6
|
|
9455
11943
|
]
|
|
9456
11944
|
}
|
|
9457
11945
|
}
|
|
9458
11946
|
]
|
|
9459
11947
|
}
|
|
9460
|
-
}
|
|
11948
|
+
}
|
|
11949
|
+
],
|
|
11950
|
+
"types": [
|
|
9461
11951
|
{
|
|
9462
|
-
"name": "
|
|
11952
|
+
"name": "UpdatePerpMarketSummaryStatsParams",
|
|
9463
11953
|
"type": {
|
|
9464
11954
|
"kind": "struct",
|
|
9465
11955
|
"fields": [
|
|
9466
11956
|
{
|
|
9467
|
-
"name": "
|
|
9468
|
-
"
|
|
9469
|
-
"
|
|
9470
|
-
|
|
9471
|
-
"type": "publicKey"
|
|
11957
|
+
"name": "quoteAssetAmountWithUnsettledLp",
|
|
11958
|
+
"type": {
|
|
11959
|
+
"option": "i64"
|
|
11960
|
+
}
|
|
9472
11961
|
},
|
|
9473
11962
|
{
|
|
9474
|
-
"name": "
|
|
9475
|
-
"
|
|
9476
|
-
"
|
|
9477
|
-
|
|
9478
|
-
|
|
11963
|
+
"name": "netUnsettledFundingPnl",
|
|
11964
|
+
"type": {
|
|
11965
|
+
"option": "i64"
|
|
11966
|
+
}
|
|
11967
|
+
},
|
|
11968
|
+
{
|
|
11969
|
+
"name": "updateAmmSummaryStats",
|
|
11970
|
+
"type": {
|
|
11971
|
+
"option": "bool"
|
|
11972
|
+
}
|
|
9479
11973
|
},
|
|
9480
11974
|
{
|
|
9481
|
-
"name": "
|
|
9482
|
-
"docs": [
|
|
9483
|
-
"Stats on the fees paid by the user"
|
|
9484
|
-
],
|
|
11975
|
+
"name": "excludeTotalLiqFee",
|
|
9485
11976
|
"type": {
|
|
9486
|
-
"
|
|
11977
|
+
"option": "bool"
|
|
9487
11978
|
}
|
|
9488
|
-
}
|
|
11979
|
+
}
|
|
11980
|
+
]
|
|
11981
|
+
}
|
|
11982
|
+
},
|
|
11983
|
+
{
|
|
11984
|
+
"name": "ConstituentParams",
|
|
11985
|
+
"type": {
|
|
11986
|
+
"kind": "struct",
|
|
11987
|
+
"fields": [
|
|
9489
11988
|
{
|
|
9490
|
-
"name": "
|
|
9491
|
-
"
|
|
9492
|
-
"
|
|
9493
|
-
|
|
9494
|
-
],
|
|
9495
|
-
"type": "i64"
|
|
11989
|
+
"name": "maxWeightDeviation",
|
|
11990
|
+
"type": {
|
|
11991
|
+
"option": "i64"
|
|
11992
|
+
}
|
|
9496
11993
|
},
|
|
9497
11994
|
{
|
|
9498
|
-
"name": "
|
|
9499
|
-
"
|
|
9500
|
-
"
|
|
9501
|
-
|
|
9502
|
-
],
|
|
9503
|
-
"type": "u64"
|
|
11995
|
+
"name": "swapFeeMin",
|
|
11996
|
+
"type": {
|
|
11997
|
+
"option": "i64"
|
|
11998
|
+
}
|
|
9504
11999
|
},
|
|
9505
12000
|
{
|
|
9506
|
-
"name": "
|
|
9507
|
-
"
|
|
9508
|
-
"
|
|
9509
|
-
|
|
9510
|
-
],
|
|
9511
|
-
"type": "u64"
|
|
12001
|
+
"name": "swapFeeMax",
|
|
12002
|
+
"type": {
|
|
12003
|
+
"option": "i64"
|
|
12004
|
+
}
|
|
9512
12005
|
},
|
|
9513
12006
|
{
|
|
9514
|
-
"name": "
|
|
9515
|
-
"
|
|
9516
|
-
"
|
|
9517
|
-
|
|
9518
|
-
],
|
|
9519
|
-
"type": "u64"
|
|
12007
|
+
"name": "maxBorrowTokenAmount",
|
|
12008
|
+
"type": {
|
|
12009
|
+
"option": "u64"
|
|
12010
|
+
}
|
|
9520
12011
|
},
|
|
9521
12012
|
{
|
|
9522
|
-
"name": "
|
|
9523
|
-
"
|
|
9524
|
-
"
|
|
9525
|
-
|
|
9526
|
-
"type": "i64"
|
|
12013
|
+
"name": "oracleStalenessThreshold",
|
|
12014
|
+
"type": {
|
|
12015
|
+
"option": "u64"
|
|
12016
|
+
}
|
|
9527
12017
|
},
|
|
9528
12018
|
{
|
|
9529
|
-
"name": "
|
|
9530
|
-
"
|
|
9531
|
-
"
|
|
9532
|
-
|
|
9533
|
-
"type": "i64"
|
|
12019
|
+
"name": "costToTradeBps",
|
|
12020
|
+
"type": {
|
|
12021
|
+
"option": "i32"
|
|
12022
|
+
}
|
|
9534
12023
|
},
|
|
9535
12024
|
{
|
|
9536
|
-
"name": "
|
|
9537
|
-
"
|
|
9538
|
-
"
|
|
9539
|
-
|
|
9540
|
-
"type": "i64"
|
|
12025
|
+
"name": "constituentDerivativeIndex",
|
|
12026
|
+
"type": {
|
|
12027
|
+
"option": "i16"
|
|
12028
|
+
}
|
|
9541
12029
|
},
|
|
9542
12030
|
{
|
|
9543
|
-
"name": "
|
|
9544
|
-
"
|
|
9545
|
-
"
|
|
9546
|
-
|
|
9547
|
-
"type": "u64"
|
|
12031
|
+
"name": "derivativeWeight",
|
|
12032
|
+
"type": {
|
|
12033
|
+
"option": "u64"
|
|
12034
|
+
}
|
|
9548
12035
|
},
|
|
9549
12036
|
{
|
|
9550
|
-
"name": "
|
|
9551
|
-
"
|
|
9552
|
-
"
|
|
9553
|
-
|
|
9554
|
-
"type": "u16"
|
|
12037
|
+
"name": "volatility",
|
|
12038
|
+
"type": {
|
|
12039
|
+
"option": "u64"
|
|
12040
|
+
}
|
|
9555
12041
|
},
|
|
9556
12042
|
{
|
|
9557
|
-
"name": "
|
|
9558
|
-
"
|
|
9559
|
-
"
|
|
9560
|
-
|
|
9561
|
-
],
|
|
9562
|
-
"type": "u16"
|
|
12043
|
+
"name": "gammaExecution",
|
|
12044
|
+
"type": {
|
|
12045
|
+
"option": "u8"
|
|
12046
|
+
}
|
|
9563
12047
|
},
|
|
9564
12048
|
{
|
|
9565
|
-
"name": "
|
|
9566
|
-
"
|
|
9567
|
-
"
|
|
9568
|
-
|
|
9569
|
-
"Second bit: 1 if user was referred, 0 otherwise"
|
|
9570
|
-
],
|
|
9571
|
-
"type": "u8"
|
|
12049
|
+
"name": "gammaInventory",
|
|
12050
|
+
"type": {
|
|
12051
|
+
"option": "u8"
|
|
12052
|
+
}
|
|
9572
12053
|
},
|
|
9573
12054
|
{
|
|
9574
|
-
"name": "
|
|
9575
|
-
"type":
|
|
9576
|
-
|
|
12055
|
+
"name": "xi",
|
|
12056
|
+
"type": {
|
|
12057
|
+
"option": "u8"
|
|
12058
|
+
}
|
|
12059
|
+
}
|
|
12060
|
+
]
|
|
12061
|
+
}
|
|
12062
|
+
},
|
|
12063
|
+
{
|
|
12064
|
+
"name": "LpPoolParams",
|
|
12065
|
+
"type": {
|
|
12066
|
+
"kind": "struct",
|
|
12067
|
+
"fields": [
|
|
9577
12068
|
{
|
|
9578
|
-
"name": "
|
|
12069
|
+
"name": "maxSettleQuoteAmount",
|
|
9579
12070
|
"type": {
|
|
9580
|
-
"
|
|
9581
|
-
"u8",
|
|
9582
|
-
1
|
|
9583
|
-
]
|
|
12071
|
+
"option": "u64"
|
|
9584
12072
|
}
|
|
9585
12073
|
},
|
|
9586
12074
|
{
|
|
9587
|
-
"name": "
|
|
9588
|
-
"
|
|
9589
|
-
"
|
|
9590
|
-
|
|
9591
|
-
"type": "u8"
|
|
12075
|
+
"name": "volatility",
|
|
12076
|
+
"type": {
|
|
12077
|
+
"option": "u64"
|
|
12078
|
+
}
|
|
9592
12079
|
},
|
|
9593
12080
|
{
|
|
9594
|
-
"name": "
|
|
9595
|
-
"
|
|
9596
|
-
"
|
|
9597
|
-
|
|
9598
|
-
"type": "u32"
|
|
12081
|
+
"name": "gammaExecution",
|
|
12082
|
+
"type": {
|
|
12083
|
+
"option": "u8"
|
|
12084
|
+
}
|
|
9599
12085
|
},
|
|
9600
12086
|
{
|
|
9601
|
-
"name": "
|
|
9602
|
-
"
|
|
9603
|
-
"
|
|
9604
|
-
|
|
9605
|
-
"type": "u32"
|
|
12087
|
+
"name": "xi",
|
|
12088
|
+
"type": {
|
|
12089
|
+
"option": "u8"
|
|
12090
|
+
}
|
|
9606
12091
|
},
|
|
9607
12092
|
{
|
|
9608
|
-
"name": "
|
|
9609
|
-
"
|
|
9610
|
-
"
|
|
9611
|
-
|
|
9612
|
-
"type": "u32"
|
|
12093
|
+
"name": "maxAum",
|
|
12094
|
+
"type": {
|
|
12095
|
+
"option": "u128"
|
|
12096
|
+
}
|
|
9613
12097
|
},
|
|
9614
12098
|
{
|
|
9615
|
-
"name": "
|
|
9616
|
-
"
|
|
9617
|
-
"
|
|
9618
|
-
|
|
9619
|
-
|
|
12099
|
+
"name": "whitelistMint",
|
|
12100
|
+
"type": {
|
|
12101
|
+
"option": "publicKey"
|
|
12102
|
+
}
|
|
12103
|
+
}
|
|
12104
|
+
]
|
|
12105
|
+
}
|
|
12106
|
+
},
|
|
12107
|
+
{
|
|
12108
|
+
"name": "OverrideAmmCacheParams",
|
|
12109
|
+
"type": {
|
|
12110
|
+
"kind": "struct",
|
|
12111
|
+
"fields": [
|
|
12112
|
+
{
|
|
12113
|
+
"name": "quoteOwedFromLpPool",
|
|
12114
|
+
"type": {
|
|
12115
|
+
"option": "i64"
|
|
12116
|
+
}
|
|
9620
12117
|
},
|
|
9621
12118
|
{
|
|
9622
|
-
"name": "
|
|
9623
|
-
"
|
|
9624
|
-
"
|
|
9625
|
-
|
|
9626
|
-
"type": "u32"
|
|
12119
|
+
"name": "lastSettleSlot",
|
|
12120
|
+
"type": {
|
|
12121
|
+
"option": "u64"
|
|
12122
|
+
}
|
|
9627
12123
|
},
|
|
9628
12124
|
{
|
|
9629
|
-
"name": "
|
|
9630
|
-
"
|
|
9631
|
-
"
|
|
9632
|
-
|
|
9633
|
-
"type": "u32"
|
|
12125
|
+
"name": "lastFeePoolTokenAmount",
|
|
12126
|
+
"type": {
|
|
12127
|
+
"option": "u128"
|
|
12128
|
+
}
|
|
9634
12129
|
},
|
|
9635
12130
|
{
|
|
9636
|
-
"name": "
|
|
9637
|
-
"
|
|
9638
|
-
"
|
|
9639
|
-
|
|
9640
|
-
"type": "u64"
|
|
12131
|
+
"name": "lastNetPnlPoolTokenAmount",
|
|
12132
|
+
"type": {
|
|
12133
|
+
"option": "i128"
|
|
12134
|
+
}
|
|
9641
12135
|
},
|
|
9642
12136
|
{
|
|
9643
|
-
"name": "
|
|
9644
|
-
"
|
|
9645
|
-
"
|
|
9646
|
-
|
|
9647
|
-
"type": "u32"
|
|
12137
|
+
"name": "ammPositionScalar",
|
|
12138
|
+
"type": {
|
|
12139
|
+
"option": "u8"
|
|
12140
|
+
}
|
|
9648
12141
|
},
|
|
9649
12142
|
{
|
|
9650
|
-
"name": "
|
|
12143
|
+
"name": "ammInventoryLimit",
|
|
9651
12144
|
"type": {
|
|
9652
|
-
"
|
|
9653
|
-
"u8",
|
|
9654
|
-
12
|
|
9655
|
-
]
|
|
12145
|
+
"option": "i64"
|
|
9656
12146
|
}
|
|
9657
12147
|
}
|
|
9658
12148
|
]
|
|
9659
12149
|
}
|
|
9660
12150
|
},
|
|
9661
12151
|
{
|
|
9662
|
-
"name": "
|
|
12152
|
+
"name": "AddAmmConstituentMappingDatum",
|
|
9663
12153
|
"type": {
|
|
9664
12154
|
"kind": "struct",
|
|
9665
12155
|
"fields": [
|
|
9666
12156
|
{
|
|
9667
|
-
"name": "
|
|
9668
|
-
"type": "
|
|
9669
|
-
},
|
|
9670
|
-
{
|
|
9671
|
-
"name": "user",
|
|
9672
|
-
"type": "publicKey"
|
|
12157
|
+
"name": "constituentIndex",
|
|
12158
|
+
"type": "u16"
|
|
9673
12159
|
},
|
|
9674
12160
|
{
|
|
9675
|
-
"name": "
|
|
9676
|
-
"type": "
|
|
12161
|
+
"name": "perpMarketIndex",
|
|
12162
|
+
"type": "u16"
|
|
9677
12163
|
},
|
|
9678
12164
|
{
|
|
9679
|
-
"name": "
|
|
9680
|
-
"type":
|
|
9681
|
-
"array": [
|
|
9682
|
-
"u8",
|
|
9683
|
-
32
|
|
9684
|
-
]
|
|
9685
|
-
}
|
|
12165
|
+
"name": "weight",
|
|
12166
|
+
"type": "i64"
|
|
9686
12167
|
}
|
|
9687
12168
|
]
|
|
9688
12169
|
}
|
|
9689
12170
|
},
|
|
9690
12171
|
{
|
|
9691
|
-
"name": "
|
|
12172
|
+
"name": "CacheInfo",
|
|
9692
12173
|
"type": {
|
|
9693
12174
|
"kind": "struct",
|
|
9694
12175
|
"fields": [
|
|
9695
12176
|
{
|
|
9696
|
-
"name": "
|
|
12177
|
+
"name": "oracle",
|
|
12178
|
+
"type": "publicKey"
|
|
12179
|
+
},
|
|
12180
|
+
{
|
|
12181
|
+
"name": "lastFeePoolTokenAmount",
|
|
12182
|
+
"type": "u128"
|
|
12183
|
+
},
|
|
12184
|
+
{
|
|
12185
|
+
"name": "lastNetPnlPoolTokenAmount",
|
|
12186
|
+
"type": "i128"
|
|
12187
|
+
},
|
|
12188
|
+
{
|
|
12189
|
+
"name": "lastExchangeFees",
|
|
12190
|
+
"type": "u128"
|
|
12191
|
+
},
|
|
12192
|
+
{
|
|
12193
|
+
"name": "lastSettleAmmExFees",
|
|
12194
|
+
"type": "u128"
|
|
12195
|
+
},
|
|
12196
|
+
{
|
|
12197
|
+
"name": "lastSettleAmmPnl",
|
|
12198
|
+
"type": "i128"
|
|
12199
|
+
},
|
|
12200
|
+
{
|
|
12201
|
+
"name": "position",
|
|
9697
12202
|
"docs": [
|
|
9698
|
-
"
|
|
12203
|
+
"BASE PRECISION"
|
|
9699
12204
|
],
|
|
9700
|
-
"type": "
|
|
12205
|
+
"type": "i64"
|
|
9701
12206
|
},
|
|
9702
12207
|
{
|
|
9703
|
-
"name": "
|
|
9704
|
-
"type": "
|
|
12208
|
+
"name": "slot",
|
|
12209
|
+
"type": "u64"
|
|
9705
12210
|
},
|
|
9706
12211
|
{
|
|
9707
|
-
"name": "
|
|
9708
|
-
"type": "
|
|
12212
|
+
"name": "lastSettleAmount",
|
|
12213
|
+
"type": "u64"
|
|
9709
12214
|
},
|
|
9710
12215
|
{
|
|
9711
|
-
"name": "
|
|
9712
|
-
"type": "
|
|
12216
|
+
"name": "lastSettleSlot",
|
|
12217
|
+
"type": "u64"
|
|
9713
12218
|
},
|
|
9714
12219
|
{
|
|
9715
|
-
"name": "
|
|
9716
|
-
"type": "
|
|
12220
|
+
"name": "lastSettleTs",
|
|
12221
|
+
"type": "i64"
|
|
9717
12222
|
},
|
|
9718
12223
|
{
|
|
9719
|
-
"name": "
|
|
9720
|
-
"type": "
|
|
12224
|
+
"name": "quoteOwedFromLpPool",
|
|
12225
|
+
"type": "i64"
|
|
9721
12226
|
},
|
|
9722
12227
|
{
|
|
9723
|
-
"name": "
|
|
9724
|
-
"type": "
|
|
12228
|
+
"name": "ammInventoryLimit",
|
|
12229
|
+
"type": "i64"
|
|
9725
12230
|
},
|
|
9726
12231
|
{
|
|
9727
|
-
"name": "
|
|
9728
|
-
"type": "
|
|
12232
|
+
"name": "oraclePrice",
|
|
12233
|
+
"type": "i64"
|
|
9729
12234
|
},
|
|
9730
12235
|
{
|
|
9731
|
-
"name": "
|
|
9732
|
-
"type": "
|
|
12236
|
+
"name": "oracleSlot",
|
|
12237
|
+
"type": "u64"
|
|
12238
|
+
},
|
|
12239
|
+
{
|
|
12240
|
+
"name": "oracleSource",
|
|
12241
|
+
"type": "u8"
|
|
12242
|
+
},
|
|
12243
|
+
{
|
|
12244
|
+
"name": "oracleValidity",
|
|
12245
|
+
"type": "u8"
|
|
12246
|
+
},
|
|
12247
|
+
{
|
|
12248
|
+
"name": "lpStatusForPerpMarket",
|
|
12249
|
+
"type": "u8"
|
|
12250
|
+
},
|
|
12251
|
+
{
|
|
12252
|
+
"name": "ammPositionScalar",
|
|
12253
|
+
"type": "u8"
|
|
9733
12254
|
},
|
|
9734
12255
|
{
|
|
9735
12256
|
"name": "padding",
|
|
9736
12257
|
"type": {
|
|
9737
12258
|
"array": [
|
|
9738
|
-
"
|
|
9739
|
-
|
|
12259
|
+
"u8",
|
|
12260
|
+
36
|
|
9740
12261
|
]
|
|
9741
12262
|
}
|
|
9742
12263
|
}
|
|
9743
12264
|
]
|
|
9744
12265
|
}
|
|
9745
|
-
}
|
|
9746
|
-
],
|
|
9747
|
-
"types": [
|
|
12266
|
+
},
|
|
9748
12267
|
{
|
|
9749
|
-
"name": "
|
|
12268
|
+
"name": "AmmCacheFixed",
|
|
9750
12269
|
"type": {
|
|
9751
12270
|
"kind": "struct",
|
|
9752
12271
|
"fields": [
|
|
9753
12272
|
{
|
|
9754
|
-
"name": "
|
|
9755
|
-
"type":
|
|
9756
|
-
"option": "i64"
|
|
9757
|
-
}
|
|
9758
|
-
},
|
|
9759
|
-
{
|
|
9760
|
-
"name": "netUnsettledFundingPnl",
|
|
9761
|
-
"type": {
|
|
9762
|
-
"option": "i64"
|
|
9763
|
-
}
|
|
12273
|
+
"name": "bump",
|
|
12274
|
+
"type": "u8"
|
|
9764
12275
|
},
|
|
9765
12276
|
{
|
|
9766
|
-
"name": "
|
|
12277
|
+
"name": "pad",
|
|
9767
12278
|
"type": {
|
|
9768
|
-
"
|
|
12279
|
+
"array": [
|
|
12280
|
+
"u8",
|
|
12281
|
+
3
|
|
12282
|
+
]
|
|
9769
12283
|
}
|
|
9770
12284
|
},
|
|
9771
12285
|
{
|
|
9772
|
-
"name": "
|
|
9773
|
-
"type":
|
|
9774
|
-
"option": "bool"
|
|
9775
|
-
}
|
|
12286
|
+
"name": "len",
|
|
12287
|
+
"type": "u32"
|
|
9776
12288
|
}
|
|
9777
12289
|
]
|
|
9778
12290
|
}
|
|
@@ -9909,7 +12421,189 @@
|
|
|
9909
12421
|
}
|
|
9910
12422
|
},
|
|
9911
12423
|
{
|
|
9912
|
-
"name": "LiquidatePerpPnlForDepositRecord",
|
|
12424
|
+
"name": "LiquidatePerpPnlForDepositRecord",
|
|
12425
|
+
"type": {
|
|
12426
|
+
"kind": "struct",
|
|
12427
|
+
"fields": [
|
|
12428
|
+
{
|
|
12429
|
+
"name": "perpMarketIndex",
|
|
12430
|
+
"type": "u16"
|
|
12431
|
+
},
|
|
12432
|
+
{
|
|
12433
|
+
"name": "marketOraclePrice",
|
|
12434
|
+
"type": "i64"
|
|
12435
|
+
},
|
|
12436
|
+
{
|
|
12437
|
+
"name": "pnlTransfer",
|
|
12438
|
+
"type": "u128"
|
|
12439
|
+
},
|
|
12440
|
+
{
|
|
12441
|
+
"name": "assetMarketIndex",
|
|
12442
|
+
"type": "u16"
|
|
12443
|
+
},
|
|
12444
|
+
{
|
|
12445
|
+
"name": "assetPrice",
|
|
12446
|
+
"type": "i64"
|
|
12447
|
+
},
|
|
12448
|
+
{
|
|
12449
|
+
"name": "assetTransfer",
|
|
12450
|
+
"type": "u128"
|
|
12451
|
+
}
|
|
12452
|
+
]
|
|
12453
|
+
}
|
|
12454
|
+
},
|
|
12455
|
+
{
|
|
12456
|
+
"name": "PerpBankruptcyRecord",
|
|
12457
|
+
"type": {
|
|
12458
|
+
"kind": "struct",
|
|
12459
|
+
"fields": [
|
|
12460
|
+
{
|
|
12461
|
+
"name": "marketIndex",
|
|
12462
|
+
"type": "u16"
|
|
12463
|
+
},
|
|
12464
|
+
{
|
|
12465
|
+
"name": "pnl",
|
|
12466
|
+
"type": "i128"
|
|
12467
|
+
},
|
|
12468
|
+
{
|
|
12469
|
+
"name": "ifPayment",
|
|
12470
|
+
"type": "u128"
|
|
12471
|
+
},
|
|
12472
|
+
{
|
|
12473
|
+
"name": "clawbackUser",
|
|
12474
|
+
"type": {
|
|
12475
|
+
"option": "publicKey"
|
|
12476
|
+
}
|
|
12477
|
+
},
|
|
12478
|
+
{
|
|
12479
|
+
"name": "clawbackUserPayment",
|
|
12480
|
+
"type": {
|
|
12481
|
+
"option": "u128"
|
|
12482
|
+
}
|
|
12483
|
+
},
|
|
12484
|
+
{
|
|
12485
|
+
"name": "cumulativeFundingRateDelta",
|
|
12486
|
+
"type": "i128"
|
|
12487
|
+
}
|
|
12488
|
+
]
|
|
12489
|
+
}
|
|
12490
|
+
},
|
|
12491
|
+
{
|
|
12492
|
+
"name": "SpotBankruptcyRecord",
|
|
12493
|
+
"type": {
|
|
12494
|
+
"kind": "struct",
|
|
12495
|
+
"fields": [
|
|
12496
|
+
{
|
|
12497
|
+
"name": "marketIndex",
|
|
12498
|
+
"type": "u16"
|
|
12499
|
+
},
|
|
12500
|
+
{
|
|
12501
|
+
"name": "borrowAmount",
|
|
12502
|
+
"type": "u128"
|
|
12503
|
+
},
|
|
12504
|
+
{
|
|
12505
|
+
"name": "ifPayment",
|
|
12506
|
+
"type": "u128"
|
|
12507
|
+
},
|
|
12508
|
+
{
|
|
12509
|
+
"name": "cumulativeDepositInterestDelta",
|
|
12510
|
+
"type": "u128"
|
|
12511
|
+
}
|
|
12512
|
+
]
|
|
12513
|
+
}
|
|
12514
|
+
},
|
|
12515
|
+
{
|
|
12516
|
+
"name": "IfRebalanceConfigParams",
|
|
12517
|
+
"type": {
|
|
12518
|
+
"kind": "struct",
|
|
12519
|
+
"fields": [
|
|
12520
|
+
{
|
|
12521
|
+
"name": "totalInAmount",
|
|
12522
|
+
"type": "u64"
|
|
12523
|
+
},
|
|
12524
|
+
{
|
|
12525
|
+
"name": "epochMaxInAmount",
|
|
12526
|
+
"type": "u64"
|
|
12527
|
+
},
|
|
12528
|
+
{
|
|
12529
|
+
"name": "epochDuration",
|
|
12530
|
+
"type": "i64"
|
|
12531
|
+
},
|
|
12532
|
+
{
|
|
12533
|
+
"name": "outMarketIndex",
|
|
12534
|
+
"type": "u16"
|
|
12535
|
+
},
|
|
12536
|
+
{
|
|
12537
|
+
"name": "inMarketIndex",
|
|
12538
|
+
"type": "u16"
|
|
12539
|
+
},
|
|
12540
|
+
{
|
|
12541
|
+
"name": "maxSlippageBps",
|
|
12542
|
+
"type": "u16"
|
|
12543
|
+
},
|
|
12544
|
+
{
|
|
12545
|
+
"name": "swapMode",
|
|
12546
|
+
"type": "u8"
|
|
12547
|
+
},
|
|
12548
|
+
{
|
|
12549
|
+
"name": "status",
|
|
12550
|
+
"type": "u8"
|
|
12551
|
+
}
|
|
12552
|
+
]
|
|
12553
|
+
}
|
|
12554
|
+
},
|
|
12555
|
+
{
|
|
12556
|
+
"name": "ConstituentSpotBalance",
|
|
12557
|
+
"type": {
|
|
12558
|
+
"kind": "struct",
|
|
12559
|
+
"fields": [
|
|
12560
|
+
{
|
|
12561
|
+
"name": "scaledBalance",
|
|
12562
|
+
"docs": [
|
|
12563
|
+
"The scaled balance of the position. To get the token amount, multiply by the cumulative deposit/borrow",
|
|
12564
|
+
"interest of corresponding market.",
|
|
12565
|
+
"precision: token precision"
|
|
12566
|
+
],
|
|
12567
|
+
"type": "u128"
|
|
12568
|
+
},
|
|
12569
|
+
{
|
|
12570
|
+
"name": "cumulativeDeposits",
|
|
12571
|
+
"docs": [
|
|
12572
|
+
"The cumulative deposits/borrows a user has made into a market",
|
|
12573
|
+
"precision: token mint precision"
|
|
12574
|
+
],
|
|
12575
|
+
"type": "i64"
|
|
12576
|
+
},
|
|
12577
|
+
{
|
|
12578
|
+
"name": "marketIndex",
|
|
12579
|
+
"docs": [
|
|
12580
|
+
"The market index of the corresponding spot market"
|
|
12581
|
+
],
|
|
12582
|
+
"type": "u16"
|
|
12583
|
+
},
|
|
12584
|
+
{
|
|
12585
|
+
"name": "balanceType",
|
|
12586
|
+
"docs": [
|
|
12587
|
+
"Whether the position is deposit or borrow"
|
|
12588
|
+
],
|
|
12589
|
+
"type": {
|
|
12590
|
+
"defined": "SpotBalanceType"
|
|
12591
|
+
}
|
|
12592
|
+
},
|
|
12593
|
+
{
|
|
12594
|
+
"name": "padding",
|
|
12595
|
+
"type": {
|
|
12596
|
+
"array": [
|
|
12597
|
+
"u8",
|
|
12598
|
+
5
|
|
12599
|
+
]
|
|
12600
|
+
}
|
|
12601
|
+
}
|
|
12602
|
+
]
|
|
12603
|
+
}
|
|
12604
|
+
},
|
|
12605
|
+
{
|
|
12606
|
+
"name": "AmmConstituentDatum",
|
|
9913
12607
|
"type": {
|
|
9914
12608
|
"kind": "struct",
|
|
9915
12609
|
"fields": [
|
|
@@ -9918,124 +12612,154 @@
|
|
|
9918
12612
|
"type": "u16"
|
|
9919
12613
|
},
|
|
9920
12614
|
{
|
|
9921
|
-
"name": "
|
|
9922
|
-
"type": "
|
|
12615
|
+
"name": "constituentIndex",
|
|
12616
|
+
"type": "u16"
|
|
9923
12617
|
},
|
|
9924
12618
|
{
|
|
9925
|
-
"name": "
|
|
9926
|
-
"type":
|
|
12619
|
+
"name": "padding",
|
|
12620
|
+
"type": {
|
|
12621
|
+
"array": [
|
|
12622
|
+
"u8",
|
|
12623
|
+
4
|
|
12624
|
+
]
|
|
12625
|
+
}
|
|
9927
12626
|
},
|
|
9928
12627
|
{
|
|
9929
|
-
"name": "
|
|
9930
|
-
"type": "
|
|
12628
|
+
"name": "lastSlot",
|
|
12629
|
+
"type": "u64"
|
|
9931
12630
|
},
|
|
9932
12631
|
{
|
|
9933
|
-
"name": "
|
|
12632
|
+
"name": "weight",
|
|
12633
|
+
"docs": [
|
|
12634
|
+
"PERCENTAGE_PRECISION. The weight this constituent has on the perp market"
|
|
12635
|
+
],
|
|
9934
12636
|
"type": "i64"
|
|
9935
|
-
},
|
|
9936
|
-
{
|
|
9937
|
-
"name": "assetTransfer",
|
|
9938
|
-
"type": "u128"
|
|
9939
12637
|
}
|
|
9940
12638
|
]
|
|
9941
12639
|
}
|
|
9942
12640
|
},
|
|
9943
12641
|
{
|
|
9944
|
-
"name": "
|
|
12642
|
+
"name": "AmmConstituentMappingFixed",
|
|
9945
12643
|
"type": {
|
|
9946
12644
|
"kind": "struct",
|
|
9947
12645
|
"fields": [
|
|
9948
12646
|
{
|
|
9949
|
-
"name": "
|
|
9950
|
-
"type": "
|
|
9951
|
-
},
|
|
9952
|
-
{
|
|
9953
|
-
"name": "pnl",
|
|
9954
|
-
"type": "i128"
|
|
9955
|
-
},
|
|
9956
|
-
{
|
|
9957
|
-
"name": "ifPayment",
|
|
9958
|
-
"type": "u128"
|
|
12647
|
+
"name": "lpPool",
|
|
12648
|
+
"type": "publicKey"
|
|
9959
12649
|
},
|
|
9960
12650
|
{
|
|
9961
|
-
"name": "
|
|
9962
|
-
"type":
|
|
9963
|
-
"option": "publicKey"
|
|
9964
|
-
}
|
|
12651
|
+
"name": "bump",
|
|
12652
|
+
"type": "u8"
|
|
9965
12653
|
},
|
|
9966
12654
|
{
|
|
9967
|
-
"name": "
|
|
12655
|
+
"name": "pad",
|
|
9968
12656
|
"type": {
|
|
9969
|
-
"
|
|
12657
|
+
"array": [
|
|
12658
|
+
"u8",
|
|
12659
|
+
3
|
|
12660
|
+
]
|
|
9970
12661
|
}
|
|
9971
12662
|
},
|
|
9972
12663
|
{
|
|
9973
|
-
"name": "
|
|
9974
|
-
"type": "
|
|
12664
|
+
"name": "len",
|
|
12665
|
+
"type": "u32"
|
|
9975
12666
|
}
|
|
9976
12667
|
]
|
|
9977
12668
|
}
|
|
9978
12669
|
},
|
|
9979
12670
|
{
|
|
9980
|
-
"name": "
|
|
12671
|
+
"name": "TargetsDatum",
|
|
9981
12672
|
"type": {
|
|
9982
12673
|
"kind": "struct",
|
|
9983
12674
|
"fields": [
|
|
9984
12675
|
{
|
|
9985
|
-
"name": "
|
|
9986
|
-
"type": "
|
|
12676
|
+
"name": "costToTradeBps",
|
|
12677
|
+
"type": "i32"
|
|
9987
12678
|
},
|
|
9988
12679
|
{
|
|
9989
|
-
"name": "
|
|
9990
|
-
"type":
|
|
12680
|
+
"name": "padding",
|
|
12681
|
+
"type": {
|
|
12682
|
+
"array": [
|
|
12683
|
+
"u8",
|
|
12684
|
+
4
|
|
12685
|
+
]
|
|
12686
|
+
}
|
|
9991
12687
|
},
|
|
9992
12688
|
{
|
|
9993
|
-
"name": "
|
|
9994
|
-
"type": "
|
|
12689
|
+
"name": "targetBase",
|
|
12690
|
+
"type": "i64"
|
|
9995
12691
|
},
|
|
9996
12692
|
{
|
|
9997
|
-
"name": "
|
|
9998
|
-
"type": "
|
|
12693
|
+
"name": "lastOracleSlot",
|
|
12694
|
+
"type": "u64"
|
|
12695
|
+
},
|
|
12696
|
+
{
|
|
12697
|
+
"name": "lastPositionSlot",
|
|
12698
|
+
"type": "u64"
|
|
9999
12699
|
}
|
|
10000
12700
|
]
|
|
10001
12701
|
}
|
|
10002
12702
|
},
|
|
10003
12703
|
{
|
|
10004
|
-
"name": "
|
|
12704
|
+
"name": "ConstituentTargetBaseFixed",
|
|
10005
12705
|
"type": {
|
|
10006
12706
|
"kind": "struct",
|
|
10007
12707
|
"fields": [
|
|
10008
12708
|
{
|
|
10009
|
-
"name": "
|
|
10010
|
-
"type": "
|
|
12709
|
+
"name": "lpPool",
|
|
12710
|
+
"type": "publicKey"
|
|
10011
12711
|
},
|
|
10012
12712
|
{
|
|
10013
|
-
"name": "
|
|
10014
|
-
"type": "
|
|
12713
|
+
"name": "bump",
|
|
12714
|
+
"type": "u8"
|
|
10015
12715
|
},
|
|
10016
12716
|
{
|
|
10017
|
-
"name": "
|
|
10018
|
-
"type":
|
|
12717
|
+
"name": "pad",
|
|
12718
|
+
"type": {
|
|
12719
|
+
"array": [
|
|
12720
|
+
"u8",
|
|
12721
|
+
3
|
|
12722
|
+
]
|
|
12723
|
+
}
|
|
10019
12724
|
},
|
|
10020
12725
|
{
|
|
10021
|
-
"name": "
|
|
10022
|
-
"
|
|
10023
|
-
|
|
12726
|
+
"name": "len",
|
|
12727
|
+
"docs": [
|
|
12728
|
+
"total elements in the flattened `data` vec"
|
|
12729
|
+
],
|
|
12730
|
+
"type": "u32"
|
|
12731
|
+
}
|
|
12732
|
+
]
|
|
12733
|
+
}
|
|
12734
|
+
},
|
|
12735
|
+
{
|
|
12736
|
+
"name": "ConstituentCorrelationsFixed",
|
|
12737
|
+
"type": {
|
|
12738
|
+
"kind": "struct",
|
|
12739
|
+
"fields": [
|
|
10024
12740
|
{
|
|
10025
|
-
"name": "
|
|
10026
|
-
"type": "
|
|
12741
|
+
"name": "lpPool",
|
|
12742
|
+
"type": "publicKey"
|
|
10027
12743
|
},
|
|
10028
12744
|
{
|
|
10029
|
-
"name": "
|
|
10030
|
-
"type": "
|
|
12745
|
+
"name": "bump",
|
|
12746
|
+
"type": "u8"
|
|
10031
12747
|
},
|
|
10032
12748
|
{
|
|
10033
|
-
"name": "
|
|
10034
|
-
"type":
|
|
12749
|
+
"name": "pad",
|
|
12750
|
+
"type": {
|
|
12751
|
+
"array": [
|
|
12752
|
+
"u8",
|
|
12753
|
+
3
|
|
12754
|
+
]
|
|
12755
|
+
}
|
|
10035
12756
|
},
|
|
10036
12757
|
{
|
|
10037
|
-
"name": "
|
|
10038
|
-
"
|
|
12758
|
+
"name": "len",
|
|
12759
|
+
"docs": [
|
|
12760
|
+
"total elements in the flattened `data` vec"
|
|
12761
|
+
],
|
|
12762
|
+
"type": "u32"
|
|
10039
12763
|
}
|
|
10040
12764
|
]
|
|
10041
12765
|
}
|
|
@@ -10334,6 +13058,12 @@
|
|
|
10334
13058
|
"type": {
|
|
10335
13059
|
"option": "u16"
|
|
10336
13060
|
}
|
|
13061
|
+
},
|
|
13062
|
+
{
|
|
13063
|
+
"name": "isolatedPositionDeposit",
|
|
13064
|
+
"type": {
|
|
13065
|
+
"option": "u64"
|
|
13066
|
+
}
|
|
10337
13067
|
}
|
|
10338
13068
|
]
|
|
10339
13069
|
}
|
|
@@ -10399,6 +13129,12 @@
|
|
|
10399
13129
|
"type": {
|
|
10400
13130
|
"option": "u16"
|
|
10401
13131
|
}
|
|
13132
|
+
},
|
|
13133
|
+
{
|
|
13134
|
+
"name": "isolatedPositionDeposit",
|
|
13135
|
+
"type": {
|
|
13136
|
+
"option": "u64"
|
|
13137
|
+
}
|
|
10402
13138
|
}
|
|
10403
13139
|
]
|
|
10404
13140
|
}
|
|
@@ -12240,6 +14976,23 @@
|
|
|
12240
14976
|
]
|
|
12241
14977
|
}
|
|
12242
14978
|
},
|
|
14979
|
+
{
|
|
14980
|
+
"name": "SettlementDirection",
|
|
14981
|
+
"type": {
|
|
14982
|
+
"kind": "enum",
|
|
14983
|
+
"variants": [
|
|
14984
|
+
{
|
|
14985
|
+
"name": "ToLpPool"
|
|
14986
|
+
},
|
|
14987
|
+
{
|
|
14988
|
+
"name": "FromLpPool"
|
|
14989
|
+
},
|
|
14990
|
+
{
|
|
14991
|
+
"name": "None"
|
|
14992
|
+
}
|
|
14993
|
+
]
|
|
14994
|
+
}
|
|
14995
|
+
},
|
|
12243
14996
|
{
|
|
12244
14997
|
"name": "MarginRequirementType",
|
|
12245
14998
|
"type": {
|
|
@@ -12336,6 +15089,15 @@
|
|
|
12336
15089
|
},
|
|
12337
15090
|
{
|
|
12338
15091
|
"name": "UseMMOraclePrice"
|
|
15092
|
+
},
|
|
15093
|
+
{
|
|
15094
|
+
"name": "UpdateAmmCache"
|
|
15095
|
+
},
|
|
15096
|
+
{
|
|
15097
|
+
"name": "UpdateLpPoolAum"
|
|
15098
|
+
},
|
|
15099
|
+
{
|
|
15100
|
+
"name": "LpPoolSwap"
|
|
12339
15101
|
}
|
|
12340
15102
|
]
|
|
12341
15103
|
}
|
|
@@ -12669,6 +15431,20 @@
|
|
|
12669
15431
|
]
|
|
12670
15432
|
}
|
|
12671
15433
|
},
|
|
15434
|
+
{
|
|
15435
|
+
"name": "ConstituentStatus",
|
|
15436
|
+
"type": {
|
|
15437
|
+
"kind": "enum",
|
|
15438
|
+
"variants": [
|
|
15439
|
+
{
|
|
15440
|
+
"name": "ReduceOnly"
|
|
15441
|
+
},
|
|
15442
|
+
{
|
|
15443
|
+
"name": "Decommissioned"
|
|
15444
|
+
}
|
|
15445
|
+
]
|
|
15446
|
+
}
|
|
15447
|
+
},
|
|
12672
15448
|
{
|
|
12673
15449
|
"name": "MarginCalculationMode",
|
|
12674
15450
|
"type": {
|
|
@@ -12889,6 +15665,37 @@
|
|
|
12889
15665
|
]
|
|
12890
15666
|
}
|
|
12891
15667
|
},
|
|
15668
|
+
{
|
|
15669
|
+
"name": "PerpLpOperation",
|
|
15670
|
+
"type": {
|
|
15671
|
+
"kind": "enum",
|
|
15672
|
+
"variants": [
|
|
15673
|
+
{
|
|
15674
|
+
"name": "TrackAmmRevenue"
|
|
15675
|
+
},
|
|
15676
|
+
{
|
|
15677
|
+
"name": "SettleQuoteOwed"
|
|
15678
|
+
}
|
|
15679
|
+
]
|
|
15680
|
+
}
|
|
15681
|
+
},
|
|
15682
|
+
{
|
|
15683
|
+
"name": "ConstituentLpOperation",
|
|
15684
|
+
"type": {
|
|
15685
|
+
"kind": "enum",
|
|
15686
|
+
"variants": [
|
|
15687
|
+
{
|
|
15688
|
+
"name": "Swap"
|
|
15689
|
+
},
|
|
15690
|
+
{
|
|
15691
|
+
"name": "Deposit"
|
|
15692
|
+
},
|
|
15693
|
+
{
|
|
15694
|
+
"name": "Withdraw"
|
|
15695
|
+
}
|
|
15696
|
+
]
|
|
15697
|
+
}
|
|
15698
|
+
},
|
|
12892
15699
|
{
|
|
12893
15700
|
"name": "MarketStatus",
|
|
12894
15701
|
"type": {
|
|
@@ -12924,6 +15731,23 @@
|
|
|
12924
15731
|
]
|
|
12925
15732
|
}
|
|
12926
15733
|
},
|
|
15734
|
+
{
|
|
15735
|
+
"name": "LpStatus",
|
|
15736
|
+
"type": {
|
|
15737
|
+
"kind": "enum",
|
|
15738
|
+
"variants": [
|
|
15739
|
+
{
|
|
15740
|
+
"name": "Uncollateralized"
|
|
15741
|
+
},
|
|
15742
|
+
{
|
|
15743
|
+
"name": "Active"
|
|
15744
|
+
},
|
|
15745
|
+
{
|
|
15746
|
+
"name": "Decommissioning"
|
|
15747
|
+
}
|
|
15748
|
+
]
|
|
15749
|
+
}
|
|
15750
|
+
},
|
|
12927
15751
|
{
|
|
12928
15752
|
"name": "ContractType",
|
|
12929
15753
|
"type": {
|
|
@@ -13118,6 +15942,23 @@
|
|
|
13118
15942
|
]
|
|
13119
15943
|
}
|
|
13120
15944
|
},
|
|
15945
|
+
{
|
|
15946
|
+
"name": "LpPoolFeatureBitFlags",
|
|
15947
|
+
"type": {
|
|
15948
|
+
"kind": "enum",
|
|
15949
|
+
"variants": [
|
|
15950
|
+
{
|
|
15951
|
+
"name": "SettleLpPool"
|
|
15952
|
+
},
|
|
15953
|
+
{
|
|
15954
|
+
"name": "SwapLpPool"
|
|
15955
|
+
},
|
|
15956
|
+
{
|
|
15957
|
+
"name": "MintRedeemLpPool"
|
|
15958
|
+
}
|
|
15959
|
+
]
|
|
15960
|
+
}
|
|
15961
|
+
},
|
|
13121
15962
|
{
|
|
13122
15963
|
"name": "UserStatus",
|
|
13123
15964
|
"type": {
|
|
@@ -16807,6 +19648,101 @@
|
|
|
16807
19648
|
"code": 6324,
|
|
16808
19649
|
"name": "UnableToLoadRevenueShareAccount",
|
|
16809
19650
|
"msg": "Unable to load builder account"
|
|
19651
|
+
},
|
|
19652
|
+
{
|
|
19653
|
+
"code": 6325,
|
|
19654
|
+
"name": "InvalidConstituent",
|
|
19655
|
+
"msg": "Invalid Constituent"
|
|
19656
|
+
},
|
|
19657
|
+
{
|
|
19658
|
+
"code": 6326,
|
|
19659
|
+
"name": "InvalidAmmConstituentMappingArgument",
|
|
19660
|
+
"msg": "Invalid Amm Constituent Mapping argument"
|
|
19661
|
+
},
|
|
19662
|
+
{
|
|
19663
|
+
"code": 6327,
|
|
19664
|
+
"name": "ConstituentNotFound",
|
|
19665
|
+
"msg": "Constituent not found"
|
|
19666
|
+
},
|
|
19667
|
+
{
|
|
19668
|
+
"code": 6328,
|
|
19669
|
+
"name": "ConstituentCouldNotLoad",
|
|
19670
|
+
"msg": "Constituent could not load"
|
|
19671
|
+
},
|
|
19672
|
+
{
|
|
19673
|
+
"code": 6329,
|
|
19674
|
+
"name": "ConstituentWrongMutability",
|
|
19675
|
+
"msg": "Constituent wrong mutability"
|
|
19676
|
+
},
|
|
19677
|
+
{
|
|
19678
|
+
"code": 6330,
|
|
19679
|
+
"name": "WrongNumberOfConstituents",
|
|
19680
|
+
"msg": "Wrong number of constituents passed to instruction"
|
|
19681
|
+
},
|
|
19682
|
+
{
|
|
19683
|
+
"code": 6331,
|
|
19684
|
+
"name": "InsufficientConstituentTokenBalance",
|
|
19685
|
+
"msg": "Insufficient constituent token balance"
|
|
19686
|
+
},
|
|
19687
|
+
{
|
|
19688
|
+
"code": 6332,
|
|
19689
|
+
"name": "AMMCacheStale",
|
|
19690
|
+
"msg": "Amm Cache data too stale"
|
|
19691
|
+
},
|
|
19692
|
+
{
|
|
19693
|
+
"code": 6333,
|
|
19694
|
+
"name": "LpPoolAumDelayed",
|
|
19695
|
+
"msg": "LP Pool AUM not updated recently"
|
|
19696
|
+
},
|
|
19697
|
+
{
|
|
19698
|
+
"code": 6334,
|
|
19699
|
+
"name": "ConstituentOracleStale",
|
|
19700
|
+
"msg": "Constituent oracle is stale"
|
|
19701
|
+
},
|
|
19702
|
+
{
|
|
19703
|
+
"code": 6335,
|
|
19704
|
+
"name": "LpInvariantFailed",
|
|
19705
|
+
"msg": "LP Invariant failed"
|
|
19706
|
+
},
|
|
19707
|
+
{
|
|
19708
|
+
"code": 6336,
|
|
19709
|
+
"name": "InvalidConstituentDerivativeWeights",
|
|
19710
|
+
"msg": "Invalid constituent derivative weights"
|
|
19711
|
+
},
|
|
19712
|
+
{
|
|
19713
|
+
"code": 6337,
|
|
19714
|
+
"name": "MaxDlpAumBreached",
|
|
19715
|
+
"msg": "Max DLP AUM Breached"
|
|
19716
|
+
},
|
|
19717
|
+
{
|
|
19718
|
+
"code": 6338,
|
|
19719
|
+
"name": "SettleLpPoolDisabled",
|
|
19720
|
+
"msg": "Settle Lp Pool Disabled"
|
|
19721
|
+
},
|
|
19722
|
+
{
|
|
19723
|
+
"code": 6339,
|
|
19724
|
+
"name": "MintRedeemLpPoolDisabled",
|
|
19725
|
+
"msg": "Mint/Redeem Lp Pool Disabled"
|
|
19726
|
+
},
|
|
19727
|
+
{
|
|
19728
|
+
"code": 6340,
|
|
19729
|
+
"name": "LpPoolSettleInvariantBreached",
|
|
19730
|
+
"msg": "Settlement amount exceeded"
|
|
19731
|
+
},
|
|
19732
|
+
{
|
|
19733
|
+
"code": 6341,
|
|
19734
|
+
"name": "InvalidConstituentOperation",
|
|
19735
|
+
"msg": "Invalid constituent operation"
|
|
19736
|
+
},
|
|
19737
|
+
{
|
|
19738
|
+
"code": 6342,
|
|
19739
|
+
"name": "Unauthorized",
|
|
19740
|
+
"msg": "Unauthorized for operation"
|
|
19741
|
+
},
|
|
19742
|
+
{
|
|
19743
|
+
"code": 6343,
|
|
19744
|
+
"name": "InvalidLpPoolId",
|
|
19745
|
+
"msg": "Invalid Lp Pool Id for Operation"
|
|
16810
19746
|
}
|
|
16811
19747
|
]
|
|
16812
19748
|
}
|