Michael Bradley
043ccc0a24
feat(@embark/compiler): support :before and :after hooks on event compiler:contracts:compile ( #1878 )
...
* feat(@embark/compiler): support :before and :after hooks on event compiler:contracts:compile
* style: keep root package.json sorted cleanly
* style: formatting with prettier where print-width is 200
Per the suggestion of @iurimatias
* WIP: PR review
* WIP: PR review
* WIP: refactor to check if file.path is within dappPath() or os.tmpdir()
* WIP: PR review
* WIP: use native async functions (and related JS lang constructs) instead of the async library
* WIP: async.eachObject is no longer a dependency
2019-09-11 13:08:52 -04:00
André Medeiros
5faa07cc9f
chore: set contract objects to EmbarkJS' wrapper ( #1893 )
2019-09-11 13:06:39 -04:00
Iuri Matias
8849aca264
chore(@embark/blockchain-listeener): remove blockchain-listener package ( #1887 )
2019-09-11 12:32:16 -04:00
Jonathan Rainville
ee634c8403
fix: fix test-app, contracts index file and reload on change ( #1892 )
...
* fix: fix test-app, contracts index file and reload on change
* fix(@embark/cmd_controller): fix missing nodes
Was removed by accident
* feat(@embark/demo): add favicon to embark demo
* chore(@embark/cockpit): change favicon to new Embark logo
* fix(@embark/embarkjs-ens): fix ENS config for embarkjs-ens
* remove comments
2019-09-11 12:31:57 -04:00
André Medeiros
3fe5b93a1f
chore: refactor requestManager use ( #1891 )
...
Use our own object instance by giving it the existing provider instead
of fishing out private properties inside the `web3` instance.
2019-09-09 15:29:49 -04:00
Michael Bradley, Jr
c057695b09
test(@embark/plugins/solidity-tests): supply mock options object to SolidityTestRunner constructor
...
When an options object is not supplied the tests fail because the constructor
expects the options argument to be an object, i.e. referencing
`options.plugins` should not cause a TypeError
2019-09-09 11:40:21 -05:00
André Medeiros
2900e04cae
chore: use libraries to generate coverage report ( #1876 )
2019-09-09 08:47:22 -04:00
Michael Bradley, Jr
8779476ac0
style: make eslint aware of mocha globals in plugins/mocha-tests and stack/test-runner
...
Also remove some `/* globals ... */` comments and supply missing semicolons
2019-09-08 15:29:03 -05:00
André Medeiros
5e560768ad
chore: test runner tests ( #1884 )
...
* chore: test runner tests
* chore: mocha test runner tests
* chore: add solidity test file to dapp
2019-09-07 15:55:24 -04:00
Iuri Matias
14155285b3
move rest of the packages to their logical folders ( #1886 )
...
* chore(@embark/): move more packages to their logical folders, remove embark- prefix
* chore(@embark/): move embark-process-logs-api-manager to stack folder, remove embark- prefix
* chore(@embark/): move embark-coverage to plugins folder, remove embark- prefix
* chore(@embark/): move api, async-wrapper, authenticator, library-managre to folders, remove embark- prefix
2019-09-07 15:45:25 -04:00
Iuri Matias
f7e226fdd4
chore(@embark/): move cockpit packages to their own folder ( #1883 )
2019-09-07 12:02:49 -04:00
Iuri Matias
8cf458b129
chore(@embark/): move more packages to their logical folders, remove embark- prefix ( #1882 )
2019-09-07 11:27:08 -04:00
Michael Bradley, Jr
25a06447c8
fix(@embarkjs/swarm): web3@1.0.0-beta.37 -> web3@1.2.1
2019-09-06 19:31:18 -05:00
Michael Bradley, Jr
2dedfaa127
build: use only exact versions for deps because unexpected yarn.lock causes CI/release to fail
...
The exception is `embark/-*` packages that are in the monorepo, should always
use caret ranges for those packages.
2019-09-06 19:31:18 -05:00
Michael Bradley, Jr
4e590991a8
style: fix linter errors on master after recent PR merges
2019-09-06 19:31:18 -05:00
Iuri Matias
c46c52ff5c
move embarkjs packages & remove embark- prefix from some folders ( #1879 )
...
* chore(@embark/): move embarkjs packages to their own folder
* chore(@embark/): rename embark-ui folder to cockpit
* chore(@embark/): rename packages already in logical folders to remove embark- prefix
chore(@embark/): rename packages already in logical folders to remove embark- prefix
update package.json files to use correct eslint config
remove core/* from package.json workspaces
2019-09-06 18:26:08 -04:00
Iuri Matias
48c328e39e
refactor(@embark/): move several packages into logical folders ( #1877 )
2019-09-06 17:39:51 -04:00
Iuri Matias
43386ff35d
chore(@embark/): remove old modules blockchain-process & code-generator; remove old methods from engine.js ( #1875 )
...
chore (@embark/) remove old modules blockchain-process and code-generator
chore (@embark/) remove old module blockchain-process
chore (@embark/) remove embark blockchain & embark simulator cmds
chore (@embark/) remove old methods from engine.js
Revert "chore (@embark/) remove embark blockchain & embark simulator cmds"
This reverts commit 703a424fb9e720b9342acb4cf9d00530f7393059.
re-add cockpit modules
re-add cockpit modules
2019-09-06 17:35:44 -04:00
Jonathan Rainville
0b9670fd33
Fix embark blockchain command + fix wss in Embark ( #1874 )
...
* fix(@embark/cmd_controller): fix embark blockchain command
* feat(@embark/blockchain): ping endpoint before starting the node
also use web3 instead of function to ping endpoint
* dont override console.error completely
2019-09-06 15:08:33 -04:00
Pascal Precht
86ee867689
feat(@embark/specialconfigs): introduce dynamic addresses ( #1873 )
...
* fix embarkjs generation
fix ens setProvider
fix embarkjs objects
fix generated embarkjs provider
generate contracts
fix embarkjs-ens
* address some of the issues in the code review
* feat(@embark/specialconfigs): introduce dynamic addresses
This commit introduces a new Smart Contract configuration addressHandler
that lets users define a function to "lazily" compute the address of the
Smart Contract in question.
This is useful when a third-party takes care of deploying a dependency
Smart Contract, but the address of that Smart Contract only being available
at run-time.
Example:
```
deploy: {
SimpleStorage: {
fromIndex: 0,
args: [100],
},
OtherContract: {
deps: ['SimpleStorage'],
address: async (deps) => {
// use `deps.contracts.SimpleStorage` to determine address
},
abiDefinition: ABI
},
}
```
In the example above, OtherContract will be deployed after SimpleStorage
because it uses the deps property to define Smart Contracts that it depends
on. All dependencies are exposed on the addressHandler function parameter
similar to deployment hooks.
Closes #1690
2019-09-06 15:02:51 -04:00
Eric Mastro
022a3c11ec
fix(@embark/embark-deploy-tracker): Fix reading of empty file ( #1872 )
...
There was an error that would display on the second+ run of embark, that was causing by trying to read JSON of an empty file.
The solution was a combination of ensuring the file existed with defaults when enabled, and also ensuring we await the saving of the file.
Included is a bit of a refactor of how the tracking functions handled the “current chain”. Hopefully, this should make things more clear.
Tests have been updated accordingly.
2019-09-06 14:30:12 -04:00
André Medeiros
7e839e758e
refactor: wire up coverage ( #1865 )
...
* refactor: wire up coverage
* refactor: coverage now reacts instead of being told what to do
2019-09-05 16:35:17 -04:00
Iuri Matias
718d19f7d3
re-add embarkjs generation ( #1858 )
...
* fix embarkjs generation
fix ens setProvider
fix embarkjs objects
fix generated embarkjs provider
generate contracts
fix embarkjs-ens
* address some of the issues in the code review
* address some of the issues in the code review
* address some of the issues in the code review
* address some of the issues in the code review
2019-09-05 16:04:52 -04:00
Jonathan Rainville
b260e81055
refactor(@embark/cmd-controller): re add cargo for file watcher ( #1855 )
...
* refactor(@embark/cmd-controller): re add cargo for file watcher
(cherry picked from commit 5c77b4000742a14f42a6dc5c145672b9cd0957a3)
* use generate:all instea dof the event
2019-09-05 15:49:44 -04:00
Michael Bradley, Jr
8716373be2
fix: type checker and linter errors on master after recent PR merges
2019-09-05 13:33:34 -05:00
Jonathan Rainville
58ad62f32b
refactor(@embark/cmd-controller): re add cargo for file watcher ( #1857 )
2019-09-03 14:03:29 -04:00
André Medeiros
230fe592a6
feat(@embark/test-runner): add reports to tests ( #1864 )
2019-09-03 13:38:36 -04:00
Eric Mastro
f9557d4c93
refactor(@cockpit): Re-add APIs ( #1831 )
...
* refactor(@cockpit/contract-apis): Re-add contract APIs
Re-add functionality for Contract functionality to work in Cockpit.
# Conflicts:
# packages/embark/src/lib/modules/blockchain-client/index.js
# packages/embark/src/lib/modules/blockchain/index.js
* fix(@embark/transaction-tracker): re-enable oracle apis
2019-09-03 12:02:52 -04:00
Pascal Precht
dd82a01b65
fix(@embark/cmd_controller): ensure namesystem is set up in console command ( #1822 )
...
This caused the console command to hang
2019-09-03 11:59:00 -04:00
Pascal Precht
c7eb5868b9
fix(@embark/cmd_controller): ensure blockchain module is started before storage ( #1821 )
...
This is crucial as the storage module tries to generate/eval artifacts that
depend on a `web3` object inside the VM scope. The registration of that object
can only be garuanteed when the `blockchain:started` event has been fired.
This commit ensures these modules are not spinned up in parallel as we're running
into race conditions.
2019-09-03 11:56:12 -04:00
Michael Bradley, Jr
58c55ed88b
fix(@cockpit): PropTypes typos: boolean -> bool, function -> func
2019-09-03 09:55:00 -05:00
dependabot-preview[bot]
939596cd58
build(deps-dev): bump eslint-config-react-app from 3.0.5 to 3.0.8
...
Bumps [eslint-config-react-app](https://github.com/facebook/create-react-app/tree/HEAD/packages/eslint-config-react-app ) from 3.0.5 to 3.0.8.
- [Release notes](https://github.com/facebook/create-react-app/releases )
- [Changelog](https://github.com/facebook/create-react-app/blob/master/CHANGELOG-1.x.md )
- [Commits](https://github.com/facebook/create-react-app/commits/eslint-config-react-app@3.0.8/packages/eslint-config-react-app )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-03 09:55:00 -05:00
Michael Bradley, Jr
37b5cc0941
build(deps): add ajv@6.10.2 to deps of embark-scaffolding
...
embark-scaffolding imports ajv but it was not properly listed as a dependency
2019-09-03 09:22:18 -05:00
dependabot-preview[bot]
43cc536d4e
build(deps): bump ajv from 6.5.5 to 6.10.2
...
Bumps [ajv](https://github.com/epoberezkin/ajv ) from 6.5.5 to 6.10.2.
- [Release notes](https://github.com/epoberezkin/ajv/releases )
- [Commits](https://github.com/epoberezkin/ajv/compare/v6.5.5...v6.10.2 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-03 09:22:18 -05:00
Michael Bradley
b736ebefcd
refactor: initial steps toward 5.0.0-alpha.0 ( #1856 )
...
BREAKING CHANGE:
There are more than several breaking changes, including DApp configuration for
accounts.
2019-08-30 16:50:20 -04:00
dependabot-preview[bot]
1e13398933
build(deps): bump @babel/plugin-proposal-class-properties
...
Bumps [@babel/plugin-proposal-class-properties](https://github.com/babel/babel ) from 7.3.0 to 7.5.5.
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/compare/v7.3.0...v7.5.5 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-30 06:57:48 -05:00
dependabot-preview[bot]
59c92e121d
build(deps): bump babel-loader from 8.0.4 to 8.0.6
...
Bumps [babel-loader](https://github.com/babel/babel-loader ) from 8.0.4 to 8.0.6.
- [Release notes](https://github.com/babel/babel-loader/releases )
- [Changelog](https://github.com/babel/babel-loader/blob/master/CHANGELOG.md )
- [Commits](https://github.com/babel/babel-loader/compare/v8.0.4...v8.0.6 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-30 06:56:40 -05:00
Michael Bradley, Jr
775881318f
refactor(@embark/utils): bip39.mnemonicToSeed -> bip39.mnemonicToSeedSync
2019-08-29 12:39:15 -05:00
dependabot-preview[bot]
faa36550f7
build(deps): bump bip39 from 2.5.0 to 3.0.2
...
Bumps [bip39](https://github.com/bitcoinjs/bip39 ) from 2.5.0 to 3.0.2.
- [Release notes](https://github.com/bitcoinjs/bip39/releases )
- [Changelog](https://github.com/bitcoinjs/bip39/blob/master/CHANGELOG.md )
- [Commits](https://github.com/bitcoinjs/bip39/compare/v2.5.0...v3.0.2 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-29 12:39:15 -05:00
dependabot-preview[bot]
459079cfe5
build(deps-dev): bump eslint-loader from 2.2.1 to 3.0.0
...
Bumps [eslint-loader](https://github.com/webpack-contrib/eslint-loader ) from 2.2.1 to 3.0.0.
- [Release notes](https://github.com/webpack-contrib/eslint-loader/releases )
- [Changelog](https://github.com/webpack-contrib/eslint-loader/blob/master/CHANGELOG.md )
- [Commits](https://github.com/webpack-contrib/eslint-loader/compare/v2.2.1...v3.0.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-29 12:27:07 -05:00
Michael Bradley, Jr
706e43c9c5
chore(release): 4.1.1
2019-08-28 14:52:21 -05:00
dependabot-preview[bot]
ac919e9429
build(deps): bump @babel/plugin-transform-flow-strip-types
...
Bumps [@babel/plugin-transform-flow-strip-types](https://github.com/babel/babel ) from 7.2.3 to 7.4.4.
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/compare/v7.2.3...v7.4.4 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-28 08:48:47 -05:00
dependabot-preview[bot]
8ff844041c
build(deps): bump @babel/plugin-transform-destructuring
...
Bumps [@babel/plugin-transform-destructuring](https://github.com/babel/babel ) from 7.3.2 to 7.5.0.
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/compare/v7.3.2...v7.5.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-28 08:37:19 -05:00
Michael Bradley, Jr
c4d68c7898
build(deps): bump follow-redirects from 1.7.0 to 1.8.0
2019-08-27 10:56:52 -05:00
dependabot-preview[bot]
080540fb01
build(deps): bump follow-redirects from 1.5.7 to 1.7.0
...
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects ) from 1.5.7 to 1.7.0.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases )
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.5.7...v1.7.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-27 10:56:52 -05:00
dependabot-preview[bot]
e0e783c525
build(deps-dev): bump react-bootstrap-typeahead from 3.2.4 to 3.4.6
...
Bumps [react-bootstrap-typeahead](https://github.com/ericgio/react-bootstrap-typeahead ) from 3.2.4 to 3.4.6.
- [Release notes](https://github.com/ericgio/react-bootstrap-typeahead/releases )
- [Changelog](https://github.com/ericgio/react-bootstrap-typeahead/blob/master/CHANGELOG.md )
- [Commits](https://github.com/ericgio/react-bootstrap-typeahead/compare/v3.2.4...v3.4.6 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-27 10:43:08 -05:00
dependabot-preview[bot]
2eeda93f16
build(deps-dev): bump mini-css-extract-plugin from 0.4.3 to 0.8.0
...
Bumps [mini-css-extract-plugin](https://github.com/webpack-contrib/mini-css-extract-plugin ) from 0.4.3 to 0.8.0.
- [Release notes](https://github.com/webpack-contrib/mini-css-extract-plugin/releases )
- [Changelog](https://github.com/webpack-contrib/mini-css-extract-plugin/blob/master/CHANGELOG.md )
- [Commits](https://github.com/webpack-contrib/mini-css-extract-plugin/compare/v0.4.3...v0.8.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-27 10:40:32 -05:00
dependabot-preview[bot]
5a03a703dc
build(deps-dev): bump @types/mocha from 5.2.0 to 5.2.7
...
Bumps [@types/mocha](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/mocha ) from 5.2.0 to 5.2.7.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/mocha )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-26 11:41:27 -05:00
dependabot-preview[bot]
259ec442eb
build(deps): bump url-loader from 1.1.1 to 2.1.0
...
Bumps [url-loader](https://github.com/webpack-contrib/url-loader ) from 1.1.1 to 2.1.0.
- [Release notes](https://github.com/webpack-contrib/url-loader/releases )
- [Changelog](https://github.com/webpack-contrib/url-loader/blob/master/CHANGELOG.md )
- [Commits](https://github.com/webpack-contrib/url-loader/compare/v1.1.1...v2.1.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-26 11:36:34 -05:00
dependabot-preview[bot]
bdb1177159
build(deps): bump webpack from 4.29.3 to 4.39.2
...
Bumps [webpack](https://github.com/webpack/webpack ) from 4.29.3 to 4.39.2.
- [Release notes](https://github.com/webpack/webpack/releases )
- [Commits](https://github.com/webpack/webpack/compare/v4.29.3...v4.39.2 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-26 10:56:30 -05:00