@gainsnetwork/sdk 0.2.61-rc2 → 0.2.63-rc1

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.
@@ -1375,6 +1375,14 @@ const _abi = [
1375
1375
  type: "function",
1376
1376
  signature: "0xc85ac748",
1377
1377
  },
1378
+ {
1379
+ inputs: [],
1380
+ name: "initializeReferralFeeChange",
1381
+ outputs: [],
1382
+ stateMutability: "nonpayable",
1383
+ type: "function",
1384
+ signature: "0xe4d0c552",
1385
+ },
1378
1386
  {
1379
1387
  inputs: [
1380
1388
  {
@@ -1567,6 +1575,11 @@ const _abi = [
1567
1575
  },
1568
1576
  {
1569
1577
  inputs: [
1578
+ {
1579
+ internalType: "address",
1580
+ name: "_trader",
1581
+ type: "address",
1582
+ },
1570
1583
  {
1571
1584
  internalType: "uint256",
1572
1585
  name: "_pairIndex",
@@ -1583,7 +1596,32 @@ const _abi = [
1583
1596
  ],
1584
1597
  stateMutability: "view",
1585
1598
  type: "function",
1586
- signature: "0xa1d54e9b",
1599
+ signature: "0xd6bfb055",
1600
+ },
1601
+ {
1602
+ inputs: [
1603
+ {
1604
+ internalType: "address[]",
1605
+ name: "_trader",
1606
+ type: "address[]",
1607
+ },
1608
+ {
1609
+ internalType: "uint256[]",
1610
+ name: "_pairIndex",
1611
+ type: "uint256[]",
1612
+ },
1613
+ ],
1614
+ name: "pairSpreadPArray",
1615
+ outputs: [
1616
+ {
1617
+ internalType: "uint256[]",
1618
+ name: "",
1619
+ type: "uint256[]",
1620
+ },
1621
+ ],
1622
+ stateMutability: "view",
1623
+ type: "function",
1624
+ signature: "0x842a91d6",
1587
1625
  },
1588
1626
  {
1589
1627
  inputs: [
@@ -2090,6 +2128,46 @@ const _abi = [
2090
2128
  type: "event",
2091
2129
  signature: "0x80495287b7fdd5e00b7c8c1eb065c5b63474d11ffb062cc82c13da77dda8424d",
2092
2130
  },
2131
+ {
2132
+ anonymous: false,
2133
+ inputs: [
2134
+ {
2135
+ indexed: true,
2136
+ internalType: "address",
2137
+ name: "ally",
2138
+ type: "address",
2139
+ },
2140
+ {
2141
+ indexed: false,
2142
+ internalType: "uint24",
2143
+ name: "allyFeeP",
2144
+ type: "uint24",
2145
+ },
2146
+ ],
2147
+ name: "OverrodeAllyFeeP",
2148
+ type: "event",
2149
+ signature: "0xb5c3fde8238e94bb4bbaa413be4d5b14d90e9a399db8d4f405d791ccd383ec9d",
2150
+ },
2151
+ {
2152
+ anonymous: false,
2153
+ inputs: [
2154
+ {
2155
+ indexed: true,
2156
+ internalType: "address",
2157
+ name: "referrer",
2158
+ type: "address",
2159
+ },
2160
+ {
2161
+ indexed: false,
2162
+ internalType: "uint24",
2163
+ name: "referralFeeP",
2164
+ type: "uint24",
2165
+ },
2166
+ ],
2167
+ name: "OverrodeReferralFeeP",
2168
+ type: "event",
2169
+ signature: "0x69b632ab0d5becac42ff599f05530699f7bafe35d60010b9f45122e921eb7496",
2170
+ },
2093
2171
  {
2094
2172
  anonymous: false,
2095
2173
  inputs: [
@@ -2355,6 +2433,43 @@ const _abi = [
2355
2433
  type: "function",
2356
2434
  signature: "0x92e67406",
2357
2435
  },
2436
+ {
2437
+ inputs: [
2438
+ {
2439
+ internalType: "address",
2440
+ name: "_address",
2441
+ type: "address",
2442
+ },
2443
+ ],
2444
+ name: "getReferralSettingsOverrides",
2445
+ outputs: [
2446
+ {
2447
+ components: [
2448
+ {
2449
+ internalType: "uint24",
2450
+ name: "referralFeeOverrideP",
2451
+ type: "uint24",
2452
+ },
2453
+ {
2454
+ internalType: "uint24",
2455
+ name: "allyFeeOverrideP",
2456
+ type: "uint24",
2457
+ },
2458
+ {
2459
+ internalType: "uint208",
2460
+ name: "__placeholder",
2461
+ type: "uint208",
2462
+ },
2463
+ ],
2464
+ internalType: "struct IReferrals.ReferralSettingsOverrides",
2465
+ name: "",
2466
+ type: "tuple",
2467
+ },
2468
+ ],
2469
+ stateMutability: "view",
2470
+ type: "function",
2471
+ signature: "0xa1ed4611",
2472
+ },
2358
2473
  {
2359
2474
  inputs: [],
2360
2475
  name: "getReferralsAllyFeeP",
@@ -2578,6 +2693,44 @@ const _abi = [
2578
2693
  type: "function",
2579
2694
  signature: "0x38fb18c7",
2580
2695
  },
2696
+ {
2697
+ inputs: [
2698
+ {
2699
+ internalType: "address[]",
2700
+ name: "_allies",
2701
+ type: "address[]",
2702
+ },
2703
+ {
2704
+ internalType: "uint24[]",
2705
+ name: "_allyFeeP",
2706
+ type: "uint24[]",
2707
+ },
2708
+ ],
2709
+ name: "overrideAllyFeeP",
2710
+ outputs: [],
2711
+ stateMutability: "nonpayable",
2712
+ type: "function",
2713
+ signature: "0x9397053b",
2714
+ },
2715
+ {
2716
+ inputs: [
2717
+ {
2718
+ internalType: "address[]",
2719
+ name: "_referrers",
2720
+ type: "address[]",
2721
+ },
2722
+ {
2723
+ internalType: "uint24[]",
2724
+ name: "_referralFeeP",
2725
+ type: "uint24[]",
2726
+ },
2727
+ ],
2728
+ name: "overrideReferralFeeP",
2729
+ outputs: [],
2730
+ stateMutability: "nonpayable",
2731
+ type: "function",
2732
+ signature: "0xdaeb463b",
2733
+ },
2581
2734
  {
2582
2735
  inputs: [
2583
2736
  {
@@ -3713,6 +3866,38 @@ const _abi = [
3713
3866
  type: "event",
3714
3867
  signature: "0xb97e27f523fc23750f9d24f12010b9c513c301db9022d0ce8e27a50d9f426383",
3715
3868
  },
3869
+ {
3870
+ anonymous: false,
3871
+ inputs: [
3872
+ {
3873
+ indexed: true,
3874
+ internalType: "address",
3875
+ name: "trader",
3876
+ type: "address",
3877
+ },
3878
+ {
3879
+ indexed: true,
3880
+ internalType: "uint16",
3881
+ name: "pairIndex",
3882
+ type: "uint16",
3883
+ },
3884
+ {
3885
+ indexed: false,
3886
+ internalType: "uint16",
3887
+ name: "cumulVolPriceImpactMultiplier",
3888
+ type: "uint16",
3889
+ },
3890
+ {
3891
+ indexed: false,
3892
+ internalType: "uint16",
3893
+ name: "fixedSpreadP",
3894
+ type: "uint16",
3895
+ },
3896
+ ],
3897
+ name: "UserPriceImpactUpdated",
3898
+ type: "event",
3899
+ signature: "0x8f9f4768797359d22361c80641b41261863e9ad2f362291570d7386478f4135b",
3900
+ },
3716
3901
  {
3717
3902
  inputs: [
3718
3903
  {
@@ -4102,6 +4287,48 @@ const _abi = [
4102
4287
  type: "function",
4103
4288
  signature: "0xae0d3a07",
4104
4289
  },
4290
+ {
4291
+ inputs: [
4292
+ {
4293
+ internalType: "address",
4294
+ name: "_trader",
4295
+ type: "address",
4296
+ },
4297
+ {
4298
+ internalType: "uint256",
4299
+ name: "_pairIndex",
4300
+ type: "uint256",
4301
+ },
4302
+ ],
4303
+ name: "getUserPriceImpact",
4304
+ outputs: [
4305
+ {
4306
+ components: [
4307
+ {
4308
+ internalType: "uint16",
4309
+ name: "cumulVolPriceImpactMultiplier",
4310
+ type: "uint16",
4311
+ },
4312
+ {
4313
+ internalType: "uint16",
4314
+ name: "fixedSpreadP",
4315
+ type: "uint16",
4316
+ },
4317
+ {
4318
+ internalType: "uint224",
4319
+ name: "__placeholder",
4320
+ type: "uint224",
4321
+ },
4322
+ ],
4323
+ internalType: "struct IPriceImpact.UserPriceImpact",
4324
+ name: "",
4325
+ type: "tuple",
4326
+ },
4327
+ ],
4328
+ stateMutability: "view",
4329
+ type: "function",
4330
+ signature: "0x5a1449ab",
4331
+ },
4105
4332
  {
4106
4333
  inputs: [
4107
4334
  {
@@ -4344,6 +4571,35 @@ const _abi = [
4344
4571
  type: "function",
4345
4572
  signature: "0xef0243dc",
4346
4573
  },
4574
+ {
4575
+ inputs: [
4576
+ {
4577
+ internalType: "address[]",
4578
+ name: "_traders",
4579
+ type: "address[]",
4580
+ },
4581
+ {
4582
+ internalType: "uint16[]",
4583
+ name: "_pairIndices",
4584
+ type: "uint16[]",
4585
+ },
4586
+ {
4587
+ internalType: "uint16[]",
4588
+ name: "_cumulVolPriceImpactMultipliers",
4589
+ type: "uint16[]",
4590
+ },
4591
+ {
4592
+ internalType: "uint16[]",
4593
+ name: "_fixedSpreadPs",
4594
+ type: "uint16[]",
4595
+ },
4596
+ ],
4597
+ name: "setUserPriceImpact",
4598
+ outputs: [],
4599
+ stateMutability: "nonpayable",
4600
+ type: "function",
4601
+ signature: "0x9a8c610e",
4602
+ },
4347
4603
  {
4348
4604
  inputs: [],
4349
4605
  name: "CollateralAlreadyActive",
@@ -6079,6 +6335,20 @@ const _abi = [
6079
6335
  type: "function",
6080
6336
  signature: "0x6a0aff41",
6081
6337
  },
6338
+ {
6339
+ inputs: [],
6340
+ name: "getGnsCollateralIndex",
6341
+ outputs: [
6342
+ {
6343
+ internalType: "uint8",
6344
+ name: "",
6345
+ type: "uint8",
6346
+ },
6347
+ ],
6348
+ stateMutability: "view",
6349
+ type: "function",
6350
+ signature: "0x78a70ec6",
6351
+ },
6082
6352
  {
6083
6353
  inputs: [
6084
6354
  {
@@ -6915,6 +7185,26 @@ const _abi = [
6915
7185
  type: "function",
6916
7186
  signature: "0x4d140218",
6917
7187
  },
7188
+ {
7189
+ inputs: [
7190
+ {
7191
+ internalType: "uint8",
7192
+ name: "_index",
7193
+ type: "uint8",
7194
+ },
7195
+ ],
7196
+ name: "isCollateralGns",
7197
+ outputs: [
7198
+ {
7199
+ internalType: "bool",
7200
+ name: "",
7201
+ type: "bool",
7202
+ },
7203
+ ],
7204
+ stateMutability: "view",
7205
+ type: "function",
7206
+ signature: "0x8db9390d",
7207
+ },
6918
7208
  {
6919
7209
  inputs: [
6920
7210
  {
@@ -9423,6 +9713,11 @@ const _abi = [
9423
9713
  type: "function",
9424
9714
  signature: "0xf401f2bb",
9425
9715
  },
9716
+ {
9717
+ inputs: [],
9718
+ name: "PendingOrderNotOpen",
9719
+ type: "error",
9720
+ },
9426
9721
  {
9427
9722
  anonymous: false,
9428
9723
  inputs: [
@@ -13011,12 +13306,40 @@ const _abi = [
13011
13306
  inputs: [
13012
13307
  {
13013
13308
  indexed: false,
13014
- internalType: "uint8",
13015
- name: "value",
13016
- type: "uint8",
13309
+ internalType: "uint24",
13310
+ name: "maxLookbackDeviationP",
13311
+ type: "uint24",
13017
13312
  },
13018
13313
  ],
13019
- name: "MinAnswersUpdated",
13314
+ name: "MaxLookbackDeviationPUpdated",
13315
+ type: "event",
13316
+ signature: "0xa043df067b559e4e84d85e6607cd6524f12547f7d22dcb2bbcdc03c74886688c",
13317
+ },
13318
+ {
13319
+ anonymous: false,
13320
+ inputs: [
13321
+ {
13322
+ indexed: false,
13323
+ internalType: "uint24",
13324
+ name: "maxMarketDeviationP",
13325
+ type: "uint24",
13326
+ },
13327
+ ],
13328
+ name: "MaxMarketDeviationPUpdated",
13329
+ type: "event",
13330
+ signature: "0x93bd5e01958edd4eb2e0dfd8da8773f075b8f8ae0ef6823bc12703cc2e546df0",
13331
+ },
13332
+ {
13333
+ anonymous: false,
13334
+ inputs: [
13335
+ {
13336
+ indexed: false,
13337
+ internalType: "uint8",
13338
+ name: "value",
13339
+ type: "uint8",
13340
+ },
13341
+ ],
13342
+ name: "MinAnswersUpdated",
13020
13343
  type: "event",
13021
13344
  signature: "0x6bc925491f55f56cb08a3ff41035fb0fdeae0cecc94f8e32e9b8ba2ad17fa7f9",
13022
13345
  },
@@ -13137,10 +13460,78 @@ const _abi = [
13137
13460
  name: "usedInMedian",
13138
13461
  type: "bool",
13139
13462
  },
13463
+ {
13464
+ indexed: false,
13465
+ internalType: "bool",
13466
+ name: "minAnswersReached",
13467
+ type: "bool",
13468
+ },
13469
+ {
13470
+ indexed: false,
13471
+ internalType: "bool",
13472
+ name: "minFilteredAnswersReached",
13473
+ type: "bool",
13474
+ },
13475
+ {
13476
+ components: [
13477
+ {
13478
+ internalType: "uint64",
13479
+ name: "open",
13480
+ type: "uint64",
13481
+ },
13482
+ {
13483
+ internalType: "uint64",
13484
+ name: "high",
13485
+ type: "uint64",
13486
+ },
13487
+ {
13488
+ internalType: "uint64",
13489
+ name: "low",
13490
+ type: "uint64",
13491
+ },
13492
+ {
13493
+ internalType: "uint64",
13494
+ name: "ts",
13495
+ type: "uint64",
13496
+ },
13497
+ ],
13498
+ indexed: false,
13499
+ internalType: "struct IPriceAggregator.OrderAnswer[]",
13500
+ name: "unfilteredAnswers",
13501
+ type: "tuple[]",
13502
+ },
13503
+ {
13504
+ components: [
13505
+ {
13506
+ internalType: "uint64",
13507
+ name: "open",
13508
+ type: "uint64",
13509
+ },
13510
+ {
13511
+ internalType: "uint64",
13512
+ name: "high",
13513
+ type: "uint64",
13514
+ },
13515
+ {
13516
+ internalType: "uint64",
13517
+ name: "low",
13518
+ type: "uint64",
13519
+ },
13520
+ {
13521
+ internalType: "uint64",
13522
+ name: "ts",
13523
+ type: "uint64",
13524
+ },
13525
+ ],
13526
+ indexed: false,
13527
+ internalType: "struct IPriceAggregator.OrderAnswer[]",
13528
+ name: "filteredAnswers",
13529
+ type: "tuple[]",
13530
+ },
13140
13531
  ],
13141
13532
  name: "PriceReceived",
13142
13533
  type: "event",
13143
- signature: "0x1d01fcc0e82c93f463da710266800aff752bf7da2435090b30616276602eb75a",
13534
+ signature: "0xa412cea1596decdadbb4b2b716e8efe35b7d319fbda462bd9c37b9d46a001dee",
13144
13535
  },
13145
13536
  {
13146
13537
  anonymous: false,
@@ -13159,6 +13550,78 @@ const _abi = [
13159
13550
  },
13160
13551
  {
13161
13552
  components: [
13553
+ {
13554
+ components: [
13555
+ {
13556
+ internalType: "address",
13557
+ name: "user",
13558
+ type: "address",
13559
+ },
13560
+ {
13561
+ internalType: "uint32",
13562
+ name: "index",
13563
+ type: "uint32",
13564
+ },
13565
+ {
13566
+ internalType: "uint16",
13567
+ name: "pairIndex",
13568
+ type: "uint16",
13569
+ },
13570
+ {
13571
+ internalType: "uint24",
13572
+ name: "leverage",
13573
+ type: "uint24",
13574
+ },
13575
+ {
13576
+ internalType: "bool",
13577
+ name: "long",
13578
+ type: "bool",
13579
+ },
13580
+ {
13581
+ internalType: "bool",
13582
+ name: "isOpen",
13583
+ type: "bool",
13584
+ },
13585
+ {
13586
+ internalType: "uint8",
13587
+ name: "collateralIndex",
13588
+ type: "uint8",
13589
+ },
13590
+ {
13591
+ internalType: "enum ITradingStorage.TradeType",
13592
+ name: "tradeType",
13593
+ type: "uint8",
13594
+ },
13595
+ {
13596
+ internalType: "uint120",
13597
+ name: "collateralAmount",
13598
+ type: "uint120",
13599
+ },
13600
+ {
13601
+ internalType: "uint64",
13602
+ name: "openPrice",
13603
+ type: "uint64",
13604
+ },
13605
+ {
13606
+ internalType: "uint64",
13607
+ name: "tp",
13608
+ type: "uint64",
13609
+ },
13610
+ {
13611
+ internalType: "uint64",
13612
+ name: "sl",
13613
+ type: "uint64",
13614
+ },
13615
+ {
13616
+ internalType: "uint192",
13617
+ name: "__placeholder",
13618
+ type: "uint192",
13619
+ },
13620
+ ],
13621
+ internalType: "struct ITradingStorage.Trade",
13622
+ name: "trade",
13623
+ type: "tuple",
13624
+ },
13162
13625
  {
13163
13626
  internalType: "address",
13164
13627
  name: "user",
@@ -13169,36 +13632,32 @@ const _abi = [
13169
13632
  name: "index",
13170
13633
  type: "uint32",
13171
13634
  },
13172
- ],
13173
- indexed: false,
13174
- internalType: "struct ITradingStorage.Id",
13175
- name: "tradeId",
13176
- type: "tuple",
13177
- },
13178
- {
13179
- components: [
13180
13635
  {
13181
- internalType: "address",
13182
- name: "user",
13183
- type: "address",
13636
+ internalType: "bool",
13637
+ name: "isOpen",
13638
+ type: "bool",
13639
+ },
13640
+ {
13641
+ internalType: "enum ITradingStorage.PendingOrderType",
13642
+ name: "orderType",
13643
+ type: "uint8",
13184
13644
  },
13185
13645
  {
13186
13646
  internalType: "uint32",
13187
- name: "index",
13647
+ name: "createdBlock",
13188
13648
  type: "uint32",
13189
13649
  },
13650
+ {
13651
+ internalType: "uint16",
13652
+ name: "maxSlippageP",
13653
+ type: "uint16",
13654
+ },
13190
13655
  ],
13191
13656
  indexed: false,
13192
- internalType: "struct ITradingStorage.Id",
13193
- name: "pendingOrderId",
13657
+ internalType: "struct ITradingStorage.PendingOrder",
13658
+ name: "pendingOrder",
13194
13659
  type: "tuple",
13195
13660
  },
13196
- {
13197
- indexed: false,
13198
- internalType: "enum ITradingStorage.PendingOrderType",
13199
- name: "orderType",
13200
- type: "uint8",
13201
- },
13202
13661
  {
13203
13662
  indexed: false,
13204
13663
  internalType: "uint256",
@@ -13232,7 +13691,7 @@ const _abi = [
13232
13691
  ],
13233
13692
  name: "PriceRequested",
13234
13693
  type: "event",
13235
- signature: "0x59fd16e7bbed6457d473d57a799cffde3ff43e27a3a87479a5a431b4801f754f",
13694
+ signature: "0xbf65a2efd7b0d6f18e30be9668d59e0bb7092d6fa0f20587e40330e5f9147f8e",
13236
13695
  },
13237
13696
  {
13238
13697
  anonymous: false,
@@ -13639,6 +14098,34 @@ const _abi = [
13639
14098
  type: "function",
13640
14099
  signature: "0x8e667ac8",
13641
14100
  },
14101
+ {
14102
+ inputs: [],
14103
+ name: "getMaxLookbackDeviationP",
14104
+ outputs: [
14105
+ {
14106
+ internalType: "uint24",
14107
+ name: "",
14108
+ type: "uint24",
14109
+ },
14110
+ ],
14111
+ stateMutability: "view",
14112
+ type: "function",
14113
+ signature: "0xda381eb3",
14114
+ },
14115
+ {
14116
+ inputs: [],
14117
+ name: "getMaxMarketDeviationP",
14118
+ outputs: [
14119
+ {
14120
+ internalType: "uint24",
14121
+ name: "",
14122
+ type: "uint24",
14123
+ },
14124
+ ],
14125
+ stateMutability: "view",
14126
+ type: "function",
14127
+ signature: "0x8550092e",
14128
+ },
13642
14129
  {
13643
14130
  inputs: [],
13644
14131
  name: "getMinAnswers",
@@ -13721,6 +14208,78 @@ const _abi = [
13721
14208
  },
13722
14209
  {
13723
14210
  components: [
14211
+ {
14212
+ components: [
14213
+ {
14214
+ internalType: "address",
14215
+ name: "user",
14216
+ type: "address",
14217
+ },
14218
+ {
14219
+ internalType: "uint32",
14220
+ name: "index",
14221
+ type: "uint32",
14222
+ },
14223
+ {
14224
+ internalType: "uint16",
14225
+ name: "pairIndex",
14226
+ type: "uint16",
14227
+ },
14228
+ {
14229
+ internalType: "uint24",
14230
+ name: "leverage",
14231
+ type: "uint24",
14232
+ },
14233
+ {
14234
+ internalType: "bool",
14235
+ name: "long",
14236
+ type: "bool",
14237
+ },
14238
+ {
14239
+ internalType: "bool",
14240
+ name: "isOpen",
14241
+ type: "bool",
14242
+ },
14243
+ {
14244
+ internalType: "uint8",
14245
+ name: "collateralIndex",
14246
+ type: "uint8",
14247
+ },
14248
+ {
14249
+ internalType: "enum ITradingStorage.TradeType",
14250
+ name: "tradeType",
14251
+ type: "uint8",
14252
+ },
14253
+ {
14254
+ internalType: "uint120",
14255
+ name: "collateralAmount",
14256
+ type: "uint120",
14257
+ },
14258
+ {
14259
+ internalType: "uint64",
14260
+ name: "openPrice",
14261
+ type: "uint64",
14262
+ },
14263
+ {
14264
+ internalType: "uint64",
14265
+ name: "tp",
14266
+ type: "uint64",
14267
+ },
14268
+ {
14269
+ internalType: "uint64",
14270
+ name: "sl",
14271
+ type: "uint64",
14272
+ },
14273
+ {
14274
+ internalType: "uint192",
14275
+ name: "__placeholder",
14276
+ type: "uint192",
14277
+ },
14278
+ ],
14279
+ internalType: "struct ITradingStorage.Trade",
14280
+ name: "trade",
14281
+ type: "tuple",
14282
+ },
13724
14283
  {
13725
14284
  internalType: "address",
13726
14285
  name: "user",
@@ -13731,33 +14290,31 @@ const _abi = [
13731
14290
  name: "index",
13732
14291
  type: "uint32",
13733
14292
  },
13734
- ],
13735
- internalType: "struct ITradingStorage.Id",
13736
- name: "_tradeId",
13737
- type: "tuple",
13738
- },
13739
- {
13740
- components: [
13741
14293
  {
13742
- internalType: "address",
13743
- name: "user",
13744
- type: "address",
14294
+ internalType: "bool",
14295
+ name: "isOpen",
14296
+ type: "bool",
14297
+ },
14298
+ {
14299
+ internalType: "enum ITradingStorage.PendingOrderType",
14300
+ name: "orderType",
14301
+ type: "uint8",
13745
14302
  },
13746
14303
  {
13747
14304
  internalType: "uint32",
13748
- name: "index",
14305
+ name: "createdBlock",
13749
14306
  type: "uint32",
13750
14307
  },
14308
+ {
14309
+ internalType: "uint16",
14310
+ name: "maxSlippageP",
14311
+ type: "uint16",
14312
+ },
13751
14313
  ],
13752
- internalType: "struct ITradingStorage.Id",
13753
- name: "_orderId",
14314
+ internalType: "struct ITradingStorage.PendingOrder",
14315
+ name: "_pendingOrder",
13754
14316
  type: "tuple",
13755
14317
  },
13756
- {
13757
- internalType: "enum ITradingStorage.PendingOrderType",
13758
- name: "_orderType",
13759
- type: "uint8",
13760
- },
13761
14318
  {
13762
14319
  internalType: "uint256",
13763
14320
  name: "_positionSizeCollateral",
@@ -13770,10 +14327,28 @@ const _abi = [
13770
14327
  },
13771
14328
  ],
13772
14329
  name: "getPrice",
13773
- outputs: [],
14330
+ outputs: [
14331
+ {
14332
+ components: [
14333
+ {
14334
+ internalType: "address",
14335
+ name: "user",
14336
+ type: "address",
14337
+ },
14338
+ {
14339
+ internalType: "uint32",
14340
+ name: "index",
14341
+ type: "uint32",
14342
+ },
14343
+ ],
14344
+ internalType: "struct ITradingStorage.Id",
14345
+ name: "",
14346
+ type: "tuple",
14347
+ },
14348
+ ],
13774
14349
  stateMutability: "nonpayable",
13775
14350
  type: "function",
13776
- signature: "0x7e156b8c",
14351
+ signature: "0x18fc5876",
13777
14352
  },
13778
14353
  {
13779
14354
  inputs: [
@@ -13948,6 +14523,25 @@ const _abi = [
13948
14523
  type: "function",
13949
14524
  signature: "0xc386f31b",
13950
14525
  },
14526
+ {
14527
+ inputs: [
14528
+ {
14529
+ internalType: "uint24",
14530
+ name: "_maxMarketDeviationP",
14531
+ type: "uint24",
14532
+ },
14533
+ {
14534
+ internalType: "uint24",
14535
+ name: "_maxLookbackDeviationP",
14536
+ type: "uint24",
14537
+ },
14538
+ ],
14539
+ name: "initializeMaxDeviationsP",
14540
+ outputs: [],
14541
+ stateMutability: "nonpayable",
14542
+ type: "function",
14543
+ signature: "0x94db9ef7",
14544
+ },
13951
14545
  {
13952
14546
  inputs: [
13953
14547
  {
@@ -14089,6 +14683,34 @@ const _abi = [
14089
14683
  type: "function",
14090
14684
  signature: "0x85f276b8",
14091
14685
  },
14686
+ {
14687
+ inputs: [
14688
+ {
14689
+ internalType: "uint24",
14690
+ name: "_maxLookbackDeviationP",
14691
+ type: "uint24",
14692
+ },
14693
+ ],
14694
+ name: "setMaxLookbackDeviationP",
14695
+ outputs: [],
14696
+ stateMutability: "nonpayable",
14697
+ type: "function",
14698
+ signature: "0xd2029399",
14699
+ },
14700
+ {
14701
+ inputs: [
14702
+ {
14703
+ internalType: "uint24",
14704
+ name: "_maxMarketDeviationP",
14705
+ type: "uint24",
14706
+ },
14707
+ ],
14708
+ name: "setMaxMarketDeviationP",
14709
+ outputs: [],
14710
+ stateMutability: "nonpayable",
14711
+ type: "function",
14712
+ signature: "0xaa564b10",
14713
+ },
14092
14714
  {
14093
14715
  inputs: [
14094
14716
  {