Skip to content

Commit 579a8d6

Browse files
put data.xsd into TokenScript.xsd so that IDE's can work with syntax
1 parent 45e3635 commit 579a8d6

File tree

2 files changed

+111
-120
lines changed

2 files changed

+111
-120
lines changed

schema/data.xsd

Lines changed: 0 additions & 118 deletions
This file was deleted.

schema/tokenscript.xsd

Lines changed: 111 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,117 @@
2020
<!-- Importing XHTML namespace. use xhtml1-strict.xsd to get xhtml:Block -->
2121
<xs:import namespace="http://www.w3.org/1999/xhtml"
2222
schemaLocation="xhtml1-strict.xsd"/>
23-
<xs:include schemaLocation="data.xsd"/>
24-
23+
<xs:complexType mixed="true" name="variable">
24+
<xs:attribute name="ref" type="xs:NCName"/>
25+
</xs:complexType>
26+
<xs:element name="data">
27+
<xs:complexType>
28+
<xs:choice maxOccurs="unbounded">
29+
<xs:element name="bool" type="variable"/>
30+
<xs:element name="uint8" type="variable"/>
31+
<xs:element name="uint16" type="variable"/>
32+
<xs:element name="uint24" type="variable"/>
33+
<xs:element name="uint32" type="variable"/>
34+
<xs:element name="uint40" type="variable"/>
35+
<xs:element name="uint48" type="variable"/>
36+
<xs:element name="uint56" type="variable"/>
37+
<xs:element name="uint64" type="variable"/>
38+
<xs:element name="uint72" type="variable"/>
39+
<xs:element name="uint80" type="variable"/>
40+
<xs:element name="uint88" type="variable"/>
41+
<xs:element name="uint96" type="variable"/>
42+
<xs:element name="uint104" type="variable"/>
43+
<xs:element name="uint112" type="variable"/>
44+
<xs:element name="uint120" type="variable"/>
45+
<xs:element name="uint128" type="variable"/>
46+
<xs:element name="uint136" type="variable"/>
47+
<xs:element name="uint144" type="variable"/>
48+
<xs:element name="uint152" type="variable"/>
49+
<xs:element name="uint160" type="variable"/>
50+
<xs:element name="uint168" type="variable"/>
51+
<xs:element name="uint176" type="variable"/>
52+
<xs:element name="uint184" type="variable"/>
53+
<xs:element name="uint192" type="variable"/>
54+
<xs:element name="uint200" type="variable"/>
55+
<xs:element name="uint208" type="variable"/>
56+
<xs:element name="uint216" type="variable"/>
57+
<xs:element name="uint224" type="variable"/>
58+
<xs:element name="uint232" type="variable"/>
59+
<xs:element name="uint240" type="variable"/>
60+
<xs:element name="uint248" type="variable"/>
61+
<xs:element name="uint256" type="variable"/>
62+
<xs:element name="int8" type="variable"/>
63+
<xs:element name="int16" type="variable"/>
64+
<xs:element name="int24" type="variable"/>
65+
<xs:element name="int32" type="variable"/>
66+
<xs:element name="int40" type="variable"/>
67+
<xs:element name="int48" type="variable"/>
68+
<xs:element name="int56" type="variable"/>
69+
<xs:element name="int64" type="variable"/>
70+
<xs:element name="int72" type="variable"/>
71+
<xs:element name="int80" type="variable"/>
72+
<xs:element name="int88" type="variable"/>
73+
<xs:element name="int96" type="variable"/>
74+
<xs:element name="int104" type="variable"/>
75+
<xs:element name="int112" type="variable"/>
76+
<xs:element name="int120" type="variable"/>
77+
<xs:element name="int128" type="variable"/>
78+
<xs:element name="int136" type="variable"/>
79+
<xs:element name="int144" type="variable"/>
80+
<xs:element name="int152" type="variable"/>
81+
<xs:element name="int160" type="variable"/>
82+
<xs:element name="int168" type="variable"/>
83+
<xs:element name="int176" type="variable"/>
84+
<xs:element name="int184" type="variable"/>
85+
<xs:element name="int192" type="variable"/>
86+
<xs:element name="int200" type="variable"/>
87+
<xs:element name="int208" type="variable"/>
88+
<xs:element name="int216" type="variable"/>
89+
<xs:element name="int224" type="variable"/>
90+
<xs:element name="int232" type="variable"/>
91+
<xs:element name="int240" type="variable"/>
92+
<xs:element name="int248" type="variable"/>
93+
<xs:element name="int256" type="variable"/>
94+
<xs:element name="string" type="variable"/>
95+
<xs:element name="bytes" type="variable"/>
96+
<xs:element name="byte" type="variable"/>
97+
<xs:element name="bytes1" type="variable"/>
98+
<xs:element name="bytes2" type="variable"/>
99+
<xs:element name="bytes3" type="variable"/>
100+
<xs:element name="bytes4" type="variable"/>
101+
<xs:element name="bytes5" type="variable"/>
102+
<xs:element name="bytes6" type="variable"/>
103+
<xs:element name="bytes7" type="variable"/>
104+
<xs:element name="bytes8" type="variable"/>
105+
<xs:element name="bytes9" type="variable"/>
106+
<xs:element name="bytes10" type="variable"/>
107+
<xs:element name="bytes11" type="variable"/>
108+
<xs:element name="bytes12" type="variable"/>
109+
<xs:element name="bytes13" type="variable"/>
110+
<xs:element name="bytes14" type="variable"/>
111+
<xs:element name="bytes15" type="variable"/>
112+
<xs:element name="bytes16" type="variable"/>
113+
<xs:element name="bytes17" type="variable"/>
114+
<xs:element name="bytes18" type="variable"/>
115+
<xs:element name="bytes19" type="variable"/>
116+
<xs:element name="bytes20" type="variable"/>
117+
<xs:element name="bytes21" type="variable"/>
118+
<xs:element name="bytes22" type="variable"/>
119+
<xs:element name="bytes23" type="variable"/>
120+
<xs:element name="bytes24" type="variable"/>
121+
<xs:element name="bytes25" type="variable"/>
122+
<xs:element name="bytes26" type="variable"/>
123+
<xs:element name="bytes27" type="variable"/>
124+
<xs:element name="bytes28" type="variable"/>
125+
<xs:element name="bytes29" type="variable"/>
126+
<xs:element name="bytes30" type="variable"/>
127+
<xs:element name="bytes31" type="variable"/>
128+
<xs:element name="bytes32" type="variable"/>
129+
<xs:element name="address" type="address"/>
130+
</xs:choice>
131+
</xs:complexType>
132+
</xs:element>
133+
25134
<xs:element name="token">
26135
<xs:complexType>
27136
<xs:sequence>

0 commit comments

Comments
 (0)