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.
- package/dist/abis.cjs +1 -1
- package/dist/abis.d.cts +1 -1
- package/dist/abis.d.ts +1 -1
- package/dist/abis.js +1 -1
- package/dist/client.cjs +2 -3
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +2 -2
- package/dist/client.d.ts +2 -2
- package/dist/client.js +2 -3
- package/dist/client.js.map +1 -1
- package/dist/{index-BSxG0QvH.d.ts → index-Ct8jAxHT.d.ts} +2 -2
- package/dist/{index-CrA0YbZT.d.cts → index-DgBdLHRl.d.cts} +2 -2
- package/dist/{numberUtils-DmIl8J2d.js → numberUtils-DYkWKQ5v.js} +3 -3
- package/dist/{numberUtils-DmIl8J2d.js.map → numberUtils-DYkWKQ5v.js.map} +1 -1
- package/dist/{numberUtils-kfuUM90a.cjs → numberUtils-DaQ_5dq6.cjs} +3 -3
- package/dist/{numberUtils-kfuUM90a.cjs.map → numberUtils-DaQ_5dq6.cjs.map} +1 -1
- package/dist/{optionsMarket-DlorOgXd.js → optionsMarket-BW3qSfsm.js} +210 -108
- package/dist/{optionsMarket-DlorOgXd.js.map → optionsMarket-BW3qSfsm.js.map} +1 -1
- package/dist/{optionsMarket-DR-asJJa.cjs → optionsMarket-C5z_ZrhG.cjs} +210 -108
- package/dist/{optionsMarket-DR-asJJa.cjs.map → optionsMarket-C5z_ZrhG.cjs.map} +1 -1
- package/dist/package.cjs +2 -2
- package/dist/package.d.cts +2 -2
- package/dist/package.d.ts +2 -2
- package/dist/package.js +2 -2
- package/dist/{uniswapMathLens-nYgMLuOt.d.ts → uniswapMathLens-DS1i63oR.d.ts} +184 -96
- package/dist/{uniswapMathLens-CVpKNF0-.d.cts → uniswapMathLens-Dd_BqyEk.d.cts} +184 -96
- package/package.json +1 -1
|
@@ -2004,11 +2004,6 @@ const optionsMarketAbi = [
|
|
|
2004
2004
|
type: "address",
|
|
2005
2005
|
internalType: "address"
|
|
2006
2006
|
},
|
|
2007
|
-
{
|
|
2008
|
-
name: "extendable",
|
|
2009
|
-
type: "bool",
|
|
2010
|
-
internalType: "bool"
|
|
2011
|
-
},
|
|
2012
2007
|
{
|
|
2013
2008
|
name: "optionType",
|
|
2014
2009
|
type: "uint8",
|
|
@@ -2028,13 +2023,12 @@ const optionsMarketAbi = [
|
|
|
2028
2023
|
name: "expiresAt",
|
|
2029
2024
|
type: "uint32",
|
|
2030
2025
|
internalType: "uint32"
|
|
2031
|
-
},
|
|
2032
|
-
{
|
|
2033
|
-
name: "liquidities",
|
|
2034
|
-
type: "uint128[]",
|
|
2035
|
-
internalType: "uint128[]"
|
|
2036
2026
|
}
|
|
2037
2027
|
]
|
|
2028
|
+
}, {
|
|
2029
|
+
name: "",
|
|
2030
|
+
type: "uint128[]",
|
|
2031
|
+
internalType: "uint128[]"
|
|
2038
2032
|
}],
|
|
2039
2033
|
stateMutability: "view"
|
|
2040
2034
|
},
|
|
@@ -2059,7 +2053,7 @@ const optionsMarketAbi = [
|
|
|
2059
2053
|
internalType: "int24"
|
|
2060
2054
|
},
|
|
2061
2055
|
{
|
|
2062
|
-
name: "
|
|
2056
|
+
name: "liquiditys",
|
|
2063
2057
|
type: "uint128[]",
|
|
2064
2058
|
internalType: "uint128[]"
|
|
2065
2059
|
},
|
|
@@ -2098,50 +2092,6 @@ const optionsMarketAbi = [
|
|
|
2098
2092
|
],
|
|
2099
2093
|
stateMutability: "view"
|
|
2100
2094
|
},
|
|
2101
|
-
{
|
|
2102
|
-
type: "function",
|
|
2103
|
-
name: "maxDuration",
|
|
2104
|
-
inputs: [],
|
|
2105
|
-
outputs: [{
|
|
2106
|
-
name: "",
|
|
2107
|
-
type: "uint32",
|
|
2108
|
-
internalType: "uint32"
|
|
2109
|
-
}],
|
|
2110
|
-
stateMutability: "view"
|
|
2111
|
-
},
|
|
2112
|
-
{
|
|
2113
|
-
type: "function",
|
|
2114
|
-
name: "maxOptionAmount",
|
|
2115
|
-
inputs: [],
|
|
2116
|
-
outputs: [{
|
|
2117
|
-
name: "",
|
|
2118
|
-
type: "uint256",
|
|
2119
|
-
internalType: "uint256"
|
|
2120
|
-
}],
|
|
2121
|
-
stateMutability: "view"
|
|
2122
|
-
},
|
|
2123
|
-
{
|
|
2124
|
-
type: "function",
|
|
2125
|
-
name: "minDuration",
|
|
2126
|
-
inputs: [],
|
|
2127
|
-
outputs: [{
|
|
2128
|
-
name: "",
|
|
2129
|
-
type: "uint32",
|
|
2130
|
-
internalType: "uint32"
|
|
2131
|
-
}],
|
|
2132
|
-
stateMutability: "view"
|
|
2133
|
-
},
|
|
2134
|
-
{
|
|
2135
|
-
type: "function",
|
|
2136
|
-
name: "minOptionAmount",
|
|
2137
|
-
inputs: [],
|
|
2138
|
-
outputs: [{
|
|
2139
|
-
name: "",
|
|
2140
|
-
type: "uint256",
|
|
2141
|
-
internalType: "uint256"
|
|
2142
|
-
}],
|
|
2143
|
-
stateMutability: "view"
|
|
2144
|
-
},
|
|
2145
2095
|
{
|
|
2146
2096
|
type: "function",
|
|
2147
2097
|
name: "mintOption",
|
|
@@ -2171,11 +2121,6 @@ const optionsMarketAbi = [
|
|
|
2171
2121
|
type: "uint256",
|
|
2172
2122
|
internalType: "uint256"
|
|
2173
2123
|
},
|
|
2174
|
-
{
|
|
2175
|
-
name: "extendable",
|
|
2176
|
-
type: "bool",
|
|
2177
|
-
internalType: "bool"
|
|
2178
|
-
},
|
|
2179
2124
|
{
|
|
2180
2125
|
name: "refTick",
|
|
2181
2126
|
type: "int24",
|
|
@@ -2206,6 +2151,21 @@ const optionsMarketAbi = [
|
|
|
2206
2151
|
],
|
|
2207
2152
|
stateMutability: "nonpayable"
|
|
2208
2153
|
},
|
|
2154
|
+
{
|
|
2155
|
+
type: "function",
|
|
2156
|
+
name: "multicall",
|
|
2157
|
+
inputs: [{
|
|
2158
|
+
name: "data",
|
|
2159
|
+
type: "bytes[]",
|
|
2160
|
+
internalType: "bytes[]"
|
|
2161
|
+
}],
|
|
2162
|
+
outputs: [{
|
|
2163
|
+
name: "results",
|
|
2164
|
+
type: "bytes[]",
|
|
2165
|
+
internalType: "bytes[]"
|
|
2166
|
+
}],
|
|
2167
|
+
stateMutability: "nonpayable"
|
|
2168
|
+
},
|
|
2209
2169
|
{
|
|
2210
2170
|
type: "function",
|
|
2211
2171
|
name: "nextOptionId",
|
|
@@ -2217,6 +2177,37 @@ const optionsMarketAbi = [
|
|
|
2217
2177
|
}],
|
|
2218
2178
|
stateMutability: "view"
|
|
2219
2179
|
},
|
|
2180
|
+
{
|
|
2181
|
+
type: "function",
|
|
2182
|
+
name: "operatorPerms",
|
|
2183
|
+
inputs: [{
|
|
2184
|
+
name: "",
|
|
2185
|
+
type: "address",
|
|
2186
|
+
internalType: "address"
|
|
2187
|
+
}, {
|
|
2188
|
+
name: "",
|
|
2189
|
+
type: "address",
|
|
2190
|
+
internalType: "address"
|
|
2191
|
+
}],
|
|
2192
|
+
outputs: [
|
|
2193
|
+
{
|
|
2194
|
+
name: "canExtend",
|
|
2195
|
+
type: "bool",
|
|
2196
|
+
internalType: "bool"
|
|
2197
|
+
},
|
|
2198
|
+
{
|
|
2199
|
+
name: "canExercise",
|
|
2200
|
+
type: "bool",
|
|
2201
|
+
internalType: "bool"
|
|
2202
|
+
},
|
|
2203
|
+
{
|
|
2204
|
+
name: "canTransfer",
|
|
2205
|
+
type: "bool",
|
|
2206
|
+
internalType: "bool"
|
|
2207
|
+
}
|
|
2208
|
+
],
|
|
2209
|
+
stateMutability: "view"
|
|
2210
|
+
},
|
|
2220
2211
|
{
|
|
2221
2212
|
type: "function",
|
|
2222
2213
|
name: "optionAsset",
|
|
@@ -2290,6 +2281,34 @@ const optionsMarketAbi = [
|
|
|
2290
2281
|
outputs: [],
|
|
2291
2282
|
stateMutability: "nonpayable"
|
|
2292
2283
|
},
|
|
2284
|
+
{
|
|
2285
|
+
type: "function",
|
|
2286
|
+
name: "setOperatorPerms",
|
|
2287
|
+
inputs: [
|
|
2288
|
+
{
|
|
2289
|
+
name: "operator",
|
|
2290
|
+
type: "address",
|
|
2291
|
+
internalType: "address"
|
|
2292
|
+
},
|
|
2293
|
+
{
|
|
2294
|
+
name: "canExtend",
|
|
2295
|
+
type: "bool",
|
|
2296
|
+
internalType: "bool"
|
|
2297
|
+
},
|
|
2298
|
+
{
|
|
2299
|
+
name: "canExercise",
|
|
2300
|
+
type: "bool",
|
|
2301
|
+
internalType: "bool"
|
|
2302
|
+
},
|
|
2303
|
+
{
|
|
2304
|
+
name: "canTransfer",
|
|
2305
|
+
type: "bool",
|
|
2306
|
+
internalType: "bool"
|
|
2307
|
+
}
|
|
2308
|
+
],
|
|
2309
|
+
outputs: [],
|
|
2310
|
+
stateMutability: "nonpayable"
|
|
2311
|
+
},
|
|
2293
2312
|
{
|
|
2294
2313
|
type: "function",
|
|
2295
2314
|
name: "tickSpacing",
|
|
@@ -2323,6 +2342,21 @@ const optionsMarketAbi = [
|
|
|
2323
2342
|
}],
|
|
2324
2343
|
stateMutability: "view"
|
|
2325
2344
|
},
|
|
2345
|
+
{
|
|
2346
|
+
type: "function",
|
|
2347
|
+
name: "transferOption",
|
|
2348
|
+
inputs: [{
|
|
2349
|
+
name: "optionId",
|
|
2350
|
+
type: "uint256",
|
|
2351
|
+
internalType: "uint256"
|
|
2352
|
+
}, {
|
|
2353
|
+
name: "to",
|
|
2354
|
+
type: "address",
|
|
2355
|
+
internalType: "address"
|
|
2356
|
+
}],
|
|
2357
|
+
outputs: [],
|
|
2358
|
+
stateMutability: "nonpayable"
|
|
2359
|
+
},
|
|
2326
2360
|
{
|
|
2327
2361
|
type: "function",
|
|
2328
2362
|
name: "transferOwnership",
|
|
@@ -2359,42 +2393,55 @@ const optionsMarketAbi = [
|
|
|
2359
2393
|
},
|
|
2360
2394
|
{
|
|
2361
2395
|
type: "function",
|
|
2362
|
-
name: "
|
|
2396
|
+
name: "vault",
|
|
2397
|
+
inputs: [],
|
|
2398
|
+
outputs: [{
|
|
2399
|
+
name: "",
|
|
2400
|
+
type: "address",
|
|
2401
|
+
internalType: "contract ITimelockVault"
|
|
2402
|
+
}],
|
|
2403
|
+
stateMutability: "view"
|
|
2404
|
+
},
|
|
2405
|
+
{
|
|
2406
|
+
type: "event",
|
|
2407
|
+
name: "AddressesUpdated",
|
|
2363
2408
|
inputs: [
|
|
2364
2409
|
{
|
|
2365
|
-
name: "
|
|
2366
|
-
type: "
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
{
|
|
2370
|
-
name: "_maxOptionAmount",
|
|
2371
|
-
type: "uint256",
|
|
2372
|
-
internalType: "uint256"
|
|
2410
|
+
name: "optionPricing",
|
|
2411
|
+
type: "address",
|
|
2412
|
+
indexed: false,
|
|
2413
|
+
internalType: "contract IOptionPricing"
|
|
2373
2414
|
},
|
|
2374
2415
|
{
|
|
2375
|
-
name: "
|
|
2376
|
-
type: "
|
|
2377
|
-
|
|
2416
|
+
name: "feeStrategy",
|
|
2417
|
+
type: "address",
|
|
2418
|
+
indexed: false,
|
|
2419
|
+
internalType: "contract IFeeStrategy"
|
|
2378
2420
|
},
|
|
2379
2421
|
{
|
|
2380
|
-
name: "
|
|
2381
|
-
type: "
|
|
2382
|
-
|
|
2422
|
+
name: "feeRecipient",
|
|
2423
|
+
type: "address",
|
|
2424
|
+
indexed: false,
|
|
2425
|
+
internalType: "address"
|
|
2383
2426
|
}
|
|
2384
2427
|
],
|
|
2385
|
-
|
|
2386
|
-
stateMutability: "nonpayable"
|
|
2428
|
+
anonymous: false
|
|
2387
2429
|
},
|
|
2388
2430
|
{
|
|
2389
|
-
type: "
|
|
2390
|
-
name: "
|
|
2391
|
-
inputs: [
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
internalType: "contract
|
|
2431
|
+
type: "event",
|
|
2432
|
+
name: "EmergencyWithdraw",
|
|
2433
|
+
inputs: [{
|
|
2434
|
+
name: "tokens",
|
|
2435
|
+
type: "address[]",
|
|
2436
|
+
indexed: false,
|
|
2437
|
+
internalType: "contract IERC20[]"
|
|
2438
|
+
}, {
|
|
2439
|
+
name: "balances",
|
|
2440
|
+
type: "uint256[]",
|
|
2441
|
+
indexed: false,
|
|
2442
|
+
internalType: "uint256[]"
|
|
2396
2443
|
}],
|
|
2397
|
-
|
|
2444
|
+
anonymous: false
|
|
2398
2445
|
},
|
|
2399
2446
|
{
|
|
2400
2447
|
type: "event",
|
|
@@ -2406,12 +2453,6 @@ const optionsMarketAbi = [
|
|
|
2406
2453
|
indexed: true,
|
|
2407
2454
|
internalType: "uint256"
|
|
2408
2455
|
},
|
|
2409
|
-
{
|
|
2410
|
-
name: "owner",
|
|
2411
|
-
type: "address",
|
|
2412
|
-
indexed: true,
|
|
2413
|
-
internalType: "address"
|
|
2414
|
-
},
|
|
2415
2456
|
{
|
|
2416
2457
|
name: "liquidities",
|
|
2417
2458
|
type: "uint128[]",
|
|
@@ -2443,12 +2484,6 @@ const optionsMarketAbi = [
|
|
|
2443
2484
|
indexed: true,
|
|
2444
2485
|
internalType: "uint256"
|
|
2445
2486
|
},
|
|
2446
|
-
{
|
|
2447
|
-
name: "owner",
|
|
2448
|
-
type: "address",
|
|
2449
|
-
indexed: true,
|
|
2450
|
-
internalType: "address"
|
|
2451
|
-
},
|
|
2452
2487
|
{
|
|
2453
2488
|
name: "premium",
|
|
2454
2489
|
type: "uint256",
|
|
@@ -2503,7 +2538,7 @@ const optionsMarketAbi = [
|
|
|
2503
2538
|
internalType: "uint256"
|
|
2504
2539
|
},
|
|
2505
2540
|
{
|
|
2506
|
-
name: "
|
|
2541
|
+
name: "owner",
|
|
2507
2542
|
type: "address",
|
|
2508
2543
|
indexed: true,
|
|
2509
2544
|
internalType: "address"
|
|
@@ -2534,15 +2569,15 @@ const optionsMarketAbi = [
|
|
|
2534
2569
|
},
|
|
2535
2570
|
{
|
|
2536
2571
|
name: "premium",
|
|
2537
|
-
type: "
|
|
2572
|
+
type: "uint256",
|
|
2538
2573
|
indexed: false,
|
|
2539
|
-
internalType: "
|
|
2574
|
+
internalType: "uint256"
|
|
2540
2575
|
},
|
|
2541
2576
|
{
|
|
2542
2577
|
name: "protocolFee",
|
|
2543
|
-
type: "
|
|
2578
|
+
type: "uint256",
|
|
2544
2579
|
indexed: false,
|
|
2545
|
-
internalType: "
|
|
2580
|
+
internalType: "uint256"
|
|
2546
2581
|
},
|
|
2547
2582
|
{
|
|
2548
2583
|
name: "liquidities",
|
|
@@ -2569,14 +2604,71 @@ const optionsMarketAbi = [
|
|
|
2569
2604
|
}],
|
|
2570
2605
|
anonymous: false
|
|
2571
2606
|
},
|
|
2607
|
+
{
|
|
2608
|
+
type: "event",
|
|
2609
|
+
name: "TransferOption",
|
|
2610
|
+
inputs: [{
|
|
2611
|
+
name: "optionId",
|
|
2612
|
+
type: "uint256",
|
|
2613
|
+
indexed: true,
|
|
2614
|
+
internalType: "uint256"
|
|
2615
|
+
}, {
|
|
2616
|
+
name: "to",
|
|
2617
|
+
type: "address",
|
|
2618
|
+
indexed: true,
|
|
2619
|
+
internalType: "address"
|
|
2620
|
+
}],
|
|
2621
|
+
anonymous: false
|
|
2622
|
+
},
|
|
2623
|
+
{
|
|
2624
|
+
type: "event",
|
|
2625
|
+
name: "UpdateOperatorPerms",
|
|
2626
|
+
inputs: [
|
|
2627
|
+
{
|
|
2628
|
+
name: "owner",
|
|
2629
|
+
type: "address",
|
|
2630
|
+
indexed: true,
|
|
2631
|
+
internalType: "address"
|
|
2632
|
+
},
|
|
2633
|
+
{
|
|
2634
|
+
name: "operator",
|
|
2635
|
+
type: "address",
|
|
2636
|
+
indexed: true,
|
|
2637
|
+
internalType: "address"
|
|
2638
|
+
},
|
|
2639
|
+
{
|
|
2640
|
+
name: "canExtend",
|
|
2641
|
+
type: "bool",
|
|
2642
|
+
indexed: false,
|
|
2643
|
+
internalType: "bool"
|
|
2644
|
+
},
|
|
2645
|
+
{
|
|
2646
|
+
name: "canExercise",
|
|
2647
|
+
type: "bool",
|
|
2648
|
+
indexed: false,
|
|
2649
|
+
internalType: "bool"
|
|
2650
|
+
},
|
|
2651
|
+
{
|
|
2652
|
+
name: "canTransfer",
|
|
2653
|
+
type: "bool",
|
|
2654
|
+
indexed: false,
|
|
2655
|
+
internalType: "bool"
|
|
2656
|
+
}
|
|
2657
|
+
],
|
|
2658
|
+
anonymous: false
|
|
2659
|
+
},
|
|
2572
2660
|
{
|
|
2573
2661
|
type: "error",
|
|
2574
|
-
name: "
|
|
2575
|
-
inputs: [
|
|
2662
|
+
name: "AddressEmptyCode",
|
|
2663
|
+
inputs: [{
|
|
2664
|
+
name: "target",
|
|
2665
|
+
type: "address",
|
|
2666
|
+
internalType: "address"
|
|
2667
|
+
}]
|
|
2576
2668
|
},
|
|
2577
2669
|
{
|
|
2578
2670
|
type: "error",
|
|
2579
|
-
name: "
|
|
2671
|
+
name: "FailedCall",
|
|
2580
2672
|
inputs: []
|
|
2581
2673
|
},
|
|
2582
2674
|
{
|
|
@@ -2584,11 +2676,21 @@ const optionsMarketAbi = [
|
|
|
2584
2676
|
name: "InsufficientLiquidity",
|
|
2585
2677
|
inputs: []
|
|
2586
2678
|
},
|
|
2679
|
+
{
|
|
2680
|
+
type: "error",
|
|
2681
|
+
name: "InvalidAmount",
|
|
2682
|
+
inputs: []
|
|
2683
|
+
},
|
|
2587
2684
|
{
|
|
2588
2685
|
type: "error",
|
|
2589
2686
|
name: "InvalidArrayLength",
|
|
2590
2687
|
inputs: []
|
|
2591
2688
|
},
|
|
2689
|
+
{
|
|
2690
|
+
type: "error",
|
|
2691
|
+
name: "InvalidDuration",
|
|
2692
|
+
inputs: []
|
|
2693
|
+
},
|
|
2592
2694
|
{
|
|
2593
2695
|
type: "error",
|
|
2594
2696
|
name: "InvalidOptionType",
|
|
@@ -2609,12 +2711,12 @@ const optionsMarketAbi = [
|
|
|
2609
2711
|
},
|
|
2610
2712
|
{
|
|
2611
2713
|
type: "error",
|
|
2612
|
-
name: "
|
|
2714
|
+
name: "NotAuthorized",
|
|
2613
2715
|
inputs: []
|
|
2614
2716
|
},
|
|
2615
2717
|
{
|
|
2616
2718
|
type: "error",
|
|
2617
|
-
name: "
|
|
2719
|
+
name: "NotEnoughPayout",
|
|
2618
2720
|
inputs: []
|
|
2619
2721
|
},
|
|
2620
2722
|
{
|
|
@@ -2711,4 +2813,4 @@ Object.defineProperty(exports, 'uniswapMathLensAbi', {
|
|
|
2711
2813
|
return uniswapMathLensAbi;
|
|
2712
2814
|
}
|
|
2713
2815
|
});
|
|
2714
|
-
//# sourceMappingURL=optionsMarket-
|
|
2816
|
+
//# sourceMappingURL=optionsMarket-C5z_ZrhG.cjs.map
|