timelock-sdk 0.0.134 → 0.0.136

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/dist/abis.cjs +602 -3
  2. package/dist/abis.cjs.map +1 -0
  3. package/dist/abis.d.cts +354 -90
  4. package/dist/abis.d.ts +354 -90
  5. package/dist/abis.js +602 -3
  6. package/dist/abis.js.map +1 -0
  7. package/dist/{client-CJcTIGGv.d.cts → client-B7kKAk49.d.cts} +44622 -34761
  8. package/dist/{client-CZdmjIOb.d.ts → client-D4EJlSs_.d.ts} +44623 -34762
  9. package/dist/client.cjs +88 -74
  10. package/dist/client.cjs.map +1 -1
  11. package/dist/client.d.cts +3 -3
  12. package/dist/client.d.ts +3 -3
  13. package/dist/client.js +87 -75
  14. package/dist/client.js.map +1 -1
  15. package/dist/optionUtils-B0rlRtfb.js +1401 -0
  16. package/dist/optionUtils-B0rlRtfb.js.map +1 -0
  17. package/dist/{optionUtils-OfLzCR6R.cjs → optionUtils-pH0o9gTm.cjs} +1069 -37
  18. package/dist/optionUtils-pH0o9gTm.cjs.map +1 -0
  19. package/dist/{optionsMarket-B2IsvbeA.js → optionsMarket-CjlRzn2K.js} +213 -21
  20. package/dist/optionsMarket-CjlRzn2K.js.map +1 -0
  21. package/dist/{optionsMarket-C6K82im8.cjs → optionsMarket-iZiYJCuW.cjs} +213 -21
  22. package/dist/optionsMarket-iZiYJCuW.cjs.map +1 -0
  23. package/dist/package.cjs +5 -6
  24. package/dist/package.d.cts +3 -3
  25. package/dist/package.d.ts +3 -3
  26. package/dist/package.js +3 -3
  27. package/dist/singleOwnerVault-BJyEs_D_.js +847 -0
  28. package/dist/singleOwnerVault-BJyEs_D_.js.map +1 -0
  29. package/dist/singleOwnerVault-GCpQV7pN.cjs +853 -0
  30. package/dist/singleOwnerVault-GCpQV7pN.cjs.map +1 -0
  31. package/dist/{uniswapMathLens-DHfzEjej.d.ts → uniswapMathLens-B0xWynAN.d.cts} +182 -21
  32. package/dist/{uniswapMathLens-Be6lFJcD.d.cts → uniswapMathLens-DAI2a8aU.d.ts} +182 -21
  33. package/package.json +38 -38
  34. package/dist/optionUtils-CQzUsKpO.js +0 -369
  35. package/dist/optionUtils-CQzUsKpO.js.map +0 -1
  36. package/dist/optionUtils-OfLzCR6R.cjs.map +0 -1
  37. package/dist/optionsMarket-B2IsvbeA.js.map +0 -1
  38. package/dist/optionsMarket-C6K82im8.cjs.map +0 -1
  39. package/dist/singleOwnerVault-gf2zNZVk.cjs +0 -1131
  40. package/dist/singleOwnerVault-gf2zNZVk.cjs.map +0 -1
  41. package/dist/singleOwnerVault-p81IjmWe.js +0 -1119
  42. package/dist/singleOwnerVault-p81IjmWe.js.map +0 -1
@@ -23,7 +23,7 @@ declare const lensAbi: readonly [{
23
23
  readonly inputs: readonly [{
24
24
  readonly name: "vault";
25
25
  readonly type: "address";
26
- readonly internalType: "contract TimelockVaultCore";
26
+ readonly internalType: "contract TimelockSingleOwnerVault";
27
27
  }];
28
28
  readonly outputs: readonly [{
29
29
  readonly name: "blocks";
@@ -178,9 +178,30 @@ declare const lensAbi: readonly [{
178
178
  readonly type: "address";
179
179
  readonly internalType: "contract ITimelockVault";
180
180
  }, {
181
- readonly name: "pool";
182
- readonly type: "address";
183
- readonly internalType: "contract IUniswapV3Pool";
181
+ readonly name: "poolKey";
182
+ readonly type: "tuple";
183
+ readonly internalType: "struct PoolKey";
184
+ readonly components: readonly [{
185
+ readonly name: "currency0";
186
+ readonly type: "address";
187
+ readonly internalType: "Currency";
188
+ }, {
189
+ readonly name: "currency1";
190
+ readonly type: "address";
191
+ readonly internalType: "Currency";
192
+ }, {
193
+ readonly name: "fee";
194
+ readonly type: "uint24";
195
+ readonly internalType: "uint24";
196
+ }, {
197
+ readonly name: "tickSpacing";
198
+ readonly type: "int24";
199
+ readonly internalType: "int24";
200
+ }, {
201
+ readonly name: "hooks";
202
+ readonly type: "address";
203
+ readonly internalType: "contract IHooks";
204
+ }];
184
205
  }, {
185
206
  readonly name: "optionAsset";
186
207
  readonly type: "address";
@@ -400,9 +421,34 @@ declare const lensAbi: readonly [{
400
421
  readonly type: "function";
401
422
  readonly name: "getPoolData";
402
423
  readonly inputs: readonly [{
403
- readonly name: "pool";
424
+ readonly name: "poolManager";
404
425
  readonly type: "address";
405
- readonly internalType: "contract IUniswapV3Pool";
426
+ readonly internalType: "contract IPoolManager";
427
+ }, {
428
+ readonly name: "poolKey";
429
+ readonly type: "tuple";
430
+ readonly internalType: "struct PoolKey";
431
+ readonly components: readonly [{
432
+ readonly name: "currency0";
433
+ readonly type: "address";
434
+ readonly internalType: "Currency";
435
+ }, {
436
+ readonly name: "currency1";
437
+ readonly type: "address";
438
+ readonly internalType: "Currency";
439
+ }, {
440
+ readonly name: "fee";
441
+ readonly type: "uint24";
442
+ readonly internalType: "uint24";
443
+ }, {
444
+ readonly name: "tickSpacing";
445
+ readonly type: "int24";
446
+ readonly internalType: "int24";
447
+ }, {
448
+ readonly name: "hooks";
449
+ readonly type: "address";
450
+ readonly internalType: "contract IHooks";
451
+ }];
406
452
  }];
407
453
  readonly outputs: readonly [{
408
454
  readonly name: "poolData";
@@ -567,36 +613,80 @@ declare const lensAbi: readonly [{
567
613
  readonly internalType: "bool";
568
614
  }];
569
615
  readonly stateMutability: "view";
616
+ }, {
617
+ readonly type: "function";
618
+ readonly name: "getVaultData";
619
+ readonly inputs: readonly [{
620
+ readonly name: "vault";
621
+ readonly type: "address";
622
+ readonly internalType: "contract ITimelockVault";
623
+ }];
624
+ readonly outputs: readonly [{
625
+ readonly name: "vaultData";
626
+ readonly type: "tuple";
627
+ readonly internalType: "struct TimelockLens.TimelockVaultData";
628
+ readonly components: readonly [{
629
+ readonly name: "poolManager";
630
+ readonly type: "address";
631
+ readonly internalType: "contract IPoolManager";
632
+ }, {
633
+ readonly name: "poolKey";
634
+ readonly type: "tuple";
635
+ readonly internalType: "struct PoolKey";
636
+ readonly components: readonly [{
637
+ readonly name: "currency0";
638
+ readonly type: "address";
639
+ readonly internalType: "Currency";
640
+ }, {
641
+ readonly name: "currency1";
642
+ readonly type: "address";
643
+ readonly internalType: "Currency";
644
+ }, {
645
+ readonly name: "fee";
646
+ readonly type: "uint24";
647
+ readonly internalType: "uint24";
648
+ }, {
649
+ readonly name: "tickSpacing";
650
+ readonly type: "int24";
651
+ readonly internalType: "int24";
652
+ }, {
653
+ readonly name: "hooks";
654
+ readonly type: "address";
655
+ readonly internalType: "contract IHooks";
656
+ }];
657
+ }];
658
+ }];
659
+ readonly stateMutability: "view";
570
660
  }, {
571
661
  readonly type: "function";
572
662
  readonly name: "getVaultTVL";
573
663
  readonly inputs: readonly [{
574
664
  readonly name: "vault";
575
665
  readonly type: "address";
576
- readonly internalType: "contract TimelockVaultCore";
666
+ readonly internalType: "contract TimelockSingleOwnerVault";
577
667
  }];
578
668
  readonly outputs: readonly [{
579
- readonly name: "totalAmount0";
669
+ readonly name: "total0";
580
670
  readonly type: "uint256";
581
671
  readonly internalType: "uint256";
582
672
  }, {
583
- readonly name: "totalAmount1";
673
+ readonly name: "total1";
584
674
  readonly type: "uint256";
585
675
  readonly internalType: "uint256";
586
676
  }, {
587
- readonly name: "borrowedAmount0";
677
+ readonly name: "borrowed0";
588
678
  readonly type: "uint256";
589
679
  readonly internalType: "uint256";
590
680
  }, {
591
- readonly name: "borrowedAmount1";
681
+ readonly name: "borrowed1";
592
682
  readonly type: "uint256";
593
683
  readonly internalType: "uint256";
594
684
  }, {
595
- readonly name: "tvl0";
685
+ readonly name: "tvlAs0";
596
686
  readonly type: "uint256";
597
687
  readonly internalType: "uint256";
598
688
  }, {
599
- readonly name: "tvl1";
689
+ readonly name: "tvlAs1";
600
690
  readonly type: "uint256";
601
691
  readonly internalType: "uint256";
602
692
  }, {
@@ -648,12 +738,12 @@ declare const optionsMarketAbi: readonly [{
648
738
  readonly stateMutability: "view";
649
739
  }, {
650
740
  readonly type: "function";
651
- readonly name: "MAX_STEPS";
741
+ readonly name: "MAX_TICKS";
652
742
  readonly inputs: readonly [];
653
743
  readonly outputs: readonly [{
654
744
  readonly name: "";
655
- readonly type: "uint256";
656
- readonly internalType: "uint256";
745
+ readonly type: "int24";
746
+ readonly internalType: "int24";
657
747
  }];
658
748
  readonly stateMutability: "view";
659
749
  }, {
@@ -1007,12 +1097,53 @@ declare const optionsMarketAbi: readonly [{
1007
1097
  readonly stateMutability: "view";
1008
1098
  }, {
1009
1099
  readonly type: "function";
1010
- readonly name: "pool";
1100
+ readonly name: "poolId";
1101
+ readonly inputs: readonly [];
1102
+ readonly outputs: readonly [{
1103
+ readonly name: "";
1104
+ readonly type: "bytes32";
1105
+ readonly internalType: "PoolId";
1106
+ }];
1107
+ readonly stateMutability: "view";
1108
+ }, {
1109
+ readonly type: "function";
1110
+ readonly name: "poolKey";
1111
+ readonly inputs: readonly [];
1112
+ readonly outputs: readonly [{
1113
+ readonly name: "";
1114
+ readonly type: "tuple";
1115
+ readonly internalType: "struct PoolKey";
1116
+ readonly components: readonly [{
1117
+ readonly name: "currency0";
1118
+ readonly type: "address";
1119
+ readonly internalType: "Currency";
1120
+ }, {
1121
+ readonly name: "currency1";
1122
+ readonly type: "address";
1123
+ readonly internalType: "Currency";
1124
+ }, {
1125
+ readonly name: "fee";
1126
+ readonly type: "uint24";
1127
+ readonly internalType: "uint24";
1128
+ }, {
1129
+ readonly name: "tickSpacing";
1130
+ readonly type: "int24";
1131
+ readonly internalType: "int24";
1132
+ }, {
1133
+ readonly name: "hooks";
1134
+ readonly type: "address";
1135
+ readonly internalType: "contract IHooks";
1136
+ }];
1137
+ }];
1138
+ readonly stateMutability: "view";
1139
+ }, {
1140
+ readonly type: "function";
1141
+ readonly name: "poolManager";
1011
1142
  readonly inputs: readonly [];
1012
1143
  readonly outputs: readonly [{
1013
1144
  readonly name: "";
1014
1145
  readonly type: "address";
1015
- readonly internalType: "contract IUniswapV3Pool";
1146
+ readonly internalType: "contract IPoolManager";
1016
1147
  }];
1017
1148
  readonly stateMutability: "view";
1018
1149
  }, {
@@ -1105,6 +1236,20 @@ declare const optionsMarketAbi: readonly [{
1105
1236
  }];
1106
1237
  readonly outputs: readonly [];
1107
1238
  readonly stateMutability: "nonpayable";
1239
+ }, {
1240
+ readonly type: "function";
1241
+ readonly name: "unlockCallback";
1242
+ readonly inputs: readonly [{
1243
+ readonly name: "data";
1244
+ readonly type: "bytes";
1245
+ readonly internalType: "bytes";
1246
+ }];
1247
+ readonly outputs: readonly [{
1248
+ readonly name: "";
1249
+ readonly type: "bytes";
1250
+ readonly internalType: "bytes";
1251
+ }];
1252
+ readonly stateMutability: "nonpayable";
1108
1253
  }, {
1109
1254
  readonly type: "function";
1110
1255
  readonly name: "updateAddresses";
@@ -1358,7 +1503,11 @@ declare const optionsMarketAbi: readonly [{
1358
1503
  }, {
1359
1504
  readonly type: "error";
1360
1505
  readonly name: "InsufficientLiquidity";
1361
- readonly inputs: readonly [];
1506
+ readonly inputs: readonly [{
1507
+ readonly name: "remainingAmount";
1508
+ readonly type: "uint256";
1509
+ readonly internalType: "uint256";
1510
+ }];
1362
1511
  }, {
1363
1512
  readonly type: "error";
1364
1513
  readonly name: "InvalidAmount";
@@ -1377,7 +1526,7 @@ declare const optionsMarketAbi: readonly [{
1377
1526
  readonly inputs: readonly [];
1378
1527
  }, {
1379
1528
  readonly type: "error";
1380
- readonly name: "InvalidTickRange";
1529
+ readonly name: "MInvalidTickRange";
1381
1530
  readonly inputs: readonly [{
1382
1531
  readonly name: "tickLower";
1383
1532
  readonly type: "int24";
@@ -1391,6 +1540,10 @@ declare const optionsMarketAbi: readonly [{
1391
1540
  readonly type: "error";
1392
1541
  readonly name: "NotAuthorized";
1393
1542
  readonly inputs: readonly [];
1543
+ }, {
1544
+ readonly type: "error";
1545
+ readonly name: "NotEnoughLiquidity";
1546
+ readonly inputs: readonly [];
1394
1547
  }, {
1395
1548
  readonly type: "error";
1396
1549
  readonly name: "NotEnoughPayout";
@@ -1419,6 +1572,10 @@ declare const optionsMarketAbi: readonly [{
1419
1572
  readonly type: "address";
1420
1573
  readonly internalType: "address";
1421
1574
  }];
1575
+ }, {
1576
+ readonly type: "error";
1577
+ readonly name: "PoolNotSupported";
1578
+ readonly inputs: readonly [];
1422
1579
  }, {
1423
1580
  readonly type: "error";
1424
1581
  readonly name: "PremiumTooHigh";
@@ -1443,6 +1600,10 @@ declare const optionsMarketAbi: readonly [{
1443
1600
  readonly type: "error";
1444
1601
  readonly name: "TradingPaused";
1445
1602
  readonly inputs: readonly [];
1603
+ }, {
1604
+ readonly type: "error";
1605
+ readonly name: "UnauthorizedCaller";
1606
+ readonly inputs: readonly [];
1446
1607
  }, {
1447
1608
  readonly type: "error";
1448
1609
  readonly name: "WithdrawNotAllowed";
@@ -2077,4 +2238,4 @@ declare const uniswapMathLensAbi: readonly [{
2077
2238
  }];
2078
2239
  //#endregion
2079
2240
  export { optionsMarketAbi as n, lensAbi as r, uniswapMathLensAbi as t };
2080
- //# sourceMappingURL=uniswapMathLens-Be6lFJcD.d.cts.map
2241
+ //# sourceMappingURL=uniswapMathLens-DAI2a8aU.d.ts.map
package/package.json CHANGED
@@ -1,11 +1,35 @@
1
1
  {
2
2
  "name": "timelock-sdk",
3
- "version": "0.0.134",
4
- "description": "",
5
- "type": "module",
3
+ "version": "0.0.136",
4
+ "author": "",
6
5
  "main": "./dist/package.cjs",
7
6
  "module": "./dist/package.js",
8
- "types": "./dist/package.d.ts",
7
+ "devDependencies": {
8
+ "@graphql-codegen/cli": "^6.0.2",
9
+ "@graphql-codegen/typescript": "^5.0.4",
10
+ "@graphql-codegen/typescript-graphql-request": "^6.3.0",
11
+ "@graphql-codegen/typescript-operations": "^5.0.4",
12
+ "@types/big.js": "^6.2.2",
13
+ "@types/node": "^24.10.1",
14
+ "@types/react": "^19.2.6",
15
+ "gts": "^6.0.2",
16
+ "tsdown": "^0.16.5",
17
+ "typescript": "^5.9.3"
18
+ },
19
+ "peerDependencies": {
20
+ "zod": "^4.1.12",
21
+ "@uniswap/v3-sdk": "^3.26.0",
22
+ "jsbi": "^4.3.2",
23
+ "big.js": "^7.0.1",
24
+ "@tanstack/react-query": "^5.90.10",
25
+ "react": "^19.2.0",
26
+ "react-dom": "^19.2.0",
27
+ "viem": "^2.39.3",
28
+ "wagmi": "^3.0.1",
29
+ "graphql": "^16.12.0",
30
+ "graphql-request": "^7.3.4",
31
+ "graphql-tag": "^2.12.6"
32
+ },
9
33
  "exports": {
10
34
  ".": {
11
35
  "import": {
@@ -38,10 +62,16 @@
38
62
  }
39
63
  }
40
64
  },
65
+ "description": "",
66
+ "engines": {
67
+ "node": ">=14",
68
+ "bun": ">=1.0.0"
69
+ },
41
70
  "files": [
42
71
  "dist"
43
72
  ],
44
- "sideEffects": false,
73
+ "keywords": [],
74
+ "license": "ISC",
45
75
  "scripts": {
46
76
  "lint": "gts lint",
47
77
  "clean": "gts clean",
@@ -53,37 +83,7 @@
53
83
  "codegen": "graphql-codegen --config codegen.ts",
54
84
  "codegen:watch": "graphql-codegen --config codegen.ts --watch"
55
85
  },
56
- "keywords": [],
57
- "author": "",
58
- "license": "ISC",
59
- "devDependencies": {
60
- "@graphql-codegen/cli": "^6.0.2",
61
- "@graphql-codegen/typescript": "^5.0.4",
62
- "@graphql-codegen/typescript-graphql-request": "^6.3.0",
63
- "@graphql-codegen/typescript-operations": "^5.0.4",
64
- "@types/big.js": "^6.2.2",
65
- "@types/node": "^24.10.1",
66
- "@types/react": "^19.2.6",
67
- "gts": "^6.0.2",
68
- "tsdown": "^0.16.5",
69
- "typescript": "^5.9.3"
70
- },
71
- "peerDependencies": {
72
- "zod": "^4.1.12",
73
- "@uniswap/v3-sdk": "^3.26.0",
74
- "jsbi": "^4.3.2",
75
- "big.js": "^7.0.1",
76
- "@tanstack/react-query": "^5.90.10",
77
- "react": "^19.2.0",
78
- "react-dom": "^19.2.0",
79
- "viem": "^2.39.3",
80
- "wagmi": "^3.0.1",
81
- "graphql": "^16.12.0",
82
- "graphql-request": "^7.3.4",
83
- "graphql-tag": "^2.12.6"
84
- },
85
- "engines": {
86
- "node": ">=14",
87
- "bun": ">=1.0.0"
88
- }
86
+ "sideEffects": false,
87
+ "type": "module",
88
+ "types": "./dist/package.d.ts"
89
89
  }