Skip to content

Commit 8b5cb47

Browse files
authored
[SDK] Feature: Adds deployMarketplaceContract (#5989)
1 parent 0760706 commit 8b5cb47

File tree

3 files changed

+44
-3
lines changed

3 files changed

+44
-3
lines changed

.changeset/famous-peaches-camp.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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+
```

packages/thirdweb/src/extensions/ens/resolve-l2-name.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { resolveL2Name } from "./resolve-l2-name.js";
77
// skip this test suite if there is no secret key available to test with
88
// TODO: remove reliance on secret key during unit tests entirely
99
describe.runIf(process.env.TW_SECRET_KEY)("ENS:resolve-l2-name", () => {
10-
it("should resolve Basename", async () => {
10+
it.skip("should resolve Basename", async () => {
1111
const ens = await resolveL2Name({
1212
client: TEST_CLIENT,
1313
// myk.base.eth

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

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff 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
*/
4867
export async function deployMarketplaceContract(
4968
options: DeployMarketplaceContractOptions,

0 commit comments

Comments
 (0)