@zoralabs/protocol-deployments 0.5.8 → 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.8",
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
  },
@@ -5521,6 +5616,7 @@ export const devCoinFactoryABI = [
5521
5616
  inputs: [
5522
5617
  { name: '_coinImpl', internalType: 'address', type: 'address' },
5523
5618
  { name: '_coinV4Impl', internalType: 'address', type: 'address' },
5619
+ { name: '_creatorCoinImpl', internalType: 'address', type: 'address' },
5524
5620
  ],
5525
5621
  stateMutability: 'nonpayable',
5526
5622
  },
@@ -5573,6 +5669,13 @@ export const devCoinFactoryABI = [
5573
5669
  outputs: [{ name: '', internalType: 'string', type: 'string' }],
5574
5670
  stateMutability: 'pure',
5575
5671
  },
5672
+ {
5673
+ type: 'function',
5674
+ inputs: [],
5675
+ name: 'creatorCoinImpl',
5676
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
5677
+ stateMutability: 'view',
5678
+ },
5576
5679
  {
5577
5680
  type: 'function',
5578
5681
  inputs: [
@@ -5633,6 +5736,22 @@ export const devCoinFactoryABI = [
5633
5736
  ],
5634
5737
  stateMutability: 'payable',
5635
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
+ },
5636
5755
  {
5637
5756
  type: 'function',
5638
5757
  inputs: [
@@ -5841,6 +5960,76 @@ export const devCoinFactoryABI = [
5841
5960
  ],
5842
5961
  name: 'CoinCreatedV4',
5843
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
+ },
5844
6033
  {
5845
6034
  type: 'event',
5846
6035
  anonymous: false,
@@ -5912,6 +6101,7 @@ export const devCoinFactoryABI = [
5912
6101
  { type: 'error', inputs: [], name: 'ERC20TransferAmountMismatch' },
5913
6102
  { type: 'error', inputs: [], name: 'EthTransferInvalid' },
5914
6103
  { type: 'error', inputs: [], name: 'FailedInnerCall' },
6104
+ { type: 'error', inputs: [], name: 'InvalidConfig' },
5915
6105
  { type: 'error', inputs: [], name: 'InvalidHook' },
5916
6106
  { type: 'error', inputs: [], name: 'InvalidInitialization' },
5917
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!