Home Reference Source Repository

References

Class Summary

Static Public Class Summary
public

CollectingVisitor extends Visitor by providing default functionality of collecting all leaf nodes.

public

Currency class describes supported currencies as well as operations on them, such as mapping from and to a Currency index as well as exchanging a list of interval in different currencies to a single base for evaluation.

public

Deployer allows for deployment of Fincontract to the blockchain in a series of transaction.

public

Deploys a Fincontract description to the blockchain by traversing the FincNode tree in preorder fashion to ensure topological ordering.

public

DotGenerator class allows for generation Fincontract DOT graphs.

public

DotGeneratorVisitor performs collection of links and labels in order to later generate a DOT description of the Fincontract graph from FincNode description tree by extending Visitor.

public
public

Evaluator class is used for performing different evaluation methods on a Fincontracts' descriptions.

public

Performs the actual evaluation of a Fincontract by analysing its description tree (See FincNode).

public

Examples class is meant to deploy some of the tests defined in FincontractMarketplace as well as assign Gateways to global values.

public

Executor class is used for executing deployed contracts in FincontractMarketplace.

public

Fetcher class is used for fetching blockchain deployed Fincontracts, by calling appropriate functions (see getFincontractInfo and getDescriptionInfo from FincontractMarketplace).

public

FincAndNode extends FincNode and implements And primitive, which takes two sub-fincontracts and makes them both valid.

public

FincGiveNode extends FincNode and implements Give primitive, which upon execution flips the payer with the payee

public

FincIfNode extends FincNode and implements If primitive, which takes two sub-fincontracts and a Gateway address.

public abstract

FincNode is the superclass for all primitives.

public

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.

public

FincOrNode extends FincNode and implements Or primitive, which takes two sub-fincontracts and allows the owner to choose only one of them.

public

FincScaleNode extends FincNode and implements Scale primitive, which takes a sub-fincontract and a Number.

public

FincScaleObsNode extends FincNode and implements ScaleObs primitive, which takes a sub-fincontract and a Gateway address.

public

FincTimeboundNode extends FincNode and implements Timebound primitive, which takes a sub-fincontract and makes it valid only if the current timestamp is between FincTimeboundNode.lowerBound and FincTimeboundNode.upperBound.

public

FincZeroNode extends FincNode and implements Zero primitive, which upon execution does nothing.

public

Fincontract describes an instance of a Fincontract in memory.

public

GatewayUpdater updates Gateways contained inside Fincontract instance (see Fincontract.rootDescription).

public

GatewayVisitor performs the actual Gateway update by traversing the FincNode description tree.

public

OrNodeChecker checks if there exist path from root node to the nearest Or node (see FincOrNode), while only passing through FincTimeboundNode and FincScaleNode.

public

Parser class allows for parsing Fincontract descriptions, using math.js as its back-end.

public

Sender class allows for sending Ethereum transactions and returns Transaction objects that can be then watched for events (see Transaction#watch).

public

Serializer class allows for serialization of Fincontracts.

public

SerializerVisitor performs the actual serialization of a FincNode description tree into String by extending Visitor.

public

A sent transaction, which can be watched for events.

public

Visitor implements pre-order tree traversal for Fincontract description trees (see FincNode).

Function Summary

Static Public Function Summary
public

Returns NodeEvaluators object for evaluating using direct (See makeEstimationEvaluators) method.

public

Returns NodeEvaluators object for evaluating using estimate method.

public

Creates a random ID generator given a PRNG

Typedef Summary

Static Public Typedef 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.

External Summary

Static Public External Summary
public
public
public