Patchwork Project examples
Patch + Assignee
Introduction
Configuration and Development
Patchwork Project examples
- Basic Patchwork721
- Complex metadata with arrays
- Fragment examples
- Assignee examples
- Patch examples
- Patch + Fragment
- Patch + Assignee
Patchwork Project examples
Patch + Assignee
import { Feature, ProjectConfig } from "@patchworkdev/common/types";
const patchFragmentProjectConfig: ProjectConfig = {
name: "PatchFragmentProject",
scopes: [
{
name: "test",
whitelist: true,
userAssign: false,
userPatch: false,
}
],
contracts: {
"PatchFragment": {
scopeName: "test",
name: "PatchFragment",
symbol: "PFRAG",
baseURI: "https://mything/my/",
schemaURI: "https://mything/my-metadata.json",
imageURI: "https://mything/my/{tokenID}.png",
fields: [
{
id: 1,
key: "name",
type: "char32",
description: "Name"
},
{
id: 2,
key: "frags",
type: "literef",
arrayLength: 6,
description: "My 6 Fragments"
}
],
features: [Feature.PATCH]
}
}
};
export default patchFragmentProjectConfig;