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

Fincontract

Fincontract describes an instance of a Fincontract in memory. It is usually fetched from the blockchain using Fetcher#pullFincontract. Its description can be also constructed using Parser#parse

Constructor Summary

Public Constructor
public

constructor(kwargs: Object)

Member Summary

Public Members
public

32-byte blockchain deployed ID

public

32-byte address of an Ethereum account, who the Fincontract was issued for

public

32-byte address of an Ethereum account, who owns the Fincontract

public

32-byte address of an Ethereum account, who is the proposed owner, an account that can join (see Executor#join) the Fincontract

public

Root of the description tree

Public Constructors

public constructor(kwargs: Object) source

Params:

NameTypeAttributeDescription
kwargs Object
kwargs.id String

32-byte blockchain deployed ID

kwargs.owner String

32-byte address of an Ethereum account, who owns the Fincontract

kwargs.issuer String

32-byte address of an Ethereum account, who the Fincontract was issued for

kwargs.proposedOwner String

32-byte address of an Ethereum account, who is the proposed owner, an account that can join (see Executor#join) the Fincontract

kwargs.rootDescription FincNode

root of the description tree

Public Members

public id: String source

32-byte blockchain deployed ID

public issuer: String source

32-byte address of an Ethereum account, who the Fincontract was issued for

public owner: String source

32-byte address of an Ethereum account, who owns the Fincontract

public proposedOwner: String source

32-byte address of an Ethereum account, who is the proposed owner, an account that can join (see Executor#join) the Fincontract

public rootDescription: FincNode source

Root of the description tree