@zoralabs/protocol-deployments 0.7.2 → 0.7.6

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/index.js CHANGED
@@ -6,7 +6,8 @@ import {
6
6
  getAbiItem,
7
7
  keccak256,
8
8
  toHex
9
- } from "./chunk-TP53IMLY.js";
9
+ } from "./chunk-G6JVDOS5.js";
10
+ import "./chunk-BYTNVMX7.js";
10
11
  import {
11
12
  __export
12
13
  } from "./chunk-PR4QN5HX.js";
@@ -2381,6 +2382,7 @@ var coinABI = [
2381
2382
  ],
2382
2383
  name: "InvalidAccountNonce"
2383
2384
  },
2385
+ { type: "error", inputs: [], name: "InvalidCurrency" },
2384
2386
  { type: "error", inputs: [], name: "InvalidCurrencyLowerTick" },
2385
2387
  { type: "error", inputs: [], name: "InvalidInitialization" },
2386
2388
  { type: "error", inputs: [], name: "InvalidMarketType" },
@@ -2430,6 +2432,7 @@ var coinFactoryABI = [
2430
2432
  inputs: [
2431
2433
  { name: "coinV4Impl_", internalType: "address", type: "address" },
2432
2434
  { name: "creatorCoinImpl_", internalType: "address", type: "address" },
2435
+ { name: "trendCoinImpl_", internalType: "address", type: "address" },
2433
2436
  { name: "hook_", internalType: "address", type: "address" },
2434
2437
  { name: "zoraHookRegistry_", internalType: "address", type: "address" }
2435
2438
  ],
@@ -2602,6 +2605,20 @@ var coinFactoryABI = [
2602
2605
  ],
2603
2606
  stateMutability: "payable"
2604
2607
  },
2608
+ {
2609
+ type: "function",
2610
+ inputs: [
2611
+ { name: "symbol", internalType: "string", type: "string" },
2612
+ { name: "postDeployHook", internalType: "address", type: "address" },
2613
+ { name: "postDeployHookData", internalType: "bytes", type: "bytes" }
2614
+ ],
2615
+ name: "deployTrendCoin",
2616
+ outputs: [
2617
+ { name: "coin", internalType: "address", type: "address" },
2618
+ { name: "postDeployHookDataOut", internalType: "bytes", type: "bytes" }
2619
+ ],
2620
+ stateMutability: "payable"
2621
+ },
2605
2622
  {
2606
2623
  type: "function",
2607
2624
  inputs: [
@@ -2680,6 +2697,27 @@ var coinFactoryABI = [
2680
2697
  outputs: [],
2681
2698
  stateMutability: "nonpayable"
2682
2699
  },
2700
+ {
2701
+ type: "function",
2702
+ inputs: [
2703
+ { name: "currency", internalType: "address", type: "address" },
2704
+ { name: "tickLower", internalType: "int24[]", type: "int24[]" },
2705
+ { name: "tickUpper", internalType: "int24[]", type: "int24[]" },
2706
+ {
2707
+ name: "numDiscoveryPositions",
2708
+ internalType: "uint16[]",
2709
+ type: "uint16[]"
2710
+ },
2711
+ {
2712
+ name: "maxDiscoverySupplyShare",
2713
+ internalType: "uint256[]",
2714
+ type: "uint256[]"
2715
+ }
2716
+ ],
2717
+ name: "setTrendCoinPoolConfig",
2718
+ outputs: [],
2719
+ stateMutability: "nonpayable"
2720
+ },
2683
2721
  {
2684
2722
  type: "function",
2685
2723
  inputs: [{ name: "newOwner", internalType: "address", type: "address" }],
@@ -2687,6 +2725,27 @@ var coinFactoryABI = [
2687
2725
  outputs: [],
2688
2726
  stateMutability: "nonpayable"
2689
2727
  },
2728
+ {
2729
+ type: "function",
2730
+ inputs: [{ name: "symbol", internalType: "string", type: "string" }],
2731
+ name: "trendCoinAddress",
2732
+ outputs: [{ name: "", internalType: "address", type: "address" }],
2733
+ stateMutability: "view"
2734
+ },
2735
+ {
2736
+ type: "function",
2737
+ inputs: [],
2738
+ name: "trendCoinImpl",
2739
+ outputs: [{ name: "", internalType: "address", type: "address" }],
2740
+ stateMutability: "view"
2741
+ },
2742
+ {
2743
+ type: "function",
2744
+ inputs: [],
2745
+ name: "trendCoinPoolConfig",
2746
+ outputs: [{ name: "", internalType: "bytes", type: "bytes" }],
2747
+ stateMutability: "view"
2748
+ },
2690
2749
  {
2691
2750
  type: "function",
2692
2751
  inputs: [
@@ -2952,6 +3011,75 @@ var coinFactoryABI = [
2952
3011
  ],
2953
3012
  name: "OwnershipTransferred"
2954
3013
  },
3014
+ {
3015
+ type: "event",
3016
+ anonymous: false,
3017
+ inputs: [
3018
+ {
3019
+ name: "caller",
3020
+ internalType: "address",
3021
+ type: "address",
3022
+ indexed: true
3023
+ },
3024
+ {
3025
+ name: "symbol",
3026
+ internalType: "string",
3027
+ type: "string",
3028
+ indexed: false
3029
+ },
3030
+ {
3031
+ name: "coin",
3032
+ internalType: "address",
3033
+ type: "address",
3034
+ indexed: false
3035
+ },
3036
+ {
3037
+ name: "poolKey",
3038
+ internalType: "struct PoolKey",
3039
+ type: "tuple",
3040
+ components: [
3041
+ { name: "currency0", internalType: "Currency", type: "address" },
3042
+ { name: "currency1", internalType: "Currency", type: "address" },
3043
+ { name: "fee", internalType: "uint24", type: "uint24" },
3044
+ { name: "tickSpacing", internalType: "int24", type: "int24" },
3045
+ { name: "hooks", internalType: "contract IHooks", type: "address" }
3046
+ ],
3047
+ indexed: false
3048
+ },
3049
+ {
3050
+ name: "poolKeyHash",
3051
+ internalType: "bytes32",
3052
+ type: "bytes32",
3053
+ indexed: false
3054
+ },
3055
+ {
3056
+ name: "poolConfig",
3057
+ internalType: "bytes",
3058
+ type: "bytes",
3059
+ indexed: false
3060
+ },
3061
+ {
3062
+ name: "version",
3063
+ internalType: "string",
3064
+ type: "string",
3065
+ indexed: false
3066
+ }
3067
+ ],
3068
+ name: "TrendCoinCreated"
3069
+ },
3070
+ {
3071
+ type: "event",
3072
+ anonymous: false,
3073
+ inputs: [
3074
+ {
3075
+ name: "poolConfig",
3076
+ internalType: "bytes",
3077
+ type: "bytes",
3078
+ indexed: false
3079
+ }
3080
+ ],
3081
+ name: "TrendCoinPoolConfigUpdated"
3082
+ },
2955
3083
  {
2956
3084
  type: "event",
2957
3085
  anonymous: false,
@@ -3025,6 +3153,15 @@ var coinFactoryABI = [
3025
3153
  name: "OwnableUnauthorizedAccount"
3026
3154
  },
3027
3155
  { type: "error", inputs: [], name: "ReentrancyGuardReentrantCall" },
3156
+ {
3157
+ type: "error",
3158
+ inputs: [{ name: "symbol", internalType: "string", type: "string" }],
3159
+ name: "TickerAlreadyUsed"
3160
+ },
3161
+ { type: "error", inputs: [], name: "TickerInvalidCharacters" },
3162
+ { type: "error", inputs: [], name: "TickerTooLong" },
3163
+ { type: "error", inputs: [], name: "TickerTooShort" },
3164
+ { type: "error", inputs: [], name: "TrendCoinPoolConfigNotSet" },
3028
3165
  { type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" },
3029
3166
  {
3030
3167
  type: "error",
@@ -3039,6 +3176,7 @@ var coinFactoryABI = [
3039
3176
  ],
3040
3177
  name: "UpgradeToMismatchedContractName"
3041
3178
  },
3179
+ { type: "error", inputs: [], name: "UseSpecificTrendCoinInitialize" },
3042
3180
  { type: "error", inputs: [], name: "ZeroDiscoveryPositions" },
3043
3181
  { type: "error", inputs: [], name: "ZeroDiscoverySupplyShare" },
3044
3182
  { type: "error", inputs: [], name: "AddressZero" },
@@ -3146,6 +3284,7 @@ var coinFactoryABI = [
3146
3284
  ],
3147
3285
  name: "InvalidAccountNonce"
3148
3286
  },
3287
+ { type: "error", inputs: [], name: "InvalidCurrency" },
3149
3288
  { type: "error", inputs: [], name: "InvalidCurrencyLowerTick" },
3150
3289
  { type: "error", inputs: [], name: "InvalidInitialization" },
3151
3290
  { type: "error", inputs: [], name: "InvalidMarketType" },
@@ -6483,6 +6622,7 @@ var devCoinFactoryABI = [
6483
6622
  inputs: [
6484
6623
  { name: "coinV4Impl_", internalType: "address", type: "address" },
6485
6624
  { name: "creatorCoinImpl_", internalType: "address", type: "address" },
6625
+ { name: "trendCoinImpl_", internalType: "address", type: "address" },
6486
6626
  { name: "hook_", internalType: "address", type: "address" },
6487
6627
  { name: "zoraHookRegistry_", internalType: "address", type: "address" }
6488
6628
  ],
@@ -6655,6 +6795,20 @@ var devCoinFactoryABI = [
6655
6795
  ],
6656
6796
  stateMutability: "payable"
6657
6797
  },
6798
+ {
6799
+ type: "function",
6800
+ inputs: [
6801
+ { name: "symbol", internalType: "string", type: "string" },
6802
+ { name: "postDeployHook", internalType: "address", type: "address" },
6803
+ { name: "postDeployHookData", internalType: "bytes", type: "bytes" }
6804
+ ],
6805
+ name: "deployTrendCoin",
6806
+ outputs: [
6807
+ { name: "coin", internalType: "address", type: "address" },
6808
+ { name: "postDeployHookDataOut", internalType: "bytes", type: "bytes" }
6809
+ ],
6810
+ stateMutability: "payable"
6811
+ },
6658
6812
  {
6659
6813
  type: "function",
6660
6814
  inputs: [
@@ -6733,6 +6887,27 @@ var devCoinFactoryABI = [
6733
6887
  outputs: [],
6734
6888
  stateMutability: "nonpayable"
6735
6889
  },
6890
+ {
6891
+ type: "function",
6892
+ inputs: [
6893
+ { name: "currency", internalType: "address", type: "address" },
6894
+ { name: "tickLower", internalType: "int24[]", type: "int24[]" },
6895
+ { name: "tickUpper", internalType: "int24[]", type: "int24[]" },
6896
+ {
6897
+ name: "numDiscoveryPositions",
6898
+ internalType: "uint16[]",
6899
+ type: "uint16[]"
6900
+ },
6901
+ {
6902
+ name: "maxDiscoverySupplyShare",
6903
+ internalType: "uint256[]",
6904
+ type: "uint256[]"
6905
+ }
6906
+ ],
6907
+ name: "setTrendCoinPoolConfig",
6908
+ outputs: [],
6909
+ stateMutability: "nonpayable"
6910
+ },
6736
6911
  {
6737
6912
  type: "function",
6738
6913
  inputs: [{ name: "newOwner", internalType: "address", type: "address" }],
@@ -6740,6 +6915,27 @@ var devCoinFactoryABI = [
6740
6915
  outputs: [],
6741
6916
  stateMutability: "nonpayable"
6742
6917
  },
6918
+ {
6919
+ type: "function",
6920
+ inputs: [{ name: "symbol", internalType: "string", type: "string" }],
6921
+ name: "trendCoinAddress",
6922
+ outputs: [{ name: "", internalType: "address", type: "address" }],
6923
+ stateMutability: "view"
6924
+ },
6925
+ {
6926
+ type: "function",
6927
+ inputs: [],
6928
+ name: "trendCoinImpl",
6929
+ outputs: [{ name: "", internalType: "address", type: "address" }],
6930
+ stateMutability: "view"
6931
+ },
6932
+ {
6933
+ type: "function",
6934
+ inputs: [],
6935
+ name: "trendCoinPoolConfig",
6936
+ outputs: [{ name: "", internalType: "bytes", type: "bytes" }],
6937
+ stateMutability: "view"
6938
+ },
6743
6939
  {
6744
6940
  type: "function",
6745
6941
  inputs: [
@@ -7005,6 +7201,75 @@ var devCoinFactoryABI = [
7005
7201
  ],
7006
7202
  name: "OwnershipTransferred"
7007
7203
  },
7204
+ {
7205
+ type: "event",
7206
+ anonymous: false,
7207
+ inputs: [
7208
+ {
7209
+ name: "caller",
7210
+ internalType: "address",
7211
+ type: "address",
7212
+ indexed: true
7213
+ },
7214
+ {
7215
+ name: "symbol",
7216
+ internalType: "string",
7217
+ type: "string",
7218
+ indexed: false
7219
+ },
7220
+ {
7221
+ name: "coin",
7222
+ internalType: "address",
7223
+ type: "address",
7224
+ indexed: false
7225
+ },
7226
+ {
7227
+ name: "poolKey",
7228
+ internalType: "struct PoolKey",
7229
+ type: "tuple",
7230
+ components: [
7231
+ { name: "currency0", internalType: "Currency", type: "address" },
7232
+ { name: "currency1", internalType: "Currency", type: "address" },
7233
+ { name: "fee", internalType: "uint24", type: "uint24" },
7234
+ { name: "tickSpacing", internalType: "int24", type: "int24" },
7235
+ { name: "hooks", internalType: "contract IHooks", type: "address" }
7236
+ ],
7237
+ indexed: false
7238
+ },
7239
+ {
7240
+ name: "poolKeyHash",
7241
+ internalType: "bytes32",
7242
+ type: "bytes32",
7243
+ indexed: false
7244
+ },
7245
+ {
7246
+ name: "poolConfig",
7247
+ internalType: "bytes",
7248
+ type: "bytes",
7249
+ indexed: false
7250
+ },
7251
+ {
7252
+ name: "version",
7253
+ internalType: "string",
7254
+ type: "string",
7255
+ indexed: false
7256
+ }
7257
+ ],
7258
+ name: "TrendCoinCreated"
7259
+ },
7260
+ {
7261
+ type: "event",
7262
+ anonymous: false,
7263
+ inputs: [
7264
+ {
7265
+ name: "poolConfig",
7266
+ internalType: "bytes",
7267
+ type: "bytes",
7268
+ indexed: false
7269
+ }
7270
+ ],
7271
+ name: "TrendCoinPoolConfigUpdated"
7272
+ },
7008
7273
  {
7009
7274
  type: "event",
7010
7275
  anonymous: false,
@@ -7078,6 +7343,15 @@ var devCoinFactoryABI = [
7078
7343
  name: "OwnableUnauthorizedAccount"
7079
7344
  },
7080
7345
  { type: "error", inputs: [], name: "ReentrancyGuardReentrantCall" },
7346
+ {
7347
+ type: "error",
7348
+ inputs: [{ name: "symbol", internalType: "string", type: "string" }],
7349
+ name: "TickerAlreadyUsed"
7350
+ },
7351
+ { type: "error", inputs: [], name: "TickerInvalidCharacters" },
7352
+ { type: "error", inputs: [], name: "TickerTooLong" },
7353
+ { type: "error", inputs: [], name: "TickerTooShort" },
7354
+ { type: "error", inputs: [], name: "TrendCoinPoolConfigNotSet" },
7081
7355
  { type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" },
7082
7356
  {
7083
7357
  type: "error",
@@ -7092,6 +7366,7 @@ var devCoinFactoryABI = [
7092
7366
  ],
7093
7367
  name: "UpgradeToMismatchedContractName"
7094
7368
  },
7369
+ { type: "error", inputs: [], name: "UseSpecificTrendCoinInitialize" },
7095
7370
  { type: "error", inputs: [], name: "ZeroDiscoveryPositions" },
7096
7371
  { type: "error", inputs: [], name: "ZeroDiscoverySupplyShare" },
7097
7372
  { type: "error", inputs: [], name: "AddressZero" },
@@ -7199,6 +7474,7 @@ var devCoinFactoryABI = [
7199
7474
  ],
7200
7475
  name: "InvalidAccountNonce"
7201
7476
  },
7477
+ { type: "error", inputs: [], name: "InvalidCurrency" },
7202
7478
  { type: "error", inputs: [], name: "InvalidCurrencyLowerTick" },
7203
7479
  { type: "error", inputs: [], name: "InvalidInitialization" },
7204
7480
  { type: "error", inputs: [], name: "InvalidMarketType" },
@@ -7992,6 +8268,7 @@ var devZoraLimitOrderBookABI = [
7992
8268
  ],
7993
8269
  name: "InvalidAccountNonce"
7994
8270
  },
8271
+ { type: "error", inputs: [], name: "InvalidCurrency" },
7995
8272
  { type: "error", inputs: [], name: "InvalidCurrencyLowerTick" },
7996
8273
  { type: "error", inputs: [], name: "InvalidInitialization" },
7997
8274
  { type: "error", inputs: [], name: "InvalidMarketType" },
@@ -8101,7 +8378,40 @@ var devZoraLimitOrderBookABI = [
8101
8378
  name: "UpgradePathNotRegistered"
8102
8379
  },
8103
8380
  { type: "error", inputs: [], name: "ZoraHookRegistryCannotBeZeroAddress" },
8104
- { type: "error", inputs: [], name: "ZoraLimitOrderBookCannotBeZeroAddress" }
8381
+ { type: "error", inputs: [], name: "ZoraLimitOrderBookCannotBeZeroAddress" },
8382
+ { type: "error", inputs: [], name: "AlreadyUnlocked" },
8383
+ {
8384
+ type: "error",
8385
+ inputs: [
8386
+ { name: "currency0", internalType: "address", type: "address" },
8387
+ { name: "currency1", internalType: "address", type: "address" }
8388
+ ],
8389
+ name: "CurrenciesOutOfOrderOrEqual"
8390
+ },
8391
+ { type: "error", inputs: [], name: "CurrencyNotSettled" },
8392
+ { type: "error", inputs: [], name: "InvalidCaller" },
8393
+ { type: "error", inputs: [], name: "ManagerLocked" },
8394
+ { type: "error", inputs: [], name: "MustClearExactPositiveDelta" },
8395
+ { type: "error", inputs: [], name: "NonzeroNativeValue" },
8396
+ { type: "error", inputs: [], name: "PoolNotInitialized" },
8397
+ { type: "error", inputs: [], name: "ProtocolFeeCurrencySynced" },
8398
+ {
8399
+ type: "error",
8400
+ inputs: [{ name: "fee", internalType: "uint24", type: "uint24" }],
8401
+ name: "ProtocolFeeTooLarge"
8402
+ },
8403
+ { type: "error", inputs: [], name: "SwapAmountCannotBeZero" },
8404
+ {
8405
+ type: "error",
8406
+ inputs: [{ name: "tickSpacing", internalType: "int24", type: "int24" }],
8407
+ name: "TickSpacingTooLarge"
8408
+ },
8409
+ {
8410
+ type: "error",
8411
+ inputs: [{ name: "tickSpacing", internalType: "int24", type: "int24" }],
8412
+ name: "TickSpacingTooSmall"
8413
+ },
8414
+ { type: "error", inputs: [], name: "UnauthorizedDynamicLPFeeUpdate" }
8105
8415
  ];
8106
8416
  var devZoraLimitOrderBookAddress = {
8107
8417
  8453: "0xCe2C8032F85aB6a7148138F8a1235d2b17D53Dc5"
@@ -8475,9 +8785,68 @@ var devZoraRouterABI = [
8475
8785
  { type: "error", inputs: [], name: "V3RouteDoesNotConnectToV4RouteStart" },
8476
8786
  { type: "error", inputs: [], name: "ZeroSwapDelta" },
8477
8787
  { type: "error", inputs: [], name: "AddressZero" },
8478
- { type: "error", inputs: [], name: "AlreadyOwner" },
8479
- { type: "error", inputs: [], name: "CannotMintZeroLiquidity" },
8480
- {
8788
+ { type: "error", inputs: [], name: "ArrayLengthMismatch" },
8789
+ { type: "error", inputs: [], name: "CallerNotPermitted" },
8790
+ {
8791
+ type: "error",
8792
+ inputs: [
8793
+ { name: "orderId", internalType: "bytes32", type: "bytes32" },
8794
+ { name: "expectedCoin", internalType: "address", type: "address" },
8795
+ { name: "actualCoin", internalType: "address", type: "address" }
8796
+ ],
8797
+ name: "CoinMismatch"
8798
+ },
8799
+ { type: "error", inputs: [], name: "InsufficientForwardedFunds" },
8800
+ { type: "error", inputs: [], name: "InsufficientTransferFunds" },
8801
+ {
8802
+ type: "error",
8803
+ inputs: [
8804
+ { name: "startTick", internalType: "int24", type: "int24" },
8805
+ { name: "endTick", internalType: "int24", type: "int24" },
8806
+ { name: "isCurrency0", internalType: "bool", type: "bool" }
8807
+ ],
8808
+ name: "InvalidFillWindow"
8809
+ },
8810
+ { type: "error", inputs: [], name: "InvalidOrder" },
8811
+ { type: "error", inputs: [], name: "InvalidPoolKey" },
8812
+ { type: "error", inputs: [], name: "MaxFillCountCannotBeZero" },
8813
+ {
8814
+ type: "error",
8815
+ inputs: [
8816
+ { name: "withdrawn", internalType: "uint256", type: "uint256" },
8817
+ { name: "minAmountOut", internalType: "uint256", type: "uint256" }
8818
+ ],
8819
+ name: "MinAmountNotReached"
8820
+ },
8821
+ { type: "error", inputs: [], name: "NativeValueMismatch" },
8822
+ { type: "error", inputs: [], name: "NotPoolManager" },
8823
+ { type: "error", inputs: [], name: "OnlyZoraHook" },
8824
+ { type: "error", inputs: [], name: "OrderClosed" },
8825
+ { type: "error", inputs: [], name: "OrderFillable" },
8826
+ { type: "error", inputs: [], name: "OrderNotMaker" },
8827
+ {
8828
+ type: "error",
8829
+ inputs: [{ name: "owner", internalType: "address", type: "address" }],
8830
+ name: "OwnableInvalidOwner"
8831
+ },
8832
+ {
8833
+ type: "error",
8834
+ inputs: [{ name: "account", internalType: "address", type: "address" }],
8835
+ name: "OwnableUnauthorizedAccount"
8836
+ },
8837
+ { type: "error", inputs: [], name: "PathMustHaveAtLeastOneStep" },
8838
+ { type: "error", inputs: [], name: "PermittedCallersLengthMismatch" },
8839
+ { type: "error", inputs: [], name: "RouterMsgSenderInvalid" },
8840
+ { type: "error", inputs: [], name: "UnknownCallback" },
8841
+ { type: "error", inputs: [], name: "UnlockedFillNotAllowed" },
8842
+ { type: "error", inputs: [], name: "WethTransferFailed" },
8843
+ { type: "error", inputs: [], name: "ZeroMaker" },
8844
+ { type: "error", inputs: [], name: "ZeroOrderSize" },
8845
+ { type: "error", inputs: [], name: "ZeroRealizedOrder" },
8846
+ { type: "error", inputs: [], name: "AddressZero" },
8847
+ { type: "error", inputs: [], name: "AlreadyOwner" },
8848
+ { type: "error", inputs: [], name: "CannotMintZeroLiquidity" },
8849
+ {
8481
8850
  type: "error",
8482
8851
  inputs: [],
8483
8852
  name: "DopplerPoolMustHaveMoreThan2DiscoveryPositions"
@@ -8560,6 +8929,7 @@ var devZoraRouterABI = [
8560
8929
  ],
8561
8930
  name: "InvalidAccountNonce"
8562
8931
  },
8932
+ { type: "error", inputs: [], name: "InvalidCurrency" },
8563
8933
  { type: "error", inputs: [], name: "InvalidCurrencyLowerTick" },
8564
8934
  { type: "error", inputs: [], name: "InvalidInitialization" },
8565
8935
  { type: "error", inputs: [], name: "InvalidMarketType" },
@@ -8670,65 +9040,51 @@ var devZoraRouterABI = [
8670
9040
  },
8671
9041
  { type: "error", inputs: [], name: "ZoraHookRegistryCannotBeZeroAddress" },
8672
9042
  { type: "error", inputs: [], name: "ZoraLimitOrderBookCannotBeZeroAddress" },
8673
- { type: "error", inputs: [], name: "AddressZero" },
8674
- { type: "error", inputs: [], name: "ArrayLengthMismatch" },
8675
- { type: "error", inputs: [], name: "CallerNotPermitted" },
9043
+ { type: "error", inputs: [], name: "AlreadyUnlocked" },
8676
9044
  {
8677
9045
  type: "error",
8678
9046
  inputs: [
8679
- { name: "orderId", internalType: "bytes32", type: "bytes32" },
8680
- { name: "expectedCoin", internalType: "address", type: "address" },
8681
- { name: "actualCoin", internalType: "address", type: "address" }
9047
+ { name: "currency0", internalType: "address", type: "address" },
9048
+ { name: "currency1", internalType: "address", type: "address" }
8682
9049
  ],
8683
- name: "CoinMismatch"
9050
+ name: "CurrenciesOutOfOrderOrEqual"
8684
9051
  },
8685
- { type: "error", inputs: [], name: "InsufficientForwardedFunds" },
8686
- { type: "error", inputs: [], name: "InsufficientTransferFunds" },
9052
+ { type: "error", inputs: [], name: "CurrencyNotSettled" },
9053
+ { type: "error", inputs: [], name: "InvalidCaller" },
9054
+ { type: "error", inputs: [], name: "ManagerLocked" },
9055
+ { type: "error", inputs: [], name: "MustClearExactPositiveDelta" },
9056
+ { type: "error", inputs: [], name: "NonzeroNativeValue" },
9057
+ { type: "error", inputs: [], name: "PoolNotInitialized" },
9058
+ { type: "error", inputs: [], name: "ProtocolFeeCurrencySynced" },
8687
9059
  {
8688
9060
  type: "error",
8689
- inputs: [
8690
- { name: "startTick", internalType: "int24", type: "int24" },
8691
- { name: "endTick", internalType: "int24", type: "int24" },
8692
- { name: "isCurrency0", internalType: "bool", type: "bool" }
8693
- ],
8694
- name: "InvalidFillWindow"
9061
+ inputs: [{ name: "fee", internalType: "uint24", type: "uint24" }],
9062
+ name: "ProtocolFeeTooLarge"
8695
9063
  },
8696
- { type: "error", inputs: [], name: "InvalidOrder" },
8697
- { type: "error", inputs: [], name: "InvalidPoolKey" },
8698
- { type: "error", inputs: [], name: "MaxFillCountCannotBeZero" },
9064
+ { type: "error", inputs: [], name: "SwapAmountCannotBeZero" },
8699
9065
  {
8700
9066
  type: "error",
8701
- inputs: [
8702
- { name: "withdrawn", internalType: "uint256", type: "uint256" },
8703
- { name: "minAmountOut", internalType: "uint256", type: "uint256" }
8704
- ],
8705
- name: "MinAmountNotReached"
9067
+ inputs: [{ name: "tickSpacing", internalType: "int24", type: "int24" }],
9068
+ name: "TickSpacingTooLarge"
8706
9069
  },
8707
- { type: "error", inputs: [], name: "NativeValueMismatch" },
8708
- { type: "error", inputs: [], name: "NotPoolManager" },
8709
- { type: "error", inputs: [], name: "OnlyZoraHook" },
8710
- { type: "error", inputs: [], name: "OrderClosed" },
8711
- { type: "error", inputs: [], name: "OrderFillable" },
8712
- { type: "error", inputs: [], name: "OrderNotMaker" },
8713
9070
  {
8714
9071
  type: "error",
8715
- inputs: [{ name: "owner", internalType: "address", type: "address" }],
8716
- name: "OwnableInvalidOwner"
9072
+ inputs: [{ name: "tickSpacing", internalType: "int24", type: "int24" }],
9073
+ name: "TickSpacingTooSmall"
8717
9074
  },
9075
+ { type: "error", inputs: [], name: "UnauthorizedDynamicLPFeeUpdate" },
9076
+ { type: "error", inputs: [], name: "ETHNotAccepted" },
8718
9077
  {
8719
9078
  type: "error",
8720
- inputs: [{ name: "account", internalType: "address", type: "address" }],
8721
- name: "OwnableUnauthorizedAccount"
9079
+ inputs: [
9080
+ { name: "commandIndex", internalType: "uint256", type: "uint256" },
9081
+ { name: "message", internalType: "bytes", type: "bytes" }
9082
+ ],
9083
+ name: "ExecutionFailed"
8722
9084
  },
8723
- { type: "error", inputs: [], name: "PathMustHaveAtLeastOneStep" },
8724
- { type: "error", inputs: [], name: "PermittedCallersLengthMismatch" },
8725
- { type: "error", inputs: [], name: "RouterMsgSenderInvalid" },
8726
- { type: "error", inputs: [], name: "UnknownCallback" },
8727
- { type: "error", inputs: [], name: "UnlockedFillNotAllowed" },
8728
- { type: "error", inputs: [], name: "WethTransferFailed" },
8729
- { type: "error", inputs: [], name: "ZeroMaker" },
8730
- { type: "error", inputs: [], name: "ZeroOrderSize" },
8731
- { type: "error", inputs: [], name: "ZeroRealizedOrder" }
9085
+ { type: "error", inputs: [], name: "InvalidEthSender" },
9086
+ { type: "error", inputs: [], name: "LengthMismatch" },
9087
+ { type: "error", inputs: [], name: "TransactionDeadlinePassed" }
8732
9088
  ];
8733
9089
  var devZoraRouterAddress = {
8734
9090
  8453: "0x1F35FB3E07e68bC1Bf020c2d59cBF91Ccf5736b8"
@@ -12307,113 +12663,804 @@ var uniswapV3SwapRouterABI = [
12307
12663
  ]
12308
12664
  }
12309
12665
  ],
12310
- name: "exactInput",
12311
- outputs: [{ name: "amountOut", internalType: "uint256", type: "uint256" }],
12312
- stateMutability: "payable"
12666
+ name: "exactInput",
12667
+ outputs: [{ name: "amountOut", internalType: "uint256", type: "uint256" }],
12668
+ stateMutability: "payable"
12669
+ },
12670
+ {
12671
+ type: "function",
12672
+ inputs: [
12673
+ {
12674
+ name: "params",
12675
+ internalType: "struct ISwapRouter.ExactInputSingleParams",
12676
+ type: "tuple",
12677
+ components: [
12678
+ { name: "tokenIn", internalType: "address", type: "address" },
12679
+ { name: "tokenOut", internalType: "address", type: "address" },
12680
+ { name: "fee", internalType: "uint24", type: "uint24" },
12681
+ { name: "recipient", internalType: "address", type: "address" },
12682
+ { name: "amountIn", internalType: "uint256", type: "uint256" },
12683
+ {
12684
+ name: "amountOutMinimum",
12685
+ internalType: "uint256",
12686
+ type: "uint256"
12687
+ },
12688
+ {
12689
+ name: "sqrtPriceLimitX96",
12690
+ internalType: "uint160",
12691
+ type: "uint160"
12692
+ }
12693
+ ]
12694
+ }
12695
+ ],
12696
+ name: "exactInputSingle",
12697
+ outputs: [{ name: "amountOut", internalType: "uint256", type: "uint256" }],
12698
+ stateMutability: "payable"
12699
+ },
12700
+ {
12701
+ type: "function",
12702
+ inputs: [
12703
+ {
12704
+ name: "params",
12705
+ internalType: "struct ISwapRouter.ExactOutputParams",
12706
+ type: "tuple",
12707
+ components: [
12708
+ { name: "path", internalType: "bytes", type: "bytes" },
12709
+ { name: "recipient", internalType: "address", type: "address" },
12710
+ { name: "amountOut", internalType: "uint256", type: "uint256" },
12711
+ { name: "amountInMaximum", internalType: "uint256", type: "uint256" }
12712
+ ]
12713
+ }
12714
+ ],
12715
+ name: "exactOutput",
12716
+ outputs: [{ name: "amountIn", internalType: "uint256", type: "uint256" }],
12717
+ stateMutability: "payable"
12718
+ },
12719
+ {
12720
+ type: "function",
12721
+ inputs: [
12722
+ {
12723
+ name: "params",
12724
+ internalType: "struct ISwapRouter.ExactOutputSingleParams",
12725
+ type: "tuple",
12726
+ components: [
12727
+ { name: "tokenIn", internalType: "address", type: "address" },
12728
+ { name: "tokenOut", internalType: "address", type: "address" },
12729
+ { name: "fee", internalType: "uint24", type: "uint24" },
12730
+ { name: "recipient", internalType: "address", type: "address" },
12731
+ { name: "amountOut", internalType: "uint256", type: "uint256" },
12732
+ { name: "amountInMaximum", internalType: "uint256", type: "uint256" },
12733
+ {
12734
+ name: "sqrtPriceLimitX96",
12735
+ internalType: "uint160",
12736
+ type: "uint160"
12737
+ }
12738
+ ]
12739
+ }
12740
+ ],
12741
+ name: "exactOutputSingle",
12742
+ outputs: [{ name: "amountIn", internalType: "uint256", type: "uint256" }],
12743
+ stateMutability: "payable"
12744
+ },
12745
+ {
12746
+ type: "function",
12747
+ inputs: [
12748
+ { name: "amount0Delta", internalType: "int256", type: "int256" },
12749
+ { name: "amount1Delta", internalType: "int256", type: "int256" },
12750
+ { name: "data", internalType: "bytes", type: "bytes" }
12751
+ ],
12752
+ name: "uniswapV3SwapCallback",
12753
+ outputs: [],
12754
+ stateMutability: "nonpayable"
12755
+ }
12756
+ ];
12757
+ var uniswapV3SwapRouterAddress = {
12758
+ 1: "0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45",
12759
+ 10: "0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45",
12760
+ 8453: "0x2626664c2603336E57B271c5C0b26F421741e481",
12761
+ 42161: "0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45",
12762
+ 81457: "0x549FEB8c9bd4c12Ad2AB27022dA12492aC452B66",
12763
+ 84532: "0x94cC0AaC535CCDB3C01d6787D6413C739ae12bc4",
12764
+ 421614: "0x101F443B4d1b059569D643917553c771E1b9663E",
12765
+ 7777777: "0x7De04c96BE5159c3b5CeffC82aa176dc81281557",
12766
+ 11155111: "0x3bFA4769FB09eefC5a80d6E87c3B9C650f7Ae48E",
12767
+ 11155420: "0x94cC0AaC535CCDB3C01d6787D6413C739ae12bc4",
12768
+ 999999999: "0x6B36d761981d82B1e07cF3c4daF4cB4615c4850a"
12769
+ };
12770
+ var uniswapV3SwapRouterConfig = {
12771
+ address: uniswapV3SwapRouterAddress,
12772
+ abi: uniswapV3SwapRouterABI
12773
+ };
12774
+ var uniswapV4PoolManagerABI = [
12775
+ {
12776
+ type: "function",
12777
+ inputs: [
12778
+ { name: "owner", internalType: "address", type: "address" },
12779
+ { name: "spender", internalType: "address", type: "address" },
12780
+ { name: "id", internalType: "uint256", type: "uint256" }
12781
+ ],
12782
+ name: "allowance",
12783
+ outputs: [{ name: "amount", internalType: "uint256", type: "uint256" }],
12784
+ stateMutability: "view"
12785
+ },
12786
+ {
12787
+ type: "function",
12788
+ inputs: [
12789
+ { name: "spender", internalType: "address", type: "address" },
12790
+ { name: "id", internalType: "uint256", type: "uint256" },
12791
+ { name: "amount", internalType: "uint256", type: "uint256" }
12792
+ ],
12793
+ name: "approve",
12794
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
12795
+ stateMutability: "nonpayable"
12796
+ },
12797
+ {
12798
+ type: "function",
12799
+ inputs: [
12800
+ { name: "owner", internalType: "address", type: "address" },
12801
+ { name: "id", internalType: "uint256", type: "uint256" }
12802
+ ],
12803
+ name: "balanceOf",
12804
+ outputs: [{ name: "amount", internalType: "uint256", type: "uint256" }],
12805
+ stateMutability: "view"
12806
+ },
12807
+ {
12808
+ type: "function",
12809
+ inputs: [
12810
+ { name: "from", internalType: "address", type: "address" },
12811
+ { name: "id", internalType: "uint256", type: "uint256" },
12812
+ { name: "amount", internalType: "uint256", type: "uint256" }
12813
+ ],
12814
+ name: "burn",
12815
+ outputs: [],
12816
+ stateMutability: "nonpayable"
12817
+ },
12818
+ {
12819
+ type: "function",
12820
+ inputs: [
12821
+ { name: "currency", internalType: "Currency", type: "address" },
12822
+ { name: "amount", internalType: "uint256", type: "uint256" }
12823
+ ],
12824
+ name: "clear",
12825
+ outputs: [],
12826
+ stateMutability: "nonpayable"
12827
+ },
12828
+ {
12829
+ type: "function",
12830
+ inputs: [
12831
+ { name: "recipient", internalType: "address", type: "address" },
12832
+ { name: "currency", internalType: "Currency", type: "address" },
12833
+ { name: "amount", internalType: "uint256", type: "uint256" }
12834
+ ],
12835
+ name: "collectProtocolFees",
12836
+ outputs: [
12837
+ { name: "amountCollected", internalType: "uint256", type: "uint256" }
12838
+ ],
12839
+ stateMutability: "nonpayable"
12840
+ },
12841
+ {
12842
+ type: "function",
12843
+ inputs: [
12844
+ {
12845
+ name: "key",
12846
+ internalType: "struct PoolKey",
12847
+ type: "tuple",
12848
+ components: [
12849
+ { name: "currency0", internalType: "Currency", type: "address" },
12850
+ { name: "currency1", internalType: "Currency", type: "address" },
12851
+ { name: "fee", internalType: "uint24", type: "uint24" },
12852
+ { name: "tickSpacing", internalType: "int24", type: "int24" },
12853
+ { name: "hooks", internalType: "contract IHooks", type: "address" }
12854
+ ]
12855
+ },
12856
+ { name: "amount0", internalType: "uint256", type: "uint256" },
12857
+ { name: "amount1", internalType: "uint256", type: "uint256" },
12858
+ { name: "hookData", internalType: "bytes", type: "bytes" }
12859
+ ],
12860
+ name: "donate",
12861
+ outputs: [{ name: "", internalType: "BalanceDelta", type: "int256" }],
12862
+ stateMutability: "nonpayable"
12863
+ },
12864
+ {
12865
+ type: "function",
12866
+ inputs: [{ name: "slot", internalType: "bytes32", type: "bytes32" }],
12867
+ name: "extsload",
12868
+ outputs: [{ name: "value", internalType: "bytes32", type: "bytes32" }],
12869
+ stateMutability: "view"
12870
+ },
12871
+ {
12872
+ type: "function",
12873
+ inputs: [
12874
+ { name: "startSlot", internalType: "bytes32", type: "bytes32" },
12875
+ { name: "nSlots", internalType: "uint256", type: "uint256" }
12876
+ ],
12877
+ name: "extsload",
12878
+ outputs: [{ name: "values", internalType: "bytes32[]", type: "bytes32[]" }],
12879
+ stateMutability: "view"
12880
+ },
12881
+ {
12882
+ type: "function",
12883
+ inputs: [{ name: "slots", internalType: "bytes32[]", type: "bytes32[]" }],
12884
+ name: "extsload",
12885
+ outputs: [{ name: "values", internalType: "bytes32[]", type: "bytes32[]" }],
12886
+ stateMutability: "view"
12887
+ },
12888
+ {
12889
+ type: "function",
12890
+ inputs: [{ name: "slots", internalType: "bytes32[]", type: "bytes32[]" }],
12891
+ name: "exttload",
12892
+ outputs: [{ name: "values", internalType: "bytes32[]", type: "bytes32[]" }],
12893
+ stateMutability: "view"
12894
+ },
12895
+ {
12896
+ type: "function",
12897
+ inputs: [{ name: "slot", internalType: "bytes32", type: "bytes32" }],
12898
+ name: "exttload",
12899
+ outputs: [{ name: "value", internalType: "bytes32", type: "bytes32" }],
12900
+ stateMutability: "view"
12901
+ },
12902
+ {
12903
+ type: "function",
12904
+ inputs: [
12905
+ {
12906
+ name: "key",
12907
+ internalType: "struct PoolKey",
12908
+ type: "tuple",
12909
+ components: [
12910
+ { name: "currency0", internalType: "Currency", type: "address" },
12911
+ { name: "currency1", internalType: "Currency", type: "address" },
12912
+ { name: "fee", internalType: "uint24", type: "uint24" },
12913
+ { name: "tickSpacing", internalType: "int24", type: "int24" },
12914
+ { name: "hooks", internalType: "contract IHooks", type: "address" }
12915
+ ]
12916
+ },
12917
+ { name: "sqrtPriceX96", internalType: "uint160", type: "uint160" }
12918
+ ],
12919
+ name: "initialize",
12920
+ outputs: [{ name: "tick", internalType: "int24", type: "int24" }],
12921
+ stateMutability: "nonpayable"
12922
+ },
12923
+ {
12924
+ type: "function",
12925
+ inputs: [
12926
+ { name: "owner", internalType: "address", type: "address" },
12927
+ { name: "spender", internalType: "address", type: "address" }
12928
+ ],
12929
+ name: "isOperator",
12930
+ outputs: [{ name: "approved", internalType: "bool", type: "bool" }],
12931
+ stateMutability: "view"
12932
+ },
12933
+ {
12934
+ type: "function",
12935
+ inputs: [
12936
+ { name: "to", internalType: "address", type: "address" },
12937
+ { name: "id", internalType: "uint256", type: "uint256" },
12938
+ { name: "amount", internalType: "uint256", type: "uint256" }
12939
+ ],
12940
+ name: "mint",
12941
+ outputs: [],
12942
+ stateMutability: "nonpayable"
12943
+ },
12944
+ {
12945
+ type: "function",
12946
+ inputs: [
12947
+ {
12948
+ name: "key",
12949
+ internalType: "struct PoolKey",
12950
+ type: "tuple",
12951
+ components: [
12952
+ { name: "currency0", internalType: "Currency", type: "address" },
12953
+ { name: "currency1", internalType: "Currency", type: "address" },
12954
+ { name: "fee", internalType: "uint24", type: "uint24" },
12955
+ { name: "tickSpacing", internalType: "int24", type: "int24" },
12956
+ { name: "hooks", internalType: "contract IHooks", type: "address" }
12957
+ ]
12958
+ },
12959
+ {
12960
+ name: "params",
12961
+ internalType: "struct ModifyLiquidityParams",
12962
+ type: "tuple",
12963
+ components: [
12964
+ { name: "tickLower", internalType: "int24", type: "int24" },
12965
+ { name: "tickUpper", internalType: "int24", type: "int24" },
12966
+ { name: "liquidityDelta", internalType: "int256", type: "int256" },
12967
+ { name: "salt", internalType: "bytes32", type: "bytes32" }
12968
+ ]
12969
+ },
12970
+ { name: "hookData", internalType: "bytes", type: "bytes" }
12971
+ ],
12972
+ name: "modifyLiquidity",
12973
+ outputs: [
12974
+ { name: "callerDelta", internalType: "BalanceDelta", type: "int256" },
12975
+ { name: "feesAccrued", internalType: "BalanceDelta", type: "int256" }
12976
+ ],
12977
+ stateMutability: "nonpayable"
12978
+ },
12979
+ {
12980
+ type: "function",
12981
+ inputs: [],
12982
+ name: "protocolFeeController",
12983
+ outputs: [{ name: "", internalType: "address", type: "address" }],
12984
+ stateMutability: "view"
12985
+ },
12986
+ {
12987
+ type: "function",
12988
+ inputs: [{ name: "currency", internalType: "Currency", type: "address" }],
12989
+ name: "protocolFeesAccrued",
12990
+ outputs: [{ name: "amount", internalType: "uint256", type: "uint256" }],
12991
+ stateMutability: "view"
12992
+ },
12993
+ {
12994
+ type: "function",
12995
+ inputs: [
12996
+ { name: "operator", internalType: "address", type: "address" },
12997
+ { name: "approved", internalType: "bool", type: "bool" }
12998
+ ],
12999
+ name: "setOperator",
13000
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
13001
+ stateMutability: "nonpayable"
13002
+ },
13003
+ {
13004
+ type: "function",
13005
+ inputs: [
13006
+ {
13007
+ name: "key",
13008
+ internalType: "struct PoolKey",
13009
+ type: "tuple",
13010
+ components: [
13011
+ { name: "currency0", internalType: "Currency", type: "address" },
13012
+ { name: "currency1", internalType: "Currency", type: "address" },
13013
+ { name: "fee", internalType: "uint24", type: "uint24" },
13014
+ { name: "tickSpacing", internalType: "int24", type: "int24" },
13015
+ { name: "hooks", internalType: "contract IHooks", type: "address" }
13016
+ ]
13017
+ },
13018
+ { name: "newProtocolFee", internalType: "uint24", type: "uint24" }
13019
+ ],
13020
+ name: "setProtocolFee",
13021
+ outputs: [],
13022
+ stateMutability: "nonpayable"
13023
+ },
13024
+ {
13025
+ type: "function",
13026
+ inputs: [{ name: "controller", internalType: "address", type: "address" }],
13027
+ name: "setProtocolFeeController",
13028
+ outputs: [],
13029
+ stateMutability: "nonpayable"
13030
+ },
13031
+ {
13032
+ type: "function",
13033
+ inputs: [],
13034
+ name: "settle",
13035
+ outputs: [{ name: "paid", internalType: "uint256", type: "uint256" }],
13036
+ stateMutability: "payable"
13037
+ },
13038
+ {
13039
+ type: "function",
13040
+ inputs: [{ name: "recipient", internalType: "address", type: "address" }],
13041
+ name: "settleFor",
13042
+ outputs: [{ name: "paid", internalType: "uint256", type: "uint256" }],
13043
+ stateMutability: "payable"
13044
+ },
13045
+ {
13046
+ type: "function",
13047
+ inputs: [
13048
+ {
13049
+ name: "key",
13050
+ internalType: "struct PoolKey",
13051
+ type: "tuple",
13052
+ components: [
13053
+ { name: "currency0", internalType: "Currency", type: "address" },
13054
+ { name: "currency1", internalType: "Currency", type: "address" },
13055
+ { name: "fee", internalType: "uint24", type: "uint24" },
13056
+ { name: "tickSpacing", internalType: "int24", type: "int24" },
13057
+ { name: "hooks", internalType: "contract IHooks", type: "address" }
13058
+ ]
13059
+ },
13060
+ {
13061
+ name: "params",
13062
+ internalType: "struct SwapParams",
13063
+ type: "tuple",
13064
+ components: [
13065
+ { name: "zeroForOne", internalType: "bool", type: "bool" },
13066
+ { name: "amountSpecified", internalType: "int256", type: "int256" },
13067
+ {
13068
+ name: "sqrtPriceLimitX96",
13069
+ internalType: "uint160",
13070
+ type: "uint160"
13071
+ }
13072
+ ]
13073
+ },
13074
+ { name: "hookData", internalType: "bytes", type: "bytes" }
13075
+ ],
13076
+ name: "swap",
13077
+ outputs: [
13078
+ { name: "swapDelta", internalType: "BalanceDelta", type: "int256" }
13079
+ ],
13080
+ stateMutability: "nonpayable"
13081
+ },
13082
+ {
13083
+ type: "function",
13084
+ inputs: [{ name: "currency", internalType: "Currency", type: "address" }],
13085
+ name: "sync",
13086
+ outputs: [],
13087
+ stateMutability: "nonpayable"
13088
+ },
13089
+ {
13090
+ type: "function",
13091
+ inputs: [
13092
+ { name: "currency", internalType: "Currency", type: "address" },
13093
+ { name: "to", internalType: "address", type: "address" },
13094
+ { name: "amount", internalType: "uint256", type: "uint256" }
13095
+ ],
13096
+ name: "take",
13097
+ outputs: [],
13098
+ stateMutability: "nonpayable"
13099
+ },
13100
+ {
13101
+ type: "function",
13102
+ inputs: [
13103
+ { name: "receiver", internalType: "address", type: "address" },
13104
+ { name: "id", internalType: "uint256", type: "uint256" },
13105
+ { name: "amount", internalType: "uint256", type: "uint256" }
13106
+ ],
13107
+ name: "transfer",
13108
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
13109
+ stateMutability: "nonpayable"
13110
+ },
13111
+ {
13112
+ type: "function",
13113
+ inputs: [
13114
+ { name: "sender", internalType: "address", type: "address" },
13115
+ { name: "receiver", internalType: "address", type: "address" },
13116
+ { name: "id", internalType: "uint256", type: "uint256" },
13117
+ { name: "amount", internalType: "uint256", type: "uint256" }
13118
+ ],
13119
+ name: "transferFrom",
13120
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
13121
+ stateMutability: "nonpayable"
13122
+ },
13123
+ {
13124
+ type: "function",
13125
+ inputs: [{ name: "data", internalType: "bytes", type: "bytes" }],
13126
+ name: "unlock",
13127
+ outputs: [{ name: "", internalType: "bytes", type: "bytes" }],
13128
+ stateMutability: "nonpayable"
13129
+ },
13130
+ {
13131
+ type: "function",
13132
+ inputs: [
13133
+ {
13134
+ name: "key",
13135
+ internalType: "struct PoolKey",
13136
+ type: "tuple",
13137
+ components: [
13138
+ { name: "currency0", internalType: "Currency", type: "address" },
13139
+ { name: "currency1", internalType: "Currency", type: "address" },
13140
+ { name: "fee", internalType: "uint24", type: "uint24" },
13141
+ { name: "tickSpacing", internalType: "int24", type: "int24" },
13142
+ { name: "hooks", internalType: "contract IHooks", type: "address" }
13143
+ ]
13144
+ },
13145
+ { name: "newDynamicLPFee", internalType: "uint24", type: "uint24" }
13146
+ ],
13147
+ name: "updateDynamicLPFee",
13148
+ outputs: [],
13149
+ stateMutability: "nonpayable"
13150
+ },
13151
+ {
13152
+ type: "event",
13153
+ anonymous: false,
13154
+ inputs: [
13155
+ {
13156
+ name: "owner",
13157
+ internalType: "address",
13158
+ type: "address",
13159
+ indexed: true
13160
+ },
13161
+ {
13162
+ name: "spender",
13163
+ internalType: "address",
13164
+ type: "address",
13165
+ indexed: true
13166
+ },
13167
+ { name: "id", internalType: "uint256", type: "uint256", indexed: true },
13168
+ {
13169
+ name: "amount",
13170
+ internalType: "uint256",
13171
+ type: "uint256",
13172
+ indexed: false
13173
+ }
13174
+ ],
13175
+ name: "Approval"
13176
+ },
13177
+ {
13178
+ type: "event",
13179
+ anonymous: false,
13180
+ inputs: [
13181
+ { name: "id", internalType: "PoolId", type: "bytes32", indexed: true },
13182
+ {
13183
+ name: "sender",
13184
+ internalType: "address",
13185
+ type: "address",
13186
+ indexed: true
13187
+ },
13188
+ {
13189
+ name: "amount0",
13190
+ internalType: "uint256",
13191
+ type: "uint256",
13192
+ indexed: false
13193
+ },
13194
+ {
13195
+ name: "amount1",
13196
+ internalType: "uint256",
13197
+ type: "uint256",
13198
+ indexed: false
13199
+ }
13200
+ ],
13201
+ name: "Donate"
13202
+ },
13203
+ {
13204
+ type: "event",
13205
+ anonymous: false,
13206
+ inputs: [
13207
+ { name: "id", internalType: "PoolId", type: "bytes32", indexed: true },
13208
+ {
13209
+ name: "currency0",
13210
+ internalType: "Currency",
13211
+ type: "address",
13212
+ indexed: true
13213
+ },
13214
+ {
13215
+ name: "currency1",
13216
+ internalType: "Currency",
13217
+ type: "address",
13218
+ indexed: true
13219
+ },
13220
+ { name: "fee", internalType: "uint24", type: "uint24", indexed: false },
13221
+ {
13222
+ name: "tickSpacing",
13223
+ internalType: "int24",
13224
+ type: "int24",
13225
+ indexed: false
13226
+ },
13227
+ {
13228
+ name: "hooks",
13229
+ internalType: "contract IHooks",
13230
+ type: "address",
13231
+ indexed: false
13232
+ },
13233
+ {
13234
+ name: "sqrtPriceX96",
13235
+ internalType: "uint160",
13236
+ type: "uint160",
13237
+ indexed: false
13238
+ },
13239
+ { name: "tick", internalType: "int24", type: "int24", indexed: false }
13240
+ ],
13241
+ name: "Initialize"
13242
+ },
13243
+ {
13244
+ type: "event",
13245
+ anonymous: false,
13246
+ inputs: [
13247
+ { name: "id", internalType: "PoolId", type: "bytes32", indexed: true },
13248
+ {
13249
+ name: "sender",
13250
+ internalType: "address",
13251
+ type: "address",
13252
+ indexed: true
13253
+ },
13254
+ {
13255
+ name: "tickLower",
13256
+ internalType: "int24",
13257
+ type: "int24",
13258
+ indexed: false
13259
+ },
13260
+ {
13261
+ name: "tickUpper",
13262
+ internalType: "int24",
13263
+ type: "int24",
13264
+ indexed: false
13265
+ },
13266
+ {
13267
+ name: "liquidityDelta",
13268
+ internalType: "int256",
13269
+ type: "int256",
13270
+ indexed: false
13271
+ },
13272
+ {
13273
+ name: "salt",
13274
+ internalType: "bytes32",
13275
+ type: "bytes32",
13276
+ indexed: false
13277
+ }
13278
+ ],
13279
+ name: "ModifyLiquidity"
13280
+ },
13281
+ {
13282
+ type: "event",
13283
+ anonymous: false,
13284
+ inputs: [
13285
+ {
13286
+ name: "owner",
13287
+ internalType: "address",
13288
+ type: "address",
13289
+ indexed: true
13290
+ },
13291
+ {
13292
+ name: "operator",
13293
+ internalType: "address",
13294
+ type: "address",
13295
+ indexed: true
13296
+ },
13297
+ { name: "approved", internalType: "bool", type: "bool", indexed: false }
13298
+ ],
13299
+ name: "OperatorSet"
13300
+ },
13301
+ {
13302
+ type: "event",
13303
+ anonymous: false,
13304
+ inputs: [
13305
+ {
13306
+ name: "protocolFeeController",
13307
+ internalType: "address",
13308
+ type: "address",
13309
+ indexed: true
13310
+ }
13311
+ ],
13312
+ name: "ProtocolFeeControllerUpdated"
13313
+ },
13314
+ {
13315
+ type: "event",
13316
+ anonymous: false,
13317
+ inputs: [
13318
+ { name: "id", internalType: "PoolId", type: "bytes32", indexed: true },
13319
+ {
13320
+ name: "protocolFee",
13321
+ internalType: "uint24",
13322
+ type: "uint24",
13323
+ indexed: false
13324
+ }
13325
+ ],
13326
+ name: "ProtocolFeeUpdated"
13327
+ },
13328
+ {
13329
+ type: "event",
13330
+ anonymous: false,
13331
+ inputs: [
13332
+ { name: "id", internalType: "PoolId", type: "bytes32", indexed: true },
13333
+ {
13334
+ name: "sender",
13335
+ internalType: "address",
13336
+ type: "address",
13337
+ indexed: true
13338
+ },
13339
+ {
13340
+ name: "amount0",
13341
+ internalType: "int128",
13342
+ type: "int128",
13343
+ indexed: false
13344
+ },
13345
+ {
13346
+ name: "amount1",
13347
+ internalType: "int128",
13348
+ type: "int128",
13349
+ indexed: false
13350
+ },
13351
+ {
13352
+ name: "sqrtPriceX96",
13353
+ internalType: "uint160",
13354
+ type: "uint160",
13355
+ indexed: false
13356
+ },
13357
+ {
13358
+ name: "liquidity",
13359
+ internalType: "uint128",
13360
+ type: "uint128",
13361
+ indexed: false
13362
+ },
13363
+ { name: "tick", internalType: "int24", type: "int24", indexed: false },
13364
+ { name: "fee", internalType: "uint24", type: "uint24", indexed: false }
13365
+ ],
13366
+ name: "Swap"
12313
13367
  },
12314
13368
  {
12315
- type: "function",
13369
+ type: "event",
13370
+ anonymous: false,
12316
13371
  inputs: [
12317
13372
  {
12318
- name: "params",
12319
- internalType: "struct ISwapRouter.ExactInputSingleParams",
12320
- type: "tuple",
12321
- components: [
12322
- { name: "tokenIn", internalType: "address", type: "address" },
12323
- { name: "tokenOut", internalType: "address", type: "address" },
12324
- { name: "fee", internalType: "uint24", type: "uint24" },
12325
- { name: "recipient", internalType: "address", type: "address" },
12326
- { name: "amountIn", internalType: "uint256", type: "uint256" },
12327
- {
12328
- name: "amountOutMinimum",
12329
- internalType: "uint256",
12330
- type: "uint256"
12331
- },
12332
- {
12333
- name: "sqrtPriceLimitX96",
12334
- internalType: "uint160",
12335
- type: "uint160"
12336
- }
12337
- ]
13373
+ name: "caller",
13374
+ internalType: "address",
13375
+ type: "address",
13376
+ indexed: false
13377
+ },
13378
+ { name: "from", internalType: "address", type: "address", indexed: true },
13379
+ { name: "to", internalType: "address", type: "address", indexed: true },
13380
+ { name: "id", internalType: "uint256", type: "uint256", indexed: true },
13381
+ {
13382
+ name: "amount",
13383
+ internalType: "uint256",
13384
+ type: "uint256",
13385
+ indexed: false
12338
13386
  }
12339
13387
  ],
12340
- name: "exactInputSingle",
12341
- outputs: [{ name: "amountOut", internalType: "uint256", type: "uint256" }],
12342
- stateMutability: "payable"
13388
+ name: "Transfer"
12343
13389
  },
13390
+ { type: "error", inputs: [], name: "AlreadyUnlocked" },
12344
13391
  {
12345
- type: "function",
13392
+ type: "error",
12346
13393
  inputs: [
12347
- {
12348
- name: "params",
12349
- internalType: "struct ISwapRouter.ExactOutputParams",
12350
- type: "tuple",
12351
- components: [
12352
- { name: "path", internalType: "bytes", type: "bytes" },
12353
- { name: "recipient", internalType: "address", type: "address" },
12354
- { name: "amountOut", internalType: "uint256", type: "uint256" },
12355
- { name: "amountInMaximum", internalType: "uint256", type: "uint256" }
12356
- ]
12357
- }
13394
+ { name: "currency0", internalType: "address", type: "address" },
13395
+ { name: "currency1", internalType: "address", type: "address" }
12358
13396
  ],
12359
- name: "exactOutput",
12360
- outputs: [{ name: "amountIn", internalType: "uint256", type: "uint256" }],
12361
- stateMutability: "payable"
13397
+ name: "CurrenciesOutOfOrderOrEqual"
13398
+ },
13399
+ { type: "error", inputs: [], name: "CurrencyNotSettled" },
13400
+ { type: "error", inputs: [], name: "InvalidCaller" },
13401
+ { type: "error", inputs: [], name: "ManagerLocked" },
13402
+ { type: "error", inputs: [], name: "MustClearExactPositiveDelta" },
13403
+ { type: "error", inputs: [], name: "NonzeroNativeValue" },
13404
+ { type: "error", inputs: [], name: "PoolNotInitialized" },
13405
+ { type: "error", inputs: [], name: "ProtocolFeeCurrencySynced" },
13406
+ {
13407
+ type: "error",
13408
+ inputs: [{ name: "fee", internalType: "uint24", type: "uint24" }],
13409
+ name: "ProtocolFeeTooLarge"
13410
+ },
13411
+ { type: "error", inputs: [], name: "SwapAmountCannotBeZero" },
13412
+ {
13413
+ type: "error",
13414
+ inputs: [{ name: "tickSpacing", internalType: "int24", type: "int24" }],
13415
+ name: "TickSpacingTooLarge"
13416
+ },
13417
+ {
13418
+ type: "error",
13419
+ inputs: [{ name: "tickSpacing", internalType: "int24", type: "int24" }],
13420
+ name: "TickSpacingTooSmall"
12362
13421
  },
13422
+ { type: "error", inputs: [], name: "UnauthorizedDynamicLPFeeUpdate" }
13423
+ ];
13424
+ var uniswapV4PoolManagerAddress = {
13425
+ 8453: "0x498581fF718922c3f8e6A244956aF099B2652b2b",
13426
+ 84532: "0x05E73354cFDd6745C338b50BcFDfA3Aa6fA03408"
13427
+ };
13428
+ var uniswapV4PoolManagerConfig = {
13429
+ address: uniswapV4PoolManagerAddress,
13430
+ abi: uniswapV4PoolManagerABI
13431
+ };
13432
+ var universalRouterABI = [
12363
13433
  {
12364
13434
  type: "function",
12365
13435
  inputs: [
12366
- {
12367
- name: "params",
12368
- internalType: "struct ISwapRouter.ExactOutputSingleParams",
12369
- type: "tuple",
12370
- components: [
12371
- { name: "tokenIn", internalType: "address", type: "address" },
12372
- { name: "tokenOut", internalType: "address", type: "address" },
12373
- { name: "fee", internalType: "uint24", type: "uint24" },
12374
- { name: "recipient", internalType: "address", type: "address" },
12375
- { name: "amountOut", internalType: "uint256", type: "uint256" },
12376
- { name: "amountInMaximum", internalType: "uint256", type: "uint256" },
12377
- {
12378
- name: "sqrtPriceLimitX96",
12379
- internalType: "uint160",
12380
- type: "uint160"
12381
- }
12382
- ]
12383
- }
13436
+ { name: "commands", internalType: "bytes", type: "bytes" },
13437
+ { name: "inputs", internalType: "bytes[]", type: "bytes[]" },
13438
+ { name: "deadline", internalType: "uint256", type: "uint256" }
12384
13439
  ],
12385
- name: "exactOutputSingle",
12386
- outputs: [{ name: "amountIn", internalType: "uint256", type: "uint256" }],
13440
+ name: "execute",
13441
+ outputs: [],
12387
13442
  stateMutability: "payable"
12388
13443
  },
13444
+ { type: "error", inputs: [], name: "ETHNotAccepted" },
12389
13445
  {
12390
- type: "function",
13446
+ type: "error",
12391
13447
  inputs: [
12392
- { name: "amount0Delta", internalType: "int256", type: "int256" },
12393
- { name: "amount1Delta", internalType: "int256", type: "int256" },
12394
- { name: "data", internalType: "bytes", type: "bytes" }
13448
+ { name: "commandIndex", internalType: "uint256", type: "uint256" },
13449
+ { name: "message", internalType: "bytes", type: "bytes" }
12395
13450
  ],
12396
- name: "uniswapV3SwapCallback",
12397
- outputs: [],
12398
- stateMutability: "nonpayable"
12399
- }
13451
+ name: "ExecutionFailed"
13452
+ },
13453
+ { type: "error", inputs: [], name: "InvalidEthSender" },
13454
+ { type: "error", inputs: [], name: "LengthMismatch" },
13455
+ { type: "error", inputs: [], name: "TransactionDeadlinePassed" }
12400
13456
  ];
12401
- var uniswapV3SwapRouterAddress = {
12402
- 1: "0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45",
12403
- 10: "0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45",
12404
- 8453: "0x2626664c2603336E57B271c5C0b26F421741e481",
12405
- 42161: "0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45",
12406
- 81457: "0x549FEB8c9bd4c12Ad2AB27022dA12492aC452B66",
12407
- 84532: "0x94cC0AaC535CCDB3C01d6787D6413C739ae12bc4",
12408
- 421614: "0x101F443B4d1b059569D643917553c771E1b9663E",
12409
- 7777777: "0x7De04c96BE5159c3b5CeffC82aa176dc81281557",
12410
- 11155111: "0x3bFA4769FB09eefC5a80d6E87c3B9C650f7Ae48E",
12411
- 11155420: "0x94cC0AaC535CCDB3C01d6787D6413C739ae12bc4",
12412
- 999999999: "0x6B36d761981d82B1e07cF3c4daF4cB4615c4850a"
13457
+ var universalRouterAddress = {
13458
+ 8453: "0x6fF5693b99212Da76ad316178A184AB56D299b43",
13459
+ 84532: "0x492E6456D9528771018DeB9E87ef7750EF184104"
12413
13460
  };
12414
- var uniswapV3SwapRouterConfig = {
12415
- address: uniswapV3SwapRouterAddress,
12416
- abi: uniswapV3SwapRouterABI
13461
+ var universalRouterConfig = {
13462
+ address: universalRouterAddress,
13463
+ abi: universalRouterABI
12417
13464
  };
12418
13465
  var upgradeGateABI = [
12419
13466
  { type: "constructor", inputs: [], stateMutability: "nonpayable" },
@@ -17473,6 +18520,7 @@ var zoraLimitOrderBookABI = [
17473
18520
  ],
17474
18521
  name: "InvalidAccountNonce"
17475
18522
  },
18523
+ { type: "error", inputs: [], name: "InvalidCurrency" },
17476
18524
  { type: "error", inputs: [], name: "InvalidCurrencyLowerTick" },
17477
18525
  { type: "error", inputs: [], name: "InvalidInitialization" },
17478
18526
  { type: "error", inputs: [], name: "InvalidMarketType" },
@@ -17582,10 +18630,43 @@ var zoraLimitOrderBookABI = [
17582
18630
  name: "UpgradePathNotRegistered"
17583
18631
  },
17584
18632
  { type: "error", inputs: [], name: "ZoraHookRegistryCannotBeZeroAddress" },
17585
- { type: "error", inputs: [], name: "ZoraLimitOrderBookCannotBeZeroAddress" }
18633
+ { type: "error", inputs: [], name: "ZoraLimitOrderBookCannotBeZeroAddress" },
18634
+ { type: "error", inputs: [], name: "AlreadyUnlocked" },
18635
+ {
18636
+ type: "error",
18637
+ inputs: [
18638
+ { name: "currency0", internalType: "address", type: "address" },
18639
+ { name: "currency1", internalType: "address", type: "address" }
18640
+ ],
18641
+ name: "CurrenciesOutOfOrderOrEqual"
18642
+ },
18643
+ { type: "error", inputs: [], name: "CurrencyNotSettled" },
18644
+ { type: "error", inputs: [], name: "InvalidCaller" },
18645
+ { type: "error", inputs: [], name: "ManagerLocked" },
18646
+ { type: "error", inputs: [], name: "MustClearExactPositiveDelta" },
18647
+ { type: "error", inputs: [], name: "NonzeroNativeValue" },
18648
+ { type: "error", inputs: [], name: "PoolNotInitialized" },
18649
+ { type: "error", inputs: [], name: "ProtocolFeeCurrencySynced" },
18650
+ {
18651
+ type: "error",
18652
+ inputs: [{ name: "fee", internalType: "uint24", type: "uint24" }],
18653
+ name: "ProtocolFeeTooLarge"
18654
+ },
18655
+ { type: "error", inputs: [], name: "SwapAmountCannotBeZero" },
18656
+ {
18657
+ type: "error",
18658
+ inputs: [{ name: "tickSpacing", internalType: "int24", type: "int24" }],
18659
+ name: "TickSpacingTooLarge"
18660
+ },
18661
+ {
18662
+ type: "error",
18663
+ inputs: [{ name: "tickSpacing", internalType: "int24", type: "int24" }],
18664
+ name: "TickSpacingTooSmall"
18665
+ },
18666
+ { type: "error", inputs: [], name: "UnauthorizedDynamicLPFeeUpdate" }
17586
18667
  ];
17587
18668
  var zoraLimitOrderBookAddress = {
17588
- 8453: "0x7777777A5906659b67CE61511489Ae76DA63920f"
18669
+ 8453: "0x7777777C783bAD88daCaf9A19E04238341E4497B"
17589
18670
  };
17590
18671
  var zoraLimitOrderBookConfig = {
17591
18672
  address: zoraLimitOrderBookAddress,
@@ -19621,6 +20702,65 @@ var zoraRouterABI = [
19621
20702
  { type: "error", inputs: [], name: "V3RouteDoesNotConnectToV4RouteStart" },
19622
20703
  { type: "error", inputs: [], name: "ZeroSwapDelta" },
19623
20704
  { type: "error", inputs: [], name: "AddressZero" },
20705
+ { type: "error", inputs: [], name: "ArrayLengthMismatch" },
20706
+ { type: "error", inputs: [], name: "CallerNotPermitted" },
20707
+ {
20708
+ type: "error",
20709
+ inputs: [
20710
+ { name: "orderId", internalType: "bytes32", type: "bytes32" },
20711
+ { name: "expectedCoin", internalType: "address", type: "address" },
20712
+ { name: "actualCoin", internalType: "address", type: "address" }
20713
+ ],
20714
+ name: "CoinMismatch"
20715
+ },
20716
+ { type: "error", inputs: [], name: "InsufficientForwardedFunds" },
20717
+ { type: "error", inputs: [], name: "InsufficientTransferFunds" },
20718
+ {
20719
+ type: "error",
20720
+ inputs: [
20721
+ { name: "startTick", internalType: "int24", type: "int24" },
20722
+ { name: "endTick", internalType: "int24", type: "int24" },
20723
+ { name: "isCurrency0", internalType: "bool", type: "bool" }
20724
+ ],
20725
+ name: "InvalidFillWindow"
20726
+ },
20727
+ { type: "error", inputs: [], name: "InvalidOrder" },
20728
+ { type: "error", inputs: [], name: "InvalidPoolKey" },
20729
+ { type: "error", inputs: [], name: "MaxFillCountCannotBeZero" },
20730
+ {
20731
+ type: "error",
20732
+ inputs: [
20733
+ { name: "withdrawn", internalType: "uint256", type: "uint256" },
20734
+ { name: "minAmountOut", internalType: "uint256", type: "uint256" }
20735
+ ],
20736
+ name: "MinAmountNotReached"
20737
+ },
20738
+ { type: "error", inputs: [], name: "NativeValueMismatch" },
20739
+ { type: "error", inputs: [], name: "NotPoolManager" },
20740
+ { type: "error", inputs: [], name: "OnlyZoraHook" },
20741
+ { type: "error", inputs: [], name: "OrderClosed" },
20742
+ { type: "error", inputs: [], name: "OrderFillable" },
20743
+ { type: "error", inputs: [], name: "OrderNotMaker" },
20744
+ {
20745
+ type: "error",
20746
+ inputs: [{ name: "owner", internalType: "address", type: "address" }],
20747
+ name: "OwnableInvalidOwner"
20748
+ },
20749
+ {
20750
+ type: "error",
20751
+ inputs: [{ name: "account", internalType: "address", type: "address" }],
20752
+ name: "OwnableUnauthorizedAccount"
20753
+ },
20754
+ { type: "error", inputs: [], name: "PathMustHaveAtLeastOneStep" },
20755
+ { type: "error", inputs: [], name: "PermittedCallersLengthMismatch" },
20756
+ { type: "error", inputs: [], name: "RouterMsgSenderInvalid" },
20757
+ { type: "error", inputs: [], name: "UnknownCallback" },
20758
+ { type: "error", inputs: [], name: "UnlockedFillNotAllowed" },
20759
+ { type: "error", inputs: [], name: "WethTransferFailed" },
20760
+ { type: "error", inputs: [], name: "ZeroMaker" },
20761
+ { type: "error", inputs: [], name: "ZeroOrderSize" },
20762
+ { type: "error", inputs: [], name: "ZeroRealizedOrder" },
20763
+ { type: "error", inputs: [], name: "AddressZero" },
19624
20764
  { type: "error", inputs: [], name: "AlreadyOwner" },
19625
20765
  { type: "error", inputs: [], name: "CannotMintZeroLiquidity" },
19626
20766
  {
@@ -19706,6 +20846,7 @@ var zoraRouterABI = [
19706
20846
  ],
19707
20847
  name: "InvalidAccountNonce"
19708
20848
  },
20849
+ { type: "error", inputs: [], name: "InvalidCurrency" },
19709
20850
  { type: "error", inputs: [], name: "InvalidCurrencyLowerTick" },
19710
20851
  { type: "error", inputs: [], name: "InvalidInitialization" },
19711
20852
  { type: "error", inputs: [], name: "InvalidMarketType" },
@@ -19816,68 +20957,54 @@ var zoraRouterABI = [
19816
20957
  },
19817
20958
  { type: "error", inputs: [], name: "ZoraHookRegistryCannotBeZeroAddress" },
19818
20959
  { type: "error", inputs: [], name: "ZoraLimitOrderBookCannotBeZeroAddress" },
19819
- { type: "error", inputs: [], name: "AddressZero" },
19820
- { type: "error", inputs: [], name: "ArrayLengthMismatch" },
19821
- { type: "error", inputs: [], name: "CallerNotPermitted" },
20960
+ { type: "error", inputs: [], name: "AlreadyUnlocked" },
19822
20961
  {
19823
20962
  type: "error",
19824
20963
  inputs: [
19825
- { name: "orderId", internalType: "bytes32", type: "bytes32" },
19826
- { name: "expectedCoin", internalType: "address", type: "address" },
19827
- { name: "actualCoin", internalType: "address", type: "address" }
20964
+ { name: "currency0", internalType: "address", type: "address" },
20965
+ { name: "currency1", internalType: "address", type: "address" }
19828
20966
  ],
19829
- name: "CoinMismatch"
20967
+ name: "CurrenciesOutOfOrderOrEqual"
19830
20968
  },
19831
- { type: "error", inputs: [], name: "InsufficientForwardedFunds" },
19832
- { type: "error", inputs: [], name: "InsufficientTransferFunds" },
20969
+ { type: "error", inputs: [], name: "CurrencyNotSettled" },
20970
+ { type: "error", inputs: [], name: "InvalidCaller" },
20971
+ { type: "error", inputs: [], name: "ManagerLocked" },
20972
+ { type: "error", inputs: [], name: "MustClearExactPositiveDelta" },
20973
+ { type: "error", inputs: [], name: "NonzeroNativeValue" },
20974
+ { type: "error", inputs: [], name: "PoolNotInitialized" },
20975
+ { type: "error", inputs: [], name: "ProtocolFeeCurrencySynced" },
19833
20976
  {
19834
20977
  type: "error",
19835
- inputs: [
19836
- { name: "startTick", internalType: "int24", type: "int24" },
19837
- { name: "endTick", internalType: "int24", type: "int24" },
19838
- { name: "isCurrency0", internalType: "bool", type: "bool" }
19839
- ],
19840
- name: "InvalidFillWindow"
20978
+ inputs: [{ name: "fee", internalType: "uint24", type: "uint24" }],
20979
+ name: "ProtocolFeeTooLarge"
19841
20980
  },
19842
- { type: "error", inputs: [], name: "InvalidOrder" },
19843
- { type: "error", inputs: [], name: "InvalidPoolKey" },
19844
- { type: "error", inputs: [], name: "MaxFillCountCannotBeZero" },
20981
+ { type: "error", inputs: [], name: "SwapAmountCannotBeZero" },
19845
20982
  {
19846
20983
  type: "error",
19847
- inputs: [
19848
- { name: "withdrawn", internalType: "uint256", type: "uint256" },
19849
- { name: "minAmountOut", internalType: "uint256", type: "uint256" }
19850
- ],
19851
- name: "MinAmountNotReached"
20984
+ inputs: [{ name: "tickSpacing", internalType: "int24", type: "int24" }],
20985
+ name: "TickSpacingTooLarge"
19852
20986
  },
19853
- { type: "error", inputs: [], name: "NativeValueMismatch" },
19854
- { type: "error", inputs: [], name: "NotPoolManager" },
19855
- { type: "error", inputs: [], name: "OnlyZoraHook" },
19856
- { type: "error", inputs: [], name: "OrderClosed" },
19857
- { type: "error", inputs: [], name: "OrderFillable" },
19858
- { type: "error", inputs: [], name: "OrderNotMaker" },
19859
20987
  {
19860
20988
  type: "error",
19861
- inputs: [{ name: "owner", internalType: "address", type: "address" }],
19862
- name: "OwnableInvalidOwner"
20989
+ inputs: [{ name: "tickSpacing", internalType: "int24", type: "int24" }],
20990
+ name: "TickSpacingTooSmall"
19863
20991
  },
20992
+ { type: "error", inputs: [], name: "UnauthorizedDynamicLPFeeUpdate" },
20993
+ { type: "error", inputs: [], name: "ETHNotAccepted" },
19864
20994
  {
19865
20995
  type: "error",
19866
- inputs: [{ name: "account", internalType: "address", type: "address" }],
19867
- name: "OwnableUnauthorizedAccount"
20996
+ inputs: [
20997
+ { name: "commandIndex", internalType: "uint256", type: "uint256" },
20998
+ { name: "message", internalType: "bytes", type: "bytes" }
20999
+ ],
21000
+ name: "ExecutionFailed"
19868
21001
  },
19869
- { type: "error", inputs: [], name: "PathMustHaveAtLeastOneStep" },
19870
- { type: "error", inputs: [], name: "PermittedCallersLengthMismatch" },
19871
- { type: "error", inputs: [], name: "RouterMsgSenderInvalid" },
19872
- { type: "error", inputs: [], name: "UnknownCallback" },
19873
- { type: "error", inputs: [], name: "UnlockedFillNotAllowed" },
19874
- { type: "error", inputs: [], name: "WethTransferFailed" },
19875
- { type: "error", inputs: [], name: "ZeroMaker" },
19876
- { type: "error", inputs: [], name: "ZeroOrderSize" },
19877
- { type: "error", inputs: [], name: "ZeroRealizedOrder" }
21002
+ { type: "error", inputs: [], name: "InvalidEthSender" },
21003
+ { type: "error", inputs: [], name: "LengthMismatch" },
21004
+ { type: "error", inputs: [], name: "TransactionDeadlinePassed" }
19878
21005
  ];
19879
21006
  var zoraRouterAddress = {
19880
- 8453: "0x7777777f62529Ea64736E24ad9ad3E4a39eB97c2"
21007
+ 8453: "0x77777777Eb762Cf86F634763e79d17dE44330887"
19881
21008
  };
19882
21009
  var zoraRouterConfig = {
19883
21010
  address: zoraRouterAddress,
@@ -21924,7 +23051,7 @@ var zoraTimedSaleStrategyConfig = {
21924
23051
  abi: zoraTimedSaleStrategyABI
21925
23052
  };
21926
23053
 
21927
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/errors/unit.js
23054
+ // ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/errors/unit.js
21928
23055
  var InvalidDecimalNumberError = class extends BaseError {
21929
23056
  constructor({ value }) {
21930
23057
  super(`Number \`${value}\` is not a valid decimal number.`, {
@@ -21933,7 +23060,7 @@ var InvalidDecimalNumberError = class extends BaseError {
21933
23060
  }
21934
23061
  };
21935
23062
 
21936
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/utils/unit/parseUnits.js
23063
+ // ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/unit/parseUnits.js
21937
23064
  function parseUnits(value, decimals) {
21938
23065
  if (!/^(-?)([0-9]*)\.?([0-9]*)$/.test(value))
21939
23066
  throw new InvalidDecimalNumberError({ value });
@@ -21968,7 +23095,7 @@ function parseUnits(value, decimals) {
21968
23095
  return BigInt(`${negative ? "-" : ""}${integer}${fraction}`);
21969
23096
  }
21970
23097
 
21971
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/utils/unit/parseEther.js
23098
+ // ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/unit/parseEther.js
21972
23099
  function parseEther(ether, unit = "wei") {
21973
23100
  return parseUnits(ether, etherUnits[unit]);
21974
23101
  }
@@ -22734,6 +23861,7 @@ var chainConfigs2 = {
22734
23861
  DOPPLER_AIRLOCK: "0x660eAaEdEBc968f8f3694354FA8EC0b4c5Ba8D12",
22735
23862
  PROXY_ADMIN: "0x004d6611884B4A661749B64b2ADc78505c3e1AB3",
22736
23863
  ZORA_RECIPIENT: "0x7bf90111Ad7C22bec9E9dFf8A01A44713CC1b1B6",
23864
+ METADATA_MANAGER: "0x004d6611884B4A661749B64b2ADc78505c3e1AB3",
22737
23865
  WETH: "0x4200000000000000000000000000000000000006",
22738
23866
  UNISWAP_V4_POOL_MANAGER: "0x498581ff718922c3f8e6a244956af099b2652b2b",
22739
23867
  UNISWAP_V4_POSITION_MANAGER: "0x7c5f5a4bbd8fd63184577525326123b519429bdc",
@@ -22762,6 +23890,7 @@ var chainConfigs2 = {
22762
23890
  DOPPLER_AIRLOCK: "0xa24E35a5d71d02a59b41E7c93567626302da1958",
22763
23891
  PROXY_ADMIN: "0x5F14C23983c9e0840Dc60dA880349622f0785420",
22764
23892
  ZORA_RECIPIENT: "0x5F14C23983c9e0840Dc60dA880349622f0785420",
23893
+ METADATA_MANAGER: "0x5F14C23983c9e0840Dc60dA880349622f0785420",
22765
23894
  WETH: "0x4200000000000000000000000000000000000006",
22766
23895
  UNISWAP_V4_POOL_MANAGER: "0x05E73354cFDd6745C338b50BcFDfA3Aa6fA03408",
22767
23896
  UNISWAP_V4_POSITION_MANAGER: "0x4b2c77d209d3405f41a037ec6c77f7f5b8e2ca80",
@@ -22811,6 +23940,7 @@ var chainConfigs2 = {
22811
23940
  DOPPLER_AIRLOCK: "0x660eAaEdEBc968f8f3694354FA8EC0b4c5Ba8D12",
22812
23941
  PROXY_ADMIN: "0xEAB37fbA9E4F99602815E173A7FeAee0f4eF980B",
22813
23942
  ZORA_RECIPIENT: "0x7bf90111Ad7C22bec9E9dFf8A01A44713CC1b1B6",
23943
+ METADATA_MANAGER: "0xEAB37fbA9E4F99602815E173A7FeAee0f4eF980B",
22814
23944
  WETH: "0x4200000000000000000000000000000000000006",
22815
23945
  UNISWAP_V4_POOL_MANAGER: "0x498581ff718922c3f8e6a244956af099b2652b2b",
22816
23946
  UNISWAP_V4_POSITION_MANAGER: "0x7c5f5a4bbd8fd63184577525326123b519429bdc",
@@ -22972,6 +24102,12 @@ export {
22972
24102
  uniswapV3SwapRouterABI,
22973
24103
  uniswapV3SwapRouterAddress,
22974
24104
  uniswapV3SwapRouterConfig,
24105
+ uniswapV4PoolManagerABI,
24106
+ uniswapV4PoolManagerAddress,
24107
+ uniswapV4PoolManagerConfig,
24108
+ universalRouterABI,
24109
+ universalRouterAddress,
24110
+ universalRouterConfig,
22975
24111
  upgradeGateABI,
22976
24112
  upgradeGateAddress,
22977
24113
  upgradeGateConfig,