@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.
- package/.turbo/turbo-build$colon$js.log +24 -24
- package/CHANGELOG.md +6 -0
- package/dist/{ccip-C5WONSSK.js → ccip-3JNBGYOD.js} +2 -2
- package/dist/{chunk-NPNNGXR4.js → chunk-4DQDZNUA.js} +2 -3
- package/dist/encoding.d.ts +0 -55
- package/dist/encoding.d.ts.map +1 -1
- package/dist/generated/wagmi.d.ts +5635 -6845
- package/dist/generated/wagmi.d.ts.map +1 -1
- package/dist/index.cjs +562 -1135
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +572 -1070
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/encoding.ts +1 -124
- package/src/generated/wagmi.ts +390 -852
- /package/dist/{ccip-C5WONSSK.js.map → ccip-3JNBGYOD.js.map} +0 -0
- /package/dist/{chunk-NPNNGXR4.js.map → chunk-4DQDZNUA.js.map} +0 -0
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
|
|
2
|
-
> @zoralabs/protocol-deployments@0.6.
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
|
18
|
-
src/index.ts
|
|
19
|
-
src/typedData.ts
|
|
20
|
-
src/types.ts
|
|
21
|
-
scripts/bundle-chainConfigs.ts
|
|
22
|
-
scripts/bundle-configs.ts
|
|
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.
|
|
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
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -32,19 +32,19 @@ scripts/bundle-configs.ts 36ms (unchanged)
|
|
|
32
32
|
[34mCLI[39m Cleaning output folder
|
|
33
33
|
[34mCJS[39m Build start
|
|
34
34
|
[34mESM[39m Build start
|
|
35
|
-
[
|
|
36
|
-
[
|
|
37
|
-
[32mCJS[39m ⚡️ Build success in 740ms
|
|
38
|
-
[32mESM[39m [1mdist/secp256k1-QZA5SALG.js [22m[32m80.13 KB[39m
|
|
39
|
-
[32mESM[39m [1mdist/chunk-NPNNGXR4.js [22m[32m136.42 KB[39m
|
|
40
|
-
[32mESM[39m [1mdist/_esm-AN6HMJZC.js [22m[32m132.93 KB[39m
|
|
35
|
+
[32mESM[39m [1mdist/ccip-3JNBGYOD.js [22m[32m290.00 B[39m
|
|
36
|
+
[32mESM[39m [1mdist/chunk-4DQDZNUA.js [22m[32m136.40 KB[39m
|
|
41
37
|
[32mESM[39m [1mdist/chunk-PR4QN5HX.js [22m[32m1.87 KB[39m
|
|
42
|
-
[32mESM[39m [1mdist/
|
|
43
|
-
[32mESM[39m [1mdist/
|
|
44
|
-
[32mESM[39m [1mdist/
|
|
38
|
+
[32mESM[39m [1mdist/_esm-AN6HMJZC.js [22m[32m132.93 KB[39m
|
|
39
|
+
[32mESM[39m [1mdist/secp256k1-QZA5SALG.js [22m[32m80.13 KB[39m
|
|
40
|
+
[32mESM[39m [1mdist/index.js [22m[32m547.14 KB[39m
|
|
41
|
+
[32mESM[39m [1mdist/ccip-3JNBGYOD.js.map [22m[32m71.00 B[39m
|
|
45
42
|
[32mESM[39m [1mdist/chunk-PR4QN5HX.js.map [22m[32m71.00 B[39m
|
|
46
43
|
[32mESM[39m [1mdist/_esm-AN6HMJZC.js.map [22m[32m212.33 KB[39m
|
|
47
|
-
[32mESM[39m [1mdist/
|
|
48
|
-
[32mESM[39m [1mdist/
|
|
49
|
-
[32mESM[39m [1mdist/index.js.map [22m[32m1.
|
|
50
|
-
[32mESM[39m ⚡️ Build success in
|
|
44
|
+
[32mESM[39m [1mdist/secp256k1-QZA5SALG.js.map [22m[32m203.10 KB[39m
|
|
45
|
+
[32mESM[39m [1mdist/chunk-4DQDZNUA.js.map [22m[32m393.76 KB[39m
|
|
46
|
+
[32mESM[39m [1mdist/index.js.map [22m[32m1.03 MB[39m
|
|
47
|
+
[32mESM[39m ⚡️ Build success in 721ms
|
|
48
|
+
[32mCJS[39m [1mdist/index.cjs [22m[32m629.19 KB[39m
|
|
49
|
+
[32mCJS[39m [1mdist/index.cjs.map [22m[32m1.27 MB[39m
|
|
50
|
+
[32mCJS[39m ⚡️ 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-
|
|
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-
|
|
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-
|
|
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-
|
|
3939
|
+
//# sourceMappingURL=chunk-4DQDZNUA.js.map
|
package/dist/encoding.d.ts
CHANGED
|
@@ -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
|
package/dist/encoding.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"encoding.d.ts","sourceRoot":"","sources":["../src/encoding.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,
|
|
1
|
+
{"version":3,"file":"encoding.d.ts","sourceRoot":"","sources":["../src/encoding.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EAIR,MAAM,MAAM,CAAC;AAGd,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAE3B,6FAA6F;AAC7F,eAAO,MAAM,6BAA6B;;;;;;;;;;;;EAIhC,CAAC;AAEX,eAAO,MAAM,wCAAwC;;;;;;;;EAG3C,CAAC;AAEX,eAAO,MAAM,2CAA2C;;;;;;;;EAG9C,CAAC;AAEX;;;;;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,kBAcA,CAAC"}
|