Advanced Usage
import {
DgWorldMarketplace,
MarketplaceOptions,
} from "dg-world-marketplace-sdk";const opts: MarketplaceOptions = {
previewEnv: 'prod' as any,
network: 'MATIC' as any,
engine,
zoneId: YOUR_ZONE_ID,
debug: true,
lang: {
noFundsTitle: "No Funds",
noFundsDesc: "Sorry, you do not have enough ICE",
noFundsButton: "No Funds",
approveIceTitle: "Approve ICE",
approveIceDesc:
"Authorize the Store contract to operate ICE on your behalf",
approveIceWait: "Please wait. The transaction is being processed",
approveIceRejected:"You need to authorize the Store contract to be able to buy this item",
buyFor: "Buy for:",
authorize: "Authorize",
reject: "Reject",
transactionProccessing: "Please wait. The transaction is being processed",
purchaseSucceed:"Purchased succeed! You will need to refresh the page to see the wearable in your backpack.",
purchaseFailed: "Purchased failed. Please try again.",
wait: "Wait",
buy: "Buy",
openPaymentLink: "Open Payment Link",
nftNotAvailable: "NFT not available",
},
};
const dgMarketplace = new DgWorldMarketplace(opts);Last updated