@gainsnetwork/sdk 1.0.6-rc2 → 1.0.6-rc4

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 (80) hide show
  1. package/lib/contracts/types/generated/GFarmTradingStorageV5.d.ts +1911 -0
  2. package/lib/contracts/types/generated/GFarmTradingStorageV5.js +2 -0
  3. package/lib/contracts/types/generated/GNSBorrowingFees.d.ts +1067 -0
  4. package/lib/contracts/types/generated/GNSBorrowingFees.js +2 -0
  5. package/lib/contracts/types/generated/GNSBorrowingFeesV6_3_2.d.ts +979 -0
  6. package/lib/contracts/types/generated/GNSBorrowingFeesV6_3_2.js +2 -0
  7. package/lib/contracts/types/generated/GNSBorrowingFeesV6_4.d.ts +1058 -0
  8. package/lib/contracts/types/generated/GNSBorrowingFeesV6_4.js +2 -0
  9. package/lib/contracts/types/generated/GNSMultiCollatDiamond.d.ts +266 -405
  10. package/lib/contracts/types/generated/GNSNftRewardsV6.d.ts +533 -0
  11. package/lib/contracts/types/generated/GNSNftRewardsV6.js +2 -0
  12. package/lib/contracts/types/generated/GNSNftRewardsV6_3_1.d.ts +613 -0
  13. package/lib/contracts/types/generated/GNSNftRewardsV6_3_1.js +2 -0
  14. package/lib/contracts/types/generated/GNSPairInfosV6_1.d.ts +911 -0
  15. package/lib/contracts/types/generated/GNSPairInfosV6_1.js +2 -0
  16. package/lib/contracts/types/generated/GNSPairsStorageV6.d.ts +660 -0
  17. package/lib/contracts/types/generated/GNSPairsStorageV6.js +2 -0
  18. package/lib/contracts/types/generated/GNSTrading.d.ts +758 -0
  19. package/lib/contracts/types/generated/GNSTrading.js +2 -0
  20. package/lib/contracts/types/generated/GNSTradingCallbacks.d.ts +875 -0
  21. package/lib/contracts/types/generated/GNSTradingCallbacks.js +2 -0
  22. package/lib/contracts/types/generated/GNSTradingCallbacksV6_3_2.d.ts +806 -0
  23. package/lib/contracts/types/generated/GNSTradingCallbacksV6_3_2.js +2 -0
  24. package/lib/contracts/types/generated/GNSTradingCallbacksV6_4.d.ts +821 -0
  25. package/lib/contracts/types/generated/GNSTradingCallbacksV6_4.js +2 -0
  26. package/lib/contracts/types/generated/GNSTradingStorage.d.ts +1387 -0
  27. package/lib/contracts/types/generated/GNSTradingStorage.js +2 -0
  28. package/lib/contracts/types/generated/GTokenV6_3_2.d.ts +1838 -0
  29. package/lib/contracts/types/generated/GTokenV6_3_2.js +2 -0
  30. package/lib/contracts/types/generated/factories/GFarmTradingStorageV5__factory.d.ts +83 -0
  31. package/lib/contracts/types/generated/factories/GFarmTradingStorageV5__factory.js +2691 -0
  32. package/lib/contracts/types/generated/factories/GNSBorrowingFeesV6_3_2__factory.d.ts +88 -0
  33. package/lib/contracts/types/generated/factories/GNSBorrowingFeesV6_3_2__factory.js +1654 -0
  34. package/lib/contracts/types/generated/factories/GNSBorrowingFeesV6_4__factory.d.ts +113 -0
  35. package/lib/contracts/types/generated/factories/GNSBorrowingFeesV6_4__factory.js +1742 -0
  36. package/lib/contracts/types/generated/factories/GNSBorrowingFees__factory.d.ts +124 -0
  37. package/lib/contracts/types/generated/factories/GNSBorrowingFees__factory.js +1784 -0
  38. package/lib/contracts/types/generated/factories/GNSMultiCollatDiamond__factory.d.ts +10 -2
  39. package/lib/contracts/types/generated/factories/GNSMultiCollatDiamond__factory.js +202 -1613
  40. package/lib/contracts/types/generated/factories/GNSNftRewardsV6_3_1__factory.d.ts +100 -0
  41. package/lib/contracts/types/generated/factories/GNSNftRewardsV6_3_1__factory.js +1116 -0
  42. package/lib/contracts/types/generated/factories/GNSNftRewardsV6__factory.d.ts +100 -0
  43. package/lib/contracts/types/generated/factories/GNSNftRewardsV6__factory.js +1003 -0
  44. package/lib/contracts/types/generated/factories/GNSPairInfosV6_1__factory.d.ts +98 -0
  45. package/lib/contracts/types/generated/factories/GNSPairInfosV6_1__factory.js +1485 -0
  46. package/lib/contracts/types/generated/factories/GNSPairsStorageV6__factory.d.ts +117 -0
  47. package/lib/contracts/types/generated/factories/GNSPairsStorageV6__factory.js +1265 -0
  48. package/lib/contracts/types/generated/factories/GNSTradingCallbacksV6_3_2__factory.d.ts +82 -0
  49. package/lib/contracts/types/generated/factories/GNSTradingCallbacksV6_3_2__factory.js +1273 -0
  50. package/lib/contracts/types/generated/factories/GNSTradingCallbacksV6_4__factory.d.ts +82 -0
  51. package/lib/contracts/types/generated/factories/GNSTradingCallbacksV6_4__factory.js +1326 -0
  52. package/lib/contracts/types/generated/factories/GNSTradingCallbacks__factory.d.ts +113 -0
  53. package/lib/contracts/types/generated/factories/GNSTradingCallbacks__factory.js +1428 -0
  54. package/lib/contracts/types/generated/factories/GNSTradingStorage__factory.d.ts +96 -0
  55. package/lib/contracts/types/generated/factories/GNSTradingStorage__factory.js +2241 -0
  56. package/lib/contracts/types/generated/factories/GNSTrading__factory.d.ts +95 -0
  57. package/lib/contracts/types/generated/factories/GNSTrading__factory.js +1071 -0
  58. package/lib/contracts/types/generated/factories/GTokenV6_3_2__factory.d.ts +110 -0
  59. package/lib/contracts/types/generated/factories/GTokenV6_3_2__factory.js +2682 -0
  60. package/lib/contracts/types/generated/factories/GToken__factory.d.ts +7 -0
  61. package/lib/contracts/types/generated/factories/GToken__factory.js +4 -0
  62. package/lib/markets/oi/fetcher.d.ts +58 -0
  63. package/lib/markets/oi/fetcher.js +181 -0
  64. package/lib/markets/oi/validation.d.ts +80 -0
  65. package/lib/markets/oi/validation.js +172 -0
  66. package/lib/markets/price/signedPrices.d.ts +10 -5
  67. package/lib/markets/price/signedPrices.js +62 -7
  68. package/lib/markets/price/types.d.ts +4 -0
  69. package/lib/trade/effectiveLeverage/builder.d.ts +23 -0
  70. package/lib/trade/effectiveLeverage/builder.js +30 -0
  71. package/lib/trade/fees/borrowingV2/fetcher.d.ts +0 -1
  72. package/lib/trade/fees/holdingFees/index.d.ts +46 -0
  73. package/lib/trade/fees/holdingFees/index.js +105 -0
  74. package/lib/trade/fees/holdingFees/types.d.ts +23 -0
  75. package/lib/trade/fees/holdingFees/types.js +5 -0
  76. package/lib/trade/fees/trading/holdingFees.d.ts +28 -0
  77. package/lib/trade/fees/trading/holdingFees.js +66 -0
  78. package/lib/trade/fees/trading/holdingFeesStructured.d.ts +28 -0
  79. package/lib/trade/fees/trading/holdingFeesStructured.js +66 -0
  80. package/package.json +1 -1
@@ -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",
@@ -497,20 +502,6 @@ const _abi = [
497
502
  type: "function",
498
503
  signature: "0xc4d66de8",
499
504
  },
500
- {
501
- inputs: [
502
- {
503
- internalType: "address",
504
- name: "_govEmergencyTimelock",
505
- type: "address",
506
- },
507
- ],
508
- name: "initializeGovEmergencyTimelock",
509
- outputs: [],
510
- stateMutability: "nonpayable",
511
- type: "function",
512
- signature: "0x52b3aaca",
513
- },
514
505
  {
515
506
  inputs: [
516
507
  {
@@ -1141,31 +1132,6 @@ const _abi = [
1141
1132
  type: "function",
1142
1133
  signature: "0x678b3fb0",
1143
1134
  },
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
1135
  {
1170
1136
  inputs: [],
1171
1137
  name: "getGlobalTradeFeeParams",
@@ -6998,36 +6964,6 @@ const _abi = [
6998
6964
  type: "function",
6999
6965
  signature: "0x78a70ec6",
7000
6966
  },
7001
- {
7002
- inputs: [
7003
- {
7004
- internalType: "address",
7005
- name: "_trader",
7006
- type: "address",
7007
- },
7008
- {
7009
- internalType: "uint32",
7010
- name: "_index",
7011
- type: "uint32",
7012
- },
7013
- {
7014
- internalType: "enum ITradingStorage.PendingOrderType",
7015
- name: "_orderType",
7016
- type: "uint8",
7017
- },
7018
- ],
7019
- name: "getLookbackFromBlock",
7020
- outputs: [
7021
- {
7022
- internalType: "uint32",
7023
- name: "",
7024
- type: "uint32",
7025
- },
7026
- ],
7027
- stateMutability: "view",
7028
- type: "function",
7029
- signature: "0x2b7d6e9d",
7030
- },
7031
6967
  {
7032
6968
  inputs: [
7033
6969
  {
@@ -8695,102 +8631,6 @@ const _abi = [
8695
8631
  type: "function",
8696
8632
  signature: "0xb78f4b36",
8697
8633
  },
8698
- {
8699
- inputs: [
8700
- {
8701
- components: [
8702
- {
8703
- internalType: "address",
8704
- name: "user",
8705
- type: "address",
8706
- },
8707
- {
8708
- internalType: "uint32",
8709
- name: "index",
8710
- type: "uint32",
8711
- },
8712
- {
8713
- internalType: "uint16",
8714
- name: "pairIndex",
8715
- type: "uint16",
8716
- },
8717
- {
8718
- internalType: "uint24",
8719
- name: "leverage",
8720
- type: "uint24",
8721
- },
8722
- {
8723
- internalType: "bool",
8724
- name: "long",
8725
- type: "bool",
8726
- },
8727
- {
8728
- internalType: "bool",
8729
- name: "isOpen",
8730
- type: "bool",
8731
- },
8732
- {
8733
- internalType: "uint8",
8734
- name: "collateralIndex",
8735
- type: "uint8",
8736
- },
8737
- {
8738
- internalType: "enum ITradingStorage.TradeType",
8739
- name: "tradeType",
8740
- type: "uint8",
8741
- },
8742
- {
8743
- internalType: "uint120",
8744
- name: "collateralAmount",
8745
- type: "uint120",
8746
- },
8747
- {
8748
- internalType: "uint64",
8749
- name: "openPrice",
8750
- type: "uint64",
8751
- },
8752
- {
8753
- internalType: "uint64",
8754
- name: "tp",
8755
- type: "uint64",
8756
- },
8757
- {
8758
- internalType: "uint64",
8759
- name: "sl",
8760
- type: "uint64",
8761
- },
8762
- {
8763
- internalType: "bool",
8764
- name: "isCounterTrade",
8765
- type: "bool",
8766
- },
8767
- {
8768
- internalType: "uint160",
8769
- name: "positionSizeToken",
8770
- type: "uint160",
8771
- },
8772
- {
8773
- internalType: "uint24",
8774
- name: "__placeholder",
8775
- type: "uint24",
8776
- },
8777
- ],
8778
- internalType: "struct ITradingStorage.Trade",
8779
- name: "_trade",
8780
- type: "tuple",
8781
- },
8782
- {
8783
- internalType: "enum ITradingStorage.PendingOrderType",
8784
- name: "_orderType",
8785
- type: "uint8",
8786
- },
8787
- ],
8788
- name: "validateOpenTradeOrder",
8789
- outputs: [],
8790
- stateMutability: "pure",
8791
- type: "function",
8792
- signature: "0x63f58b1a",
8793
- },
8794
8634
  {
8795
8635
  inputs: [],
8796
8636
  name: "NoPendingTriggerRewards",
@@ -9071,11 +8911,6 @@ const _abi = [
9071
8911
  name: "WaitTimeout",
9072
8912
  type: "error",
9073
8913
  },
9074
- {
9075
- inputs: [],
9076
- name: "WrongFromBlock",
9077
- type: "error",
9078
- },
9079
8914
  {
9080
8915
  inputs: [],
9081
8916
  name: "WrongLeverage",
@@ -9772,7 +9607,7 @@ const _abi = [
9772
9607
  },
9773
9608
  {
9774
9609
  internalType: "int256",
9775
- name: "partialNetPnlCollateral",
9610
+ name: "existingNetPnlCollateral",
9776
9611
  type: "int256",
9777
9612
  },
9778
9613
  {
@@ -10715,89 +10550,6 @@ const _abi = [
10715
10550
  type: "function",
10716
10551
  signature: "0xeb9359aa",
10717
10552
  },
10718
- {
10719
- inputs: [
10720
- {
10721
- internalType: "uint256",
10722
- name: "_packed",
10723
- type: "uint256",
10724
- },
10725
- {
10726
- components: [
10727
- {
10728
- internalType: "uint8",
10729
- name: "signerId",
10730
- type: "uint8",
10731
- },
10732
- {
10733
- internalType: "uint32",
10734
- name: "expiryTs",
10735
- type: "uint32",
10736
- },
10737
- {
10738
- internalType: "bool",
10739
- name: "isLookback",
10740
- type: "bool",
10741
- },
10742
- {
10743
- internalType: "uint32",
10744
- name: "fromBlock",
10745
- type: "uint32",
10746
- },
10747
- {
10748
- internalType: "bytes",
10749
- name: "signature",
10750
- type: "bytes",
10751
- },
10752
- {
10753
- internalType: "uint16[]",
10754
- name: "pairIndices",
10755
- type: "uint16[]",
10756
- },
10757
- {
10758
- components: [
10759
- {
10760
- internalType: "uint56",
10761
- name: "open",
10762
- type: "uint56",
10763
- },
10764
- {
10765
- internalType: "uint56",
10766
- name: "high",
10767
- type: "uint56",
10768
- },
10769
- {
10770
- internalType: "uint56",
10771
- name: "low",
10772
- type: "uint56",
10773
- },
10774
- {
10775
- internalType: "uint56",
10776
- name: "current",
10777
- type: "uint56",
10778
- },
10779
- {
10780
- internalType: "uint32",
10781
- name: "ts",
10782
- type: "uint32",
10783
- },
10784
- ],
10785
- internalType: "struct IPriceAggregator.OrderAnswer[]",
10786
- name: "prices",
10787
- type: "tuple[]",
10788
- },
10789
- ],
10790
- internalType: "struct IPriceAggregator.SignedPairPrices[]",
10791
- name: "_signedPairPrices",
10792
- type: "tuple[]",
10793
- },
10794
- ],
10795
- name: "triggerOrderWithSignatures",
10796
- outputs: [],
10797
- stateMutability: "nonpayable",
10798
- type: "function",
10799
- signature: "0xc7e2b2a9",
10800
- },
10801
10553
  {
10802
10554
  inputs: [
10803
10555
  {
@@ -12275,305 +12027,15 @@ const _abi = [
12275
12027
  name: "_a",
12276
12028
  type: "tuple",
12277
12029
  },
12278
- {
12279
- components: [
12280
- {
12281
- internalType: "address",
12282
- name: "user",
12283
- type: "address",
12284
- },
12285
- {
12286
- internalType: "uint32",
12287
- name: "index",
12288
- type: "uint32",
12289
- },
12290
- {
12291
- internalType: "uint16",
12292
- name: "pairIndex",
12293
- type: "uint16",
12294
- },
12295
- {
12296
- internalType: "uint24",
12297
- name: "leverage",
12298
- type: "uint24",
12299
- },
12300
- {
12301
- internalType: "bool",
12302
- name: "long",
12303
- type: "bool",
12304
- },
12305
- {
12306
- internalType: "bool",
12307
- name: "isOpen",
12308
- type: "bool",
12309
- },
12310
- {
12311
- internalType: "uint8",
12312
- name: "collateralIndex",
12313
- type: "uint8",
12314
- },
12315
- {
12316
- internalType: "enum ITradingStorage.TradeType",
12317
- name: "tradeType",
12318
- type: "uint8",
12319
- },
12320
- {
12321
- internalType: "uint120",
12322
- name: "collateralAmount",
12323
- type: "uint120",
12324
- },
12325
- {
12326
- internalType: "uint64",
12327
- name: "openPrice",
12328
- type: "uint64",
12329
- },
12330
- {
12331
- internalType: "uint64",
12332
- name: "tp",
12333
- type: "uint64",
12334
- },
12335
- {
12336
- internalType: "uint64",
12337
- name: "sl",
12338
- type: "uint64",
12339
- },
12340
- {
12341
- internalType: "bool",
12342
- name: "isCounterTrade",
12343
- type: "bool",
12344
- },
12345
- {
12346
- internalType: "uint160",
12347
- name: "positionSizeToken",
12348
- type: "uint160",
12349
- },
12350
- {
12351
- internalType: "uint24",
12352
- name: "__placeholder",
12353
- type: "uint24",
12354
- },
12355
- ],
12356
- internalType: "struct ITradingStorage.Trade",
12357
- name: "_trade",
12358
- type: "tuple",
12359
- },
12360
- {
12361
- internalType: "enum ITradingStorage.PendingOrderType",
12362
- name: "_orderType",
12363
- type: "uint8",
12364
- },
12365
- {
12366
- internalType: "address",
12367
- name: "_initiator",
12368
- type: "address",
12369
- },
12370
- ],
12371
- name: "executeTriggerCloseOrderCallbackDirect",
12372
- outputs: [],
12373
- stateMutability: "nonpayable",
12374
- type: "function",
12375
- signature: "0x33575269",
12376
- },
12377
- {
12378
- inputs: [
12379
- {
12380
- components: [
12381
- {
12382
- components: [
12383
- {
12384
- internalType: "address",
12385
- name: "user",
12386
- type: "address",
12387
- },
12388
- {
12389
- internalType: "uint32",
12390
- name: "index",
12391
- type: "uint32",
12392
- },
12393
- ],
12394
- internalType: "struct ITradingStorage.Id",
12395
- name: "orderId",
12396
- type: "tuple",
12397
- },
12398
- {
12399
- internalType: "uint64",
12400
- name: "open",
12401
- type: "uint64",
12402
- },
12403
- {
12404
- internalType: "uint64",
12405
- name: "high",
12406
- type: "uint64",
12407
- },
12408
- {
12409
- internalType: "uint64",
12410
- name: "low",
12411
- type: "uint64",
12412
- },
12413
- {
12414
- internalType: "uint64",
12415
- name: "current",
12416
- type: "uint64",
12417
- },
12418
- ],
12419
- internalType: "struct ITradingCallbacks.AggregatorAnswer",
12420
- name: "_a",
12421
- type: "tuple",
12422
- },
12423
- ],
12424
- name: "executeTriggerOpenOrderCallback",
12425
- outputs: [],
12426
- stateMutability: "nonpayable",
12427
- type: "function",
12428
- signature: "0x5578478f",
12429
- },
12430
- {
12431
- inputs: [
12432
- {
12433
- components: [
12434
- {
12435
- components: [
12436
- {
12437
- internalType: "address",
12438
- name: "user",
12439
- type: "address",
12440
- },
12441
- {
12442
- internalType: "uint32",
12443
- name: "index",
12444
- type: "uint32",
12445
- },
12446
- ],
12447
- internalType: "struct ITradingStorage.Id",
12448
- name: "orderId",
12449
- type: "tuple",
12450
- },
12451
- {
12452
- internalType: "uint64",
12453
- name: "open",
12454
- type: "uint64",
12455
- },
12456
- {
12457
- internalType: "uint64",
12458
- name: "high",
12459
- type: "uint64",
12460
- },
12461
- {
12462
- internalType: "uint64",
12463
- name: "low",
12464
- type: "uint64",
12465
- },
12466
- {
12467
- internalType: "uint64",
12468
- name: "current",
12469
- type: "uint64",
12470
- },
12471
- ],
12472
- internalType: "struct ITradingCallbacks.AggregatorAnswer",
12473
- name: "_a",
12474
- type: "tuple",
12475
- },
12476
- {
12477
- components: [
12478
- {
12479
- internalType: "address",
12480
- name: "user",
12481
- type: "address",
12482
- },
12483
- {
12484
- internalType: "uint32",
12485
- name: "index",
12486
- type: "uint32",
12487
- },
12488
- {
12489
- internalType: "uint16",
12490
- name: "pairIndex",
12491
- type: "uint16",
12492
- },
12493
- {
12494
- internalType: "uint24",
12495
- name: "leverage",
12496
- type: "uint24",
12497
- },
12498
- {
12499
- internalType: "bool",
12500
- name: "long",
12501
- type: "bool",
12502
- },
12503
- {
12504
- internalType: "bool",
12505
- name: "isOpen",
12506
- type: "bool",
12507
- },
12508
- {
12509
- internalType: "uint8",
12510
- name: "collateralIndex",
12511
- type: "uint8",
12512
- },
12513
- {
12514
- internalType: "enum ITradingStorage.TradeType",
12515
- name: "tradeType",
12516
- type: "uint8",
12517
- },
12518
- {
12519
- internalType: "uint120",
12520
- name: "collateralAmount",
12521
- type: "uint120",
12522
- },
12523
- {
12524
- internalType: "uint64",
12525
- name: "openPrice",
12526
- type: "uint64",
12527
- },
12528
- {
12529
- internalType: "uint64",
12530
- name: "tp",
12531
- type: "uint64",
12532
- },
12533
- {
12534
- internalType: "uint64",
12535
- name: "sl",
12536
- type: "uint64",
12537
- },
12538
- {
12539
- internalType: "bool",
12540
- name: "isCounterTrade",
12541
- type: "bool",
12542
- },
12543
- {
12544
- internalType: "uint160",
12545
- name: "positionSizeToken",
12546
- type: "uint160",
12547
- },
12548
- {
12549
- internalType: "uint24",
12550
- name: "__placeholder",
12551
- type: "uint24",
12552
- },
12553
- ],
12554
- internalType: "struct ITradingStorage.Trade",
12555
- name: "_trade",
12556
- type: "tuple",
12557
- },
12558
- {
12559
- internalType: "enum ITradingStorage.PendingOrderType",
12560
- name: "_orderType",
12561
- type: "uint8",
12562
- },
12563
- {
12564
- internalType: "address",
12565
- name: "_initiator",
12566
- type: "address",
12567
- },
12568
- ],
12569
- name: "executeTriggerOpenOrderCallbackDirect",
12570
- outputs: [],
12571
- stateMutability: "nonpayable",
12572
- type: "function",
12573
- signature: "0x9d7ef759",
12574
- },
12575
- {
12576
- inputs: [
12030
+ ],
12031
+ name: "executeTriggerOpenOrderCallback",
12032
+ outputs: [],
12033
+ stateMutability: "nonpayable",
12034
+ type: "function",
12035
+ signature: "0x5578478f",
12036
+ },
12037
+ {
12038
+ inputs: [
12577
12039
  {
12578
12040
  internalType: "uint8",
12579
12041
  name: "_collateralIndex",
@@ -14883,6 +14345,11 @@ const _abi = [
14883
14345
  name: "leverage",
14884
14346
  type: "uint256",
14885
14347
  },
14348
+ {
14349
+ internalType: "uint256",
14350
+ name: "openPrice",
14351
+ type: "uint256",
14352
+ },
14886
14353
  {
14887
14354
  internalType: "uint256",
14888
14355
  name: "currentPairPrice",
@@ -14904,7 +14371,7 @@ const _abi = [
14904
14371
  ],
14905
14372
  stateMutability: "view",
14906
14373
  type: "function",
14907
- signature: "0x19e31460",
14374
+ signature: "0x2f020075",
14908
14375
  },
14909
14376
  {
14910
14377
  inputs: [
@@ -15100,6 +14567,45 @@ const _abi = [
15100
14567
  type: "function",
15101
14568
  signature: "0x1a733ea0",
15102
14569
  },
14570
+ {
14571
+ inputs: [
14572
+ {
14573
+ internalType: "uint8",
14574
+ name: "_collateralIndex",
14575
+ type: "uint8",
14576
+ },
14577
+ {
14578
+ internalType: "address",
14579
+ name: "_trader",
14580
+ type: "address",
14581
+ },
14582
+ {
14583
+ internalType: "uint16",
14584
+ name: "_pairIndex",
14585
+ type: "uint16",
14586
+ },
14587
+ {
14588
+ internalType: "uint32",
14589
+ name: "_index",
14590
+ type: "uint32",
14591
+ },
14592
+ {
14593
+ internalType: "bool",
14594
+ name: "_long",
14595
+ type: "bool",
14596
+ },
14597
+ {
14598
+ internalType: "uint256",
14599
+ name: "_currentPairPrice",
14600
+ type: "uint256",
14601
+ },
14602
+ ],
14603
+ name: "resetTradeBorrowingFees",
14604
+ outputs: [],
14605
+ stateMutability: "nonpayable",
14606
+ type: "function",
14607
+ signature: "0x2e47dc6a",
14608
+ },
15103
14609
  {
15104
14610
  inputs: [
15105
14611
  {
@@ -15283,81 +14789,12 @@ const _abi = [
15283
14789
  name: "_value",
15284
14790
  type: "tuple",
15285
14791
  },
15286
- {
15287
- components: [
15288
- {
15289
- internalType: "uint8",
15290
- name: "signerId",
15291
- type: "uint8",
15292
- },
15293
- {
15294
- internalType: "uint32",
15295
- name: "expiryTs",
15296
- type: "uint32",
15297
- },
15298
- {
15299
- internalType: "bool",
15300
- name: "isLookback",
15301
- type: "bool",
15302
- },
15303
- {
15304
- internalType: "uint32",
15305
- name: "fromBlock",
15306
- type: "uint32",
15307
- },
15308
- {
15309
- internalType: "bytes",
15310
- name: "signature",
15311
- type: "bytes",
15312
- },
15313
- {
15314
- internalType: "uint16[]",
15315
- name: "pairIndices",
15316
- type: "uint16[]",
15317
- },
15318
- {
15319
- components: [
15320
- {
15321
- internalType: "uint56",
15322
- name: "open",
15323
- type: "uint56",
15324
- },
15325
- {
15326
- internalType: "uint56",
15327
- name: "high",
15328
- type: "uint56",
15329
- },
15330
- {
15331
- internalType: "uint56",
15332
- name: "low",
15333
- type: "uint56",
15334
- },
15335
- {
15336
- internalType: "uint56",
15337
- name: "current",
15338
- type: "uint56",
15339
- },
15340
- {
15341
- internalType: "uint32",
15342
- name: "ts",
15343
- type: "uint32",
15344
- },
15345
- ],
15346
- internalType: "struct IPriceAggregator.OrderAnswer[]",
15347
- name: "prices",
15348
- type: "tuple[]",
15349
- },
15350
- ],
15351
- internalType: "struct IPriceAggregator.SignedPairPrices[]",
15352
- name: "_signedPairPrices",
15353
- type: "tuple[]",
15354
- },
15355
14792
  ],
15356
14793
  name: "setBorrowingPairParams",
15357
14794
  outputs: [],
15358
14795
  stateMutability: "nonpayable",
15359
14796
  type: "function",
15360
- signature: "0x3f85355a",
14797
+ signature: "0x33b516cf",
15361
14798
  },
15362
14799
  {
15363
14800
  inputs: [
@@ -15398,81 +14835,12 @@ const _abi = [
15398
14835
  name: "_values",
15399
14836
  type: "tuple[]",
15400
14837
  },
15401
- {
15402
- components: [
15403
- {
15404
- internalType: "uint8",
15405
- name: "signerId",
15406
- type: "uint8",
15407
- },
15408
- {
15409
- internalType: "uint32",
15410
- name: "expiryTs",
15411
- type: "uint32",
15412
- },
15413
- {
15414
- internalType: "bool",
15415
- name: "isLookback",
15416
- type: "bool",
15417
- },
15418
- {
15419
- internalType: "uint32",
15420
- name: "fromBlock",
15421
- type: "uint32",
15422
- },
15423
- {
15424
- internalType: "bytes",
15425
- name: "signature",
15426
- type: "bytes",
15427
- },
15428
- {
15429
- internalType: "uint16[]",
15430
- name: "pairIndices",
15431
- type: "uint16[]",
15432
- },
15433
- {
15434
- components: [
15435
- {
15436
- internalType: "uint56",
15437
- name: "open",
15438
- type: "uint56",
15439
- },
15440
- {
15441
- internalType: "uint56",
15442
- name: "high",
15443
- type: "uint56",
15444
- },
15445
- {
15446
- internalType: "uint56",
15447
- name: "low",
15448
- type: "uint56",
15449
- },
15450
- {
15451
- internalType: "uint56",
15452
- name: "current",
15453
- type: "uint56",
15454
- },
15455
- {
15456
- internalType: "uint32",
15457
- name: "ts",
15458
- type: "uint32",
15459
- },
15460
- ],
15461
- internalType: "struct IPriceAggregator.OrderAnswer[]",
15462
- name: "prices",
15463
- type: "tuple[]",
15464
- },
15465
- ],
15466
- internalType: "struct IPriceAggregator.SignedPairPrices[]",
15467
- name: "_signedPairPrices",
15468
- type: "tuple[]",
15469
- },
15470
14838
  ],
15471
14839
  name: "setBorrowingPairParamsArray",
15472
14840
  outputs: [],
15473
14841
  stateMutability: "nonpayable",
15474
14842
  type: "function",
15475
- signature: "0xd4b813f2",
14843
+ signature: "0xeb1802f8",
15476
14844
  },
15477
14845
  {
15478
14846
  inputs: [
@@ -15539,38 +14907,13 @@ const _abi = [
15539
14907
  type: "bool",
15540
14908
  },
15541
14909
  ],
15542
- stateMutability: "view",
15543
- type: "function",
15544
- signature: "0x801c7961",
15545
- },
15546
- {
15547
- inputs: [],
15548
- name: "DuplicateOrUnsortedPairIndices",
15549
- type: "error",
15550
- },
15551
- {
15552
- inputs: [],
15553
- name: "ExpiryTooFar",
15554
- type: "error",
15555
- },
15556
- {
15557
- inputs: [],
15558
- name: "FromBlockMismatch",
15559
- type: "error",
15560
- },
15561
- {
15562
- inputs: [],
15563
- name: "InvalidCandle",
15564
- type: "error",
15565
- },
15566
- {
15567
- inputs: [],
15568
- name: "InvalidCurrentPrice",
15569
- type: "error",
14910
+ stateMutability: "view",
14911
+ type: "function",
14912
+ signature: "0x801c7961",
15570
14913
  },
15571
14914
  {
15572
14915
  inputs: [],
15573
- name: "InvalidExpiryTimestamp",
14916
+ name: "InvalidCandle",
15574
14917
  type: "error",
15575
14918
  },
15576
14919
  {
@@ -15578,41 +14921,11 @@ const _abi = [
15578
14921
  name: "InvalidPoolType",
15579
14922
  type: "error",
15580
14923
  },
15581
- {
15582
- inputs: [],
15583
- name: "InvalidSignature",
15584
- type: "error",
15585
- },
15586
- {
15587
- inputs: [],
15588
- name: "LookbackMismatch",
15589
- type: "error",
15590
- },
15591
- {
15592
- inputs: [],
15593
- name: "MinAnswersNotReached",
15594
- type: "error",
15595
- },
15596
14924
  {
15597
14925
  inputs: [],
15598
14926
  name: "OracleAlreadyListed",
15599
14927
  type: "error",
15600
14928
  },
15601
- {
15602
- inputs: [],
15603
- name: "PairAndCurrentPriceLengthMismatch",
15604
- type: "error",
15605
- },
15606
- {
15607
- inputs: [],
15608
- name: "PairIndexMismatchBetweenSigners",
15609
- type: "error",
15610
- },
15611
- {
15612
- inputs: [],
15613
- name: "PairLengthMismatchBetweenSigners",
15614
- type: "error",
15615
- },
15616
14929
  {
15617
14930
  inputs: [],
15618
14931
  name: "RequestAlreadyPending",
@@ -15633,16 +14946,6 @@ const _abi = [
15633
14946
  name: "WrongCollateralUsdDecimals",
15634
14947
  type: "error",
15635
14948
  },
15636
- {
15637
- inputs: [],
15638
- name: "WrongSignaturesCount",
15639
- type: "error",
15640
- },
15641
- {
15642
- inputs: [],
15643
- name: "WrongSignerIdOrder",
15644
- type: "error",
15645
- },
15646
14949
  {
15647
14950
  anonymous: false,
15648
14951
  inputs: [
@@ -15928,6 +15231,20 @@ const _abi = [
15928
15231
  type: "event",
15929
15232
  signature: "0x36f00e7308d970ca7446a252b7a1dd9c9cb50ea4559b602e595fc53967ac9dd9",
15930
15233
  },
15234
+ {
15235
+ anonymous: false,
15236
+ inputs: [
15237
+ {
15238
+ indexed: false,
15239
+ internalType: "bytes32",
15240
+ name: "jobId",
15241
+ type: "bytes32",
15242
+ },
15243
+ ],
15244
+ name: "ParamUpdateJobIdUpdated",
15245
+ type: "event",
15246
+ signature: "0x47b440e213065ce71d2660828d52a17e40915af406469be6b9af861a9465427b",
15247
+ },
15931
15248
  {
15932
15249
  anonymous: false,
15933
15250
  inputs: [
@@ -16244,104 +15561,6 @@ const _abi = [
16244
15561
  type: "event",
16245
15562
  signature: "0xb388bf2f3f0bb2fde6ffeb60ae5f6ade4679631a026ce552771baebbb0ddb682",
16246
15563
  },
16247
- {
16248
- anonymous: false,
16249
- inputs: [
16250
- {
16251
- indexed: true,
16252
- internalType: "uint16",
16253
- name: "pairIndex",
16254
- type: "uint16",
16255
- },
16256
- {
16257
- indexed: false,
16258
- internalType: "bool",
16259
- name: "isLookback",
16260
- type: "bool",
16261
- },
16262
- {
16263
- indexed: false,
16264
- internalType: "uint32",
16265
- name: "fromBlock",
16266
- type: "uint32",
16267
- },
16268
- {
16269
- indexed: false,
16270
- internalType: "bool",
16271
- name: "minFilteredAnswersReached",
16272
- type: "bool",
16273
- },
16274
- {
16275
- components: [
16276
- {
16277
- internalType: "uint56",
16278
- name: "open",
16279
- type: "uint56",
16280
- },
16281
- {
16282
- internalType: "uint56",
16283
- name: "high",
16284
- type: "uint56",
16285
- },
16286
- {
16287
- internalType: "uint56",
16288
- name: "low",
16289
- type: "uint56",
16290
- },
16291
- {
16292
- internalType: "uint56",
16293
- name: "current",
16294
- type: "uint56",
16295
- },
16296
- {
16297
- internalType: "uint32",
16298
- name: "ts",
16299
- type: "uint32",
16300
- },
16301
- ],
16302
- indexed: false,
16303
- internalType: "struct IPriceAggregator.OrderAnswer[]",
16304
- name: "unfilteredAnswers",
16305
- type: "tuple[]",
16306
- },
16307
- {
16308
- components: [
16309
- {
16310
- internalType: "uint56",
16311
- name: "open",
16312
- type: "uint56",
16313
- },
16314
- {
16315
- internalType: "uint56",
16316
- name: "high",
16317
- type: "uint56",
16318
- },
16319
- {
16320
- internalType: "uint56",
16321
- name: "low",
16322
- type: "uint56",
16323
- },
16324
- {
16325
- internalType: "uint56",
16326
- name: "current",
16327
- type: "uint56",
16328
- },
16329
- {
16330
- internalType: "uint32",
16331
- name: "ts",
16332
- type: "uint32",
16333
- },
16334
- ],
16335
- indexed: false,
16336
- internalType: "struct IPriceAggregator.OrderAnswer[]",
16337
- name: "filteredAnswers",
16338
- type: "tuple[]",
16339
- },
16340
- ],
16341
- name: "SignedPricesReceived",
16342
- type: "event",
16343
- signature: "0x86de8981b0d1c326788b6cf0a05a146dad3a99f57d2df4af213f32de34ce8bf4",
16344
- },
16345
15564
  {
16346
15565
  anonymous: false,
16347
15566
  inputs: [
@@ -16437,14 +15656,6 @@ const _abi = [
16437
15656
  type: "function",
16438
15657
  signature: "0x6f37d263",
16439
15658
  },
16440
- {
16441
- inputs: [],
16442
- name: "cleanUpSignedPairPrices",
16443
- outputs: [],
16444
- stateMutability: "nonpayable",
16445
- type: "function",
16446
- signature: "0x1c302ec1",
16447
- },
16448
15659
  {
16449
15660
  inputs: [
16450
15661
  {
@@ -16820,122 +16031,30 @@ const _abi = [
16820
16031
  {
16821
16032
  inputs: [],
16822
16033
  name: "getOracles",
16823
- outputs: [
16824
- {
16825
- internalType: "address[]",
16826
- name: "",
16827
- type: "address[]",
16828
- },
16829
- ],
16830
- stateMutability: "view",
16831
- type: "function",
16832
- signature: "0x40884c52",
16833
- },
16834
- {
16835
- inputs: [
16836
- {
16837
- internalType: "uint16",
16838
- name: "_pairIndex",
16839
- type: "uint16",
16840
- },
16841
- ],
16842
- name: "getPairSignedMedianTemporary",
16843
- outputs: [
16844
- {
16845
- components: [
16846
- {
16847
- components: [
16848
- {
16849
- internalType: "address",
16850
- name: "user",
16851
- type: "address",
16852
- },
16853
- {
16854
- internalType: "uint32",
16855
- name: "index",
16856
- type: "uint32",
16857
- },
16858
- ],
16859
- internalType: "struct ITradingStorage.Id",
16860
- name: "orderId",
16861
- type: "tuple",
16862
- },
16863
- {
16864
- internalType: "uint64",
16865
- name: "open",
16866
- type: "uint64",
16867
- },
16868
- {
16869
- internalType: "uint64",
16870
- name: "high",
16871
- type: "uint64",
16872
- },
16873
- {
16874
- internalType: "uint64",
16875
- name: "low",
16876
- type: "uint64",
16877
- },
16878
- {
16879
- internalType: "uint64",
16880
- name: "current",
16881
- type: "uint64",
16882
- },
16883
- ],
16884
- internalType: "struct ITradingCallbacks.AggregatorAnswer",
16885
- name: "",
16886
- type: "tuple",
16887
- },
16888
- ],
16889
- stateMutability: "view",
16890
- type: "function",
16891
- signature: "0xed5becb6",
16892
- },
16893
- {
16894
- inputs: [
16895
- {
16896
- internalType: "uint16",
16897
- name: "_pairIndex",
16898
- type: "uint16",
16899
- },
16900
- ],
16901
- name: "getPairSignedOrderAnswersTemporary",
16902
- outputs: [
16903
- {
16904
- components: [
16905
- {
16906
- internalType: "uint56",
16907
- name: "open",
16908
- type: "uint56",
16909
- },
16910
- {
16911
- internalType: "uint56",
16912
- name: "high",
16913
- type: "uint56",
16914
- },
16915
- {
16916
- internalType: "uint56",
16917
- name: "low",
16918
- type: "uint56",
16919
- },
16920
- {
16921
- internalType: "uint56",
16922
- name: "current",
16923
- type: "uint56",
16924
- },
16925
- {
16926
- internalType: "uint32",
16927
- name: "ts",
16928
- type: "uint32",
16929
- },
16930
- ],
16931
- internalType: "struct IPriceAggregator.OrderAnswer[]",
16034
+ outputs: [
16035
+ {
16036
+ internalType: "address[]",
16932
16037
  name: "",
16933
- type: "tuple[]",
16038
+ type: "address[]",
16039
+ },
16040
+ ],
16041
+ stateMutability: "view",
16042
+ type: "function",
16043
+ signature: "0x40884c52",
16044
+ },
16045
+ {
16046
+ inputs: [],
16047
+ name: "getParamUpdateJobId",
16048
+ outputs: [
16049
+ {
16050
+ internalType: "bytes32",
16051
+ name: "",
16052
+ type: "bytes32",
16934
16053
  },
16935
16054
  ],
16936
16055
  stateMutability: "view",
16937
16056
  type: "function",
16938
- signature: "0x4ed0ed84",
16057
+ signature: "0xc4296c90",
16939
16058
  },
16940
16059
  {
16941
16060
  inputs: [
@@ -17260,20 +16379,6 @@ const _abi = [
17260
16379
  type: "function",
17261
16380
  signature: "0x3fad1834",
17262
16381
  },
17263
- {
17264
- inputs: [],
17265
- name: "getSignedPairIndicesTemporary",
17266
- outputs: [
17267
- {
17268
- internalType: "uint16[]",
17269
- name: "",
17270
- type: "uint16[]",
17271
- },
17272
- ],
17273
- stateMutability: "view",
17274
- type: "function",
17275
- signature: "0x988fcc05",
17276
- },
17277
16382
  {
17278
16383
  inputs: [],
17279
16384
  name: "getTwapInterval",
@@ -17346,6 +16451,20 @@ const _abi = [
17346
16451
  type: "function",
17347
16452
  signature: "0x94db9ef7",
17348
16453
  },
16454
+ {
16455
+ inputs: [
16456
+ {
16457
+ internalType: "bytes32",
16458
+ name: "_jobId",
16459
+ type: "bytes32",
16460
+ },
16461
+ ],
16462
+ name: "initializeParamUpdateJobId",
16463
+ outputs: [],
16464
+ stateMutability: "nonpayable",
16465
+ type: "function",
16466
+ signature: "0x299e40a4",
16467
+ },
17349
16468
  {
17350
16469
  inputs: [
17351
16470
  {
@@ -17515,6 +16634,20 @@ const _abi = [
17515
16634
  type: "function",
17516
16635
  signature: "0xaa564b10",
17517
16636
  },
16637
+ {
16638
+ inputs: [
16639
+ {
16640
+ internalType: "bytes32",
16641
+ name: "_jobId",
16642
+ type: "bytes32",
16643
+ },
16644
+ ],
16645
+ name: "setParamUpdateJobId",
16646
+ outputs: [],
16647
+ stateMutability: "nonpayable",
16648
+ type: "function",
16649
+ signature: "0x989f7ceb",
16650
+ },
17518
16651
  {
17519
16652
  inputs: [
17520
16653
  {
@@ -17607,89 +16740,6 @@ const _abi = [
17607
16740
  type: "function",
17608
16741
  signature: "0xb166a495",
17609
16742
  },
17610
- {
17611
- inputs: [
17612
- {
17613
- components: [
17614
- {
17615
- internalType: "uint8",
17616
- name: "signerId",
17617
- type: "uint8",
17618
- },
17619
- {
17620
- internalType: "uint32",
17621
- name: "expiryTs",
17622
- type: "uint32",
17623
- },
17624
- {
17625
- internalType: "bool",
17626
- name: "isLookback",
17627
- type: "bool",
17628
- },
17629
- {
17630
- internalType: "uint32",
17631
- name: "fromBlock",
17632
- type: "uint32",
17633
- },
17634
- {
17635
- internalType: "bytes",
17636
- name: "signature",
17637
- type: "bytes",
17638
- },
17639
- {
17640
- internalType: "uint16[]",
17641
- name: "pairIndices",
17642
- type: "uint16[]",
17643
- },
17644
- {
17645
- components: [
17646
- {
17647
- internalType: "uint56",
17648
- name: "open",
17649
- type: "uint56",
17650
- },
17651
- {
17652
- internalType: "uint56",
17653
- name: "high",
17654
- type: "uint56",
17655
- },
17656
- {
17657
- internalType: "uint56",
17658
- name: "low",
17659
- type: "uint56",
17660
- },
17661
- {
17662
- internalType: "uint56",
17663
- name: "current",
17664
- type: "uint56",
17665
- },
17666
- {
17667
- internalType: "uint32",
17668
- name: "ts",
17669
- type: "uint32",
17670
- },
17671
- ],
17672
- internalType: "struct IPriceAggregator.OrderAnswer[]",
17673
- name: "prices",
17674
- type: "tuple[]",
17675
- },
17676
- ],
17677
- internalType: "struct IPriceAggregator.SignedPairPrices[]",
17678
- name: "_signedPairPrices",
17679
- type: "tuple[]",
17680
- },
17681
- {
17682
- internalType: "bool",
17683
- name: "_isLookback",
17684
- type: "bool",
17685
- },
17686
- ],
17687
- name: "validateSignedPairPrices",
17688
- outputs: [],
17689
- stateMutability: "nonpayable",
17690
- type: "function",
17691
- signature: "0x73b0d136",
17692
- },
17693
16743
  {
17694
16744
  inputs: [],
17695
16745
  name: "InvalidShareSum",
@@ -19756,36 +18806,53 @@ const _abi = [
19756
18806
  {
19757
18807
  components: [
19758
18808
  {
19759
- internalType: "uint8",
19760
- name: "collateralIndex",
19761
- type: "uint8",
18809
+ components: [
18810
+ {
18811
+ internalType: "address",
18812
+ name: "user",
18813
+ type: "address",
18814
+ },
18815
+ {
18816
+ internalType: "uint32",
18817
+ name: "index",
18818
+ type: "uint32",
18819
+ },
18820
+ ],
18821
+ internalType: "struct ITradingStorage.Id",
18822
+ name: "orderId",
18823
+ type: "tuple",
19762
18824
  },
19763
18825
  {
19764
- internalType: "uint16",
19765
- name: "pairIndex",
19766
- type: "uint16",
18826
+ internalType: "uint64",
18827
+ name: "open",
18828
+ type: "uint64",
19767
18829
  },
19768
18830
  {
19769
- internalType: "enum IFundingFees.ParamUpdateType",
19770
- name: "updateType",
19771
- type: "uint8",
18831
+ internalType: "uint64",
18832
+ name: "high",
18833
+ type: "uint64",
19772
18834
  },
19773
18835
  {
19774
- internalType: "uint224",
19775
- name: "newValue",
19776
- type: "uint224",
18836
+ internalType: "uint64",
18837
+ name: "low",
18838
+ type: "uint64",
18839
+ },
18840
+ {
18841
+ internalType: "uint64",
18842
+ name: "current",
18843
+ type: "uint64",
19777
18844
  },
19778
18845
  ],
19779
- internalType: "struct IFundingFees.PendingParamUpdate",
19780
- name: "_paramUpdate",
18846
+ internalType: "struct ITradingCallbacks.AggregatorAnswer",
18847
+ name: "_answer",
19781
18848
  type: "tuple",
19782
18849
  },
19783
18850
  ],
19784
- name: "paramUpdateCallbackWithSignedPrices",
18851
+ name: "pendingParamUpdateCallback",
19785
18852
  outputs: [],
19786
18853
  stateMutability: "nonpayable",
19787
18854
  type: "function",
19788
- signature: "0x002c68df",
18855
+ signature: "0x5246b961",
19789
18856
  },
19790
18857
  {
19791
18858
  inputs: [
@@ -19873,95 +18940,31 @@ const _abi = [
19873
18940
  {
19874
18941
  inputs: [
19875
18942
  {
19876
- internalType: "uint8[]",
18943
+ internalType: "uint8",
19877
18944
  name: "_collateralIndex",
19878
- type: "uint8[]",
18945
+ type: "uint8",
19879
18946
  },
19880
18947
  {
19881
- internalType: "uint16[]",
18948
+ internalType: "uint16",
19882
18949
  name: "_pairIndex",
19883
- type: "uint16[]",
18950
+ type: "uint16",
19884
18951
  },
19885
18952
  {
19886
- internalType: "uint24[]",
19887
- name: "_absoluteRatePerSecondCap",
19888
- type: "uint24[]",
18953
+ internalType: "enum IFundingFees.ParamUpdateType",
18954
+ name: "_updateType",
18955
+ type: "uint8",
19889
18956
  },
19890
18957
  {
19891
- components: [
19892
- {
19893
- internalType: "uint8",
19894
- name: "signerId",
19895
- type: "uint8",
19896
- },
19897
- {
19898
- internalType: "uint32",
19899
- name: "expiryTs",
19900
- type: "uint32",
19901
- },
19902
- {
19903
- internalType: "bool",
19904
- name: "isLookback",
19905
- type: "bool",
19906
- },
19907
- {
19908
- internalType: "uint32",
19909
- name: "fromBlock",
19910
- type: "uint32",
19911
- },
19912
- {
19913
- internalType: "bytes",
19914
- name: "signature",
19915
- type: "bytes",
19916
- },
19917
- {
19918
- internalType: "uint16[]",
19919
- name: "pairIndices",
19920
- type: "uint16[]",
19921
- },
19922
- {
19923
- components: [
19924
- {
19925
- internalType: "uint56",
19926
- name: "open",
19927
- type: "uint56",
19928
- },
19929
- {
19930
- internalType: "uint56",
19931
- name: "high",
19932
- type: "uint56",
19933
- },
19934
- {
19935
- internalType: "uint56",
19936
- name: "low",
19937
- type: "uint56",
19938
- },
19939
- {
19940
- internalType: "uint56",
19941
- name: "current",
19942
- type: "uint56",
19943
- },
19944
- {
19945
- internalType: "uint32",
19946
- name: "ts",
19947
- type: "uint32",
19948
- },
19949
- ],
19950
- internalType: "struct IPriceAggregator.OrderAnswer[]",
19951
- name: "prices",
19952
- type: "tuple[]",
19953
- },
19954
- ],
19955
- internalType: "struct IPriceAggregator.SignedPairPrices[]",
19956
- name: "_signedPairPrices",
19957
- type: "tuple[]",
18958
+ internalType: "uint224",
18959
+ name: "_newValue",
18960
+ type: "uint224",
19958
18961
  },
19959
18962
  ],
19960
- name: "setAbsoluteRatePerSecondCap",
18963
+ name: "requestParamUpdate",
19961
18964
  outputs: [],
19962
18965
  stateMutability: "nonpayable",
19963
18966
  type: "function",
19964
- signature: "0x48b5a760",
18967
+ signature: "0x41f84f2b",
19965
18968
  },
19966
18969
  {
19967
18970
  inputs: [
@@ -19977,84 +18980,39 @@ const _abi = [
19977
18980
  },
19978
18981
  {
19979
18982
  internalType: "uint24[]",
19980
- name: "_absoluteVelocityPerYearCap",
18983
+ name: "_absoluteRatePerSecondCap",
19981
18984
  type: "uint24[]",
19982
18985
  },
19983
- {
19984
- components: [
19985
- {
19986
- internalType: "uint8",
19987
- name: "signerId",
19988
- type: "uint8",
19989
- },
19990
- {
19991
- internalType: "uint32",
19992
- name: "expiryTs",
19993
- type: "uint32",
19994
- },
19995
- {
19996
- internalType: "bool",
19997
- name: "isLookback",
19998
- type: "bool",
19999
- },
20000
- {
20001
- internalType: "uint32",
20002
- name: "fromBlock",
20003
- type: "uint32",
20004
- },
20005
- {
20006
- internalType: "bytes",
20007
- name: "signature",
20008
- type: "bytes",
20009
- },
20010
- {
20011
- internalType: "uint16[]",
20012
- name: "pairIndices",
20013
- type: "uint16[]",
20014
- },
20015
- {
20016
- components: [
20017
- {
20018
- internalType: "uint56",
20019
- name: "open",
20020
- type: "uint56",
20021
- },
20022
- {
20023
- internalType: "uint56",
20024
- name: "high",
20025
- type: "uint56",
20026
- },
20027
- {
20028
- internalType: "uint56",
20029
- name: "low",
20030
- type: "uint56",
20031
- },
20032
- {
20033
- internalType: "uint56",
20034
- name: "current",
20035
- type: "uint56",
20036
- },
20037
- {
20038
- internalType: "uint32",
20039
- name: "ts",
20040
- type: "uint32",
20041
- },
20042
- ],
20043
- internalType: "struct IPriceAggregator.OrderAnswer[]",
20044
- name: "prices",
20045
- type: "tuple[]",
20046
- },
20047
- ],
20048
- internalType: "struct IPriceAggregator.SignedPairPrices[]",
20049
- name: "_signedPairPrices",
20050
- type: "tuple[]",
18986
+ ],
18987
+ name: "setAbsoluteRatePerSecondCap",
18988
+ outputs: [],
18989
+ stateMutability: "nonpayable",
18990
+ type: "function",
18991
+ signature: "0x1cff93a8",
18992
+ },
18993
+ {
18994
+ inputs: [
18995
+ {
18996
+ internalType: "uint8[]",
18997
+ name: "_collateralIndex",
18998
+ type: "uint8[]",
18999
+ },
19000
+ {
19001
+ internalType: "uint16[]",
19002
+ name: "_pairIndex",
19003
+ type: "uint16[]",
19004
+ },
19005
+ {
19006
+ internalType: "uint24[]",
19007
+ name: "_absoluteVelocityPerYearCap",
19008
+ type: "uint24[]",
20051
19009
  },
20052
19010
  ],
20053
19011
  name: "setAbsoluteVelocityPerYearCap",
20054
19012
  outputs: [],
20055
19013
  stateMutability: "nonpayable",
20056
19014
  type: "function",
20057
- signature: "0xfacfee17",
19015
+ signature: "0x96ebeace",
20058
19016
  },
20059
19017
  {
20060
19018
  inputs: [
@@ -20073,81 +19031,12 @@ const _abi = [
20073
19031
  name: "_aprMultiplierEnabled",
20074
19032
  type: "bool[]",
20075
19033
  },
20076
- {
20077
- components: [
20078
- {
20079
- internalType: "uint8",
20080
- name: "signerId",
20081
- type: "uint8",
20082
- },
20083
- {
20084
- internalType: "uint32",
20085
- name: "expiryTs",
20086
- type: "uint32",
20087
- },
20088
- {
20089
- internalType: "bool",
20090
- name: "isLookback",
20091
- type: "bool",
20092
- },
20093
- {
20094
- internalType: "uint32",
20095
- name: "fromBlock",
20096
- type: "uint32",
20097
- },
20098
- {
20099
- internalType: "bytes",
20100
- name: "signature",
20101
- type: "bytes",
20102
- },
20103
- {
20104
- internalType: "uint16[]",
20105
- name: "pairIndices",
20106
- type: "uint16[]",
20107
- },
20108
- {
20109
- components: [
20110
- {
20111
- internalType: "uint56",
20112
- name: "open",
20113
- type: "uint56",
20114
- },
20115
- {
20116
- internalType: "uint56",
20117
- name: "high",
20118
- type: "uint56",
20119
- },
20120
- {
20121
- internalType: "uint56",
20122
- name: "low",
20123
- type: "uint56",
20124
- },
20125
- {
20126
- internalType: "uint56",
20127
- name: "current",
20128
- type: "uint56",
20129
- },
20130
- {
20131
- internalType: "uint32",
20132
- name: "ts",
20133
- type: "uint32",
20134
- },
20135
- ],
20136
- internalType: "struct IPriceAggregator.OrderAnswer[]",
20137
- name: "prices",
20138
- type: "tuple[]",
20139
- },
20140
- ],
20141
- internalType: "struct IPriceAggregator.SignedPairPrices[]",
20142
- name: "_signedPairPrices",
20143
- type: "tuple[]",
20144
- },
20145
19034
  ],
20146
19035
  name: "setAprMultiplierEnabled",
20147
19036
  outputs: [],
20148
19037
  stateMutability: "nonpayable",
20149
19038
  type: "function",
20150
- signature: "0x6d00c93e",
19039
+ signature: "0xe8cf0b70",
20151
19040
  },
20152
19041
  {
20153
19042
  inputs: [
@@ -20166,81 +19055,12 @@ const _abi = [
20166
19055
  name: "_borrowingRatePerSecondP",
20167
19056
  type: "uint24[]",
20168
19057
  },
20169
- {
20170
- components: [
20171
- {
20172
- internalType: "uint8",
20173
- name: "signerId",
20174
- type: "uint8",
20175
- },
20176
- {
20177
- internalType: "uint32",
20178
- name: "expiryTs",
20179
- type: "uint32",
20180
- },
20181
- {
20182
- internalType: "bool",
20183
- name: "isLookback",
20184
- type: "bool",
20185
- },
20186
- {
20187
- internalType: "uint32",
20188
- name: "fromBlock",
20189
- type: "uint32",
20190
- },
20191
- {
20192
- internalType: "bytes",
20193
- name: "signature",
20194
- type: "bytes",
20195
- },
20196
- {
20197
- internalType: "uint16[]",
20198
- name: "pairIndices",
20199
- type: "uint16[]",
20200
- },
20201
- {
20202
- components: [
20203
- {
20204
- internalType: "uint56",
20205
- name: "open",
20206
- type: "uint56",
20207
- },
20208
- {
20209
- internalType: "uint56",
20210
- name: "high",
20211
- type: "uint56",
20212
- },
20213
- {
20214
- internalType: "uint56",
20215
- name: "low",
20216
- type: "uint56",
20217
- },
20218
- {
20219
- internalType: "uint56",
20220
- name: "current",
20221
- type: "uint56",
20222
- },
20223
- {
20224
- internalType: "uint32",
20225
- name: "ts",
20226
- type: "uint32",
20227
- },
20228
- ],
20229
- internalType: "struct IPriceAggregator.OrderAnswer[]",
20230
- name: "prices",
20231
- type: "tuple[]",
20232
- },
20233
- ],
20234
- internalType: "struct IPriceAggregator.SignedPairPrices[]",
20235
- name: "_signedPairPrices",
20236
- type: "tuple[]",
20237
- },
20238
19058
  ],
20239
19059
  name: "setBorrowingRatePerSecondP",
20240
19060
  outputs: [],
20241
19061
  stateMutability: "nonpayable",
20242
19062
  type: "function",
20243
- signature: "0x559f5276",
19063
+ signature: "0xdbb69ab4",
20244
19064
  },
20245
19065
  {
20246
19066
  inputs: [
@@ -20259,81 +19079,12 @@ const _abi = [
20259
19079
  name: "_fundingFeesEnabled",
20260
19080
  type: "bool[]",
20261
19081
  },
20262
- {
20263
- components: [
20264
- {
20265
- internalType: "uint8",
20266
- name: "signerId",
20267
- type: "uint8",
20268
- },
20269
- {
20270
- internalType: "uint32",
20271
- name: "expiryTs",
20272
- type: "uint32",
20273
- },
20274
- {
20275
- internalType: "bool",
20276
- name: "isLookback",
20277
- type: "bool",
20278
- },
20279
- {
20280
- internalType: "uint32",
20281
- name: "fromBlock",
20282
- type: "uint32",
20283
- },
20284
- {
20285
- internalType: "bytes",
20286
- name: "signature",
20287
- type: "bytes",
20288
- },
20289
- {
20290
- internalType: "uint16[]",
20291
- name: "pairIndices",
20292
- type: "uint16[]",
20293
- },
20294
- {
20295
- components: [
20296
- {
20297
- internalType: "uint56",
20298
- name: "open",
20299
- type: "uint56",
20300
- },
20301
- {
20302
- internalType: "uint56",
20303
- name: "high",
20304
- type: "uint56",
20305
- },
20306
- {
20307
- internalType: "uint56",
20308
- name: "low",
20309
- type: "uint56",
20310
- },
20311
- {
20312
- internalType: "uint56",
20313
- name: "current",
20314
- type: "uint56",
20315
- },
20316
- {
20317
- internalType: "uint32",
20318
- name: "ts",
20319
- type: "uint32",
20320
- },
20321
- ],
20322
- internalType: "struct IPriceAggregator.OrderAnswer[]",
20323
- name: "prices",
20324
- type: "tuple[]",
20325
- },
20326
- ],
20327
- internalType: "struct IPriceAggregator.SignedPairPrices[]",
20328
- name: "_signedPairPrices",
20329
- type: "tuple[]",
20330
- },
20331
19082
  ],
20332
19083
  name: "setFundingFeesEnabled",
20333
19084
  outputs: [],
20334
19085
  stateMutability: "nonpayable",
20335
19086
  type: "function",
20336
- signature: "0x2fe09970",
19087
+ signature: "0x7b4ee84d",
20337
19088
  },
20338
19089
  {
20339
19090
  inputs: [
@@ -20376,81 +19127,12 @@ const _abi = [
20376
19127
  name: "_skewCoefficientPerYear",
20377
19128
  type: "uint112[]",
20378
19129
  },
20379
- {
20380
- components: [
20381
- {
20382
- internalType: "uint8",
20383
- name: "signerId",
20384
- type: "uint8",
20385
- },
20386
- {
20387
- internalType: "uint32",
20388
- name: "expiryTs",
20389
- type: "uint32",
20390
- },
20391
- {
20392
- internalType: "bool",
20393
- name: "isLookback",
20394
- type: "bool",
20395
- },
20396
- {
20397
- internalType: "uint32",
20398
- name: "fromBlock",
20399
- type: "uint32",
20400
- },
20401
- {
20402
- internalType: "bytes",
20403
- name: "signature",
20404
- type: "bytes",
20405
- },
20406
- {
20407
- internalType: "uint16[]",
20408
- name: "pairIndices",
20409
- type: "uint16[]",
20410
- },
20411
- {
20412
- components: [
20413
- {
20414
- internalType: "uint56",
20415
- name: "open",
20416
- type: "uint56",
20417
- },
20418
- {
20419
- internalType: "uint56",
20420
- name: "high",
20421
- type: "uint56",
20422
- },
20423
- {
20424
- internalType: "uint56",
20425
- name: "low",
20426
- type: "uint56",
20427
- },
20428
- {
20429
- internalType: "uint56",
20430
- name: "current",
20431
- type: "uint56",
20432
- },
20433
- {
20434
- internalType: "uint32",
20435
- name: "ts",
20436
- type: "uint32",
20437
- },
20438
- ],
20439
- internalType: "struct IPriceAggregator.OrderAnswer[]",
20440
- name: "prices",
20441
- type: "tuple[]",
20442
- },
20443
- ],
20444
- internalType: "struct IPriceAggregator.SignedPairPrices[]",
20445
- name: "_signedPairPrices",
20446
- type: "tuple[]",
20447
- },
20448
19130
  ],
20449
19131
  name: "setSkewCoefficientPerYear",
20450
19132
  outputs: [],
20451
19133
  stateMutability: "nonpayable",
20452
19134
  type: "function",
20453
- signature: "0xaeaca82a",
19135
+ signature: "0xb6fa94a3",
20454
19136
  },
20455
19137
  {
20456
19138
  inputs: [
@@ -20469,81 +19151,12 @@ const _abi = [
20469
19151
  name: "_thetaThresholdUsd",
20470
19152
  type: "uint32[]",
20471
19153
  },
20472
- {
20473
- components: [
20474
- {
20475
- internalType: "uint8",
20476
- name: "signerId",
20477
- type: "uint8",
20478
- },
20479
- {
20480
- internalType: "uint32",
20481
- name: "expiryTs",
20482
- type: "uint32",
20483
- },
20484
- {
20485
- internalType: "bool",
20486
- name: "isLookback",
20487
- type: "bool",
20488
- },
20489
- {
20490
- internalType: "uint32",
20491
- name: "fromBlock",
20492
- type: "uint32",
20493
- },
20494
- {
20495
- internalType: "bytes",
20496
- name: "signature",
20497
- type: "bytes",
20498
- },
20499
- {
20500
- internalType: "uint16[]",
20501
- name: "pairIndices",
20502
- type: "uint16[]",
20503
- },
20504
- {
20505
- components: [
20506
- {
20507
- internalType: "uint56",
20508
- name: "open",
20509
- type: "uint56",
20510
- },
20511
- {
20512
- internalType: "uint56",
20513
- name: "high",
20514
- type: "uint56",
20515
- },
20516
- {
20517
- internalType: "uint56",
20518
- name: "low",
20519
- type: "uint56",
20520
- },
20521
- {
20522
- internalType: "uint56",
20523
- name: "current",
20524
- type: "uint56",
20525
- },
20526
- {
20527
- internalType: "uint32",
20528
- name: "ts",
20529
- type: "uint32",
20530
- },
20531
- ],
20532
- internalType: "struct IPriceAggregator.OrderAnswer[]",
20533
- name: "prices",
20534
- type: "tuple[]",
20535
- },
20536
- ],
20537
- internalType: "struct IPriceAggregator.SignedPairPrices[]",
20538
- name: "_signedPairPrices",
20539
- type: "tuple[]",
20540
- },
20541
19154
  ],
20542
19155
  name: "setThetaThresholdUsd",
20543
19156
  outputs: [],
20544
19157
  stateMutability: "nonpayable",
20545
19158
  type: "function",
20546
- signature: "0x6916451e",
19159
+ signature: "0x3adcbe28",
20547
19160
  },
20548
19161
  {
20549
19162
  inputs: [
@@ -20680,30 +19293,6 @@ const _abi = [
20680
19293
  type: "function",
20681
19294
  signature: "0x2e4f2b16",
20682
19295
  },
20683
- {
20684
- inputs: [
20685
- {
20686
- internalType: "address",
20687
- name: "_trader",
20688
- type: "address",
20689
- },
20690
- {
20691
- internalType: "uint32",
20692
- name: "_index",
20693
- type: "uint32",
20694
- },
20695
- {
20696
- internalType: "uint256",
20697
- name: "_deltaCollateral",
20698
- type: "uint256",
20699
- },
20700
- ],
20701
- name: "storeUiRealizedTradingFeesCollateral",
20702
- outputs: [],
20703
- stateMutability: "nonpayable",
20704
- type: "function",
20705
- signature: "0x24f84e39",
20706
- },
20707
19296
  {
20708
19297
  inputs: [
20709
19298
  {