Helios API/ API Reference/ Classes/
UplcBool
JS/TS equivalent of the Helios language Bool
type.
Implements
Hierarchy
-
↳
UplcBool
Implements
Index
Constructors
constructor
• new UplcBool(site
, value
)
Parameters
Name | Type |
---|---|
site | Site |
value | boolean |
Overrides
Accessors
bool
• get
bool(): boolean
Returns
boolean
Implementation of
Inherited from
UplcValueImpl.bool
bytes
• get
bytes(): number
[]
Returns
number
[]
Implementation of
Inherited from
UplcValueImpl.bytes
data
• get
data(): UplcData
Returns
Implementation of
Inherited from
UplcValueImpl.data
first
• get
first(): UplcValue
Returns
Implementation of
Inherited from
UplcValueImpl.first
flatSize
• get
flatSize(): number
4 for type, 1 for value
Returns
number
Implementation of
int
• get
int(): bigint
Returns
bigint
Implementation of
Inherited from
UplcValueImpl.int
itemType
• get
itemType(): UplcType
Returns
Implementation of
Inherited from
UplcValueImpl.itemType
length
• get
length(): number
Returns
number
Implementation of
Inherited from
UplcValueImpl.length
list
• get
list(): UplcValue
[]
Returns
Implementation of
Inherited from
UplcValueImpl.list
memSize
• get
memSize(): number
Returns
number
Implementation of
second
• get
second(): UplcValue
Returns
Implementation of
Inherited from
UplcValueImpl.second
site
• get
site(): Site
Returns
Implementation of
Inherited from
UplcValueImpl.site
string
• get
string(): string
Returns
string
Implementation of
Inherited from
UplcValueImpl.string
Methods
assertUnit
▸ assertUnit(): UplcUnit
Returns
Implementation of
Inherited from
copy
▸ copy(newSite
): UplcBool
Parameters
Name | Type |
---|---|
newSite | Site |
Returns
Implementation of
isAny
▸ isAny(): boolean
Returns
boolean
Implementation of
Inherited from
isData
▸ isData(): boolean
Returns
boolean
Implementation of
Inherited from
isList
▸ isList(): boolean
Distinguishes a list from a map
Returns
boolean
Implementation of
Inherited from
isPair
▸ isPair(): boolean
Distinguishes a pair from a mapItem
Returns
boolean
Implementation of
Inherited from
toFlatValue
▸ toFlatValue(bitWriter
): void
Encodes value with plutus flat encoding. Member function not named 'toFlat' as not to confuse with 'toFlat' member of terms.
Parameters
Name | Type |
---|---|
bitWriter | BitWriter |
Returns
void
Implementation of
Inherited from
toFlatValueInternal
▸ toFlatValueInternal(bitWriter
): void
Encodes value without type header
Parameters
Name | Type |
---|---|
bitWriter | BitWriter |
Returns
void
Implementation of
Inherited from
UplcValueImpl.toFlatValueInternal
transfer
▸ transfer(other
): any
Parameters
Name | Type |
---|---|
other | TransferUplcAst |
Returns
any
Implementation of
typeBits
▸ typeBits(): string
Returns
string
Implementation of
Inherited from
new
▸ Static
new(value
): UplcBool
Constructs a UplcBool without requiring a Site
Parameters
Name | Type |
---|---|
value | boolean |
Returns
newTerm
▸ Static
newTerm(site
, value
): UplcConst
Creates a new UplcBool wrapped with UplcConst so it can be used as a term.
Parameters
Name | Type |
---|---|
site | Site |
value | boolean |