Home Reference Source Repository

Typedef

Static Public Summary
public

Currencies as defined in: https://github.com/cryptolu/findel

public

Result of executing a Fincontract

public

NodeEvaluators is an Object that contains evaluator functions for all types of nodes (See classes that inherit from FincNode).

public

Object passed to Transaction#watch as filter argument that specifies type of event or blockchain change to watch for.

Static Public

public CurrenciesType: Object source

Currencies as defined in: https://github.com/cryptolu/findel

Properties:

NameTypeAttributeDescription
0 Number

USD (US Dollar)

1 Number

EUR (Euro)

2 Number

GBP (British Pound)

3 Number

JPY (Japanese Yen)

4 Number

CNY (Renminbi)

5 Number

SGD (Singapore Dollar)

public ExecutionResult: Object source

Result of executing a Fincontract

Properties:

NameTypeAttributeDescription
type String

type of the result (executed | deferred)

deleted String

id of the deleted Fincontract (32-byte address)

newFincontracts Array<String> | undefined

list of newly created Fincontracts if the execution is deferred, otherwise undefined

public NodeEvaluators: Object source

NodeEvaluators is an Object that contains evaluator functions for all types of nodes (See classes that inherit from FincNode). Each key contains a function that has to return the actual evaluator function. This is because certain evaluations require node's context and certain do not. The actual evaluator function has to take one argument, that is one interval or a tuple of two intervals. It has to always return a single interval.

Properties:

NameTypeAttributeDescription
if Callback

Evaluates FincIfNode nodes

or Callback

Evaluates FincOrNode nodes

and Callback

Evaluates FincIfNode nodes

give Callback

Evaluates FincGiveNode nodes

scale Callback

Evaluates FincScaleNode nodes

scaleObs Callback

Evaluates FincScaleObsNode nodes

timebound Callback

Evaluates FincIfNode nodes

zero Callback

Evaluates FincZeroNode nodes

one Callback

Evaluates FincOneNode nodes

public TransactionFilter: Object source

Object passed to Transaction#watch as filter argument that specifies type of event or blockchain change to watch for.

Properties:

NameTypeAttributeDescription
event String

FincontractMarketplace's event to watch for

block String

Blockchain change to watch for (see Web3, specifically web3.eth.filter for more details)