@zoralabs/protocol-deployments 0.5.6-PRE.3 → 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 50ms (unchanged)
14
+ src/encoding.tssrc/encoding.ts 49ms (unchanged)
15
15
  src/index.tssrc/index.ts 2ms (unchanged)
16
- src/typedData.tssrc/typedData.ts 39ms (unchanged)
16
+ src/typedData.tssrc/typedData.ts 38ms (unchanged)
17
17
  src/types.tssrc/types.ts 9ms (unchanged)
18
- scripts/bundle-chainConfigs.tsscripts/bundle-chainConfigs.ts 5ms (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 576.77 KB
33
- CJS dist/index.cjs.map 1.18 MB
34
- CJS ⚡️ Build success in 147ms
35
- ESM dist/ccip-C5WONSSK.js 290.00 B
36
- ESM dist/_esm-AN6HMJZC.js 132.93 KB
37
32
  ESM dist/chunk-NPNNGXR4.js 136.42 KB
38
- ESM dist/chunk-PR4QN5HX.js 1.87 KB
39
33
  ESM dist/secp256k1-QZA5SALG.js 80.13 KB
40
- ESM dist/index.js 492.25 KB
41
- ESM dist/ccip-C5WONSSK.js.map 71.00 B
42
- ESM dist/chunk-PR4QN5HX.js.map 71.00 B
34
+ ESM dist/chunk-PR4QN5HX.js 1.87 KB
35
+ ESM dist/ccip-C5WONSSK.js 290.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 959.36 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
@@ -96,9 +96,6 @@ export declare const decodeBuySupplyWithSwapRouterHookReturn: (returnData: Hex)
96
96
  amountCurrency: bigint;
97
97
  coinsPurchased: bigint;
98
98
  };
99
- type UniswapV3Version = 2;
100
- type UniswapV4Version = 4;
101
- type PoolVersion = UniswapV3Version | UniswapV4Version;
102
99
  /**
103
100
  * Encodes the pool configuration data for creating and initializing a coin's liquidity pool,
104
101
  * using a multi-curve setup.
@@ -116,8 +113,7 @@ type PoolVersion = UniswapV3Version | UniswapV4Version;
116
113
  * This is typically a WAD-scaled value (i.e., scaled by 1e18).
117
114
  * @returns The ABI-encoded pool configuration for setting
118
115
  */
119
- export declare const encodePoolConfig: ({ version, currency, tickLower, tickUpper, numDiscoveryPositions, maxDiscoverySupplyShare, }: {
120
- version: PoolVersion;
116
+ export declare const encodeMultiCurvePoolConfig: ({ currency, tickLower, tickUpper, numDiscoveryPositions, maxDiscoverySupplyShare, }: {
121
117
  currency: Address;
122
118
  tickLower: number[];
123
119
  tickUpper: number[];
@@ -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,EACL,sBAAsB,EAEvB,MAAM,mBAAmB,CAAC;AAC3B,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,CAAC;AA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GASG;AACH,eAAO,MAAM,6CAA6C,GAAI,wDAK3D;IACD,YAAY,EAAE,OAAO,CAAC;IACtB,gBAAgB,EAAE,IAAI,CAAC,gBAAgB,EAAE,WAAW,CAAC,CAAC;IACtD,OAAO,EAAE,MAAM,OAAO,kCAAkC,CAAC;IAEzD,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;;;;CAqBA,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,uCAAuC,GAAI,YAAY,GAAG;;;CAUtE,CAAC;AAIF;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,0BAA0B,GAAI,qFAMxC;IACD,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,qBAAqB,EAAE,MAAM,EAAE,CAAC;IAChC,uBAAuB,EAAE,MAAM,EAAE,CAAC;CACnC,kBAaA,CAAC"}
@@ -16339,7 +16339,7 @@ export declare const poolConfigEncodingABI: readonly [{
16339
16339
  readonly internalType: "uint256[]";
16340
16340
  readonly type: "uint256[]";
16341
16341
  }];
16342
- readonly name: "encodePoolConfig";
16342
+ readonly name: "encodeMultiCurvePoolConfig";
16343
16343
  readonly outputs: readonly [{
16344
16344
  readonly name: "";
16345
16345
  readonly internalType: "bytes";
package/dist/index.cjs CHANGED
@@ -2231,7 +2231,7 @@ __export(index_exports, {
2231
2231
  encodeBuySupplyWithMultiHopSwapRouterHookCall: () => encodeBuySupplyWithMultiHopSwapRouterHookCall,
2232
2232
  encodeBuySupplyWithSingleHopSwapRouterHookCall: () => encodeBuySupplyWithSingleHopSwapRouterHookCall,
2233
2233
  encodeBuySupplyWithSwapRouterHookCalldata: () => encodeBuySupplyWithSwapRouterHookCalldata,
2234
- encodePoolConfig: () => encodePoolConfig,
2234
+ encodeMultiCurvePoolConfig: () => encodeMultiCurvePoolConfig,
2235
2235
  encodePremintConfig: () => encodePremintConfig,
2236
2236
  erc20MinterABI: () => erc20MinterABI,
2237
2237
  erc20MinterAddress: () => erc20MinterAddress,
@@ -9023,7 +9023,7 @@ var poolConfigEncodingABI = [
9023
9023
  type: "uint256[]"
9024
9024
  }
9025
9025
  ],
9026
- name: "encodePoolConfig",
9026
+ name: "encodeMultiCurvePoolConfig",
9027
9027
  outputs: [{ name: "", internalType: "bytes", type: "bytes" }],
9028
9028
  stateMutability: "pure"
9029
9029
  }
@@ -18884,8 +18884,8 @@ var decodeBuySupplyWithSwapRouterHookReturn = (returnData) => {
18884
18884
  coinsPurchased: result[1]
18885
18885
  };
18886
18886
  };
18887
- var encodePoolConfig = ({
18888
- version: version2,
18887
+ var UNISWAP_V4_MULTICURVE_POOL_VERSION = 4;
18888
+ var encodeMultiCurvePoolConfig = ({
18889
18889
  currency,
18890
18890
  tickLower,
18891
18891
  tickUpper,
@@ -18894,9 +18894,9 @@ var encodePoolConfig = ({
18894
18894
  }) => {
18895
18895
  return encodeFunctionData({
18896
18896
  abi: poolConfigEncodingABI,
18897
- functionName: "encodePoolConfig",
18897
+ functionName: "encodeMultiCurvePoolConfig",
18898
18898
  args: [
18899
- version2,
18899
+ UNISWAP_V4_MULTICURVE_POOL_VERSION,
18900
18900
  currency,
18901
18901
  tickLower,
18902
18902
  tickUpper,
@@ -19339,7 +19339,7 @@ var addresses2 = {
19339
19339
  encodeBuySupplyWithMultiHopSwapRouterHookCall,
19340
19340
  encodeBuySupplyWithSingleHopSwapRouterHookCall,
19341
19341
  encodeBuySupplyWithSwapRouterHookCalldata,
19342
- encodePoolConfig,
19342
+ encodeMultiCurvePoolConfig,
19343
19343
  encodePremintConfig,
19344
19344
  erc20MinterABI,
19345
19345
  erc20MinterAddress,