Helios API/ API Reference/ Classes/
ConstrData
Represents a tag index and a list of UplcData
fields.
Hierarchy
-
↳
ConstrData
Index
Constructors
constructor
• new ConstrData(index
, fields
)
Parameters
Name | Type |
---|---|
index | number |
fields | UplcData [] |
Overrides
Accessors
memSize
• get
memSize(): number
Estimate of memory usage during validation
Returns
number
Inherited from
UplcData.memSize
Methods
isSame
▸ isSame(other
): boolean
Compares the schema jsons
Parameters
Name | Type |
---|---|
other | UplcData |
Returns
boolean
Inherited from
toCbor
▸ toCbor(): number
[]
Returns
number
[]
Inherited from
toCborHex
▸ toCborHex(): string
Returns
string
Inherited from
toSchemaJson
▸ toSchemaJson(): string
Returns
string
Inherited from
transfer
▸ transfer(other
): any
Parameters
Name | Type |
---|---|
other | TransferUplcAst |
Returns
any
Inherited from
fromCbor
▸ Static
fromCbor(bytes
): ConstrData
Parameters
Name | Type |
---|---|
bytes | number [] |