Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update libraries #40

Merged
merged 16 commits into from
Oct 13, 2022
Merged
Show file tree
Hide file tree
Changes from 15 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
env:
browser: true
commonjs: true
es2021: true
extends: standard
overrides: []
parserOptions:
ecmaVersion: latest
rules: {}
3 changes: 3 additions & 0 deletions .soliumignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
contracts/Migrations.sol
openzeppelin-contracts-upgradeable
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,13 @@ in a platform-agnostic way, and coveging legal aspects.
Tests are written in JavaScript (Node.js package) and run with Truffle through the command `truffle test`.
The test suite could be correctly built and run with the following versions:

* Node.js 10.13.0
* npm 6.4.1
* Truffle 5.3.8
* npm 8.19.2
* Truffle v5.5.31 (core: 5.5.31)
* Ganache v7.4.3
* Solidity - 0.8.4 (solc-js)
* Node v16.17.0
* Web3.js v1.7.4


Truffle has to be installed globally or used with the `npx` command.
Everything else needed is installed through `npm install` with the right
Expand Down
2 changes: 1 addition & 1 deletion contracts/CMTAT.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//SPDX-License-Identifier: MPL-2.0

pragma solidity ^0.8.2;
pragma solidity ^0.8.17;

// required OZ imports here
import "../openzeppelin-contracts-upgradeable/contracts/proxy/utils/Initializable.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IRule.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//SPDX-License-Identifier: MPL-2.0

pragma solidity ^0.8.2;
pragma solidity ^0.8.17;

interface IRule {
function isTransferValid(
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IRuleEngine.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//SPDX-License-Identifier: MPL-2.0

pragma solidity ^0.8.2;
pragma solidity ^0.8.17;

import "./IRule.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/mocks/MinimalForwarderMock.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//SPDX-License-Identifier: MPL-2.0

pragma solidity ^0.8.2;
pragma solidity ^0.8.17;

import "../../openzeppelin-contracts-upgradeable/contracts/metatx/MinimalForwarderUpgradeable.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/mocks/RuleEngineMock.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//SPDX-License-Identifier: MPL-2.0

pragma solidity ^0.8.2;
pragma solidity ^0.8.17;

import "../interfaces/IRule.sol";
import "../interfaces/IRuleEngine.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/mocks/RuleMock.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//SPDX-License-Identifier: MPL-2.0

pragma solidity ^0.8.2;
pragma solidity ^0.8.17;

import "../interfaces/IRule.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/modules/AuthorizationModule.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//SPDX-License-Identifier: MPL-2.0

pragma solidity ^0.8.2;
pragma solidity ^0.8.17;

import "../../openzeppelin-contracts-upgradeable/contracts/access/AccessControlUpgradeable.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/modules/BaseModule.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//SPDX-License-Identifier: MPL-2.0

pragma solidity ^0.8.2;
pragma solidity ^0.8.17;

// required OZ imports here
import "../../openzeppelin-contracts-upgradeable/contracts/proxy/utils/Initializable.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/modules/BurnModule.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//SPDX-License-Identifier: MPL-2.0

pragma solidity ^0.8.2;
pragma solidity ^0.8.17;

import "../../openzeppelin-contracts-upgradeable/contracts/proxy/utils/Initializable.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/modules/EnforcementModule.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//SPDX-License-Identifier: MPL-2.0

pragma solidity ^0.8.2;
pragma solidity ^0.8.17;

import "../../openzeppelin-contracts-upgradeable/contracts/utils/ContextUpgradeable.sol";
import "../../openzeppelin-contracts-upgradeable/contracts/proxy/utils/Initializable.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/modules/MetaTxModule.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//SPDX-License-Identifier: MPL-2.0

pragma solidity ^0.8.2;
pragma solidity ^0.8.17;

import "../../openzeppelin-contracts-upgradeable/contracts/metatx/ERC2771ContextUpgradeable.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/modules/MintModule.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//SPDX-License-Identifier: MPL-2.0

pragma solidity ^0.8.2;
pragma solidity ^0.8.17;

abstract contract MintModule {
bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
Expand Down
2 changes: 1 addition & 1 deletion contracts/modules/PauseModule.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//SPDX-License-Identifier: MPL-2.0

pragma solidity ^0.8.2;
pragma solidity ^0.8.17;

import "../../openzeppelin-contracts-upgradeable/contracts/security/PausableUpgradeable.sol";
import "../../openzeppelin-contracts-upgradeable/contracts/proxy/utils/Initializable.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/modules/SnapshotModule.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//SPDX-License-Identifier: MPL-2.0

pragma solidity ^0.8.2;
pragma solidity ^0.8.17;

import "../../openzeppelin-contracts-upgradeable/contracts/utils/ContextUpgradeable.sol";
import "../../openzeppelin-contracts-upgradeable/contracts/proxy/utils/Initializable.sol";
Expand Down
4 changes: 3 additions & 1 deletion contracts/modules/ValidationModule.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
pragma solidity ^0.8.2;
//SPDX-License-Identifier: MPL-2.0

pragma solidity ^0.8.17;

import "../../openzeppelin-contracts-upgradeable/contracts/utils/ContextUpgradeable.sol";
import "../../openzeppelin-contracts-upgradeable/contracts/proxy/utils/Initializable.sol";
Expand Down
Loading