flash-sdk 2.3.9 → 2.3.11
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/PerpetualsClient.d.ts +1 -1
- package/dist/PerpetualsClient.js +4 -2
- package/dist/PoolConfig.json +12 -12
- package/dist/idl/perpetuals.d.ts +420 -14
- package/dist/idl/perpetuals.js +420 -14
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/index.d.ts +8 -0
- package/package.json +1 -1
@@ -2145,7 +2145,7 @@ export declare class PerpetualsClient {
|
|
2145
2145
|
prettyPrint: (object: object) => void;
|
2146
2146
|
init: (admins: PublicKey[], config: any) => Promise<void>;
|
2147
2147
|
setAdminSigners: (admins: PublicKey[], minSignatures: number) => Promise<void>;
|
2148
|
-
addPool: (name: string, maxAumUsd: BN, permissions: Permissions, metadataSymbol: string, metadataTitle: string, metadataUri: string) => Promise<void>;
|
2148
|
+
addPool: (name: string, maxAumUsd: BN, permissions: Permissions, metadataSymbol: string, metadataTitle: string, metadataUri: string, stakingFeeShareBps: BN, vpVolumeFactor: number) => Promise<void>;
|
2149
2149
|
removePool: (name: string) => Promise<void>;
|
2150
2150
|
addCustody: (poolName: string, tokenMint: PublicKey, isStable: boolean, isVirtual: boolean, oracle: OracleParams, pricing: PricingParams, permissions: Permissions, fees: Fees, borrowRate: BorrowRateParams, ratios: TokenRatios[], depegAdjustment: boolean) => Promise<void>;
|
2151
2151
|
editCustody: (poolName: string, tokenMint: PublicKey, isStable: boolean, oracle: OracleParams, pricing: PricingParams, permissions: Permissions, fees: Fees, borrowRate: BorrowRateParams, ratios: TokenRatios[]) => Promise<void>;
|
package/dist/PerpetualsClient.js
CHANGED
@@ -341,7 +341,7 @@ var PerpetualsClient = (function () {
|
|
341
341
|
}
|
342
342
|
});
|
343
343
|
}); };
|
344
|
-
this.addPool = function (name, maxAumUsd, permissions, metadataSymbol, metadataTitle, metadataUri) { return __awaiter(_this, void 0, void 0, function () {
|
344
|
+
this.addPool = function (name, maxAumUsd, permissions, metadataSymbol, metadataTitle, metadataUri, stakingFeeShareBps, vpVolumeFactor) { return __awaiter(_this, void 0, void 0, function () {
|
345
345
|
return __generator(this, function (_a) {
|
346
346
|
switch (_a.label) {
|
347
347
|
case 0: return [4, this.program.methods
|
@@ -351,7 +351,9 @@ var PerpetualsClient = (function () {
|
|
351
351
|
permissions: permissions,
|
352
352
|
metadataSymbol: metadataSymbol,
|
353
353
|
metadataTitle: metadataTitle,
|
354
|
-
metadataUri: metadataUri
|
354
|
+
metadataUri: metadataUri,
|
355
|
+
stakingFeeShareBps: stakingFeeShareBps,
|
356
|
+
vpVolumeFactor: vpVolumeFactor
|
355
357
|
})
|
356
358
|
.accounts({
|
357
359
|
admin: this.provider.wallet.publicKey,
|
package/dist/PoolConfig.json
CHANGED
@@ -920,7 +920,7 @@
|
|
920
920
|
"tokenPrecision": 4,
|
921
921
|
"isStable": false,
|
922
922
|
"isVirtual": false,
|
923
|
-
"oracleAddress": "
|
923
|
+
"oracleAddress": "J83w4HKfqxwcq3BEMMkPFSppX3gqekLyLJBexebFVkix",
|
924
924
|
"customOracleAddress": "7UVimffxr9ow1uXYxsr4LHAcV58mLzhmwaeKvJ1pjLiE",
|
925
925
|
"pythTicker": "Crypto.SOL/USD",
|
926
926
|
"pythPriceId": "0xef0d8b6fda2ceba41da15d4095d1da392a0d2f8ed0c6c7bc0f4cfac8c280b56d"
|
@@ -936,7 +936,7 @@
|
|
936
936
|
"tokenPrecision": 6,
|
937
937
|
"isStable": false,
|
938
938
|
"isVirtual": false,
|
939
|
-
"oracleAddress": "
|
939
|
+
"oracleAddress": "HovQMDrbAgAYPCmHVSrezcSmkMtXSSUsLDFANExrZh2J",
|
940
940
|
"customOracleAddress": "4cSM2e6rvbGQUFiJbqytoVMi5GgghSMr8LwVrT9VPSPo",
|
941
941
|
"pythTicker": "Crypto.BTC/USD",
|
942
942
|
"pythPriceId": "0xe62df6c8b4a85fe1a67db44dc12de5db330f7ac66b72dc658afedf0f4a415b43"
|
@@ -952,7 +952,7 @@
|
|
952
952
|
"tokenPrecision": 4,
|
953
953
|
"isStable": false,
|
954
954
|
"isVirtual": false,
|
955
|
-
"oracleAddress": "
|
955
|
+
"oracleAddress": "EdVCmQ9FSPcVe5YySXDPCRmc8aDQLKJ9xvYBMZPie1Vw",
|
956
956
|
"customOracleAddress": "42amVS4KgzR9rA28tkVYqVXjq9Qa8dcZQMbH5EYFX6XC",
|
957
957
|
"pythTicker": "Crypto.ETH/USD",
|
958
958
|
"pythPriceId": "0xff61491a931112ddf1bd8147cd1b641375f79f5825126d665480874634fd0ace"
|
@@ -1155,7 +1155,7 @@
|
|
1155
1155
|
"tokenPrecision": 4,
|
1156
1156
|
"isStable": false,
|
1157
1157
|
"isVirtual": true,
|
1158
|
-
"oracleAddress": "
|
1158
|
+
"oracleAddress": "4GqTjGm686yihQ1m1YdTsSvfm4mNfadv6xskzgCYWNC5",
|
1159
1159
|
"customOracleAddress": "2uPQGpm8X4ZkxMHxrAW1QuhXcse1AHEgPih6Xp9NuEWW",
|
1160
1160
|
"pythTicker": "Metal.XAU/USD",
|
1161
1161
|
"pythPriceId": "0x765d2ba906dbc32ca17cc11f5310a89e9ee1f6420508c63861f2f8ba4ee34bb2"
|
@@ -1171,7 +1171,7 @@
|
|
1171
1171
|
"tokenPrecision": 4,
|
1172
1172
|
"isStable": false,
|
1173
1173
|
"isVirtual": true,
|
1174
|
-
"oracleAddress": "
|
1174
|
+
"oracleAddress": "4NbqLAy4LjhZ7imWbyTuHo4EMSAVWTVDFS6Kpwz15Kyc",
|
1175
1175
|
"customOracleAddress": "H9JxsWwtDZxjSL6m7cdCVsWibj3JBMD9sxqLjadoZnot",
|
1176
1176
|
"pythTicker": "Metal.XAG/USD",
|
1177
1177
|
"pythPriceId": "0xf2fb02c32b055c805e7238d628e5e9dadef274376114eb1f012337cabe93871e"
|
@@ -1187,7 +1187,7 @@
|
|
1187
1187
|
"tokenPrecision": 4,
|
1188
1188
|
"isStable": false,
|
1189
1189
|
"isVirtual": true,
|
1190
|
-
"oracleAddress": "
|
1190
|
+
"oracleAddress": "E36MyBbavhYKHVLWR79GiReNNnBDiHj6nWA7htbkNZbh",
|
1191
1191
|
"customOracleAddress": "Fu76ChamBDjE8UuGLV6GP2AcPPSU6gjhkNhAyuoPm7ny",
|
1192
1192
|
"pythTicker": "FX.EUR/USD",
|
1193
1193
|
"pythPriceId": "0xa995d00bb36a63cef7fd2c287dc105fc8f3d93779f062f09551b0af3e81ec30b"
|
@@ -1203,7 +1203,7 @@
|
|
1203
1203
|
"tokenPrecision": 4,
|
1204
1204
|
"isStable": false,
|
1205
1205
|
"isVirtual": true,
|
1206
|
-
"oracleAddress": "
|
1206
|
+
"oracleAddress": "DhmUMEyq1hmEAGpifaH8HzfG1NqipvrVhBZgBog7NCb6",
|
1207
1207
|
"customOracleAddress": "G25Tm7UkVruTJ7mcbCxFm45XGWwsH72nJKNGcHEQw1tU",
|
1208
1208
|
"pythTicker": "FX.GBP/USD",
|
1209
1209
|
"pythPriceId": "0x84c2dde9633d93d1bcad84e7dc41c9d56578b7ec52fabedc1f335d673df0a7c1"
|
@@ -1219,7 +1219,7 @@
|
|
1219
1219
|
"tokenPrecision": 4,
|
1220
1220
|
"isStable": false,
|
1221
1221
|
"isVirtual": true,
|
1222
|
-
"oracleAddress": "
|
1222
|
+
"oracleAddress": "3aR6kTksEFb2GsCHGBNtpvUpUJ1XzeA41RTnS4APD8oG",
|
1223
1223
|
"customOracleAddress": "6pPXqXcgFFoLEcXfedWJy3ypNZVJ1F3mgipaDFsvZ1co",
|
1224
1224
|
"pythTicker": "FX.AUD/USD",
|
1225
1225
|
"pythPriceId": "0x67a6f93030420c1c9e3fe37c1ab6b77966af82f995944a9fefce357a22854a80"
|
@@ -1463,7 +1463,7 @@
|
|
1463
1463
|
"tokenPrecision": 4,
|
1464
1464
|
"isStable": false,
|
1465
1465
|
"isVirtual": false,
|
1466
|
-
"oracleAddress": "
|
1466
|
+
"oracleAddress": "Gh9hscza9YaCzr84tNV1NZQfpqoL3csYnWDygDkQmBU2",
|
1467
1467
|
"customOracleAddress": "7dbob1psH1iZBS7qPsm3Kwbf5DzSXK8Jyg31CTgTnxH5",
|
1468
1468
|
"pythTicker": "Crypto.JUP/USD",
|
1469
1469
|
"pythPriceId": "0x0a0408d619e9380abad35060f9192039ed5042fa6f82301d0e48bb52be830996"
|
@@ -1479,7 +1479,7 @@
|
|
1479
1479
|
"tokenPrecision": 4,
|
1480
1480
|
"isStable": false,
|
1481
1481
|
"isVirtual": false,
|
1482
|
-
"oracleAddress": "
|
1482
|
+
"oracleAddress": "ELF78ZhSr8u4SCixA7YSpjdZHZoSNrAhcyysbavpC2kA",
|
1483
1483
|
"customOracleAddress": "8vjchtMuJNY4oFQdTi8yCe6mhCaNBFaUbktT482TpLPS",
|
1484
1484
|
"pythTicker": "Crypto.PYTH/USD",
|
1485
1485
|
"pythPriceId": "0x0bbf28e9a841a1cc788f6a361b17ca072d0ea3098a1e5df1c3922d06719579ff"
|
@@ -1495,7 +1495,7 @@
|
|
1495
1495
|
"tokenPrecision": 4,
|
1496
1496
|
"isStable": false,
|
1497
1497
|
"isVirtual": false,
|
1498
|
-
"oracleAddress": "
|
1498
|
+
"oracleAddress": "29xQnTzyyuRtgJ7RtSKEgBWwRzZqtrrKmyQQ5m3x629f",
|
1499
1499
|
"customOracleAddress": "7ajR2zA4MGMMTqRAVjghTKqPPn4kbrj3pYkAVRVwTGzP",
|
1500
1500
|
"pythTicker": "Crypto.JTO/USD",
|
1501
1501
|
"pythPriceId": "0xb43660a5f790c69354b0729a5ef9d50d68f1df92107540210b9cccba1f947cc2"
|
@@ -1511,7 +1511,7 @@
|
|
1511
1511
|
"tokenPrecision": 4,
|
1512
1512
|
"isStable": false,
|
1513
1513
|
"isVirtual": false,
|
1514
|
-
"oracleAddress": "
|
1514
|
+
"oracleAddress": "A9665pJk2GAm7m3gA4f5qu99cWX8kDisDZtoSA9J4a3F",
|
1515
1515
|
"customOracleAddress": "BEMsCSQEGi2kwPA4mKnGjxnreijhMki7L4eeb96ypzF9",
|
1516
1516
|
"pythTicker": "Crypto.W/USD",
|
1517
1517
|
"pythPriceId": "0xeff7446475e218517566ea99e72a4abec2e1bd8498b43b7d8331e29dcb059389"
|
package/dist/idl/perpetuals.d.ts
CHANGED
@@ -3975,6 +3975,14 @@ export type Perpetuals = {
|
|
3975
3975
|
{
|
3976
3976
|
"name": "metadataUri";
|
3977
3977
|
"type": "string";
|
3978
|
+
},
|
3979
|
+
{
|
3980
|
+
"name": "stakingFeeShareBps";
|
3981
|
+
"type": "u64";
|
3982
|
+
},
|
3983
|
+
{
|
3984
|
+
"name": "vpVolumeFactor";
|
3985
|
+
"type": "u8";
|
3978
3986
|
}
|
3979
3987
|
];
|
3980
3988
|
};
|
@@ -4247,6 +4255,34 @@ export type Perpetuals = {
|
|
4247
4255
|
"type": {
|
4248
4256
|
"defined": "Permissions";
|
4249
4257
|
};
|
4258
|
+
},
|
4259
|
+
{
|
4260
|
+
"name": "voltageMultiplier";
|
4261
|
+
"type": {
|
4262
|
+
"defined": "VoltageMultiplier";
|
4263
|
+
};
|
4264
|
+
},
|
4265
|
+
{
|
4266
|
+
"name": "tradingDiscount";
|
4267
|
+
"type": {
|
4268
|
+
"array": [
|
4269
|
+
"u64",
|
4270
|
+
6
|
4271
|
+
];
|
4272
|
+
};
|
4273
|
+
},
|
4274
|
+
{
|
4275
|
+
"name": "referralRebate";
|
4276
|
+
"type": {
|
4277
|
+
"array": [
|
4278
|
+
"u64",
|
4279
|
+
6
|
4280
|
+
];
|
4281
|
+
};
|
4282
|
+
},
|
4283
|
+
{
|
4284
|
+
"name": "referralDiscount";
|
4285
|
+
"type": "u64";
|
4250
4286
|
}
|
4251
4287
|
];
|
4252
4288
|
};
|
@@ -4380,20 +4416,10 @@ export type Perpetuals = {
|
|
4380
4416
|
"type": "bool";
|
4381
4417
|
},
|
4382
4418
|
{
|
4383
|
-
"name": "
|
4384
|
-
"type":
|
4385
|
-
|
4386
|
-
|
4387
|
-
"name": "maxDivergenceBps";
|
4388
|
-
"type": "u64";
|
4389
|
-
},
|
4390
|
-
{
|
4391
|
-
"name": "maxConfBps";
|
4392
|
-
"type": "u64";
|
4393
|
-
},
|
4394
|
-
{
|
4395
|
-
"name": "maxPriceAgeSec";
|
4396
|
-
"type": "u64";
|
4419
|
+
"name": "oracle";
|
4420
|
+
"type": {
|
4421
|
+
"defined": "OracleParams";
|
4422
|
+
};
|
4397
4423
|
},
|
4398
4424
|
{
|
4399
4425
|
"name": "pricing";
|
@@ -5637,6 +5663,36 @@ export type Perpetuals = {
|
|
5637
5663
|
}
|
5638
5664
|
];
|
5639
5665
|
},
|
5666
|
+
{
|
5667
|
+
"name": "AddCollateralLogV2";
|
5668
|
+
"fields": [
|
5669
|
+
{
|
5670
|
+
"name": "owner";
|
5671
|
+
"type": "publicKey";
|
5672
|
+
"index": false;
|
5673
|
+
},
|
5674
|
+
{
|
5675
|
+
"name": "market";
|
5676
|
+
"type": "publicKey";
|
5677
|
+
"index": false;
|
5678
|
+
},
|
5679
|
+
{
|
5680
|
+
"name": "collateralAmount";
|
5681
|
+
"type": "u64";
|
5682
|
+
"index": false;
|
5683
|
+
},
|
5684
|
+
{
|
5685
|
+
"name": "collateralPrice";
|
5686
|
+
"type": "u64";
|
5687
|
+
"index": false;
|
5688
|
+
},
|
5689
|
+
{
|
5690
|
+
"name": "collateralPriceExponent";
|
5691
|
+
"type": "i32";
|
5692
|
+
"index": false;
|
5693
|
+
}
|
5694
|
+
];
|
5695
|
+
},
|
5640
5696
|
{
|
5641
5697
|
"name": "AddLiquidityLog";
|
5642
5698
|
"fields": [
|
@@ -5717,6 +5773,56 @@ export type Perpetuals = {
|
|
5717
5773
|
}
|
5718
5774
|
];
|
5719
5775
|
},
|
5776
|
+
{
|
5777
|
+
"name": "ClosePositionLogV2";
|
5778
|
+
"fields": [
|
5779
|
+
{
|
5780
|
+
"name": "owner";
|
5781
|
+
"type": "publicKey";
|
5782
|
+
"index": false;
|
5783
|
+
},
|
5784
|
+
{
|
5785
|
+
"name": "market";
|
5786
|
+
"type": "publicKey";
|
5787
|
+
"index": false;
|
5788
|
+
},
|
5789
|
+
{
|
5790
|
+
"name": "price";
|
5791
|
+
"type": "u64";
|
5792
|
+
"index": false;
|
5793
|
+
},
|
5794
|
+
{
|
5795
|
+
"name": "priceExponent";
|
5796
|
+
"type": "i32";
|
5797
|
+
"index": false;
|
5798
|
+
},
|
5799
|
+
{
|
5800
|
+
"name": "sizeAmount";
|
5801
|
+
"type": "u64";
|
5802
|
+
"index": false;
|
5803
|
+
},
|
5804
|
+
{
|
5805
|
+
"name": "sizeUsd";
|
5806
|
+
"type": "u64";
|
5807
|
+
"index": false;
|
5808
|
+
},
|
5809
|
+
{
|
5810
|
+
"name": "profitUsd";
|
5811
|
+
"type": "u64";
|
5812
|
+
"index": false;
|
5813
|
+
},
|
5814
|
+
{
|
5815
|
+
"name": "lossUsd";
|
5816
|
+
"type": "u64";
|
5817
|
+
"index": false;
|
5818
|
+
},
|
5819
|
+
{
|
5820
|
+
"name": "feeAmount";
|
5821
|
+
"type": "u64";
|
5822
|
+
"index": false;
|
5823
|
+
}
|
5824
|
+
];
|
5825
|
+
},
|
5720
5826
|
{
|
5721
5827
|
"name": "CollectStakeRewardLog";
|
5722
5828
|
"fields": [
|
@@ -5782,6 +5888,61 @@ export type Perpetuals = {
|
|
5782
5888
|
}
|
5783
5889
|
];
|
5784
5890
|
},
|
5891
|
+
{
|
5892
|
+
"name": "DecreaseSizeLogV2";
|
5893
|
+
"fields": [
|
5894
|
+
{
|
5895
|
+
"name": "owner";
|
5896
|
+
"type": "publicKey";
|
5897
|
+
"index": false;
|
5898
|
+
},
|
5899
|
+
{
|
5900
|
+
"name": "market";
|
5901
|
+
"type": "publicKey";
|
5902
|
+
"index": false;
|
5903
|
+
},
|
5904
|
+
{
|
5905
|
+
"name": "price";
|
5906
|
+
"type": "u64";
|
5907
|
+
"index": false;
|
5908
|
+
},
|
5909
|
+
{
|
5910
|
+
"name": "priceExponent";
|
5911
|
+
"type": "i32";
|
5912
|
+
"index": false;
|
5913
|
+
},
|
5914
|
+
{
|
5915
|
+
"name": "sizeDelta";
|
5916
|
+
"type": "u64";
|
5917
|
+
"index": false;
|
5918
|
+
},
|
5919
|
+
{
|
5920
|
+
"name": "sizeDeltaUsd";
|
5921
|
+
"type": "u64";
|
5922
|
+
"index": false;
|
5923
|
+
},
|
5924
|
+
{
|
5925
|
+
"name": "settledReturns";
|
5926
|
+
"type": "u64";
|
5927
|
+
"index": false;
|
5928
|
+
},
|
5929
|
+
{
|
5930
|
+
"name": "deltaProfitUsd";
|
5931
|
+
"type": "u64";
|
5932
|
+
"index": false;
|
5933
|
+
},
|
5934
|
+
{
|
5935
|
+
"name": "deltaLossUsd";
|
5936
|
+
"type": "u64";
|
5937
|
+
"index": false;
|
5938
|
+
},
|
5939
|
+
{
|
5940
|
+
"name": "feeAmount";
|
5941
|
+
"type": "u64";
|
5942
|
+
"index": false;
|
5943
|
+
}
|
5944
|
+
];
|
5945
|
+
},
|
5785
5946
|
{
|
5786
5947
|
"name": "DepositStakeLog";
|
5787
5948
|
"fields": [
|
@@ -5847,6 +6008,61 @@ export type Perpetuals = {
|
|
5847
6008
|
}
|
5848
6009
|
];
|
5849
6010
|
},
|
6011
|
+
{
|
6012
|
+
"name": "ForceClosePositionLogV2";
|
6013
|
+
"fields": [
|
6014
|
+
{
|
6015
|
+
"name": "owner";
|
6016
|
+
"type": "publicKey";
|
6017
|
+
"index": false;
|
6018
|
+
},
|
6019
|
+
{
|
6020
|
+
"name": "market";
|
6021
|
+
"type": "publicKey";
|
6022
|
+
"index": false;
|
6023
|
+
},
|
6024
|
+
{
|
6025
|
+
"name": "price";
|
6026
|
+
"type": "u64";
|
6027
|
+
"index": false;
|
6028
|
+
},
|
6029
|
+
{
|
6030
|
+
"name": "priceExponent";
|
6031
|
+
"type": "i32";
|
6032
|
+
"index": false;
|
6033
|
+
},
|
6034
|
+
{
|
6035
|
+
"name": "sizeAmount";
|
6036
|
+
"type": "u64";
|
6037
|
+
"index": false;
|
6038
|
+
},
|
6039
|
+
{
|
6040
|
+
"name": "sizeUsd";
|
6041
|
+
"type": "u64";
|
6042
|
+
"index": false;
|
6043
|
+
},
|
6044
|
+
{
|
6045
|
+
"name": "profitUsd";
|
6046
|
+
"type": "u64";
|
6047
|
+
"index": false;
|
6048
|
+
},
|
6049
|
+
{
|
6050
|
+
"name": "lossUsd";
|
6051
|
+
"type": "u64";
|
6052
|
+
"index": false;
|
6053
|
+
},
|
6054
|
+
{
|
6055
|
+
"name": "feeAmount";
|
6056
|
+
"type": "u64";
|
6057
|
+
"index": false;
|
6058
|
+
},
|
6059
|
+
{
|
6060
|
+
"name": "isStopLoss";
|
6061
|
+
"type": "bool";
|
6062
|
+
"index": false;
|
6063
|
+
}
|
6064
|
+
];
|
6065
|
+
},
|
5850
6066
|
{
|
5851
6067
|
"name": "IncreaseSizeLog";
|
5852
6068
|
"fields": [
|
@@ -5882,6 +6098,46 @@ export type Perpetuals = {
|
|
5882
6098
|
}
|
5883
6099
|
];
|
5884
6100
|
},
|
6101
|
+
{
|
6102
|
+
"name": "IncreaseSizeLogV2";
|
6103
|
+
"fields": [
|
6104
|
+
{
|
6105
|
+
"name": "owner";
|
6106
|
+
"type": "publicKey";
|
6107
|
+
"index": false;
|
6108
|
+
},
|
6109
|
+
{
|
6110
|
+
"name": "market";
|
6111
|
+
"type": "publicKey";
|
6112
|
+
"index": false;
|
6113
|
+
},
|
6114
|
+
{
|
6115
|
+
"name": "price";
|
6116
|
+
"type": "u64";
|
6117
|
+
"index": false;
|
6118
|
+
},
|
6119
|
+
{
|
6120
|
+
"name": "priceExponent";
|
6121
|
+
"type": "i32";
|
6122
|
+
"index": false;
|
6123
|
+
},
|
6124
|
+
{
|
6125
|
+
"name": "sizeAmount";
|
6126
|
+
"type": "u64";
|
6127
|
+
"index": false;
|
6128
|
+
},
|
6129
|
+
{
|
6130
|
+
"name": "sizeUsd";
|
6131
|
+
"type": "u64";
|
6132
|
+
"index": false;
|
6133
|
+
},
|
6134
|
+
{
|
6135
|
+
"name": "feeAmount";
|
6136
|
+
"type": "u64";
|
6137
|
+
"index": false;
|
6138
|
+
}
|
6139
|
+
];
|
6140
|
+
},
|
5885
6141
|
{
|
5886
6142
|
"name": "LiquidateLog";
|
5887
6143
|
"fields": [
|
@@ -5917,6 +6173,46 @@ export type Perpetuals = {
|
|
5917
6173
|
}
|
5918
6174
|
];
|
5919
6175
|
},
|
6176
|
+
{
|
6177
|
+
"name": "LiquidateLogV2";
|
6178
|
+
"fields": [
|
6179
|
+
{
|
6180
|
+
"name": "owner";
|
6181
|
+
"type": "publicKey";
|
6182
|
+
"index": false;
|
6183
|
+
},
|
6184
|
+
{
|
6185
|
+
"name": "market";
|
6186
|
+
"type": "publicKey";
|
6187
|
+
"index": false;
|
6188
|
+
},
|
6189
|
+
{
|
6190
|
+
"name": "price";
|
6191
|
+
"type": "u64";
|
6192
|
+
"index": false;
|
6193
|
+
},
|
6194
|
+
{
|
6195
|
+
"name": "priceExponent";
|
6196
|
+
"type": "i32";
|
6197
|
+
"index": false;
|
6198
|
+
},
|
6199
|
+
{
|
6200
|
+
"name": "sizeUsd";
|
6201
|
+
"type": "u64";
|
6202
|
+
"index": false;
|
6203
|
+
},
|
6204
|
+
{
|
6205
|
+
"name": "sizeAmount";
|
6206
|
+
"type": "u64";
|
6207
|
+
"index": false;
|
6208
|
+
},
|
6209
|
+
{
|
6210
|
+
"name": "feeAmount";
|
6211
|
+
"type": "u64";
|
6212
|
+
"index": false;
|
6213
|
+
}
|
6214
|
+
];
|
6215
|
+
},
|
5920
6216
|
{
|
5921
6217
|
"name": "OpenPositionLog";
|
5922
6218
|
"fields": [
|
@@ -5962,6 +6258,56 @@ export type Perpetuals = {
|
|
5962
6258
|
}
|
5963
6259
|
];
|
5964
6260
|
},
|
6261
|
+
{
|
6262
|
+
"name": "OpenPositionLogV2";
|
6263
|
+
"fields": [
|
6264
|
+
{
|
6265
|
+
"name": "owner";
|
6266
|
+
"type": "publicKey";
|
6267
|
+
"index": false;
|
6268
|
+
},
|
6269
|
+
{
|
6270
|
+
"name": "market";
|
6271
|
+
"type": "publicKey";
|
6272
|
+
"index": false;
|
6273
|
+
},
|
6274
|
+
{
|
6275
|
+
"name": "price";
|
6276
|
+
"type": "u64";
|
6277
|
+
"index": false;
|
6278
|
+
},
|
6279
|
+
{
|
6280
|
+
"name": "priceExponent";
|
6281
|
+
"type": "i32";
|
6282
|
+
"index": false;
|
6283
|
+
},
|
6284
|
+
{
|
6285
|
+
"name": "sizeAmount";
|
6286
|
+
"type": "u64";
|
6287
|
+
"index": false;
|
6288
|
+
},
|
6289
|
+
{
|
6290
|
+
"name": "sizeUsd";
|
6291
|
+
"type": "u64";
|
6292
|
+
"index": false;
|
6293
|
+
},
|
6294
|
+
{
|
6295
|
+
"name": "collateralAmount";
|
6296
|
+
"type": "u64";
|
6297
|
+
"index": false;
|
6298
|
+
},
|
6299
|
+
{
|
6300
|
+
"name": "collateralUsd";
|
6301
|
+
"type": "u64";
|
6302
|
+
"index": false;
|
6303
|
+
},
|
6304
|
+
{
|
6305
|
+
"name": "feeAmount";
|
6306
|
+
"type": "u64";
|
6307
|
+
"index": false;
|
6308
|
+
}
|
6309
|
+
];
|
6310
|
+
},
|
5965
6311
|
{
|
5966
6312
|
"name": "RemoveCollateralLog";
|
5967
6313
|
"fields": [
|
@@ -5987,6 +6333,36 @@ export type Perpetuals = {
|
|
5987
6333
|
}
|
5988
6334
|
];
|
5989
6335
|
},
|
6336
|
+
{
|
6337
|
+
"name": "RemoveCollateralLogV2";
|
6338
|
+
"fields": [
|
6339
|
+
{
|
6340
|
+
"name": "owner";
|
6341
|
+
"type": "publicKey";
|
6342
|
+
"index": false;
|
6343
|
+
},
|
6344
|
+
{
|
6345
|
+
"name": "market";
|
6346
|
+
"type": "publicKey";
|
6347
|
+
"index": false;
|
6348
|
+
},
|
6349
|
+
{
|
6350
|
+
"name": "collateralAmount";
|
6351
|
+
"type": "u64";
|
6352
|
+
"index": false;
|
6353
|
+
},
|
6354
|
+
{
|
6355
|
+
"name": "collateralPrice";
|
6356
|
+
"type": "u64";
|
6357
|
+
"index": false;
|
6358
|
+
},
|
6359
|
+
{
|
6360
|
+
"name": "collateralPriceExponent";
|
6361
|
+
"type": "i32";
|
6362
|
+
"index": false;
|
6363
|
+
}
|
6364
|
+
];
|
6365
|
+
},
|
5990
6366
|
{
|
5991
6367
|
"name": "RemoveLiquidityLog";
|
5992
6368
|
"fields": [
|
@@ -6047,6 +6423,36 @@ export type Perpetuals = {
|
|
6047
6423
|
}
|
6048
6424
|
];
|
6049
6425
|
},
|
6426
|
+
{
|
6427
|
+
"name": "SetTriggerPriceLogV2";
|
6428
|
+
"fields": [
|
6429
|
+
{
|
6430
|
+
"name": "owner";
|
6431
|
+
"type": "publicKey";
|
6432
|
+
"index": false;
|
6433
|
+
},
|
6434
|
+
{
|
6435
|
+
"name": "market";
|
6436
|
+
"type": "publicKey";
|
6437
|
+
"index": false;
|
6438
|
+
},
|
6439
|
+
{
|
6440
|
+
"name": "price";
|
6441
|
+
"type": "u64";
|
6442
|
+
"index": false;
|
6443
|
+
},
|
6444
|
+
{
|
6445
|
+
"name": "priceExponent";
|
6446
|
+
"type": "i32";
|
6447
|
+
"index": false;
|
6448
|
+
},
|
6449
|
+
{
|
6450
|
+
"name": "isStopLoss";
|
6451
|
+
"type": "bool";
|
6452
|
+
"index": false;
|
6453
|
+
}
|
6454
|
+
];
|
6455
|
+
},
|
6050
6456
|
{
|
6051
6457
|
"name": "SwapLog";
|
6052
6458
|
"fields": [
|