DOkwufulueze / eth-vue

Featured in Awesome Vue [https://github.com/vuejs/awesome-vue], a curated list maintained by vuejs of awesome things related to the Vue.js framework, and Awesome List [https://awesomelists.net/150-Vue.js/3863-Open+Source/18749-DOkwufulueze-eth-vue], this Truffle Box provides everything you need to quickly build Ethereum dApps that have authentication features with vue, including configuration for easy deployment to the Ropsten Network. It's also Gravatar-enabled. Connecting to a running Ganache blockchain network from Truffle is also possible -- for fast development and testing purposes. Built on Truffle 5 and Vue 3, eth-vue uses vuex for state management, vuex-persist for local storage of app state, and vue-router for routing. Authentication functionalities are handled by Smart Contracts running on the Ethereum blockchain.
GNU General Public License v3.0
243 stars 40 forks source link

Errors with Smartcontracts compilation #13

Closed Vulturio closed 3 years ago

Vulturio commented 6 years ago

The contrats are not compiling, and the app is not working because the JSON files are not generated.

truffle(develop)> compile
Compiling .\contracts\DB.sol...
Compiling .\contracts\Migrations.sol...
Compiling .\contracts\Setup.sol...
Compiling .\contracts\UserAuthManager.sol...
Compiling .\contracts\lib\arachnid\solidity-stringutils\strings.sol...
Compiling .\contracts\lib\userManager.sol...
Compiling .\contracts\lib\utilities.sol...
Compiling .\contracts\zeppelin\lifecycle\Destructible.sol...
Compiling .\contracts\zeppelin\math\SafeMath.sol...
Compiling .\contracts\zeppelin\ownership\Ownable.sol...

Compilation warnings encountered:

/C/Dev/Vue/contracts/zeppelin/ownership/Ownable.sol:17:3: Warning: Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
  function Ownable() public {
  ^ (Relevant source part starts here and spans across multiple lines).
,/C/Dev/Vue/contracts/zeppelin/lifecycle/Destructible.sol:13:3: Warning: Defining constructors as functions with the same name as the contract is deprecated.
Use "constructor(...) { ... }" instead.
  function Destructible() payable public { }
  ^----------------------------------------^
,/C/Dev/Vue/contracts/lib/arachnid/solidity-stringutils/strings.sol:140:9: Warning: Use of the "var" keyword is deprecated.
        var ret = new string(self._len);
        ^-----^
,/C/Dev/Vue/contracts/lib/arachnid/solidity-stringutils/strings.sol:158:9: Warning: Use of the "var" keyword is deprecated.
        var ptr = self._ptr - 31;
        ^-----^
,/C/Dev/Vue/contracts/lib/arachnid/solidity-stringutils/strings.sol:159:9: Warning: Use of the "var" keyword is deprecated.
        var end = ptr + self._len;
        ^-----^
,/C/Dev/Vue/contracts/lib/arachnid/solidity-stringutils/strings.sol:203:9: Warning: Use of the "var" keyword is deprecated.
        var selfptr = self._ptr;
        ^---------^
,/C/Dev/Vue/contracts/lib/arachnid/solidity-stringutils/strings.sol:204:9: Warning: Use of the "var" keyword is deprecated.
        var otherptr = other._ptr;
        ^----------^
,/C/Dev/Vue/contracts/lib/arachnid/solidity-stringutils/strings.sol:215:17: Warning: Use of the "var" keyword is deprecated.
                var diff = (a & mask) - (b & mask);
                ^------^
,/C/Dev/Vue/contracts/lib/arachnid/solidity-stringutils/strings.sol:304:9: Warning: Use of the "var" keyword is deprecated.
        var b = word / _div;
        ^---^
,/C/Dev/Vue/contracts/lib/arachnid/solidity-stringutils/strings.sol:414:9: Warning: Use of the "var" keyword is deprecated.
        var selfptr = self._ptr + self._len - needle._len;
        ^---------^
,/C/Dev/Vue/contracts/lib/arachnid/solidity-stringutils/strings.sol:442:9: Warning: Use of the "var" keyword is deprecated.
        var selfptr = self._ptr + self._len - needle._len;
        ^---------^
,/C/Dev/Vue/contracts/lib/arachnid/solidity-stringutils/strings.sol:672:9: Warning: Use of the "var" keyword is deprecated.
        var ret = new string(self._len + other._len);
        ^-----^
,/C/Dev/Vue/contracts/lib/arachnid/solidity-stringutils/strings.sol:696:9: Warning: Use of the "var" keyword is deprecated.
        var ret = new string(strLen);
        ^-----^
,/C/Dev/Vue/contracts/DB.sol:28:3: Warning: Defining constructors as functions
with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
  function DB () public {
  ^ (Relevant source part starts here and spans across multiple lines).
,/C/Dev/Vue/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).
,/C/Dev/Vue/contracts/Setup.sol:11:3: Warning: Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
  function Setup (address _dbAddress) public {
  ^ (Relevant source part starts here and spans across multiple lines).
,/C/Dev/Vue/contracts/lib/utilities.sol:17:5: Warning: Use of the "var" keyword is deprecated.
    var idx = DB(dbAddress).getUIntValue(keccak256(countKey));
    ^-----^
,/C/Dev/Vue/contracts/lib/utilities.sol:24:5: Warning: Use of the "var" keyword is deprecated.
    var idx = DB(dbAddress).getUIntValue(keccak256(countKey));
    ^-----^
,/C/Dev/Vue/contracts/lib/userManager.sol:34:5: Warning: Use of the "var" keyword is deprecated.
    var firstNameLength = firstName.toSlice().len();
    ^-----------------^
,/C/Dev/Vue/contracts/lib/userManager.sol:35:5: Warning: Use of the "var" keyword is deprecated.
    var lastNameLength = lastName.toSlice().len();
    ^----------------^
,/C/Dev/Vue/contracts/lib/userManager.sol:36:5: Warning: Use of the "var" keyword is deprecated.
    var emailLength = email.toSlice().len();
    ^-------------^
,/C/Dev/Vue/contracts/UserAuthManager.sol:9:3: Warning: Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
  function UserAuthManager (address _dbAddress) public {
  ^ (Relevant source part starts here and spans across multiple lines).
,/C/Dev/Vue/contracts/lib/arachnid/solidity-stringutils/strings.sol:473:21: Warning: The use of labels is deprecated. Please use "if", "switch", "for" or function calls instead.
                    loop:
                    ^--^
,/C/Dev/Vue/contracts/lib/arachnid/solidity-stringutils/strings.sol:473:21: Warning: Jump instructions and labels are low-level EVM features that can lead to
incorrect stack access. Because of that they are discouraged. Please consider using "switch", "if" or "for" statements instead.
                    loop:
                    ^--^
,/C/Dev/Vue/contracts/lib/arachnid/solidity-stringutils/strings.sol:474:21: Warning: Jump instructions and labels are low-level EVM features that can lead to
incorrect stack access. Because of that they are discouraged. Please consider using "switch", "if" or "for" statements instead.
                    jumpi(exit, eq(and(mload(ptr), mask), needledata))
                    ^------------------------------------------------^
,/C/Dev/Vue/contracts/lib/arachnid/solidity-stringutils/strings.sol:476:21: Warning: Jump instructions and labels are low-level EVM features that can lead to
incorrect stack access. Because of that they are discouraged. Please consider using "switch", "if" or "for" statements instead.
                    jumpi(loop, lt(sub(ptr, 1), end))
                    ^-------------------------------^
,/C/Dev/Vue/contracts/lib/arachnid/solidity-stringutils/strings.sol:478:21: Warning: The use of labels is deprecated. Please use "if", "switch", "for" or function calls instead.
                    exit:
                    ^--^
,/C/Dev/Vue/contracts/lib/arachnid/solidity-stringutils/strings.sol:478:21: Warning: Jump instructions and labels are low-level EVM features that can lead to
incorrect stack access. Because of that they are discouraged. Please consider using "switch", "if" or "for" statements instead.
                    exit:
                    ^--^
,/C/Dev/Vue/contracts/lib/arachnid/solidity-stringutils/strings.sol:510:21: Warning: The use of labels is deprecated. Please use "if", "switch", "for" or function calls instead.
                    loop:
                    ^--^
,/C/Dev/Vue/contracts/lib/arachnid/solidity-stringutils/strings.sol:510:21: Warning: Jump instructions and labels are low-level EVM features that can lead to
incorrect stack access. Because of that they are discouraged. Please consider using "switch", "if" or "for" statements instead.
                    loop:
                    ^--^
,/C/Dev/Vue/contracts/lib/arachnid/solidity-stringutils/strings.sol:511:21: Warning: Jump instructions and labels are low-level EVM features that can lead to
incorrect stack access. Because of that they are discouraged. Please consider using "switch", "if" or "for" statements instead.
                    jumpi(ret, eq(and(mload(ptr), mask), needledata))
                    ^-----------------------------------------------^
,/C/Dev/Vue/contracts/lib/arachnid/solidity-stringutils/strings.sol:513:21: Warning: Jump instructions and labels are low-level EVM features that can lead to
incorrect stack access. Because of that they are discouraged. Please consider using "switch", "if" or "for" statements instead.
                    jumpi(loop, gt(add(ptr, 1), selfptr))
                    ^-----------------------------------^
,/C/Dev/Vue/contracts/lib/arachnid/solidity-stringutils/strings.sol:515:21: Warning: Jump instructions and labels are low-level EVM features that can lead to
incorrect stack access. Because of that they are discouraged. Please consider using "switch", "if" or "for" statements instead.
                    jump(exit)
                    ^--------^
,/C/Dev/Vue/contracts/lib/arachnid/solidity-stringutils/strings.sol:516:21: Warning: The use of labels is deprecated. Please use "if", "switch", "for" or function calls instead.
                    ret:
                    ^-^
,/C/Dev/Vue/contracts/lib/arachnid/solidity-stringutils/strings.sol:516:21: Warning: Jump instructions and labels are low-level EVM features that can lead to
incorrect stack access. Because of that they are discouraged. Please consider using "switch", "if" or "for" statements instead.
                    ret:
                    ^-^
,/C/Dev/Vue/contracts/lib/arachnid/solidity-stringutils/strings.sol:518:21: Warning: The use of labels is deprecated. Please use "if", "switch", "for" or function calls instead.
                    exit:
                    ^--^
,/C/Dev/Vue/contracts/lib/arachnid/solidity-stringutils/strings.sol:518:21: Warning: Jump instructions and labels are low-level EVM features that can lead to
incorrect stack access. Because of that they are discouraged. Please consider using "switch", "if" or "for" statements instead.
                    exit:
                    ^--^
,/C/Dev/Vue/contracts/lib/utilities.sol:10:39: Warning: This function only accepts a single "bytes" argument. Please use "abi.encodePacked(...)" or a similar
function to encode the data.
    return DB(dbAddress).getUIntValue(keccak256(key));
                                      ^------------^
,/C/Dev/Vue/contracts/lib/utilities.sol:10:39: Warning: The provided argument of type string memory is not implicitly convertible to expected type bytes memory.
    return DB(dbAddress).getUIntValue(keccak256(key));
                                      ^------------^
,/C/Dev/Vue/contracts/lib/utilities.sol:17:42: Warning: This function only accepts a single "bytes" argument. Please use "abi.encodePacked(...)" or a similar
function to encode the data.
    var idx = DB(dbAddress).getUIntValue(keccak256(countKey));
                                         ^-----------------^
,/C/Dev/Vue/contracts/lib/utilities.sol:17:42: Warning: The provided argument of type string memory is not implicitly convertible to expected type bytes memory.
    var idx = DB(dbAddress).getUIntValue(keccak256(countKey));
                                         ^-----------------^
,/C/Dev/Vue/contracts/lib/utilities.sol:18:35: Warning: This function only accepts a single "bytes" argument. Please use "abi.encodePacked(...)" or a similar
function to encode the data.
    DB(dbAddress).setAddressValue(keccak256(key, idx), val);
                                  ^-----------------^
,/C/Dev/Vue/contracts/lib/utilities.sol:19:32: Warning: This function only accepts a single "bytes" argument. Please use "abi.encodePacked(...)" or a similar
function to encode the data.
    DB(dbAddress).setUIntValue(keccak256(key, val, "index"), idx);
                               ^--------------------------^
,/C/Dev/Vue/contracts/lib/utilities.sol:20:32: Warning: This function only accepts a single "bytes" argument. Please use "abi.encodePacked(...)" or a similar
function to encode the data.
    DB(dbAddress).setUIntValue(keccak256(countKey), idx + 1);
                               ^-----------------^
,/C/Dev/Vue/contracts/lib/utilities.sol:20:32: Warning: The provided argument of type string memory is not implicitly convertible to expected type bytes memory.
    DB(dbAddress).setUIntValue(keccak256(countKey), idx + 1);
                               ^-----------------^
,/C/Dev/Vue/contracts/lib/utilities.sol:24:42: Warning: This function only accepts a single "bytes" argument. Please use "abi.encodePacked(...)" or a similar
function to encode the data.
    var idx = DB(dbAddress).getUIntValue(keccak256(countKey));
                                         ^-----------------^
,/C/Dev/Vue/contracts/lib/utilities.sol:24:42: Warning: The provided argument of type string memory is not implicitly convertible to expected type bytes memory.
    var idx = DB(dbAddress).getUIntValue(keccak256(countKey));
                                         ^-----------------^
,/C/Dev/Vue/contracts/lib/utilities.sol:25:32: Warning: This function only accepts a single "bytes" argument. Please use "abi.encodePacked(...)" or a similar
function to encode the data.
    DB(dbAddress).setUIntValue(keccak256(key, idx), val);
                               ^-----------------^
,/C/Dev/Vue/contracts/lib/utilities.sol:26:32: Warning: This function only accepts a single "bytes" argument. Please use "abi.encodePacked(...)" or a similar
function to encode the data.
    DB(dbAddress).setUIntValue(keccak256(key, val, "index"), idx);
                               ^--------------------------^
,/C/Dev/Vue/contracts/lib/utilities.sol:27:32: Warning: This function only accepts a single "bytes" argument. Please use "abi.encodePacked(...)" or a similar
function to encode the data.
    DB(dbAddress).setUIntValue(keccak256(countKey), idx + 1);
                               ^-----------------^
,/C/Dev/Vue/contracts/lib/utilities.sol:27:32: Warning: The provided argument of type string memory is not implicitly convertible to expected type bytes memory.
    DB(dbAddress).setUIntValue(keccak256(countKey), idx + 1);
                               ^-----------------^
,/C/Dev/Vue/contracts/lib/userManager.sol:9:33: Warning: This function only accepts a single "bytes" argument. Please use "abi.encodePacked(...)" or a similar function to encode the data.
    DB(dbAddress).setUInt8Value(keccak256("user/status", userId), status);
                                ^------------------------------^
,/C/Dev/Vue/contracts/lib/userManager.sol:21:40: Warning: This function only accepts a single "bytes" argument. Please use "abi.encodePacked(...)" or a similar function to encode the data.
    return DB(dbAddress).getUInt8Value(keccak256("user/status", userId));
                                       ^------------------------------^
,/C/Dev/Vue/contracts/lib/userManager.sol:47:34: Warning: This function only accepts a single "bytes" argument. Please use "abi.encodePacked(...)" or a similar function to encode the data.
    DB(dbAddress).setStringValue(keccak256("user/first-name", userId), firstName);
                                 ^----------------------------------^
,/C/Dev/Vue/contracts/lib/userManager.sol:48:34: Warning: This function only accepts a single "bytes" argument. Please use "abi.encodePacked(...)" or a similar function to encode the data.
    DB(dbAddress).setStringValue(keccak256("user/last-name", userId), lastName);
                                 ^---------------------------------^
,/C/Dev/Vue/contracts/lib/userManager.sol:49:34: Warning: This function only accepts a single "bytes" argument. Please use "abi.encodePacked(...)" or a similar function to encode the data.
    DB(dbAddress).setStringValue(keccak256("user/email", userId), email);
                                 ^-----------------------------^
,/C/Dev/Vue/contracts/lib/userManager.sol:50:35: Warning: This function only accepts a single "bytes" argument. Please use "abi.encodePacked(...)" or a similar function to encode the data.
    DB(dbAddress).setBytes32Value(keccak256("user/gravatar", userId), gravatar);
                                  ^--------------------------------^
,/C/Dev/Vue/contracts/lib/userManager.sol:60:34: Warning: This function only accepts a single "bytes" argument. Please use "abi.encodePacked(...)" or a similar function to encode the data.
      DB(dbAddress).setUIntValue(keccak256("user/created-on", userId), now);
                                 ^----------------------------------^
,/C/Dev/Vue/contracts/lib/userManager.sol:61:35: Warning: This function only accepts a single "bytes" argument. Please use "abi.encodePacked(...)" or a similar function to encode the data.
      DB(dbAddress).setUInt8Value(keccak256("user/status", userId), 1);
                                  ^------------------------------^
,/C/Dev/Vue/contracts/UserAuthManager.sol:32:5: Warning: Invoking events without "emit" prefix is deprecated.
    SetUser(msg.sender, true);
    ^-----------------------^

/C/Dev/Vue/contracts/zeppelin/ownership/Ownable.sol:1:1: SyntaxError: Source file requires different compiler version (current compiler is 0.4.24+commit.e67f0147.Emscripten.clang - note that nightly builds are considered to be strictly less than the released version
pragma solidity 0.4.18;
^---------------------^
,/C/Dev/Vue/contracts/zeppelin/ownership/Ownable.sol:17:3: Warning: Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
  function Ownable() public {
  ^ (Relevant source part starts here and spans across multiple lines).
,/C/Dev/Vue/contracts/zeppelin/lifecycle/Destructible.sol:1:1: SyntaxError: Source file requires different compiler version (current compiler is 0.4.24+commit.e67f0147.Emscripten.clang - note that nightly builds are considered to be strictly less than the released version
pragma solidity 0.4.18;
^---------------------^
,/C/Dev/Vue/contracts/zeppelin/lifecycle/Destructible.sol:13:3: Warning: Defining constructors as functions with the same name as the contract is deprecated.
Use "constructor(...) { ... }" instead.
  function Destructible() payable public { }
  ^----------------------------------------^
,/C/Dev/Vue/contracts/zeppelin/math/SafeMath.sol:1:1: SyntaxError: Source file
requires different compiler version (current compiler is 0.4.24+commit.e67f0147.Emscripten.clang - note that nightly builds are considered to be strictly less than the released version
pragma solidity 0.4.18;
^---------------------^
,/C/Dev/Vue/contracts/lib/arachnid/solidity-stringutils/strings.sol:1:1: SyntaxError: Source file requires different compiler version (current compiler is 0.4.24+commit.e67f0147.Emscripten.clang - note that nightly builds are considered
to be strictly less than the released version
pragma solidity 0.4.18;
^---------------------^
,/C/Dev/Vue/contracts/lib/arachnid/solidity-stringutils/strings.sol:140:9: Warning: Use of the "var" keyword is deprecated.
        var ret = new string(self._len);
        ^-----^
,/C/Dev/Vue/contracts/lib/arachnid/solidity-stringutils/strings.sol:158:9: Warning: Use of the "var" keyword is deprecated.
        var ptr = self._ptr - 31;
        ^-----^
,/C/Dev/Vue/contracts/lib/arachnid/solidity-stringutils/strings.sol:159:9: Warning: Use of the "var" keyword is deprecated.
        var end = ptr + self._len;
        ^-----^
,/C/Dev/Vue/contracts/lib/arachnid/solidity-stringutils/strings.sol:203:9: Warning: Use of the "var" keyword is deprecated.
        var selfptr = self._ptr;
        ^---------^
,/C/Dev/Vue/contracts/lib/arachnid/solidity-stringutils/strings.sol:204:9: Warning: Use of the "var" keyword is deprecated.
        var otherptr = other._ptr;
        ^----------^
,/C/Dev/Vue/contracts/lib/arachnid/solidity-stringutils/strings.sol:215:17: Warning: Use of the "var" keyword is deprecated.
                var diff = (a & mask) - (b & mask);
                ^------^
,/C/Dev/Vue/contracts/lib/arachnid/solidity-stringutils/strings.sol:304:9: Warning: Use of the "var" keyword is deprecated.
        var b = word / _div;
        ^---^
,/C/Dev/Vue/contracts/lib/arachnid/solidity-stringutils/strings.sol:414:9: Warning: Use of the "var" keyword is deprecated.
        var selfptr = self._ptr + self._len - needle._len;
        ^---------^
,/C/Dev/Vue/contracts/lib/arachnid/solidity-stringutils/strings.sol:442:9: Warning: Use of the "var" keyword is deprecated.
        var selfptr = self._ptr + self._len - needle._len;
        ^---------^
,/C/Dev/Vue/contracts/lib/arachnid/solidity-stringutils/strings.sol:672:9: Warning: Use of the "var" keyword is deprecated.
        var ret = new string(self._len + other._len);
        ^-----^
,/C/Dev/Vue/contracts/lib/arachnid/solidity-stringutils/strings.sol:696:9: Warning: Use of the "var" keyword is deprecated.
        var ret = new string(strLen);
        ^-----^
,/C/Dev/Vue/contracts/DB.sol:28:3: Warning: Defining constructors as functions
with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
  function DB () public {
  ^ (Relevant source part starts here and spans across multiple lines).
,/C/Dev/Vue/contracts/Migrations.sol:1:1: SyntaxError: Source file requires different compiler version (current compiler is 0.4.24+commit.e67f0147.Emscripten.clang - note that nightly builds are considered to be strictly less than the released version
pragma solidity 0.4.18;
^---------------------^
,/C/Dev/Vue/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).
,/C/Dev/Vue/contracts/Setup.sol:1:1: SyntaxError: Source file requires different compiler version (current compiler is 0.4.24+commit.e67f0147.Emscripten.clang - note that nightly builds are considered to be strictly less than the released version
pragma solidity 0.4.18;
^---------------------^
,/C/Dev/Vue/contracts/Setup.sol:11:3: Warning: Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
  function Setup (address _dbAddress) public {
  ^ (Relevant source part starts here and spans across multiple lines).
,/C/Dev/Vue/contracts/lib/utilities.sol:17:5: Warning: Use of the "var" keyword is deprecated.
    var idx = DB(dbAddress).getUIntValue(keccak256(countKey));
    ^-----^
,/C/Dev/Vue/contracts/lib/utilities.sol:24:5: Warning: Use of the "var" keyword is deprecated.
    var idx = DB(dbAddress).getUIntValue(keccak256(countKey));
    ^-----^
,/C/Dev/Vue/contracts/lib/userManager.sol:1:1: SyntaxError: Source file requires different compiler version (current compiler is 0.4.24+commit.e67f0147.Emscripten.clang - note that nightly builds are considered to be strictly less than the released version
pragma solidity 0.4.18;
^---------------------^
,/C/Dev/Vue/contracts/lib/userManager.sol:34:5: Warning: Use of the "var" keyword is deprecated.
    var firstNameLength = firstName.toSlice().len();
    ^-----------------^
,/C/Dev/Vue/contracts/lib/userManager.sol:35:5: Warning: Use of the "var" keyword is deprecated.
    var lastNameLength = lastName.toSlice().len();
    ^----------------^
,/C/Dev/Vue/contracts/lib/userManager.sol:36:5: Warning: Use of the "var" keyword is deprecated.
    var emailLength = email.toSlice().len();
    ^-------------^
,/C/Dev/Vue/contracts/UserAuthManager.sol:1:1: SyntaxError: Source file requires different compiler version (current compiler is 0.4.24+commit.e67f0147.Emscripten.clang - note that nightly builds are considered to be strictly less than the released version
pragma solidity 0.4.18;
^---------------------^
,/C/Dev/Vue/contracts/UserAuthManager.sol:9:3: Warning: Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
  function UserAuthManager (address _dbAddress) public {
  ^ (Relevant source part starts here and spans across multiple lines).
,/C/Dev/Vue/contracts/lib/arachnid/solidity-stringutils/strings.sol:473:21: Warning: The use of labels is deprecated. Please use "if", "switch", "for" or function calls instead.
                    loop:
                    ^--^
,/C/Dev/Vue/contracts/lib/arachnid/solidity-stringutils/strings.sol:473:21: Warning: Jump instructions and labels are low-level EVM features that can lead to
incorrect stack access. Because of that they are discouraged. Please consider using "switch", "if" or "for" statements instead.
                    loop:
                    ^--^
,/C/Dev/Vue/contracts/lib/arachnid/solidity-stringutils/strings.sol:474:21: Warning: Jump instructions and labels are low-level EVM features that can lead to
incorrect stack access. Because of that they are discouraged. Please consider using "switch", "if" or "for" statements instead.
                    jumpi(exit, eq(and(mload(ptr), mask), needledata))
                    ^------------------------------------------------^
,/C/Dev/Vue/contracts/lib/arachnid/solidity-stringutils/strings.sol:476:21: Warning: Jump instructions and labels are low-level EVM features that can lead to
incorrect stack access. Because of that they are discouraged. Please consider using "switch", "if" or "for" statements instead.
                    jumpi(loop, lt(sub(ptr, 1), end))
                    ^-------------------------------^
,/C/Dev/Vue/contracts/lib/arachnid/solidity-stringutils/strings.sol:478:21: Warning: The use of labels is deprecated. Please use "if", "switch", "for" or function calls instead.
                    exit:
                    ^--^
,/C/Dev/Vue/contracts/lib/arachnid/solidity-stringutils/strings.sol:478:21: Warning: Jump instructions and labels are low-level EVM features that can lead to
incorrect stack access. Because of that they are discouraged. Please consider using "switch", "if" or "for" statements instead.
                    exit:
                    ^--^
,/C/Dev/Vue/contracts/lib/arachnid/solidity-stringutils/strings.sol:510:21: Warning: The use of labels is deprecated. Please use "if", "switch", "for" or function calls instead.
                    loop:
                    ^--^
,/C/Dev/Vue/contracts/lib/arachnid/solidity-stringutils/strings.sol:510:21: Warning: Jump instructions and labels are low-level EVM features that can lead to
incorrect stack access. Because of that they are discouraged. Please consider using "switch", "if" or "for" statements instead.
                    loop:
                    ^--^
,/C/Dev/Vue/contracts/lib/arachnid/solidity-stringutils/strings.sol:511:21: Warning: Jump instructions and labels are low-level EVM features that can lead to
incorrect stack access. Because of that they are discouraged. Please consider using "switch", "if" or "for" statements instead.
                    jumpi(ret, eq(and(mload(ptr), mask), needledata))
                    ^-----------------------------------------------^
,/C/Dev/Vue/contracts/lib/arachnid/solidity-stringutils/strings.sol:513:21: Warning: Jump instructions and labels are low-level EVM features that can lead to
incorrect stack access. Because of that they are discouraged. Please consider using "switch", "if" or "for" statements instead.
                    jumpi(loop, gt(add(ptr, 1), selfptr))
                    ^-----------------------------------^
,/C/Dev/Vue/contracts/lib/arachnid/solidity-stringutils/strings.sol:515:21: Warning: Jump instructions and labels are low-level EVM features that can lead to
incorrect stack access. Because of that they are discouraged. Please consider using "switch", "if" or "for" statements instead.
                    jump(exit)
                    ^--------^
,/C/Dev/Vue/contracts/lib/arachnid/solidity-stringutils/strings.sol:516:21: Warning: The use of labels is deprecated. Please use "if", "switch", "for" or function calls instead.
                    ret:
                    ^-^
,/C/Dev/Vue/contracts/lib/arachnid/solidity-stringutils/strings.sol:516:21: Warning: Jump instructions and labels are low-level EVM features that can lead to
incorrect stack access. Because of that they are discouraged. Please consider using "switch", "if" or "for" statements instead.
                    ret:
                    ^-^
,/C/Dev/Vue/contracts/lib/arachnid/solidity-stringutils/strings.sol:518:21: Warning: The use of labels is deprecated. Please use "if", "switch", "for" or function calls instead.
                    exit:
                    ^--^
,/C/Dev/Vue/contracts/lib/arachnid/solidity-stringutils/strings.sol:518:21: Warning: Jump instructions and labels are low-level EVM features that can lead to
incorrect stack access. Because of that they are discouraged. Please consider using "switch", "if" or "for" statements instead.
                    exit:
                    ^--^
,/C/Dev/Vue/contracts/lib/utilities.sol:10:39: Warning: This function only accepts a single "bytes" argument. Please use "abi.encodePacked(...)" or a similar
function to encode the data.
    return DB(dbAddress).getUIntValue(keccak256(key));
                                      ^------------^
,/C/Dev/Vue/contracts/lib/utilities.sol:10:39: Warning: The provided argument of type string memory is not implicitly convertible to expected type bytes memory.
    return DB(dbAddress).getUIntValue(keccak256(key));
                                      ^------------^
,/C/Dev/Vue/contracts/lib/utilities.sol:17:42: Warning: This function only accepts a single "bytes" argument. Please use "abi.encodePacked(...)" or a similar
function to encode the data.
    var idx = DB(dbAddress).getUIntValue(keccak256(countKey));
                                         ^-----------------^
,/C/Dev/Vue/contracts/lib/utilities.sol:17:42: Warning: The provided argument of type string memory is not implicitly convertible to expected type bytes memory.
    var idx = DB(dbAddress).getUIntValue(keccak256(countKey));
                                         ^-----------------^
,/C/Dev/Vue/contracts/lib/utilities.sol:18:35: Warning: This function only accepts a single "bytes" argument. Please use "abi.encodePacked(...)" or a similar
function to encode the data.
    DB(dbAddress).setAddressValue(keccak256(key, idx), val);
                                  ^-----------------^
,/C/Dev/Vue/contracts/lib/utilities.sol:19:32: Warning: This function only accepts a single "bytes" argument. Please use "abi.encodePacked(...)" or a similar
function to encode the data.
    DB(dbAddress).setUIntValue(keccak256(key, val, "index"), idx);
                               ^--------------------------^
,/C/Dev/Vue/contracts/lib/utilities.sol:20:32: Warning: This function only accepts a single "bytes" argument. Please use "abi.encodePacked(...)" or a similar
function to encode the data.
    DB(dbAddress).setUIntValue(keccak256(countKey), idx + 1);
                               ^-----------------^
,/C/Dev/Vue/contracts/lib/utilities.sol:20:32: Warning: The provided argument of type string memory is not implicitly convertible to expected type bytes memory.
    DB(dbAddress).setUIntValue(keccak256(countKey), idx + 1);
                               ^-----------------^
,/C/Dev/Vue/contracts/lib/utilities.sol:24:42: Warning: This function only accepts a single "bytes" argument. Please use "abi.encodePacked(...)" or a similar
function to encode the data.
    var idx = DB(dbAddress).getUIntValue(keccak256(countKey));
                                         ^-----------------^
,/C/Dev/Vue/contracts/lib/utilities.sol:24:42: Warning: The provided argument of type string memory is not implicitly convertible to expected type bytes memory.
    var idx = DB(dbAddress).getUIntValue(keccak256(countKey));
                                         ^-----------------^
,/C/Dev/Vue/contracts/lib/utilities.sol:25:32: Warning: This function only accepts a single "bytes" argument. Please use "abi.encodePacked(...)" or a similar
function to encode the data.
    DB(dbAddress).setUIntValue(keccak256(key, idx), val);
                               ^-----------------^
,/C/Dev/Vue/contracts/lib/utilities.sol:26:32: Warning: This function only accepts a single "bytes" argument. Please use "abi.encodePacked(...)" or a similar
function to encode the data.
    DB(dbAddress).setUIntValue(keccak256(key, val, "index"), idx);
                               ^--------------------------^
,/C/Dev/Vue/contracts/lib/utilities.sol:27:32: Warning: This function only accepts a single "bytes" argument. Please use "abi.encodePacked(...)" or a similar
function to encode the data.
    DB(dbAddress).setUIntValue(keccak256(countKey), idx + 1);
                               ^-----------------^
,/C/Dev/Vue/contracts/lib/utilities.sol:27:32: Warning: The provided argument of type string memory is not implicitly convertible to expected type bytes memory.
    DB(dbAddress).setUIntValue(keccak256(countKey), idx + 1);
                               ^-----------------^
,/C/Dev/Vue/contracts/lib/userManager.sol:9:33: Warning: This function only accepts a single "bytes" argument. Please use "abi.encodePacked(...)" or a similar function to encode the data.
    DB(dbAddress).setUInt8Value(keccak256("user/status", userId), status);
                                ^------------------------------^
,/C/Dev/Vue/contracts/lib/userManager.sol:21:40: Warning: This function only accepts a single "bytes" argument. Please use "abi.encodePacked(...)" or a similar function to encode the data.
    return DB(dbAddress).getUInt8Value(keccak256("user/status", userId));
                                       ^------------------------------^
,/C/Dev/Vue/contracts/lib/userManager.sol:47:34: Warning: This function only accepts a single "bytes" argument. Please use "abi.encodePacked(...)" or a similar function to encode the data.
    DB(dbAddress).setStringValue(keccak256("user/first-name", userId), firstName);
                                 ^----------------------------------^
,/C/Dev/Vue/contracts/lib/userManager.sol:48:34: Warning: This function only accepts a single "bytes" argument. Please use "abi.encodePacked(...)" or a similar function to encode the data.
    DB(dbAddress).setStringValue(keccak256("user/last-name", userId), lastName);
                                 ^---------------------------------^
,/C/Dev/Vue/contracts/lib/userManager.sol:49:34: Warning: This function only accepts a single "bytes" argument. Please use "abi.encodePacked(...)" or a similar function to encode the data.
    DB(dbAddress).setStringValue(keccak256("user/email", userId), email);
                                 ^-----------------------------^
,/C/Dev/Vue/contracts/lib/userManager.sol:50:35: Warning: This function only accepts a single "bytes" argument. Please use "abi.encodePacked(...)" or a similar function to encode the data.
    DB(dbAddress).setBytes32Value(keccak256("user/gravatar", userId), gravatar);
                                  ^--------------------------------^
,/C/Dev/Vue/contracts/lib/userManager.sol:60:34: Warning: This function only accepts a single "bytes" argument. Please use "abi.encodePacked(...)" or a similar function to encode the data.
      DB(dbAddress).setUIntValue(keccak256("user/created-on", userId), now);
                                 ^----------------------------------^
,/C/Dev/Vue/contracts/lib/userManager.sol:61:35: Warning: This function only accepts a single "bytes" argument. Please use "abi.encodePacked(...)" or a similar function to encode the data.
      DB(dbAddress).setUInt8Value(keccak256("user/status", userId), 1);
                                  ^------------------------------^
,/C/Dev/Vue/contracts/UserAuthManager.sol:32:5: Warning: Invoking events without "emit" prefix is deprecated.
    SetUser(msg.sender, true);
    ^-----------------------^
Compilation failed. See above.
DOkwufulueze commented 6 years ago

Hi, @cryptowea

Thanks for raising this issue, and I promise we'll fix it as soon as possible. Having stated that, let's explain why your compilation failed and what you could do to make it work for now.

Your compilation failed because you're trying to compile eth-vue using a more recent Solidity environment. eth-vue currently runs on Solidity v0.4.18 which runs compilations smoothly, but if you try to compile in say v0.4.23, you'll get the constructor dep and other issues.

I have answered the constructor dep question here, let me do the same here.

For example, since Solidity v0.4.23, constructors are now specified using the constructor keyword:

    constructor () {}

Just to compare with the old ways, say we have a Smart Contract called Employee, in the past, you'd specify the contract with its constructor like this:

    contract Employee {
      // constructor
      function Employee() public {
        // ...
      }
    }

But the acceptable way to specify the Employee Smart Contract now is:

    contract Employee {
      // constructor
      constructor() public {
        // ...
      }
    }

Using the name of a contract as its constructor is now deprecated.

SOLUTION: We'll do an upgrade as soon as possible, and I'll inform you once that's done, but for now, you may have to run eth-vue in a v0.4.18 environment.

Thanks again.

DOkwufulueze commented 5 years ago

Hey, @UncleVultur,

eth-vue upgrades have begun and things seem good now. The new way of specifying a constructor is now being used and several other conformance requirements have now been met by eth-vue.

There's a conversation going on here about this. Here's one of my comments.

DOkwufulueze commented 3 years ago

Closing as this issue resolved.