Skip to content

Commit b19ecfa

Browse files
committed
nep-25: length extension
Signed-off-by: Roman Khimov <[email protected]>
1 parent 1dfa420 commit b19ecfa

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

nep-25.mediawiki

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ represents all possible fields).
174174
{
175175
"type": "Integer",
176176
"namedtype": "name",
177+
"length": 32,
177178
"interface": "IIterator",
178179
"key": "Integer",
179180
"value": {},
@@ -198,6 +199,13 @@ fields MUST NOT be set, except for the <code>type</code> which MUST be an
198199
<code>Array</code>. Value string MUST start with a letter and can contain
199200
alphanumeric characters and dots. It MUST NOT be longer than 64 characters.
200201

202+
<code>length</code> is an optional field that can be used for <code>Integer</code>,
203+
<code>ByteArray</code>, <code>String</code> or <code>Array</code> types and
204+
MUST NOT be used for other types. When used it specifies the maximum possible
205+
byte length of an integer/byte array/string or number of array elements.
206+
Any of these lengths MUST NOT exceed NeoVM limitations that are relevant for
207+
the current version of it. Length 0 means "unlimited".
208+
201209
<code>interface</code> is only used in conjuction with the
202210
<code>InteropInterface</code> <code>type</code> and MUST NOT be used for other
203211
types, when used it specifies which interop interface is used. The only valid
@@ -353,6 +361,14 @@ map parameters, returning an iterator with structured element type.
353361
}
354362
}
355363
},
364+
{
365+
"name" : "Int32Field",
366+
"type" : "Integer",
367+
"extendedtype" : {
368+
"type" : "Integer",
369+
"length" : 4
370+
}
371+
},
356372
{
357373
"name" : "StringField",
358374
"type" : "String"

0 commit comments

Comments
 (0)