import { ContractConfig, Feature, FunctionConfig, MintConfig, ProjectConfig } from "@patchworkdev/common/types";

const ticketsProjectConfig: ProjectConfig = {
    name: "tickets",
    scopes: [
        {
            name: "myscope",
            whitelist: true,
            userAssign: false,
            userPatch: false,
            mintConfigs: {},
            patchFees: {},
            assignFees: {}
        }
    ],
    contracts: {
        "Event": {
            scopeName: "myscope",
            name: "Event",
            symbol: "EVENT",
            baseURI: "https://replace-me-with-website/",
            schemaURI: "https://replace-me-with-website/schemas/event.json",
            imageURI: "https://replace-me-with-website/assets/event/{tokenID}",
            fields: [
                {
                    id: 0,
                    key: "name",
                    type: "char32",
                    description: "Name",
                },
                {
                    id: 1,
                    key: "tickets",
                    type: "literef",
                    description: "Event Tickets",
                    arrayLength: 0,
                }
            ],
            features: [Feature.MINTABLE],
            fragments: []
        },
        "Ticket": {
            scopeName: "myscope",
            name: "Ticket",
            symbol: "TICKET",
            baseURI: "https://replace-me-with-website/",
            schemaURI: "https://replace-me-with-website/schemas/ticket.json",
            imageURI: "https://replace-me-with-website/assets/ticket/{tokenID}",
            fields: [
                {
                    id: 0,
                    key: "number",
                    type: "uint32",
                    description: "Ticket Number",
                },
                {
                    id: 1,
                    key: "seat",
                    type: "char8",
                    description: "Seat",
                }
            ],
            features: [Feature.MINTABLE, Feature.FRAGMENTSINGLE, Feature.WEAKREF],
            fragments: []
        }
    }
};

export default ticketsProjectConfig;