@zoralabs/protocol-deployments 0.7.0 → 0.7.5

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,7 @@ import {
6
6
  getAbiItem,
7
7
  keccak256,
8
8
  toHex
9
- } from "./chunk-4DQDZNUA.js";
9
+ } from "./chunk-TP53IMLY.js";
10
10
  import {
11
11
  __export
12
12
  } from "./chunk-PR4QN5HX.js";
@@ -2381,6 +2381,7 @@ var coinABI = [
2381
2381
  ],
2382
2382
  name: "InvalidAccountNonce"
2383
2383
  },
2384
+ { type: "error", inputs: [], name: "InvalidCurrency" },
2384
2385
  { type: "error", inputs: [], name: "InvalidCurrencyLowerTick" },
2385
2386
  { type: "error", inputs: [], name: "InvalidInitialization" },
2386
2387
  { type: "error", inputs: [], name: "InvalidMarketType" },
@@ -2430,6 +2431,7 @@ var coinFactoryABI = [
2430
2431
  inputs: [
2431
2432
  { name: "coinV4Impl_", internalType: "address", type: "address" },
2432
2433
  { name: "creatorCoinImpl_", internalType: "address", type: "address" },
2434
+ { name: "trendCoinImpl_", internalType: "address", type: "address" },
2433
2435
  { name: "hook_", internalType: "address", type: "address" },
2434
2436
  { name: "zoraHookRegistry_", internalType: "address", type: "address" }
2435
2437
  ],
@@ -2602,6 +2604,20 @@ var coinFactoryABI = [
2602
2604
  ],
2603
2605
  stateMutability: "payable"
2604
2606
  },
2607
+ {
2608
+ type: "function",
2609
+ inputs: [
2610
+ { name: "symbol", internalType: "string", type: "string" },
2611
+ { name: "postDeployHook", internalType: "address", type: "address" },
2612
+ { name: "postDeployHookData", internalType: "bytes", type: "bytes" }
2613
+ ],
2614
+ name: "deployTrendCoin",
2615
+ outputs: [
2616
+ { name: "coin", internalType: "address", type: "address" },
2617
+ { name: "postDeployHookDataOut", internalType: "bytes", type: "bytes" }
2618
+ ],
2619
+ stateMutability: "payable"
2620
+ },
2605
2621
  {
2606
2622
  type: "function",
2607
2623
  inputs: [
@@ -2680,6 +2696,27 @@ var coinFactoryABI = [
2680
2696
  outputs: [],
2681
2697
  stateMutability: "nonpayable"
2682
2698
  },
2699
+ {
2700
+ type: "function",
2701
+ inputs: [
2702
+ { name: "currency", internalType: "address", type: "address" },
2703
+ { name: "tickLower", internalType: "int24[]", type: "int24[]" },
2704
+ { name: "tickUpper", internalType: "int24[]", type: "int24[]" },
2705
+ {
2706
+ name: "numDiscoveryPositions",
2707
+ internalType: "uint16[]",
2708
+ type: "uint16[]"
2709
+ },
2710
+ {
2711
+ name: "maxDiscoverySupplyShare",
2712
+ internalType: "uint256[]",
2713
+ type: "uint256[]"
2714
+ }
2715
+ ],
2716
+ name: "setTrendCoinPoolConfig",
2717
+ outputs: [],
2718
+ stateMutability: "nonpayable"
2719
+ },
2683
2720
  {
2684
2721
  type: "function",
2685
2722
  inputs: [{ name: "newOwner", internalType: "address", type: "address" }],
@@ -2687,6 +2724,27 @@ var coinFactoryABI = [
2687
2724
  outputs: [],
2688
2725
  stateMutability: "nonpayable"
2689
2726
  },
2727
+ {
2728
+ type: "function",
2729
+ inputs: [{ name: "symbol", internalType: "string", type: "string" }],
2730
+ name: "trendCoinAddress",
2731
+ outputs: [{ name: "", internalType: "address", type: "address" }],
2732
+ stateMutability: "view"
2733
+ },
2734
+ {
2735
+ type: "function",
2736
+ inputs: [],
2737
+ name: "trendCoinImpl",
2738
+ outputs: [{ name: "", internalType: "address", type: "address" }],
2739
+ stateMutability: "view"
2740
+ },
2741
+ {
2742
+ type: "function",
2743
+ inputs: [],
2744
+ name: "trendCoinPoolConfig",
2745
+ outputs: [{ name: "", internalType: "bytes", type: "bytes" }],
2746
+ stateMutability: "view"
2747
+ },
2690
2748
  {
2691
2749
  type: "function",
2692
2750
  inputs: [
@@ -2952,6 +3010,75 @@ var coinFactoryABI = [
2952
3010
  ],
2953
3011
  name: "OwnershipTransferred"
2954
3012
  },
3013
+ {
3014
+ type: "event",
3015
+ anonymous: false,
3016
+ inputs: [
3017
+ {
3018
+ name: "caller",
3019
+ internalType: "address",
3020
+ type: "address",
3021
+ indexed: true
3022
+ },
3023
+ {
3024
+ name: "symbol",
3025
+ internalType: "string",
3026
+ type: "string",
3027
+ indexed: false
3028
+ },
3029
+ {
3030
+ name: "coin",
3031
+ internalType: "address",
3032
+ type: "address",
3033
+ indexed: false
3034
+ },
3035
+ {
3036
+ name: "poolKey",
3037
+ internalType: "struct PoolKey",
3038
+ type: "tuple",
3039
+ components: [
3040
+ { name: "currency0", internalType: "Currency", type: "address" },
3041
+ { name: "currency1", internalType: "Currency", type: "address" },
3042
+ { name: "fee", internalType: "uint24", type: "uint24" },
3043
+ { name: "tickSpacing", internalType: "int24", type: "int24" },
3044
+ { name: "hooks", internalType: "contract IHooks", type: "address" }
3045
+ ],
3046
+ indexed: false
3047
+ },
3048
+ {
3049
+ name: "poolKeyHash",
3050
+ internalType: "bytes32",
3051
+ type: "bytes32",
3052
+ indexed: false
3053
+ },
3054
+ {
3055
+ name: "poolConfig",
3056
+ internalType: "bytes",
3057
+ type: "bytes",
3058
+ indexed: false
3059
+ },
3060
+ {
3061
+ name: "version",
3062
+ internalType: "string",
3063
+ type: "string",
3064
+ indexed: false
3065
+ }
3066
+ ],
3067
+ name: "TrendCoinCreated"
3068
+ },
3069
+ {
3070
+ type: "event",
3071
+ anonymous: false,
3072
+ inputs: [
3073
+ {
3074
+ name: "poolConfig",
3075
+ internalType: "bytes",
3076
+ type: "bytes",
3077
+ indexed: false
3078
+ }
3079
+ ],
3080
+ name: "TrendCoinPoolConfigUpdated"
3081
+ },
2955
3082
  {
2956
3083
  type: "event",
2957
3084
  anonymous: false,
@@ -3004,6 +3131,7 @@ var coinFactoryABI = [
3004
3131
  ],
3005
3132
  name: "InvalidTickRangeMisordered"
3006
3133
  },
3134
+ { type: "error", inputs: [], name: "InvalidTickerCharacters" },
3007
3135
  {
3008
3136
  type: "error",
3009
3137
  inputs: [
@@ -3025,6 +3153,12 @@ 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: "TrendCoinPoolConfigNotSet" },
3028
3162
  { type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" },
3029
3163
  {
3030
3164
  type: "error",
@@ -3039,6 +3173,7 @@ var coinFactoryABI = [
3039
3173
  ],
3040
3174
  name: "UpgradeToMismatchedContractName"
3041
3175
  },
3176
+ { type: "error", inputs: [], name: "UseSpecificTrendCoinInitialize" },
3042
3177
  { type: "error", inputs: [], name: "ZeroDiscoveryPositions" },
3043
3178
  { type: "error", inputs: [], name: "ZeroDiscoverySupplyShare" },
3044
3179
  { type: "error", inputs: [], name: "AddressZero" },
@@ -3146,6 +3281,7 @@ var coinFactoryABI = [
3146
3281
  ],
3147
3282
  name: "InvalidAccountNonce"
3148
3283
  },
3284
+ { type: "error", inputs: [], name: "InvalidCurrency" },
3149
3285
  { type: "error", inputs: [], name: "InvalidCurrencyLowerTick" },
3150
3286
  { type: "error", inputs: [], name: "InvalidInitialization" },
3151
3287
  { type: "error", inputs: [], name: "InvalidMarketType" },
@@ -6483,6 +6619,7 @@ var devCoinFactoryABI = [
6483
6619
  inputs: [
6484
6620
  { name: "coinV4Impl_", internalType: "address", type: "address" },
6485
6621
  { name: "creatorCoinImpl_", internalType: "address", type: "address" },
6622
+ { name: "trendCoinImpl_", internalType: "address", type: "address" },
6486
6623
  { name: "hook_", internalType: "address", type: "address" },
6487
6624
  { name: "zoraHookRegistry_", internalType: "address", type: "address" }
6488
6625
  ],
@@ -6655,6 +6792,20 @@ var devCoinFactoryABI = [
6655
6792
  ],
6656
6793
  stateMutability: "payable"
6657
6794
  },
6795
+ {
6796
+ type: "function",
6797
+ inputs: [
6798
+ { name: "symbol", internalType: "string", type: "string" },
6799
+ { name: "postDeployHook", internalType: "address", type: "address" },
6800
+ { name: "postDeployHookData", internalType: "bytes", type: "bytes" }
6801
+ ],
6802
+ name: "deployTrendCoin",
6803
+ outputs: [
6804
+ { name: "coin", internalType: "address", type: "address" },
6805
+ { name: "postDeployHookDataOut", internalType: "bytes", type: "bytes" }
6806
+ ],
6807
+ stateMutability: "payable"
6808
+ },
6658
6809
  {
6659
6810
  type: "function",
6660
6811
  inputs: [
@@ -6733,6 +6884,27 @@ var devCoinFactoryABI = [
6733
6884
  outputs: [],
6734
6885
  stateMutability: "nonpayable"
6735
6886
  },
6887
+ {
6888
+ type: "function",
6889
+ inputs: [
6890
+ { name: "currency", internalType: "address", type: "address" },
6891
+ { name: "tickLower", internalType: "int24[]", type: "int24[]" },
6892
+ { name: "tickUpper", internalType: "int24[]", type: "int24[]" },
6893
+ {
6894
+ name: "numDiscoveryPositions",
6895
+ internalType: "uint16[]",
6896
+ type: "uint16[]"
6897
+ },
6898
+ {
6899
+ name: "maxDiscoverySupplyShare",
6900
+ internalType: "uint256[]",
6901
+ type: "uint256[]"
6902
+ }
6903
+ ],
6904
+ name: "setTrendCoinPoolConfig",
6905
+ outputs: [],
6906
+ stateMutability: "nonpayable"
6907
+ },
6736
6908
  {
6737
6909
  type: "function",
6738
6910
  inputs: [{ name: "newOwner", internalType: "address", type: "address" }],
@@ -6740,6 +6912,27 @@ var devCoinFactoryABI = [
6740
6912
  outputs: [],
6741
6913
  stateMutability: "nonpayable"
6742
6914
  },
6915
+ {
6916
+ type: "function",
6917
+ inputs: [{ name: "symbol", internalType: "string", type: "string" }],
6918
+ name: "trendCoinAddress",
6919
+ outputs: [{ name: "", internalType: "address", type: "address" }],
6920
+ stateMutability: "view"
6921
+ },
6922
+ {
6923
+ type: "function",
6924
+ inputs: [],
6925
+ name: "trendCoinImpl",
6926
+ outputs: [{ name: "", internalType: "address", type: "address" }],
6927
+ stateMutability: "view"
6928
+ },
6929
+ {
6930
+ type: "function",
6931
+ inputs: [],
6932
+ name: "trendCoinPoolConfig",
6933
+ outputs: [{ name: "", internalType: "bytes", type: "bytes" }],
6934
+ stateMutability: "view"
6935
+ },
6743
6936
  {
6744
6937
  type: "function",
6745
6938
  inputs: [
@@ -7005,6 +7198,75 @@ var devCoinFactoryABI = [
7005
7198
  ],
7006
7199
  name: "OwnershipTransferred"
7007
7200
  },
7201
+ {
7202
+ type: "event",
7203
+ anonymous: false,
7204
+ inputs: [
7205
+ {
7206
+ name: "caller",
7207
+ internalType: "address",
7208
+ type: "address",
7209
+ indexed: true
7210
+ },
7211
+ {
7212
+ name: "symbol",
7213
+ internalType: "string",
7214
+ type: "string",
7215
+ indexed: false
7216
+ },
7217
+ {
7218
+ name: "coin",
7219
+ internalType: "address",
7220
+ type: "address",
7221
+ indexed: false
7222
+ },
7223
+ {
7224
+ name: "poolKey",
7225
+ internalType: "struct PoolKey",
7226
+ type: "tuple",
7227
+ components: [
7228
+ { name: "currency0", internalType: "Currency", type: "address" },
7229
+ { name: "currency1", internalType: "Currency", type: "address" },
7230
+ { name: "fee", internalType: "uint24", type: "uint24" },
7231
+ { name: "tickSpacing", internalType: "int24", type: "int24" },
7232
+ { name: "hooks", internalType: "contract IHooks", type: "address" }
7233
+ ],
7234
+ indexed: false
7235
+ },
7236
+ {
7237
+ name: "poolKeyHash",
7238
+ internalType: "bytes32",
7239
+ type: "bytes32",
7240
+ indexed: false
7241
+ },
7242
+ {
7243
+ name: "poolConfig",
7244
+ internalType: "bytes",
7245
+ type: "bytes",
7246
+ indexed: false
7247
+ },
7248
+ {
7249
+ name: "version",
7250
+ internalType: "string",
7251
+ type: "string",
7252
+ indexed: false
7253
+ }
7254
+ ],
7255
+ name: "TrendCoinCreated"
7256
+ },
7257
+ {
7258
+ type: "event",
7259
+ anonymous: false,
7260
+ inputs: [
7261
+ {
7262
+ name: "poolConfig",
7263
+ internalType: "bytes",
7264
+ type: "bytes",
7265
+ indexed: false
7266
+ }
7267
+ ],
7268
+ name: "TrendCoinPoolConfigUpdated"
7269
+ },
7008
7270
  {
7009
7271
  type: "event",
7010
7272
  anonymous: false,
@@ -7057,6 +7319,7 @@ var devCoinFactoryABI = [
7057
7319
  ],
7058
7320
  name: "InvalidTickRangeMisordered"
7059
7321
  },
7322
+ { type: "error", inputs: [], name: "InvalidTickerCharacters" },
7060
7323
  {
7061
7324
  type: "error",
7062
7325
  inputs: [
@@ -7078,6 +7341,12 @@ var devCoinFactoryABI = [
7078
7341
  name: "OwnableUnauthorizedAccount"
7079
7342
  },
7080
7343
  { type: "error", inputs: [], name: "ReentrancyGuardReentrantCall" },
7344
+ {
7345
+ type: "error",
7346
+ inputs: [{ name: "symbol", internalType: "string", type: "string" }],
7347
+ name: "TickerAlreadyUsed"
7348
+ },
7349
+ { type: "error", inputs: [], name: "TrendCoinPoolConfigNotSet" },
7081
7350
  { type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" },
7082
7351
  {
7083
7352
  type: "error",
@@ -7092,6 +7361,7 @@ var devCoinFactoryABI = [
7092
7361
  ],
7093
7362
  name: "UpgradeToMismatchedContractName"
7094
7363
  },
7364
+ { type: "error", inputs: [], name: "UseSpecificTrendCoinInitialize" },
7095
7365
  { type: "error", inputs: [], name: "ZeroDiscoveryPositions" },
7096
7366
  { type: "error", inputs: [], name: "ZeroDiscoverySupplyShare" },
7097
7367
  { type: "error", inputs: [], name: "AddressZero" },
@@ -7199,6 +7469,7 @@ var devCoinFactoryABI = [
7199
7469
  ],
7200
7470
  name: "InvalidAccountNonce"
7201
7471
  },
7472
+ { type: "error", inputs: [], name: "InvalidCurrency" },
7202
7473
  { type: "error", inputs: [], name: "InvalidCurrencyLowerTick" },
7203
7474
  { type: "error", inputs: [], name: "InvalidInitialization" },
7204
7475
  { type: "error", inputs: [], name: "InvalidMarketType" },
@@ -7410,6 +7681,13 @@ var devZoraLimitOrderBookABI = [
7410
7681
  outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
7411
7682
  stateMutability: "view"
7412
7683
  },
7684
+ {
7685
+ type: "function",
7686
+ inputs: [],
7687
+ name: "contractVersion",
7688
+ outputs: [{ name: "", internalType: "string", type: "string" }],
7689
+ stateMutability: "pure"
7690
+ },
7413
7691
  {
7414
7692
  type: "function",
7415
7693
  inputs: [
@@ -7985,6 +8263,7 @@ var devZoraLimitOrderBookABI = [
7985
8263
  ],
7986
8264
  name: "InvalidAccountNonce"
7987
8265
  },
8266
+ { type: "error", inputs: [], name: "InvalidCurrency" },
7988
8267
  { type: "error", inputs: [], name: "InvalidCurrencyLowerTick" },
7989
8268
  { type: "error", inputs: [], name: "InvalidInitialization" },
7990
8269
  { type: "error", inputs: [], name: "InvalidMarketType" },
@@ -8094,18 +8373,51 @@ var devZoraLimitOrderBookABI = [
8094
8373
  name: "UpgradePathNotRegistered"
8095
8374
  },
8096
8375
  { type: "error", inputs: [], name: "ZoraHookRegistryCannotBeZeroAddress" },
8097
- { type: "error", inputs: [], name: "ZoraLimitOrderBookCannotBeZeroAddress" }
8098
- ];
8099
- var devZoraLimitOrderBookAddress = {
8100
- 8453: "0xE9443442e7b3c024e69c427D21580b9342450121"
8101
- };
8102
- var devZoraLimitOrderBookConfig = {
8103
- address: devZoraLimitOrderBookAddress,
8104
- abi: devZoraLimitOrderBookABI
8105
- };
8106
- var devZoraRouterABI = [
8376
+ { type: "error", inputs: [], name: "ZoraLimitOrderBookCannotBeZeroAddress" },
8377
+ { type: "error", inputs: [], name: "AlreadyUnlocked" },
8107
8378
  {
8108
- type: "constructor",
8379
+ type: "error",
8380
+ inputs: [
8381
+ { name: "currency0", internalType: "address", type: "address" },
8382
+ { name: "currency1", internalType: "address", type: "address" }
8383
+ ],
8384
+ name: "CurrenciesOutOfOrderOrEqual"
8385
+ },
8386
+ { type: "error", inputs: [], name: "CurrencyNotSettled" },
8387
+ { type: "error", inputs: [], name: "InvalidCaller" },
8388
+ { type: "error", inputs: [], name: "ManagerLocked" },
8389
+ { type: "error", inputs: [], name: "MustClearExactPositiveDelta" },
8390
+ { type: "error", inputs: [], name: "NonzeroNativeValue" },
8391
+ { type: "error", inputs: [], name: "PoolNotInitialized" },
8392
+ { type: "error", inputs: [], name: "ProtocolFeeCurrencySynced" },
8393
+ {
8394
+ type: "error",
8395
+ inputs: [{ name: "fee", internalType: "uint24", type: "uint24" }],
8396
+ name: "ProtocolFeeTooLarge"
8397
+ },
8398
+ { type: "error", inputs: [], name: "SwapAmountCannotBeZero" },
8399
+ {
8400
+ type: "error",
8401
+ inputs: [{ name: "tickSpacing", internalType: "int24", type: "int24" }],
8402
+ name: "TickSpacingTooLarge"
8403
+ },
8404
+ {
8405
+ type: "error",
8406
+ inputs: [{ name: "tickSpacing", internalType: "int24", type: "int24" }],
8407
+ name: "TickSpacingTooSmall"
8408
+ },
8409
+ { type: "error", inputs: [], name: "UnauthorizedDynamicLPFeeUpdate" }
8410
+ ];
8411
+ var devZoraLimitOrderBookAddress = {
8412
+ 8453: "0xCe2C8032F85aB6a7148138F8a1235d2b17D53Dc5"
8413
+ };
8414
+ var devZoraLimitOrderBookConfig = {
8415
+ address: devZoraLimitOrderBookAddress,
8416
+ abi: devZoraLimitOrderBookABI
8417
+ };
8418
+ var devZoraRouterABI = [
8419
+ {
8420
+ type: "constructor",
8109
8421
  inputs: [
8110
8422
  {
8111
8423
  name: "poolManager_",
@@ -8135,6 +8447,13 @@ var devZoraRouterABI = [
8135
8447
  outputs: [],
8136
8448
  stateMutability: "nonpayable"
8137
8449
  },
8450
+ {
8451
+ type: "function",
8452
+ inputs: [],
8453
+ name: "contractVersion",
8454
+ outputs: [{ name: "", internalType: "string", type: "string" }],
8455
+ stateMutability: "pure"
8456
+ },
8138
8457
  {
8139
8458
  type: "function",
8140
8459
  inputs: [],
@@ -8461,6 +8780,65 @@ var devZoraRouterABI = [
8461
8780
  { type: "error", inputs: [], name: "V3RouteDoesNotConnectToV4RouteStart" },
8462
8781
  { type: "error", inputs: [], name: "ZeroSwapDelta" },
8463
8782
  { type: "error", inputs: [], name: "AddressZero" },
8783
+ { type: "error", inputs: [], name: "ArrayLengthMismatch" },
8784
+ { type: "error", inputs: [], name: "CallerNotPermitted" },
8785
+ {
8786
+ type: "error",
8787
+ inputs: [
8788
+ { name: "orderId", internalType: "bytes32", type: "bytes32" },
8789
+ { name: "expectedCoin", internalType: "address", type: "address" },
8790
+ { name: "actualCoin", internalType: "address", type: "address" }
8791
+ ],
8792
+ name: "CoinMismatch"
8793
+ },
8794
+ { type: "error", inputs: [], name: "InsufficientForwardedFunds" },
8795
+ { type: "error", inputs: [], name: "InsufficientTransferFunds" },
8796
+ {
8797
+ type: "error",
8798
+ inputs: [
8799
+ { name: "startTick", internalType: "int24", type: "int24" },
8800
+ { name: "endTick", internalType: "int24", type: "int24" },
8801
+ { name: "isCurrency0", internalType: "bool", type: "bool" }
8802
+ ],
8803
+ name: "InvalidFillWindow"
8804
+ },
8805
+ { type: "error", inputs: [], name: "InvalidOrder" },
8806
+ { type: "error", inputs: [], name: "InvalidPoolKey" },
8807
+ { type: "error", inputs: [], name: "MaxFillCountCannotBeZero" },
8808
+ {
8809
+ type: "error",
8810
+ inputs: [
8811
+ { name: "withdrawn", internalType: "uint256", type: "uint256" },
8812
+ { name: "minAmountOut", internalType: "uint256", type: "uint256" }
8813
+ ],
8814
+ name: "MinAmountNotReached"
8815
+ },
8816
+ { type: "error", inputs: [], name: "NativeValueMismatch" },
8817
+ { type: "error", inputs: [], name: "NotPoolManager" },
8818
+ { type: "error", inputs: [], name: "OnlyZoraHook" },
8819
+ { type: "error", inputs: [], name: "OrderClosed" },
8820
+ { type: "error", inputs: [], name: "OrderFillable" },
8821
+ { type: "error", inputs: [], name: "OrderNotMaker" },
8822
+ {
8823
+ type: "error",
8824
+ inputs: [{ name: "owner", internalType: "address", type: "address" }],
8825
+ name: "OwnableInvalidOwner"
8826
+ },
8827
+ {
8828
+ type: "error",
8829
+ inputs: [{ name: "account", internalType: "address", type: "address" }],
8830
+ name: "OwnableUnauthorizedAccount"
8831
+ },
8832
+ { type: "error", inputs: [], name: "PathMustHaveAtLeastOneStep" },
8833
+ { type: "error", inputs: [], name: "PermittedCallersLengthMismatch" },
8834
+ { type: "error", inputs: [], name: "RouterMsgSenderInvalid" },
8835
+ { type: "error", inputs: [], name: "UnknownCallback" },
8836
+ { type: "error", inputs: [], name: "UnlockedFillNotAllowed" },
8837
+ { type: "error", inputs: [], name: "WethTransferFailed" },
8838
+ { type: "error", inputs: [], name: "ZeroMaker" },
8839
+ { type: "error", inputs: [], name: "ZeroOrderSize" },
8840
+ { type: "error", inputs: [], name: "ZeroRealizedOrder" },
8841
+ { type: "error", inputs: [], name: "AddressZero" },
8464
8842
  { type: "error", inputs: [], name: "AlreadyOwner" },
8465
8843
  { type: "error", inputs: [], name: "CannotMintZeroLiquidity" },
8466
8844
  {
@@ -8546,6 +8924,7 @@ var devZoraRouterABI = [
8546
8924
  ],
8547
8925
  name: "InvalidAccountNonce"
8548
8926
  },
8927
+ { type: "error", inputs: [], name: "InvalidCurrency" },
8549
8928
  { type: "error", inputs: [], name: "InvalidCurrencyLowerTick" },
8550
8929
  { type: "error", inputs: [], name: "InvalidInitialization" },
8551
8930
  { type: "error", inputs: [], name: "InvalidMarketType" },
@@ -8656,68 +9035,54 @@ var devZoraRouterABI = [
8656
9035
  },
8657
9036
  { type: "error", inputs: [], name: "ZoraHookRegistryCannotBeZeroAddress" },
8658
9037
  { type: "error", inputs: [], name: "ZoraLimitOrderBookCannotBeZeroAddress" },
8659
- { type: "error", inputs: [], name: "AddressZero" },
8660
- { type: "error", inputs: [], name: "ArrayLengthMismatch" },
8661
- { type: "error", inputs: [], name: "CallerNotPermitted" },
9038
+ { type: "error", inputs: [], name: "AlreadyUnlocked" },
8662
9039
  {
8663
9040
  type: "error",
8664
9041
  inputs: [
8665
- { name: "orderId", internalType: "bytes32", type: "bytes32" },
8666
- { name: "expectedCoin", internalType: "address", type: "address" },
8667
- { name: "actualCoin", internalType: "address", type: "address" }
9042
+ { name: "currency0", internalType: "address", type: "address" },
9043
+ { name: "currency1", internalType: "address", type: "address" }
8668
9044
  ],
8669
- name: "CoinMismatch"
9045
+ name: "CurrenciesOutOfOrderOrEqual"
8670
9046
  },
8671
- { type: "error", inputs: [], name: "InsufficientForwardedFunds" },
8672
- { type: "error", inputs: [], name: "InsufficientTransferFunds" },
9047
+ { type: "error", inputs: [], name: "CurrencyNotSettled" },
9048
+ { type: "error", inputs: [], name: "InvalidCaller" },
9049
+ { type: "error", inputs: [], name: "ManagerLocked" },
9050
+ { type: "error", inputs: [], name: "MustClearExactPositiveDelta" },
9051
+ { type: "error", inputs: [], name: "NonzeroNativeValue" },
9052
+ { type: "error", inputs: [], name: "PoolNotInitialized" },
9053
+ { type: "error", inputs: [], name: "ProtocolFeeCurrencySynced" },
8673
9054
  {
8674
9055
  type: "error",
8675
- inputs: [
8676
- { name: "startTick", internalType: "int24", type: "int24" },
8677
- { name: "endTick", internalType: "int24", type: "int24" },
8678
- { name: "isCurrency0", internalType: "bool", type: "bool" }
8679
- ],
8680
- name: "InvalidFillWindow"
9056
+ inputs: [{ name: "fee", internalType: "uint24", type: "uint24" }],
9057
+ name: "ProtocolFeeTooLarge"
8681
9058
  },
8682
- { type: "error", inputs: [], name: "InvalidOrder" },
8683
- { type: "error", inputs: [], name: "InvalidPoolKey" },
8684
- { type: "error", inputs: [], name: "MaxFillCountCannotBeZero" },
9059
+ { type: "error", inputs: [], name: "SwapAmountCannotBeZero" },
8685
9060
  {
8686
9061
  type: "error",
8687
- inputs: [
8688
- { name: "withdrawn", internalType: "uint256", type: "uint256" },
8689
- { name: "minAmountOut", internalType: "uint256", type: "uint256" }
8690
- ],
8691
- name: "MinAmountNotReached"
9062
+ inputs: [{ name: "tickSpacing", internalType: "int24", type: "int24" }],
9063
+ name: "TickSpacingTooLarge"
8692
9064
  },
8693
- { type: "error", inputs: [], name: "NativeValueMismatch" },
8694
- { type: "error", inputs: [], name: "NotPoolManager" },
8695
- { type: "error", inputs: [], name: "OnlyZoraHook" },
8696
- { type: "error", inputs: [], name: "OrderClosed" },
8697
- { type: "error", inputs: [], name: "OrderFillable" },
8698
- { type: "error", inputs: [], name: "OrderNotMaker" },
8699
9065
  {
8700
9066
  type: "error",
8701
- inputs: [{ name: "owner", internalType: "address", type: "address" }],
8702
- name: "OwnableInvalidOwner"
9067
+ inputs: [{ name: "tickSpacing", internalType: "int24", type: "int24" }],
9068
+ name: "TickSpacingTooSmall"
8703
9069
  },
9070
+ { type: "error", inputs: [], name: "UnauthorizedDynamicLPFeeUpdate" },
9071
+ { type: "error", inputs: [], name: "ETHNotAccepted" },
8704
9072
  {
8705
9073
  type: "error",
8706
- inputs: [{ name: "account", internalType: "address", type: "address" }],
8707
- name: "OwnableUnauthorizedAccount"
9074
+ inputs: [
9075
+ { name: "commandIndex", internalType: "uint256", type: "uint256" },
9076
+ { name: "message", internalType: "bytes", type: "bytes" }
9077
+ ],
9078
+ name: "ExecutionFailed"
8708
9079
  },
8709
- { type: "error", inputs: [], name: "PathMustHaveAtLeastOneStep" },
8710
- { type: "error", inputs: [], name: "PermittedCallersLengthMismatch" },
8711
- { type: "error", inputs: [], name: "RouterMsgSenderInvalid" },
8712
- { type: "error", inputs: [], name: "UnknownCallback" },
8713
- { type: "error", inputs: [], name: "UnlockedFillNotAllowed" },
8714
- { type: "error", inputs: [], name: "WethTransferFailed" },
8715
- { type: "error", inputs: [], name: "ZeroMaker" },
8716
- { type: "error", inputs: [], name: "ZeroOrderSize" },
8717
- { type: "error", inputs: [], name: "ZeroRealizedOrder" }
9080
+ { type: "error", inputs: [], name: "InvalidEthSender" },
9081
+ { type: "error", inputs: [], name: "LengthMismatch" },
9082
+ { type: "error", inputs: [], name: "TransactionDeadlinePassed" }
8718
9083
  ];
8719
9084
  var devZoraRouterAddress = {
8720
- 8453: "0xb3F0aAFd6d69e524DC83ae773bc739688d4F658d"
9085
+ 8453: "0x1F35FB3E07e68bC1Bf020c2d59cBF91Ccf5736b8"
8721
9086
  };
8722
9087
  var devZoraRouterConfig = {
8723
9088
  address: devZoraRouterAddress,
@@ -12293,113 +12658,804 @@ var uniswapV3SwapRouterABI = [
12293
12658
  ]
12294
12659
  }
12295
12660
  ],
12296
- name: "exactInput",
12297
- outputs: [{ name: "amountOut", internalType: "uint256", type: "uint256" }],
12298
- stateMutability: "payable"
12661
+ name: "exactInput",
12662
+ outputs: [{ name: "amountOut", internalType: "uint256", type: "uint256" }],
12663
+ stateMutability: "payable"
12664
+ },
12665
+ {
12666
+ type: "function",
12667
+ inputs: [
12668
+ {
12669
+ name: "params",
12670
+ internalType: "struct ISwapRouter.ExactInputSingleParams",
12671
+ type: "tuple",
12672
+ components: [
12673
+ { name: "tokenIn", internalType: "address", type: "address" },
12674
+ { name: "tokenOut", internalType: "address", type: "address" },
12675
+ { name: "fee", internalType: "uint24", type: "uint24" },
12676
+ { name: "recipient", internalType: "address", type: "address" },
12677
+ { name: "amountIn", internalType: "uint256", type: "uint256" },
12678
+ {
12679
+ name: "amountOutMinimum",
12680
+ internalType: "uint256",
12681
+ type: "uint256"
12682
+ },
12683
+ {
12684
+ name: "sqrtPriceLimitX96",
12685
+ internalType: "uint160",
12686
+ type: "uint160"
12687
+ }
12688
+ ]
12689
+ }
12690
+ ],
12691
+ name: "exactInputSingle",
12692
+ outputs: [{ name: "amountOut", internalType: "uint256", type: "uint256" }],
12693
+ stateMutability: "payable"
12694
+ },
12695
+ {
12696
+ type: "function",
12697
+ inputs: [
12698
+ {
12699
+ name: "params",
12700
+ internalType: "struct ISwapRouter.ExactOutputParams",
12701
+ type: "tuple",
12702
+ components: [
12703
+ { name: "path", internalType: "bytes", type: "bytes" },
12704
+ { name: "recipient", internalType: "address", type: "address" },
12705
+ { name: "amountOut", internalType: "uint256", type: "uint256" },
12706
+ { name: "amountInMaximum", internalType: "uint256", type: "uint256" }
12707
+ ]
12708
+ }
12709
+ ],
12710
+ name: "exactOutput",
12711
+ outputs: [{ name: "amountIn", internalType: "uint256", type: "uint256" }],
12712
+ stateMutability: "payable"
12713
+ },
12714
+ {
12715
+ type: "function",
12716
+ inputs: [
12717
+ {
12718
+ name: "params",
12719
+ internalType: "struct ISwapRouter.ExactOutputSingleParams",
12720
+ type: "tuple",
12721
+ components: [
12722
+ { name: "tokenIn", internalType: "address", type: "address" },
12723
+ { name: "tokenOut", internalType: "address", type: "address" },
12724
+ { name: "fee", internalType: "uint24", type: "uint24" },
12725
+ { name: "recipient", internalType: "address", type: "address" },
12726
+ { name: "amountOut", internalType: "uint256", type: "uint256" },
12727
+ { name: "amountInMaximum", internalType: "uint256", type: "uint256" },
12728
+ {
12729
+ name: "sqrtPriceLimitX96",
12730
+ internalType: "uint160",
12731
+ type: "uint160"
12732
+ }
12733
+ ]
12734
+ }
12735
+ ],
12736
+ name: "exactOutputSingle",
12737
+ outputs: [{ name: "amountIn", internalType: "uint256", type: "uint256" }],
12738
+ stateMutability: "payable"
12739
+ },
12740
+ {
12741
+ type: "function",
12742
+ inputs: [
12743
+ { name: "amount0Delta", internalType: "int256", type: "int256" },
12744
+ { name: "amount1Delta", internalType: "int256", type: "int256" },
12745
+ { name: "data", internalType: "bytes", type: "bytes" }
12746
+ ],
12747
+ name: "uniswapV3SwapCallback",
12748
+ outputs: [],
12749
+ stateMutability: "nonpayable"
12750
+ }
12751
+ ];
12752
+ var uniswapV3SwapRouterAddress = {
12753
+ 1: "0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45",
12754
+ 10: "0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45",
12755
+ 8453: "0x2626664c2603336E57B271c5C0b26F421741e481",
12756
+ 42161: "0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45",
12757
+ 81457: "0x549FEB8c9bd4c12Ad2AB27022dA12492aC452B66",
12758
+ 84532: "0x94cC0AaC535CCDB3C01d6787D6413C739ae12bc4",
12759
+ 421614: "0x101F443B4d1b059569D643917553c771E1b9663E",
12760
+ 7777777: "0x7De04c96BE5159c3b5CeffC82aa176dc81281557",
12761
+ 11155111: "0x3bFA4769FB09eefC5a80d6E87c3B9C650f7Ae48E",
12762
+ 11155420: "0x94cC0AaC535CCDB3C01d6787D6413C739ae12bc4",
12763
+ 999999999: "0x6B36d761981d82B1e07cF3c4daF4cB4615c4850a"
12764
+ };
12765
+ var uniswapV3SwapRouterConfig = {
12766
+ address: uniswapV3SwapRouterAddress,
12767
+ abi: uniswapV3SwapRouterABI
12768
+ };
12769
+ var uniswapV4PoolManagerABI = [
12770
+ {
12771
+ type: "function",
12772
+ inputs: [
12773
+ { name: "owner", internalType: "address", type: "address" },
12774
+ { name: "spender", internalType: "address", type: "address" },
12775
+ { name: "id", internalType: "uint256", type: "uint256" }
12776
+ ],
12777
+ name: "allowance",
12778
+ outputs: [{ name: "amount", internalType: "uint256", type: "uint256" }],
12779
+ stateMutability: "view"
12780
+ },
12781
+ {
12782
+ type: "function",
12783
+ inputs: [
12784
+ { name: "spender", internalType: "address", type: "address" },
12785
+ { name: "id", internalType: "uint256", type: "uint256" },
12786
+ { name: "amount", internalType: "uint256", type: "uint256" }
12787
+ ],
12788
+ name: "approve",
12789
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
12790
+ stateMutability: "nonpayable"
12791
+ },
12792
+ {
12793
+ type: "function",
12794
+ inputs: [
12795
+ { name: "owner", internalType: "address", type: "address" },
12796
+ { name: "id", internalType: "uint256", type: "uint256" }
12797
+ ],
12798
+ name: "balanceOf",
12799
+ outputs: [{ name: "amount", internalType: "uint256", type: "uint256" }],
12800
+ stateMutability: "view"
12801
+ },
12802
+ {
12803
+ type: "function",
12804
+ inputs: [
12805
+ { name: "from", internalType: "address", type: "address" },
12806
+ { name: "id", internalType: "uint256", type: "uint256" },
12807
+ { name: "amount", internalType: "uint256", type: "uint256" }
12808
+ ],
12809
+ name: "burn",
12810
+ outputs: [],
12811
+ stateMutability: "nonpayable"
12812
+ },
12813
+ {
12814
+ type: "function",
12815
+ inputs: [
12816
+ { name: "currency", internalType: "Currency", type: "address" },
12817
+ { name: "amount", internalType: "uint256", type: "uint256" }
12818
+ ],
12819
+ name: "clear",
12820
+ outputs: [],
12821
+ stateMutability: "nonpayable"
12822
+ },
12823
+ {
12824
+ type: "function",
12825
+ inputs: [
12826
+ { name: "recipient", internalType: "address", type: "address" },
12827
+ { name: "currency", internalType: "Currency", type: "address" },
12828
+ { name: "amount", internalType: "uint256", type: "uint256" }
12829
+ ],
12830
+ name: "collectProtocolFees",
12831
+ outputs: [
12832
+ { name: "amountCollected", internalType: "uint256", type: "uint256" }
12833
+ ],
12834
+ stateMutability: "nonpayable"
12835
+ },
12836
+ {
12837
+ type: "function",
12838
+ inputs: [
12839
+ {
12840
+ name: "key",
12841
+ internalType: "struct PoolKey",
12842
+ type: "tuple",
12843
+ components: [
12844
+ { name: "currency0", internalType: "Currency", type: "address" },
12845
+ { name: "currency1", internalType: "Currency", type: "address" },
12846
+ { name: "fee", internalType: "uint24", type: "uint24" },
12847
+ { name: "tickSpacing", internalType: "int24", type: "int24" },
12848
+ { name: "hooks", internalType: "contract IHooks", type: "address" }
12849
+ ]
12850
+ },
12851
+ { name: "amount0", internalType: "uint256", type: "uint256" },
12852
+ { name: "amount1", internalType: "uint256", type: "uint256" },
12853
+ { name: "hookData", internalType: "bytes", type: "bytes" }
12854
+ ],
12855
+ name: "donate",
12856
+ outputs: [{ name: "", internalType: "BalanceDelta", type: "int256" }],
12857
+ stateMutability: "nonpayable"
12858
+ },
12859
+ {
12860
+ type: "function",
12861
+ inputs: [{ name: "slot", internalType: "bytes32", type: "bytes32" }],
12862
+ name: "extsload",
12863
+ outputs: [{ name: "value", internalType: "bytes32", type: "bytes32" }],
12864
+ stateMutability: "view"
12865
+ },
12866
+ {
12867
+ type: "function",
12868
+ inputs: [
12869
+ { name: "startSlot", internalType: "bytes32", type: "bytes32" },
12870
+ { name: "nSlots", internalType: "uint256", type: "uint256" }
12871
+ ],
12872
+ name: "extsload",
12873
+ outputs: [{ name: "values", internalType: "bytes32[]", type: "bytes32[]" }],
12874
+ stateMutability: "view"
12875
+ },
12876
+ {
12877
+ type: "function",
12878
+ inputs: [{ name: "slots", internalType: "bytes32[]", type: "bytes32[]" }],
12879
+ name: "extsload",
12880
+ outputs: [{ name: "values", internalType: "bytes32[]", type: "bytes32[]" }],
12881
+ stateMutability: "view"
12882
+ },
12883
+ {
12884
+ type: "function",
12885
+ inputs: [{ name: "slots", internalType: "bytes32[]", type: "bytes32[]" }],
12886
+ name: "exttload",
12887
+ outputs: [{ name: "values", internalType: "bytes32[]", type: "bytes32[]" }],
12888
+ stateMutability: "view"
12889
+ },
12890
+ {
12891
+ type: "function",
12892
+ inputs: [{ name: "slot", internalType: "bytes32", type: "bytes32" }],
12893
+ name: "exttload",
12894
+ outputs: [{ name: "value", internalType: "bytes32", type: "bytes32" }],
12895
+ stateMutability: "view"
12896
+ },
12897
+ {
12898
+ type: "function",
12899
+ inputs: [
12900
+ {
12901
+ name: "key",
12902
+ internalType: "struct PoolKey",
12903
+ type: "tuple",
12904
+ components: [
12905
+ { name: "currency0", internalType: "Currency", type: "address" },
12906
+ { name: "currency1", internalType: "Currency", type: "address" },
12907
+ { name: "fee", internalType: "uint24", type: "uint24" },
12908
+ { name: "tickSpacing", internalType: "int24", type: "int24" },
12909
+ { name: "hooks", internalType: "contract IHooks", type: "address" }
12910
+ ]
12911
+ },
12912
+ { name: "sqrtPriceX96", internalType: "uint160", type: "uint160" }
12913
+ ],
12914
+ name: "initialize",
12915
+ outputs: [{ name: "tick", internalType: "int24", type: "int24" }],
12916
+ stateMutability: "nonpayable"
12917
+ },
12918
+ {
12919
+ type: "function",
12920
+ inputs: [
12921
+ { name: "owner", internalType: "address", type: "address" },
12922
+ { name: "spender", internalType: "address", type: "address" }
12923
+ ],
12924
+ name: "isOperator",
12925
+ outputs: [{ name: "approved", internalType: "bool", type: "bool" }],
12926
+ stateMutability: "view"
12927
+ },
12928
+ {
12929
+ type: "function",
12930
+ inputs: [
12931
+ { name: "to", internalType: "address", type: "address" },
12932
+ { name: "id", internalType: "uint256", type: "uint256" },
12933
+ { name: "amount", internalType: "uint256", type: "uint256" }
12934
+ ],
12935
+ name: "mint",
12936
+ outputs: [],
12937
+ stateMutability: "nonpayable"
12938
+ },
12939
+ {
12940
+ type: "function",
12941
+ inputs: [
12942
+ {
12943
+ name: "key",
12944
+ internalType: "struct PoolKey",
12945
+ type: "tuple",
12946
+ components: [
12947
+ { name: "currency0", internalType: "Currency", type: "address" },
12948
+ { name: "currency1", internalType: "Currency", type: "address" },
12949
+ { name: "fee", internalType: "uint24", type: "uint24" },
12950
+ { name: "tickSpacing", internalType: "int24", type: "int24" },
12951
+ { name: "hooks", internalType: "contract IHooks", type: "address" }
12952
+ ]
12953
+ },
12954
+ {
12955
+ name: "params",
12956
+ internalType: "struct ModifyLiquidityParams",
12957
+ type: "tuple",
12958
+ components: [
12959
+ { name: "tickLower", internalType: "int24", type: "int24" },
12960
+ { name: "tickUpper", internalType: "int24", type: "int24" },
12961
+ { name: "liquidityDelta", internalType: "int256", type: "int256" },
12962
+ { name: "salt", internalType: "bytes32", type: "bytes32" }
12963
+ ]
12964
+ },
12965
+ { name: "hookData", internalType: "bytes", type: "bytes" }
12966
+ ],
12967
+ name: "modifyLiquidity",
12968
+ outputs: [
12969
+ { name: "callerDelta", internalType: "BalanceDelta", type: "int256" },
12970
+ { name: "feesAccrued", internalType: "BalanceDelta", type: "int256" }
12971
+ ],
12972
+ stateMutability: "nonpayable"
12973
+ },
12974
+ {
12975
+ type: "function",
12976
+ inputs: [],
12977
+ name: "protocolFeeController",
12978
+ outputs: [{ name: "", internalType: "address", type: "address" }],
12979
+ stateMutability: "view"
12980
+ },
12981
+ {
12982
+ type: "function",
12983
+ inputs: [{ name: "currency", internalType: "Currency", type: "address" }],
12984
+ name: "protocolFeesAccrued",
12985
+ outputs: [{ name: "amount", internalType: "uint256", type: "uint256" }],
12986
+ stateMutability: "view"
12987
+ },
12988
+ {
12989
+ type: "function",
12990
+ inputs: [
12991
+ { name: "operator", internalType: "address", type: "address" },
12992
+ { name: "approved", internalType: "bool", type: "bool" }
12993
+ ],
12994
+ name: "setOperator",
12995
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
12996
+ stateMutability: "nonpayable"
12997
+ },
12998
+ {
12999
+ type: "function",
13000
+ inputs: [
13001
+ {
13002
+ name: "key",
13003
+ internalType: "struct PoolKey",
13004
+ type: "tuple",
13005
+ components: [
13006
+ { name: "currency0", internalType: "Currency", type: "address" },
13007
+ { name: "currency1", internalType: "Currency", type: "address" },
13008
+ { name: "fee", internalType: "uint24", type: "uint24" },
13009
+ { name: "tickSpacing", internalType: "int24", type: "int24" },
13010
+ { name: "hooks", internalType: "contract IHooks", type: "address" }
13011
+ ]
13012
+ },
13013
+ { name: "newProtocolFee", internalType: "uint24", type: "uint24" }
13014
+ ],
13015
+ name: "setProtocolFee",
13016
+ outputs: [],
13017
+ stateMutability: "nonpayable"
13018
+ },
13019
+ {
13020
+ type: "function",
13021
+ inputs: [{ name: "controller", internalType: "address", type: "address" }],
13022
+ name: "setProtocolFeeController",
13023
+ outputs: [],
13024
+ stateMutability: "nonpayable"
13025
+ },
13026
+ {
13027
+ type: "function",
13028
+ inputs: [],
13029
+ name: "settle",
13030
+ outputs: [{ name: "paid", internalType: "uint256", type: "uint256" }],
13031
+ stateMutability: "payable"
13032
+ },
13033
+ {
13034
+ type: "function",
13035
+ inputs: [{ name: "recipient", internalType: "address", type: "address" }],
13036
+ name: "settleFor",
13037
+ outputs: [{ name: "paid", internalType: "uint256", type: "uint256" }],
13038
+ stateMutability: "payable"
13039
+ },
13040
+ {
13041
+ type: "function",
13042
+ inputs: [
13043
+ {
13044
+ name: "key",
13045
+ internalType: "struct PoolKey",
13046
+ type: "tuple",
13047
+ components: [
13048
+ { name: "currency0", internalType: "Currency", type: "address" },
13049
+ { name: "currency1", internalType: "Currency", type: "address" },
13050
+ { name: "fee", internalType: "uint24", type: "uint24" },
13051
+ { name: "tickSpacing", internalType: "int24", type: "int24" },
13052
+ { name: "hooks", internalType: "contract IHooks", type: "address" }
13053
+ ]
13054
+ },
13055
+ {
13056
+ name: "params",
13057
+ internalType: "struct SwapParams",
13058
+ type: "tuple",
13059
+ components: [
13060
+ { name: "zeroForOne", internalType: "bool", type: "bool" },
13061
+ { name: "amountSpecified", internalType: "int256", type: "int256" },
13062
+ {
13063
+ name: "sqrtPriceLimitX96",
13064
+ internalType: "uint160",
13065
+ type: "uint160"
13066
+ }
13067
+ ]
13068
+ },
13069
+ { name: "hookData", internalType: "bytes", type: "bytes" }
13070
+ ],
13071
+ name: "swap",
13072
+ outputs: [
13073
+ { name: "swapDelta", internalType: "BalanceDelta", type: "int256" }
13074
+ ],
13075
+ stateMutability: "nonpayable"
13076
+ },
13077
+ {
13078
+ type: "function",
13079
+ inputs: [{ name: "currency", internalType: "Currency", type: "address" }],
13080
+ name: "sync",
13081
+ outputs: [],
13082
+ stateMutability: "nonpayable"
13083
+ },
13084
+ {
13085
+ type: "function",
13086
+ inputs: [
13087
+ { name: "currency", internalType: "Currency", type: "address" },
13088
+ { name: "to", internalType: "address", type: "address" },
13089
+ { name: "amount", internalType: "uint256", type: "uint256" }
13090
+ ],
13091
+ name: "take",
13092
+ outputs: [],
13093
+ stateMutability: "nonpayable"
13094
+ },
13095
+ {
13096
+ type: "function",
13097
+ inputs: [
13098
+ { name: "receiver", internalType: "address", type: "address" },
13099
+ { name: "id", internalType: "uint256", type: "uint256" },
13100
+ { name: "amount", internalType: "uint256", type: "uint256" }
13101
+ ],
13102
+ name: "transfer",
13103
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
13104
+ stateMutability: "nonpayable"
13105
+ },
13106
+ {
13107
+ type: "function",
13108
+ inputs: [
13109
+ { name: "sender", internalType: "address", type: "address" },
13110
+ { name: "receiver", internalType: "address", type: "address" },
13111
+ { name: "id", internalType: "uint256", type: "uint256" },
13112
+ { name: "amount", internalType: "uint256", type: "uint256" }
13113
+ ],
13114
+ name: "transferFrom",
13115
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
13116
+ stateMutability: "nonpayable"
13117
+ },
13118
+ {
13119
+ type: "function",
13120
+ inputs: [{ name: "data", internalType: "bytes", type: "bytes" }],
13121
+ name: "unlock",
13122
+ outputs: [{ name: "", internalType: "bytes", type: "bytes" }],
13123
+ stateMutability: "nonpayable"
13124
+ },
13125
+ {
13126
+ type: "function",
13127
+ inputs: [
13128
+ {
13129
+ name: "key",
13130
+ internalType: "struct PoolKey",
13131
+ type: "tuple",
13132
+ components: [
13133
+ { name: "currency0", internalType: "Currency", type: "address" },
13134
+ { name: "currency1", internalType: "Currency", type: "address" },
13135
+ { name: "fee", internalType: "uint24", type: "uint24" },
13136
+ { name: "tickSpacing", internalType: "int24", type: "int24" },
13137
+ { name: "hooks", internalType: "contract IHooks", type: "address" }
13138
+ ]
13139
+ },
13140
+ { name: "newDynamicLPFee", internalType: "uint24", type: "uint24" }
13141
+ ],
13142
+ name: "updateDynamicLPFee",
13143
+ outputs: [],
13144
+ stateMutability: "nonpayable"
13145
+ },
13146
+ {
13147
+ type: "event",
13148
+ anonymous: false,
13149
+ inputs: [
13150
+ {
13151
+ name: "owner",
13152
+ internalType: "address",
13153
+ type: "address",
13154
+ indexed: true
13155
+ },
13156
+ {
13157
+ name: "spender",
13158
+ internalType: "address",
13159
+ type: "address",
13160
+ indexed: true
13161
+ },
13162
+ { name: "id", internalType: "uint256", type: "uint256", indexed: true },
13163
+ {
13164
+ name: "amount",
13165
+ internalType: "uint256",
13166
+ type: "uint256",
13167
+ indexed: false
13168
+ }
13169
+ ],
13170
+ name: "Approval"
13171
+ },
13172
+ {
13173
+ type: "event",
13174
+ anonymous: false,
13175
+ inputs: [
13176
+ { name: "id", internalType: "PoolId", type: "bytes32", indexed: true },
13177
+ {
13178
+ name: "sender",
13179
+ internalType: "address",
13180
+ type: "address",
13181
+ indexed: true
13182
+ },
13183
+ {
13184
+ name: "amount0",
13185
+ internalType: "uint256",
13186
+ type: "uint256",
13187
+ indexed: false
13188
+ },
13189
+ {
13190
+ name: "amount1",
13191
+ internalType: "uint256",
13192
+ type: "uint256",
13193
+ indexed: false
13194
+ }
13195
+ ],
13196
+ name: "Donate"
13197
+ },
13198
+ {
13199
+ type: "event",
13200
+ anonymous: false,
13201
+ inputs: [
13202
+ { name: "id", internalType: "PoolId", type: "bytes32", indexed: true },
13203
+ {
13204
+ name: "currency0",
13205
+ internalType: "Currency",
13206
+ type: "address",
13207
+ indexed: true
13208
+ },
13209
+ {
13210
+ name: "currency1",
13211
+ internalType: "Currency",
13212
+ type: "address",
13213
+ indexed: true
13214
+ },
13215
+ { name: "fee", internalType: "uint24", type: "uint24", indexed: false },
13216
+ {
13217
+ name: "tickSpacing",
13218
+ internalType: "int24",
13219
+ type: "int24",
13220
+ indexed: false
13221
+ },
13222
+ {
13223
+ name: "hooks",
13224
+ internalType: "contract IHooks",
13225
+ type: "address",
13226
+ indexed: false
13227
+ },
13228
+ {
13229
+ name: "sqrtPriceX96",
13230
+ internalType: "uint160",
13231
+ type: "uint160",
13232
+ indexed: false
13233
+ },
13234
+ { name: "tick", internalType: "int24", type: "int24", indexed: false }
13235
+ ],
13236
+ name: "Initialize"
13237
+ },
13238
+ {
13239
+ type: "event",
13240
+ anonymous: false,
13241
+ inputs: [
13242
+ { name: "id", internalType: "PoolId", type: "bytes32", indexed: true },
13243
+ {
13244
+ name: "sender",
13245
+ internalType: "address",
13246
+ type: "address",
13247
+ indexed: true
13248
+ },
13249
+ {
13250
+ name: "tickLower",
13251
+ internalType: "int24",
13252
+ type: "int24",
13253
+ indexed: false
13254
+ },
13255
+ {
13256
+ name: "tickUpper",
13257
+ internalType: "int24",
13258
+ type: "int24",
13259
+ indexed: false
13260
+ },
13261
+ {
13262
+ name: "liquidityDelta",
13263
+ internalType: "int256",
13264
+ type: "int256",
13265
+ indexed: false
13266
+ },
13267
+ {
13268
+ name: "salt",
13269
+ internalType: "bytes32",
13270
+ type: "bytes32",
13271
+ indexed: false
13272
+ }
13273
+ ],
13274
+ name: "ModifyLiquidity"
13275
+ },
13276
+ {
13277
+ type: "event",
13278
+ anonymous: false,
13279
+ inputs: [
13280
+ {
13281
+ name: "owner",
13282
+ internalType: "address",
13283
+ type: "address",
13284
+ indexed: true
13285
+ },
13286
+ {
13287
+ name: "operator",
13288
+ internalType: "address",
13289
+ type: "address",
13290
+ indexed: true
13291
+ },
13292
+ { name: "approved", internalType: "bool", type: "bool", indexed: false }
13293
+ ],
13294
+ name: "OperatorSet"
13295
+ },
13296
+ {
13297
+ type: "event",
13298
+ anonymous: false,
13299
+ inputs: [
13300
+ {
13301
+ name: "protocolFeeController",
13302
+ internalType: "address",
13303
+ type: "address",
13304
+ indexed: true
13305
+ }
13306
+ ],
13307
+ name: "ProtocolFeeControllerUpdated"
13308
+ },
13309
+ {
13310
+ type: "event",
13311
+ anonymous: false,
13312
+ inputs: [
13313
+ { name: "id", internalType: "PoolId", type: "bytes32", indexed: true },
13314
+ {
13315
+ name: "protocolFee",
13316
+ internalType: "uint24",
13317
+ type: "uint24",
13318
+ indexed: false
13319
+ }
13320
+ ],
13321
+ name: "ProtocolFeeUpdated"
13322
+ },
13323
+ {
13324
+ type: "event",
13325
+ anonymous: false,
13326
+ inputs: [
13327
+ { name: "id", internalType: "PoolId", type: "bytes32", indexed: true },
13328
+ {
13329
+ name: "sender",
13330
+ internalType: "address",
13331
+ type: "address",
13332
+ indexed: true
13333
+ },
13334
+ {
13335
+ name: "amount0",
13336
+ internalType: "int128",
13337
+ type: "int128",
13338
+ indexed: false
13339
+ },
13340
+ {
13341
+ name: "amount1",
13342
+ internalType: "int128",
13343
+ type: "int128",
13344
+ indexed: false
13345
+ },
13346
+ {
13347
+ name: "sqrtPriceX96",
13348
+ internalType: "uint160",
13349
+ type: "uint160",
13350
+ indexed: false
13351
+ },
13352
+ {
13353
+ name: "liquidity",
13354
+ internalType: "uint128",
13355
+ type: "uint128",
13356
+ indexed: false
13357
+ },
13358
+ { name: "tick", internalType: "int24", type: "int24", indexed: false },
13359
+ { name: "fee", internalType: "uint24", type: "uint24", indexed: false }
13360
+ ],
13361
+ name: "Swap"
12299
13362
  },
12300
13363
  {
12301
- type: "function",
13364
+ type: "event",
13365
+ anonymous: false,
12302
13366
  inputs: [
12303
13367
  {
12304
- name: "params",
12305
- internalType: "struct ISwapRouter.ExactInputSingleParams",
12306
- type: "tuple",
12307
- components: [
12308
- { name: "tokenIn", internalType: "address", type: "address" },
12309
- { name: "tokenOut", internalType: "address", type: "address" },
12310
- { name: "fee", internalType: "uint24", type: "uint24" },
12311
- { name: "recipient", internalType: "address", type: "address" },
12312
- { name: "amountIn", internalType: "uint256", type: "uint256" },
12313
- {
12314
- name: "amountOutMinimum",
12315
- internalType: "uint256",
12316
- type: "uint256"
12317
- },
12318
- {
12319
- name: "sqrtPriceLimitX96",
12320
- internalType: "uint160",
12321
- type: "uint160"
12322
- }
12323
- ]
13368
+ name: "caller",
13369
+ internalType: "address",
13370
+ type: "address",
13371
+ indexed: false
13372
+ },
13373
+ { name: "from", internalType: "address", type: "address", indexed: true },
13374
+ { name: "to", internalType: "address", type: "address", indexed: true },
13375
+ { name: "id", internalType: "uint256", type: "uint256", indexed: true },
13376
+ {
13377
+ name: "amount",
13378
+ internalType: "uint256",
13379
+ type: "uint256",
13380
+ indexed: false
12324
13381
  }
12325
13382
  ],
12326
- name: "exactInputSingle",
12327
- outputs: [{ name: "amountOut", internalType: "uint256", type: "uint256" }],
12328
- stateMutability: "payable"
13383
+ name: "Transfer"
12329
13384
  },
13385
+ { type: "error", inputs: [], name: "AlreadyUnlocked" },
12330
13386
  {
12331
- type: "function",
13387
+ type: "error",
12332
13388
  inputs: [
12333
- {
12334
- name: "params",
12335
- internalType: "struct ISwapRouter.ExactOutputParams",
12336
- type: "tuple",
12337
- components: [
12338
- { name: "path", internalType: "bytes", type: "bytes" },
12339
- { name: "recipient", internalType: "address", type: "address" },
12340
- { name: "amountOut", internalType: "uint256", type: "uint256" },
12341
- { name: "amountInMaximum", internalType: "uint256", type: "uint256" }
12342
- ]
12343
- }
13389
+ { name: "currency0", internalType: "address", type: "address" },
13390
+ { name: "currency1", internalType: "address", type: "address" }
12344
13391
  ],
12345
- name: "exactOutput",
12346
- outputs: [{ name: "amountIn", internalType: "uint256", type: "uint256" }],
12347
- stateMutability: "payable"
13392
+ name: "CurrenciesOutOfOrderOrEqual"
13393
+ },
13394
+ { type: "error", inputs: [], name: "CurrencyNotSettled" },
13395
+ { type: "error", inputs: [], name: "InvalidCaller" },
13396
+ { type: "error", inputs: [], name: "ManagerLocked" },
13397
+ { type: "error", inputs: [], name: "MustClearExactPositiveDelta" },
13398
+ { type: "error", inputs: [], name: "NonzeroNativeValue" },
13399
+ { type: "error", inputs: [], name: "PoolNotInitialized" },
13400
+ { type: "error", inputs: [], name: "ProtocolFeeCurrencySynced" },
13401
+ {
13402
+ type: "error",
13403
+ inputs: [{ name: "fee", internalType: "uint24", type: "uint24" }],
13404
+ name: "ProtocolFeeTooLarge"
13405
+ },
13406
+ { type: "error", inputs: [], name: "SwapAmountCannotBeZero" },
13407
+ {
13408
+ type: "error",
13409
+ inputs: [{ name: "tickSpacing", internalType: "int24", type: "int24" }],
13410
+ name: "TickSpacingTooLarge"
12348
13411
  },
13412
+ {
13413
+ type: "error",
13414
+ inputs: [{ name: "tickSpacing", internalType: "int24", type: "int24" }],
13415
+ name: "TickSpacingTooSmall"
13416
+ },
13417
+ { type: "error", inputs: [], name: "UnauthorizedDynamicLPFeeUpdate" }
13418
+ ];
13419
+ var uniswapV4PoolManagerAddress = {
13420
+ 8453: "0x498581fF718922c3f8e6A244956aF099B2652b2b",
13421
+ 84532: "0x05E73354cFDd6745C338b50BcFDfA3Aa6fA03408"
13422
+ };
13423
+ var uniswapV4PoolManagerConfig = {
13424
+ address: uniswapV4PoolManagerAddress,
13425
+ abi: uniswapV4PoolManagerABI
13426
+ };
13427
+ var universalRouterABI = [
12349
13428
  {
12350
13429
  type: "function",
12351
13430
  inputs: [
12352
- {
12353
- name: "params",
12354
- internalType: "struct ISwapRouter.ExactOutputSingleParams",
12355
- type: "tuple",
12356
- components: [
12357
- { name: "tokenIn", internalType: "address", type: "address" },
12358
- { name: "tokenOut", internalType: "address", type: "address" },
12359
- { name: "fee", internalType: "uint24", type: "uint24" },
12360
- { name: "recipient", internalType: "address", type: "address" },
12361
- { name: "amountOut", internalType: "uint256", type: "uint256" },
12362
- { name: "amountInMaximum", internalType: "uint256", type: "uint256" },
12363
- {
12364
- name: "sqrtPriceLimitX96",
12365
- internalType: "uint160",
12366
- type: "uint160"
12367
- }
12368
- ]
12369
- }
13431
+ { name: "commands", internalType: "bytes", type: "bytes" },
13432
+ { name: "inputs", internalType: "bytes[]", type: "bytes[]" },
13433
+ { name: "deadline", internalType: "uint256", type: "uint256" }
12370
13434
  ],
12371
- name: "exactOutputSingle",
12372
- outputs: [{ name: "amountIn", internalType: "uint256", type: "uint256" }],
13435
+ name: "execute",
13436
+ outputs: [],
12373
13437
  stateMutability: "payable"
12374
13438
  },
13439
+ { type: "error", inputs: [], name: "ETHNotAccepted" },
12375
13440
  {
12376
- type: "function",
13441
+ type: "error",
12377
13442
  inputs: [
12378
- { name: "amount0Delta", internalType: "int256", type: "int256" },
12379
- { name: "amount1Delta", internalType: "int256", type: "int256" },
12380
- { name: "data", internalType: "bytes", type: "bytes" }
13443
+ { name: "commandIndex", internalType: "uint256", type: "uint256" },
13444
+ { name: "message", internalType: "bytes", type: "bytes" }
12381
13445
  ],
12382
- name: "uniswapV3SwapCallback",
12383
- outputs: [],
12384
- stateMutability: "nonpayable"
12385
- }
13446
+ name: "ExecutionFailed"
13447
+ },
13448
+ { type: "error", inputs: [], name: "InvalidEthSender" },
13449
+ { type: "error", inputs: [], name: "LengthMismatch" },
13450
+ { type: "error", inputs: [], name: "TransactionDeadlinePassed" }
12386
13451
  ];
12387
- var uniswapV3SwapRouterAddress = {
12388
- 1: "0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45",
12389
- 10: "0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45",
12390
- 8453: "0x2626664c2603336E57B271c5C0b26F421741e481",
12391
- 42161: "0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45",
12392
- 81457: "0x549FEB8c9bd4c12Ad2AB27022dA12492aC452B66",
12393
- 84532: "0x94cC0AaC535CCDB3C01d6787D6413C739ae12bc4",
12394
- 421614: "0x101F443B4d1b059569D643917553c771E1b9663E",
12395
- 7777777: "0x7De04c96BE5159c3b5CeffC82aa176dc81281557",
12396
- 11155111: "0x3bFA4769FB09eefC5a80d6E87c3B9C650f7Ae48E",
12397
- 11155420: "0x94cC0AaC535CCDB3C01d6787D6413C739ae12bc4",
12398
- 999999999: "0x6B36d761981d82B1e07cF3c4daF4cB4615c4850a"
13452
+ var universalRouterAddress = {
13453
+ 8453: "0x6fF5693b99212Da76ad316178A184AB56D299b43",
13454
+ 84532: "0x492E6456D9528771018DeB9E87ef7750EF184104"
12399
13455
  };
12400
- var uniswapV3SwapRouterConfig = {
12401
- address: uniswapV3SwapRouterAddress,
12402
- abi: uniswapV3SwapRouterABI
13456
+ var universalRouterConfig = {
13457
+ address: universalRouterAddress,
13458
+ abi: universalRouterABI
12403
13459
  };
12404
13460
  var upgradeGateABI = [
12405
13461
  { type: "constructor", inputs: [], stateMutability: "nonpayable" },
@@ -16877,6 +17933,13 @@ var zoraLimitOrderBookABI = [
16877
17933
  outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
16878
17934
  stateMutability: "view"
16879
17935
  },
17936
+ {
17937
+ type: "function",
17938
+ inputs: [],
17939
+ name: "contractVersion",
17940
+ outputs: [{ name: "", internalType: "string", type: "string" }],
17941
+ stateMutability: "pure"
17942
+ },
16880
17943
  {
16881
17944
  type: "function",
16882
17945
  inputs: [
@@ -17452,6 +18515,7 @@ var zoraLimitOrderBookABI = [
17452
18515
  ],
17453
18516
  name: "InvalidAccountNonce"
17454
18517
  },
18518
+ { type: "error", inputs: [], name: "InvalidCurrency" },
17455
18519
  { type: "error", inputs: [], name: "InvalidCurrencyLowerTick" },
17456
18520
  { type: "error", inputs: [], name: "InvalidInitialization" },
17457
18521
  { type: "error", inputs: [], name: "InvalidMarketType" },
@@ -17561,10 +18625,43 @@ var zoraLimitOrderBookABI = [
17561
18625
  name: "UpgradePathNotRegistered"
17562
18626
  },
17563
18627
  { type: "error", inputs: [], name: "ZoraHookRegistryCannotBeZeroAddress" },
17564
- { type: "error", inputs: [], name: "ZoraLimitOrderBookCannotBeZeroAddress" }
18628
+ { type: "error", inputs: [], name: "ZoraLimitOrderBookCannotBeZeroAddress" },
18629
+ { type: "error", inputs: [], name: "AlreadyUnlocked" },
18630
+ {
18631
+ type: "error",
18632
+ inputs: [
18633
+ { name: "currency0", internalType: "address", type: "address" },
18634
+ { name: "currency1", internalType: "address", type: "address" }
18635
+ ],
18636
+ name: "CurrenciesOutOfOrderOrEqual"
18637
+ },
18638
+ { type: "error", inputs: [], name: "CurrencyNotSettled" },
18639
+ { type: "error", inputs: [], name: "InvalidCaller" },
18640
+ { type: "error", inputs: [], name: "ManagerLocked" },
18641
+ { type: "error", inputs: [], name: "MustClearExactPositiveDelta" },
18642
+ { type: "error", inputs: [], name: "NonzeroNativeValue" },
18643
+ { type: "error", inputs: [], name: "PoolNotInitialized" },
18644
+ { type: "error", inputs: [], name: "ProtocolFeeCurrencySynced" },
18645
+ {
18646
+ type: "error",
18647
+ inputs: [{ name: "fee", internalType: "uint24", type: "uint24" }],
18648
+ name: "ProtocolFeeTooLarge"
18649
+ },
18650
+ { type: "error", inputs: [], name: "SwapAmountCannotBeZero" },
18651
+ {
18652
+ type: "error",
18653
+ inputs: [{ name: "tickSpacing", internalType: "int24", type: "int24" }],
18654
+ name: "TickSpacingTooLarge"
18655
+ },
18656
+ {
18657
+ type: "error",
18658
+ inputs: [{ name: "tickSpacing", internalType: "int24", type: "int24" }],
18659
+ name: "TickSpacingTooSmall"
18660
+ },
18661
+ { type: "error", inputs: [], name: "UnauthorizedDynamicLPFeeUpdate" }
17565
18662
  ];
17566
18663
  var zoraLimitOrderBookAddress = {
17567
- 8453: "0xeD29E55a73b3D907eB57f0c7B89019B37dd1a1c8"
18664
+ 8453: "0x7777777C783bAD88daCaf9A19E04238341E4497B"
17568
18665
  };
17569
18666
  var zoraLimitOrderBookConfig = {
17570
18667
  address: zoraLimitOrderBookAddress,
@@ -19267,6 +20364,13 @@ var zoraRouterABI = [
19267
20364
  outputs: [],
19268
20365
  stateMutability: "nonpayable"
19269
20366
  },
20367
+ {
20368
+ type: "function",
20369
+ inputs: [],
20370
+ name: "contractVersion",
20371
+ outputs: [{ name: "", internalType: "string", type: "string" }],
20372
+ stateMutability: "pure"
20373
+ },
19270
20374
  {
19271
20375
  type: "function",
19272
20376
  inputs: [],
@@ -19593,6 +20697,65 @@ var zoraRouterABI = [
19593
20697
  { type: "error", inputs: [], name: "V3RouteDoesNotConnectToV4RouteStart" },
19594
20698
  { type: "error", inputs: [], name: "ZeroSwapDelta" },
19595
20699
  { type: "error", inputs: [], name: "AddressZero" },
20700
+ { type: "error", inputs: [], name: "ArrayLengthMismatch" },
20701
+ { type: "error", inputs: [], name: "CallerNotPermitted" },
20702
+ {
20703
+ type: "error",
20704
+ inputs: [
20705
+ { name: "orderId", internalType: "bytes32", type: "bytes32" },
20706
+ { name: "expectedCoin", internalType: "address", type: "address" },
20707
+ { name: "actualCoin", internalType: "address", type: "address" }
20708
+ ],
20709
+ name: "CoinMismatch"
20710
+ },
20711
+ { type: "error", inputs: [], name: "InsufficientForwardedFunds" },
20712
+ { type: "error", inputs: [], name: "InsufficientTransferFunds" },
20713
+ {
20714
+ type: "error",
20715
+ inputs: [
20716
+ { name: "startTick", internalType: "int24", type: "int24" },
20717
+ { name: "endTick", internalType: "int24", type: "int24" },
20718
+ { name: "isCurrency0", internalType: "bool", type: "bool" }
20719
+ ],
20720
+ name: "InvalidFillWindow"
20721
+ },
20722
+ { type: "error", inputs: [], name: "InvalidOrder" },
20723
+ { type: "error", inputs: [], name: "InvalidPoolKey" },
20724
+ { type: "error", inputs: [], name: "MaxFillCountCannotBeZero" },
20725
+ {
20726
+ type: "error",
20727
+ inputs: [
20728
+ { name: "withdrawn", internalType: "uint256", type: "uint256" },
20729
+ { name: "minAmountOut", internalType: "uint256", type: "uint256" }
20730
+ ],
20731
+ name: "MinAmountNotReached"
20732
+ },
20733
+ { type: "error", inputs: [], name: "NativeValueMismatch" },
20734
+ { type: "error", inputs: [], name: "NotPoolManager" },
20735
+ { type: "error", inputs: [], name: "OnlyZoraHook" },
20736
+ { type: "error", inputs: [], name: "OrderClosed" },
20737
+ { type: "error", inputs: [], name: "OrderFillable" },
20738
+ { type: "error", inputs: [], name: "OrderNotMaker" },
20739
+ {
20740
+ type: "error",
20741
+ inputs: [{ name: "owner", internalType: "address", type: "address" }],
20742
+ name: "OwnableInvalidOwner"
20743
+ },
20744
+ {
20745
+ type: "error",
20746
+ inputs: [{ name: "account", internalType: "address", type: "address" }],
20747
+ name: "OwnableUnauthorizedAccount"
20748
+ },
20749
+ { type: "error", inputs: [], name: "PathMustHaveAtLeastOneStep" },
20750
+ { type: "error", inputs: [], name: "PermittedCallersLengthMismatch" },
20751
+ { type: "error", inputs: [], name: "RouterMsgSenderInvalid" },
20752
+ { type: "error", inputs: [], name: "UnknownCallback" },
20753
+ { type: "error", inputs: [], name: "UnlockedFillNotAllowed" },
20754
+ { type: "error", inputs: [], name: "WethTransferFailed" },
20755
+ { type: "error", inputs: [], name: "ZeroMaker" },
20756
+ { type: "error", inputs: [], name: "ZeroOrderSize" },
20757
+ { type: "error", inputs: [], name: "ZeroRealizedOrder" },
20758
+ { type: "error", inputs: [], name: "AddressZero" },
19596
20759
  { type: "error", inputs: [], name: "AlreadyOwner" },
19597
20760
  { type: "error", inputs: [], name: "CannotMintZeroLiquidity" },
19598
20761
  {
@@ -19678,6 +20841,7 @@ var zoraRouterABI = [
19678
20841
  ],
19679
20842
  name: "InvalidAccountNonce"
19680
20843
  },
20844
+ { type: "error", inputs: [], name: "InvalidCurrency" },
19681
20845
  { type: "error", inputs: [], name: "InvalidCurrencyLowerTick" },
19682
20846
  { type: "error", inputs: [], name: "InvalidInitialization" },
19683
20847
  { type: "error", inputs: [], name: "InvalidMarketType" },
@@ -19788,68 +20952,54 @@ var zoraRouterABI = [
19788
20952
  },
19789
20953
  { type: "error", inputs: [], name: "ZoraHookRegistryCannotBeZeroAddress" },
19790
20954
  { type: "error", inputs: [], name: "ZoraLimitOrderBookCannotBeZeroAddress" },
19791
- { type: "error", inputs: [], name: "AddressZero" },
19792
- { type: "error", inputs: [], name: "ArrayLengthMismatch" },
19793
- { type: "error", inputs: [], name: "CallerNotPermitted" },
20955
+ { type: "error", inputs: [], name: "AlreadyUnlocked" },
19794
20956
  {
19795
20957
  type: "error",
19796
20958
  inputs: [
19797
- { name: "orderId", internalType: "bytes32", type: "bytes32" },
19798
- { name: "expectedCoin", internalType: "address", type: "address" },
19799
- { name: "actualCoin", internalType: "address", type: "address" }
20959
+ { name: "currency0", internalType: "address", type: "address" },
20960
+ { name: "currency1", internalType: "address", type: "address" }
19800
20961
  ],
19801
- name: "CoinMismatch"
20962
+ name: "CurrenciesOutOfOrderOrEqual"
19802
20963
  },
19803
- { type: "error", inputs: [], name: "InsufficientForwardedFunds" },
19804
- { type: "error", inputs: [], name: "InsufficientTransferFunds" },
20964
+ { type: "error", inputs: [], name: "CurrencyNotSettled" },
20965
+ { type: "error", inputs: [], name: "InvalidCaller" },
20966
+ { type: "error", inputs: [], name: "ManagerLocked" },
20967
+ { type: "error", inputs: [], name: "MustClearExactPositiveDelta" },
20968
+ { type: "error", inputs: [], name: "NonzeroNativeValue" },
20969
+ { type: "error", inputs: [], name: "PoolNotInitialized" },
20970
+ { type: "error", inputs: [], name: "ProtocolFeeCurrencySynced" },
19805
20971
  {
19806
20972
  type: "error",
19807
- inputs: [
19808
- { name: "startTick", internalType: "int24", type: "int24" },
19809
- { name: "endTick", internalType: "int24", type: "int24" },
19810
- { name: "isCurrency0", internalType: "bool", type: "bool" }
19811
- ],
19812
- name: "InvalidFillWindow"
20973
+ inputs: [{ name: "fee", internalType: "uint24", type: "uint24" }],
20974
+ name: "ProtocolFeeTooLarge"
19813
20975
  },
19814
- { type: "error", inputs: [], name: "InvalidOrder" },
19815
- { type: "error", inputs: [], name: "InvalidPoolKey" },
19816
- { type: "error", inputs: [], name: "MaxFillCountCannotBeZero" },
20976
+ { type: "error", inputs: [], name: "SwapAmountCannotBeZero" },
19817
20977
  {
19818
20978
  type: "error",
19819
- inputs: [
19820
- { name: "withdrawn", internalType: "uint256", type: "uint256" },
19821
- { name: "minAmountOut", internalType: "uint256", type: "uint256" }
19822
- ],
19823
- name: "MinAmountNotReached"
20979
+ inputs: [{ name: "tickSpacing", internalType: "int24", type: "int24" }],
20980
+ name: "TickSpacingTooLarge"
19824
20981
  },
19825
- { type: "error", inputs: [], name: "NativeValueMismatch" },
19826
- { type: "error", inputs: [], name: "NotPoolManager" },
19827
- { type: "error", inputs: [], name: "OnlyZoraHook" },
19828
- { type: "error", inputs: [], name: "OrderClosed" },
19829
- { type: "error", inputs: [], name: "OrderFillable" },
19830
- { type: "error", inputs: [], name: "OrderNotMaker" },
19831
20982
  {
19832
20983
  type: "error",
19833
- inputs: [{ name: "owner", internalType: "address", type: "address" }],
19834
- name: "OwnableInvalidOwner"
20984
+ inputs: [{ name: "tickSpacing", internalType: "int24", type: "int24" }],
20985
+ name: "TickSpacingTooSmall"
19835
20986
  },
20987
+ { type: "error", inputs: [], name: "UnauthorizedDynamicLPFeeUpdate" },
20988
+ { type: "error", inputs: [], name: "ETHNotAccepted" },
19836
20989
  {
19837
20990
  type: "error",
19838
- inputs: [{ name: "account", internalType: "address", type: "address" }],
19839
- name: "OwnableUnauthorizedAccount"
20991
+ inputs: [
20992
+ { name: "commandIndex", internalType: "uint256", type: "uint256" },
20993
+ { name: "message", internalType: "bytes", type: "bytes" }
20994
+ ],
20995
+ name: "ExecutionFailed"
19840
20996
  },
19841
- { type: "error", inputs: [], name: "PathMustHaveAtLeastOneStep" },
19842
- { type: "error", inputs: [], name: "PermittedCallersLengthMismatch" },
19843
- { type: "error", inputs: [], name: "RouterMsgSenderInvalid" },
19844
- { type: "error", inputs: [], name: "UnknownCallback" },
19845
- { type: "error", inputs: [], name: "UnlockedFillNotAllowed" },
19846
- { type: "error", inputs: [], name: "WethTransferFailed" },
19847
- { type: "error", inputs: [], name: "ZeroMaker" },
19848
- { type: "error", inputs: [], name: "ZeroOrderSize" },
19849
- { type: "error", inputs: [], name: "ZeroRealizedOrder" }
20997
+ { type: "error", inputs: [], name: "InvalidEthSender" },
20998
+ { type: "error", inputs: [], name: "LengthMismatch" },
20999
+ { type: "error", inputs: [], name: "TransactionDeadlinePassed" }
19850
21000
  ];
19851
21001
  var zoraRouterAddress = {
19852
- 8453: "0x479b190b78Be5bf020fbb496dDD2cE3d6e573bb1"
21002
+ 8453: "0x77777777Eb762Cf86F634763e79d17dE44330887"
19853
21003
  };
19854
21004
  var zoraRouterConfig = {
19855
21005
  address: zoraRouterAddress,
@@ -21896,7 +23046,7 @@ var zoraTimedSaleStrategyConfig = {
21896
23046
  abi: zoraTimedSaleStrategyABI
21897
23047
  };
21898
23048
 
21899
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/errors/unit.js
23049
+ // ../../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
21900
23050
  var InvalidDecimalNumberError = class extends BaseError {
21901
23051
  constructor({ value }) {
21902
23052
  super(`Number \`${value}\` is not a valid decimal number.`, {
@@ -21905,7 +23055,7 @@ var InvalidDecimalNumberError = class extends BaseError {
21905
23055
  }
21906
23056
  };
21907
23057
 
21908
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/unit/parseUnits.js
23058
+ // ../../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
21909
23059
  function parseUnits(value, decimals) {
21910
23060
  if (!/^(-?)([0-9]*)\.?([0-9]*)$/.test(value))
21911
23061
  throw new InvalidDecimalNumberError({ value });
@@ -21940,7 +23090,7 @@ function parseUnits(value, decimals) {
21940
23090
  return BigInt(`${negative ? "-" : ""}${integer}${fraction}`);
21941
23091
  }
21942
23092
 
21943
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/unit/parseEther.js
23093
+ // ../../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
21944
23094
  function parseEther(ether, unit = "wei") {
21945
23095
  return parseUnits(ether, etherUnits[unit]);
21946
23096
  }
@@ -22706,6 +23856,7 @@ var chainConfigs2 = {
22706
23856
  DOPPLER_AIRLOCK: "0x660eAaEdEBc968f8f3694354FA8EC0b4c5Ba8D12",
22707
23857
  PROXY_ADMIN: "0x004d6611884B4A661749B64b2ADc78505c3e1AB3",
22708
23858
  ZORA_RECIPIENT: "0x7bf90111Ad7C22bec9E9dFf8A01A44713CC1b1B6",
23859
+ METADATA_MANAGER: "0x004d6611884B4A661749B64b2ADc78505c3e1AB3",
22709
23860
  WETH: "0x4200000000000000000000000000000000000006",
22710
23861
  UNISWAP_V4_POOL_MANAGER: "0x498581ff718922c3f8e6a244956af099b2652b2b",
22711
23862
  UNISWAP_V4_POSITION_MANAGER: "0x7c5f5a4bbd8fd63184577525326123b519429bdc",
@@ -22734,6 +23885,7 @@ var chainConfigs2 = {
22734
23885
  DOPPLER_AIRLOCK: "0xa24E35a5d71d02a59b41E7c93567626302da1958",
22735
23886
  PROXY_ADMIN: "0x5F14C23983c9e0840Dc60dA880349622f0785420",
22736
23887
  ZORA_RECIPIENT: "0x5F14C23983c9e0840Dc60dA880349622f0785420",
23888
+ METADATA_MANAGER: "0x5F14C23983c9e0840Dc60dA880349622f0785420",
22737
23889
  WETH: "0x4200000000000000000000000000000000000006",
22738
23890
  UNISWAP_V4_POOL_MANAGER: "0x05E73354cFDd6745C338b50BcFDfA3Aa6fA03408",
22739
23891
  UNISWAP_V4_POSITION_MANAGER: "0x4b2c77d209d3405f41a037ec6c77f7f5b8e2ca80",
@@ -22783,6 +23935,7 @@ var chainConfigs2 = {
22783
23935
  DOPPLER_AIRLOCK: "0x660eAaEdEBc968f8f3694354FA8EC0b4c5Ba8D12",
22784
23936
  PROXY_ADMIN: "0xEAB37fbA9E4F99602815E173A7FeAee0f4eF980B",
22785
23937
  ZORA_RECIPIENT: "0x7bf90111Ad7C22bec9E9dFf8A01A44713CC1b1B6",
23938
+ METADATA_MANAGER: "0xEAB37fbA9E4F99602815E173A7FeAee0f4eF980B",
22786
23939
  WETH: "0x4200000000000000000000000000000000000006",
22787
23940
  UNISWAP_V4_POOL_MANAGER: "0x498581ff718922c3f8e6a244956af099b2652b2b",
22788
23941
  UNISWAP_V4_POSITION_MANAGER: "0x7c5f5a4bbd8fd63184577525326123b519429bdc",
@@ -22944,6 +24097,12 @@ export {
22944
24097
  uniswapV3SwapRouterABI,
22945
24098
  uniswapV3SwapRouterAddress,
22946
24099
  uniswapV3SwapRouterConfig,
24100
+ uniswapV4PoolManagerABI,
24101
+ uniswapV4PoolManagerAddress,
24102
+ uniswapV4PoolManagerConfig,
24103
+ universalRouterABI,
24104
+ universalRouterAddress,
24105
+ universalRouterConfig,
22947
24106
  upgradeGateABI,
22948
24107
  upgradeGateAddress,
22949
24108
  upgradeGateConfig,