@pendle/sdk-boros 0.4.1-mm → 0.4.2

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 (95) hide show
  1. package/dist/backend/secrettune/BorosCoreSDK.d.ts +1 -1
  2. package/dist/backend/secrettune/BorosCoreSDK.js +2 -2
  3. package/dist/backend/secrettune/BorosCoreSDK.js.map +1 -1
  4. package/dist/backend/secrettune/BorosSendTxsBotSDK.js +1 -1
  5. package/dist/backend/secrettune/BorosSendTxsBotSDK.js.map +1 -1
  6. package/dist/common/cacheDecorators.d.ts +19 -0
  7. package/dist/common/cacheDecorators.js +112 -0
  8. package/dist/common/cacheDecorators.js.map +1 -0
  9. package/dist/common/time.d.ts +19 -0
  10. package/dist/common/time.js +102 -0
  11. package/dist/common/time.js.map +1 -0
  12. package/dist/common/types.d.ts +155 -0
  13. package/dist/common/types.js +16 -0
  14. package/dist/common/types.js.map +1 -0
  15. package/dist/constants.d.ts +1 -0
  16. package/dist/constants.js +2 -1
  17. package/dist/constants.js.map +1 -1
  18. package/dist/contracts/abis/distributorAbi.js.map +1 -0
  19. package/dist/contracts/abis/multiTokenMerkleDistributorAbi.js.map +1 -0
  20. package/dist/contracts/{viemAbis.d.ts → abis/viemAbis.d.ts} +410 -366
  21. package/dist/contracts/{viemAbis.js → abis/viemAbis.js} +281 -248
  22. package/dist/contracts/abis/viemAbis.js.map +1 -0
  23. package/dist/contracts/amm.d.ts +600 -0
  24. package/dist/contracts/amm.js +36 -0
  25. package/dist/contracts/amm.js.map +1 -0
  26. package/dist/contracts/base-contract-helper.d.ts +15 -0
  27. package/dist/contracts/base-contract-helper.js +36 -0
  28. package/dist/contracts/base-contract-helper.js.map +1 -0
  29. package/dist/contracts/consts.d.ts +1 -0
  30. package/dist/contracts/consts.js +5 -0
  31. package/dist/contracts/consts.js.map +1 -0
  32. package/dist/contracts/contracts.factory.d.ts +25 -0
  33. package/dist/contracts/contracts.factory.js +73 -0
  34. package/dist/contracts/contracts.factory.js.map +1 -0
  35. package/dist/contracts/explorer.d.ts +582 -0
  36. package/dist/contracts/explorer.js +53 -0
  37. package/dist/contracts/explorer.js.map +1 -0
  38. package/dist/contracts/index.d.ts +3 -3
  39. package/dist/contracts/index.js +3 -3
  40. package/dist/contracts/index.js.map +1 -1
  41. package/dist/contracts/market.d.ts +1700 -0
  42. package/dist/contracts/market.js +85 -0
  43. package/dist/contracts/market.js.map +1 -0
  44. package/dist/entities/accManager/accManager.js +1 -1
  45. package/dist/entities/accManager/accManager.js.map +1 -1
  46. package/dist/entities/agent/agent.js +1 -1
  47. package/dist/entities/agent/agent.js.map +1 -1
  48. package/dist/entities/exchange/exchange.d.ts +3423 -287
  49. package/dist/entities/exchange/exchange.js +277 -15
  50. package/dist/entities/exchange/exchange.js.map +1 -1
  51. package/dist/entities/exchange/types.d.ts +32 -3
  52. package/dist/entities/exchange/utils.d.ts +40 -24
  53. package/dist/entities/exchange/utils.js +2 -2
  54. package/dist/entities/exchange/utils.js.map +1 -1
  55. package/dist/entities/marketHub.d.ts +1 -1
  56. package/dist/entities/marketHub.js +1 -1
  57. package/dist/entities/marketHub.js.map +1 -1
  58. package/dist/entities/multiTokenMerkleDistributor/constants.d.ts +1 -0
  59. package/dist/entities/multiTokenMerkleDistributor/constants.js +2 -1
  60. package/dist/entities/multiTokenMerkleDistributor/constants.js.map +1 -1
  61. package/dist/entities/multiTokenMerkleDistributor/index.d.ts +1 -0
  62. package/dist/entities/multiTokenMerkleDistributor/index.js +1 -0
  63. package/dist/entities/multiTokenMerkleDistributor/index.js.map +1 -1
  64. package/dist/entities/multiTokenMerkleDistributor/lpRewardsDistributor.d.ts +13 -0
  65. package/dist/entities/multiTokenMerkleDistributor/lpRewardsDistributor.js +25 -0
  66. package/dist/entities/multiTokenMerkleDistributor/lpRewardsDistributor.js.map +1 -0
  67. package/dist/entities/multiTokenMerkleDistributor/multiTokenMerkleDistributorContract.js +1 -1
  68. package/dist/entities/multiTokenMerkleDistributor/multiTokenMerkleDistributorContract.js.map +1 -1
  69. package/dist/entities/publicClient.js +1 -1
  70. package/dist/entities/publicClient.js.map +1 -1
  71. package/dist/multicall/constants.d.ts +27 -0
  72. package/dist/multicall/constants.js +31 -0
  73. package/dist/multicall/constants.js.map +1 -0
  74. package/dist/multicall/helpers.d.ts +9 -0
  75. package/dist/multicall/helpers.js +40 -0
  76. package/dist/multicall/helpers.js.map +1 -0
  77. package/dist/multicall/multicall.d.ts +71 -0
  78. package/dist/multicall/multicall.js +250 -0
  79. package/dist/multicall/multicall.js.map +1 -0
  80. package/dist/types/encoders.d.ts +6 -0
  81. package/dist/types/encoders.js +8 -1
  82. package/dist/types/encoders.js.map +1 -1
  83. package/dist/utils/signing/agent.d.ts +18 -3
  84. package/dist/utils/signing/agent.js +39 -15
  85. package/dist/utils/signing/agent.js.map +1 -1
  86. package/dist/utils/signing/common.js +10 -1
  87. package/dist/utils/signing/common.js.map +1 -1
  88. package/package.json +2 -1
  89. package/dist/contracts/distributorAbi.js.map +0 -1
  90. package/dist/contracts/multiTokenMerkleDistributorAbi.js.map +0 -1
  91. package/dist/contracts/viemAbis.js.map +0 -1
  92. /package/dist/contracts/{distributorAbi.d.ts → abis/distributorAbi.d.ts} +0 -0
  93. /package/dist/contracts/{distributorAbi.js → abis/distributorAbi.js} +0 -0
  94. /package/dist/contracts/{multiTokenMerkleDistributorAbi.d.ts → abis/multiTokenMerkleDistributorAbi.d.ts} +0 -0
  95. /package/dist/contracts/{multiTokenMerkleDistributorAbi.js → abis/multiTokenMerkleDistributorAbi.js} +0 -0
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.iPVeTokenAbi = exports.iMultiTokenMerkleDistributorAbi = exports.iBotMiscFacetAbi = exports.iZoneResponderAbi = exports.iMarkRatePusherAbi = exports.iWithdrawalPoliceFacetAbi = exports.iPauserFacetAbi = exports.iOrderCancellerFacetAbi = exports.iLiquidationExecutorFacetAbi = exports.iDeleveragerFacetAbi = exports.iCLOSetterFacetAbi = exports.iBOROS20Abi = exports.iAMMAbi = exports.iFIndexOracleAbi = exports.iAuthModuleAbi = exports.iTradeModuleAbi = exports.iMarkRateOracleAbi = exports.iExplorerAbi = exports.iMulticall3Abi = exports.iMarketOffViewOnlyAbi = exports.iMarketEntryAbi = exports.iMarketRiskManagementAbi = exports.iMarketSettingAbi = exports.iMarketAllTypesAbi = exports.iMarketOrderAndOtcAbi = exports.iMarketOffAbi = exports.iMarketAbi = exports.iMarketAllEventsAndTypesAbi = exports.iRouterAbi = exports.iMarketFactoryAbi = exports.iMarketHubStorageOnlyAbi = exports.iMarketHubSetAndViewAbi = exports.iMarketHubAllEventsAndTypesAbi = exports.iMarketHubAbi = exports.iMarketHubRiskManagementAbi = exports.iMarketHubEntryOnlyAbi = exports.iAMMFactoryAbi = exports.iArbitrageExecutorFacetAbi = void 0;
4
- exports.iArbitrageExecutorFacetAbi = [
3
+ exports.iPVeTokenAbi = exports.iMultiTokenMerkleDistributorAbi = exports.iZoneResponderAbi = exports.iWithdrawalPoliceAbi = exports.iPauserAbi = exports.iOrderCancellerAbi = exports.iLiquidationExecutorAbi = exports.iDeleveragerAbi = exports.iCLOSetterAbi = exports.iBOROS20Abi = exports.iAMMAbi = exports.iFIndexOracleAbi = exports.iAuthModuleAbi = exports.iTradeModuleAbi = exports.iMarkRateOracleAbi = exports.iExplorerAbi = exports.iMulticall3Abi = exports.iMarketOffViewOnlyAbi = exports.iMarketEntryAbi = exports.iMarketRiskManagementAbi = exports.iMarketSettingAbi = exports.iMarketAllTypesAbi = exports.iMarketOrderAndOtcAbi = exports.iMarketOffAbi = exports.iMarketAbi = exports.iMarketAllEventsAndTypesAbi = exports.iRouterAbi = exports.iMarketFactoryAbi = exports.iMarketHubStorageOnlyAbi = exports.iMarketHubSetAndViewAbi = exports.iMarketHubAllEventsAndTypesAbi = exports.iMarketHubAbi = exports.iMarketHubRiskManagementAbi = exports.iMarketHubEntryOnlyAbi = exports.iAMMFactoryAbi = exports.iArbitrageExecutorAbi = void 0;
4
+ exports.iArbitrageExecutorAbi = [
5
+ { inputs: [], name: 'InsufficientProfit', type: 'error' },
5
6
  {
6
7
  anonymous: false,
7
8
  inputs: [
@@ -11,6 +12,30 @@ exports.iArbitrageExecutorFacetAbi = [
11
12
  name: 'ArbitrageExecuted',
12
13
  type: 'event',
13
14
  },
15
+ {
16
+ inputs: [],
17
+ name: 'MARKET_HUB',
18
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
19
+ stateMutability: 'view',
20
+ type: 'function',
21
+ },
22
+ {
23
+ inputs: [],
24
+ name: 'ROUTER',
25
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
26
+ stateMutability: 'view',
27
+ type: 'function',
28
+ },
29
+ {
30
+ inputs: [
31
+ { internalType: 'TokenId', name: 'tokenId', type: 'uint16' },
32
+ { internalType: 'uint256', name: 'amount', type: 'uint256' },
33
+ ],
34
+ name: 'deposit',
35
+ outputs: [],
36
+ stateMutability: 'nonpayable',
37
+ type: 'function',
38
+ },
14
39
  {
15
40
  inputs: [
16
41
  {
@@ -20,7 +45,7 @@ exports.iArbitrageExecutorFacetAbi = [
20
45
  { internalType: 'int256', name: 'minProfit', type: 'int256' },
21
46
  { internalType: 'bool', name: 'maximizeProfit', type: 'bool' },
22
47
  ],
23
- internalType: 'struct IArbitrageExecutorFacet.ArbitrageParams',
48
+ internalType: 'struct IArbitrageExecutor.ArbitrageParams',
24
49
  name: 'params',
25
50
  type: 'tuple',
26
51
  },
@@ -40,6 +65,34 @@ exports.iArbitrageExecutorFacetAbi = [
40
65
  stateMutability: 'view',
41
66
  type: 'function',
42
67
  },
68
+ {
69
+ inputs: [{ internalType: 'MarketId', name: 'marketId', type: 'uint24' }],
70
+ name: 'payMarketEntranceFee',
71
+ outputs: [],
72
+ stateMutability: 'nonpayable',
73
+ type: 'function',
74
+ },
75
+ {
76
+ inputs: [
77
+ { internalType: 'TokenId', name: 'tokenId', type: 'uint16' },
78
+ { internalType: 'uint256', name: 'amount', type: 'uint256' },
79
+ ],
80
+ name: 'requestWithdrawal',
81
+ outputs: [],
82
+ stateMutability: 'nonpayable',
83
+ type: 'function',
84
+ },
85
+ {
86
+ inputs: [
87
+ { internalType: 'TokenId', name: 'tokenId', type: 'uint16' },
88
+ { internalType: 'uint256', name: 'amount', type: 'uint256' },
89
+ { internalType: 'address', name: 'receiver', type: 'address' },
90
+ ],
91
+ name: 'withdraw',
92
+ outputs: [],
93
+ stateMutability: 'nonpayable',
94
+ type: 'function',
95
+ },
43
96
  ];
44
97
  exports.iAMMFactoryAbi = [
45
98
  {
@@ -390,6 +443,16 @@ exports.iMarketHubEntryOnlyAbi = [
390
443
  },
391
444
  ];
392
445
  exports.iMarketHubRiskManagementAbi = [
446
+ {
447
+ inputs: [
448
+ { internalType: 'MarketAcc', name: 'user', type: 'bytes26' },
449
+ { internalType: 'int256', name: 'delta', type: 'int256' },
450
+ ],
451
+ name: 'adjustAccCash',
452
+ outputs: [],
453
+ stateMutability: 'nonpayable',
454
+ type: 'function',
455
+ },
393
456
  {
394
457
  inputs: [
395
458
  { internalType: 'MarketId', name: 'marketId', type: 'uint24' },
@@ -446,6 +509,16 @@ exports.iMarketHubRiskManagementAbi = [
446
509
  stateMutability: 'nonpayable',
447
510
  type: 'function',
448
511
  },
512
+ {
513
+ inputs: [
514
+ { internalType: 'MarketAcc', name: 'user', type: 'bytes26' },
515
+ { internalType: 'int256', name: 'desiredCash', type: 'int256' },
516
+ ],
517
+ name: 'setAccCash',
518
+ outputs: [],
519
+ stateMutability: 'nonpayable',
520
+ type: 'function',
521
+ },
449
522
  ];
450
523
  exports.iMarketHubAbi = [
451
524
  {
@@ -651,6 +724,16 @@ exports.iMarketHubAbi = [
651
724
  stateMutability: 'view',
652
725
  type: 'function',
653
726
  },
727
+ {
728
+ inputs: [
729
+ { internalType: 'MarketAcc', name: 'user', type: 'bytes26' },
730
+ { internalType: 'int256', name: 'delta', type: 'int256' },
731
+ ],
732
+ name: 'adjustAccCash',
733
+ outputs: [],
734
+ stateMutability: 'nonpayable',
735
+ type: 'function',
736
+ },
654
737
  {
655
738
  inputs: [
656
739
  { internalType: 'MarketAcc', name: 'user', type: 'bytes26' },
@@ -1049,6 +1132,16 @@ exports.iMarketHubAbi = [
1049
1132
  stateMutability: 'view',
1050
1133
  type: 'function',
1051
1134
  },
1135
+ {
1136
+ inputs: [
1137
+ { internalType: 'MarketAcc', name: 'user', type: 'bytes26' },
1138
+ { internalType: 'int256', name: 'desiredCash', type: 'int256' },
1139
+ ],
1140
+ name: 'setAccCash',
1141
+ outputs: [],
1142
+ stateMutability: 'nonpayable',
1143
+ type: 'function',
1144
+ },
1052
1145
  {
1053
1146
  inputs: [{ internalType: 'int128', name: 'newCritHR', type: 'int128' }],
1054
1147
  name: 'setCritHR',
@@ -2385,6 +2478,23 @@ exports.iRouterAbi = [
2385
2478
  stateMutability: 'nonpayable',
2386
2479
  type: 'function',
2387
2480
  },
2481
+ {
2482
+ inputs: [
2483
+ {
2484
+ components: [
2485
+ { internalType: 'Account', name: 'account', type: 'bytes21' },
2486
+ { internalType: 'bytes', name: 'data', type: 'bytes' },
2487
+ ],
2488
+ internalType: 'struct IMiscModule.ManipulateData[]',
2489
+ name: 'calls',
2490
+ type: 'tuple[]',
2491
+ },
2492
+ ],
2493
+ name: 'batchManipulate',
2494
+ outputs: [],
2495
+ stateMutability: 'nonpayable',
2496
+ type: 'function',
2497
+ },
2388
2498
  {
2389
2499
  inputs: [
2390
2500
  {
@@ -2627,7 +2737,7 @@ exports.iRouterAbi = [
2627
2737
  { internalType: 'uint256', name: 'size', type: 'uint256' },
2628
2738
  { internalType: 'int16', name: 'tick', type: 'int16' },
2629
2739
  ],
2630
- internalType: 'struct IRouterEventsAndTypes.OrderReq',
2740
+ internalType: 'struct IRouterEventsAndTypes.Order',
2631
2741
  name: 'order',
2632
2742
  type: 'tuple',
2633
2743
  },
@@ -3742,6 +3852,13 @@ exports.iMarketAbi = [
3742
3852
  stateMutability: 'nonpayable',
3743
3853
  type: 'function',
3744
3854
  },
3855
+ {
3856
+ inputs: [{ internalType: 'MarketAcc', name: 'user', type: 'bytes26' }],
3857
+ name: 'resetDelevLiqNonce',
3858
+ outputs: [],
3859
+ stateMutability: 'nonpayable',
3860
+ type: 'function',
3861
+ },
3745
3862
  {
3746
3863
  inputs: [
3747
3864
  { internalType: 'uint64', name: 'newTakerFee', type: 'uint64' },
@@ -4237,7 +4354,7 @@ exports.iMarketOffAbi = [
4237
4354
  { internalType: 'uint256', name: 'size', type: 'uint256' },
4238
4355
  { internalType: 'int256', name: 'rate', type: 'int256' },
4239
4356
  ],
4240
- internalType: 'struct IMarketAllTypes.Order[]',
4357
+ internalType: 'struct IMarketOffViewOnly.Order[]',
4241
4358
  name: '',
4242
4359
  type: 'tuple[]',
4243
4360
  },
@@ -4407,7 +4524,7 @@ exports.iMarketOffAbi = [
4407
4524
  { internalType: 'uint256', name: 'size', type: 'uint256' },
4408
4525
  { internalType: 'int256', name: 'rate', type: 'int256' },
4409
4526
  ],
4410
- internalType: 'struct IMarketAllTypes.Order',
4527
+ internalType: 'struct IMarketOffViewOnly.Order',
4411
4528
  name: 'order',
4412
4529
  type: 'tuple',
4413
4530
  },
@@ -4619,6 +4736,13 @@ exports.iMarketOffAbi = [
4619
4736
  stateMutability: 'nonpayable',
4620
4737
  type: 'function',
4621
4738
  },
4739
+ {
4740
+ inputs: [{ internalType: 'MarketAcc', name: 'user', type: 'bytes26' }],
4741
+ name: 'resetDelevLiqNonce',
4742
+ outputs: [],
4743
+ stateMutability: 'nonpayable',
4744
+ type: 'function',
4745
+ },
4622
4746
  {
4623
4747
  inputs: [
4624
4748
  { internalType: 'uint64', name: 'newTakerFee', type: 'uint64' },
@@ -6149,6 +6273,13 @@ exports.iMarketEntryAbi = [
6149
6273
  stateMutability: 'nonpayable',
6150
6274
  type: 'function',
6151
6275
  },
6276
+ {
6277
+ inputs: [{ internalType: 'MarketAcc', name: 'user', type: 'bytes26' }],
6278
+ name: 'resetDelevLiqNonce',
6279
+ outputs: [],
6280
+ stateMutability: 'nonpayable',
6281
+ type: 'function',
6282
+ },
6152
6283
  {
6153
6284
  inputs: [
6154
6285
  { internalType: 'MarketAcc', name: 'user', type: 'bytes26' },
@@ -6440,7 +6571,7 @@ exports.iMarketOffViewOnlyAbi = [
6440
6571
  { internalType: 'uint256', name: 'size', type: 'uint256' },
6441
6572
  { internalType: 'int256', name: 'rate', type: 'int256' },
6442
6573
  ],
6443
- internalType: 'struct IMarketAllTypes.Order[]',
6574
+ internalType: 'struct IMarketOffViewOnly.Order[]',
6444
6575
  name: '',
6445
6576
  type: 'tuple[]',
6446
6577
  },
@@ -6543,7 +6674,7 @@ exports.iMarketOffViewOnlyAbi = [
6543
6674
  { internalType: 'uint256', name: 'size', type: 'uint256' },
6544
6675
  { internalType: 'int256', name: 'rate', type: 'int256' },
6545
6676
  ],
6546
- internalType: 'struct IMarketAllTypes.Order',
6677
+ internalType: 'struct IMarketOffViewOnly.Order',
6547
6678
  name: 'order',
6548
6679
  type: 'tuple',
6549
6680
  },
@@ -6915,7 +7046,7 @@ exports.iExplorerAbi = [
6915
7046
  { internalType: 'uint256', name: 'size', type: 'uint256' },
6916
7047
  { internalType: 'int256', name: 'rate', type: 'int256' },
6917
7048
  ],
6918
- internalType: 'struct IMarketAllTypes.Order[]',
7049
+ internalType: 'struct IMarketOffViewOnly.Order[]',
6919
7050
  name: 'orders',
6920
7051
  type: 'tuple[]',
6921
7052
  },
@@ -6963,7 +7094,7 @@ exports.iExplorerAbi = [
6963
7094
  { internalType: 'uint256', name: 'size', type: 'uint256' },
6964
7095
  { internalType: 'int256', name: 'rate', type: 'int256' },
6965
7096
  ],
6966
- internalType: 'struct IMarketAllTypes.Order[]',
7097
+ internalType: 'struct IMarketOffViewOnly.Order[]',
6967
7098
  name: 'orders',
6968
7099
  type: 'tuple[]',
6969
7100
  },
@@ -6998,7 +7129,7 @@ exports.iExplorerAbi = [
6998
7129
  { internalType: 'uint256', name: 'size', type: 'uint256' },
6999
7130
  { internalType: 'int256', name: 'rate', type: 'int256' },
7000
7131
  ],
7001
- internalType: 'struct IMarketAllTypes.Order[]',
7132
+ internalType: 'struct IMarketOffViewOnly.Order[]',
7002
7133
  name: 'orders',
7003
7134
  type: 'tuple[]',
7004
7135
  },
@@ -7050,7 +7181,7 @@ exports.iExplorerAbi = [
7050
7181
  { internalType: 'uint256', name: 'size', type: 'uint256' },
7051
7182
  { internalType: 'int256', name: 'rate', type: 'int256' },
7052
7183
  ],
7053
- internalType: 'struct IMarketAllTypes.Order[]',
7184
+ internalType: 'struct IMarketOffViewOnly.Order[]',
7054
7185
  name: 'orders',
7055
7186
  type: 'tuple[]',
7056
7187
  },
@@ -7085,7 +7216,7 @@ exports.iExplorerAbi = [
7085
7216
  { internalType: 'uint256', name: 'size', type: 'uint256' },
7086
7217
  { internalType: 'int256', name: 'rate', type: 'int256' },
7087
7218
  ],
7088
- internalType: 'struct IMarketAllTypes.Order[]',
7219
+ internalType: 'struct IMarketOffViewOnly.Order[]',
7089
7220
  name: 'orders',
7090
7221
  type: 'tuple[]',
7091
7222
  },
@@ -7402,7 +7533,7 @@ exports.iTradeModuleAbi = [
7402
7533
  { internalType: 'uint256', name: 'size', type: 'uint256' },
7403
7534
  { internalType: 'int16', name: 'tick', type: 'int16' },
7404
7535
  ],
7405
- internalType: 'struct IRouterEventsAndTypes.OrderReq',
7536
+ internalType: 'struct IRouterEventsAndTypes.Order',
7406
7537
  name: 'order',
7407
7538
  type: 'tuple',
7408
7539
  },
@@ -7912,7 +8043,7 @@ exports.iFIndexOracleAbi = [
7912
8043
  { internalType: 'int112', name: 'floatingIndexDelta', type: 'int112' },
7913
8044
  { internalType: 'uint32', name: 'desiredTimestamp', type: 'uint32' },
7914
8045
  ],
7915
- name: 'updateFloatingIndex',
8046
+ name: 'updateFloatingRate',
7916
8047
  outputs: [],
7917
8048
  stateMutability: 'nonpayable',
7918
8049
  type: 'function',
@@ -8297,7 +8428,7 @@ exports.iBOROS20Abi = [
8297
8428
  type: 'function',
8298
8429
  },
8299
8430
  ];
8300
- exports.iCLOSetterFacetAbi = [
8431
+ exports.iCLOSetterAbi = [
8301
8432
  {
8302
8433
  anonymous: false,
8303
8434
  inputs: [
@@ -8308,7 +8439,7 @@ exports.iCLOSetterFacetAbi = [
8308
8439
  { internalType: 'uint128', name: 'upperThres', type: 'uint128' },
8309
8440
  ],
8310
8441
  indexed: false,
8311
- internalType: 'struct ICLOSetterFacet.CLOThreshold',
8442
+ internalType: 'struct ICLOSetter.CLOThreshold',
8312
8443
  name: 'newThreshold',
8313
8444
  type: 'tuple',
8314
8445
  },
@@ -8316,6 +8447,13 @@ exports.iCLOSetterFacetAbi = [
8316
8447
  name: 'CLOThresholdSet',
8317
8448
  type: 'event',
8318
8449
  },
8450
+ {
8451
+ inputs: [],
8452
+ name: 'MARKET_HUB',
8453
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
8454
+ stateMutability: 'view',
8455
+ type: 'function',
8456
+ },
8319
8457
  {
8320
8458
  inputs: [{ internalType: 'MarketId', name: 'marketId', type: 'uint24' }],
8321
8459
  name: 'getCLOThreshold',
@@ -8325,7 +8463,7 @@ exports.iCLOSetterFacetAbi = [
8325
8463
  { internalType: 'uint128', name: 'lowerThres', type: 'uint128' },
8326
8464
  { internalType: 'uint128', name: 'upperThres', type: 'uint128' },
8327
8465
  ],
8328
- internalType: 'struct ICLOSetterFacet.CLOThreshold',
8466
+ internalType: 'struct ICLOSetter.CLOThreshold',
8329
8467
  name: '',
8330
8468
  type: 'tuple',
8331
8469
  },
@@ -8341,7 +8479,7 @@ exports.iCLOSetterFacetAbi = [
8341
8479
  { internalType: 'uint128', name: 'lowerThres', type: 'uint128' },
8342
8480
  { internalType: 'uint128', name: 'upperThres', type: 'uint128' },
8343
8481
  ],
8344
- internalType: 'struct ICLOSetterFacet.CLOThreshold',
8482
+ internalType: 'struct ICLOSetter.CLOThreshold',
8345
8483
  name: 'newThreshold',
8346
8484
  type: 'tuple',
8347
8485
  },
@@ -8353,19 +8491,33 @@ exports.iCLOSetterFacetAbi = [
8353
8491
  },
8354
8492
  {
8355
8493
  inputs: [{ internalType: 'MarketId', name: 'marketId', type: 'uint24' }],
8356
- name: 'toggleCLO',
8494
+ name: 'turnOffCLO',
8495
+ outputs: [],
8496
+ stateMutability: 'nonpayable',
8497
+ type: 'function',
8498
+ },
8499
+ {
8500
+ inputs: [{ internalType: 'MarketId', name: 'marketId', type: 'uint24' }],
8501
+ name: 'turnOnCLO',
8357
8502
  outputs: [],
8358
8503
  stateMutability: 'nonpayable',
8359
8504
  type: 'function',
8360
8505
  },
8361
8506
  ];
8362
- exports.iDeleveragerFacetAbi = [
8507
+ exports.iDeleveragerAbi = [
8363
8508
  {
8364
8509
  anonymous: false,
8365
8510
  inputs: [{ indexed: false, internalType: 'int256', name: 'newDeleverageThresHR', type: 'int256' }],
8366
8511
  name: 'DeleverageThresHRSet',
8367
8512
  type: 'event',
8368
8513
  },
8514
+ {
8515
+ inputs: [],
8516
+ name: 'MARKET_HUB',
8517
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
8518
+ stateMutability: 'view',
8519
+ type: 'function',
8520
+ },
8369
8521
  {
8370
8522
  inputs: [
8371
8523
  {
@@ -8378,17 +8530,17 @@ exports.iDeleveragerFacetAbi = [
8378
8530
  { internalType: 'MarketAcc[]', name: 'wins', type: 'bytes26[]' },
8379
8531
  { internalType: 'int256[]', name: 'sizesToWin', type: 'int256[]' },
8380
8532
  ],
8381
- internalType: 'struct IDeleveragerFacet.MarketDeleverageInput[]',
8533
+ internalType: 'struct IDeleverager.MarketDeleverageInput[]',
8382
8534
  name: 'inputs',
8383
8535
  type: 'tuple[]',
8384
8536
  },
8385
8537
  ],
8386
- internalType: 'struct IDeleveragerFacet.DeleverageRequest',
8387
- name: 'req',
8388
- type: 'tuple',
8538
+ internalType: 'struct IDeleverager.DeleverageRequest[]',
8539
+ name: 'requests',
8540
+ type: 'tuple[]',
8389
8541
  },
8390
8542
  ],
8391
- name: 'deleverage',
8543
+ name: 'batchDeleverage',
8392
8544
  outputs: [],
8393
8545
  stateMutability: 'nonpayable',
8394
8546
  type: 'function',
@@ -8408,7 +8560,7 @@ exports.iDeleveragerFacetAbi = [
8408
8560
  type: 'function',
8409
8561
  },
8410
8562
  ];
8411
- exports.iLiquidationExecutorFacetAbi = [
8563
+ exports.iLiquidationExecutorAbi = [
8412
8564
  {
8413
8565
  anonymous: false,
8414
8566
  inputs: [
@@ -8418,6 +8570,53 @@ exports.iLiquidationExecutorFacetAbi = [
8418
8570
  name: 'LiquidationExecuted',
8419
8571
  type: 'event',
8420
8572
  },
8573
+ {
8574
+ inputs: [],
8575
+ name: 'MARKET_HUB',
8576
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
8577
+ stateMutability: 'view',
8578
+ type: 'function',
8579
+ },
8580
+ {
8581
+ inputs: [],
8582
+ name: 'ROUTER',
8583
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
8584
+ stateMutability: 'view',
8585
+ type: 'function',
8586
+ },
8587
+ {
8588
+ inputs: [
8589
+ {
8590
+ components: [
8591
+ { internalType: 'MarketId', name: 'marketId', type: 'uint24' },
8592
+ { internalType: 'AMMId', name: 'ammId', type: 'uint24' },
8593
+ { internalType: 'MarketAcc', name: 'violator', type: 'bytes26' },
8594
+ { internalType: 'int256', name: 'maxVioHealthRatio', type: 'int256' },
8595
+ { internalType: 'uint256', name: 'minProfit', type: 'uint256' },
8596
+ ],
8597
+ internalType: 'struct ILiquidationExecutor.LiquidationParams[]',
8598
+ name: 'batch',
8599
+ type: 'tuple[]',
8600
+ },
8601
+ ],
8602
+ name: 'batchLiquidate',
8603
+ outputs: [
8604
+ { internalType: 'bool[]', name: 'success', type: 'bool[]' },
8605
+ { internalType: 'bytes[]', name: 'results', type: 'bytes[]' },
8606
+ ],
8607
+ stateMutability: 'nonpayable',
8608
+ type: 'function',
8609
+ },
8610
+ {
8611
+ inputs: [
8612
+ { internalType: 'TokenId', name: 'tokenId', type: 'uint16' },
8613
+ { internalType: 'uint256', name: 'amount', type: 'uint256' },
8614
+ ],
8615
+ name: 'deposit',
8616
+ outputs: [],
8617
+ stateMutability: 'nonpayable',
8618
+ type: 'function',
8619
+ },
8421
8620
  {
8422
8621
  inputs: [
8423
8622
  {
@@ -8428,7 +8627,7 @@ exports.iLiquidationExecutorFacetAbi = [
8428
8627
  { internalType: 'int256', name: 'maxVioHealthRatio', type: 'int256' },
8429
8628
  { internalType: 'uint256', name: 'minProfit', type: 'uint256' },
8430
8629
  ],
8431
- internalType: 'struct ILiquidationExecutorFacet.LiquidationParams',
8630
+ internalType: 'struct ILiquidationExecutor.LiquidationParams',
8432
8631
  name: 'params',
8433
8632
  type: 'tuple',
8434
8633
  },
@@ -8448,14 +8647,49 @@ exports.iLiquidationExecutorFacetAbi = [
8448
8647
  stateMutability: 'view',
8449
8648
  type: 'function',
8450
8649
  },
8650
+ {
8651
+ inputs: [{ internalType: 'MarketId', name: 'marketId', type: 'uint24' }],
8652
+ name: 'payMarketEntranceFee',
8653
+ outputs: [],
8654
+ stateMutability: 'nonpayable',
8655
+ type: 'function',
8656
+ },
8657
+ {
8658
+ inputs: [
8659
+ { internalType: 'TokenId', name: 'tokenId', type: 'uint16' },
8660
+ { internalType: 'uint256', name: 'amount', type: 'uint256' },
8661
+ ],
8662
+ name: 'requestWithdrawal',
8663
+ outputs: [],
8664
+ stateMutability: 'nonpayable',
8665
+ type: 'function',
8666
+ },
8667
+ {
8668
+ inputs: [
8669
+ { internalType: 'TokenId', name: 'tokenId', type: 'uint16' },
8670
+ { internalType: 'uint256', name: 'amount', type: 'uint256' },
8671
+ { internalType: 'address', name: 'receiver', type: 'address' },
8672
+ ],
8673
+ name: 'withdraw',
8674
+ outputs: [],
8675
+ stateMutability: 'nonpayable',
8676
+ type: 'function',
8677
+ },
8451
8678
  ];
8452
- exports.iOrderCancellerFacetAbi = [
8679
+ exports.iOrderCancellerAbi = [
8453
8680
  {
8454
8681
  anonymous: false,
8455
8682
  inputs: [{ indexed: false, internalType: 'int256', name: 'newCancelThresHR', type: 'int256' }],
8456
8683
  name: 'CancelThresHRSet',
8457
8684
  type: 'event',
8458
8685
  },
8686
+ {
8687
+ inputs: [],
8688
+ name: 'MARKET_HUB',
8689
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
8690
+ stateMutability: 'view',
8691
+ type: 'function',
8692
+ },
8459
8693
  {
8460
8694
  inputs: [],
8461
8695
  name: 'cancelThresHR',
@@ -8474,7 +8708,7 @@ exports.iOrderCancellerFacetAbi = [
8474
8708
  { internalType: 'MarketId', name: 'marketId', type: 'uint24' },
8475
8709
  { internalType: 'OrderId[]', name: 'ids', type: 'uint64[]' },
8476
8710
  ],
8477
- internalType: 'struct IOrderCancellerFacet.HealthJumpProof[]',
8711
+ internalType: 'struct IOrderCanceller.HealthJumpProof[]',
8478
8712
  name: 'proofs',
8479
8713
  type: 'tuple[]',
8480
8714
  },
@@ -8490,7 +8724,7 @@ exports.iOrderCancellerFacetAbi = [
8490
8724
  { internalType: 'MarketId', name: 'marketId', type: 'uint24' },
8491
8725
  { internalType: 'OrderId[]', name: 'ids', type: 'uint64[]' },
8492
8726
  ],
8493
- internalType: 'struct IOrderCancellerFacet.HealthJumpProof[]',
8727
+ internalType: 'struct IOrderCanceller.HealthJumpProof[]',
8494
8728
  name: 'proofs',
8495
8729
  type: 'tuple[]',
8496
8730
  },
@@ -8508,7 +8742,7 @@ exports.iOrderCancellerFacetAbi = [
8508
8742
  type: 'function',
8509
8743
  },
8510
8744
  ];
8511
- exports.iPauserFacetAbi = [
8745
+ exports.iPauserAbi = [
8512
8746
  {
8513
8747
  anonymous: false,
8514
8748
  inputs: [
@@ -8518,6 +8752,13 @@ exports.iPauserFacetAbi = [
8518
8752
  name: 'MinTotalMMSet',
8519
8753
  type: 'event',
8520
8754
  },
8755
+ {
8756
+ inputs: [],
8757
+ name: 'MARKET_HUB',
8758
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
8759
+ stateMutability: 'view',
8760
+ type: 'function',
8761
+ },
8521
8762
  {
8522
8763
  inputs: [{ internalType: 'MarketAcc[]', name: 'users', type: 'bytes26[]' }],
8523
8764
  name: 'findRiskyUsers',
@@ -8560,7 +8801,7 @@ exports.iPauserFacetAbi = [
8560
8801
  type: 'function',
8561
8802
  },
8562
8803
  ];
8563
- exports.iWithdrawalPoliceFacetAbi = [
8804
+ exports.iWithdrawalPoliceAbi = [
8564
8805
  {
8565
8806
  anonymous: false,
8566
8807
  inputs: [{ indexed: false, internalType: 'address', name: 'user', type: 'address' }],
@@ -8582,6 +8823,13 @@ exports.iWithdrawalPoliceFacetAbi = [
8582
8823
  name: 'ResetPersonalCooldown',
8583
8824
  type: 'event',
8584
8825
  },
8826
+ {
8827
+ inputs: [],
8828
+ name: 'MARKET_HUB',
8829
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
8830
+ stateMutability: 'view',
8831
+ type: 'function',
8832
+ },
8585
8833
  {
8586
8834
  inputs: [
8587
8835
  { internalType: 'address', name: 'user', type: 'address' },
@@ -8624,121 +8872,6 @@ exports.iWithdrawalPoliceFacetAbi = [
8624
8872
  type: 'function',
8625
8873
  },
8626
8874
  ];
8627
- exports.iMarkRatePusherAbi = [
8628
- {
8629
- anonymous: false,
8630
- inputs: [{ indexed: false, internalType: 'uint256', name: 'newMaxDelta', type: 'uint256' }],
8631
- name: 'MaxDeltaSet',
8632
- type: 'event',
8633
- },
8634
- {
8635
- inputs: [],
8636
- name: 'MARKET_HUB',
8637
- outputs: [{ internalType: 'address', name: '', type: 'address' }],
8638
- stateMutability: 'view',
8639
- type: 'function',
8640
- },
8641
- {
8642
- inputs: [],
8643
- name: 'ROUTER',
8644
- outputs: [{ internalType: 'address', name: '', type: 'address' }],
8645
- stateMutability: 'view',
8646
- type: 'function',
8647
- },
8648
- {
8649
- inputs: [
8650
- { internalType: 'uint256', name: 'index', type: 'uint256' },
8651
- { internalType: 'MarketId', name: 'marketId', type: 'uint24' },
8652
- { internalType: 'int256', name: 'signedAmount', type: 'int256' },
8653
- ],
8654
- name: 'cashTransfer',
8655
- outputs: [],
8656
- stateMutability: 'nonpayable',
8657
- type: 'function',
8658
- },
8659
- {
8660
- inputs: [
8661
- { internalType: 'uint256', name: 'index', type: 'uint256' },
8662
- { internalType: 'TokenId', name: 'tokenId', type: 'uint16' },
8663
- { internalType: 'uint256', name: 'amount', type: 'uint256' },
8664
- ],
8665
- name: 'deposit',
8666
- outputs: [],
8667
- stateMutability: 'nonpayable',
8668
- type: 'function',
8669
- },
8670
- {
8671
- inputs: [
8672
- { internalType: 'uint256', name: 'index', type: 'uint256' },
8673
- { internalType: 'MarketId', name: 'marketId', type: 'uint24' },
8674
- ],
8675
- name: 'enterMarket',
8676
- outputs: [],
8677
- stateMutability: 'nonpayable',
8678
- type: 'function',
8679
- },
8680
- {
8681
- inputs: [],
8682
- name: 'forwarder1',
8683
- outputs: [{ internalType: 'address', name: '', type: 'address' }],
8684
- stateMutability: 'view',
8685
- type: 'function',
8686
- },
8687
- {
8688
- inputs: [],
8689
- name: 'forwarder2',
8690
- outputs: [{ internalType: 'address', name: '', type: 'address' }],
8691
- stateMutability: 'view',
8692
- type: 'function',
8693
- },
8694
- {
8695
- inputs: [],
8696
- name: 'maxDelta',
8697
- outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
8698
- stateMutability: 'view',
8699
- type: 'function',
8700
- },
8701
- {
8702
- inputs: [
8703
- { internalType: 'MarketId', name: 'marketId', type: 'uint24' },
8704
- { internalType: 'AMMId', name: 'ammId', type: 'uint24' },
8705
- ],
8706
- name: 'pushMarkRate',
8707
- outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
8708
- stateMutability: 'nonpayable',
8709
- type: 'function',
8710
- },
8711
- {
8712
- inputs: [
8713
- { internalType: 'uint256', name: 'index', type: 'uint256' },
8714
- { internalType: 'TokenId', name: 'tokenId', type: 'uint16' },
8715
- { internalType: 'uint256', name: 'amount', type: 'uint256' },
8716
- ],
8717
- name: 'requestWithdrawal',
8718
- outputs: [],
8719
- stateMutability: 'nonpayable',
8720
- type: 'function',
8721
- },
8722
- {
8723
- inputs: [{ internalType: 'uint256', name: 'newMaxDelta', type: 'uint256' }],
8724
- name: 'setMaxDelta',
8725
- outputs: [],
8726
- stateMutability: 'nonpayable',
8727
- type: 'function',
8728
- },
8729
- {
8730
- inputs: [
8731
- { internalType: 'uint256', name: 'index', type: 'uint256' },
8732
- { internalType: 'TokenId', name: 'tokenId', type: 'uint16' },
8733
- { internalType: 'uint256', name: 'amount', type: 'uint256' },
8734
- { internalType: 'address', name: 'receiver', type: 'address' },
8735
- ],
8736
- name: 'withdraw',
8737
- outputs: [],
8738
- stateMutability: 'nonpayable',
8739
- type: 'function',
8740
- },
8741
- ];
8742
8875
  exports.iZoneResponderAbi = [
8743
8876
  {
8744
8877
  anonymous: false,
@@ -8911,106 +9044,6 @@ exports.iZoneResponderAbi = [
8911
9044
  type: 'function',
8912
9045
  },
8913
9046
  ];
8914
- exports.iBotMiscFacetAbi = [
8915
- {
8916
- anonymous: false,
8917
- inputs: [
8918
- { indexed: true, internalType: 'bytes4', name: 'selector', type: 'bytes4' },
8919
- { indexed: true, internalType: 'address', name: 'facet', type: 'address' },
8920
- ],
8921
- name: 'SelectorToFacetSet',
8922
- type: 'event',
8923
- },
8924
- {
8925
- inputs: [
8926
- { internalType: 'TokenId', name: 'tokenId', type: 'uint16' },
8927
- { internalType: 'uint256', name: 'amount', type: 'uint256' },
8928
- ],
8929
- name: 'deposit',
8930
- outputs: [],
8931
- stateMutability: 'nonpayable',
8932
- type: 'function',
8933
- },
8934
- {
8935
- inputs: [{ internalType: 'MarketId', name: 'marketId', type: 'uint24' }],
8936
- name: 'enterMarketIsolated',
8937
- outputs: [],
8938
- stateMutability: 'nonpayable',
8939
- type: 'function',
8940
- },
8941
- {
8942
- inputs: [
8943
- {
8944
- components: [
8945
- { internalType: 'bool', name: 'allowFailure', type: 'bool' },
8946
- { internalType: 'bytes', name: 'callData', type: 'bytes' },
8947
- ],
8948
- internalType: 'struct IBotMiscFacet.Call[]',
8949
- name: 'calls',
8950
- type: 'tuple[]',
8951
- },
8952
- ],
8953
- name: 'multicall',
8954
- outputs: [
8955
- {
8956
- components: [
8957
- { internalType: 'bool', name: 'success', type: 'bool' },
8958
- { internalType: 'bytes', name: 'returnData', type: 'bytes' },
8959
- ],
8960
- internalType: 'struct IBotMiscFacet.Result[]',
8961
- name: 'results',
8962
- type: 'tuple[]',
8963
- },
8964
- ],
8965
- stateMutability: 'nonpayable',
8966
- type: 'function',
8967
- },
8968
- {
8969
- inputs: [
8970
- { internalType: 'TokenId', name: 'tokenId', type: 'uint16' },
8971
- { internalType: 'uint256', name: 'amount', type: 'uint256' },
8972
- ],
8973
- name: 'requestWithdrawal',
8974
- outputs: [],
8975
- stateMutability: 'nonpayable',
8976
- type: 'function',
8977
- },
8978
- {
8979
- inputs: [{ internalType: 'bytes4', name: 'selector', type: 'bytes4' }],
8980
- name: 'selectorToFacet',
8981
- outputs: [{ internalType: 'address', name: '', type: 'address' }],
8982
- stateMutability: 'view',
8983
- type: 'function',
8984
- },
8985
- {
8986
- inputs: [
8987
- {
8988
- components: [
8989
- { internalType: 'address', name: 'facet', type: 'address' },
8990
- { internalType: 'bytes4[]', name: 'selectors', type: 'bytes4[]' },
8991
- ],
8992
- internalType: 'struct IBotMiscFacet.SelectorsToFacet[]',
8993
- name: 'arr',
8994
- type: 'tuple[]',
8995
- },
8996
- ],
8997
- name: 'setSelectorToFacets',
8998
- outputs: [],
8999
- stateMutability: 'nonpayable',
9000
- type: 'function',
9001
- },
9002
- {
9003
- inputs: [
9004
- { internalType: 'TokenId', name: 'tokenId', type: 'uint16' },
9005
- { internalType: 'uint256', name: 'amount', type: 'uint256' },
9006
- { internalType: 'address', name: 'receiver', type: 'address' },
9007
- ],
9008
- name: 'withdraw',
9009
- outputs: [],
9010
- stateMutability: 'nonpayable',
9011
- type: 'function',
9012
- },
9013
- ];
9014
9047
  exports.iMultiTokenMerkleDistributorAbi = [
9015
9048
  { inputs: [], name: 'InvalidMerkleProof', type: 'error' },
9016
9049
  {