@zoralabs/protocol-deployments 0.6.3 → 0.6.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,27 +1,27 @@
1
1
 
2
- > @zoralabs/protocol-deployments@0.6.3 build:js /home/runner/work/zora-protocol-private/zora-protocol-private/packages/protocol-deployments
2
+ > @zoralabs/protocol-deployments@0.6.4 build:js /home/runner/work/zora-protocol-private/zora-protocol-private/packages/protocol-deployments
3
3
  > pnpm run build
4
4
 
5
5
 
6
- > @zoralabs/protocol-deployments@0.6.3 build /home/runner/work/zora-protocol-private/zora-protocol-private/packages/protocol-deployments
6
+ > @zoralabs/protocol-deployments@0.6.4 build /home/runner/work/zora-protocol-private/zora-protocol-private/packages/protocol-deployments
7
7
  > pnpm bundle-configs && pnpm copy-generated && tsup
8
8
 
9
9
 
10
- > @zoralabs/protocol-deployments@0.6.3 bundle-configs /home/runner/work/zora-protocol-private/zora-protocol-private/packages/protocol-deployments
10
+ > @zoralabs/protocol-deployments@0.6.4 bundle-configs /home/runner/work/zora-protocol-private/zora-protocol-private/packages/protocol-deployments
11
11
  > tsx scripts/bundle-configs.ts && pnpm prettier:write
12
12
 
13
13
 
14
- > @zoralabs/protocol-deployments@0.6.3 prettier:write /home/runner/work/zora-protocol-private/zora-protocol-private/packages/protocol-deployments
14
+ > @zoralabs/protocol-deployments@0.6.4 prettier:write /home/runner/work/zora-protocol-private/zora-protocol-private/packages/protocol-deployments
15
15
  > prettier --write 'src/**/*.ts' 'scripts/*'
16
16
 
17
- src/encoding.ts 95ms (unchanged)
18
- src/index.ts 4ms (unchanged)
19
- src/typedData.ts 164ms (unchanged)
20
- src/types.ts 45ms (unchanged)
21
- scripts/bundle-chainConfigs.ts 27ms (unchanged)
22
- scripts/bundle-configs.ts 36ms (unchanged)
17
+ src/encoding.ts 72ms (unchanged)
18
+ src/index.ts 3ms (unchanged)
19
+ src/typedData.ts 161ms (unchanged)
20
+ src/types.ts 41ms (unchanged)
21
+ scripts/bundle-chainConfigs.ts 21ms (unchanged)
22
+ scripts/bundle-configs.ts 50ms (unchanged)
23
23
 
24
- > @zoralabs/protocol-deployments@0.6.3 copy-generated /home/runner/work/zora-protocol-private/zora-protocol-private/packages/protocol-deployments
24
+ > @zoralabs/protocol-deployments@0.6.4 copy-generated /home/runner/work/zora-protocol-private/zora-protocol-private/packages/protocol-deployments
25
25
  > cp ../protocol-deployments-gen/generated/wagmi.ts src/generated/wagmi.ts
26
26
 
27
27
  CLI Building entry: src/index.ts
@@ -32,19 +32,19 @@ scripts/bundle-configs.ts 36ms (unchanged)
32
32
  CLI Cleaning output folder
33
33
  CJS Build start
34
34
  ESM Build start
35
- CJS dist/index.cjs 645.29 KB
36
- CJS dist/index.cjs.map 1.30 MB
37
- CJS ⚡️ Build success in 740ms
38
- ESM dist/secp256k1-QZA5SALG.js 80.13 KB
39
- ESM dist/chunk-NPNNGXR4.js 136.42 KB
40
- ESM dist/_esm-AN6HMJZC.js 132.93 KB
35
+ ESM dist/ccip-3JNBGYOD.js 290.00 B
36
+ ESM dist/chunk-4DQDZNUA.js 136.40 KB
41
37
  ESM dist/chunk-PR4QN5HX.js 1.87 KB
42
- ESM dist/ccip-C5WONSSK.js 290.00 B
43
- ESM dist/index.js 559.99 KB
44
- ESM dist/secp256k1-QZA5SALG.js.map 203.10 KB
38
+ ESM dist/_esm-AN6HMJZC.js 132.93 KB
39
+ ESM dist/secp256k1-QZA5SALG.js 80.13 KB
40
+ ESM dist/index.js 547.14 KB
41
+ ESM dist/ccip-3JNBGYOD.js.map 71.00 B
45
42
  ESM dist/chunk-PR4QN5HX.js.map 71.00 B
46
43
  ESM dist/_esm-AN6HMJZC.js.map 212.33 KB
47
- ESM dist/chunk-NPNNGXR4.js.map 393.76 KB
48
- ESM dist/ccip-C5WONSSK.js.map 71.00 B
49
- ESM dist/index.js.map 1.06 MB
50
- ESM ⚡️ Build success in 744ms
44
+ ESM dist/secp256k1-QZA5SALG.js.map 203.10 KB
45
+ ESM dist/chunk-4DQDZNUA.js.map 393.76 KB
46
+ ESM dist/index.js.map 1.03 MB
47
+ ESM ⚡️ Build success in 721ms
48
+ CJS dist/index.cjs 629.19 KB
49
+ CJS dist/index.cjs.map 1.27 MB
50
+ CJS ⚡️ Build success in 723ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @zoralabs/protocol-deployments
2
2
 
3
+ ## 0.6.4
4
+
5
+ ### Patch Changes
6
+
7
+ - 3c274d9d: Created a buy supply with v4 hook, for buying initial supply of a creator coin, supporting doing a v3 and v4 swap to buy the creator coin. updated the encoding function for buying initial supply to work with the v3 to v4 swap
8
+
3
9
  ## 0.6.3
4
10
 
5
11
  ### Patch Changes
@@ -3,7 +3,7 @@ import {
3
3
  offchainLookup,
4
4
  offchainLookupAbiItem,
5
5
  offchainLookupSignature
6
- } from "./chunk-NPNNGXR4.js";
6
+ } from "./chunk-4DQDZNUA.js";
7
7
  import "./chunk-PR4QN5HX.js";
8
8
  export {
9
9
  ccipRequest,
@@ -11,4 +11,4 @@ export {
11
11
  offchainLookupAbiItem,
12
12
  offchainLookupSignature
13
13
  };
14
- //# sourceMappingURL=ccip-C5WONSSK.js.map
14
+ //# sourceMappingURL=ccip-3JNBGYOD.js.map
@@ -3650,7 +3650,7 @@ async function call(client, args) {
3650
3650
  return { data: response };
3651
3651
  } catch (err) {
3652
3652
  const data2 = getRevertErrorData(err);
3653
- const { offchainLookup: offchainLookup2, offchainLookupSignature: offchainLookupSignature2 } = await import("./ccip-C5WONSSK.js");
3653
+ const { offchainLookup: offchainLookup2, offchainLookupSignature: offchainLookupSignature2 } = await import("./ccip-3JNBGYOD.js");
3654
3654
  if (client.ccipRead !== false && data2?.slice(0, 10) === offchainLookupSignature2 && to)
3655
3655
  return { data: await offchainLookup2(client, { data: data2, to }) };
3656
3656
  if (deploylessCall && data2?.slice(0, 10) === "0x101bb98d")
@@ -3924,7 +3924,6 @@ export {
3924
3924
  keccak256,
3925
3925
  encodeAbiParameters,
3926
3926
  getAbiItem,
3927
- encodeFunctionData,
3928
3927
  decodeAbiParameters,
3929
3928
  etherUnits,
3930
3929
  offchainLookupSignature,
@@ -3937,4 +3936,4 @@ export {
3937
3936
  @noble/hashes/esm/utils.js:
3938
3937
  (*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
3939
3938
  */
3940
- //# sourceMappingURL=chunk-NPNNGXR4.js.map
3939
+ //# sourceMappingURL=chunk-4DQDZNUA.js.map
@@ -1,8 +1,5 @@
1
1
  import { Address } from "viem";
2
- import { uniswapV3SwapRouterABI } from "./generated/wagmi";
3
- import { buySupplyWithSwapRouterHookAddress } from "./generated/wagmi";
4
2
  import { Hex } from "viem";
5
- import { AbiParametersToPrimitiveTypes, ExtractAbiFunction } from "abitype";
6
3
  /** ABI parameters for performing a SafeTransferFrom based swap when selling on secondary. */
7
4
  export declare const safeTransferSwapAbiParameters: readonly [{
8
5
  readonly name: "recipient";
@@ -35,57 +32,6 @@ export declare const buySupplyWithSwapRouterHookReturnParameters: readonly [{
35
32
  readonly internalType: "uint256";
36
33
  readonly type: "uint256";
37
34
  }];
38
- /**
39
- * Encodes the calldata for the BuySupplyWithSwapRouterHook.
40
- *
41
- * @param buyRecipient - The address of the recipient of the coins that are purchased.
42
- * @param swapRouterCall - The calldata to send for swapping on the swap router. For the call, the recipient of the swap
43
- * must be the hook contract.
44
- * @returns The encoded calldata.
45
- */
46
- export declare const encodeBuySupplyWithSwapRouterHookCalldata: (buyRecipient: Address, swapRouterCall: Hex) => `0x${string}`;
47
- type ExactInputSingleParams = AbiParametersToPrimitiveTypes<ExtractAbiFunction<typeof uniswapV3SwapRouterABI, "exactInputSingle">["inputs"]>[0];
48
- type ExactInputParams = AbiParametersToPrimitiveTypes<ExtractAbiFunction<typeof uniswapV3SwapRouterABI, "exactInput">["inputs"]>[0];
49
- /**
50
- * Encodes the call data for buying supply with a single-hop swap router hook.
51
- * This function creates the hook call and hook data needed to buy Coin supply using ETH through a Uniswap V3 single-hop swap.
52
- *
53
- * @param buyRecipient - The address that will receive the coins purchased
54
- * @param exactInputSingleParams - The parameters for the exactInputSingle function on the swap router (recipient is omitted as it will be set to the hook address)
55
- * @param chainId - The chain ID to use for getting the hook address
56
- * @param ethValue - Optional amount of ETH to send with the call to the swap router
57
- * @returns Object containing the encoded hook call, hook data, and ETH value
58
- */
59
- export declare const encodeBuySupplyWithSingleHopSwapRouterHookCall: ({ buyRecipient, exactInputSingleParams, chainId, ethValue, }: {
60
- buyRecipient: Address;
61
- exactInputSingleParams: Omit<ExactInputSingleParams, "recipient">;
62
- chainId: keyof typeof buySupplyWithSwapRouterHookAddress;
63
- ethValue?: bigint;
64
- }) => {
65
- hook: "0xc90e349360C43a0217CEF289f231C66D4748960F" | "0xE4Ec8cE893Cd41965b1aE27F1ad9798F207427aE";
66
- hookData: `0x${string}`;
67
- value: bigint | undefined;
68
- };
69
- /**
70
- * Encodes the call data for buying supply with a multi-hop swap router hook.
71
- * This function creates the hook call and hook data needed to buy Coin supply using ETH through a Uniswap V3 multi-hop swap.
72
- *
73
- * @param buyRecipient - The address that will receive the coins purchased
74
- * @param exactInputParams - The parameters for the exactInput function on the swap router (recipient is omitted as it will be set to the hook address)
75
- * @param chainId - The chain ID to use for getting the hook address
76
- * @param ethValue - Optional amount of ETH to send with the call to the swap router
77
- * @returns Object containing the encoded hook call, hook data, and ETH value
78
- */
79
- export declare const encodeBuySupplyWithMultiHopSwapRouterHookCall: ({ buyRecipient, exactInputParams, chainId, ethValue, }: {
80
- buyRecipient: Address;
81
- exactInputParams: Omit<ExactInputParams, "recipient">;
82
- chainId: keyof typeof buySupplyWithSwapRouterHookAddress;
83
- ethValue?: bigint;
84
- }) => {
85
- hook: "0xc90e349360C43a0217CEF289f231C66D4748960F" | "0xE4Ec8cE893Cd41965b1aE27F1ad9798F207427aE";
86
- hookData: `0x${string}`;
87
- value: bigint | undefined;
88
- };
89
35
  /**
90
36
  * Decodes the return data from the BuySupplyWithSwapRouterHook.
91
37
  *
@@ -120,5 +66,4 @@ export declare const encodeMultiCurvePoolConfig: ({ currency, tickLower, tickUpp
120
66
  numDiscoveryPositions: number[];
121
67
  maxDiscoverySupplyShare: bigint[];
122
68
  }) => `0x${string}`;
123
- export {};
124
69
  //# 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,EAKR,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;AAEF,KAAK,sBAAsB,GAAG,6BAA6B,CACzD,kBAAkB,CAChB,OAAO,sBAAsB,EAC7B,kBAAkB,CACnB,CAAC,QAAQ,CAAC,CACZ,CAAC,CAAC,CAAC,CAAC;AAEL,KAAK,gBAAgB,GAAG,6BAA6B,CACnD,kBAAkB,CAAC,OAAO,sBAAsB,EAAE,YAAY,CAAC,CAAC,QAAQ,CAAC,CAC1E,CAAC,CAAC,CAAC,CAAC;AAEL;;;;;;;;;GASG;AACH,eAAO,MAAM,8CAA8C,GAAI,8DAK5D;IACD,YAAY,EAAE,OAAO,CAAC;IACtB,sBAAsB,EAAE,IAAI,CAAC,sBAAsB,EAAE,WAAW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