ScriptRefType class

Represents the type of a script reference.

Mixed in types

Constructors

ScriptRefType.deserialize(CborIntValue cbor, {ScriptRefType? validate})
Deserializes a ScriptRefType instance from CBOR.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
name String
The name of the script reference type.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value int
The value representing the script reference type.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
serialize() List<int>
Serializes the object to CBOR bytes.
inherited
serializeHex() String
Serializes the object to hexadecimal string.
inherited
toCbor() → CborObject
Converts the object to a CBOR object.
override
toJson() String
Converts the ScriptRefType instance to its JSON representation.
override
toString() String
Converts the ScriptRefType instance to a string representation.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromName(String? name) ScriptRefType
Gets the ScriptRefType instance corresponding to the provided name.
fromValue(int? value) ScriptRefType
Gets the ScriptRefType instance corresponding to the provided value.

Constants

nativeScript → const ScriptRefType
Native script reference type.
plutusScript → const ScriptRefType
Plutus script reference type.
values → const List<ScriptRefType>
List of all script reference types.