Private constructor used by the library.
Ethereum address at which loan is deployed.
State of the loan on the blockchain. These change with time.
updateStateFromBlockchain
should be called to update this data with the
freshest state from the blockchain.
Value of loan token gathered in fundraising.
Whether the loan has defaulted, ie. the liege has not paid back in time.
Whether the loan is currently raising funds from investors.
State of Loan contract.
Whether the loan has been paid back succesfully.
User-given description of the loan.
Ethereum address of owner/liege of loan.
Parameters with which the loan got created on the blockchain. These are always available and constant through the life of a loan.
Amount of loan token wanted.
Address of ERC20-compatible token used as collateral for the loan.
Date by which the loan needs to have all investment gathered.
Interest of loan, in permil.
Address of ERC20-compatible token used as loan.
Date by which loan needs to be fully repaid.
A short identifier that is used to lookup the loan in the Getline index system (metabackend). Opaque.
Returns whether the current API client is the owner/liege of the loan.
Whether the current API client is the owner/liege of the loan.
Private method used by the library to load data from a metabackend protobuf.
Sends collateral to the loan and starts fundraising process. This is non-reversible as it advances the state of the smart contract.
This function will block until the new state is saved on the blockchain.
Loads the newest state of the loan from the blockchain.
Generated using TypeDoc
Representation of a GetLine Loan indexed by the system and running on the blockchain.