@gainsnetwork/sdk 1.3.0-rc7 → 1.4.0-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.
Files changed (153) hide show
  1. package/lib/backend/globalTrades/index.js +10 -10
  2. package/lib/backend/tradingVariables/backend.types.d.ts +4 -11
  3. package/lib/backend/tradingVariables/converter.d.ts +3 -7
  4. package/lib/backend/tradingVariables/converter.js +63 -71
  5. package/lib/backend/tradingVariables/index.js +8 -10
  6. package/lib/backend/tradingVariables/types.d.ts +2 -4
  7. package/lib/constants.js +1 -1
  8. package/lib/contracts/addresses.d.ts +1 -1
  9. package/lib/contracts/addresses.js +4 -8
  10. package/lib/contracts/addresses.json +0 -29
  11. package/lib/contracts/index.d.ts +1 -1
  12. package/lib/contracts/index.js +3 -3
  13. package/lib/contracts/types/generated/GNSMultiCollatDiamond.d.ts +299 -608
  14. package/lib/contracts/types/generated/factories/GNSMultiCollatDiamond__factory.d.ts +10 -2
  15. package/lib/contracts/types/generated/factories/GNSMultiCollatDiamond__factory.js +317 -1995
  16. package/lib/contracts/utils/borrowingFees.js +20 -9
  17. package/lib/contracts/utils/openTrades.js +20 -11
  18. package/lib/contracts/utils/pairs.d.ts +2 -13
  19. package/lib/contracts/utils/pairs.js +30 -80
  20. package/lib/index.d.ts +0 -1
  21. package/lib/index.js +0 -1
  22. package/lib/markets/forex.js +1 -1
  23. package/lib/markets/leverage/builder.js +2 -2
  24. package/lib/markets/price/index.d.ts +0 -1
  25. package/lib/markets/price/index.js +0 -1
  26. package/lib/markets/price/types.d.ts +0 -27
  27. package/lib/trade/fees/borrowing/builder.js +3 -2
  28. package/lib/trade/fees/borrowing/converter.js +1 -5
  29. package/lib/trade/fees/borrowing/index.js +5 -5
  30. package/lib/trade/fees/borrowingV2/builder.js +4 -3
  31. package/lib/trade/fees/borrowingV2/converter.js +1 -1
  32. package/lib/trade/fees/borrowingV2/fetcher.js +32 -26
  33. package/lib/trade/fees/borrowingV2/index.js +3 -3
  34. package/lib/trade/fees/converter.js +22 -22
  35. package/lib/trade/fees/fundingFees/builder.js +7 -6
  36. package/lib/trade/fees/fundingFees/converter.js +1 -1
  37. package/lib/trade/fees/fundingFees/fetcher.js +25 -16
  38. package/lib/trade/fees/fundingFees/index.js +3 -2
  39. package/lib/trade/fees/tiers/index.js +2 -1
  40. package/lib/trade/fees/trading/index.js +3 -5
  41. package/lib/trade/liquidation/builder.js +2 -1
  42. package/lib/trade/liquidation/index.js +6 -4
  43. package/lib/trade/liquidation.d.ts +12 -0
  44. package/lib/trade/liquidation.js +55 -0
  45. package/lib/trade/oiWindows.js +2 -1
  46. package/lib/trade/pnl/builder.js +2 -1
  47. package/lib/trade/pnl/converter.js +1 -1
  48. package/lib/trade/pnl/index.js +7 -4
  49. package/lib/trade/pnl.d.ts +10 -0
  50. package/lib/trade/pnl.js +33 -0
  51. package/lib/trade/priceImpact/close/builder.js +2 -1
  52. package/lib/trade/priceImpact/close/index.js +1 -4
  53. package/lib/trade/priceImpact/cumulVol/builder.js +11 -21
  54. package/lib/trade/priceImpact/cumulVol/converter.d.ts +0 -63
  55. package/lib/trade/priceImpact/cumulVol/converter.js +1 -97
  56. package/lib/trade/priceImpact/cumulVol/index.d.ts +6 -7
  57. package/lib/trade/priceImpact/cumulVol/index.js +41 -149
  58. package/lib/trade/priceImpact/open/builder.js +2 -1
  59. package/lib/trade/priceImpact/open/index.js +1 -7
  60. package/lib/trade/priceImpact/skew/builder.js +3 -2
  61. package/lib/trade/priceImpact/skew/converter.js +1 -1
  62. package/lib/trade/priceImpact/skew/fetcher.js +33 -24
  63. package/package.json +2 -2
  64. package/lib/contracts/types/generated/GFarmTradingStorageV5.d.ts +0 -1911
  65. package/lib/contracts/types/generated/GFarmTradingStorageV5.js +0 -2
  66. package/lib/contracts/types/generated/GNSBorrowingFees.d.ts +0 -1067
  67. package/lib/contracts/types/generated/GNSBorrowingFees.js +0 -2
  68. package/lib/contracts/types/generated/GNSBorrowingFeesV6_3_2.d.ts +0 -979
  69. package/lib/contracts/types/generated/GNSBorrowingFeesV6_3_2.js +0 -2
  70. package/lib/contracts/types/generated/GNSBorrowingFeesV6_4.d.ts +0 -1058
  71. package/lib/contracts/types/generated/GNSBorrowingFeesV6_4.js +0 -2
  72. package/lib/contracts/types/generated/GNSNftRewardsV6.d.ts +0 -533
  73. package/lib/contracts/types/generated/GNSNftRewardsV6.js +0 -2
  74. package/lib/contracts/types/generated/GNSNftRewardsV6_3_1.d.ts +0 -613
  75. package/lib/contracts/types/generated/GNSNftRewardsV6_3_1.js +0 -2
  76. package/lib/contracts/types/generated/GNSPairInfosV6_1.d.ts +0 -911
  77. package/lib/contracts/types/generated/GNSPairInfosV6_1.js +0 -2
  78. package/lib/contracts/types/generated/GNSPairsStorageV6.d.ts +0 -660
  79. package/lib/contracts/types/generated/GNSPairsStorageV6.js +0 -2
  80. package/lib/contracts/types/generated/GNSTrading.d.ts +0 -758
  81. package/lib/contracts/types/generated/GNSTrading.js +0 -2
  82. package/lib/contracts/types/generated/GNSTradingCallbacks.d.ts +0 -875
  83. package/lib/contracts/types/generated/GNSTradingCallbacks.js +0 -2
  84. package/lib/contracts/types/generated/GNSTradingCallbacksV6_3_2.d.ts +0 -806
  85. package/lib/contracts/types/generated/GNSTradingCallbacksV6_3_2.js +0 -2
  86. package/lib/contracts/types/generated/GNSTradingCallbacksV6_4.d.ts +0 -821
  87. package/lib/contracts/types/generated/GNSTradingCallbacksV6_4.js +0 -2
  88. package/lib/contracts/types/generated/GNSTradingStorage.d.ts +0 -1387
  89. package/lib/contracts/types/generated/GNSTradingStorage.js +0 -2
  90. package/lib/contracts/types/generated/GTokenV6_3_2.d.ts +0 -1838
  91. package/lib/contracts/types/generated/GTokenV6_3_2.js +0 -2
  92. package/lib/contracts/types/generated/factories/GFarmTradingStorageV5__factory.d.ts +0 -83
  93. package/lib/contracts/types/generated/factories/GFarmTradingStorageV5__factory.js +0 -2691
  94. package/lib/contracts/types/generated/factories/GNSBorrowingFeesV6_3_2__factory.d.ts +0 -88
  95. package/lib/contracts/types/generated/factories/GNSBorrowingFeesV6_3_2__factory.js +0 -1654
  96. package/lib/contracts/types/generated/factories/GNSBorrowingFeesV6_4__factory.d.ts +0 -113
  97. package/lib/contracts/types/generated/factories/GNSBorrowingFeesV6_4__factory.js +0 -1742
  98. package/lib/contracts/types/generated/factories/GNSBorrowingFees__factory.d.ts +0 -124
  99. package/lib/contracts/types/generated/factories/GNSBorrowingFees__factory.js +0 -1784
  100. package/lib/contracts/types/generated/factories/GNSNftRewardsV6_3_1__factory.d.ts +0 -100
  101. package/lib/contracts/types/generated/factories/GNSNftRewardsV6_3_1__factory.js +0 -1116
  102. package/lib/contracts/types/generated/factories/GNSNftRewardsV6__factory.d.ts +0 -100
  103. package/lib/contracts/types/generated/factories/GNSNftRewardsV6__factory.js +0 -1003
  104. package/lib/contracts/types/generated/factories/GNSPairInfosV6_1__factory.d.ts +0 -98
  105. package/lib/contracts/types/generated/factories/GNSPairInfosV6_1__factory.js +0 -1485
  106. package/lib/contracts/types/generated/factories/GNSPairsStorageV6__factory.d.ts +0 -117
  107. package/lib/contracts/types/generated/factories/GNSPairsStorageV6__factory.js +0 -1265
  108. package/lib/contracts/types/generated/factories/GNSTradingCallbacksV6_3_2__factory.d.ts +0 -82
  109. package/lib/contracts/types/generated/factories/GNSTradingCallbacksV6_3_2__factory.js +0 -1273
  110. package/lib/contracts/types/generated/factories/GNSTradingCallbacksV6_4__factory.d.ts +0 -82
  111. package/lib/contracts/types/generated/factories/GNSTradingCallbacksV6_4__factory.js +0 -1326
  112. package/lib/contracts/types/generated/factories/GNSTradingCallbacks__factory.d.ts +0 -113
  113. package/lib/contracts/types/generated/factories/GNSTradingCallbacks__factory.js +0 -1428
  114. package/lib/contracts/types/generated/factories/GNSTradingStorage__factory.d.ts +0 -96
  115. package/lib/contracts/types/generated/factories/GNSTradingStorage__factory.js +0 -2241
  116. package/lib/contracts/types/generated/factories/GNSTrading__factory.d.ts +0 -95
  117. package/lib/contracts/types/generated/factories/GNSTrading__factory.js +0 -1071
  118. package/lib/contracts/types/generated/factories/GTokenV6_3_2__factory.d.ts +0 -110
  119. package/lib/contracts/types/generated/factories/GTokenV6_3_2__factory.js +0 -2682
  120. package/lib/markets/oi/fetcher.d.ts +0 -58
  121. package/lib/markets/oi/fetcher.js +0 -181
  122. package/lib/markets/oi/validation.d.ts +0 -80
  123. package/lib/markets/oi/validation.js +0 -172
  124. package/lib/markets/price/signedPrices.d.ts +0 -36
  125. package/lib/markets/price/signedPrices.js +0 -181
  126. package/lib/pricing/depthBands/converter.d.ts +0 -65
  127. package/lib/pricing/depthBands/converter.js +0 -155
  128. package/lib/pricing/depthBands/decoder.d.ts +0 -32
  129. package/lib/pricing/depthBands/decoder.js +0 -109
  130. package/lib/pricing/depthBands/encoder.d.ts +0 -19
  131. package/lib/pricing/depthBands/encoder.js +0 -105
  132. package/lib/pricing/depthBands/index.d.ts +0 -8
  133. package/lib/pricing/depthBands/index.js +0 -26
  134. package/lib/pricing/depthBands/types.d.ts +0 -49
  135. package/lib/pricing/depthBands/types.js +0 -10
  136. package/lib/pricing/depthBands/validator.d.ts +0 -22
  137. package/lib/pricing/depthBands/validator.js +0 -113
  138. package/lib/pricing/depthBands.d.ts +0 -39
  139. package/lib/pricing/depthBands.js +0 -94
  140. package/lib/pricing/index.d.ts +0 -4
  141. package/lib/pricing/index.js +0 -20
  142. package/lib/trade/effectiveLeverage/builder.d.ts +0 -23
  143. package/lib/trade/effectiveLeverage/builder.js +0 -30
  144. package/lib/trade/fees/holdingFees/index.d.ts +0 -46
  145. package/lib/trade/fees/holdingFees/index.js +0 -105
  146. package/lib/trade/fees/holdingFees/types.d.ts +0 -23
  147. package/lib/trade/fees/holdingFees/types.js +0 -5
  148. package/lib/trade/fees/trading/holdingFees.d.ts +0 -28
  149. package/lib/trade/fees/trading/holdingFees.js +0 -66
  150. package/lib/trade/fees/trading/holdingFeesStructured.d.ts +0 -28
  151. package/lib/trade/fees/trading/holdingFeesStructured.js +0 -66
  152. package/lib/trade/priceImpact/cumulVol/types.d.ts +0 -11
  153. package/lib/trade/priceImpact/cumulVol/types.js +0 -2
@@ -6,6 +6,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.GNSMultiCollatDiamond__factory = void 0;
7
7
  const ethers_1 = require("ethers");
8
8
  const _abi = [
9
+ {
10
+ inputs: [],
11
+ stateMutability: "nonpayable",
12
+ type: "constructor",
13
+ },
9
14
  {
10
15
  inputs: [],
11
16
  name: "AboveMax",
@@ -1141,31 +1146,6 @@ const _abi = [
1141
1146
  type: "function",
1142
1147
  signature: "0x678b3fb0",
1143
1148
  },
1144
- {
1145
- inputs: [
1146
- {
1147
- internalType: "uint16",
1148
- name: "_pairIndex",
1149
- type: "uint16",
1150
- },
1151
- {
1152
- internalType: "bool",
1153
- name: "_isCounterTrade",
1154
- type: "bool",
1155
- },
1156
- ],
1157
- name: "getEffectiveTotalPositionSizeFeeP",
1158
- outputs: [
1159
- {
1160
- internalType: "uint256",
1161
- name: "",
1162
- type: "uint256",
1163
- },
1164
- ],
1165
- stateMutability: "view",
1166
- type: "function",
1167
- signature: "0xace26965",
1168
- },
1169
1149
  {
1170
1150
  inputs: [],
1171
1151
  name: "getGlobalTradeFeeParams",
@@ -3715,21 +3695,6 @@ const _abi = [
3715
3695
  type: "function",
3716
3696
  signature: "0xfed8a190",
3717
3697
  },
3718
- {
3719
- inputs: [],
3720
- name: "DepthBandsAboveMax",
3721
- type: "error",
3722
- },
3723
- {
3724
- inputs: [],
3725
- name: "DepthBandsIncomplete",
3726
- type: "error",
3727
- },
3728
- {
3729
- inputs: [],
3730
- name: "WrongDepthBandsOrder",
3731
- type: "error",
3732
- },
3733
3698
  {
3734
3699
  inputs: [],
3735
3700
  name: "WrongWindowsCount",
@@ -3760,26 +3725,6 @@ const _abi = [
3760
3725
  type: "event",
3761
3726
  signature: "0x2742ec28d0252b4477106a77a10b04e1c1ecd2b568c7168d56c3a3154d3a3122",
3762
3727
  },
3763
- {
3764
- anonymous: false,
3765
- inputs: [
3766
- {
3767
- indexed: false,
3768
- internalType: "uint256",
3769
- name: "slot1",
3770
- type: "uint256",
3771
- },
3772
- {
3773
- indexed: false,
3774
- internalType: "uint256",
3775
- name: "slot2",
3776
- type: "uint256",
3777
- },
3778
- ],
3779
- name: "DepthBandsMappingUpdated",
3780
- type: "event",
3781
- signature: "0x22391293f5705268ac47df15d88a7704e1267eff228801ac480dbe5ecf5ea3ef",
3782
- },
3783
3728
  {
3784
3729
  anonymous: false,
3785
3730
  inputs: [
@@ -3906,44 +3851,6 @@ const _abi = [
3906
3851
  type: "event",
3907
3852
  signature: "0xbe433d32d9112c2fcf91407f28314200753b05ef3e9c85b8a0e9d135e77a6c29",
3908
3853
  },
3909
- {
3910
- anonymous: false,
3911
- inputs: [
3912
- {
3913
- indexed: true,
3914
- internalType: "uint256",
3915
- name: "pairIndex",
3916
- type: "uint256",
3917
- },
3918
- {
3919
- indexed: false,
3920
- internalType: "uint256",
3921
- name: "aboveSlot1",
3922
- type: "uint256",
3923
- },
3924
- {
3925
- indexed: false,
3926
- internalType: "uint256",
3927
- name: "aboveSlot2",
3928
- type: "uint256",
3929
- },
3930
- {
3931
- indexed: false,
3932
- internalType: "uint256",
3933
- name: "belowSlot1",
3934
- type: "uint256",
3935
- },
3936
- {
3937
- indexed: false,
3938
- internalType: "uint256",
3939
- name: "belowSlot2",
3940
- type: "uint256",
3941
- },
3942
- ],
3943
- name: "PairDepthBandsUpdated",
3944
- type: "event",
3945
- signature: "0x7a9ee81b0015d0b7824d14757416905ea9ace5b9ad54dc08cb426cd0ae3dff9f",
3946
- },
3947
3854
  {
3948
3855
  anonymous: false,
3949
3856
  inputs: [
@@ -4303,39 +4210,6 @@ const _abi = [
4303
4210
  type: "function",
4304
4211
  signature: "0x81688f7b",
4305
4212
  },
4306
- {
4307
- inputs: [],
4308
- name: "getDepthBandsMapping",
4309
- outputs: [
4310
- {
4311
- internalType: "uint256",
4312
- name: "slot1",
4313
- type: "uint256",
4314
- },
4315
- {
4316
- internalType: "uint256",
4317
- name: "slot2",
4318
- type: "uint256",
4319
- },
4320
- ],
4321
- stateMutability: "view",
4322
- type: "function",
4323
- signature: "0xd40e0d20",
4324
- },
4325
- {
4326
- inputs: [],
4327
- name: "getDepthBandsMappingDecoded",
4328
- outputs: [
4329
- {
4330
- internalType: "uint16[]",
4331
- name: "bands",
4332
- type: "uint16[]",
4333
- },
4334
- ],
4335
- stateMutability: "view",
4336
- type: "function",
4337
- signature: "0x9615d82a",
4338
- },
4339
4213
  {
4340
4214
  inputs: [],
4341
4215
  name: "getNegPnlCumulVolMultiplier",
@@ -4465,48 +4339,6 @@ const _abi = [
4465
4339
  type: "function",
4466
4340
  signature: "0xb56df676",
4467
4341
  },
4468
- {
4469
- inputs: [
4470
- {
4471
- internalType: "uint256[]",
4472
- name: "_indices",
4473
- type: "uint256[]",
4474
- },
4475
- ],
4476
- name: "getPairDepthBands",
4477
- outputs: [
4478
- {
4479
- components: [
4480
- {
4481
- internalType: "uint256",
4482
- name: "aboveSlot1",
4483
- type: "uint256",
4484
- },
4485
- {
4486
- internalType: "uint256",
4487
- name: "aboveSlot2",
4488
- type: "uint256",
4489
- },
4490
- {
4491
- internalType: "uint256",
4492
- name: "belowSlot1",
4493
- type: "uint256",
4494
- },
4495
- {
4496
- internalType: "uint256",
4497
- name: "belowSlot2",
4498
- type: "uint256",
4499
- },
4500
- ],
4501
- internalType: "struct IPriceImpact.PairDepthBands[]",
4502
- name: "",
4503
- type: "tuple[]",
4504
- },
4505
- ],
4506
- stateMutability: "view",
4507
- type: "function",
4508
- signature: "0x42105561",
4509
- },
4510
4342
  {
4511
4343
  inputs: [
4512
4344
  {
@@ -4515,74 +4347,29 @@ const _abi = [
4515
4347
  type: "uint256",
4516
4348
  },
4517
4349
  ],
4518
- name: "getPairDepthBands",
4350
+ name: "getPairDepth",
4519
4351
  outputs: [
4520
4352
  {
4521
4353
  components: [
4522
4354
  {
4523
- internalType: "uint256",
4524
- name: "aboveSlot1",
4525
- type: "uint256",
4526
- },
4527
- {
4528
- internalType: "uint256",
4529
- name: "aboveSlot2",
4530
- type: "uint256",
4531
- },
4532
- {
4533
- internalType: "uint256",
4534
- name: "belowSlot1",
4535
- type: "uint256",
4355
+ internalType: "uint128",
4356
+ name: "onePercentDepthAboveUsd",
4357
+ type: "uint128",
4536
4358
  },
4537
4359
  {
4538
- internalType: "uint256",
4539
- name: "belowSlot2",
4540
- type: "uint256",
4360
+ internalType: "uint128",
4361
+ name: "onePercentDepthBelowUsd",
4362
+ type: "uint128",
4541
4363
  },
4542
4364
  ],
4543
- internalType: "struct IPriceImpact.PairDepthBands",
4365
+ internalType: "struct IPriceImpact.PairDepth",
4544
4366
  name: "",
4545
4367
  type: "tuple",
4546
4368
  },
4547
4369
  ],
4548
4370
  stateMutability: "view",
4549
4371
  type: "function",
4550
- signature: "0xc693e1be",
4551
- },
4552
- {
4553
- inputs: [
4554
- {
4555
- internalType: "uint256",
4556
- name: "_pairIndex",
4557
- type: "uint256",
4558
- },
4559
- ],
4560
- name: "getPairDepthBandsDecoded",
4561
- outputs: [
4562
- {
4563
- internalType: "uint256",
4564
- name: "totalDepthAboveUsd",
4565
- type: "uint256",
4566
- },
4567
- {
4568
- internalType: "uint256",
4569
- name: "totalDepthBelowUsd",
4570
- type: "uint256",
4571
- },
4572
- {
4573
- internalType: "uint16[]",
4574
- name: "bandsAbove",
4575
- type: "uint16[]",
4576
- },
4577
- {
4578
- internalType: "uint16[]",
4579
- name: "bandsBelow",
4580
- type: "uint16[]",
4581
- },
4582
- ],
4583
- stateMutability: "view",
4584
- type: "function",
4585
- signature: "0x2b363e71",
4372
+ signature: "0x375bb2bb",
4586
4373
  },
4587
4374
  {
4588
4375
  inputs: [
@@ -4592,32 +4379,29 @@ const _abi = [
4592
4379
  type: "uint256[]",
4593
4380
  },
4594
4381
  ],
4595
- name: "getPairDepthBandsDecoded",
4382
+ name: "getPairDepths",
4596
4383
  outputs: [
4597
4384
  {
4598
- internalType: "uint256[]",
4599
- name: "totalDepthAboveUsd",
4600
- type: "uint256[]",
4601
- },
4602
- {
4603
- internalType: "uint256[]",
4604
- name: "totalDepthBelowUsd",
4605
- type: "uint256[]",
4606
- },
4607
- {
4608
- internalType: "uint16[][]",
4609
- name: "bandsAbove",
4610
- type: "uint16[][]",
4611
- },
4612
- {
4613
- internalType: "uint16[][]",
4614
- name: "bandsBelow",
4615
- type: "uint16[][]",
4385
+ components: [
4386
+ {
4387
+ internalType: "uint128",
4388
+ name: "onePercentDepthAboveUsd",
4389
+ type: "uint128",
4390
+ },
4391
+ {
4392
+ internalType: "uint128",
4393
+ name: "onePercentDepthBelowUsd",
4394
+ type: "uint128",
4395
+ },
4396
+ ],
4397
+ internalType: "struct IPriceImpact.PairDepth[]",
4398
+ name: "",
4399
+ type: "tuple[]",
4616
4400
  },
4617
4401
  ],
4618
4402
  stateMutability: "view",
4619
4403
  type: "function",
4620
- signature: "0x8c6a54d8",
4404
+ signature: "0x0d569f27",
4621
4405
  },
4622
4406
  {
4623
4407
  inputs: [
@@ -5046,25 +4830,6 @@ const _abi = [
5046
4830
  type: "function",
5047
4831
  signature: "0x5a1449ab",
5048
4832
  },
5049
- {
5050
- inputs: [
5051
- {
5052
- internalType: "uint256",
5053
- name: "_slot1",
5054
- type: "uint256",
5055
- },
5056
- {
5057
- internalType: "uint256",
5058
- name: "_slot2",
5059
- type: "uint256",
5060
- },
5061
- ],
5062
- name: "initializeDepthBandsMapping",
5063
- outputs: [],
5064
- stateMutability: "nonpayable",
5065
- type: "function",
5066
- signature: "0xbb8f07af",
5067
- },
5068
4833
  {
5069
4834
  inputs: [
5070
4835
  {
@@ -5146,25 +4911,6 @@ const _abi = [
5146
4911
  type: "function",
5147
4912
  signature: "0xa7d518fc",
5148
4913
  },
5149
- {
5150
- inputs: [
5151
- {
5152
- internalType: "uint256",
5153
- name: "_slot1",
5154
- type: "uint256",
5155
- },
5156
- {
5157
- internalType: "uint256",
5158
- name: "_slot2",
5159
- type: "uint256",
5160
- },
5161
- ],
5162
- name: "setDepthBandsMapping",
5163
- outputs: [],
5164
- stateMutability: "nonpayable",
5165
- type: "function",
5166
- signature: "0x7e8462f7",
5167
- },
5168
4914
  {
5169
4915
  inputs: [
5170
4916
  {
@@ -5225,38 +4971,21 @@ const _abi = [
5225
4971
  type: "uint256[]",
5226
4972
  },
5227
4973
  {
5228
- components: [
5229
- {
5230
- internalType: "uint256",
5231
- name: "aboveSlot1",
5232
- type: "uint256",
5233
- },
5234
- {
5235
- internalType: "uint256",
5236
- name: "aboveSlot2",
5237
- type: "uint256",
5238
- },
5239
- {
5240
- internalType: "uint256",
5241
- name: "belowSlot1",
5242
- type: "uint256",
5243
- },
5244
- {
5245
- internalType: "uint256",
5246
- name: "belowSlot2",
5247
- type: "uint256",
5248
- },
5249
- ],
5250
- internalType: "struct IPriceImpact.PairDepthBands[]",
5251
- name: "_depthBands",
5252
- type: "tuple[]",
4974
+ internalType: "uint128[]",
4975
+ name: "_depthsAboveUsd",
4976
+ type: "uint128[]",
4977
+ },
4978
+ {
4979
+ internalType: "uint128[]",
4980
+ name: "_depthsBelowUsd",
4981
+ type: "uint128[]",
5253
4982
  },
5254
4983
  ],
5255
- name: "setPairDepthBands",
4984
+ name: "setPairDepths",
5256
4985
  outputs: [],
5257
4986
  stateMutability: "nonpayable",
5258
4987
  type: "function",
5259
- signature: "0x88be5e4f",
4988
+ signature: "0x6474b399",
5260
4989
  },
5261
4990
  {
5262
4991
  inputs: [
@@ -7249,36 +6978,6 @@ const _abi = [
7249
6978
  type: "function",
7250
6979
  signature: "0x78a70ec6",
7251
6980
  },
7252
- {
7253
- inputs: [
7254
- {
7255
- internalType: "address",
7256
- name: "_trader",
7257
- type: "address",
7258
- },
7259
- {
7260
- internalType: "uint32",
7261
- name: "_index",
7262
- type: "uint32",
7263
- },
7264
- {
7265
- internalType: "enum ITradingStorage.PendingOrderType",
7266
- name: "_orderType",
7267
- type: "uint8",
7268
- },
7269
- ],
7270
- name: "getLookbackFromBlock",
7271
- outputs: [
7272
- {
7273
- internalType: "uint32",
7274
- name: "",
7275
- type: "uint32",
7276
- },
7277
- ],
7278
- stateMutability: "view",
7279
- type: "function",
7280
- signature: "0x2b7d6e9d",
7281
- },
7282
6981
  {
7283
6982
  inputs: [
7284
6983
  {
@@ -8946,102 +8645,6 @@ const _abi = [
8946
8645
  type: "function",
8947
8646
  signature: "0xb78f4b36",
8948
8647
  },
8949
- {
8950
- inputs: [
8951
- {
8952
- components: [
8953
- {
8954
- internalType: "address",
8955
- name: "user",
8956
- type: "address",
8957
- },
8958
- {
8959
- internalType: "uint32",
8960
- name: "index",
8961
- type: "uint32",
8962
- },
8963
- {
8964
- internalType: "uint16",
8965
- name: "pairIndex",
8966
- type: "uint16",
8967
- },
8968
- {
8969
- internalType: "uint24",
8970
- name: "leverage",
8971
- type: "uint24",
8972
- },
8973
- {
8974
- internalType: "bool",
8975
- name: "long",
8976
- type: "bool",
8977
- },
8978
- {
8979
- internalType: "bool",
8980
- name: "isOpen",
8981
- type: "bool",
8982
- },
8983
- {
8984
- internalType: "uint8",
8985
- name: "collateralIndex",
8986
- type: "uint8",
8987
- },
8988
- {
8989
- internalType: "enum ITradingStorage.TradeType",
8990
- name: "tradeType",
8991
- type: "uint8",
8992
- },
8993
- {
8994
- internalType: "uint120",
8995
- name: "collateralAmount",
8996
- type: "uint120",
8997
- },
8998
- {
8999
- internalType: "uint64",
9000
- name: "openPrice",
9001
- type: "uint64",
9002
- },
9003
- {
9004
- internalType: "uint64",
9005
- name: "tp",
9006
- type: "uint64",
9007
- },
9008
- {
9009
- internalType: "uint64",
9010
- name: "sl",
9011
- type: "uint64",
9012
- },
9013
- {
9014
- internalType: "bool",
9015
- name: "isCounterTrade",
9016
- type: "bool",
9017
- },
9018
- {
9019
- internalType: "uint160",
9020
- name: "positionSizeToken",
9021
- type: "uint160",
9022
- },
9023
- {
9024
- internalType: "uint24",
9025
- name: "__placeholder",
9026
- type: "uint24",
9027
- },
9028
- ],
9029
- internalType: "struct ITradingStorage.Trade",
9030
- name: "_trade",
9031
- type: "tuple",
9032
- },
9033
- {
9034
- internalType: "enum ITradingStorage.PendingOrderType",
9035
- name: "_orderType",
9036
- type: "uint8",
9037
- },
9038
- ],
9039
- name: "validateOpenTradeOrder",
9040
- outputs: [],
9041
- stateMutability: "pure",
9042
- type: "function",
9043
- signature: "0x63f58b1a",
9044
- },
9045
8648
  {
9046
8649
  inputs: [],
9047
8650
  name: "NoPendingTriggerRewards",
@@ -9322,11 +8925,6 @@ const _abi = [
9322
8925
  name: "WaitTimeout",
9323
8926
  type: "error",
9324
8927
  },
9325
- {
9326
- inputs: [],
9327
- name: "WrongFromBlock",
9328
- type: "error",
9329
- },
9330
8928
  {
9331
8929
  inputs: [],
9332
8930
  name: "WrongLeverage",
@@ -10966,89 +10564,6 @@ const _abi = [
10966
10564
  type: "function",
10967
10565
  signature: "0xeb9359aa",
10968
10566
  },
10969
- {
10970
- inputs: [
10971
- {
10972
- internalType: "uint256",
10973
- name: "_packed",
10974
- type: "uint256",
10975
- },
10976
- {
10977
- components: [
10978
- {
10979
- internalType: "uint8",
10980
- name: "signerId",
10981
- type: "uint8",
10982
- },
10983
- {
10984
- internalType: "uint32",
10985
- name: "expiryTs",
10986
- type: "uint32",
10987
- },
10988
- {
10989
- internalType: "bool",
10990
- name: "isLookback",
10991
- type: "bool",
10992
- },
10993
- {
10994
- internalType: "uint32",
10995
- name: "fromBlock",
10996
- type: "uint32",
10997
- },
10998
- {
10999
- internalType: "bytes",
11000
- name: "signature",
11001
- type: "bytes",
11002
- },
11003
- {
11004
- internalType: "uint16[]",
11005
- name: "pairIndices",
11006
- type: "uint16[]",
11007
- },
11008
- {
11009
- components: [
11010
- {
11011
- internalType: "uint56",
11012
- name: "open",
11013
- type: "uint56",
11014
- },
11015
- {
11016
- internalType: "uint56",
11017
- name: "high",
11018
- type: "uint56",
11019
- },
11020
- {
11021
- internalType: "uint56",
11022
- name: "low",
11023
- type: "uint56",
11024
- },
11025
- {
11026
- internalType: "uint56",
11027
- name: "current",
11028
- type: "uint56",
11029
- },
11030
- {
11031
- internalType: "uint32",
11032
- name: "ts",
11033
- type: "uint32",
11034
- },
11035
- ],
11036
- internalType: "struct IPriceAggregator.OrderAnswer[]",
11037
- name: "prices",
11038
- type: "tuple[]",
11039
- },
11040
- ],
11041
- internalType: "struct IPriceAggregator.SignedPairPrices[]",
11042
- name: "_signedPairPrices",
11043
- type: "tuple[]",
11044
- },
11045
- ],
11046
- name: "triggerOrderWithSignatures",
11047
- outputs: [],
11048
- stateMutability: "nonpayable",
11049
- type: "function",
11050
- signature: "0xc7e2b2a9",
11051
- },
11052
10567
  {
11053
10568
  inputs: [
11054
10569
  {
@@ -12526,104 +12041,127 @@ const _abi = [
12526
12041
  name: "_a",
12527
12042
  type: "tuple",
12528
12043
  },
12044
+ ],
12045
+ name: "executeTriggerOpenOrderCallback",
12046
+ outputs: [],
12047
+ stateMutability: "nonpayable",
12048
+ type: "function",
12049
+ signature: "0x5578478f",
12050
+ },
12051
+ {
12052
+ inputs: [
12053
+ {
12054
+ internalType: "uint8",
12055
+ name: "_collateralIndex",
12056
+ type: "uint8",
12057
+ },
12058
+ ],
12059
+ name: "getPendingGovFeesCollateral",
12060
+ outputs: [
12061
+ {
12062
+ internalType: "uint256",
12063
+ name: "",
12064
+ type: "uint256",
12065
+ },
12066
+ ],
12067
+ stateMutability: "view",
12068
+ type: "function",
12069
+ signature: "0x2c6fe6d1",
12070
+ },
12071
+ {
12072
+ inputs: [],
12073
+ name: "getVaultClosingFeeP",
12074
+ outputs: [
12075
+ {
12076
+ internalType: "uint8",
12077
+ name: "",
12078
+ type: "uint8",
12079
+ },
12080
+ ],
12081
+ stateMutability: "view",
12082
+ type: "function",
12083
+ signature: "0xa5b26e46",
12084
+ },
12085
+ {
12086
+ inputs: [
12529
12087
  {
12530
12088
  components: [
12531
12089
  {
12532
- internalType: "address",
12533
- name: "user",
12534
- type: "address",
12535
- },
12536
- {
12537
- internalType: "uint32",
12538
- name: "index",
12539
- type: "uint32",
12540
- },
12541
- {
12542
- internalType: "uint16",
12543
- name: "pairIndex",
12544
- type: "uint16",
12545
- },
12546
- {
12547
- internalType: "uint24",
12548
- name: "leverage",
12549
- type: "uint24",
12550
- },
12551
- {
12552
- internalType: "bool",
12553
- name: "long",
12554
- type: "bool",
12555
- },
12556
- {
12557
- internalType: "bool",
12558
- name: "isOpen",
12559
- type: "bool",
12560
- },
12561
- {
12562
- internalType: "uint8",
12563
- name: "collateralIndex",
12564
- type: "uint8",
12565
- },
12566
- {
12567
- internalType: "enum ITradingStorage.TradeType",
12568
- name: "tradeType",
12569
- type: "uint8",
12570
- },
12571
- {
12572
- internalType: "uint120",
12573
- name: "collateralAmount",
12574
- type: "uint120",
12090
+ components: [
12091
+ {
12092
+ internalType: "address",
12093
+ name: "user",
12094
+ type: "address",
12095
+ },
12096
+ {
12097
+ internalType: "uint32",
12098
+ name: "index",
12099
+ type: "uint32",
12100
+ },
12101
+ ],
12102
+ internalType: "struct ITradingStorage.Id",
12103
+ name: "orderId",
12104
+ type: "tuple",
12575
12105
  },
12576
12106
  {
12577
12107
  internalType: "uint64",
12578
- name: "openPrice",
12108
+ name: "open",
12579
12109
  type: "uint64",
12580
12110
  },
12581
12111
  {
12582
12112
  internalType: "uint64",
12583
- name: "tp",
12113
+ name: "high",
12584
12114
  type: "uint64",
12585
12115
  },
12586
12116
  {
12587
12117
  internalType: "uint64",
12588
- name: "sl",
12118
+ name: "low",
12589
12119
  type: "uint64",
12590
12120
  },
12591
12121
  {
12592
- internalType: "bool",
12593
- name: "isCounterTrade",
12594
- type: "bool",
12595
- },
12596
- {
12597
- internalType: "uint160",
12598
- name: "positionSizeToken",
12599
- type: "uint160",
12600
- },
12601
- {
12602
- internalType: "uint24",
12603
- name: "__placeholder",
12604
- type: "uint24",
12122
+ internalType: "uint64",
12123
+ name: "current",
12124
+ type: "uint64",
12605
12125
  },
12606
12126
  ],
12607
- internalType: "struct ITradingStorage.Trade",
12608
- name: "_trade",
12127
+ internalType: "struct ITradingCallbacks.AggregatorAnswer",
12128
+ name: "_a",
12609
12129
  type: "tuple",
12610
12130
  },
12131
+ ],
12132
+ name: "increasePositionSizeMarketCallback",
12133
+ outputs: [],
12134
+ stateMutability: "nonpayable",
12135
+ type: "function",
12136
+ signature: "0x488ce21e",
12137
+ },
12138
+ {
12139
+ inputs: [
12611
12140
  {
12612
- internalType: "enum ITradingStorage.PendingOrderType",
12613
- name: "_orderType",
12141
+ internalType: "uint8",
12142
+ name: "_vaultClosingFeeP",
12614
12143
  type: "uint8",
12615
12144
  },
12145
+ ],
12146
+ name: "initializeCallbacks",
12147
+ outputs: [],
12148
+ stateMutability: "nonpayable",
12149
+ type: "function",
12150
+ signature: "0xec98ec83",
12151
+ },
12152
+ {
12153
+ inputs: [
12616
12154
  {
12617
12155
  internalType: "address",
12618
- name: "_initiator",
12156
+ name: "_treasury",
12619
12157
  type: "address",
12620
12158
  },
12621
12159
  ],
12622
- name: "executeTriggerCloseOrderCallbackDirect",
12160
+ name: "initializeTreasuryAddress",
12623
12161
  outputs: [],
12624
12162
  stateMutability: "nonpayable",
12625
12163
  type: "function",
12626
- signature: "0x33575269",
12164
+ signature: "0x63a21e54",
12627
12165
  },
12628
12166
  {
12629
12167
  inputs: [
@@ -12672,11 +12210,11 @@ const _abi = [
12672
12210
  type: "tuple",
12673
12211
  },
12674
12212
  ],
12675
- name: "executeTriggerOpenOrderCallback",
12213
+ name: "manualHoldingFeesRealizationCallback",
12676
12214
  outputs: [],
12677
12215
  stateMutability: "nonpayable",
12678
12216
  type: "function",
12679
- signature: "0x5578478f",
12217
+ signature: "0x46be8fd9",
12680
12218
  },
12681
12219
  {
12682
12220
  inputs: [
@@ -12724,138 +12262,12 @@ const _abi = [
12724
12262
  name: "_a",
12725
12263
  type: "tuple",
12726
12264
  },
12727
- {
12728
- components: [
12729
- {
12730
- internalType: "address",
12731
- name: "user",
12732
- type: "address",
12733
- },
12734
- {
12735
- internalType: "uint32",
12736
- name: "index",
12737
- type: "uint32",
12738
- },
12739
- {
12740
- internalType: "uint16",
12741
- name: "pairIndex",
12742
- type: "uint16",
12743
- },
12744
- {
12745
- internalType: "uint24",
12746
- name: "leverage",
12747
- type: "uint24",
12748
- },
12749
- {
12750
- internalType: "bool",
12751
- name: "long",
12752
- type: "bool",
12753
- },
12754
- {
12755
- internalType: "bool",
12756
- name: "isOpen",
12757
- type: "bool",
12758
- },
12759
- {
12760
- internalType: "uint8",
12761
- name: "collateralIndex",
12762
- type: "uint8",
12763
- },
12764
- {
12765
- internalType: "enum ITradingStorage.TradeType",
12766
- name: "tradeType",
12767
- type: "uint8",
12768
- },
12769
- {
12770
- internalType: "uint120",
12771
- name: "collateralAmount",
12772
- type: "uint120",
12773
- },
12774
- {
12775
- internalType: "uint64",
12776
- name: "openPrice",
12777
- type: "uint64",
12778
- },
12779
- {
12780
- internalType: "uint64",
12781
- name: "tp",
12782
- type: "uint64",
12783
- },
12784
- {
12785
- internalType: "uint64",
12786
- name: "sl",
12787
- type: "uint64",
12788
- },
12789
- {
12790
- internalType: "bool",
12791
- name: "isCounterTrade",
12792
- type: "bool",
12793
- },
12794
- {
12795
- internalType: "uint160",
12796
- name: "positionSizeToken",
12797
- type: "uint160",
12798
- },
12799
- {
12800
- internalType: "uint24",
12801
- name: "__placeholder",
12802
- type: "uint24",
12803
- },
12804
- ],
12805
- internalType: "struct ITradingStorage.Trade",
12806
- name: "_trade",
12807
- type: "tuple",
12808
- },
12809
- {
12810
- internalType: "enum ITradingStorage.PendingOrderType",
12811
- name: "_orderType",
12812
- type: "uint8",
12813
- },
12814
- {
12815
- internalType: "address",
12816
- name: "_initiator",
12817
- type: "address",
12818
- },
12819
12265
  ],
12820
- name: "executeTriggerOpenOrderCallbackDirect",
12266
+ name: "manualNegativePnlRealizationCallback",
12821
12267
  outputs: [],
12822
12268
  stateMutability: "nonpayable",
12823
12269
  type: "function",
12824
- signature: "0x9d7ef759",
12825
- },
12826
- {
12827
- inputs: [
12828
- {
12829
- internalType: "uint8",
12830
- name: "_collateralIndex",
12831
- type: "uint8",
12832
- },
12833
- ],
12834
- name: "getPendingGovFeesCollateral",
12835
- outputs: [
12836
- {
12837
- internalType: "uint256",
12838
- name: "",
12839
- type: "uint256",
12840
- },
12841
- ],
12842
- stateMutability: "view",
12843
- type: "function",
12844
- signature: "0x2c6fe6d1",
12845
- },
12846
- {
12847
- inputs: [],
12848
- name: "getVaultClosingFeeP",
12849
- outputs: [
12850
- {
12851
- internalType: "uint8",
12852
- name: "",
12853
- type: "uint8",
12854
- },
12855
- ],
12856
- stateMutability: "view",
12857
- type: "function",
12858
- signature: "0xa5b26e46",
12270
+ signature: "0x70c4e0c1",
12859
12271
  },
12860
12272
  {
12861
12273
  inputs: [
@@ -12904,39 +12316,11 @@ const _abi = [
12904
12316
  type: "tuple",
12905
12317
  },
12906
12318
  ],
12907
- name: "increasePositionSizeMarketCallback",
12908
- outputs: [],
12909
- stateMutability: "nonpayable",
12910
- type: "function",
12911
- signature: "0x488ce21e",
12912
- },
12913
- {
12914
- inputs: [
12915
- {
12916
- internalType: "uint8",
12917
- name: "_vaultClosingFeeP",
12918
- type: "uint8",
12919
- },
12920
- ],
12921
- name: "initializeCallbacks",
12922
- outputs: [],
12923
- stateMutability: "nonpayable",
12924
- type: "function",
12925
- signature: "0xec98ec83",
12926
- },
12927
- {
12928
- inputs: [
12929
- {
12930
- internalType: "address",
12931
- name: "_treasury",
12932
- type: "address",
12933
- },
12934
- ],
12935
- name: "initializeTreasuryAddress",
12319
+ name: "openTradeMarketCallback",
12936
12320
  outputs: [],
12937
12321
  stateMutability: "nonpayable",
12938
12322
  type: "function",
12939
- signature: "0x63a21e54",
12323
+ signature: "0x0a1cbdba",
12940
12324
  },
12941
12325
  {
12942
12326
  inputs: [
@@ -12985,11 +12369,11 @@ const _abi = [
12985
12369
  type: "tuple",
12986
12370
  },
12987
12371
  ],
12988
- name: "manualHoldingFeesRealizationCallback",
12372
+ name: "pnlWithdrawalCallback",
12989
12373
  outputs: [],
12990
12374
  stateMutability: "nonpayable",
12991
12375
  type: "function",
12992
- signature: "0x46be8fd9",
12376
+ signature: "0x56b9584b",
12993
12377
  },
12994
12378
  {
12995
12379
  inputs: [
@@ -13038,166 +12422,7 @@ const _abi = [
13038
12422
  type: "tuple",
13039
12423
  },
13040
12424
  ],
13041
- name: "manualNegativePnlRealizationCallback",
13042
- outputs: [],
13043
- stateMutability: "nonpayable",
13044
- type: "function",
13045
- signature: "0x70c4e0c1",
13046
- },
13047
- {
13048
- inputs: [
13049
- {
13050
- components: [
13051
- {
13052
- components: [
13053
- {
13054
- internalType: "address",
13055
- name: "user",
13056
- type: "address",
13057
- },
13058
- {
13059
- internalType: "uint32",
13060
- name: "index",
13061
- type: "uint32",
13062
- },
13063
- ],
13064
- internalType: "struct ITradingStorage.Id",
13065
- name: "orderId",
13066
- type: "tuple",
13067
- },
13068
- {
13069
- internalType: "uint64",
13070
- name: "open",
13071
- type: "uint64",
13072
- },
13073
- {
13074
- internalType: "uint64",
13075
- name: "high",
13076
- type: "uint64",
13077
- },
13078
- {
13079
- internalType: "uint64",
13080
- name: "low",
13081
- type: "uint64",
13082
- },
13083
- {
13084
- internalType: "uint64",
13085
- name: "current",
13086
- type: "uint64",
13087
- },
13088
- ],
13089
- internalType: "struct ITradingCallbacks.AggregatorAnswer",
13090
- name: "_a",
13091
- type: "tuple",
13092
- },
13093
- ],
13094
- name: "openTradeMarketCallback",
13095
- outputs: [],
13096
- stateMutability: "nonpayable",
13097
- type: "function",
13098
- signature: "0x0a1cbdba",
13099
- },
13100
- {
13101
- inputs: [
13102
- {
13103
- components: [
13104
- {
13105
- components: [
13106
- {
13107
- internalType: "address",
13108
- name: "user",
13109
- type: "address",
13110
- },
13111
- {
13112
- internalType: "uint32",
13113
- name: "index",
13114
- type: "uint32",
13115
- },
13116
- ],
13117
- internalType: "struct ITradingStorage.Id",
13118
- name: "orderId",
13119
- type: "tuple",
13120
- },
13121
- {
13122
- internalType: "uint64",
13123
- name: "open",
13124
- type: "uint64",
13125
- },
13126
- {
13127
- internalType: "uint64",
13128
- name: "high",
13129
- type: "uint64",
13130
- },
13131
- {
13132
- internalType: "uint64",
13133
- name: "low",
13134
- type: "uint64",
13135
- },
13136
- {
13137
- internalType: "uint64",
13138
- name: "current",
13139
- type: "uint64",
13140
- },
13141
- ],
13142
- internalType: "struct ITradingCallbacks.AggregatorAnswer",
13143
- name: "_a",
13144
- type: "tuple",
13145
- },
13146
- ],
13147
- name: "pnlWithdrawalCallback",
13148
- outputs: [],
13149
- stateMutability: "nonpayable",
13150
- type: "function",
13151
- signature: "0x56b9584b",
13152
- },
13153
- {
13154
- inputs: [
13155
- {
13156
- components: [
13157
- {
13158
- components: [
13159
- {
13160
- internalType: "address",
13161
- name: "user",
13162
- type: "address",
13163
- },
13164
- {
13165
- internalType: "uint32",
13166
- name: "index",
13167
- type: "uint32",
13168
- },
13169
- ],
13170
- internalType: "struct ITradingStorage.Id",
13171
- name: "orderId",
13172
- type: "tuple",
13173
- },
13174
- {
13175
- internalType: "uint64",
13176
- name: "open",
13177
- type: "uint64",
13178
- },
13179
- {
13180
- internalType: "uint64",
13181
- name: "high",
13182
- type: "uint64",
13183
- },
13184
- {
13185
- internalType: "uint64",
13186
- name: "low",
13187
- type: "uint64",
13188
- },
13189
- {
13190
- internalType: "uint64",
13191
- name: "current",
13192
- type: "uint64",
13193
- },
13194
- ],
13195
- internalType: "struct ITradingCallbacks.AggregatorAnswer",
13196
- name: "_a",
13197
- type: "tuple",
13198
- },
13199
- ],
13200
- name: "updateLeverageCallback",
12425
+ name: "updateLeverageCallback",
13201
12426
  outputs: [],
13202
12427
  stateMutability: "nonpayable",
13203
12428
  type: "function",
@@ -15351,6 +14576,45 @@ const _abi = [
15351
14576
  type: "function",
15352
14577
  signature: "0x1a733ea0",
15353
14578
  },
14579
+ {
14580
+ inputs: [
14581
+ {
14582
+ internalType: "uint8",
14583
+ name: "_collateralIndex",
14584
+ type: "uint8",
14585
+ },
14586
+ {
14587
+ internalType: "address",
14588
+ name: "_trader",
14589
+ type: "address",
14590
+ },
14591
+ {
14592
+ internalType: "uint16",
14593
+ name: "_pairIndex",
14594
+ type: "uint16",
14595
+ },
14596
+ {
14597
+ internalType: "uint32",
14598
+ name: "_index",
14599
+ type: "uint32",
14600
+ },
14601
+ {
14602
+ internalType: "bool",
14603
+ name: "_long",
14604
+ type: "bool",
14605
+ },
14606
+ {
14607
+ internalType: "uint256",
14608
+ name: "_currentPairPrice",
14609
+ type: "uint256",
14610
+ },
14611
+ ],
14612
+ name: "resetTradeBorrowingFees",
14613
+ outputs: [],
14614
+ stateMutability: "nonpayable",
14615
+ type: "function",
14616
+ signature: "0x2e47dc6a",
14617
+ },
15354
14618
  {
15355
14619
  inputs: [
15356
14620
  {
@@ -15534,81 +14798,12 @@ const _abi = [
15534
14798
  name: "_value",
15535
14799
  type: "tuple",
15536
14800
  },
15537
- {
15538
- components: [
15539
- {
15540
- internalType: "uint8",
15541
- name: "signerId",
15542
- type: "uint8",
15543
- },
15544
- {
15545
- internalType: "uint32",
15546
- name: "expiryTs",
15547
- type: "uint32",
15548
- },
15549
- {
15550
- internalType: "bool",
15551
- name: "isLookback",
15552
- type: "bool",
15553
- },
15554
- {
15555
- internalType: "uint32",
15556
- name: "fromBlock",
15557
- type: "uint32",
15558
- },
15559
- {
15560
- internalType: "bytes",
15561
- name: "signature",
15562
- type: "bytes",
15563
- },
15564
- {
15565
- internalType: "uint16[]",
15566
- name: "pairIndices",
15567
- type: "uint16[]",
15568
- },
15569
- {
15570
- components: [
15571
- {
15572
- internalType: "uint56",
15573
- name: "open",
15574
- type: "uint56",
15575
- },
15576
- {
15577
- internalType: "uint56",
15578
- name: "high",
15579
- type: "uint56",
15580
- },
15581
- {
15582
- internalType: "uint56",
15583
- name: "low",
15584
- type: "uint56",
15585
- },
15586
- {
15587
- internalType: "uint56",
15588
- name: "current",
15589
- type: "uint56",
15590
- },
15591
- {
15592
- internalType: "uint32",
15593
- name: "ts",
15594
- type: "uint32",
15595
- },
15596
- ],
15597
- internalType: "struct IPriceAggregator.OrderAnswer[]",
15598
- name: "prices",
15599
- type: "tuple[]",
15600
- },
15601
- ],
15602
- internalType: "struct IPriceAggregator.SignedPairPrices[]",
15603
- name: "_signedPairPrices",
15604
- type: "tuple[]",
15605
- },
15606
14801
  ],
15607
14802
  name: "setBorrowingPairParams",
15608
14803
  outputs: [],
15609
14804
  stateMutability: "nonpayable",
15610
14805
  type: "function",
15611
- signature: "0x3f85355a",
14806
+ signature: "0x33b516cf",
15612
14807
  },
15613
14808
  {
15614
14809
  inputs: [
@@ -15649,84 +14844,15 @@ const _abi = [
15649
14844
  name: "_values",
15650
14845
  type: "tuple[]",
15651
14846
  },
15652
- {
15653
- components: [
15654
- {
15655
- internalType: "uint8",
15656
- name: "signerId",
15657
- type: "uint8",
15658
- },
15659
- {
15660
- internalType: "uint32",
15661
- name: "expiryTs",
15662
- type: "uint32",
15663
- },
15664
- {
15665
- internalType: "bool",
15666
- name: "isLookback",
15667
- type: "bool",
15668
- },
15669
- {
15670
- internalType: "uint32",
15671
- name: "fromBlock",
15672
- type: "uint32",
15673
- },
15674
- {
15675
- internalType: "bytes",
15676
- name: "signature",
15677
- type: "bytes",
15678
- },
15679
- {
15680
- internalType: "uint16[]",
15681
- name: "pairIndices",
15682
- type: "uint16[]",
15683
- },
15684
- {
15685
- components: [
15686
- {
15687
- internalType: "uint56",
15688
- name: "open",
15689
- type: "uint56",
15690
- },
15691
- {
15692
- internalType: "uint56",
15693
- name: "high",
15694
- type: "uint56",
15695
- },
15696
- {
15697
- internalType: "uint56",
15698
- name: "low",
15699
- type: "uint56",
15700
- },
15701
- {
15702
- internalType: "uint56",
15703
- name: "current",
15704
- type: "uint56",
15705
- },
15706
- {
15707
- internalType: "uint32",
15708
- name: "ts",
15709
- type: "uint32",
15710
- },
15711
- ],
15712
- internalType: "struct IPriceAggregator.OrderAnswer[]",
15713
- name: "prices",
15714
- type: "tuple[]",
15715
- },
15716
- ],
15717
- internalType: "struct IPriceAggregator.SignedPairPrices[]",
15718
- name: "_signedPairPrices",
15719
- type: "tuple[]",
15720
- },
15721
- ],
15722
- name: "setBorrowingPairParamsArray",
15723
- outputs: [],
15724
- stateMutability: "nonpayable",
15725
- type: "function",
15726
- signature: "0xd4b813f2",
15727
- },
15728
- {
15729
- inputs: [
14847
+ ],
14848
+ name: "setBorrowingPairParamsArray",
14849
+ outputs: [],
14850
+ stateMutability: "nonpayable",
14851
+ type: "function",
14852
+ signature: "0xeb1802f8",
14853
+ },
14854
+ {
14855
+ inputs: [
15730
14856
  {
15731
14857
  internalType: "uint8",
15732
14858
  name: "_collateralIndex",
@@ -15794,76 +14920,21 @@ const _abi = [
15794
14920
  type: "function",
15795
14921
  signature: "0x801c7961",
15796
14922
  },
15797
- {
15798
- inputs: [],
15799
- name: "DuplicateOrUnsortedPairIndices",
15800
- type: "error",
15801
- },
15802
- {
15803
- inputs: [],
15804
- name: "ExpiryTooFar",
15805
- type: "error",
15806
- },
15807
- {
15808
- inputs: [],
15809
- name: "FromBlockMismatch",
15810
- type: "error",
15811
- },
15812
14923
  {
15813
14924
  inputs: [],
15814
14925
  name: "InvalidCandle",
15815
14926
  type: "error",
15816
14927
  },
15817
- {
15818
- inputs: [],
15819
- name: "InvalidCurrentPrice",
15820
- type: "error",
15821
- },
15822
- {
15823
- inputs: [],
15824
- name: "InvalidExpiryTimestamp",
15825
- type: "error",
15826
- },
15827
14928
  {
15828
14929
  inputs: [],
15829
14930
  name: "InvalidPoolType",
15830
14931
  type: "error",
15831
14932
  },
15832
- {
15833
- inputs: [],
15834
- name: "InvalidSignature",
15835
- type: "error",
15836
- },
15837
- {
15838
- inputs: [],
15839
- name: "LookbackMismatch",
15840
- type: "error",
15841
- },
15842
- {
15843
- inputs: [],
15844
- name: "MinAnswersNotReached",
15845
- type: "error",
15846
- },
15847
14933
  {
15848
14934
  inputs: [],
15849
14935
  name: "OracleAlreadyListed",
15850
14936
  type: "error",
15851
14937
  },
15852
- {
15853
- inputs: [],
15854
- name: "PairAndCurrentPriceLengthMismatch",
15855
- type: "error",
15856
- },
15857
- {
15858
- inputs: [],
15859
- name: "PairIndexMismatchBetweenSigners",
15860
- type: "error",
15861
- },
15862
- {
15863
- inputs: [],
15864
- name: "PairLengthMismatchBetweenSigners",
15865
- type: "error",
15866
- },
15867
14938
  {
15868
14939
  inputs: [],
15869
14940
  name: "RequestAlreadyPending",
@@ -15884,16 +14955,6 @@ const _abi = [
15884
14955
  name: "WrongCollateralUsdDecimals",
15885
14956
  type: "error",
15886
14957
  },
15887
- {
15888
- inputs: [],
15889
- name: "WrongSignaturesCount",
15890
- type: "error",
15891
- },
15892
- {
15893
- inputs: [],
15894
- name: "WrongSignerIdOrder",
15895
- type: "error",
15896
- },
15897
14958
  {
15898
14959
  anonymous: false,
15899
14960
  inputs: [
@@ -16179,6 +15240,20 @@ const _abi = [
16179
15240
  type: "event",
16180
15241
  signature: "0x36f00e7308d970ca7446a252b7a1dd9c9cb50ea4559b602e595fc53967ac9dd9",
16181
15242
  },
15243
+ {
15244
+ anonymous: false,
15245
+ inputs: [
15246
+ {
15247
+ indexed: false,
15248
+ internalType: "bytes32",
15249
+ name: "jobId",
15250
+ type: "bytes32",
15251
+ },
15252
+ ],
15253
+ name: "ParamUpdateJobIdUpdated",
15254
+ type: "event",
15255
+ signature: "0x47b440e213065ce71d2660828d52a17e40915af406469be6b9af861a9465427b",
15256
+ },
16182
15257
  {
16183
15258
  anonymous: false,
16184
15259
  inputs: [
@@ -16495,104 +15570,6 @@ const _abi = [
16495
15570
  type: "event",
16496
15571
  signature: "0xb388bf2f3f0bb2fde6ffeb60ae5f6ade4679631a026ce552771baebbb0ddb682",
16497
15572
  },
16498
- {
16499
- anonymous: false,
16500
- inputs: [
16501
- {
16502
- indexed: true,
16503
- internalType: "uint16",
16504
- name: "pairIndex",
16505
- type: "uint16",
16506
- },
16507
- {
16508
- indexed: false,
16509
- internalType: "bool",
16510
- name: "isLookback",
16511
- type: "bool",
16512
- },
16513
- {
16514
- indexed: false,
16515
- internalType: "uint32",
16516
- name: "fromBlock",
16517
- type: "uint32",
16518
- },
16519
- {
16520
- indexed: false,
16521
- internalType: "bool",
16522
- name: "minFilteredAnswersReached",
16523
- type: "bool",
16524
- },
16525
- {
16526
- components: [
16527
- {
16528
- internalType: "uint56",
16529
- name: "open",
16530
- type: "uint56",
16531
- },
16532
- {
16533
- internalType: "uint56",
16534
- name: "high",
16535
- type: "uint56",
16536
- },
16537
- {
16538
- internalType: "uint56",
16539
- name: "low",
16540
- type: "uint56",
16541
- },
16542
- {
16543
- internalType: "uint56",
16544
- name: "current",
16545
- type: "uint56",
16546
- },
16547
- {
16548
- internalType: "uint32",
16549
- name: "ts",
16550
- type: "uint32",
16551
- },
16552
- ],
16553
- indexed: false,
16554
- internalType: "struct IPriceAggregator.OrderAnswer[]",
16555
- name: "unfilteredAnswers",
16556
- type: "tuple[]",
16557
- },
16558
- {
16559
- components: [
16560
- {
16561
- internalType: "uint56",
16562
- name: "open",
16563
- type: "uint56",
16564
- },
16565
- {
16566
- internalType: "uint56",
16567
- name: "high",
16568
- type: "uint56",
16569
- },
16570
- {
16571
- internalType: "uint56",
16572
- name: "low",
16573
- type: "uint56",
16574
- },
16575
- {
16576
- internalType: "uint56",
16577
- name: "current",
16578
- type: "uint56",
16579
- },
16580
- {
16581
- internalType: "uint32",
16582
- name: "ts",
16583
- type: "uint32",
16584
- },
16585
- ],
16586
- indexed: false,
16587
- internalType: "struct IPriceAggregator.OrderAnswer[]",
16588
- name: "filteredAnswers",
16589
- type: "tuple[]",
16590
- },
16591
- ],
16592
- name: "SignedPricesReceived",
16593
- type: "event",
16594
- signature: "0x86de8981b0d1c326788b6cf0a05a146dad3a99f57d2df4af213f32de34ce8bf4",
16595
- },
16596
15573
  {
16597
15574
  anonymous: false,
16598
15575
  inputs: [
@@ -16688,14 +15665,6 @@ const _abi = [
16688
15665
  type: "function",
16689
15666
  signature: "0x6f37d263",
16690
15667
  },
16691
- {
16692
- inputs: [],
16693
- name: "cleanUpSignedPairPrices",
16694
- outputs: [],
16695
- stateMutability: "nonpayable",
16696
- type: "function",
16697
- signature: "0x1c302ec1",
16698
- },
16699
15668
  {
16700
15669
  inputs: [
16701
15670
  {
@@ -16876,31 +15845,6 @@ const _abi = [
16876
15845
  type: "function",
16877
15846
  signature: "0xa91fa361",
16878
15847
  },
16879
- {
16880
- inputs: [
16881
- {
16882
- internalType: "uint8",
16883
- name: "_collateralIndex",
16884
- type: "uint8",
16885
- },
16886
- {
16887
- internalType: "uint256",
16888
- name: "_gnsPriceCollateral",
16889
- type: "uint256",
16890
- },
16891
- ],
16892
- name: "getGnsPriceUsd",
16893
- outputs: [
16894
- {
16895
- internalType: "uint256",
16896
- name: "",
16897
- type: "uint256",
16898
- },
16899
- ],
16900
- stateMutability: "view",
16901
- type: "function",
16902
- signature: "0x6e27030b",
16903
- },
16904
15848
  {
16905
15849
  inputs: [
16906
15850
  {
@@ -17107,121 +16051,29 @@ const _abi = [
17107
16051
  type: "function",
17108
16052
  signature: "0x40884c52",
17109
16053
  },
16054
+ {
16055
+ inputs: [],
16056
+ name: "getParamUpdateJobId",
16057
+ outputs: [
16058
+ {
16059
+ internalType: "bytes32",
16060
+ name: "",
16061
+ type: "bytes32",
16062
+ },
16063
+ ],
16064
+ stateMutability: "view",
16065
+ type: "function",
16066
+ signature: "0xc4296c90",
16067
+ },
17110
16068
  {
17111
16069
  inputs: [
17112
16070
  {
17113
- internalType: "uint16",
17114
- name: "_pairIndex",
17115
- type: "uint16",
16071
+ internalType: "bytes32",
16072
+ name: "_id",
16073
+ type: "bytes32",
17116
16074
  },
17117
16075
  ],
17118
- name: "getPairSignedMedianTemporary",
17119
- outputs: [
17120
- {
17121
- components: [
17122
- {
17123
- components: [
17124
- {
17125
- internalType: "address",
17126
- name: "user",
17127
- type: "address",
17128
- },
17129
- {
17130
- internalType: "uint32",
17131
- name: "index",
17132
- type: "uint32",
17133
- },
17134
- ],
17135
- internalType: "struct ITradingStorage.Id",
17136
- name: "orderId",
17137
- type: "tuple",
17138
- },
17139
- {
17140
- internalType: "uint64",
17141
- name: "open",
17142
- type: "uint64",
17143
- },
17144
- {
17145
- internalType: "uint64",
17146
- name: "high",
17147
- type: "uint64",
17148
- },
17149
- {
17150
- internalType: "uint64",
17151
- name: "low",
17152
- type: "uint64",
17153
- },
17154
- {
17155
- internalType: "uint64",
17156
- name: "current",
17157
- type: "uint64",
17158
- },
17159
- ],
17160
- internalType: "struct ITradingCallbacks.AggregatorAnswer",
17161
- name: "",
17162
- type: "tuple",
17163
- },
17164
- ],
17165
- stateMutability: "view",
17166
- type: "function",
17167
- signature: "0xed5becb6",
17168
- },
17169
- {
17170
- inputs: [
17171
- {
17172
- internalType: "uint16",
17173
- name: "_pairIndex",
17174
- type: "uint16",
17175
- },
17176
- ],
17177
- name: "getPairSignedOrderAnswersTemporary",
17178
- outputs: [
17179
- {
17180
- components: [
17181
- {
17182
- internalType: "uint56",
17183
- name: "open",
17184
- type: "uint56",
17185
- },
17186
- {
17187
- internalType: "uint56",
17188
- name: "high",
17189
- type: "uint56",
17190
- },
17191
- {
17192
- internalType: "uint56",
17193
- name: "low",
17194
- type: "uint56",
17195
- },
17196
- {
17197
- internalType: "uint56",
17198
- name: "current",
17199
- type: "uint56",
17200
- },
17201
- {
17202
- internalType: "uint32",
17203
- name: "ts",
17204
- type: "uint32",
17205
- },
17206
- ],
17207
- internalType: "struct IPriceAggregator.OrderAnswer[]",
17208
- name: "",
17209
- type: "tuple[]",
17210
- },
17211
- ],
17212
- stateMutability: "view",
17213
- type: "function",
17214
- signature: "0x4ed0ed84",
17215
- },
17216
- {
17217
- inputs: [
17218
- {
17219
- internalType: "bytes32",
17220
- name: "_id",
17221
- type: "bytes32",
17222
- },
17223
- ],
17224
- name: "getPendingRequest",
16076
+ name: "getPendingRequest",
17225
16077
  outputs: [
17226
16078
  {
17227
16079
  internalType: "address",
@@ -17536,20 +16388,6 @@ const _abi = [
17536
16388
  type: "function",
17537
16389
  signature: "0x3fad1834",
17538
16390
  },
17539
- {
17540
- inputs: [],
17541
- name: "getSignedPairIndicesTemporary",
17542
- outputs: [
17543
- {
17544
- internalType: "uint16[]",
17545
- name: "",
17546
- type: "uint16[]",
17547
- },
17548
- ],
17549
- stateMutability: "view",
17550
- type: "function",
17551
- signature: "0x988fcc05",
17552
- },
17553
16391
  {
17554
16392
  inputs: [],
17555
16393
  name: "getTwapInterval",
@@ -17622,6 +16460,20 @@ const _abi = [
17622
16460
  type: "function",
17623
16461
  signature: "0x94db9ef7",
17624
16462
  },
16463
+ {
16464
+ inputs: [
16465
+ {
16466
+ internalType: "bytes32",
16467
+ name: "_jobId",
16468
+ type: "bytes32",
16469
+ },
16470
+ ],
16471
+ name: "initializeParamUpdateJobId",
16472
+ outputs: [],
16473
+ stateMutability: "nonpayable",
16474
+ type: "function",
16475
+ signature: "0x299e40a4",
16476
+ },
17625
16477
  {
17626
16478
  inputs: [
17627
16479
  {
@@ -17791,6 +16643,20 @@ const _abi = [
17791
16643
  type: "function",
17792
16644
  signature: "0xaa564b10",
17793
16645
  },
16646
+ {
16647
+ inputs: [
16648
+ {
16649
+ internalType: "bytes32",
16650
+ name: "_jobId",
16651
+ type: "bytes32",
16652
+ },
16653
+ ],
16654
+ name: "setParamUpdateJobId",
16655
+ outputs: [],
16656
+ stateMutability: "nonpayable",
16657
+ type: "function",
16658
+ signature: "0x989f7ceb",
16659
+ },
17794
16660
  {
17795
16661
  inputs: [
17796
16662
  {
@@ -17883,89 +16749,6 @@ const _abi = [
17883
16749
  type: "function",
17884
16750
  signature: "0xb166a495",
17885
16751
  },
17886
- {
17887
- inputs: [
17888
- {
17889
- components: [
17890
- {
17891
- internalType: "uint8",
17892
- name: "signerId",
17893
- type: "uint8",
17894
- },
17895
- {
17896
- internalType: "uint32",
17897
- name: "expiryTs",
17898
- type: "uint32",
17899
- },
17900
- {
17901
- internalType: "bool",
17902
- name: "isLookback",
17903
- type: "bool",
17904
- },
17905
- {
17906
- internalType: "uint32",
17907
- name: "fromBlock",
17908
- type: "uint32",
17909
- },
17910
- {
17911
- internalType: "bytes",
17912
- name: "signature",
17913
- type: "bytes",
17914
- },
17915
- {
17916
- internalType: "uint16[]",
17917
- name: "pairIndices",
17918
- type: "uint16[]",
17919
- },
17920
- {
17921
- components: [
17922
- {
17923
- internalType: "uint56",
17924
- name: "open",
17925
- type: "uint56",
17926
- },
17927
- {
17928
- internalType: "uint56",
17929
- name: "high",
17930
- type: "uint56",
17931
- },
17932
- {
17933
- internalType: "uint56",
17934
- name: "low",
17935
- type: "uint56",
17936
- },
17937
- {
17938
- internalType: "uint56",
17939
- name: "current",
17940
- type: "uint56",
17941
- },
17942
- {
17943
- internalType: "uint32",
17944
- name: "ts",
17945
- type: "uint32",
17946
- },
17947
- ],
17948
- internalType: "struct IPriceAggregator.OrderAnswer[]",
17949
- name: "prices",
17950
- type: "tuple[]",
17951
- },
17952
- ],
17953
- internalType: "struct IPriceAggregator.SignedPairPrices[]",
17954
- name: "_signedPairPrices",
17955
- type: "tuple[]",
17956
- },
17957
- {
17958
- internalType: "bool",
17959
- name: "_isLookback",
17960
- type: "bool",
17961
- },
17962
- ],
17963
- name: "validateSignedPairPrices",
17964
- outputs: [],
17965
- stateMutability: "nonpayable",
17966
- type: "function",
17967
- signature: "0x73b0d136",
17968
- },
17969
16752
  {
17970
16753
  inputs: [],
17971
16754
  name: "InvalidShareSum",
@@ -20032,36 +18815,53 @@ const _abi = [
20032
18815
  {
20033
18816
  components: [
20034
18817
  {
20035
- internalType: "uint8",
20036
- name: "collateralIndex",
20037
- type: "uint8",
18818
+ components: [
18819
+ {
18820
+ internalType: "address",
18821
+ name: "user",
18822
+ type: "address",
18823
+ },
18824
+ {
18825
+ internalType: "uint32",
18826
+ name: "index",
18827
+ type: "uint32",
18828
+ },
18829
+ ],
18830
+ internalType: "struct ITradingStorage.Id",
18831
+ name: "orderId",
18832
+ type: "tuple",
20038
18833
  },
20039
18834
  {
20040
- internalType: "uint16",
20041
- name: "pairIndex",
20042
- type: "uint16",
18835
+ internalType: "uint64",
18836
+ name: "open",
18837
+ type: "uint64",
20043
18838
  },
20044
18839
  {
20045
- internalType: "enum IFundingFees.ParamUpdateType",
20046
- name: "updateType",
20047
- type: "uint8",
18840
+ internalType: "uint64",
18841
+ name: "high",
18842
+ type: "uint64",
20048
18843
  },
20049
18844
  {
20050
- internalType: "uint224",
20051
- name: "newValue",
20052
- type: "uint224",
18845
+ internalType: "uint64",
18846
+ name: "low",
18847
+ type: "uint64",
18848
+ },
18849
+ {
18850
+ internalType: "uint64",
18851
+ name: "current",
18852
+ type: "uint64",
20053
18853
  },
20054
18854
  ],
20055
- internalType: "struct IFundingFees.PendingParamUpdate",
20056
- name: "_paramUpdate",
18855
+ internalType: "struct ITradingCallbacks.AggregatorAnswer",
18856
+ name: "_answer",
20057
18857
  type: "tuple",
20058
18858
  },
20059
18859
  ],
20060
- name: "paramUpdateCallbackWithSignedPrices",
18860
+ name: "pendingParamUpdateCallback",
20061
18861
  outputs: [],
20062
18862
  stateMutability: "nonpayable",
20063
18863
  type: "function",
20064
- signature: "0x002c68df",
18864
+ signature: "0x5246b961",
20065
18865
  },
20066
18866
  {
20067
18867
  inputs: [
@@ -20146,6 +18946,35 @@ const _abi = [
20146
18946
  type: "function",
20147
18947
  signature: "0xfd84264d",
20148
18948
  },
18949
+ {
18950
+ inputs: [
18951
+ {
18952
+ internalType: "uint8",
18953
+ name: "_collateralIndex",
18954
+ type: "uint8",
18955
+ },
18956
+ {
18957
+ internalType: "uint16",
18958
+ name: "_pairIndex",
18959
+ type: "uint16",
18960
+ },
18961
+ {
18962
+ internalType: "enum IFundingFees.ParamUpdateType",
18963
+ name: "_updateType",
18964
+ type: "uint8",
18965
+ },
18966
+ {
18967
+ internalType: "uint224",
18968
+ name: "_newValue",
18969
+ type: "uint224",
18970
+ },
18971
+ ],
18972
+ name: "requestParamUpdate",
18973
+ outputs: [],
18974
+ stateMutability: "nonpayable",
18975
+ type: "function",
18976
+ signature: "0x41f84f2b",
18977
+ },
20149
18978
  {
20150
18979
  inputs: [
20151
18980
  {
@@ -20163,81 +18992,12 @@ const _abi = [
20163
18992
  name: "_absoluteRatePerSecondCap",
20164
18993
  type: "uint24[]",
20165
18994
  },
20166
- {
20167
- components: [
20168
- {
20169
- internalType: "uint8",
20170
- name: "signerId",
20171
- type: "uint8",
20172
- },
20173
- {
20174
- internalType: "uint32",
20175
- name: "expiryTs",
20176
- type: "uint32",
20177
- },
20178
- {
20179
- internalType: "bool",
20180
- name: "isLookback",
20181
- type: "bool",
20182
- },
20183
- {
20184
- internalType: "uint32",
20185
- name: "fromBlock",
20186
- type: "uint32",
20187
- },
20188
- {
20189
- internalType: "bytes",
20190
- name: "signature",
20191
- type: "bytes",
20192
- },
20193
- {
20194
- internalType: "uint16[]",
20195
- name: "pairIndices",
20196
- type: "uint16[]",
20197
- },
20198
- {
20199
- components: [
20200
- {
20201
- internalType: "uint56",
20202
- name: "open",
20203
- type: "uint56",
20204
- },
20205
- {
20206
- internalType: "uint56",
20207
- name: "high",
20208
- type: "uint56",
20209
- },
20210
- {
20211
- internalType: "uint56",
20212
- name: "low",
20213
- type: "uint56",
20214
- },
20215
- {
20216
- internalType: "uint56",
20217
- name: "current",
20218
- type: "uint56",
20219
- },
20220
- {
20221
- internalType: "uint32",
20222
- name: "ts",
20223
- type: "uint32",
20224
- },
20225
- ],
20226
- internalType: "struct IPriceAggregator.OrderAnswer[]",
20227
- name: "prices",
20228
- type: "tuple[]",
20229
- },
20230
- ],
20231
- internalType: "struct IPriceAggregator.SignedPairPrices[]",
20232
- name: "_signedPairPrices",
20233
- type: "tuple[]",
20234
- },
20235
18995
  ],
20236
18996
  name: "setAbsoluteRatePerSecondCap",
20237
18997
  outputs: [],
20238
18998
  stateMutability: "nonpayable",
20239
18999
  type: "function",
20240
- signature: "0x48b5a760",
19000
+ signature: "0x1cff93a8",
20241
19001
  },
20242
19002
  {
20243
19003
  inputs: [
@@ -20256,81 +19016,12 @@ const _abi = [
20256
19016
  name: "_absoluteVelocityPerYearCap",
20257
19017
  type: "uint24[]",
20258
19018
  },
20259
- {
20260
- components: [
20261
- {
20262
- internalType: "uint8",
20263
- name: "signerId",
20264
- type: "uint8",
20265
- },
20266
- {
20267
- internalType: "uint32",
20268
- name: "expiryTs",
20269
- type: "uint32",
20270
- },
20271
- {
20272
- internalType: "bool",
20273
- name: "isLookback",
20274
- type: "bool",
20275
- },
20276
- {
20277
- internalType: "uint32",
20278
- name: "fromBlock",
20279
- type: "uint32",
20280
- },
20281
- {
20282
- internalType: "bytes",
20283
- name: "signature",
20284
- type: "bytes",
20285
- },
20286
- {
20287
- internalType: "uint16[]",
20288
- name: "pairIndices",
20289
- type: "uint16[]",
20290
- },
20291
- {
20292
- components: [
20293
- {
20294
- internalType: "uint56",
20295
- name: "open",
20296
- type: "uint56",
20297
- },
20298
- {
20299
- internalType: "uint56",
20300
- name: "high",
20301
- type: "uint56",
20302
- },
20303
- {
20304
- internalType: "uint56",
20305
- name: "low",
20306
- type: "uint56",
20307
- },
20308
- {
20309
- internalType: "uint56",
20310
- name: "current",
20311
- type: "uint56",
20312
- },
20313
- {
20314
- internalType: "uint32",
20315
- name: "ts",
20316
- type: "uint32",
20317
- },
20318
- ],
20319
- internalType: "struct IPriceAggregator.OrderAnswer[]",
20320
- name: "prices",
20321
- type: "tuple[]",
20322
- },
20323
- ],
20324
- internalType: "struct IPriceAggregator.SignedPairPrices[]",
20325
- name: "_signedPairPrices",
20326
- type: "tuple[]",
20327
- },
20328
19019
  ],
20329
19020
  name: "setAbsoluteVelocityPerYearCap",
20330
19021
  outputs: [],
20331
19022
  stateMutability: "nonpayable",
20332
19023
  type: "function",
20333
- signature: "0xfacfee17",
19024
+ signature: "0x96ebeace",
20334
19025
  },
20335
19026
  {
20336
19027
  inputs: [
@@ -20349,81 +19040,12 @@ const _abi = [
20349
19040
  name: "_aprMultiplierEnabled",
20350
19041
  type: "bool[]",
20351
19042
  },
20352
- {
20353
- components: [
20354
- {
20355
- internalType: "uint8",
20356
- name: "signerId",
20357
- type: "uint8",
20358
- },
20359
- {
20360
- internalType: "uint32",
20361
- name: "expiryTs",
20362
- type: "uint32",
20363
- },
20364
- {
20365
- internalType: "bool",
20366
- name: "isLookback",
20367
- type: "bool",
20368
- },
20369
- {
20370
- internalType: "uint32",
20371
- name: "fromBlock",
20372
- type: "uint32",
20373
- },
20374
- {
20375
- internalType: "bytes",
20376
- name: "signature",
20377
- type: "bytes",
20378
- },
20379
- {
20380
- internalType: "uint16[]",
20381
- name: "pairIndices",
20382
- type: "uint16[]",
20383
- },
20384
- {
20385
- components: [
20386
- {
20387
- internalType: "uint56",
20388
- name: "open",
20389
- type: "uint56",
20390
- },
20391
- {
20392
- internalType: "uint56",
20393
- name: "high",
20394
- type: "uint56",
20395
- },
20396
- {
20397
- internalType: "uint56",
20398
- name: "low",
20399
- type: "uint56",
20400
- },
20401
- {
20402
- internalType: "uint56",
20403
- name: "current",
20404
- type: "uint56",
20405
- },
20406
- {
20407
- internalType: "uint32",
20408
- name: "ts",
20409
- type: "uint32",
20410
- },
20411
- ],
20412
- internalType: "struct IPriceAggregator.OrderAnswer[]",
20413
- name: "prices",
20414
- type: "tuple[]",
20415
- },
20416
- ],
20417
- internalType: "struct IPriceAggregator.SignedPairPrices[]",
20418
- name: "_signedPairPrices",
20419
- type: "tuple[]",
20420
- },
20421
19043
  ],
20422
19044
  name: "setAprMultiplierEnabled",
20423
19045
  outputs: [],
20424
19046
  stateMutability: "nonpayable",
20425
19047
  type: "function",
20426
- signature: "0x6d00c93e",
19048
+ signature: "0xe8cf0b70",
20427
19049
  },
20428
19050
  {
20429
19051
  inputs: [
@@ -20442,81 +19064,12 @@ const _abi = [
20442
19064
  name: "_borrowingRatePerSecondP",
20443
19065
  type: "uint24[]",
20444
19066
  },
20445
- {
20446
- components: [
20447
- {
20448
- internalType: "uint8",
20449
- name: "signerId",
20450
- type: "uint8",
20451
- },
20452
- {
20453
- internalType: "uint32",
20454
- name: "expiryTs",
20455
- type: "uint32",
20456
- },
20457
- {
20458
- internalType: "bool",
20459
- name: "isLookback",
20460
- type: "bool",
20461
- },
20462
- {
20463
- internalType: "uint32",
20464
- name: "fromBlock",
20465
- type: "uint32",
20466
- },
20467
- {
20468
- internalType: "bytes",
20469
- name: "signature",
20470
- type: "bytes",
20471
- },
20472
- {
20473
- internalType: "uint16[]",
20474
- name: "pairIndices",
20475
- type: "uint16[]",
20476
- },
20477
- {
20478
- components: [
20479
- {
20480
- internalType: "uint56",
20481
- name: "open",
20482
- type: "uint56",
20483
- },
20484
- {
20485
- internalType: "uint56",
20486
- name: "high",
20487
- type: "uint56",
20488
- },
20489
- {
20490
- internalType: "uint56",
20491
- name: "low",
20492
- type: "uint56",
20493
- },
20494
- {
20495
- internalType: "uint56",
20496
- name: "current",
20497
- type: "uint56",
20498
- },
20499
- {
20500
- internalType: "uint32",
20501
- name: "ts",
20502
- type: "uint32",
20503
- },
20504
- ],
20505
- internalType: "struct IPriceAggregator.OrderAnswer[]",
20506
- name: "prices",
20507
- type: "tuple[]",
20508
- },
20509
- ],
20510
- internalType: "struct IPriceAggregator.SignedPairPrices[]",
20511
- name: "_signedPairPrices",
20512
- type: "tuple[]",
20513
- },
20514
19067
  ],
20515
19068
  name: "setBorrowingRatePerSecondP",
20516
19069
  outputs: [],
20517
19070
  stateMutability: "nonpayable",
20518
19071
  type: "function",
20519
- signature: "0x559f5276",
19072
+ signature: "0xdbb69ab4",
20520
19073
  },
20521
19074
  {
20522
19075
  inputs: [
@@ -20535,81 +19088,12 @@ const _abi = [
20535
19088
  name: "_fundingFeesEnabled",
20536
19089
  type: "bool[]",
20537
19090
  },
20538
- {
20539
- components: [
20540
- {
20541
- internalType: "uint8",
20542
- name: "signerId",
20543
- type: "uint8",
20544
- },
20545
- {
20546
- internalType: "uint32",
20547
- name: "expiryTs",
20548
- type: "uint32",
20549
- },
20550
- {
20551
- internalType: "bool",
20552
- name: "isLookback",
20553
- type: "bool",
20554
- },
20555
- {
20556
- internalType: "uint32",
20557
- name: "fromBlock",
20558
- type: "uint32",
20559
- },
20560
- {
20561
- internalType: "bytes",
20562
- name: "signature",
20563
- type: "bytes",
20564
- },
20565
- {
20566
- internalType: "uint16[]",
20567
- name: "pairIndices",
20568
- type: "uint16[]",
20569
- },
20570
- {
20571
- components: [
20572
- {
20573
- internalType: "uint56",
20574
- name: "open",
20575
- type: "uint56",
20576
- },
20577
- {
20578
- internalType: "uint56",
20579
- name: "high",
20580
- type: "uint56",
20581
- },
20582
- {
20583
- internalType: "uint56",
20584
- name: "low",
20585
- type: "uint56",
20586
- },
20587
- {
20588
- internalType: "uint56",
20589
- name: "current",
20590
- type: "uint56",
20591
- },
20592
- {
20593
- internalType: "uint32",
20594
- name: "ts",
20595
- type: "uint32",
20596
- },
20597
- ],
20598
- internalType: "struct IPriceAggregator.OrderAnswer[]",
20599
- name: "prices",
20600
- type: "tuple[]",
20601
- },
20602
- ],
20603
- internalType: "struct IPriceAggregator.SignedPairPrices[]",
20604
- name: "_signedPairPrices",
20605
- type: "tuple[]",
20606
- },
20607
19091
  ],
20608
19092
  name: "setFundingFeesEnabled",
20609
19093
  outputs: [],
20610
19094
  stateMutability: "nonpayable",
20611
19095
  type: "function",
20612
- signature: "0x2fe09970",
19096
+ signature: "0x7b4ee84d",
20613
19097
  },
20614
19098
  {
20615
19099
  inputs: [
@@ -20652,81 +19136,12 @@ const _abi = [
20652
19136
  name: "_skewCoefficientPerYear",
20653
19137
  type: "uint112[]",
20654
19138
  },
20655
- {
20656
- components: [
20657
- {
20658
- internalType: "uint8",
20659
- name: "signerId",
20660
- type: "uint8",
20661
- },
20662
- {
20663
- internalType: "uint32",
20664
- name: "expiryTs",
20665
- type: "uint32",
20666
- },
20667
- {
20668
- internalType: "bool",
20669
- name: "isLookback",
20670
- type: "bool",
20671
- },
20672
- {
20673
- internalType: "uint32",
20674
- name: "fromBlock",
20675
- type: "uint32",
20676
- },
20677
- {
20678
- internalType: "bytes",
20679
- name: "signature",
20680
- type: "bytes",
20681
- },
20682
- {
20683
- internalType: "uint16[]",
20684
- name: "pairIndices",
20685
- type: "uint16[]",
20686
- },
20687
- {
20688
- components: [
20689
- {
20690
- internalType: "uint56",
20691
- name: "open",
20692
- type: "uint56",
20693
- },
20694
- {
20695
- internalType: "uint56",
20696
- name: "high",
20697
- type: "uint56",
20698
- },
20699
- {
20700
- internalType: "uint56",
20701
- name: "low",
20702
- type: "uint56",
20703
- },
20704
- {
20705
- internalType: "uint56",
20706
- name: "current",
20707
- type: "uint56",
20708
- },
20709
- {
20710
- internalType: "uint32",
20711
- name: "ts",
20712
- type: "uint32",
20713
- },
20714
- ],
20715
- internalType: "struct IPriceAggregator.OrderAnswer[]",
20716
- name: "prices",
20717
- type: "tuple[]",
20718
- },
20719
- ],
20720
- internalType: "struct IPriceAggregator.SignedPairPrices[]",
20721
- name: "_signedPairPrices",
20722
- type: "tuple[]",
20723
- },
20724
19139
  ],
20725
19140
  name: "setSkewCoefficientPerYear",
20726
19141
  outputs: [],
20727
19142
  stateMutability: "nonpayable",
20728
19143
  type: "function",
20729
- signature: "0xaeaca82a",
19144
+ signature: "0xb6fa94a3",
20730
19145
  },
20731
19146
  {
20732
19147
  inputs: [
@@ -20745,81 +19160,12 @@ const _abi = [
20745
19160
  name: "_thetaThresholdUsd",
20746
19161
  type: "uint32[]",
20747
19162
  },
20748
- {
20749
- components: [
20750
- {
20751
- internalType: "uint8",
20752
- name: "signerId",
20753
- type: "uint8",
20754
- },
20755
- {
20756
- internalType: "uint32",
20757
- name: "expiryTs",
20758
- type: "uint32",
20759
- },
20760
- {
20761
- internalType: "bool",
20762
- name: "isLookback",
20763
- type: "bool",
20764
- },
20765
- {
20766
- internalType: "uint32",
20767
- name: "fromBlock",
20768
- type: "uint32",
20769
- },
20770
- {
20771
- internalType: "bytes",
20772
- name: "signature",
20773
- type: "bytes",
20774
- },
20775
- {
20776
- internalType: "uint16[]",
20777
- name: "pairIndices",
20778
- type: "uint16[]",
20779
- },
20780
- {
20781
- components: [
20782
- {
20783
- internalType: "uint56",
20784
- name: "open",
20785
- type: "uint56",
20786
- },
20787
- {
20788
- internalType: "uint56",
20789
- name: "high",
20790
- type: "uint56",
20791
- },
20792
- {
20793
- internalType: "uint56",
20794
- name: "low",
20795
- type: "uint56",
20796
- },
20797
- {
20798
- internalType: "uint56",
20799
- name: "current",
20800
- type: "uint56",
20801
- },
20802
- {
20803
- internalType: "uint32",
20804
- name: "ts",
20805
- type: "uint32",
20806
- },
20807
- ],
20808
- internalType: "struct IPriceAggregator.OrderAnswer[]",
20809
- name: "prices",
20810
- type: "tuple[]",
20811
- },
20812
- ],
20813
- internalType: "struct IPriceAggregator.SignedPairPrices[]",
20814
- name: "_signedPairPrices",
20815
- type: "tuple[]",
20816
- },
20817
19163
  ],
20818
19164
  name: "setThetaThresholdUsd",
20819
19165
  outputs: [],
20820
19166
  stateMutability: "nonpayable",
20821
19167
  type: "function",
20822
- signature: "0x6916451e",
19168
+ signature: "0x3adcbe28",
20823
19169
  },
20824
19170
  {
20825
19171
  inputs: [
@@ -20956,30 +19302,6 @@ const _abi = [
20956
19302
  type: "function",
20957
19303
  signature: "0x2e4f2b16",
20958
19304
  },
20959
- {
20960
- inputs: [
20961
- {
20962
- internalType: "address",
20963
- name: "_trader",
20964
- type: "address",
20965
- },
20966
- {
20967
- internalType: "uint32",
20968
- name: "_index",
20969
- type: "uint32",
20970
- },
20971
- {
20972
- internalType: "uint256",
20973
- name: "_deltaCollateral",
20974
- type: "uint256",
20975
- },
20976
- ],
20977
- name: "storeUiRealizedTradingFeesCollateral",
20978
- outputs: [],
20979
- stateMutability: "nonpayable",
20980
- type: "function",
20981
- signature: "0x24f84e39",
20982
- },
20983
19305
  {
20984
19306
  inputs: [
20985
19307
  {