* move over the last prebuilt pages and use nightly * fix lint * update to latest dev * remove log * fix various more things * upgrade to @nightly * fix lister for creating listings * update dependencies to solve token metadata issue
28 lines
833 B
TypeScript
28 lines
833 B
TypeScript
export function usePascalCaseContractName(contractName: string) {
|
|
if (!contractName) {
|
|
return null;
|
|
} else if (contractName === "nft-drop") {
|
|
return "NFTDrop";
|
|
} else if (contractName === "edition-drop") {
|
|
return "EditionDrop";
|
|
} else if (contractName === "nft-collection") {
|
|
return "NFTCollection";
|
|
} else if (contractName === "edition") {
|
|
return "Edition";
|
|
} else if (contractName === "token") {
|
|
return "Token";
|
|
} else if (contractName === "marketplace") {
|
|
return "Marketplace";
|
|
} else if (contractName === "vote") {
|
|
return "Vote";
|
|
} else if (contractName === "split") {
|
|
return "Split";
|
|
} else if (contractName === "token-drop") {
|
|
return "TokenDrop";
|
|
} else if (contractName === "signature-drop") {
|
|
return "SignatureDrop";
|
|
} else {
|
|
return contractName;
|
|
}
|
|
}
|