@zoralabs/protocol-deployments 0.5.6-PRE.1 → 0.5.6-PRE.4

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.
@@ -1,24 +1,24 @@
1
1
 
2
2
  
3
- > @zoralabs/protocol-deployments@0.5.6-PRE.0 build /Users/danovedzora/source/zora-protocol/packages/protocol-deployments
3
+ > @zoralabs/protocol-deployments@0.5.5 build /Users/danovedzora/source/zora-protocol/packages/protocol-deployments
4
4
  > pnpm bundle-configs && pnpm copy-generated && tsup
5
5
 
6
6
 
7
- > @zoralabs/protocol-deployments@0.5.6-PRE.0 bundle-configs /Users/danovedzora/source/zora-protocol/packages/protocol-deployments
7
+ > @zoralabs/protocol-deployments@0.5.5 bundle-configs /Users/danovedzora/source/zora-protocol/packages/protocol-deployments
8
8
  > tsx scripts/bundle-configs.ts && pnpm prettier:write
9
9
 
10
10
 
11
- > @zoralabs/protocol-deployments@0.5.6-PRE.0 prettier:write /Users/danovedzora/source/zora-protocol/packages/protocol-deployments
11
+ > @zoralabs/protocol-deployments@0.5.5 prettier:write /Users/danovedzora/source/zora-protocol/packages/protocol-deployments
12
12
  > prettier --write 'src/**/*.ts' 'scripts/*'
13
13
 
14
- src/encoding.tssrc/encoding.ts 62ms (unchanged)
14
+ src/encoding.tssrc/encoding.ts 49ms (unchanged)
15
15
  src/index.tssrc/index.ts 2ms (unchanged)
16
- src/typedData.tssrc/typedData.ts 52ms (unchanged)
17
- src/types.tssrc/types.ts 12ms (unchanged)
18
- scripts/bundle-chainConfigs.tsscripts/bundle-chainConfigs.ts 5ms (unchanged)
16
+ src/typedData.tssrc/typedData.ts 38ms (unchanged)
17
+ src/types.tssrc/types.ts 9ms (unchanged)
18
+ scripts/bundle-chainConfigs.tsscripts/bundle-chainConfigs.ts 3ms (unchanged)
19
19
  scripts/bundle-configs.tsscripts/bundle-configs.ts 8ms (unchanged)
20
20
 
21
- > @zoralabs/protocol-deployments@0.5.6-PRE.0 copy-generated /Users/danovedzora/source/zora-protocol/packages/protocol-deployments
21
+ > @zoralabs/protocol-deployments@0.5.5 copy-generated /Users/danovedzora/source/zora-protocol/packages/protocol-deployments
22
22
  > cp ../protocol-deployments-gen/generated/wagmi.ts src/generated/wagmi.ts
23
23
 
24
24
  CLI Building entry: src/index.ts
@@ -29,19 +29,19 @@ scripts/bundle-configs.tsscripts/bundle-configs.ts 8ms (unchan
29
29
  CLI Cleaning output folder
30
30
  CJS Build start
31
31
  ESM Build start
32
- CJS dist/index.cjs 558.64 KB
33
- CJS dist/index.cjs.map 1.15 MB
34
- CJS ⚡️ Build success in 147ms
35
32
  ESM dist/chunk-NPNNGXR4.js 136.42 KB
33
+ ESM dist/secp256k1-QZA5SALG.js 80.13 KB
36
34
  ESM dist/chunk-PR4QN5HX.js 1.87 KB
37
- ESM dist/_esm-AN6HMJZC.js 132.93 KB
38
35
  ESM dist/ccip-C5WONSSK.js 290.00 B
39
- ESM dist/secp256k1-QZA5SALG.js 80.13 KB
40
- ESM dist/index.js 474.37 KB
41
- ESM dist/ccip-C5WONSSK.js.map 71.00 B
42
- ESM dist/chunk-PR4QN5HX.js.map 71.00 B
36
+ ESM dist/index.js 492.34 KB
37
+ ESM dist/_esm-AN6HMJZC.js 132.93 KB
38
+ ESM dist/secp256k1-QZA5SALG.js.map 203.10 KB
43
39
  ESM dist/chunk-NPNNGXR4.js.map 393.76 KB
40
+ ESM dist/chunk-PR4QN5HX.js.map 71.00 B
41
+ ESM dist/ccip-C5WONSSK.js.map 71.00 B
44
42
  ESM dist/_esm-AN6HMJZC.js.map 212.33 KB
45
- ESM dist/secp256k1-QZA5SALG.js.map 203.10 KB
46
- ESM dist/index.js.map 924.88 KB
47
- ESM ⚡️ Build success in 148ms
43
+ ESM dist/index.js.map 959.32 KB
44
+ ESM ⚡️ Build success in 150ms
45
+ CJS dist/index.cjs 576.88 KB
46
+ CJS dist/index.cjs.map 1.18 MB
47
+ CJS ⚡️ Build success in 151ms
package/CHANGELOG.md CHANGED
@@ -4,7 +4,8 @@
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - 8e833a05: Published dev coin factory on base mainnet
7
+ - bc20f1e9: Published pool config encoding helper
8
+ - 9ecacadf: Published dev coin factory on base mainnet
8
9
 
9
10
  ## 0.5.5
10
11
 
@@ -62,7 +62,7 @@ export declare const encodeBuySupplyWithSingleHopSwapRouterHookCall: ({ buyRecip
62
62
  chainId: keyof typeof buySupplyWithSwapRouterHookAddress;
63
63
  ethValue?: bigint;
64
64
  }) => {
65
- hook: "0x5Ee02936e2A92133aC66B5235cAf4ad59E25632d" | "0xe7D871cD216f780b1B66e2652Dc5072ebB71C14F";
65
+ hook: "0x5Ee02936e2A92133aC66B5235cAf4ad59E25632d" | "0x961EDdCA4150FC9FBFecd2D6876e1cF770919918";
66
66
  hookData: `0x${string}`;
67
67
  value: bigint | undefined;
68
68
  };
@@ -82,7 +82,7 @@ export declare const encodeBuySupplyWithMultiHopSwapRouterHookCall: ({ buyRecipi
82
82
  chainId: keyof typeof buySupplyWithSwapRouterHookAddress;
83
83
  ethValue?: bigint;
84
84
  }) => {
85
- hook: "0x5Ee02936e2A92133aC66B5235cAf4ad59E25632d" | "0xe7D871cD216f780b1B66e2652Dc5072ebB71C14F";
85
+ hook: "0x5Ee02936e2A92133aC66B5235cAf4ad59E25632d" | "0x961EDdCA4150FC9FBFecd2D6876e1cF770919918";
86
86
  hookData: `0x${string}`;
87
87
  value: bigint | undefined;
88
88
  };
@@ -96,5 +96,29 @@ export declare const decodeBuySupplyWithSwapRouterHookReturn: (returnData: Hex)
96
96
  amountCurrency: bigint;
97
97
  coinsPurchased: bigint;
98
98
  };
99
+ /**
100
+ * Encodes the pool configuration data for creating and initializing a coin's liquidity pool,
101
+ * using a multi-curve setup.
102
+ *
103
+ * @param params - The pool configuration parameters.
104
+ * @param params.version - The version of the pool configuration.
105
+ * 2 for a UniswapV3 pool, or 4 for Doppler/Uniswap V4-style pools.
106
+ * @param params.currency - The address of the currency token (e.g., WETH) to be paired with the coin.
107
+ * @param params.tickLower - An array of numbers representing the lower tick boundaries for each liquidity curve.
108
+ * @param params.tickUpper - An array of numbers representing the upper tick boundaries for each liquidity curve.
109
+ * @param params.numDiscoveryPositions - An array of numbers, where each number specifies the quantity of discrete
110
+ * liquidity positions to be created within the corresponding curve's discovery phase.
111
+ * @param params.maxDiscoverySupplyShare - An array of bigints, where each bigint represents the maximum share of the coin's
112
+ * total supply allocated to the discovery phase of the corresponding curve.
113
+ * This is typically a WAD-scaled value (i.e., scaled by 1e18).
114
+ * @returns The ABI-encoded pool configuration for setting
115
+ */
116
+ export declare const encodeMultiCurvePoolConfig: ({ currency, tickLower, tickUpper, numDiscoveryPositions, maxDiscoverySupplyShare, }: {
117
+ currency: Address;
118
+ tickLower: number[];
119
+ tickUpper: number[];
120
+ numDiscoveryPositions: number[];
121
+ maxDiscoverySupplyShare: bigint[];
122
+ }) => `0x${string}`;
99
123
  export {};
100
124
  //# sourceMappingURL=encoding.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"encoding.d.ts","sourceRoot":"","sources":["../src/encoding.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EAIR,MAAM,MAAM,CAAC;AACd,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,kCAAkC,EAAE,MAAM,mBAAmB,CAAC;AAEvE,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAC3B,OAAO,EAAE,6BAA6B,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE5E,6FAA6F;AAC7F,eAAO,MAAM,6BAA6B;;;;;;;;;;;;EAIhC,CAAC;AAEX,eAAO,MAAM,wCAAwC;;;;;;;;EAG3C,CAAC;AAEX,eAAO,MAAM,2CAA2C;;;;;;;;EAG9C,CAAC;AAEX;;;;;;;GAOG;AACH,eAAO,MAAM,yCAAyC,GACpD,cAAc,OAAO,EACrB,gBAAgB,GAAG,kBAMpB,CA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