Home Reference Source Repository
import {FincOneNode} from 'fincontracts-lib/src/fincontract.js'
public class | source

FincOneNode

Extends:

FincNode → FincOneNode

FincOneNode extends FincNode and implements One primitive, which takes a currency index (see CurrenciesType) and always requires payer to pay 1 of that currency upon execution.

Constructor Summary

Public Constructor
public

constructor(currency: Number)

Constructs FincOneNode with a currency index

Member Summary

Public Members
public

Currency index, must be one of the supported ones.

Inherited Summary

From class FincNode
public

References to children, can be an Array of FincNode, a FincNode or simply null.

Public Constructors

public constructor(currency: Number) source

Constructs FincOneNode with a currency index

Override:

FincNode#constructor

Params:

NameTypeAttributeDescription
currency Number

a currency index

Public Members

public currency: Number source

Currency index, must be one of the supported ones.