@zoralabs/protocol-deployments 0.5.9 → 0.6.0-creator-coins.0
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.log +46 -47
- package/CHANGELOG.md +6 -0
- package/LICENSE +21 -0
- package/dist/encoding.d.ts +2 -2
- package/dist/generated/wagmi.d.ts +689 -332
- package/dist/generated/wagmi.d.ts.map +1 -1
- package/dist/index.cjs +198 -77
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +198 -74
- package/dist/index.js.map +1 -1
- package/package.json +11 -11
- package/src/generated/wagmi.ts +208 -97
- package/.turbo/turbo-lint.log +0 -7
package/dist/index.js
CHANGED
|
@@ -70,8 +70,8 @@ var buySupplyWithSwapRouterHookABI = [
|
|
|
70
70
|
}
|
|
71
71
|
];
|
|
72
72
|
var buySupplyWithSwapRouterHookAddress = {
|
|
73
|
-
8453: "
|
|
74
|
-
84532: "
|
|
73
|
+
8453: "0x4269b3ba4522192e0C54197BD0D7131A3abA6256",
|
|
74
|
+
84532: "0x1463f270201b846a8B243243D4B982CB0720fA86"
|
|
75
75
|
};
|
|
76
76
|
var buySupplyWithSwapRouterHookConfig = {
|
|
77
77
|
address: buySupplyWithSwapRouterHookAddress,
|
|
@@ -1250,7 +1250,7 @@ var coinABI = [
|
|
|
1250
1250
|
{
|
|
1251
1251
|
type: "function",
|
|
1252
1252
|
inputs: [],
|
|
1253
|
-
name: "
|
|
1253
|
+
name: "dopplerFeeRecipient",
|
|
1254
1254
|
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
1255
1255
|
stateMutability: "view"
|
|
1256
1256
|
},
|
|
@@ -2140,7 +2140,8 @@ var coinFactoryABI = [
|
|
|
2140
2140
|
type: "constructor",
|
|
2141
2141
|
inputs: [
|
|
2142
2142
|
{ name: "_coinImpl", internalType: "address", type: "address" },
|
|
2143
|
-
{ name: "_coinV4Impl", internalType: "address", type: "address" }
|
|
2143
|
+
{ name: "_coinV4Impl", internalType: "address", type: "address" },
|
|
2144
|
+
{ name: "_creatorCoinImpl", internalType: "address", type: "address" }
|
|
2144
2145
|
],
|
|
2145
2146
|
stateMutability: "nonpayable"
|
|
2146
2147
|
},
|
|
@@ -2193,6 +2194,13 @@ var coinFactoryABI = [
|
|
|
2193
2194
|
outputs: [{ name: "", internalType: "string", type: "string" }],
|
|
2194
2195
|
stateMutability: "pure"
|
|
2195
2196
|
},
|
|
2197
|
+
{
|
|
2198
|
+
type: "function",
|
|
2199
|
+
inputs: [],
|
|
2200
|
+
name: "creatorCoinImpl",
|
|
2201
|
+
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
2202
|
+
stateMutability: "view"
|
|
2203
|
+
},
|
|
2196
2204
|
{
|
|
2197
2205
|
type: "function",
|
|
2198
2206
|
inputs: [
|
|
@@ -2253,6 +2261,22 @@ var coinFactoryABI = [
|
|
|
2253
2261
|
],
|
|
2254
2262
|
stateMutability: "payable"
|
|
2255
2263
|
},
|
|
2264
|
+
{
|
|
2265
|
+
type: "function",
|
|
2266
|
+
inputs: [
|
|
2267
|
+
{ name: "payoutRecipient", internalType: "address", type: "address" },
|
|
2268
|
+
{ name: "owners", internalType: "address[]", type: "address[]" },
|
|
2269
|
+
{ name: "uri", internalType: "string", type: "string" },
|
|
2270
|
+
{ name: "name", internalType: "string", type: "string" },
|
|
2271
|
+
{ name: "symbol", internalType: "string", type: "string" },
|
|
2272
|
+
{ name: "poolConfig", internalType: "bytes", type: "bytes" },
|
|
2273
|
+
{ name: "platformReferrer", internalType: "address", type: "address" },
|
|
2274
|
+
{ name: "coinSalt", internalType: "bytes32", type: "bytes32" }
|
|
2275
|
+
],
|
|
2276
|
+
name: "deployCreatorCoin",
|
|
2277
|
+
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
2278
|
+
stateMutability: "nonpayable"
|
|
2279
|
+
},
|
|
2256
2280
|
{
|
|
2257
2281
|
type: "function",
|
|
2258
2282
|
inputs: [
|
|
@@ -2461,6 +2485,76 @@ var coinFactoryABI = [
|
|
|
2461
2485
|
],
|
|
2462
2486
|
name: "CoinCreatedV4"
|
|
2463
2487
|
},
|
|
2488
|
+
{
|
|
2489
|
+
type: "event",
|
|
2490
|
+
anonymous: false,
|
|
2491
|
+
inputs: [
|
|
2492
|
+
{
|
|
2493
|
+
name: "caller",
|
|
2494
|
+
internalType: "address",
|
|
2495
|
+
type: "address",
|
|
2496
|
+
indexed: true
|
|
2497
|
+
},
|
|
2498
|
+
{
|
|
2499
|
+
name: "payoutRecipient",
|
|
2500
|
+
internalType: "address",
|
|
2501
|
+
type: "address",
|
|
2502
|
+
indexed: true
|
|
2503
|
+
},
|
|
2504
|
+
{
|
|
2505
|
+
name: "platformReferrer",
|
|
2506
|
+
internalType: "address",
|
|
2507
|
+
type: "address",
|
|
2508
|
+
indexed: true
|
|
2509
|
+
},
|
|
2510
|
+
{
|
|
2511
|
+
name: "currency",
|
|
2512
|
+
internalType: "address",
|
|
2513
|
+
type: "address",
|
|
2514
|
+
indexed: false
|
|
2515
|
+
},
|
|
2516
|
+
{ name: "uri", internalType: "string", type: "string", indexed: false },
|
|
2517
|
+
{ name: "name", internalType: "string", type: "string", indexed: false },
|
|
2518
|
+
{
|
|
2519
|
+
name: "symbol",
|
|
2520
|
+
internalType: "string",
|
|
2521
|
+
type: "string",
|
|
2522
|
+
indexed: false
|
|
2523
|
+
},
|
|
2524
|
+
{
|
|
2525
|
+
name: "coin",
|
|
2526
|
+
internalType: "address",
|
|
2527
|
+
type: "address",
|
|
2528
|
+
indexed: false
|
|
2529
|
+
},
|
|
2530
|
+
{
|
|
2531
|
+
name: "poolKey",
|
|
2532
|
+
internalType: "struct PoolKey",
|
|
2533
|
+
type: "tuple",
|
|
2534
|
+
components: [
|
|
2535
|
+
{ name: "currency0", internalType: "Currency", type: "address" },
|
|
2536
|
+
{ name: "currency1", internalType: "Currency", type: "address" },
|
|
2537
|
+
{ name: "fee", internalType: "uint24", type: "uint24" },
|
|
2538
|
+
{ name: "tickSpacing", internalType: "int24", type: "int24" },
|
|
2539
|
+
{ name: "hooks", internalType: "contract IHooks", type: "address" }
|
|
2540
|
+
],
|
|
2541
|
+
indexed: false
|
|
2542
|
+
},
|
|
2543
|
+
{
|
|
2544
|
+
name: "poolKeyHash",
|
|
2545
|
+
internalType: "bytes32",
|
|
2546
|
+
type: "bytes32",
|
|
2547
|
+
indexed: false
|
|
2548
|
+
},
|
|
2549
|
+
{
|
|
2550
|
+
name: "version",
|
|
2551
|
+
internalType: "string",
|
|
2552
|
+
type: "string",
|
|
2553
|
+
indexed: false
|
|
2554
|
+
}
|
|
2555
|
+
],
|
|
2556
|
+
name: "CreatorCoinCreated"
|
|
2557
|
+
},
|
|
2464
2558
|
{
|
|
2465
2559
|
type: "event",
|
|
2466
2560
|
anonymous: false,
|
|
@@ -2532,6 +2626,7 @@ var coinFactoryABI = [
|
|
|
2532
2626
|
{ type: "error", inputs: [], name: "ERC20TransferAmountMismatch" },
|
|
2533
2627
|
{ type: "error", inputs: [], name: "EthTransferInvalid" },
|
|
2534
2628
|
{ type: "error", inputs: [], name: "FailedInnerCall" },
|
|
2629
|
+
{ type: "error", inputs: [], name: "InvalidConfig" },
|
|
2535
2630
|
{ type: "error", inputs: [], name: "InvalidHook" },
|
|
2536
2631
|
{ type: "error", inputs: [], name: "InvalidInitialization" },
|
|
2537
2632
|
{ type: "error", inputs: [], name: "InvalidPoolVersion" },
|
|
@@ -2595,8 +2690,8 @@ var coinFactoryABI = [
|
|
|
2595
2690
|
{ type: "error", inputs: [], name: "ZeroDiscoverySupplyShare" }
|
|
2596
2691
|
];
|
|
2597
2692
|
var coinFactoryAddress = {
|
|
2598
|
-
8453: "
|
|
2599
|
-
84532: "
|
|
2693
|
+
8453: "0x25271c98c1548c075c6DD463308c9a37135c842c",
|
|
2694
|
+
84532: "0x777777751622c0d3258f214F9DF38E35BF45baF3"
|
|
2600
2695
|
};
|
|
2601
2696
|
var coinFactoryConfig = {
|
|
2602
2697
|
address: coinFactoryAddress,
|
|
@@ -2717,7 +2812,7 @@ var coinV4ABI = [
|
|
|
2717
2812
|
{
|
|
2718
2813
|
type: "function",
|
|
2719
2814
|
inputs: [],
|
|
2720
|
-
name: "
|
|
2815
|
+
name: "dopplerFeeRecipient",
|
|
2721
2816
|
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
2722
2817
|
stateMutability: "view"
|
|
2723
2818
|
},
|
|
@@ -5355,75 +5450,13 @@ var commentsConfig = {
|
|
|
5355
5450
|
address: commentsAddress,
|
|
5356
5451
|
abi: commentsABI
|
|
5357
5452
|
};
|
|
5358
|
-
var devBuySupplyWithSwapRouterHookABI = [
|
|
5359
|
-
{
|
|
5360
|
-
type: "constructor",
|
|
5361
|
-
inputs: [
|
|
5362
|
-
{
|
|
5363
|
-
name: "_factory",
|
|
5364
|
-
internalType: "contract IZoraFactory",
|
|
5365
|
-
type: "address"
|
|
5366
|
-
},
|
|
5367
|
-
{ name: "_swapRouter", internalType: "address", type: "address" }
|
|
5368
|
-
],
|
|
5369
|
-
stateMutability: "nonpayable"
|
|
5370
|
-
},
|
|
5371
|
-
{
|
|
5372
|
-
type: "function",
|
|
5373
|
-
inputs: [
|
|
5374
|
-
{ name: "sender", internalType: "address", type: "address" },
|
|
5375
|
-
{ name: "coin", internalType: "contract ICoin", type: "address" },
|
|
5376
|
-
{ name: "hookData", internalType: "bytes", type: "bytes" }
|
|
5377
|
-
],
|
|
5378
|
-
name: "afterCoinDeploy",
|
|
5379
|
-
outputs: [{ name: "", internalType: "bytes", type: "bytes" }],
|
|
5380
|
-
stateMutability: "payable"
|
|
5381
|
-
},
|
|
5382
|
-
{
|
|
5383
|
-
type: "function",
|
|
5384
|
-
inputs: [],
|
|
5385
|
-
name: "factory",
|
|
5386
|
-
outputs: [
|
|
5387
|
-
{ name: "", internalType: "contract IZoraFactory", type: "address" }
|
|
5388
|
-
],
|
|
5389
|
-
stateMutability: "view"
|
|
5390
|
-
},
|
|
5391
|
-
{
|
|
5392
|
-
type: "function",
|
|
5393
|
-
inputs: [{ name: "interfaceId", internalType: "bytes4", type: "bytes4" }],
|
|
5394
|
-
name: "supportsInterface",
|
|
5395
|
-
outputs: [{ name: "", internalType: "bool", type: "bool" }],
|
|
5396
|
-
stateMutability: "pure"
|
|
5397
|
-
},
|
|
5398
|
-
{ type: "error", inputs: [], name: "AddressZero" },
|
|
5399
|
-
{
|
|
5400
|
-
type: "error",
|
|
5401
|
-
inputs: [{ name: "balance", internalType: "uint256", type: "uint256" }],
|
|
5402
|
-
name: "CoinBalanceNot0"
|
|
5403
|
-
},
|
|
5404
|
-
{ type: "error", inputs: [], name: "Erc20NotReceived" },
|
|
5405
|
-
{ type: "error", inputs: [], name: "HookNotImplemented" },
|
|
5406
|
-
{ type: "error", inputs: [], name: "InvalidSwapRouterCall" },
|
|
5407
|
-
{ type: "error", inputs: [], name: "NotFactory" },
|
|
5408
|
-
{
|
|
5409
|
-
type: "error",
|
|
5410
|
-
inputs: [{ name: "error", internalType: "bytes", type: "bytes" }],
|
|
5411
|
-
name: "SwapReverted"
|
|
5412
|
-
}
|
|
5413
|
-
];
|
|
5414
|
-
var devBuySupplyWithSwapRouterHookAddress = {
|
|
5415
|
-
8453: "0x8A329330481Ee53FADb75068fEe531dCb8Cf1c98"
|
|
5416
|
-
};
|
|
5417
|
-
var devBuySupplyWithSwapRouterHookConfig = {
|
|
5418
|
-
address: devBuySupplyWithSwapRouterHookAddress,
|
|
5419
|
-
abi: devBuySupplyWithSwapRouterHookABI
|
|
5420
|
-
};
|
|
5421
5453
|
var devCoinFactoryABI = [
|
|
5422
5454
|
{
|
|
5423
5455
|
type: "constructor",
|
|
5424
5456
|
inputs: [
|
|
5425
5457
|
{ name: "_coinImpl", internalType: "address", type: "address" },
|
|
5426
|
-
{ name: "_coinV4Impl", internalType: "address", type: "address" }
|
|
5458
|
+
{ name: "_coinV4Impl", internalType: "address", type: "address" },
|
|
5459
|
+
{ name: "_creatorCoinImpl", internalType: "address", type: "address" }
|
|
5427
5460
|
],
|
|
5428
5461
|
stateMutability: "nonpayable"
|
|
5429
5462
|
},
|
|
@@ -5476,6 +5509,13 @@ var devCoinFactoryABI = [
|
|
|
5476
5509
|
outputs: [{ name: "", internalType: "string", type: "string" }],
|
|
5477
5510
|
stateMutability: "pure"
|
|
5478
5511
|
},
|
|
5512
|
+
{
|
|
5513
|
+
type: "function",
|
|
5514
|
+
inputs: [],
|
|
5515
|
+
name: "creatorCoinImpl",
|
|
5516
|
+
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
5517
|
+
stateMutability: "view"
|
|
5518
|
+
},
|
|
5479
5519
|
{
|
|
5480
5520
|
type: "function",
|
|
5481
5521
|
inputs: [
|
|
@@ -5536,6 +5576,22 @@ var devCoinFactoryABI = [
|
|
|
5536
5576
|
],
|
|
5537
5577
|
stateMutability: "payable"
|
|
5538
5578
|
},
|
|
5579
|
+
{
|
|
5580
|
+
type: "function",
|
|
5581
|
+
inputs: [
|
|
5582
|
+
{ name: "payoutRecipient", internalType: "address", type: "address" },
|
|
5583
|
+
{ name: "owners", internalType: "address[]", type: "address[]" },
|
|
5584
|
+
{ name: "uri", internalType: "string", type: "string" },
|
|
5585
|
+
{ name: "name", internalType: "string", type: "string" },
|
|
5586
|
+
{ name: "symbol", internalType: "string", type: "string" },
|
|
5587
|
+
{ name: "poolConfig", internalType: "bytes", type: "bytes" },
|
|
5588
|
+
{ name: "platformReferrer", internalType: "address", type: "address" },
|
|
5589
|
+
{ name: "coinSalt", internalType: "bytes32", type: "bytes32" }
|
|
5590
|
+
],
|
|
5591
|
+
name: "deployCreatorCoin",
|
|
5592
|
+
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
5593
|
+
stateMutability: "nonpayable"
|
|
5594
|
+
},
|
|
5539
5595
|
{
|
|
5540
5596
|
type: "function",
|
|
5541
5597
|
inputs: [
|
|
@@ -5744,6 +5800,76 @@ var devCoinFactoryABI = [
|
|
|
5744
5800
|
],
|
|
5745
5801
|
name: "CoinCreatedV4"
|
|
5746
5802
|
},
|
|
5803
|
+
{
|
|
5804
|
+
type: "event",
|
|
5805
|
+
anonymous: false,
|
|
5806
|
+
inputs: [
|
|
5807
|
+
{
|
|
5808
|
+
name: "caller",
|
|
5809
|
+
internalType: "address",
|
|
5810
|
+
type: "address",
|
|
5811
|
+
indexed: true
|
|
5812
|
+
},
|
|
5813
|
+
{
|
|
5814
|
+
name: "payoutRecipient",
|
|
5815
|
+
internalType: "address",
|
|
5816
|
+
type: "address",
|
|
5817
|
+
indexed: true
|
|
5818
|
+
},
|
|
5819
|
+
{
|
|
5820
|
+
name: "platformReferrer",
|
|
5821
|
+
internalType: "address",
|
|
5822
|
+
type: "address",
|
|
5823
|
+
indexed: true
|
|
5824
|
+
},
|
|
5825
|
+
{
|
|
5826
|
+
name: "currency",
|
|
5827
|
+
internalType: "address",
|
|
5828
|
+
type: "address",
|
|
5829
|
+
indexed: false
|
|
5830
|
+
},
|
|
5831
|
+
{ name: "uri", internalType: "string", type: "string", indexed: false },
|
|
5832
|
+
{ name: "name", internalType: "string", type: "string", indexed: false },
|
|
5833
|
+
{
|
|
5834
|
+
name: "symbol",
|
|
5835
|
+
internalType: "string",
|
|
5836
|
+
type: "string",
|
|
5837
|
+
indexed: false
|
|
5838
|
+
},
|
|
5839
|
+
{
|
|
5840
|
+
name: "coin",
|
|
5841
|
+
internalType: "address",
|
|
5842
|
+
type: "address",
|
|
5843
|
+
indexed: false
|
|
5844
|
+
},
|
|
5845
|
+
{
|
|
5846
|
+
name: "poolKey",
|
|
5847
|
+
internalType: "struct PoolKey",
|
|
5848
|
+
type: "tuple",
|
|
5849
|
+
components: [
|
|
5850
|
+
{ name: "currency0", internalType: "Currency", type: "address" },
|
|
5851
|
+
{ name: "currency1", internalType: "Currency", type: "address" },
|
|
5852
|
+
{ name: "fee", internalType: "uint24", type: "uint24" },
|
|
5853
|
+
{ name: "tickSpacing", internalType: "int24", type: "int24" },
|
|
5854
|
+
{ name: "hooks", internalType: "contract IHooks", type: "address" }
|
|
5855
|
+
],
|
|
5856
|
+
indexed: false
|
|
5857
|
+
},
|
|
5858
|
+
{
|
|
5859
|
+
name: "poolKeyHash",
|
|
5860
|
+
internalType: "bytes32",
|
|
5861
|
+
type: "bytes32",
|
|
5862
|
+
indexed: false
|
|
5863
|
+
},
|
|
5864
|
+
{
|
|
5865
|
+
name: "version",
|
|
5866
|
+
internalType: "string",
|
|
5867
|
+
type: "string",
|
|
5868
|
+
indexed: false
|
|
5869
|
+
}
|
|
5870
|
+
],
|
|
5871
|
+
name: "CreatorCoinCreated"
|
|
5872
|
+
},
|
|
5747
5873
|
{
|
|
5748
5874
|
type: "event",
|
|
5749
5875
|
anonymous: false,
|
|
@@ -5815,6 +5941,7 @@ var devCoinFactoryABI = [
|
|
|
5815
5941
|
{ type: "error", inputs: [], name: "ERC20TransferAmountMismatch" },
|
|
5816
5942
|
{ type: "error", inputs: [], name: "EthTransferInvalid" },
|
|
5817
5943
|
{ type: "error", inputs: [], name: "FailedInnerCall" },
|
|
5944
|
+
{ type: "error", inputs: [], name: "InvalidConfig" },
|
|
5818
5945
|
{ type: "error", inputs: [], name: "InvalidHook" },
|
|
5819
5946
|
{ type: "error", inputs: [], name: "InvalidInitialization" },
|
|
5820
5947
|
{ type: "error", inputs: [], name: "InvalidPoolVersion" },
|
|
@@ -18648,9 +18775,6 @@ export {
|
|
|
18648
18775
|
commentsConfig,
|
|
18649
18776
|
__exports as contracts1155,
|
|
18650
18777
|
decodeBuySupplyWithSwapRouterHookReturn,
|
|
18651
|
-
devBuySupplyWithSwapRouterHookABI,
|
|
18652
|
-
devBuySupplyWithSwapRouterHookAddress,
|
|
18653
|
-
devBuySupplyWithSwapRouterHookConfig,
|
|
18654
18778
|
devCoinFactoryABI,
|
|
18655
18779
|
devCoinFactoryAddress,
|
|
18656
18780
|
devCoinFactoryConfig,
|