Skip to content

Commit

Permalink
Updated dependencies and solidity version
Browse files Browse the repository at this point in the history
  • Loading branch information
vittominacori committed Aug 30, 2019
1 parent 1522d60 commit 6f38c84
Show file tree
Hide file tree
Showing 18 changed files with 46 additions and 41 deletions.
7 changes: 6 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@ root = true
[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

[*.sol]
indent_size = 4

[*.js]
indent_size = 2
2 changes: 1 addition & 1 deletion .solcover.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module.exports = {
testCommand: 'node --max-old-space-size=4096 ../node_modules/.bin/truffle test --network coverage',
compileCommand: 'node --max-old-space-size=4096 ../node_modules/.bin/truffle compile --network coverage',
copyPackages: [
'openzeppelin-solidity',
'@openzeppelin',
],
skipFiles: [
'mocks'
Expand Down
2 changes: 1 addition & 1 deletion .solhint.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
"bracket-align": "off",
"compiler-fixed": "off",
"mark-callable-contracts": "off",
"compiler-version": ["error", "^0.5.10"]
"compiler-version": ["error", "^0.5.11"]
}
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ npm install erc-payable-token
## Usage

```solidity
pragma solidity ^0.5.10;
pragma solidity ^0.5.11;
import "erc-payable-token/contracts/token/ERC1363/ERC1363.sol";
Expand Down
10 changes: 5 additions & 5 deletions contracts/examples/ERC1363PayableCrowdsale.sol
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
pragma solidity ^0.5.10;
pragma solidity ^0.5.11;

import "openzeppelin-solidity/contracts/math/SafeMath.sol";
import "openzeppelin-solidity/contracts/token/ERC20/IERC20.sol";
import "openzeppelin-solidity/contracts/token/ERC20/SafeERC20.sol";
import "openzeppelin-solidity/contracts/utils/ReentrancyGuard.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import "../payment/ERC1363Payable.sol";

/**
Expand Down
2 changes: 1 addition & 1 deletion contracts/mocks/ERC1363Mock.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity ^0.5.10;
pragma solidity ^0.5.11;

import "../token/ERC1363/ERC1363.sol";

Expand Down
4 changes: 2 additions & 2 deletions contracts/mocks/ERC1363PayableMock.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pragma solidity ^0.5.10;
pragma solidity ^0.5.11;

import "openzeppelin-solidity/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "../payment/ERC1363Payable.sol";

// mock class using ERC1363Payable
Expand Down
2 changes: 1 addition & 1 deletion contracts/mocks/ERC1363ReceiverMock.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity ^0.5.10;
pragma solidity ^0.5.11;

import "../token/ERC1363/IERC1363Receiver.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/mocks/ERC1363SpenderMock.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity ^0.5.10;
pragma solidity ^0.5.11;

import "../token/ERC1363/IERC1363Spender.sol";

Expand Down
4 changes: 2 additions & 2 deletions contracts/mocks/ERC20Mock.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pragma solidity ^0.5.10;
pragma solidity ^0.5.11;

import "openzeppelin-solidity/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";

/**
* @title ERC20Mock
Expand Down
4 changes: 2 additions & 2 deletions contracts/payment/ERC1363Payable.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pragma solidity ^0.5.10;
pragma solidity ^0.5.11;

import "openzeppelin-solidity/contracts/introspection/ERC165Checker.sol";
import "@openzeppelin/contracts/introspection/ERC165Checker.sol";

import "../token/ERC1363/IERC1363.sol";
import "../token/ERC1363/IERC1363Receiver.sol";
Expand Down
8 changes: 4 additions & 4 deletions contracts/token/ERC1363/ERC1363.sol
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
pragma solidity ^0.5.10;
pragma solidity ^0.5.11;

import "openzeppelin-solidity/contracts/utils/Address.sol";
import "openzeppelin-solidity/contracts/introspection/ERC165Checker.sol";
import "openzeppelin-solidity/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/introspection/ERC165Checker.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";

import "./IERC1363.sol";
import "./IERC1363Receiver.sol";
Expand Down
6 changes: 3 additions & 3 deletions contracts/token/ERC1363/IERC1363.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pragma solidity ^0.5.10;
pragma solidity ^0.5.11;

import "openzeppelin-solidity/contracts/token/ERC20/IERC20.sol";
import "openzeppelin-solidity/contracts/introspection/ERC165.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/introspection/ERC165.sol";

/**
* @title IERC1363 Interface
Expand Down
2 changes: 1 addition & 1 deletion contracts/token/ERC1363/IERC1363Receiver.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity ^0.5.10;
pragma solidity ^0.5.11;

/**
* @title IERC1363Receiver Interface
Expand Down
2 changes: 1 addition & 1 deletion contracts/token/ERC1363/IERC1363Spender.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma solidity ^0.5.10;
pragma solidity ^0.5.11;

/**
* @title IERC1363Spender Interface
Expand Down
2 changes: 1 addition & 1 deletion ethpm.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"package_name": "erc-payable-token",
"version": "2.3.2",
"version": "2.3.3",
"description": "ERC-1363 Payable Token Implementation",
"authors": [
"Vittorio Minacori (https://github.com/vittominacori)"
Expand Down
24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "erc-payable-token",
"version": "2.3.2",
"version": "2.3.3",
"description": "ERC-1363 Payable Token Implementation",
"files": [
"contracts",
Expand Down Expand Up @@ -40,27 +40,27 @@
},
"homepage": "https://github.com/vittominacori/erc1363-payable-token",
"dependencies": {
"openzeppelin-solidity": "2.3.0"
"@openzeppelin/contracts": "2.3.0"
},
"devDependencies": {
"chai": "^4.2.0",
"coveralls": "^3.0.4",
"eslint": "^6.0.1",
"eslint-config-standard": "^12.0.0",
"eslint-plugin-import": "^2.18.0",
"coveralls": "^3.0.6",
"eslint": "^6.2.2",
"eslint-config-standard": "^14.1.0",
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-mocha-no-only": "^1.1.0",
"eslint-plugin-node": "^9.1.0",
"eslint-plugin-node": "^9.2.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.0",
"eslint-plugin-standard": "^4.0.1",
"ethereumjs-util": "^6.1.0",
"ethjs-abi": "^0.2.1",
"ganache-cli": "^6.4.4",
"ganache-cli": "^6.6.0",
"ganache-cli-coverage": "https://github.com/frangio/ganache-cli/releases/download/v6.4.1-coverage/ganache-cli-coverage-6.4.1.tgz",
"openzeppelin-test-helpers": "^0.4.0",
"openzeppelin-test-helpers": "^0.4.3",
"pify": "^4.0.1",
"solhint": "^2.1.0",
"solhint": "^2.2.0",
"solidity-coverage": "github:rotcivegaf/solidity-coverage#5875f5b7bc74d447f3312c9c0e9fc7814b482477",
"truffle": "^5.0.25",
"truffle": "^5.0.34",
"vuepress": "^0.14.11"
}
}
2 changes: 1 addition & 1 deletion truffle-config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require('chai/register-should');

const solcStable = {
version: '0.5.10',
version: '0.5.11',
settings: {
optimizer: {
enabled: true,
Expand Down

0 comments on commit 6f38c84

Please sign in to comment.