Class: CircuitValue
Hierarchy
Table of contents
Constructors
Methods
- assertEquals
- equals
- isConstant
- toConstant
- toFields
- toJSON
- check
- fromJSON
- fromObject
- ofFields
- sizeInFields
- toConstant
- toFields
- toInput
- toJSON
Constructors
constructor
• new CircuitValue(...props
)
Parameters
Name | Type |
---|---|
...props | any [] |
Defined in
Methods
assertEquals
▸ assertEquals(x
): void
Parameters
Name | Type |
---|---|
x | CircuitValue |
Returns
void
Defined in
equals
▸ equals(x
): Bool
Parameters
Name | Type |
---|---|
x | CircuitValue |
Returns
Defined in
isConstant
▸ isConstant(): boolean
Returns
boolean
Defined in
toConstant
▸ toConstant(): CircuitValue
Returns
Defined in
toFields
▸ toFields(): Field
[]
Returns
Field
[]
Defined in
toJSON
▸ toJSON(): JSONValue
Returns
JSONValue
Defined in
check
▸ Static
check<T
>(this
, v
): void
Type parameters
Name | Type |
---|---|
T | extends AnyConstructor |
Parameters
Name | Type |
---|---|
this | T |
v | InstanceType <T > |
Returns
void
Defined in
fromJSON
▸ Static
fromJSON<T
>(this
, value
): null
| InstanceType
<T
>
Type parameters
Name | Type |
---|---|
T | extends AnyConstructor |
Parameters
Name | Type |
---|---|
this | T |
value | JSONValue |
Returns
null
| InstanceType
<T
>
Defined in
fromObject
▸ Static
fromObject<T
>(this
, value
): InstanceType
<T
>
Type parameters
Name | Type |
---|---|
T | extends AnyConstructor |
Parameters
Name | Type |
---|---|
this | T |
value | NonMethods <InstanceType <T >> |
Returns
InstanceType
<T
>
Defined in
ofFields
▸ Static
ofFields<T
>(this
, xs
): InstanceType
<T
>
Type parameters
Name | Type |
---|---|
T | extends AnyConstructor |
Parameters
Name | Type |
---|---|
this | T |
xs | Field [] |
Returns
InstanceType
<T
>
Defined in
sizeInFields
▸ Static
sizeInFields(): number
Returns
number
Defined in
toConstant
▸ Static
toConstant<T
>(this
, t
): InstanceType
<T
>
Type parameters
Name | Type |
---|---|
T | extends AnyConstructor |
Parameters
Name | Type |
---|---|
this | T |
t | InstanceType <T > |
Returns
InstanceType
<T
>
Defined in
toFields
▸ Static
toFields<T
>(this
, v
): Field
[]
Type parameters
Name | Type |
---|---|
T | extends AnyConstructor |
Parameters
Name | Type |
---|---|
this | T |
v | InstanceType <T > |
Returns
Field
[]
Defined in
toInput
▸ Static
toInput<T
>(this
, v
): HashInput
Type parameters
Name | Type |
---|---|
T | extends AnyConstructor |
Parameters
Name | Type |
---|---|
this | T |
v | InstanceType <T > |
Returns
HashInput
Defined in
toJSON
▸ Static
toJSON<T
>(this
, v
): JSONValue
Type parameters
Name | Type |
---|---|
T | extends AnyConstructor |
Parameters
Name | Type |
---|---|
this | T |
v | InstanceType <T > |
Returns
JSONValue