1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
module.exports = {
rpc: {
protos: {
getProtos: {
description: "this is the description", type: "String",
params: [
{ name: 'params', type: 'GetProtosParams' },
{ name: 'at', type: 'BlockHash', isOptional: true }
]
},
}
},
types: {
ShardsFormat: {
_enum: [
"edn",
"binary"
]
},
AudioCategories: {
_enum: [
"oggFile",
"mp3File",
]
},
ModelCategories: {
_enum: [
"gltfFile",
"sdf",
"physicsCollider"
]
},
TextureCategories: {
_enum: [
"pngFile",
"jpgFile"
]
},
VectorCategories: {
_enum: [
"svgFile",
"ttfFile"
]
},
VideoCategories: {
_enum: [
"mkvFile",
"mp4File"
]
},
TextCategories: {
_enum: [
"plain",
"json"
]
},
BinaryCategories: {
_enum: [
"wasmProgram",
"wasmReactor",
"blendFile",
"onnxModel",
"safeTensors",
]
},
ShardsTrait: "Compact<u32>",
Categories: {
_enum: {
"text": "TextCategories",
"trait": "(Vec<u32>, Vec<u32>, ShardsTrait)",
"shards": "(ShardsFormat, Vec<ShardsTrait>)",
"audio": "AudioCategories",
"texture": "TextureCategories",
"vector": "VectorCategories",
"video": "VideoCategories",
"model": "ModelCategories",
"binary": "BinaryCategories",
}
},
BlockHash: 'Hash',
GetProtosParams: {
desc: 'bool',
from: 'u32',
limit: 'u32',
metadata_keys: 'Vec<String>',
owner: 'Option<AccountId>',
return_owners: 'bool',
categories: 'Vec<Categories>',
tags: 'Vec<String>',
available: 'Option<bool>',
}
}
};