2641 Commits

Author SHA1 Message Date
emizzle
89651dde2f Converted fakeIpcProvider to 2 spaces 2018-08-02 13:51:36 +10:00
emizzle
9b41fa8ac2 Modified DevFunds to “factory pattern”
Added a “factory pattern” to DevFunds to allow for async calls to be made during object construction. This allows for `web3.eth.getAccounts` to be called and the `accounts` property assigned on instantiation.

This modification allows each unit test case to be run independently of the others.
2018-08-01 11:35:42 +10:00
emizzle
7cb9cd5622 Basic unit tests complete for dev funds
Finished added unit tests for dev_funds. These are weak tests as the FakeIpcProvider does not provide enough support for keeping track of accounts and balances and instead we are injecting the provider responses in the tests, which kind of defeats the purposes of the tests. Instead, the FakeIpcProvider should be a little smarter and do more of what a real node would do.
2018-07-31 14:59:55 +10:00
emizzle
12304eac16 Adding in unit tests for dev_funds (WIP) 2018-07-31 14:59:55 +10:00
Iuri Matias
c577ad6b16 update to 3.1.7 3.1.7 2018-07-30 07:01:36 -04:00
Iuri Matias
c44a95e6ea fix linting issue 2018-07-30 06:58:54 -04:00
Iuri Matias
0cb093b280
Merge pull request #660 from embark-framework/lock_ethereumjs_wallet
lock ethereumjs-wallet version due to breaking change in 0.6.1 patch
2018-07-30 06:51:48 -04:00
Iuri Matias
0310d53b41 lock ethereumjs-wallet version due to breaking change in 0.6.1 patch 2018-07-30 06:44:27 -04:00
Iuri Matias
a01e600857
Merge pull request #627 from embark-framework/bug_fix/warning-contract-path
trim the contract name to have the warning correctly (patch)
2018-07-26 13:31:59 -04:00
Iuri Matias
258358558b update to 3.1.6 3.1.6 2018-07-19 11:18:48 +03:00
Iuri Matias
f5d82d222c
Merge pull request #633 from embark-framework/fund_accounts
Changes for 3.1 & --dev mode
2018-07-19 11:16:20 +03:00
Iuri Matias
71e9eed67b use config password file; tolerate somethign going terribly wrong since it wouldnt' affect the blockchain process generally 2018-07-19 11:15:16 +03:00
Iuri Matias
69f356b3f0 only use personal in --dev mode 2018-07-19 10:58:47 +03:00
Iuri Matias
eda616dc73 update tests 2018-07-19 10:34:56 +03:00
Iuri Matias
0099078e94 fix lint 2018-07-18 17:53:37 +03:00
Iuri Matias
c1809e3752 Merge branch 'fund_accounts' of github.com:embark-framework/embark into fund_accounts 2018-07-18 17:48:58 +03:00
Iuri Matias
20406ba51a fix lint 2018-07-18 17:47:53 +03:00
emizzle
9382f98933 Housekeeping and removal of none additions
Clean up debugging statements from fund_accounts.

Removed the addition of the nonce increment for contracts deploy as this was only affecting mneumonic-generated accounts which is not meant for dev environment.
2018-07-18 14:08:32 +02:00
Iuri Matias
5e3740f088 add regular account unlocks in devMod due to issues with geth 2018-07-18 13:45:18 +03:00
Iuri Matias
28dd6dba60 add interval to send txs to deal with geth --dev bug 2018-07-18 13:29:02 +03:00
Iuri Matias
3d1db2b21e Merge branch 'fund_accounts' of github.com:embark-framework/embark into fund_accounts 2018-07-17 17:49:32 +03:00
Iuri Matias
91f1748d60 don't wait for account funds 2018-07-17 17:30:23 +03:00
Iuri Matias
231199c0dc ad missing emit 2018-07-17 16:13:12 +03:00
Iuri Matias
d0162a6c78 move - for now - determining gas price to deployment to avoid race conditions 2018-07-17 15:10:22 +03:00
emizzle
7e12c5a9f7 funding dev account updates
Now funds accounts only if they have not been funded, and also funds with only the amount needed.

Also fixed bug with unlocking accounts when re-running `unlockAccounts` on already created accounts.
2018-07-17 10:57:31 +02:00
emizzle
296663edc7 password read from config file and fix for gasprice 2018-07-16 21:19:01 +02:00
emizzle
11d6980f70 further dev funding 2018-07-16 18:48:32 +02:00
Iuri Matias
f2213970f7 first stab at funding accounts in geth given config 2018-07-13 15:56:59 +03:00
Jonathan Rainville
8875b1b7ab trim the contract name to have the warning correctly 2018-07-12 12:36:54 -04:00
Jonathan Rainville
446787447d 3.1.5 v3.1.5 2018-07-06 10:50:41 -04:00
Jonathan Rainville
ffccbeabca
Merge pull request #605 from embark-framework/bug_fix/balance-fix
set default balance when no one is there with simulator
2018-07-06 10:47:14 -04:00
Jonathan Rainville
b426d1c6d2
Merge pull request #604 from embark-framework/bug_fix/syncModepatch
Bug fix/sync modepatch
2018-07-06 10:46:52 -04:00
Jonathan Rainville
2575cd7f62 set default balance when no one is there with simulator 2018-07-06 10:27:05 -04:00
Jonathan Rainville
da01ab15db enable using both syncMode and syncmode 2018-07-06 09:31:28 -04:00
Heikki Hakala
872501e94e Update sync mode config values in demo config #601 2018-07-06 08:53:54 -04:00
Iuri Matias
5bb1d33739 update to 3.1.4 3.1.4 2018-07-04 17:05:01 +03:00
Iuri Matias
dbc18fddfa
Merge pull request #598 from embark-framework/geth_fix
ignore stderr since geth outputs normal logs to it
2018-07-04 09:50:44 -04:00
Iuri Matias
289be4b8a4 check for cmd not found in stderr 2018-07-04 16:40:46 +03:00
Iuri Matias
a7a6a62edc make linter happy 2018-07-04 16:36:49 +03:00
Iuri Matias
6c03a2e212 ignore stderr since geth outputs normal logs to it 2018-07-04 16:10:12 +03:00
Jonathan Rainville
3228ff2086 3.1.3 v3.1.3 2018-07-03 15:12:27 -04:00
Jonathan Rainville
dc2247a290 update package lock 2018-07-03 15:12:22 -04:00
Jonathan Rainville
5ac45f18b0 fix account initialization and address use 2018-07-03 15:10:44 -04:00
Jonathan Rainville
12d73e1213 3.1.1 v3.1.1 2018-07-03 15:06:30 -04:00
Jonathan Rainville
eb6a7d78f3 update package lock json 2018-07-03 15:06:26 -04:00
Jonathan Rainville
d184d71cc8
Merge pull request #596 from embark-framework/bug_fix/account
fix account initialization and address use
2018-07-03 15:03:56 -04:00
Jonathan Rainville
ffb3ec544b fix account initialization and address use 2018-07-03 14:55:04 -04:00
Iuri Matias
b1684d8c73
Merge pull request #595 from embark-framework/bad_connection_handling_patch_fix
Bad connection handling patch fix
2018-06-29 18:38:48 -04:00
Iuri Matias
6ee387653d fix metamask check for non dev environment 2018-06-29 18:14:21 -04:00
Iuri Matias
db3356cec0 detect if there is a connection error and pass it down to the ready function 2018-06-29 18:14:08 -04:00