Skip to content

Commit 85ebd9f

Browse files
committed
fix: expose less
1 parent 3f58afb commit 85ebd9f

File tree

5 files changed

+43
-44
lines changed

5 files changed

+43
-44
lines changed

packages/thirdweb/src/contract/deployment/utils/clone-factory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { getDeployedInfraContract } from "./infra.js";
66
* @param args - Client and chain information required to locate the contract
77
* @returns Promise that resolves to the clone factory contract instance if deployed, null otherwise
88
*
9-
* @contract
9+
* @internal
1010
*/
1111
export async function getDeployedCloneFactoryContract(args: ClientAndChain) {
1212
// check if Forwarder is deployed

packages/thirdweb/src/contract/deployment/utils/infra.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ type GetDeployedInfraParams = Prettify<
3737
* @param options.publisher - Optional custom publisher address
3838
* @param options.version - Optional specific contract version to retrieve
3939
* @returns Promise that resolves to the contract instance if deployed, null otherwise
40+
*
41+
* @internal
4042
*/
4143
export async function getDeployedInfraContract(
4244
options: GetDeployedInfraParams,

packages/thirdweb/src/exports/deploys.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,5 @@ export {
5555
deployPackContract,
5656
} from "../extensions/prebuilts/deploy-pack.js";
5757

58-
export { getDeployedCloneFactoryContract } from "../contract/deployment/utils/clone-factory.js";
59-
export { getDeployedInfraContract } from "../contract/deployment/utils/infra.js";
60-
export { getAllDefaultConstructorParamsForImplementation } from "../extensions/prebuilts/get-required-transactions.js";
6158
export { getInitializeTransaction } from "../extensions/prebuilts/deploy-published.js";
6259
export { getOrDeployInfraForPublishedContract } from "../contract/deployment/utils/bootstrap.js";

packages/thirdweb/src/extensions/prebuilts/deploy-published.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -319,8 +319,8 @@ export async function getInitializeTransaction(options: {
319319
(i) =>
320320
i.type === "function" &&
321321
i.name ===
322-
(metadata.factoryDeploymentData?.implementationInitializerFunction ||
323-
"initialize"),
322+
(metadata.factoryDeploymentData?.implementationInitializerFunction ||
323+
"initialize"),
324324
) as AbiFunction;
325325
if (!initializeFunction) {
326326
throw new Error(`Could not find initialize function for ${metadata.name}`);
@@ -353,9 +353,9 @@ export async function getInitializeTransaction(options: {
353353
moduleInstallData.push(
354354
installFunction
355355
? encodeAbiParameters(
356-
installFunction.inputs,
357-
normalizeFunctionParams(installFunction, module.initializeParams),
358-
)
356+
installFunction.inputs,
357+
normalizeFunctionParams(installFunction, module.initializeParams),
358+
)
359359
: "0x",
360360
);
361361
}

packages/thirdweb/src/extensions/prebuilts/get-required-transactions.ts

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -54,40 +54,40 @@ export async function getRequiredTransactions(
5454
isZkSync
5555
? null
5656
: getDeployedCreate2Factory({
57-
chain,
58-
client,
59-
}).then((c) =>
60-
c
61-
? null
62-
: ({ type: "infra", contractId: "Create2Factory" } as const),
63-
),
57+
chain,
58+
client,
59+
}).then((c) =>
60+
c
61+
? null
62+
: ({ type: "infra", contractId: "Create2Factory" } as const),
63+
),
6464
isZkSync
6565
? null
6666
: getDeployedInfraContract({
67-
chain,
68-
client,
69-
contractId: "Forwarder",
70-
}).then((c) =>
71-
c ? null : ({ type: "infra", contractId: "Forwarder" } as const),
72-
),
67+
chain,
68+
client,
69+
contractId: "Forwarder",
70+
}).then((c) =>
71+
c ? null : ({ type: "infra", contractId: "Forwarder" } as const),
72+
),
7373
isZkSync
7474
? null
7575
: getDeployedInfraContract({
76-
chain,
77-
client,
78-
contractId: "TWCloneFactory",
79-
constructorParams: {
80-
_trustedForwarder: await computePublishedContractAddress({
81-
chain,
82-
client,
83-
contractId: "Forwarder",
84-
}),
85-
},
86-
}).then((c) =>
87-
c
88-
? null
89-
: ({ type: "infra", contractId: "TWCloneFactory" } as const),
90-
),
76+
chain,
77+
client,
78+
contractId: "TWCloneFactory",
79+
constructorParams: {
80+
_trustedForwarder: await computePublishedContractAddress({
81+
chain,
82+
client,
83+
contractId: "Forwarder",
84+
}),
85+
},
86+
}).then((c) =>
87+
c
88+
? null
89+
: ({ type: "infra", contractId: "TWCloneFactory" } as const),
90+
),
9191
// TODO (deploy): add WETH contract check for implementations that need it (check implementation constructor params)
9292
getTransactionsForImplementation({
9393
chain,
@@ -104,9 +104,9 @@ export async function getRequiredTransactions(
104104
c
105105
? null
106106
: ({
107-
type: "module",
108-
contractId: m.deployMetadata.name,
109-
} as const),
107+
type: "module",
108+
contractId: m.deployMetadata.name,
109+
} as const),
110110
),
111111
),
112112
]);
@@ -148,9 +148,9 @@ async function getTransactionsForImplementation(options: {
148148
c
149149
? null
150150
: ({
151-
type: "implementation",
152-
contractId: deployMetadata.name,
153-
} as const),
151+
type: "implementation",
152+
contractId: deployMetadata.name,
153+
} as const),
154154
);
155155
return result ? [result] : [];
156156
}
@@ -218,7 +218,7 @@ async function getTransactionsForMaketplaceV3(options: {
218218
* - On zkSync chains: returns an empty object since no parameters are needed
219219
* - On other chains: returns `trustedForwarder` and `nativeTokenWrapper` addresses
220220
*
221-
* @contract
221+
* @internal
222222
*/
223223
export async function getAllDefaultConstructorParamsForImplementation(args: {
224224
chain: Chain;

0 commit comments

Comments
 (0)