aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/src
diff options
context:
space:
mode:
Diffstat (limited to 'packages/contracts/src')
-rw-r--r--packages/contracts/src/utils/constants.ts22
-rw-r--r--packages/contracts/src/utils/utils.ts7
2 files changed, 29 insertions, 0 deletions
diff --git a/packages/contracts/src/utils/constants.ts b/packages/contracts/src/utils/constants.ts
index d1152e683..09dd65653 100644
--- a/packages/contracts/src/utils/constants.ts
+++ b/packages/contracts/src/utils/constants.ts
@@ -1,3 +1,5 @@
+import * as ethUtil from 'ethereumjs-util';
+
const DUMMY_TOKEN_NAME = '';
const DUMMY_TOKEN_SYMBOL = '';
const DUMMY_TOKEN_DECIMALS = 18;
@@ -11,4 +13,24 @@ export const constants = {
MAX_TOKEN_TRANSFERFROM_GAS: 80000,
MAX_TOKEN_APPROVE_GAS: 60000,
DUMMY_TOKEN_ARGS: [DUMMY_TOKEN_NAME, DUMMY_TOKEN_SYMBOL, DUMMY_TOKEN_DECIMALS, DUMMY_TOKEN_TOTAL_SUPPLY],
+ TESTRPC_PORT: 8545,
+ TESTRPC_INITIAL_BALANCE_HEX: parseInt('100000000000000000000', 16),
+ TESTRPC_ACCOUNTS: [
+ {
+ balance: this.TESTRPC_INITIAL_BALANCE_HEX,
+ secretKey: ethUtil.sha3('secret0'),
+ },
+ {
+ balance: this.TESTRPC_INITIAL_BALANCE_HEX,
+ secretKey: ethUtil.sha3('secret1'),
+ },
+ {
+ balance: this.TESTRPC_INITIAL_BALANCE_HEX,
+ secretKey: ethUtil.sha3('secret2'),
+ },
+ {
+ balance: this.TESTRPC_INITIAL_BALANCE_HEX,
+ secretKey: ethUtil.sha3('secret3'),
+ },
+ ],
};
diff --git a/packages/contracts/src/utils/utils.ts b/packages/contracts/src/utils/utils.ts
new file mode 100644
index 000000000..04ac36b54
--- /dev/null
+++ b/packages/contracts/src/utils/utils.ts
@@ -0,0 +1,7 @@
+export const utils = {
+ consoleLog(message: string): void {
+ /* tslint:disable */
+ console.log(message);
+ /* tslint:enable */
+ },
+};