Example Projects
Receipt
import { ContractConfig, Feature, FunctionConfig, MintConfig, ProjectConfig } from "@patchworkdev/common/types";
const myreceiptProjectConfig: ProjectConfig = {
name: "myreceipt",
scopes: [
{
name: "myscope",
whitelist: true,
userAssign: false,
userPatch: false,
mintConfigs: {},
patchFees: {},
assignFees: {}
}
],
contracts: {
"MyReceipt": {
scopeName: "myscope",
name: "MyReceipt",
symbol: "RCPT",
baseURI: "https://replace-me-with-website/",
schemaURI: "https://replace-me-with-website/schemas/myreceipt.json",
imageURI: "https://replace-me-with-website/assets/myreceipt/{tokenID}",
fields: [
{
id: 0,
key: "timestamp",
type: "uint64",
description: "Purchase Timestamp (seconds since epoch)",
functionConfig: FunctionConfig.LOAD,
},
{
id: 1,
key: "itemcode",
type: "uint32",
description: "Purchased Item Code",
functionConfig: FunctionConfig.LOAD,
},
{
id: 2,
key: "quantity",
type: "uint64",
description: "Purchased Quantity",
functionConfig: FunctionConfig.LOAD,
},
{
id: 3,
key: "purchaser",
type: "address",
description: "Purchaser address",
functionConfig: FunctionConfig.LOAD,
}
],
features: [Feature.MINTABLE],
fragments: []
}
}
};
export default myreceiptProjectConfig;