Properties
deployedEnvironment
ethereumConnection
latestContracts
web3
web3: any
Accessors
exchange
-
rates
-
token
-
Static AugmintToken
- get AugmintToken(): typeof AugmintToken
-
Returns typeof AugmintToken
Static Errors
- get Errors(): typeof Errors
-
Returns typeof Errors
Static EthereumConnection
- get EthereumConnection(): typeof EthereumConnection
-
Returns typeof EthereumConnection
Static Exchange
- get Exchange(): typeof Exchange
-
Returns typeof Exchange
Static LoanManager
- get LoanManager(): typeof LoanManager
-
Returns typeof LoanManager
Static Transaction
- get Transaction(): typeof Transaction
-
Returns typeof Transaction
Static constants
- get constants(): typeof constants
-
Returns typeof constants
Static gas
-
Returns typeof gas
Methods
addExtraCollateral
-
Parameters
-
-
weiAmount: Wei
-
userAccount: string
collectLoans
-
Parameters
-
loansToCollect: Loan[]
-
userAccount: string
getAllLoanManagers
-
getAllLoans
- getAllLoans(): Promise<Loan[]>
-
Returns Promise<Loan[]>
getLegacyExchanges
- getLegacyExchanges(addresses?: string[]): Exchange[]
-
Parameters
-
Default value addresses: string[] = []
getLegacyLoanManagers
- getLegacyLoanManagers(addresses?: string[]): LoanManager[]
-
Parameters
-
Default value addresses: string[] = []
getLegacyTokens
-
Parameters
-
Default value addresses: string[] = []
getLoanCounts
- getLoanCounts(): Promise<ILoanCount[]>
-
Returns Promise<ILoanCount[]>
getLoanProducts
- getLoanProducts(activeOnly: boolean): Promise<LoanProduct[]>
-
Parameters
getLoansForAccount
- getLoansForAccount(userAccount: string): Promise<Loan[]>
-
Parameters
Returns Promise<Loan[]>
getLoansToCollect
- getLoansToCollect(): Promise<Loan[]>
-
Returns Promise<Loan[]>
newEthBackedLoan
-
Parameters
-
-
weiAmount: Wei
-
userAccount: string
-
Optional minRate: Tokens
repayLoan
-
Parameters
-
-
repaymentAmount: Tokens
-
userAccount: string
Static create
-
Parameters
Returns Promise<Augmint>
Static generateDeploymentEnvironment
- generateDeploymentEnvironment(environmentName: string, stubs: IDeployedEnvironmentStub[]): DeployedEnvironment
-
Parameters
-
environmentName: string
-
stubs: IDeployedEnvironmentStub[]