@varla/sdk 1.11.3 → 1.13.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 (244) hide show
  1. package/AGENTS.md +82 -94
  2. package/CHANGELOG.md +359 -0
  3. package/README.md +227 -274
  4. package/dist/abi/full/OpinionCtfExecutionEngineAdapter.js +1 -0
  5. package/dist/abi/full/OpinionCtfExecutionEngineAdapter.js.map +1 -0
  6. package/dist/abi/full/OracleUpdaterRouter.d.ts +30 -9
  7. package/dist/abi/full/OracleUpdaterRouter.d.ts.map +1 -1
  8. package/dist/abi/full/OracleUpdaterRouter.js +37 -9
  9. package/dist/abi/full/OracleUpdaterRouter.js.map +1 -0
  10. package/dist/abi/full/PolymarketCtfAdapter.js +1 -0
  11. package/dist/abi/full/PolymarketCtfAdapter.js.map +1 -0
  12. package/dist/abi/full/VarlaAccessManager.js +1 -0
  13. package/dist/abi/full/VarlaAccessManager.js.map +1 -0
  14. package/dist/abi/full/VarlaConvertLiquidator.d.ts +35 -0
  15. package/dist/abi/full/VarlaConvertLiquidator.d.ts.map +1 -1
  16. package/dist/abi/full/VarlaConvertLiquidator.js +46 -0
  17. package/dist/abi/full/VarlaConvertLiquidator.js.map +1 -0
  18. package/dist/abi/full/VarlaCore.js +1 -0
  19. package/dist/abi/full/VarlaCore.js.map +1 -0
  20. package/dist/abi/full/VarlaInterestRateStrategy.js +1 -0
  21. package/dist/abi/full/VarlaInterestRateStrategy.js.map +1 -0
  22. package/dist/abi/full/VarlaLiquidator.d.ts +36 -1
  23. package/dist/abi/full/VarlaLiquidator.d.ts.map +1 -1
  24. package/dist/abi/full/VarlaLiquidator.js +47 -1
  25. package/dist/abi/full/VarlaLiquidator.js.map +1 -0
  26. package/dist/abi/full/VarlaMergeLiquidator.d.ts +35 -0
  27. package/dist/abi/full/VarlaMergeLiquidator.d.ts.map +1 -1
  28. package/dist/abi/full/VarlaMergeLiquidator.js +46 -0
  29. package/dist/abi/full/VarlaMergeLiquidator.js.map +1 -0
  30. package/dist/abi/full/VarlaOracle.js +1 -0
  31. package/dist/abi/full/VarlaOracle.js.map +1 -0
  32. package/dist/abi/full/VarlaPool.js +1 -0
  33. package/dist/abi/full/VarlaPool.js.map +1 -0
  34. package/dist/abi/full/VarlaProxyAdmin.js +1 -0
  35. package/dist/abi/full/VarlaProxyAdmin.js.map +1 -0
  36. package/dist/abi/index.js +1 -0
  37. package/dist/abi/index.js.map +1 -0
  38. package/dist/abi/subsets/VarlaOracle.registry.js +1 -0
  39. package/dist/abi/subsets/VarlaOracle.registry.js.map +1 -0
  40. package/dist/abi.js +1 -0
  41. package/dist/abi.js.map +1 -0
  42. package/dist/actions/admin.js +1 -0
  43. package/dist/actions/admin.js.map +1 -0
  44. package/dist/actions/core.js +1 -0
  45. package/dist/actions/core.js.map +1 -0
  46. package/dist/actions/erc1155.js +1 -0
  47. package/dist/actions/erc1155.js.map +1 -0
  48. package/dist/actions/erc20.js +1 -0
  49. package/dist/actions/erc20.js.map +1 -0
  50. package/dist/actions/index.d.ts +7 -7
  51. package/dist/actions/index.d.ts.map +1 -1
  52. package/dist/actions/index.js +8 -7
  53. package/dist/actions/index.js.map +1 -0
  54. package/dist/actions/liquidator.js +1 -0
  55. package/dist/actions/liquidator.js.map +1 -0
  56. package/dist/actions/oracle.d.ts +1 -2
  57. package/dist/actions/oracle.d.ts.map +1 -1
  58. package/dist/actions/oracle.js +1 -0
  59. package/dist/actions/oracle.js.map +1 -0
  60. package/dist/actions/oracleUpdaterRouter.d.ts +8 -1
  61. package/dist/actions/oracleUpdaterRouter.d.ts.map +1 -1
  62. package/dist/actions/oracleUpdaterRouter.js +14 -1
  63. package/dist/actions/oracleUpdaterRouter.js.map +1 -0
  64. package/dist/actions/pool.js +1 -0
  65. package/dist/actions/pool.js.map +1 -0
  66. package/dist/actions/rbac.js +1 -0
  67. package/dist/actions/rbac.js.map +1 -0
  68. package/dist/actions/tx.js +1 -0
  69. package/dist/actions/tx.js.map +1 -0
  70. package/dist/actions/utils.js +1 -0
  71. package/dist/actions/utils.js.map +1 -0
  72. package/dist/addresses/bsc.js +1 -0
  73. package/dist/addresses/bsc.js.map +1 -0
  74. package/dist/addresses/index.js +1 -0
  75. package/dist/addresses/index.js.map +1 -0
  76. package/dist/addresses/polygon.js +1 -0
  77. package/dist/addresses/polygon.js.map +1 -0
  78. package/dist/addresses.js +1 -0
  79. package/dist/addresses.js.map +1 -0
  80. package/dist/batch.js +1 -0
  81. package/dist/batch.js.map +1 -0
  82. package/dist/contracts.d.ts +1 -2
  83. package/dist/contracts.d.ts.map +1 -1
  84. package/dist/contracts.js +2 -2
  85. package/dist/contracts.js.map +1 -0
  86. package/dist/errors.d.ts +87 -0
  87. package/dist/errors.d.ts.map +1 -0
  88. package/dist/errors.js +240 -0
  89. package/dist/errors.js.map +1 -0
  90. package/dist/events/decode.js +1 -0
  91. package/dist/events/decode.js.map +1 -0
  92. package/dist/events/defs.js +1 -0
  93. package/dist/events/defs.js.map +1 -0
  94. package/dist/events/index.d.ts +3 -3
  95. package/dist/events/index.d.ts.map +1 -1
  96. package/dist/events/index.js +4 -3
  97. package/dist/events/index.js.map +1 -0
  98. package/dist/events/logs.js +1 -0
  99. package/dist/events/logs.js.map +1 -0
  100. package/dist/events/oracleRegistrySync.js +1 -0
  101. package/dist/events/oracleRegistrySync.js.map +1 -0
  102. package/dist/events/recent.d.ts +1 -1
  103. package/dist/events/recent.d.ts.map +1 -1
  104. package/dist/events/recent.js +2 -1
  105. package/dist/events/recent.js.map +1 -0
  106. package/dist/format.js +1 -0
  107. package/dist/format.js.map +1 -0
  108. package/dist/generated.d.ts +136 -10
  109. package/dist/generated.d.ts.map +1 -1
  110. package/dist/generated.js +1 -0
  111. package/dist/generated.js.map +1 -0
  112. package/dist/index.d.ts +6 -5
  113. package/dist/index.d.ts.map +1 -1
  114. package/dist/index.js +12 -9
  115. package/dist/index.js.map +1 -0
  116. package/dist/leverage/deleverageExecute.d.ts +36 -0
  117. package/dist/leverage/deleverageExecute.d.ts.map +1 -0
  118. package/dist/leverage/deleverageExecute.js +53 -0
  119. package/dist/leverage/deleverageExecute.js.map +1 -0
  120. package/dist/leverage/execute.d.ts +62 -0
  121. package/dist/leverage/execute.d.ts.map +1 -0
  122. package/dist/leverage/execute.js +84 -0
  123. package/dist/leverage/execute.js.map +1 -0
  124. package/dist/leverage/index.d.ts +32 -0
  125. package/dist/leverage/index.d.ts.map +1 -0
  126. package/dist/leverage/index.js +12 -0
  127. package/dist/leverage/index.js.map +1 -0
  128. package/dist/leverage/math.d.ts +119 -0
  129. package/dist/leverage/math.d.ts.map +1 -0
  130. package/dist/leverage/math.js +304 -0
  131. package/dist/leverage/math.js.map +1 -0
  132. package/dist/leverage/plan.d.ts +143 -0
  133. package/dist/leverage/plan.d.ts.map +1 -0
  134. package/dist/leverage/plan.js +204 -0
  135. package/dist/leverage/plan.js.map +1 -0
  136. package/dist/leverage/preflight.d.ts +27 -0
  137. package/dist/leverage/preflight.d.ts.map +1 -0
  138. package/dist/leverage/preflight.js +34 -0
  139. package/dist/leverage/preflight.js.map +1 -0
  140. package/dist/leverage/types.d.ts +157 -0
  141. package/dist/leverage/types.d.ts.map +1 -0
  142. package/dist/leverage/types.js +43 -0
  143. package/dist/leverage/types.js.map +1 -0
  144. package/dist/meta.d.ts +42 -0
  145. package/dist/meta.d.ts.map +1 -0
  146. package/dist/meta.js +47 -0
  147. package/dist/meta.js.map +1 -0
  148. package/dist/types.js +1 -0
  149. package/dist/types.js.map +1 -0
  150. package/dist/views/accessManager.js +1 -0
  151. package/dist/views/accessManager.js.map +1 -0
  152. package/dist/views/adapters.js +1 -0
  153. package/dist/views/adapters.js.map +1 -0
  154. package/dist/views/admin.d.ts.map +1 -1
  155. package/dist/views/admin.js +1 -0
  156. package/dist/views/admin.js.map +1 -0
  157. package/dist/views/core.d.ts +55 -7
  158. package/dist/views/core.d.ts.map +1 -1
  159. package/dist/views/core.js +185 -36
  160. package/dist/views/core.js.map +1 -0
  161. package/dist/views/index.d.ts +5 -5
  162. package/dist/views/index.d.ts.map +1 -1
  163. package/dist/views/index.js +6 -5
  164. package/dist/views/index.js.map +1 -0
  165. package/dist/views/lenders.js +1 -0
  166. package/dist/views/lenders.js.map +1 -0
  167. package/dist/views/liquidators.js +1 -0
  168. package/dist/views/liquidators.js.map +1 -0
  169. package/dist/views/oracle.js +1 -0
  170. package/dist/views/oracle.js.map +1 -0
  171. package/dist/views/pool.js +1 -0
  172. package/dist/views/pool.js.map +1 -0
  173. package/dist/views/system.d.ts.map +1 -1
  174. package/dist/views/system.js +1 -0
  175. package/dist/views/system.js.map +1 -0
  176. package/package.json +18 -5
  177. package/src/abi/README.md +17 -0
  178. package/src/abi/full/OpinionCtfExecutionEngineAdapter.ts +320 -0
  179. package/src/abi/full/OracleUpdaterRouter.ts +528 -0
  180. package/src/abi/full/PolymarketCtfAdapter.ts +312 -0
  181. package/src/abi/full/VarlaAccessManager.ts +1171 -0
  182. package/src/abi/full/VarlaConvertLiquidator.ts +834 -0
  183. package/src/abi/full/VarlaCore.ts +2277 -0
  184. package/src/abi/full/VarlaInterestRateStrategy.ts +442 -0
  185. package/src/abi/full/VarlaLiquidator.ts +914 -0
  186. package/src/abi/full/VarlaMergeLiquidator.ts +797 -0
  187. package/src/abi/full/VarlaOracle.ts +1825 -0
  188. package/src/abi/full/VarlaPool.ts +1637 -0
  189. package/src/abi/full/VarlaProxyAdmin.ts +301 -0
  190. package/src/abi/index.ts +17 -0
  191. package/src/abi/subsets/VarlaOracle.registry.ts +784 -0
  192. package/src/abi.ts +2 -0
  193. package/src/actions/admin.ts +357 -0
  194. package/src/actions/core.ts +68 -0
  195. package/src/actions/erc1155.ts +22 -0
  196. package/src/actions/erc20.ts +22 -0
  197. package/src/actions/index.ts +13 -0
  198. package/src/actions/liquidator.ts +76 -0
  199. package/src/actions/oracle.ts +618 -0
  200. package/src/actions/oracleUpdaterRouter.ts +233 -0
  201. package/src/actions/pool.ts +76 -0
  202. package/src/actions/rbac.ts +72 -0
  203. package/src/actions/tx.ts +16 -0
  204. package/src/actions/utils.ts +15 -0
  205. package/src/addresses/README.md +17 -0
  206. package/src/addresses/bsc.json +16 -0
  207. package/src/addresses/bsc.ts +15 -0
  208. package/src/addresses/index.ts +6 -0
  209. package/src/addresses/polygon.json +16 -0
  210. package/src/addresses/polygon.ts +15 -0
  211. package/src/addresses.ts +2 -0
  212. package/src/batch.ts +55 -0
  213. package/src/contracts.ts +232 -0
  214. package/src/errors.ts +305 -0
  215. package/src/events/decode.ts +37 -0
  216. package/src/events/defs.ts +70 -0
  217. package/src/events/index.ts +7 -0
  218. package/src/events/logs.ts +42 -0
  219. package/src/events/oracleRegistrySync.ts +206 -0
  220. package/src/events/recent.ts +39 -0
  221. package/src/format.ts +121 -0
  222. package/src/generated.ts +27 -0
  223. package/src/index.ts +18 -0
  224. package/src/leverage/deleverageExecute.ts +111 -0
  225. package/src/leverage/execute.ts +172 -0
  226. package/src/leverage/index.ts +88 -0
  227. package/src/leverage/math.ts +446 -0
  228. package/src/leverage/plan.ts +356 -0
  229. package/src/leverage/preflight.ts +63 -0
  230. package/src/leverage/types.ts +204 -0
  231. package/src/meta.ts +82 -0
  232. package/src/types.ts +25 -0
  233. package/src/views/accessManager.ts +286 -0
  234. package/src/views/adapters.ts +27 -0
  235. package/src/views/admin.ts +92 -0
  236. package/src/views/core.ts +1370 -0
  237. package/src/views/index.ts +11 -0
  238. package/src/views/lenders.ts +65 -0
  239. package/src/views/liquidators.ts +227 -0
  240. package/src/views/oracle.ts +739 -0
  241. package/src/views/pool.ts +277 -0
  242. package/src/views/system.ts +42 -0
  243. package/BACKEND.md +0 -404
  244. package/FRONTEND.md +0 -484
@@ -0,0 +1,1825 @@
1
+ // Auto-generated by varla-protocol/scripts/export-abi.ts
2
+ // Do not edit manually.
3
+ import type { Abi } from "viem";
4
+
5
+ export const VARLAORACLE_ABI = [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "address",
10
+ "name": "_authority",
11
+ "type": "address"
12
+ },
13
+ {
14
+ "internalType": "address",
15
+ "name": "_updater",
16
+ "type": "address"
17
+ },
18
+ {
19
+ "internalType": "address",
20
+ "name": "_collateral",
21
+ "type": "address"
22
+ }
23
+ ],
24
+ "stateMutability": "nonpayable",
25
+ "type": "constructor"
26
+ },
27
+ {
28
+ "inputs": [
29
+ {
30
+ "internalType": "address",
31
+ "name": "authority",
32
+ "type": "address"
33
+ }
34
+ ],
35
+ "name": "AccessManagedInvalidAuthority",
36
+ "type": "error"
37
+ },
38
+ {
39
+ "inputs": [
40
+ {
41
+ "internalType": "address",
42
+ "name": "caller",
43
+ "type": "address"
44
+ },
45
+ {
46
+ "internalType": "uint32",
47
+ "name": "delay",
48
+ "type": "uint32"
49
+ }
50
+ ],
51
+ "name": "AccessManagedRequiredDelay",
52
+ "type": "error"
53
+ },
54
+ {
55
+ "inputs": [
56
+ {
57
+ "internalType": "address",
58
+ "name": "caller",
59
+ "type": "address"
60
+ }
61
+ ],
62
+ "name": "AccessManagedUnauthorized",
63
+ "type": "error"
64
+ },
65
+ {
66
+ "inputs": [],
67
+ "name": "ArrayLengthMismatch",
68
+ "type": "error"
69
+ },
70
+ {
71
+ "inputs": [
72
+ {
73
+ "internalType": "uint256",
74
+ "name": "positionId",
75
+ "type": "uint256"
76
+ }
77
+ ],
78
+ "name": "DuplicateNegRiskPositionId",
79
+ "type": "error"
80
+ },
81
+ {
82
+ "inputs": [
83
+ {
84
+ "internalType": "uint256",
85
+ "name": "positionId",
86
+ "type": "uint256"
87
+ }
88
+ ],
89
+ "name": "EarlyClosureWindowActive",
90
+ "type": "error"
91
+ },
92
+ {
93
+ "inputs": [
94
+ {
95
+ "internalType": "bytes32",
96
+ "name": "marketId",
97
+ "type": "bytes32"
98
+ }
99
+ ],
100
+ "name": "EmptyNegRiskMarketPositions",
101
+ "type": "error"
102
+ },
103
+ {
104
+ "inputs": [],
105
+ "name": "InvalidAddress",
106
+ "type": "error"
107
+ },
108
+ {
109
+ "inputs": [
110
+ {
111
+ "internalType": "uint256",
112
+ "name": "value",
113
+ "type": "uint256"
114
+ }
115
+ ],
116
+ "name": "InvalidEarlyClosureWindow",
117
+ "type": "error"
118
+ },
119
+ {
120
+ "inputs": [
121
+ {
122
+ "internalType": "uint256",
123
+ "name": "priceE8",
124
+ "type": "uint256"
125
+ }
126
+ ],
127
+ "name": "InvalidFinalResolutionPrice",
128
+ "type": "error"
129
+ },
130
+ {
131
+ "inputs": [
132
+ {
133
+ "internalType": "uint256",
134
+ "name": "value",
135
+ "type": "uint256"
136
+ }
137
+ ],
138
+ "name": "InvalidLiquidationGracePeriod",
139
+ "type": "error"
140
+ },
141
+ {
142
+ "inputs": [
143
+ {
144
+ "internalType": "uint256",
145
+ "name": "value",
146
+ "type": "uint256"
147
+ }
148
+ ],
149
+ "name": "InvalidMaxStaleness",
150
+ "type": "error"
151
+ },
152
+ {
153
+ "inputs": [
154
+ {
155
+ "internalType": "uint256",
156
+ "name": "yesPositionId",
157
+ "type": "uint256"
158
+ },
159
+ {
160
+ "internalType": "uint256",
161
+ "name": "noPositionId",
162
+ "type": "uint256"
163
+ }
164
+ ],
165
+ "name": "InvalidOppositePositionPair",
166
+ "type": "error"
167
+ },
168
+ {
169
+ "inputs": [
170
+ {
171
+ "internalType": "uint256",
172
+ "name": "positionId",
173
+ "type": "uint256"
174
+ }
175
+ ],
176
+ "name": "InvalidPrice",
177
+ "type": "error"
178
+ },
179
+ {
180
+ "inputs": [
181
+ {
182
+ "internalType": "uint8",
183
+ "name": "tier",
184
+ "type": "uint8"
185
+ }
186
+ ],
187
+ "name": "InvalidRiskTier",
188
+ "type": "error"
189
+ },
190
+ {
191
+ "inputs": [
192
+ {
193
+ "internalType": "bytes32",
194
+ "name": "marketId",
195
+ "type": "bytes32"
196
+ }
197
+ ],
198
+ "name": "NegRiskMarketAlreadyRegistered",
199
+ "type": "error"
200
+ },
201
+ {
202
+ "inputs": [],
203
+ "name": "OnlyUpdater",
204
+ "type": "error"
205
+ },
206
+ {
207
+ "inputs": [
208
+ {
209
+ "internalType": "uint256",
210
+ "name": "positionId",
211
+ "type": "uint256"
212
+ }
213
+ ],
214
+ "name": "PositionNeverUpdated",
215
+ "type": "error"
216
+ },
217
+ {
218
+ "inputs": [
219
+ {
220
+ "internalType": "uint256",
221
+ "name": "positionId",
222
+ "type": "uint256"
223
+ }
224
+ ],
225
+ "name": "PositionNotConfigured",
226
+ "type": "error"
227
+ },
228
+ {
229
+ "inputs": [
230
+ {
231
+ "internalType": "uint256",
232
+ "name": "positionId",
233
+ "type": "uint256"
234
+ }
235
+ ],
236
+ "name": "PositionNotResolved",
237
+ "type": "error"
238
+ },
239
+ {
240
+ "inputs": [
241
+ {
242
+ "internalType": "uint256",
243
+ "name": "price",
244
+ "type": "uint256"
245
+ }
246
+ ],
247
+ "name": "PriceExceedsMax",
248
+ "type": "error"
249
+ },
250
+ {
251
+ "inputs": [
252
+ {
253
+ "internalType": "uint256",
254
+ "name": "positionId",
255
+ "type": "uint256"
256
+ },
257
+ {
258
+ "internalType": "uint256",
259
+ "name": "lastUpdated",
260
+ "type": "uint256"
261
+ },
262
+ {
263
+ "internalType": "uint256",
264
+ "name": "maxAge",
265
+ "type": "uint256"
266
+ }
267
+ ],
268
+ "name": "StalePrice",
269
+ "type": "error"
270
+ },
271
+ {
272
+ "anonymous": false,
273
+ "inputs": [
274
+ {
275
+ "indexed": false,
276
+ "internalType": "address",
277
+ "name": "authority",
278
+ "type": "address"
279
+ }
280
+ ],
281
+ "name": "AuthorityUpdated",
282
+ "type": "event"
283
+ },
284
+ {
285
+ "anonymous": false,
286
+ "inputs": [
287
+ {
288
+ "indexed": false,
289
+ "internalType": "uint256",
290
+ "name": "oldWindow",
291
+ "type": "uint256"
292
+ },
293
+ {
294
+ "indexed": false,
295
+ "internalType": "uint256",
296
+ "name": "newWindow",
297
+ "type": "uint256"
298
+ }
299
+ ],
300
+ "name": "DefaultEarlyClosureWindowUpdated",
301
+ "type": "event"
302
+ },
303
+ {
304
+ "anonymous": false,
305
+ "inputs": [
306
+ {
307
+ "indexed": false,
308
+ "internalType": "uint256",
309
+ "name": "oldGracePeriod",
310
+ "type": "uint256"
311
+ },
312
+ {
313
+ "indexed": false,
314
+ "internalType": "uint256",
315
+ "name": "newGracePeriod",
316
+ "type": "uint256"
317
+ }
318
+ ],
319
+ "name": "LiquidationGracePeriodUpdated",
320
+ "type": "event"
321
+ },
322
+ {
323
+ "anonymous": false,
324
+ "inputs": [
325
+ {
326
+ "indexed": false,
327
+ "internalType": "uint256",
328
+ "name": "oldMaxStaleness",
329
+ "type": "uint256"
330
+ },
331
+ {
332
+ "indexed": false,
333
+ "internalType": "uint256",
334
+ "name": "newMaxStaleness",
335
+ "type": "uint256"
336
+ }
337
+ ],
338
+ "name": "MaxStalenessUpdated",
339
+ "type": "event"
340
+ },
341
+ {
342
+ "anonymous": false,
343
+ "inputs": [
344
+ {
345
+ "indexed": true,
346
+ "internalType": "bytes32",
347
+ "name": "marketId",
348
+ "type": "bytes32"
349
+ },
350
+ {
351
+ "indexed": false,
352
+ "internalType": "uint256",
353
+ "name": "oldCount",
354
+ "type": "uint256"
355
+ },
356
+ {
357
+ "indexed": false,
358
+ "internalType": "uint256",
359
+ "name": "newCount",
360
+ "type": "uint256"
361
+ }
362
+ ],
363
+ "name": "NegRiskMarketPositionsOverridden",
364
+ "type": "event"
365
+ },
366
+ {
367
+ "anonymous": false,
368
+ "inputs": [
369
+ {
370
+ "indexed": true,
371
+ "internalType": "bytes32",
372
+ "name": "marketId",
373
+ "type": "bytes32"
374
+ },
375
+ {
376
+ "indexed": false,
377
+ "internalType": "uint256",
378
+ "name": "count",
379
+ "type": "uint256"
380
+ }
381
+ ],
382
+ "name": "NegRiskMarketPositionsRegistered",
383
+ "type": "event"
384
+ },
385
+ {
386
+ "anonymous": false,
387
+ "inputs": [
388
+ {
389
+ "indexed": true,
390
+ "internalType": "uint256",
391
+ "name": "positionId",
392
+ "type": "uint256"
393
+ },
394
+ {
395
+ "indexed": true,
396
+ "internalType": "bytes32",
397
+ "name": "marketId",
398
+ "type": "bytes32"
399
+ }
400
+ ],
401
+ "name": "NegRiskPositionConfigured",
402
+ "type": "event"
403
+ },
404
+ {
405
+ "anonymous": false,
406
+ "inputs": [
407
+ {
408
+ "indexed": true,
409
+ "internalType": "bytes32",
410
+ "name": "marketId",
411
+ "type": "bytes32"
412
+ },
413
+ {
414
+ "indexed": false,
415
+ "internalType": "uint256",
416
+ "name": "count",
417
+ "type": "uint256"
418
+ }
419
+ ],
420
+ "name": "NegRiskPositionsBatchConfigured",
421
+ "type": "event"
422
+ },
423
+ {
424
+ "anonymous": false,
425
+ "inputs": [
426
+ {
427
+ "indexed": true,
428
+ "internalType": "uint256",
429
+ "name": "yesPositionId",
430
+ "type": "uint256"
431
+ },
432
+ {
433
+ "indexed": true,
434
+ "internalType": "uint256",
435
+ "name": "noPositionId",
436
+ "type": "uint256"
437
+ }
438
+ ],
439
+ "name": "OppositePositionsConfigured",
440
+ "type": "event"
441
+ },
442
+ {
443
+ "anonymous": false,
444
+ "inputs": [
445
+ {
446
+ "indexed": true,
447
+ "internalType": "uint256",
448
+ "name": "positionId",
449
+ "type": "uint256"
450
+ },
451
+ {
452
+ "indexed": false,
453
+ "internalType": "uint8",
454
+ "name": "riskTier",
455
+ "type": "uint8"
456
+ },
457
+ {
458
+ "indexed": false,
459
+ "internalType": "bytes32",
460
+ "name": "conditionId",
461
+ "type": "bytes32"
462
+ },
463
+ {
464
+ "indexed": false,
465
+ "internalType": "uint256",
466
+ "name": "resolutionTime",
467
+ "type": "uint256"
468
+ }
469
+ ],
470
+ "name": "PositionConfigured",
471
+ "type": "event"
472
+ },
473
+ {
474
+ "anonymous": false,
475
+ "inputs": [
476
+ {
477
+ "indexed": true,
478
+ "internalType": "uint256",
479
+ "name": "positionId",
480
+ "type": "uint256"
481
+ },
482
+ {
483
+ "indexed": false,
484
+ "internalType": "bool",
485
+ "name": "isSet",
486
+ "type": "bool"
487
+ },
488
+ {
489
+ "indexed": false,
490
+ "internalType": "uint256",
491
+ "name": "window",
492
+ "type": "uint256"
493
+ }
494
+ ],
495
+ "name": "PositionEarlyClosureWindowOverrideUpdated",
496
+ "type": "event"
497
+ },
498
+ {
499
+ "anonymous": false,
500
+ "inputs": [
501
+ {
502
+ "indexed": true,
503
+ "internalType": "uint256",
504
+ "name": "positionId",
505
+ "type": "uint256"
506
+ },
507
+ {
508
+ "indexed": false,
509
+ "internalType": "uint256",
510
+ "name": "priceE8",
511
+ "type": "uint256"
512
+ }
513
+ ],
514
+ "name": "PositionFinalized",
515
+ "type": "event"
516
+ },
517
+ {
518
+ "anonymous": false,
519
+ "inputs": [
520
+ {
521
+ "indexed": true,
522
+ "internalType": "uint256",
523
+ "name": "positionId",
524
+ "type": "uint256"
525
+ },
526
+ {
527
+ "indexed": false,
528
+ "internalType": "string",
529
+ "name": "reason",
530
+ "type": "string"
531
+ }
532
+ ],
533
+ "name": "PositionInvalidated",
534
+ "type": "event"
535
+ },
536
+ {
537
+ "anonymous": false,
538
+ "inputs": [
539
+ {
540
+ "indexed": true,
541
+ "internalType": "uint256",
542
+ "name": "positionId",
543
+ "type": "uint256"
544
+ },
545
+ {
546
+ "indexed": false,
547
+ "internalType": "uint256",
548
+ "name": "finalPriceE8",
549
+ "type": "uint256"
550
+ }
551
+ ],
552
+ "name": "PositionResolvedEarly",
553
+ "type": "event"
554
+ },
555
+ {
556
+ "anonymous": false,
557
+ "inputs": [
558
+ {
559
+ "indexed": true,
560
+ "internalType": "uint256",
561
+ "name": "positionId",
562
+ "type": "uint256"
563
+ }
564
+ ],
565
+ "name": "PositionUnfinalized",
566
+ "type": "event"
567
+ },
568
+ {
569
+ "anonymous": false,
570
+ "inputs": [
571
+ {
572
+ "indexed": true,
573
+ "internalType": "uint256",
574
+ "name": "positionId",
575
+ "type": "uint256"
576
+ }
577
+ ],
578
+ "name": "PositionValidated",
579
+ "type": "event"
580
+ },
581
+ {
582
+ "anonymous": false,
583
+ "inputs": [
584
+ {
585
+ "indexed": true,
586
+ "internalType": "uint256",
587
+ "name": "positionId",
588
+ "type": "uint256"
589
+ },
590
+ {
591
+ "indexed": false,
592
+ "internalType": "uint256",
593
+ "name": "price",
594
+ "type": "uint256"
595
+ },
596
+ {
597
+ "indexed": false,
598
+ "internalType": "uint256",
599
+ "name": "twap",
600
+ "type": "uint256"
601
+ },
602
+ {
603
+ "indexed": false,
604
+ "internalType": "uint256",
605
+ "name": "liquidity",
606
+ "type": "uint256"
607
+ },
608
+ {
609
+ "indexed": false,
610
+ "internalType": "bool",
611
+ "name": "isValid",
612
+ "type": "bool"
613
+ }
614
+ ],
615
+ "name": "PriceUpdated",
616
+ "type": "event"
617
+ },
618
+ {
619
+ "anonymous": false,
620
+ "inputs": [
621
+ {
622
+ "indexed": true,
623
+ "internalType": "address",
624
+ "name": "oldUpdater",
625
+ "type": "address"
626
+ },
627
+ {
628
+ "indexed": true,
629
+ "internalType": "address",
630
+ "name": "newUpdater",
631
+ "type": "address"
632
+ }
633
+ ],
634
+ "name": "UpdaterChanged",
635
+ "type": "event"
636
+ },
637
+ {
638
+ "inputs": [],
639
+ "name": "DEFAULT_EARLY_CLOSURE_WINDOW",
640
+ "outputs": [
641
+ {
642
+ "internalType": "uint256",
643
+ "name": "",
644
+ "type": "uint256"
645
+ }
646
+ ],
647
+ "stateMutability": "view",
648
+ "type": "function"
649
+ },
650
+ {
651
+ "inputs": [],
652
+ "name": "DEFAULT_LIQUIDATION_GRACE_PERIOD",
653
+ "outputs": [
654
+ {
655
+ "internalType": "uint256",
656
+ "name": "",
657
+ "type": "uint256"
658
+ }
659
+ ],
660
+ "stateMutability": "view",
661
+ "type": "function"
662
+ },
663
+ {
664
+ "inputs": [],
665
+ "name": "DEFAULT_MAX_STALENESS",
666
+ "outputs": [
667
+ {
668
+ "internalType": "uint256",
669
+ "name": "",
670
+ "type": "uint256"
671
+ }
672
+ ],
673
+ "stateMutability": "view",
674
+ "type": "function"
675
+ },
676
+ {
677
+ "inputs": [],
678
+ "name": "MAX_EARLY_CLOSURE_WINDOW",
679
+ "outputs": [
680
+ {
681
+ "internalType": "uint256",
682
+ "name": "",
683
+ "type": "uint256"
684
+ }
685
+ ],
686
+ "stateMutability": "view",
687
+ "type": "function"
688
+ },
689
+ {
690
+ "inputs": [],
691
+ "name": "MAX_LIQUIDATION_GRACE_PERIOD",
692
+ "outputs": [
693
+ {
694
+ "internalType": "uint256",
695
+ "name": "",
696
+ "type": "uint256"
697
+ }
698
+ ],
699
+ "stateMutability": "view",
700
+ "type": "function"
701
+ },
702
+ {
703
+ "inputs": [],
704
+ "name": "MAX_MAX_STALENESS",
705
+ "outputs": [
706
+ {
707
+ "internalType": "uint256",
708
+ "name": "",
709
+ "type": "uint256"
710
+ }
711
+ ],
712
+ "stateMutability": "view",
713
+ "type": "function"
714
+ },
715
+ {
716
+ "inputs": [],
717
+ "name": "MAX_PRICE",
718
+ "outputs": [
719
+ {
720
+ "internalType": "uint256",
721
+ "name": "",
722
+ "type": "uint256"
723
+ }
724
+ ],
725
+ "stateMutability": "view",
726
+ "type": "function"
727
+ },
728
+ {
729
+ "inputs": [],
730
+ "name": "MIN_LIQUIDITY",
731
+ "outputs": [
732
+ {
733
+ "internalType": "uint256",
734
+ "name": "",
735
+ "type": "uint256"
736
+ }
737
+ ],
738
+ "stateMutability": "view",
739
+ "type": "function"
740
+ },
741
+ {
742
+ "inputs": [],
743
+ "name": "MIN_MAX_STALENESS",
744
+ "outputs": [
745
+ {
746
+ "internalType": "uint256",
747
+ "name": "",
748
+ "type": "uint256"
749
+ }
750
+ ],
751
+ "stateMutability": "view",
752
+ "type": "function"
753
+ },
754
+ {
755
+ "inputs": [],
756
+ "name": "PRICE_DECIMALS",
757
+ "outputs": [
758
+ {
759
+ "internalType": "uint256",
760
+ "name": "",
761
+ "type": "uint256"
762
+ }
763
+ ],
764
+ "stateMutability": "view",
765
+ "type": "function"
766
+ },
767
+ {
768
+ "inputs": [],
769
+ "name": "authority",
770
+ "outputs": [
771
+ {
772
+ "internalType": "address",
773
+ "name": "",
774
+ "type": "address"
775
+ }
776
+ ],
777
+ "stateMutability": "view",
778
+ "type": "function"
779
+ },
780
+ {
781
+ "inputs": [
782
+ {
783
+ "internalType": "uint256",
784
+ "name": "positionId",
785
+ "type": "uint256"
786
+ }
787
+ ],
788
+ "name": "clearPositionEarlyClosureWindowOverride",
789
+ "outputs": [],
790
+ "stateMutability": "nonpayable",
791
+ "type": "function"
792
+ },
793
+ {
794
+ "inputs": [],
795
+ "name": "collateralDecimals",
796
+ "outputs": [
797
+ {
798
+ "internalType": "uint8",
799
+ "name": "",
800
+ "type": "uint8"
801
+ }
802
+ ],
803
+ "stateMutability": "view",
804
+ "type": "function"
805
+ },
806
+ {
807
+ "inputs": [
808
+ {
809
+ "internalType": "uint256",
810
+ "name": "positionId",
811
+ "type": "uint256"
812
+ },
813
+ {
814
+ "internalType": "bytes32",
815
+ "name": "negRiskMarketId",
816
+ "type": "bytes32"
817
+ }
818
+ ],
819
+ "name": "configureNegRiskPosition",
820
+ "outputs": [],
821
+ "stateMutability": "nonpayable",
822
+ "type": "function"
823
+ },
824
+ {
825
+ "inputs": [
826
+ {
827
+ "internalType": "uint256[]",
828
+ "name": "positionIds",
829
+ "type": "uint256[]"
830
+ },
831
+ {
832
+ "internalType": "bytes32",
833
+ "name": "negRiskMarketId",
834
+ "type": "bytes32"
835
+ }
836
+ ],
837
+ "name": "configureNegRiskPositionsBatch",
838
+ "outputs": [],
839
+ "stateMutability": "nonpayable",
840
+ "type": "function"
841
+ },
842
+ {
843
+ "inputs": [
844
+ {
845
+ "internalType": "uint256",
846
+ "name": "yesPositionId",
847
+ "type": "uint256"
848
+ },
849
+ {
850
+ "internalType": "uint256",
851
+ "name": "noPositionId",
852
+ "type": "uint256"
853
+ }
854
+ ],
855
+ "name": "configureOppositePositions",
856
+ "outputs": [],
857
+ "stateMutability": "nonpayable",
858
+ "type": "function"
859
+ },
860
+ {
861
+ "inputs": [
862
+ {
863
+ "internalType": "uint256",
864
+ "name": "positionId",
865
+ "type": "uint256"
866
+ },
867
+ {
868
+ "internalType": "uint8",
869
+ "name": "riskTier",
870
+ "type": "uint8"
871
+ },
872
+ {
873
+ "internalType": "bytes32",
874
+ "name": "conditionId",
875
+ "type": "bytes32"
876
+ },
877
+ {
878
+ "internalType": "uint256",
879
+ "name": "resolutionTime",
880
+ "type": "uint256"
881
+ }
882
+ ],
883
+ "name": "configurePosition",
884
+ "outputs": [],
885
+ "stateMutability": "nonpayable",
886
+ "type": "function"
887
+ },
888
+ {
889
+ "inputs": [
890
+ {
891
+ "internalType": "uint256[]",
892
+ "name": "positionIds",
893
+ "type": "uint256[]"
894
+ },
895
+ {
896
+ "internalType": "uint8[]",
897
+ "name": "riskTiers",
898
+ "type": "uint8[]"
899
+ },
900
+ {
901
+ "internalType": "bytes32[]",
902
+ "name": "conditionIds",
903
+ "type": "bytes32[]"
904
+ },
905
+ {
906
+ "internalType": "uint256[]",
907
+ "name": "resolutionTimes",
908
+ "type": "uint256[]"
909
+ }
910
+ ],
911
+ "name": "configurePositionsBatch",
912
+ "outputs": [],
913
+ "stateMutability": "nonpayable",
914
+ "type": "function"
915
+ },
916
+ {
917
+ "inputs": [],
918
+ "name": "defaultEarlyClosureWindow",
919
+ "outputs": [
920
+ {
921
+ "internalType": "uint256",
922
+ "name": "",
923
+ "type": "uint256"
924
+ }
925
+ ],
926
+ "stateMutability": "view",
927
+ "type": "function"
928
+ },
929
+ {
930
+ "inputs": [
931
+ {
932
+ "internalType": "uint256",
933
+ "name": "positionId",
934
+ "type": "uint256"
935
+ }
936
+ ],
937
+ "name": "finalizePosition",
938
+ "outputs": [],
939
+ "stateMutability": "nonpayable",
940
+ "type": "function"
941
+ },
942
+ {
943
+ "inputs": [
944
+ {
945
+ "internalType": "uint256",
946
+ "name": "positionId",
947
+ "type": "uint256"
948
+ }
949
+ ],
950
+ "name": "getConditionId",
951
+ "outputs": [
952
+ {
953
+ "internalType": "bytes32",
954
+ "name": "",
955
+ "type": "bytes32"
956
+ }
957
+ ],
958
+ "stateMutability": "view",
959
+ "type": "function"
960
+ },
961
+ {
962
+ "inputs": [
963
+ {
964
+ "internalType": "uint256",
965
+ "name": "index",
966
+ "type": "uint256"
967
+ }
968
+ ],
969
+ "name": "getConfiguredPositionAt",
970
+ "outputs": [
971
+ {
972
+ "internalType": "uint256",
973
+ "name": "",
974
+ "type": "uint256"
975
+ }
976
+ ],
977
+ "stateMutability": "view",
978
+ "type": "function"
979
+ },
980
+ {
981
+ "inputs": [],
982
+ "name": "getConfiguredPositions",
983
+ "outputs": [
984
+ {
985
+ "internalType": "uint256[]",
986
+ "name": "",
987
+ "type": "uint256[]"
988
+ }
989
+ ],
990
+ "stateMutability": "view",
991
+ "type": "function"
992
+ },
993
+ {
994
+ "inputs": [],
995
+ "name": "getConfiguredPositionsCount",
996
+ "outputs": [
997
+ {
998
+ "internalType": "uint256",
999
+ "name": "",
1000
+ "type": "uint256"
1001
+ }
1002
+ ],
1003
+ "stateMutability": "view",
1004
+ "type": "function"
1005
+ },
1006
+ {
1007
+ "inputs": [
1008
+ {
1009
+ "internalType": "uint256",
1010
+ "name": "positionId",
1011
+ "type": "uint256"
1012
+ }
1013
+ ],
1014
+ "name": "getEarlyClosureFactor",
1015
+ "outputs": [
1016
+ {
1017
+ "internalType": "uint256",
1018
+ "name": "",
1019
+ "type": "uint256"
1020
+ }
1021
+ ],
1022
+ "stateMutability": "view",
1023
+ "type": "function"
1024
+ },
1025
+ {
1026
+ "inputs": [
1027
+ {
1028
+ "internalType": "uint256",
1029
+ "name": "positionId",
1030
+ "type": "uint256"
1031
+ }
1032
+ ],
1033
+ "name": "getEarlyClosureWindow",
1034
+ "outputs": [
1035
+ {
1036
+ "internalType": "uint256",
1037
+ "name": "",
1038
+ "type": "uint256"
1039
+ }
1040
+ ],
1041
+ "stateMutability": "view",
1042
+ "type": "function"
1043
+ },
1044
+ {
1045
+ "inputs": [
1046
+ {
1047
+ "internalType": "uint256",
1048
+ "name": "positionId",
1049
+ "type": "uint256"
1050
+ }
1051
+ ],
1052
+ "name": "getLastUpdated",
1053
+ "outputs": [
1054
+ {
1055
+ "internalType": "uint256",
1056
+ "name": "",
1057
+ "type": "uint256"
1058
+ }
1059
+ ],
1060
+ "stateMutability": "view",
1061
+ "type": "function"
1062
+ },
1063
+ {
1064
+ "inputs": [
1065
+ {
1066
+ "internalType": "uint256",
1067
+ "name": "positionId",
1068
+ "type": "uint256"
1069
+ }
1070
+ ],
1071
+ "name": "getLiquidity",
1072
+ "outputs": [
1073
+ {
1074
+ "internalType": "uint256",
1075
+ "name": "",
1076
+ "type": "uint256"
1077
+ }
1078
+ ],
1079
+ "stateMutability": "view",
1080
+ "type": "function"
1081
+ },
1082
+ {
1083
+ "inputs": [
1084
+ {
1085
+ "internalType": "uint256",
1086
+ "name": "positionId",
1087
+ "type": "uint256"
1088
+ }
1089
+ ],
1090
+ "name": "getNegRiskMarketId",
1091
+ "outputs": [
1092
+ {
1093
+ "internalType": "bytes32",
1094
+ "name": "",
1095
+ "type": "bytes32"
1096
+ }
1097
+ ],
1098
+ "stateMutability": "view",
1099
+ "type": "function"
1100
+ },
1101
+ {
1102
+ "inputs": [
1103
+ {
1104
+ "internalType": "bytes32",
1105
+ "name": "marketId",
1106
+ "type": "bytes32"
1107
+ }
1108
+ ],
1109
+ "name": "getNegRiskMarketPositionIds",
1110
+ "outputs": [
1111
+ {
1112
+ "internalType": "uint256[]",
1113
+ "name": "positionIds",
1114
+ "type": "uint256[]"
1115
+ }
1116
+ ],
1117
+ "stateMutability": "view",
1118
+ "type": "function"
1119
+ },
1120
+ {
1121
+ "inputs": [
1122
+ {
1123
+ "internalType": "uint256",
1124
+ "name": "positionId",
1125
+ "type": "uint256"
1126
+ }
1127
+ ],
1128
+ "name": "getOppositePositionId",
1129
+ "outputs": [
1130
+ {
1131
+ "internalType": "uint256",
1132
+ "name": "",
1133
+ "type": "uint256"
1134
+ }
1135
+ ],
1136
+ "stateMutability": "view",
1137
+ "type": "function"
1138
+ },
1139
+ {
1140
+ "inputs": [
1141
+ {
1142
+ "internalType": "uint256",
1143
+ "name": "positionId",
1144
+ "type": "uint256"
1145
+ }
1146
+ ],
1147
+ "name": "getPositionSnapshot",
1148
+ "outputs": [
1149
+ {
1150
+ "internalType": "bool",
1151
+ "name": "priceOk",
1152
+ "type": "bool"
1153
+ },
1154
+ {
1155
+ "internalType": "uint256",
1156
+ "name": "priceE8",
1157
+ "type": "uint256"
1158
+ },
1159
+ {
1160
+ "internalType": "bool",
1161
+ "name": "manuallyInvalidated",
1162
+ "type": "bool"
1163
+ },
1164
+ {
1165
+ "internalType": "uint8",
1166
+ "name": "riskTier",
1167
+ "type": "uint8"
1168
+ },
1169
+ {
1170
+ "internalType": "uint256",
1171
+ "name": "earlyClosureFactorWad",
1172
+ "type": "uint256"
1173
+ },
1174
+ {
1175
+ "internalType": "uint256",
1176
+ "name": "lastRecoveryFromStale_",
1177
+ "type": "uint256"
1178
+ }
1179
+ ],
1180
+ "stateMutability": "view",
1181
+ "type": "function"
1182
+ },
1183
+ {
1184
+ "inputs": [
1185
+ {
1186
+ "internalType": "uint256",
1187
+ "name": "positionId",
1188
+ "type": "uint256"
1189
+ }
1190
+ ],
1191
+ "name": "getPrice",
1192
+ "outputs": [
1193
+ {
1194
+ "internalType": "uint256",
1195
+ "name": "",
1196
+ "type": "uint256"
1197
+ }
1198
+ ],
1199
+ "stateMutability": "view",
1200
+ "type": "function"
1201
+ },
1202
+ {
1203
+ "inputs": [
1204
+ {
1205
+ "internalType": "uint256",
1206
+ "name": "positionId",
1207
+ "type": "uint256"
1208
+ }
1209
+ ],
1210
+ "name": "getPriceData",
1211
+ "outputs": [
1212
+ {
1213
+ "internalType": "uint256",
1214
+ "name": "price",
1215
+ "type": "uint256"
1216
+ },
1217
+ {
1218
+ "internalType": "uint256",
1219
+ "name": "twap",
1220
+ "type": "uint256"
1221
+ },
1222
+ {
1223
+ "internalType": "uint256",
1224
+ "name": "liquidity",
1225
+ "type": "uint256"
1226
+ },
1227
+ {
1228
+ "internalType": "uint256",
1229
+ "name": "lastUpdated",
1230
+ "type": "uint256"
1231
+ },
1232
+ {
1233
+ "internalType": "bool",
1234
+ "name": "isValid",
1235
+ "type": "bool"
1236
+ },
1237
+ {
1238
+ "internalType": "uint8",
1239
+ "name": "riskTier",
1240
+ "type": "uint8"
1241
+ }
1242
+ ],
1243
+ "stateMutability": "view",
1244
+ "type": "function"
1245
+ },
1246
+ {
1247
+ "inputs": [
1248
+ {
1249
+ "internalType": "uint256",
1250
+ "name": "positionId",
1251
+ "type": "uint256"
1252
+ }
1253
+ ],
1254
+ "name": "getResolutionTime",
1255
+ "outputs": [
1256
+ {
1257
+ "internalType": "uint256",
1258
+ "name": "",
1259
+ "type": "uint256"
1260
+ }
1261
+ ],
1262
+ "stateMutability": "view",
1263
+ "type": "function"
1264
+ },
1265
+ {
1266
+ "inputs": [
1267
+ {
1268
+ "internalType": "uint256",
1269
+ "name": "positionId",
1270
+ "type": "uint256"
1271
+ }
1272
+ ],
1273
+ "name": "getRiskTier",
1274
+ "outputs": [
1275
+ {
1276
+ "internalType": "uint8",
1277
+ "name": "",
1278
+ "type": "uint8"
1279
+ }
1280
+ ],
1281
+ "stateMutability": "view",
1282
+ "type": "function"
1283
+ },
1284
+ {
1285
+ "inputs": [
1286
+ {
1287
+ "internalType": "uint256",
1288
+ "name": "positionId",
1289
+ "type": "uint256"
1290
+ }
1291
+ ],
1292
+ "name": "getSpotPrice",
1293
+ "outputs": [
1294
+ {
1295
+ "internalType": "uint256",
1296
+ "name": "",
1297
+ "type": "uint256"
1298
+ }
1299
+ ],
1300
+ "stateMutability": "view",
1301
+ "type": "function"
1302
+ },
1303
+ {
1304
+ "inputs": [
1305
+ {
1306
+ "internalType": "uint256",
1307
+ "name": "positionId",
1308
+ "type": "uint256"
1309
+ }
1310
+ ],
1311
+ "name": "getTWAP",
1312
+ "outputs": [
1313
+ {
1314
+ "internalType": "uint256",
1315
+ "name": "",
1316
+ "type": "uint256"
1317
+ }
1318
+ ],
1319
+ "stateMutability": "view",
1320
+ "type": "function"
1321
+ },
1322
+ {
1323
+ "inputs": [
1324
+ {
1325
+ "internalType": "uint256",
1326
+ "name": "positionId",
1327
+ "type": "uint256"
1328
+ },
1329
+ {
1330
+ "internalType": "string",
1331
+ "name": "reason",
1332
+ "type": "string"
1333
+ }
1334
+ ],
1335
+ "name": "invalidatePosition",
1336
+ "outputs": [],
1337
+ "stateMutability": "nonpayable",
1338
+ "type": "function"
1339
+ },
1340
+ {
1341
+ "inputs": [
1342
+ {
1343
+ "internalType": "uint256",
1344
+ "name": "positionId",
1345
+ "type": "uint256"
1346
+ }
1347
+ ],
1348
+ "name": "isConfigured",
1349
+ "outputs": [
1350
+ {
1351
+ "internalType": "bool",
1352
+ "name": "",
1353
+ "type": "bool"
1354
+ }
1355
+ ],
1356
+ "stateMutability": "view",
1357
+ "type": "function"
1358
+ },
1359
+ {
1360
+ "inputs": [],
1361
+ "name": "isConsumingScheduledOp",
1362
+ "outputs": [
1363
+ {
1364
+ "internalType": "bytes4",
1365
+ "name": "",
1366
+ "type": "bytes4"
1367
+ }
1368
+ ],
1369
+ "stateMutability": "view",
1370
+ "type": "function"
1371
+ },
1372
+ {
1373
+ "inputs": [
1374
+ {
1375
+ "internalType": "uint256",
1376
+ "name": "positionId",
1377
+ "type": "uint256"
1378
+ }
1379
+ ],
1380
+ "name": "isDepositAllowed",
1381
+ "outputs": [
1382
+ {
1383
+ "internalType": "bool",
1384
+ "name": "",
1385
+ "type": "bool"
1386
+ }
1387
+ ],
1388
+ "stateMutability": "view",
1389
+ "type": "function"
1390
+ },
1391
+ {
1392
+ "inputs": [
1393
+ {
1394
+ "internalType": "uint256",
1395
+ "name": "positionId",
1396
+ "type": "uint256"
1397
+ }
1398
+ ],
1399
+ "name": "isFinalized",
1400
+ "outputs": [
1401
+ {
1402
+ "internalType": "bool",
1403
+ "name": "",
1404
+ "type": "bool"
1405
+ }
1406
+ ],
1407
+ "stateMutability": "view",
1408
+ "type": "function"
1409
+ },
1410
+ {
1411
+ "inputs": [
1412
+ {
1413
+ "internalType": "uint256",
1414
+ "name": "positionId",
1415
+ "type": "uint256"
1416
+ }
1417
+ ],
1418
+ "name": "isManuallyInvalidated",
1419
+ "outputs": [
1420
+ {
1421
+ "internalType": "bool",
1422
+ "name": "",
1423
+ "type": "bool"
1424
+ }
1425
+ ],
1426
+ "stateMutability": "view",
1427
+ "type": "function"
1428
+ },
1429
+ {
1430
+ "inputs": [
1431
+ {
1432
+ "internalType": "uint256",
1433
+ "name": "positionId",
1434
+ "type": "uint256"
1435
+ }
1436
+ ],
1437
+ "name": "isNegRisk",
1438
+ "outputs": [
1439
+ {
1440
+ "internalType": "bool",
1441
+ "name": "",
1442
+ "type": "bool"
1443
+ }
1444
+ ],
1445
+ "stateMutability": "view",
1446
+ "type": "function"
1447
+ },
1448
+ {
1449
+ "inputs": [
1450
+ {
1451
+ "internalType": "uint256",
1452
+ "name": "positionId",
1453
+ "type": "uint256"
1454
+ }
1455
+ ],
1456
+ "name": "isPriceStale",
1457
+ "outputs": [
1458
+ {
1459
+ "internalType": "bool",
1460
+ "name": "",
1461
+ "type": "bool"
1462
+ }
1463
+ ],
1464
+ "stateMutability": "view",
1465
+ "type": "function"
1466
+ },
1467
+ {
1468
+ "inputs": [
1469
+ {
1470
+ "internalType": "uint256",
1471
+ "name": "positionId",
1472
+ "type": "uint256"
1473
+ }
1474
+ ],
1475
+ "name": "isResolved",
1476
+ "outputs": [
1477
+ {
1478
+ "internalType": "bool",
1479
+ "name": "",
1480
+ "type": "bool"
1481
+ }
1482
+ ],
1483
+ "stateMutability": "view",
1484
+ "type": "function"
1485
+ },
1486
+ {
1487
+ "inputs": [
1488
+ {
1489
+ "internalType": "uint256",
1490
+ "name": "positionId",
1491
+ "type": "uint256"
1492
+ }
1493
+ ],
1494
+ "name": "isValidCollateral",
1495
+ "outputs": [
1496
+ {
1497
+ "internalType": "bool",
1498
+ "name": "",
1499
+ "type": "bool"
1500
+ }
1501
+ ],
1502
+ "stateMutability": "view",
1503
+ "type": "function"
1504
+ },
1505
+ {
1506
+ "inputs": [
1507
+ {
1508
+ "internalType": "uint256",
1509
+ "name": "positionId",
1510
+ "type": "uint256"
1511
+ }
1512
+ ],
1513
+ "name": "lastRecoveryFromStale",
1514
+ "outputs": [
1515
+ {
1516
+ "internalType": "uint256",
1517
+ "name": "",
1518
+ "type": "uint256"
1519
+ }
1520
+ ],
1521
+ "stateMutability": "view",
1522
+ "type": "function"
1523
+ },
1524
+ {
1525
+ "inputs": [],
1526
+ "name": "liquidationGracePeriod",
1527
+ "outputs": [
1528
+ {
1529
+ "internalType": "uint256",
1530
+ "name": "",
1531
+ "type": "uint256"
1532
+ }
1533
+ ],
1534
+ "stateMutability": "view",
1535
+ "type": "function"
1536
+ },
1537
+ {
1538
+ "inputs": [],
1539
+ "name": "maxStaleness",
1540
+ "outputs": [
1541
+ {
1542
+ "internalType": "uint256",
1543
+ "name": "",
1544
+ "type": "uint256"
1545
+ }
1546
+ ],
1547
+ "stateMutability": "view",
1548
+ "type": "function"
1549
+ },
1550
+ {
1551
+ "inputs": [
1552
+ {
1553
+ "internalType": "bytes32",
1554
+ "name": "marketId",
1555
+ "type": "bytes32"
1556
+ },
1557
+ {
1558
+ "internalType": "uint256[]",
1559
+ "name": "positionIds",
1560
+ "type": "uint256[]"
1561
+ }
1562
+ ],
1563
+ "name": "overrideNegRiskMarketPositions",
1564
+ "outputs": [],
1565
+ "stateMutability": "nonpayable",
1566
+ "type": "function"
1567
+ },
1568
+ {
1569
+ "inputs": [
1570
+ {
1571
+ "internalType": "bytes32",
1572
+ "name": "marketId",
1573
+ "type": "bytes32"
1574
+ },
1575
+ {
1576
+ "internalType": "uint256[]",
1577
+ "name": "positionIds",
1578
+ "type": "uint256[]"
1579
+ }
1580
+ ],
1581
+ "name": "registerNegRiskMarketPositions",
1582
+ "outputs": [],
1583
+ "stateMutability": "nonpayable",
1584
+ "type": "function"
1585
+ },
1586
+ {
1587
+ "inputs": [
1588
+ {
1589
+ "internalType": "uint256",
1590
+ "name": "positionId",
1591
+ "type": "uint256"
1592
+ },
1593
+ {
1594
+ "internalType": "uint256",
1595
+ "name": "finalPriceE8",
1596
+ "type": "uint256"
1597
+ }
1598
+ ],
1599
+ "name": "resolvePositionEarly",
1600
+ "outputs": [],
1601
+ "stateMutability": "nonpayable",
1602
+ "type": "function"
1603
+ },
1604
+ {
1605
+ "inputs": [
1606
+ {
1607
+ "internalType": "address",
1608
+ "name": "newAuthority",
1609
+ "type": "address"
1610
+ }
1611
+ ],
1612
+ "name": "setAuthority",
1613
+ "outputs": [],
1614
+ "stateMutability": "nonpayable",
1615
+ "type": "function"
1616
+ },
1617
+ {
1618
+ "inputs": [
1619
+ {
1620
+ "internalType": "uint256",
1621
+ "name": "newWindow",
1622
+ "type": "uint256"
1623
+ }
1624
+ ],
1625
+ "name": "setDefaultEarlyClosureWindow",
1626
+ "outputs": [],
1627
+ "stateMutability": "nonpayable",
1628
+ "type": "function"
1629
+ },
1630
+ {
1631
+ "inputs": [
1632
+ {
1633
+ "internalType": "uint256",
1634
+ "name": "newGracePeriod",
1635
+ "type": "uint256"
1636
+ }
1637
+ ],
1638
+ "name": "setLiquidationGracePeriod",
1639
+ "outputs": [],
1640
+ "stateMutability": "nonpayable",
1641
+ "type": "function"
1642
+ },
1643
+ {
1644
+ "inputs": [
1645
+ {
1646
+ "internalType": "uint256",
1647
+ "name": "newMaxStaleness",
1648
+ "type": "uint256"
1649
+ }
1650
+ ],
1651
+ "name": "setMaxStaleness",
1652
+ "outputs": [],
1653
+ "stateMutability": "nonpayable",
1654
+ "type": "function"
1655
+ },
1656
+ {
1657
+ "inputs": [
1658
+ {
1659
+ "internalType": "uint256",
1660
+ "name": "positionId",
1661
+ "type": "uint256"
1662
+ },
1663
+ {
1664
+ "internalType": "uint256",
1665
+ "name": "window",
1666
+ "type": "uint256"
1667
+ }
1668
+ ],
1669
+ "name": "setPositionEarlyClosureWindowOverride",
1670
+ "outputs": [],
1671
+ "stateMutability": "nonpayable",
1672
+ "type": "function"
1673
+ },
1674
+ {
1675
+ "inputs": [
1676
+ {
1677
+ "internalType": "uint256",
1678
+ "name": "positionId",
1679
+ "type": "uint256"
1680
+ },
1681
+ {
1682
+ "internalType": "uint256",
1683
+ "name": "finalPrice",
1684
+ "type": "uint256"
1685
+ }
1686
+ ],
1687
+ "name": "setResolutionPrice",
1688
+ "outputs": [],
1689
+ "stateMutability": "nonpayable",
1690
+ "type": "function"
1691
+ },
1692
+ {
1693
+ "inputs": [
1694
+ {
1695
+ "internalType": "address",
1696
+ "name": "_updater",
1697
+ "type": "address"
1698
+ }
1699
+ ],
1700
+ "name": "setUpdater",
1701
+ "outputs": [],
1702
+ "stateMutability": "nonpayable",
1703
+ "type": "function"
1704
+ },
1705
+ {
1706
+ "inputs": [
1707
+ {
1708
+ "internalType": "uint256",
1709
+ "name": "positionId",
1710
+ "type": "uint256"
1711
+ }
1712
+ ],
1713
+ "name": "tryGetPrice",
1714
+ "outputs": [
1715
+ {
1716
+ "internalType": "bool",
1717
+ "name": "ok",
1718
+ "type": "bool"
1719
+ },
1720
+ {
1721
+ "internalType": "uint256",
1722
+ "name": "price",
1723
+ "type": "uint256"
1724
+ }
1725
+ ],
1726
+ "stateMutability": "view",
1727
+ "type": "function"
1728
+ },
1729
+ {
1730
+ "inputs": [
1731
+ {
1732
+ "internalType": "uint256",
1733
+ "name": "positionId",
1734
+ "type": "uint256"
1735
+ }
1736
+ ],
1737
+ "name": "unfinalizePosition",
1738
+ "outputs": [],
1739
+ "stateMutability": "nonpayable",
1740
+ "type": "function"
1741
+ },
1742
+ {
1743
+ "inputs": [
1744
+ {
1745
+ "internalType": "uint256",
1746
+ "name": "positionId",
1747
+ "type": "uint256"
1748
+ },
1749
+ {
1750
+ "internalType": "uint256",
1751
+ "name": "price",
1752
+ "type": "uint256"
1753
+ },
1754
+ {
1755
+ "internalType": "uint256",
1756
+ "name": "twap",
1757
+ "type": "uint256"
1758
+ },
1759
+ {
1760
+ "internalType": "uint256",
1761
+ "name": "liquidity",
1762
+ "type": "uint256"
1763
+ }
1764
+ ],
1765
+ "name": "updatePrice",
1766
+ "outputs": [],
1767
+ "stateMutability": "nonpayable",
1768
+ "type": "function"
1769
+ },
1770
+ {
1771
+ "inputs": [
1772
+ {
1773
+ "internalType": "uint256[]",
1774
+ "name": "positionIds",
1775
+ "type": "uint256[]"
1776
+ },
1777
+ {
1778
+ "internalType": "uint256[]",
1779
+ "name": "priceList",
1780
+ "type": "uint256[]"
1781
+ },
1782
+ {
1783
+ "internalType": "uint256[]",
1784
+ "name": "twapList",
1785
+ "type": "uint256[]"
1786
+ },
1787
+ {
1788
+ "internalType": "uint256[]",
1789
+ "name": "liquidityList",
1790
+ "type": "uint256[]"
1791
+ }
1792
+ ],
1793
+ "name": "updatePrices",
1794
+ "outputs": [],
1795
+ "stateMutability": "nonpayable",
1796
+ "type": "function"
1797
+ },
1798
+ {
1799
+ "inputs": [],
1800
+ "name": "updater",
1801
+ "outputs": [
1802
+ {
1803
+ "internalType": "address",
1804
+ "name": "",
1805
+ "type": "address"
1806
+ }
1807
+ ],
1808
+ "stateMutability": "view",
1809
+ "type": "function"
1810
+ },
1811
+ {
1812
+ "inputs": [
1813
+ {
1814
+ "internalType": "uint256",
1815
+ "name": "positionId",
1816
+ "type": "uint256"
1817
+ }
1818
+ ],
1819
+ "name": "validatePosition",
1820
+ "outputs": [],
1821
+ "stateMutability": "nonpayable",
1822
+ "type": "function"
1823
+ }
1824
+ ] as const satisfies Abi;
1825
+