Git Product home page Git Product logo

truffle-box / drizzle-box Goto Github PK

View Code? Open in Web Editor NEW
313.0 10.0 71.0 2.83 MB

This box comes with everything you need to start using smart contracts from a react app with Drizzle. It includes drizzle, drizzle-react and drizzle-react-components to give you a complete overview of Drizzle's capabilities.

License: MIT License

JavaScript 70.20% HTML 9.96% CSS 2.87% Solidity 16.97%
drizzle react redux

drizzle-box's Introduction

Drizzle Truffle Box

This box comes with everything you need to start using smart contracts from a react app with Drizzle. It includes drizzle, drizzle-react and drizzle-react-components to give you a complete overview of Drizzle's capabilities.

Installation

First ensure you are in a new and empty directory.

  1. Run the unbox command via npx and skip to step 3. This will install all necessary dependencies. A Create-React-App is generated in the app directory.

    npx truffle unbox drizzle
  2. Alternatively, you can install Truffle globally and run the unbox command.

    npm install -g truffle
    truffle unbox drizzle
  3. Run the development console.

    truffle develop
  4. Compile and migrate the smart contracts. Note inside the development console we don't preface commands with truffle.

    compile
    migrate
  5. In the app directory, we run the React app. Smart contract changes must be manually recompiled and migrated.

    // in another terminal (i.e. not in the truffle develop prompt)
    cd app
    npm run start
  6. Truffle can run tests written in Solidity or JavaScript against your smart contracts. Note the command varies slightly if you're in or outside of the development console.

    // inside the development console
    test
    
    // outside the development console
    truffle test
  7. Jest is included for testing React components. Compile your contracts before running Jest, or you may receive some file not found errors.

    // ensure you are inside the app directory when running this
    npm run test
  8. To build the application for production, use the build script. A production build will be in the app/build folder.

    // ensure you are inside the app directory when running this
    npm run build

FAQ

  • Where do I find more information about Drizzle?

    Check out our documentation or any of the three repositories (drizzle, drizzle-react, drizzle-react-components).

  • Where is my production build?

    The production build will be in the app/build folder after running npm run build in the app folder.

  • Where can I find more documentation?

    This box is a marriage of Truffle and a React setup created with create-react-app. Either one would be a great place to start!

  • How does the provider work in this box?

    This box uses a custom provider, which does not interact with MetaMask. Keep an eye on this space, as this will be updated once Drizzle can sync up with MetaMask.

drizzle-box's People

Contributors

adrianmcli avatar benjamincburns avatar bmmpxf avatar cds-amal avatar celeduc avatar cgcardona avatar chuckbergeron avatar cruzmolina avatar dependabot[bot] avatar eggplantzzz avatar fainashalts avatar farmanp avatar honestbonsai avatar iansmith9876 avatar joshma91 avatar micaiahreid avatar onlyonejmjq avatar pemulis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

drizzle-box's Issues

Errors on fresh install and start

Hi, I'm having some trouble running this box for the first time. I have followed the steps as described in the readme, however I can't access the homepage for the box at all. Hopefully I'm doing something stupid, but below are the steps I have followed.

Running on MacOS
Node version: 8.5.0
NPM version: 5.6.0


Fresh install and compile

npm i -g truffle
npm i -g ganache-cli

truffle unbox drizzle

ganache-cli -b 3 // in a separate window

truffle compile
truffle migrate

Start the development server

npm run start

Encounter issue #24, so follow the steps to fix as described in the comments:

npm update

+ drizzle-react@1.1.0
+ drizzle@1.1.3
+ zeppelin-solidity@1.8.0
+ react-router@3.2.1
+ drizzle-react-components@1.1.0

truffle compile
truffle migrate

npm start

At this point, http://localhost:3000 is still erroring:
screen shot 2018-04-22 at 13 25 56

Metamask is connected to port 8545, has the first account imported via private key, and is unlocked.

Compilation failed

after fixing the contract import path, some contract fails compilation

cant compile contracts

─xyz@xyzs-MacBook-Pro ~/dev/drizzle-box  ‹develop*› 
╰─$ truffle compile && truffle migrate                                           
Compiling ./contracts/Authentication.sol...
Compiling ./contracts/Migrations.sol...
Compiling ./contracts/SimpleStorage.sol...
Compiling ./contracts/TutorialToken.sol...
Compiling ./contracts/zeppelin/lifecycle/Killable.sol...
Compiling ./contracts/zeppelin/ownership/Ownable.sol...
Compiling zeppelin-solidity/contracts/math/SafeMath.sol...
Compiling zeppelin-solidity/contracts/token/ERC20/BasicToken.sol...
Compiling zeppelin-solidity/contracts/token/ERC20/ERC20.sol...
Compiling zeppelin-solidity/contracts/token/ERC20/ERC20Basic.sol...
Compiling zeppelin-solidity/contracts/token/ERC20/StandardToken.sol...

Compilation warnings encountered:

/Users/xyz/dev/drizzle-box/contracts/zeppelin/ownership/Ownable.sol:13:3: Warning: No visibility specified. Defaulting to "public".
  function Ownable() {
  ^
Spanning multiple lines.
,/Users/xyz/dev/drizzle-box/contracts/zeppelin/ownership/Ownable.sol:22:3: Warning: No visibility specified. Defaulting to "public".
  function transferOwnership(address newOwner) onlyOwner {
  ^
Spanning multiple lines.
,/Users/xyz/dev/drizzle-box/contracts/zeppelin/lifecycle/Killable.sol:12:3: Warning: No visibility specified. Defaulting to "public".
  function kill() onlyOwner {
  ^
Spanning multiple lines.
,/Users/xyz/dev/drizzle-box/contracts/Authentication.sol:14:3: Warning: No visibility specified. Defaulting to "public".
  function login() returns (bytes32) {
  ^
Spanning multiple lines.
,/Users/xyz/dev/drizzle-box/contracts/Authentication.sol:21:9: Warning: "throw" is deprecated in favour of "revert()", "require()" and "assert()".
        throw;
        ^---^
,/Users/xyz/dev/drizzle-box/contracts/Authentication.sol:27:3: Warning: No visibility specified. Defaulting to "public".
  function signup(bytes32 name) payable returns (bytes32) {
  ^
Spanning multiple lines.
,/Users/xyz/dev/drizzle-box/contracts/Authentication.sol:36:9: Warning: "throw" is deprecated in favour of "revert()", "require()" and "assert()".
        throw;
        ^---^
,/Users/xyz/dev/drizzle-box/contracts/Authentication.sol:49:3: Warning: No visibility specified. Defaulting to "public".
  function update(bytes32 name) payable returns (bytes32) {
  ^
Spanning multiple lines.
,/Users/xyz/dev/drizzle-box/contracts/Authentication.sol:54:9: Warning: "throw" is deprecated in favour of "revert()", "require()" and "assert()".
        throw;
        ^---^
,/Users/xyz/dev/drizzle-box/contracts/Authentication.sol:64:5: Warning: "throw" is deprecated in favour of "revert()", "require()" and "assert()".
    throw;
    ^---^
,/Users/xyz/dev/drizzle-box/contracts/Migrations.sol:11:3: Warning: No visibility specified. Defaulting to "public".
  function Migrations() {
  ^
Spanning multiple lines.
,/Users/xyz/dev/drizzle-box/contracts/Migrations.sol:15:3: Warning: No visibility specified. Defaulting to "public".
  function setCompleted(uint completed) restricted {
  ^
Spanning multiple lines.
,/Users/xyz/dev/drizzle-box/contracts/Migrations.sol:19:3: Warning: No visibility specified. Defaulting to "public".
  function upgrade(address new_address) restricted {
  ^
Spanning multiple lines.
,/Users/xyz/dev/drizzle-box/contracts/SimpleStorage.sol:6:3: Warning: No visibility specified. Defaulting to "public".
  function set(uint x) {
  ^
Spanning multiple lines.
,/Users/xyz/dev/drizzle-box/contracts/TutorialToken.sol:11:3: Warning: No visibility specified. Defaulting to "public".
  function TutorialToken() {
  ^
Spanning multiple lines.


/Users/xyz/dev/drizzle-box/contracts/zeppelin/ownership/Ownable.sol:13:3: Warning: No visibility specified. Defaulting to "public".
  function Ownable() {
  ^
Spanning multiple lines.
,/Users/xyz/dev/drizzle-box/contracts/zeppelin/ownership/Ownable.sol:22:3: Warning: No visibility specified. Defaulting to "public".
  function transferOwnership(address newOwner) onlyOwner {
  ^
Spanning multiple lines.
,/Users/xyz/dev/drizzle-box/contracts/zeppelin/lifecycle/Killable.sol:12:3: Warning: No visibility specified. Defaulting to "public".
  function kill() onlyOwner {
  ^
Spanning multiple lines.
,/Users/xyz/dev/drizzle-box/contracts/Authentication.sol:14:3: Warning: No visibility specified. Defaulting to "public".
  function login() returns (bytes32) {
  ^
Spanning multiple lines.
,/Users/xyz/dev/drizzle-box/contracts/Authentication.sol:21:9: Warning: "throw" is deprecated in favour of "revert()", "require()" and "assert()".
        throw;
        ^---^
,/Users/xyz/dev/drizzle-box/contracts/Authentication.sol:27:3: Warning: No visibility specified. Defaulting to "public".
  function signup(bytes32 name) payable returns (bytes32) {
  ^
Spanning multiple lines.
,/Users/xyz/dev/drizzle-box/contracts/Authentication.sol:36:9: Warning: "throw" is deprecated in favour of "revert()", "require()" and "assert()".
        throw;
        ^---^
,/Users/xyz/dev/drizzle-box/contracts/Authentication.sol:49:3: Warning: No visibility specified. Defaulting to "public".
  function update(bytes32 name) payable returns (bytes32) {
  ^
Spanning multiple lines.
,/Users/xyz/dev/drizzle-box/contracts/Authentication.sol:54:9: Warning: "throw" is deprecated in favour of "revert()", "require()" and "assert()".
        throw;
        ^---^
,/Users/xyz/dev/drizzle-box/contracts/Authentication.sol:64:5: Warning: "throw" is deprecated in favour of "revert()", "require()" and "assert()".
    throw;
    ^---^
,/Users/xyz/dev/drizzle-box/contracts/Migrations.sol:11:3: Warning: No visibility specified. Defaulting to "public".
  function Migrations() {
  ^
Spanning multiple lines.
,/Users/xyz/dev/drizzle-box/contracts/Migrations.sol:15:3: Warning: No visibility specified. Defaulting to "public".
  function setCompleted(uint completed) restricted {
  ^
Spanning multiple lines.
,/Users/xyz/dev/drizzle-box/contracts/Migrations.sol:19:3: Warning: No visibility specified. Defaulting to "public".
  function upgrade(address new_address) restricted {
  ^
Spanning multiple lines.
,/Users/xyz/dev/drizzle-box/contracts/SimpleStorage.sol:6:3: Warning: No visibility specified. Defaulting to "public".
  function set(uint x) {
  ^
Spanning multiple lines.
,/Users/xyz/dev/drizzle-box/contracts/TutorialToken.sol:11:3: Warning: No visibility specified. Defaulting to "public".
  function TutorialToken() {
  ^
Spanning multiple lines.
,/Users/xyz/dev/drizzle-box/contracts/TutorialToken.sol:12:5: TypeError: No matching declaration found after variable lookup.
    totalSupply = INITIAL_SUPPLY;
    ^---------^
Compilation failed. See above.

Dapp won't load after basic initialisation

Hello, please forgive my newbity on posting issues.

I am following the basic initialisation tutorial on the Truffle site— https://truffleframework.com/boxes/drizzle. I get an error I can only begin to describe with a screenshot. The app freezes on the "Loading dapp" junction.

node v8.11.3 (LTS)
npm 5.6.0

latest truffle and ganache-cli installed last night (Aug 2, 2018). Thank you for any and all help, and of course, for all the free and awesome software.

screen shot 2018-08-03 at 6 52 16 pm

ExampleToken is not defined

/myproject$ nano ExampleToken.sol

pragma solidity ^0.4.18;
import "node_modules/zeppelin-solidity/contracts/token/ERC20/StandardToken.sol";

contract ExampleToken is StandardToken {
string public name = "ExampleToken";
string public symbol = "EGT";
uint public decimals = 18;
uint public INITIAL_SUPPLY = 10000 * (10 ** decimals);

function ExampleToken() {
totalSupply = INITIAL_SUPPLY;
balances[msg.sender] = INITIAL_SUPPLY;
}
}

testnet@e3:~/myproject$ truffle console
truffle(development)> var myToken = ExampleToken.deployed();
ReferenceError: ExampleToken is not defined

How to get the web3 instance?

I need to perform something using the web3 instance, like

this.props.web3.eth.getBalance(address)

Drizzle only provides us with state.web3.status, not the web3 instance itself. However there are some unused files that might be able to help us achieve this in source/util/web3.

Any ideas on how we can expose/access the actual web3 instance?

Can't unbox on CI environments

Probably because of this https://github.com/truffle-box/drizzle-box/blob/master/scripts/build.js#L123
you are not able to unbox on CircleCI environments since when you run npm install it's also running npm audit, and because the current version of react-dev-utils has a vulnerability and throws a warning, the command exits.

You can see this happening here: https://circleci.com/gh/MetaMask/metamask-extension/64714

You might want to bump react-dev-utils to the latest version and maybe run npm install --no-audit
here instead to avoid future issues like this when one of the dependencies has a new vuln.

VULNERABILITY: "eslint-plugin-import"

Node Security reports version of eslint-plugin-import used as vulnerable:

"debug is vulnerable (<= 2.6.8 || >= 3.0.0 <= 3.0.1). Patched versions: >= 2.6.9 < 3.0.0 || >= 3.1.0"

TypeError: on Vanilla Install: Cannot read property 'connection' of undefined

A vanilla install of drizzle-box crashes Ganache-cli with the message:

"TypeError: Cannot read property 'connection' of undefined" (I'll put full error below).

Steps to recreate: Unbox drizzle-box. In a seperate terminal, run Ganache-cli -b -3 for three second blocktimes.

Truffle compile
Truffle migrate

Then npm run start to start application. Web site loads. (With unlocked metamask on same network).

Attempt to use simple contract to make a transaction. Confirm transaction and ganache-cli crashes.

Could be a Ganache Problem, but thought to post it here. First time I've had a ganache problem like this.

Full Error:
TypeError: Cannot read property 'connection' of undefined
at n._updateSubscriptions (/usr/local/lib/node_modules/ganache-cli/build/cli.node.js:65:5443)
at l. (/usr/local/lib/node_modules/ganache-cli/build/cli.node.js:65:3860)
at l.emit (events.js:127:13)
at o. (/usr/local/lib/node_modules/ganache-cli/build/cli.node.js:37:29971)
at o.emit (events.js:127:13)
at o._notificationHandler (/usr/local/lib/node_modules/ganache-cli/build/cli.node.js:149:95090)
at Array.forEach ()
at s. (/usr/local/lib/node_modules/ganache-cli/build/cli.node.js:149:94594)
at s.emit (events.js:127:13)
at s.update (/usr/local/lib/node_modules/ganache-cli/build/cli.node.js:149:92445)
at s.emit (events.js:132:15)
at s._setCurrentBlock (/usr/local/lib/node_modules/ganache-cli/build/cli.node.js:149:224462)
at c.t._blockTracker.on.e (/usr/local/lib/node_modules/ganache-cli/build/cli.node.js:149:223066)
at c.emit (events.js:132:15)
at c._setCurrentBlock (/usr/local/lib/node_modules/ganache-cli/build/cli.node.js:65:7605)
at v.emit (events.js:127:13)
at u.parallel (/usr/local/lib/node_modules/ganache-cli/build/cli.node.js:30:161351)
at /usr/local/lib/node_modules/ganache-cli/build/cli.node.js:2:82510
at /usr/local/lib/node_modules/ganache-cli/build/cli.node.js:2:67819
at i (/usr/local/lib/node_modules/ganache-cli/build/cli.node.js:2:71283)
at /usr/local/lib/node_modules/ganache-cli/build/cli.node.js:2:70761
at /usr/local/lib/node_modules/ganache-cli/build/cli.node.js:2:82490

Error retrieving network ID

Clean install with "truffle unbox drizzle".
Modified truffle.js port to my Ganache one (7545).
Contracts compiled and migrated with no errors.

Getting the following errors when launching the app in the browser :(

captura de pantalla 2018-03-01 a les 17 11 22

VULNERABILITY: url-loader

Node security reports "url-loader" is vulnerable:

"mime is vulnerable (< 1.4.1 || > 2.0.0 < 2.0.3). Patched versions: >= 1.4.1 < 2.0.0 || >= 2.0.3"

Drizzle Box | Errors on Start

Excited to checkout the power of Drizzzzzle!

Using my handy-dandy truffle unbox command I pulled down the drizzle box.

However, after attempting to launch with npm run start command (also the ganache-cli command) I get the following errors. Haven't attempted to do debug, which I will do now, but I thought it might help to just post an issue now, in case anyone else encounters the same errors.

drizzle.js:26073 Error retrieving network ID:
(anonymous) @ drizzle.js:26073
drizzle.js:26074 TypeError: Cannot read property 'address' of undefined
    at http://localhost:3000/static/js/bundle.js:69576:103
From previous event:
    at new DrizzleContract (http://localhost:3000/static/js/bundle.js:69575:27)
    at Drizzle.getContracts (http://localhost:3000/static/js/bundle.js:69461:58)
    at http://localhost:3000/static/js/bundle.js:69442:17
(anonymous) @ drizzle.js:26074
drizzle.js:26073 Error retrieving network ID:
(anonymous) @ drizzle.js:26073
drizzle.js:26074 TypeError: Cannot read property 'address' of undefined
    at http://localhost:3000/static/js/bundle.js:69576:103
From previous event:
    at new DrizzleContract (http://localhost:3000/static/js/bundle.js:69575:27)
    at Drizzle.getContracts (http://localhost:3000/static/js/bundle.js:69461:58)
    at http://localhost:3000/static/js/bundle.js:69442:17
(anonymous) @ drizzle.js:26074
drizzle.js:26073 Error retrieving network ID:
(anonymous) @ drizzle.js:26073
drizzle.js:26074 TypeError: Cannot read property 'address' of undefined
    at http://localhost:3000/static/js/bundle.js:69576:103
From previous event:
    at new DrizzleContract (http://localhost:3000/static/js/bundle.js:69575:27)
    at Drizzle.getContracts (http://localhost:3000/static/js/bundle.js:69461:58)
    at http://localhost:3000/static/js/bundle.js:69442:17

home.bak.js file is not working and should be removed

It responds with and error when trying to include / replace it in HomeContainer.js

Uncaught Error: Objects are not valid as a React child (found: object with keys {call, send, encodeABI, estimateGas, arguments, _method, _parent, _ethAccounts}). If you meant to render a collection of children, use an array instead.

VULNERABILITY: "webpack-dev-server"

Node Security reports "webpack-dev-server" is vulnerable:

"mime is vulnerable (< 1.4.1 || > 2.0.0 < 2.0.3). Patched versions: >= 1.4.1 < 2.0.0 || >= 2.0.3"

NPM (6.5.0) causes - uncaught at root at root error

Hi,

It took me half a day to figure out but using the steps mentioned in the readme caused my app to threw the following error in the browser:

at contractsSaga 
 at takeEvery 
 at addContract 
 at instantiateContract 

The test failed as well:

 FAIL  src/App.test.js
  ● Test suite failed to run

    ReferenceError: [BABEL] /home/jgege/Apps/dev/eth/drizzle_unbox/unbox2/app/src/App.test.js: Unknown option: base.configFile. Check out http://babeljs.io/docs/usage/options/ for more information about options.

    A common cause of this error is the presence of a configuration options object without the corresponding preset name. Example:

    Invalid:
      `{ presets: [{option: value}] }`
    Valid:
      `{ presets: [['presetName', {option: value}]] }`

    For more detailed information on preset configuration, please see https://babeljs.io/docs/en/plugins#pluginpresets-options.

      at Logger.error (node_modules/babel-core/lib/transformation/file/logger.js:41:11)
      at OptionManager.mergeOptions (node_modules/babel-core/lib/transformation/file/options/option-manager.js:226:20)
      at OptionManager.init (node_modules/babel-core/lib/transformation/file/options/option-manager.js:368:12)
      at File.initOptions (node_modules/babel-core/lib/transformation/file/index.js:212:65)
      at new File (node_modules/babel-core/lib/transformation/file/index.js:135:24)
      at Pipeline.transform (node_modules/babel-core/lib/transformation/pipeline.js:46:16)

Test Suites: 1 failed, 1 total
Tests:       0 total
Snapshots:   0 total
Time:        0.747s
Ran all test suites.

The solution was to remove the node_modules and the package-lock.json files and reinstall the packages using yarn. The strange thing is that I unboxed drizzle earlier in January and everything was fine using NPM. Furthermore, even If I go back to the following commit it is fine: 012698d

Is it on purpose that before the restructuring drizzle ^1.2.5 was in package.json, but in the current version it is ^1.2.4? I know it should let the package manager to use 1.2.5 but for me - I guess due to some dependency - it stays on 1.2.4.

npm --version
6.5.0

truffle version
Truffle v5.0.2 (core: 5.0.2)
Solidity v0.5.0 (solc-js)
Node v11.8.0

yarn --version
1.13.0

I'm using Manjaro btw.

Remove superfluous components

There are lot of unused components in the box, such as ./src/user/* and ./src/layouts/dashboard, and ./src/layouts/home/Home.bak.js.

If those are neccessary for something, I haven't found out what yet. But if they aren't, (imo) this box would be more elegant (and helpful) if it only contained the bare minimum.

Unboxing fails on node v10.4.0

I'm guessing this is caused by #38.

Unboxing log:

Downloading...
Unpacking...
Setting up...
Error: Command failed: npm install
npm WARN deprecated [email protected]: Use mz or fs-extra^3.0 with Promise Support
npm WARN deprecated [email protected]: ⚠️  WARNING ⚠️ tar.gz module has been deprecated and your application is vulnerable. Please use tar module instead: https://npmjs.com/tar
In file included from ../src/addon.cc:2:0:
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’:
../../nan/nan.h:840:60: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
         v8::Isolate::GetCurrent(), target, func, argc, argv);
                                                            ^
In file included from ../src/addon.cc:1:0:
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:172:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../src/addon.cc:2:0:
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’:
../../nan/nan.h:855:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
         v8::Isolate::GetCurrent(), target, symbol, argc, argv);
                                                              ^
In file included from ../src/addon.cc:1:0:
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:165:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../src/addon.cc:2:0:
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)’:
../../nan/nan.h:870:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
         v8::Isolate::GetCurrent(), target, method, argc, argv);
                                                              ^
In file included from ../src/addon.cc:1:0:
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:158:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../src/addon.cc:2:0:
../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::Callback::Call_(v8::Isolate*, v8::Local<v8::Object>, int, v8::Local<v8::Value>*) const’:
../../nan/nan.h:1484:5: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
     ));
     ^
In file included from ../src/addon.cc:1:0:
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:172:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../src/node-boilerplate/scrypt_common.cc:28:0:
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’:
../../nan/nan.h:840:60: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
         v8::Isolate::GetCurrent(), target, func, argc, argv);
                                                            ^
In file included from ../../nan/nan.h:51:0,
                 from ../src/node-boilerplate/scrypt_common.cc:28:
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:172:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../src/node-boilerplate/scrypt_common.cc:28:0:
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’:
../../nan/nan.h:855:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
         v8::Isolate::GetCurrent(), target, symbol, argc, argv);
                                                              ^
In file included from ../../nan/nan.h:51:0,
                 from ../src/node-boilerplate/scrypt_common.cc:28:
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:165:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../src/node-boilerplate/scrypt_common.cc:28:0:
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)’:
../../nan/nan.h:870:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
         v8::Isolate::GetCurrent(), target, method, argc, argv);
                                                              ^
In file included from ../../nan/nan.h:51:0,
                 from ../src/node-boilerplate/scrypt_common.cc:28:
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:158:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../src/node-boilerplate/scrypt_common.cc:28:0:
../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::Callback::Call_(v8::Isolate*, v8::Local<v8::Object>, int, v8::Local<v8::Value>*) const’:
../../nan/nan.h:1484:5: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
     ));
     ^
In file included from ../../nan/nan.h:51:0,
                 from ../src/node-boilerplate/scrypt_common.cc:28:
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:172:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../src/node-boilerplate/scrypt_params_async.cc:1:0:
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’:
../../nan/nan.h:840:60: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
         v8::Isolate::GetCurrent(), target, func, argc, argv);
                                                            ^
In file included from ../../nan/nan.h:51:0,
                 from ../src/node-boilerplate/scrypt_params_async.cc:1:
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:172:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../src/node-boilerplate/scrypt_params_async.cc:1:0:
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’:
../../nan/nan.h:855:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
         v8::Isolate::GetCurrent(), target, symbol, argc, argv);
                                                              ^
In file included from ../../nan/nan.h:51:0,
                 from ../src/node-boilerplate/scrypt_params_async.cc:1:
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:165:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../src/node-boilerplate/scrypt_params_async.cc:1:0:
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)’:
../../nan/nan.h:870:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
         v8::Isolate::GetCurrent(), target, method, argc, argv);
                                                              ^
In file included from ../../nan/nan.h:51:0,
                 from ../src/node-boilerplate/scrypt_params_async.cc:1:
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:158:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../src/node-boilerplate/scrypt_params_async.cc:1:0:
../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::Callback::Call_(v8::Isolate*, v8::Local<v8::Object>, int, v8::Local<v8::Value>*) const’:
../../nan/nan.h:1484:5: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
     ));
     ^
In file included from ../../nan/nan.h:51:0,
                 from ../src/node-boilerplate/scrypt_params_async.cc:1:
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:172:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../src/node-boilerplate/scrypt_params_sync.cc:1:0:
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’:
../../nan/nan.h:840:60: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
         v8::Isolate::GetCurrent(), target, func, argc, argv);
                                                            ^
In file included from ../../nan/nan.h:51:0,
                 from ../src/node-boilerplate/scrypt_params_sync.cc:1:
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:172:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../src/node-boilerplate/scrypt_params_sync.cc:1:0:
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’:
../../nan/nan.h:855:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
         v8::Isolate::GetCurrent(), target, symbol, argc, argv);
                                                              ^
In file included from ../../nan/nan.h:51:0,
                 from ../src/node-boilerplate/scrypt_params_sync.cc:1:
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:165:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../src/node-boilerplate/scrypt_params_sync.cc:1:0:
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)’:
../../nan/nan.h:870:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
         v8::Isolate::GetCurrent(), target, method, argc, argv);
                                                              ^
In file included from ../../nan/nan.h:51:0,
                 from ../src/node-boilerplate/scrypt_params_sync.cc:1:
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:158:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../src/node-boilerplate/scrypt_params_sync.cc:1:0:
../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::Callback::Call_(v8::Isolate*, v8::Local<v8::Object>, int, v8::Local<v8::Value>*) const’:
../../nan/nan.h:1484:5: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
     ));
     ^
In file included from ../../nan/nan.h:51:0,
                 from ../src/node-boilerplate/scrypt_params_sync.cc:1:
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:172:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../src/node-boilerplate/scrypt_kdf_async.cc:1:0:
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’:
../../nan/nan.h:840:60: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
         v8::Isolate::GetCurrent(), target, func, argc, argv);
                                                            ^
In file included from ../../nan/nan.h:51:0,
                 from ../src/node-boilerplate/scrypt_kdf_async.cc:1:
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:172:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../src/node-boilerplate/scrypt_kdf_async.cc:1:0:
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’:
../../nan/nan.h:855:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
         v8::Isolate::GetCurrent(), target, symbol, argc, argv);
                                                              ^
In file included from ../../nan/nan.h:51:0,
                 from ../src/node-boilerplate/scrypt_kdf_async.cc:1:
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:165:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../src/node-boilerplate/scrypt_kdf_async.cc:1:0:
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)’:
../../nan/nan.h:870:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
         v8::Isolate::GetCurrent(), target, method, argc, argv);
                                                              ^
In file included from ../../nan/nan.h:51:0,
                 from ../src/node-boilerplate/scrypt_kdf_async.cc:1:
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:158:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../src/node-boilerplate/scrypt_kdf_async.cc:1:0:
../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::Callback::Call_(v8::Isolate*, v8::Local<v8::Object>, int, v8::Local<v8::Value>*) const’:
../../nan/nan.h:1484:5: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
     ));
     ^
In file included from ../../nan/nan.h:51:0,
                 from ../src/node-boilerplate/scrypt_kdf_async.cc:1:
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:172:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../src/node-boilerplate/scrypt_kdf_sync.cc:1:0:
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’:
../../nan/nan.h:840:60: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
         v8::Isolate::GetCurrent(), target, func, argc, argv);
                                                            ^
In file included from ../../nan/nan.h:51:0,
                 from ../src/node-boilerplate/scrypt_kdf_sync.cc:1:
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:172:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../src/node-boilerplate/scrypt_kdf_sync.cc:1:0:
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’:
../../nan/nan.h:855:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
         v8::Isolate::GetCurrent(), target, symbol, argc, argv);
                                                              ^
In file included from ../../nan/nan.h:51:0,
                 from ../src/node-boilerplate/scrypt_kdf_sync.cc:1:
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:165:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../src/node-boilerplate/scrypt_kdf_sync.cc:1:0:
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)’:
../../nan/nan.h:870:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
         v8::Isolate::GetCurrent(), target, method, argc, argv);
                                                              ^
In file included from ../../nan/nan.h:51:0,
                 from ../src/node-boilerplate/scrypt_kdf_sync.cc:1:
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:158:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../src/node-boilerplate/scrypt_kdf_sync.cc:1:0:
../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::Callback::Call_(v8::Isolate*, v8::Local<v8::Object>, int, v8::Local<v8::Value>*) const’:
../../nan/nan.h:1484:5: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
     ));
     ^
In file included from ../../nan/nan.h:51:0,
                 from ../src/node-boilerplate/scrypt_kdf_sync.cc:1:
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:172:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../src/node-boilerplate/scrypt_kdf-verify_sync.cc:1:0:
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’:
../../nan/nan.h:840:60: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
         v8::Isolate::GetCurrent(), target, func, argc, argv);
                                                            ^
In file included from ../../nan/nan.h:51:0,
                 from ../src/node-boilerplate/scrypt_kdf-verify_sync.cc:1:
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:172:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../src/node-boilerplate/scrypt_kdf-verify_sync.cc:1:0:
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’:
../../nan/nan.h:855:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
         v8::Isolate::GetCurrent(), target, symbol, argc, argv);
                                                              ^
In file included from ../../nan/nan.h:51:0,
                 from ../src/node-boilerplate/scrypt_kdf-verify_sync.cc:1:
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:165:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../src/node-boilerplate/scrypt_kdf-verify_sync.cc:1:0:
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)’:
../../nan/nan.h:870:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
         v8::Isolate::GetCurrent(), target, method, argc, argv);
                                                              ^
In file included from ../../nan/nan.h:51:0,
                 from ../src/node-boilerplate/scrypt_kdf-verify_sync.cc:1:
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:158:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../src/node-boilerplate/scrypt_kdf-verify_sync.cc:1:0:
../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::Callback::Call_(v8::Isolate*, v8::Local<v8::Object>, int, v8::Local<v8::Value>*) const’:
../../nan/nan.h:1484:5: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
     ));
     ^
In file included from ../../nan/nan.h:51:0,
                 from ../src/node-boilerplate/scrypt_kdf-verify_sync.cc:1:
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:172:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../src/node-boilerplate/scrypt_kdf-verify_async.cc:1:0:
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’:
../../nan/nan.h:840:60: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
         v8::Isolate::GetCurrent(), target, func, argc, argv);
                                                            ^
In file included from ../../nan/nan.h:51:0,
                 from ../src/node-boilerplate/scrypt_kdf-verify_async.cc:1:
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:172:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../src/node-boilerplate/scrypt_kdf-verify_async.cc:1:0:
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’:
../../nan/nan.h:855:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
         v8::Isolate::GetCurrent(), target, symbol, argc, argv);
                                                              ^
In file included from ../../nan/nan.h:51:0,
                 from ../src/node-boilerplate/scrypt_kdf-verify_async.cc:1:
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:165:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../src/node-boilerplate/scrypt_kdf-verify_async.cc:1:0:
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)’:
../../nan/nan.h:870:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
         v8::Isolate::GetCurrent(), target, method, argc, argv);
                                                              ^
In file included from ../../nan/nan.h:51:0,
                 from ../src/node-boilerplate/scrypt_kdf-verify_async.cc:1:
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:158:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../src/node-boilerplate/scrypt_kdf-verify_async.cc:1:0:
../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::Callback::Call_(v8::Isolate*, v8::Local<v8::Object>, int, v8::Local<v8::Value>*) const’:
../../nan/nan.h:1484:5: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
     ));
     ^
In file included from ../../nan/nan.h:51:0,
                 from ../src/node-boilerplate/scrypt_kdf-verify_async.cc:1:
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:172:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../src/node-boilerplate/scrypt_hash_sync.cc:1:0:
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’:
../../nan/nan.h:840:60: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
         v8::Isolate::GetCurrent(), target, func, argc, argv);
                                                            ^
In file included from ../../nan/nan.h:51:0,
                 from ../src/node-boilerplate/scrypt_hash_sync.cc:1:
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:172:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../src/node-boilerplate/scrypt_hash_sync.cc:1:0:
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’:
../../nan/nan.h:855:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
         v8::Isolate::GetCurrent(), target, symbol, argc, argv);
                                                              ^
In file included from ../../nan/nan.h:51:0,
                 from ../src/node-boilerplate/scrypt_hash_sync.cc:1:
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:165:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../src/node-boilerplate/scrypt_hash_sync.cc:1:0:
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)’:
../../nan/nan.h:870:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
         v8::Isolate::GetCurrent(), target, method, argc, argv);
                                                              ^
In file included from ../../nan/nan.h:51:0,
                 from ../src/node-boilerplate/scrypt_hash_sync.cc:1:
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:158:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../src/node-boilerplate/scrypt_hash_sync.cc:1:0:
../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::Callback::Call_(v8::Isolate*, v8::Local<v8::Object>, int, v8::Local<v8::Value>*) const’:
../../nan/nan.h:1484:5: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
     ));
     ^
In file included from ../../nan/nan.h:51:0,
                 from ../src/node-boilerplate/scrypt_hash_sync.cc:1:
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:172:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../src/node-boilerplate/scrypt_hash_async.cc:25:0:
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’:
../../nan/nan.h:840:60: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
         v8::Isolate::GetCurrent(), target, func, argc, argv);
                                                            ^
In file included from ../../nan/nan.h:51:0,
                 from ../src/node-boilerplate/scrypt_hash_async.cc:25:
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:172:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../src/node-boilerplate/scrypt_hash_async.cc:25:0:
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’:
../../nan/nan.h:855:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
         v8::Isolate::GetCurrent(), target, symbol, argc, argv);
                                                              ^
In file included from ../../nan/nan.h:51:0,
                 from ../src/node-boilerplate/scrypt_hash_async.cc:25:
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:165:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../src/node-boilerplate/scrypt_hash_async.cc:25:0:
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)’:
../../nan/nan.h:870:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
         v8::Isolate::GetCurrent(), target, method, argc, argv);
                                                              ^
In file included from ../../nan/nan.h:51:0,
                 from ../src/node-boilerplate/scrypt_hash_async.cc:25:
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:158:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../src/node-boilerplate/scrypt_hash_async.cc:25:0:
../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::Callback::Call_(v8::Isolate*, v8::Local<v8::Object>, int, v8::Local<v8::Value>*) const’:
../../nan/nan.h:1484:5: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
     ));
     ^
In file included from ../../nan/nan.h:51:0,
                 from ../src/node-boilerplate/scrypt_hash_async.cc:25:
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:172:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../scrypt_node.cc:28:0:
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’:
../../nan/nan.h:840:60: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
         v8::Isolate::GetCurrent(), target, func, argc, argv);
                                                            ^
In file included from ../scrypt_node.cc:27:0:
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:172:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../scrypt_node.cc:28:0:
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’:
../../nan/nan.h:855:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
         v8::Isolate::GetCurrent(), target, symbol, argc, argv);
                                                              ^
In file included from ../scrypt_node.cc:27:0:
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:165:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../scrypt_node.cc:28:0:
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)’:
../../nan/nan.h:870:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
         v8::Isolate::GetCurrent(), target, method, argc, argv);
                                                              ^
In file included from ../scrypt_node.cc:27:0:
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:158:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../scrypt_node.cc:28:0:
../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::Callback::Call_(v8::Isolate*, v8::Local<v8::Object>, int, v8::Local<v8::Value>*) const’:
../../nan/nan.h:1484:5: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
     ));
     ^
In file included from ../scrypt_node.cc:27:0:
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:172:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../src/addon.cc:2:0:
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’:
../../nan/nan.h:840:60: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
         v8::Isolate::GetCurrent(), target, func, argc, argv);
                                                            ^
In file included from ../src/addon.cc:1:0:
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:172:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../src/addon.cc:2:0:
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’:
../../nan/nan.h:855:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
         v8::Isolate::GetCurrent(), target, symbol, argc, argv);
                                                              ^
In file included from ../src/addon.cc:1:0:
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:165:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../src/addon.cc:2:0:
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)’:
../../nan/nan.h:870:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
         v8::Isolate::GetCurrent(), target, method, argc, argv);
                                                              ^
In file included from ../src/addon.cc:1:0:
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:158:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../src/addon.cc:2:0:
../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::Callback::Call_(v8::Isolate*, v8::Local<v8::Object>, int, v8::Local<v8::Value>*) const’:
../../nan/nan.h:1484:5: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
     ));
     ^
In file included from ../src/addon.cc:1:0:
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:172:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../src/privatekey.cc:2:0:
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’:
../../nan/nan.h:840:60: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
         v8::Isolate::GetCurrent(), target, func, argc, argv);
                                                            ^
In file included from ../src/privatekey.cc:1:0:
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:172:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../src/privatekey.cc:2:0:
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’:
../../nan/nan.h:855:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
         v8::Isolate::GetCurrent(), target, symbol, argc, argv);
                                                              ^
In file included from ../src/privatekey.cc:1:0:
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:165:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../src/privatekey.cc:2:0:
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)’:
../../nan/nan.h:870:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
         v8::Isolate::GetCurrent(), target, method, argc, argv);
                                                              ^
In file included from ../src/privatekey.cc:1:0:
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:158:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../src/privatekey.cc:2:0:
../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::Callback::Call_(v8::Isolate*, v8::Local<v8::Object>, int, v8::Local<v8::Value>*) const’:
../../nan/nan.h:1484:5: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
     ));
     ^
In file included from ../src/privatekey.cc:1:0:
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:172:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
../src/privatekey.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE privateKeyNegate(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/privatekey.cc:73:61: warning: ignoring return value of ‘int secp256k1_ec_privkey_negate(const secp256k1_context*, unsigned char*)’, declared with attribute warn_unused_result [-Wunused-result]
   secp256k1_ec_privkey_negate(secp256k1ctx, &private_key[0]);
                                                             ^
In file included from ../src/publickey.cc:3:0:
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’:
../../nan/nan.h:840:60: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
         v8::Isolate::GetCurrent(), target, func, argc, argv);
                                                            ^
In file included from ../src/publickey.cc:2:0:
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:172:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../src/publickey.cc:3:0:
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’:
../../nan/nan.h:855:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
         v8::Isolate::GetCurrent(), target, symbol, argc, argv);
                                                              ^
In file included from ../src/publickey.cc:2:0:
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:165:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../src/publickey.cc:3:0:
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)’:
../../nan/nan.h:870:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
         v8::Isolate::GetCurrent(), target, method, argc, argv);
                                                              ^
In file included from ../src/publickey.cc:2:0:
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:158:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../src/publickey.cc:3:0:
../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::Callback::Call_(v8::Isolate*, v8::Local<v8::Object>, int, v8::Local<v8::Value>*) const’:
../../nan/nan.h:1484:5: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
     ));
     ^
In file included from ../src/publickey.cc:2:0:
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:172:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../src/signature.cc:2:0:
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’:
../../nan/nan.h:840:60: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
         v8::Isolate::GetCurrent(), target, func, argc, argv);
                                                            ^
In file included from ../src/signature.cc:1:0:
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:172:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../src/signature.cc:2:0:
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’:
../../nan/nan.h:855:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
         v8::Isolate::GetCurrent(), target, symbol, argc, argv);
                                                              ^
In file included from ../src/signature.cc:1:0:
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:165:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../src/signature.cc:2:0:
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)’:
../../nan/nan.h:870:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
         v8::Isolate::GetCurrent(), target, method, argc, argv);
                                                              ^
In file included from ../src/signature.cc:1:0:
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:158:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../src/signature.cc:2:0:
../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::Callback::Call_(v8::Isolate*, v8::Local<v8::Object>, int, v8::Local<v8::Value>*) const’:
../../nan/nan.h:1484:5: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
     ));
     ^
In file included from ../src/signature.cc:1:0:
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:172:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/benjamin.c.burns/.node-gyp/10.4.0/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../src/ecdsa.cc:2:0:
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’:
../../nan/nan.h:840:60: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
         v8::Isolate::GetCurrent(), target, func, argc, argv);

What should be on http://localhost:3000?

I run the following command.

truffle unbox drizzle
truffle compile
truffle migrate
npm run start

Then I open http://localhost:3000, but I see nothing. Is it what I supposed to see?

TypeError: (0 , _drizzle.generateContractsInitialState) is not a function when trying to run freshly-unboxed Drizzle-box

Hi! I'm new to web3 and truffle, but I've did everything as described in tutorial:

I have unboxed drizze-box
I have ganache-cli running on localhost:8545
I have deployed needed contracts successfully
ran webpack-server on localhost:3000
also my Metamask connected to localhost:8545 and shows a valid account from testrpc with right amount of ETH (99.675 ETH), considering small amount was spent when deploying those contracts.
Now, the webpage on localhost:3000 shows nothing and throws this error:
TypeError: (0 , _drizzle.generateContractsInitialState) is not a function

Any ideas what is wrong with that?

Drizzle-box not working with relative paths

Hey Everyone,

Thanks for all the hard work! One issue that I have been banging my head trying to resolve is that my dapp which is based off the drizzle box will not load unless it is at the root url.

  • I have updated my package.json to set the correct homepage.
  • When I build it says "The project was built assuming it is hosted at /wire-forms/. You can control this with the homepage field in your package.json." which is correct.

But the site will not load unless it is at root.

Does anyone have any ideas?

`npm run build` does not output a working site

Repro steps:

terminal 1:

  • truffle unbox drizzle
  • truffle develop
  • truffle migrate

terminal 2:

  • npm run start
  • load a browser, navigate to localhost:3000 [it works]
  • npm run build
  • pushstate-server build_webpack
  • navigate to localhost:9000/index.html [Site will get past the loading cogs, then stays on a blank page]

Incompatible with Metamask?

I was able to get drizzle-box working after I follow the instructions on #11 .
However, I notice that if I have the Metamask extension installed on my browser, then the app does not load for me (just get the loading container). If I uninstall Metamask, it works.

Tested on Chrome & firefox

Thanks
Rv

Compilations warning due to depricated calls

when running truffle compile, I'm getting this:


Compilation warnings encountered:

/Users/decentralemployee/workspace/personal/drizzle-box/contracts/ComplexStorage.sol:27:2: Warning: Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
        function ComplexStorage() public {
 ^ (Relevant source part starts here and spans across multiple lines).
,/Users/decentralemployee/workspace/personal/drizzle-box/contracts/ComplexStorage.sol:34:3: Warning: Use of the "var" keyword is deprecated.
                var dev1 = DeviceData("deviceBrand", "deviceYear", "wearLevel");
                ^------^
,/Users/decentralemployee/workspace/personal/drizzle-box/contracts/ComplexStorage.sol:35:3: Warning: Use of the "var" keyword is deprecated.
                var dev2 = DeviceData("deviceBrand2", "deviceYear2", "wearLevel2");
                ^------^
,/Users/decentralemployee/workspace/personal/drizzle-box/contracts/ComplexStorage.sol:36:9: Warning: Use of the "var" keyword is deprecated.
        var dev3 = DeviceData("deviceBrand3", "deviceYear3", "wearLevel3");
        ^------^
,/Users/decentralemployee/workspace/personal/drizzle-box/contracts/Migrations.sol:11:3: Warning: Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
  function Migrations() public {
  ^ (Relevant source part starts here and spans across multiple lines).
,/Users/decentralemployee/workspace/personal/drizzle-box/contracts/SimpleStorage.sol:13:5: Warning: Invoking events without "emit" prefix is deprecated.
    StorageSet("Data stored successfully!");
    ^-------------------------------------^

Unable to open home page! TypeError: Cannot read property 'address' of undefined

After minor tweaks in package.json file, 'npm run test' finally passed. (Refer to comments of #10)
But getting an error in Chrome console after doing npm run start. Got nothing in terminal though.

Running on macOS High Sierra
ganache is running
truffle test -> passed
npm run test -> passed

Steps in #11 were of no help.

Error in Chrome Console ->
Error retrieving network ID:
TypeError: Cannot read property 'address' of undefined
at http://localhost:3000/static/js/bundle.js:69576:103
From previous event:
at new DrizzleContract (http://localhost:3000/static/js/bundle.js:69575:27)
at Drizzle.getContracts (http://localhost:3000/static/js/bundle.js:69461:58)
at http://localhost:3000/static/js/bundle.js:69442:17
at anonymous

Edit: 07/03/18
I installed ubuntu 16.04 LTS on virtualbox and did a fresh install of drizzle box using link:http://truffleframework.com/boxes/drizzle with one minor change, after doing drizzle unbox I removed the node_modules folder and did 'npm install'. This worked for me. I got the drizzle box up.

Blank Page after fresh installation

I have just learnt about this box and decided to install it, following the instructions on the ReadMe. However when I run npm start after all other installation, the localhost:3000 page is blank. Then as somebody suggested in this issue #26, I have metamask installed on chrome, and after selecting localhost as the network and creating an account, the page is still blank. What am I missing?
For further reference, I followed all the steps from 1 to 4 in the readme of this repo, to the letter, and they work. Am stuck on step 5. Using windows 10 and chrome

Not working with Metamask 4.14

Tested with metamask 4.13 and everything was fine. Same code on 4.14 and contract data displays never update, they show the refresh icon and after the tx is included in ganache nothing happens. I guess some message has changed and drizzle never thinks the contract is in sync? But the value stays wrong too.

Update to use React Context API

Hey folks, thanks for developing this box! It's been helpful boilerplate to get my first dApp project up & running.

I've been a bit confused by the different Drizzle + React implementations I've come across. E.g. I noticed in the package.json, we're using React ^16.7.0 but when going through the drizzle-react README section on Using the React Context API (For React v16.3+), it doesn't appear this box is using the React Context API.

Is there a plan to update it? I've been experimenting with updating it myself but now have hit snags with components from drizzle-react-components breaking. Would you expect the current drizzle-react-components(1.2.1) to be incompatible with the React Context API? Or perhaps it's just implementation errors on my end...

Make it work with drizzle-react-components 1.2.1

npm build will fail with drizzle-react-components 1.2.1 with this error:

failed to minify the code from this file

This is an issue because the following sequence of events that happens when you unbox

  1. truffle unbox drizzle
  2. npm install
  3. npm prepare
  4. npm build

Not sure why we even need to build in the first place when the user downloads the box for most likely development purposes.

But regardless, npm build will be broken for when the user wants to make a prod build.

Missing word in README.md

Under FAQ in

Why is there both a truffle.js file and a truffle-config.js file?

Current:

Feel free to it if it's irrelevant to your platform.

Should probably read:

Feel free to delete it if it's irrelevant to your platform.

React-router v4

Why is react-router v3 still being used here? How difficult is it for us to update to react-router v4?

Pulled out the relevant code below, unsure if this is all that will be changed going for v3 to v4.

packages.json

"react-router": "^3.0.2",
"react-router-redux": "^4.0.7",

index.js

import { Router, Route, IndexRoute, browserHistory } from 'react-router'
import { syncHistoryWithStore } from 'react-router-redux'

ReactDOM.render((
    <DrizzleProvider options={drizzleOptions} store={store}>
    <LoadingContainer>
        <Router history={history}>
        <Route path="/" component={App}>
            <IndexRoute component={HomeContainer} />
        </Route>
        </Router>
    </LoadingContainer>
    </DrizzleProvider>
),
document.getElementById('root')
);

Replayed calls sometimes return stale data

When using the polling fallback, stale data is sometimes returned.

  • No errors are thrown since all calls complete as expected.
  • Redux Dev Tools logs show all events dispatching correctly (see this image).
  • Events have correct data, with exception of GOT_CONTRACT_VAR.
  • Seems to be random (sometimes it's tx 1, sometimes 4, etc.); changing my behavior doesn't affect anything.

🤔

transaction's value

I am trying to use a contractform while specifying the value to send as following

<ContractForm contract="contract_name" method="method_name" methodArgs={[{from: this.props.accounts[0],value: web3.utils.toWei('2','ether'),data:"Test"}]} />

Metamask shows me the transaction but with 0 wei.
it seems that we can't set the transaction value even if the code doesn't fire any error.
am i missing something?

TutorialToken->My Balance not updated

Hi

I noticed that if we switch the account from Metamask, the call to "balanceOf" from "TutorialToken" is not properly called while the account's address has changed.

Have you already notice this issue?
If yes, is there a way to properly update the token's balance without a "manual" page refresh?

Thanks,

Said

SyntaxError: Unexpected token function

After running

npm install -g truffle
npm install -g ganache-cli

and then

truffle unbox drizzle I get this error:

/home/robin/.npm-global/lib/node_modules/truffle/build/cli.bundled.js:116451
async function detectNetworkId() {
^^^^^^^^

SyntaxError: Unexpected token function
at createScript (vm.js:56:10)
at Object.runInThisContext (vm.js:97:10)
at Module._compile (module.js:542:28)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:383:7)
at startup (bootstrap_node.js:149:9)

Using the React Context API

The drizzle-react README mentions the deprecation of the legacy context API:

We retain the old API for backwards compatibility, but please note that React itself has deprecated the legacy React Context API since v16.3 and it will not be supported in v17. When possible, please use the new React Context API.

It would be helpful if drizzle-box would use the new context API.

Update solidity scripts for latest solidity version, to avoid truffle compile warning.

Compilation warnings encountered:

/Users/fur/Projects/Block42/landpot-dapp/contracts/ComplexStorage.sol:27:2: Warning: Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
	function ComplexStorage() public {
 ^ (Relevant source part starts here and spans across multiple lines).
,/Users/fur/Projects/Block42/landpot-dapp/contracts/ComplexStorage.sol:34:3: Warning: Use of the "var" keyword is deprecated.
		var dev1 = DeviceData("deviceBrand", "deviceYear", "wearLevel");
		^------^
,/Users/fur/Projects/Block42/landpot-dapp/contracts/ComplexStorage.sol:35:3: Warning: Use of the "var" keyword is deprecated.
		var dev2 = DeviceData("deviceBrand2", "deviceYear2", "wearLevel2");
		^------^
,/Users/fur/Projects/Block42/landpot-dapp/contracts/ComplexStorage.sol:36:9: Warning: Use of the "var" keyword is deprecated.
        var dev3 = DeviceData("deviceBrand3", "deviceYear3", "wearLevel3");
        ^------^
,/Users/fur/Projects/Block42/landpot-dapp/contracts/SimpleStorage.sol:13:5: Warning: Invoking events without "emit" prefix is deprecated.
    StorageSet("Data stored successfully!");
    ^-------------------------------------^

'npm run test' fails after unbox

Did unbox then 'npm test' and get this right out the gate. I'm using osx High Sierra 10.13.6

FAIL  src/App.test.js

  console.error node_modules/react-dom/cjs/react-dom.development.js:14226
    The above error occurred in the <Route> component:
        in Route (at App.js:16)
        in div (at App.js:15)
        in App (at App.test.js:7)

Impossible to unbox this box on my Mac with the latest version of Node, NPM and Truffle installed

A simple "truffle unbox drizzle" completely fails with a few warnings and 1 error that says:

gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/sarbogast/dev/cryptoseries-react/node_modules/sha3
gyp ERR! node -v v10.8.0
gyp ERR! node-gyp -v v3.7.0
gyp ERR! not ok 
npm WARN [email protected] No description
npm WARN [email protected] No repository field.
npm WARN [email protected] No license field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: `node install`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/sarbogast/.npm/_logs/2018-08-10T07_49_01_296Z-debug.log

The complete log file is here: 2018-08-10T07_47_39_922Z-debug.log

Can't access contract data in HomeContainer

I'm having issues with getting the contract data from redux. I've changed the HomeContainer to import Home.bak to play around with getting some data by hand, without the components. The problem I'm having is getting the storedData to show up in the state.

this is my HomeContainer.js:

  import Home from './Home.bak'
  import { drizzleConnect } from 'drizzle-react'

  const mapStateToProps = state => {
    console.log(state)
    return {
      accounts: state.accounts,
      SimpleStorage: state.contracts.SimpleStorage,
      TutorialToken: state.contracts.TutorialToken,
      drizzleStatus: state.drizzleStatus
    }
  }

  const HomeContainer = drizzleConnect(Home, mapStateToProps);

  export default HomeContainer

When I print the value here, the storedData object is empty. On the flip side, if I check with the redux-devtool, storedData contains the value i'm looking for.
image

Another thing that is confusing me, is the fact that I'm able to get the proper dataKey (0x0) in Home.bak, though I have a feeling that it's the default return value.

npm install with app directory fails for Drizzle

I installed drizzle using truffle unbox drizzle and the process completes successfully. I then try npm install within the app directory but the process fails due to an unreachable devDependency module within Drizzle. The Webpack -- > Websocket-Node can't be reached on github. Perhaps this is a temporary issue, but maybe the dependency could be marked optional, as I don't think websocket-node is needed.

npm ERR! Error while executing:
npm ERR! /usr/local/cpanel/3rdparty/lib/path-bin/git ls-remote -h -t git://github.com/frozeman/WebSocket-Node.git
npm ERR!
npm ERR! fatal: unable to connect to github.com:
npm ERR! github.com[0: 192.30.255.113]: errno=Connection refused
npm ERR! github.com[1: 192.30.255.112]: errno=Connection refused
npm ERR!
npm ERR!
npm ERR! exited with error code: 128

npm test fails

Hi, great library! Unfortunately npm test is failing for me, running on Mac OS X High Sierra.

I've tried removing node_modules and doing an npm install. No dice. Looks like the path is wrong in package.json.

FAIL  src/App.test.js
  ● Test suite failed to run

    ENOENT: no such file or directory, stat '/Users/john/dev/drizzle/\config\polyfills.js'
        at Error (native)
      
      at Object.fs.statSync (fs.js:981:18)
      at Object.statSync (node_modules/graceful-fs/polyfills.js:297:22)

Test Suites: 1 failed, 1 total

package.json needs updating

npm install leaves many unmet dependencies under webpack->watchpak->chokidir.

Why is such an old version of webpack used compared to drizzle react and drizzle react components?

The app also can not be run because the specified web3 version is too old, I made some progress updating to beta.34

I also couldn't run because deepmerge was required but was missing so had to add that.

I can't get this working at all, after npm update compiling doesn't work, and after fixing issues to get it to compile running still gives a blank screen with the error _drizzle.generateContractsInitialState) is not a function.

I was using Solus if it's relevant.

Broken contract dep path

╭─xyz@xyzs-MacBook-Pro ~/dev/drizzle-box  ‹develop*› 
╰─$ truffle compile && truffle migrate   
Error: Could not find zeppelin-solidity/contracts/token/StandardToken.sol from any sources; imported from /Users/xyz/dev/drizzle-box/contracts/TutorialToken.sol
    at /Users/xyz/.nvm/versions/node/v8.9.4/lib/node_modules/truffle/build/webpack:/~/truffle-resolver/index.js:76:1
    at /Users/xyz/.nvm/versions/node/v8.9.4/lib/node_modules/truffle/build/webpack:/~/async/internal/onlyOnce.js:12:1
    at next (/Users/xyz/.nvm/versions/node/v8.9.4/lib/node_modules/truffle/build/webpack:/~/async/whilst.js:68:1)
    at /Users/xyz/.nvm/versions/node/v8.9.4/lib/node_modules/truffle/build/webpack:/~/truffle-resolver/index.js:64:1
    at /Users/xyz/.nvm/versions/node/v8.9.4/lib/node_modules/truffle/build/webpack:/~/truffle-resolver/fs.js:65:1
    at /Users/xyz/.nvm/versions/node/v8.9.4/lib/node_modules/truffle/build/webpack:/~/async/internal/once.js:12:1
    at replenish (/Users/xyz/.nvm/versions/node/v8.9.4/lib/node_modules/truffle/build/webpack:/~/async/internal/eachOfLimit.js:59:1)
    at iterateeCallback (/Users/xyz/.nvm/versions/node/v8.9.4/lib/node_modules/truffle/build/webpack:/~/async/internal/eachOfLimit.js:49:1)
    at /Users/xyz/.nvm/versions/node/v8.9.4/lib/node_modules/truffle/build/webpack:/~/async/internal/onlyOnce.js:12:1
    at ReadFileContext.callback (/Users/xyz/.nvm/versions/node/v8.9.4/lib/node_modules/truffle/build/webpack:/~/truffle-resolver/fs.js:61:1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.