@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zoralabs/protocol-deployments",
3
- "version": "0.5.9",
3
+ "version": "0.6.0-creator-coins.0",
4
4
  "repository": "https://github.com/ourzora/zora-protocol",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -15,17 +15,9 @@
15
15
  "default": "./dist/index.cjs"
16
16
  }
17
17
  },
18
- "scripts": {
19
- "build": "pnpm bundle-configs && pnpm copy-generated && tsup",
20
- "bundle-configs": "tsx scripts/bundle-configs.ts && pnpm prettier:write",
21
- "copy-generated": "cp ../protocol-deployments-gen/generated/wagmi.ts src/generated/wagmi.ts",
22
- "prettier:write": "prettier --write 'src/**/*.ts' 'scripts/*'",
23
- "lint": "prettier --check 'src/**/*.ts' 'scripts/*'"
24
- },
25
18
  "devDependencies": {
26
19
  "@lavamoat/preinstall-always-fail": "2.0.0",
27
20
  "@types/node": "^20.3.2",
28
- "@zoralabs/tsconfig": "workspace:^",
29
21
  "abitype": "^1.0.2",
30
22
  "es-main": "^1.2.0",
31
23
  "prettier": "^3.2.5",
@@ -33,6 +25,14 @@
33
25
  "tsup": "^7.2.0",
34
26
  "tsx": "^3.13.0",
35
27
  "typescript": "^5.2.2",
36
- "viem": "^2.21.21"
28
+ "viem": "^2.21.21",
29
+ "@zoralabs/tsconfig": "^0.0.1"
30
+ },
31
+ "scripts": {
32
+ "build": "pnpm bundle-configs && pnpm copy-generated && tsup",
33
+ "bundle-configs": "tsx scripts/bundle-configs.ts && pnpm prettier:write",
34
+ "copy-generated": "cp ../protocol-deployments-gen/generated/wagmi.ts src/generated/wagmi.ts",
35
+ "prettier:write": "prettier --write 'src/**/*.ts' 'scripts/*'",
36
+ "lint": "prettier --check 'src/**/*.ts' 'scripts/*'"
37
37
  }
38
- }
38
+ }
@@ -3,8 +3,8 @@
3
3
  //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
4
4
 
5
5
  /**
6
- * - [__View Contract on Base Basescan__](https://basescan.org/address/0x98fbEab71999b9777fE14E9Eb20832570c7fE1ed)
7
- * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xE4Ec8cE893Cd41965b1aE27F1ad9798F207427aE)
6
+ * - [__View Contract on Base Basescan__](https://basescan.org/address/0x4269b3ba4522192e0C54197BD0D7131A3abA6256)
7
+ * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x1463f270201b846a8B243243D4B982CB0720fA86)
8
8
  */
9
9
  export const buySupplyWithSwapRouterHookABI = [
10
10
  {
@@ -64,17 +64,17 @@ export const buySupplyWithSwapRouterHookABI = [
64
64
  ] as const
65
65
 
66
66
  /**
67
- * - [__View Contract on Base Basescan__](https://basescan.org/address/0x98fbEab71999b9777fE14E9Eb20832570c7fE1ed)
68
- * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xE4Ec8cE893Cd41965b1aE27F1ad9798F207427aE)
67
+ * - [__View Contract on Base Basescan__](https://basescan.org/address/0x4269b3ba4522192e0C54197BD0D7131A3abA6256)
68
+ * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x1463f270201b846a8B243243D4B982CB0720fA86)
69
69
  */
70
70
  export const buySupplyWithSwapRouterHookAddress = {
71
- 8453: '0x98fbEab71999b9777fE14E9Eb20832570c7fE1ed',
72
- 84532: '0xE4Ec8cE893Cd41965b1aE27F1ad9798F207427aE',
71
+ 8453: '0x4269b3ba4522192e0C54197BD0D7131A3abA6256',
72
+ 84532: '0x1463f270201b846a8B243243D4B982CB0720fA86',
73
73
  } as const
74
74
 
75
75
  /**
76
- * - [__View Contract on Base Basescan__](https://basescan.org/address/0x98fbEab71999b9777fE14E9Eb20832570c7fE1ed)
77
- * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xE4Ec8cE893Cd41965b1aE27F1ad9798F207427aE)
76
+ * - [__View Contract on Base Basescan__](https://basescan.org/address/0x4269b3ba4522192e0C54197BD0D7131A3abA6256)
77
+ * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x1463f270201b846a8B243243D4B982CB0720fA86)
78
78
  */
79
79
  export const buySupplyWithSwapRouterHookConfig = {
80
80
  address: buySupplyWithSwapRouterHookAddress,
@@ -1305,7 +1305,7 @@ export const coinABI = [
1305
1305
  {
1306
1306
  type: 'function',
1307
1307
  inputs: [],
1308
- name: 'doppler',
1308
+ name: 'dopplerFeeRecipient',
1309
1309
  outputs: [{ name: '', internalType: 'address', type: 'address' }],
1310
1310
  stateMutability: 'view',
1311
1311
  },
@@ -2196,8 +2196,8 @@ export const coinABI = [
2196
2196
  //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2197
2197
 
2198
2198
  /**
2199
- * - [__View Contract on Base Basescan__](https://basescan.org/address/0x777777751622c0d3258f214F9DF38E35BF45baF3)
2200
- * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xaF88840cb637F2684A9E460316b1678AD6245e4a)
2199
+ * - [__View Contract on Base Basescan__](https://basescan.org/address/0x25271c98c1548c075c6DD463308c9a37135c842c)
2200
+ * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x777777751622c0d3258f214F9DF38E35BF45baF3)
2201
2201
  */
2202
2202
  export const coinFactoryABI = [
2203
2203
  {
@@ -2205,6 +2205,7 @@ export const coinFactoryABI = [
2205
2205
  inputs: [
2206
2206
  { name: '_coinImpl', internalType: 'address', type: 'address' },
2207
2207
  { name: '_coinV4Impl', internalType: 'address', type: 'address' },
2208
+ { name: '_creatorCoinImpl', internalType: 'address', type: 'address' },
2208
2209
  ],
2209
2210
  stateMutability: 'nonpayable',
2210
2211
  },
@@ -2257,6 +2258,13 @@ export const coinFactoryABI = [
2257
2258
  outputs: [{ name: '', internalType: 'string', type: 'string' }],
2258
2259
  stateMutability: 'pure',
2259
2260
  },
2261
+ {
2262
+ type: 'function',
2263
+ inputs: [],
2264
+ name: 'creatorCoinImpl',
2265
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
2266
+ stateMutability: 'view',
2267
+ },
2260
2268
  {
2261
2269
  type: 'function',
2262
2270
  inputs: [
@@ -2317,6 +2325,22 @@ export const coinFactoryABI = [
2317
2325
  ],
2318
2326
  stateMutability: 'payable',
2319
2327
  },
2328
+ {
2329
+ type: 'function',
2330
+ inputs: [
2331
+ { name: 'payoutRecipient', internalType: 'address', type: 'address' },
2332
+ { name: 'owners', internalType: 'address[]', type: 'address[]' },
2333
+ { name: 'uri', internalType: 'string', type: 'string' },
2334
+ { name: 'name', internalType: 'string', type: 'string' },
2335
+ { name: 'symbol', internalType: 'string', type: 'string' },
2336
+ { name: 'poolConfig', internalType: 'bytes', type: 'bytes' },
2337
+ { name: 'platformReferrer', internalType: 'address', type: 'address' },
2338
+ { name: 'coinSalt', internalType: 'bytes32', type: 'bytes32' },
2339
+ ],
2340
+ name: 'deployCreatorCoin',
2341
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
2342
+ stateMutability: 'nonpayable',
2343
+ },
2320
2344
  {
2321
2345
  type: 'function',
2322
2346
  inputs: [
@@ -2525,6 +2549,76 @@ export const coinFactoryABI = [
2525
2549
  ],
2526
2550
  name: 'CoinCreatedV4',
2527
2551
  },
2552
+ {
2553
+ type: 'event',
2554
+ anonymous: false,
2555
+ inputs: [
2556
+ {
2557
+ name: 'caller',
2558
+ internalType: 'address',
2559
+ type: 'address',
2560
+ indexed: true,
2561
+ },
2562
+ {
2563
+ name: 'payoutRecipient',
2564
+ internalType: 'address',
2565
+ type: 'address',
2566
+ indexed: true,
2567
+ },
2568
+ {
2569
+ name: 'platformReferrer',
2570
+ internalType: 'address',
2571
+ type: 'address',
2572
+ indexed: true,
2573
+ },
2574
+ {
2575
+ name: 'currency',
2576
+ internalType: 'address',
2577
+ type: 'address',
2578
+ indexed: false,
2579
+ },
2580
+ { name: 'uri', internalType: 'string', type: 'string', indexed: false },
2581
+ { name: 'name', internalType: 'string', type: 'string', indexed: false },
2582
+ {
2583
+ name: 'symbol',
2584
+ internalType: 'string',
2585
+ type: 'string',
2586
+ indexed: false,
2587
+ },
2588
+ {
2589
+ name: 'coin',
2590
+ internalType: 'address',
2591
+ type: 'address',
2592
+ indexed: false,
2593
+ },
2594
+ {
2595
+ name: 'poolKey',
2596
+ internalType: 'struct PoolKey',
2597
+ type: 'tuple',
2598
+ components: [
2599
+ { name: 'currency0', internalType: 'Currency', type: 'address' },
2600
+ { name: 'currency1', internalType: 'Currency', type: 'address' },
2601
+ { name: 'fee', internalType: 'uint24', type: 'uint24' },
2602
+ { name: 'tickSpacing', internalType: 'int24', type: 'int24' },
2603
+ { name: 'hooks', internalType: 'contract IHooks', type: 'address' },
2604
+ ],
2605
+ indexed: false,
2606
+ },
2607
+ {
2608
+ name: 'poolKeyHash',
2609
+ internalType: 'bytes32',
2610
+ type: 'bytes32',
2611
+ indexed: false,
2612
+ },
2613
+ {
2614
+ name: 'version',
2615
+ internalType: 'string',
2616
+ type: 'string',
2617
+ indexed: false,
2618
+ },
2619
+ ],
2620
+ name: 'CreatorCoinCreated',
2621
+ },
2528
2622
  {
2529
2623
  type: 'event',
2530
2624
  anonymous: false,
@@ -2596,6 +2690,7 @@ export const coinFactoryABI = [
2596
2690
  { type: 'error', inputs: [], name: 'ERC20TransferAmountMismatch' },
2597
2691
  { type: 'error', inputs: [], name: 'EthTransferInvalid' },
2598
2692
  { type: 'error', inputs: [], name: 'FailedInnerCall' },
2693
+ { type: 'error', inputs: [], name: 'InvalidConfig' },
2599
2694
  { type: 'error', inputs: [], name: 'InvalidHook' },
2600
2695
  { type: 'error', inputs: [], name: 'InvalidInitialization' },
2601
2696
  { type: 'error', inputs: [], name: 'InvalidPoolVersion' },
@@ -2660,17 +2755,17 @@ export const coinFactoryABI = [
2660
2755
  ] as const
2661
2756
 
2662
2757
  /**
2663
- * - [__View Contract on Base Basescan__](https://basescan.org/address/0x777777751622c0d3258f214F9DF38E35BF45baF3)
2664
- * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xaF88840cb637F2684A9E460316b1678AD6245e4a)
2758
+ * - [__View Contract on Base Basescan__](https://basescan.org/address/0x25271c98c1548c075c6DD463308c9a37135c842c)
2759
+ * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x777777751622c0d3258f214F9DF38E35BF45baF3)
2665
2760
  */
2666
2761
  export const coinFactoryAddress = {
2667
- 8453: '0x777777751622c0d3258f214F9DF38E35BF45baF3',
2668
- 84532: '0xaF88840cb637F2684A9E460316b1678AD6245e4a',
2762
+ 8453: '0x25271c98c1548c075c6DD463308c9a37135c842c',
2763
+ 84532: '0x777777751622c0d3258f214F9DF38E35BF45baF3',
2669
2764
  } as const
2670
2765
 
2671
2766
  /**
2672
- * - [__View Contract on Base Basescan__](https://basescan.org/address/0x777777751622c0d3258f214F9DF38E35BF45baF3)
2673
- * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xaF88840cb637F2684A9E460316b1678AD6245e4a)
2767
+ * - [__View Contract on Base Basescan__](https://basescan.org/address/0x25271c98c1548c075c6DD463308c9a37135c842c)
2768
+ * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x777777751622c0d3258f214F9DF38E35BF45baF3)
2674
2769
  */
2675
2770
  export const coinFactoryConfig = {
2676
2771
  address: coinFactoryAddress,
@@ -2796,7 +2891,7 @@ export const coinV4ABI = [
2796
2891
  {
2797
2892
  type: 'function',
2798
2893
  inputs: [],
2799
- name: 'doppler',
2894
+ name: 'dopplerFeeRecipient',
2800
2895
  outputs: [{ name: '', internalType: 'address', type: 'address' }],
2801
2896
  stateMutability: 'view',
2802
2897
  },
@@ -5508,85 +5603,6 @@ export const commentsConfig = {
5508
5603
  abi: commentsABI,
5509
5604
  } as const
5510
5605
 
5511
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
5512
- // DevBuySupplyWithSwapRouterHook
5513
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
5514
-
5515
- /**
5516
- * [__View Contract on Base Basescan__](https://basescan.org/address/0x8A329330481Ee53FADb75068fEe531dCb8Cf1c98)
5517
- */
5518
- export const devBuySupplyWithSwapRouterHookABI = [
5519
- {
5520
- type: 'constructor',
5521
- inputs: [
5522
- {
5523
- name: '_factory',
5524
- internalType: 'contract IZoraFactory',
5525
- type: 'address',
5526
- },
5527
- { name: '_swapRouter', internalType: 'address', type: 'address' },
5528
- ],
5529
- stateMutability: 'nonpayable',
5530
- },
5531
- {
5532
- type: 'function',
5533
- inputs: [
5534
- { name: 'sender', internalType: 'address', type: 'address' },
5535
- { name: 'coin', internalType: 'contract ICoin', type: 'address' },
5536
- { name: 'hookData', internalType: 'bytes', type: 'bytes' },
5537
- ],
5538
- name: 'afterCoinDeploy',
5539
- outputs: [{ name: '', internalType: 'bytes', type: 'bytes' }],
5540
- stateMutability: 'payable',
5541
- },
5542
- {
5543
- type: 'function',
5544
- inputs: [],
5545
- name: 'factory',
5546
- outputs: [
5547
- { name: '', internalType: 'contract IZoraFactory', type: 'address' },
5548
- ],
5549
- stateMutability: 'view',
5550
- },
5551
- {
5552
- type: 'function',
5553
- inputs: [{ name: 'interfaceId', internalType: 'bytes4', type: 'bytes4' }],
5554
- name: 'supportsInterface',
5555
- outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
5556
- stateMutability: 'pure',
5557
- },
5558
- { type: 'error', inputs: [], name: 'AddressZero' },
5559
- {
5560
- type: 'error',
5561
- inputs: [{ name: 'balance', internalType: 'uint256', type: 'uint256' }],
5562
- name: 'CoinBalanceNot0',
5563
- },
5564
- { type: 'error', inputs: [], name: 'Erc20NotReceived' },
5565
- { type: 'error', inputs: [], name: 'HookNotImplemented' },
5566
- { type: 'error', inputs: [], name: 'InvalidSwapRouterCall' },
5567
- { type: 'error', inputs: [], name: 'NotFactory' },
5568
- {
5569
- type: 'error',
5570
- inputs: [{ name: 'error', internalType: 'bytes', type: 'bytes' }],
5571
- name: 'SwapReverted',
5572
- },
5573
- ] as const
5574
-
5575
- /**
5576
- * [__View Contract on Base Basescan__](https://basescan.org/address/0x8A329330481Ee53FADb75068fEe531dCb8Cf1c98)
5577
- */
5578
- export const devBuySupplyWithSwapRouterHookAddress = {
5579
- 8453: '0x8A329330481Ee53FADb75068fEe531dCb8Cf1c98',
5580
- } as const
5581
-
5582
- /**
5583
- * [__View Contract on Base Basescan__](https://basescan.org/address/0x8A329330481Ee53FADb75068fEe531dCb8Cf1c98)
5584
- */
5585
- export const devBuySupplyWithSwapRouterHookConfig = {
5586
- address: devBuySupplyWithSwapRouterHookAddress,
5587
- abi: devBuySupplyWithSwapRouterHookABI,
5588
- } as const
5589
-
5590
5606
  //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
5591
5607
  // DevCoinFactory
5592
5608
  //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -5600,6 +5616,7 @@ export const devCoinFactoryABI = [
5600
5616
  inputs: [
5601
5617
  { name: '_coinImpl', internalType: 'address', type: 'address' },
5602
5618
  { name: '_coinV4Impl', internalType: 'address', type: 'address' },
5619
+ { name: '_creatorCoinImpl', internalType: 'address', type: 'address' },
5603
5620
  ],
5604
5621
  stateMutability: 'nonpayable',
5605
5622
  },
@@ -5652,6 +5669,13 @@ export const devCoinFactoryABI = [
5652
5669
  outputs: [{ name: '', internalType: 'string', type: 'string' }],
5653
5670
  stateMutability: 'pure',
5654
5671
  },
5672
+ {
5673
+ type: 'function',
5674
+ inputs: [],
5675
+ name: 'creatorCoinImpl',
5676
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
5677
+ stateMutability: 'view',
5678
+ },
5655
5679
  {
5656
5680
  type: 'function',
5657
5681
  inputs: [
@@ -5712,6 +5736,22 @@ export const devCoinFactoryABI = [
5712
5736
  ],
5713
5737
  stateMutability: 'payable',
5714
5738
  },
5739
+ {
5740
+ type: 'function',
5741
+ inputs: [
5742
+ { name: 'payoutRecipient', internalType: 'address', type: 'address' },
5743
+ { name: 'owners', internalType: 'address[]', type: 'address[]' },
5744
+ { name: 'uri', internalType: 'string', type: 'string' },
5745
+ { name: 'name', internalType: 'string', type: 'string' },
5746
+ { name: 'symbol', internalType: 'string', type: 'string' },
5747
+ { name: 'poolConfig', internalType: 'bytes', type: 'bytes' },
5748
+ { name: 'platformReferrer', internalType: 'address', type: 'address' },
5749
+ { name: 'coinSalt', internalType: 'bytes32', type: 'bytes32' },
5750
+ ],
5751
+ name: 'deployCreatorCoin',
5752
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
5753
+ stateMutability: 'nonpayable',
5754
+ },
5715
5755
  {
5716
5756
  type: 'function',
5717
5757
  inputs: [
@@ -5920,6 +5960,76 @@ export const devCoinFactoryABI = [
5920
5960
  ],
5921
5961
  name: 'CoinCreatedV4',
5922
5962
  },
5963
+ {
5964
+ type: 'event',
5965
+ anonymous: false,
5966
+ inputs: [
5967
+ {
5968
+ name: 'caller',
5969
+ internalType: 'address',
5970
+ type: 'address',
5971
+ indexed: true,
5972
+ },
5973
+ {
5974
+ name: 'payoutRecipient',
5975
+ internalType: 'address',
5976
+ type: 'address',
5977
+ indexed: true,
5978
+ },
5979
+ {
5980
+ name: 'platformReferrer',
5981
+ internalType: 'address',
5982
+ type: 'address',
5983
+ indexed: true,
5984
+ },
5985
+ {
5986
+ name: 'currency',
5987
+ internalType: 'address',
5988
+ type: 'address',
5989
+ indexed: false,
5990
+ },
5991
+ { name: 'uri', internalType: 'string', type: 'string', indexed: false },
5992
+ { name: 'name', internalType: 'string', type: 'string', indexed: false },
5993
+ {
5994
+ name: 'symbol',
5995
+ internalType: 'string',
5996
+ type: 'string',
5997
+ indexed: false,
5998
+ },
5999
+ {
6000
+ name: 'coin',
6001
+ internalType: 'address',
6002
+ type: 'address',
6003
+ indexed: false,
6004
+ },
6005
+ {
6006
+ name: 'poolKey',
6007
+ internalType: 'struct PoolKey',
6008
+ type: 'tuple',
6009
+ components: [
6010
+ { name: 'currency0', internalType: 'Currency', type: 'address' },
6011
+ { name: 'currency1', internalType: 'Currency', type: 'address' },
6012
+ { name: 'fee', internalType: 'uint24', type: 'uint24' },
6013
+ { name: 'tickSpacing', internalType: 'int24', type: 'int24' },
6014
+ { name: 'hooks', internalType: 'contract IHooks', type: 'address' },
6015
+ ],
6016
+ indexed: false,
6017
+ },
6018
+ {
6019
+ name: 'poolKeyHash',
6020
+ internalType: 'bytes32',
6021
+ type: 'bytes32',
6022
+ indexed: false,
6023
+ },
6024
+ {
6025
+ name: 'version',
6026
+ internalType: 'string',
6027
+ type: 'string',
6028
+ indexed: false,
6029
+ },
6030
+ ],
6031
+ name: 'CreatorCoinCreated',
6032
+ },
5923
6033
  {
5924
6034
  type: 'event',
5925
6035
  anonymous: false,
@@ -5991,6 +6101,7 @@ export const devCoinFactoryABI = [
5991
6101
  { type: 'error', inputs: [], name: 'ERC20TransferAmountMismatch' },
5992
6102
  { type: 'error', inputs: [], name: 'EthTransferInvalid' },
5993
6103
  { type: 'error', inputs: [], name: 'FailedInnerCall' },
6104
+ { type: 'error', inputs: [], name: 'InvalidConfig' },
5994
6105
  { type: 'error', inputs: [], name: 'InvalidHook' },
5995
6106
  { type: 'error', inputs: [], name: 'InvalidInitialization' },
5996
6107
  { type: 'error', inputs: [], name: 'InvalidPoolVersion' },
@@ -1,7 +0,0 @@
1
-
2
- 
3
- > @zoralabs/protocol-deployments@0.5.5 lint /Users/danovedzora/source/zora-protocol/packages/protocol-deployments
4
- > prettier --check 'src/**/*.ts' 'scripts/*'
5
-
6
- Checking formatting...
7
- src/encoding.tssrc/index.tssrc/typedData.tssrc/types.tsscripts/bundle-chainConfigs.tsscripts/bundle-configs.tsAll matched files use Prettier code style!