@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.
- package/.turbo/turbo-build.log +19 -19
- package/CHANGELOG.md +2 -1
- package/dist/encoding.d.ts +26 -2
- package/dist/encoding.d.ts.map +1 -1
- package/dist/generated/wagmi.d.ts +702 -92
- package/dist/generated/wagmi.d.ts.map +1 -1
- package/dist/index.cjs +250 -29
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +248 -29
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/encoding.ts +50 -1
- package/src/generated/wagmi.ts +233 -32
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
> @zoralabs/protocol-deployments@0.5.
|
|
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.
|
|
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.
|
|
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.ts[2K[1G[90msrc/encoding.ts[39m
|
|
14
|
+
src/encoding.ts[2K[1G[90msrc/encoding.ts[39m 49ms (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
|
|
18
|
-
scripts/bundle-chainConfigs.ts[2K[1G[90mscripts/bundle-chainConfigs.ts[39m
|
|
16
|
+
src/typedData.ts[2K[1G[90msrc/typedData.ts[39m 38ms (unchanged)
|
|
17
|
+
src/types.ts[2K[1G[90msrc/types.ts[39m 9ms (unchanged)
|
|
18
|
+
scripts/bundle-chainConfigs.ts[2K[1G[90mscripts/bundle-chainConfigs.ts[39m 3ms (unchanged)
|
|
19
19
|
scripts/bundle-configs.ts[2K[1G[90mscripts/bundle-configs.ts[39m 8ms (unchanged)
|
|
20
20
|
|
|
21
|
-
> @zoralabs/protocol-deployments@0.5.
|
|
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
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -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[32m558.64 KB[39m
|
|
33
|
-
[32mCJS[39m [1mdist/index.cjs.map [22m[32m1.15 MB[39m
|
|
34
|
-
[32mCJS[39m ⚡️ Build success in 147ms
|
|
35
32
|
[32mESM[39m [1mdist/chunk-NPNNGXR4.js [22m[32m136.42 KB[39m
|
|
33
|
+
[32mESM[39m [1mdist/secp256k1-QZA5SALG.js [22m[32m80.13 KB[39m
|
|
36
34
|
[32mESM[39m [1mdist/chunk-PR4QN5HX.js [22m[32m1.87 KB[39m
|
|
37
|
-
[32mESM[39m [1mdist/_esm-AN6HMJZC.js [22m[32m132.93 KB[39m
|
|
38
35
|
[32mESM[39m [1mdist/ccip-C5WONSSK.js [22m[32m290.00 B[39m
|
|
39
|
-
[32mESM[39m [1mdist/
|
|
40
|
-
[32mESM[39m [1mdist/
|
|
41
|
-
[32mESM[39m [1mdist/
|
|
42
|
-
[32mESM[39m [1mdist/chunk-PR4QN5HX.js.map [22m[32m71.00 B[39m
|
|
36
|
+
[32mESM[39m [1mdist/index.js [22m[32m492.34 KB[39m
|
|
37
|
+
[32mESM[39m [1mdist/_esm-AN6HMJZC.js [22m[32m132.93 KB[39m
|
|
38
|
+
[32mESM[39m [1mdist/secp256k1-QZA5SALG.js.map [22m[32m203.10 KB[39m
|
|
43
39
|
[32mESM[39m [1mdist/chunk-NPNNGXR4.js.map [22m[32m393.76 KB[39m
|
|
40
|
+
[32mESM[39m [1mdist/chunk-PR4QN5HX.js.map [22m[32m71.00 B[39m
|
|
41
|
+
[32mESM[39m [1mdist/ccip-C5WONSSK.js.map [22m[32m71.00 B[39m
|
|
44
42
|
[32mESM[39m [1mdist/_esm-AN6HMJZC.js.map [22m[32m212.33 KB[39m
|
|
45
|
-
[32mESM[39m [1mdist/
|
|
46
|
-
[32mESM[39m
|
|
47
|
-
[
|
|
43
|
+
[32mESM[39m [1mdist/index.js.map [22m[32m959.32 KB[39m
|
|
44
|
+
[32mESM[39m ⚡️ Build success in 150ms
|
|
45
|
+
[32mCJS[39m [1mdist/index.cjs [22m[32m576.88 KB[39m
|
|
46
|
+
[32mCJS[39m [1mdist/index.cjs.map [22m[32m1.18 MB[39m
|
|
47
|
+
[32mCJS[39m ⚡️ Build success in 151ms
|
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,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
|
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":[],"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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