@zoralabs/protocol-deployments 0.5.6-PRE.0 → 0.5.6-PRE.3
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.log +9 -9
- package/CHANGELOG.md +2 -1
- package/dist/encoding.d.ts +30 -2
- package/dist/encoding.d.ts.map +1 -1
- package/dist/generated/wagmi.d.ts +1930 -184
- package/dist/generated/wagmi.d.ts.map +1 -1
- package/dist/index.cjs +771 -156
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +766 -156
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/encoding.ts +55 -1
- package/src/generated/wagmi.ts +760 -152
package/.turbo/turbo-build.log
CHANGED
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
> @zoralabs/protocol-deployments@0.5.6-PRE.0 prettier:write /Users/danovedzora/source/zora-protocol/packages/protocol-deployments
|
|
12
12
|
> prettier --write 'src/**/*.ts' 'scripts/*'
|
|
13
13
|
|
|
14
|
-
src/encoding.ts[2K[1G[90msrc/encoding.ts[39m
|
|
14
|
+
src/encoding.ts[2K[1G[90msrc/encoding.ts[39m 50ms (unchanged)
|
|
15
15
|
src/index.ts[2K[1G[90msrc/index.ts[39m 2ms (unchanged)
|
|
16
|
-
src/typedData.ts[2K[1G[90msrc/typedData.ts[39m
|
|
17
|
-
src/types.ts[2K[1G[90msrc/types.ts[39m
|
|
16
|
+
src/typedData.ts[2K[1G[90msrc/typedData.ts[39m 39ms (unchanged)
|
|
17
|
+
src/types.ts[2K[1G[90msrc/types.ts[39m 9ms (unchanged)
|
|
18
18
|
scripts/bundle-chainConfigs.ts[2K[1G[90mscripts/bundle-chainConfigs.ts[39m 5ms (unchanged)
|
|
19
19
|
scripts/bundle-configs.ts[2K[1G[90mscripts/bundle-configs.ts[39m 8ms (unchanged)
|
|
20
20
|
|
|
@@ -29,19 +29,19 @@ scripts/bundle-configs.ts[2K[1G[90mscripts/bundle-configs.ts[39m 8ms (unchan
|
|
|
29
29
|
[34mCLI[39m Cleaning output folder
|
|
30
30
|
[34mCJS[39m Build start
|
|
31
31
|
[34mESM[39m Build start
|
|
32
|
-
[32mCJS[39m [1mdist/index.cjs [22m[
|
|
33
|
-
[32mCJS[39m [1mdist/index.cjs.map [22m[32m1.
|
|
32
|
+
[32mCJS[39m [1mdist/index.cjs [22m[32m576.77 KB[39m
|
|
33
|
+
[32mCJS[39m [1mdist/index.cjs.map [22m[32m1.18 MB[39m
|
|
34
34
|
[32mCJS[39m ⚡️ Build success in 147ms
|
|
35
|
+
[32mESM[39m [1mdist/ccip-C5WONSSK.js [22m[32m290.00 B[39m
|
|
36
|
+
[32mESM[39m [1mdist/_esm-AN6HMJZC.js [22m[32m132.93 KB[39m
|
|
35
37
|
[32mESM[39m [1mdist/chunk-NPNNGXR4.js [22m[32m136.42 KB[39m
|
|
36
38
|
[32mESM[39m [1mdist/chunk-PR4QN5HX.js [22m[32m1.87 KB[39m
|
|
37
|
-
[32mESM[39m [1mdist/_esm-AN6HMJZC.js [22m[32m132.93 KB[39m
|
|
38
|
-
[32mESM[39m [1mdist/ccip-C5WONSSK.js [22m[32m290.00 B[39m
|
|
39
39
|
[32mESM[39m [1mdist/secp256k1-QZA5SALG.js [22m[32m80.13 KB[39m
|
|
40
|
-
[32mESM[39m [1mdist/index.js [22m[
|
|
40
|
+
[32mESM[39m [1mdist/index.js [22m[32m492.25 KB[39m
|
|
41
41
|
[32mESM[39m [1mdist/ccip-C5WONSSK.js.map [22m[32m71.00 B[39m
|
|
42
42
|
[32mESM[39m [1mdist/chunk-PR4QN5HX.js.map [22m[32m71.00 B[39m
|
|
43
43
|
[32mESM[39m [1mdist/chunk-NPNNGXR4.js.map [22m[32m393.76 KB[39m
|
|
44
44
|
[32mESM[39m [1mdist/_esm-AN6HMJZC.js.map [22m[32m212.33 KB[39m
|
|
45
45
|
[32mESM[39m [1mdist/secp256k1-QZA5SALG.js.map [22m[32m203.10 KB[39m
|
|
46
|
-
[32mESM[39m [1mdist/index.js.map [22m[
|
|
46
|
+
[32mESM[39m [1mdist/index.js.map [22m[32m959.36 KB[39m
|
|
47
47
|
[32mESM[39m ⚡️ Build success in 148ms
|
package/CHANGELOG.md
CHANGED
package/dist/encoding.d.ts
CHANGED
|
@@ -62,7 +62,7 @@ export declare const encodeBuySupplyWithSingleHopSwapRouterHookCall: ({ buyRecip
|
|
|
62
62
|
chainId: keyof typeof buySupplyWithSwapRouterHookAddress;
|
|
63
63
|
ethValue?: bigint;
|
|
64
64
|
}) => {
|
|
65
|
-
hook: "0x5Ee02936e2A92133aC66B5235cAf4ad59E25632d" | "
|
|
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" | "
|
|
85
|
+
hook: "0x5Ee02936e2A92133aC66B5235cAf4ad59E25632d" | "0x961EDdCA4150FC9FBFecd2D6876e1cF770919918";
|
|
86
86
|
hookData: `0x${string}`;
|
|
87
87
|
value: bigint | undefined;
|
|
88
88
|
};
|
|
@@ -96,5 +96,33 @@ 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
|
+
/**
|
|
103
|
+
* Encodes the pool configuration data for creating and initializing a coin's liquidity pool,
|
|
104
|
+
* using a multi-curve setup.
|
|
105
|
+
*
|
|
106
|
+
* @param params - The pool configuration parameters.
|
|
107
|
+
* @param params.version - The version of the pool configuration.
|
|
108
|
+
* 2 for a UniswapV3 pool, or 4 for Doppler/Uniswap V4-style pools.
|
|
109
|
+
* @param params.currency - The address of the currency token (e.g., WETH) to be paired with the coin.
|
|
110
|
+
* @param params.tickLower - An array of numbers representing the lower tick boundaries for each liquidity curve.
|
|
111
|
+
* @param params.tickUpper - An array of numbers representing the upper tick boundaries for each liquidity curve.
|
|
112
|
+
* @param params.numDiscoveryPositions - An array of numbers, where each number specifies the quantity of discrete
|
|
113
|
+
* liquidity positions to be created within the corresponding curve's discovery phase.
|
|
114
|
+
* @param params.maxDiscoverySupplyShare - An array of bigints, where each bigint represents the maximum share of the coin's
|
|
115
|
+
* total supply allocated to the discovery phase of the corresponding curve.
|
|
116
|
+
* This is typically a WAD-scaled value (i.e., scaled by 1e18).
|
|
117
|
+
* @returns The ABI-encoded pool configuration for setting
|
|
118
|
+
*/
|
|
119
|
+
export declare const encodePoolConfig: ({ version, currency, tickLower, tickUpper, numDiscoveryPositions, maxDiscoverySupplyShare, }: {
|
|
120
|
+
version: PoolVersion;
|
|
121
|
+
currency: Address;
|
|
122
|
+
tickLower: number[];
|
|
123
|
+
tickUpper: number[];
|
|
124
|
+
numDiscoveryPositions: number[];
|
|
125
|
+
maxDiscoverySupplyShare: bigint[];
|
|
126
|
+
}) => `0x${string}`;
|
|
99
127
|
export {};
|
|
100
128
|
//# 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,EAIR,MAAM,MAAM,CAAC;AACd,OAAO,
|
|
1
|
+
{"version":3,"file":"encoding.d.ts","sourceRoot":"","sources":["../src/encoding.ts"],"names":[],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