@zoralabs/protocol-deployments 0.6.6-TRENDS.0 → 0.7.2
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/.turbo/turbo-build$colon$js.log +50 -51
- package/CHANGELOG.md +30 -2
- package/LICENSE +21 -0
- package/dist/{_esm-AN6HMJZC.js → _esm-7WTTA2BK.js} +53 -53
- package/dist/{_esm-AN6HMJZC.js.map → _esm-7WTTA2BK.js.map} +1 -1
- package/dist/{ccip-3JNBGYOD.js → ccip-Y2GC34UW.js} +2 -2
- package/dist/{chunk-4DQDZNUA.js → chunk-TP53IMLY.js} +87 -87
- package/dist/chunk-TP53IMLY.js.map +1 -0
- package/dist/generated/wagmi.d.ts +8982 -636
- package/dist/generated/wagmi.d.ts.map +1 -1
- package/dist/index.cjs +2926 -313
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2836 -235
- package/dist/index.js.map +1 -1
- package/dist/{secp256k1-QZA5SALG.js → secp256k1-VMQNAPXV.js} +2 -12
- package/package.json +12 -12
- package/src/generated/wagmi.ts +2892 -239
- package/dist/chunk-4DQDZNUA.js.map +0 -1
- /package/dist/{ccip-3JNBGYOD.js.map → ccip-Y2GC34UW.js.map} +0 -0
- /package/dist/{secp256k1-QZA5SALG.js.map → secp256k1-VMQNAPXV.js.map} +0 -0
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
getAbiItem,
|
|
7
7
|
keccak256,
|
|
8
8
|
toHex
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-TP53IMLY.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
12
|
} from "./chunk-PR4QN5HX.js";
|
|
@@ -1424,6 +1424,16 @@ var coinABI = [
|
|
|
1424
1424
|
outputs: [{ name: "", internalType: "string", type: "string" }],
|
|
1425
1425
|
stateMutability: "pure"
|
|
1426
1426
|
},
|
|
1427
|
+
{
|
|
1428
|
+
type: "function",
|
|
1429
|
+
inputs: [],
|
|
1430
|
+
name: "creationInfo",
|
|
1431
|
+
outputs: [
|
|
1432
|
+
{ name: "creationTimestamp", internalType: "uint256", type: "uint256" },
|
|
1433
|
+
{ name: "isDeploying", internalType: "bool", type: "bool" }
|
|
1434
|
+
],
|
|
1435
|
+
stateMutability: "view"
|
|
1436
|
+
},
|
|
1427
1437
|
{
|
|
1428
1438
|
type: "function",
|
|
1429
1439
|
inputs: [],
|
|
@@ -2371,7 +2381,6 @@ var coinABI = [
|
|
|
2371
2381
|
],
|
|
2372
2382
|
name: "InvalidAccountNonce"
|
|
2373
2383
|
},
|
|
2374
|
-
{ type: "error", inputs: [], name: "InvalidCurrency" },
|
|
2375
2384
|
{ type: "error", inputs: [], name: "InvalidCurrencyLowerTick" },
|
|
2376
2385
|
{ type: "error", inputs: [], name: "InvalidInitialization" },
|
|
2377
2386
|
{ type: "error", inputs: [], name: "InvalidMarketType" },
|
|
@@ -2421,7 +2430,6 @@ var coinFactoryABI = [
|
|
|
2421
2430
|
inputs: [
|
|
2422
2431
|
{ name: "coinV4Impl_", internalType: "address", type: "address" },
|
|
2423
2432
|
{ name: "creatorCoinImpl_", internalType: "address", type: "address" },
|
|
2424
|
-
{ name: "trendCoinImpl_", internalType: "address", type: "address" },
|
|
2425
2433
|
{ name: "hook_", internalType: "address", type: "address" },
|
|
2426
2434
|
{ name: "zoraHookRegistry_", internalType: "address", type: "address" }
|
|
2427
2435
|
],
|
|
@@ -2594,20 +2602,6 @@ var coinFactoryABI = [
|
|
|
2594
2602
|
],
|
|
2595
2603
|
stateMutability: "payable"
|
|
2596
2604
|
},
|
|
2597
|
-
{
|
|
2598
|
-
type: "function",
|
|
2599
|
-
inputs: [
|
|
2600
|
-
{ name: "symbol", internalType: "string", type: "string" },
|
|
2601
|
-
{ name: "postDeployHook", internalType: "address", type: "address" },
|
|
2602
|
-
{ name: "postDeployHookData", internalType: "bytes", type: "bytes" }
|
|
2603
|
-
],
|
|
2604
|
-
name: "deployTrendCoin",
|
|
2605
|
-
outputs: [
|
|
2606
|
-
{ name: "coin", internalType: "address", type: "address" },
|
|
2607
|
-
{ name: "postDeployHookDataOut", internalType: "bytes", type: "bytes" }
|
|
2608
|
-
],
|
|
2609
|
-
stateMutability: "payable"
|
|
2610
|
-
},
|
|
2611
2605
|
{
|
|
2612
2606
|
type: "function",
|
|
2613
2607
|
inputs: [
|
|
@@ -2693,20 +2687,6 @@ var coinFactoryABI = [
|
|
|
2693
2687
|
outputs: [],
|
|
2694
2688
|
stateMutability: "nonpayable"
|
|
2695
2689
|
},
|
|
2696
|
-
{
|
|
2697
|
-
type: "function",
|
|
2698
|
-
inputs: [{ name: "symbol", internalType: "string", type: "string" }],
|
|
2699
|
-
name: "trendCoinAddress",
|
|
2700
|
-
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
2701
|
-
stateMutability: "view"
|
|
2702
|
-
},
|
|
2703
|
-
{
|
|
2704
|
-
type: "function",
|
|
2705
|
-
inputs: [],
|
|
2706
|
-
name: "trendCoinImpl",
|
|
2707
|
-
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
2708
|
-
stateMutability: "view"
|
|
2709
|
-
},
|
|
2710
2690
|
{
|
|
2711
2691
|
type: "function",
|
|
2712
2692
|
inputs: [
|
|
@@ -2842,12 +2822,6 @@ var coinFactoryABI = [
|
|
|
2842
2822
|
type: "bytes32",
|
|
2843
2823
|
indexed: false
|
|
2844
2824
|
},
|
|
2845
|
-
{
|
|
2846
|
-
name: "poolConfig",
|
|
2847
|
-
internalType: "bytes",
|
|
2848
|
-
type: "bytes",
|
|
2849
|
-
indexed: false
|
|
2850
|
-
},
|
|
2851
2825
|
{
|
|
2852
2826
|
name: "version",
|
|
2853
2827
|
internalType: "string",
|
|
@@ -2918,12 +2892,6 @@ var coinFactoryABI = [
|
|
|
2918
2892
|
type: "bytes32",
|
|
2919
2893
|
indexed: false
|
|
2920
2894
|
},
|
|
2921
|
-
{
|
|
2922
|
-
name: "poolConfig",
|
|
2923
|
-
internalType: "bytes",
|
|
2924
|
-
type: "bytes",
|
|
2925
|
-
indexed: false
|
|
2926
|
-
},
|
|
2927
2895
|
{
|
|
2928
2896
|
name: "version",
|
|
2929
2897
|
internalType: "string",
|
|
@@ -2984,62 +2952,6 @@ var coinFactoryABI = [
|
|
|
2984
2952
|
],
|
|
2985
2953
|
name: "OwnershipTransferred"
|
|
2986
2954
|
},
|
|
2987
|
-
{
|
|
2988
|
-
type: "event",
|
|
2989
|
-
anonymous: false,
|
|
2990
|
-
inputs: [
|
|
2991
|
-
{
|
|
2992
|
-
name: "caller",
|
|
2993
|
-
internalType: "address",
|
|
2994
|
-
type: "address",
|
|
2995
|
-
indexed: true
|
|
2996
|
-
},
|
|
2997
|
-
{
|
|
2998
|
-
name: "symbol",
|
|
2999
|
-
internalType: "string",
|
|
3000
|
-
type: "string",
|
|
3001
|
-
indexed: false
|
|
3002
|
-
},
|
|
3003
|
-
{
|
|
3004
|
-
name: "coin",
|
|
3005
|
-
internalType: "address",
|
|
3006
|
-
type: "address",
|
|
3007
|
-
indexed: false
|
|
3008
|
-
},
|
|
3009
|
-
{
|
|
3010
|
-
name: "poolKey",
|
|
3011
|
-
internalType: "struct PoolKey",
|
|
3012
|
-
type: "tuple",
|
|
3013
|
-
components: [
|
|
3014
|
-
{ name: "currency0", internalType: "Currency", type: "address" },
|
|
3015
|
-
{ name: "currency1", internalType: "Currency", type: "address" },
|
|
3016
|
-
{ name: "fee", internalType: "uint24", type: "uint24" },
|
|
3017
|
-
{ name: "tickSpacing", internalType: "int24", type: "int24" },
|
|
3018
|
-
{ name: "hooks", internalType: "contract IHooks", type: "address" }
|
|
3019
|
-
],
|
|
3020
|
-
indexed: false
|
|
3021
|
-
},
|
|
3022
|
-
{
|
|
3023
|
-
name: "poolKeyHash",
|
|
3024
|
-
internalType: "bytes32",
|
|
3025
|
-
type: "bytes32",
|
|
3026
|
-
indexed: false
|
|
3027
|
-
},
|
|
3028
|
-
{
|
|
3029
|
-
name: "poolConfig",
|
|
3030
|
-
internalType: "bytes",
|
|
3031
|
-
type: "bytes",
|
|
3032
|
-
indexed: false
|
|
3033
|
-
},
|
|
3034
|
-
{
|
|
3035
|
-
name: "version",
|
|
3036
|
-
internalType: "string",
|
|
3037
|
-
type: "string",
|
|
3038
|
-
indexed: false
|
|
3039
|
-
}
|
|
3040
|
-
],
|
|
3041
|
-
name: "TrendCoinCreated"
|
|
3042
|
-
},
|
|
3043
2955
|
{
|
|
3044
2956
|
type: "event",
|
|
3045
2957
|
anonymous: false,
|
|
@@ -3113,11 +3025,6 @@ var coinFactoryABI = [
|
|
|
3113
3025
|
name: "OwnableUnauthorizedAccount"
|
|
3114
3026
|
},
|
|
3115
3027
|
{ type: "error", inputs: [], name: "ReentrancyGuardReentrantCall" },
|
|
3116
|
-
{
|
|
3117
|
-
type: "error",
|
|
3118
|
-
inputs: [{ name: "ticker", internalType: "string", type: "string" }],
|
|
3119
|
-
name: "TickerAlreadyUsed"
|
|
3120
|
-
},
|
|
3121
3028
|
{ type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" },
|
|
3122
3029
|
{
|
|
3123
3030
|
type: "error",
|
|
@@ -3239,7 +3146,6 @@ var coinFactoryABI = [
|
|
|
3239
3146
|
],
|
|
3240
3147
|
name: "InvalidAccountNonce"
|
|
3241
3148
|
},
|
|
3242
|
-
{ type: "error", inputs: [], name: "InvalidCurrency" },
|
|
3243
3149
|
{ type: "error", inputs: [], name: "InvalidCurrencyLowerTick" },
|
|
3244
3150
|
{ type: "error", inputs: [], name: "InvalidInitialization" },
|
|
3245
3151
|
{ type: "error", inputs: [], name: "InvalidMarketType" },
|
|
@@ -3350,14 +3256,9 @@ var coinFactoryABI = [
|
|
|
3350
3256
|
},
|
|
3351
3257
|
{ type: "error", inputs: [], name: "ZoraHookRegistryCannotBeZeroAddress" },
|
|
3352
3258
|
{ type: "error", inputs: [], name: "ZoraLimitOrderBookCannotBeZeroAddress" },
|
|
3353
|
-
{
|
|
3354
|
-
type: "error",
|
|
3355
|
-
inputs: [{ name: "authority", internalType: "address", type: "address" }],
|
|
3356
|
-
name: "AccessManagedInvalidAuthority"
|
|
3357
|
-
},
|
|
3358
|
-
{ type: "error", inputs: [], name: "AccessManagedUnauthorized" },
|
|
3359
3259
|
{ type: "error", inputs: [], name: "AddressZero" },
|
|
3360
3260
|
{ type: "error", inputs: [], name: "ArrayLengthMismatch" },
|
|
3261
|
+
{ type: "error", inputs: [], name: "CallerNotPermitted" },
|
|
3361
3262
|
{
|
|
3362
3263
|
type: "error",
|
|
3363
3264
|
inputs: [
|
|
@@ -3393,11 +3294,24 @@ var coinFactoryABI = [
|
|
|
3393
3294
|
{ type: "error", inputs: [], name: "NotPoolManager" },
|
|
3394
3295
|
{ type: "error", inputs: [], name: "OnlyZoraHook" },
|
|
3395
3296
|
{ type: "error", inputs: [], name: "OrderClosed" },
|
|
3297
|
+
{ type: "error", inputs: [], name: "OrderFillable" },
|
|
3396
3298
|
{ type: "error", inputs: [], name: "OrderNotMaker" },
|
|
3299
|
+
{
|
|
3300
|
+
type: "error",
|
|
3301
|
+
inputs: [{ name: "owner", internalType: "address", type: "address" }],
|
|
3302
|
+
name: "OwnableInvalidOwner"
|
|
3303
|
+
},
|
|
3304
|
+
{
|
|
3305
|
+
type: "error",
|
|
3306
|
+
inputs: [{ name: "account", internalType: "address", type: "address" }],
|
|
3307
|
+
name: "OwnableUnauthorizedAccount"
|
|
3308
|
+
},
|
|
3397
3309
|
{ type: "error", inputs: [], name: "PathMustHaveAtLeastOneStep" },
|
|
3310
|
+
{ type: "error", inputs: [], name: "PermittedCallersLengthMismatch" },
|
|
3398
3311
|
{ type: "error", inputs: [], name: "RouterMsgSenderInvalid" },
|
|
3399
3312
|
{ type: "error", inputs: [], name: "UnknownCallback" },
|
|
3400
3313
|
{ type: "error", inputs: [], name: "UnlockedFillNotAllowed" },
|
|
3314
|
+
{ type: "error", inputs: [], name: "WethTransferFailed" },
|
|
3401
3315
|
{ type: "error", inputs: [], name: "ZeroMaker" },
|
|
3402
3316
|
{ type: "error", inputs: [], name: "ZeroOrderSize" },
|
|
3403
3317
|
{ type: "error", inputs: [], name: "ZeroRealizedOrder" }
|
|
@@ -3523,6 +3437,16 @@ var coinV4ABI = [
|
|
|
3523
3437
|
outputs: [{ name: "", internalType: "string", type: "string" }],
|
|
3524
3438
|
stateMutability: "pure"
|
|
3525
3439
|
},
|
|
3440
|
+
{
|
|
3441
|
+
type: "function",
|
|
3442
|
+
inputs: [],
|
|
3443
|
+
name: "creationInfo",
|
|
3444
|
+
outputs: [
|
|
3445
|
+
{ name: "creationTimestamp", internalType: "uint256", type: "uint256" },
|
|
3446
|
+
{ name: "isDeploying", internalType: "bool", type: "bool" }
|
|
3447
|
+
],
|
|
3448
|
+
stateMutability: "view"
|
|
3449
|
+
},
|
|
3526
3450
|
{
|
|
3527
3451
|
type: "function",
|
|
3528
3452
|
inputs: [],
|
|
@@ -6353,109 +6277,2569 @@ var commentsConfig = {
|
|
|
6353
6277
|
address: commentsAddress,
|
|
6354
6278
|
abi: commentsABI
|
|
6355
6279
|
};
|
|
6356
|
-
var
|
|
6280
|
+
var devBuySupplyWithSwapRouterHookABI = [
|
|
6357
6281
|
{
|
|
6358
|
-
type: "
|
|
6359
|
-
inputs: [
|
|
6360
|
-
|
|
6361
|
-
|
|
6282
|
+
type: "constructor",
|
|
6283
|
+
inputs: [
|
|
6284
|
+
{
|
|
6285
|
+
name: "_factory",
|
|
6286
|
+
internalType: "contract IZoraFactory",
|
|
6287
|
+
type: "address"
|
|
6288
|
+
},
|
|
6289
|
+
{ name: "_swapRouter", internalType: "address", type: "address" },
|
|
6290
|
+
{ name: "_poolManager", internalType: "address", type: "address" }
|
|
6291
|
+
],
|
|
6362
6292
|
stateMutability: "nonpayable"
|
|
6363
6293
|
},
|
|
6364
6294
|
{
|
|
6365
6295
|
type: "function",
|
|
6366
6296
|
inputs: [
|
|
6367
|
-
{
|
|
6368
|
-
|
|
6369
|
-
|
|
6370
|
-
type: "tuple",
|
|
6371
|
-
components: [
|
|
6372
|
-
{ name: "duration", internalType: "uint64", type: "uint64" },
|
|
6373
|
-
{
|
|
6374
|
-
name: "maxTokensPerAddress",
|
|
6375
|
-
internalType: "uint64",
|
|
6376
|
-
type: "uint64"
|
|
6377
|
-
},
|
|
6378
|
-
{ name: "pricePerToken", internalType: "uint256", type: "uint256" },
|
|
6379
|
-
{ name: "fundsRecipient", internalType: "address", type: "address" },
|
|
6380
|
-
{ name: "currency", internalType: "address", type: "address" }
|
|
6381
|
-
]
|
|
6382
|
-
}
|
|
6297
|
+
{ name: "sender", internalType: "address", type: "address" },
|
|
6298
|
+
{ name: "coin", internalType: "contract ICoin", type: "address" },
|
|
6299
|
+
{ name: "hookData", internalType: "bytes", type: "bytes" }
|
|
6383
6300
|
],
|
|
6384
|
-
name: "
|
|
6301
|
+
name: "afterCoinDeploy",
|
|
6302
|
+
outputs: [{ name: "", internalType: "bytes", type: "bytes" }],
|
|
6303
|
+
stateMutability: "payable"
|
|
6304
|
+
},
|
|
6305
|
+
{
|
|
6306
|
+
type: "function",
|
|
6307
|
+
inputs: [{ name: "data", internalType: "bytes", type: "bytes" }],
|
|
6308
|
+
name: "decodeV4RouteData",
|
|
6385
6309
|
outputs: [
|
|
6386
6310
|
{
|
|
6387
|
-
name: "",
|
|
6388
|
-
internalType: "struct
|
|
6389
|
-
type: "tuple",
|
|
6311
|
+
name: "v4Route",
|
|
6312
|
+
internalType: "struct PoolKey[]",
|
|
6313
|
+
type: "tuple[]",
|
|
6390
6314
|
components: [
|
|
6391
|
-
{ name: "
|
|
6392
|
-
{ name: "
|
|
6393
|
-
{
|
|
6394
|
-
|
|
6395
|
-
|
|
6396
|
-
type: "uint64"
|
|
6397
|
-
},
|
|
6398
|
-
{ name: "pricePerToken", internalType: "uint256", type: "uint256" },
|
|
6399
|
-
{ name: "fundsRecipient", internalType: "address", type: "address" },
|
|
6400
|
-
{ name: "currency", internalType: "address", type: "address" }
|
|
6315
|
+
{ name: "currency0", internalType: "Currency", type: "address" },
|
|
6316
|
+
{ name: "currency1", internalType: "Currency", type: "address" },
|
|
6317
|
+
{ name: "fee", internalType: "uint24", type: "uint24" },
|
|
6318
|
+
{ name: "tickSpacing", internalType: "int24", type: "int24" },
|
|
6319
|
+
{ name: "hooks", internalType: "contract IHooks", type: "address" }
|
|
6401
6320
|
]
|
|
6402
|
-
}
|
|
6321
|
+
},
|
|
6322
|
+
{ name: "startAmount", internalType: "uint256", type: "uint256" }
|
|
6403
6323
|
],
|
|
6404
|
-
stateMutability: "
|
|
6405
|
-
},
|
|
6406
|
-
{
|
|
6407
|
-
type: "function",
|
|
6408
|
-
inputs: [],
|
|
6409
|
-
name: "cancelOwnershipTransfer",
|
|
6410
|
-
outputs: [],
|
|
6411
|
-
stateMutability: "nonpayable"
|
|
6324
|
+
stateMutability: "pure"
|
|
6412
6325
|
},
|
|
6413
6326
|
{
|
|
6414
6327
|
type: "function",
|
|
6415
|
-
inputs: [
|
|
6416
|
-
name: "computePaidMintRewards",
|
|
6417
|
-
outputs: [
|
|
6328
|
+
inputs: [
|
|
6418
6329
|
{
|
|
6419
|
-
name: "",
|
|
6420
|
-
internalType: "struct
|
|
6330
|
+
name: "params",
|
|
6331
|
+
internalType: "struct BuySupplyWithV4SwapHook.InitialSupplyParams",
|
|
6421
6332
|
type: "tuple",
|
|
6422
6333
|
components: [
|
|
6334
|
+
{ name: "buyRecipient", internalType: "address", type: "address" },
|
|
6335
|
+
{ name: "v3Route", internalType: "bytes", type: "bytes" },
|
|
6423
6336
|
{
|
|
6424
|
-
name: "
|
|
6425
|
-
internalType: "
|
|
6426
|
-
type: "
|
|
6427
|
-
|
|
6428
|
-
|
|
6429
|
-
|
|
6430
|
-
|
|
6431
|
-
|
|
6337
|
+
name: "v4Route",
|
|
6338
|
+
internalType: "struct PoolKey[]",
|
|
6339
|
+
type: "tuple[]",
|
|
6340
|
+
components: [
|
|
6341
|
+
{ name: "currency0", internalType: "Currency", type: "address" },
|
|
6342
|
+
{ name: "currency1", internalType: "Currency", type: "address" },
|
|
6343
|
+
{ name: "fee", internalType: "uint24", type: "uint24" },
|
|
6344
|
+
{ name: "tickSpacing", internalType: "int24", type: "int24" },
|
|
6345
|
+
{
|
|
6346
|
+
name: "hooks",
|
|
6347
|
+
internalType: "contract IHooks",
|
|
6348
|
+
type: "address"
|
|
6349
|
+
}
|
|
6350
|
+
]
|
|
6432
6351
|
},
|
|
6433
|
-
{ name: "
|
|
6434
|
-
{
|
|
6435
|
-
|
|
6436
|
-
internalType: "uint256",
|
|
6437
|
-
type: "uint256"
|
|
6438
|
-
}
|
|
6352
|
+
{ name: "inputCurrency", internalType: "address", type: "address" },
|
|
6353
|
+
{ name: "inputAmount", internalType: "uint256", type: "uint256" },
|
|
6354
|
+
{ name: "minAmountOut", internalType: "uint256", type: "uint256" }
|
|
6439
6355
|
]
|
|
6440
6356
|
}
|
|
6441
6357
|
],
|
|
6358
|
+
name: "encodeBuySupplyWithV4SwapHookData",
|
|
6359
|
+
outputs: [{ name: "", internalType: "bytes", type: "bytes" }],
|
|
6442
6360
|
stateMutability: "pure"
|
|
6443
6361
|
},
|
|
6444
6362
|
{
|
|
6445
6363
|
type: "function",
|
|
6446
|
-
inputs: [
|
|
6447
|
-
|
|
6448
|
-
|
|
6364
|
+
inputs: [],
|
|
6365
|
+
name: "factory",
|
|
6366
|
+
outputs: [
|
|
6367
|
+
{ name: "", internalType: "contract IZoraFactory", type: "address" }
|
|
6449
6368
|
],
|
|
6450
|
-
|
|
6451
|
-
|
|
6452
|
-
|
|
6453
|
-
|
|
6454
|
-
|
|
6455
|
-
|
|
6456
|
-
|
|
6457
|
-
|
|
6458
|
-
|
|
6369
|
+
stateMutability: "view"
|
|
6370
|
+
},
|
|
6371
|
+
{
|
|
6372
|
+
type: "function",
|
|
6373
|
+
inputs: [],
|
|
6374
|
+
name: "poolManager",
|
|
6375
|
+
outputs: [
|
|
6376
|
+
{ name: "", internalType: "contract IPoolManager", type: "address" }
|
|
6377
|
+
],
|
|
6378
|
+
stateMutability: "view"
|
|
6379
|
+
},
|
|
6380
|
+
{
|
|
6381
|
+
type: "function",
|
|
6382
|
+
inputs: [{ name: "interfaceId", internalType: "bytes4", type: "bytes4" }],
|
|
6383
|
+
name: "supportsInterface",
|
|
6384
|
+
outputs: [{ name: "", internalType: "bool", type: "bool" }],
|
|
6385
|
+
stateMutability: "pure"
|
|
6386
|
+
},
|
|
6387
|
+
{
|
|
6388
|
+
type: "function",
|
|
6389
|
+
inputs: [],
|
|
6390
|
+
name: "swapRouter",
|
|
6391
|
+
outputs: [
|
|
6392
|
+
{ name: "", internalType: "contract ISwapRouter", type: "address" }
|
|
6393
|
+
],
|
|
6394
|
+
stateMutability: "view"
|
|
6395
|
+
},
|
|
6396
|
+
{
|
|
6397
|
+
type: "function",
|
|
6398
|
+
inputs: [{ name: "data", internalType: "bytes", type: "bytes" }],
|
|
6399
|
+
name: "unlockCallback",
|
|
6400
|
+
outputs: [{ name: "", internalType: "bytes", type: "bytes" }],
|
|
6401
|
+
stateMutability: "nonpayable"
|
|
6402
|
+
},
|
|
6403
|
+
{
|
|
6404
|
+
type: "event",
|
|
6405
|
+
anonymous: false,
|
|
6406
|
+
inputs: [
|
|
6407
|
+
{ name: "coin", internalType: "address", type: "address", indexed: true },
|
|
6408
|
+
{
|
|
6409
|
+
name: "recipient",
|
|
6410
|
+
internalType: "address",
|
|
6411
|
+
type: "address",
|
|
6412
|
+
indexed: true
|
|
6413
|
+
},
|
|
6414
|
+
{
|
|
6415
|
+
name: "coinsPurchased",
|
|
6416
|
+
internalType: "uint256",
|
|
6417
|
+
type: "uint256",
|
|
6418
|
+
indexed: true
|
|
6419
|
+
},
|
|
6420
|
+
{ name: "v3Route", internalType: "bytes", type: "bytes", indexed: false },
|
|
6421
|
+
{
|
|
6422
|
+
name: "v4Route",
|
|
6423
|
+
internalType: "struct PoolKey[]",
|
|
6424
|
+
type: "tuple[]",
|
|
6425
|
+
components: [
|
|
6426
|
+
{ name: "currency0", internalType: "Currency", type: "address" },
|
|
6427
|
+
{ name: "currency1", internalType: "Currency", type: "address" },
|
|
6428
|
+
{ name: "fee", internalType: "uint24", type: "uint24" },
|
|
6429
|
+
{ name: "tickSpacing", internalType: "int24", type: "int24" },
|
|
6430
|
+
{ name: "hooks", internalType: "contract IHooks", type: "address" }
|
|
6431
|
+
],
|
|
6432
|
+
indexed: false
|
|
6433
|
+
},
|
|
6434
|
+
{
|
|
6435
|
+
name: "inputCurrency",
|
|
6436
|
+
internalType: "address",
|
|
6437
|
+
type: "address",
|
|
6438
|
+
indexed: false
|
|
6439
|
+
},
|
|
6440
|
+
{
|
|
6441
|
+
name: "inputAmount",
|
|
6442
|
+
internalType: "uint256",
|
|
6443
|
+
type: "uint256",
|
|
6444
|
+
indexed: false
|
|
6445
|
+
},
|
|
6446
|
+
{
|
|
6447
|
+
name: "v4SwapInput",
|
|
6448
|
+
internalType: "uint256",
|
|
6449
|
+
type: "uint256",
|
|
6450
|
+
indexed: false
|
|
6451
|
+
}
|
|
6452
|
+
],
|
|
6453
|
+
name: "BuyInitialSupply"
|
|
6454
|
+
},
|
|
6455
|
+
{ type: "error", inputs: [], name: "AddressZero" },
|
|
6456
|
+
{ type: "error", inputs: [], name: "HookNotImplemented" },
|
|
6457
|
+
{
|
|
6458
|
+
type: "error",
|
|
6459
|
+
inputs: [
|
|
6460
|
+
{ name: "inputAmount", internalType: "uint256", type: "uint256" },
|
|
6461
|
+
{ name: "availableAmount", internalType: "uint256", type: "uint256" }
|
|
6462
|
+
],
|
|
6463
|
+
name: "InsufficientInputCurrency"
|
|
6464
|
+
},
|
|
6465
|
+
{ type: "error", inputs: [], name: "InsufficientOutputAmount" },
|
|
6466
|
+
{ type: "error", inputs: [], name: "NotFactory" },
|
|
6467
|
+
{ type: "error", inputs: [], name: "OnlyPoolManager" },
|
|
6468
|
+
{
|
|
6469
|
+
type: "error",
|
|
6470
|
+
inputs: [{ name: "token", internalType: "address", type: "address" }],
|
|
6471
|
+
name: "SafeERC20FailedOperation"
|
|
6472
|
+
},
|
|
6473
|
+
{ type: "error", inputs: [], name: "V3RouteDoesNotConnectToV4RouteStart" }
|
|
6474
|
+
];
|
|
6475
|
+
var devBuySupplyWithSwapRouterHookAddress = {};
|
|
6476
|
+
var devBuySupplyWithSwapRouterHookConfig = {
|
|
6477
|
+
address: devBuySupplyWithSwapRouterHookAddress,
|
|
6478
|
+
abi: devBuySupplyWithSwapRouterHookABI
|
|
6479
|
+
};
|
|
6480
|
+
var devCoinFactoryABI = [
|
|
6481
|
+
{
|
|
6482
|
+
type: "constructor",
|
|
6483
|
+
inputs: [
|
|
6484
|
+
{ name: "coinV4Impl_", internalType: "address", type: "address" },
|
|
6485
|
+
{ name: "creatorCoinImpl_", internalType: "address", type: "address" },
|
|
6486
|
+
{ name: "hook_", internalType: "address", type: "address" },
|
|
6487
|
+
{ name: "zoraHookRegistry_", internalType: "address", type: "address" }
|
|
6488
|
+
],
|
|
6489
|
+
stateMutability: "nonpayable"
|
|
6490
|
+
},
|
|
6491
|
+
{
|
|
6492
|
+
type: "function",
|
|
6493
|
+
inputs: [],
|
|
6494
|
+
name: "UPGRADE_INTERFACE_VERSION",
|
|
6495
|
+
outputs: [{ name: "", internalType: "string", type: "string" }],
|
|
6496
|
+
stateMutability: "view"
|
|
6497
|
+
},
|
|
6498
|
+
{
|
|
6499
|
+
type: "function",
|
|
6500
|
+
inputs: [],
|
|
6501
|
+
name: "acceptOwnership",
|
|
6502
|
+
outputs: [],
|
|
6503
|
+
stateMutability: "nonpayable"
|
|
6504
|
+
},
|
|
6505
|
+
{
|
|
6506
|
+
type: "function",
|
|
6507
|
+
inputs: [
|
|
6508
|
+
{ name: "msgSender", internalType: "address", type: "address" },
|
|
6509
|
+
{ name: "name", internalType: "string", type: "string" },
|
|
6510
|
+
{ name: "symbol", internalType: "string", type: "string" },
|
|
6511
|
+
{ name: "poolConfig", internalType: "bytes", type: "bytes" },
|
|
6512
|
+
{ name: "platformReferrer", internalType: "address", type: "address" },
|
|
6513
|
+
{ name: "coinSalt", internalType: "bytes32", type: "bytes32" }
|
|
6514
|
+
],
|
|
6515
|
+
name: "coinAddress",
|
|
6516
|
+
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
6517
|
+
stateMutability: "view"
|
|
6518
|
+
},
|
|
6519
|
+
{
|
|
6520
|
+
type: "function",
|
|
6521
|
+
inputs: [],
|
|
6522
|
+
name: "coinV4Impl",
|
|
6523
|
+
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
6524
|
+
stateMutability: "view"
|
|
6525
|
+
},
|
|
6526
|
+
{
|
|
6527
|
+
type: "function",
|
|
6528
|
+
inputs: [],
|
|
6529
|
+
name: "contentCoinHook",
|
|
6530
|
+
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
6531
|
+
stateMutability: "view"
|
|
6532
|
+
},
|
|
6533
|
+
{
|
|
6534
|
+
type: "function",
|
|
6535
|
+
inputs: [],
|
|
6536
|
+
name: "contractName",
|
|
6537
|
+
outputs: [{ name: "", internalType: "string", type: "string" }],
|
|
6538
|
+
stateMutability: "pure"
|
|
6539
|
+
},
|
|
6540
|
+
{
|
|
6541
|
+
type: "function",
|
|
6542
|
+
inputs: [],
|
|
6543
|
+
name: "contractVersion",
|
|
6544
|
+
outputs: [{ name: "", internalType: "string", type: "string" }],
|
|
6545
|
+
stateMutability: "pure"
|
|
6546
|
+
},
|
|
6547
|
+
{
|
|
6548
|
+
type: "function",
|
|
6549
|
+
inputs: [],
|
|
6550
|
+
name: "creatorCoinHook",
|
|
6551
|
+
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
6552
|
+
stateMutability: "view"
|
|
6553
|
+
},
|
|
6554
|
+
{
|
|
6555
|
+
type: "function",
|
|
6556
|
+
inputs: [],
|
|
6557
|
+
name: "creatorCoinImpl",
|
|
6558
|
+
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
6559
|
+
stateMutability: "view"
|
|
6560
|
+
},
|
|
6561
|
+
{
|
|
6562
|
+
type: "function",
|
|
6563
|
+
inputs: [
|
|
6564
|
+
{ name: "payoutRecipient", internalType: "address", type: "address" },
|
|
6565
|
+
{ name: "owners", internalType: "address[]", type: "address[]" },
|
|
6566
|
+
{ name: "uri", internalType: "string", type: "string" },
|
|
6567
|
+
{ name: "name", internalType: "string", type: "string" },
|
|
6568
|
+
{ name: "symbol", internalType: "string", type: "string" },
|
|
6569
|
+
{ name: "platformReferrer", internalType: "address", type: "address" },
|
|
6570
|
+
{ name: "currency", internalType: "address", type: "address" },
|
|
6571
|
+
{ name: "", internalType: "int24", type: "int24" },
|
|
6572
|
+
{ name: "", internalType: "uint256", type: "uint256" }
|
|
6573
|
+
],
|
|
6574
|
+
name: "deploy",
|
|
6575
|
+
outputs: [
|
|
6576
|
+
{ name: "", internalType: "address", type: "address" },
|
|
6577
|
+
{ name: "", internalType: "uint256", type: "uint256" }
|
|
6578
|
+
],
|
|
6579
|
+
stateMutability: "payable"
|
|
6580
|
+
},
|
|
6581
|
+
{
|
|
6582
|
+
type: "function",
|
|
6583
|
+
inputs: [
|
|
6584
|
+
{ name: "payoutRecipient", internalType: "address", type: "address" },
|
|
6585
|
+
{ name: "owners", internalType: "address[]", type: "address[]" },
|
|
6586
|
+
{ name: "uri", internalType: "string", type: "string" },
|
|
6587
|
+
{ name: "name", internalType: "string", type: "string" },
|
|
6588
|
+
{ name: "symbol", internalType: "string", type: "string" },
|
|
6589
|
+
{ name: "poolConfig", internalType: "bytes", type: "bytes" },
|
|
6590
|
+
{ name: "platformReferrer", internalType: "address", type: "address" },
|
|
6591
|
+
{ name: "postDeployHook", internalType: "address", type: "address" },
|
|
6592
|
+
{ name: "postDeployHookData", internalType: "bytes", type: "bytes" },
|
|
6593
|
+
{ name: "coinSalt", internalType: "bytes32", type: "bytes32" }
|
|
6594
|
+
],
|
|
6595
|
+
name: "deploy",
|
|
6596
|
+
outputs: [
|
|
6597
|
+
{ name: "coin", internalType: "address", type: "address" },
|
|
6598
|
+
{ name: "postDeployHookDataOut", internalType: "bytes", type: "bytes" }
|
|
6599
|
+
],
|
|
6600
|
+
stateMutability: "payable"
|
|
6601
|
+
},
|
|
6602
|
+
{
|
|
6603
|
+
type: "function",
|
|
6604
|
+
inputs: [
|
|
6605
|
+
{ name: "payoutRecipient", internalType: "address", type: "address" },
|
|
6606
|
+
{ name: "owners", internalType: "address[]", type: "address[]" },
|
|
6607
|
+
{ name: "uri", internalType: "string", type: "string" },
|
|
6608
|
+
{ name: "name", internalType: "string", type: "string" },
|
|
6609
|
+
{ name: "symbol", internalType: "string", type: "string" },
|
|
6610
|
+
{ name: "poolConfig", internalType: "bytes", type: "bytes" },
|
|
6611
|
+
{ name: "platformReferrer", internalType: "address", type: "address" },
|
|
6612
|
+
{ name: "", internalType: "uint256", type: "uint256" }
|
|
6613
|
+
],
|
|
6614
|
+
name: "deploy",
|
|
6615
|
+
outputs: [
|
|
6616
|
+
{ name: "", internalType: "address", type: "address" },
|
|
6617
|
+
{ name: "", internalType: "uint256", type: "uint256" }
|
|
6618
|
+
],
|
|
6619
|
+
stateMutability: "payable"
|
|
6620
|
+
},
|
|
6621
|
+
{
|
|
6622
|
+
type: "function",
|
|
6623
|
+
inputs: [
|
|
6624
|
+
{ name: "payoutRecipient", internalType: "address", type: "address" },
|
|
6625
|
+
{ name: "owners", internalType: "address[]", type: "address[]" },
|
|
6626
|
+
{ name: "uri", internalType: "string", type: "string" },
|
|
6627
|
+
{ name: "name", internalType: "string", type: "string" },
|
|
6628
|
+
{ name: "symbol", internalType: "string", type: "string" },
|
|
6629
|
+
{ name: "poolConfig", internalType: "bytes", type: "bytes" },
|
|
6630
|
+
{ name: "platformReferrer", internalType: "address", type: "address" },
|
|
6631
|
+
{ name: "coinSalt", internalType: "bytes32", type: "bytes32" }
|
|
6632
|
+
],
|
|
6633
|
+
name: "deployCreatorCoin",
|
|
6634
|
+
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
6635
|
+
stateMutability: "nonpayable"
|
|
6636
|
+
},
|
|
6637
|
+
{
|
|
6638
|
+
type: "function",
|
|
6639
|
+
inputs: [
|
|
6640
|
+
{ name: "payoutRecipient", internalType: "address", type: "address" },
|
|
6641
|
+
{ name: "owners", internalType: "address[]", type: "address[]" },
|
|
6642
|
+
{ name: "uri", internalType: "string", type: "string" },
|
|
6643
|
+
{ name: "name", internalType: "string", type: "string" },
|
|
6644
|
+
{ name: "symbol", internalType: "string", type: "string" },
|
|
6645
|
+
{ name: "poolConfig", internalType: "bytes", type: "bytes" },
|
|
6646
|
+
{ name: "platformReferrer", internalType: "address", type: "address" },
|
|
6647
|
+
{ name: "postDeployHook", internalType: "address", type: "address" },
|
|
6648
|
+
{ name: "postDeployHookData", internalType: "bytes", type: "bytes" },
|
|
6649
|
+
{ name: "coinSalt", internalType: "bytes32", type: "bytes32" }
|
|
6650
|
+
],
|
|
6651
|
+
name: "deployCreatorCoin",
|
|
6652
|
+
outputs: [
|
|
6653
|
+
{ name: "coin", internalType: "address", type: "address" },
|
|
6654
|
+
{ name: "postDeployHookDataOut", internalType: "bytes", type: "bytes" }
|
|
6655
|
+
],
|
|
6656
|
+
stateMutability: "payable"
|
|
6657
|
+
},
|
|
6658
|
+
{
|
|
6659
|
+
type: "function",
|
|
6660
|
+
inputs: [
|
|
6661
|
+
{ name: "payoutRecipient", internalType: "address", type: "address" },
|
|
6662
|
+
{ name: "owners", internalType: "address[]", type: "address[]" },
|
|
6663
|
+
{ name: "uri", internalType: "string", type: "string" },
|
|
6664
|
+
{ name: "name", internalType: "string", type: "string" },
|
|
6665
|
+
{ name: "symbol", internalType: "string", type: "string" },
|
|
6666
|
+
{ name: "poolConfig", internalType: "bytes", type: "bytes" },
|
|
6667
|
+
{ name: "platformReferrer", internalType: "address", type: "address" },
|
|
6668
|
+
{ name: "deployHook", internalType: "address", type: "address" },
|
|
6669
|
+
{ name: "hookData", internalType: "bytes", type: "bytes" }
|
|
6670
|
+
],
|
|
6671
|
+
name: "deployWithHook",
|
|
6672
|
+
outputs: [
|
|
6673
|
+
{ name: "coin", internalType: "address", type: "address" },
|
|
6674
|
+
{ name: "hookDataOut", internalType: "bytes", type: "bytes" }
|
|
6675
|
+
],
|
|
6676
|
+
stateMutability: "payable"
|
|
6677
|
+
},
|
|
6678
|
+
{
|
|
6679
|
+
type: "function",
|
|
6680
|
+
inputs: [{ name: "coin", internalType: "address", type: "address" }],
|
|
6681
|
+
name: "getVersionForDeployedCoin",
|
|
6682
|
+
outputs: [{ name: "", internalType: "uint8", type: "uint8" }],
|
|
6683
|
+
stateMutability: "view"
|
|
6684
|
+
},
|
|
6685
|
+
{
|
|
6686
|
+
type: "function",
|
|
6687
|
+
inputs: [],
|
|
6688
|
+
name: "hook",
|
|
6689
|
+
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
6690
|
+
stateMutability: "view"
|
|
6691
|
+
},
|
|
6692
|
+
{
|
|
6693
|
+
type: "function",
|
|
6694
|
+
inputs: [],
|
|
6695
|
+
name: "implementation",
|
|
6696
|
+
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
6697
|
+
stateMutability: "view"
|
|
6698
|
+
},
|
|
6699
|
+
{
|
|
6700
|
+
type: "function",
|
|
6701
|
+
inputs: [
|
|
6702
|
+
{ name: "initialOwner", internalType: "address", type: "address" }
|
|
6703
|
+
],
|
|
6704
|
+
name: "initialize",
|
|
6705
|
+
outputs: [],
|
|
6706
|
+
stateMutability: "nonpayable"
|
|
6707
|
+
},
|
|
6708
|
+
{
|
|
6709
|
+
type: "function",
|
|
6710
|
+
inputs: [],
|
|
6711
|
+
name: "owner",
|
|
6712
|
+
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
6713
|
+
stateMutability: "view"
|
|
6714
|
+
},
|
|
6715
|
+
{
|
|
6716
|
+
type: "function",
|
|
6717
|
+
inputs: [],
|
|
6718
|
+
name: "pendingOwner",
|
|
6719
|
+
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
6720
|
+
stateMutability: "view"
|
|
6721
|
+
},
|
|
6722
|
+
{
|
|
6723
|
+
type: "function",
|
|
6724
|
+
inputs: [],
|
|
6725
|
+
name: "proxiableUUID",
|
|
6726
|
+
outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
|
|
6727
|
+
stateMutability: "view"
|
|
6728
|
+
},
|
|
6729
|
+
{
|
|
6730
|
+
type: "function",
|
|
6731
|
+
inputs: [],
|
|
6732
|
+
name: "renounceOwnership",
|
|
6733
|
+
outputs: [],
|
|
6734
|
+
stateMutability: "nonpayable"
|
|
6735
|
+
},
|
|
6736
|
+
{
|
|
6737
|
+
type: "function",
|
|
6738
|
+
inputs: [{ name: "newOwner", internalType: "address", type: "address" }],
|
|
6739
|
+
name: "transferOwnership",
|
|
6740
|
+
outputs: [],
|
|
6741
|
+
stateMutability: "nonpayable"
|
|
6742
|
+
},
|
|
6743
|
+
{
|
|
6744
|
+
type: "function",
|
|
6745
|
+
inputs: [
|
|
6746
|
+
{ name: "newImplementation", internalType: "address", type: "address" },
|
|
6747
|
+
{ name: "data", internalType: "bytes", type: "bytes" }
|
|
6748
|
+
],
|
|
6749
|
+
name: "upgradeToAndCall",
|
|
6750
|
+
outputs: [],
|
|
6751
|
+
stateMutability: "payable"
|
|
6752
|
+
},
|
|
6753
|
+
{
|
|
6754
|
+
type: "function",
|
|
6755
|
+
inputs: [],
|
|
6756
|
+
name: "zoraHookRegistry",
|
|
6757
|
+
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
6758
|
+
stateMutability: "view"
|
|
6759
|
+
},
|
|
6760
|
+
{
|
|
6761
|
+
type: "event",
|
|
6762
|
+
anonymous: false,
|
|
6763
|
+
inputs: [
|
|
6764
|
+
{
|
|
6765
|
+
name: "caller",
|
|
6766
|
+
internalType: "address",
|
|
6767
|
+
type: "address",
|
|
6768
|
+
indexed: true
|
|
6769
|
+
},
|
|
6770
|
+
{
|
|
6771
|
+
name: "payoutRecipient",
|
|
6772
|
+
internalType: "address",
|
|
6773
|
+
type: "address",
|
|
6774
|
+
indexed: true
|
|
6775
|
+
},
|
|
6776
|
+
{
|
|
6777
|
+
name: "platformReferrer",
|
|
6778
|
+
internalType: "address",
|
|
6779
|
+
type: "address",
|
|
6780
|
+
indexed: true
|
|
6781
|
+
},
|
|
6782
|
+
{
|
|
6783
|
+
name: "currency",
|
|
6784
|
+
internalType: "address",
|
|
6785
|
+
type: "address",
|
|
6786
|
+
indexed: false
|
|
6787
|
+
},
|
|
6788
|
+
{ name: "uri", internalType: "string", type: "string", indexed: false },
|
|
6789
|
+
{ name: "name", internalType: "string", type: "string", indexed: false },
|
|
6790
|
+
{
|
|
6791
|
+
name: "symbol",
|
|
6792
|
+
internalType: "string",
|
|
6793
|
+
type: "string",
|
|
6794
|
+
indexed: false
|
|
6795
|
+
},
|
|
6796
|
+
{
|
|
6797
|
+
name: "coin",
|
|
6798
|
+
internalType: "address",
|
|
6799
|
+
type: "address",
|
|
6800
|
+
indexed: false
|
|
6801
|
+
},
|
|
6802
|
+
{
|
|
6803
|
+
name: "pool",
|
|
6804
|
+
internalType: "address",
|
|
6805
|
+
type: "address",
|
|
6806
|
+
indexed: false
|
|
6807
|
+
},
|
|
6808
|
+
{
|
|
6809
|
+
name: "version",
|
|
6810
|
+
internalType: "string",
|
|
6811
|
+
type: "string",
|
|
6812
|
+
indexed: false
|
|
6813
|
+
}
|
|
6814
|
+
],
|
|
6815
|
+
name: "CoinCreated"
|
|
6816
|
+
},
|
|
6817
|
+
{
|
|
6818
|
+
type: "event",
|
|
6819
|
+
anonymous: false,
|
|
6820
|
+
inputs: [
|
|
6821
|
+
{
|
|
6822
|
+
name: "caller",
|
|
6823
|
+
internalType: "address",
|
|
6824
|
+
type: "address",
|
|
6825
|
+
indexed: true
|
|
6826
|
+
},
|
|
6827
|
+
{
|
|
6828
|
+
name: "payoutRecipient",
|
|
6829
|
+
internalType: "address",
|
|
6830
|
+
type: "address",
|
|
6831
|
+
indexed: true
|
|
6832
|
+
},
|
|
6833
|
+
{
|
|
6834
|
+
name: "platformReferrer",
|
|
6835
|
+
internalType: "address",
|
|
6836
|
+
type: "address",
|
|
6837
|
+
indexed: true
|
|
6838
|
+
},
|
|
6839
|
+
{
|
|
6840
|
+
name: "currency",
|
|
6841
|
+
internalType: "address",
|
|
6842
|
+
type: "address",
|
|
6843
|
+
indexed: false
|
|
6844
|
+
},
|
|
6845
|
+
{ name: "uri", internalType: "string", type: "string", indexed: false },
|
|
6846
|
+
{ name: "name", internalType: "string", type: "string", indexed: false },
|
|
6847
|
+
{
|
|
6848
|
+
name: "symbol",
|
|
6849
|
+
internalType: "string",
|
|
6850
|
+
type: "string",
|
|
6851
|
+
indexed: false
|
|
6852
|
+
},
|
|
6853
|
+
{
|
|
6854
|
+
name: "coin",
|
|
6855
|
+
internalType: "address",
|
|
6856
|
+
type: "address",
|
|
6857
|
+
indexed: false
|
|
6858
|
+
},
|
|
6859
|
+
{
|
|
6860
|
+
name: "poolKey",
|
|
6861
|
+
internalType: "struct PoolKey",
|
|
6862
|
+
type: "tuple",
|
|
6863
|
+
components: [
|
|
6864
|
+
{ name: "currency0", internalType: "Currency", type: "address" },
|
|
6865
|
+
{ name: "currency1", internalType: "Currency", type: "address" },
|
|
6866
|
+
{ name: "fee", internalType: "uint24", type: "uint24" },
|
|
6867
|
+
{ name: "tickSpacing", internalType: "int24", type: "int24" },
|
|
6868
|
+
{ name: "hooks", internalType: "contract IHooks", type: "address" }
|
|
6869
|
+
],
|
|
6870
|
+
indexed: false
|
|
6871
|
+
},
|
|
6872
|
+
{
|
|
6873
|
+
name: "poolKeyHash",
|
|
6874
|
+
internalType: "bytes32",
|
|
6875
|
+
type: "bytes32",
|
|
6876
|
+
indexed: false
|
|
6877
|
+
},
|
|
6878
|
+
{
|
|
6879
|
+
name: "version",
|
|
6880
|
+
internalType: "string",
|
|
6881
|
+
type: "string",
|
|
6882
|
+
indexed: false
|
|
6883
|
+
}
|
|
6884
|
+
],
|
|
6885
|
+
name: "CoinCreatedV4"
|
|
6886
|
+
},
|
|
6887
|
+
{
|
|
6888
|
+
type: "event",
|
|
6889
|
+
anonymous: false,
|
|
6890
|
+
inputs: [
|
|
6891
|
+
{
|
|
6892
|
+
name: "caller",
|
|
6893
|
+
internalType: "address",
|
|
6894
|
+
type: "address",
|
|
6895
|
+
indexed: true
|
|
6896
|
+
},
|
|
6897
|
+
{
|
|
6898
|
+
name: "payoutRecipient",
|
|
6899
|
+
internalType: "address",
|
|
6900
|
+
type: "address",
|
|
6901
|
+
indexed: true
|
|
6902
|
+
},
|
|
6903
|
+
{
|
|
6904
|
+
name: "platformReferrer",
|
|
6905
|
+
internalType: "address",
|
|
6906
|
+
type: "address",
|
|
6907
|
+
indexed: true
|
|
6908
|
+
},
|
|
6909
|
+
{
|
|
6910
|
+
name: "currency",
|
|
6911
|
+
internalType: "address",
|
|
6912
|
+
type: "address",
|
|
6913
|
+
indexed: false
|
|
6914
|
+
},
|
|
6915
|
+
{ name: "uri", internalType: "string", type: "string", indexed: false },
|
|
6916
|
+
{ name: "name", internalType: "string", type: "string", indexed: false },
|
|
6917
|
+
{
|
|
6918
|
+
name: "symbol",
|
|
6919
|
+
internalType: "string",
|
|
6920
|
+
type: "string",
|
|
6921
|
+
indexed: false
|
|
6922
|
+
},
|
|
6923
|
+
{
|
|
6924
|
+
name: "coin",
|
|
6925
|
+
internalType: "address",
|
|
6926
|
+
type: "address",
|
|
6927
|
+
indexed: false
|
|
6928
|
+
},
|
|
6929
|
+
{
|
|
6930
|
+
name: "poolKey",
|
|
6931
|
+
internalType: "struct PoolKey",
|
|
6932
|
+
type: "tuple",
|
|
6933
|
+
components: [
|
|
6934
|
+
{ name: "currency0", internalType: "Currency", type: "address" },
|
|
6935
|
+
{ name: "currency1", internalType: "Currency", type: "address" },
|
|
6936
|
+
{ name: "fee", internalType: "uint24", type: "uint24" },
|
|
6937
|
+
{ name: "tickSpacing", internalType: "int24", type: "int24" },
|
|
6938
|
+
{ name: "hooks", internalType: "contract IHooks", type: "address" }
|
|
6939
|
+
],
|
|
6940
|
+
indexed: false
|
|
6941
|
+
},
|
|
6942
|
+
{
|
|
6943
|
+
name: "poolKeyHash",
|
|
6944
|
+
internalType: "bytes32",
|
|
6945
|
+
type: "bytes32",
|
|
6946
|
+
indexed: false
|
|
6947
|
+
},
|
|
6948
|
+
{
|
|
6949
|
+
name: "version",
|
|
6950
|
+
internalType: "string",
|
|
6951
|
+
type: "string",
|
|
6952
|
+
indexed: false
|
|
6953
|
+
}
|
|
6954
|
+
],
|
|
6955
|
+
name: "CreatorCoinCreated"
|
|
6956
|
+
},
|
|
6957
|
+
{
|
|
6958
|
+
type: "event",
|
|
6959
|
+
anonymous: false,
|
|
6960
|
+
inputs: [
|
|
6961
|
+
{
|
|
6962
|
+
name: "version",
|
|
6963
|
+
internalType: "uint64",
|
|
6964
|
+
type: "uint64",
|
|
6965
|
+
indexed: false
|
|
6966
|
+
}
|
|
6967
|
+
],
|
|
6968
|
+
name: "Initialized"
|
|
6969
|
+
},
|
|
6970
|
+
{
|
|
6971
|
+
type: "event",
|
|
6972
|
+
anonymous: false,
|
|
6973
|
+
inputs: [
|
|
6974
|
+
{
|
|
6975
|
+
name: "previousOwner",
|
|
6976
|
+
internalType: "address",
|
|
6977
|
+
type: "address",
|
|
6978
|
+
indexed: true
|
|
6979
|
+
},
|
|
6980
|
+
{
|
|
6981
|
+
name: "newOwner",
|
|
6982
|
+
internalType: "address",
|
|
6983
|
+
type: "address",
|
|
6984
|
+
indexed: true
|
|
6985
|
+
}
|
|
6986
|
+
],
|
|
6987
|
+
name: "OwnershipTransferStarted"
|
|
6988
|
+
},
|
|
6989
|
+
{
|
|
6990
|
+
type: "event",
|
|
6991
|
+
anonymous: false,
|
|
6992
|
+
inputs: [
|
|
6993
|
+
{
|
|
6994
|
+
name: "previousOwner",
|
|
6995
|
+
internalType: "address",
|
|
6996
|
+
type: "address",
|
|
6997
|
+
indexed: true
|
|
6998
|
+
},
|
|
6999
|
+
{
|
|
7000
|
+
name: "newOwner",
|
|
7001
|
+
internalType: "address",
|
|
7002
|
+
type: "address",
|
|
7003
|
+
indexed: true
|
|
7004
|
+
}
|
|
7005
|
+
],
|
|
7006
|
+
name: "OwnershipTransferred"
|
|
7007
|
+
},
|
|
7008
|
+
{
|
|
7009
|
+
type: "event",
|
|
7010
|
+
anonymous: false,
|
|
7011
|
+
inputs: [
|
|
7012
|
+
{
|
|
7013
|
+
name: "implementation",
|
|
7014
|
+
internalType: "address",
|
|
7015
|
+
type: "address",
|
|
7016
|
+
indexed: true
|
|
7017
|
+
}
|
|
7018
|
+
],
|
|
7019
|
+
name: "Upgraded"
|
|
7020
|
+
},
|
|
7021
|
+
{
|
|
7022
|
+
type: "error",
|
|
7023
|
+
inputs: [{ name: "target", internalType: "address", type: "address" }],
|
|
7024
|
+
name: "AddressEmptyCode"
|
|
7025
|
+
},
|
|
7026
|
+
{ type: "error", inputs: [], name: "ArrayLengthMismatch" },
|
|
7027
|
+
{ type: "error", inputs: [], name: "ConfigTickLowerMustBeLessThanTickUpper" },
|
|
7028
|
+
{ type: "error", inputs: [], name: "Deprecated" },
|
|
7029
|
+
{
|
|
7030
|
+
type: "error",
|
|
7031
|
+
inputs: [
|
|
7032
|
+
{ name: "implementation", internalType: "address", type: "address" }
|
|
7033
|
+
],
|
|
7034
|
+
name: "ERC1967InvalidImplementation"
|
|
7035
|
+
},
|
|
7036
|
+
{ type: "error", inputs: [], name: "ERC1967NonPayable" },
|
|
7037
|
+
{ type: "error", inputs: [], name: "EthTransferInvalid" },
|
|
7038
|
+
{ type: "error", inputs: [], name: "FailedCall" },
|
|
7039
|
+
{ type: "error", inputs: [], name: "FailedDeployment" },
|
|
7040
|
+
{
|
|
7041
|
+
type: "error",
|
|
7042
|
+
inputs: [
|
|
7043
|
+
{ name: "balance", internalType: "uint256", type: "uint256" },
|
|
7044
|
+
{ name: "needed", internalType: "uint256", type: "uint256" }
|
|
7045
|
+
],
|
|
7046
|
+
name: "InsufficientBalance"
|
|
7047
|
+
},
|
|
7048
|
+
{ type: "error", inputs: [], name: "InvalidConfig" },
|
|
7049
|
+
{ type: "error", inputs: [], name: "InvalidHook" },
|
|
7050
|
+
{ type: "error", inputs: [], name: "InvalidInitialization" },
|
|
7051
|
+
{ type: "error", inputs: [], name: "InvalidPoolVersion" },
|
|
7052
|
+
{
|
|
7053
|
+
type: "error",
|
|
7054
|
+
inputs: [
|
|
7055
|
+
{ name: "tickLower", internalType: "int24", type: "int24" },
|
|
7056
|
+
{ name: "tickUpper", internalType: "int24", type: "int24" }
|
|
7057
|
+
],
|
|
7058
|
+
name: "InvalidTickRangeMisordered"
|
|
7059
|
+
},
|
|
7060
|
+
{
|
|
7061
|
+
type: "error",
|
|
7062
|
+
inputs: [
|
|
7063
|
+
{ name: "value", internalType: "uint256", type: "uint256" },
|
|
7064
|
+
{ name: "limit", internalType: "uint256", type: "uint256" }
|
|
7065
|
+
],
|
|
7066
|
+
name: "MaxShareToBeSoldExceeded"
|
|
7067
|
+
},
|
|
7068
|
+
{ type: "error", inputs: [], name: "NotInitializing" },
|
|
7069
|
+
{ type: "error", inputs: [], name: "NumDiscoveryPositionsOutOfRange" },
|
|
7070
|
+
{
|
|
7071
|
+
type: "error",
|
|
7072
|
+
inputs: [{ name: "owner", internalType: "address", type: "address" }],
|
|
7073
|
+
name: "OwnableInvalidOwner"
|
|
7074
|
+
},
|
|
7075
|
+
{
|
|
7076
|
+
type: "error",
|
|
7077
|
+
inputs: [{ name: "account", internalType: "address", type: "address" }],
|
|
7078
|
+
name: "OwnableUnauthorizedAccount"
|
|
7079
|
+
},
|
|
7080
|
+
{ type: "error", inputs: [], name: "ReentrancyGuardReentrantCall" },
|
|
7081
|
+
{ type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" },
|
|
7082
|
+
{
|
|
7083
|
+
type: "error",
|
|
7084
|
+
inputs: [{ name: "slot", internalType: "bytes32", type: "bytes32" }],
|
|
7085
|
+
name: "UUPSUnsupportedProxiableUUID"
|
|
7086
|
+
},
|
|
7087
|
+
{
|
|
7088
|
+
type: "error",
|
|
7089
|
+
inputs: [
|
|
7090
|
+
{ name: "currentName", internalType: "string", type: "string" },
|
|
7091
|
+
{ name: "newName", internalType: "string", type: "string" }
|
|
7092
|
+
],
|
|
7093
|
+
name: "UpgradeToMismatchedContractName"
|
|
7094
|
+
},
|
|
7095
|
+
{ type: "error", inputs: [], name: "ZeroDiscoveryPositions" },
|
|
7096
|
+
{ type: "error", inputs: [], name: "ZeroDiscoverySupplyShare" },
|
|
7097
|
+
{ type: "error", inputs: [], name: "AddressZero" },
|
|
7098
|
+
{ type: "error", inputs: [], name: "HookNotImplemented" },
|
|
7099
|
+
{
|
|
7100
|
+
type: "error",
|
|
7101
|
+
inputs: [
|
|
7102
|
+
{ name: "inputAmount", internalType: "uint256", type: "uint256" },
|
|
7103
|
+
{ name: "availableAmount", internalType: "uint256", type: "uint256" }
|
|
7104
|
+
],
|
|
7105
|
+
name: "InsufficientInputCurrency"
|
|
7106
|
+
},
|
|
7107
|
+
{ type: "error", inputs: [], name: "InsufficientOutputAmount" },
|
|
7108
|
+
{ type: "error", inputs: [], name: "NotFactory" },
|
|
7109
|
+
{ type: "error", inputs: [], name: "OnlyPoolManager" },
|
|
7110
|
+
{
|
|
7111
|
+
type: "error",
|
|
7112
|
+
inputs: [{ name: "token", internalType: "address", type: "address" }],
|
|
7113
|
+
name: "SafeERC20FailedOperation"
|
|
7114
|
+
},
|
|
7115
|
+
{ type: "error", inputs: [], name: "V3RouteDoesNotConnectToV4RouteStart" },
|
|
7116
|
+
{ type: "error", inputs: [], name: "AddressZero" },
|
|
7117
|
+
{ type: "error", inputs: [], name: "AlreadyOwner" },
|
|
7118
|
+
{ type: "error", inputs: [], name: "CannotMintZeroLiquidity" },
|
|
7119
|
+
{
|
|
7120
|
+
type: "error",
|
|
7121
|
+
inputs: [],
|
|
7122
|
+
name: "DopplerPoolMustHaveMoreThan2DiscoveryPositions"
|
|
7123
|
+
},
|
|
7124
|
+
{ type: "error", inputs: [], name: "ECDSAInvalidSignature" },
|
|
7125
|
+
{
|
|
7126
|
+
type: "error",
|
|
7127
|
+
inputs: [{ name: "length", internalType: "uint256", type: "uint256" }],
|
|
7128
|
+
name: "ECDSAInvalidSignatureLength"
|
|
7129
|
+
},
|
|
7130
|
+
{
|
|
7131
|
+
type: "error",
|
|
7132
|
+
inputs: [{ name: "s", internalType: "bytes32", type: "bytes32" }],
|
|
7133
|
+
name: "ECDSAInvalidSignatureS"
|
|
7134
|
+
},
|
|
7135
|
+
{
|
|
7136
|
+
type: "error",
|
|
7137
|
+
inputs: [
|
|
7138
|
+
{ name: "spender", internalType: "address", type: "address" },
|
|
7139
|
+
{ name: "allowance", internalType: "uint256", type: "uint256" },
|
|
7140
|
+
{ name: "needed", internalType: "uint256", type: "uint256" }
|
|
7141
|
+
],
|
|
7142
|
+
name: "ERC20InsufficientAllowance"
|
|
7143
|
+
},
|
|
7144
|
+
{
|
|
7145
|
+
type: "error",
|
|
7146
|
+
inputs: [
|
|
7147
|
+
{ name: "sender", internalType: "address", type: "address" },
|
|
7148
|
+
{ name: "balance", internalType: "uint256", type: "uint256" },
|
|
7149
|
+
{ name: "needed", internalType: "uint256", type: "uint256" }
|
|
7150
|
+
],
|
|
7151
|
+
name: "ERC20InsufficientBalance"
|
|
7152
|
+
},
|
|
7153
|
+
{
|
|
7154
|
+
type: "error",
|
|
7155
|
+
inputs: [{ name: "approver", internalType: "address", type: "address" }],
|
|
7156
|
+
name: "ERC20InvalidApprover"
|
|
7157
|
+
},
|
|
7158
|
+
{
|
|
7159
|
+
type: "error",
|
|
7160
|
+
inputs: [{ name: "receiver", internalType: "address", type: "address" }],
|
|
7161
|
+
name: "ERC20InvalidReceiver"
|
|
7162
|
+
},
|
|
7163
|
+
{
|
|
7164
|
+
type: "error",
|
|
7165
|
+
inputs: [{ name: "sender", internalType: "address", type: "address" }],
|
|
7166
|
+
name: "ERC20InvalidSender"
|
|
7167
|
+
},
|
|
7168
|
+
{
|
|
7169
|
+
type: "error",
|
|
7170
|
+
inputs: [{ name: "spender", internalType: "address", type: "address" }],
|
|
7171
|
+
name: "ERC20InvalidSpender"
|
|
7172
|
+
},
|
|
7173
|
+
{ type: "error", inputs: [], name: "ERC20TransferAmountMismatch" },
|
|
7174
|
+
{
|
|
7175
|
+
type: "error",
|
|
7176
|
+
inputs: [{ name: "deadline", internalType: "uint256", type: "uint256" }],
|
|
7177
|
+
name: "ERC2612ExpiredSignature"
|
|
7178
|
+
},
|
|
7179
|
+
{
|
|
7180
|
+
type: "error",
|
|
7181
|
+
inputs: [
|
|
7182
|
+
{ name: "signer", internalType: "address", type: "address" },
|
|
7183
|
+
{ name: "owner", internalType: "address", type: "address" }
|
|
7184
|
+
],
|
|
7185
|
+
name: "ERC2612InvalidSigner"
|
|
7186
|
+
},
|
|
7187
|
+
{ type: "error", inputs: [], name: "EthAmountMismatch" },
|
|
7188
|
+
{ type: "error", inputs: [], name: "EthAmountTooSmall" },
|
|
7189
|
+
{ type: "error", inputs: [], name: "EthTransferFailed" },
|
|
7190
|
+
{ type: "error", inputs: [], name: "EthTransferInvalid" },
|
|
7191
|
+
{ type: "error", inputs: [], name: "InitialOrderSizeTooLarge" },
|
|
7192
|
+
{ type: "error", inputs: [], name: "InsufficientFunds" },
|
|
7193
|
+
{ type: "error", inputs: [], name: "InsufficientLiquidity" },
|
|
7194
|
+
{
|
|
7195
|
+
type: "error",
|
|
7196
|
+
inputs: [
|
|
7197
|
+
{ name: "account", internalType: "address", type: "address" },
|
|
7198
|
+
{ name: "currentNonce", internalType: "uint256", type: "uint256" }
|
|
7199
|
+
],
|
|
7200
|
+
name: "InvalidAccountNonce"
|
|
7201
|
+
},
|
|
7202
|
+
{ type: "error", inputs: [], name: "InvalidCurrencyLowerTick" },
|
|
7203
|
+
{ type: "error", inputs: [], name: "InvalidInitialization" },
|
|
7204
|
+
{ type: "error", inputs: [], name: "InvalidMarketType" },
|
|
7205
|
+
{ type: "error", inputs: [], name: "InvalidPoolVersion" },
|
|
7206
|
+
{
|
|
7207
|
+
type: "error",
|
|
7208
|
+
inputs: [
|
|
7209
|
+
{ name: "tickLower", internalType: "int24", type: "int24" },
|
|
7210
|
+
{ name: "tickUpper", internalType: "int24", type: "int24" }
|
|
7211
|
+
],
|
|
7212
|
+
name: "InvalidTickRangeMisordered"
|
|
7213
|
+
},
|
|
7214
|
+
{ type: "error", inputs: [], name: "InvalidWethLowerTick" },
|
|
7215
|
+
{ type: "error", inputs: [], name: "LegacyPoolMustHaveOneDiscoveryPosition" },
|
|
7216
|
+
{ type: "error", inputs: [], name: "MarketAlreadyGraduated" },
|
|
7217
|
+
{ type: "error", inputs: [], name: "MarketNotGraduated" },
|
|
7218
|
+
{
|
|
7219
|
+
type: "error",
|
|
7220
|
+
inputs: [
|
|
7221
|
+
{ name: "value", internalType: "uint256", type: "uint256" },
|
|
7222
|
+
{ name: "limit", internalType: "uint256", type: "uint256" }
|
|
7223
|
+
],
|
|
7224
|
+
name: "MaxShareToBeSoldExceeded"
|
|
7225
|
+
},
|
|
7226
|
+
{ type: "error", inputs: [], name: "NameIsRequired" },
|
|
7227
|
+
{ type: "error", inputs: [], name: "NotInitializing" },
|
|
7228
|
+
{ type: "error", inputs: [], name: "NotOwner" },
|
|
7229
|
+
{ type: "error", inputs: [], name: "NumDiscoveryPositionsOutOfRange" },
|
|
7230
|
+
{ type: "error", inputs: [], name: "OneOwnerRequired" },
|
|
7231
|
+
{ type: "error", inputs: [], name: "OnlyOwner" },
|
|
7232
|
+
{
|
|
7233
|
+
type: "error",
|
|
7234
|
+
inputs: [
|
|
7235
|
+
{ name: "sender", internalType: "address", type: "address" },
|
|
7236
|
+
{ name: "pool", internalType: "address", type: "address" }
|
|
7237
|
+
],
|
|
7238
|
+
name: "OnlyPool"
|
|
7239
|
+
},
|
|
7240
|
+
{ type: "error", inputs: [], name: "OnlyWeth" },
|
|
7241
|
+
{ type: "error", inputs: [], name: "OwnerCannotBeAddressZero" },
|
|
7242
|
+
{ type: "error", inputs: [], name: "SlippageBoundsExceeded" },
|
|
7243
|
+
{ type: "error", inputs: [], name: "UseRevokeOwnershipToRemoveSelf" },
|
|
7244
|
+
{ type: "error", inputs: [], name: "CoinVersionLookupCannotBeZeroAddress" },
|
|
7245
|
+
{ type: "error", inputs: [], name: "EthTransferFailed" },
|
|
7246
|
+
{ type: "error", inputs: [], name: "HookNotImplemented" },
|
|
7247
|
+
{
|
|
7248
|
+
type: "error",
|
|
7249
|
+
inputs: [{ name: "callbackId", internalType: "uint8", type: "uint8" }],
|
|
7250
|
+
name: "InvalidCallbackId"
|
|
7251
|
+
},
|
|
7252
|
+
{
|
|
7253
|
+
type: "error",
|
|
7254
|
+
inputs: [{ name: "newHook", internalType: "address", type: "address" }],
|
|
7255
|
+
name: "InvalidNewHook"
|
|
7256
|
+
},
|
|
7257
|
+
{
|
|
7258
|
+
type: "error",
|
|
7259
|
+
inputs: [
|
|
7260
|
+
{
|
|
7261
|
+
name: "key",
|
|
7262
|
+
internalType: "struct PoolKey",
|
|
7263
|
+
type: "tuple",
|
|
7264
|
+
components: [
|
|
7265
|
+
{ name: "currency0", internalType: "Currency", type: "address" },
|
|
7266
|
+
{ name: "currency1", internalType: "Currency", type: "address" },
|
|
7267
|
+
{ name: "fee", internalType: "uint24", type: "uint24" },
|
|
7268
|
+
{ name: "tickSpacing", internalType: "int24", type: "int24" },
|
|
7269
|
+
{ name: "hooks", internalType: "contract IHooks", type: "address" }
|
|
7270
|
+
]
|
|
7271
|
+
}
|
|
7272
|
+
],
|
|
7273
|
+
name: "NoCoinForHook"
|
|
7274
|
+
},
|
|
7275
|
+
{
|
|
7276
|
+
type: "error",
|
|
7277
|
+
inputs: [{ name: "coin", internalType: "address", type: "address" }],
|
|
7278
|
+
name: "NotACoin"
|
|
7279
|
+
},
|
|
7280
|
+
{ type: "error", inputs: [], name: "NotPoolManager" },
|
|
7281
|
+
{
|
|
7282
|
+
type: "error",
|
|
7283
|
+
inputs: [
|
|
7284
|
+
{ name: "caller", internalType: "address", type: "address" },
|
|
7285
|
+
{ name: "expectedCoin", internalType: "address", type: "address" }
|
|
7286
|
+
],
|
|
7287
|
+
name: "OnlyCoin"
|
|
7288
|
+
},
|
|
7289
|
+
{ type: "error", inputs: [], name: "PathMustHaveAtLeastOneStep" },
|
|
7290
|
+
{ type: "error", inputs: [], name: "SafeCastOverflow" },
|
|
7291
|
+
{
|
|
7292
|
+
type: "error",
|
|
7293
|
+
inputs: [{ name: "token", internalType: "address", type: "address" }],
|
|
7294
|
+
name: "SafeERC20FailedOperation"
|
|
7295
|
+
},
|
|
7296
|
+
{
|
|
7297
|
+
type: "error",
|
|
7298
|
+
inputs: [],
|
|
7299
|
+
name: "TrustedMsgSenderLookupCannotBeZeroAddress"
|
|
7300
|
+
},
|
|
7301
|
+
{ type: "error", inputs: [], name: "UpgradeGateCannotBeZeroAddress" },
|
|
7302
|
+
{
|
|
7303
|
+
type: "error",
|
|
7304
|
+
inputs: [
|
|
7305
|
+
{ name: "oldHook", internalType: "address", type: "address" },
|
|
7306
|
+
{ name: "newHook", internalType: "address", type: "address" }
|
|
7307
|
+
],
|
|
7308
|
+
name: "UpgradePathNotRegistered"
|
|
7309
|
+
},
|
|
7310
|
+
{ type: "error", inputs: [], name: "ZoraHookRegistryCannotBeZeroAddress" },
|
|
7311
|
+
{ type: "error", inputs: [], name: "ZoraLimitOrderBookCannotBeZeroAddress" },
|
|
7312
|
+
{ type: "error", inputs: [], name: "AddressZero" },
|
|
7313
|
+
{ type: "error", inputs: [], name: "ArrayLengthMismatch" },
|
|
7314
|
+
{ type: "error", inputs: [], name: "CallerNotPermitted" },
|
|
7315
|
+
{
|
|
7316
|
+
type: "error",
|
|
7317
|
+
inputs: [
|
|
7318
|
+
{ name: "orderId", internalType: "bytes32", type: "bytes32" },
|
|
7319
|
+
{ name: "expectedCoin", internalType: "address", type: "address" },
|
|
7320
|
+
{ name: "actualCoin", internalType: "address", type: "address" }
|
|
7321
|
+
],
|
|
7322
|
+
name: "CoinMismatch"
|
|
7323
|
+
},
|
|
7324
|
+
{ type: "error", inputs: [], name: "InsufficientForwardedFunds" },
|
|
7325
|
+
{ type: "error", inputs: [], name: "InsufficientTransferFunds" },
|
|
7326
|
+
{
|
|
7327
|
+
type: "error",
|
|
7328
|
+
inputs: [
|
|
7329
|
+
{ name: "startTick", internalType: "int24", type: "int24" },
|
|
7330
|
+
{ name: "endTick", internalType: "int24", type: "int24" },
|
|
7331
|
+
{ name: "isCurrency0", internalType: "bool", type: "bool" }
|
|
7332
|
+
],
|
|
7333
|
+
name: "InvalidFillWindow"
|
|
7334
|
+
},
|
|
7335
|
+
{ type: "error", inputs: [], name: "InvalidOrder" },
|
|
7336
|
+
{ type: "error", inputs: [], name: "InvalidPoolKey" },
|
|
7337
|
+
{ type: "error", inputs: [], name: "MaxFillCountCannotBeZero" },
|
|
7338
|
+
{
|
|
7339
|
+
type: "error",
|
|
7340
|
+
inputs: [
|
|
7341
|
+
{ name: "withdrawn", internalType: "uint256", type: "uint256" },
|
|
7342
|
+
{ name: "minAmountOut", internalType: "uint256", type: "uint256" }
|
|
7343
|
+
],
|
|
7344
|
+
name: "MinAmountNotReached"
|
|
7345
|
+
},
|
|
7346
|
+
{ type: "error", inputs: [], name: "NativeValueMismatch" },
|
|
7347
|
+
{ type: "error", inputs: [], name: "NotPoolManager" },
|
|
7348
|
+
{ type: "error", inputs: [], name: "OnlyZoraHook" },
|
|
7349
|
+
{ type: "error", inputs: [], name: "OrderClosed" },
|
|
7350
|
+
{ type: "error", inputs: [], name: "OrderFillable" },
|
|
7351
|
+
{ type: "error", inputs: [], name: "OrderNotMaker" },
|
|
7352
|
+
{
|
|
7353
|
+
type: "error",
|
|
7354
|
+
inputs: [{ name: "owner", internalType: "address", type: "address" }],
|
|
7355
|
+
name: "OwnableInvalidOwner"
|
|
7356
|
+
},
|
|
7357
|
+
{
|
|
7358
|
+
type: "error",
|
|
7359
|
+
inputs: [{ name: "account", internalType: "address", type: "address" }],
|
|
7360
|
+
name: "OwnableUnauthorizedAccount"
|
|
7361
|
+
},
|
|
7362
|
+
{ type: "error", inputs: [], name: "PathMustHaveAtLeastOneStep" },
|
|
7363
|
+
{ type: "error", inputs: [], name: "PermittedCallersLengthMismatch" },
|
|
7364
|
+
{ type: "error", inputs: [], name: "RouterMsgSenderInvalid" },
|
|
7365
|
+
{ type: "error", inputs: [], name: "UnknownCallback" },
|
|
7366
|
+
{ type: "error", inputs: [], name: "UnlockedFillNotAllowed" },
|
|
7367
|
+
{ type: "error", inputs: [], name: "WethTransferFailed" },
|
|
7368
|
+
{ type: "error", inputs: [], name: "ZeroMaker" },
|
|
7369
|
+
{ type: "error", inputs: [], name: "ZeroOrderSize" },
|
|
7370
|
+
{ type: "error", inputs: [], name: "ZeroRealizedOrder" }
|
|
7371
|
+
];
|
|
7372
|
+
var devCoinFactoryAddress = {
|
|
7373
|
+
8453: "0xfAf4978830e099F0952eBabC89fEb0B18Ba771D8"
|
|
7374
|
+
};
|
|
7375
|
+
var devCoinFactoryConfig = {
|
|
7376
|
+
address: devCoinFactoryAddress,
|
|
7377
|
+
abi: devCoinFactoryABI
|
|
7378
|
+
};
|
|
7379
|
+
var devZoraLimitOrderBookABI = [
|
|
7380
|
+
{
|
|
7381
|
+
type: "constructor",
|
|
7382
|
+
inputs: [
|
|
7383
|
+
{ name: "poolManager_", internalType: "address", type: "address" },
|
|
7384
|
+
{
|
|
7385
|
+
name: "zoraCoinVersionLookup_",
|
|
7386
|
+
internalType: "address",
|
|
7387
|
+
type: "address"
|
|
7388
|
+
},
|
|
7389
|
+
{ name: "zoraHookRegistry_", internalType: "address", type: "address" },
|
|
7390
|
+
{ name: "owner_", internalType: "address", type: "address" },
|
|
7391
|
+
{ name: "weth_", internalType: "address", type: "address" }
|
|
7392
|
+
],
|
|
7393
|
+
stateMutability: "nonpayable"
|
|
7394
|
+
},
|
|
7395
|
+
{ type: "receive", stateMutability: "payable" },
|
|
7396
|
+
{
|
|
7397
|
+
type: "function",
|
|
7398
|
+
inputs: [],
|
|
7399
|
+
name: "acceptOwnership",
|
|
7400
|
+
outputs: [],
|
|
7401
|
+
stateMutability: "nonpayable"
|
|
7402
|
+
},
|
|
7403
|
+
{
|
|
7404
|
+
type: "function",
|
|
7405
|
+
inputs: [
|
|
7406
|
+
{ name: "maker", internalType: "address", type: "address" },
|
|
7407
|
+
{ name: "coin", internalType: "address", type: "address" }
|
|
7408
|
+
],
|
|
7409
|
+
name: "balanceOf",
|
|
7410
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
7411
|
+
stateMutability: "view"
|
|
7412
|
+
},
|
|
7413
|
+
{
|
|
7414
|
+
type: "function",
|
|
7415
|
+
inputs: [],
|
|
7416
|
+
name: "contractVersion",
|
|
7417
|
+
outputs: [{ name: "", internalType: "string", type: "string" }],
|
|
7418
|
+
stateMutability: "pure"
|
|
7419
|
+
},
|
|
7420
|
+
{
|
|
7421
|
+
type: "function",
|
|
7422
|
+
inputs: [
|
|
7423
|
+
{
|
|
7424
|
+
name: "key",
|
|
7425
|
+
internalType: "struct PoolKey",
|
|
7426
|
+
type: "tuple",
|
|
7427
|
+
components: [
|
|
7428
|
+
{ name: "currency0", internalType: "Currency", type: "address" },
|
|
7429
|
+
{ name: "currency1", internalType: "Currency", type: "address" },
|
|
7430
|
+
{ name: "fee", internalType: "uint24", type: "uint24" },
|
|
7431
|
+
{ name: "tickSpacing", internalType: "int24", type: "int24" },
|
|
7432
|
+
{ name: "hooks", internalType: "contract IHooks", type: "address" }
|
|
7433
|
+
]
|
|
7434
|
+
},
|
|
7435
|
+
{ name: "isCurrency0", internalType: "bool", type: "bool" },
|
|
7436
|
+
{ name: "orderSizes", internalType: "uint256[]", type: "uint256[]" },
|
|
7437
|
+
{ name: "orderTicks", internalType: "int24[]", type: "int24[]" },
|
|
7438
|
+
{ name: "maker", internalType: "address", type: "address" }
|
|
7439
|
+
],
|
|
7440
|
+
name: "create",
|
|
7441
|
+
outputs: [{ name: "", internalType: "bytes32[]", type: "bytes32[]" }],
|
|
7442
|
+
stateMutability: "payable"
|
|
7443
|
+
},
|
|
7444
|
+
{
|
|
7445
|
+
type: "function",
|
|
7446
|
+
inputs: [
|
|
7447
|
+
{
|
|
7448
|
+
name: "key",
|
|
7449
|
+
internalType: "struct PoolKey",
|
|
7450
|
+
type: "tuple",
|
|
7451
|
+
components: [
|
|
7452
|
+
{ name: "currency0", internalType: "Currency", type: "address" },
|
|
7453
|
+
{ name: "currency1", internalType: "Currency", type: "address" },
|
|
7454
|
+
{ name: "fee", internalType: "uint24", type: "uint24" },
|
|
7455
|
+
{ name: "tickSpacing", internalType: "int24", type: "int24" },
|
|
7456
|
+
{ name: "hooks", internalType: "contract IHooks", type: "address" }
|
|
7457
|
+
]
|
|
7458
|
+
},
|
|
7459
|
+
{ name: "isCurrency0", internalType: "bool", type: "bool" },
|
|
7460
|
+
{ name: "startTick", internalType: "int24", type: "int24" },
|
|
7461
|
+
{ name: "endTick", internalType: "int24", type: "int24" },
|
|
7462
|
+
{ name: "maxFillCount", internalType: "uint256", type: "uint256" },
|
|
7463
|
+
{ name: "fillReferral", internalType: "address", type: "address" }
|
|
7464
|
+
],
|
|
7465
|
+
name: "fill",
|
|
7466
|
+
outputs: [],
|
|
7467
|
+
stateMutability: "nonpayable"
|
|
7468
|
+
},
|
|
7469
|
+
{
|
|
7470
|
+
type: "function",
|
|
7471
|
+
inputs: [
|
|
7472
|
+
{
|
|
7473
|
+
name: "batches",
|
|
7474
|
+
internalType: "struct IZoraLimitOrderBook.OrderBatch[]",
|
|
7475
|
+
type: "tuple[]",
|
|
7476
|
+
components: [
|
|
7477
|
+
{
|
|
7478
|
+
name: "key",
|
|
7479
|
+
internalType: "struct PoolKey",
|
|
7480
|
+
type: "tuple",
|
|
7481
|
+
components: [
|
|
7482
|
+
{ name: "currency0", internalType: "Currency", type: "address" },
|
|
7483
|
+
{ name: "currency1", internalType: "Currency", type: "address" },
|
|
7484
|
+
{ name: "fee", internalType: "uint24", type: "uint24" },
|
|
7485
|
+
{ name: "tickSpacing", internalType: "int24", type: "int24" },
|
|
7486
|
+
{
|
|
7487
|
+
name: "hooks",
|
|
7488
|
+
internalType: "contract IHooks",
|
|
7489
|
+
type: "address"
|
|
7490
|
+
}
|
|
7491
|
+
]
|
|
7492
|
+
},
|
|
7493
|
+
{ name: "isCurrency0", internalType: "bool", type: "bool" },
|
|
7494
|
+
{ name: "orderIds", internalType: "bytes32[]", type: "bytes32[]" }
|
|
7495
|
+
]
|
|
7496
|
+
},
|
|
7497
|
+
{ name: "fillReferral", internalType: "address", type: "address" }
|
|
7498
|
+
],
|
|
7499
|
+
name: "fill",
|
|
7500
|
+
outputs: [],
|
|
7501
|
+
stateMutability: "nonpayable"
|
|
7502
|
+
},
|
|
7503
|
+
{
|
|
7504
|
+
type: "function",
|
|
7505
|
+
inputs: [],
|
|
7506
|
+
name: "getMaxFillCount",
|
|
7507
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
7508
|
+
stateMutability: "view"
|
|
7509
|
+
},
|
|
7510
|
+
{
|
|
7511
|
+
type: "function",
|
|
7512
|
+
inputs: [{ name: "caller", internalType: "address", type: "address" }],
|
|
7513
|
+
name: "isPermittedCaller",
|
|
7514
|
+
outputs: [{ name: "", internalType: "bool", type: "bool" }],
|
|
7515
|
+
stateMutability: "view"
|
|
7516
|
+
},
|
|
7517
|
+
{
|
|
7518
|
+
type: "function",
|
|
7519
|
+
inputs: [],
|
|
7520
|
+
name: "owner",
|
|
7521
|
+
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
7522
|
+
stateMutability: "view"
|
|
7523
|
+
},
|
|
7524
|
+
{
|
|
7525
|
+
type: "function",
|
|
7526
|
+
inputs: [],
|
|
7527
|
+
name: "pendingOwner",
|
|
7528
|
+
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
7529
|
+
stateMutability: "view"
|
|
7530
|
+
},
|
|
7531
|
+
{
|
|
7532
|
+
type: "function",
|
|
7533
|
+
inputs: [],
|
|
7534
|
+
name: "poolManager",
|
|
7535
|
+
outputs: [
|
|
7536
|
+
{ name: "", internalType: "contract IPoolManager", type: "address" }
|
|
7537
|
+
],
|
|
7538
|
+
stateMutability: "view"
|
|
7539
|
+
},
|
|
7540
|
+
{
|
|
7541
|
+
type: "function",
|
|
7542
|
+
inputs: [],
|
|
7543
|
+
name: "renounceOwnership",
|
|
7544
|
+
outputs: [],
|
|
7545
|
+
stateMutability: "nonpayable"
|
|
7546
|
+
},
|
|
7547
|
+
{
|
|
7548
|
+
type: "function",
|
|
7549
|
+
inputs: [
|
|
7550
|
+
{ name: "maxFillCount", internalType: "uint256", type: "uint256" }
|
|
7551
|
+
],
|
|
7552
|
+
name: "setMaxFillCount",
|
|
7553
|
+
outputs: [],
|
|
7554
|
+
stateMutability: "nonpayable"
|
|
7555
|
+
},
|
|
7556
|
+
{
|
|
7557
|
+
type: "function",
|
|
7558
|
+
inputs: [
|
|
7559
|
+
{ name: "callers", internalType: "address[]", type: "address[]" },
|
|
7560
|
+
{ name: "permitted", internalType: "bool[]", type: "bool[]" }
|
|
7561
|
+
],
|
|
7562
|
+
name: "setPermittedCallers",
|
|
7563
|
+
outputs: [],
|
|
7564
|
+
stateMutability: "nonpayable"
|
|
7565
|
+
},
|
|
7566
|
+
{
|
|
7567
|
+
type: "function",
|
|
7568
|
+
inputs: [{ name: "newOwner", internalType: "address", type: "address" }],
|
|
7569
|
+
name: "transferOwnership",
|
|
7570
|
+
outputs: [],
|
|
7571
|
+
stateMutability: "nonpayable"
|
|
7572
|
+
},
|
|
7573
|
+
{
|
|
7574
|
+
type: "function",
|
|
7575
|
+
inputs: [{ name: "data", internalType: "bytes", type: "bytes" }],
|
|
7576
|
+
name: "unlockCallback",
|
|
7577
|
+
outputs: [{ name: "", internalType: "bytes", type: "bytes" }],
|
|
7578
|
+
stateMutability: "nonpayable"
|
|
7579
|
+
},
|
|
7580
|
+
{
|
|
7581
|
+
type: "function",
|
|
7582
|
+
inputs: [],
|
|
7583
|
+
name: "weth",
|
|
7584
|
+
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
7585
|
+
stateMutability: "view"
|
|
7586
|
+
},
|
|
7587
|
+
{
|
|
7588
|
+
type: "function",
|
|
7589
|
+
inputs: [
|
|
7590
|
+
{ name: "orderIds", internalType: "bytes32[]", type: "bytes32[]" },
|
|
7591
|
+
{ name: "coin", internalType: "address", type: "address" },
|
|
7592
|
+
{ name: "minAmountOut", internalType: "uint256", type: "uint256" },
|
|
7593
|
+
{ name: "recipient", internalType: "address", type: "address" }
|
|
7594
|
+
],
|
|
7595
|
+
name: "withdraw",
|
|
7596
|
+
outputs: [],
|
|
7597
|
+
stateMutability: "nonpayable"
|
|
7598
|
+
},
|
|
7599
|
+
{
|
|
7600
|
+
type: "function",
|
|
7601
|
+
inputs: [],
|
|
7602
|
+
name: "zoraCoinVersionLookup",
|
|
7603
|
+
outputs: [
|
|
7604
|
+
{
|
|
7605
|
+
name: "",
|
|
7606
|
+
internalType: "contract IDeployedCoinVersionLookup",
|
|
7607
|
+
type: "address"
|
|
7608
|
+
}
|
|
7609
|
+
],
|
|
7610
|
+
stateMutability: "view"
|
|
7611
|
+
},
|
|
7612
|
+
{
|
|
7613
|
+
type: "function",
|
|
7614
|
+
inputs: [],
|
|
7615
|
+
name: "zoraHookRegistry",
|
|
7616
|
+
outputs: [
|
|
7617
|
+
{ name: "", internalType: "contract IZoraHookRegistry", type: "address" }
|
|
7618
|
+
],
|
|
7619
|
+
stateMutability: "view"
|
|
7620
|
+
},
|
|
7621
|
+
{
|
|
7622
|
+
type: "event",
|
|
7623
|
+
anonymous: false,
|
|
7624
|
+
inputs: [
|
|
7625
|
+
{
|
|
7626
|
+
name: "maker",
|
|
7627
|
+
internalType: "address",
|
|
7628
|
+
type: "address",
|
|
7629
|
+
indexed: true
|
|
7630
|
+
},
|
|
7631
|
+
{ name: "coin", internalType: "address", type: "address", indexed: true },
|
|
7632
|
+
{
|
|
7633
|
+
name: "poolKeyHash",
|
|
7634
|
+
internalType: "bytes32",
|
|
7635
|
+
type: "bytes32",
|
|
7636
|
+
indexed: false
|
|
7637
|
+
},
|
|
7638
|
+
{
|
|
7639
|
+
name: "isCurrency0",
|
|
7640
|
+
internalType: "bool",
|
|
7641
|
+
type: "bool",
|
|
7642
|
+
indexed: false
|
|
7643
|
+
},
|
|
7644
|
+
{
|
|
7645
|
+
name: "orderTick",
|
|
7646
|
+
internalType: "int24",
|
|
7647
|
+
type: "int24",
|
|
7648
|
+
indexed: false
|
|
7649
|
+
},
|
|
7650
|
+
{
|
|
7651
|
+
name: "currentTick",
|
|
7652
|
+
internalType: "int24",
|
|
7653
|
+
type: "int24",
|
|
7654
|
+
indexed: false
|
|
7655
|
+
},
|
|
7656
|
+
{
|
|
7657
|
+
name: "orderSize",
|
|
7658
|
+
internalType: "uint128",
|
|
7659
|
+
type: "uint128",
|
|
7660
|
+
indexed: false
|
|
7661
|
+
},
|
|
7662
|
+
{
|
|
7663
|
+
name: "orderId",
|
|
7664
|
+
internalType: "bytes32",
|
|
7665
|
+
type: "bytes32",
|
|
7666
|
+
indexed: false
|
|
7667
|
+
}
|
|
7668
|
+
],
|
|
7669
|
+
name: "LimitOrderCreated"
|
|
7670
|
+
},
|
|
7671
|
+
{
|
|
7672
|
+
type: "event",
|
|
7673
|
+
anonymous: false,
|
|
7674
|
+
inputs: [
|
|
7675
|
+
{
|
|
7676
|
+
name: "maker",
|
|
7677
|
+
internalType: "address",
|
|
7678
|
+
type: "address",
|
|
7679
|
+
indexed: true
|
|
7680
|
+
},
|
|
7681
|
+
{
|
|
7682
|
+
name: "coinIn",
|
|
7683
|
+
internalType: "address",
|
|
7684
|
+
type: "address",
|
|
7685
|
+
indexed: true
|
|
7686
|
+
},
|
|
7687
|
+
{
|
|
7688
|
+
name: "coinOut",
|
|
7689
|
+
internalType: "address",
|
|
7690
|
+
type: "address",
|
|
7691
|
+
indexed: false
|
|
7692
|
+
},
|
|
7693
|
+
{
|
|
7694
|
+
name: "amountIn",
|
|
7695
|
+
internalType: "uint128",
|
|
7696
|
+
type: "uint128",
|
|
7697
|
+
indexed: false
|
|
7698
|
+
},
|
|
7699
|
+
{
|
|
7700
|
+
name: "amountOut",
|
|
7701
|
+
internalType: "uint128",
|
|
7702
|
+
type: "uint128",
|
|
7703
|
+
indexed: false
|
|
7704
|
+
},
|
|
7705
|
+
{
|
|
7706
|
+
name: "fillReferral",
|
|
7707
|
+
internalType: "address",
|
|
7708
|
+
type: "address",
|
|
7709
|
+
indexed: false
|
|
7710
|
+
},
|
|
7711
|
+
{
|
|
7712
|
+
name: "fillReferralAmount",
|
|
7713
|
+
internalType: "uint128",
|
|
7714
|
+
type: "uint128",
|
|
7715
|
+
indexed: false
|
|
7716
|
+
},
|
|
7717
|
+
{
|
|
7718
|
+
name: "poolKeyHash",
|
|
7719
|
+
internalType: "bytes32",
|
|
7720
|
+
type: "bytes32",
|
|
7721
|
+
indexed: false
|
|
7722
|
+
},
|
|
7723
|
+
{ name: "tick", internalType: "int24", type: "int24", indexed: false },
|
|
7724
|
+
{
|
|
7725
|
+
name: "orderId",
|
|
7726
|
+
internalType: "bytes32",
|
|
7727
|
+
type: "bytes32",
|
|
7728
|
+
indexed: false
|
|
7729
|
+
}
|
|
7730
|
+
],
|
|
7731
|
+
name: "LimitOrderFilled"
|
|
7732
|
+
},
|
|
7733
|
+
{
|
|
7734
|
+
type: "event",
|
|
7735
|
+
anonymous: false,
|
|
7736
|
+
inputs: [
|
|
7737
|
+
{
|
|
7738
|
+
name: "maker",
|
|
7739
|
+
internalType: "address",
|
|
7740
|
+
type: "address",
|
|
7741
|
+
indexed: true
|
|
7742
|
+
},
|
|
7743
|
+
{ name: "coin", internalType: "address", type: "address", indexed: true },
|
|
7744
|
+
{
|
|
7745
|
+
name: "poolKeyHash",
|
|
7746
|
+
internalType: "bytes32",
|
|
7747
|
+
type: "bytes32",
|
|
7748
|
+
indexed: false
|
|
7749
|
+
},
|
|
7750
|
+
{
|
|
7751
|
+
name: "isCurrency0",
|
|
7752
|
+
internalType: "bool",
|
|
7753
|
+
type: "bool",
|
|
7754
|
+
indexed: false
|
|
7755
|
+
},
|
|
7756
|
+
{ name: "tick", internalType: "int24", type: "int24", indexed: false },
|
|
7757
|
+
{
|
|
7758
|
+
name: "orderSize",
|
|
7759
|
+
internalType: "uint128",
|
|
7760
|
+
type: "uint128",
|
|
7761
|
+
indexed: false
|
|
7762
|
+
},
|
|
7763
|
+
{
|
|
7764
|
+
name: "orderId",
|
|
7765
|
+
internalType: "bytes32",
|
|
7766
|
+
type: "bytes32",
|
|
7767
|
+
indexed: false
|
|
7768
|
+
},
|
|
7769
|
+
{
|
|
7770
|
+
name: "isCancelled",
|
|
7771
|
+
internalType: "bool",
|
|
7772
|
+
type: "bool",
|
|
7773
|
+
indexed: false
|
|
7774
|
+
}
|
|
7775
|
+
],
|
|
7776
|
+
name: "LimitOrderUpdated"
|
|
7777
|
+
},
|
|
7778
|
+
{
|
|
7779
|
+
type: "event",
|
|
7780
|
+
anonymous: false,
|
|
7781
|
+
inputs: [
|
|
7782
|
+
{
|
|
7783
|
+
name: "maker",
|
|
7784
|
+
internalType: "address",
|
|
7785
|
+
type: "address",
|
|
7786
|
+
indexed: true
|
|
7787
|
+
},
|
|
7788
|
+
{ name: "coin", internalType: "address", type: "address", indexed: true },
|
|
7789
|
+
{
|
|
7790
|
+
name: "newBalance",
|
|
7791
|
+
internalType: "uint256",
|
|
7792
|
+
type: "uint256",
|
|
7793
|
+
indexed: false
|
|
7794
|
+
}
|
|
7795
|
+
],
|
|
7796
|
+
name: "MakerBalanceUpdated"
|
|
7797
|
+
},
|
|
7798
|
+
{
|
|
7799
|
+
type: "event",
|
|
7800
|
+
anonymous: false,
|
|
7801
|
+
inputs: [
|
|
7802
|
+
{
|
|
7803
|
+
name: "previousOwner",
|
|
7804
|
+
internalType: "address",
|
|
7805
|
+
type: "address",
|
|
7806
|
+
indexed: true
|
|
7807
|
+
},
|
|
7808
|
+
{
|
|
7809
|
+
name: "newOwner",
|
|
7810
|
+
internalType: "address",
|
|
7811
|
+
type: "address",
|
|
7812
|
+
indexed: true
|
|
7813
|
+
}
|
|
7814
|
+
],
|
|
7815
|
+
name: "OwnershipTransferStarted"
|
|
7816
|
+
},
|
|
7817
|
+
{
|
|
7818
|
+
type: "event",
|
|
7819
|
+
anonymous: false,
|
|
7820
|
+
inputs: [
|
|
7821
|
+
{
|
|
7822
|
+
name: "previousOwner",
|
|
7823
|
+
internalType: "address",
|
|
7824
|
+
type: "address",
|
|
7825
|
+
indexed: true
|
|
7826
|
+
},
|
|
7827
|
+
{
|
|
7828
|
+
name: "newOwner",
|
|
7829
|
+
internalType: "address",
|
|
7830
|
+
type: "address",
|
|
7831
|
+
indexed: true
|
|
7832
|
+
}
|
|
7833
|
+
],
|
|
7834
|
+
name: "OwnershipTransferred"
|
|
7835
|
+
},
|
|
7836
|
+
{
|
|
7837
|
+
type: "event",
|
|
7838
|
+
anonymous: false,
|
|
7839
|
+
inputs: [
|
|
7840
|
+
{
|
|
7841
|
+
name: "caller",
|
|
7842
|
+
internalType: "address",
|
|
7843
|
+
type: "address",
|
|
7844
|
+
indexed: true
|
|
7845
|
+
},
|
|
7846
|
+
{ name: "permitted", internalType: "bool", type: "bool", indexed: false }
|
|
7847
|
+
],
|
|
7848
|
+
name: "PermittedCallerUpdated"
|
|
7849
|
+
},
|
|
7850
|
+
{ type: "error", inputs: [], name: "AddressZero" },
|
|
7851
|
+
{ type: "error", inputs: [], name: "ArrayLengthMismatch" },
|
|
7852
|
+
{ type: "error", inputs: [], name: "CallerNotPermitted" },
|
|
7853
|
+
{
|
|
7854
|
+
type: "error",
|
|
7855
|
+
inputs: [
|
|
7856
|
+
{ name: "orderId", internalType: "bytes32", type: "bytes32" },
|
|
7857
|
+
{ name: "expectedCoin", internalType: "address", type: "address" },
|
|
7858
|
+
{ name: "actualCoin", internalType: "address", type: "address" }
|
|
7859
|
+
],
|
|
7860
|
+
name: "CoinMismatch"
|
|
7861
|
+
},
|
|
7862
|
+
{ type: "error", inputs: [], name: "InsufficientForwardedFunds" },
|
|
7863
|
+
{ type: "error", inputs: [], name: "InsufficientTransferFunds" },
|
|
7864
|
+
{
|
|
7865
|
+
type: "error",
|
|
7866
|
+
inputs: [
|
|
7867
|
+
{ name: "startTick", internalType: "int24", type: "int24" },
|
|
7868
|
+
{ name: "endTick", internalType: "int24", type: "int24" },
|
|
7869
|
+
{ name: "isCurrency0", internalType: "bool", type: "bool" }
|
|
7870
|
+
],
|
|
7871
|
+
name: "InvalidFillWindow"
|
|
7872
|
+
},
|
|
7873
|
+
{ type: "error", inputs: [], name: "InvalidOrder" },
|
|
7874
|
+
{ type: "error", inputs: [], name: "InvalidPoolKey" },
|
|
7875
|
+
{ type: "error", inputs: [], name: "MaxFillCountCannotBeZero" },
|
|
7876
|
+
{
|
|
7877
|
+
type: "error",
|
|
7878
|
+
inputs: [
|
|
7879
|
+
{ name: "withdrawn", internalType: "uint256", type: "uint256" },
|
|
7880
|
+
{ name: "minAmountOut", internalType: "uint256", type: "uint256" }
|
|
7881
|
+
],
|
|
7882
|
+
name: "MinAmountNotReached"
|
|
7883
|
+
},
|
|
7884
|
+
{ type: "error", inputs: [], name: "NativeValueMismatch" },
|
|
7885
|
+
{ type: "error", inputs: [], name: "NotPoolManager" },
|
|
7886
|
+
{ type: "error", inputs: [], name: "OnlyZoraHook" },
|
|
7887
|
+
{ type: "error", inputs: [], name: "OrderClosed" },
|
|
7888
|
+
{ type: "error", inputs: [], name: "OrderFillable" },
|
|
7889
|
+
{ type: "error", inputs: [], name: "OrderNotMaker" },
|
|
7890
|
+
{
|
|
7891
|
+
type: "error",
|
|
7892
|
+
inputs: [{ name: "owner", internalType: "address", type: "address" }],
|
|
7893
|
+
name: "OwnableInvalidOwner"
|
|
7894
|
+
},
|
|
7895
|
+
{
|
|
7896
|
+
type: "error",
|
|
7897
|
+
inputs: [{ name: "account", internalType: "address", type: "address" }],
|
|
7898
|
+
name: "OwnableUnauthorizedAccount"
|
|
7899
|
+
},
|
|
7900
|
+
{ type: "error", inputs: [], name: "PathMustHaveAtLeastOneStep" },
|
|
7901
|
+
{ type: "error", inputs: [], name: "PermittedCallersLengthMismatch" },
|
|
7902
|
+
{ type: "error", inputs: [], name: "RouterMsgSenderInvalid" },
|
|
7903
|
+
{ type: "error", inputs: [], name: "UnknownCallback" },
|
|
7904
|
+
{ type: "error", inputs: [], name: "UnlockedFillNotAllowed" },
|
|
7905
|
+
{ type: "error", inputs: [], name: "WethTransferFailed" },
|
|
7906
|
+
{ type: "error", inputs: [], name: "ZeroMaker" },
|
|
7907
|
+
{ type: "error", inputs: [], name: "ZeroOrderSize" },
|
|
7908
|
+
{ type: "error", inputs: [], name: "ZeroRealizedOrder" },
|
|
7909
|
+
{ type: "error", inputs: [], name: "AddressZero" },
|
|
7910
|
+
{ type: "error", inputs: [], name: "AlreadyOwner" },
|
|
7911
|
+
{ type: "error", inputs: [], name: "CannotMintZeroLiquidity" },
|
|
7912
|
+
{
|
|
7913
|
+
type: "error",
|
|
7914
|
+
inputs: [],
|
|
7915
|
+
name: "DopplerPoolMustHaveMoreThan2DiscoveryPositions"
|
|
7916
|
+
},
|
|
7917
|
+
{ type: "error", inputs: [], name: "ECDSAInvalidSignature" },
|
|
7918
|
+
{
|
|
7919
|
+
type: "error",
|
|
7920
|
+
inputs: [{ name: "length", internalType: "uint256", type: "uint256" }],
|
|
7921
|
+
name: "ECDSAInvalidSignatureLength"
|
|
7922
|
+
},
|
|
7923
|
+
{
|
|
7924
|
+
type: "error",
|
|
7925
|
+
inputs: [{ name: "s", internalType: "bytes32", type: "bytes32" }],
|
|
7926
|
+
name: "ECDSAInvalidSignatureS"
|
|
7927
|
+
},
|
|
7928
|
+
{
|
|
7929
|
+
type: "error",
|
|
7930
|
+
inputs: [
|
|
7931
|
+
{ name: "spender", internalType: "address", type: "address" },
|
|
7932
|
+
{ name: "allowance", internalType: "uint256", type: "uint256" },
|
|
7933
|
+
{ name: "needed", internalType: "uint256", type: "uint256" }
|
|
7934
|
+
],
|
|
7935
|
+
name: "ERC20InsufficientAllowance"
|
|
7936
|
+
},
|
|
7937
|
+
{
|
|
7938
|
+
type: "error",
|
|
7939
|
+
inputs: [
|
|
7940
|
+
{ name: "sender", internalType: "address", type: "address" },
|
|
7941
|
+
{ name: "balance", internalType: "uint256", type: "uint256" },
|
|
7942
|
+
{ name: "needed", internalType: "uint256", type: "uint256" }
|
|
7943
|
+
],
|
|
7944
|
+
name: "ERC20InsufficientBalance"
|
|
7945
|
+
},
|
|
7946
|
+
{
|
|
7947
|
+
type: "error",
|
|
7948
|
+
inputs: [{ name: "approver", internalType: "address", type: "address" }],
|
|
7949
|
+
name: "ERC20InvalidApprover"
|
|
7950
|
+
},
|
|
7951
|
+
{
|
|
7952
|
+
type: "error",
|
|
7953
|
+
inputs: [{ name: "receiver", internalType: "address", type: "address" }],
|
|
7954
|
+
name: "ERC20InvalidReceiver"
|
|
7955
|
+
},
|
|
7956
|
+
{
|
|
7957
|
+
type: "error",
|
|
7958
|
+
inputs: [{ name: "sender", internalType: "address", type: "address" }],
|
|
7959
|
+
name: "ERC20InvalidSender"
|
|
7960
|
+
},
|
|
7961
|
+
{
|
|
7962
|
+
type: "error",
|
|
7963
|
+
inputs: [{ name: "spender", internalType: "address", type: "address" }],
|
|
7964
|
+
name: "ERC20InvalidSpender"
|
|
7965
|
+
},
|
|
7966
|
+
{ type: "error", inputs: [], name: "ERC20TransferAmountMismatch" },
|
|
7967
|
+
{
|
|
7968
|
+
type: "error",
|
|
7969
|
+
inputs: [{ name: "deadline", internalType: "uint256", type: "uint256" }],
|
|
7970
|
+
name: "ERC2612ExpiredSignature"
|
|
7971
|
+
},
|
|
7972
|
+
{
|
|
7973
|
+
type: "error",
|
|
7974
|
+
inputs: [
|
|
7975
|
+
{ name: "signer", internalType: "address", type: "address" },
|
|
7976
|
+
{ name: "owner", internalType: "address", type: "address" }
|
|
7977
|
+
],
|
|
7978
|
+
name: "ERC2612InvalidSigner"
|
|
7979
|
+
},
|
|
7980
|
+
{ type: "error", inputs: [], name: "EthAmountMismatch" },
|
|
7981
|
+
{ type: "error", inputs: [], name: "EthAmountTooSmall" },
|
|
7982
|
+
{ type: "error", inputs: [], name: "EthTransferFailed" },
|
|
7983
|
+
{ type: "error", inputs: [], name: "EthTransferInvalid" },
|
|
7984
|
+
{ type: "error", inputs: [], name: "InitialOrderSizeTooLarge" },
|
|
7985
|
+
{ type: "error", inputs: [], name: "InsufficientFunds" },
|
|
7986
|
+
{ type: "error", inputs: [], name: "InsufficientLiquidity" },
|
|
7987
|
+
{
|
|
7988
|
+
type: "error",
|
|
7989
|
+
inputs: [
|
|
7990
|
+
{ name: "account", internalType: "address", type: "address" },
|
|
7991
|
+
{ name: "currentNonce", internalType: "uint256", type: "uint256" }
|
|
7992
|
+
],
|
|
7993
|
+
name: "InvalidAccountNonce"
|
|
7994
|
+
},
|
|
7995
|
+
{ type: "error", inputs: [], name: "InvalidCurrencyLowerTick" },
|
|
7996
|
+
{ type: "error", inputs: [], name: "InvalidInitialization" },
|
|
7997
|
+
{ type: "error", inputs: [], name: "InvalidMarketType" },
|
|
7998
|
+
{ type: "error", inputs: [], name: "InvalidPoolVersion" },
|
|
7999
|
+
{
|
|
8000
|
+
type: "error",
|
|
8001
|
+
inputs: [
|
|
8002
|
+
{ name: "tickLower", internalType: "int24", type: "int24" },
|
|
8003
|
+
{ name: "tickUpper", internalType: "int24", type: "int24" }
|
|
8004
|
+
],
|
|
8005
|
+
name: "InvalidTickRangeMisordered"
|
|
8006
|
+
},
|
|
8007
|
+
{ type: "error", inputs: [], name: "InvalidWethLowerTick" },
|
|
8008
|
+
{ type: "error", inputs: [], name: "LegacyPoolMustHaveOneDiscoveryPosition" },
|
|
8009
|
+
{ type: "error", inputs: [], name: "MarketAlreadyGraduated" },
|
|
8010
|
+
{ type: "error", inputs: [], name: "MarketNotGraduated" },
|
|
8011
|
+
{
|
|
8012
|
+
type: "error",
|
|
8013
|
+
inputs: [
|
|
8014
|
+
{ name: "value", internalType: "uint256", type: "uint256" },
|
|
8015
|
+
{ name: "limit", internalType: "uint256", type: "uint256" }
|
|
8016
|
+
],
|
|
8017
|
+
name: "MaxShareToBeSoldExceeded"
|
|
8018
|
+
},
|
|
8019
|
+
{ type: "error", inputs: [], name: "NameIsRequired" },
|
|
8020
|
+
{ type: "error", inputs: [], name: "NotInitializing" },
|
|
8021
|
+
{ type: "error", inputs: [], name: "NotOwner" },
|
|
8022
|
+
{ type: "error", inputs: [], name: "NumDiscoveryPositionsOutOfRange" },
|
|
8023
|
+
{ type: "error", inputs: [], name: "OneOwnerRequired" },
|
|
8024
|
+
{ type: "error", inputs: [], name: "OnlyOwner" },
|
|
8025
|
+
{
|
|
8026
|
+
type: "error",
|
|
8027
|
+
inputs: [
|
|
8028
|
+
{ name: "sender", internalType: "address", type: "address" },
|
|
8029
|
+
{ name: "pool", internalType: "address", type: "address" }
|
|
8030
|
+
],
|
|
8031
|
+
name: "OnlyPool"
|
|
8032
|
+
},
|
|
8033
|
+
{ type: "error", inputs: [], name: "OnlyWeth" },
|
|
8034
|
+
{ type: "error", inputs: [], name: "OwnerCannotBeAddressZero" },
|
|
8035
|
+
{ type: "error", inputs: [], name: "SlippageBoundsExceeded" },
|
|
8036
|
+
{ type: "error", inputs: [], name: "UseRevokeOwnershipToRemoveSelf" },
|
|
8037
|
+
{ type: "error", inputs: [], name: "CoinVersionLookupCannotBeZeroAddress" },
|
|
8038
|
+
{ type: "error", inputs: [], name: "EthTransferFailed" },
|
|
8039
|
+
{ type: "error", inputs: [], name: "HookNotImplemented" },
|
|
8040
|
+
{
|
|
8041
|
+
type: "error",
|
|
8042
|
+
inputs: [{ name: "callbackId", internalType: "uint8", type: "uint8" }],
|
|
8043
|
+
name: "InvalidCallbackId"
|
|
8044
|
+
},
|
|
8045
|
+
{
|
|
8046
|
+
type: "error",
|
|
8047
|
+
inputs: [{ name: "newHook", internalType: "address", type: "address" }],
|
|
8048
|
+
name: "InvalidNewHook"
|
|
8049
|
+
},
|
|
8050
|
+
{
|
|
8051
|
+
type: "error",
|
|
8052
|
+
inputs: [
|
|
8053
|
+
{
|
|
8054
|
+
name: "key",
|
|
8055
|
+
internalType: "struct PoolKey",
|
|
8056
|
+
type: "tuple",
|
|
8057
|
+
components: [
|
|
8058
|
+
{ name: "currency0", internalType: "Currency", type: "address" },
|
|
8059
|
+
{ name: "currency1", internalType: "Currency", type: "address" },
|
|
8060
|
+
{ name: "fee", internalType: "uint24", type: "uint24" },
|
|
8061
|
+
{ name: "tickSpacing", internalType: "int24", type: "int24" },
|
|
8062
|
+
{ name: "hooks", internalType: "contract IHooks", type: "address" }
|
|
8063
|
+
]
|
|
8064
|
+
}
|
|
8065
|
+
],
|
|
8066
|
+
name: "NoCoinForHook"
|
|
8067
|
+
},
|
|
8068
|
+
{
|
|
8069
|
+
type: "error",
|
|
8070
|
+
inputs: [{ name: "coin", internalType: "address", type: "address" }],
|
|
8071
|
+
name: "NotACoin"
|
|
8072
|
+
},
|
|
8073
|
+
{ type: "error", inputs: [], name: "NotPoolManager" },
|
|
8074
|
+
{
|
|
8075
|
+
type: "error",
|
|
8076
|
+
inputs: [
|
|
8077
|
+
{ name: "caller", internalType: "address", type: "address" },
|
|
8078
|
+
{ name: "expectedCoin", internalType: "address", type: "address" }
|
|
8079
|
+
],
|
|
8080
|
+
name: "OnlyCoin"
|
|
8081
|
+
},
|
|
8082
|
+
{ type: "error", inputs: [], name: "PathMustHaveAtLeastOneStep" },
|
|
8083
|
+
{ type: "error", inputs: [], name: "SafeCastOverflow" },
|
|
8084
|
+
{
|
|
8085
|
+
type: "error",
|
|
8086
|
+
inputs: [{ name: "token", internalType: "address", type: "address" }],
|
|
8087
|
+
name: "SafeERC20FailedOperation"
|
|
8088
|
+
},
|
|
8089
|
+
{
|
|
8090
|
+
type: "error",
|
|
8091
|
+
inputs: [],
|
|
8092
|
+
name: "TrustedMsgSenderLookupCannotBeZeroAddress"
|
|
8093
|
+
},
|
|
8094
|
+
{ type: "error", inputs: [], name: "UpgradeGateCannotBeZeroAddress" },
|
|
8095
|
+
{
|
|
8096
|
+
type: "error",
|
|
8097
|
+
inputs: [
|
|
8098
|
+
{ name: "oldHook", internalType: "address", type: "address" },
|
|
8099
|
+
{ name: "newHook", internalType: "address", type: "address" }
|
|
8100
|
+
],
|
|
8101
|
+
name: "UpgradePathNotRegistered"
|
|
8102
|
+
},
|
|
8103
|
+
{ type: "error", inputs: [], name: "ZoraHookRegistryCannotBeZeroAddress" },
|
|
8104
|
+
{ type: "error", inputs: [], name: "ZoraLimitOrderBookCannotBeZeroAddress" }
|
|
8105
|
+
];
|
|
8106
|
+
var devZoraLimitOrderBookAddress = {
|
|
8107
|
+
8453: "0xCe2C8032F85aB6a7148138F8a1235d2b17D53Dc5"
|
|
8108
|
+
};
|
|
8109
|
+
var devZoraLimitOrderBookConfig = {
|
|
8110
|
+
address: devZoraLimitOrderBookAddress,
|
|
8111
|
+
abi: devZoraLimitOrderBookABI
|
|
8112
|
+
};
|
|
8113
|
+
var devZoraRouterABI = [
|
|
8114
|
+
{
|
|
8115
|
+
type: "constructor",
|
|
8116
|
+
inputs: [
|
|
8117
|
+
{
|
|
8118
|
+
name: "poolManager_",
|
|
8119
|
+
internalType: "contract IPoolManager",
|
|
8120
|
+
type: "address"
|
|
8121
|
+
},
|
|
8122
|
+
{
|
|
8123
|
+
name: "zoraLimitOrderBook_",
|
|
8124
|
+
internalType: "contract IZoraLimitOrderBook",
|
|
8125
|
+
type: "address"
|
|
8126
|
+
},
|
|
8127
|
+
{
|
|
8128
|
+
name: "swapRouter_",
|
|
8129
|
+
internalType: "contract ISwapRouter",
|
|
8130
|
+
type: "address"
|
|
8131
|
+
},
|
|
8132
|
+
{ name: "permit2_", internalType: "address", type: "address" },
|
|
8133
|
+
{ name: "owner_", internalType: "address", type: "address" }
|
|
8134
|
+
],
|
|
8135
|
+
stateMutability: "nonpayable"
|
|
8136
|
+
},
|
|
8137
|
+
{ type: "receive", stateMutability: "payable" },
|
|
8138
|
+
{
|
|
8139
|
+
type: "function",
|
|
8140
|
+
inputs: [],
|
|
8141
|
+
name: "acceptOwnership",
|
|
8142
|
+
outputs: [],
|
|
8143
|
+
stateMutability: "nonpayable"
|
|
8144
|
+
},
|
|
8145
|
+
{
|
|
8146
|
+
type: "function",
|
|
8147
|
+
inputs: [],
|
|
8148
|
+
name: "contractVersion",
|
|
8149
|
+
outputs: [{ name: "", internalType: "string", type: "string" }],
|
|
8150
|
+
stateMutability: "pure"
|
|
8151
|
+
},
|
|
8152
|
+
{
|
|
8153
|
+
type: "function",
|
|
8154
|
+
inputs: [],
|
|
8155
|
+
name: "getLimitOrderConfig",
|
|
8156
|
+
outputs: [
|
|
8157
|
+
{
|
|
8158
|
+
name: "",
|
|
8159
|
+
internalType: "struct LimitOrderConfig",
|
|
8160
|
+
type: "tuple",
|
|
8161
|
+
components: [
|
|
8162
|
+
{ name: "multiples", internalType: "uint256[]", type: "uint256[]" },
|
|
8163
|
+
{ name: "percentages", internalType: "uint256[]", type: "uint256[]" }
|
|
8164
|
+
]
|
|
8165
|
+
}
|
|
8166
|
+
],
|
|
8167
|
+
stateMutability: "view"
|
|
8168
|
+
},
|
|
8169
|
+
{
|
|
8170
|
+
type: "function",
|
|
8171
|
+
inputs: [],
|
|
8172
|
+
name: "msgSender",
|
|
8173
|
+
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
8174
|
+
stateMutability: "view"
|
|
8175
|
+
},
|
|
8176
|
+
{
|
|
8177
|
+
type: "function",
|
|
8178
|
+
inputs: [],
|
|
8179
|
+
name: "owner",
|
|
8180
|
+
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
8181
|
+
stateMutability: "view"
|
|
8182
|
+
},
|
|
8183
|
+
{
|
|
8184
|
+
type: "function",
|
|
8185
|
+
inputs: [],
|
|
8186
|
+
name: "pendingOwner",
|
|
8187
|
+
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
8188
|
+
stateMutability: "view"
|
|
8189
|
+
},
|
|
8190
|
+
{
|
|
8191
|
+
type: "function",
|
|
8192
|
+
inputs: [],
|
|
8193
|
+
name: "poolManager",
|
|
8194
|
+
outputs: [
|
|
8195
|
+
{ name: "", internalType: "contract IPoolManager", type: "address" }
|
|
8196
|
+
],
|
|
8197
|
+
stateMutability: "view"
|
|
8198
|
+
},
|
|
8199
|
+
{
|
|
8200
|
+
type: "function",
|
|
8201
|
+
inputs: [],
|
|
8202
|
+
name: "renounceOwnership",
|
|
8203
|
+
outputs: [],
|
|
8204
|
+
stateMutability: "nonpayable"
|
|
8205
|
+
},
|
|
8206
|
+
{
|
|
8207
|
+
type: "function",
|
|
8208
|
+
inputs: [
|
|
8209
|
+
{
|
|
8210
|
+
name: "config",
|
|
8211
|
+
internalType: "struct LimitOrderConfig",
|
|
8212
|
+
type: "tuple",
|
|
8213
|
+
components: [
|
|
8214
|
+
{ name: "multiples", internalType: "uint256[]", type: "uint256[]" },
|
|
8215
|
+
{ name: "percentages", internalType: "uint256[]", type: "uint256[]" }
|
|
8216
|
+
]
|
|
8217
|
+
}
|
|
8218
|
+
],
|
|
8219
|
+
name: "setLimitOrderConfig",
|
|
8220
|
+
outputs: [],
|
|
8221
|
+
stateMutability: "nonpayable"
|
|
8222
|
+
},
|
|
8223
|
+
{
|
|
8224
|
+
type: "function",
|
|
8225
|
+
inputs: [],
|
|
8226
|
+
name: "swapRouter",
|
|
8227
|
+
outputs: [
|
|
8228
|
+
{ name: "", internalType: "contract ISwapRouter", type: "address" }
|
|
8229
|
+
],
|
|
8230
|
+
stateMutability: "view"
|
|
8231
|
+
},
|
|
8232
|
+
{
|
|
8233
|
+
type: "function",
|
|
8234
|
+
inputs: [
|
|
8235
|
+
{
|
|
8236
|
+
name: "params",
|
|
8237
|
+
internalType: "struct SwapWithLimitOrders.SwapWithLimitOrdersParams",
|
|
8238
|
+
type: "tuple",
|
|
8239
|
+
components: [
|
|
8240
|
+
{ name: "recipient", internalType: "address", type: "address" },
|
|
8241
|
+
{
|
|
8242
|
+
name: "limitOrderConfig",
|
|
8243
|
+
internalType: "struct LimitOrderConfig",
|
|
8244
|
+
type: "tuple",
|
|
8245
|
+
components: [
|
|
8246
|
+
{
|
|
8247
|
+
name: "multiples",
|
|
8248
|
+
internalType: "uint256[]",
|
|
8249
|
+
type: "uint256[]"
|
|
8250
|
+
},
|
|
8251
|
+
{
|
|
8252
|
+
name: "percentages",
|
|
8253
|
+
internalType: "uint256[]",
|
|
8254
|
+
type: "uint256[]"
|
|
8255
|
+
}
|
|
8256
|
+
]
|
|
8257
|
+
},
|
|
8258
|
+
{ name: "inputCurrency", internalType: "address", type: "address" },
|
|
8259
|
+
{ name: "inputAmount", internalType: "uint256", type: "uint256" },
|
|
8260
|
+
{ name: "v3Route", internalType: "bytes", type: "bytes" },
|
|
8261
|
+
{
|
|
8262
|
+
name: "v4Route",
|
|
8263
|
+
internalType: "struct PoolKey[]",
|
|
8264
|
+
type: "tuple[]",
|
|
8265
|
+
components: [
|
|
8266
|
+
{ name: "currency0", internalType: "Currency", type: "address" },
|
|
8267
|
+
{ name: "currency1", internalType: "Currency", type: "address" },
|
|
8268
|
+
{ name: "fee", internalType: "uint24", type: "uint24" },
|
|
8269
|
+
{ name: "tickSpacing", internalType: "int24", type: "int24" },
|
|
8270
|
+
{
|
|
8271
|
+
name: "hooks",
|
|
8272
|
+
internalType: "contract IHooks",
|
|
8273
|
+
type: "address"
|
|
8274
|
+
}
|
|
8275
|
+
]
|
|
8276
|
+
},
|
|
8277
|
+
{ name: "minAmountOut", internalType: "uint256", type: "uint256" }
|
|
8278
|
+
]
|
|
8279
|
+
}
|
|
8280
|
+
],
|
|
8281
|
+
name: "swapWithLimitOrders",
|
|
8282
|
+
outputs: [{ name: "delta", internalType: "BalanceDelta", type: "int256" }],
|
|
8283
|
+
stateMutability: "payable"
|
|
8284
|
+
},
|
|
8285
|
+
{
|
|
8286
|
+
type: "function",
|
|
8287
|
+
inputs: [{ name: "newOwner", internalType: "address", type: "address" }],
|
|
8288
|
+
name: "transferOwnership",
|
|
8289
|
+
outputs: [],
|
|
8290
|
+
stateMutability: "nonpayable"
|
|
8291
|
+
},
|
|
8292
|
+
{
|
|
8293
|
+
type: "function",
|
|
8294
|
+
inputs: [{ name: "data", internalType: "bytes", type: "bytes" }],
|
|
8295
|
+
name: "unlockCallback",
|
|
8296
|
+
outputs: [{ name: "", internalType: "bytes", type: "bytes" }],
|
|
8297
|
+
stateMutability: "nonpayable"
|
|
8298
|
+
},
|
|
8299
|
+
{
|
|
8300
|
+
type: "function",
|
|
8301
|
+
inputs: [],
|
|
8302
|
+
name: "zoraLimitOrderBook",
|
|
8303
|
+
outputs: [
|
|
8304
|
+
{
|
|
8305
|
+
name: "",
|
|
8306
|
+
internalType: "contract IZoraLimitOrderBook",
|
|
8307
|
+
type: "address"
|
|
8308
|
+
}
|
|
8309
|
+
],
|
|
8310
|
+
stateMutability: "view"
|
|
8311
|
+
},
|
|
8312
|
+
{
|
|
8313
|
+
type: "event",
|
|
8314
|
+
anonymous: false,
|
|
8315
|
+
inputs: [
|
|
8316
|
+
{
|
|
8317
|
+
name: "multiples",
|
|
8318
|
+
internalType: "uint256[]",
|
|
8319
|
+
type: "uint256[]",
|
|
8320
|
+
indexed: false
|
|
8321
|
+
},
|
|
8322
|
+
{
|
|
8323
|
+
name: "percentages",
|
|
8324
|
+
internalType: "uint256[]",
|
|
8325
|
+
type: "uint256[]",
|
|
8326
|
+
indexed: false
|
|
8327
|
+
}
|
|
8328
|
+
],
|
|
8329
|
+
name: "LimitOrderConfigUpdated"
|
|
8330
|
+
},
|
|
8331
|
+
{
|
|
8332
|
+
type: "event",
|
|
8333
|
+
anonymous: false,
|
|
8334
|
+
inputs: [
|
|
8335
|
+
{
|
|
8336
|
+
name: "previousOwner",
|
|
8337
|
+
internalType: "address",
|
|
8338
|
+
type: "address",
|
|
8339
|
+
indexed: true
|
|
8340
|
+
},
|
|
8341
|
+
{
|
|
8342
|
+
name: "newOwner",
|
|
8343
|
+
internalType: "address",
|
|
8344
|
+
type: "address",
|
|
8345
|
+
indexed: true
|
|
8346
|
+
}
|
|
8347
|
+
],
|
|
8348
|
+
name: "OwnershipTransferStarted"
|
|
8349
|
+
},
|
|
8350
|
+
{
|
|
8351
|
+
type: "event",
|
|
8352
|
+
anonymous: false,
|
|
8353
|
+
inputs: [
|
|
8354
|
+
{
|
|
8355
|
+
name: "previousOwner",
|
|
8356
|
+
internalType: "address",
|
|
8357
|
+
type: "address",
|
|
8358
|
+
indexed: true
|
|
8359
|
+
},
|
|
8360
|
+
{
|
|
8361
|
+
name: "newOwner",
|
|
8362
|
+
internalType: "address",
|
|
8363
|
+
type: "address",
|
|
8364
|
+
indexed: true
|
|
8365
|
+
}
|
|
8366
|
+
],
|
|
8367
|
+
name: "OwnershipTransferred"
|
|
8368
|
+
},
|
|
8369
|
+
{
|
|
8370
|
+
type: "event",
|
|
8371
|
+
anonymous: false,
|
|
8372
|
+
inputs: [
|
|
8373
|
+
{
|
|
8374
|
+
name: "sender",
|
|
8375
|
+
internalType: "address",
|
|
8376
|
+
type: "address",
|
|
8377
|
+
indexed: true
|
|
8378
|
+
},
|
|
8379
|
+
{
|
|
8380
|
+
name: "recipient",
|
|
8381
|
+
internalType: "address",
|
|
8382
|
+
type: "address",
|
|
8383
|
+
indexed: true
|
|
8384
|
+
},
|
|
8385
|
+
{
|
|
8386
|
+
name: "poolKey",
|
|
8387
|
+
internalType: "struct PoolKey",
|
|
8388
|
+
type: "tuple",
|
|
8389
|
+
components: [
|
|
8390
|
+
{ name: "currency0", internalType: "Currency", type: "address" },
|
|
8391
|
+
{ name: "currency1", internalType: "Currency", type: "address" },
|
|
8392
|
+
{ name: "fee", internalType: "uint24", type: "uint24" },
|
|
8393
|
+
{ name: "tickSpacing", internalType: "int24", type: "int24" },
|
|
8394
|
+
{ name: "hooks", internalType: "contract IHooks", type: "address" }
|
|
8395
|
+
],
|
|
8396
|
+
indexed: false
|
|
8397
|
+
},
|
|
8398
|
+
{
|
|
8399
|
+
name: "tickBeforeSwap",
|
|
8400
|
+
internalType: "int24",
|
|
8401
|
+
type: "int24",
|
|
8402
|
+
indexed: false
|
|
8403
|
+
},
|
|
8404
|
+
{
|
|
8405
|
+
name: "tickAfterSwap",
|
|
8406
|
+
internalType: "int24",
|
|
8407
|
+
type: "int24",
|
|
8408
|
+
indexed: false
|
|
8409
|
+
},
|
|
8410
|
+
{
|
|
8411
|
+
name: "amount0",
|
|
8412
|
+
internalType: "int128",
|
|
8413
|
+
type: "int128",
|
|
8414
|
+
indexed: false
|
|
8415
|
+
},
|
|
8416
|
+
{
|
|
8417
|
+
name: "amount1",
|
|
8418
|
+
internalType: "int128",
|
|
8419
|
+
type: "int128",
|
|
8420
|
+
indexed: false
|
|
8421
|
+
},
|
|
8422
|
+
{
|
|
8423
|
+
name: "sqrtPriceX96",
|
|
8424
|
+
internalType: "uint160",
|
|
8425
|
+
type: "uint160",
|
|
8426
|
+
indexed: false
|
|
8427
|
+
},
|
|
8428
|
+
{
|
|
8429
|
+
name: "orders",
|
|
8430
|
+
internalType: "struct SwapWithLimitOrders.CreatedOrder[]",
|
|
8431
|
+
type: "tuple[]",
|
|
8432
|
+
components: [
|
|
8433
|
+
{ name: "orderId", internalType: "bytes32", type: "bytes32" },
|
|
8434
|
+
{ name: "multiple", internalType: "uint256", type: "uint256" },
|
|
8435
|
+
{ name: "percentage", internalType: "uint256", type: "uint256" }
|
|
8436
|
+
],
|
|
8437
|
+
indexed: false
|
|
8438
|
+
}
|
|
8439
|
+
],
|
|
8440
|
+
name: "SwapWithLimitOrdersExecuted"
|
|
8441
|
+
},
|
|
8442
|
+
{ type: "error", inputs: [], name: "EmptyV4Route" },
|
|
8443
|
+
{
|
|
8444
|
+
type: "error",
|
|
8445
|
+
inputs: [
|
|
8446
|
+
{ name: "inputAmount", internalType: "uint256", type: "uint256" },
|
|
8447
|
+
{ name: "availableAmount", internalType: "uint256", type: "uint256" }
|
|
8448
|
+
],
|
|
8449
|
+
name: "InsufficientInputCurrency"
|
|
8450
|
+
},
|
|
8451
|
+
{ type: "error", inputs: [], name: "InsufficientOutputAmount" },
|
|
8452
|
+
{ type: "error", inputs: [], name: "InsufficientTransferFunds" },
|
|
8453
|
+
{ type: "error", inputs: [], name: "InvalidLimitOrderConfig" },
|
|
8454
|
+
{ type: "error", inputs: [], name: "InvalidMultiple" },
|
|
8455
|
+
{ type: "error", inputs: [], name: "InvalidPercent" },
|
|
8456
|
+
{ type: "error", inputs: [], name: "LengthMismatch" },
|
|
8457
|
+
{ type: "error", inputs: [], name: "OnlyPoolManager" },
|
|
8458
|
+
{
|
|
8459
|
+
type: "error",
|
|
8460
|
+
inputs: [{ name: "owner", internalType: "address", type: "address" }],
|
|
8461
|
+
name: "OwnableInvalidOwner"
|
|
8462
|
+
},
|
|
8463
|
+
{
|
|
8464
|
+
type: "error",
|
|
8465
|
+
inputs: [{ name: "account", internalType: "address", type: "address" }],
|
|
8466
|
+
name: "OwnableUnauthorizedAccount"
|
|
8467
|
+
},
|
|
8468
|
+
{ type: "error", inputs: [], name: "PercentOverflow" },
|
|
8469
|
+
{
|
|
8470
|
+
type: "error",
|
|
8471
|
+
inputs: [{ name: "token", internalType: "address", type: "address" }],
|
|
8472
|
+
name: "SafeERC20FailedOperation"
|
|
8473
|
+
},
|
|
8474
|
+
{ type: "error", inputs: [], name: "UnsafeCast" },
|
|
8475
|
+
{ type: "error", inputs: [], name: "V3RouteDoesNotConnectToV4RouteStart" },
|
|
8476
|
+
{ type: "error", inputs: [], name: "ZeroSwapDelta" },
|
|
8477
|
+
{ type: "error", inputs: [], name: "AddressZero" },
|
|
8478
|
+
{ type: "error", inputs: [], name: "AlreadyOwner" },
|
|
8479
|
+
{ type: "error", inputs: [], name: "CannotMintZeroLiquidity" },
|
|
8480
|
+
{
|
|
8481
|
+
type: "error",
|
|
8482
|
+
inputs: [],
|
|
8483
|
+
name: "DopplerPoolMustHaveMoreThan2DiscoveryPositions"
|
|
8484
|
+
},
|
|
8485
|
+
{ type: "error", inputs: [], name: "ECDSAInvalidSignature" },
|
|
8486
|
+
{
|
|
8487
|
+
type: "error",
|
|
8488
|
+
inputs: [{ name: "length", internalType: "uint256", type: "uint256" }],
|
|
8489
|
+
name: "ECDSAInvalidSignatureLength"
|
|
8490
|
+
},
|
|
8491
|
+
{
|
|
8492
|
+
type: "error",
|
|
8493
|
+
inputs: [{ name: "s", internalType: "bytes32", type: "bytes32" }],
|
|
8494
|
+
name: "ECDSAInvalidSignatureS"
|
|
8495
|
+
},
|
|
8496
|
+
{
|
|
8497
|
+
type: "error",
|
|
8498
|
+
inputs: [
|
|
8499
|
+
{ name: "spender", internalType: "address", type: "address" },
|
|
8500
|
+
{ name: "allowance", internalType: "uint256", type: "uint256" },
|
|
8501
|
+
{ name: "needed", internalType: "uint256", type: "uint256" }
|
|
8502
|
+
],
|
|
8503
|
+
name: "ERC20InsufficientAllowance"
|
|
8504
|
+
},
|
|
8505
|
+
{
|
|
8506
|
+
type: "error",
|
|
8507
|
+
inputs: [
|
|
8508
|
+
{ name: "sender", internalType: "address", type: "address" },
|
|
8509
|
+
{ name: "balance", internalType: "uint256", type: "uint256" },
|
|
8510
|
+
{ name: "needed", internalType: "uint256", type: "uint256" }
|
|
8511
|
+
],
|
|
8512
|
+
name: "ERC20InsufficientBalance"
|
|
8513
|
+
},
|
|
8514
|
+
{
|
|
8515
|
+
type: "error",
|
|
8516
|
+
inputs: [{ name: "approver", internalType: "address", type: "address" }],
|
|
8517
|
+
name: "ERC20InvalidApprover"
|
|
8518
|
+
},
|
|
8519
|
+
{
|
|
8520
|
+
type: "error",
|
|
8521
|
+
inputs: [{ name: "receiver", internalType: "address", type: "address" }],
|
|
8522
|
+
name: "ERC20InvalidReceiver"
|
|
8523
|
+
},
|
|
8524
|
+
{
|
|
8525
|
+
type: "error",
|
|
8526
|
+
inputs: [{ name: "sender", internalType: "address", type: "address" }],
|
|
8527
|
+
name: "ERC20InvalidSender"
|
|
8528
|
+
},
|
|
8529
|
+
{
|
|
8530
|
+
type: "error",
|
|
8531
|
+
inputs: [{ name: "spender", internalType: "address", type: "address" }],
|
|
8532
|
+
name: "ERC20InvalidSpender"
|
|
8533
|
+
},
|
|
8534
|
+
{ type: "error", inputs: [], name: "ERC20TransferAmountMismatch" },
|
|
8535
|
+
{
|
|
8536
|
+
type: "error",
|
|
8537
|
+
inputs: [{ name: "deadline", internalType: "uint256", type: "uint256" }],
|
|
8538
|
+
name: "ERC2612ExpiredSignature"
|
|
8539
|
+
},
|
|
8540
|
+
{
|
|
8541
|
+
type: "error",
|
|
8542
|
+
inputs: [
|
|
8543
|
+
{ name: "signer", internalType: "address", type: "address" },
|
|
8544
|
+
{ name: "owner", internalType: "address", type: "address" }
|
|
8545
|
+
],
|
|
8546
|
+
name: "ERC2612InvalidSigner"
|
|
8547
|
+
},
|
|
8548
|
+
{ type: "error", inputs: [], name: "EthAmountMismatch" },
|
|
8549
|
+
{ type: "error", inputs: [], name: "EthAmountTooSmall" },
|
|
8550
|
+
{ type: "error", inputs: [], name: "EthTransferFailed" },
|
|
8551
|
+
{ type: "error", inputs: [], name: "EthTransferInvalid" },
|
|
8552
|
+
{ type: "error", inputs: [], name: "InitialOrderSizeTooLarge" },
|
|
8553
|
+
{ type: "error", inputs: [], name: "InsufficientFunds" },
|
|
8554
|
+
{ type: "error", inputs: [], name: "InsufficientLiquidity" },
|
|
8555
|
+
{
|
|
8556
|
+
type: "error",
|
|
8557
|
+
inputs: [
|
|
8558
|
+
{ name: "account", internalType: "address", type: "address" },
|
|
8559
|
+
{ name: "currentNonce", internalType: "uint256", type: "uint256" }
|
|
8560
|
+
],
|
|
8561
|
+
name: "InvalidAccountNonce"
|
|
8562
|
+
},
|
|
8563
|
+
{ type: "error", inputs: [], name: "InvalidCurrencyLowerTick" },
|
|
8564
|
+
{ type: "error", inputs: [], name: "InvalidInitialization" },
|
|
8565
|
+
{ type: "error", inputs: [], name: "InvalidMarketType" },
|
|
8566
|
+
{ type: "error", inputs: [], name: "InvalidPoolVersion" },
|
|
8567
|
+
{
|
|
8568
|
+
type: "error",
|
|
8569
|
+
inputs: [
|
|
8570
|
+
{ name: "tickLower", internalType: "int24", type: "int24" },
|
|
8571
|
+
{ name: "tickUpper", internalType: "int24", type: "int24" }
|
|
8572
|
+
],
|
|
8573
|
+
name: "InvalidTickRangeMisordered"
|
|
8574
|
+
},
|
|
8575
|
+
{ type: "error", inputs: [], name: "InvalidWethLowerTick" },
|
|
8576
|
+
{ type: "error", inputs: [], name: "LegacyPoolMustHaveOneDiscoveryPosition" },
|
|
8577
|
+
{ type: "error", inputs: [], name: "MarketAlreadyGraduated" },
|
|
8578
|
+
{ type: "error", inputs: [], name: "MarketNotGraduated" },
|
|
8579
|
+
{
|
|
8580
|
+
type: "error",
|
|
8581
|
+
inputs: [
|
|
8582
|
+
{ name: "value", internalType: "uint256", type: "uint256" },
|
|
8583
|
+
{ name: "limit", internalType: "uint256", type: "uint256" }
|
|
8584
|
+
],
|
|
8585
|
+
name: "MaxShareToBeSoldExceeded"
|
|
8586
|
+
},
|
|
8587
|
+
{ type: "error", inputs: [], name: "NameIsRequired" },
|
|
8588
|
+
{ type: "error", inputs: [], name: "NotInitializing" },
|
|
8589
|
+
{ type: "error", inputs: [], name: "NotOwner" },
|
|
8590
|
+
{ type: "error", inputs: [], name: "NumDiscoveryPositionsOutOfRange" },
|
|
8591
|
+
{ type: "error", inputs: [], name: "OneOwnerRequired" },
|
|
8592
|
+
{ type: "error", inputs: [], name: "OnlyOwner" },
|
|
8593
|
+
{
|
|
8594
|
+
type: "error",
|
|
8595
|
+
inputs: [
|
|
8596
|
+
{ name: "sender", internalType: "address", type: "address" },
|
|
8597
|
+
{ name: "pool", internalType: "address", type: "address" }
|
|
8598
|
+
],
|
|
8599
|
+
name: "OnlyPool"
|
|
8600
|
+
},
|
|
8601
|
+
{ type: "error", inputs: [], name: "OnlyWeth" },
|
|
8602
|
+
{ type: "error", inputs: [], name: "OwnerCannotBeAddressZero" },
|
|
8603
|
+
{ type: "error", inputs: [], name: "SlippageBoundsExceeded" },
|
|
8604
|
+
{ type: "error", inputs: [], name: "UseRevokeOwnershipToRemoveSelf" },
|
|
8605
|
+
{ type: "error", inputs: [], name: "CoinVersionLookupCannotBeZeroAddress" },
|
|
8606
|
+
{ type: "error", inputs: [], name: "EthTransferFailed" },
|
|
8607
|
+
{ type: "error", inputs: [], name: "HookNotImplemented" },
|
|
8608
|
+
{
|
|
8609
|
+
type: "error",
|
|
8610
|
+
inputs: [{ name: "callbackId", internalType: "uint8", type: "uint8" }],
|
|
8611
|
+
name: "InvalidCallbackId"
|
|
8612
|
+
},
|
|
8613
|
+
{
|
|
8614
|
+
type: "error",
|
|
8615
|
+
inputs: [{ name: "newHook", internalType: "address", type: "address" }],
|
|
8616
|
+
name: "InvalidNewHook"
|
|
8617
|
+
},
|
|
8618
|
+
{
|
|
8619
|
+
type: "error",
|
|
8620
|
+
inputs: [
|
|
8621
|
+
{
|
|
8622
|
+
name: "key",
|
|
8623
|
+
internalType: "struct PoolKey",
|
|
8624
|
+
type: "tuple",
|
|
8625
|
+
components: [
|
|
8626
|
+
{ name: "currency0", internalType: "Currency", type: "address" },
|
|
8627
|
+
{ name: "currency1", internalType: "Currency", type: "address" },
|
|
8628
|
+
{ name: "fee", internalType: "uint24", type: "uint24" },
|
|
8629
|
+
{ name: "tickSpacing", internalType: "int24", type: "int24" },
|
|
8630
|
+
{ name: "hooks", internalType: "contract IHooks", type: "address" }
|
|
8631
|
+
]
|
|
8632
|
+
}
|
|
8633
|
+
],
|
|
8634
|
+
name: "NoCoinForHook"
|
|
8635
|
+
},
|
|
8636
|
+
{
|
|
8637
|
+
type: "error",
|
|
8638
|
+
inputs: [{ name: "coin", internalType: "address", type: "address" }],
|
|
8639
|
+
name: "NotACoin"
|
|
8640
|
+
},
|
|
8641
|
+
{ type: "error", inputs: [], name: "NotPoolManager" },
|
|
8642
|
+
{
|
|
8643
|
+
type: "error",
|
|
8644
|
+
inputs: [
|
|
8645
|
+
{ name: "caller", internalType: "address", type: "address" },
|
|
8646
|
+
{ name: "expectedCoin", internalType: "address", type: "address" }
|
|
8647
|
+
],
|
|
8648
|
+
name: "OnlyCoin"
|
|
8649
|
+
},
|
|
8650
|
+
{ type: "error", inputs: [], name: "PathMustHaveAtLeastOneStep" },
|
|
8651
|
+
{ type: "error", inputs: [], name: "SafeCastOverflow" },
|
|
8652
|
+
{
|
|
8653
|
+
type: "error",
|
|
8654
|
+
inputs: [{ name: "token", internalType: "address", type: "address" }],
|
|
8655
|
+
name: "SafeERC20FailedOperation"
|
|
8656
|
+
},
|
|
8657
|
+
{
|
|
8658
|
+
type: "error",
|
|
8659
|
+
inputs: [],
|
|
8660
|
+
name: "TrustedMsgSenderLookupCannotBeZeroAddress"
|
|
8661
|
+
},
|
|
8662
|
+
{ type: "error", inputs: [], name: "UpgradeGateCannotBeZeroAddress" },
|
|
8663
|
+
{
|
|
8664
|
+
type: "error",
|
|
8665
|
+
inputs: [
|
|
8666
|
+
{ name: "oldHook", internalType: "address", type: "address" },
|
|
8667
|
+
{ name: "newHook", internalType: "address", type: "address" }
|
|
8668
|
+
],
|
|
8669
|
+
name: "UpgradePathNotRegistered"
|
|
8670
|
+
},
|
|
8671
|
+
{ type: "error", inputs: [], name: "ZoraHookRegistryCannotBeZeroAddress" },
|
|
8672
|
+
{ type: "error", inputs: [], name: "ZoraLimitOrderBookCannotBeZeroAddress" },
|
|
8673
|
+
{ type: "error", inputs: [], name: "AddressZero" },
|
|
8674
|
+
{ type: "error", inputs: [], name: "ArrayLengthMismatch" },
|
|
8675
|
+
{ type: "error", inputs: [], name: "CallerNotPermitted" },
|
|
8676
|
+
{
|
|
8677
|
+
type: "error",
|
|
8678
|
+
inputs: [
|
|
8679
|
+
{ name: "orderId", internalType: "bytes32", type: "bytes32" },
|
|
8680
|
+
{ name: "expectedCoin", internalType: "address", type: "address" },
|
|
8681
|
+
{ name: "actualCoin", internalType: "address", type: "address" }
|
|
8682
|
+
],
|
|
8683
|
+
name: "CoinMismatch"
|
|
8684
|
+
},
|
|
8685
|
+
{ type: "error", inputs: [], name: "InsufficientForwardedFunds" },
|
|
8686
|
+
{ type: "error", inputs: [], name: "InsufficientTransferFunds" },
|
|
8687
|
+
{
|
|
8688
|
+
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"
|
|
8695
|
+
},
|
|
8696
|
+
{ type: "error", inputs: [], name: "InvalidOrder" },
|
|
8697
|
+
{ type: "error", inputs: [], name: "InvalidPoolKey" },
|
|
8698
|
+
{ type: "error", inputs: [], name: "MaxFillCountCannotBeZero" },
|
|
8699
|
+
{
|
|
8700
|
+
type: "error",
|
|
8701
|
+
inputs: [
|
|
8702
|
+
{ name: "withdrawn", internalType: "uint256", type: "uint256" },
|
|
8703
|
+
{ name: "minAmountOut", internalType: "uint256", type: "uint256" }
|
|
8704
|
+
],
|
|
8705
|
+
name: "MinAmountNotReached"
|
|
8706
|
+
},
|
|
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
|
+
{
|
|
8714
|
+
type: "error",
|
|
8715
|
+
inputs: [{ name: "owner", internalType: "address", type: "address" }],
|
|
8716
|
+
name: "OwnableInvalidOwner"
|
|
8717
|
+
},
|
|
8718
|
+
{
|
|
8719
|
+
type: "error",
|
|
8720
|
+
inputs: [{ name: "account", internalType: "address", type: "address" }],
|
|
8721
|
+
name: "OwnableUnauthorizedAccount"
|
|
8722
|
+
},
|
|
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" }
|
|
8732
|
+
];
|
|
8733
|
+
var devZoraRouterAddress = {
|
|
8734
|
+
8453: "0x1F35FB3E07e68bC1Bf020c2d59cBF91Ccf5736b8"
|
|
8735
|
+
};
|
|
8736
|
+
var devZoraRouterConfig = {
|
|
8737
|
+
address: devZoraRouterAddress,
|
|
8738
|
+
abi: devZoraRouterABI
|
|
8739
|
+
};
|
|
8740
|
+
var erc20MinterABI = [
|
|
8741
|
+
{
|
|
8742
|
+
type: "function",
|
|
8743
|
+
inputs: [],
|
|
8744
|
+
name: "acceptOwnership",
|
|
8745
|
+
outputs: [],
|
|
8746
|
+
stateMutability: "nonpayable"
|
|
8747
|
+
},
|
|
8748
|
+
{
|
|
8749
|
+
type: "function",
|
|
8750
|
+
inputs: [
|
|
8751
|
+
{
|
|
8752
|
+
name: "config",
|
|
8753
|
+
internalType: "struct IERC20Minter.PremintSalesConfig",
|
|
8754
|
+
type: "tuple",
|
|
8755
|
+
components: [
|
|
8756
|
+
{ name: "duration", internalType: "uint64", type: "uint64" },
|
|
8757
|
+
{
|
|
8758
|
+
name: "maxTokensPerAddress",
|
|
8759
|
+
internalType: "uint64",
|
|
8760
|
+
type: "uint64"
|
|
8761
|
+
},
|
|
8762
|
+
{ name: "pricePerToken", internalType: "uint256", type: "uint256" },
|
|
8763
|
+
{ name: "fundsRecipient", internalType: "address", type: "address" },
|
|
8764
|
+
{ name: "currency", internalType: "address", type: "address" }
|
|
8765
|
+
]
|
|
8766
|
+
}
|
|
8767
|
+
],
|
|
8768
|
+
name: "buildSalesConfigForPremint",
|
|
8769
|
+
outputs: [
|
|
8770
|
+
{
|
|
8771
|
+
name: "",
|
|
8772
|
+
internalType: "struct IERC20Minter.SalesConfig",
|
|
8773
|
+
type: "tuple",
|
|
8774
|
+
components: [
|
|
8775
|
+
{ name: "saleStart", internalType: "uint64", type: "uint64" },
|
|
8776
|
+
{ name: "saleEnd", internalType: "uint64", type: "uint64" },
|
|
8777
|
+
{
|
|
8778
|
+
name: "maxTokensPerAddress",
|
|
8779
|
+
internalType: "uint64",
|
|
8780
|
+
type: "uint64"
|
|
8781
|
+
},
|
|
8782
|
+
{ name: "pricePerToken", internalType: "uint256", type: "uint256" },
|
|
8783
|
+
{ name: "fundsRecipient", internalType: "address", type: "address" },
|
|
8784
|
+
{ name: "currency", internalType: "address", type: "address" }
|
|
8785
|
+
]
|
|
8786
|
+
}
|
|
8787
|
+
],
|
|
8788
|
+
stateMutability: "view"
|
|
8789
|
+
},
|
|
8790
|
+
{
|
|
8791
|
+
type: "function",
|
|
8792
|
+
inputs: [],
|
|
8793
|
+
name: "cancelOwnershipTransfer",
|
|
8794
|
+
outputs: [],
|
|
8795
|
+
stateMutability: "nonpayable"
|
|
8796
|
+
},
|
|
8797
|
+
{
|
|
8798
|
+
type: "function",
|
|
8799
|
+
inputs: [{ name: "totalReward", internalType: "uint256", type: "uint256" }],
|
|
8800
|
+
name: "computePaidMintRewards",
|
|
8801
|
+
outputs: [
|
|
8802
|
+
{
|
|
8803
|
+
name: "",
|
|
8804
|
+
internalType: "struct IERC20Minter.RewardsSettings",
|
|
8805
|
+
type: "tuple",
|
|
8806
|
+
components: [
|
|
8807
|
+
{
|
|
8808
|
+
name: "createReferralReward",
|
|
8809
|
+
internalType: "uint256",
|
|
8810
|
+
type: "uint256"
|
|
8811
|
+
},
|
|
8812
|
+
{
|
|
8813
|
+
name: "mintReferralReward",
|
|
8814
|
+
internalType: "uint256",
|
|
8815
|
+
type: "uint256"
|
|
8816
|
+
},
|
|
8817
|
+
{ name: "zoraReward", internalType: "uint256", type: "uint256" },
|
|
8818
|
+
{
|
|
8819
|
+
name: "firstMinterReward",
|
|
8820
|
+
internalType: "uint256",
|
|
8821
|
+
type: "uint256"
|
|
8822
|
+
}
|
|
8823
|
+
]
|
|
8824
|
+
}
|
|
8825
|
+
],
|
|
8826
|
+
stateMutability: "pure"
|
|
8827
|
+
},
|
|
8828
|
+
{
|
|
8829
|
+
type: "function",
|
|
8830
|
+
inputs: [
|
|
8831
|
+
{ name: "totalReward", internalType: "uint256", type: "uint256" },
|
|
8832
|
+
{ name: "rewardPct", internalType: "uint256", type: "uint256" }
|
|
8833
|
+
],
|
|
8834
|
+
name: "computeReward",
|
|
8835
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
8836
|
+
stateMutability: "pure"
|
|
8837
|
+
},
|
|
8838
|
+
{
|
|
8839
|
+
type: "function",
|
|
8840
|
+
inputs: [{ name: "totalValue", internalType: "uint256", type: "uint256" }],
|
|
8841
|
+
name: "computeTotalReward",
|
|
8842
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
6459
8843
|
stateMutability: "view"
|
|
6460
8844
|
},
|
|
6461
8845
|
{
|
|
@@ -14484,17 +16868,18 @@ var zoraLimitOrderBookABI = [
|
|
|
14484
16868
|
type: "address"
|
|
14485
16869
|
},
|
|
14486
16870
|
{ name: "zoraHookRegistry_", internalType: "address", type: "address" },
|
|
14487
|
-
{ name: "
|
|
16871
|
+
{ name: "owner_", internalType: "address", type: "address" },
|
|
16872
|
+
{ name: "weth_", internalType: "address", type: "address" }
|
|
14488
16873
|
],
|
|
14489
16874
|
stateMutability: "nonpayable"
|
|
14490
16875
|
},
|
|
14491
16876
|
{ type: "receive", stateMutability: "payable" },
|
|
14492
16877
|
{
|
|
14493
|
-
type: "function",
|
|
14494
|
-
inputs: [],
|
|
14495
|
-
name: "
|
|
14496
|
-
outputs: [
|
|
14497
|
-
stateMutability: "
|
|
16878
|
+
type: "function",
|
|
16879
|
+
inputs: [],
|
|
16880
|
+
name: "acceptOwnership",
|
|
16881
|
+
outputs: [],
|
|
16882
|
+
stateMutability: "nonpayable"
|
|
14498
16883
|
},
|
|
14499
16884
|
{
|
|
14500
16885
|
type: "function",
|
|
@@ -14506,6 +16891,13 @@ var zoraLimitOrderBookABI = [
|
|
|
14506
16891
|
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
14507
16892
|
stateMutability: "view"
|
|
14508
16893
|
},
|
|
16894
|
+
{
|
|
16895
|
+
type: "function",
|
|
16896
|
+
inputs: [],
|
|
16897
|
+
name: "contractVersion",
|
|
16898
|
+
outputs: [{ name: "", internalType: "string", type: "string" }],
|
|
16899
|
+
stateMutability: "pure"
|
|
16900
|
+
},
|
|
14509
16901
|
{
|
|
14510
16902
|
type: "function",
|
|
14511
16903
|
inputs: [
|
|
@@ -14596,6 +16988,27 @@ var zoraLimitOrderBookABI = [
|
|
|
14596
16988
|
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
14597
16989
|
stateMutability: "view"
|
|
14598
16990
|
},
|
|
16991
|
+
{
|
|
16992
|
+
type: "function",
|
|
16993
|
+
inputs: [{ name: "caller", internalType: "address", type: "address" }],
|
|
16994
|
+
name: "isPermittedCaller",
|
|
16995
|
+
outputs: [{ name: "", internalType: "bool", type: "bool" }],
|
|
16996
|
+
stateMutability: "view"
|
|
16997
|
+
},
|
|
16998
|
+
{
|
|
16999
|
+
type: "function",
|
|
17000
|
+
inputs: [],
|
|
17001
|
+
name: "owner",
|
|
17002
|
+
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
17003
|
+
stateMutability: "view"
|
|
17004
|
+
},
|
|
17005
|
+
{
|
|
17006
|
+
type: "function",
|
|
17007
|
+
inputs: [],
|
|
17008
|
+
name: "pendingOwner",
|
|
17009
|
+
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
17010
|
+
stateMutability: "view"
|
|
17011
|
+
},
|
|
14599
17012
|
{
|
|
14600
17013
|
type: "function",
|
|
14601
17014
|
inputs: [],
|
|
@@ -14607,10 +17020,8 @@ var zoraLimitOrderBookABI = [
|
|
|
14607
17020
|
},
|
|
14608
17021
|
{
|
|
14609
17022
|
type: "function",
|
|
14610
|
-
inputs: [
|
|
14611
|
-
|
|
14612
|
-
],
|
|
14613
|
-
name: "setAuthority",
|
|
17023
|
+
inputs: [],
|
|
17024
|
+
name: "renounceOwnership",
|
|
14614
17025
|
outputs: [],
|
|
14615
17026
|
stateMutability: "nonpayable"
|
|
14616
17027
|
},
|
|
@@ -14623,6 +17034,23 @@ var zoraLimitOrderBookABI = [
|
|
|
14623
17034
|
outputs: [],
|
|
14624
17035
|
stateMutability: "nonpayable"
|
|
14625
17036
|
},
|
|
17037
|
+
{
|
|
17038
|
+
type: "function",
|
|
17039
|
+
inputs: [
|
|
17040
|
+
{ name: "callers", internalType: "address[]", type: "address[]" },
|
|
17041
|
+
{ name: "permitted", internalType: "bool[]", type: "bool[]" }
|
|
17042
|
+
],
|
|
17043
|
+
name: "setPermittedCallers",
|
|
17044
|
+
outputs: [],
|
|
17045
|
+
stateMutability: "nonpayable"
|
|
17046
|
+
},
|
|
17047
|
+
{
|
|
17048
|
+
type: "function",
|
|
17049
|
+
inputs: [{ name: "newOwner", internalType: "address", type: "address" }],
|
|
17050
|
+
name: "transferOwnership",
|
|
17051
|
+
outputs: [],
|
|
17052
|
+
stateMutability: "nonpayable"
|
|
17053
|
+
},
|
|
14626
17054
|
{
|
|
14627
17055
|
type: "function",
|
|
14628
17056
|
inputs: [{ name: "data", internalType: "bytes", type: "bytes" }],
|
|
@@ -14630,6 +17058,13 @@ var zoraLimitOrderBookABI = [
|
|
|
14630
17058
|
outputs: [{ name: "", internalType: "bytes", type: "bytes" }],
|
|
14631
17059
|
stateMutability: "nonpayable"
|
|
14632
17060
|
},
|
|
17061
|
+
{
|
|
17062
|
+
type: "function",
|
|
17063
|
+
inputs: [],
|
|
17064
|
+
name: "weth",
|
|
17065
|
+
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
17066
|
+
stateMutability: "view"
|
|
17067
|
+
},
|
|
14633
17068
|
{
|
|
14634
17069
|
type: "function",
|
|
14635
17070
|
inputs: [
|
|
@@ -14664,19 +17099,6 @@ var zoraLimitOrderBookABI = [
|
|
|
14664
17099
|
],
|
|
14665
17100
|
stateMutability: "view"
|
|
14666
17101
|
},
|
|
14667
|
-
{
|
|
14668
|
-
type: "event",
|
|
14669
|
-
anonymous: false,
|
|
14670
|
-
inputs: [
|
|
14671
|
-
{
|
|
14672
|
-
name: "authority",
|
|
14673
|
-
internalType: "address",
|
|
14674
|
-
type: "address",
|
|
14675
|
-
indexed: false
|
|
14676
|
-
}
|
|
14677
|
-
],
|
|
14678
|
-
name: "AuthorityUpdated"
|
|
14679
|
-
},
|
|
14680
17102
|
{
|
|
14681
17103
|
type: "event",
|
|
14682
17104
|
anonymous: false,
|
|
@@ -14855,13 +17277,60 @@ var zoraLimitOrderBookABI = [
|
|
|
14855
17277
|
name: "MakerBalanceUpdated"
|
|
14856
17278
|
},
|
|
14857
17279
|
{
|
|
14858
|
-
type: "
|
|
14859
|
-
|
|
14860
|
-
|
|
17280
|
+
type: "event",
|
|
17281
|
+
anonymous: false,
|
|
17282
|
+
inputs: [
|
|
17283
|
+
{
|
|
17284
|
+
name: "previousOwner",
|
|
17285
|
+
internalType: "address",
|
|
17286
|
+
type: "address",
|
|
17287
|
+
indexed: true
|
|
17288
|
+
},
|
|
17289
|
+
{
|
|
17290
|
+
name: "newOwner",
|
|
17291
|
+
internalType: "address",
|
|
17292
|
+
type: "address",
|
|
17293
|
+
indexed: true
|
|
17294
|
+
}
|
|
17295
|
+
],
|
|
17296
|
+
name: "OwnershipTransferStarted"
|
|
17297
|
+
},
|
|
17298
|
+
{
|
|
17299
|
+
type: "event",
|
|
17300
|
+
anonymous: false,
|
|
17301
|
+
inputs: [
|
|
17302
|
+
{
|
|
17303
|
+
name: "previousOwner",
|
|
17304
|
+
internalType: "address",
|
|
17305
|
+
type: "address",
|
|
17306
|
+
indexed: true
|
|
17307
|
+
},
|
|
17308
|
+
{
|
|
17309
|
+
name: "newOwner",
|
|
17310
|
+
internalType: "address",
|
|
17311
|
+
type: "address",
|
|
17312
|
+
indexed: true
|
|
17313
|
+
}
|
|
17314
|
+
],
|
|
17315
|
+
name: "OwnershipTransferred"
|
|
17316
|
+
},
|
|
17317
|
+
{
|
|
17318
|
+
type: "event",
|
|
17319
|
+
anonymous: false,
|
|
17320
|
+
inputs: [
|
|
17321
|
+
{
|
|
17322
|
+
name: "caller",
|
|
17323
|
+
internalType: "address",
|
|
17324
|
+
type: "address",
|
|
17325
|
+
indexed: true
|
|
17326
|
+
},
|
|
17327
|
+
{ name: "permitted", internalType: "bool", type: "bool", indexed: false }
|
|
17328
|
+
],
|
|
17329
|
+
name: "PermittedCallerUpdated"
|
|
14861
17330
|
},
|
|
14862
|
-
{ type: "error", inputs: [], name: "AccessManagedUnauthorized" },
|
|
14863
17331
|
{ type: "error", inputs: [], name: "AddressZero" },
|
|
14864
17332
|
{ type: "error", inputs: [], name: "ArrayLengthMismatch" },
|
|
17333
|
+
{ type: "error", inputs: [], name: "CallerNotPermitted" },
|
|
14865
17334
|
{
|
|
14866
17335
|
type: "error",
|
|
14867
17336
|
inputs: [
|
|
@@ -14897,11 +17366,24 @@ var zoraLimitOrderBookABI = [
|
|
|
14897
17366
|
{ type: "error", inputs: [], name: "NotPoolManager" },
|
|
14898
17367
|
{ type: "error", inputs: [], name: "OnlyZoraHook" },
|
|
14899
17368
|
{ type: "error", inputs: [], name: "OrderClosed" },
|
|
17369
|
+
{ type: "error", inputs: [], name: "OrderFillable" },
|
|
14900
17370
|
{ type: "error", inputs: [], name: "OrderNotMaker" },
|
|
17371
|
+
{
|
|
17372
|
+
type: "error",
|
|
17373
|
+
inputs: [{ name: "owner", internalType: "address", type: "address" }],
|
|
17374
|
+
name: "OwnableInvalidOwner"
|
|
17375
|
+
},
|
|
17376
|
+
{
|
|
17377
|
+
type: "error",
|
|
17378
|
+
inputs: [{ name: "account", internalType: "address", type: "address" }],
|
|
17379
|
+
name: "OwnableUnauthorizedAccount"
|
|
17380
|
+
},
|
|
14901
17381
|
{ type: "error", inputs: [], name: "PathMustHaveAtLeastOneStep" },
|
|
17382
|
+
{ type: "error", inputs: [], name: "PermittedCallersLengthMismatch" },
|
|
14902
17383
|
{ type: "error", inputs: [], name: "RouterMsgSenderInvalid" },
|
|
14903
17384
|
{ type: "error", inputs: [], name: "UnknownCallback" },
|
|
14904
17385
|
{ type: "error", inputs: [], name: "UnlockedFillNotAllowed" },
|
|
17386
|
+
{ type: "error", inputs: [], name: "WethTransferFailed" },
|
|
14905
17387
|
{ type: "error", inputs: [], name: "ZeroMaker" },
|
|
14906
17388
|
{ type: "error", inputs: [], name: "ZeroOrderSize" },
|
|
14907
17389
|
{ type: "error", inputs: [], name: "ZeroRealizedOrder" },
|
|
@@ -14991,7 +17473,6 @@ var zoraLimitOrderBookABI = [
|
|
|
14991
17473
|
],
|
|
14992
17474
|
name: "InvalidAccountNonce"
|
|
14993
17475
|
},
|
|
14994
|
-
{ type: "error", inputs: [], name: "InvalidCurrency" },
|
|
14995
17476
|
{ type: "error", inputs: [], name: "InvalidCurrencyLowerTick" },
|
|
14996
17477
|
{ type: "error", inputs: [], name: "InvalidInitialization" },
|
|
14997
17478
|
{ type: "error", inputs: [], name: "InvalidMarketType" },
|
|
@@ -15104,7 +17585,7 @@ var zoraLimitOrderBookABI = [
|
|
|
15104
17585
|
{ type: "error", inputs: [], name: "ZoraLimitOrderBookCannotBeZeroAddress" }
|
|
15105
17586
|
];
|
|
15106
17587
|
var zoraLimitOrderBookAddress = {
|
|
15107
|
-
8453: "
|
|
17588
|
+
8453: "0x7777777A5906659b67CE61511489Ae76DA63920f"
|
|
15108
17589
|
};
|
|
15109
17590
|
var zoraLimitOrderBookConfig = {
|
|
15110
17591
|
address: zoraLimitOrderBookAddress,
|
|
@@ -16794,11 +19275,26 @@ var zoraRouterABI = [
|
|
|
16794
19275
|
internalType: "contract ISwapRouter",
|
|
16795
19276
|
type: "address"
|
|
16796
19277
|
},
|
|
16797
|
-
{ name: "permit2_", internalType: "address", type: "address" }
|
|
19278
|
+
{ name: "permit2_", internalType: "address", type: "address" },
|
|
19279
|
+
{ name: "owner_", internalType: "address", type: "address" }
|
|
16798
19280
|
],
|
|
16799
19281
|
stateMutability: "nonpayable"
|
|
16800
19282
|
},
|
|
16801
19283
|
{ type: "receive", stateMutability: "payable" },
|
|
19284
|
+
{
|
|
19285
|
+
type: "function",
|
|
19286
|
+
inputs: [],
|
|
19287
|
+
name: "acceptOwnership",
|
|
19288
|
+
outputs: [],
|
|
19289
|
+
stateMutability: "nonpayable"
|
|
19290
|
+
},
|
|
19291
|
+
{
|
|
19292
|
+
type: "function",
|
|
19293
|
+
inputs: [],
|
|
19294
|
+
name: "contractVersion",
|
|
19295
|
+
outputs: [{ name: "", internalType: "string", type: "string" }],
|
|
19296
|
+
stateMutability: "pure"
|
|
19297
|
+
},
|
|
16802
19298
|
{
|
|
16803
19299
|
type: "function",
|
|
16804
19300
|
inputs: [],
|
|
@@ -16823,6 +19319,20 @@ var zoraRouterABI = [
|
|
|
16823
19319
|
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
16824
19320
|
stateMutability: "view"
|
|
16825
19321
|
},
|
|
19322
|
+
{
|
|
19323
|
+
type: "function",
|
|
19324
|
+
inputs: [],
|
|
19325
|
+
name: "owner",
|
|
19326
|
+
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
19327
|
+
stateMutability: "view"
|
|
19328
|
+
},
|
|
19329
|
+
{
|
|
19330
|
+
type: "function",
|
|
19331
|
+
inputs: [],
|
|
19332
|
+
name: "pendingOwner",
|
|
19333
|
+
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
19334
|
+
stateMutability: "view"
|
|
19335
|
+
},
|
|
16826
19336
|
{
|
|
16827
19337
|
type: "function",
|
|
16828
19338
|
inputs: [],
|
|
@@ -16832,6 +19342,13 @@ var zoraRouterABI = [
|
|
|
16832
19342
|
],
|
|
16833
19343
|
stateMutability: "view"
|
|
16834
19344
|
},
|
|
19345
|
+
{
|
|
19346
|
+
type: "function",
|
|
19347
|
+
inputs: [],
|
|
19348
|
+
name: "renounceOwnership",
|
|
19349
|
+
outputs: [],
|
|
19350
|
+
stateMutability: "nonpayable"
|
|
19351
|
+
},
|
|
16835
19352
|
{
|
|
16836
19353
|
type: "function",
|
|
16837
19354
|
inputs: [
|
|
@@ -16911,6 +19428,13 @@ var zoraRouterABI = [
|
|
|
16911
19428
|
outputs: [{ name: "delta", internalType: "BalanceDelta", type: "int256" }],
|
|
16912
19429
|
stateMutability: "payable"
|
|
16913
19430
|
},
|
|
19431
|
+
{
|
|
19432
|
+
type: "function",
|
|
19433
|
+
inputs: [{ name: "newOwner", internalType: "address", type: "address" }],
|
|
19434
|
+
name: "transferOwnership",
|
|
19435
|
+
outputs: [],
|
|
19436
|
+
stateMutability: "nonpayable"
|
|
19437
|
+
},
|
|
16914
19438
|
{
|
|
16915
19439
|
type: "function",
|
|
16916
19440
|
inputs: [{ name: "data", internalType: "bytes", type: "bytes" }],
|
|
@@ -16950,6 +19474,44 @@ var zoraRouterABI = [
|
|
|
16950
19474
|
],
|
|
16951
19475
|
name: "LimitOrderConfigUpdated"
|
|
16952
19476
|
},
|
|
19477
|
+
{
|
|
19478
|
+
type: "event",
|
|
19479
|
+
anonymous: false,
|
|
19480
|
+
inputs: [
|
|
19481
|
+
{
|
|
19482
|
+
name: "previousOwner",
|
|
19483
|
+
internalType: "address",
|
|
19484
|
+
type: "address",
|
|
19485
|
+
indexed: true
|
|
19486
|
+
},
|
|
19487
|
+
{
|
|
19488
|
+
name: "newOwner",
|
|
19489
|
+
internalType: "address",
|
|
19490
|
+
type: "address",
|
|
19491
|
+
indexed: true
|
|
19492
|
+
}
|
|
19493
|
+
],
|
|
19494
|
+
name: "OwnershipTransferStarted"
|
|
19495
|
+
},
|
|
19496
|
+
{
|
|
19497
|
+
type: "event",
|
|
19498
|
+
anonymous: false,
|
|
19499
|
+
inputs: [
|
|
19500
|
+
{
|
|
19501
|
+
name: "previousOwner",
|
|
19502
|
+
internalType: "address",
|
|
19503
|
+
type: "address",
|
|
19504
|
+
indexed: true
|
|
19505
|
+
},
|
|
19506
|
+
{
|
|
19507
|
+
name: "newOwner",
|
|
19508
|
+
internalType: "address",
|
|
19509
|
+
type: "address",
|
|
19510
|
+
indexed: true
|
|
19511
|
+
}
|
|
19512
|
+
],
|
|
19513
|
+
name: "OwnershipTransferred"
|
|
19514
|
+
},
|
|
16953
19515
|
{
|
|
16954
19516
|
type: "event",
|
|
16955
19517
|
anonymous: false,
|
|
@@ -16979,12 +19541,6 @@ var zoraRouterABI = [
|
|
|
16979
19541
|
],
|
|
16980
19542
|
indexed: false
|
|
16981
19543
|
},
|
|
16982
|
-
{
|
|
16983
|
-
name: "delta",
|
|
16984
|
-
internalType: "BalanceDelta",
|
|
16985
|
-
type: "int256",
|
|
16986
|
-
indexed: false
|
|
16987
|
-
},
|
|
16988
19544
|
{
|
|
16989
19545
|
name: "tickBeforeSwap",
|
|
16990
19546
|
internalType: "int24",
|
|
@@ -16997,6 +19553,24 @@ var zoraRouterABI = [
|
|
|
16997
19553
|
type: "int24",
|
|
16998
19554
|
indexed: false
|
|
16999
19555
|
},
|
|
19556
|
+
{
|
|
19557
|
+
name: "amount0",
|
|
19558
|
+
internalType: "int128",
|
|
19559
|
+
type: "int128",
|
|
19560
|
+
indexed: false
|
|
19561
|
+
},
|
|
19562
|
+
{
|
|
19563
|
+
name: "amount1",
|
|
19564
|
+
internalType: "int128",
|
|
19565
|
+
type: "int128",
|
|
19566
|
+
indexed: false
|
|
19567
|
+
},
|
|
19568
|
+
{
|
|
19569
|
+
name: "sqrtPriceX96",
|
|
19570
|
+
internalType: "uint160",
|
|
19571
|
+
type: "uint160",
|
|
19572
|
+
indexed: false
|
|
19573
|
+
},
|
|
17000
19574
|
{
|
|
17001
19575
|
name: "orders",
|
|
17002
19576
|
internalType: "struct SwapWithLimitOrders.CreatedOrder[]",
|
|
@@ -17012,7 +19586,6 @@ var zoraRouterABI = [
|
|
|
17012
19586
|
name: "SwapWithLimitOrdersExecuted"
|
|
17013
19587
|
},
|
|
17014
19588
|
{ type: "error", inputs: [], name: "EmptyV4Route" },
|
|
17015
|
-
{ type: "error", inputs: [], name: "FromAddressIsNotOwner" },
|
|
17016
19589
|
{
|
|
17017
19590
|
type: "error",
|
|
17018
19591
|
inputs: [
|
|
@@ -17027,8 +19600,17 @@ var zoraRouterABI = [
|
|
|
17027
19600
|
{ type: "error", inputs: [], name: "InvalidMultiple" },
|
|
17028
19601
|
{ type: "error", inputs: [], name: "InvalidPercent" },
|
|
17029
19602
|
{ type: "error", inputs: [], name: "LengthMismatch" },
|
|
17030
|
-
{ type: "error", inputs: [], name: "OnlyAuthority" },
|
|
17031
19603
|
{ type: "error", inputs: [], name: "OnlyPoolManager" },
|
|
19604
|
+
{
|
|
19605
|
+
type: "error",
|
|
19606
|
+
inputs: [{ name: "owner", internalType: "address", type: "address" }],
|
|
19607
|
+
name: "OwnableInvalidOwner"
|
|
19608
|
+
},
|
|
19609
|
+
{
|
|
19610
|
+
type: "error",
|
|
19611
|
+
inputs: [{ name: "account", internalType: "address", type: "address" }],
|
|
19612
|
+
name: "OwnableUnauthorizedAccount"
|
|
19613
|
+
},
|
|
17032
19614
|
{ type: "error", inputs: [], name: "PercentOverflow" },
|
|
17033
19615
|
{
|
|
17034
19616
|
type: "error",
|
|
@@ -17124,7 +19706,6 @@ var zoraRouterABI = [
|
|
|
17124
19706
|
],
|
|
17125
19707
|
name: "InvalidAccountNonce"
|
|
17126
19708
|
},
|
|
17127
|
-
{ type: "error", inputs: [], name: "InvalidCurrency" },
|
|
17128
19709
|
{ type: "error", inputs: [], name: "InvalidCurrencyLowerTick" },
|
|
17129
19710
|
{ type: "error", inputs: [], name: "InvalidInitialization" },
|
|
17130
19711
|
{ type: "error", inputs: [], name: "InvalidMarketType" },
|
|
@@ -17235,14 +19816,9 @@ var zoraRouterABI = [
|
|
|
17235
19816
|
},
|
|
17236
19817
|
{ type: "error", inputs: [], name: "ZoraHookRegistryCannotBeZeroAddress" },
|
|
17237
19818
|
{ type: "error", inputs: [], name: "ZoraLimitOrderBookCannotBeZeroAddress" },
|
|
17238
|
-
{
|
|
17239
|
-
type: "error",
|
|
17240
|
-
inputs: [{ name: "authority", internalType: "address", type: "address" }],
|
|
17241
|
-
name: "AccessManagedInvalidAuthority"
|
|
17242
|
-
},
|
|
17243
|
-
{ type: "error", inputs: [], name: "AccessManagedUnauthorized" },
|
|
17244
19819
|
{ type: "error", inputs: [], name: "AddressZero" },
|
|
17245
19820
|
{ type: "error", inputs: [], name: "ArrayLengthMismatch" },
|
|
19821
|
+
{ type: "error", inputs: [], name: "CallerNotPermitted" },
|
|
17246
19822
|
{
|
|
17247
19823
|
type: "error",
|
|
17248
19824
|
inputs: [
|
|
@@ -17278,17 +19854,30 @@ var zoraRouterABI = [
|
|
|
17278
19854
|
{ type: "error", inputs: [], name: "NotPoolManager" },
|
|
17279
19855
|
{ type: "error", inputs: [], name: "OnlyZoraHook" },
|
|
17280
19856
|
{ type: "error", inputs: [], name: "OrderClosed" },
|
|
19857
|
+
{ type: "error", inputs: [], name: "OrderFillable" },
|
|
17281
19858
|
{ type: "error", inputs: [], name: "OrderNotMaker" },
|
|
19859
|
+
{
|
|
19860
|
+
type: "error",
|
|
19861
|
+
inputs: [{ name: "owner", internalType: "address", type: "address" }],
|
|
19862
|
+
name: "OwnableInvalidOwner"
|
|
19863
|
+
},
|
|
19864
|
+
{
|
|
19865
|
+
type: "error",
|
|
19866
|
+
inputs: [{ name: "account", internalType: "address", type: "address" }],
|
|
19867
|
+
name: "OwnableUnauthorizedAccount"
|
|
19868
|
+
},
|
|
17282
19869
|
{ type: "error", inputs: [], name: "PathMustHaveAtLeastOneStep" },
|
|
19870
|
+
{ type: "error", inputs: [], name: "PermittedCallersLengthMismatch" },
|
|
17283
19871
|
{ type: "error", inputs: [], name: "RouterMsgSenderInvalid" },
|
|
17284
19872
|
{ type: "error", inputs: [], name: "UnknownCallback" },
|
|
17285
19873
|
{ type: "error", inputs: [], name: "UnlockedFillNotAllowed" },
|
|
19874
|
+
{ type: "error", inputs: [], name: "WethTransferFailed" },
|
|
17286
19875
|
{ type: "error", inputs: [], name: "ZeroMaker" },
|
|
17287
19876
|
{ type: "error", inputs: [], name: "ZeroOrderSize" },
|
|
17288
19877
|
{ type: "error", inputs: [], name: "ZeroRealizedOrder" }
|
|
17289
19878
|
];
|
|
17290
19879
|
var zoraRouterAddress = {
|
|
17291
|
-
8453: "
|
|
19880
|
+
8453: "0x7777777f62529Ea64736E24ad9ad3E4a39eB97c2"
|
|
17292
19881
|
};
|
|
17293
19882
|
var zoraRouterConfig = {
|
|
17294
19883
|
address: zoraRouterAddress,
|
|
@@ -19335,7 +21924,7 @@ var zoraTimedSaleStrategyConfig = {
|
|
|
19335
21924
|
abi: zoraTimedSaleStrategyABI
|
|
19336
21925
|
};
|
|
19337
21926
|
|
|
19338
|
-
// ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.
|
|
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
|
|
19339
21928
|
var InvalidDecimalNumberError = class extends BaseError {
|
|
19340
21929
|
constructor({ value }) {
|
|
19341
21930
|
super(`Number \`${value}\` is not a valid decimal number.`, {
|
|
@@ -19344,7 +21933,7 @@ var InvalidDecimalNumberError = class extends BaseError {
|
|
|
19344
21933
|
}
|
|
19345
21934
|
};
|
|
19346
21935
|
|
|
19347
|
-
// ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.
|
|
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
|
|
19348
21937
|
function parseUnits(value, decimals) {
|
|
19349
21938
|
if (!/^(-?)([0-9]*)\.?([0-9]*)$/.test(value))
|
|
19350
21939
|
throw new InvalidDecimalNumberError({ value });
|
|
@@ -19379,7 +21968,7 @@ function parseUnits(value, decimals) {
|
|
|
19379
21968
|
return BigInt(`${negative ? "-" : ""}${integer}${fraction}`);
|
|
19380
21969
|
}
|
|
19381
21970
|
|
|
19382
|
-
// ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.
|
|
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
|
|
19383
21972
|
function parseEther(ether, unit = "wei") {
|
|
19384
21973
|
return parseUnits(ether, etherUnits[unit]);
|
|
19385
21974
|
}
|
|
@@ -20321,6 +22910,18 @@ export {
|
|
|
20321
22910
|
commentsConfig,
|
|
20322
22911
|
__exports as contracts1155,
|
|
20323
22912
|
decodeBuySupplyWithSwapRouterHookReturn,
|
|
22913
|
+
devBuySupplyWithSwapRouterHookABI,
|
|
22914
|
+
devBuySupplyWithSwapRouterHookAddress,
|
|
22915
|
+
devBuySupplyWithSwapRouterHookConfig,
|
|
22916
|
+
devCoinFactoryABI,
|
|
22917
|
+
devCoinFactoryAddress,
|
|
22918
|
+
devCoinFactoryConfig,
|
|
22919
|
+
devZoraLimitOrderBookABI,
|
|
22920
|
+
devZoraLimitOrderBookAddress,
|
|
22921
|
+
devZoraLimitOrderBookConfig,
|
|
22922
|
+
devZoraRouterABI,
|
|
22923
|
+
devZoraRouterAddress,
|
|
22924
|
+
devZoraRouterConfig,
|
|
20324
22925
|
emptyCommentIdentifier,
|
|
20325
22926
|
encodeMultiCurvePoolConfig,
|
|
20326
22927
|
encodePremintConfig,
|