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

FincScaleObsNode

Extends:

FincNode → FincScaleObsNode

FincScaleObsNode extends FincNode and implements ScaleObs primitive, which takes a sub-fincontract and a Gateway address. Upon execution, the sub-fincontract is scaled by the value obtained from the Gateway. Gateway has to conform to the Gateway interface (see Gateway smart contract at FincontractMarketplace).

Constructor Summary

Public Constructor
public

constructor(child: FincNode, gatewayAddress: String)

Constructs FincScaleObsNode with a child and a Gateway address.

Member Summary

Public Members
public

32-byte address of the blockchain deployed Gateway

Inherited Summary

From class FincNode
public

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

Public Constructors

public constructor(child: FincNode, gatewayAddress: String) source

Constructs FincScaleObsNode with a child and a Gateway address.

Override:

FincNode#constructor

Params:

NameTypeAttributeDescription
child FincNode

a sub-fincontract to be embedded inside FincScaleObsNode

gatewayAddress String

32-byte address of the blockchain deployed Gateway

Public Members

public gatewayAddress: String source

32-byte address of the blockchain deployed Gateway