@somnia-chain/contracts-sdk 0.3.9 → 0.3.14

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 (90) hide show
  1. package/dist/gen/abi/prophecy-oracle/OracleCore.js +6 -0
  2. package/dist/gen/abi/prophecy-oracle/OracleEntryPoint.d.ts +2 -2
  3. package/dist/gen/abi/prophecy-oracle/OracleEntryPoint.js +8 -2
  4. package/dist/gen/abi/prophecy-oracle/PriceFeedScheduler.js +6 -0
  5. package/dist/gen/abi/prophecy-oracle/QuestionModerationRegistry.js +6 -0
  6. package/dist/gen/abi/prophecy-oracle/QuestionNameRegistry.js +6 -0
  7. package/dist/gen/abi/somnia-agents/agentRegistry.js +7 -0
  8. package/dist/gen/abi/somnia-dex-protocol/dream-vault.implementation.d.ts +2 -2
  9. package/dist/gen/abi/somnia-dex-protocol/dream-vault.implementation.js +7 -2
  10. package/dist/gen/abi/somnia-dex-protocol/perp-liquidation-swapper.implementation.d.ts +2 -2
  11. package/dist/gen/abi/somnia-dex-protocol/perp-liquidation-swapper.implementation.js +2 -6
  12. package/dist/gen/abi/somnia-dex-protocol/perps-protocol.LIT-PERP_baseToken.d.ts +2 -0
  13. package/dist/gen/abi/somnia-dex-protocol/perps-protocol.LIT-PERP_baseToken.js +3 -0
  14. package/dist/gen/abi/somnia-dex-protocol/perps-protocol.WTI-PERP_baseToken.d.ts +2 -0
  15. package/dist/gen/abi/somnia-dex-protocol/perps-protocol.WTI-PERP_baseToken.js +3 -0
  16. package/dist/gen/abi/somnia-dex-protocol/perps-protocol.ZEC-PERP_baseToken.d.ts +2 -0
  17. package/dist/gen/abi/somnia-dex-protocol/perps-protocol.ZEC-PERP_baseToken.js +3 -0
  18. package/dist/gen/abi/somnia-dex-protocol/perps-protocol.perpsKeeperLens.d.ts +2 -0
  19. package/dist/gen/abi/somnia-dex-protocol/perps-protocol.perpsKeeperLens.js +3 -0
  20. package/dist/gen/abi/somnia-dex-protocol/perps.perpStopOrderRegistries.COIN.d.ts +2 -0
  21. package/dist/gen/abi/somnia-dex-protocol/perps.perpStopOrderRegistries.COIN.js +3 -0
  22. package/dist/gen/abi/somnia-dex-protocol/perps.perpStopOrderRegistries.GOOGL.d.ts +2 -0
  23. package/dist/gen/abi/somnia-dex-protocol/perps.perpStopOrderRegistries.GOOGL.js +3 -0
  24. package/dist/gen/abi/somnia-dex-protocol/perps.perpStopOrderRegistries.HOOD.d.ts +2 -0
  25. package/dist/gen/abi/somnia-dex-protocol/perps.perpStopOrderRegistries.HOOD.js +3 -0
  26. package/dist/gen/abi/somnia-dex-protocol/perps.perpStopOrderRegistries.HYNX.d.ts +2 -0
  27. package/dist/gen/abi/somnia-dex-protocol/perps.perpStopOrderRegistries.HYNX.js +3 -0
  28. package/dist/gen/abi/somnia-dex-protocol/perps.perpStopOrderRegistries.INTC.d.ts +2 -0
  29. package/dist/gen/abi/somnia-dex-protocol/perps.perpStopOrderRegistries.INTC.js +3 -0
  30. package/dist/gen/abi/somnia-dex-protocol/perps.perpStopOrderRegistries.LITE.d.ts +2 -0
  31. package/dist/gen/abi/somnia-dex-protocol/perps.perpStopOrderRegistries.LITE.js +3 -0
  32. package/dist/gen/abi/somnia-dex-protocol/perps.perpStopOrderRegistries.MRVL.d.ts +2 -0
  33. package/dist/gen/abi/somnia-dex-protocol/perps.perpStopOrderRegistries.MRVL.js +3 -0
  34. package/dist/gen/abi/somnia-dex-protocol/perps.perpStopOrderRegistries.MSTR.d.ts +2 -0
  35. package/dist/gen/abi/somnia-dex-protocol/perps.perpStopOrderRegistries.MSTR.js +3 -0
  36. package/dist/gen/abi/somnia-dex-protocol/perps.perpStopOrderRegistries.TSLA.d.ts +2 -0
  37. package/dist/gen/abi/somnia-dex-protocol/perps.perpStopOrderRegistries.TSLA.js +3 -0
  38. package/dist/gen/abi/somnia-dex-protocol/perps.perpStopOrderRegistries.WTI.d.ts +2 -0
  39. package/dist/gen/abi/somnia-dex-protocol/perps.perpStopOrderRegistries.WTI.js +3 -0
  40. package/dist/gen/abi/somnia-dex-protocol/perps.perpStopOrderRegistries.XAG.d.ts +2 -0
  41. package/dist/gen/abi/somnia-dex-protocol/perps.perpStopOrderRegistries.XAG.js +3 -0
  42. package/dist/gen/abi/somnia-dex-protocol/perps.perpStopOrderRegistries.XAU.d.ts +2 -0
  43. package/dist/gen/abi/somnia-dex-protocol/perps.perpStopOrderRegistries.XAU.js +3 -0
  44. package/dist/gen/abi/somnia-dex-protocol/spot-pool.SpotPool_Implementation.js +4 -0
  45. package/dist/gen/abi/somnia-dex-protocol/stop-order-registries.spotStopOrderRegistryImplementation.d.ts +2 -2
  46. package/dist/gen/abi/somnia-dex-protocol/stop-order-registries.spotStopOrderRegistryImplementation.js +2 -6
  47. package/dist/gen/abi/somnia-dex-protocol/stop-order-registries.stopOrderRegistries.USDT_USDso.d.ts +2 -0
  48. package/dist/gen/abi/somnia-dex-protocol/stop-order-registries.stopOrderRegistries.USDT_USDso.js +3 -0
  49. package/dist/gen/abi/somnia-dex-protocol/stop-order-registries.stopOrderRegistries.bWBTC_USDso.d.ts +2 -0
  50. package/dist/gen/abi/somnia-dex-protocol/stop-order-registries.stopOrderRegistries.bWBTC_USDso.js +3 -0
  51. package/dist/gen/abi/somnia-dex-protocol/stop-order-registries.stopOrderRegistries.bWETH_USDso.d.ts +2 -0
  52. package/dist/gen/abi/somnia-dex-protocol/stop-order-registries.stopOrderRegistries.bWETH_USDso.js +3 -0
  53. package/dist/gen/abi/somnia-markets/FeedMarketCreatorFactory.d.ts +2 -0
  54. package/dist/gen/abi/somnia-markets/FeedMarketCreatorFactory.js +3 -0
  55. package/dist/gen/abi/somnia-markets/SomiLock.d.ts +2 -2
  56. package/dist/gen/abi/somnia-markets/SomiLock.js +2 -2
  57. package/dist/gen/abi/somnia-markets/UserVaultFactory.d.ts +2 -0
  58. package/dist/gen/abi/somnia-markets/UserVaultFactory.js +3 -0
  59. package/dist/gen/abi/somnia-markets/UserVaultImpl.d.ts +2 -0
  60. package/dist/gen/abi/somnia-markets/UserVaultImpl.js +3 -0
  61. package/dist/gen/abi/somnia-markets/venue-1.marketCreator.js +1 -0
  62. package/dist/gen/abis/1d0ea05bc53d.d.ts +231 -0
  63. package/dist/gen/abis/1d0ea05bc53d.js +301 -0
  64. package/dist/gen/abis/32cc7a5169e1.d.ts +1704 -0
  65. package/dist/gen/abis/32cc7a5169e1.js +2200 -0
  66. package/dist/gen/abis/49ad550ed87e.d.ts +692 -0
  67. package/dist/gen/abis/49ad550ed87e.js +897 -0
  68. package/dist/gen/abis/4a5210d62566.d.ts +2197 -0
  69. package/dist/gen/abis/4a5210d62566.js +2834 -0
  70. package/dist/gen/abis/{1a2db3035880.d.ts → 59f72604787a.d.ts} +419 -497
  71. package/dist/gen/abis/{1a2db3035880.js → 59f72604787a.js} +482 -576
  72. package/dist/gen/abis/{9818d0265866.d.ts → 5a4a0858050e.d.ts} +486 -472
  73. package/dist/gen/abis/{9818d0265866.js → 5a4a0858050e.js} +563 -531
  74. package/dist/gen/abis/914f4b7b21d6.d.ts +853 -0
  75. package/dist/gen/abis/914f4b7b21d6.js +1118 -0
  76. package/dist/gen/abis/{afc6a4821e4a.d.ts → ac9568ce34c8.d.ts} +260 -3
  77. package/dist/gen/abis/{afc6a4821e4a.js → ac9568ce34c8.js} +332 -3
  78. package/dist/gen/abis/d0e583337129.d.ts +575 -0
  79. package/dist/gen/abis/d0e583337129.js +741 -0
  80. package/dist/gen/abis/d4649fdaaab6.d.ts +713 -0
  81. package/dist/gen/abis/d4649fdaaab6.js +925 -0
  82. package/dist/gen/abis/ee870f549cb8.d.ts +888 -0
  83. package/dist/gen/abis/ee870f549cb8.js +1147 -0
  84. package/dist/gen/abis-index.d.ts +134 -46682
  85. package/dist/gen/abis-index.js +22 -6
  86. package/dist/gen/meta.d.ts +2 -2
  87. package/dist/gen/meta.js +2 -2
  88. package/dist/gen/registry.d.ts +1928 -33
  89. package/dist/gen/registry.js +1930 -33
  90. package/package.json +1 -1
@@ -1,22 +1,18 @@
1
1
  // Generated by `registry sdk` from dist-public/ — do not edit.
2
- export const abi_1a2db3035880 = [
2
+ export const abi_59f72604787a = [
3
3
  {
4
4
  "inputs": [],
5
5
  "stateMutability": "nonpayable",
6
6
  "type": "constructor"
7
7
  },
8
- {
9
- "stateMutability": "payable",
10
- "type": "receive"
11
- },
12
8
  {
13
9
  "inputs": [],
14
- "name": "UPGRADE_INTERFACE_VERSION",
10
+ "name": "MAX_DESCRIPTION_BYTES",
15
11
  "outputs": [
16
12
  {
17
- "internalType": "string",
13
+ "internalType": "uint256",
18
14
  "name": "",
19
- "type": "string"
15
+ "type": "uint256"
20
16
  }
21
17
  ],
22
18
  "stateMutability": "view",
@@ -24,114 +20,50 @@ export const abi_1a2db3035880 = [
24
20
  },
25
21
  {
26
22
  "inputs": [],
27
- "name": "acceptOwnership",
28
- "outputs": [],
29
- "stateMutability": "nonpayable",
30
- "type": "function"
31
- },
32
- {
33
- "inputs": [
34
- {
35
- "internalType": "address[]",
36
- "name": "accounts",
37
- "type": "address[]"
38
- },
39
- {
40
- "components": [
41
- {
42
- "internalType": "uint256",
43
- "name": "limitPrice",
44
- "type": "uint256"
45
- },
46
- {
47
- "internalType": "address",
48
- "name": "recipient",
49
- "type": "address"
50
- }
51
- ],
52
- "internalType": "struct IPerpLiquidationSwapper.KeeperSwapRequest",
53
- "name": "request",
54
- "type": "tuple"
55
- }
56
- ],
57
- "name": "batchLiquidateAndSwap",
23
+ "name": "MAX_NAME_BYTES",
58
24
  "outputs": [
59
25
  {
60
26
  "internalType": "uint256",
61
- "name": "liquidatedCount",
62
- "type": "uint256"
63
- },
64
- {
65
- "internalType": "uint256",
66
- "name": "totalFeesCharged",
27
+ "name": "",
67
28
  "type": "uint256"
68
- },
69
- {
70
- "components": [
71
- {
72
- "internalType": "uint256",
73
- "name": "rewardEarned",
74
- "type": "uint256"
75
- },
76
- {
77
- "internalType": "uint256",
78
- "name": "rewardWithdrawn",
79
- "type": "uint256"
80
- },
81
- {
82
- "internalType": "uint256",
83
- "name": "collateralIn",
84
- "type": "uint256"
85
- },
86
- {
87
- "internalType": "uint256",
88
- "name": "nativeOut",
89
- "type": "uint256"
90
- },
91
- {
92
- "internalType": "uint256",
93
- "name": "collateralOut",
94
- "type": "uint256"
95
- }
96
- ],
97
- "internalType": "struct IPerpLiquidationSwapper.KeeperPayout",
98
- "name": "payout",
99
- "type": "tuple"
100
29
  }
101
30
  ],
102
- "stateMutability": "nonpayable",
31
+ "stateMutability": "view",
103
32
  "type": "function"
104
33
  },
105
34
  {
106
35
  "inputs": [],
107
- "name": "fundRefundPot",
108
- "outputs": [],
109
- "stateMutability": "payable",
36
+ "name": "MAX_PROFIT_SHARE_BPS",
37
+ "outputs": [
38
+ {
39
+ "internalType": "uint16",
40
+ "name": "",
41
+ "type": "uint16"
42
+ }
43
+ ],
44
+ "stateMutability": "view",
110
45
  "type": "function"
111
46
  },
112
47
  {
113
- "inputs": [
48
+ "inputs": [],
49
+ "name": "MAX_SLIPPAGE_CAP_BPS",
50
+ "outputs": [
114
51
  {
115
- "internalType": "address",
116
- "name": "keeper",
117
- "type": "address"
52
+ "internalType": "uint16",
53
+ "name": "",
54
+ "type": "uint16"
118
55
  }
119
56
  ],
120
- "name": "getCallerWindowSpend",
57
+ "stateMutability": "view",
58
+ "type": "function"
59
+ },
60
+ {
61
+ "inputs": [],
62
+ "name": "MIN_SEED_FLOOR",
121
63
  "outputs": [
122
- {
123
- "internalType": "uint64",
124
- "name": "windowId",
125
- "type": "uint64"
126
- },
127
- {
128
- "internalType": "uint256",
129
- "name": "spent",
130
- "type": "uint256"
131
- },
132
64
  {
133
65
  "internalType": "uint256",
134
- "name": "remaining",
66
+ "name": "",
135
67
  "type": "uint256"
136
68
  }
137
69
  ],
@@ -140,32 +72,12 @@ export const abi_1a2db3035880 = [
140
72
  },
141
73
  {
142
74
  "inputs": [],
143
- "name": "getConfig",
75
+ "name": "UPGRADE_INTERFACE_VERSION",
144
76
  "outputs": [
145
77
  {
146
- "internalType": "address",
147
- "name": "liquidationEngine",
148
- "type": "address"
149
- },
150
- {
151
- "internalType": "address",
152
- "name": "marginBank",
153
- "type": "address"
154
- },
155
- {
156
- "internalType": "address",
157
- "name": "collateralToken",
158
- "type": "address"
159
- },
160
- {
161
- "internalType": "address",
162
- "name": "spotPool",
163
- "type": "address"
164
- },
165
- {
166
- "internalType": "address",
167
- "name": "spotPoolRegistry",
168
- "type": "address"
78
+ "internalType": "string",
79
+ "name": "",
80
+ "type": "string"
169
81
  }
170
82
  ],
171
83
  "stateMutability": "view",
@@ -173,22 +85,19 @@ export const abi_1a2db3035880 = [
173
85
  },
174
86
  {
175
87
  "inputs": [],
176
- "name": "getGlobalWindowSpend",
88
+ "name": "acceptOwnership",
89
+ "outputs": [],
90
+ "stateMutability": "nonpayable",
91
+ "type": "function"
92
+ },
93
+ {
94
+ "inputs": [],
95
+ "name": "beacon",
177
96
  "outputs": [
178
97
  {
179
- "internalType": "uint64",
180
- "name": "windowId",
181
- "type": "uint64"
182
- },
183
- {
184
- "internalType": "uint256",
185
- "name": "spent",
186
- "type": "uint256"
187
- },
188
- {
189
- "internalType": "uint256",
190
- "name": "remaining",
191
- "type": "uint256"
98
+ "internalType": "address",
99
+ "name": "",
100
+ "type": "address"
192
101
  }
193
102
  ],
194
103
  "stateMutability": "view",
@@ -196,11 +105,11 @@ export const abi_1a2db3035880 = [
196
105
  },
197
106
  {
198
107
  "inputs": [],
199
- "name": "getKeeperEligibility",
108
+ "name": "collateralToken",
200
109
  "outputs": [
201
110
  {
202
111
  "internalType": "address",
203
- "name": "eligibility",
112
+ "name": "",
204
113
  "type": "address"
205
114
  }
206
115
  ],
@@ -208,53 +117,106 @@ export const abi_1a2db3035880 = [
208
117
  "type": "function"
209
118
  },
210
119
  {
211
- "inputs": [],
212
- "name": "getRefundParams",
213
- "outputs": [
120
+ "inputs": [
214
121
  {
215
122
  "components": [
216
123
  {
217
- "internalType": "uint128",
218
- "name": "maxRefundPerCall",
219
- "type": "uint128"
124
+ "internalType": "uint256",
125
+ "name": "seed",
126
+ "type": "uint256"
220
127
  },
221
128
  {
222
- "internalType": "uint64",
223
- "name": "maxRefundGasPrice",
224
- "type": "uint64"
129
+ "internalType": "uint16",
130
+ "name": "profitShareBps",
131
+ "type": "uint16"
225
132
  },
226
133
  {
227
- "internalType": "uint32",
228
- "name": "windowSeconds",
229
- "type": "uint32"
134
+ "internalType": "uint256",
135
+ "name": "depositCap",
136
+ "type": "uint256"
137
+ },
138
+ {
139
+ "internalType": "enum IUserVaultFactory.Strategy",
140
+ "name": "strategy",
141
+ "type": "uint8"
230
142
  },
231
143
  {
232
- "internalType": "uint128",
233
- "name": "perCallerWindowCap",
234
- "type": "uint128"
144
+ "internalType": "string",
145
+ "name": "name",
146
+ "type": "string"
235
147
  },
236
148
  {
237
- "internalType": "uint128",
238
- "name": "globalWindowCap",
239
- "type": "uint128"
149
+ "internalType": "string",
150
+ "name": "description",
151
+ "type": "string"
240
152
  }
241
153
  ],
242
- "internalType": "struct IPerpLiquidationSwapper.RefundParams",
154
+ "internalType": "struct IUserVaultFactory.CreateVaultParams",
243
155
  "name": "params",
244
156
  "type": "tuple"
245
157
  }
246
158
  ],
247
- "stateMutability": "view",
159
+ "name": "createVault",
160
+ "outputs": [
161
+ {
162
+ "internalType": "address",
163
+ "name": "vault",
164
+ "type": "address"
165
+ }
166
+ ],
167
+ "stateMutability": "payable",
248
168
  "type": "function"
249
169
  },
250
170
  {
251
171
  "inputs": [],
252
- "name": "getRefundPot",
172
+ "name": "getVaultParameters",
253
173
  "outputs": [
254
174
  {
255
- "internalType": "uint256",
256
- "name": "pot",
257
- "type": "uint256"
175
+ "components": [
176
+ {
177
+ "internalType": "uint256",
178
+ "name": "stakeAmount",
179
+ "type": "uint256"
180
+ },
181
+ {
182
+ "internalType": "uint256",
183
+ "name": "minSeed",
184
+ "type": "uint256"
185
+ },
186
+ {
187
+ "internalType": "uint256",
188
+ "name": "minDeposit",
189
+ "type": "uint256"
190
+ },
191
+ {
192
+ "internalType": "uint256",
193
+ "name": "creationFee",
194
+ "type": "uint256"
195
+ },
196
+ {
197
+ "internalType": "address",
198
+ "name": "creationFeeToken",
199
+ "type": "address"
200
+ },
201
+ {
202
+ "internalType": "address",
203
+ "name": "creationFeeRecipient",
204
+ "type": "address"
205
+ },
206
+ {
207
+ "internalType": "uint16",
208
+ "name": "maxSlippageBps",
209
+ "type": "uint16"
210
+ },
211
+ {
212
+ "internalType": "uint32",
213
+ "name": "minLockTerm",
214
+ "type": "uint32"
215
+ }
216
+ ],
217
+ "internalType": "struct IUserVaultFactory.VaultParameters",
218
+ "name": "",
219
+ "type": "tuple"
258
220
  }
259
221
  ],
260
222
  "stateMutability": "view",
@@ -264,59 +226,84 @@ export const abi_1a2db3035880 = [
264
226
  "inputs": [
265
227
  {
266
228
  "internalType": "address",
267
- "name": "liquidationEngine_",
229
+ "name": "owner_",
230
+ "type": "address"
231
+ },
232
+ {
233
+ "internalType": "address",
234
+ "name": "beaconOwner",
268
235
  "type": "address"
269
236
  },
270
237
  {
271
238
  "internalType": "address",
272
- "name": "spotPool_",
239
+ "name": "vaultImplementation",
273
240
  "type": "address"
274
241
  },
275
242
  {
276
243
  "internalType": "address",
277
- "name": "spotPoolRegistry_",
244
+ "name": "marginBank_",
278
245
  "type": "address"
279
246
  },
280
247
  {
281
248
  "internalType": "address",
282
- "name": "initialOwner",
249
+ "name": "collateralToken_",
283
250
  "type": "address"
284
251
  },
285
252
  {
286
253
  "internalType": "address",
287
- "name": "eligibility_",
254
+ "name": "somiLock_",
255
+ "type": "address"
256
+ },
257
+ {
258
+ "internalType": "address",
259
+ "name": "operatorRegistry_",
288
260
  "type": "address"
289
261
  },
290
262
  {
291
263
  "components": [
292
264
  {
293
- "internalType": "uint128",
294
- "name": "maxRefundPerCall",
295
- "type": "uint128"
265
+ "internalType": "uint256",
266
+ "name": "stakeAmount",
267
+ "type": "uint256"
296
268
  },
297
269
  {
298
- "internalType": "uint64",
299
- "name": "maxRefundGasPrice",
300
- "type": "uint64"
270
+ "internalType": "uint256",
271
+ "name": "minSeed",
272
+ "type": "uint256"
301
273
  },
302
274
  {
303
- "internalType": "uint32",
304
- "name": "windowSeconds",
305
- "type": "uint32"
275
+ "internalType": "uint256",
276
+ "name": "minDeposit",
277
+ "type": "uint256"
306
278
  },
307
279
  {
308
- "internalType": "uint128",
309
- "name": "perCallerWindowCap",
310
- "type": "uint128"
280
+ "internalType": "uint256",
281
+ "name": "creationFee",
282
+ "type": "uint256"
311
283
  },
312
284
  {
313
- "internalType": "uint128",
314
- "name": "globalWindowCap",
315
- "type": "uint128"
285
+ "internalType": "address",
286
+ "name": "creationFeeToken",
287
+ "type": "address"
288
+ },
289
+ {
290
+ "internalType": "address",
291
+ "name": "creationFeeRecipient",
292
+ "type": "address"
293
+ },
294
+ {
295
+ "internalType": "uint16",
296
+ "name": "maxSlippageBps",
297
+ "type": "uint16"
298
+ },
299
+ {
300
+ "internalType": "uint32",
301
+ "name": "minLockTerm",
302
+ "type": "uint32"
316
303
  }
317
304
  ],
318
- "internalType": "struct IPerpLiquidationSwapper.RefundParams",
319
- "name": "params_",
305
+ "internalType": "struct IUserVaultFactory.VaultParameters",
306
+ "name": "params",
320
307
  "type": "tuple"
321
308
  }
322
309
  ],
@@ -326,21 +313,46 @@ export const abi_1a2db3035880 = [
326
313
  "type": "function"
327
314
  },
328
315
  {
329
- "inputs": [],
330
- "name": "owner",
331
- "outputs": [
316
+ "inputs": [
332
317
  {
333
318
  "internalType": "address",
319
+ "name": "vault",
320
+ "type": "address"
321
+ }
322
+ ],
323
+ "name": "isVault",
324
+ "outputs": [
325
+ {
326
+ "internalType": "bool",
334
327
  "name": "",
328
+ "type": "bool"
329
+ }
330
+ ],
331
+ "stateMutability": "view",
332
+ "type": "function"
333
+ },
334
+ {
335
+ "inputs": [
336
+ {
337
+ "internalType": "address",
338
+ "name": "vault",
335
339
  "type": "address"
336
340
  }
337
341
  ],
342
+ "name": "lockedStakeOf",
343
+ "outputs": [
344
+ {
345
+ "internalType": "uint256",
346
+ "name": "",
347
+ "type": "uint256"
348
+ }
349
+ ],
338
350
  "stateMutability": "view",
339
351
  "type": "function"
340
352
  },
341
353
  {
342
354
  "inputs": [],
343
- "name": "pendingOwner",
355
+ "name": "marginBank",
344
356
  "outputs": [
345
357
  {
346
358
  "internalType": "address",
@@ -353,46 +365,25 @@ export const abi_1a2db3035880 = [
353
365
  },
354
366
  {
355
367
  "inputs": [],
356
- "name": "proxiableUUID",
368
+ "name": "operatorRegistry",
357
369
  "outputs": [
358
370
  {
359
- "internalType": "bytes32",
371
+ "internalType": "address",
360
372
  "name": "",
361
- "type": "bytes32"
373
+ "type": "address"
362
374
  }
363
375
  ],
364
376
  "stateMutability": "view",
365
377
  "type": "function"
366
378
  },
367
379
  {
368
- "inputs": [
369
- {
370
- "internalType": "uint256",
371
- "name": "limitPrice",
372
- "type": "uint256"
373
- },
374
- {
375
- "internalType": "uint256",
376
- "name": "collateralBudget",
377
- "type": "uint256"
378
- }
379
- ],
380
- "name": "quoteSwapSize",
380
+ "inputs": [],
381
+ "name": "owner",
381
382
  "outputs": [
382
383
  {
383
- "internalType": "uint256",
384
- "name": "price",
385
- "type": "uint256"
386
- },
387
- {
388
- "internalType": "uint256",
389
- "name": "quantity",
390
- "type": "uint256"
391
- },
392
- {
393
- "internalType": "uint256",
394
- "name": "requiredCollateral",
395
- "type": "uint256"
384
+ "internalType": "address",
385
+ "name": "",
386
+ "type": "address"
396
387
  }
397
388
  ],
398
389
  "stateMutability": "view",
@@ -400,292 +391,193 @@ export const abi_1a2db3035880 = [
400
391
  },
401
392
  {
402
393
  "inputs": [],
403
- "name": "renounceOwnership",
404
- "outputs": [],
405
- "stateMutability": "nonpayable",
406
- "type": "function"
407
- },
408
- {
409
- "inputs": [
394
+ "name": "pendingOwner",
395
+ "outputs": [
410
396
  {
411
397
  "internalType": "address",
412
- "name": "eligibility",
398
+ "name": "",
413
399
  "type": "address"
414
400
  }
415
401
  ],
416
- "name": "setKeeperEligibility",
417
- "outputs": [],
418
- "stateMutability": "nonpayable",
402
+ "stateMutability": "view",
419
403
  "type": "function"
420
404
  },
421
405
  {
422
- "inputs": [
406
+ "inputs": [],
407
+ "name": "proxiableUUID",
408
+ "outputs": [
423
409
  {
424
- "components": [
425
- {
426
- "internalType": "uint128",
427
- "name": "maxRefundPerCall",
428
- "type": "uint128"
429
- },
430
- {
431
- "internalType": "uint64",
432
- "name": "maxRefundGasPrice",
433
- "type": "uint64"
434
- },
435
- {
436
- "internalType": "uint32",
437
- "name": "windowSeconds",
438
- "type": "uint32"
439
- },
440
- {
441
- "internalType": "uint128",
442
- "name": "perCallerWindowCap",
443
- "type": "uint128"
444
- },
445
- {
446
- "internalType": "uint128",
447
- "name": "globalWindowCap",
448
- "type": "uint128"
449
- }
450
- ],
451
- "internalType": "struct IPerpLiquidationSwapper.RefundParams",
452
- "name": "params",
453
- "type": "tuple"
410
+ "internalType": "bytes32",
411
+ "name": "",
412
+ "type": "bytes32"
454
413
  }
455
414
  ],
456
- "name": "setRefundParams",
415
+ "stateMutability": "view",
416
+ "type": "function"
417
+ },
418
+ {
419
+ "inputs": [],
420
+ "name": "releaseStake",
457
421
  "outputs": [],
458
422
  "stateMutability": "nonpayable",
459
423
  "type": "function"
460
424
  },
461
425
  {
462
- "inputs": [
463
- {
464
- "internalType": "address",
465
- "name": "newOwner",
466
- "type": "address"
467
- }
468
- ],
469
- "name": "transferOwnership",
426
+ "inputs": [],
427
+ "name": "renounceOwnership",
470
428
  "outputs": [],
471
429
  "stateMutability": "nonpayable",
472
430
  "type": "function"
473
431
  },
474
432
  {
475
433
  "inputs": [
476
- {
477
- "internalType": "address",
478
- "name": "account",
479
- "type": "address"
480
- },
481
434
  {
482
435
  "components": [
483
436
  {
484
437
  "internalType": "uint256",
485
- "name": "limitPrice",
438
+ "name": "stakeAmount",
486
439
  "type": "uint256"
487
440
  },
488
- {
489
- "internalType": "address",
490
- "name": "recipient",
491
- "type": "address"
492
- }
493
- ],
494
- "internalType": "struct IPerpLiquidationSwapper.KeeperSwapRequest",
495
- "name": "request",
496
- "type": "tuple"
497
- }
498
- ],
499
- "name": "tryLiquidateAndSwap",
500
- "outputs": [
501
- {
502
- "internalType": "enum ILiquidationEngine.LiquidationAttempt",
503
- "name": "outcome",
504
- "type": "uint8"
505
- },
506
- {
507
- "internalType": "uint256",
508
- "name": "feesCharged",
509
- "type": "uint256"
510
- },
511
- {
512
- "components": [
513
441
  {
514
442
  "internalType": "uint256",
515
- "name": "rewardEarned",
443
+ "name": "minSeed",
516
444
  "type": "uint256"
517
445
  },
518
446
  {
519
447
  "internalType": "uint256",
520
- "name": "rewardWithdrawn",
448
+ "name": "minDeposit",
521
449
  "type": "uint256"
522
450
  },
523
451
  {
524
452
  "internalType": "uint256",
525
- "name": "collateralIn",
453
+ "name": "creationFee",
526
454
  "type": "uint256"
527
455
  },
528
456
  {
529
- "internalType": "uint256",
530
- "name": "nativeOut",
531
- "type": "uint256"
457
+ "internalType": "address",
458
+ "name": "creationFeeToken",
459
+ "type": "address"
532
460
  },
533
461
  {
534
- "internalType": "uint256",
535
- "name": "collateralOut",
536
- "type": "uint256"
462
+ "internalType": "address",
463
+ "name": "creationFeeRecipient",
464
+ "type": "address"
465
+ },
466
+ {
467
+ "internalType": "uint16",
468
+ "name": "maxSlippageBps",
469
+ "type": "uint16"
470
+ },
471
+ {
472
+ "internalType": "uint32",
473
+ "name": "minLockTerm",
474
+ "type": "uint32"
537
475
  }
538
476
  ],
539
- "internalType": "struct IPerpLiquidationSwapper.KeeperPayout",
540
- "name": "payout",
477
+ "internalType": "struct IUserVaultFactory.VaultParameters",
478
+ "name": "params",
541
479
  "type": "tuple"
542
480
  }
543
481
  ],
482
+ "name": "setVaultParameters",
483
+ "outputs": [],
544
484
  "stateMutability": "nonpayable",
545
485
  "type": "function"
546
486
  },
547
487
  {
548
- "inputs": [
488
+ "inputs": [],
489
+ "name": "somiLock",
490
+ "outputs": [
549
491
  {
550
492
  "internalType": "address",
551
- "name": "newImplementation",
493
+ "name": "",
552
494
  "type": "address"
553
- },
554
- {
555
- "internalType": "bytes",
556
- "name": "data",
557
- "type": "bytes"
558
495
  }
559
496
  ],
560
- "name": "upgradeToAndCall",
561
- "outputs": [],
562
- "stateMutability": "payable",
497
+ "stateMutability": "view",
563
498
  "type": "function"
564
499
  },
565
500
  {
566
501
  "inputs": [
567
502
  {
568
503
  "internalType": "address",
569
- "name": "recipient",
504
+ "name": "newOwner",
570
505
  "type": "address"
571
- },
572
- {
573
- "internalType": "uint256",
574
- "name": "amount",
575
- "type": "uint256"
576
506
  }
577
507
  ],
578
- "name": "withdrawRefundPot",
508
+ "name": "transferOwnership",
579
509
  "outputs": [],
580
510
  "stateMutability": "nonpayable",
581
511
  "type": "function"
582
512
  },
583
513
  {
584
- "anonymous": false,
585
514
  "inputs": [
586
515
  {
587
- "indexed": false,
588
- "internalType": "uint64",
589
- "name": "version",
590
- "type": "uint64"
591
- }
592
- ],
593
- "name": "Initialized",
594
- "type": "event"
595
- },
596
- {
597
- "anonymous": false,
598
- "inputs": [
599
- {
600
- "indexed": true,
601
516
  "internalType": "address",
602
- "name": "oldEligibility",
517
+ "name": "newImplementation",
603
518
  "type": "address"
604
519
  },
605
520
  {
606
- "indexed": true,
607
- "internalType": "address",
608
- "name": "newEligibility",
609
- "type": "address"
521
+ "internalType": "bytes",
522
+ "name": "data",
523
+ "type": "bytes"
610
524
  }
611
525
  ],
612
- "name": "KeeperEligibilityUpdated",
613
- "type": "event"
526
+ "name": "upgradeToAndCall",
527
+ "outputs": [],
528
+ "stateMutability": "payable",
529
+ "type": "function"
614
530
  },
615
531
  {
616
- "anonymous": false,
617
532
  "inputs": [
618
533
  {
619
- "indexed": true,
534
+ "internalType": "uint256",
535
+ "name": "index",
536
+ "type": "uint256"
537
+ }
538
+ ],
539
+ "name": "vaultAt",
540
+ "outputs": [
541
+ {
620
542
  "internalType": "address",
621
- "name": "keeper",
543
+ "name": "",
622
544
  "type": "address"
623
- },
624
- {
625
- "indexed": false,
626
- "internalType": "enum IPerpLiquidationSwapper.RefundDenialReason",
627
- "name": "reason",
628
- "type": "uint8"
629
545
  }
630
546
  ],
631
- "name": "KeeperGasRefundDenied",
632
- "type": "event"
547
+ "stateMutability": "view",
548
+ "type": "function"
633
549
  },
634
550
  {
635
- "anonymous": false,
636
- "inputs": [
637
- {
638
- "indexed": true,
639
- "internalType": "address",
640
- "name": "recipient",
641
- "type": "address"
642
- },
551
+ "inputs": [],
552
+ "name": "vaultCount",
553
+ "outputs": [
643
554
  {
644
- "indexed": false,
645
555
  "internalType": "uint256",
646
- "name": "amount",
556
+ "name": "",
647
557
  "type": "uint256"
648
558
  }
649
559
  ],
650
- "name": "KeeperGasRefundSendFailed",
651
- "type": "event"
560
+ "stateMutability": "view",
561
+ "type": "function"
652
562
  },
653
563
  {
654
- "anonymous": false,
655
564
  "inputs": [
656
565
  {
657
- "indexed": true,
658
566
  "internalType": "address",
659
- "name": "keeper",
567
+ "name": "leader",
660
568
  "type": "address"
661
- },
569
+ }
570
+ ],
571
+ "name": "vaultOf",
572
+ "outputs": [
662
573
  {
663
- "indexed": true,
664
574
  "internalType": "address",
665
- "name": "recipient",
666
- "type": "address"
667
- },
668
- {
669
- "indexed": false,
670
- "internalType": "uint256",
671
- "name": "amount",
672
- "type": "uint256"
673
- },
674
- {
675
- "indexed": false,
676
- "internalType": "uint256",
677
- "name": "gasUsed",
678
- "type": "uint256"
679
- },
680
- {
681
- "indexed": false,
682
- "internalType": "uint256",
683
- "name": "gasPrice",
684
- "type": "uint256"
575
+ "name": "",
576
+ "type": "address"
685
577
  }
686
578
  ],
687
- "name": "KeeperGasRefunded",
688
- "type": "event"
579
+ "stateMutability": "view",
580
+ "type": "function"
689
581
  },
690
582
  {
691
583
  "anonymous": false,
@@ -693,47 +585,42 @@ export const abi_1a2db3035880 = [
693
585
  {
694
586
  "indexed": true,
695
587
  "internalType": "address",
696
- "name": "caller",
588
+ "name": "vault",
697
589
  "type": "address"
698
590
  },
699
591
  {
700
592
  "indexed": true,
701
593
  "internalType": "address",
702
- "name": "recipient",
594
+ "name": "token",
703
595
  "type": "address"
704
596
  },
705
597
  {
706
598
  "indexed": false,
707
- "internalType": "uint256",
708
- "name": "rewardEarned",
709
- "type": "uint256"
710
- },
711
- {
712
- "indexed": false,
713
- "internalType": "uint256",
714
- "name": "rewardWithdrawn",
715
- "type": "uint256"
716
- },
717
- {
718
- "indexed": false,
719
- "internalType": "uint256",
720
- "name": "collateralIn",
721
- "type": "uint256"
599
+ "internalType": "address",
600
+ "name": "recipient",
601
+ "type": "address"
722
602
  },
723
603
  {
724
604
  "indexed": false,
725
605
  "internalType": "uint256",
726
- "name": "nativeOut",
606
+ "name": "amount",
727
607
  "type": "uint256"
728
- },
608
+ }
609
+ ],
610
+ "name": "CreationFeePaid",
611
+ "type": "event"
612
+ },
613
+ {
614
+ "anonymous": false,
615
+ "inputs": [
729
616
  {
730
617
  "indexed": false,
731
- "internalType": "uint256",
732
- "name": "collateralOut",
733
- "type": "uint256"
618
+ "internalType": "uint64",
619
+ "name": "version",
620
+ "type": "uint64"
734
621
  }
735
622
  ],
736
- "name": "KeeperRewardSwapped",
623
+ "name": "Initialized",
737
624
  "type": "event"
738
625
  },
739
626
  {
@@ -778,40 +665,13 @@ export const abi_1a2db3035880 = [
778
665
  "anonymous": false,
779
666
  "inputs": [
780
667
  {
781
- "components": [
782
- {
783
- "internalType": "uint128",
784
- "name": "maxRefundPerCall",
785
- "type": "uint128"
786
- },
787
- {
788
- "internalType": "uint64",
789
- "name": "maxRefundGasPrice",
790
- "type": "uint64"
791
- },
792
- {
793
- "internalType": "uint32",
794
- "name": "windowSeconds",
795
- "type": "uint32"
796
- },
797
- {
798
- "internalType": "uint128",
799
- "name": "perCallerWindowCap",
800
- "type": "uint128"
801
- },
802
- {
803
- "internalType": "uint128",
804
- "name": "globalWindowCap",
805
- "type": "uint128"
806
- }
807
- ],
808
- "indexed": false,
809
- "internalType": "struct IPerpLiquidationSwapper.RefundParams",
810
- "name": "params",
811
- "type": "tuple"
668
+ "indexed": true,
669
+ "internalType": "address",
670
+ "name": "implementation",
671
+ "type": "address"
812
672
  }
813
673
  ],
814
- "name": "RefundParamsUpdated",
674
+ "name": "Upgraded",
815
675
  "type": "event"
816
676
  },
817
677
  {
@@ -820,138 +680,183 @@ export const abi_1a2db3035880 = [
820
680
  {
821
681
  "indexed": true,
822
682
  "internalType": "address",
823
- "name": "funder",
683
+ "name": "vault",
684
+ "type": "address"
685
+ },
686
+ {
687
+ "indexed": true,
688
+ "internalType": "address",
689
+ "name": "leader",
824
690
  "type": "address"
825
691
  },
826
692
  {
827
693
  "indexed": false,
828
694
  "internalType": "uint256",
829
- "name": "amount",
695
+ "name": "seed",
830
696
  "type": "uint256"
831
697
  },
698
+ {
699
+ "indexed": false,
700
+ "internalType": "uint16",
701
+ "name": "profitShareBps",
702
+ "type": "uint16"
703
+ },
832
704
  {
833
705
  "indexed": false,
834
706
  "internalType": "uint256",
835
- "name": "newPot",
707
+ "name": "requiredStake",
836
708
  "type": "uint256"
837
- }
838
- ],
839
- "name": "RefundPotFunded",
840
- "type": "event"
841
- },
842
- {
843
- "anonymous": false,
844
- "inputs": [
709
+ },
845
710
  {
846
- "indexed": true,
847
- "internalType": "address",
848
- "name": "recipient",
849
- "type": "address"
711
+ "indexed": false,
712
+ "internalType": "enum IUserVaultFactory.Strategy",
713
+ "name": "strategy",
714
+ "type": "uint8"
850
715
  },
851
716
  {
852
717
  "indexed": false,
853
- "internalType": "uint256",
854
- "name": "amount",
855
- "type": "uint256"
718
+ "internalType": "string",
719
+ "name": "name",
720
+ "type": "string"
856
721
  },
857
722
  {
858
723
  "indexed": false,
859
- "internalType": "uint256",
860
- "name": "newPot",
861
- "type": "uint256"
724
+ "internalType": "string",
725
+ "name": "description",
726
+ "type": "string"
862
727
  }
863
728
  ],
864
- "name": "RefundPotWithdrawn",
865
- "type": "event"
866
- },
867
- {
868
- "anonymous": false,
869
- "inputs": [],
870
- "name": "SwapOrderFailedWithoutReason",
729
+ "name": "VaultCreated",
871
730
  "type": "event"
872
731
  },
873
732
  {
874
733
  "anonymous": false,
875
734
  "inputs": [
876
735
  {
736
+ "components": [
737
+ {
738
+ "internalType": "uint256",
739
+ "name": "stakeAmount",
740
+ "type": "uint256"
741
+ },
742
+ {
743
+ "internalType": "uint256",
744
+ "name": "minSeed",
745
+ "type": "uint256"
746
+ },
747
+ {
748
+ "internalType": "uint256",
749
+ "name": "minDeposit",
750
+ "type": "uint256"
751
+ },
752
+ {
753
+ "internalType": "uint256",
754
+ "name": "creationFee",
755
+ "type": "uint256"
756
+ },
757
+ {
758
+ "internalType": "address",
759
+ "name": "creationFeeToken",
760
+ "type": "address"
761
+ },
762
+ {
763
+ "internalType": "address",
764
+ "name": "creationFeeRecipient",
765
+ "type": "address"
766
+ },
767
+ {
768
+ "internalType": "uint16",
769
+ "name": "maxSlippageBps",
770
+ "type": "uint16"
771
+ },
772
+ {
773
+ "internalType": "uint32",
774
+ "name": "minLockTerm",
775
+ "type": "uint32"
776
+ }
777
+ ],
877
778
  "indexed": false,
878
- "internalType": "bytes4",
879
- "name": "errorSelector",
880
- "type": "bytes4"
779
+ "internalType": "struct IUserVaultFactory.VaultParameters",
780
+ "name": "params",
781
+ "type": "tuple"
881
782
  }
882
783
  ],
883
- "name": "SwapOrderRejected",
784
+ "name": "VaultParametersSet",
884
785
  "type": "event"
885
786
  },
886
787
  {
887
- "anonymous": false,
888
788
  "inputs": [
889
789
  {
890
- "indexed": true,
891
790
  "internalType": "address",
892
- "name": "implementation",
791
+ "name": "target",
893
792
  "type": "address"
894
793
  }
895
794
  ],
896
- "name": "Upgraded",
897
- "type": "event"
795
+ "name": "AddressEmptyCode",
796
+ "type": "error"
797
+ },
798
+ {
799
+ "inputs": [],
800
+ "name": "CreationFeeRecipientUnset",
801
+ "type": "error"
898
802
  },
899
803
  {
900
804
  "inputs": [
901
805
  {
902
806
  "internalType": "address",
903
- "name": "target",
807
+ "name": "token",
904
808
  "type": "address"
905
809
  }
906
810
  ],
907
- "name": "AddressEmptyCode",
811
+ "name": "CreationFeeTokenNotContract",
908
812
  "type": "error"
909
813
  },
910
814
  {
911
815
  "inputs": [
912
816
  {
913
- "internalType": "address",
914
- "name": "implementation",
915
- "type": "address"
817
+ "internalType": "uint256",
818
+ "name": "length",
819
+ "type": "uint256"
916
820
  }
917
821
  ],
918
- "name": "ERC1967InvalidImplementation",
919
- "type": "error"
920
- },
921
- {
922
- "inputs": [],
923
- "name": "ERC1967NonPayable",
822
+ "name": "DescriptionTooLong",
924
823
  "type": "error"
925
824
  },
926
825
  {
927
826
  "inputs": [
928
827
  {
929
828
  "internalType": "address",
930
- "name": "liquidationEngine",
931
- "type": "address"
932
- },
933
- {
934
- "internalType": "address",
935
- "name": "bankLiquidationEngine",
829
+ "name": "implementation",
936
830
  "type": "address"
937
831
  }
938
832
  ],
939
- "name": "EngineNotWiredToBank",
833
+ "name": "ERC1967InvalidImplementation",
940
834
  "type": "error"
941
835
  },
942
836
  {
943
837
  "inputs": [],
944
- "name": "FailedCall",
838
+ "name": "ERC1967NonPayable",
945
839
  "type": "error"
946
840
  },
947
841
  {
948
842
  "inputs": [],
949
- "name": "InvalidAddress",
843
+ "name": "FailedCall",
950
844
  "type": "error"
951
845
  },
952
846
  {
953
- "inputs": [],
954
- "name": "InvalidEligibility",
847
+ "inputs": [
848
+ {
849
+ "internalType": "uint256",
850
+ "name": "balance",
851
+ "type": "uint256"
852
+ },
853
+ {
854
+ "internalType": "uint256",
855
+ "name": "needed",
856
+ "type": "uint256"
857
+ }
858
+ ],
859
+ "name": "InsufficientBalance",
955
860
  "type": "error"
956
861
  },
957
862
  {
@@ -960,45 +865,68 @@ export const abi_1a2db3035880 = [
960
865
  "type": "error"
961
866
  },
962
867
  {
963
- "inputs": [],
964
- "name": "InvalidRecipient",
868
+ "inputs": [
869
+ {
870
+ "internalType": "uint16",
871
+ "name": "maxSlippageBps",
872
+ "type": "uint16"
873
+ }
874
+ ],
875
+ "name": "InvalidMaxSlippage",
965
876
  "type": "error"
966
877
  },
967
878
  {
968
- "inputs": [],
969
- "name": "InvalidRefundParams",
879
+ "inputs": [
880
+ {
881
+ "internalType": "uint256",
882
+ "name": "length",
883
+ "type": "uint256"
884
+ }
885
+ ],
886
+ "name": "InvalidNameLength",
887
+ "type": "error"
888
+ },
889
+ {
890
+ "inputs": [
891
+ {
892
+ "internalType": "address",
893
+ "name": "vault",
894
+ "type": "address"
895
+ }
896
+ ],
897
+ "name": "LeaderHasActiveVault",
970
898
  "type": "error"
971
899
  },
972
900
  {
973
901
  "inputs": [
974
902
  {
975
903
  "internalType": "uint256",
976
- "name": "limitPrice",
904
+ "name": "until",
977
905
  "type": "uint256"
978
906
  },
979
907
  {
980
908
  "internalType": "uint256",
981
- "name": "tickSize",
909
+ "name": "required",
982
910
  "type": "uint256"
983
911
  }
984
912
  ],
985
- "name": "LimitPriceBelowTick",
913
+ "name": "LockTermTooShort",
914
+ "type": "error"
915
+ },
916
+ {
917
+ "inputs": [],
918
+ "name": "LockerNotApproved",
986
919
  "type": "error"
987
920
  },
988
921
  {
989
922
  "inputs": [
990
- {
991
- "internalType": "address",
992
- "name": "recipient",
993
- "type": "address"
994
- },
995
923
  {
996
924
  "internalType": "uint256",
997
- "name": "amount",
925
+ "name": "minSeed",
998
926
  "type": "uint256"
999
927
  }
1000
928
  ],
1001
- "name": "NativeSweepFailed",
929
+ "name": "MinSeedTooLow",
1002
930
  "type": "error"
1003
931
  },
1004
932
  {
@@ -1011,6 +939,11 @@ export const abi_1a2db3035880 = [
1011
939
  "name": "NotInitializing",
1012
940
  "type": "error"
1013
941
  },
942
+ {
943
+ "inputs": [],
944
+ "name": "NotVault",
945
+ "type": "error"
946
+ },
1014
947
  {
1015
948
  "inputs": [
1016
949
  {
@@ -1036,81 +969,49 @@ export const abi_1a2db3035880 = [
1036
969
  {
1037
970
  "inputs": [
1038
971
  {
1039
- "internalType": "address",
1040
- "name": "pool",
1041
- "type": "address"
972
+ "internalType": "uint16",
973
+ "name": "profitShareBps",
974
+ "type": "uint16"
1042
975
  }
1043
976
  ],
1044
- "name": "PoolNotRegistered",
977
+ "name": "ProfitShareTooHigh",
1045
978
  "type": "error"
1046
979
  },
1047
980
  {
1048
981
  "inputs": [],
1049
- "name": "PoolScaleMismatch",
982
+ "name": "ReentrancyGuardReentrantCall",
1050
983
  "type": "error"
1051
984
  },
1052
985
  {
1053
986
  "inputs": [
1054
987
  {
1055
988
  "internalType": "address",
1056
- "name": "baseToken",
1057
- "type": "address"
1058
- },
1059
- {
1060
- "internalType": "address",
1061
- "name": "quoteToken",
989
+ "name": "token",
1062
990
  "type": "address"
1063
991
  }
1064
992
  ],
1065
- "name": "PoolTokenMismatch",
1066
- "type": "error"
1067
- },
1068
- {
1069
- "inputs": [],
1070
- "name": "ReentrancyGuardReentrantCall",
993
+ "name": "SafeERC20FailedOperation",
1071
994
  "type": "error"
1072
995
  },
1073
996
  {
1074
997
  "inputs": [
1075
998
  {
1076
999
  "internalType": "uint256",
1077
- "name": "requested",
1000
+ "name": "seed",
1078
1001
  "type": "uint256"
1079
1002
  },
1080
1003
  {
1081
1004
  "internalType": "uint256",
1082
- "name": "available",
1005
+ "name": "minSeed",
1083
1006
  "type": "uint256"
1084
1007
  }
1085
1008
  ],
1086
- "name": "RefundPotInsufficient",
1009
+ "name": "SeedBelowMinimum",
1087
1010
  "type": "error"
1088
1011
  },
1089
1012
  {
1090
- "inputs": [
1091
- {
1092
- "internalType": "address",
1093
- "name": "recipient",
1094
- "type": "address"
1095
- },
1096
- {
1097
- "internalType": "uint256",
1098
- "name": "amount",
1099
- "type": "uint256"
1100
- }
1101
- ],
1102
- "name": "RefundPotWithdrawFailed",
1103
- "type": "error"
1104
- },
1105
- {
1106
- "inputs": [
1107
- {
1108
- "internalType": "address",
1109
- "name": "token",
1110
- "type": "address"
1111
- }
1112
- ],
1113
- "name": "SafeERC20FailedOperation",
1013
+ "inputs": [],
1014
+ "name": "StakeAmountZero",
1114
1015
  "type": "error"
1115
1016
  },
1116
1017
  {
@@ -1132,18 +1033,23 @@ export const abi_1a2db3035880 = [
1132
1033
  {
1133
1034
  "inputs": [
1134
1035
  {
1135
- "internalType": "address",
1136
- "name": "sender",
1137
- "type": "address"
1036
+ "internalType": "uint256",
1037
+ "name": "sent",
1038
+ "type": "uint256"
1039
+ },
1040
+ {
1041
+ "internalType": "uint256",
1042
+ "name": "required",
1043
+ "type": "uint256"
1138
1044
  }
1139
1045
  ],
1140
- "name": "UnexpectedNativeSender",
1046
+ "name": "WrongValue",
1141
1047
  "type": "error"
1142
1048
  },
1143
1049
  {
1144
1050
  "inputs": [],
1145
- "name": "ZeroAmount",
1051
+ "name": "ZeroAddress",
1146
1052
  "type": "error"
1147
1053
  }
1148
1054
  ];
1149
- export const digest = "sha256:1a2db30358803ff2558b6626e26f49190b7d435f55f83cc09e138fc7df83c91c";
1055
+ export const digest = "sha256:59f72604787a63cae319429ce750ce9471369bb08ad22febf7ea75ea75c558a7";