Skip to content

Commit 86758a5

Browse files
authored
Add marketplace sdk docs and refactor custom marketplace guide [WIP] (#45)
* Add marketplace sdk docs and refactor custom marketplace guide * Update solutions/marketplace docs * Update the officially maintained marketplace contract address * Remove the updates to the custom marketplace doc guide * Restructure /solutions marketplaces pages; simplify white-label-marketplace section; update custom marketplace overview documentation * Update the marketplace contract address in all the documentation * Update information on white label marketplace guide
1 parent f11e682 commit 86758a5

24 files changed

Lines changed: 1066 additions & 204 deletions

api-references/indexer/endpoints/indexer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4823,7 +4823,7 @@
48234823
"page": 1,
48244824
"pageSize": 100
48254825
},
4826-
"orderbookContractAddress": "0xB537a160472183f2150d42EB1c3DD6684A55f74c",
4826+
"orderbookContractAddress": "0xfdb42A198a932C8D3B506Ffa5e855bC4b348a712",
48274827
"collectionAddress": "0x602d5dc17490794267c7fa5f58a453eb9159a86d",
48284828
"currencyAddresses": [
48294829
"0x7ceb23fd6bc0add59e62ac25578270cff1b9f619",
@@ -4880,7 +4880,7 @@
48804880
"orderStatus": "OPEN",
48814881
"createdBy": "0xf43a1defbd32243fd83fe702f7817dde3319246e",
48824882
"blockNumber": 63027844,
4883-
"orderbookContractAddress": "0xb537a160472183f2150d42eb1c3dd6684a55f74c",
4883+
"orderbookContractAddress": "0xfdb42A198a932C8D3B506Ffa5e855bC4b348a712",
48844884
"createdAt": 1728909642
48854885
}
48864886
]

api-references/marketplace/examples/get-orderbook.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ curl --request POST \
5151
}
5252
]
5353
},
54-
"orderbookContractAddress": "0xB537a160472183f2150d42EB1c3DD6684A55f74c"
54+
"orderbookContractAddress": "0xfdb42A198a932C8D3B506Ffa5e855bC4b348a712"
5555
}'
5656
```
5757

@@ -83,7 +83,7 @@ import fetch from "cross-fetch";
8383
},
8484
],
8585
},
86-
orderbookContractAddress: "0xB537a160472183f2150d42EB1c3DD6684A55f74c",
86+
orderbookContractAddress: "0xfdb42A198a932C8D3B506Ffa5e855bC4b348a712",
8787
}),
8888
}
8989
);

api-references/marketplace/examples/get-top-orders.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ curl --request POST \
1616
"currencyAddresses": [
1717
"0xa9c88358862211870db6f18bc9b3f6e4f8b3eae7"
1818
],
19-
"orderbookContractAddress": "0xB537a160472183f2150d42EB1c3DD6684A55f74c",
19+
"orderbookContractAddress": "0xfdb42A198a932C8D3B506Ffa5e855bC4b348a712",
2020
"tokenIDs": ["0","1", "2", "3", "4", "5"],
2121
"isListing": true,
2222
"priceSort": "DESC"
@@ -38,7 +38,7 @@ curl --request POST \
3838
body: JSON.stringify({
3939
collectionAddress: "0x1693ffc74edbb50d6138517fe5cd64fd1c917709",
4040
currencyAddresses: ["0xa9c88358862211870db6f18bc9b3f6e4f8b3eae7"],
41-
orderbookContractAddress: "0xB537a160472183f2150d42EB1c3DD6684A55f74c",
41+
orderbookContractAddress: "0xfdb42A198a932C8D3B506Ffa5e855bC4b348a712",
4242
tokenIDs: ["0", "1", "2", "3", "4", "5"],
4343
isListing: true,
4444
priceSort: "DESC",

api-references/marketplace/examples/get-user-activities.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Enables you to retrieve activity data for a specific user, including orders and
1616
<CodeGroup>
1717
```shell cURL
1818
curl -X POST -H "Content-Type: application/json" https://marketplace-api.sequence.app/arbitrum-sepolia/rpc/Marketplace/GetUserActivities -d '{
19-
"orderbookContractAddress": "0xB537a160472183f2150d42EB1c3DD6684A55f74c",
19+
"orderbookContractAddress": "0xfdb42A198a932C8D3B506Ffa5e855bC4b348a712",
2020
"collectionAddress": "0x1693ffc74edbb50d6138517fe5cd64fd1c917709",
2121
"currencyAddresses": [
2222
"0xa9c88358862211870db6f18bc9b3f6e4f8b3eae7"
@@ -39,7 +39,7 @@ import fetch from "cross-fetch";
3939
"Content-Type": "application/json",
4040
},
4141
body: JSON.stringify({
42-
"orderbookContractAddress": "0xB537a160472183f2150d42EB1c3DD6684A55f74c",
42+
"orderbookContractAddress": "0xfdb42A198a932C8D3B506Ffa5e855bC4b348a712",
4343
"collectionAddress": "0x1693ffc74edbb50d6138517fe5cd64fd1c917709",
4444
"currencyAddresses": [
4545
"0xa9c88358862211870db6f18bc9b3f6e4f8b3eae7"

api-references/marketplace/examples/orderbook-transactions.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ sidebarTitle: Creating Market Orders & Listings
44
---
55

66

7-
All transactions run through a contract at address `0xB537a160472183f2150d42EB1c3DD6684A55f74c` on all currently offered networks.
7+
All transactions run through a contract at address `0xfdb42A198a932C8D3B506Ffa5e855bC4b348a712` on all currently offered networks.
88

99
## Create a Request
1010

@@ -65,12 +65,12 @@ const dataCreateRequest = sequenceMarketInterface.encodeFunctionData(
6565
);
6666

6767
const dataApprove = erc1155Interface.encodeFunctionData("setApprovalForAll", [
68-
"0xB537a160472183f2150d42EB1c3DD6684A55f74c", // sequence market contract (same address on all offered networks)
68+
"0xfdb42A198a932C8D3B506Ffa5e855bC4b348a712", // sequence market contract (same address on all offered networks)
6969
true,
7070
]);
7171

7272
const tx = {
73-
to: "0xB537a160472183f2150d42EB1c3DD6684A55f74c", // sequence market contract (same address on all offered networks)
73+
to: "0xfdb42A198a932C8D3B506Ffa5e855bC4b348a712", // sequence market contract (same address on all offered networks)
7474
data: dataCreateRequest,
7575
};
7676

@@ -119,7 +119,7 @@ const sequenceMarketInterface = new ethers.Interface([
119119
const amountBigNumber = ethers.parseUnits(String(price), 18); // currency price based on correct decimals for token contract
120120

121121
const dataApprove = erc20Interface.encodeFunctionData("approve", [
122-
"0xB537a160472183f2150d42EB1c3DD6684A55f74c", // sequence market contract (same address on all offered networks)
122+
"0xfdb42A198a932C8D3B506Ffa5e855bC4b348a712", // sequence market contract (same address on all offered networks)
123123
amountBigNumber,
124124
]);
125125

@@ -134,7 +134,7 @@ const txApprove = {
134134
};
135135

136136
const tx = {
137-
to: "0xB537a160472183f2150d42EB1c3DD6684A55f74c", // sequence market contract (same address on all offered networks)
137+
to: "0xfdb42A198a932C8D3B506Ffa5e855bC4b348a712", // sequence market contract (same address on all offered networks)
138138
data: dataAcceptRequest,
139139
};
140140

docs.json

Lines changed: 25 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -133,23 +133,17 @@
133133
"pages": [
134134
"solutions/monetization-overview",
135135
{
136-
"group": "Marketplaces",
136+
"group": "White-label Marketplace",
137137
"pages": [
138-
{
139-
"group": "White-label Marketplace",
140-
"pages": [
141-
"solutions/marketplaces/white-label-marketplace/overview",
142-
"solutions/marketplaces/white-label-marketplace/guide",
143-
"solutions/marketplaces/white-label-marketplace/video-walkthrough"
144-
]
145-
},
146-
{
147-
"group": "Build your Custom Marketplace",
148-
"pages": [
149-
"solutions/marketplaces/orderbook/overview",
150-
"solutions/marketplaces/orderbook/starter"
151-
]
152-
}
138+
"solutions/marketplaces/white-label-marketplace/overview",
139+
"solutions/marketplaces/white-label-marketplace/guide"
140+
]
141+
},
142+
{
143+
"group": "Build your Custom Marketplace",
144+
"pages": [
145+
"solutions/marketplaces/custom-marketplace/overview",
146+
"solutions/marketplaces/custom-marketplace/getting-started"
153147
]
154148
},
155149
{
@@ -270,6 +264,21 @@
270264
"sdk/web/custom-connectors"
271265
]
272266
},
267+
{
268+
"group": "Marketplace SDK",
269+
"pages": [
270+
"sdk/marketplace-sdk/overview",
271+
"sdk/marketplace-sdk/getting-started",
272+
{
273+
"group": "Hooks",
274+
"pages": [
275+
"sdk/marketplace-sdk/hooks/overview",
276+
"sdk/marketplace-sdk/hooks/marketplace-actions",
277+
"sdk/marketplace-sdk/hooks/marketplace-data-hooks"
278+
]
279+
}
280+
]
281+
},
273282
{
274283
"group": "Game Engine SDKs",
275284
"pages": [

guides/custom-marketplace.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ First, we check that the marketplace is approved for the contract, with some log
292292

293293
```js
294294
const ERC1155Contract = '0x1693ffc74edbb50d6138517fe5cd64fd1c917709'
295-
const MarketPlaceContract = '0xB537a160472183f2150d42EB1c3DD6684A55f74c'
295+
const MarketPlaceContract = '0xfdb42A198a932C8D3B506Ffa5e855bC4b348a712'
296296

297297
function App() {
298298

@@ -370,7 +370,7 @@ const createRequest = async () => {
370370
// is not approved
371371
const dataApprove = erc1155Interface.encodeFunctionData(
372372
"setApprovalForAll",
373-
["0xB537a160472183f2150d42EB1c3DD6684A55f74c", true]
373+
["0xfdb42A198a932C8D3B506Ffa5e855bC4b348a712", true]
374374
);
375375

376376
const txApprove = {
@@ -622,7 +622,7 @@ We begin with the same flow as before, accounting for sending multi-batch transa
622622
setAcceptData(data) // we'll need this later, only for Web SDK enabled transactions
623623

624624
const tx = {
625-
to: MarketPlaceContract, // 0xB537a160472183f2150d42EB1c3DD6684A55f74c
625+
to: MarketPlaceContract, // 0xfdb42A198a932C8D3B506Ffa5e855bC4b348a712
626626
data: data
627627
}
628628

@@ -639,7 +639,7 @@ We begin with the same flow as before, accounting for sending multi-batch transa
639639
"function approve(address spender, uint256 amount) external returns (bool)"
640640
]);
641641

642-
const spenderAddress = "0xB537a160472183f2150d42EB1c3DD6684A55f74c";
642+
const spenderAddress = "0xfdb42A198a932C8D3B506Ffa5e855bC4b348a712";
643643
const maxUint256 = ethers.constants.MaxUint256;
644644
const dataApprove = erc20Interface.encodeFunctionData("approve", [spenderAddress, maxUint256]);
645645

65 KB
Loading
90.8 KB
Loading
81.3 KB
Loading

0 commit comments

Comments
 (0)