This enhanced the nativeToScVal helper, allowing more flexibility in the output types.
Specifically, this lets you:
build scvU32 and scvI32 types
build scvSymbols from strings and bytes
build scvStrings from bytes
build scvVecs with specific types (i.e. recursive type specification)
build scvMaps with specific types for both keys and values (via a simple type specification format (e.g. type: { field: [ keyType?, valueType? ] } for each entry in the map)
This enhanced the
nativeToScVal
helper, allowing more flexibility in the output types.Specifically, this lets you:
scvU32
andscvI32
typesscvSymbol
s from strings and bytesscvString
s from bytesscvVec
s with specific types (i.e. recursive type specification)scvMap
s with specific types for both keys and values (via a simple type specification format (e.g.type: { field: [ keyType?, valueType? ] }
for each entry in the map)Related: #637