@cloakely/sdk 0.8.2 → 0.8.3

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.js CHANGED
@@ -1351,6 +1351,25 @@ export const cloakFactoryAbi = [
1351
1351
  ],
1352
1352
  "stateMutability": "view"
1353
1353
  },
1354
+ {
1355
+ "type": "function",
1356
+ "name": "isAuction",
1357
+ "inputs": [
1358
+ {
1359
+ "name": "",
1360
+ "type": "address",
1361
+ "internalType": "address"
1362
+ }
1363
+ ],
1364
+ "outputs": [
1365
+ {
1366
+ "name": "",
1367
+ "type": "bool",
1368
+ "internalType": "bool"
1369
+ }
1370
+ ],
1371
+ "stateMutability": "view"
1372
+ },
1354
1373
  {
1355
1374
  "type": "function",
1356
1375
  "name": "launches",
@@ -1421,6 +1440,19 @@ export const cloakFactoryAbi = [
1421
1440
  ],
1422
1441
  "stateMutability": "view"
1423
1442
  },
1443
+ {
1444
+ "type": "function",
1445
+ "name": "timedLocks",
1446
+ "inputs": [],
1447
+ "outputs": [
1448
+ {
1449
+ "name": "",
1450
+ "type": "bool",
1451
+ "internalType": "bool"
1452
+ }
1453
+ ],
1454
+ "stateMutability": "view"
1455
+ },
1424
1456
  {
1425
1457
  "type": "function",
1426
1458
  "name": "vestingDeployer",
@@ -12543,3 +12575,3171 @@ export const cloakSpotBookAbi = [
12543
12575
  "anonymous": false
12544
12576
  }
12545
12577
  ];
12578
+ export const cloakV4HookAbi = [
12579
+ {
12580
+ "type": "constructor",
12581
+ "inputs": [
12582
+ {
12583
+ "name": "poolManager_",
12584
+ "type": "address",
12585
+ "internalType": "contract IPoolManager"
12586
+ },
12587
+ {
12588
+ "name": "admin_",
12589
+ "type": "address",
12590
+ "internalType": "address"
12591
+ },
12592
+ {
12593
+ "name": "baseFee_",
12594
+ "type": "uint24",
12595
+ "internalType": "uint24"
12596
+ },
12597
+ {
12598
+ "name": "startFee_",
12599
+ "type": "uint24",
12600
+ "internalType": "uint24"
12601
+ },
12602
+ {
12603
+ "name": "decaySecs_",
12604
+ "type": "uint32",
12605
+ "internalType": "uint32"
12606
+ }
12607
+ ],
12608
+ "stateMutability": "nonpayable"
12609
+ },
12610
+ {
12611
+ "type": "function",
12612
+ "name": "DEAD",
12613
+ "inputs": [],
12614
+ "outputs": [
12615
+ {
12616
+ "name": "",
12617
+ "type": "address",
12618
+ "internalType": "address"
12619
+ }
12620
+ ],
12621
+ "stateMutability": "view"
12622
+ },
12623
+ {
12624
+ "type": "function",
12625
+ "name": "MAX_TICK",
12626
+ "inputs": [],
12627
+ "outputs": [
12628
+ {
12629
+ "name": "",
12630
+ "type": "int24",
12631
+ "internalType": "int24"
12632
+ }
12633
+ ],
12634
+ "stateMutability": "view"
12635
+ },
12636
+ {
12637
+ "type": "function",
12638
+ "name": "MIN_TICK",
12639
+ "inputs": [],
12640
+ "outputs": [
12641
+ {
12642
+ "name": "",
12643
+ "type": "int24",
12644
+ "internalType": "int24"
12645
+ }
12646
+ ],
12647
+ "stateMutability": "view"
12648
+ },
12649
+ {
12650
+ "type": "function",
12651
+ "name": "TICK_SPACING",
12652
+ "inputs": [],
12653
+ "outputs": [
12654
+ {
12655
+ "name": "",
12656
+ "type": "int24",
12657
+ "internalType": "int24"
12658
+ }
12659
+ ],
12660
+ "stateMutability": "view"
12661
+ },
12662
+ {
12663
+ "type": "function",
12664
+ "name": "afterAddLiquidity",
12665
+ "inputs": [
12666
+ {
12667
+ "name": "",
12668
+ "type": "address",
12669
+ "internalType": "address"
12670
+ },
12671
+ {
12672
+ "name": "",
12673
+ "type": "tuple",
12674
+ "internalType": "struct PoolKey",
12675
+ "components": [
12676
+ {
12677
+ "name": "currency0",
12678
+ "type": "address",
12679
+ "internalType": "Currency"
12680
+ },
12681
+ {
12682
+ "name": "currency1",
12683
+ "type": "address",
12684
+ "internalType": "Currency"
12685
+ },
12686
+ {
12687
+ "name": "fee",
12688
+ "type": "uint24",
12689
+ "internalType": "uint24"
12690
+ },
12691
+ {
12692
+ "name": "tickSpacing",
12693
+ "type": "int24",
12694
+ "internalType": "int24"
12695
+ },
12696
+ {
12697
+ "name": "hooks",
12698
+ "type": "address",
12699
+ "internalType": "contract IHooks"
12700
+ }
12701
+ ]
12702
+ },
12703
+ {
12704
+ "name": "",
12705
+ "type": "tuple",
12706
+ "internalType": "struct ModifyLiquidityParams",
12707
+ "components": [
12708
+ {
12709
+ "name": "tickLower",
12710
+ "type": "int24",
12711
+ "internalType": "int24"
12712
+ },
12713
+ {
12714
+ "name": "tickUpper",
12715
+ "type": "int24",
12716
+ "internalType": "int24"
12717
+ },
12718
+ {
12719
+ "name": "liquidityDelta",
12720
+ "type": "int256",
12721
+ "internalType": "int256"
12722
+ },
12723
+ {
12724
+ "name": "salt",
12725
+ "type": "bytes32",
12726
+ "internalType": "bytes32"
12727
+ }
12728
+ ]
12729
+ },
12730
+ {
12731
+ "name": "",
12732
+ "type": "int256",
12733
+ "internalType": "BalanceDelta"
12734
+ },
12735
+ {
12736
+ "name": "",
12737
+ "type": "int256",
12738
+ "internalType": "BalanceDelta"
12739
+ },
12740
+ {
12741
+ "name": "",
12742
+ "type": "bytes",
12743
+ "internalType": "bytes"
12744
+ }
12745
+ ],
12746
+ "outputs": [
12747
+ {
12748
+ "name": "",
12749
+ "type": "bytes4",
12750
+ "internalType": "bytes4"
12751
+ },
12752
+ {
12753
+ "name": "",
12754
+ "type": "int256",
12755
+ "internalType": "BalanceDelta"
12756
+ }
12757
+ ],
12758
+ "stateMutability": "pure"
12759
+ },
12760
+ {
12761
+ "type": "function",
12762
+ "name": "afterDonate",
12763
+ "inputs": [
12764
+ {
12765
+ "name": "",
12766
+ "type": "address",
12767
+ "internalType": "address"
12768
+ },
12769
+ {
12770
+ "name": "",
12771
+ "type": "tuple",
12772
+ "internalType": "struct PoolKey",
12773
+ "components": [
12774
+ {
12775
+ "name": "currency0",
12776
+ "type": "address",
12777
+ "internalType": "Currency"
12778
+ },
12779
+ {
12780
+ "name": "currency1",
12781
+ "type": "address",
12782
+ "internalType": "Currency"
12783
+ },
12784
+ {
12785
+ "name": "fee",
12786
+ "type": "uint24",
12787
+ "internalType": "uint24"
12788
+ },
12789
+ {
12790
+ "name": "tickSpacing",
12791
+ "type": "int24",
12792
+ "internalType": "int24"
12793
+ },
12794
+ {
12795
+ "name": "hooks",
12796
+ "type": "address",
12797
+ "internalType": "contract IHooks"
12798
+ }
12799
+ ]
12800
+ },
12801
+ {
12802
+ "name": "",
12803
+ "type": "uint256",
12804
+ "internalType": "uint256"
12805
+ },
12806
+ {
12807
+ "name": "",
12808
+ "type": "uint256",
12809
+ "internalType": "uint256"
12810
+ },
12811
+ {
12812
+ "name": "",
12813
+ "type": "bytes",
12814
+ "internalType": "bytes"
12815
+ }
12816
+ ],
12817
+ "outputs": [
12818
+ {
12819
+ "name": "",
12820
+ "type": "bytes4",
12821
+ "internalType": "bytes4"
12822
+ }
12823
+ ],
12824
+ "stateMutability": "pure"
12825
+ },
12826
+ {
12827
+ "type": "function",
12828
+ "name": "afterInitialize",
12829
+ "inputs": [
12830
+ {
12831
+ "name": "",
12832
+ "type": "address",
12833
+ "internalType": "address"
12834
+ },
12835
+ {
12836
+ "name": "",
12837
+ "type": "tuple",
12838
+ "internalType": "struct PoolKey",
12839
+ "components": [
12840
+ {
12841
+ "name": "currency0",
12842
+ "type": "address",
12843
+ "internalType": "Currency"
12844
+ },
12845
+ {
12846
+ "name": "currency1",
12847
+ "type": "address",
12848
+ "internalType": "Currency"
12849
+ },
12850
+ {
12851
+ "name": "fee",
12852
+ "type": "uint24",
12853
+ "internalType": "uint24"
12854
+ },
12855
+ {
12856
+ "name": "tickSpacing",
12857
+ "type": "int24",
12858
+ "internalType": "int24"
12859
+ },
12860
+ {
12861
+ "name": "hooks",
12862
+ "type": "address",
12863
+ "internalType": "contract IHooks"
12864
+ }
12865
+ ]
12866
+ },
12867
+ {
12868
+ "name": "",
12869
+ "type": "uint160",
12870
+ "internalType": "uint160"
12871
+ },
12872
+ {
12873
+ "name": "",
12874
+ "type": "int24",
12875
+ "internalType": "int24"
12876
+ }
12877
+ ],
12878
+ "outputs": [
12879
+ {
12880
+ "name": "",
12881
+ "type": "bytes4",
12882
+ "internalType": "bytes4"
12883
+ }
12884
+ ],
12885
+ "stateMutability": "pure"
12886
+ },
12887
+ {
12888
+ "type": "function",
12889
+ "name": "afterRemoveLiquidity",
12890
+ "inputs": [
12891
+ {
12892
+ "name": "",
12893
+ "type": "address",
12894
+ "internalType": "address"
12895
+ },
12896
+ {
12897
+ "name": "",
12898
+ "type": "tuple",
12899
+ "internalType": "struct PoolKey",
12900
+ "components": [
12901
+ {
12902
+ "name": "currency0",
12903
+ "type": "address",
12904
+ "internalType": "Currency"
12905
+ },
12906
+ {
12907
+ "name": "currency1",
12908
+ "type": "address",
12909
+ "internalType": "Currency"
12910
+ },
12911
+ {
12912
+ "name": "fee",
12913
+ "type": "uint24",
12914
+ "internalType": "uint24"
12915
+ },
12916
+ {
12917
+ "name": "tickSpacing",
12918
+ "type": "int24",
12919
+ "internalType": "int24"
12920
+ },
12921
+ {
12922
+ "name": "hooks",
12923
+ "type": "address",
12924
+ "internalType": "contract IHooks"
12925
+ }
12926
+ ]
12927
+ },
12928
+ {
12929
+ "name": "",
12930
+ "type": "tuple",
12931
+ "internalType": "struct ModifyLiquidityParams",
12932
+ "components": [
12933
+ {
12934
+ "name": "tickLower",
12935
+ "type": "int24",
12936
+ "internalType": "int24"
12937
+ },
12938
+ {
12939
+ "name": "tickUpper",
12940
+ "type": "int24",
12941
+ "internalType": "int24"
12942
+ },
12943
+ {
12944
+ "name": "liquidityDelta",
12945
+ "type": "int256",
12946
+ "internalType": "int256"
12947
+ },
12948
+ {
12949
+ "name": "salt",
12950
+ "type": "bytes32",
12951
+ "internalType": "bytes32"
12952
+ }
12953
+ ]
12954
+ },
12955
+ {
12956
+ "name": "",
12957
+ "type": "int256",
12958
+ "internalType": "BalanceDelta"
12959
+ },
12960
+ {
12961
+ "name": "",
12962
+ "type": "int256",
12963
+ "internalType": "BalanceDelta"
12964
+ },
12965
+ {
12966
+ "name": "",
12967
+ "type": "bytes",
12968
+ "internalType": "bytes"
12969
+ }
12970
+ ],
12971
+ "outputs": [
12972
+ {
12973
+ "name": "",
12974
+ "type": "bytes4",
12975
+ "internalType": "bytes4"
12976
+ },
12977
+ {
12978
+ "name": "",
12979
+ "type": "int256",
12980
+ "internalType": "BalanceDelta"
12981
+ }
12982
+ ],
12983
+ "stateMutability": "pure"
12984
+ },
12985
+ {
12986
+ "type": "function",
12987
+ "name": "afterSwap",
12988
+ "inputs": [
12989
+ {
12990
+ "name": "",
12991
+ "type": "address",
12992
+ "internalType": "address"
12993
+ },
12994
+ {
12995
+ "name": "",
12996
+ "type": "tuple",
12997
+ "internalType": "struct PoolKey",
12998
+ "components": [
12999
+ {
13000
+ "name": "currency0",
13001
+ "type": "address",
13002
+ "internalType": "Currency"
13003
+ },
13004
+ {
13005
+ "name": "currency1",
13006
+ "type": "address",
13007
+ "internalType": "Currency"
13008
+ },
13009
+ {
13010
+ "name": "fee",
13011
+ "type": "uint24",
13012
+ "internalType": "uint24"
13013
+ },
13014
+ {
13015
+ "name": "tickSpacing",
13016
+ "type": "int24",
13017
+ "internalType": "int24"
13018
+ },
13019
+ {
13020
+ "name": "hooks",
13021
+ "type": "address",
13022
+ "internalType": "contract IHooks"
13023
+ }
13024
+ ]
13025
+ },
13026
+ {
13027
+ "name": "",
13028
+ "type": "tuple",
13029
+ "internalType": "struct SwapParams",
13030
+ "components": [
13031
+ {
13032
+ "name": "zeroForOne",
13033
+ "type": "bool",
13034
+ "internalType": "bool"
13035
+ },
13036
+ {
13037
+ "name": "amountSpecified",
13038
+ "type": "int256",
13039
+ "internalType": "int256"
13040
+ },
13041
+ {
13042
+ "name": "sqrtPriceLimitX96",
13043
+ "type": "uint160",
13044
+ "internalType": "uint160"
13045
+ }
13046
+ ]
13047
+ },
13048
+ {
13049
+ "name": "",
13050
+ "type": "int256",
13051
+ "internalType": "BalanceDelta"
13052
+ },
13053
+ {
13054
+ "name": "",
13055
+ "type": "bytes",
13056
+ "internalType": "bytes"
13057
+ }
13058
+ ],
13059
+ "outputs": [
13060
+ {
13061
+ "name": "",
13062
+ "type": "bytes4",
13063
+ "internalType": "bytes4"
13064
+ },
13065
+ {
13066
+ "name": "",
13067
+ "type": "int128",
13068
+ "internalType": "int128"
13069
+ }
13070
+ ],
13071
+ "stateMutability": "pure"
13072
+ },
13073
+ {
13074
+ "type": "function",
13075
+ "name": "baseFee",
13076
+ "inputs": [],
13077
+ "outputs": [
13078
+ {
13079
+ "name": "",
13080
+ "type": "uint24",
13081
+ "internalType": "uint24"
13082
+ }
13083
+ ],
13084
+ "stateMutability": "view"
13085
+ },
13086
+ {
13087
+ "type": "function",
13088
+ "name": "beforeAddLiquidity",
13089
+ "inputs": [
13090
+ {
13091
+ "name": "sender",
13092
+ "type": "address",
13093
+ "internalType": "address"
13094
+ },
13095
+ {
13096
+ "name": "",
13097
+ "type": "tuple",
13098
+ "internalType": "struct PoolKey",
13099
+ "components": [
13100
+ {
13101
+ "name": "currency0",
13102
+ "type": "address",
13103
+ "internalType": "Currency"
13104
+ },
13105
+ {
13106
+ "name": "currency1",
13107
+ "type": "address",
13108
+ "internalType": "Currency"
13109
+ },
13110
+ {
13111
+ "name": "fee",
13112
+ "type": "uint24",
13113
+ "internalType": "uint24"
13114
+ },
13115
+ {
13116
+ "name": "tickSpacing",
13117
+ "type": "int24",
13118
+ "internalType": "int24"
13119
+ },
13120
+ {
13121
+ "name": "hooks",
13122
+ "type": "address",
13123
+ "internalType": "contract IHooks"
13124
+ }
13125
+ ]
13126
+ },
13127
+ {
13128
+ "name": "",
13129
+ "type": "tuple",
13130
+ "internalType": "struct ModifyLiquidityParams",
13131
+ "components": [
13132
+ {
13133
+ "name": "tickLower",
13134
+ "type": "int24",
13135
+ "internalType": "int24"
13136
+ },
13137
+ {
13138
+ "name": "tickUpper",
13139
+ "type": "int24",
13140
+ "internalType": "int24"
13141
+ },
13142
+ {
13143
+ "name": "liquidityDelta",
13144
+ "type": "int256",
13145
+ "internalType": "int256"
13146
+ },
13147
+ {
13148
+ "name": "salt",
13149
+ "type": "bytes32",
13150
+ "internalType": "bytes32"
13151
+ }
13152
+ ]
13153
+ },
13154
+ {
13155
+ "name": "",
13156
+ "type": "bytes",
13157
+ "internalType": "bytes"
13158
+ }
13159
+ ],
13160
+ "outputs": [
13161
+ {
13162
+ "name": "",
13163
+ "type": "bytes4",
13164
+ "internalType": "bytes4"
13165
+ }
13166
+ ],
13167
+ "stateMutability": "view"
13168
+ },
13169
+ {
13170
+ "type": "function",
13171
+ "name": "beforeDonate",
13172
+ "inputs": [
13173
+ {
13174
+ "name": "",
13175
+ "type": "address",
13176
+ "internalType": "address"
13177
+ },
13178
+ {
13179
+ "name": "",
13180
+ "type": "tuple",
13181
+ "internalType": "struct PoolKey",
13182
+ "components": [
13183
+ {
13184
+ "name": "currency0",
13185
+ "type": "address",
13186
+ "internalType": "Currency"
13187
+ },
13188
+ {
13189
+ "name": "currency1",
13190
+ "type": "address",
13191
+ "internalType": "Currency"
13192
+ },
13193
+ {
13194
+ "name": "fee",
13195
+ "type": "uint24",
13196
+ "internalType": "uint24"
13197
+ },
13198
+ {
13199
+ "name": "tickSpacing",
13200
+ "type": "int24",
13201
+ "internalType": "int24"
13202
+ },
13203
+ {
13204
+ "name": "hooks",
13205
+ "type": "address",
13206
+ "internalType": "contract IHooks"
13207
+ }
13208
+ ]
13209
+ },
13210
+ {
13211
+ "name": "",
13212
+ "type": "uint256",
13213
+ "internalType": "uint256"
13214
+ },
13215
+ {
13216
+ "name": "",
13217
+ "type": "uint256",
13218
+ "internalType": "uint256"
13219
+ },
13220
+ {
13221
+ "name": "",
13222
+ "type": "bytes",
13223
+ "internalType": "bytes"
13224
+ }
13225
+ ],
13226
+ "outputs": [
13227
+ {
13228
+ "name": "",
13229
+ "type": "bytes4",
13230
+ "internalType": "bytes4"
13231
+ }
13232
+ ],
13233
+ "stateMutability": "pure"
13234
+ },
13235
+ {
13236
+ "type": "function",
13237
+ "name": "beforeInitialize",
13238
+ "inputs": [
13239
+ {
13240
+ "name": "sender",
13241
+ "type": "address",
13242
+ "internalType": "address"
13243
+ },
13244
+ {
13245
+ "name": "",
13246
+ "type": "tuple",
13247
+ "internalType": "struct PoolKey",
13248
+ "components": [
13249
+ {
13250
+ "name": "currency0",
13251
+ "type": "address",
13252
+ "internalType": "Currency"
13253
+ },
13254
+ {
13255
+ "name": "currency1",
13256
+ "type": "address",
13257
+ "internalType": "Currency"
13258
+ },
13259
+ {
13260
+ "name": "fee",
13261
+ "type": "uint24",
13262
+ "internalType": "uint24"
13263
+ },
13264
+ {
13265
+ "name": "tickSpacing",
13266
+ "type": "int24",
13267
+ "internalType": "int24"
13268
+ },
13269
+ {
13270
+ "name": "hooks",
13271
+ "type": "address",
13272
+ "internalType": "contract IHooks"
13273
+ }
13274
+ ]
13275
+ },
13276
+ {
13277
+ "name": "",
13278
+ "type": "uint160",
13279
+ "internalType": "uint160"
13280
+ }
13281
+ ],
13282
+ "outputs": [
13283
+ {
13284
+ "name": "",
13285
+ "type": "bytes4",
13286
+ "internalType": "bytes4"
13287
+ }
13288
+ ],
13289
+ "stateMutability": "view"
13290
+ },
13291
+ {
13292
+ "type": "function",
13293
+ "name": "beforeRemoveLiquidity",
13294
+ "inputs": [
13295
+ {
13296
+ "name": "sender",
13297
+ "type": "address",
13298
+ "internalType": "address"
13299
+ },
13300
+ {
13301
+ "name": "",
13302
+ "type": "tuple",
13303
+ "internalType": "struct PoolKey",
13304
+ "components": [
13305
+ {
13306
+ "name": "currency0",
13307
+ "type": "address",
13308
+ "internalType": "Currency"
13309
+ },
13310
+ {
13311
+ "name": "currency1",
13312
+ "type": "address",
13313
+ "internalType": "Currency"
13314
+ },
13315
+ {
13316
+ "name": "fee",
13317
+ "type": "uint24",
13318
+ "internalType": "uint24"
13319
+ },
13320
+ {
13321
+ "name": "tickSpacing",
13322
+ "type": "int24",
13323
+ "internalType": "int24"
13324
+ },
13325
+ {
13326
+ "name": "hooks",
13327
+ "type": "address",
13328
+ "internalType": "contract IHooks"
13329
+ }
13330
+ ]
13331
+ },
13332
+ {
13333
+ "name": "params",
13334
+ "type": "tuple",
13335
+ "internalType": "struct ModifyLiquidityParams",
13336
+ "components": [
13337
+ {
13338
+ "name": "tickLower",
13339
+ "type": "int24",
13340
+ "internalType": "int24"
13341
+ },
13342
+ {
13343
+ "name": "tickUpper",
13344
+ "type": "int24",
13345
+ "internalType": "int24"
13346
+ },
13347
+ {
13348
+ "name": "liquidityDelta",
13349
+ "type": "int256",
13350
+ "internalType": "int256"
13351
+ },
13352
+ {
13353
+ "name": "salt",
13354
+ "type": "bytes32",
13355
+ "internalType": "bytes32"
13356
+ }
13357
+ ]
13358
+ },
13359
+ {
13360
+ "name": "",
13361
+ "type": "bytes",
13362
+ "internalType": "bytes"
13363
+ }
13364
+ ],
13365
+ "outputs": [
13366
+ {
13367
+ "name": "",
13368
+ "type": "bytes4",
13369
+ "internalType": "bytes4"
13370
+ }
13371
+ ],
13372
+ "stateMutability": "view"
13373
+ },
13374
+ {
13375
+ "type": "function",
13376
+ "name": "beforeSwap",
13377
+ "inputs": [
13378
+ {
13379
+ "name": "",
13380
+ "type": "address",
13381
+ "internalType": "address"
13382
+ },
13383
+ {
13384
+ "name": "key",
13385
+ "type": "tuple",
13386
+ "internalType": "struct PoolKey",
13387
+ "components": [
13388
+ {
13389
+ "name": "currency0",
13390
+ "type": "address",
13391
+ "internalType": "Currency"
13392
+ },
13393
+ {
13394
+ "name": "currency1",
13395
+ "type": "address",
13396
+ "internalType": "Currency"
13397
+ },
13398
+ {
13399
+ "name": "fee",
13400
+ "type": "uint24",
13401
+ "internalType": "uint24"
13402
+ },
13403
+ {
13404
+ "name": "tickSpacing",
13405
+ "type": "int24",
13406
+ "internalType": "int24"
13407
+ },
13408
+ {
13409
+ "name": "hooks",
13410
+ "type": "address",
13411
+ "internalType": "contract IHooks"
13412
+ }
13413
+ ]
13414
+ },
13415
+ {
13416
+ "name": "",
13417
+ "type": "tuple",
13418
+ "internalType": "struct SwapParams",
13419
+ "components": [
13420
+ {
13421
+ "name": "zeroForOne",
13422
+ "type": "bool",
13423
+ "internalType": "bool"
13424
+ },
13425
+ {
13426
+ "name": "amountSpecified",
13427
+ "type": "int256",
13428
+ "internalType": "int256"
13429
+ },
13430
+ {
13431
+ "name": "sqrtPriceLimitX96",
13432
+ "type": "uint160",
13433
+ "internalType": "uint160"
13434
+ }
13435
+ ]
13436
+ },
13437
+ {
13438
+ "name": "",
13439
+ "type": "bytes",
13440
+ "internalType": "bytes"
13441
+ }
13442
+ ],
13443
+ "outputs": [
13444
+ {
13445
+ "name": "",
13446
+ "type": "bytes4",
13447
+ "internalType": "bytes4"
13448
+ },
13449
+ {
13450
+ "name": "",
13451
+ "type": "int256",
13452
+ "internalType": "BeforeSwapDelta"
13453
+ },
13454
+ {
13455
+ "name": "",
13456
+ "type": "uint24",
13457
+ "internalType": "uint24"
13458
+ }
13459
+ ],
13460
+ "stateMutability": "nonpayable"
13461
+ },
13462
+ {
13463
+ "type": "function",
13464
+ "name": "collectFees",
13465
+ "inputs": [
13466
+ {
13467
+ "name": "token",
13468
+ "type": "address",
13469
+ "internalType": "address"
13470
+ }
13471
+ ],
13472
+ "outputs": [
13473
+ {
13474
+ "name": "hype",
13475
+ "type": "uint256",
13476
+ "internalType": "uint256"
13477
+ },
13478
+ {
13479
+ "name": "tokens",
13480
+ "type": "uint256",
13481
+ "internalType": "uint256"
13482
+ }
13483
+ ],
13484
+ "stateMutability": "nonpayable"
13485
+ },
13486
+ {
13487
+ "type": "function",
13488
+ "name": "cumulativeNow",
13489
+ "inputs": [
13490
+ {
13491
+ "name": "token",
13492
+ "type": "address",
13493
+ "internalType": "address"
13494
+ }
13495
+ ],
13496
+ "outputs": [
13497
+ {
13498
+ "name": "cum",
13499
+ "type": "uint256",
13500
+ "internalType": "uint256"
13501
+ },
13502
+ {
13503
+ "name": "at",
13504
+ "type": "uint64",
13505
+ "internalType": "uint64"
13506
+ }
13507
+ ],
13508
+ "stateMutability": "view"
13509
+ },
13510
+ {
13511
+ "type": "function",
13512
+ "name": "currentFee",
13513
+ "inputs": [
13514
+ {
13515
+ "name": "token",
13516
+ "type": "address",
13517
+ "internalType": "address"
13518
+ }
13519
+ ],
13520
+ "outputs": [
13521
+ {
13522
+ "name": "",
13523
+ "type": "uint24",
13524
+ "internalType": "uint24"
13525
+ }
13526
+ ],
13527
+ "stateMutability": "view"
13528
+ },
13529
+ {
13530
+ "type": "function",
13531
+ "name": "decaySecs",
13532
+ "inputs": [],
13533
+ "outputs": [
13534
+ {
13535
+ "name": "",
13536
+ "type": "uint32",
13537
+ "internalType": "uint32"
13538
+ }
13539
+ ],
13540
+ "stateMutability": "view"
13541
+ },
13542
+ {
13543
+ "type": "function",
13544
+ "name": "deployer",
13545
+ "inputs": [],
13546
+ "outputs": [
13547
+ {
13548
+ "name": "",
13549
+ "type": "address",
13550
+ "internalType": "address"
13551
+ }
13552
+ ],
13553
+ "stateMutability": "view"
13554
+ },
13555
+ {
13556
+ "type": "function",
13557
+ "name": "factory",
13558
+ "inputs": [],
13559
+ "outputs": [
13560
+ {
13561
+ "name": "",
13562
+ "type": "address",
13563
+ "internalType": "contract ICloakLaunchFactory"
13564
+ }
13565
+ ],
13566
+ "stateMutability": "view"
13567
+ },
13568
+ {
13569
+ "type": "function",
13570
+ "name": "keyFor",
13571
+ "inputs": [
13572
+ {
13573
+ "name": "token",
13574
+ "type": "address",
13575
+ "internalType": "address"
13576
+ }
13577
+ ],
13578
+ "outputs": [
13579
+ {
13580
+ "name": "",
13581
+ "type": "tuple",
13582
+ "internalType": "struct PoolKey",
13583
+ "components": [
13584
+ {
13585
+ "name": "currency0",
13586
+ "type": "address",
13587
+ "internalType": "Currency"
13588
+ },
13589
+ {
13590
+ "name": "currency1",
13591
+ "type": "address",
13592
+ "internalType": "Currency"
13593
+ },
13594
+ {
13595
+ "name": "fee",
13596
+ "type": "uint24",
13597
+ "internalType": "uint24"
13598
+ },
13599
+ {
13600
+ "name": "tickSpacing",
13601
+ "type": "int24",
13602
+ "internalType": "int24"
13603
+ },
13604
+ {
13605
+ "name": "hooks",
13606
+ "type": "address",
13607
+ "internalType": "contract IHooks"
13608
+ }
13609
+ ]
13610
+ }
13611
+ ],
13612
+ "stateMutability": "view"
13613
+ },
13614
+ {
13615
+ "type": "function",
13616
+ "name": "lastSwapAt",
13617
+ "inputs": [
13618
+ {
13619
+ "name": "token",
13620
+ "type": "address",
13621
+ "internalType": "address"
13622
+ }
13623
+ ],
13624
+ "outputs": [
13625
+ {
13626
+ "name": "",
13627
+ "type": "uint64",
13628
+ "internalType": "uint64"
13629
+ }
13630
+ ],
13631
+ "stateMutability": "view"
13632
+ },
13633
+ {
13634
+ "type": "function",
13635
+ "name": "launchOf",
13636
+ "inputs": [
13637
+ {
13638
+ "name": "token",
13639
+ "type": "address",
13640
+ "internalType": "address"
13641
+ }
13642
+ ],
13643
+ "outputs": [
13644
+ {
13645
+ "name": "",
13646
+ "type": "tuple",
13647
+ "internalType": "struct CloakV4Hook.Launch",
13648
+ "components": [
13649
+ {
13650
+ "name": "market",
13651
+ "type": "address",
13652
+ "internalType": "contract CloakV4Market"
13653
+ },
13654
+ {
13655
+ "name": "feeTo",
13656
+ "type": "address",
13657
+ "internalType": "address"
13658
+ },
13659
+ {
13660
+ "name": "listedAt",
13661
+ "type": "uint64",
13662
+ "internalType": "uint64"
13663
+ },
13664
+ {
13665
+ "name": "lastAt",
13666
+ "type": "uint64",
13667
+ "internalType": "uint64"
13668
+ },
13669
+ {
13670
+ "name": "cum",
13671
+ "type": "uint256",
13672
+ "internalType": "uint256"
13673
+ }
13674
+ ]
13675
+ }
13676
+ ],
13677
+ "stateMutability": "view"
13678
+ },
13679
+ {
13680
+ "type": "function",
13681
+ "name": "poolIdOf",
13682
+ "inputs": [
13683
+ {
13684
+ "name": "token",
13685
+ "type": "address",
13686
+ "internalType": "address"
13687
+ }
13688
+ ],
13689
+ "outputs": [
13690
+ {
13691
+ "name": "",
13692
+ "type": "bytes32",
13693
+ "internalType": "PoolId"
13694
+ }
13695
+ ],
13696
+ "stateMutability": "view"
13697
+ },
13698
+ {
13699
+ "type": "function",
13700
+ "name": "poolManager",
13701
+ "inputs": [],
13702
+ "outputs": [
13703
+ {
13704
+ "name": "",
13705
+ "type": "address",
13706
+ "internalType": "contract IPoolManager"
13707
+ }
13708
+ ],
13709
+ "stateMutability": "view"
13710
+ },
13711
+ {
13712
+ "type": "function",
13713
+ "name": "priceOf",
13714
+ "inputs": [
13715
+ {
13716
+ "name": "id",
13717
+ "type": "bytes32",
13718
+ "internalType": "PoolId"
13719
+ }
13720
+ ],
13721
+ "outputs": [
13722
+ {
13723
+ "name": "",
13724
+ "type": "uint256",
13725
+ "internalType": "uint256"
13726
+ }
13727
+ ],
13728
+ "stateMutability": "view"
13729
+ },
13730
+ {
13731
+ "type": "function",
13732
+ "name": "seed",
13733
+ "inputs": [
13734
+ {
13735
+ "name": "token",
13736
+ "type": "address",
13737
+ "internalType": "address"
13738
+ },
13739
+ {
13740
+ "name": "tokenAmount",
13741
+ "type": "uint256",
13742
+ "internalType": "uint256"
13743
+ },
13744
+ {
13745
+ "name": "price",
13746
+ "type": "uint256",
13747
+ "internalType": "uint256"
13748
+ },
13749
+ {
13750
+ "name": "lpTo",
13751
+ "type": "address",
13752
+ "internalType": "address"
13753
+ }
13754
+ ],
13755
+ "outputs": [
13756
+ {
13757
+ "name": "market",
13758
+ "type": "address",
13759
+ "internalType": "address"
13760
+ },
13761
+ {
13762
+ "name": "uniPair",
13763
+ "type": "address",
13764
+ "internalType": "address"
13765
+ },
13766
+ {
13767
+ "name": "shares",
13768
+ "type": "uint256",
13769
+ "internalType": "uint256"
13770
+ },
13771
+ {
13772
+ "name": "hypeUsed",
13773
+ "type": "uint256",
13774
+ "internalType": "uint256"
13775
+ },
13776
+ {
13777
+ "name": "tokensUsed",
13778
+ "type": "uint256",
13779
+ "internalType": "uint256"
13780
+ }
13781
+ ],
13782
+ "stateMutability": "payable"
13783
+ },
13784
+ {
13785
+ "type": "function",
13786
+ "name": "setFactory",
13787
+ "inputs": [
13788
+ {
13789
+ "name": "f",
13790
+ "type": "address",
13791
+ "internalType": "contract ICloakLaunchFactory"
13792
+ }
13793
+ ],
13794
+ "outputs": [],
13795
+ "stateMutability": "nonpayable"
13796
+ },
13797
+ {
13798
+ "type": "function",
13799
+ "name": "sqrtPriceFor",
13800
+ "inputs": [
13801
+ {
13802
+ "name": "price",
13803
+ "type": "uint256",
13804
+ "internalType": "uint256"
13805
+ }
13806
+ ],
13807
+ "outputs": [
13808
+ {
13809
+ "name": "",
13810
+ "type": "uint160",
13811
+ "internalType": "uint160"
13812
+ }
13813
+ ],
13814
+ "stateMutability": "pure"
13815
+ },
13816
+ {
13817
+ "type": "function",
13818
+ "name": "startFee",
13819
+ "inputs": [],
13820
+ "outputs": [
13821
+ {
13822
+ "name": "",
13823
+ "type": "uint24",
13824
+ "internalType": "uint24"
13825
+ }
13826
+ ],
13827
+ "stateMutability": "view"
13828
+ },
13829
+ {
13830
+ "type": "function",
13831
+ "name": "timedLocks",
13832
+ "inputs": [],
13833
+ "outputs": [
13834
+ {
13835
+ "name": "",
13836
+ "type": "bool",
13837
+ "internalType": "bool"
13838
+ }
13839
+ ],
13840
+ "stateMutability": "pure"
13841
+ },
13842
+ {
13843
+ "type": "function",
13844
+ "name": "unlockCallback",
13845
+ "inputs": [
13846
+ {
13847
+ "name": "data",
13848
+ "type": "bytes",
13849
+ "internalType": "bytes"
13850
+ }
13851
+ ],
13852
+ "outputs": [
13853
+ {
13854
+ "name": "",
13855
+ "type": "bytes",
13856
+ "internalType": "bytes"
13857
+ }
13858
+ ],
13859
+ "stateMutability": "nonpayable"
13860
+ },
13861
+ {
13862
+ "type": "event",
13863
+ "name": "FeesCollected",
13864
+ "inputs": [
13865
+ {
13866
+ "name": "token",
13867
+ "type": "address",
13868
+ "indexed": true,
13869
+ "internalType": "address"
13870
+ },
13871
+ {
13872
+ "name": "to",
13873
+ "type": "address",
13874
+ "indexed": true,
13875
+ "internalType": "address"
13876
+ },
13877
+ {
13878
+ "name": "hype",
13879
+ "type": "uint256",
13880
+ "indexed": false,
13881
+ "internalType": "uint256"
13882
+ },
13883
+ {
13884
+ "name": "tokens",
13885
+ "type": "uint256",
13886
+ "indexed": false,
13887
+ "internalType": "uint256"
13888
+ }
13889
+ ],
13890
+ "anonymous": false
13891
+ },
13892
+ {
13893
+ "type": "event",
13894
+ "name": "Listed",
13895
+ "inputs": [
13896
+ {
13897
+ "name": "token",
13898
+ "type": "address",
13899
+ "indexed": true,
13900
+ "internalType": "address"
13901
+ },
13902
+ {
13903
+ "name": "id",
13904
+ "type": "bytes32",
13905
+ "indexed": true,
13906
+ "internalType": "PoolId"
13907
+ },
13908
+ {
13909
+ "name": "market",
13910
+ "type": "address",
13911
+ "indexed": false,
13912
+ "internalType": "address"
13913
+ },
13914
+ {
13915
+ "name": "feeTo",
13916
+ "type": "address",
13917
+ "indexed": false,
13918
+ "internalType": "address"
13919
+ },
13920
+ {
13921
+ "name": "sqrtPriceX96",
13922
+ "type": "uint160",
13923
+ "indexed": false,
13924
+ "internalType": "uint160"
13925
+ },
13926
+ {
13927
+ "name": "liquidity",
13928
+ "type": "uint128",
13929
+ "indexed": false,
13930
+ "internalType": "uint128"
13931
+ },
13932
+ {
13933
+ "name": "hype",
13934
+ "type": "uint256",
13935
+ "indexed": false,
13936
+ "internalType": "uint256"
13937
+ },
13938
+ {
13939
+ "name": "tokens",
13940
+ "type": "uint256",
13941
+ "indexed": false,
13942
+ "internalType": "uint256"
13943
+ }
13944
+ ],
13945
+ "anonymous": false
13946
+ },
13947
+ {
13948
+ "type": "error",
13949
+ "name": "NotPoolManager",
13950
+ "inputs": []
13951
+ },
13952
+ {
13953
+ "type": "error",
13954
+ "name": "OnlyHook",
13955
+ "inputs": []
13956
+ }
13957
+ ];
13958
+ export const cloakV4MarketAbi = [
13959
+ {
13960
+ "type": "constructor",
13961
+ "inputs": [
13962
+ {
13963
+ "name": "poolManager_",
13964
+ "type": "address",
13965
+ "internalType": "contract IPoolManager"
13966
+ },
13967
+ {
13968
+ "name": "hook_",
13969
+ "type": "address",
13970
+ "internalType": "contract IHookView"
13971
+ },
13972
+ {
13973
+ "name": "token_",
13974
+ "type": "address",
13975
+ "internalType": "address"
13976
+ }
13977
+ ],
13978
+ "stateMutability": "nonpayable"
13979
+ },
13980
+ {
13981
+ "type": "function",
13982
+ "name": "cumulativeNow",
13983
+ "inputs": [],
13984
+ "outputs": [
13985
+ {
13986
+ "name": "cum",
13987
+ "type": "uint256",
13988
+ "internalType": "uint256"
13989
+ },
13990
+ {
13991
+ "name": "at",
13992
+ "type": "uint64",
13993
+ "internalType": "uint64"
13994
+ }
13995
+ ],
13996
+ "stateMutability": "view"
13997
+ },
13998
+ {
13999
+ "type": "function",
14000
+ "name": "feeNum",
14001
+ "inputs": [],
14002
+ "outputs": [
14003
+ {
14004
+ "name": "",
14005
+ "type": "uint256",
14006
+ "internalType": "uint256"
14007
+ }
14008
+ ],
14009
+ "stateMutability": "view"
14010
+ },
14011
+ {
14012
+ "type": "function",
14013
+ "name": "feePips",
14014
+ "inputs": [],
14015
+ "outputs": [
14016
+ {
14017
+ "name": "",
14018
+ "type": "uint24",
14019
+ "internalType": "uint24"
14020
+ }
14021
+ ],
14022
+ "stateMutability": "view"
14023
+ },
14024
+ {
14025
+ "type": "function",
14026
+ "name": "getAmountOut",
14027
+ "inputs": [
14028
+ {
14029
+ "name": "amountIn",
14030
+ "type": "uint256",
14031
+ "internalType": "uint256"
14032
+ },
14033
+ {
14034
+ "name": "rIn",
14035
+ "type": "uint256",
14036
+ "internalType": "uint256"
14037
+ },
14038
+ {
14039
+ "name": "rOut",
14040
+ "type": "uint256",
14041
+ "internalType": "uint256"
14042
+ }
14043
+ ],
14044
+ "outputs": [
14045
+ {
14046
+ "name": "",
14047
+ "type": "uint256",
14048
+ "internalType": "uint256"
14049
+ }
14050
+ ],
14051
+ "stateMutability": "view"
14052
+ },
14053
+ {
14054
+ "type": "function",
14055
+ "name": "hook",
14056
+ "inputs": [],
14057
+ "outputs": [
14058
+ {
14059
+ "name": "",
14060
+ "type": "address",
14061
+ "internalType": "contract IHookView"
14062
+ }
14063
+ ],
14064
+ "stateMutability": "view"
14065
+ },
14066
+ {
14067
+ "type": "function",
14068
+ "name": "key",
14069
+ "inputs": [],
14070
+ "outputs": [
14071
+ {
14072
+ "name": "",
14073
+ "type": "tuple",
14074
+ "internalType": "struct PoolKey",
14075
+ "components": [
14076
+ {
14077
+ "name": "currency0",
14078
+ "type": "address",
14079
+ "internalType": "Currency"
14080
+ },
14081
+ {
14082
+ "name": "currency1",
14083
+ "type": "address",
14084
+ "internalType": "Currency"
14085
+ },
14086
+ {
14087
+ "name": "fee",
14088
+ "type": "uint24",
14089
+ "internalType": "uint24"
14090
+ },
14091
+ {
14092
+ "name": "tickSpacing",
14093
+ "type": "int24",
14094
+ "internalType": "int24"
14095
+ },
14096
+ {
14097
+ "name": "hooks",
14098
+ "type": "address",
14099
+ "internalType": "contract IHooks"
14100
+ }
14101
+ ]
14102
+ }
14103
+ ],
14104
+ "stateMutability": "view"
14105
+ },
14106
+ {
14107
+ "type": "function",
14108
+ "name": "lastUpdate",
14109
+ "inputs": [],
14110
+ "outputs": [
14111
+ {
14112
+ "name": "",
14113
+ "type": "uint64",
14114
+ "internalType": "uint64"
14115
+ }
14116
+ ],
14117
+ "stateMutability": "view"
14118
+ },
14119
+ {
14120
+ "type": "function",
14121
+ "name": "poolId",
14122
+ "inputs": [],
14123
+ "outputs": [
14124
+ {
14125
+ "name": "",
14126
+ "type": "bytes32",
14127
+ "internalType": "PoolId"
14128
+ }
14129
+ ],
14130
+ "stateMutability": "view"
14131
+ },
14132
+ {
14133
+ "type": "function",
14134
+ "name": "poolManager",
14135
+ "inputs": [],
14136
+ "outputs": [
14137
+ {
14138
+ "name": "",
14139
+ "type": "address",
14140
+ "internalType": "contract IPoolManager"
14141
+ }
14142
+ ],
14143
+ "stateMutability": "view"
14144
+ },
14145
+ {
14146
+ "type": "function",
14147
+ "name": "price",
14148
+ "inputs": [],
14149
+ "outputs": [
14150
+ {
14151
+ "name": "",
14152
+ "type": "uint256",
14153
+ "internalType": "uint256"
14154
+ }
14155
+ ],
14156
+ "stateMutability": "view"
14157
+ },
14158
+ {
14159
+ "type": "function",
14160
+ "name": "reserveHype",
14161
+ "inputs": [],
14162
+ "outputs": [
14163
+ {
14164
+ "name": "r",
14165
+ "type": "uint256",
14166
+ "internalType": "uint256"
14167
+ }
14168
+ ],
14169
+ "stateMutability": "view"
14170
+ },
14171
+ {
14172
+ "type": "function",
14173
+ "name": "reserveToken",
14174
+ "inputs": [],
14175
+ "outputs": [
14176
+ {
14177
+ "name": "r",
14178
+ "type": "uint256",
14179
+ "internalType": "uint256"
14180
+ }
14181
+ ],
14182
+ "stateMutability": "view"
14183
+ },
14184
+ {
14185
+ "type": "function",
14186
+ "name": "reserves",
14187
+ "inputs": [],
14188
+ "outputs": [
14189
+ {
14190
+ "name": "rHype",
14191
+ "type": "uint256",
14192
+ "internalType": "uint256"
14193
+ },
14194
+ {
14195
+ "name": "rToken",
14196
+ "type": "uint256",
14197
+ "internalType": "uint256"
14198
+ },
14199
+ {
14200
+ "name": "last",
14201
+ "type": "uint32",
14202
+ "internalType": "uint32"
14203
+ }
14204
+ ],
14205
+ "stateMutability": "view"
14206
+ },
14207
+ {
14208
+ "type": "function",
14209
+ "name": "sharesOf",
14210
+ "inputs": [
14211
+ {
14212
+ "name": "a",
14213
+ "type": "address",
14214
+ "internalType": "address"
14215
+ }
14216
+ ],
14217
+ "outputs": [
14218
+ {
14219
+ "name": "",
14220
+ "type": "uint256",
14221
+ "internalType": "uint256"
14222
+ }
14223
+ ],
14224
+ "stateMutability": "view"
14225
+ },
14226
+ {
14227
+ "type": "function",
14228
+ "name": "swapExactHypeForTokens",
14229
+ "inputs": [
14230
+ {
14231
+ "name": "minOut",
14232
+ "type": "uint256",
14233
+ "internalType": "uint256"
14234
+ },
14235
+ {
14236
+ "name": "to",
14237
+ "type": "address",
14238
+ "internalType": "address"
14239
+ }
14240
+ ],
14241
+ "outputs": [
14242
+ {
14243
+ "name": "out",
14244
+ "type": "uint256",
14245
+ "internalType": "uint256"
14246
+ }
14247
+ ],
14248
+ "stateMutability": "payable"
14249
+ },
14250
+ {
14251
+ "type": "function",
14252
+ "name": "swapExactTokensForHype",
14253
+ "inputs": [
14254
+ {
14255
+ "name": "amountIn",
14256
+ "type": "uint256",
14257
+ "internalType": "uint256"
14258
+ },
14259
+ {
14260
+ "name": "minOut",
14261
+ "type": "uint256",
14262
+ "internalType": "uint256"
14263
+ },
14264
+ {
14265
+ "name": "to",
14266
+ "type": "address",
14267
+ "internalType": "address"
14268
+ }
14269
+ ],
14270
+ "outputs": [
14271
+ {
14272
+ "name": "out",
14273
+ "type": "uint256",
14274
+ "internalType": "uint256"
14275
+ }
14276
+ ],
14277
+ "stateMutability": "nonpayable"
14278
+ },
14279
+ {
14280
+ "type": "function",
14281
+ "name": "token",
14282
+ "inputs": [],
14283
+ "outputs": [
14284
+ {
14285
+ "name": "",
14286
+ "type": "address",
14287
+ "internalType": "address"
14288
+ }
14289
+ ],
14290
+ "stateMutability": "view"
14291
+ },
14292
+ {
14293
+ "type": "function",
14294
+ "name": "totalShares",
14295
+ "inputs": [],
14296
+ "outputs": [
14297
+ {
14298
+ "name": "",
14299
+ "type": "uint256",
14300
+ "internalType": "uint256"
14301
+ }
14302
+ ],
14303
+ "stateMutability": "view"
14304
+ },
14305
+ {
14306
+ "type": "function",
14307
+ "name": "transferShares",
14308
+ "inputs": [
14309
+ {
14310
+ "name": "",
14311
+ "type": "address",
14312
+ "internalType": "address"
14313
+ },
14314
+ {
14315
+ "name": "",
14316
+ "type": "uint256",
14317
+ "internalType": "uint256"
14318
+ }
14319
+ ],
14320
+ "outputs": [],
14321
+ "stateMutability": "pure"
14322
+ },
14323
+ {
14324
+ "type": "function",
14325
+ "name": "unlockCallback",
14326
+ "inputs": [
14327
+ {
14328
+ "name": "data",
14329
+ "type": "bytes",
14330
+ "internalType": "bytes"
14331
+ }
14332
+ ],
14333
+ "outputs": [
14334
+ {
14335
+ "name": "",
14336
+ "type": "bytes",
14337
+ "internalType": "bytes"
14338
+ }
14339
+ ],
14340
+ "stateMutability": "nonpayable"
14341
+ },
14342
+ {
14343
+ "type": "event",
14344
+ "name": "Swap",
14345
+ "inputs": [
14346
+ {
14347
+ "name": "trader",
14348
+ "type": "address",
14349
+ "indexed": true,
14350
+ "internalType": "address"
14351
+ },
14352
+ {
14353
+ "name": "hypeIn",
14354
+ "type": "bool",
14355
+ "indexed": false,
14356
+ "internalType": "bool"
14357
+ },
14358
+ {
14359
+ "name": "amountIn",
14360
+ "type": "uint256",
14361
+ "indexed": false,
14362
+ "internalType": "uint256"
14363
+ },
14364
+ {
14365
+ "name": "amountOut",
14366
+ "type": "uint256",
14367
+ "indexed": false,
14368
+ "internalType": "uint256"
14369
+ },
14370
+ {
14371
+ "name": "to",
14372
+ "type": "address",
14373
+ "indexed": true,
14374
+ "internalType": "address"
14375
+ }
14376
+ ],
14377
+ "anonymous": false
14378
+ }
14379
+ ];
14380
+ export const poolManagerAbi = [
14381
+ {
14382
+ "type": "constructor",
14383
+ "inputs": [
14384
+ {
14385
+ "name": "initialOwner",
14386
+ "type": "address",
14387
+ "internalType": "address"
14388
+ }
14389
+ ],
14390
+ "stateMutability": "nonpayable"
14391
+ },
14392
+ {
14393
+ "type": "function",
14394
+ "name": "allowance",
14395
+ "inputs": [
14396
+ {
14397
+ "name": "owner",
14398
+ "type": "address",
14399
+ "internalType": "address"
14400
+ },
14401
+ {
14402
+ "name": "spender",
14403
+ "type": "address",
14404
+ "internalType": "address"
14405
+ },
14406
+ {
14407
+ "name": "id",
14408
+ "type": "uint256",
14409
+ "internalType": "uint256"
14410
+ }
14411
+ ],
14412
+ "outputs": [
14413
+ {
14414
+ "name": "amount",
14415
+ "type": "uint256",
14416
+ "internalType": "uint256"
14417
+ }
14418
+ ],
14419
+ "stateMutability": "view"
14420
+ },
14421
+ {
14422
+ "type": "function",
14423
+ "name": "approve",
14424
+ "inputs": [
14425
+ {
14426
+ "name": "spender",
14427
+ "type": "address",
14428
+ "internalType": "address"
14429
+ },
14430
+ {
14431
+ "name": "id",
14432
+ "type": "uint256",
14433
+ "internalType": "uint256"
14434
+ },
14435
+ {
14436
+ "name": "amount",
14437
+ "type": "uint256",
14438
+ "internalType": "uint256"
14439
+ }
14440
+ ],
14441
+ "outputs": [
14442
+ {
14443
+ "name": "",
14444
+ "type": "bool",
14445
+ "internalType": "bool"
14446
+ }
14447
+ ],
14448
+ "stateMutability": "nonpayable"
14449
+ },
14450
+ {
14451
+ "type": "function",
14452
+ "name": "balanceOf",
14453
+ "inputs": [
14454
+ {
14455
+ "name": "owner",
14456
+ "type": "address",
14457
+ "internalType": "address"
14458
+ },
14459
+ {
14460
+ "name": "id",
14461
+ "type": "uint256",
14462
+ "internalType": "uint256"
14463
+ }
14464
+ ],
14465
+ "outputs": [
14466
+ {
14467
+ "name": "balance",
14468
+ "type": "uint256",
14469
+ "internalType": "uint256"
14470
+ }
14471
+ ],
14472
+ "stateMutability": "view"
14473
+ },
14474
+ {
14475
+ "type": "function",
14476
+ "name": "burn",
14477
+ "inputs": [
14478
+ {
14479
+ "name": "from",
14480
+ "type": "address",
14481
+ "internalType": "address"
14482
+ },
14483
+ {
14484
+ "name": "id",
14485
+ "type": "uint256",
14486
+ "internalType": "uint256"
14487
+ },
14488
+ {
14489
+ "name": "amount",
14490
+ "type": "uint256",
14491
+ "internalType": "uint256"
14492
+ }
14493
+ ],
14494
+ "outputs": [],
14495
+ "stateMutability": "nonpayable"
14496
+ },
14497
+ {
14498
+ "type": "function",
14499
+ "name": "clear",
14500
+ "inputs": [
14501
+ {
14502
+ "name": "currency",
14503
+ "type": "address",
14504
+ "internalType": "Currency"
14505
+ },
14506
+ {
14507
+ "name": "amount",
14508
+ "type": "uint256",
14509
+ "internalType": "uint256"
14510
+ }
14511
+ ],
14512
+ "outputs": [],
14513
+ "stateMutability": "nonpayable"
14514
+ },
14515
+ {
14516
+ "type": "function",
14517
+ "name": "collectProtocolFees",
14518
+ "inputs": [
14519
+ {
14520
+ "name": "recipient",
14521
+ "type": "address",
14522
+ "internalType": "address"
14523
+ },
14524
+ {
14525
+ "name": "currency",
14526
+ "type": "address",
14527
+ "internalType": "Currency"
14528
+ },
14529
+ {
14530
+ "name": "amount",
14531
+ "type": "uint256",
14532
+ "internalType": "uint256"
14533
+ }
14534
+ ],
14535
+ "outputs": [
14536
+ {
14537
+ "name": "amountCollected",
14538
+ "type": "uint256",
14539
+ "internalType": "uint256"
14540
+ }
14541
+ ],
14542
+ "stateMutability": "nonpayable"
14543
+ },
14544
+ {
14545
+ "type": "function",
14546
+ "name": "donate",
14547
+ "inputs": [
14548
+ {
14549
+ "name": "key",
14550
+ "type": "tuple",
14551
+ "internalType": "struct PoolKey",
14552
+ "components": [
14553
+ {
14554
+ "name": "currency0",
14555
+ "type": "address",
14556
+ "internalType": "Currency"
14557
+ },
14558
+ {
14559
+ "name": "currency1",
14560
+ "type": "address",
14561
+ "internalType": "Currency"
14562
+ },
14563
+ {
14564
+ "name": "fee",
14565
+ "type": "uint24",
14566
+ "internalType": "uint24"
14567
+ },
14568
+ {
14569
+ "name": "tickSpacing",
14570
+ "type": "int24",
14571
+ "internalType": "int24"
14572
+ },
14573
+ {
14574
+ "name": "hooks",
14575
+ "type": "address",
14576
+ "internalType": "contract IHooks"
14577
+ }
14578
+ ]
14579
+ },
14580
+ {
14581
+ "name": "amount0",
14582
+ "type": "uint256",
14583
+ "internalType": "uint256"
14584
+ },
14585
+ {
14586
+ "name": "amount1",
14587
+ "type": "uint256",
14588
+ "internalType": "uint256"
14589
+ },
14590
+ {
14591
+ "name": "hookData",
14592
+ "type": "bytes",
14593
+ "internalType": "bytes"
14594
+ }
14595
+ ],
14596
+ "outputs": [
14597
+ {
14598
+ "name": "delta",
14599
+ "type": "int256",
14600
+ "internalType": "BalanceDelta"
14601
+ }
14602
+ ],
14603
+ "stateMutability": "nonpayable"
14604
+ },
14605
+ {
14606
+ "type": "function",
14607
+ "name": "extsload",
14608
+ "inputs": [
14609
+ {
14610
+ "name": "slot",
14611
+ "type": "bytes32",
14612
+ "internalType": "bytes32"
14613
+ }
14614
+ ],
14615
+ "outputs": [
14616
+ {
14617
+ "name": "",
14618
+ "type": "bytes32",
14619
+ "internalType": "bytes32"
14620
+ }
14621
+ ],
14622
+ "stateMutability": "view"
14623
+ },
14624
+ {
14625
+ "type": "function",
14626
+ "name": "extsload",
14627
+ "inputs": [
14628
+ {
14629
+ "name": "startSlot",
14630
+ "type": "bytes32",
14631
+ "internalType": "bytes32"
14632
+ },
14633
+ {
14634
+ "name": "nSlots",
14635
+ "type": "uint256",
14636
+ "internalType": "uint256"
14637
+ }
14638
+ ],
14639
+ "outputs": [
14640
+ {
14641
+ "name": "",
14642
+ "type": "bytes32[]",
14643
+ "internalType": "bytes32[]"
14644
+ }
14645
+ ],
14646
+ "stateMutability": "view"
14647
+ },
14648
+ {
14649
+ "type": "function",
14650
+ "name": "extsload",
14651
+ "inputs": [
14652
+ {
14653
+ "name": "slots",
14654
+ "type": "bytes32[]",
14655
+ "internalType": "bytes32[]"
14656
+ }
14657
+ ],
14658
+ "outputs": [
14659
+ {
14660
+ "name": "",
14661
+ "type": "bytes32[]",
14662
+ "internalType": "bytes32[]"
14663
+ }
14664
+ ],
14665
+ "stateMutability": "view"
14666
+ },
14667
+ {
14668
+ "type": "function",
14669
+ "name": "exttload",
14670
+ "inputs": [
14671
+ {
14672
+ "name": "slots",
14673
+ "type": "bytes32[]",
14674
+ "internalType": "bytes32[]"
14675
+ }
14676
+ ],
14677
+ "outputs": [
14678
+ {
14679
+ "name": "",
14680
+ "type": "bytes32[]",
14681
+ "internalType": "bytes32[]"
14682
+ }
14683
+ ],
14684
+ "stateMutability": "view"
14685
+ },
14686
+ {
14687
+ "type": "function",
14688
+ "name": "exttload",
14689
+ "inputs": [
14690
+ {
14691
+ "name": "slot",
14692
+ "type": "bytes32",
14693
+ "internalType": "bytes32"
14694
+ }
14695
+ ],
14696
+ "outputs": [
14697
+ {
14698
+ "name": "",
14699
+ "type": "bytes32",
14700
+ "internalType": "bytes32"
14701
+ }
14702
+ ],
14703
+ "stateMutability": "view"
14704
+ },
14705
+ {
14706
+ "type": "function",
14707
+ "name": "initialize",
14708
+ "inputs": [
14709
+ {
14710
+ "name": "key",
14711
+ "type": "tuple",
14712
+ "internalType": "struct PoolKey",
14713
+ "components": [
14714
+ {
14715
+ "name": "currency0",
14716
+ "type": "address",
14717
+ "internalType": "Currency"
14718
+ },
14719
+ {
14720
+ "name": "currency1",
14721
+ "type": "address",
14722
+ "internalType": "Currency"
14723
+ },
14724
+ {
14725
+ "name": "fee",
14726
+ "type": "uint24",
14727
+ "internalType": "uint24"
14728
+ },
14729
+ {
14730
+ "name": "tickSpacing",
14731
+ "type": "int24",
14732
+ "internalType": "int24"
14733
+ },
14734
+ {
14735
+ "name": "hooks",
14736
+ "type": "address",
14737
+ "internalType": "contract IHooks"
14738
+ }
14739
+ ]
14740
+ },
14741
+ {
14742
+ "name": "sqrtPriceX96",
14743
+ "type": "uint160",
14744
+ "internalType": "uint160"
14745
+ }
14746
+ ],
14747
+ "outputs": [
14748
+ {
14749
+ "name": "tick",
14750
+ "type": "int24",
14751
+ "internalType": "int24"
14752
+ }
14753
+ ],
14754
+ "stateMutability": "nonpayable"
14755
+ },
14756
+ {
14757
+ "type": "function",
14758
+ "name": "isOperator",
14759
+ "inputs": [
14760
+ {
14761
+ "name": "owner",
14762
+ "type": "address",
14763
+ "internalType": "address"
14764
+ },
14765
+ {
14766
+ "name": "operator",
14767
+ "type": "address",
14768
+ "internalType": "address"
14769
+ }
14770
+ ],
14771
+ "outputs": [
14772
+ {
14773
+ "name": "isOperator",
14774
+ "type": "bool",
14775
+ "internalType": "bool"
14776
+ }
14777
+ ],
14778
+ "stateMutability": "view"
14779
+ },
14780
+ {
14781
+ "type": "function",
14782
+ "name": "mint",
14783
+ "inputs": [
14784
+ {
14785
+ "name": "to",
14786
+ "type": "address",
14787
+ "internalType": "address"
14788
+ },
14789
+ {
14790
+ "name": "id",
14791
+ "type": "uint256",
14792
+ "internalType": "uint256"
14793
+ },
14794
+ {
14795
+ "name": "amount",
14796
+ "type": "uint256",
14797
+ "internalType": "uint256"
14798
+ }
14799
+ ],
14800
+ "outputs": [],
14801
+ "stateMutability": "nonpayable"
14802
+ },
14803
+ {
14804
+ "type": "function",
14805
+ "name": "modifyLiquidity",
14806
+ "inputs": [
14807
+ {
14808
+ "name": "key",
14809
+ "type": "tuple",
14810
+ "internalType": "struct PoolKey",
14811
+ "components": [
14812
+ {
14813
+ "name": "currency0",
14814
+ "type": "address",
14815
+ "internalType": "Currency"
14816
+ },
14817
+ {
14818
+ "name": "currency1",
14819
+ "type": "address",
14820
+ "internalType": "Currency"
14821
+ },
14822
+ {
14823
+ "name": "fee",
14824
+ "type": "uint24",
14825
+ "internalType": "uint24"
14826
+ },
14827
+ {
14828
+ "name": "tickSpacing",
14829
+ "type": "int24",
14830
+ "internalType": "int24"
14831
+ },
14832
+ {
14833
+ "name": "hooks",
14834
+ "type": "address",
14835
+ "internalType": "contract IHooks"
14836
+ }
14837
+ ]
14838
+ },
14839
+ {
14840
+ "name": "params",
14841
+ "type": "tuple",
14842
+ "internalType": "struct ModifyLiquidityParams",
14843
+ "components": [
14844
+ {
14845
+ "name": "tickLower",
14846
+ "type": "int24",
14847
+ "internalType": "int24"
14848
+ },
14849
+ {
14850
+ "name": "tickUpper",
14851
+ "type": "int24",
14852
+ "internalType": "int24"
14853
+ },
14854
+ {
14855
+ "name": "liquidityDelta",
14856
+ "type": "int256",
14857
+ "internalType": "int256"
14858
+ },
14859
+ {
14860
+ "name": "salt",
14861
+ "type": "bytes32",
14862
+ "internalType": "bytes32"
14863
+ }
14864
+ ]
14865
+ },
14866
+ {
14867
+ "name": "hookData",
14868
+ "type": "bytes",
14869
+ "internalType": "bytes"
14870
+ }
14871
+ ],
14872
+ "outputs": [
14873
+ {
14874
+ "name": "callerDelta",
14875
+ "type": "int256",
14876
+ "internalType": "BalanceDelta"
14877
+ },
14878
+ {
14879
+ "name": "feesAccrued",
14880
+ "type": "int256",
14881
+ "internalType": "BalanceDelta"
14882
+ }
14883
+ ],
14884
+ "stateMutability": "nonpayable"
14885
+ },
14886
+ {
14887
+ "type": "function",
14888
+ "name": "owner",
14889
+ "inputs": [],
14890
+ "outputs": [
14891
+ {
14892
+ "name": "",
14893
+ "type": "address",
14894
+ "internalType": "address"
14895
+ }
14896
+ ],
14897
+ "stateMutability": "view"
14898
+ },
14899
+ {
14900
+ "type": "function",
14901
+ "name": "protocolFeeController",
14902
+ "inputs": [],
14903
+ "outputs": [
14904
+ {
14905
+ "name": "",
14906
+ "type": "address",
14907
+ "internalType": "address"
14908
+ }
14909
+ ],
14910
+ "stateMutability": "view"
14911
+ },
14912
+ {
14913
+ "type": "function",
14914
+ "name": "protocolFeesAccrued",
14915
+ "inputs": [
14916
+ {
14917
+ "name": "currency",
14918
+ "type": "address",
14919
+ "internalType": "Currency"
14920
+ }
14921
+ ],
14922
+ "outputs": [
14923
+ {
14924
+ "name": "amount",
14925
+ "type": "uint256",
14926
+ "internalType": "uint256"
14927
+ }
14928
+ ],
14929
+ "stateMutability": "view"
14930
+ },
14931
+ {
14932
+ "type": "function",
14933
+ "name": "setOperator",
14934
+ "inputs": [
14935
+ {
14936
+ "name": "operator",
14937
+ "type": "address",
14938
+ "internalType": "address"
14939
+ },
14940
+ {
14941
+ "name": "approved",
14942
+ "type": "bool",
14943
+ "internalType": "bool"
14944
+ }
14945
+ ],
14946
+ "outputs": [
14947
+ {
14948
+ "name": "",
14949
+ "type": "bool",
14950
+ "internalType": "bool"
14951
+ }
14952
+ ],
14953
+ "stateMutability": "nonpayable"
14954
+ },
14955
+ {
14956
+ "type": "function",
14957
+ "name": "setProtocolFee",
14958
+ "inputs": [
14959
+ {
14960
+ "name": "key",
14961
+ "type": "tuple",
14962
+ "internalType": "struct PoolKey",
14963
+ "components": [
14964
+ {
14965
+ "name": "currency0",
14966
+ "type": "address",
14967
+ "internalType": "Currency"
14968
+ },
14969
+ {
14970
+ "name": "currency1",
14971
+ "type": "address",
14972
+ "internalType": "Currency"
14973
+ },
14974
+ {
14975
+ "name": "fee",
14976
+ "type": "uint24",
14977
+ "internalType": "uint24"
14978
+ },
14979
+ {
14980
+ "name": "tickSpacing",
14981
+ "type": "int24",
14982
+ "internalType": "int24"
14983
+ },
14984
+ {
14985
+ "name": "hooks",
14986
+ "type": "address",
14987
+ "internalType": "contract IHooks"
14988
+ }
14989
+ ]
14990
+ },
14991
+ {
14992
+ "name": "newProtocolFee",
14993
+ "type": "uint24",
14994
+ "internalType": "uint24"
14995
+ }
14996
+ ],
14997
+ "outputs": [],
14998
+ "stateMutability": "nonpayable"
14999
+ },
15000
+ {
15001
+ "type": "function",
15002
+ "name": "setProtocolFeeController",
15003
+ "inputs": [
15004
+ {
15005
+ "name": "controller",
15006
+ "type": "address",
15007
+ "internalType": "address"
15008
+ }
15009
+ ],
15010
+ "outputs": [],
15011
+ "stateMutability": "nonpayable"
15012
+ },
15013
+ {
15014
+ "type": "function",
15015
+ "name": "settle",
15016
+ "inputs": [],
15017
+ "outputs": [
15018
+ {
15019
+ "name": "",
15020
+ "type": "uint256",
15021
+ "internalType": "uint256"
15022
+ }
15023
+ ],
15024
+ "stateMutability": "payable"
15025
+ },
15026
+ {
15027
+ "type": "function",
15028
+ "name": "settleFor",
15029
+ "inputs": [
15030
+ {
15031
+ "name": "recipient",
15032
+ "type": "address",
15033
+ "internalType": "address"
15034
+ }
15035
+ ],
15036
+ "outputs": [
15037
+ {
15038
+ "name": "",
15039
+ "type": "uint256",
15040
+ "internalType": "uint256"
15041
+ }
15042
+ ],
15043
+ "stateMutability": "payable"
15044
+ },
15045
+ {
15046
+ "type": "function",
15047
+ "name": "supportsInterface",
15048
+ "inputs": [
15049
+ {
15050
+ "name": "interfaceId",
15051
+ "type": "bytes4",
15052
+ "internalType": "bytes4"
15053
+ }
15054
+ ],
15055
+ "outputs": [
15056
+ {
15057
+ "name": "",
15058
+ "type": "bool",
15059
+ "internalType": "bool"
15060
+ }
15061
+ ],
15062
+ "stateMutability": "view"
15063
+ },
15064
+ {
15065
+ "type": "function",
15066
+ "name": "swap",
15067
+ "inputs": [
15068
+ {
15069
+ "name": "key",
15070
+ "type": "tuple",
15071
+ "internalType": "struct PoolKey",
15072
+ "components": [
15073
+ {
15074
+ "name": "currency0",
15075
+ "type": "address",
15076
+ "internalType": "Currency"
15077
+ },
15078
+ {
15079
+ "name": "currency1",
15080
+ "type": "address",
15081
+ "internalType": "Currency"
15082
+ },
15083
+ {
15084
+ "name": "fee",
15085
+ "type": "uint24",
15086
+ "internalType": "uint24"
15087
+ },
15088
+ {
15089
+ "name": "tickSpacing",
15090
+ "type": "int24",
15091
+ "internalType": "int24"
15092
+ },
15093
+ {
15094
+ "name": "hooks",
15095
+ "type": "address",
15096
+ "internalType": "contract IHooks"
15097
+ }
15098
+ ]
15099
+ },
15100
+ {
15101
+ "name": "params",
15102
+ "type": "tuple",
15103
+ "internalType": "struct SwapParams",
15104
+ "components": [
15105
+ {
15106
+ "name": "zeroForOne",
15107
+ "type": "bool",
15108
+ "internalType": "bool"
15109
+ },
15110
+ {
15111
+ "name": "amountSpecified",
15112
+ "type": "int256",
15113
+ "internalType": "int256"
15114
+ },
15115
+ {
15116
+ "name": "sqrtPriceLimitX96",
15117
+ "type": "uint160",
15118
+ "internalType": "uint160"
15119
+ }
15120
+ ]
15121
+ },
15122
+ {
15123
+ "name": "hookData",
15124
+ "type": "bytes",
15125
+ "internalType": "bytes"
15126
+ }
15127
+ ],
15128
+ "outputs": [
15129
+ {
15130
+ "name": "swapDelta",
15131
+ "type": "int256",
15132
+ "internalType": "BalanceDelta"
15133
+ }
15134
+ ],
15135
+ "stateMutability": "nonpayable"
15136
+ },
15137
+ {
15138
+ "type": "function",
15139
+ "name": "sync",
15140
+ "inputs": [
15141
+ {
15142
+ "name": "currency",
15143
+ "type": "address",
15144
+ "internalType": "Currency"
15145
+ }
15146
+ ],
15147
+ "outputs": [],
15148
+ "stateMutability": "nonpayable"
15149
+ },
15150
+ {
15151
+ "type": "function",
15152
+ "name": "take",
15153
+ "inputs": [
15154
+ {
15155
+ "name": "currency",
15156
+ "type": "address",
15157
+ "internalType": "Currency"
15158
+ },
15159
+ {
15160
+ "name": "to",
15161
+ "type": "address",
15162
+ "internalType": "address"
15163
+ },
15164
+ {
15165
+ "name": "amount",
15166
+ "type": "uint256",
15167
+ "internalType": "uint256"
15168
+ }
15169
+ ],
15170
+ "outputs": [],
15171
+ "stateMutability": "nonpayable"
15172
+ },
15173
+ {
15174
+ "type": "function",
15175
+ "name": "transfer",
15176
+ "inputs": [
15177
+ {
15178
+ "name": "receiver",
15179
+ "type": "address",
15180
+ "internalType": "address"
15181
+ },
15182
+ {
15183
+ "name": "id",
15184
+ "type": "uint256",
15185
+ "internalType": "uint256"
15186
+ },
15187
+ {
15188
+ "name": "amount",
15189
+ "type": "uint256",
15190
+ "internalType": "uint256"
15191
+ }
15192
+ ],
15193
+ "outputs": [
15194
+ {
15195
+ "name": "",
15196
+ "type": "bool",
15197
+ "internalType": "bool"
15198
+ }
15199
+ ],
15200
+ "stateMutability": "nonpayable"
15201
+ },
15202
+ {
15203
+ "type": "function",
15204
+ "name": "transferFrom",
15205
+ "inputs": [
15206
+ {
15207
+ "name": "sender",
15208
+ "type": "address",
15209
+ "internalType": "address"
15210
+ },
15211
+ {
15212
+ "name": "receiver",
15213
+ "type": "address",
15214
+ "internalType": "address"
15215
+ },
15216
+ {
15217
+ "name": "id",
15218
+ "type": "uint256",
15219
+ "internalType": "uint256"
15220
+ },
15221
+ {
15222
+ "name": "amount",
15223
+ "type": "uint256",
15224
+ "internalType": "uint256"
15225
+ }
15226
+ ],
15227
+ "outputs": [
15228
+ {
15229
+ "name": "",
15230
+ "type": "bool",
15231
+ "internalType": "bool"
15232
+ }
15233
+ ],
15234
+ "stateMutability": "nonpayable"
15235
+ },
15236
+ {
15237
+ "type": "function",
15238
+ "name": "transferOwnership",
15239
+ "inputs": [
15240
+ {
15241
+ "name": "newOwner",
15242
+ "type": "address",
15243
+ "internalType": "address"
15244
+ }
15245
+ ],
15246
+ "outputs": [],
15247
+ "stateMutability": "nonpayable"
15248
+ },
15249
+ {
15250
+ "type": "function",
15251
+ "name": "unlock",
15252
+ "inputs": [
15253
+ {
15254
+ "name": "data",
15255
+ "type": "bytes",
15256
+ "internalType": "bytes"
15257
+ }
15258
+ ],
15259
+ "outputs": [
15260
+ {
15261
+ "name": "result",
15262
+ "type": "bytes",
15263
+ "internalType": "bytes"
15264
+ }
15265
+ ],
15266
+ "stateMutability": "nonpayable"
15267
+ },
15268
+ {
15269
+ "type": "function",
15270
+ "name": "updateDynamicLPFee",
15271
+ "inputs": [
15272
+ {
15273
+ "name": "key",
15274
+ "type": "tuple",
15275
+ "internalType": "struct PoolKey",
15276
+ "components": [
15277
+ {
15278
+ "name": "currency0",
15279
+ "type": "address",
15280
+ "internalType": "Currency"
15281
+ },
15282
+ {
15283
+ "name": "currency1",
15284
+ "type": "address",
15285
+ "internalType": "Currency"
15286
+ },
15287
+ {
15288
+ "name": "fee",
15289
+ "type": "uint24",
15290
+ "internalType": "uint24"
15291
+ },
15292
+ {
15293
+ "name": "tickSpacing",
15294
+ "type": "int24",
15295
+ "internalType": "int24"
15296
+ },
15297
+ {
15298
+ "name": "hooks",
15299
+ "type": "address",
15300
+ "internalType": "contract IHooks"
15301
+ }
15302
+ ]
15303
+ },
15304
+ {
15305
+ "name": "newDynamicLPFee",
15306
+ "type": "uint24",
15307
+ "internalType": "uint24"
15308
+ }
15309
+ ],
15310
+ "outputs": [],
15311
+ "stateMutability": "nonpayable"
15312
+ },
15313
+ {
15314
+ "type": "event",
15315
+ "name": "Approval",
15316
+ "inputs": [
15317
+ {
15318
+ "name": "owner",
15319
+ "type": "address",
15320
+ "indexed": true,
15321
+ "internalType": "address"
15322
+ },
15323
+ {
15324
+ "name": "spender",
15325
+ "type": "address",
15326
+ "indexed": true,
15327
+ "internalType": "address"
15328
+ },
15329
+ {
15330
+ "name": "id",
15331
+ "type": "uint256",
15332
+ "indexed": true,
15333
+ "internalType": "uint256"
15334
+ },
15335
+ {
15336
+ "name": "amount",
15337
+ "type": "uint256",
15338
+ "indexed": false,
15339
+ "internalType": "uint256"
15340
+ }
15341
+ ],
15342
+ "anonymous": false
15343
+ },
15344
+ {
15345
+ "type": "event",
15346
+ "name": "Donate",
15347
+ "inputs": [
15348
+ {
15349
+ "name": "id",
15350
+ "type": "bytes32",
15351
+ "indexed": true,
15352
+ "internalType": "PoolId"
15353
+ },
15354
+ {
15355
+ "name": "sender",
15356
+ "type": "address",
15357
+ "indexed": true,
15358
+ "internalType": "address"
15359
+ },
15360
+ {
15361
+ "name": "amount0",
15362
+ "type": "uint256",
15363
+ "indexed": false,
15364
+ "internalType": "uint256"
15365
+ },
15366
+ {
15367
+ "name": "amount1",
15368
+ "type": "uint256",
15369
+ "indexed": false,
15370
+ "internalType": "uint256"
15371
+ }
15372
+ ],
15373
+ "anonymous": false
15374
+ },
15375
+ {
15376
+ "type": "event",
15377
+ "name": "Initialize",
15378
+ "inputs": [
15379
+ {
15380
+ "name": "id",
15381
+ "type": "bytes32",
15382
+ "indexed": true,
15383
+ "internalType": "PoolId"
15384
+ },
15385
+ {
15386
+ "name": "currency0",
15387
+ "type": "address",
15388
+ "indexed": true,
15389
+ "internalType": "Currency"
15390
+ },
15391
+ {
15392
+ "name": "currency1",
15393
+ "type": "address",
15394
+ "indexed": true,
15395
+ "internalType": "Currency"
15396
+ },
15397
+ {
15398
+ "name": "fee",
15399
+ "type": "uint24",
15400
+ "indexed": false,
15401
+ "internalType": "uint24"
15402
+ },
15403
+ {
15404
+ "name": "tickSpacing",
15405
+ "type": "int24",
15406
+ "indexed": false,
15407
+ "internalType": "int24"
15408
+ },
15409
+ {
15410
+ "name": "hooks",
15411
+ "type": "address",
15412
+ "indexed": false,
15413
+ "internalType": "contract IHooks"
15414
+ },
15415
+ {
15416
+ "name": "sqrtPriceX96",
15417
+ "type": "uint160",
15418
+ "indexed": false,
15419
+ "internalType": "uint160"
15420
+ },
15421
+ {
15422
+ "name": "tick",
15423
+ "type": "int24",
15424
+ "indexed": false,
15425
+ "internalType": "int24"
15426
+ }
15427
+ ],
15428
+ "anonymous": false
15429
+ },
15430
+ {
15431
+ "type": "event",
15432
+ "name": "ModifyLiquidity",
15433
+ "inputs": [
15434
+ {
15435
+ "name": "id",
15436
+ "type": "bytes32",
15437
+ "indexed": true,
15438
+ "internalType": "PoolId"
15439
+ },
15440
+ {
15441
+ "name": "sender",
15442
+ "type": "address",
15443
+ "indexed": true,
15444
+ "internalType": "address"
15445
+ },
15446
+ {
15447
+ "name": "tickLower",
15448
+ "type": "int24",
15449
+ "indexed": false,
15450
+ "internalType": "int24"
15451
+ },
15452
+ {
15453
+ "name": "tickUpper",
15454
+ "type": "int24",
15455
+ "indexed": false,
15456
+ "internalType": "int24"
15457
+ },
15458
+ {
15459
+ "name": "liquidityDelta",
15460
+ "type": "int256",
15461
+ "indexed": false,
15462
+ "internalType": "int256"
15463
+ },
15464
+ {
15465
+ "name": "salt",
15466
+ "type": "bytes32",
15467
+ "indexed": false,
15468
+ "internalType": "bytes32"
15469
+ }
15470
+ ],
15471
+ "anonymous": false
15472
+ },
15473
+ {
15474
+ "type": "event",
15475
+ "name": "OperatorSet",
15476
+ "inputs": [
15477
+ {
15478
+ "name": "owner",
15479
+ "type": "address",
15480
+ "indexed": true,
15481
+ "internalType": "address"
15482
+ },
15483
+ {
15484
+ "name": "operator",
15485
+ "type": "address",
15486
+ "indexed": true,
15487
+ "internalType": "address"
15488
+ },
15489
+ {
15490
+ "name": "approved",
15491
+ "type": "bool",
15492
+ "indexed": false,
15493
+ "internalType": "bool"
15494
+ }
15495
+ ],
15496
+ "anonymous": false
15497
+ },
15498
+ {
15499
+ "type": "event",
15500
+ "name": "OwnershipTransferred",
15501
+ "inputs": [
15502
+ {
15503
+ "name": "user",
15504
+ "type": "address",
15505
+ "indexed": true,
15506
+ "internalType": "address"
15507
+ },
15508
+ {
15509
+ "name": "newOwner",
15510
+ "type": "address",
15511
+ "indexed": true,
15512
+ "internalType": "address"
15513
+ }
15514
+ ],
15515
+ "anonymous": false
15516
+ },
15517
+ {
15518
+ "type": "event",
15519
+ "name": "ProtocolFeeControllerUpdated",
15520
+ "inputs": [
15521
+ {
15522
+ "name": "protocolFeeController",
15523
+ "type": "address",
15524
+ "indexed": true,
15525
+ "internalType": "address"
15526
+ }
15527
+ ],
15528
+ "anonymous": false
15529
+ },
15530
+ {
15531
+ "type": "event",
15532
+ "name": "ProtocolFeeUpdated",
15533
+ "inputs": [
15534
+ {
15535
+ "name": "id",
15536
+ "type": "bytes32",
15537
+ "indexed": true,
15538
+ "internalType": "PoolId"
15539
+ },
15540
+ {
15541
+ "name": "protocolFee",
15542
+ "type": "uint24",
15543
+ "indexed": false,
15544
+ "internalType": "uint24"
15545
+ }
15546
+ ],
15547
+ "anonymous": false
15548
+ },
15549
+ {
15550
+ "type": "event",
15551
+ "name": "Swap",
15552
+ "inputs": [
15553
+ {
15554
+ "name": "id",
15555
+ "type": "bytes32",
15556
+ "indexed": true,
15557
+ "internalType": "PoolId"
15558
+ },
15559
+ {
15560
+ "name": "sender",
15561
+ "type": "address",
15562
+ "indexed": true,
15563
+ "internalType": "address"
15564
+ },
15565
+ {
15566
+ "name": "amount0",
15567
+ "type": "int128",
15568
+ "indexed": false,
15569
+ "internalType": "int128"
15570
+ },
15571
+ {
15572
+ "name": "amount1",
15573
+ "type": "int128",
15574
+ "indexed": false,
15575
+ "internalType": "int128"
15576
+ },
15577
+ {
15578
+ "name": "sqrtPriceX96",
15579
+ "type": "uint160",
15580
+ "indexed": false,
15581
+ "internalType": "uint160"
15582
+ },
15583
+ {
15584
+ "name": "liquidity",
15585
+ "type": "uint128",
15586
+ "indexed": false,
15587
+ "internalType": "uint128"
15588
+ },
15589
+ {
15590
+ "name": "tick",
15591
+ "type": "int24",
15592
+ "indexed": false,
15593
+ "internalType": "int24"
15594
+ },
15595
+ {
15596
+ "name": "fee",
15597
+ "type": "uint24",
15598
+ "indexed": false,
15599
+ "internalType": "uint24"
15600
+ }
15601
+ ],
15602
+ "anonymous": false
15603
+ },
15604
+ {
15605
+ "type": "event",
15606
+ "name": "Transfer",
15607
+ "inputs": [
15608
+ {
15609
+ "name": "caller",
15610
+ "type": "address",
15611
+ "indexed": false,
15612
+ "internalType": "address"
15613
+ },
15614
+ {
15615
+ "name": "from",
15616
+ "type": "address",
15617
+ "indexed": true,
15618
+ "internalType": "address"
15619
+ },
15620
+ {
15621
+ "name": "to",
15622
+ "type": "address",
15623
+ "indexed": true,
15624
+ "internalType": "address"
15625
+ },
15626
+ {
15627
+ "name": "id",
15628
+ "type": "uint256",
15629
+ "indexed": true,
15630
+ "internalType": "uint256"
15631
+ },
15632
+ {
15633
+ "name": "amount",
15634
+ "type": "uint256",
15635
+ "indexed": false,
15636
+ "internalType": "uint256"
15637
+ }
15638
+ ],
15639
+ "anonymous": false
15640
+ },
15641
+ {
15642
+ "type": "error",
15643
+ "name": "AlreadyUnlocked",
15644
+ "inputs": []
15645
+ },
15646
+ {
15647
+ "type": "error",
15648
+ "name": "CurrenciesOutOfOrderOrEqual",
15649
+ "inputs": [
15650
+ {
15651
+ "name": "currency0",
15652
+ "type": "address",
15653
+ "internalType": "address"
15654
+ },
15655
+ {
15656
+ "name": "currency1",
15657
+ "type": "address",
15658
+ "internalType": "address"
15659
+ }
15660
+ ]
15661
+ },
15662
+ {
15663
+ "type": "error",
15664
+ "name": "CurrencyNotSettled",
15665
+ "inputs": []
15666
+ },
15667
+ {
15668
+ "type": "error",
15669
+ "name": "DelegateCallNotAllowed",
15670
+ "inputs": []
15671
+ },
15672
+ {
15673
+ "type": "error",
15674
+ "name": "InvalidCaller",
15675
+ "inputs": []
15676
+ },
15677
+ {
15678
+ "type": "error",
15679
+ "name": "ManagerLocked",
15680
+ "inputs": []
15681
+ },
15682
+ {
15683
+ "type": "error",
15684
+ "name": "MustClearExactPositiveDelta",
15685
+ "inputs": []
15686
+ },
15687
+ {
15688
+ "type": "error",
15689
+ "name": "NonzeroNativeValue",
15690
+ "inputs": []
15691
+ },
15692
+ {
15693
+ "type": "error",
15694
+ "name": "PoolNotInitialized",
15695
+ "inputs": []
15696
+ },
15697
+ {
15698
+ "type": "error",
15699
+ "name": "ProtocolFeeCurrencySynced",
15700
+ "inputs": []
15701
+ },
15702
+ {
15703
+ "type": "error",
15704
+ "name": "ProtocolFeeTooLarge",
15705
+ "inputs": [
15706
+ {
15707
+ "name": "fee",
15708
+ "type": "uint24",
15709
+ "internalType": "uint24"
15710
+ }
15711
+ ]
15712
+ },
15713
+ {
15714
+ "type": "error",
15715
+ "name": "SwapAmountCannotBeZero",
15716
+ "inputs": []
15717
+ },
15718
+ {
15719
+ "type": "error",
15720
+ "name": "TickSpacingTooLarge",
15721
+ "inputs": [
15722
+ {
15723
+ "name": "tickSpacing",
15724
+ "type": "int24",
15725
+ "internalType": "int24"
15726
+ }
15727
+ ]
15728
+ },
15729
+ {
15730
+ "type": "error",
15731
+ "name": "TickSpacingTooSmall",
15732
+ "inputs": [
15733
+ {
15734
+ "name": "tickSpacing",
15735
+ "type": "int24",
15736
+ "internalType": "int24"
15737
+ }
15738
+ ]
15739
+ },
15740
+ {
15741
+ "type": "error",
15742
+ "name": "UnauthorizedDynamicLPFeeUpdate",
15743
+ "inputs": []
15744
+ }
15745
+ ];