Example Projects
School
import { ContractConfig, Feature, FunctionConfig, MintConfig, ProjectConfig } from "@patchworkdev/common/types";
const schoolProjectConfig: ProjectConfig = {
name: "school",
scopes: [
{
name: "myscope",
whitelist: true,
userAssign: false,
userPatch: false,
mintConfigs: {},
patchFees: {},
assignFees: {}
}
],
contracts: {
"Class": {
scopeName: "myscope",
name: "Class",
symbol: "CLASS",
baseURI: "https://replace-me-with-website/",
schemaURI: "https://replace-me-with-website/schemas/class.json",
imageURI: "https://replace-me-with-website/assets/class/{tokenID}",
fields: [
{
id: 0,
key: "teacher",
type: "address",
description: "Teacher",
},
{
id: 1,
key: "name",
type: "char32",
description: "Name",
}
],
features: [],
fragments: []
},
"Student": {
scopeName: "myscope",
name: "Student",
symbol: "ITEM",
baseURI: "https://replace-me-with-website/",
schemaURI: "https://replace-me-with-website/schemas/student.json",
imageURI: "https://replace-me-with-website/assets/student/{tokenID}",
fields: [
{
id: 0,
key: "student",
type: "address",
description: "Student",
},
{
id: 1,
key: "name",
type: "char32",
description: "Name",
}
],
features: [Feature.MINTABLE, Feature.FRAGMENTMULTI],
fragments: []
}
}
};
export default schoolProjectConfig;