@patchworkdev/common
Version:
Patchwork Development Kit
61 lines (59 loc) • 1.64 kB
text/typescript
import { ContractConfig, Feature, FunctionConfig } from "@patchworkdev/common/types";
const config: ContractConfig = {
"scopeName": "test",
"name": "Arrays",
"symbol": "ARRAYS",
"baseURI": "https://mything/my/",
"schemaURI": "https://mything/my-metadata.json",
"imageURI": "https://mything/my/{tokenID}.png",
"features": [] as Feature[],
"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",
"permissionId": 1,
"functionConfig": FunctionConfig.STORE,
},
{
"id": 4,
"key": "fieldu128b",
"type": "uint128",
"description": "Some Uint128",
"permissionId": 2,
"functionConfig": FunctionConfig.ALL,
},
{
"id": 5,
"key": "fieldu32",
"type": "uint32",
"description": "Some Uint32",
"permissionId": 3,
"functionConfig": FunctionConfig.NONE,
},
{
"id": 6,
"key": "c8",
"type": "char8",
"description": "c8",
"functionConfig": FunctionConfig.LOAD,
}
],
"fragments": []
}
export default config;