timelock-sdk 0.0.59 → 0.0.61

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.
@@ -863,10 +863,6 @@ declare const optionsMarketAbi: readonly [{
863
863
  readonly name: "owner";
864
864
  readonly type: "address";
865
865
  readonly internalType: "address";
866
- }, {
867
- readonly name: "extendable";
868
- readonly type: "bool";
869
- readonly internalType: "bool";
870
866
  }, {
871
867
  readonly name: "optionType";
872
868
  readonly type: "uint8";
@@ -883,11 +879,11 @@ declare const optionsMarketAbi: readonly [{
883
879
  readonly name: "expiresAt";
884
880
  readonly type: "uint32";
885
881
  readonly internalType: "uint32";
886
- }, {
887
- readonly name: "liquidities";
888
- readonly type: "uint128[]";
889
- readonly internalType: "uint128[]";
890
882
  }];
883
+ }, {
884
+ readonly name: "";
885
+ readonly type: "uint128[]";
886
+ readonly internalType: "uint128[]";
891
887
  }];
892
888
  readonly stateMutability: "view";
893
889
  }, {
@@ -908,7 +904,7 @@ declare const optionsMarketAbi: readonly [{
908
904
  readonly type: "int24";
909
905
  readonly internalType: "int24";
910
906
  }, {
911
- readonly name: "liquidities";
907
+ readonly name: "liquiditys";
912
908
  readonly type: "uint128[]";
913
909
  readonly internalType: "uint128[]";
914
910
  }, {
@@ -938,50 +934,14 @@ declare const optionsMarketAbi: readonly [{
938
934
  readonly internalType: "int24";
939
935
  }];
940
936
  readonly stateMutability: "view";
941
- }, {
942
- readonly type: "function";
943
- readonly name: "maxDuration";
944
- readonly inputs: readonly [];
945
- readonly outputs: readonly [{
946
- readonly name: "";
947
- readonly type: "uint32";
948
- readonly internalType: "uint32";
949
- }];
950
- readonly stateMutability: "view";
951
- }, {
952
- readonly type: "function";
953
- readonly name: "maxOptionAmount";
954
- readonly inputs: readonly [];
955
- readonly outputs: readonly [{
956
- readonly name: "";
957
- readonly type: "uint256";
958
- readonly internalType: "uint256";
959
- }];
960
- readonly stateMutability: "view";
961
- }, {
962
- readonly type: "function";
963
- readonly name: "minDuration";
964
- readonly inputs: readonly [];
965
- readonly outputs: readonly [{
966
- readonly name: "";
967
- readonly type: "uint32";
968
- readonly internalType: "uint32";
969
- }];
970
- readonly stateMutability: "view";
971
- }, {
972
- readonly type: "function";
973
- readonly name: "minOptionAmount";
974
- readonly inputs: readonly [];
975
- readonly outputs: readonly [{
976
- readonly name: "";
977
- readonly type: "uint256";
978
- readonly internalType: "uint256";
979
- }];
980
- readonly stateMutability: "view";
981
937
  }, {
982
938
  readonly type: "function";
983
939
  readonly name: "mintOption";
984
940
  readonly inputs: readonly [{
941
+ readonly name: "owner";
942
+ readonly type: "address";
943
+ readonly internalType: "address";
944
+ }, {
985
945
  readonly name: "optionType";
986
946
  readonly type: "uint8";
987
947
  readonly internalType: "uint8";
@@ -1001,10 +961,6 @@ declare const optionsMarketAbi: readonly [{
1001
961
  readonly name: "maxPremium";
1002
962
  readonly type: "uint256";
1003
963
  readonly internalType: "uint256";
1004
- }, {
1005
- readonly name: "extendable";
1006
- readonly type: "bool";
1007
- readonly internalType: "bool";
1008
964
  }, {
1009
965
  readonly name: "refTick";
1010
966
  readonly type: "int24";
@@ -1028,6 +984,20 @@ declare const optionsMarketAbi: readonly [{
1028
984
  readonly internalType: "uint256";
1029
985
  }];
1030
986
  readonly stateMutability: "nonpayable";
987
+ }, {
988
+ readonly type: "function";
989
+ readonly name: "multicall";
990
+ readonly inputs: readonly [{
991
+ readonly name: "data";
992
+ readonly type: "bytes[]";
993
+ readonly internalType: "bytes[]";
994
+ }];
995
+ readonly outputs: readonly [{
996
+ readonly name: "results";
997
+ readonly type: "bytes[]";
998
+ readonly internalType: "bytes[]";
999
+ }];
1000
+ readonly stateMutability: "nonpayable";
1031
1001
  }, {
1032
1002
  readonly type: "function";
1033
1003
  readonly name: "nextOptionId";
@@ -1038,6 +1008,40 @@ declare const optionsMarketAbi: readonly [{
1038
1008
  readonly internalType: "uint256";
1039
1009
  }];
1040
1010
  readonly stateMutability: "view";
1011
+ }, {
1012
+ readonly type: "function";
1013
+ readonly name: "operatorPerms";
1014
+ readonly inputs: readonly [{
1015
+ readonly name: "";
1016
+ readonly type: "address";
1017
+ readonly internalType: "address";
1018
+ }, {
1019
+ readonly name: "";
1020
+ readonly type: "address";
1021
+ readonly internalType: "address";
1022
+ }];
1023
+ readonly outputs: readonly [{
1024
+ readonly name: "canExtend";
1025
+ readonly type: "bool";
1026
+ readonly internalType: "bool";
1027
+ }, {
1028
+ readonly name: "canExercise";
1029
+ readonly type: "bool";
1030
+ readonly internalType: "bool";
1031
+ }, {
1032
+ readonly name: "canTransfer";
1033
+ readonly type: "bool";
1034
+ readonly internalType: "bool";
1035
+ }, {
1036
+ readonly name: "canMint";
1037
+ readonly type: "bool";
1038
+ readonly internalType: "bool";
1039
+ }, {
1040
+ readonly name: "spendingApproval";
1041
+ readonly type: "uint256";
1042
+ readonly internalType: "uint256";
1043
+ }];
1044
+ readonly stateMutability: "view";
1041
1045
  }, {
1042
1046
  readonly type: "function";
1043
1047
  readonly name: "optionAsset";
@@ -1104,6 +1108,36 @@ declare const optionsMarketAbi: readonly [{
1104
1108
  readonly inputs: readonly [];
1105
1109
  readonly outputs: readonly [];
1106
1110
  readonly stateMutability: "nonpayable";
1111
+ }, {
1112
+ readonly type: "function";
1113
+ readonly name: "setOperatorPerms";
1114
+ readonly inputs: readonly [{
1115
+ readonly name: "operator";
1116
+ readonly type: "address";
1117
+ readonly internalType: "address";
1118
+ }, {
1119
+ readonly name: "canExtend";
1120
+ readonly type: "bool";
1121
+ readonly internalType: "bool";
1122
+ }, {
1123
+ readonly name: "canExercise";
1124
+ readonly type: "bool";
1125
+ readonly internalType: "bool";
1126
+ }, {
1127
+ readonly name: "canTransfer";
1128
+ readonly type: "bool";
1129
+ readonly internalType: "bool";
1130
+ }, {
1131
+ readonly name: "canMint";
1132
+ readonly type: "bool";
1133
+ readonly internalType: "bool";
1134
+ }, {
1135
+ readonly name: "spendingApproval";
1136
+ readonly type: "uint256";
1137
+ readonly internalType: "uint256";
1138
+ }];
1139
+ readonly outputs: readonly [];
1140
+ readonly stateMutability: "nonpayable";
1107
1141
  }, {
1108
1142
  readonly type: "function";
1109
1143
  readonly name: "tickSpacing";
@@ -1134,6 +1168,20 @@ declare const optionsMarketAbi: readonly [{
1134
1168
  readonly internalType: "contract IERC20";
1135
1169
  }];
1136
1170
  readonly stateMutability: "view";
1171
+ }, {
1172
+ readonly type: "function";
1173
+ readonly name: "transferOption";
1174
+ readonly inputs: readonly [{
1175
+ readonly name: "optionId";
1176
+ readonly type: "uint256";
1177
+ readonly internalType: "uint256";
1178
+ }, {
1179
+ readonly name: "to";
1180
+ readonly type: "address";
1181
+ readonly internalType: "address";
1182
+ }];
1183
+ readonly outputs: readonly [];
1184
+ readonly stateMutability: "nonpayable";
1137
1185
  }, {
1138
1186
  readonly type: "function";
1139
1187
  readonly name: "transferOwnership";
@@ -1162,28 +1210,6 @@ declare const optionsMarketAbi: readonly [{
1162
1210
  }];
1163
1211
  readonly outputs: readonly [];
1164
1212
  readonly stateMutability: "nonpayable";
1165
- }, {
1166
- readonly type: "function";
1167
- readonly name: "updateBounds";
1168
- readonly inputs: readonly [{
1169
- readonly name: "_minOptionAmount";
1170
- readonly type: "uint256";
1171
- readonly internalType: "uint256";
1172
- }, {
1173
- readonly name: "_maxOptionAmount";
1174
- readonly type: "uint256";
1175
- readonly internalType: "uint256";
1176
- }, {
1177
- readonly name: "_minDuration";
1178
- readonly type: "uint32";
1179
- readonly internalType: "uint32";
1180
- }, {
1181
- readonly name: "_maxDuration";
1182
- readonly type: "uint32";
1183
- readonly internalType: "uint32";
1184
- }];
1185
- readonly outputs: readonly [];
1186
- readonly stateMutability: "nonpayable";
1187
1213
  }, {
1188
1214
  readonly type: "function";
1189
1215
  readonly name: "vault";
@@ -1194,6 +1220,41 @@ declare const optionsMarketAbi: readonly [{
1194
1220
  readonly internalType: "contract ITimelockVault";
1195
1221
  }];
1196
1222
  readonly stateMutability: "view";
1223
+ }, {
1224
+ readonly type: "event";
1225
+ readonly name: "AddressesUpdated";
1226
+ readonly inputs: readonly [{
1227
+ readonly name: "optionPricing";
1228
+ readonly type: "address";
1229
+ readonly indexed: false;
1230
+ readonly internalType: "contract IOptionPricing";
1231
+ }, {
1232
+ readonly name: "feeStrategy";
1233
+ readonly type: "address";
1234
+ readonly indexed: false;
1235
+ readonly internalType: "contract IFeeStrategy";
1236
+ }, {
1237
+ readonly name: "feeRecipient";
1238
+ readonly type: "address";
1239
+ readonly indexed: false;
1240
+ readonly internalType: "address";
1241
+ }];
1242
+ readonly anonymous: false;
1243
+ }, {
1244
+ readonly type: "event";
1245
+ readonly name: "EmergencyWithdraw";
1246
+ readonly inputs: readonly [{
1247
+ readonly name: "tokens";
1248
+ readonly type: "address[]";
1249
+ readonly indexed: false;
1250
+ readonly internalType: "contract IERC20[]";
1251
+ }, {
1252
+ readonly name: "balances";
1253
+ readonly type: "uint256[]";
1254
+ readonly indexed: false;
1255
+ readonly internalType: "uint256[]";
1256
+ }];
1257
+ readonly anonymous: false;
1197
1258
  }, {
1198
1259
  readonly type: "event";
1199
1260
  readonly name: "ExerciseOption";
@@ -1202,11 +1263,6 @@ declare const optionsMarketAbi: readonly [{
1202
1263
  readonly type: "uint256";
1203
1264
  readonly indexed: true;
1204
1265
  readonly internalType: "uint256";
1205
- }, {
1206
- readonly name: "owner";
1207
- readonly type: "address";
1208
- readonly indexed: true;
1209
- readonly internalType: "address";
1210
1266
  }, {
1211
1267
  readonly name: "liquidities";
1212
1268
  readonly type: "uint128[]";
@@ -1232,11 +1288,6 @@ declare const optionsMarketAbi: readonly [{
1232
1288
  readonly type: "uint256";
1233
1289
  readonly indexed: true;
1234
1290
  readonly internalType: "uint256";
1235
- }, {
1236
- readonly name: "owner";
1237
- readonly type: "address";
1238
- readonly indexed: true;
1239
- readonly internalType: "address";
1240
1291
  }, {
1241
1292
  readonly name: "premium";
1242
1293
  readonly type: "uint256";
@@ -1259,21 +1310,6 @@ declare const optionsMarketAbi: readonly [{
1259
1310
  readonly internalType: "uint32";
1260
1311
  }];
1261
1312
  readonly anonymous: false;
1262
- }, {
1263
- readonly type: "event";
1264
- readonly name: "FeesWithdrawn";
1265
- readonly inputs: readonly [{
1266
- readonly name: "fees0";
1267
- readonly type: "uint256";
1268
- readonly indexed: false;
1269
- readonly internalType: "uint256";
1270
- }, {
1271
- readonly name: "fees1";
1272
- readonly type: "uint256";
1273
- readonly indexed: false;
1274
- readonly internalType: "uint256";
1275
- }];
1276
- readonly anonymous: false;
1277
1313
  }, {
1278
1314
  readonly type: "event";
1279
1315
  readonly name: "MintOption";
@@ -1283,7 +1319,7 @@ declare const optionsMarketAbi: readonly [{
1283
1319
  readonly indexed: true;
1284
1320
  readonly internalType: "uint256";
1285
1321
  }, {
1286
- readonly name: "buyer";
1322
+ readonly name: "owner";
1287
1323
  readonly type: "address";
1288
1324
  readonly indexed: true;
1289
1325
  readonly internalType: "address";
@@ -1309,14 +1345,14 @@ declare const optionsMarketAbi: readonly [{
1309
1345
  readonly internalType: "uint32";
1310
1346
  }, {
1311
1347
  readonly name: "premium";
1312
- readonly type: "uint128";
1348
+ readonly type: "uint256";
1313
1349
  readonly indexed: false;
1314
- readonly internalType: "uint128";
1350
+ readonly internalType: "uint256";
1315
1351
  }, {
1316
1352
  readonly name: "protocolFee";
1317
- readonly type: "uint128";
1353
+ readonly type: "uint256";
1318
1354
  readonly indexed: false;
1319
- readonly internalType: "uint128";
1355
+ readonly internalType: "uint256";
1320
1356
  }, {
1321
1357
  readonly name: "liquidities";
1322
1358
  readonly type: "uint128[]";
@@ -1339,22 +1375,89 @@ declare const optionsMarketAbi: readonly [{
1339
1375
  readonly internalType: "address";
1340
1376
  }];
1341
1377
  readonly anonymous: false;
1378
+ }, {
1379
+ readonly type: "event";
1380
+ readonly name: "TransferOption";
1381
+ readonly inputs: readonly [{
1382
+ readonly name: "optionId";
1383
+ readonly type: "uint256";
1384
+ readonly indexed: true;
1385
+ readonly internalType: "uint256";
1386
+ }, {
1387
+ readonly name: "to";
1388
+ readonly type: "address";
1389
+ readonly indexed: true;
1390
+ readonly internalType: "address";
1391
+ }];
1392
+ readonly anonymous: false;
1393
+ }, {
1394
+ readonly type: "event";
1395
+ readonly name: "UpdateOperatorPerms";
1396
+ readonly inputs: readonly [{
1397
+ readonly name: "owner";
1398
+ readonly type: "address";
1399
+ readonly indexed: true;
1400
+ readonly internalType: "address";
1401
+ }, {
1402
+ readonly name: "operator";
1403
+ readonly type: "address";
1404
+ readonly indexed: true;
1405
+ readonly internalType: "address";
1406
+ }, {
1407
+ readonly name: "canExtend";
1408
+ readonly type: "bool";
1409
+ readonly indexed: false;
1410
+ readonly internalType: "bool";
1411
+ }, {
1412
+ readonly name: "canExercise";
1413
+ readonly type: "bool";
1414
+ readonly indexed: false;
1415
+ readonly internalType: "bool";
1416
+ }, {
1417
+ readonly name: "canTransfer";
1418
+ readonly type: "bool";
1419
+ readonly indexed: false;
1420
+ readonly internalType: "bool";
1421
+ }, {
1422
+ readonly name: "canMint";
1423
+ readonly type: "bool";
1424
+ readonly indexed: false;
1425
+ readonly internalType: "bool";
1426
+ }, {
1427
+ readonly name: "spendingApproval";
1428
+ readonly type: "uint256";
1429
+ readonly indexed: false;
1430
+ readonly internalType: "uint256";
1431
+ }];
1432
+ readonly anonymous: false;
1342
1433
  }, {
1343
1434
  readonly type: "error";
1344
- readonly name: "AmountOutOfBounds";
1345
- readonly inputs: readonly [];
1435
+ readonly name: "AddressEmptyCode";
1436
+ readonly inputs: readonly [{
1437
+ readonly name: "target";
1438
+ readonly type: "address";
1439
+ readonly internalType: "address";
1440
+ }];
1346
1441
  }, {
1347
1442
  readonly type: "error";
1348
- readonly name: "DurationOutOfBounds";
1443
+ readonly name: "FailedCall";
1349
1444
  readonly inputs: readonly [];
1350
1445
  }, {
1351
1446
  readonly type: "error";
1352
1447
  readonly name: "InsufficientLiquidity";
1353
1448
  readonly inputs: readonly [];
1449
+ }, {
1450
+ readonly type: "error";
1451
+ readonly name: "InvalidAmount";
1452
+ readonly inputs: readonly [];
1354
1453
  }, {
1355
1454
  readonly type: "error";
1356
1455
  readonly name: "InvalidArrayLength";
1357
1456
  readonly inputs: readonly [];
1457
+ }, {
1458
+ readonly type: "error";
1459
+ readonly name: "InvalidDuration";
1460
+ readonly inputs: readonly [];
1358
1461
  }, {
1359
1462
  readonly type: "error";
1360
1463
  readonly name: "InvalidOptionType";
@@ -1371,13 +1474,17 @@ declare const optionsMarketAbi: readonly [{
1371
1474
  readonly type: "int24";
1372
1475
  readonly internalType: "int24";
1373
1476
  }];
1477
+ }, {
1478
+ readonly type: "error";
1479
+ readonly name: "NotAuthorized";
1480
+ readonly inputs: readonly [];
1374
1481
  }, {
1375
1482
  readonly type: "error";
1376
1483
  readonly name: "NotEnoughPayout";
1377
1484
  readonly inputs: readonly [];
1378
1485
  }, {
1379
1486
  readonly type: "error";
1380
- readonly name: "NotOptionOwner";
1487
+ readonly name: "OperatorBlacklisted";
1381
1488
  readonly inputs: readonly [];
1382
1489
  }, {
1383
1490
  readonly type: "error";
@@ -2061,4 +2168,4 @@ declare const uniswapMathLensAbi: readonly [{
2061
2168
  }];
2062
2169
  //#endregion
2063
2170
  export { optionsMarketAbi as n, lensAbi as r, uniswapMathLensAbi as t };
2064
- //# sourceMappingURL=uniswapMathLens-nYgMLuOt.d.ts.map
2171
+ //# sourceMappingURL=uniswapMathLens-Ddy91uWa.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "timelock-sdk",
3
- "version": "0.0.59",
3
+ "version": "0.0.61",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./dist/package.cjs",