@bouncetech/contracts 1.2.0 → 1.2.1
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/index.d.ts
CHANGED
|
@@ -1087,355 +1087,95 @@ export declare const GLOBAL_STORAGE_HELPER_ABI: readonly [{
|
|
|
1087
1087
|
readonly stateMutability: "nonpayable";
|
|
1088
1088
|
}, {
|
|
1089
1089
|
readonly type: "function";
|
|
1090
|
-
readonly name: "
|
|
1091
|
-
readonly inputs: readonly [
|
|
1092
|
-
readonly name: "leveragedTokenAddress_";
|
|
1093
|
-
readonly type: "address";
|
|
1094
|
-
readonly internalType: "address";
|
|
1095
|
-
}];
|
|
1090
|
+
readonly name: "getGlobalStorageData";
|
|
1091
|
+
readonly inputs: readonly [];
|
|
1096
1092
|
readonly outputs: readonly [{
|
|
1097
1093
|
readonly name: "";
|
|
1098
1094
|
readonly type: "tuple";
|
|
1099
|
-
readonly internalType: "struct
|
|
1095
|
+
readonly internalType: "struct IGlobalStorageHelper.GlobalStorageData";
|
|
1100
1096
|
readonly components: readonly [{
|
|
1101
|
-
readonly name: "
|
|
1097
|
+
readonly name: "owner";
|
|
1102
1098
|
readonly type: "address";
|
|
1103
1099
|
readonly internalType: "address";
|
|
1104
1100
|
}, {
|
|
1105
|
-
readonly name: "
|
|
1106
|
-
readonly type: "uint256";
|
|
1107
|
-
readonly internalType: "uint256";
|
|
1108
|
-
}, {
|
|
1109
|
-
readonly name: "baseAssetUserCredit";
|
|
1110
|
-
readonly type: "uint256";
|
|
1111
|
-
readonly internalType: "uint256";
|
|
1112
|
-
}, {
|
|
1113
|
-
readonly name: "usdcSpotBalance";
|
|
1114
|
-
readonly type: "uint256";
|
|
1115
|
-
readonly internalType: "uint256";
|
|
1116
|
-
}, {
|
|
1117
|
-
readonly name: "usdcPerpBalance";
|
|
1118
|
-
readonly type: "uint256";
|
|
1119
|
-
readonly internalType: "uint256";
|
|
1120
|
-
}, {
|
|
1121
|
-
readonly name: "usdcMargin";
|
|
1122
|
-
readonly type: "uint256";
|
|
1123
|
-
readonly internalType: "uint256";
|
|
1124
|
-
}, {
|
|
1125
|
-
readonly name: "notionalValue";
|
|
1126
|
-
readonly type: "uint256";
|
|
1127
|
-
readonly internalType: "uint256";
|
|
1128
|
-
}, {
|
|
1129
|
-
readonly name: "effectiveLeverage";
|
|
1130
|
-
readonly type: "uint256";
|
|
1131
|
-
readonly internalType: "uint256";
|
|
1132
|
-
}, {
|
|
1133
|
-
readonly name: "targetLeverage";
|
|
1134
|
-
readonly type: "uint256";
|
|
1135
|
-
readonly internalType: "uint256";
|
|
1136
|
-
}];
|
|
1137
|
-
}];
|
|
1138
|
-
readonly stateMutability: "view";
|
|
1139
|
-
}, {
|
|
1140
|
-
readonly type: "function";
|
|
1141
|
-
readonly name: "getLeveragedTokens";
|
|
1142
|
-
readonly inputs: readonly [];
|
|
1143
|
-
readonly outputs: readonly [{
|
|
1144
|
-
readonly name: "";
|
|
1145
|
-
readonly type: "tuple[]";
|
|
1146
|
-
readonly internalType: "struct ILeveragedTokenHelper.LeveragedTokenData[]";
|
|
1147
|
-
readonly components: readonly [{
|
|
1148
|
-
readonly name: "leveragedToken";
|
|
1101
|
+
readonly name: "ltImplementation";
|
|
1149
1102
|
readonly type: "address";
|
|
1150
1103
|
readonly internalType: "address";
|
|
1151
1104
|
}, {
|
|
1152
|
-
readonly name: "
|
|
1153
|
-
readonly type: "
|
|
1154
|
-
readonly internalType: "
|
|
1155
|
-
}, {
|
|
1156
|
-
readonly name: "targetAsset";
|
|
1157
|
-
readonly type: "string";
|
|
1158
|
-
readonly internalType: "string";
|
|
1159
|
-
}, {
|
|
1160
|
-
readonly name: "targetLeverage";
|
|
1161
|
-
readonly type: "uint256";
|
|
1162
|
-
readonly internalType: "uint256";
|
|
1163
|
-
}, {
|
|
1164
|
-
readonly name: "isLong";
|
|
1165
|
-
readonly type: "bool";
|
|
1166
|
-
readonly internalType: "bool";
|
|
1167
|
-
}, {
|
|
1168
|
-
readonly name: "exchangeRate";
|
|
1169
|
-
readonly type: "uint256";
|
|
1170
|
-
readonly internalType: "uint256";
|
|
1171
|
-
}, {
|
|
1172
|
-
readonly name: "baseAssetBalance";
|
|
1173
|
-
readonly type: "uint256";
|
|
1174
|
-
readonly internalType: "uint256";
|
|
1175
|
-
}, {
|
|
1176
|
-
readonly name: "totalAssets";
|
|
1177
|
-
readonly type: "uint256";
|
|
1178
|
-
readonly internalType: "uint256";
|
|
1179
|
-
}, {
|
|
1180
|
-
readonly name: "userCredit";
|
|
1181
|
-
readonly type: "uint256";
|
|
1182
|
-
readonly internalType: "uint256";
|
|
1183
|
-
}, {
|
|
1184
|
-
readonly name: "credit";
|
|
1185
|
-
readonly type: "uint256";
|
|
1186
|
-
readonly internalType: "uint256";
|
|
1187
|
-
}, {
|
|
1188
|
-
readonly name: "agentData";
|
|
1189
|
-
readonly type: "tuple[3]";
|
|
1190
|
-
readonly internalType: "struct ILeveragedTokenHelper.AgentData[3]";
|
|
1191
|
-
readonly components: readonly [{
|
|
1192
|
-
readonly name: "slot";
|
|
1193
|
-
readonly type: "uint8";
|
|
1194
|
-
readonly internalType: "uint8";
|
|
1195
|
-
}, {
|
|
1196
|
-
readonly name: "agent";
|
|
1197
|
-
readonly type: "address";
|
|
1198
|
-
readonly internalType: "address";
|
|
1199
|
-
}, {
|
|
1200
|
-
readonly name: "createdAt";
|
|
1201
|
-
readonly type: "uint256";
|
|
1202
|
-
readonly internalType: "uint256";
|
|
1203
|
-
}];
|
|
1204
|
-
}, {
|
|
1205
|
-
readonly name: "balanceOf";
|
|
1206
|
-
readonly type: "uint256";
|
|
1207
|
-
readonly internalType: "uint256";
|
|
1105
|
+
readonly name: "baseAsset";
|
|
1106
|
+
readonly type: "address";
|
|
1107
|
+
readonly internalType: "address";
|
|
1208
1108
|
}, {
|
|
1209
|
-
readonly name: "
|
|
1210
|
-
readonly type: "
|
|
1211
|
-
readonly internalType: "
|
|
1109
|
+
readonly name: "treasury";
|
|
1110
|
+
readonly type: "address";
|
|
1111
|
+
readonly internalType: "address";
|
|
1212
1112
|
}, {
|
|
1213
|
-
readonly name: "
|
|
1214
|
-
readonly type: "bool";
|
|
1215
|
-
readonly internalType: "bool";
|
|
1216
|
-
}];
|
|
1217
|
-
}];
|
|
1218
|
-
readonly stateMutability: "view";
|
|
1219
|
-
}, {
|
|
1220
|
-
readonly type: "function";
|
|
1221
|
-
readonly name: "getLeveragedTokens";
|
|
1222
|
-
readonly inputs: readonly [{
|
|
1223
|
-
readonly name: "user_";
|
|
1224
|
-
readonly type: "address";
|
|
1225
|
-
readonly internalType: "address";
|
|
1226
|
-
}, {
|
|
1227
|
-
readonly name: "onlyHeld_";
|
|
1228
|
-
readonly type: "bool";
|
|
1229
|
-
readonly internalType: "bool";
|
|
1230
|
-
}];
|
|
1231
|
-
readonly outputs: readonly [{
|
|
1232
|
-
readonly name: "";
|
|
1233
|
-
readonly type: "tuple[]";
|
|
1234
|
-
readonly internalType: "struct ILeveragedTokenHelper.LeveragedTokenData[]";
|
|
1235
|
-
readonly components: readonly [{
|
|
1236
|
-
readonly name: "leveragedToken";
|
|
1113
|
+
readonly name: "factory";
|
|
1237
1114
|
readonly type: "address";
|
|
1238
1115
|
readonly internalType: "address";
|
|
1239
1116
|
}, {
|
|
1240
|
-
readonly name: "
|
|
1241
|
-
readonly type: "
|
|
1242
|
-
readonly internalType: "
|
|
1117
|
+
readonly name: "hyperliquidHandler";
|
|
1118
|
+
readonly type: "address";
|
|
1119
|
+
readonly internalType: "address";
|
|
1243
1120
|
}, {
|
|
1244
|
-
readonly name: "
|
|
1245
|
-
readonly type: "
|
|
1246
|
-
readonly internalType: "
|
|
1121
|
+
readonly name: "feeHandler";
|
|
1122
|
+
readonly type: "address";
|
|
1123
|
+
readonly internalType: "address";
|
|
1247
1124
|
}, {
|
|
1248
|
-
readonly name: "
|
|
1249
|
-
readonly type: "
|
|
1250
|
-
readonly internalType: "
|
|
1125
|
+
readonly name: "bounce";
|
|
1126
|
+
readonly type: "address";
|
|
1127
|
+
readonly internalType: "address";
|
|
1251
1128
|
}, {
|
|
1252
|
-
readonly name: "
|
|
1129
|
+
readonly name: "allMintsPaused";
|
|
1253
1130
|
readonly type: "bool";
|
|
1254
1131
|
readonly internalType: "bool";
|
|
1255
1132
|
}, {
|
|
1256
|
-
readonly name: "
|
|
1257
|
-
readonly type: "
|
|
1258
|
-
readonly internalType: "
|
|
1259
|
-
}, {
|
|
1260
|
-
readonly name: "baseAssetBalance";
|
|
1261
|
-
readonly type: "uint256";
|
|
1262
|
-
readonly internalType: "uint256";
|
|
1133
|
+
readonly name: "vesting";
|
|
1134
|
+
readonly type: "address";
|
|
1135
|
+
readonly internalType: "address";
|
|
1263
1136
|
}, {
|
|
1264
|
-
readonly name: "
|
|
1265
|
-
readonly type: "
|
|
1266
|
-
readonly internalType: "
|
|
1137
|
+
readonly name: "airdrop";
|
|
1138
|
+
readonly type: "address";
|
|
1139
|
+
readonly internalType: "address";
|
|
1267
1140
|
}, {
|
|
1268
|
-
readonly name: "
|
|
1269
|
-
readonly type: "
|
|
1270
|
-
readonly internalType: "
|
|
1141
|
+
readonly name: "referrals";
|
|
1142
|
+
readonly type: "address";
|
|
1143
|
+
readonly internalType: "address";
|
|
1271
1144
|
}, {
|
|
1272
|
-
readonly name: "
|
|
1145
|
+
readonly name: "minTransactionSize";
|
|
1273
1146
|
readonly type: "uint256";
|
|
1274
1147
|
readonly internalType: "uint256";
|
|
1275
1148
|
}, {
|
|
1276
|
-
readonly name: "
|
|
1277
|
-
readonly type: "tuple[3]";
|
|
1278
|
-
readonly internalType: "struct ILeveragedTokenHelper.AgentData[3]";
|
|
1279
|
-
readonly components: readonly [{
|
|
1280
|
-
readonly name: "slot";
|
|
1281
|
-
readonly type: "uint8";
|
|
1282
|
-
readonly internalType: "uint8";
|
|
1283
|
-
}, {
|
|
1284
|
-
readonly name: "agent";
|
|
1285
|
-
readonly type: "address";
|
|
1286
|
-
readonly internalType: "address";
|
|
1287
|
-
}, {
|
|
1288
|
-
readonly name: "createdAt";
|
|
1289
|
-
readonly type: "uint256";
|
|
1290
|
-
readonly internalType: "uint256";
|
|
1291
|
-
}];
|
|
1292
|
-
}, {
|
|
1293
|
-
readonly name: "balanceOf";
|
|
1149
|
+
readonly name: "minLockAmount";
|
|
1294
1150
|
readonly type: "uint256";
|
|
1295
1151
|
readonly internalType: "uint256";
|
|
1296
1152
|
}, {
|
|
1297
|
-
readonly name: "
|
|
1298
|
-
readonly type: "bool";
|
|
1299
|
-
readonly internalType: "bool";
|
|
1300
|
-
}, {
|
|
1301
|
-
readonly name: "isStandbyMode";
|
|
1302
|
-
readonly type: "bool";
|
|
1303
|
-
readonly internalType: "bool";
|
|
1304
|
-
}];
|
|
1305
|
-
}];
|
|
1306
|
-
readonly stateMutability: "view";
|
|
1307
|
-
}, {
|
|
1308
|
-
readonly type: "function";
|
|
1309
|
-
readonly name: "getLeveragedTokensCoreData";
|
|
1310
|
-
readonly inputs: readonly [];
|
|
1311
|
-
readonly outputs: readonly [{
|
|
1312
|
-
readonly name: "";
|
|
1313
|
-
readonly type: "tuple[]";
|
|
1314
|
-
readonly internalType: "struct ILeveragedTokenHelper.LeveragedTokenCoreData[]";
|
|
1315
|
-
readonly components: readonly [{
|
|
1316
|
-
readonly name: "leveragedToken";
|
|
1317
|
-
readonly type: "address";
|
|
1318
|
-
readonly internalType: "address";
|
|
1319
|
-
}, {
|
|
1320
|
-
readonly name: "marketId";
|
|
1321
|
-
readonly type: "uint32";
|
|
1322
|
-
readonly internalType: "uint32";
|
|
1323
|
-
}, {
|
|
1324
|
-
readonly name: "targetAsset";
|
|
1325
|
-
readonly type: "string";
|
|
1326
|
-
readonly internalType: "string";
|
|
1327
|
-
}, {
|
|
1328
|
-
readonly name: "targetLeverage";
|
|
1153
|
+
readonly name: "redemptionFee";
|
|
1329
1154
|
readonly type: "uint256";
|
|
1330
1155
|
readonly internalType: "uint256";
|
|
1331
1156
|
}, {
|
|
1332
|
-
readonly name: "
|
|
1333
|
-
readonly type: "bool";
|
|
1334
|
-
readonly internalType: "bool";
|
|
1335
|
-
}, {
|
|
1336
|
-
readonly name: "baseAssetBalance";
|
|
1157
|
+
readonly name: "streamingFee";
|
|
1337
1158
|
readonly type: "uint256";
|
|
1338
1159
|
readonly internalType: "uint256";
|
|
1339
1160
|
}, {
|
|
1340
|
-
readonly name: "
|
|
1161
|
+
readonly name: "executeRedemptionFee";
|
|
1341
1162
|
readonly type: "uint256";
|
|
1342
1163
|
readonly internalType: "uint256";
|
|
1343
1164
|
}, {
|
|
1344
|
-
readonly name: "
|
|
1345
|
-
readonly type: "tuple[3]";
|
|
1346
|
-
readonly internalType: "struct ILeveragedTokenHelper.AgentData[3]";
|
|
1347
|
-
readonly components: readonly [{
|
|
1348
|
-
readonly name: "slot";
|
|
1349
|
-
readonly type: "uint8";
|
|
1350
|
-
readonly internalType: "uint8";
|
|
1351
|
-
}, {
|
|
1352
|
-
readonly name: "agent";
|
|
1353
|
-
readonly type: "address";
|
|
1354
|
-
readonly internalType: "address";
|
|
1355
|
-
}, {
|
|
1356
|
-
readonly name: "createdAt";
|
|
1357
|
-
readonly type: "uint256";
|
|
1358
|
-
readonly internalType: "uint256";
|
|
1359
|
-
}];
|
|
1360
|
-
}, {
|
|
1361
|
-
readonly name: "mintPaused";
|
|
1362
|
-
readonly type: "bool";
|
|
1363
|
-
readonly internalType: "bool";
|
|
1364
|
-
}];
|
|
1365
|
-
}];
|
|
1366
|
-
readonly stateMutability: "view";
|
|
1367
|
-
}, {
|
|
1368
|
-
readonly type: "function";
|
|
1369
|
-
readonly name: "getLeveragedTokensSnapshot";
|
|
1370
|
-
readonly inputs: readonly [];
|
|
1371
|
-
readonly outputs: readonly [{
|
|
1372
|
-
readonly name: "";
|
|
1373
|
-
readonly type: "tuple";
|
|
1374
|
-
readonly internalType: "struct ILeveragedTokenHelper.LeveragedTokensSnapshot";
|
|
1375
|
-
readonly components: readonly [{
|
|
1376
|
-
readonly name: "blockNumber";
|
|
1165
|
+
readonly name: "treasuryFeeShare";
|
|
1377
1166
|
readonly type: "uint256";
|
|
1378
1167
|
readonly internalType: "uint256";
|
|
1379
1168
|
}, {
|
|
1380
|
-
readonly name: "
|
|
1169
|
+
readonly name: "referrerRebate";
|
|
1381
1170
|
readonly type: "uint256";
|
|
1382
1171
|
readonly internalType: "uint256";
|
|
1383
1172
|
}, {
|
|
1384
|
-
readonly name: "
|
|
1173
|
+
readonly name: "refereeRebate";
|
|
1385
1174
|
readonly type: "uint256";
|
|
1386
1175
|
readonly internalType: "uint256";
|
|
1387
|
-
}, {
|
|
1388
|
-
readonly name: "tokens";
|
|
1389
|
-
readonly type: "tuple[]";
|
|
1390
|
-
readonly internalType: "struct ILeveragedTokenHelper.LeveragedTokenSnapshotData[]";
|
|
1391
|
-
readonly components: readonly [{
|
|
1392
|
-
readonly name: "leveragedToken";
|
|
1393
|
-
readonly type: "address";
|
|
1394
|
-
readonly internalType: "address";
|
|
1395
|
-
}, {
|
|
1396
|
-
readonly name: "exchangeRate";
|
|
1397
|
-
readonly type: "uint256";
|
|
1398
|
-
readonly internalType: "uint256";
|
|
1399
|
-
}, {
|
|
1400
|
-
readonly name: "baseAssetContractBalance";
|
|
1401
|
-
readonly type: "uint256";
|
|
1402
|
-
readonly internalType: "uint256";
|
|
1403
|
-
}, {
|
|
1404
|
-
readonly name: "baseAssetUserCredit";
|
|
1405
|
-
readonly type: "uint256";
|
|
1406
|
-
readonly internalType: "uint256";
|
|
1407
|
-
}, {
|
|
1408
|
-
readonly name: "usdcSpotBalance";
|
|
1409
|
-
readonly type: "uint256";
|
|
1410
|
-
readonly internalType: "uint256";
|
|
1411
|
-
}, {
|
|
1412
|
-
readonly name: "usdcPerpBalance";
|
|
1413
|
-
readonly type: "uint256";
|
|
1414
|
-
readonly internalType: "uint256";
|
|
1415
|
-
}, {
|
|
1416
|
-
readonly name: "usdcMargin";
|
|
1417
|
-
readonly type: "uint256";
|
|
1418
|
-
readonly internalType: "uint256";
|
|
1419
|
-
}, {
|
|
1420
|
-
readonly name: "totalAssets";
|
|
1421
|
-
readonly type: "uint256";
|
|
1422
|
-
readonly internalType: "uint256";
|
|
1423
|
-
}, {
|
|
1424
|
-
readonly name: "notionalValue";
|
|
1425
|
-
readonly type: "uint256";
|
|
1426
|
-
readonly internalType: "uint256";
|
|
1427
|
-
}];
|
|
1428
1176
|
}];
|
|
1429
1177
|
}];
|
|
1430
1178
|
readonly stateMutability: "view";
|
|
1431
|
-
}, {
|
|
1432
|
-
readonly type: "error";
|
|
1433
|
-
readonly name: "DivisionByZero";
|
|
1434
|
-
readonly inputs: readonly [];
|
|
1435
|
-
}, {
|
|
1436
|
-
readonly type: "error";
|
|
1437
|
-
readonly name: "PrecompileLib__L1BlockNumberPrecompileFailed";
|
|
1438
|
-
readonly inputs: readonly [];
|
|
1439
1179
|
}];
|
|
1440
1180
|
export declare const HYPERLIQUID_HANDLER_ABI: readonly [{
|
|
1441
1181
|
readonly type: "function";
|
|
@@ -2718,6 +2458,10 @@ export declare const LEVERAGED_TOKEN_HELPER_ABI: readonly [{
|
|
|
2718
2458
|
readonly name: "mintPaused";
|
|
2719
2459
|
readonly type: "bool";
|
|
2720
2460
|
readonly internalType: "bool";
|
|
2461
|
+
}, {
|
|
2462
|
+
readonly name: "isStandbyMode";
|
|
2463
|
+
readonly type: "bool";
|
|
2464
|
+
readonly internalType: "bool";
|
|
2721
2465
|
}];
|
|
2722
2466
|
}];
|
|
2723
2467
|
readonly stateMutability: "view";
|
|
@@ -2802,6 +2546,10 @@ export declare const LEVERAGED_TOKEN_HELPER_ABI: readonly [{
|
|
|
2802
2546
|
readonly name: "mintPaused";
|
|
2803
2547
|
readonly type: "bool";
|
|
2804
2548
|
readonly internalType: "bool";
|
|
2549
|
+
}, {
|
|
2550
|
+
readonly name: "isStandbyMode";
|
|
2551
|
+
readonly type: "bool";
|
|
2552
|
+
readonly internalType: "bool";
|
|
2805
2553
|
}];
|
|
2806
2554
|
}];
|
|
2807
2555
|
readonly stateMutability: "view";
|
|
@@ -2881,6 +2629,10 @@ export declare const LEVERAGED_TOKEN_HELPER_ABI: readonly [{
|
|
|
2881
2629
|
readonly name: "blockTimestamp";
|
|
2882
2630
|
readonly type: "uint256";
|
|
2883
2631
|
readonly internalType: "uint256";
|
|
2632
|
+
}, {
|
|
2633
|
+
readonly name: "l1BlockNumber";
|
|
2634
|
+
readonly type: "uint256";
|
|
2635
|
+
readonly internalType: "uint256";
|
|
2884
2636
|
}, {
|
|
2885
2637
|
readonly name: "tokens";
|
|
2886
2638
|
readonly type: "tuple[]";
|
|
@@ -2929,6 +2681,10 @@ export declare const LEVERAGED_TOKEN_HELPER_ABI: readonly [{
|
|
|
2929
2681
|
readonly type: "error";
|
|
2930
2682
|
readonly name: "DivisionByZero";
|
|
2931
2683
|
readonly inputs: readonly [];
|
|
2684
|
+
}, {
|
|
2685
|
+
readonly type: "error";
|
|
2686
|
+
readonly name: "PrecompileLib__L1BlockNumberPrecompileFailed";
|
|
2687
|
+
readonly inputs: readonly [];
|
|
2932
2688
|
}];
|
|
2933
2689
|
export declare const REFERRALS_ABI: readonly [{
|
|
2934
2690
|
readonly type: "constructor";
|
package/package.json
CHANGED