Example Projects
Pfp
import { ContractConfig, Feature, FunctionConfig, MintConfig, ProjectConfig } from "@patchworkdev/common/types";
const mypfpProjectConfig: ProjectConfig = {
name: "mypfp",
scopes: [
{
name: "myscope",
whitelist: true,
userAssign: false,
userPatch: false,
mintConfigs: {},
patchFees: {},
assignFees: {}
}
],
contracts: {
"MyPFP": {
scopeName: "myscope",
name: "MyPFP",
symbol: "PFP",
baseURI: "https://replace-me-with-website/",
schemaURI: "https://replace-me-with-website/schemas/mypfp.json",
imageURI: "https://replace-me-with-website/assets/mypfp/{tokenID}",
fields: [
{
id: 0,
key: "bgcolor",
type: "uint16",
description: "Background Color",
functionConfig: FunctionConfig.LOAD,
},
{
id: 1,
key: "skincolor",
type: "uint16",
description: "Skin Color",
functionConfig: FunctionConfig.LOAD,
},
{
id: 2,
key: "shirt",
type: "uint16",
description: "Shirt",
functionConfig: FunctionConfig.LOAD,
},
{
id: 3,
key: "necklace",
type: "uint16",
description: "Necklace",
functionConfig: FunctionConfig.LOAD,
},
{
id: 4,
key: "mouth",
type: "uint16",
description: "Mouth",
functionConfig: FunctionConfig.LOAD,
},
{
id: 5,
key: "eyes",
type: "uint16",
description: "Eyes",
functionConfig: FunctionConfig.LOAD,
},
{
id: 6,
key: "hair",
type: "uint16",
description: "Hair",
functionConfig: FunctionConfig.LOAD,
},
{
id: 7,
key: "hat",
type: "uint16",
description: "Hat",
functionConfig: FunctionConfig.LOAD,
},
{
id: 8,
key: "rarityscore",
type: "uint16",
description: "Rarity Score",
functionConfig: FunctionConfig.LOAD,
}
],
features: [Feature.MINTABLE],
fragments: []
}
}
};
export default mypfpProjectConfig;