@zoralabs/protocol-deployments 0.5.5 → 0.5.6-PRE.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.5",
3
+ "version": "0.5.6-PRE.0",
4
4
  "repository": "https://github.com/ourzora/zora-protocol",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -15,9 +15,17 @@
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
+ },
18
25
  "devDependencies": {
19
26
  "@lavamoat/preinstall-always-fail": "2.0.0",
20
27
  "@types/node": "^20.3.2",
28
+ "@zoralabs/tsconfig": "workspace:^",
21
29
  "abitype": "^1.0.2",
22
30
  "es-main": "^1.2.0",
23
31
  "prettier": "^3.2.5",
@@ -25,14 +33,6 @@
25
33
  "tsup": "^7.2.0",
26
34
  "tsx": "^3.13.0",
27
35
  "typescript": "^5.2.2",
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/*'"
36
+ "viem": "^2.21.21"
37
37
  }
38
- }
38
+ }
@@ -21,6 +21,10 @@ export const chainConfigs = {
21
21
  PROXY_ADMIN: "0x004d6611884B4A661749B64b2ADc78505c3e1AB3",
22
22
  ZORA_RECIPIENT: "0x7bf90111Ad7C22bec9E9dFf8A01A44713CC1b1B6",
23
23
  WETH: "0x4200000000000000000000000000000000000006",
24
+ UNISWAP_V4_POOL_MANAGER: "0x498581ff718922c3f8e6a244956af099b2652b2b",
25
+ UNISWAP_V4_POSITION_MANAGER: "0x7c5f5a4bbd8fd63184577525326123b519429bdc",
26
+ UNISWAP_PERMIT2: "0x000000000022D473030F116dDEE9F6B43aC78BA3",
27
+ UNISWAP_UNIVERSAL_ROUTER: "0x6ff5693b99212da76ad316178a184ab56d299b43",
24
28
  },
25
29
  42161: {
26
30
  NONFUNGIBLE_POSITION_MANAGER: "0xC36442b4a4522E871399CD717aBDD847Ab11FE88",
@@ -44,6 +48,10 @@ export const chainConfigs = {
44
48
  PROXY_ADMIN: "0x5F14C23983c9e0840Dc60dA880349622f0785420",
45
49
  ZORA_RECIPIENT: "0x5F14C23983c9e0840Dc60dA880349622f0785420",
46
50
  WETH: "0x4200000000000000000000000000000000000006",
51
+ UNISWAP_V4_POOL_MANAGER: "0x05E73354cFDd6745C338b50BcFDfA3Aa6fA03408",
52
+ UNISWAP_V4_POSITION_MANAGER: "0x4b2c77d209d3405f41a037ec6c77f7f5b8e2ca80",
53
+ UNISWAP_PERMIT2: "0x000000000022D473030F116dDEE9F6B43aC78BA3",
54
+ UNISWAP_UNIVERSAL_ROUTER: "0x492E6456D9528771018DeB9E87ef7750EF184104",
47
55
  },
48
56
  421614: {
49
57
  NONFUNGIBLE_POSITION_MANAGER: "0x6b2937Bde17889EDCf8fbD8dE31C3C2a70Bc4d65",
@@ -3,8 +3,8 @@
3
3
  //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
4
4
 
5
5
  /**
6
- * - [__View Contract on Base Basescan__](https://basescan.org/address/0x264b731e40691Da5B40aA63AC5c3B7F7DAafA721)
7
- * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x6B78be0808262b1d5E9B1eeDfE448aDCE2C637a8)
6
+ * - [__View Contract on Base Basescan__](https://basescan.org/address/0x5Ee02936e2A92133aC66B5235cAf4ad59E25632d)
7
+ * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xe7D871cD216f780b1B66e2652Dc5072ebB71C14F)
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/0x264b731e40691Da5B40aA63AC5c3B7F7DAafA721)
68
- * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x6B78be0808262b1d5E9B1eeDfE448aDCE2C637a8)
67
+ * - [__View Contract on Base Basescan__](https://basescan.org/address/0x5Ee02936e2A92133aC66B5235cAf4ad59E25632d)
68
+ * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xe7D871cD216f780b1B66e2652Dc5072ebB71C14F)
69
69
  */
70
70
  export const buySupplyWithSwapRouterHookAddress = {
71
- 8453: '0x264b731e40691Da5B40aA63AC5c3B7F7DAafA721',
72
- 84532: '0x6B78be0808262b1d5E9B1eeDfE448aDCE2C637a8',
71
+ 8453: '0x5Ee02936e2A92133aC66B5235cAf4ad59E25632d',
72
+ 84532: '0xe7D871cD216f780b1B66e2652Dc5072ebB71C14F',
73
73
  } as const
74
74
 
75
75
  /**
76
- * - [__View Contract on Base Basescan__](https://basescan.org/address/0x264b731e40691Da5B40aA63AC5c3B7F7DAafA721)
77
- * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x6B78be0808262b1d5E9B1eeDfE448aDCE2C637a8)
76
+ * - [__View Contract on Base Basescan__](https://basescan.org/address/0x5Ee02936e2A92133aC66B5235cAf4ad59E25632d)
77
+ * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0xe7D871cD216f780b1B66e2652Dc5072ebB71C14F)
78
78
  */
79
79
  export const buySupplyWithSwapRouterHookConfig = {
80
80
  address: buySupplyWithSwapRouterHookAddress,
@@ -2140,13 +2140,15 @@ export const coinABI = [
2140
2140
  //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2141
2141
 
2142
2142
  /**
2143
- * - [__View Contract on Base Basescan__](https://basescan.org/address/0x777777751622c0d3258f214F9DF38E35BF45baF3)
2144
- * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x777777751622c0d3258f214F9DF38E35BF45baF3)
2143
+ * [__View Contract on Base Basescan__](https://basescan.org/address/0x8A7d3ae26c4De36A24BcC892953e6c3823bBFA85)
2145
2144
  */
2146
2145
  export const coinFactoryABI = [
2147
2146
  {
2148
2147
  type: 'constructor',
2149
- inputs: [{ name: '_coinImpl', internalType: 'address', type: 'address' }],
2148
+ inputs: [
2149
+ { name: '_coinImpl', internalType: 'address', type: 'address' },
2150
+ { name: '_coinV4Impl', internalType: 'address', type: 'address' },
2151
+ ],
2150
2152
  stateMutability: 'nonpayable',
2151
2153
  },
2152
2154
  {
@@ -2163,6 +2165,13 @@ export const coinFactoryABI = [
2163
2165
  outputs: [{ name: '', internalType: 'address', type: 'address' }],
2164
2166
  stateMutability: 'view',
2165
2167
  },
2168
+ {
2169
+ type: 'function',
2170
+ inputs: [],
2171
+ name: 'coinV4Impl',
2172
+ outputs: [{ name: '', internalType: 'address', type: 'address' }],
2173
+ stateMutability: 'view',
2174
+ },
2166
2175
  {
2167
2176
  type: 'function',
2168
2177
  inputs: [],
@@ -2347,6 +2356,70 @@ export const coinFactoryABI = [
2347
2356
  ],
2348
2357
  name: 'CoinCreated',
2349
2358
  },
2359
+ {
2360
+ type: 'event',
2361
+ anonymous: false,
2362
+ inputs: [
2363
+ {
2364
+ name: 'caller',
2365
+ internalType: 'address',
2366
+ type: 'address',
2367
+ indexed: true,
2368
+ },
2369
+ {
2370
+ name: 'payoutRecipient',
2371
+ internalType: 'address',
2372
+ type: 'address',
2373
+ indexed: true,
2374
+ },
2375
+ {
2376
+ name: 'platformReferrer',
2377
+ internalType: 'address',
2378
+ type: 'address',
2379
+ indexed: true,
2380
+ },
2381
+ {
2382
+ name: 'currency',
2383
+ internalType: 'address',
2384
+ type: 'address',
2385
+ indexed: false,
2386
+ },
2387
+ { name: 'uri', internalType: 'string', type: 'string', indexed: false },
2388
+ { name: 'name', internalType: 'string', type: 'string', indexed: false },
2389
+ {
2390
+ name: 'symbol',
2391
+ internalType: 'string',
2392
+ type: 'string',
2393
+ indexed: false,
2394
+ },
2395
+ {
2396
+ name: 'coin',
2397
+ internalType: 'address',
2398
+ type: 'address',
2399
+ indexed: false,
2400
+ },
2401
+ {
2402
+ name: 'poolKey',
2403
+ internalType: 'struct PoolKey',
2404
+ type: 'tuple',
2405
+ components: [
2406
+ { name: 'currency0', internalType: 'Currency', type: 'address' },
2407
+ { name: 'currency1', internalType: 'Currency', type: 'address' },
2408
+ { name: 'fee', internalType: 'uint24', type: 'uint24' },
2409
+ { name: 'tickSpacing', internalType: 'int24', type: 'int24' },
2410
+ { name: 'hooks', internalType: 'contract IHooks', type: 'address' },
2411
+ ],
2412
+ indexed: false,
2413
+ },
2414
+ {
2415
+ name: 'version',
2416
+ internalType: 'string',
2417
+ type: 'string',
2418
+ indexed: false,
2419
+ },
2420
+ ],
2421
+ name: 'CoinCreatedV4',
2422
+ },
2350
2423
  {
2351
2424
  type: 'event',
2352
2425
  anonymous: false,
@@ -2416,6 +2489,7 @@ export const coinFactoryABI = [
2416
2489
  { type: 'error', inputs: [], name: 'FailedInnerCall' },
2417
2490
  { type: 'error', inputs: [], name: 'InvalidHook' },
2418
2491
  { type: 'error', inputs: [], name: 'InvalidInitialization' },
2492
+ { type: 'error', inputs: [], name: 'InvalidPoolVersion' },
2419
2493
  { type: 'error', inputs: [], name: 'NotInitializing' },
2420
2494
  {
2421
2495
  type: 'error',
@@ -2450,17 +2524,14 @@ export const coinFactoryABI = [
2450
2524
  ] as const
2451
2525
 
2452
2526
  /**
2453
- * - [__View Contract on Base Basescan__](https://basescan.org/address/0x777777751622c0d3258f214F9DF38E35BF45baF3)
2454
- * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x777777751622c0d3258f214F9DF38E35BF45baF3)
2527
+ * [__View Contract on Base Basescan__](https://basescan.org/address/0x8A7d3ae26c4De36A24BcC892953e6c3823bBFA85)
2455
2528
  */
2456
2529
  export const coinFactoryAddress = {
2457
- 8453: '0x777777751622c0d3258f214F9DF38E35BF45baF3',
2458
- 84532: '0x777777751622c0d3258f214F9DF38E35BF45baF3',
2530
+ 8453: '0x8A7d3ae26c4De36A24BcC892953e6c3823bBFA85',
2459
2531
  } as const
2460
2532
 
2461
2533
  /**
2462
- * - [__View Contract on Base Basescan__](https://basescan.org/address/0x777777751622c0d3258f214F9DF38E35BF45baF3)
2463
- * - [__View Contract on Base Sepolia Basescan__](https://sepolia.basescan.org/address/0x777777751622c0d3258f214F9DF38E35BF45baF3)
2534
+ * [__View Contract on Base Basescan__](https://basescan.org/address/0x8A7d3ae26c4De36A24BcC892953e6c3823bBFA85)
2464
2535
  */
2465
2536
  export const coinFactoryConfig = {
2466
2537
  address: coinFactoryAddress,
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2023 Zora Labs
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.