View jest.config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Setup with ts-jest preset then overwrite the rest with jest-environment-puppeteer | |
* so we can use typescript for puppeteer tests. | |
*/ | |
module.exports = { | |
preset: "ts-jest", | |
globalSetup: "jest-environment-puppeteer/setup", | |
globalTeardown: "jest-environment-puppeteer/teardown", | |
testEnvironment: "jest-environment-puppeteer", | |
setupFilesAfterEnv: ["expect-puppeteer"], | |
}; |
View travis.output
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[5/5] Building fresh packages... | |
error /home/travis/build/Augmint/augmint-web/node_modules/sha3: Command failed. | |
Exit code: 1 | |
Command: node-gyp rebuild | |
Arguments: | |
Directory: /home/travis/build/Augmint/augmint-web/node_modules/sha3 | |
Output: | |
gyp info it worked if it ends with ok | |
gyp info using node-gyp@3.8.0 | |
gyp info using node@10.15.3 | linux | x64 |
View Loan.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import BigNumber from "bignumber.js"; | |
import { Contract } from "./Contract"; | |
export interface ILoanProduct { | |
id: number; | |
termInSecs: number; | |
termInDays: number; | |
termText: string; |
View web3jse2eTest.output
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Web3 e2e tests | |
Web3 integration tests for: http://ganache:8545 | |
✓ should be able to make a web3 instance | |
✓ should be able to get a list of accounts (157ms) | |
Web3 integration tests for: http://geth:8545 | |
✓ should be able to make a web3 instance | |
✓ should be able to get a list of accounts | |
Web3 integration tests for: ws://geth:8546 | |
✓ should be able to make a web3 instance | |
connection not open on send() |
View deployContract.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Web3 = require("web3"); | |
const web3 = new Web3( | |
Web3.providers.WebsocketProvider("ws://localhost:8545"), | |
null, | |
{ | |
defaultBlock: "latest", | |
defaultGas: 5000000, | |
defaultGasPrice: 1, | |
transactionBlockTimeout: 50, |
View sendTx.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Web3 = require("web3"); | |
const OPTIONS = { | |
defaultBlock: "latest", | |
transactionConfirmationBlocks: 1, | |
transactionBlockTimeout: 5 | |
}; | |
const web3 = new Web3( | |
new Web3.providers.WebsocketProvider("ws://localhost:8545"), |
View Rink0011_adjustInterest.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* adjust lock & loan interest rates, increase allowedLtdDifferenceAmount */ | |
pragma solidity 0.4.24; | |
import "../../LoanManager.sol"; | |
import "../../Locker.sol"; | |
import "../../MonetarySupervisor.sol"; | |
contract Rink0011_adjustInterest { |
View Rink0010_changeDefaultingFee.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* set defaulting fee from 5% to 10% */ | |
pragma solidity 0.4.24; | |
import "../../LoanManager.sol"; | |
contract Rink0010_changeDefaultingFee { | |
address constant stabilityBoardProxyAddress = 0x44022C28766652EC5901790E53CEd7A79a19c10A; |
View Main0006_initNewLocker.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* grant permissions & add lock products to new locker contract | |
It sets up the products with different interest rates than in old locker and | |
introduces two new lock products: 90 days and 180 days term | |
NB: once UI is switched over to new locker, products in old locker | |
should be disabled to prevent ppl keep using locker directly | |
*/ | |
pragma solidity 0.4.24; | |
import "../../generic/MultiSig.sol"; |
View 23_executeRink0004_and_revokeOldPermissions.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/****************************************************************************** | |
* Execute Rink0004_migrate_MSv0_5_0.sol (already signed by stability board) | |
* and switch to new MS and rates contracts and revoke permissions from old contracts | |
* NB: | |
* - switch contracts can executed from deployer account for now because old contracts didn't have multiSig. | |
* In future these must be set via StabilityBoardProxy, ie. be part of the migrate script | |
******************************************************************************/ | |
const Migrations = artifacts.require("./Migrations.sol"); | |
const Rink0004_migrate_MSv0_5_0 = artifacts.require("./Rink0004_migrate_MSv0_5_0.sol"); | |
const StabilityBoardProxy = artifacts.require("./StabilityBoardProxy.sol"); |
NewerOlder