timelock-sdk 0.0.59 → 0.0.60

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,46 +934,6 @@ 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";
@@ -1001,10 +957,6 @@ declare const optionsMarketAbi: readonly [{
1001
957
  readonly name: "maxPremium";
1002
958
  readonly type: "uint256";
1003
959
  readonly internalType: "uint256";
1004
- }, {
1005
- readonly name: "extendable";
1006
- readonly type: "bool";
1007
- readonly internalType: "bool";
1008
960
  }, {
1009
961
  readonly name: "refTick";
1010
962
  readonly type: "int24";
@@ -1028,6 +980,20 @@ declare const optionsMarketAbi: readonly [{
1028
980
  readonly internalType: "uint256";
1029
981
  }];
1030
982
  readonly stateMutability: "nonpayable";
983
+ }, {
984
+ readonly type: "function";
985
+ readonly name: "multicall";
986
+ readonly inputs: readonly [{
987
+ readonly name: "data";
988
+ readonly type: "bytes[]";
989
+ readonly internalType: "bytes[]";
990
+ }];
991
+ readonly outputs: readonly [{
992
+ readonly name: "results";
993
+ readonly type: "bytes[]";
994
+ readonly internalType: "bytes[]";
995
+ }];
996
+ readonly stateMutability: "nonpayable";
1031
997
  }, {
1032
998
  readonly type: "function";
1033
999
  readonly name: "nextOptionId";
@@ -1038,6 +1004,32 @@ declare const optionsMarketAbi: readonly [{
1038
1004
  readonly internalType: "uint256";
1039
1005
  }];
1040
1006
  readonly stateMutability: "view";
1007
+ }, {
1008
+ readonly type: "function";
1009
+ readonly name: "operatorPerms";
1010
+ readonly inputs: readonly [{
1011
+ readonly name: "";
1012
+ readonly type: "address";
1013
+ readonly internalType: "address";
1014
+ }, {
1015
+ readonly name: "";
1016
+ readonly type: "address";
1017
+ readonly internalType: "address";
1018
+ }];
1019
+ readonly outputs: readonly [{
1020
+ readonly name: "canExtend";
1021
+ readonly type: "bool";
1022
+ readonly internalType: "bool";
1023
+ }, {
1024
+ readonly name: "canExercise";
1025
+ readonly type: "bool";
1026
+ readonly internalType: "bool";
1027
+ }, {
1028
+ readonly name: "canTransfer";
1029
+ readonly type: "bool";
1030
+ readonly internalType: "bool";
1031
+ }];
1032
+ readonly stateMutability: "view";
1041
1033
  }, {
1042
1034
  readonly type: "function";
1043
1035
  readonly name: "optionAsset";
@@ -1104,6 +1096,28 @@ declare const optionsMarketAbi: readonly [{
1104
1096
  readonly inputs: readonly [];
1105
1097
  readonly outputs: readonly [];
1106
1098
  readonly stateMutability: "nonpayable";
1099
+ }, {
1100
+ readonly type: "function";
1101
+ readonly name: "setOperatorPerms";
1102
+ readonly inputs: readonly [{
1103
+ readonly name: "operator";
1104
+ readonly type: "address";
1105
+ readonly internalType: "address";
1106
+ }, {
1107
+ readonly name: "canExtend";
1108
+ readonly type: "bool";
1109
+ readonly internalType: "bool";
1110
+ }, {
1111
+ readonly name: "canExercise";
1112
+ readonly type: "bool";
1113
+ readonly internalType: "bool";
1114
+ }, {
1115
+ readonly name: "canTransfer";
1116
+ readonly type: "bool";
1117
+ readonly internalType: "bool";
1118
+ }];
1119
+ readonly outputs: readonly [];
1120
+ readonly stateMutability: "nonpayable";
1107
1121
  }, {
1108
1122
  readonly type: "function";
1109
1123
  readonly name: "tickSpacing";
@@ -1134,6 +1148,20 @@ declare const optionsMarketAbi: readonly [{
1134
1148
  readonly internalType: "contract IERC20";
1135
1149
  }];
1136
1150
  readonly stateMutability: "view";
1151
+ }, {
1152
+ readonly type: "function";
1153
+ readonly name: "transferOption";
1154
+ readonly inputs: readonly [{
1155
+ readonly name: "optionId";
1156
+ readonly type: "uint256";
1157
+ readonly internalType: "uint256";
1158
+ }, {
1159
+ readonly name: "to";
1160
+ readonly type: "address";
1161
+ readonly internalType: "address";
1162
+ }];
1163
+ readonly outputs: readonly [];
1164
+ readonly stateMutability: "nonpayable";
1137
1165
  }, {
1138
1166
  readonly type: "function";
1139
1167
  readonly name: "transferOwnership";
@@ -1162,28 +1190,6 @@ declare const optionsMarketAbi: readonly [{
1162
1190
  }];
1163
1191
  readonly outputs: readonly [];
1164
1192
  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
1193
  }, {
1188
1194
  readonly type: "function";
1189
1195
  readonly name: "vault";
@@ -1194,6 +1200,41 @@ declare const optionsMarketAbi: readonly [{
1194
1200
  readonly internalType: "contract ITimelockVault";
1195
1201
  }];
1196
1202
  readonly stateMutability: "view";
1203
+ }, {
1204
+ readonly type: "event";
1205
+ readonly name: "AddressesUpdated";
1206
+ readonly inputs: readonly [{
1207
+ readonly name: "optionPricing";
1208
+ readonly type: "address";
1209
+ readonly indexed: false;
1210
+ readonly internalType: "contract IOptionPricing";
1211
+ }, {
1212
+ readonly name: "feeStrategy";
1213
+ readonly type: "address";
1214
+ readonly indexed: false;
1215
+ readonly internalType: "contract IFeeStrategy";
1216
+ }, {
1217
+ readonly name: "feeRecipient";
1218
+ readonly type: "address";
1219
+ readonly indexed: false;
1220
+ readonly internalType: "address";
1221
+ }];
1222
+ readonly anonymous: false;
1223
+ }, {
1224
+ readonly type: "event";
1225
+ readonly name: "EmergencyWithdraw";
1226
+ readonly inputs: readonly [{
1227
+ readonly name: "tokens";
1228
+ readonly type: "address[]";
1229
+ readonly indexed: false;
1230
+ readonly internalType: "contract IERC20[]";
1231
+ }, {
1232
+ readonly name: "balances";
1233
+ readonly type: "uint256[]";
1234
+ readonly indexed: false;
1235
+ readonly internalType: "uint256[]";
1236
+ }];
1237
+ readonly anonymous: false;
1197
1238
  }, {
1198
1239
  readonly type: "event";
1199
1240
  readonly name: "ExerciseOption";
@@ -1202,11 +1243,6 @@ declare const optionsMarketAbi: readonly [{
1202
1243
  readonly type: "uint256";
1203
1244
  readonly indexed: true;
1204
1245
  readonly internalType: "uint256";
1205
- }, {
1206
- readonly name: "owner";
1207
- readonly type: "address";
1208
- readonly indexed: true;
1209
- readonly internalType: "address";
1210
1246
  }, {
1211
1247
  readonly name: "liquidities";
1212
1248
  readonly type: "uint128[]";
@@ -1232,11 +1268,6 @@ declare const optionsMarketAbi: readonly [{
1232
1268
  readonly type: "uint256";
1233
1269
  readonly indexed: true;
1234
1270
  readonly internalType: "uint256";
1235
- }, {
1236
- readonly name: "owner";
1237
- readonly type: "address";
1238
- readonly indexed: true;
1239
- readonly internalType: "address";
1240
1271
  }, {
1241
1272
  readonly name: "premium";
1242
1273
  readonly type: "uint256";
@@ -1283,7 +1314,7 @@ declare const optionsMarketAbi: readonly [{
1283
1314
  readonly indexed: true;
1284
1315
  readonly internalType: "uint256";
1285
1316
  }, {
1286
- readonly name: "buyer";
1317
+ readonly name: "owner";
1287
1318
  readonly type: "address";
1288
1319
  readonly indexed: true;
1289
1320
  readonly internalType: "address";
@@ -1309,14 +1340,14 @@ declare const optionsMarketAbi: readonly [{
1309
1340
  readonly internalType: "uint32";
1310
1341
  }, {
1311
1342
  readonly name: "premium";
1312
- readonly type: "uint128";
1343
+ readonly type: "uint256";
1313
1344
  readonly indexed: false;
1314
- readonly internalType: "uint128";
1345
+ readonly internalType: "uint256";
1315
1346
  }, {
1316
1347
  readonly name: "protocolFee";
1317
- readonly type: "uint128";
1348
+ readonly type: "uint256";
1318
1349
  readonly indexed: false;
1319
- readonly internalType: "uint128";
1350
+ readonly internalType: "uint256";
1320
1351
  }, {
1321
1352
  readonly name: "liquidities";
1322
1353
  readonly type: "uint128[]";
@@ -1339,22 +1370,79 @@ declare const optionsMarketAbi: readonly [{
1339
1370
  readonly internalType: "address";
1340
1371
  }];
1341
1372
  readonly anonymous: false;
1373
+ }, {
1374
+ readonly type: "event";
1375
+ readonly name: "TransferOption";
1376
+ readonly inputs: readonly [{
1377
+ readonly name: "optionId";
1378
+ readonly type: "uint256";
1379
+ readonly indexed: true;
1380
+ readonly internalType: "uint256";
1381
+ }, {
1382
+ readonly name: "to";
1383
+ readonly type: "address";
1384
+ readonly indexed: true;
1385
+ readonly internalType: "address";
1386
+ }];
1387
+ readonly anonymous: false;
1388
+ }, {
1389
+ readonly type: "event";
1390
+ readonly name: "UpdateOperatorPerms";
1391
+ readonly inputs: readonly [{
1392
+ readonly name: "owner";
1393
+ readonly type: "address";
1394
+ readonly indexed: true;
1395
+ readonly internalType: "address";
1396
+ }, {
1397
+ readonly name: "operator";
1398
+ readonly type: "address";
1399
+ readonly indexed: true;
1400
+ readonly internalType: "address";
1401
+ }, {
1402
+ readonly name: "canExtend";
1403
+ readonly type: "bool";
1404
+ readonly indexed: false;
1405
+ readonly internalType: "bool";
1406
+ }, {
1407
+ readonly name: "canExercise";
1408
+ readonly type: "bool";
1409
+ readonly indexed: false;
1410
+ readonly internalType: "bool";
1411
+ }, {
1412
+ readonly name: "canTransfer";
1413
+ readonly type: "bool";
1414
+ readonly indexed: false;
1415
+ readonly internalType: "bool";
1416
+ }];
1417
+ readonly anonymous: false;
1342
1418
  }, {
1343
1419
  readonly type: "error";
1344
- readonly name: "AmountOutOfBounds";
1345
- readonly inputs: readonly [];
1420
+ readonly name: "AddressEmptyCode";
1421
+ readonly inputs: readonly [{
1422
+ readonly name: "target";
1423
+ readonly type: "address";
1424
+ readonly internalType: "address";
1425
+ }];
1346
1426
  }, {
1347
1427
  readonly type: "error";
1348
- readonly name: "DurationOutOfBounds";
1428
+ readonly name: "FailedCall";
1349
1429
  readonly inputs: readonly [];
1350
1430
  }, {
1351
1431
  readonly type: "error";
1352
1432
  readonly name: "InsufficientLiquidity";
1353
1433
  readonly inputs: readonly [];
1434
+ }, {
1435
+ readonly type: "error";
1436
+ readonly name: "InvalidAmount";
1437
+ readonly inputs: readonly [];
1354
1438
  }, {
1355
1439
  readonly type: "error";
1356
1440
  readonly name: "InvalidArrayLength";
1357
1441
  readonly inputs: readonly [];
1442
+ }, {
1443
+ readonly type: "error";
1444
+ readonly name: "InvalidDuration";
1445
+ readonly inputs: readonly [];
1358
1446
  }, {
1359
1447
  readonly type: "error";
1360
1448
  readonly name: "InvalidOptionType";
@@ -1373,11 +1461,11 @@ declare const optionsMarketAbi: readonly [{
1373
1461
  }];
1374
1462
  }, {
1375
1463
  readonly type: "error";
1376
- readonly name: "NotEnoughPayout";
1464
+ readonly name: "NotAuthorized";
1377
1465
  readonly inputs: readonly [];
1378
1466
  }, {
1379
1467
  readonly type: "error";
1380
- readonly name: "NotOptionOwner";
1468
+ readonly name: "NotEnoughPayout";
1381
1469
  readonly inputs: readonly [];
1382
1470
  }, {
1383
1471
  readonly type: "error";
@@ -2061,4 +2149,4 @@ declare const uniswapMathLensAbi: readonly [{
2061
2149
  }];
2062
2150
  //#endregion
2063
2151
  export { optionsMarketAbi as n, lensAbi as r, uniswapMathLensAbi as t };
2064
- //# sourceMappingURL=uniswapMathLens-CVpKNF0-.d.cts.map
2152
+ //# sourceMappingURL=uniswapMathLens-Dd_BqyEk.d.cts.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.60",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./dist/package.cjs",