lynx-client 0.0.35 → 0.0.37

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 (135) hide show
  1. package/dist/cjs/lib/addresses/lensAddresses.js +6 -6
  2. package/dist/cjs/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.js +3 -0
  3. package/dist/cjs/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.js +1 -0
  4. package/dist/cjs/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.js +38 -1
  5. package/dist/cjs/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.js +84 -0
  6. package/dist/cjs/lib/typechain/contracts/Lynx/Incentives/SkewIncentive.js +2 -0
  7. package/dist/cjs/lib/typechain/contracts/Lynx/interfaces/ISkewIncentive.js +2 -0
  8. package/dist/cjs/lib/typechain/factories/contracts/Lynx/Incentives/SkewIncentive__factory.js +1118 -0
  9. package/dist/cjs/lib/typechain/factories/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1__factory.js +1 -1
  10. package/dist/cjs/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.js +1 -1
  11. package/dist/cjs/lib/typechain/factories/contracts/Lynx/Lex/PNLR/PNLR__factory.js +1 -1
  12. package/dist/cjs/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.js +1 -1
  13. package/dist/cjs/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.js +1 -1
  14. package/dist/cjs/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.js +1 -1
  15. package/dist/cjs/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.js +1 -1
  16. package/dist/cjs/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.js +21 -1
  17. package/dist/cjs/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.js +222 -1
  18. package/dist/cjs/lib/typechain/factories/contracts/Lynx/interfaces/IPriceValidatorV1__factory.js +5 -0
  19. package/dist/cjs/lib/typechain/factories/contracts/Lynx/interfaces/ISkewIncentive__factory.js +538 -0
  20. package/dist/cjs/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.js +1 -1
  21. package/dist/cjs/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.js +46 -1
  22. package/dist/cjs/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.js +452 -1
  23. package/dist/esm/lib/addresses/lensAddresses.d.ts +6 -6
  24. package/dist/esm/lib/addresses/lensAddresses.js +6 -6
  25. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts +2 -1
  26. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts.map +1 -1
  27. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.js +3 -0
  28. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts.map +1 -1
  29. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.js +1 -0
  30. package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.d.ts +38 -1
  31. package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.d.ts.map +1 -1
  32. package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.js +38 -1
  33. package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.d.ts +9 -2
  34. package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.d.ts.map +1 -1
  35. package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.js +84 -0
  36. package/dist/esm/lib/typechain/contracts/Lynx/Incentives/SkewIncentive.d.ts +745 -0
  37. package/dist/esm/lib/typechain/contracts/Lynx/Incentives/SkewIncentive.d.ts.map +1 -0
  38. package/dist/esm/lib/typechain/contracts/Lynx/Incentives/SkewIncentive.js +2 -0
  39. package/dist/esm/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.d.ts +18 -6
  40. package/dist/esm/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.d.ts.map +1 -1
  41. package/dist/esm/lib/typechain/contracts/Lynx/Triggers/TriggersV1.d.ts +36 -2
  42. package/dist/esm/lib/typechain/contracts/Lynx/Triggers/TriggersV1.d.ts.map +1 -1
  43. package/dist/esm/lib/typechain/contracts/Lynx/interfaces/IPriceValidatorV1.d.ts +9 -3
  44. package/dist/esm/lib/typechain/contracts/Lynx/interfaces/IPriceValidatorV1.d.ts.map +1 -1
  45. package/dist/esm/lib/typechain/contracts/Lynx/interfaces/ISkewIncentive.d.ts +408 -0
  46. package/dist/esm/lib/typechain/contracts/Lynx/interfaces/ISkewIncentive.d.ts.map +1 -0
  47. package/dist/esm/lib/typechain/contracts/Lynx/interfaces/ISkewIncentive.js +2 -0
  48. package/dist/esm/lib/typechain/contracts/Peripheral/Lens/TradingFloorLens.d.ts +10 -1
  49. package/dist/esm/lib/typechain/contracts/Peripheral/Lens/TradingFloorLens.d.ts.map +1 -1
  50. package/dist/esm/lib/typechain/contracts/Peripheral/Lens/TriggersAndPortalLens.d.ts +205 -1
  51. package/dist/esm/lib/typechain/contracts/Peripheral/Lens/TriggersAndPortalLens.d.ts.map +1 -1
  52. package/dist/esm/lib/typechain/factories/contracts/Lynx/Incentives/SkewIncentive__factory.d.ts +861 -0
  53. package/dist/esm/lib/typechain/factories/contracts/Lynx/Incentives/SkewIncentive__factory.d.ts.map +1 -0
  54. package/dist/esm/lib/typechain/factories/contracts/Lynx/Incentives/SkewIncentive__factory.js +1118 -0
  55. package/dist/esm/lib/typechain/factories/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1__factory.d.ts +1 -1
  56. package/dist/esm/lib/typechain/factories/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1__factory.js +1 -1
  57. package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.d.ts +1 -1
  58. package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.js +1 -1
  59. package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/PNLR/PNLR__factory.d.ts +1 -1
  60. package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/PNLR/PNLR__factory.d.ts.map +1 -1
  61. package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/PNLR/PNLR__factory.js +1 -1
  62. package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.d.ts +1 -1
  63. package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.js +1 -1
  64. package/dist/esm/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.d.ts +1 -1
  65. package/dist/esm/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.js +1 -1
  66. package/dist/esm/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.d.ts +1 -1
  67. package/dist/esm/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.js +1 -1
  68. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.d.ts +1 -1
  69. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.js +1 -1
  70. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts +17 -1
  71. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts.map +1 -1
  72. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.js +21 -1
  73. package/dist/esm/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts +177 -1
  74. package/dist/esm/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts.map +1 -1
  75. package/dist/esm/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.js +222 -1
  76. package/dist/esm/lib/typechain/factories/contracts/Lynx/interfaces/IPriceValidatorV1__factory.d.ts +4 -0
  77. package/dist/esm/lib/typechain/factories/contracts/Lynx/interfaces/IPriceValidatorV1__factory.d.ts.map +1 -1
  78. package/dist/esm/lib/typechain/factories/contracts/Lynx/interfaces/IPriceValidatorV1__factory.js +5 -0
  79. package/dist/esm/lib/typechain/factories/contracts/Lynx/interfaces/ISkewIncentive__factory.d.ts +415 -0
  80. package/dist/esm/lib/typechain/factories/contracts/Lynx/interfaces/ISkewIncentive__factory.d.ts.map +1 -0
  81. package/dist/esm/lib/typechain/factories/contracts/Lynx/interfaces/ISkewIncentive__factory.js +538 -0
  82. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.d.ts +1 -1
  83. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.js +1 -1
  84. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.d.ts +37 -1
  85. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.d.ts.map +1 -1
  86. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.js +46 -1
  87. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.d.ts +348 -1
  88. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.d.ts.map +1 -1
  89. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.js +452 -1
  90. package/dist/types/lib/addresses/lensAddresses.d.ts +6 -6
  91. package/dist/types/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts +2 -1
  92. package/dist/types/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts.map +1 -1
  93. package/dist/types/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts.map +1 -1
  94. package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.d.ts +38 -1
  95. package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.d.ts.map +1 -1
  96. package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.d.ts +9 -2
  97. package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.d.ts.map +1 -1
  98. package/dist/types/lib/typechain/contracts/Lynx/Incentives/SkewIncentive.d.ts +745 -0
  99. package/dist/types/lib/typechain/contracts/Lynx/Incentives/SkewIncentive.d.ts.map +1 -0
  100. package/dist/types/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.d.ts +18 -6
  101. package/dist/types/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.d.ts.map +1 -1
  102. package/dist/types/lib/typechain/contracts/Lynx/Triggers/TriggersV1.d.ts +36 -2
  103. package/dist/types/lib/typechain/contracts/Lynx/Triggers/TriggersV1.d.ts.map +1 -1
  104. package/dist/types/lib/typechain/contracts/Lynx/interfaces/IPriceValidatorV1.d.ts +9 -3
  105. package/dist/types/lib/typechain/contracts/Lynx/interfaces/IPriceValidatorV1.d.ts.map +1 -1
  106. package/dist/types/lib/typechain/contracts/Lynx/interfaces/ISkewIncentive.d.ts +408 -0
  107. package/dist/types/lib/typechain/contracts/Lynx/interfaces/ISkewIncentive.d.ts.map +1 -0
  108. package/dist/types/lib/typechain/contracts/Peripheral/Lens/TradingFloorLens.d.ts +10 -1
  109. package/dist/types/lib/typechain/contracts/Peripheral/Lens/TradingFloorLens.d.ts.map +1 -1
  110. package/dist/types/lib/typechain/contracts/Peripheral/Lens/TriggersAndPortalLens.d.ts +205 -1
  111. package/dist/types/lib/typechain/contracts/Peripheral/Lens/TriggersAndPortalLens.d.ts.map +1 -1
  112. package/dist/types/lib/typechain/factories/contracts/Lynx/Incentives/SkewIncentive__factory.d.ts +861 -0
  113. package/dist/types/lib/typechain/factories/contracts/Lynx/Incentives/SkewIncentive__factory.d.ts.map +1 -0
  114. package/dist/types/lib/typechain/factories/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1__factory.d.ts +1 -1
  115. package/dist/types/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.d.ts +1 -1
  116. package/dist/types/lib/typechain/factories/contracts/Lynx/Lex/PNLR/PNLR__factory.d.ts +1 -1
  117. package/dist/types/lib/typechain/factories/contracts/Lynx/Lex/PNLR/PNLR__factory.d.ts.map +1 -1
  118. package/dist/types/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.d.ts +1 -1
  119. package/dist/types/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.d.ts +1 -1
  120. package/dist/types/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.d.ts +1 -1
  121. package/dist/types/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.d.ts +1 -1
  122. package/dist/types/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts +17 -1
  123. package/dist/types/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts.map +1 -1
  124. package/dist/types/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts +177 -1
  125. package/dist/types/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts.map +1 -1
  126. package/dist/types/lib/typechain/factories/contracts/Lynx/interfaces/IPriceValidatorV1__factory.d.ts +4 -0
  127. package/dist/types/lib/typechain/factories/contracts/Lynx/interfaces/IPriceValidatorV1__factory.d.ts.map +1 -1
  128. package/dist/types/lib/typechain/factories/contracts/Lynx/interfaces/ISkewIncentive__factory.d.ts +415 -0
  129. package/dist/types/lib/typechain/factories/contracts/Lynx/interfaces/ISkewIncentive__factory.d.ts.map +1 -0
  130. package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.d.ts +1 -1
  131. package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.d.ts +37 -1
  132. package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.d.ts.map +1 -1
  133. package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.d.ts +348 -1
  134. package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.d.ts.map +1 -1
  135. package/package.json +1 -1
@@ -0,0 +1,538 @@
1
+ "use strict";
2
+ /* Autogenerated file. Do not edit manually. */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ISkewIncentive__factory = void 0;
7
+ const ethers_1 = require("ethers");
8
+ const _abi = [
9
+ {
10
+ anonymous: false,
11
+ inputs: [
12
+ {
13
+ indexed: false,
14
+ internalType: "bool",
15
+ name: "enabled",
16
+ type: "bool",
17
+ },
18
+ ],
19
+ name: "GlobalEnabledUpdated",
20
+ type: "event",
21
+ },
22
+ {
23
+ anonymous: false,
24
+ inputs: [
25
+ {
26
+ indexed: true,
27
+ internalType: "address",
28
+ name: "settlementAsset",
29
+ type: "address",
30
+ },
31
+ {
32
+ indexed: false,
33
+ internalType: "bool",
34
+ name: "enabled",
35
+ type: "bool",
36
+ },
37
+ {
38
+ indexed: false,
39
+ internalType: "uint32",
40
+ name: "skewThreshold",
41
+ type: "uint32",
42
+ },
43
+ {
44
+ indexed: false,
45
+ internalType: "uint32",
46
+ name: "incentiveRate",
47
+ type: "uint32",
48
+ },
49
+ {
50
+ indexed: false,
51
+ internalType: "uint256",
52
+ name: "minPositionSize",
53
+ type: "uint256",
54
+ },
55
+ {
56
+ indexed: false,
57
+ internalType: "uint256",
58
+ name: "minHoldingTime",
59
+ type: "uint256",
60
+ },
61
+ ],
62
+ name: "IncentiveConfigUpdated",
63
+ type: "event",
64
+ },
65
+ {
66
+ anonymous: false,
67
+ inputs: [
68
+ {
69
+ indexed: true,
70
+ internalType: "address",
71
+ name: "settlementAsset",
72
+ type: "address",
73
+ },
74
+ {
75
+ indexed: true,
76
+ internalType: "uint16",
77
+ name: "pairId",
78
+ type: "uint16",
79
+ },
80
+ ],
81
+ name: "PairIncentiveConfigRemoved",
82
+ type: "event",
83
+ },
84
+ {
85
+ anonymous: false,
86
+ inputs: [
87
+ {
88
+ indexed: true,
89
+ internalType: "address",
90
+ name: "settlementAsset",
91
+ type: "address",
92
+ },
93
+ {
94
+ indexed: true,
95
+ internalType: "uint16",
96
+ name: "pairId",
97
+ type: "uint16",
98
+ },
99
+ {
100
+ indexed: false,
101
+ internalType: "bool",
102
+ name: "enabled",
103
+ type: "bool",
104
+ },
105
+ {
106
+ indexed: false,
107
+ internalType: "uint32",
108
+ name: "skewThreshold",
109
+ type: "uint32",
110
+ },
111
+ {
112
+ indexed: false,
113
+ internalType: "uint32",
114
+ name: "incentiveRate",
115
+ type: "uint32",
116
+ },
117
+ {
118
+ indexed: false,
119
+ internalType: "uint256",
120
+ name: "minPositionSize",
121
+ type: "uint256",
122
+ },
123
+ {
124
+ indexed: false,
125
+ internalType: "uint256",
126
+ name: "minHoldingTime",
127
+ type: "uint256",
128
+ },
129
+ ],
130
+ name: "PairIncentiveConfigUpdated",
131
+ type: "event",
132
+ },
133
+ {
134
+ anonymous: false,
135
+ inputs: [
136
+ {
137
+ indexed: true,
138
+ internalType: "bytes32",
139
+ name: "positionId",
140
+ type: "bytes32",
141
+ },
142
+ {
143
+ indexed: false,
144
+ internalType: "bool",
145
+ name: "disabled",
146
+ type: "bool",
147
+ },
148
+ ],
149
+ name: "PositionDisabledToggled",
150
+ type: "event",
151
+ },
152
+ {
153
+ anonymous: false,
154
+ inputs: [
155
+ {
156
+ indexed: true,
157
+ internalType: "bytes32",
158
+ name: "positionId",
159
+ type: "bytes32",
160
+ },
161
+ {
162
+ indexed: false,
163
+ internalType: "uint32",
164
+ name: "incentiveRate",
165
+ type: "uint32",
166
+ },
167
+ ],
168
+ name: "PositionSkewRecorded",
169
+ type: "event",
170
+ },
171
+ {
172
+ anonymous: false,
173
+ inputs: [
174
+ {
175
+ indexed: true,
176
+ internalType: "bytes32",
177
+ name: "positionId",
178
+ type: "bytes32",
179
+ },
180
+ {
181
+ indexed: false,
182
+ internalType: "uint32",
183
+ name: "incentiveRate",
184
+ type: "uint32",
185
+ },
186
+ ],
187
+ name: "SkewIncentiveRateEmitted",
188
+ type: "event",
189
+ },
190
+ {
191
+ inputs: [
192
+ {
193
+ internalType: "address",
194
+ name: "settlementAsset",
195
+ type: "address",
196
+ },
197
+ {
198
+ internalType: "uint16",
199
+ name: "pairId",
200
+ type: "uint16",
201
+ },
202
+ ],
203
+ name: "getIncentiveConfig",
204
+ outputs: [
205
+ {
206
+ internalType: "bool",
207
+ name: "enabled",
208
+ type: "bool",
209
+ },
210
+ {
211
+ internalType: "uint32",
212
+ name: "skewThreshold",
213
+ type: "uint32",
214
+ },
215
+ {
216
+ internalType: "uint32",
217
+ name: "incentiveRate",
218
+ type: "uint32",
219
+ },
220
+ {
221
+ internalType: "uint256",
222
+ name: "minPositionSize",
223
+ type: "uint256",
224
+ },
225
+ {
226
+ internalType: "uint256",
227
+ name: "minHoldingTime",
228
+ type: "uint256",
229
+ },
230
+ ],
231
+ stateMutability: "view",
232
+ type: "function",
233
+ },
234
+ {
235
+ inputs: [
236
+ {
237
+ internalType: "bytes32",
238
+ name: "positionId",
239
+ type: "bytes32",
240
+ },
241
+ ],
242
+ name: "getPositionSkewInfo",
243
+ outputs: [
244
+ {
245
+ internalType: "uint32",
246
+ name: "incentiveRate",
247
+ type: "uint32",
248
+ },
249
+ {
250
+ internalType: "bool",
251
+ name: "disabled",
252
+ type: "bool",
253
+ },
254
+ {
255
+ internalType: "uint64",
256
+ name: "openTimestamp",
257
+ type: "uint64",
258
+ },
259
+ ],
260
+ stateMutability: "view",
261
+ type: "function",
262
+ },
263
+ {
264
+ inputs: [],
265
+ name: "globalEnabled",
266
+ outputs: [
267
+ {
268
+ internalType: "bool",
269
+ name: "",
270
+ type: "bool",
271
+ },
272
+ ],
273
+ stateMutability: "view",
274
+ type: "function",
275
+ },
276
+ {
277
+ inputs: [
278
+ {
279
+ internalType: "bytes32",
280
+ name: "positionId",
281
+ type: "bytes32",
282
+ },
283
+ ],
284
+ name: "isPositionEligible",
285
+ outputs: [
286
+ {
287
+ internalType: "bool",
288
+ name: "",
289
+ type: "bool",
290
+ },
291
+ ],
292
+ stateMutability: "view",
293
+ type: "function",
294
+ },
295
+ {
296
+ inputs: [
297
+ {
298
+ internalType: "bytes32",
299
+ name: "positionId",
300
+ type: "bytes32",
301
+ },
302
+ {
303
+ internalType: "address",
304
+ name: "settlementAsset",
305
+ type: "address",
306
+ },
307
+ {
308
+ internalType: "uint16",
309
+ name: "pairId",
310
+ type: "uint16",
311
+ },
312
+ ],
313
+ name: "pullIncentiveRate",
314
+ outputs: [
315
+ {
316
+ internalType: "uint32",
317
+ name: "incentiveRate",
318
+ type: "uint32",
319
+ },
320
+ ],
321
+ stateMutability: "nonpayable",
322
+ type: "function",
323
+ },
324
+ {
325
+ inputs: [
326
+ {
327
+ internalType: "bytes32",
328
+ name: "positionId",
329
+ type: "bytes32",
330
+ },
331
+ {
332
+ internalType: "address",
333
+ name: "accountant",
334
+ type: "address",
335
+ },
336
+ {
337
+ internalType: "address",
338
+ name: "settlementAsset",
339
+ type: "address",
340
+ },
341
+ {
342
+ internalType: "uint16",
343
+ name: "pairId",
344
+ type: "uint16",
345
+ },
346
+ {
347
+ internalType: "bool",
348
+ name: "isLong",
349
+ type: "bool",
350
+ },
351
+ {
352
+ internalType: "uint256",
353
+ name: "collateral",
354
+ type: "uint256",
355
+ },
356
+ {
357
+ internalType: "uint256",
358
+ name: "positionSizeInUnits",
359
+ type: "uint256",
360
+ },
361
+ ],
362
+ name: "recordPositionOpen",
363
+ outputs: [],
364
+ stateMutability: "nonpayable",
365
+ type: "function",
366
+ },
367
+ {
368
+ inputs: [],
369
+ name: "registry",
370
+ outputs: [
371
+ {
372
+ internalType: "contract IRegistryV1",
373
+ name: "",
374
+ type: "address",
375
+ },
376
+ ],
377
+ stateMutability: "view",
378
+ type: "function",
379
+ },
380
+ {
381
+ inputs: [
382
+ {
383
+ internalType: "address",
384
+ name: "settlementAsset",
385
+ type: "address",
386
+ },
387
+ {
388
+ internalType: "uint16",
389
+ name: "pairId",
390
+ type: "uint16",
391
+ },
392
+ ],
393
+ name: "removePairIncentiveConfig",
394
+ outputs: [],
395
+ stateMutability: "nonpayable",
396
+ type: "function",
397
+ },
398
+ {
399
+ inputs: [
400
+ {
401
+ internalType: "address",
402
+ name: "settlementAsset",
403
+ type: "address",
404
+ },
405
+ {
406
+ internalType: "bool",
407
+ name: "enabled",
408
+ type: "bool",
409
+ },
410
+ {
411
+ internalType: "uint32",
412
+ name: "skewThreshold",
413
+ type: "uint32",
414
+ },
415
+ {
416
+ internalType: "uint32",
417
+ name: "incentiveRate",
418
+ type: "uint32",
419
+ },
420
+ {
421
+ internalType: "uint256",
422
+ name: "minPositionSize",
423
+ type: "uint256",
424
+ },
425
+ {
426
+ internalType: "uint256",
427
+ name: "minHoldingTime",
428
+ type: "uint256",
429
+ },
430
+ ],
431
+ name: "setDefaultIncentiveConfig",
432
+ outputs: [],
433
+ stateMutability: "nonpayable",
434
+ type: "function",
435
+ },
436
+ {
437
+ inputs: [
438
+ {
439
+ internalType: "bool",
440
+ name: "enabled",
441
+ type: "bool",
442
+ },
443
+ ],
444
+ name: "setGlobalEnabled",
445
+ outputs: [],
446
+ stateMutability: "nonpayable",
447
+ type: "function",
448
+ },
449
+ {
450
+ inputs: [
451
+ {
452
+ internalType: "address",
453
+ name: "settlementAsset",
454
+ type: "address",
455
+ },
456
+ {
457
+ internalType: "uint16",
458
+ name: "pairId",
459
+ type: "uint16",
460
+ },
461
+ {
462
+ internalType: "bool",
463
+ name: "enabled",
464
+ type: "bool",
465
+ },
466
+ {
467
+ internalType: "uint32",
468
+ name: "skewThreshold",
469
+ type: "uint32",
470
+ },
471
+ {
472
+ internalType: "uint32",
473
+ name: "incentiveRate",
474
+ type: "uint32",
475
+ },
476
+ {
477
+ internalType: "uint256",
478
+ name: "minPositionSize",
479
+ type: "uint256",
480
+ },
481
+ {
482
+ internalType: "uint256",
483
+ name: "minHoldingTime",
484
+ type: "uint256",
485
+ },
486
+ ],
487
+ name: "setPairIncentiveConfig",
488
+ outputs: [],
489
+ stateMutability: "nonpayable",
490
+ type: "function",
491
+ },
492
+ {
493
+ inputs: [
494
+ {
495
+ internalType: "bytes32",
496
+ name: "positionId",
497
+ type: "bytes32",
498
+ },
499
+ {
500
+ internalType: "bool",
501
+ name: "disabled",
502
+ type: "bool",
503
+ },
504
+ ],
505
+ name: "setPositionDisabled",
506
+ outputs: [],
507
+ stateMutability: "nonpayable",
508
+ type: "function",
509
+ },
510
+ {
511
+ inputs: [
512
+ {
513
+ internalType: "bytes32[]",
514
+ name: "positionIds",
515
+ type: "bytes32[]",
516
+ },
517
+ {
518
+ internalType: "bool",
519
+ name: "disabled",
520
+ type: "bool",
521
+ },
522
+ ],
523
+ name: "setPositionDisabledBatch",
524
+ outputs: [],
525
+ stateMutability: "nonpayable",
526
+ type: "function",
527
+ },
528
+ ];
529
+ class ISkewIncentive__factory {
530
+ static createInterface() {
531
+ return new ethers_1.Interface(_abi);
532
+ }
533
+ static connect(address, runner) {
534
+ return new ethers_1.Contract(address, _abi, runner);
535
+ }
536
+ }
537
+ exports.ISkewIncentive__factory = ISkewIncentive__factory;
538
+ ISkewIncentive__factory.abi = _abi;