Patchwork Project examples
Complex metadata with arrays
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
Complex metadata with arrays
import { ProjectConfig } from "@patchworkdev/common/types";
const arraysProjectConfig: ProjectConfig = {
name: "ArraysProject",
scopes: [
{
name: "test",
whitelist: true,
userAssign: false,
userPatch: false,
}
],
contracts: {
"Arrays": {
scopeName: "test",
name: "Arrays",
symbol: "ARRAYS",
baseURI: "https://mything/my/",
schemaURI: "https://mything/my-metadata.json",
imageURI: "https://mything/my/{tokenID}.png",
fields: [
{
id: 1,
key: "names",
type: "char8",
arrayLength: 4,
description: "Names"
},
{
id: 2,
key: "u16array",
type: "uint16",
arrayLength: 32,
description: "Uint16 array"
},
{
id: 3,
key: "fieldu128a",
type: "uint128",
description: "Some Uint128"
},
{
id: 4,
key: "fieldu128b",
type: "uint128",
description: "Some Uint128"
},
{
id: 5,
key: "fieldu32",
type: "uint32",
description: "Some Uint32"
},
{
id: 6,
key: "c8",
type: "char8",
description: "c8"
}
],
features: []
}
}
};
export default arraysProjectConfig;