@pendle/sdk-boros 0.3.54 → 0.3.56
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.
- package/dist/backend/secrettune/BorosCoreSDK.d.ts +86 -37
- package/dist/backend/secrettune/BorosCoreSDK.js +59 -14
- package/dist/backend/secrettune/BorosCoreSDK.js.map +1 -1
- package/dist/contracts/abis/viemAbis.d.ts +2284 -916
- package/dist/contracts/abis/viemAbis.js +1496 -620
- package/dist/contracts/abis/viemAbis.js.map +1 -1
- package/dist/entities/exchange/exchange.d.ts +1297 -3
- package/dist/entities/exchange/exchange.js +11 -1
- package/dist/entities/exchange/exchange.js.map +1 -1
- package/dist/entities/exchange/utils.d.ts +290 -18
- package/dist/types/encoders.d.ts +6 -1
- package/dist/types/encoders.js +7 -7
- package/dist/types/encoders.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.iMultiTokenMerkleDistributorAbi = exports.iBOROS20Abi = exports.iAMMAbi = exports.iFIndexOracleAbi = exports.iAuthModuleAbi = exports.iTradeModuleAbi = exports.iMarkRateOracleAbi = exports.iExplorerAbi = exports.iMulticall3Abi = exports.iMarketOffViewOnlyAbi = exports.iMarketEntryAbi = exports.iMarketRiskManagementAbi = exports.iMarketSettingAbi = exports.iMarketAllTypesAbi = exports.iMarketOrderAndOtcAbi = exports.iMarketOffAbi = exports.iMarketAbi = exports.iMarketAllEventsAndTypesAbi = exports.iRouterAbi = exports.iMarketFactoryAbi = exports.iMarketHubStorageOnlyAbi = exports.
|
|
3
|
+
exports.iPVeTokenAbi = exports.iMultiTokenMerkleDistributorAbi = exports.iZoneResponderAbi = exports.iWithdrawalPoliceAbi = exports.iPauserAbi = exports.iOrderCancellerAbi = exports.iLiquidationExecutorAbi = exports.iDeleveragerAbi = exports.iCLOSetterAbi = exports.iBOROS20Abi = exports.iAMMAbi = exports.iFIndexOracleAbi = exports.iAuthModuleAbi = exports.iTradeModuleAbi = exports.iMarkRateOracleAbi = exports.iExplorerAbi = exports.iMulticall3Abi = exports.iMarketOffViewOnlyAbi = exports.iMarketEntryAbi = exports.iMarketRiskManagementAbi = exports.iMarketSettingAbi = exports.iMarketAllTypesAbi = exports.iMarketOrderAndOtcAbi = exports.iMarketOffAbi = exports.iMarketAbi = exports.iMarketAllEventsAndTypesAbi = exports.iRouterAbi = exports.iMarketFactoryAbi = exports.iMarketHubStorageOnlyAbi = exports.iMarketHubSetAndViewAbi = exports.iMarketHubAllEventsAndTypesAbi = exports.iMarketHubAbi = exports.iMarketHubRiskManagementAbi = exports.iMarketHubEntryOnlyAbi = exports.iAMMFactoryAbi = exports.iArbitrageExecutorAbi = void 0;
|
|
4
4
|
exports.iArbitrageExecutorAbi = [
|
|
5
|
+
{ inputs: [], name: 'InsufficientProfit', type: 'error' },
|
|
5
6
|
{
|
|
6
7
|
anonymous: false,
|
|
7
8
|
inputs: [
|
|
@@ -65,10 +66,7 @@ exports.iArbitrageExecutorAbi = [
|
|
|
65
66
|
type: 'function',
|
|
66
67
|
},
|
|
67
68
|
{
|
|
68
|
-
inputs: [
|
|
69
|
-
{ internalType: 'bool', name: 'cross', type: 'bool' },
|
|
70
|
-
{ internalType: 'MarketId', name: 'marketId', type: 'uint24' },
|
|
71
|
-
],
|
|
69
|
+
inputs: [{ internalType: 'MarketId', name: 'marketId', type: 'uint24' }],
|
|
72
70
|
name: 'payMarketEntranceFee',
|
|
73
71
|
outputs: [],
|
|
74
72
|
stateMutability: 'nonpayable',
|
|
@@ -249,6 +247,67 @@ exports.iMarketHubEntryOnlyAbi = [
|
|
|
249
247
|
stateMutability: 'nonpayable',
|
|
250
248
|
type: 'function',
|
|
251
249
|
},
|
|
250
|
+
{
|
|
251
|
+
inputs: [
|
|
252
|
+
{ internalType: 'address', name: 'root', type: 'address' },
|
|
253
|
+
{ internalType: 'TokenId', name: 'tokenId', type: 'uint16' },
|
|
254
|
+
],
|
|
255
|
+
name: 'cancelVaultWithdrawal',
|
|
256
|
+
outputs: [],
|
|
257
|
+
stateMutability: 'nonpayable',
|
|
258
|
+
type: 'function',
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
inputs: [
|
|
262
|
+
{ internalType: 'MarketAcc', name: 'from', type: 'bytes26' },
|
|
263
|
+
{ internalType: 'MarketAcc', name: 'to', type: 'bytes26' },
|
|
264
|
+
{ internalType: 'int256', name: 'amount', type: 'int256' },
|
|
265
|
+
],
|
|
266
|
+
name: 'cashTransfer',
|
|
267
|
+
outputs: [],
|
|
268
|
+
stateMutability: 'nonpayable',
|
|
269
|
+
type: 'function',
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
inputs: [
|
|
273
|
+
{ internalType: 'MarketAcc', name: 'from', type: 'bytes26' },
|
|
274
|
+
{ internalType: 'MarketAcc', name: 'to', type: 'bytes26' },
|
|
275
|
+
],
|
|
276
|
+
name: 'cashTransferAll',
|
|
277
|
+
outputs: [{ internalType: 'int256', name: 'amountOut', type: 'int256' }],
|
|
278
|
+
stateMutability: 'nonpayable',
|
|
279
|
+
type: 'function',
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
inputs: [
|
|
283
|
+
{ internalType: 'MarketAcc', name: 'user', type: 'bytes26' },
|
|
284
|
+
{ internalType: 'MarketId', name: 'marketId', type: 'uint24' },
|
|
285
|
+
],
|
|
286
|
+
name: 'enterMarket',
|
|
287
|
+
outputs: [],
|
|
288
|
+
stateMutability: 'nonpayable',
|
|
289
|
+
type: 'function',
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
inputs: [
|
|
293
|
+
{ internalType: 'MarketAcc', name: 'user', type: 'bytes26' },
|
|
294
|
+
{ internalType: 'MarketId', name: 'marketId', type: 'uint24' },
|
|
295
|
+
],
|
|
296
|
+
name: 'exitMarket',
|
|
297
|
+
outputs: [],
|
|
298
|
+
stateMutability: 'nonpayable',
|
|
299
|
+
type: 'function',
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
inputs: [
|
|
303
|
+
{ internalType: 'address', name: 'root', type: 'address' },
|
|
304
|
+
{ internalType: 'TokenId', name: 'tokenId', type: 'uint16' },
|
|
305
|
+
],
|
|
306
|
+
name: 'finalizeVaultWithdrawal',
|
|
307
|
+
outputs: [],
|
|
308
|
+
stateMutability: 'nonpayable',
|
|
309
|
+
type: 'function',
|
|
310
|
+
},
|
|
252
311
|
{
|
|
253
312
|
inputs: [{ internalType: 'uint32', name: 'globalCooldown', type: 'uint32' }],
|
|
254
313
|
name: 'initialize',
|
|
@@ -315,6 +374,27 @@ exports.iMarketHubEntryOnlyAbi = [
|
|
|
315
374
|
stateMutability: 'nonpayable',
|
|
316
375
|
type: 'function',
|
|
317
376
|
},
|
|
377
|
+
{
|
|
378
|
+
inputs: [
|
|
379
|
+
{ internalType: 'MarketAcc', name: 'user', type: 'bytes26' },
|
|
380
|
+
{ internalType: 'uint256', name: 'amount', type: 'uint256' },
|
|
381
|
+
],
|
|
382
|
+
name: 'payTreasury',
|
|
383
|
+
outputs: [],
|
|
384
|
+
stateMutability: 'nonpayable',
|
|
385
|
+
type: 'function',
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
inputs: [
|
|
389
|
+
{ internalType: 'address', name: 'root', type: 'address' },
|
|
390
|
+
{ internalType: 'TokenId', name: 'tokenId', type: 'uint16' },
|
|
391
|
+
{ internalType: 'uint256', name: 'unscaledAmount', type: 'uint256' },
|
|
392
|
+
],
|
|
393
|
+
name: 'requestVaultWithdrawal',
|
|
394
|
+
outputs: [],
|
|
395
|
+
stateMutability: 'nonpayable',
|
|
396
|
+
type: 'function',
|
|
397
|
+
},
|
|
318
398
|
{
|
|
319
399
|
inputs: [
|
|
320
400
|
{ internalType: 'MarketAcc', name: 'user', type: 'bytes26' },
|
|
@@ -330,6 +410,37 @@ exports.iMarketHubEntryOnlyAbi = [
|
|
|
330
410
|
stateMutability: 'nonpayable',
|
|
331
411
|
type: 'function',
|
|
332
412
|
},
|
|
413
|
+
{
|
|
414
|
+
inputs: [
|
|
415
|
+
{ internalType: 'MarketAcc', name: 'acc', type: 'bytes26' },
|
|
416
|
+
{ internalType: 'int256', name: 'amount', type: 'int256' },
|
|
417
|
+
],
|
|
418
|
+
name: 'simulateTransfer',
|
|
419
|
+
outputs: [],
|
|
420
|
+
stateMutability: 'nonpayable',
|
|
421
|
+
type: 'function',
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
inputs: [
|
|
425
|
+
{ internalType: 'MarketAcc', name: 'acc', type: 'bytes26' },
|
|
426
|
+
{ internalType: 'uint256', name: 'unscaledAmount', type: 'uint256' },
|
|
427
|
+
],
|
|
428
|
+
name: 'vaultDeposit',
|
|
429
|
+
outputs: [],
|
|
430
|
+
stateMutability: 'nonpayable',
|
|
431
|
+
type: 'function',
|
|
432
|
+
},
|
|
433
|
+
{
|
|
434
|
+
inputs: [
|
|
435
|
+
{ internalType: 'address', name: 'root', type: 'address' },
|
|
436
|
+
{ internalType: 'TokenId', name: 'tokenId', type: 'uint16' },
|
|
437
|
+
{ internalType: 'uint256', name: 'unscaled', type: 'uint256' },
|
|
438
|
+
],
|
|
439
|
+
name: 'vaultPayTreasury',
|
|
440
|
+
outputs: [],
|
|
441
|
+
stateMutability: 'nonpayable',
|
|
442
|
+
type: 'function',
|
|
443
|
+
},
|
|
333
444
|
];
|
|
334
445
|
exports.iMarketHubRiskManagementAbi = [
|
|
335
446
|
{
|
|
@@ -364,8 +475,8 @@ exports.iMarketHubRiskManagementAbi = [
|
|
|
364
475
|
},
|
|
365
476
|
{
|
|
366
477
|
inputs: [
|
|
367
|
-
{ internalType: 'MarketId', name: 'marketId', type: 'uint24' },
|
|
368
478
|
{ internalType: 'MarketAcc', name: 'riskyUser', type: 'bytes26' },
|
|
479
|
+
{ internalType: 'MarketId[]', name: 'marketIds', type: 'uint24[]' },
|
|
369
480
|
],
|
|
370
481
|
name: 'forceCancelAllRiskyUser',
|
|
371
482
|
outputs: [],
|
|
@@ -795,8 +906,8 @@ exports.iMarketHubAbi = [
|
|
|
795
906
|
},
|
|
796
907
|
{
|
|
797
908
|
inputs: [
|
|
798
|
-
{ internalType: 'MarketId', name: 'marketId', type: 'uint24' },
|
|
799
909
|
{ internalType: 'MarketAcc', name: 'riskyUser', type: 'bytes26' },
|
|
910
|
+
{ internalType: 'MarketId[]', name: 'marketIds', type: 'uint24[]' },
|
|
800
911
|
],
|
|
801
912
|
name: 'forceCancelAllRiskyUser',
|
|
802
913
|
outputs: [],
|
|
@@ -935,13 +1046,6 @@ exports.iMarketHubAbi = [
|
|
|
935
1046
|
stateMutability: 'view',
|
|
936
1047
|
type: 'function',
|
|
937
1048
|
},
|
|
938
|
-
{
|
|
939
|
-
inputs: [{ internalType: 'address', name: 'root', type: 'address' }],
|
|
940
|
-
name: 'maxAllowedSubaccountId',
|
|
941
|
-
outputs: [{ internalType: 'uint8', name: '', type: 'uint8' }],
|
|
942
|
-
stateMutability: 'view',
|
|
943
|
-
type: 'function',
|
|
944
|
-
},
|
|
945
1049
|
{
|
|
946
1050
|
inputs: [
|
|
947
1051
|
{ internalType: 'MarketId', name: 'marketId', type: 'uint24' },
|
|
@@ -1168,121 +1272,6 @@ exports.iMarketHubAbi = [
|
|
|
1168
1272
|
type: 'function',
|
|
1169
1273
|
},
|
|
1170
1274
|
];
|
|
1171
|
-
exports.iMarginManagerOnlyAbi = [
|
|
1172
|
-
{
|
|
1173
|
-
inputs: [
|
|
1174
|
-
{ internalType: 'address', name: 'root', type: 'address' },
|
|
1175
|
-
{ internalType: 'TokenId', name: 'tokenId', type: 'uint16' },
|
|
1176
|
-
],
|
|
1177
|
-
name: 'cancelVaultWithdrawal',
|
|
1178
|
-
outputs: [],
|
|
1179
|
-
stateMutability: 'nonpayable',
|
|
1180
|
-
type: 'function',
|
|
1181
|
-
},
|
|
1182
|
-
{
|
|
1183
|
-
inputs: [
|
|
1184
|
-
{ internalType: 'MarketAcc', name: 'from', type: 'bytes26' },
|
|
1185
|
-
{ internalType: 'MarketAcc', name: 'to', type: 'bytes26' },
|
|
1186
|
-
{ internalType: 'int256', name: 'amount', type: 'int256' },
|
|
1187
|
-
],
|
|
1188
|
-
name: 'cashTransfer',
|
|
1189
|
-
outputs: [],
|
|
1190
|
-
stateMutability: 'nonpayable',
|
|
1191
|
-
type: 'function',
|
|
1192
|
-
},
|
|
1193
|
-
{
|
|
1194
|
-
inputs: [
|
|
1195
|
-
{ internalType: 'MarketAcc', name: 'from', type: 'bytes26' },
|
|
1196
|
-
{ internalType: 'MarketAcc', name: 'to', type: 'bytes26' },
|
|
1197
|
-
],
|
|
1198
|
-
name: 'cashTransferAll',
|
|
1199
|
-
outputs: [{ internalType: 'int256', name: 'amountOut', type: 'int256' }],
|
|
1200
|
-
stateMutability: 'nonpayable',
|
|
1201
|
-
type: 'function',
|
|
1202
|
-
},
|
|
1203
|
-
{
|
|
1204
|
-
inputs: [
|
|
1205
|
-
{ internalType: 'MarketAcc', name: 'user', type: 'bytes26' },
|
|
1206
|
-
{ internalType: 'MarketId', name: 'marketId', type: 'uint24' },
|
|
1207
|
-
],
|
|
1208
|
-
name: 'enterMarket',
|
|
1209
|
-
outputs: [],
|
|
1210
|
-
stateMutability: 'nonpayable',
|
|
1211
|
-
type: 'function',
|
|
1212
|
-
},
|
|
1213
|
-
{
|
|
1214
|
-
inputs: [
|
|
1215
|
-
{ internalType: 'MarketAcc', name: 'user', type: 'bytes26' },
|
|
1216
|
-
{ internalType: 'MarketId', name: 'marketId', type: 'uint24' },
|
|
1217
|
-
],
|
|
1218
|
-
name: 'exitMarket',
|
|
1219
|
-
outputs: [],
|
|
1220
|
-
stateMutability: 'nonpayable',
|
|
1221
|
-
type: 'function',
|
|
1222
|
-
},
|
|
1223
|
-
{
|
|
1224
|
-
inputs: [
|
|
1225
|
-
{ internalType: 'address', name: 'root', type: 'address' },
|
|
1226
|
-
{ internalType: 'TokenId', name: 'tokenId', type: 'uint16' },
|
|
1227
|
-
],
|
|
1228
|
-
name: 'finalizeVaultWithdrawal',
|
|
1229
|
-
outputs: [],
|
|
1230
|
-
stateMutability: 'nonpayable',
|
|
1231
|
-
type: 'function',
|
|
1232
|
-
},
|
|
1233
|
-
{
|
|
1234
|
-
inputs: [
|
|
1235
|
-
{ internalType: 'MarketAcc', name: 'user', type: 'bytes26' },
|
|
1236
|
-
{ internalType: 'uint256', name: 'amount', type: 'uint256' },
|
|
1237
|
-
],
|
|
1238
|
-
name: 'payTreasury',
|
|
1239
|
-
outputs: [],
|
|
1240
|
-
stateMutability: 'nonpayable',
|
|
1241
|
-
type: 'function',
|
|
1242
|
-
},
|
|
1243
|
-
{
|
|
1244
|
-
inputs: [
|
|
1245
|
-
{ internalType: 'address', name: 'root', type: 'address' },
|
|
1246
|
-
{ internalType: 'TokenId', name: 'tokenId', type: 'uint16' },
|
|
1247
|
-
{ internalType: 'uint256', name: 'unscaledAmount', type: 'uint256' },
|
|
1248
|
-
],
|
|
1249
|
-
name: 'requestVaultWithdrawal',
|
|
1250
|
-
outputs: [],
|
|
1251
|
-
stateMutability: 'nonpayable',
|
|
1252
|
-
type: 'function',
|
|
1253
|
-
},
|
|
1254
|
-
{
|
|
1255
|
-
inputs: [
|
|
1256
|
-
{ internalType: 'MarketAcc', name: 'acc', type: 'bytes26' },
|
|
1257
|
-
{ internalType: 'int256', name: 'amount', type: 'int256' },
|
|
1258
|
-
],
|
|
1259
|
-
name: 'simulateTransfer',
|
|
1260
|
-
outputs: [],
|
|
1261
|
-
stateMutability: 'nonpayable',
|
|
1262
|
-
type: 'function',
|
|
1263
|
-
},
|
|
1264
|
-
{
|
|
1265
|
-
inputs: [
|
|
1266
|
-
{ internalType: 'MarketAcc', name: 'acc', type: 'bytes26' },
|
|
1267
|
-
{ internalType: 'uint256', name: 'unscaledAmount', type: 'uint256' },
|
|
1268
|
-
],
|
|
1269
|
-
name: 'vaultDeposit',
|
|
1270
|
-
outputs: [],
|
|
1271
|
-
stateMutability: 'nonpayable',
|
|
1272
|
-
type: 'function',
|
|
1273
|
-
},
|
|
1274
|
-
{
|
|
1275
|
-
inputs: [
|
|
1276
|
-
{ internalType: 'address', name: 'root', type: 'address' },
|
|
1277
|
-
{ internalType: 'TokenId', name: 'tokenId', type: 'uint16' },
|
|
1278
|
-
{ internalType: 'uint256', name: 'unscaled', type: 'uint256' },
|
|
1279
|
-
],
|
|
1280
|
-
name: 'vaultPayTreasury',
|
|
1281
|
-
outputs: [],
|
|
1282
|
-
stateMutability: 'nonpayable',
|
|
1283
|
-
type: 'function',
|
|
1284
|
-
},
|
|
1285
|
-
];
|
|
1286
1275
|
exports.iMarketHubAllEventsAndTypesAbi = [
|
|
1287
1276
|
{
|
|
1288
1277
|
anonymous: false,
|
|
@@ -1453,7 +1442,7 @@ exports.iMarketHubAllEventsAndTypesAbi = [
|
|
|
1453
1442
|
type: 'event',
|
|
1454
1443
|
},
|
|
1455
1444
|
];
|
|
1456
|
-
exports.
|
|
1445
|
+
exports.iMarketHubSetAndViewAbi = [
|
|
1457
1446
|
{
|
|
1458
1447
|
anonymous: false,
|
|
1459
1448
|
inputs: [
|
|
@@ -1623,52 +1612,17 @@ exports.iMarketHubStorageOnlyAbi = [
|
|
|
1623
1612
|
type: 'event',
|
|
1624
1613
|
},
|
|
1625
1614
|
{
|
|
1626
|
-
inputs: [],
|
|
1627
|
-
name: '
|
|
1628
|
-
outputs: [{ internalType: '
|
|
1615
|
+
inputs: [{ internalType: 'MarketAcc', name: 'user', type: 'bytes26' }],
|
|
1616
|
+
name: 'accCash',
|
|
1617
|
+
outputs: [{ internalType: 'int256', name: '', type: 'int256' }],
|
|
1629
1618
|
stateMutability: 'view',
|
|
1630
1619
|
type: 'function',
|
|
1631
1620
|
},
|
|
1632
1621
|
{
|
|
1633
|
-
inputs: [],
|
|
1634
|
-
name: '
|
|
1635
|
-
outputs: [
|
|
1636
|
-
stateMutability: '
|
|
1637
|
-
type: 'function',
|
|
1638
|
-
},
|
|
1639
|
-
{
|
|
1640
|
-
inputs: [],
|
|
1641
|
-
name: 'ROUTER',
|
|
1642
|
-
outputs: [{ internalType: 'address', name: '', type: 'address' }],
|
|
1643
|
-
stateMutability: 'view',
|
|
1644
|
-
type: 'function',
|
|
1645
|
-
},
|
|
1646
|
-
{
|
|
1647
|
-
inputs: [],
|
|
1648
|
-
name: 'TREASURY',
|
|
1649
|
-
outputs: [{ internalType: 'address', name: '', type: 'address' }],
|
|
1650
|
-
stateMutability: 'view',
|
|
1651
|
-
type: 'function',
|
|
1652
|
-
},
|
|
1653
|
-
{
|
|
1654
|
-
inputs: [{ internalType: 'MarketAcc', name: 'user', type: 'bytes26' }],
|
|
1655
|
-
name: 'accCash',
|
|
1656
|
-
outputs: [{ internalType: 'int256', name: '', type: 'int256' }],
|
|
1657
|
-
stateMutability: 'view',
|
|
1658
|
-
type: 'function',
|
|
1659
|
-
},
|
|
1660
|
-
{
|
|
1661
|
-
inputs: [],
|
|
1662
|
-
name: 'critHR',
|
|
1663
|
-
outputs: [{ internalType: 'int128', name: '', type: 'int128' }],
|
|
1664
|
-
stateMutability: 'view',
|
|
1665
|
-
type: 'function',
|
|
1666
|
-
},
|
|
1667
|
-
{
|
|
1668
|
-
inputs: [{ internalType: 'MarketId', name: 'marketId', type: 'uint24' }],
|
|
1669
|
-
name: 'disableStrictHealthCheck',
|
|
1670
|
-
outputs: [],
|
|
1671
|
-
stateMutability: 'nonpayable',
|
|
1622
|
+
inputs: [{ internalType: 'MarketId', name: 'marketId', type: 'uint24' }],
|
|
1623
|
+
name: 'disableStrictHealthCheck',
|
|
1624
|
+
outputs: [],
|
|
1625
|
+
stateMutability: 'nonpayable',
|
|
1672
1626
|
type: 'function',
|
|
1673
1627
|
},
|
|
1674
1628
|
{
|
|
@@ -1738,13 +1692,6 @@ exports.iMarketHubStorageOnlyAbi = [
|
|
|
1738
1692
|
stateMutability: 'view',
|
|
1739
1693
|
type: 'function',
|
|
1740
1694
|
},
|
|
1741
|
-
{
|
|
1742
|
-
inputs: [],
|
|
1743
|
-
name: 'globalCooldown',
|
|
1744
|
-
outputs: [{ internalType: 'uint32', name: '', type: 'uint32' }],
|
|
1745
|
-
stateMutability: 'view',
|
|
1746
|
-
type: 'function',
|
|
1747
|
-
},
|
|
1748
1695
|
{
|
|
1749
1696
|
inputs: [
|
|
1750
1697
|
{ internalType: 'MarketAcc', name: 'user', type: 'bytes26' },
|
|
@@ -1762,13 +1709,6 @@ exports.iMarketHubStorageOnlyAbi = [
|
|
|
1762
1709
|
stateMutability: 'view',
|
|
1763
1710
|
type: 'function',
|
|
1764
1711
|
},
|
|
1765
|
-
{
|
|
1766
|
-
inputs: [{ internalType: 'address', name: 'root', type: 'address' }],
|
|
1767
|
-
name: 'maxAllowedSubaccountId',
|
|
1768
|
-
outputs: [{ internalType: 'uint8', name: '', type: 'uint8' }],
|
|
1769
|
-
stateMutability: 'view',
|
|
1770
|
-
type: 'function',
|
|
1771
|
-
},
|
|
1772
1712
|
{
|
|
1773
1713
|
inputs: [{ internalType: 'address[]', name: 'markets', type: 'address[]' }],
|
|
1774
1714
|
name: 'registerMarket',
|
|
@@ -1783,13 +1723,6 @@ exports.iMarketHubStorageOnlyAbi = [
|
|
|
1783
1723
|
stateMutability: 'nonpayable',
|
|
1784
1724
|
type: 'function',
|
|
1785
1725
|
},
|
|
1786
|
-
{
|
|
1787
|
-
inputs: [],
|
|
1788
|
-
name: 'riskyThresHR',
|
|
1789
|
-
outputs: [{ internalType: 'int256', name: '', type: 'int256' }],
|
|
1790
|
-
stateMutability: 'view',
|
|
1791
|
-
type: 'function',
|
|
1792
|
-
},
|
|
1793
1726
|
{
|
|
1794
1727
|
inputs: [{ internalType: 'int128', name: 'newCritHR', type: 'int128' }],
|
|
1795
1728
|
name: 'setCritHR',
|
|
@@ -1874,227 +1807,461 @@ exports.iMarketHubStorageOnlyAbi = [
|
|
|
1874
1807
|
type: 'function',
|
|
1875
1808
|
},
|
|
1876
1809
|
];
|
|
1877
|
-
exports.
|
|
1810
|
+
exports.iMarketHubStorageOnlyAbi = [
|
|
1878
1811
|
{
|
|
1879
1812
|
anonymous: false,
|
|
1880
1813
|
inputs: [
|
|
1881
|
-
{ indexed: false, internalType: '
|
|
1882
|
-
{
|
|
1883
|
-
|
|
1884
|
-
{ internalType: 'string', name: 'name', type: 'string' },
|
|
1885
|
-
{ internalType: 'string', name: 'symbol', type: 'string' },
|
|
1886
|
-
{ internalType: 'bool', name: 'k_isIsolatedOnly', type: 'bool' },
|
|
1887
|
-
{ internalType: 'uint32', name: 'k_maturity', type: 'uint32' },
|
|
1888
|
-
{ internalType: 'TokenId', name: 'k_tokenId', type: 'uint16' },
|
|
1889
|
-
{ internalType: 'MarketId', name: 'k_marketId', type: 'uint24' },
|
|
1890
|
-
{ internalType: 'uint8', name: 'k_tickStep', type: 'uint8' },
|
|
1891
|
-
{ internalType: 'uint16', name: 'k_iTickThresh', type: 'uint16' },
|
|
1892
|
-
],
|
|
1893
|
-
indexed: false,
|
|
1894
|
-
internalType: 'struct IMarketAllTypes.MarketImmutableDataStruct',
|
|
1895
|
-
name: 'immData',
|
|
1896
|
-
type: 'tuple',
|
|
1897
|
-
},
|
|
1898
|
-
{
|
|
1899
|
-
components: [
|
|
1900
|
-
{ internalType: 'uint16', name: 'maxOpenOrders', type: 'uint16' },
|
|
1901
|
-
{ internalType: 'address', name: 'markRateOracle', type: 'address' },
|
|
1902
|
-
{ internalType: 'address', name: 'fIndexOracle', type: 'address' },
|
|
1903
|
-
{ internalType: 'uint128', name: 'hardOICap', type: 'uint128' },
|
|
1904
|
-
{ internalType: 'uint64', name: 'takerFee', type: 'uint64' },
|
|
1905
|
-
{ internalType: 'uint64', name: 'otcFee', type: 'uint64' },
|
|
1906
|
-
{
|
|
1907
|
-
components: [
|
|
1908
|
-
{ internalType: 'uint64', name: 'base', type: 'uint64' },
|
|
1909
|
-
{ internalType: 'uint64', name: 'slope', type: 'uint64' },
|
|
1910
|
-
{ internalType: 'uint64', name: 'feeRate', type: 'uint64' },
|
|
1911
|
-
],
|
|
1912
|
-
internalType: 'struct IMarketAllTypes.LiqSettings',
|
|
1913
|
-
name: 'liqSettings',
|
|
1914
|
-
type: 'tuple',
|
|
1915
|
-
},
|
|
1916
|
-
{ internalType: 'uint64', name: 'kIM', type: 'uint64' },
|
|
1917
|
-
{ internalType: 'uint64', name: 'kMM', type: 'uint64' },
|
|
1918
|
-
{ internalType: 'uint32', name: 'tThresh', type: 'uint32' },
|
|
1919
|
-
{ internalType: 'uint16', name: 'maxRateDeviationFactorBase1e4', type: 'uint16' },
|
|
1920
|
-
{ internalType: 'uint16', name: 'closingOrderBoundBase1e4', type: 'uint16' },
|
|
1921
|
-
{ internalType: 'int16', name: 'loUpperConstBase1e4', type: 'int16' },
|
|
1922
|
-
{ internalType: 'int16', name: 'loUpperSlopeBase1e4', type: 'int16' },
|
|
1923
|
-
{ internalType: 'int16', name: 'loLowerConstBase1e4', type: 'int16' },
|
|
1924
|
-
{ internalType: 'int16', name: 'loLowerSlopeBase1e4', type: 'int16' },
|
|
1925
|
-
{ internalType: 'enum IMarketAllTypes.MarketStatus', name: 'status', type: 'uint8' },
|
|
1926
|
-
{ internalType: 'bool', name: 'useImpliedAsMarkRate', type: 'bool' },
|
|
1927
|
-
],
|
|
1928
|
-
indexed: false,
|
|
1929
|
-
internalType: 'struct IMarketAllTypes.MarketConfigStruct',
|
|
1930
|
-
name: 'config',
|
|
1931
|
-
type: 'tuple',
|
|
1932
|
-
},
|
|
1814
|
+
{ indexed: false, internalType: 'MarketAcc', name: 'from', type: 'bytes26' },
|
|
1815
|
+
{ indexed: false, internalType: 'MarketAcc', name: 'to', type: 'bytes26' },
|
|
1816
|
+
{ indexed: false, internalType: 'int256', name: 'amount', type: 'int256' },
|
|
1933
1817
|
],
|
|
1934
|
-
name: '
|
|
1818
|
+
name: 'CashTransfer',
|
|
1935
1819
|
type: 'event',
|
|
1936
1820
|
},
|
|
1937
1821
|
{
|
|
1938
|
-
|
|
1939
|
-
name: 'IMPLEMENTATION',
|
|
1940
|
-
outputs: [{ internalType: 'address', name: '', type: 'address' }],
|
|
1941
|
-
stateMutability: 'view',
|
|
1942
|
-
type: 'function',
|
|
1943
|
-
},
|
|
1944
|
-
{
|
|
1945
|
-
inputs: [],
|
|
1946
|
-
name: 'MARKET_HUB',
|
|
1947
|
-
outputs: [{ internalType: 'address', name: '', type: 'address' }],
|
|
1948
|
-
stateMutability: 'view',
|
|
1949
|
-
type: 'function',
|
|
1950
|
-
},
|
|
1951
|
-
{
|
|
1822
|
+
anonymous: false,
|
|
1952
1823
|
inputs: [
|
|
1953
|
-
{ internalType: '
|
|
1954
|
-
{ internalType: '
|
|
1955
|
-
{ internalType: 'bool', name: 'isIsolatedOnly', type: 'bool' },
|
|
1956
|
-
{ internalType: 'uint32', name: 'maturity', type: 'uint32' },
|
|
1957
|
-
{ internalType: 'TokenId', name: 'tokenId', type: 'uint16' },
|
|
1958
|
-
{ internalType: 'uint8', name: 'tickStep', type: 'uint8' },
|
|
1959
|
-
{ internalType: 'uint16', name: 'iTickThresh', type: 'uint16' },
|
|
1960
|
-
{
|
|
1961
|
-
components: [
|
|
1962
|
-
{ internalType: 'uint16', name: 'maxOpenOrders', type: 'uint16' },
|
|
1963
|
-
{ internalType: 'address', name: 'markRateOracle', type: 'address' },
|
|
1964
|
-
{ internalType: 'address', name: 'fIndexOracle', type: 'address' },
|
|
1965
|
-
{ internalType: 'uint128', name: 'hardOICap', type: 'uint128' },
|
|
1966
|
-
{ internalType: 'uint64', name: 'takerFee', type: 'uint64' },
|
|
1967
|
-
{ internalType: 'uint64', name: 'otcFee', type: 'uint64' },
|
|
1968
|
-
{
|
|
1969
|
-
components: [
|
|
1970
|
-
{ internalType: 'uint64', name: 'base', type: 'uint64' },
|
|
1971
|
-
{ internalType: 'uint64', name: 'slope', type: 'uint64' },
|
|
1972
|
-
{ internalType: 'uint64', name: 'feeRate', type: 'uint64' },
|
|
1973
|
-
],
|
|
1974
|
-
internalType: 'struct IMarketAllTypes.LiqSettings',
|
|
1975
|
-
name: 'liqSettings',
|
|
1976
|
-
type: 'tuple',
|
|
1977
|
-
},
|
|
1978
|
-
{ internalType: 'uint64', name: 'kIM', type: 'uint64' },
|
|
1979
|
-
{ internalType: 'uint64', name: 'kMM', type: 'uint64' },
|
|
1980
|
-
{ internalType: 'uint32', name: 'tThresh', type: 'uint32' },
|
|
1981
|
-
{ internalType: 'uint16', name: 'maxRateDeviationFactorBase1e4', type: 'uint16' },
|
|
1982
|
-
{ internalType: 'uint16', name: 'closingOrderBoundBase1e4', type: 'uint16' },
|
|
1983
|
-
{ internalType: 'int16', name: 'loUpperConstBase1e4', type: 'int16' },
|
|
1984
|
-
{ internalType: 'int16', name: 'loUpperSlopeBase1e4', type: 'int16' },
|
|
1985
|
-
{ internalType: 'int16', name: 'loLowerConstBase1e4', type: 'int16' },
|
|
1986
|
-
{ internalType: 'int16', name: 'loLowerSlopeBase1e4', type: 'int16' },
|
|
1987
|
-
{ internalType: 'enum IMarketAllTypes.MarketStatus', name: 'status', type: 'uint8' },
|
|
1988
|
-
{ internalType: 'bool', name: 'useImpliedAsMarkRate', type: 'bool' },
|
|
1989
|
-
],
|
|
1990
|
-
internalType: 'struct IMarketAllTypes.MarketConfigStruct',
|
|
1991
|
-
name: 'config',
|
|
1992
|
-
type: 'tuple',
|
|
1993
|
-
},
|
|
1994
|
-
{
|
|
1995
|
-
components: [
|
|
1996
|
-
{ internalType: 'int16', name: 'seedTradedTick', type: 'int16' },
|
|
1997
|
-
{ internalType: 'uint32', name: 'window', type: 'uint32' },
|
|
1998
|
-
],
|
|
1999
|
-
internalType: 'struct MarketImpliedRateLib.InitStruct',
|
|
2000
|
-
name: 'impliedRateInit',
|
|
2001
|
-
type: 'tuple',
|
|
2002
|
-
},
|
|
1824
|
+
{ indexed: true, internalType: 'TokenId', name: 'tokenId', type: 'uint16' },
|
|
1825
|
+
{ indexed: false, internalType: 'uint256', name: 'amount', type: 'uint256' },
|
|
2003
1826
|
],
|
|
2004
|
-
name: '
|
|
2005
|
-
|
|
2006
|
-
stateMutability: 'nonpayable',
|
|
2007
|
-
type: 'function',
|
|
1827
|
+
name: 'CollectFee',
|
|
1828
|
+
type: 'event',
|
|
2008
1829
|
},
|
|
2009
1830
|
{
|
|
2010
|
-
|
|
2011
|
-
name: '
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
type: 'function',
|
|
1831
|
+
anonymous: false,
|
|
1832
|
+
inputs: [{ indexed: false, internalType: 'int256', name: 'newCritHR', type: 'int256' }],
|
|
1833
|
+
name: 'CritHRUpdated',
|
|
1834
|
+
type: 'event',
|
|
2015
1835
|
},
|
|
2016
|
-
];
|
|
2017
|
-
exports.iRouterAbi = [
|
|
2018
1836
|
{
|
|
2019
1837
|
anonymous: false,
|
|
2020
1838
|
inputs: [
|
|
2021
|
-
{ indexed: false, internalType: '
|
|
2022
|
-
{ indexed: false, internalType: '
|
|
1839
|
+
{ indexed: false, internalType: 'MarketAcc', name: 'user', type: 'bytes26' },
|
|
1840
|
+
{ indexed: false, internalType: 'MarketId', name: 'marketId', type: 'uint24' },
|
|
1841
|
+
{ indexed: false, internalType: 'uint256', name: 'entranceFee', type: 'uint256' },
|
|
2023
1842
|
],
|
|
2024
|
-
name: '
|
|
1843
|
+
name: 'EnterMarket',
|
|
2025
1844
|
type: 'event',
|
|
2026
1845
|
},
|
|
2027
1846
|
{
|
|
2028
1847
|
anonymous: false,
|
|
2029
1848
|
inputs: [
|
|
2030
|
-
{ indexed:
|
|
2031
|
-
{ indexed:
|
|
2032
|
-
{ indexed: false, internalType: 'int256', name: 'exactSizeIn', type: 'int256' },
|
|
2033
|
-
{ indexed: false, internalType: 'uint256', name: 'netLpOut', type: 'uint256' },
|
|
2034
|
-
{ indexed: false, internalType: 'int256', name: 'netCashIn', type: 'int256' },
|
|
2035
|
-
{ indexed: false, internalType: 'uint256', name: 'netOtcFee', type: 'uint256' },
|
|
1849
|
+
{ indexed: false, internalType: 'MarketAcc', name: 'user', type: 'bytes26' },
|
|
1850
|
+
{ indexed: false, internalType: 'MarketId', name: 'marketId', type: 'uint24' },
|
|
2036
1851
|
],
|
|
2037
|
-
name: '
|
|
1852
|
+
name: 'ExitMarket',
|
|
2038
1853
|
type: 'event',
|
|
2039
1854
|
},
|
|
2040
1855
|
{
|
|
2041
1856
|
anonymous: false,
|
|
2042
|
-
inputs: [
|
|
2043
|
-
|
|
2044
|
-
{ indexed: true, internalType: 'AMMId', name: 'ammId', type: 'uint24' },
|
|
2045
|
-
{ indexed: false, internalType: 'uint256', name: 'netLpOut', type: 'uint256' },
|
|
2046
|
-
{ indexed: false, internalType: 'int256', name: 'netCashIn', type: 'int256' },
|
|
2047
|
-
{ indexed: false, internalType: 'uint256', name: 'totalTakerOtcFee', type: 'uint256' },
|
|
2048
|
-
{ indexed: false, internalType: 'int256', name: 'swapSizeInterm', type: 'int256' },
|
|
2049
|
-
],
|
|
2050
|
-
name: 'AddLiquiditySingleCashToAmm',
|
|
1857
|
+
inputs: [{ indexed: false, internalType: 'uint32', name: 'newCooldown', type: 'uint32' }],
|
|
1858
|
+
name: 'GlobalCooldownSet',
|
|
2051
1859
|
type: 'event',
|
|
2052
1860
|
},
|
|
2053
1861
|
{
|
|
2054
1862
|
anonymous: false,
|
|
2055
1863
|
inputs: [
|
|
2056
|
-
{ indexed: true, internalType: '
|
|
2057
|
-
{ indexed: true, internalType: 'address', name: '
|
|
2058
|
-
{ indexed: true, internalType: 'uint64', name: 'expiry', type: 'uint64' },
|
|
1864
|
+
{ indexed: true, internalType: 'MarketId', name: 'marketId', type: 'uint24' },
|
|
1865
|
+
{ indexed: true, internalType: 'address', name: 'marketAddress', type: 'address' },
|
|
2059
1866
|
],
|
|
2060
|
-
name: '
|
|
1867
|
+
name: 'MarketAdded',
|
|
2061
1868
|
type: 'event',
|
|
2062
1869
|
},
|
|
2063
1870
|
{
|
|
2064
1871
|
anonymous: false,
|
|
2065
1872
|
inputs: [
|
|
2066
|
-
{ indexed:
|
|
2067
|
-
{ indexed:
|
|
1873
|
+
{ indexed: false, internalType: 'TokenId[]', name: 'tokenIds', type: 'uint16[]' },
|
|
1874
|
+
{ indexed: false, internalType: 'uint128[]', name: 'entranceFees', type: 'uint128[]' },
|
|
2068
1875
|
],
|
|
2069
|
-
name: '
|
|
1876
|
+
name: 'MarketEntranceFeesUpdated',
|
|
2070
1877
|
type: 'event',
|
|
2071
1878
|
},
|
|
2072
1879
|
{
|
|
2073
1880
|
anonymous: false,
|
|
2074
1881
|
inputs: [
|
|
2075
|
-
{ indexed:
|
|
2076
|
-
{ indexed:
|
|
2077
|
-
{ indexed: false, internalType: 'enum TimeInForce', name: 'tif', type: 'uint8' },
|
|
2078
|
-
{ indexed: false, internalType: 'Trade', name: 'matched', type: 'uint256' },
|
|
2079
|
-
{ indexed: false, internalType: 'uint256', name: 'takerFee', type: 'uint256' },
|
|
1882
|
+
{ indexed: false, internalType: 'TokenId[]', name: 'tokenIds', type: 'uint16[]' },
|
|
1883
|
+
{ indexed: false, internalType: 'uint128[]', name: 'newMinCash', type: 'uint128[]' },
|
|
2080
1884
|
],
|
|
2081
|
-
name: '
|
|
1885
|
+
name: 'MinCashCrossAccountsUpdated',
|
|
2082
1886
|
type: 'event',
|
|
2083
1887
|
},
|
|
2084
1888
|
{
|
|
2085
1889
|
anonymous: false,
|
|
2086
1890
|
inputs: [
|
|
2087
|
-
{ indexed: false, internalType: '
|
|
2088
|
-
{ indexed: false, internalType: '
|
|
1891
|
+
{ indexed: false, internalType: 'TokenId[]', name: 'tokenIds', type: 'uint16[]' },
|
|
1892
|
+
{ indexed: false, internalType: 'uint128[]', name: 'newMinCash', type: 'uint128[]' },
|
|
2089
1893
|
],
|
|
2090
|
-
name: '
|
|
1894
|
+
name: 'MinCashIsolatedAccountsUpdated',
|
|
2091
1895
|
type: 'event',
|
|
2092
1896
|
},
|
|
2093
1897
|
{
|
|
2094
1898
|
anonymous: false,
|
|
2095
1899
|
inputs: [
|
|
2096
|
-
{ indexed:
|
|
2097
|
-
{ indexed:
|
|
1900
|
+
{ indexed: false, internalType: 'MarketAcc', name: 'user', type: 'bytes26' },
|
|
1901
|
+
{ indexed: false, internalType: 'uint256', name: 'amount', type: 'uint256' },
|
|
1902
|
+
],
|
|
1903
|
+
name: 'PayTreasury',
|
|
1904
|
+
type: 'event',
|
|
1905
|
+
},
|
|
1906
|
+
{
|
|
1907
|
+
anonymous: false,
|
|
1908
|
+
inputs: [
|
|
1909
|
+
{ indexed: false, internalType: 'address', name: 'root', type: 'address' },
|
|
1910
|
+
{ indexed: false, internalType: 'uint32', name: 'cooldown', type: 'uint32' },
|
|
1911
|
+
],
|
|
1912
|
+
name: 'PersonalCooldownSet',
|
|
1913
|
+
type: 'event',
|
|
1914
|
+
},
|
|
1915
|
+
{
|
|
1916
|
+
anonymous: false,
|
|
1917
|
+
inputs: [{ indexed: false, internalType: 'int256', name: 'newRiskyThresHR', type: 'int256' }],
|
|
1918
|
+
name: 'RiskyThresHRUpdated',
|
|
1919
|
+
type: 'event',
|
|
1920
|
+
},
|
|
1921
|
+
{
|
|
1922
|
+
anonymous: false,
|
|
1923
|
+
inputs: [
|
|
1924
|
+
{ indexed: false, internalType: 'MarketId', name: 'marketId', type: 'uint24' },
|
|
1925
|
+
{ indexed: false, internalType: 'bool', name: 'isEnabled', type: 'bool' },
|
|
1926
|
+
],
|
|
1927
|
+
name: 'StrictHealthCheckUpdated',
|
|
1928
|
+
type: 'event',
|
|
1929
|
+
},
|
|
1930
|
+
{
|
|
1931
|
+
anonymous: false,
|
|
1932
|
+
inputs: [
|
|
1933
|
+
{ indexed: true, internalType: 'TokenId', name: 'tokenId', type: 'uint16' },
|
|
1934
|
+
{ indexed: true, internalType: 'address', name: 'tokenAddress', type: 'address' },
|
|
1935
|
+
],
|
|
1936
|
+
name: 'TokenAdded',
|
|
1937
|
+
type: 'event',
|
|
1938
|
+
},
|
|
1939
|
+
{
|
|
1940
|
+
anonymous: false,
|
|
1941
|
+
inputs: [
|
|
1942
|
+
{ indexed: false, internalType: 'MarketAcc', name: 'acc', type: 'bytes26' },
|
|
1943
|
+
{ indexed: false, internalType: 'uint256', name: 'unscaledAmount', type: 'uint256' },
|
|
1944
|
+
],
|
|
1945
|
+
name: 'VaultDeposit',
|
|
1946
|
+
type: 'event',
|
|
1947
|
+
},
|
|
1948
|
+
{
|
|
1949
|
+
anonymous: false,
|
|
1950
|
+
inputs: [
|
|
1951
|
+
{ indexed: false, internalType: 'address', name: 'root', type: 'address' },
|
|
1952
|
+
{ indexed: false, internalType: 'TokenId', name: 'tokenId', type: 'uint16' },
|
|
1953
|
+
{ indexed: false, internalType: 'uint256', name: 'totalUnscaledAmount', type: 'uint256' },
|
|
1954
|
+
],
|
|
1955
|
+
name: 'VaultWithdrawalCanceled',
|
|
1956
|
+
type: 'event',
|
|
1957
|
+
},
|
|
1958
|
+
{
|
|
1959
|
+
anonymous: false,
|
|
1960
|
+
inputs: [
|
|
1961
|
+
{ indexed: false, internalType: 'address', name: 'root', type: 'address' },
|
|
1962
|
+
{ indexed: false, internalType: 'TokenId', name: 'tokenId', type: 'uint16' },
|
|
1963
|
+
{ indexed: false, internalType: 'uint256', name: 'totalUnscaledAmount', type: 'uint256' },
|
|
1964
|
+
],
|
|
1965
|
+
name: 'VaultWithdrawalFinalized',
|
|
1966
|
+
type: 'event',
|
|
1967
|
+
},
|
|
1968
|
+
{
|
|
1969
|
+
anonymous: false,
|
|
1970
|
+
inputs: [
|
|
1971
|
+
{ indexed: false, internalType: 'address', name: 'root', type: 'address' },
|
|
1972
|
+
{ indexed: false, internalType: 'TokenId', name: 'tokenId', type: 'uint16' },
|
|
1973
|
+
{ indexed: false, internalType: 'uint32', name: 'start', type: 'uint32' },
|
|
1974
|
+
{ indexed: false, internalType: 'uint256', name: 'totalUnscaledAmount', type: 'uint256' },
|
|
1975
|
+
],
|
|
1976
|
+
name: 'VaultWithdrawalRequested',
|
|
1977
|
+
type: 'event',
|
|
1978
|
+
},
|
|
1979
|
+
{
|
|
1980
|
+
inputs: [],
|
|
1981
|
+
name: 'MARKET_FACTORY',
|
|
1982
|
+
outputs: [{ internalType: 'address', name: '', type: 'address' }],
|
|
1983
|
+
stateMutability: 'view',
|
|
1984
|
+
type: 'function',
|
|
1985
|
+
},
|
|
1986
|
+
{
|
|
1987
|
+
inputs: [],
|
|
1988
|
+
name: 'MAX_ENTERED_MARKETS',
|
|
1989
|
+
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
|
|
1990
|
+
stateMutability: 'view',
|
|
1991
|
+
type: 'function',
|
|
1992
|
+
},
|
|
1993
|
+
{
|
|
1994
|
+
inputs: [],
|
|
1995
|
+
name: 'ROUTER',
|
|
1996
|
+
outputs: [{ internalType: 'address', name: '', type: 'address' }],
|
|
1997
|
+
stateMutability: 'view',
|
|
1998
|
+
type: 'function',
|
|
1999
|
+
},
|
|
2000
|
+
{
|
|
2001
|
+
inputs: [],
|
|
2002
|
+
name: 'TREASURY',
|
|
2003
|
+
outputs: [{ internalType: 'address', name: '', type: 'address' }],
|
|
2004
|
+
stateMutability: 'view',
|
|
2005
|
+
type: 'function',
|
|
2006
|
+
},
|
|
2007
|
+
{
|
|
2008
|
+
inputs: [],
|
|
2009
|
+
name: 'critHR',
|
|
2010
|
+
outputs: [{ internalType: 'int128', name: '', type: 'int128' }],
|
|
2011
|
+
stateMutability: 'view',
|
|
2012
|
+
type: 'function',
|
|
2013
|
+
},
|
|
2014
|
+
{
|
|
2015
|
+
inputs: [],
|
|
2016
|
+
name: 'globalCooldown',
|
|
2017
|
+
outputs: [{ internalType: 'uint32', name: '', type: 'uint32' }],
|
|
2018
|
+
stateMutability: 'view',
|
|
2019
|
+
type: 'function',
|
|
2020
|
+
},
|
|
2021
|
+
{
|
|
2022
|
+
inputs: [],
|
|
2023
|
+
name: 'riskyThresHR',
|
|
2024
|
+
outputs: [{ internalType: 'int256', name: '', type: 'int256' }],
|
|
2025
|
+
stateMutability: 'view',
|
|
2026
|
+
type: 'function',
|
|
2027
|
+
},
|
|
2028
|
+
];
|
|
2029
|
+
exports.iMarketFactoryAbi = [
|
|
2030
|
+
{
|
|
2031
|
+
anonymous: false,
|
|
2032
|
+
inputs: [
|
|
2033
|
+
{ indexed: false, internalType: 'address', name: 'market', type: 'address' },
|
|
2034
|
+
{
|
|
2035
|
+
components: [
|
|
2036
|
+
{ internalType: 'string', name: 'name', type: 'string' },
|
|
2037
|
+
{ internalType: 'string', name: 'symbol', type: 'string' },
|
|
2038
|
+
{ internalType: 'bool', name: 'k_isIsolatedOnly', type: 'bool' },
|
|
2039
|
+
{ internalType: 'uint32', name: 'k_maturity', type: 'uint32' },
|
|
2040
|
+
{ internalType: 'TokenId', name: 'k_tokenId', type: 'uint16' },
|
|
2041
|
+
{ internalType: 'MarketId', name: 'k_marketId', type: 'uint24' },
|
|
2042
|
+
{ internalType: 'uint8', name: 'k_tickStep', type: 'uint8' },
|
|
2043
|
+
{ internalType: 'uint16', name: 'k_iTickThresh', type: 'uint16' },
|
|
2044
|
+
],
|
|
2045
|
+
indexed: false,
|
|
2046
|
+
internalType: 'struct IMarketAllTypes.MarketImmutableDataStruct',
|
|
2047
|
+
name: 'immData',
|
|
2048
|
+
type: 'tuple',
|
|
2049
|
+
},
|
|
2050
|
+
{
|
|
2051
|
+
components: [
|
|
2052
|
+
{ internalType: 'uint16', name: 'maxOpenOrders', type: 'uint16' },
|
|
2053
|
+
{ internalType: 'address', name: 'markRateOracle', type: 'address' },
|
|
2054
|
+
{ internalType: 'address', name: 'fIndexOracle', type: 'address' },
|
|
2055
|
+
{ internalType: 'uint128', name: 'hardOICap', type: 'uint128' },
|
|
2056
|
+
{ internalType: 'uint64', name: 'takerFee', type: 'uint64' },
|
|
2057
|
+
{ internalType: 'uint64', name: 'otcFee', type: 'uint64' },
|
|
2058
|
+
{
|
|
2059
|
+
components: [
|
|
2060
|
+
{ internalType: 'uint64', name: 'base', type: 'uint64' },
|
|
2061
|
+
{ internalType: 'uint64', name: 'slope', type: 'uint64' },
|
|
2062
|
+
{ internalType: 'uint64', name: 'feeRate', type: 'uint64' },
|
|
2063
|
+
],
|
|
2064
|
+
internalType: 'struct IMarketAllTypes.LiqSettings',
|
|
2065
|
+
name: 'liqSettings',
|
|
2066
|
+
type: 'tuple',
|
|
2067
|
+
},
|
|
2068
|
+
{ internalType: 'uint64', name: 'kIM', type: 'uint64' },
|
|
2069
|
+
{ internalType: 'uint64', name: 'kMM', type: 'uint64' },
|
|
2070
|
+
{ internalType: 'uint32', name: 'tThresh', type: 'uint32' },
|
|
2071
|
+
{ internalType: 'uint16', name: 'maxRateDeviationFactorBase1e4', type: 'uint16' },
|
|
2072
|
+
{ internalType: 'uint16', name: 'closingOrderBoundBase1e4', type: 'uint16' },
|
|
2073
|
+
{ internalType: 'int16', name: 'loUpperConstBase1e4', type: 'int16' },
|
|
2074
|
+
{ internalType: 'int16', name: 'loUpperSlopeBase1e4', type: 'int16' },
|
|
2075
|
+
{ internalType: 'int16', name: 'loLowerConstBase1e4', type: 'int16' },
|
|
2076
|
+
{ internalType: 'int16', name: 'loLowerSlopeBase1e4', type: 'int16' },
|
|
2077
|
+
{ internalType: 'enum IMarketAllTypes.MarketStatus', name: 'status', type: 'uint8' },
|
|
2078
|
+
{ internalType: 'bool', name: 'useImpliedAsMarkRate', type: 'bool' },
|
|
2079
|
+
],
|
|
2080
|
+
indexed: false,
|
|
2081
|
+
internalType: 'struct IMarketAllTypes.MarketConfigStruct',
|
|
2082
|
+
name: 'config',
|
|
2083
|
+
type: 'tuple',
|
|
2084
|
+
},
|
|
2085
|
+
],
|
|
2086
|
+
name: 'MarketCreated',
|
|
2087
|
+
type: 'event',
|
|
2088
|
+
},
|
|
2089
|
+
{
|
|
2090
|
+
inputs: [],
|
|
2091
|
+
name: 'IMPLEMENTATION',
|
|
2092
|
+
outputs: [{ internalType: 'address', name: '', type: 'address' }],
|
|
2093
|
+
stateMutability: 'view',
|
|
2094
|
+
type: 'function',
|
|
2095
|
+
},
|
|
2096
|
+
{
|
|
2097
|
+
inputs: [],
|
|
2098
|
+
name: 'MARKET_HUB',
|
|
2099
|
+
outputs: [{ internalType: 'address', name: '', type: 'address' }],
|
|
2100
|
+
stateMutability: 'view',
|
|
2101
|
+
type: 'function',
|
|
2102
|
+
},
|
|
2103
|
+
{
|
|
2104
|
+
inputs: [
|
|
2105
|
+
{ internalType: 'string', name: 'name', type: 'string' },
|
|
2106
|
+
{ internalType: 'string', name: 'symbol', type: 'string' },
|
|
2107
|
+
{ internalType: 'bool', name: 'isIsolatedOnly', type: 'bool' },
|
|
2108
|
+
{ internalType: 'uint32', name: 'maturity', type: 'uint32' },
|
|
2109
|
+
{ internalType: 'TokenId', name: 'tokenId', type: 'uint16' },
|
|
2110
|
+
{ internalType: 'uint8', name: 'tickStep', type: 'uint8' },
|
|
2111
|
+
{ internalType: 'uint16', name: 'iTickThresh', type: 'uint16' },
|
|
2112
|
+
{
|
|
2113
|
+
components: [
|
|
2114
|
+
{ internalType: 'uint16', name: 'maxOpenOrders', type: 'uint16' },
|
|
2115
|
+
{ internalType: 'address', name: 'markRateOracle', type: 'address' },
|
|
2116
|
+
{ internalType: 'address', name: 'fIndexOracle', type: 'address' },
|
|
2117
|
+
{ internalType: 'uint128', name: 'hardOICap', type: 'uint128' },
|
|
2118
|
+
{ internalType: 'uint64', name: 'takerFee', type: 'uint64' },
|
|
2119
|
+
{ internalType: 'uint64', name: 'otcFee', type: 'uint64' },
|
|
2120
|
+
{
|
|
2121
|
+
components: [
|
|
2122
|
+
{ internalType: 'uint64', name: 'base', type: 'uint64' },
|
|
2123
|
+
{ internalType: 'uint64', name: 'slope', type: 'uint64' },
|
|
2124
|
+
{ internalType: 'uint64', name: 'feeRate', type: 'uint64' },
|
|
2125
|
+
],
|
|
2126
|
+
internalType: 'struct IMarketAllTypes.LiqSettings',
|
|
2127
|
+
name: 'liqSettings',
|
|
2128
|
+
type: 'tuple',
|
|
2129
|
+
},
|
|
2130
|
+
{ internalType: 'uint64', name: 'kIM', type: 'uint64' },
|
|
2131
|
+
{ internalType: 'uint64', name: 'kMM', type: 'uint64' },
|
|
2132
|
+
{ internalType: 'uint32', name: 'tThresh', type: 'uint32' },
|
|
2133
|
+
{ internalType: 'uint16', name: 'maxRateDeviationFactorBase1e4', type: 'uint16' },
|
|
2134
|
+
{ internalType: 'uint16', name: 'closingOrderBoundBase1e4', type: 'uint16' },
|
|
2135
|
+
{ internalType: 'int16', name: 'loUpperConstBase1e4', type: 'int16' },
|
|
2136
|
+
{ internalType: 'int16', name: 'loUpperSlopeBase1e4', type: 'int16' },
|
|
2137
|
+
{ internalType: 'int16', name: 'loLowerConstBase1e4', type: 'int16' },
|
|
2138
|
+
{ internalType: 'int16', name: 'loLowerSlopeBase1e4', type: 'int16' },
|
|
2139
|
+
{ internalType: 'enum IMarketAllTypes.MarketStatus', name: 'status', type: 'uint8' },
|
|
2140
|
+
{ internalType: 'bool', name: 'useImpliedAsMarkRate', type: 'bool' },
|
|
2141
|
+
],
|
|
2142
|
+
internalType: 'struct IMarketAllTypes.MarketConfigStruct',
|
|
2143
|
+
name: 'config',
|
|
2144
|
+
type: 'tuple',
|
|
2145
|
+
},
|
|
2146
|
+
{
|
|
2147
|
+
components: [
|
|
2148
|
+
{ internalType: 'int16', name: 'seedTradedTick', type: 'int16' },
|
|
2149
|
+
{ internalType: 'uint32', name: 'window', type: 'uint32' },
|
|
2150
|
+
],
|
|
2151
|
+
internalType: 'struct MarketImpliedRateLib.InitStruct',
|
|
2152
|
+
name: 'impliedRateInit',
|
|
2153
|
+
type: 'tuple',
|
|
2154
|
+
},
|
|
2155
|
+
],
|
|
2156
|
+
name: 'create',
|
|
2157
|
+
outputs: [{ internalType: 'address', name: 'newMarket', type: 'address' }],
|
|
2158
|
+
stateMutability: 'nonpayable',
|
|
2159
|
+
type: 'function',
|
|
2160
|
+
},
|
|
2161
|
+
{
|
|
2162
|
+
inputs: [],
|
|
2163
|
+
name: 'marketNonce',
|
|
2164
|
+
outputs: [{ internalType: 'uint24', name: '', type: 'uint24' }],
|
|
2165
|
+
stateMutability: 'view',
|
|
2166
|
+
type: 'function',
|
|
2167
|
+
},
|
|
2168
|
+
];
|
|
2169
|
+
exports.iRouterAbi = [
|
|
2170
|
+
{
|
|
2171
|
+
anonymous: false,
|
|
2172
|
+
inputs: [
|
|
2173
|
+
{ indexed: false, internalType: 'AMMId', name: 'ammId', type: 'uint24' },
|
|
2174
|
+
{ indexed: false, internalType: 'MarketAcc', name: 'amm', type: 'bytes26' },
|
|
2175
|
+
],
|
|
2176
|
+
name: 'AMMIdToAccUpdated',
|
|
2177
|
+
type: 'event',
|
|
2178
|
+
},
|
|
2179
|
+
{
|
|
2180
|
+
anonymous: false,
|
|
2181
|
+
inputs: [
|
|
2182
|
+
{ indexed: true, internalType: 'MarketAcc', name: 'user', type: 'bytes26' },
|
|
2183
|
+
{ indexed: true, internalType: 'AMMId', name: 'ammId', type: 'uint24' },
|
|
2184
|
+
{ indexed: false, internalType: 'int256', name: 'exactSizeIn', type: 'int256' },
|
|
2185
|
+
{ indexed: false, internalType: 'uint256', name: 'netLpOut', type: 'uint256' },
|
|
2186
|
+
{ indexed: false, internalType: 'int256', name: 'netCashIn', type: 'int256' },
|
|
2187
|
+
{ indexed: false, internalType: 'uint256', name: 'netOtcFee', type: 'uint256' },
|
|
2188
|
+
],
|
|
2189
|
+
name: 'AddLiquidityDualToAmm',
|
|
2190
|
+
type: 'event',
|
|
2191
|
+
},
|
|
2192
|
+
{
|
|
2193
|
+
anonymous: false,
|
|
2194
|
+
inputs: [
|
|
2195
|
+
{ indexed: true, internalType: 'MarketAcc', name: 'user', type: 'bytes26' },
|
|
2196
|
+
{ indexed: true, internalType: 'AMMId', name: 'ammId', type: 'uint24' },
|
|
2197
|
+
{ indexed: false, internalType: 'uint256', name: 'netLpOut', type: 'uint256' },
|
|
2198
|
+
{ indexed: false, internalType: 'int256', name: 'netCashIn', type: 'int256' },
|
|
2199
|
+
{ indexed: false, internalType: 'uint256', name: 'totalTakerOtcFee', type: 'uint256' },
|
|
2200
|
+
{ indexed: false, internalType: 'int256', name: 'swapSizeInterm', type: 'int256' },
|
|
2201
|
+
],
|
|
2202
|
+
name: 'AddLiquiditySingleCashToAmm',
|
|
2203
|
+
type: 'event',
|
|
2204
|
+
},
|
|
2205
|
+
{
|
|
2206
|
+
anonymous: false,
|
|
2207
|
+
inputs: [
|
|
2208
|
+
{ indexed: true, internalType: 'Account', name: 'account', type: 'bytes21' },
|
|
2209
|
+
{ indexed: true, internalType: 'address', name: 'agent', type: 'address' },
|
|
2210
|
+
{ indexed: true, internalType: 'uint64', name: 'expiry', type: 'uint64' },
|
|
2211
|
+
],
|
|
2212
|
+
name: 'AgentApproved',
|
|
2213
|
+
type: 'event',
|
|
2214
|
+
},
|
|
2215
|
+
{
|
|
2216
|
+
anonymous: false,
|
|
2217
|
+
inputs: [
|
|
2218
|
+
{ indexed: true, internalType: 'Account', name: 'account', type: 'bytes21' },
|
|
2219
|
+
{ indexed: true, internalType: 'address', name: 'agent', type: 'address' },
|
|
2220
|
+
],
|
|
2221
|
+
name: 'AgentRevoked',
|
|
2222
|
+
type: 'event',
|
|
2223
|
+
},
|
|
2224
|
+
{
|
|
2225
|
+
anonymous: false,
|
|
2226
|
+
inputs: [
|
|
2227
|
+
{ indexed: false, internalType: 'address', name: 'relayer', type: 'address' },
|
|
2228
|
+
{ indexed: false, internalType: 'bool', name: 'allowed', type: 'bool' },
|
|
2229
|
+
],
|
|
2230
|
+
name: 'AllowedRelayerUpdated',
|
|
2231
|
+
type: 'event',
|
|
2232
|
+
},
|
|
2233
|
+
{
|
|
2234
|
+
anonymous: false,
|
|
2235
|
+
inputs: [{ indexed: false, internalType: 'TokenId', name: 'tokenId', type: 'uint16' }],
|
|
2236
|
+
name: 'ApprovedMarketHubInf',
|
|
2237
|
+
type: 'event',
|
|
2238
|
+
},
|
|
2239
|
+
{
|
|
2240
|
+
anonymous: false,
|
|
2241
|
+
inputs: [
|
|
2242
|
+
{ indexed: true, internalType: 'MarketAcc', name: 'user', type: 'bytes26' },
|
|
2243
|
+
{ indexed: true, internalType: 'MarketId', name: 'marketId', type: 'uint24' },
|
|
2244
|
+
{ indexed: false, internalType: 'enum TimeInForce', name: 'tif', type: 'uint8' },
|
|
2245
|
+
{ indexed: false, internalType: 'Trade', name: 'matched', type: 'uint256' },
|
|
2246
|
+
{ indexed: false, internalType: 'uint256', name: 'takerFee', type: 'uint256' },
|
|
2247
|
+
],
|
|
2248
|
+
name: 'BulkOrdersExecuted',
|
|
2249
|
+
type: 'event',
|
|
2250
|
+
},
|
|
2251
|
+
{
|
|
2252
|
+
anonymous: false,
|
|
2253
|
+
inputs: [
|
|
2254
|
+
{ indexed: false, internalType: 'uint256', name: 'newMaxIteration', type: 'uint256' },
|
|
2255
|
+
{ indexed: false, internalType: 'uint256', name: 'newEps', type: 'uint256' },
|
|
2256
|
+
],
|
|
2257
|
+
name: 'MaxIterationAndEpsUpdated',
|
|
2258
|
+
type: 'event',
|
|
2259
|
+
},
|
|
2260
|
+
{
|
|
2261
|
+
anonymous: false,
|
|
2262
|
+
inputs: [
|
|
2263
|
+
{ indexed: true, internalType: 'Account', name: 'account', type: 'bytes21' },
|
|
2264
|
+
{ indexed: true, internalType: 'address', name: 'newAccManager', type: 'address' },
|
|
2098
2265
|
],
|
|
2099
2266
|
name: 'NewAccManagerSet',
|
|
2100
2267
|
type: 'event',
|
|
@@ -2258,6 +2425,24 @@ exports.iRouterAbi = [
|
|
|
2258
2425
|
stateMutability: 'view',
|
|
2259
2426
|
type: 'function',
|
|
2260
2427
|
},
|
|
2428
|
+
{
|
|
2429
|
+
inputs: [
|
|
2430
|
+
{
|
|
2431
|
+
components: [
|
|
2432
|
+
{ internalType: 'MarketId', name: 'marketId', type: 'uint24' },
|
|
2433
|
+
{ internalType: 'uint256', name: 'cashIn', type: 'uint256' },
|
|
2434
|
+
{ internalType: 'bool', name: 'cashTransferAll', type: 'bool' },
|
|
2435
|
+
],
|
|
2436
|
+
internalType: 'struct IRouterEventsAndTypes.AMMCashTransferReq',
|
|
2437
|
+
name: 'req',
|
|
2438
|
+
type: 'tuple',
|
|
2439
|
+
},
|
|
2440
|
+
],
|
|
2441
|
+
name: 'ammCashTransfer',
|
|
2442
|
+
outputs: [],
|
|
2443
|
+
stateMutability: 'nonpayable',
|
|
2444
|
+
type: 'function',
|
|
2445
|
+
},
|
|
2261
2446
|
{
|
|
2262
2447
|
inputs: [{ internalType: 'AMMId', name: 'ammId', type: 'uint24' }],
|
|
2263
2448
|
name: 'ammIdToAcc',
|
|
@@ -2286,6 +2471,13 @@ exports.iRouterAbi = [
|
|
|
2286
2471
|
stateMutability: 'nonpayable',
|
|
2287
2472
|
type: 'function',
|
|
2288
2473
|
},
|
|
2474
|
+
{
|
|
2475
|
+
inputs: [{ internalType: 'TokenId', name: 'tokenId', type: 'uint16' }],
|
|
2476
|
+
name: 'approveMarketHubInf',
|
|
2477
|
+
outputs: [],
|
|
2478
|
+
stateMutability: 'nonpayable',
|
|
2479
|
+
type: 'function',
|
|
2480
|
+
},
|
|
2289
2481
|
{
|
|
2290
2482
|
inputs: [
|
|
2291
2483
|
{
|
|
@@ -2478,16 +2670,6 @@ exports.iRouterAbi = [
|
|
|
2478
2670
|
stateMutability: 'nonpayable',
|
|
2479
2671
|
type: 'function',
|
|
2480
2672
|
},
|
|
2481
|
-
{
|
|
2482
|
-
inputs: [
|
|
2483
|
-
{ internalType: 'address', name: 'user', type: 'address' },
|
|
2484
|
-
{ internalType: 'TokenId', name: 'tokenId', type: 'uint16' },
|
|
2485
|
-
],
|
|
2486
|
-
name: 'finalizeVaultWithdrawal',
|
|
2487
|
-
outputs: [],
|
|
2488
|
-
stateMutability: 'nonpayable',
|
|
2489
|
-
type: 'function',
|
|
2490
|
-
},
|
|
2491
2673
|
{
|
|
2492
2674
|
inputs: [
|
|
2493
2675
|
{ internalType: 'string', name: 'eip712Name', type: 'string' },
|
|
@@ -2499,6 +2681,13 @@ exports.iRouterAbi = [
|
|
|
2499
2681
|
stateMutability: 'nonpayable',
|
|
2500
2682
|
type: 'function',
|
|
2501
2683
|
},
|
|
2684
|
+
{
|
|
2685
|
+
inputs: [{ internalType: 'address', name: 'relayer', type: 'address' }],
|
|
2686
|
+
name: 'isAllowedRelayer',
|
|
2687
|
+
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
|
|
2688
|
+
stateMutability: 'view',
|
|
2689
|
+
type: 'function',
|
|
2690
|
+
},
|
|
2502
2691
|
{
|
|
2503
2692
|
inputs: [],
|
|
2504
2693
|
name: 'maxIterationAndEps',
|
|
@@ -2672,7 +2861,10 @@ exports.iRouterAbi = [
|
|
|
2672
2861
|
type: 'function',
|
|
2673
2862
|
},
|
|
2674
2863
|
{
|
|
2675
|
-
inputs: [
|
|
2864
|
+
inputs: [
|
|
2865
|
+
{ internalType: 'address', name: 'amm', type: 'address' },
|
|
2866
|
+
{ internalType: 'bool', name: 'forceOverride', type: 'bool' },
|
|
2867
|
+
],
|
|
2676
2868
|
name: 'setAMMIdToAcc',
|
|
2677
2869
|
outputs: [],
|
|
2678
2870
|
stateMutability: 'nonpayable',
|
|
@@ -2698,6 +2890,16 @@ exports.iRouterAbi = [
|
|
|
2698
2890
|
stateMutability: 'nonpayable',
|
|
2699
2891
|
type: 'function',
|
|
2700
2892
|
},
|
|
2893
|
+
{
|
|
2894
|
+
inputs: [
|
|
2895
|
+
{ internalType: 'address', name: 'relayer', type: 'address' },
|
|
2896
|
+
{ internalType: 'bool', name: 'allowed', type: 'bool' },
|
|
2897
|
+
],
|
|
2898
|
+
name: 'setAllowedRelayer',
|
|
2899
|
+
outputs: [],
|
|
2900
|
+
stateMutability: 'nonpayable',
|
|
2901
|
+
type: 'function',
|
|
2902
|
+
},
|
|
2701
2903
|
{
|
|
2702
2904
|
inputs: [
|
|
2703
2905
|
{ internalType: 'uint256', name: 'newMaxIteration', type: 'uint256' },
|
|
@@ -7164,6 +7366,24 @@ exports.iTradeModuleAbi = [
|
|
|
7164
7366
|
name: 'SwapWithAmm',
|
|
7165
7367
|
type: 'event',
|
|
7166
7368
|
},
|
|
7369
|
+
{
|
|
7370
|
+
inputs: [
|
|
7371
|
+
{
|
|
7372
|
+
components: [
|
|
7373
|
+
{ internalType: 'MarketId', name: 'marketId', type: 'uint24' },
|
|
7374
|
+
{ internalType: 'uint256', name: 'cashIn', type: 'uint256' },
|
|
7375
|
+
{ internalType: 'bool', name: 'cashTransferAll', type: 'bool' },
|
|
7376
|
+
],
|
|
7377
|
+
internalType: 'struct IRouterEventsAndTypes.AMMCashTransferReq',
|
|
7378
|
+
name: 'req',
|
|
7379
|
+
type: 'tuple',
|
|
7380
|
+
},
|
|
7381
|
+
],
|
|
7382
|
+
name: 'ammCashTransfer',
|
|
7383
|
+
outputs: [],
|
|
7384
|
+
stateMutability: 'nonpayable',
|
|
7385
|
+
type: 'function',
|
|
7386
|
+
},
|
|
7167
7387
|
{
|
|
7168
7388
|
inputs: [
|
|
7169
7389
|
{
|
|
@@ -7274,19 +7494,9 @@ exports.iTradeModuleAbi = [
|
|
|
7274
7494
|
internalType: 'struct IRouterEventsAndTypes.EnterExitMarketsReq',
|
|
7275
7495
|
name: 'req',
|
|
7276
7496
|
type: 'tuple',
|
|
7277
|
-
},
|
|
7278
|
-
],
|
|
7279
|
-
name: 'enterExitMarkets',
|
|
7280
|
-
outputs: [],
|
|
7281
|
-
stateMutability: 'nonpayable',
|
|
7282
|
-
type: 'function',
|
|
7283
|
-
},
|
|
7284
|
-
{
|
|
7285
|
-
inputs: [
|
|
7286
|
-
{ internalType: 'address', name: 'user', type: 'address' },
|
|
7287
|
-
{ internalType: 'TokenId', name: 'tokenId', type: 'uint16' },
|
|
7497
|
+
},
|
|
7288
7498
|
],
|
|
7289
|
-
name: '
|
|
7499
|
+
name: 'enterExitMarkets',
|
|
7290
7500
|
outputs: [],
|
|
7291
7501
|
stateMutability: 'nonpayable',
|
|
7292
7502
|
type: 'function',
|
|
@@ -7727,112 +7937,442 @@ exports.iAuthModuleAbi = [
|
|
|
7727
7937
|
},
|
|
7728
7938
|
{ internalType: 'bytes', name: 'signature', type: 'bytes' },
|
|
7729
7939
|
],
|
|
7730
|
-
name: 'vaultPayTreasury',
|
|
7731
|
-
outputs: [],
|
|
7732
|
-
stateMutability: 'nonpayable',
|
|
7940
|
+
name: 'vaultPayTreasury',
|
|
7941
|
+
outputs: [],
|
|
7942
|
+
stateMutability: 'nonpayable',
|
|
7943
|
+
type: 'function',
|
|
7944
|
+
},
|
|
7945
|
+
];
|
|
7946
|
+
exports.iFIndexOracleAbi = [
|
|
7947
|
+
{
|
|
7948
|
+
anonymous: false,
|
|
7949
|
+
inputs: [
|
|
7950
|
+
{ indexed: false, internalType: 'uint64', name: 'newSettleFeeRate', type: 'uint64' },
|
|
7951
|
+
{ indexed: false, internalType: 'uint32', name: 'newUpdatePeriod', type: 'uint32' },
|
|
7952
|
+
{ indexed: false, internalType: 'uint32', name: 'newMaxUpdateDelay', type: 'uint32' },
|
|
7953
|
+
],
|
|
7954
|
+
name: 'ConfigUpdated',
|
|
7955
|
+
type: 'event',
|
|
7956
|
+
},
|
|
7957
|
+
{
|
|
7958
|
+
anonymous: false,
|
|
7959
|
+
inputs: [{ indexed: false, internalType: 'address', name: 'newKeeper', type: 'address' }],
|
|
7960
|
+
name: 'KeeperUpdated',
|
|
7961
|
+
type: 'event',
|
|
7962
|
+
},
|
|
7963
|
+
{
|
|
7964
|
+
inputs: [],
|
|
7965
|
+
name: 'getConfig',
|
|
7966
|
+
outputs: [
|
|
7967
|
+
{ internalType: 'uint64', name: 'settleFeeRate', type: 'uint64' },
|
|
7968
|
+
{ internalType: 'uint32', name: 'updatePeriod', type: 'uint32' },
|
|
7969
|
+
{ internalType: 'uint32', name: 'maxUpdateDelay', type: 'uint32' },
|
|
7970
|
+
],
|
|
7971
|
+
stateMutability: 'view',
|
|
7972
|
+
type: 'function',
|
|
7973
|
+
},
|
|
7974
|
+
{
|
|
7975
|
+
inputs: [],
|
|
7976
|
+
name: 'getLatestFIndex',
|
|
7977
|
+
outputs: [{ internalType: 'FIndex', name: '', type: 'bytes26' }],
|
|
7978
|
+
stateMutability: 'view',
|
|
7979
|
+
type: 'function',
|
|
7980
|
+
},
|
|
7981
|
+
{
|
|
7982
|
+
inputs: [],
|
|
7983
|
+
name: 'isDueForUpdateNow',
|
|
7984
|
+
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
|
|
7985
|
+
stateMutability: 'view',
|
|
7986
|
+
type: 'function',
|
|
7987
|
+
},
|
|
7988
|
+
{
|
|
7989
|
+
inputs: [],
|
|
7990
|
+
name: 'keeper',
|
|
7991
|
+
outputs: [{ internalType: 'address', name: '', type: 'address' }],
|
|
7992
|
+
stateMutability: 'view',
|
|
7993
|
+
type: 'function',
|
|
7994
|
+
},
|
|
7995
|
+
{
|
|
7996
|
+
inputs: [],
|
|
7997
|
+
name: 'latestAnnualizedRate',
|
|
7998
|
+
outputs: [{ internalType: 'int256', name: 'rate', type: 'int256' }],
|
|
7999
|
+
stateMutability: 'view',
|
|
8000
|
+
type: 'function',
|
|
8001
|
+
},
|
|
8002
|
+
{
|
|
8003
|
+
inputs: [],
|
|
8004
|
+
name: 'market',
|
|
8005
|
+
outputs: [{ internalType: 'address', name: '', type: 'address' }],
|
|
8006
|
+
stateMutability: 'view',
|
|
8007
|
+
type: 'function',
|
|
8008
|
+
},
|
|
8009
|
+
{
|
|
8010
|
+
inputs: [],
|
|
8011
|
+
name: 'maturity',
|
|
8012
|
+
outputs: [{ internalType: 'uint32', name: '', type: 'uint32' }],
|
|
8013
|
+
stateMutability: 'view',
|
|
8014
|
+
type: 'function',
|
|
8015
|
+
},
|
|
8016
|
+
{
|
|
8017
|
+
inputs: [],
|
|
8018
|
+
name: 'nextFIndexUpdateTime',
|
|
8019
|
+
outputs: [{ internalType: 'uint32', name: '', type: 'uint32' }],
|
|
8020
|
+
stateMutability: 'view',
|
|
8021
|
+
type: 'function',
|
|
8022
|
+
},
|
|
8023
|
+
{
|
|
8024
|
+
inputs: [
|
|
8025
|
+
{ internalType: 'uint64', name: 'settleFeeRate', type: 'uint64' },
|
|
8026
|
+
{ internalType: 'uint32', name: 'updatePeriod', type: 'uint32' },
|
|
8027
|
+
{ internalType: 'uint32', name: 'maxFUpdateDelay', type: 'uint32' },
|
|
8028
|
+
],
|
|
8029
|
+
name: 'setConfig',
|
|
8030
|
+
outputs: [],
|
|
8031
|
+
stateMutability: 'nonpayable',
|
|
8032
|
+
type: 'function',
|
|
8033
|
+
},
|
|
8034
|
+
{
|
|
8035
|
+
inputs: [{ internalType: 'address', name: 'keeper', type: 'address' }],
|
|
8036
|
+
name: 'setKeeper',
|
|
8037
|
+
outputs: [],
|
|
8038
|
+
stateMutability: 'nonpayable',
|
|
8039
|
+
type: 'function',
|
|
8040
|
+
},
|
|
8041
|
+
{
|
|
8042
|
+
inputs: [
|
|
8043
|
+
{ internalType: 'int112', name: 'floatingIndexDelta', type: 'int112' },
|
|
8044
|
+
{ internalType: 'uint32', name: 'desiredTimestamp', type: 'uint32' },
|
|
8045
|
+
],
|
|
8046
|
+
name: 'updateFloatingRate',
|
|
8047
|
+
outputs: [],
|
|
8048
|
+
stateMutability: 'nonpayable',
|
|
8049
|
+
type: 'function',
|
|
8050
|
+
},
|
|
8051
|
+
];
|
|
8052
|
+
exports.iAMMAbi = [
|
|
8053
|
+
{
|
|
8054
|
+
inputs: [
|
|
8055
|
+
{ internalType: 'MarketAcc', name: 'account', type: 'bytes26' },
|
|
8056
|
+
{ internalType: 'uint256', name: 'balance', type: 'uint256' },
|
|
8057
|
+
{ internalType: 'uint256', name: 'value', type: 'uint256' },
|
|
8058
|
+
],
|
|
8059
|
+
name: 'BOROS20NotEnoughBalance',
|
|
8060
|
+
type: 'error',
|
|
8061
|
+
},
|
|
8062
|
+
{
|
|
8063
|
+
anonymous: false,
|
|
8064
|
+
inputs: [
|
|
8065
|
+
{ indexed: false, internalType: 'uint128', name: 'minAbsRate', type: 'uint128' },
|
|
8066
|
+
{ indexed: false, internalType: 'uint128', name: 'maxAbsRate', type: 'uint128' },
|
|
8067
|
+
{ indexed: false, internalType: 'uint32', name: 'cutOffTimestamp', type: 'uint32' },
|
|
8068
|
+
],
|
|
8069
|
+
name: 'AMMConfigUpdated',
|
|
8070
|
+
type: 'event',
|
|
8071
|
+
},
|
|
8072
|
+
{
|
|
8073
|
+
anonymous: false,
|
|
8074
|
+
inputs: [
|
|
8075
|
+
{ indexed: false, internalType: 'MarketAcc', name: 'from', type: 'bytes26' },
|
|
8076
|
+
{ indexed: false, internalType: 'MarketAcc', name: 'to', type: 'bytes26' },
|
|
8077
|
+
{ indexed: false, internalType: 'uint256', name: 'value', type: 'uint256' },
|
|
8078
|
+
],
|
|
8079
|
+
name: 'BOROS20Transfer',
|
|
8080
|
+
type: 'event',
|
|
8081
|
+
},
|
|
8082
|
+
{
|
|
8083
|
+
anonymous: false,
|
|
8084
|
+
inputs: [
|
|
8085
|
+
{ indexed: true, internalType: 'MarketAcc', name: 'payer', type: 'bytes26' },
|
|
8086
|
+
{ indexed: false, internalType: 'uint256', name: 'netLpBurned', type: 'uint256' },
|
|
8087
|
+
{ indexed: false, internalType: 'int256', name: 'netCashOut', type: 'int256' },
|
|
8088
|
+
{ indexed: false, internalType: 'int256', name: 'netSizeOut', type: 'int256' },
|
|
8089
|
+
],
|
|
8090
|
+
name: 'Burn',
|
|
8091
|
+
type: 'event',
|
|
8092
|
+
},
|
|
8093
|
+
{
|
|
8094
|
+
anonymous: false,
|
|
8095
|
+
inputs: [{ indexed: false, internalType: 'uint256', name: 'newFeeRate', type: 'uint256' }],
|
|
8096
|
+
name: 'FeeRateUpdated',
|
|
8097
|
+
type: 'event',
|
|
8098
|
+
},
|
|
8099
|
+
{
|
|
8100
|
+
anonymous: false,
|
|
8101
|
+
inputs: [{ indexed: false, internalType: 'uint32', name: 'newWindow', type: 'uint32' }],
|
|
8102
|
+
name: 'ImpliedRateObservationWindowUpdated',
|
|
8103
|
+
type: 'event',
|
|
8104
|
+
},
|
|
8105
|
+
{
|
|
8106
|
+
anonymous: false,
|
|
8107
|
+
inputs: [
|
|
8108
|
+
{ indexed: true, internalType: 'MarketAcc', name: 'receiver', type: 'bytes26' },
|
|
8109
|
+
{ indexed: false, internalType: 'uint256', name: 'netLpMinted', type: 'uint256' },
|
|
8110
|
+
{ indexed: false, internalType: 'int256', name: 'netCashIn', type: 'int256' },
|
|
8111
|
+
{ indexed: false, internalType: 'int256', name: 'netSizeIn', type: 'int256' },
|
|
8112
|
+
],
|
|
8113
|
+
name: 'Mint',
|
|
8114
|
+
type: 'event',
|
|
8115
|
+
},
|
|
8116
|
+
{
|
|
8117
|
+
anonymous: false,
|
|
8118
|
+
inputs: [
|
|
8119
|
+
{ indexed: false, internalType: 'int256', name: 'sizeOut', type: 'int256' },
|
|
8120
|
+
{ indexed: false, internalType: 'int256', name: 'costOut', type: 'int256' },
|
|
8121
|
+
{ indexed: false, internalType: 'uint256', name: 'fee', type: 'uint256' },
|
|
8122
|
+
],
|
|
8123
|
+
name: 'Swap',
|
|
8124
|
+
type: 'event',
|
|
8125
|
+
},
|
|
8126
|
+
{
|
|
8127
|
+
anonymous: false,
|
|
8128
|
+
inputs: [{ indexed: false, internalType: 'uint256', name: 'newTotalSupplyCap', type: 'uint256' }],
|
|
8129
|
+
name: 'TotalSupplyCapUpdated',
|
|
8130
|
+
type: 'event',
|
|
8131
|
+
},
|
|
8132
|
+
{
|
|
8133
|
+
inputs: [],
|
|
8134
|
+
name: 'ACCOUNT_ONE',
|
|
8135
|
+
outputs: [{ internalType: 'MarketAcc', name: '', type: 'bytes26' }],
|
|
8136
|
+
stateMutability: 'view',
|
|
8137
|
+
type: 'function',
|
|
8138
|
+
},
|
|
8139
|
+
{
|
|
8140
|
+
inputs: [],
|
|
8141
|
+
name: 'AMM_ID',
|
|
8142
|
+
outputs: [{ internalType: 'AMMId', name: '', type: 'uint24' }],
|
|
8143
|
+
stateMutability: 'view',
|
|
8144
|
+
type: 'function',
|
|
8145
|
+
},
|
|
8146
|
+
{
|
|
8147
|
+
inputs: [],
|
|
8148
|
+
name: 'MARKET',
|
|
8149
|
+
outputs: [{ internalType: 'address', name: '', type: 'address' }],
|
|
8150
|
+
stateMutability: 'view',
|
|
8151
|
+
type: 'function',
|
|
8152
|
+
},
|
|
8153
|
+
{
|
|
8154
|
+
inputs: [],
|
|
8155
|
+
name: 'MATURITY',
|
|
8156
|
+
outputs: [{ internalType: 'uint32', name: '', type: 'uint32' }],
|
|
8157
|
+
stateMutability: 'view',
|
|
8158
|
+
type: 'function',
|
|
8159
|
+
},
|
|
8160
|
+
{
|
|
8161
|
+
inputs: [],
|
|
8162
|
+
name: 'ROUTER',
|
|
8163
|
+
outputs: [{ internalType: 'address', name: '', type: 'address' }],
|
|
8164
|
+
stateMutability: 'view',
|
|
8165
|
+
type: 'function',
|
|
8166
|
+
},
|
|
8167
|
+
{
|
|
8168
|
+
inputs: [],
|
|
8169
|
+
name: 'SEED_TIME',
|
|
8170
|
+
outputs: [{ internalType: 'uint32', name: '', type: 'uint32' }],
|
|
8171
|
+
stateMutability: 'view',
|
|
8172
|
+
type: 'function',
|
|
8173
|
+
},
|
|
8174
|
+
{
|
|
8175
|
+
inputs: [],
|
|
8176
|
+
name: 'SELF_ACC',
|
|
8177
|
+
outputs: [{ internalType: 'MarketAcc', name: '', type: 'bytes26' }],
|
|
8178
|
+
stateMutability: 'view',
|
|
8179
|
+
type: 'function',
|
|
8180
|
+
},
|
|
8181
|
+
{
|
|
8182
|
+
inputs: [],
|
|
8183
|
+
name: '_storage',
|
|
8184
|
+
outputs: [
|
|
8185
|
+
{ internalType: 'uint128', name: 'minAbsRate', type: 'uint128' },
|
|
8186
|
+
{ internalType: 'uint128', name: 'maxAbsRate', type: 'uint128' },
|
|
8187
|
+
{ internalType: 'uint32', name: 'cutOffTimestamp', type: 'uint32' },
|
|
8188
|
+
{ internalType: 'uint32', name: 'oracleImpliedRateWindow', type: 'uint32' },
|
|
8189
|
+
{ internalType: 'uint64', name: 'feeRate', type: 'uint64' },
|
|
8190
|
+
{ internalType: 'uint256', name: 'totalSupplyCap', type: 'uint256' },
|
|
8191
|
+
{ internalType: 'uint128', name: 'totalFloatAmount', type: 'uint128' },
|
|
8192
|
+
{ internalType: 'uint128', name: 'normFixedAmount', type: 'uint128' },
|
|
8193
|
+
{ internalType: 'uint32', name: 'lastTradedTime', type: 'uint32' },
|
|
8194
|
+
{ internalType: 'int128', name: 'prevOracleImpliedRate', type: 'int128' },
|
|
8195
|
+
],
|
|
8196
|
+
stateMutability: 'view',
|
|
8197
|
+
type: 'function',
|
|
8198
|
+
},
|
|
8199
|
+
{
|
|
8200
|
+
inputs: [{ internalType: 'MarketAcc', name: 'account', type: 'bytes26' }],
|
|
8201
|
+
name: 'balanceOf',
|
|
8202
|
+
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
|
|
8203
|
+
stateMutability: 'view',
|
|
7733
8204
|
type: 'function',
|
|
7734
8205
|
},
|
|
7735
|
-
];
|
|
7736
|
-
exports.iFIndexOracleAbi = [
|
|
7737
8206
|
{
|
|
7738
|
-
anonymous: false,
|
|
7739
8207
|
inputs: [
|
|
7740
|
-
{
|
|
7741
|
-
{
|
|
7742
|
-
{
|
|
8208
|
+
{ internalType: 'MarketAcc', name: 'payer', type: 'bytes26' },
|
|
8209
|
+
{ internalType: 'int256', name: 'totalCash', type: 'int256' },
|
|
8210
|
+
{ internalType: 'int256', name: 'totalSize', type: 'int256' },
|
|
8211
|
+
{ internalType: 'uint256', name: 'lpToBurn', type: 'uint256' },
|
|
7743
8212
|
],
|
|
7744
|
-
name: '
|
|
7745
|
-
|
|
8213
|
+
name: 'burnByBorosRouter',
|
|
8214
|
+
outputs: [
|
|
8215
|
+
{ internalType: 'int256', name: 'netCashOut', type: 'int256' },
|
|
8216
|
+
{ internalType: 'int256', name: 'netSizeOut', type: 'int256' },
|
|
8217
|
+
{ internalType: 'bool', name: 'isMatured', type: 'bool' },
|
|
8218
|
+
],
|
|
8219
|
+
stateMutability: 'nonpayable',
|
|
8220
|
+
type: 'function',
|
|
7746
8221
|
},
|
|
7747
8222
|
{
|
|
7748
|
-
|
|
7749
|
-
|
|
7750
|
-
name: '
|
|
7751
|
-
|
|
8223
|
+
inputs: [{ internalType: 'int256', name: 'targetRate', type: 'int256' }],
|
|
8224
|
+
name: 'calcSwapSize',
|
|
8225
|
+
outputs: [{ internalType: 'int256', name: '', type: 'int256' }],
|
|
8226
|
+
stateMutability: 'view',
|
|
8227
|
+
type: 'function',
|
|
7752
8228
|
},
|
|
7753
8229
|
{
|
|
7754
8230
|
inputs: [],
|
|
7755
|
-
name: '
|
|
7756
|
-
outputs: [
|
|
7757
|
-
{ internalType: 'uint64', name: 'settleFeeRate', type: 'uint64' },
|
|
7758
|
-
{ internalType: 'uint32', name: 'updatePeriod', type: 'uint32' },
|
|
7759
|
-
{ internalType: 'uint32', name: 'maxUpdateDelay', type: 'uint32' },
|
|
7760
|
-
],
|
|
8231
|
+
name: 'decimals',
|
|
8232
|
+
outputs: [{ internalType: 'uint8', name: '', type: 'uint8' }],
|
|
7761
8233
|
stateMutability: 'view',
|
|
7762
8234
|
type: 'function',
|
|
7763
8235
|
},
|
|
7764
8236
|
{
|
|
7765
8237
|
inputs: [],
|
|
7766
|
-
name: '
|
|
7767
|
-
outputs: [{ internalType: '
|
|
8238
|
+
name: 'feeRate',
|
|
8239
|
+
outputs: [{ internalType: 'uint64', name: '', type: 'uint64' }],
|
|
7768
8240
|
stateMutability: 'view',
|
|
7769
8241
|
type: 'function',
|
|
7770
8242
|
},
|
|
7771
8243
|
{
|
|
7772
8244
|
inputs: [],
|
|
7773
|
-
name: '
|
|
7774
|
-
outputs: [{ internalType: '
|
|
8245
|
+
name: 'impliedRate',
|
|
8246
|
+
outputs: [{ internalType: 'int256', name: '', type: 'int256' }],
|
|
7775
8247
|
stateMutability: 'view',
|
|
7776
8248
|
type: 'function',
|
|
7777
8249
|
},
|
|
7778
8250
|
{
|
|
7779
|
-
inputs: [
|
|
7780
|
-
|
|
7781
|
-
|
|
7782
|
-
|
|
8251
|
+
inputs: [
|
|
8252
|
+
{ internalType: 'MarketAcc', name: 'receiver', type: 'bytes26' },
|
|
8253
|
+
{ internalType: 'int256', name: 'totalCash', type: 'int256' },
|
|
8254
|
+
{ internalType: 'int256', name: 'totalSize', type: 'int256' },
|
|
8255
|
+
{ internalType: 'int256', name: 'maxCashIn', type: 'int256' },
|
|
8256
|
+
{ internalType: 'int256', name: 'exactSizeIn', type: 'int256' },
|
|
8257
|
+
],
|
|
8258
|
+
name: 'mintByBorosRouter',
|
|
8259
|
+
outputs: [
|
|
8260
|
+
{ internalType: 'int256', name: 'netCashIn', type: 'int256' },
|
|
8261
|
+
{ internalType: 'uint256', name: 'netLpOut', type: 'uint256' },
|
|
8262
|
+
],
|
|
8263
|
+
stateMutability: 'nonpayable',
|
|
7783
8264
|
type: 'function',
|
|
7784
8265
|
},
|
|
7785
8266
|
{
|
|
7786
8267
|
inputs: [],
|
|
7787
|
-
name: '
|
|
7788
|
-
outputs: [{ internalType: '
|
|
8268
|
+
name: 'name',
|
|
8269
|
+
outputs: [{ internalType: 'string', name: '', type: 'string' }],
|
|
7789
8270
|
stateMutability: 'view',
|
|
7790
8271
|
type: 'function',
|
|
7791
8272
|
},
|
|
7792
8273
|
{
|
|
7793
8274
|
inputs: [],
|
|
7794
|
-
name: '
|
|
7795
|
-
outputs: [
|
|
8275
|
+
name: 'oracleImpliedRate',
|
|
8276
|
+
outputs: [
|
|
8277
|
+
{ internalType: 'int128', name: 'oracleImpliedRate', type: 'int128' },
|
|
8278
|
+
{ internalType: 'uint32', name: 'observationWindow', type: 'uint32' },
|
|
8279
|
+
],
|
|
7796
8280
|
stateMutability: 'view',
|
|
7797
8281
|
type: 'function',
|
|
7798
8282
|
},
|
|
7799
8283
|
{
|
|
7800
8284
|
inputs: [],
|
|
7801
|
-
name: '
|
|
7802
|
-
outputs: [
|
|
8285
|
+
name: 'readState',
|
|
8286
|
+
outputs: [
|
|
8287
|
+
{
|
|
8288
|
+
components: [
|
|
8289
|
+
{ internalType: 'uint256', name: 'totalFloatAmount', type: 'uint256' },
|
|
8290
|
+
{ internalType: 'uint256', name: 'normFixedAmount', type: 'uint256' },
|
|
8291
|
+
{ internalType: 'uint256', name: 'totalLp', type: 'uint256' },
|
|
8292
|
+
{ internalType: 'uint256', name: 'latestFTime', type: 'uint256' },
|
|
8293
|
+
{ internalType: 'uint256', name: 'maturity', type: 'uint256' },
|
|
8294
|
+
{ internalType: 'uint256', name: 'seedTime', type: 'uint256' },
|
|
8295
|
+
{ internalType: 'uint256', name: 'minAbsRate', type: 'uint256' },
|
|
8296
|
+
{ internalType: 'uint256', name: 'maxAbsRate', type: 'uint256' },
|
|
8297
|
+
{ internalType: 'uint256', name: 'cutOffTimestamp', type: 'uint256' },
|
|
8298
|
+
],
|
|
8299
|
+
internalType: 'struct AMMState',
|
|
8300
|
+
name: '',
|
|
8301
|
+
type: 'tuple',
|
|
8302
|
+
},
|
|
8303
|
+
],
|
|
7803
8304
|
stateMutability: 'view',
|
|
7804
8305
|
type: 'function',
|
|
7805
8306
|
},
|
|
7806
8307
|
{
|
|
7807
8308
|
inputs: [
|
|
7808
|
-
{ internalType: '
|
|
7809
|
-
{ internalType: '
|
|
7810
|
-
{ internalType: 'uint32', name: '
|
|
8309
|
+
{ internalType: 'uint128', name: 'minAbsRate', type: 'uint128' },
|
|
8310
|
+
{ internalType: 'uint128', name: 'maxAbsRate', type: 'uint128' },
|
|
8311
|
+
{ internalType: 'uint32', name: 'cutOffTimestamp', type: 'uint32' },
|
|
7811
8312
|
],
|
|
7812
|
-
name: '
|
|
8313
|
+
name: 'setAMMConfig',
|
|
7813
8314
|
outputs: [],
|
|
7814
8315
|
stateMutability: 'nonpayable',
|
|
7815
8316
|
type: 'function',
|
|
7816
8317
|
},
|
|
7817
8318
|
{
|
|
7818
|
-
inputs: [{ internalType: '
|
|
7819
|
-
name: '
|
|
8319
|
+
inputs: [{ internalType: 'uint64', name: 'newFeeRate', type: 'uint64' }],
|
|
8320
|
+
name: 'setAMMFeeRate',
|
|
7820
8321
|
outputs: [],
|
|
7821
8322
|
stateMutability: 'nonpayable',
|
|
7822
8323
|
type: 'function',
|
|
7823
8324
|
},
|
|
7824
8325
|
{
|
|
7825
|
-
inputs: [
|
|
7826
|
-
|
|
7827
|
-
|
|
7828
|
-
|
|
7829
|
-
|
|
8326
|
+
inputs: [{ internalType: 'uint32', name: 'newWindow', type: 'uint32' }],
|
|
8327
|
+
name: 'setAMMImpliedRateObservationWindow',
|
|
8328
|
+
outputs: [],
|
|
8329
|
+
stateMutability: 'nonpayable',
|
|
8330
|
+
type: 'function',
|
|
8331
|
+
},
|
|
8332
|
+
{
|
|
8333
|
+
inputs: [{ internalType: 'uint256', name: 'newTotalSupplyCap', type: 'uint256' }],
|
|
8334
|
+
name: 'setAMMTotalSupplyCap',
|
|
7830
8335
|
outputs: [],
|
|
7831
8336
|
stateMutability: 'nonpayable',
|
|
7832
8337
|
type: 'function',
|
|
7833
8338
|
},
|
|
8339
|
+
{
|
|
8340
|
+
inputs: [{ internalType: 'int256', name: 'sizeOut', type: 'int256' }],
|
|
8341
|
+
name: 'swapByBorosRouter',
|
|
8342
|
+
outputs: [{ internalType: 'int256', name: 'costOut', type: 'int256' }],
|
|
8343
|
+
stateMutability: 'nonpayable',
|
|
8344
|
+
type: 'function',
|
|
8345
|
+
},
|
|
8346
|
+
{
|
|
8347
|
+
inputs: [{ internalType: 'int256', name: 'sizeOut', type: 'int256' }],
|
|
8348
|
+
name: 'swapView',
|
|
8349
|
+
outputs: [{ internalType: 'int256', name: 'costOut', type: 'int256' }],
|
|
8350
|
+
stateMutability: 'view',
|
|
8351
|
+
type: 'function',
|
|
8352
|
+
},
|
|
8353
|
+
{
|
|
8354
|
+
inputs: [],
|
|
8355
|
+
name: 'symbol',
|
|
8356
|
+
outputs: [{ internalType: 'string', name: '', type: 'string' }],
|
|
8357
|
+
stateMutability: 'view',
|
|
8358
|
+
type: 'function',
|
|
8359
|
+
},
|
|
8360
|
+
{
|
|
8361
|
+
inputs: [],
|
|
8362
|
+
name: 'totalSupply',
|
|
8363
|
+
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
|
|
8364
|
+
stateMutability: 'view',
|
|
8365
|
+
type: 'function',
|
|
8366
|
+
},
|
|
8367
|
+
{
|
|
8368
|
+
inputs: [],
|
|
8369
|
+
name: 'totalSupplyCap',
|
|
8370
|
+
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
|
|
8371
|
+
stateMutability: 'view',
|
|
8372
|
+
type: 'function',
|
|
8373
|
+
},
|
|
7834
8374
|
];
|
|
7835
|
-
exports.
|
|
8375
|
+
exports.iBOROS20Abi = [
|
|
7836
8376
|
{
|
|
7837
8377
|
inputs: [
|
|
7838
8378
|
{ internalType: 'MarketAcc', name: 'account', type: 'bytes26' },
|
|
@@ -7842,16 +8382,6 @@ exports.iAMMAbi = [
|
|
|
7842
8382
|
name: 'BOROS20NotEnoughBalance',
|
|
7843
8383
|
type: 'error',
|
|
7844
8384
|
},
|
|
7845
|
-
{
|
|
7846
|
-
anonymous: false,
|
|
7847
|
-
inputs: [
|
|
7848
|
-
{ indexed: false, internalType: 'uint128', name: 'minAbsRate', type: 'uint128' },
|
|
7849
|
-
{ indexed: false, internalType: 'uint128', name: 'maxAbsRate', type: 'uint128' },
|
|
7850
|
-
{ indexed: false, internalType: 'uint32', name: 'cutOffTimestamp', type: 'uint32' },
|
|
7851
|
-
],
|
|
7852
|
-
name: 'AMMConfigUpdated',
|
|
7853
|
-
type: 'event',
|
|
7854
|
-
},
|
|
7855
8385
|
{
|
|
7856
8386
|
anonymous: false,
|
|
7857
8387
|
inputs: [
|
|
@@ -7863,353 +8393,656 @@ exports.iAMMAbi = [
|
|
|
7863
8393
|
type: 'event',
|
|
7864
8394
|
},
|
|
7865
8395
|
{
|
|
7866
|
-
|
|
7867
|
-
|
|
7868
|
-
|
|
7869
|
-
|
|
7870
|
-
|
|
7871
|
-
{ indexed: false, internalType: 'int256', name: 'netSizeOut', type: 'int256' },
|
|
7872
|
-
],
|
|
7873
|
-
name: 'Burn',
|
|
7874
|
-
type: 'event',
|
|
8396
|
+
inputs: [{ internalType: 'MarketAcc', name: 'account', type: 'bytes26' }],
|
|
8397
|
+
name: 'balanceOf',
|
|
8398
|
+
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
|
|
8399
|
+
stateMutability: 'view',
|
|
8400
|
+
type: 'function',
|
|
7875
8401
|
},
|
|
7876
8402
|
{
|
|
7877
|
-
|
|
7878
|
-
|
|
7879
|
-
name: '
|
|
7880
|
-
|
|
8403
|
+
inputs: [],
|
|
8404
|
+
name: 'decimals',
|
|
8405
|
+
outputs: [{ internalType: 'uint8', name: '', type: 'uint8' }],
|
|
8406
|
+
stateMutability: 'view',
|
|
8407
|
+
type: 'function',
|
|
7881
8408
|
},
|
|
7882
8409
|
{
|
|
7883
|
-
|
|
7884
|
-
|
|
7885
|
-
name: '
|
|
7886
|
-
|
|
8410
|
+
inputs: [],
|
|
8411
|
+
name: 'name',
|
|
8412
|
+
outputs: [{ internalType: 'string', name: '', type: 'string' }],
|
|
8413
|
+
stateMutability: 'view',
|
|
8414
|
+
type: 'function',
|
|
8415
|
+
},
|
|
8416
|
+
{
|
|
8417
|
+
inputs: [],
|
|
8418
|
+
name: 'symbol',
|
|
8419
|
+
outputs: [{ internalType: 'string', name: '', type: 'string' }],
|
|
8420
|
+
stateMutability: 'view',
|
|
8421
|
+
type: 'function',
|
|
8422
|
+
},
|
|
8423
|
+
{
|
|
8424
|
+
inputs: [],
|
|
8425
|
+
name: 'totalSupply',
|
|
8426
|
+
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
|
|
8427
|
+
stateMutability: 'view',
|
|
8428
|
+
type: 'function',
|
|
7887
8429
|
},
|
|
8430
|
+
];
|
|
8431
|
+
exports.iCLOSetterAbi = [
|
|
7888
8432
|
{
|
|
7889
8433
|
anonymous: false,
|
|
7890
8434
|
inputs: [
|
|
7891
|
-
{ indexed:
|
|
7892
|
-
{
|
|
7893
|
-
|
|
7894
|
-
|
|
8435
|
+
{ indexed: false, internalType: 'MarketId', name: 'marketId', type: 'uint24' },
|
|
8436
|
+
{
|
|
8437
|
+
components: [
|
|
8438
|
+
{ internalType: 'uint128', name: 'lowerThres', type: 'uint128' },
|
|
8439
|
+
{ internalType: 'uint128', name: 'upperThres', type: 'uint128' },
|
|
8440
|
+
],
|
|
8441
|
+
indexed: false,
|
|
8442
|
+
internalType: 'struct ICLOSetter.CLOThreshold',
|
|
8443
|
+
name: 'newThreshold',
|
|
8444
|
+
type: 'tuple',
|
|
8445
|
+
},
|
|
7895
8446
|
],
|
|
7896
|
-
name: '
|
|
8447
|
+
name: 'CLOThresholdSet',
|
|
7897
8448
|
type: 'event',
|
|
7898
8449
|
},
|
|
7899
8450
|
{
|
|
7900
|
-
|
|
8451
|
+
inputs: [],
|
|
8452
|
+
name: 'MARKET_HUB',
|
|
8453
|
+
outputs: [{ internalType: 'address', name: '', type: 'address' }],
|
|
8454
|
+
stateMutability: 'view',
|
|
8455
|
+
type: 'function',
|
|
8456
|
+
},
|
|
8457
|
+
{
|
|
8458
|
+
inputs: [{ internalType: 'MarketId', name: 'marketId', type: 'uint24' }],
|
|
8459
|
+
name: 'getCLOThreshold',
|
|
8460
|
+
outputs: [
|
|
8461
|
+
{
|
|
8462
|
+
components: [
|
|
8463
|
+
{ internalType: 'uint128', name: 'lowerThres', type: 'uint128' },
|
|
8464
|
+
{ internalType: 'uint128', name: 'upperThres', type: 'uint128' },
|
|
8465
|
+
],
|
|
8466
|
+
internalType: 'struct ICLOSetter.CLOThreshold',
|
|
8467
|
+
name: '',
|
|
8468
|
+
type: 'tuple',
|
|
8469
|
+
},
|
|
8470
|
+
],
|
|
8471
|
+
stateMutability: 'view',
|
|
8472
|
+
type: 'function',
|
|
8473
|
+
},
|
|
8474
|
+
{
|
|
7901
8475
|
inputs: [
|
|
7902
|
-
{
|
|
7903
|
-
{
|
|
7904
|
-
|
|
8476
|
+
{ internalType: 'MarketId', name: 'marketId', type: 'uint24' },
|
|
8477
|
+
{
|
|
8478
|
+
components: [
|
|
8479
|
+
{ internalType: 'uint128', name: 'lowerThres', type: 'uint128' },
|
|
8480
|
+
{ internalType: 'uint128', name: 'upperThres', type: 'uint128' },
|
|
8481
|
+
],
|
|
8482
|
+
internalType: 'struct ICLOSetter.CLOThreshold',
|
|
8483
|
+
name: 'newThreshold',
|
|
8484
|
+
type: 'tuple',
|
|
8485
|
+
},
|
|
7905
8486
|
],
|
|
7906
|
-
name: '
|
|
7907
|
-
|
|
8487
|
+
name: 'setCLOThreshold',
|
|
8488
|
+
outputs: [],
|
|
8489
|
+
stateMutability: 'nonpayable',
|
|
8490
|
+
type: 'function',
|
|
8491
|
+
},
|
|
8492
|
+
{
|
|
8493
|
+
inputs: [{ internalType: 'MarketId', name: 'marketId', type: 'uint24' }],
|
|
8494
|
+
name: 'turnOffCLO',
|
|
8495
|
+
outputs: [],
|
|
8496
|
+
stateMutability: 'nonpayable',
|
|
8497
|
+
type: 'function',
|
|
7908
8498
|
},
|
|
8499
|
+
{
|
|
8500
|
+
inputs: [{ internalType: 'MarketId', name: 'marketId', type: 'uint24' }],
|
|
8501
|
+
name: 'turnOnCLO',
|
|
8502
|
+
outputs: [],
|
|
8503
|
+
stateMutability: 'nonpayable',
|
|
8504
|
+
type: 'function',
|
|
8505
|
+
},
|
|
8506
|
+
];
|
|
8507
|
+
exports.iDeleveragerAbi = [
|
|
7909
8508
|
{
|
|
7910
8509
|
anonymous: false,
|
|
7911
|
-
inputs: [{ indexed: false, internalType: '
|
|
7912
|
-
name: '
|
|
8510
|
+
inputs: [{ indexed: false, internalType: 'int256', name: 'newDeleverageThresHR', type: 'int256' }],
|
|
8511
|
+
name: 'DeleverageThresHRSet',
|
|
7913
8512
|
type: 'event',
|
|
7914
8513
|
},
|
|
7915
8514
|
{
|
|
7916
8515
|
inputs: [],
|
|
7917
|
-
name: '
|
|
7918
|
-
outputs: [{ internalType: '
|
|
8516
|
+
name: 'MARKET_HUB',
|
|
8517
|
+
outputs: [{ internalType: 'address', name: '', type: 'address' }],
|
|
7919
8518
|
stateMutability: 'view',
|
|
7920
8519
|
type: 'function',
|
|
7921
8520
|
},
|
|
7922
8521
|
{
|
|
7923
|
-
inputs: [
|
|
7924
|
-
|
|
7925
|
-
|
|
7926
|
-
|
|
8522
|
+
inputs: [
|
|
8523
|
+
{
|
|
8524
|
+
components: [
|
|
8525
|
+
{ internalType: 'MarketAcc', name: 'lose', type: 'bytes26' },
|
|
8526
|
+
{ internalType: 'MarketId[]', name: 'marketIds', type: 'uint24[]' },
|
|
8527
|
+
{
|
|
8528
|
+
components: [
|
|
8529
|
+
{ internalType: 'uint256', name: 'lossFactor', type: 'uint256' },
|
|
8530
|
+
{ internalType: 'MarketAcc[]', name: 'wins', type: 'bytes26[]' },
|
|
8531
|
+
{ internalType: 'int256[]', name: 'sizesToWin', type: 'int256[]' },
|
|
8532
|
+
],
|
|
8533
|
+
internalType: 'struct IDeleverager.MarketDeleverageInput[]',
|
|
8534
|
+
name: 'inputs',
|
|
8535
|
+
type: 'tuple[]',
|
|
8536
|
+
},
|
|
8537
|
+
],
|
|
8538
|
+
internalType: 'struct IDeleverager.DeleverageRequest[]',
|
|
8539
|
+
name: 'requests',
|
|
8540
|
+
type: 'tuple[]',
|
|
8541
|
+
},
|
|
8542
|
+
],
|
|
8543
|
+
name: 'batchDeleverage',
|
|
8544
|
+
outputs: [],
|
|
8545
|
+
stateMutability: 'nonpayable',
|
|
7927
8546
|
type: 'function',
|
|
7928
8547
|
},
|
|
7929
8548
|
{
|
|
7930
8549
|
inputs: [],
|
|
7931
|
-
name: '
|
|
7932
|
-
outputs: [{ internalType: '
|
|
8550
|
+
name: 'deleverageThresHR',
|
|
8551
|
+
outputs: [{ internalType: 'int256', name: '', type: 'int256' }],
|
|
7933
8552
|
stateMutability: 'view',
|
|
7934
8553
|
type: 'function',
|
|
7935
8554
|
},
|
|
7936
8555
|
{
|
|
7937
|
-
inputs: [],
|
|
7938
|
-
name: '
|
|
7939
|
-
outputs: [
|
|
7940
|
-
stateMutability: '
|
|
8556
|
+
inputs: [{ internalType: 'int256', name: 'newDeleverageThresHR', type: 'int256' }],
|
|
8557
|
+
name: 'setDeleverageThresHR',
|
|
8558
|
+
outputs: [],
|
|
8559
|
+
stateMutability: 'nonpayable',
|
|
7941
8560
|
type: 'function',
|
|
7942
8561
|
},
|
|
8562
|
+
];
|
|
8563
|
+
exports.iLiquidationExecutorAbi = [
|
|
7943
8564
|
{
|
|
7944
|
-
|
|
7945
|
-
|
|
7946
|
-
|
|
7947
|
-
|
|
7948
|
-
|
|
8565
|
+
anonymous: false,
|
|
8566
|
+
inputs: [
|
|
8567
|
+
{ indexed: true, internalType: 'MarketAcc', name: 'violator', type: 'bytes26' },
|
|
8568
|
+
{ indexed: false, internalType: 'int256', name: 'profit', type: 'int256' },
|
|
8569
|
+
],
|
|
8570
|
+
name: 'LiquidationExecuted',
|
|
8571
|
+
type: 'event',
|
|
7949
8572
|
},
|
|
7950
8573
|
{
|
|
7951
8574
|
inputs: [],
|
|
7952
|
-
name: '
|
|
7953
|
-
outputs: [{ internalType: '
|
|
8575
|
+
name: 'MARKET_HUB',
|
|
8576
|
+
outputs: [{ internalType: 'address', name: '', type: 'address' }],
|
|
7954
8577
|
stateMutability: 'view',
|
|
7955
8578
|
type: 'function',
|
|
7956
8579
|
},
|
|
7957
8580
|
{
|
|
7958
8581
|
inputs: [],
|
|
7959
|
-
name: '
|
|
7960
|
-
outputs: [{ internalType: '
|
|
8582
|
+
name: 'ROUTER',
|
|
8583
|
+
outputs: [{ internalType: 'address', name: '', type: 'address' }],
|
|
7961
8584
|
stateMutability: 'view',
|
|
7962
8585
|
type: 'function',
|
|
7963
8586
|
},
|
|
7964
8587
|
{
|
|
7965
|
-
inputs: [
|
|
7966
|
-
|
|
8588
|
+
inputs: [
|
|
8589
|
+
{
|
|
8590
|
+
components: [
|
|
8591
|
+
{ internalType: 'MarketId', name: 'marketId', type: 'uint24' },
|
|
8592
|
+
{ internalType: 'AMMId', name: 'ammId', type: 'uint24' },
|
|
8593
|
+
{ internalType: 'MarketAcc', name: 'violator', type: 'bytes26' },
|
|
8594
|
+
{ internalType: 'int256', name: 'maxVioHealthRatio', type: 'int256' },
|
|
8595
|
+
{ internalType: 'uint256', name: 'minProfit', type: 'uint256' },
|
|
8596
|
+
],
|
|
8597
|
+
internalType: 'struct ILiquidationExecutor.LiquidationParams[]',
|
|
8598
|
+
name: 'batch',
|
|
8599
|
+
type: 'tuple[]',
|
|
8600
|
+
},
|
|
8601
|
+
],
|
|
8602
|
+
name: 'batchLiquidate',
|
|
7967
8603
|
outputs: [
|
|
7968
|
-
{ internalType: '
|
|
7969
|
-
{ internalType: '
|
|
7970
|
-
{ internalType: 'uint32', name: 'cutOffTimestamp', type: 'uint32' },
|
|
7971
|
-
{ internalType: 'uint32', name: 'oracleImpliedRateWindow', type: 'uint32' },
|
|
7972
|
-
{ internalType: 'uint64', name: 'feeRate', type: 'uint64' },
|
|
7973
|
-
{ internalType: 'uint256', name: 'totalSupplyCap', type: 'uint256' },
|
|
7974
|
-
{ internalType: 'uint128', name: 'totalFloatAmount', type: 'uint128' },
|
|
7975
|
-
{ internalType: 'uint128', name: 'normFixedAmount', type: 'uint128' },
|
|
7976
|
-
{ internalType: 'uint32', name: 'lastTradedTime', type: 'uint32' },
|
|
7977
|
-
{ internalType: 'int128', name: 'prevOracleImpliedRate', type: 'int128' },
|
|
8604
|
+
{ internalType: 'bool[]', name: 'success', type: 'bool[]' },
|
|
8605
|
+
{ internalType: 'bytes[]', name: 'results', type: 'bytes[]' },
|
|
7978
8606
|
],
|
|
7979
|
-
stateMutability: '
|
|
8607
|
+
stateMutability: 'nonpayable',
|
|
7980
8608
|
type: 'function',
|
|
7981
8609
|
},
|
|
7982
8610
|
{
|
|
7983
|
-
inputs: [
|
|
7984
|
-
|
|
7985
|
-
|
|
7986
|
-
|
|
8611
|
+
inputs: [
|
|
8612
|
+
{ internalType: 'TokenId', name: 'tokenId', type: 'uint16' },
|
|
8613
|
+
{ internalType: 'uint256', name: 'amount', type: 'uint256' },
|
|
8614
|
+
],
|
|
8615
|
+
name: 'deposit',
|
|
8616
|
+
outputs: [],
|
|
8617
|
+
stateMutability: 'nonpayable',
|
|
7987
8618
|
type: 'function',
|
|
7988
8619
|
},
|
|
7989
8620
|
{
|
|
7990
8621
|
inputs: [
|
|
7991
|
-
{
|
|
7992
|
-
|
|
7993
|
-
|
|
7994
|
-
|
|
8622
|
+
{
|
|
8623
|
+
components: [
|
|
8624
|
+
{ internalType: 'MarketId', name: 'marketId', type: 'uint24' },
|
|
8625
|
+
{ internalType: 'AMMId', name: 'ammId', type: 'uint24' },
|
|
8626
|
+
{ internalType: 'MarketAcc', name: 'violator', type: 'bytes26' },
|
|
8627
|
+
{ internalType: 'int256', name: 'maxVioHealthRatio', type: 'int256' },
|
|
8628
|
+
{ internalType: 'uint256', name: 'minProfit', type: 'uint256' },
|
|
8629
|
+
],
|
|
8630
|
+
internalType: 'struct ILiquidationExecutor.LiquidationParams',
|
|
8631
|
+
name: 'params',
|
|
8632
|
+
type: 'tuple',
|
|
8633
|
+
},
|
|
7995
8634
|
],
|
|
7996
|
-
name: '
|
|
8635
|
+
name: 'executeLiquidation',
|
|
7997
8636
|
outputs: [
|
|
7998
|
-
{ internalType: 'int256', name: '
|
|
7999
|
-
{ internalType: 'int256', name: '
|
|
8000
|
-
{ internalType: 'bool', name: 'isMatured', type: 'bool' },
|
|
8637
|
+
{ internalType: 'int256', name: 'sizeToLiq', type: 'int256' },
|
|
8638
|
+
{ internalType: 'int256', name: 'profit', type: 'int256' },
|
|
8001
8639
|
],
|
|
8002
8640
|
stateMutability: 'nonpayable',
|
|
8003
8641
|
type: 'function',
|
|
8004
8642
|
},
|
|
8005
|
-
{
|
|
8006
|
-
inputs: [{ internalType: 'int256', name: 'targetRate', type: 'int256' }],
|
|
8007
|
-
name: 'calcSwapSize',
|
|
8008
|
-
outputs: [{ internalType: 'int256', name: '', type: 'int256' }],
|
|
8009
|
-
stateMutability: 'view',
|
|
8010
|
-
type: 'function',
|
|
8011
|
-
},
|
|
8012
8643
|
{
|
|
8013
8644
|
inputs: [],
|
|
8014
|
-
name: '
|
|
8015
|
-
outputs: [{ internalType: '
|
|
8645
|
+
name: 'nTicksToTryAtOnce',
|
|
8646
|
+
outputs: [{ internalType: 'uint16', name: '', type: 'uint16' }],
|
|
8016
8647
|
stateMutability: 'view',
|
|
8017
8648
|
type: 'function',
|
|
8018
8649
|
},
|
|
8019
8650
|
{
|
|
8020
|
-
inputs: [],
|
|
8021
|
-
name: '
|
|
8022
|
-
outputs: [
|
|
8023
|
-
stateMutability: '
|
|
8651
|
+
inputs: [{ internalType: 'MarketId', name: 'marketId', type: 'uint24' }],
|
|
8652
|
+
name: 'payMarketEntranceFee',
|
|
8653
|
+
outputs: [],
|
|
8654
|
+
stateMutability: 'nonpayable',
|
|
8024
8655
|
type: 'function',
|
|
8025
8656
|
},
|
|
8026
8657
|
{
|
|
8027
|
-
inputs: [
|
|
8028
|
-
|
|
8029
|
-
|
|
8030
|
-
|
|
8658
|
+
inputs: [
|
|
8659
|
+
{ internalType: 'TokenId', name: 'tokenId', type: 'uint16' },
|
|
8660
|
+
{ internalType: 'uint256', name: 'amount', type: 'uint256' },
|
|
8661
|
+
],
|
|
8662
|
+
name: 'requestWithdrawal',
|
|
8663
|
+
outputs: [],
|
|
8664
|
+
stateMutability: 'nonpayable',
|
|
8031
8665
|
type: 'function',
|
|
8032
8666
|
},
|
|
8033
8667
|
{
|
|
8034
8668
|
inputs: [
|
|
8035
|
-
{ internalType: '
|
|
8036
|
-
{ internalType: '
|
|
8037
|
-
{ internalType: '
|
|
8038
|
-
{ internalType: 'int256', name: 'maxCashIn', type: 'int256' },
|
|
8039
|
-
{ internalType: 'int256', name: 'exactSizeIn', type: 'int256' },
|
|
8040
|
-
],
|
|
8041
|
-
name: 'mintByBorosRouter',
|
|
8042
|
-
outputs: [
|
|
8043
|
-
{ internalType: 'int256', name: 'netCashIn', type: 'int256' },
|
|
8044
|
-
{ internalType: 'uint256', name: 'netLpOut', type: 'uint256' },
|
|
8669
|
+
{ internalType: 'TokenId', name: 'tokenId', type: 'uint16' },
|
|
8670
|
+
{ internalType: 'uint256', name: 'amount', type: 'uint256' },
|
|
8671
|
+
{ internalType: 'address', name: 'receiver', type: 'address' },
|
|
8045
8672
|
],
|
|
8673
|
+
name: 'withdraw',
|
|
8674
|
+
outputs: [],
|
|
8046
8675
|
stateMutability: 'nonpayable',
|
|
8047
8676
|
type: 'function',
|
|
8048
8677
|
},
|
|
8678
|
+
];
|
|
8679
|
+
exports.iOrderCancellerAbi = [
|
|
8680
|
+
{
|
|
8681
|
+
anonymous: false,
|
|
8682
|
+
inputs: [{ indexed: false, internalType: 'int256', name: 'newCancelThresHR', type: 'int256' }],
|
|
8683
|
+
name: 'CancelThresHRSet',
|
|
8684
|
+
type: 'event',
|
|
8685
|
+
},
|
|
8049
8686
|
{
|
|
8050
8687
|
inputs: [],
|
|
8051
|
-
name: '
|
|
8052
|
-
outputs: [{ internalType: '
|
|
8688
|
+
name: 'MARKET_HUB',
|
|
8689
|
+
outputs: [{ internalType: 'address', name: '', type: 'address' }],
|
|
8053
8690
|
stateMutability: 'view',
|
|
8054
8691
|
type: 'function',
|
|
8055
8692
|
},
|
|
8056
8693
|
{
|
|
8057
8694
|
inputs: [],
|
|
8058
|
-
name: '
|
|
8059
|
-
outputs: [
|
|
8060
|
-
{ internalType: 'int128', name: 'oracleImpliedRate', type: 'int128' },
|
|
8061
|
-
{ internalType: 'uint32', name: 'observationWindow', type: 'uint32' },
|
|
8062
|
-
],
|
|
8695
|
+
name: 'cancelThresHR',
|
|
8696
|
+
outputs: [{ internalType: 'int256', name: '', type: 'int256' }],
|
|
8063
8697
|
stateMutability: 'view',
|
|
8064
8698
|
type: 'function',
|
|
8065
8699
|
},
|
|
8066
8700
|
{
|
|
8067
|
-
inputs: [],
|
|
8068
|
-
name: '
|
|
8701
|
+
inputs: [{ internalType: 'MarketAcc', name: 'user', type: 'bytes26' }],
|
|
8702
|
+
name: 'findHealthJumpOrders',
|
|
8069
8703
|
outputs: [
|
|
8704
|
+
{ internalType: 'bool', name: 'risky', type: 'bool' },
|
|
8705
|
+
{ internalType: 'int256', name: 'buffer', type: 'int256' },
|
|
8070
8706
|
{
|
|
8071
8707
|
components: [
|
|
8072
|
-
{ internalType: '
|
|
8073
|
-
{ internalType: '
|
|
8074
|
-
{ internalType: 'uint256', name: 'totalLp', type: 'uint256' },
|
|
8075
|
-
{ internalType: 'uint256', name: 'latestFTime', type: 'uint256' },
|
|
8076
|
-
{ internalType: 'uint256', name: 'maturity', type: 'uint256' },
|
|
8077
|
-
{ internalType: 'uint256', name: 'seedTime', type: 'uint256' },
|
|
8078
|
-
{ internalType: 'uint256', name: 'minAbsRate', type: 'uint256' },
|
|
8079
|
-
{ internalType: 'uint256', name: 'maxAbsRate', type: 'uint256' },
|
|
8080
|
-
{ internalType: 'uint256', name: 'cutOffTimestamp', type: 'uint256' },
|
|
8708
|
+
{ internalType: 'MarketId', name: 'marketId', type: 'uint24' },
|
|
8709
|
+
{ internalType: 'OrderId[]', name: 'ids', type: 'uint64[]' },
|
|
8081
8710
|
],
|
|
8082
|
-
internalType: 'struct
|
|
8083
|
-
name: '',
|
|
8084
|
-
type: 'tuple',
|
|
8711
|
+
internalType: 'struct IOrderCanceller.HealthJumpProof[]',
|
|
8712
|
+
name: 'proofs',
|
|
8713
|
+
type: 'tuple[]',
|
|
8714
|
+
},
|
|
8715
|
+
],
|
|
8716
|
+
stateMutability: 'nonpayable',
|
|
8717
|
+
type: 'function',
|
|
8718
|
+
},
|
|
8719
|
+
{
|
|
8720
|
+
inputs: [
|
|
8721
|
+
{ internalType: 'MarketAcc', name: 'user', type: 'bytes26' },
|
|
8722
|
+
{
|
|
8723
|
+
components: [
|
|
8724
|
+
{ internalType: 'MarketId', name: 'marketId', type: 'uint24' },
|
|
8725
|
+
{ internalType: 'OrderId[]', name: 'ids', type: 'uint64[]' },
|
|
8726
|
+
],
|
|
8727
|
+
internalType: 'struct IOrderCanceller.HealthJumpProof[]',
|
|
8728
|
+
name: 'proofs',
|
|
8729
|
+
type: 'tuple[]',
|
|
8085
8730
|
},
|
|
8086
8731
|
],
|
|
8732
|
+
name: 'forceCancelAllRiskyUser',
|
|
8733
|
+
outputs: [],
|
|
8734
|
+
stateMutability: 'nonpayable',
|
|
8735
|
+
type: 'function',
|
|
8736
|
+
},
|
|
8737
|
+
{
|
|
8738
|
+
inputs: [{ internalType: 'int256', name: 'newCancelThresHR', type: 'int256' }],
|
|
8739
|
+
name: 'setCancelThresHR',
|
|
8740
|
+
outputs: [],
|
|
8741
|
+
stateMutability: 'nonpayable',
|
|
8742
|
+
type: 'function',
|
|
8743
|
+
},
|
|
8744
|
+
];
|
|
8745
|
+
exports.iPauserAbi = [
|
|
8746
|
+
{
|
|
8747
|
+
anonymous: false,
|
|
8748
|
+
inputs: [
|
|
8749
|
+
{ indexed: false, internalType: 'TokenId', name: 'tokenId', type: 'uint16' },
|
|
8750
|
+
{ indexed: false, internalType: 'uint256', name: 'newMinTotalMM', type: 'uint256' },
|
|
8751
|
+
],
|
|
8752
|
+
name: 'MinTotalMMSet',
|
|
8753
|
+
type: 'event',
|
|
8754
|
+
},
|
|
8755
|
+
{
|
|
8756
|
+
inputs: [],
|
|
8757
|
+
name: 'MARKET_HUB',
|
|
8758
|
+
outputs: [{ internalType: 'address', name: '', type: 'address' }],
|
|
8759
|
+
stateMutability: 'view',
|
|
8760
|
+
type: 'function',
|
|
8761
|
+
},
|
|
8762
|
+
{
|
|
8763
|
+
inputs: [{ internalType: 'MarketAcc[]', name: 'users', type: 'bytes26[]' }],
|
|
8764
|
+
name: 'findRiskyUsers',
|
|
8765
|
+
outputs: [{ internalType: 'MarketAcc[]', name: '', type: 'bytes26[]' }],
|
|
8766
|
+
stateMutability: 'nonpayable',
|
|
8767
|
+
type: 'function',
|
|
8768
|
+
},
|
|
8769
|
+
{
|
|
8770
|
+
inputs: [{ internalType: 'TokenId', name: 'tokenId', type: 'uint16' }],
|
|
8771
|
+
name: 'minTotalMM',
|
|
8772
|
+
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
|
|
8087
8773
|
stateMutability: 'view',
|
|
8088
8774
|
type: 'function',
|
|
8089
8775
|
},
|
|
8090
8776
|
{
|
|
8091
8777
|
inputs: [
|
|
8092
|
-
{ internalType: '
|
|
8093
|
-
{ internalType: '
|
|
8094
|
-
{ internalType: 'uint32', name: 'cutOffTimestamp', type: 'uint32' },
|
|
8778
|
+
{ internalType: 'MarketAcc', name: 'user', type: 'bytes26' },
|
|
8779
|
+
{ internalType: 'MarketId[]', name: 'marketIds', type: 'uint24[]' },
|
|
8095
8780
|
],
|
|
8096
|
-
name: '
|
|
8781
|
+
name: 'pauseMarkets',
|
|
8097
8782
|
outputs: [],
|
|
8098
8783
|
stateMutability: 'nonpayable',
|
|
8099
8784
|
type: 'function',
|
|
8100
8785
|
},
|
|
8101
8786
|
{
|
|
8102
|
-
inputs: [
|
|
8103
|
-
name: '
|
|
8104
|
-
outputs: [],
|
|
8105
|
-
stateMutability: '
|
|
8787
|
+
inputs: [],
|
|
8788
|
+
name: 'pauseThresHR',
|
|
8789
|
+
outputs: [{ internalType: 'int256', name: '', type: 'int256' }],
|
|
8790
|
+
stateMutability: 'view',
|
|
8106
8791
|
type: 'function',
|
|
8107
8792
|
},
|
|
8108
8793
|
{
|
|
8109
|
-
inputs: [
|
|
8110
|
-
|
|
8794
|
+
inputs: [
|
|
8795
|
+
{ internalType: 'TokenId', name: 'tokenId', type: 'uint16' },
|
|
8796
|
+
{ internalType: 'uint256', name: 'newMinTotalMM', type: 'uint256' },
|
|
8797
|
+
],
|
|
8798
|
+
name: 'setMinTotalMM',
|
|
8111
8799
|
outputs: [],
|
|
8112
8800
|
stateMutability: 'nonpayable',
|
|
8113
8801
|
type: 'function',
|
|
8114
8802
|
},
|
|
8803
|
+
];
|
|
8804
|
+
exports.iWithdrawalPoliceAbi = [
|
|
8805
|
+
{
|
|
8806
|
+
anonymous: false,
|
|
8807
|
+
inputs: [{ indexed: false, internalType: 'address', name: 'user', type: 'address' }],
|
|
8808
|
+
name: 'DisallowWithdrawal',
|
|
8809
|
+
type: 'event',
|
|
8810
|
+
},
|
|
8115
8811
|
{
|
|
8116
|
-
|
|
8117
|
-
|
|
8118
|
-
|
|
8119
|
-
|
|
8812
|
+
anonymous: false,
|
|
8813
|
+
inputs: [
|
|
8814
|
+
{ indexed: false, internalType: 'TokenId', name: 'tokenId', type: 'uint16' },
|
|
8815
|
+
{ indexed: false, internalType: 'uint256', name: 'newThreshold', type: 'uint256' },
|
|
8816
|
+
],
|
|
8817
|
+
name: 'LargeWithdrawalUnscaledThresholdSet',
|
|
8818
|
+
type: 'event',
|
|
8819
|
+
},
|
|
8820
|
+
{
|
|
8821
|
+
anonymous: false,
|
|
8822
|
+
inputs: [{ indexed: false, internalType: 'address', name: 'user', type: 'address' }],
|
|
8823
|
+
name: 'ResetPersonalCooldown',
|
|
8824
|
+
type: 'event',
|
|
8825
|
+
},
|
|
8826
|
+
{
|
|
8827
|
+
inputs: [],
|
|
8828
|
+
name: 'MARKET_HUB',
|
|
8829
|
+
outputs: [{ internalType: 'address', name: '', type: 'address' }],
|
|
8830
|
+
stateMutability: 'view',
|
|
8120
8831
|
type: 'function',
|
|
8121
8832
|
},
|
|
8122
8833
|
{
|
|
8123
|
-
inputs: [
|
|
8124
|
-
|
|
8125
|
-
|
|
8834
|
+
inputs: [
|
|
8835
|
+
{ internalType: 'address', name: 'user', type: 'address' },
|
|
8836
|
+
{ internalType: 'TokenId', name: 'tokenId', type: 'uint16' },
|
|
8837
|
+
],
|
|
8838
|
+
name: 'disallowLargeWithdrawal',
|
|
8839
|
+
outputs: [],
|
|
8126
8840
|
stateMutability: 'nonpayable',
|
|
8127
8841
|
type: 'function',
|
|
8128
8842
|
},
|
|
8129
8843
|
{
|
|
8130
|
-
inputs: [{ internalType: '
|
|
8131
|
-
name: '
|
|
8132
|
-
outputs: [
|
|
8133
|
-
stateMutability: '
|
|
8844
|
+
inputs: [{ internalType: 'address', name: 'user', type: 'address' }],
|
|
8845
|
+
name: 'disallowWithdrawalUnconditionally',
|
|
8846
|
+
outputs: [],
|
|
8847
|
+
stateMutability: 'nonpayable',
|
|
8134
8848
|
type: 'function',
|
|
8135
8849
|
},
|
|
8136
8850
|
{
|
|
8137
|
-
inputs: [],
|
|
8138
|
-
name: '
|
|
8139
|
-
outputs: [{ internalType: '
|
|
8851
|
+
inputs: [{ internalType: 'TokenId', name: 'tokenId', type: 'uint16' }],
|
|
8852
|
+
name: 'getLargeWithdrawalUnscaledThreshold',
|
|
8853
|
+
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
|
|
8140
8854
|
stateMutability: 'view',
|
|
8141
8855
|
type: 'function',
|
|
8142
8856
|
},
|
|
8143
8857
|
{
|
|
8144
|
-
inputs: [],
|
|
8145
|
-
name: '
|
|
8146
|
-
outputs: [
|
|
8147
|
-
stateMutability: '
|
|
8858
|
+
inputs: [{ internalType: 'address', name: 'user', type: 'address' }],
|
|
8859
|
+
name: 'resetPersonalCooldown',
|
|
8860
|
+
outputs: [],
|
|
8861
|
+
stateMutability: 'nonpayable',
|
|
8148
8862
|
type: 'function',
|
|
8149
8863
|
},
|
|
8150
8864
|
{
|
|
8151
|
-
inputs: [
|
|
8152
|
-
|
|
8153
|
-
|
|
8154
|
-
|
|
8865
|
+
inputs: [
|
|
8866
|
+
{ internalType: 'TokenId', name: 'tokenId', type: 'uint16' },
|
|
8867
|
+
{ internalType: 'uint256', name: 'newThreshold', type: 'uint256' },
|
|
8868
|
+
],
|
|
8869
|
+
name: 'setLargeWithdrawalUnscaledThreshold',
|
|
8870
|
+
outputs: [],
|
|
8871
|
+
stateMutability: 'nonpayable',
|
|
8155
8872
|
type: 'function',
|
|
8156
8873
|
},
|
|
8157
8874
|
];
|
|
8158
|
-
exports.
|
|
8875
|
+
exports.iZoneResponderAbi = [
|
|
8876
|
+
{
|
|
8877
|
+
anonymous: false,
|
|
8878
|
+
inputs: [{ indexed: false, internalType: 'uint32', name: 'newGlobalCooldown', type: 'uint32' }],
|
|
8879
|
+
name: 'GlobalCooldownSet',
|
|
8880
|
+
type: 'event',
|
|
8881
|
+
},
|
|
8159
8882
|
{
|
|
8883
|
+
anonymous: false,
|
|
8160
8884
|
inputs: [
|
|
8161
|
-
{ internalType: '
|
|
8162
|
-
{
|
|
8163
|
-
|
|
8885
|
+
{ indexed: false, internalType: 'MarketId', name: 'marketId', type: 'uint24' },
|
|
8886
|
+
{
|
|
8887
|
+
components: [
|
|
8888
|
+
{ internalType: 'uint64', name: 'base', type: 'uint64' },
|
|
8889
|
+
{ internalType: 'uint64', name: 'slope', type: 'uint64' },
|
|
8890
|
+
{ internalType: 'uint64', name: 'feeRate', type: 'uint64' },
|
|
8891
|
+
],
|
|
8892
|
+
indexed: false,
|
|
8893
|
+
internalType: 'struct IMarketAllTypes.LiqSettings',
|
|
8894
|
+
name: 'newLiqSettings',
|
|
8895
|
+
type: 'tuple',
|
|
8896
|
+
},
|
|
8164
8897
|
],
|
|
8165
|
-
name: '
|
|
8166
|
-
type: '
|
|
8898
|
+
name: 'LiqSettingsSet',
|
|
8899
|
+
type: 'event',
|
|
8167
8900
|
},
|
|
8168
8901
|
{
|
|
8169
8902
|
anonymous: false,
|
|
8170
8903
|
inputs: [
|
|
8171
|
-
{ indexed: false, internalType: '
|
|
8172
|
-
{
|
|
8173
|
-
|
|
8904
|
+
{ indexed: false, internalType: 'MarketId', name: 'marketId', type: 'uint24' },
|
|
8905
|
+
{
|
|
8906
|
+
components: [
|
|
8907
|
+
{ internalType: 'uint16', name: 'maxRateDeviationFactorBase1e4', type: 'uint16' },
|
|
8908
|
+
{ internalType: 'uint16', name: 'closingOrderBoundBase1e4', type: 'uint16' },
|
|
8909
|
+
{ internalType: 'int16', name: 'loUpperConstBase1e4', type: 'int16' },
|
|
8910
|
+
{ internalType: 'int16', name: 'loUpperSlopeBase1e4', type: 'int16' },
|
|
8911
|
+
{ internalType: 'int16', name: 'loLowerConstBase1e4', type: 'int16' },
|
|
8912
|
+
{ internalType: 'int16', name: 'loLowerSlopeBase1e4', type: 'int16' },
|
|
8913
|
+
],
|
|
8914
|
+
indexed: false,
|
|
8915
|
+
internalType: 'struct IZoneResponder.RateDeviationConfig',
|
|
8916
|
+
name: 'newRateDeviationConfig',
|
|
8917
|
+
type: 'tuple',
|
|
8918
|
+
},
|
|
8174
8919
|
],
|
|
8175
|
-
name: '
|
|
8920
|
+
name: 'RateDeviationConfigSet',
|
|
8176
8921
|
type: 'event',
|
|
8177
8922
|
},
|
|
8178
8923
|
{
|
|
8179
|
-
inputs: [
|
|
8180
|
-
name: '
|
|
8181
|
-
outputs: [{ internalType: '
|
|
8924
|
+
inputs: [],
|
|
8925
|
+
name: 'MARKET_HUB',
|
|
8926
|
+
outputs: [{ internalType: 'address', name: '', type: 'address' }],
|
|
8182
8927
|
stateMutability: 'view',
|
|
8183
8928
|
type: 'function',
|
|
8184
8929
|
},
|
|
8185
8930
|
{
|
|
8186
|
-
inputs: [],
|
|
8187
|
-
name: '
|
|
8188
|
-
outputs: [
|
|
8189
|
-
stateMutability: '
|
|
8931
|
+
inputs: [{ internalType: 'MarketId', name: 'marketId', type: 'uint24' }],
|
|
8932
|
+
name: 'decreaseRateDeviationBound',
|
|
8933
|
+
outputs: [],
|
|
8934
|
+
stateMutability: 'nonpayable',
|
|
8190
8935
|
type: 'function',
|
|
8191
8936
|
},
|
|
8192
8937
|
{
|
|
8193
8938
|
inputs: [],
|
|
8194
|
-
name: '
|
|
8195
|
-
outputs: [{ internalType: '
|
|
8939
|
+
name: 'getGlobalCooldown',
|
|
8940
|
+
outputs: [{ internalType: 'uint32', name: '', type: 'uint32' }],
|
|
8196
8941
|
stateMutability: 'view',
|
|
8197
8942
|
type: 'function',
|
|
8198
8943
|
},
|
|
8199
8944
|
{
|
|
8200
|
-
inputs: [],
|
|
8201
|
-
name: '
|
|
8202
|
-
outputs: [
|
|
8945
|
+
inputs: [{ internalType: 'MarketId', name: 'marketId', type: 'uint24' }],
|
|
8946
|
+
name: 'getLiqSettings',
|
|
8947
|
+
outputs: [
|
|
8948
|
+
{
|
|
8949
|
+
components: [
|
|
8950
|
+
{ internalType: 'uint64', name: 'base', type: 'uint64' },
|
|
8951
|
+
{ internalType: 'uint64', name: 'slope', type: 'uint64' },
|
|
8952
|
+
{ internalType: 'uint64', name: 'feeRate', type: 'uint64' },
|
|
8953
|
+
],
|
|
8954
|
+
internalType: 'struct IMarketAllTypes.LiqSettings',
|
|
8955
|
+
name: '',
|
|
8956
|
+
type: 'tuple',
|
|
8957
|
+
},
|
|
8958
|
+
],
|
|
8203
8959
|
stateMutability: 'view',
|
|
8204
8960
|
type: 'function',
|
|
8205
8961
|
},
|
|
8206
8962
|
{
|
|
8207
|
-
inputs: [],
|
|
8208
|
-
name: '
|
|
8209
|
-
outputs: [
|
|
8963
|
+
inputs: [{ internalType: 'MarketId', name: 'marketId', type: 'uint24' }],
|
|
8964
|
+
name: 'getRateDeviationConfig',
|
|
8965
|
+
outputs: [
|
|
8966
|
+
{
|
|
8967
|
+
components: [
|
|
8968
|
+
{ internalType: 'uint16', name: 'maxRateDeviationFactorBase1e4', type: 'uint16' },
|
|
8969
|
+
{ internalType: 'uint16', name: 'closingOrderBoundBase1e4', type: 'uint16' },
|
|
8970
|
+
{ internalType: 'int16', name: 'loUpperConstBase1e4', type: 'int16' },
|
|
8971
|
+
{ internalType: 'int16', name: 'loUpperSlopeBase1e4', type: 'int16' },
|
|
8972
|
+
{ internalType: 'int16', name: 'loLowerConstBase1e4', type: 'int16' },
|
|
8973
|
+
{ internalType: 'int16', name: 'loLowerSlopeBase1e4', type: 'int16' },
|
|
8974
|
+
],
|
|
8975
|
+
internalType: 'struct IZoneResponder.RateDeviationConfig',
|
|
8976
|
+
name: '',
|
|
8977
|
+
type: 'tuple',
|
|
8978
|
+
},
|
|
8979
|
+
],
|
|
8210
8980
|
stateMutability: 'view',
|
|
8211
8981
|
type: 'function',
|
|
8212
8982
|
},
|
|
8983
|
+
{ inputs: [], name: 'increaseGlobalCooldown', outputs: [], stateMutability: 'nonpayable', type: 'function' },
|
|
8984
|
+
{
|
|
8985
|
+
inputs: [{ internalType: 'MarketId', name: 'marketId', type: 'uint24' }],
|
|
8986
|
+
name: 'increaseLiquidationIncentive',
|
|
8987
|
+
outputs: [],
|
|
8988
|
+
stateMutability: 'nonpayable',
|
|
8989
|
+
type: 'function',
|
|
8990
|
+
},
|
|
8991
|
+
{
|
|
8992
|
+
inputs: [{ internalType: 'uint32', name: 'newGlobalCooldown', type: 'uint32' }],
|
|
8993
|
+
name: 'setGlobalCooldown',
|
|
8994
|
+
outputs: [],
|
|
8995
|
+
stateMutability: 'nonpayable',
|
|
8996
|
+
type: 'function',
|
|
8997
|
+
},
|
|
8998
|
+
{
|
|
8999
|
+
inputs: [
|
|
9000
|
+
{ internalType: 'MarketId', name: 'marketId', type: 'uint24' },
|
|
9001
|
+
{
|
|
9002
|
+
components: [
|
|
9003
|
+
{ internalType: 'uint64', name: 'base', type: 'uint64' },
|
|
9004
|
+
{ internalType: 'uint64', name: 'slope', type: 'uint64' },
|
|
9005
|
+
{ internalType: 'uint64', name: 'feeRate', type: 'uint64' },
|
|
9006
|
+
],
|
|
9007
|
+
internalType: 'struct IMarketAllTypes.LiqSettings',
|
|
9008
|
+
name: 'newLiqSettings',
|
|
9009
|
+
type: 'tuple',
|
|
9010
|
+
},
|
|
9011
|
+
],
|
|
9012
|
+
name: 'setLiqSettings',
|
|
9013
|
+
outputs: [],
|
|
9014
|
+
stateMutability: 'nonpayable',
|
|
9015
|
+
type: 'function',
|
|
9016
|
+
},
|
|
9017
|
+
{
|
|
9018
|
+
inputs: [
|
|
9019
|
+
{ internalType: 'MarketId', name: 'marketId', type: 'uint24' },
|
|
9020
|
+
{
|
|
9021
|
+
components: [
|
|
9022
|
+
{ internalType: 'uint16', name: 'maxRateDeviationFactorBase1e4', type: 'uint16' },
|
|
9023
|
+
{ internalType: 'uint16', name: 'closingOrderBoundBase1e4', type: 'uint16' },
|
|
9024
|
+
{ internalType: 'int16', name: 'loUpperConstBase1e4', type: 'int16' },
|
|
9025
|
+
{ internalType: 'int16', name: 'loUpperSlopeBase1e4', type: 'int16' },
|
|
9026
|
+
{ internalType: 'int16', name: 'loLowerConstBase1e4', type: 'int16' },
|
|
9027
|
+
{ internalType: 'int16', name: 'loLowerSlopeBase1e4', type: 'int16' },
|
|
9028
|
+
],
|
|
9029
|
+
internalType: 'struct IZoneResponder.RateDeviationConfig',
|
|
9030
|
+
name: 'newRateDeviationConfig',
|
|
9031
|
+
type: 'tuple',
|
|
9032
|
+
},
|
|
9033
|
+
],
|
|
9034
|
+
name: 'setRateDeviationConfig',
|
|
9035
|
+
outputs: [],
|
|
9036
|
+
stateMutability: 'nonpayable',
|
|
9037
|
+
type: 'function',
|
|
9038
|
+
},
|
|
9039
|
+
{
|
|
9040
|
+
inputs: [{ internalType: 'MarketId', name: 'marketId', type: 'uint24' }],
|
|
9041
|
+
name: 'turnOnCLO',
|
|
9042
|
+
outputs: [],
|
|
9043
|
+
stateMutability: 'nonpayable',
|
|
9044
|
+
type: 'function',
|
|
9045
|
+
},
|
|
8213
9046
|
];
|
|
8214
9047
|
exports.iMultiTokenMerkleDistributorAbi = [
|
|
8215
9048
|
{ inputs: [], name: 'InvalidMerkleProof', type: 'error' },
|
|
@@ -8309,4 +9142,47 @@ exports.iMultiTokenMerkleDistributorAbi = [
|
|
|
8309
9142
|
type: 'function',
|
|
8310
9143
|
},
|
|
8311
9144
|
];
|
|
9145
|
+
exports.iPVeTokenAbi = [
|
|
9146
|
+
{
|
|
9147
|
+
inputs: [{ internalType: 'address', name: 'user', type: 'address' }],
|
|
9148
|
+
name: 'balanceOf',
|
|
9149
|
+
outputs: [{ internalType: 'uint128', name: '', type: 'uint128' }],
|
|
9150
|
+
stateMutability: 'view',
|
|
9151
|
+
type: 'function',
|
|
9152
|
+
},
|
|
9153
|
+
{
|
|
9154
|
+
inputs: [{ internalType: 'address', name: 'user', type: 'address' }],
|
|
9155
|
+
name: 'positionData',
|
|
9156
|
+
outputs: [
|
|
9157
|
+
{ internalType: 'uint128', name: 'amount', type: 'uint128' },
|
|
9158
|
+
{ internalType: 'uint128', name: 'expiry', type: 'uint128' },
|
|
9159
|
+
],
|
|
9160
|
+
stateMutability: 'view',
|
|
9161
|
+
type: 'function',
|
|
9162
|
+
},
|
|
9163
|
+
{
|
|
9164
|
+
inputs: [{ internalType: 'address', name: 'user', type: 'address' }],
|
|
9165
|
+
name: 'totalSupplyAndBalanceCurrent',
|
|
9166
|
+
outputs: [
|
|
9167
|
+
{ internalType: 'uint128', name: '', type: 'uint128' },
|
|
9168
|
+
{ internalType: 'uint128', name: '', type: 'uint128' },
|
|
9169
|
+
],
|
|
9170
|
+
stateMutability: 'nonpayable',
|
|
9171
|
+
type: 'function',
|
|
9172
|
+
},
|
|
9173
|
+
{
|
|
9174
|
+
inputs: [],
|
|
9175
|
+
name: 'totalSupplyCurrent',
|
|
9176
|
+
outputs: [{ internalType: 'uint128', name: '', type: 'uint128' }],
|
|
9177
|
+
stateMutability: 'nonpayable',
|
|
9178
|
+
type: 'function',
|
|
9179
|
+
},
|
|
9180
|
+
{
|
|
9181
|
+
inputs: [],
|
|
9182
|
+
name: 'totalSupplyStored',
|
|
9183
|
+
outputs: [{ internalType: 'uint128', name: '', type: 'uint128' }],
|
|
9184
|
+
stateMutability: 'view',
|
|
9185
|
+
type: 'function',
|
|
9186
|
+
},
|
|
9187
|
+
];
|
|
8312
9188
|
//# sourceMappingURL=viemAbis.js.map
|