File tree Expand file tree Collapse file tree 2 files changed +43
-2
lines changed
packages/thirdweb/src/extensions/prebuilts Expand file tree Collapse file tree 2 files changed +43
-2
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " thirdweb " : minor
3+ ---
4+
5+ Feature: Adds deployMarketplaceContract
6+
7+ ``` ts
8+
9+ import { deployMarketplaceContract } from " thirdweb/deploys" ;
10+
11+ const address = await deployMarketplaceContract ({
12+ client ,
13+ chain ,
14+ account ,
15+ params: {
16+ name: " MarketplaceV3" ,
17+ description: " MarketplaceV3 deployed using thirdweb SDK" ,
18+ platformFeeRecipient: " 0x21d514c90ee4E4e4Cd16Ce9185BF01F0F1eE4A04" ,
19+ platformFeeBps: 1000 ,
20+ }
21+ });
22+ ```
Original file line number Diff line number Diff line change @@ -42,8 +42,27 @@ export type DeployMarketplaceContractOptions = Prettify<
4242> ;
4343
4444/**
45- * TODO not quite ready for public consumption yet
46- * @internal
45+ * Deploys a marketplace contract.
46+ * @param options - The options for deploying the marketplace contract.
47+ *
48+ * @extension MARKETPLACE
49+ *
50+ * @example
51+ * ```ts
52+ * import { deployMarketplaceContract } from "thirdweb/deploys";
53+ *
54+ * const address = await deployMarketplaceContract({
55+ client,
56+ chain,
57+ account,
58+ params: {
59+ name: "MarketplaceV3",
60+ description: "MarketplaceV3 deployed using thirdweb SDK",
61+ platformFeeRecipient: "0x21d514c90ee4E4e4Cd16Ce9185BF01F0F1eE4A04",
62+ platformFeeBps: 1000,
63+ },
64+ });
65+ * ```
4766 */
4867export async function deployMarketplaceContract (
4968 options : DeployMarketplaceContractOptions ,
You can’t perform that action at this time.
0 commit comments