diff --git a/submodules/zenode-helpers/CHANGELOG.md b/submodules/zenode-helpers/CHANGELOG.md deleted file mode 100644 index fe26e81..0000000 --- a/submodules/zenode-helpers/CHANGELOG.md +++ /dev/null @@ -1,5 +0,0 @@ -## A HELPING HAND - -#### 1.0.0 (2022-10-19) - -- Extracted shared libraries, contracts and helper functions from the pairwise-alignments repository. diff --git a/submodules/zenode-helpers/LICENSE.md b/submodules/zenode-helpers/LICENSE.md deleted file mode 100644 index ac81eee..0000000 --- a/submodules/zenode-helpers/LICENSE.md +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2022 ZENODE - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/submodules/zenode-helpers/README.md b/submodules/zenode-helpers/README.md deleted file mode 100644 index 830d068..0000000 --- a/submodules/zenode-helpers/README.md +++ /dev/null @@ -1,8 +0,0 @@ -# Zenode Helpers - -This has been built by ZENODE and is licensed under the MIT-license (see [LICENSE.md](./LICENSE.md)). - -
-
- -— ZEN - https://twitter.com/KeymasterZen diff --git a/submodules/zenode-helpers/contracts/base/Owner.sol b/submodules/zenode-helpers/contracts/base/Owner.sol deleted file mode 100644 index 75a73a1..0000000 --- a/submodules/zenode-helpers/contracts/base/Owner.sol +++ /dev/null @@ -1,72 +0,0 @@ -// SPDX-License-Identifier: MIT -// Created by ZENODE (zenodeapp - https://github.com/zenodeapp/) - -/********************************************************************************** -* MIT License * -* Copyright (c) 2022 ZENODE * -* * -* Permission is hereby granted, free of charge, to any person obtaining a copy * -* of this software and associated documentation files (the "Software"), to deal * -* in the Software without restriction, including without limitation the rights * -* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * -* copies of the Software, and to permit persons to whom the Software is * -* furnished to do so, subject to the following conditions: * -* * -* The above copyright notice and this permission notice shall be included in all * -* copies or substantial portions of the Software. * -* * -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * -* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * -* SOFTWARE. * -**********************************************************************************/ - -pragma solidity ^0.8.17; - -contract Owner { - address owner; - mapping(address => bool) admins; - - constructor() { - owner = msg.sender; - } - - modifier onlyOwner { - require(_isOwner(msg.sender), "Only the owner is allowed to do this."); - _; - } - - modifier onlyAdmin { - require(_isOwner(msg.sender) || _isAdmin(msg.sender), - "Only the owner or admins are allowed to do this."); - _; - } - - modifier onlyBy(address _address) { - require(msg.sender == _address, "Sender not authorized."); - _; - } - - function _isOwner(address _address) public view returns(bool) { - return _address == owner; - } - - function _isAdmin(address _address) public view returns(bool) { - return admins[_address]; - } - - function _changeOwner(address _newOwner) public onlyOwner { - owner = _newOwner; - } - - function _addAdmin(address _address) public onlyOwner { - admins[_address] = true; - } - - function _removeAdmin(address _address) public onlyOwner { - admins[_address] = false; - } -} \ No newline at end of file diff --git a/submodules/zenode-helpers/helpers/web3.js b/submodules/zenode-helpers/helpers/web3.js deleted file mode 100644 index 945c2a3..0000000 --- a/submodules/zenode-helpers/helpers/web3.js +++ /dev/null @@ -1,18 +0,0 @@ -//Created by Tousuke (zenodeapp - https://github.com/zenodeapp/). - -const getContract = async (hre, name, address) => { - const contract = await hre.ethers.getContractAt(name, address); - - return contract; -}; - -const getFactory = async (hre, name, config) => { - const Factory = await hre.ethers.getContractFactory(name, config); - - return Factory; -}; - -module.exports = { - getContract, - getFactory, -}; diff --git a/submodules/zenode-helpers/libraries/SubstitutionMatricesStructs.sol b/submodules/zenode-helpers/libraries/SubstitutionMatricesStructs.sol deleted file mode 100644 index c632a39..0000000 --- a/submodules/zenode-helpers/libraries/SubstitutionMatricesStructs.sol +++ /dev/null @@ -1,43 +0,0 @@ -// SPDX-License-Identifier: MIT -// Created by ZENODE (zenodeapp - https://github.com/zenodeapp/) - -/********************************************************************************** -* MIT License * -* Copyright (c) 2022 ZENODE * -* * -* Permission is hereby granted, free of charge, to any person obtaining a copy * -* of this software and associated documentation files (the "Software"), to deal * -* in the Software without restriction, including without limitation the rights * -* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * -* copies of the Software, and to permit persons to whom the Software is * -* furnished to do so, subject to the following conditions: * -* * -* The above copyright notice and this permission notice shall be included in all * -* copies or substantial portions of the Software. * -* * -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * -* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * -* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * -* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * -* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * -* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * -* SOFTWARE. * -**********************************************************************************/ - -pragma solidity ^0.8.17; - -library SubstitutionMatricesStructs { - struct Matrix { - string id; - int[][] grid; - string alphabetId; - uint index; - } - - struct Alphabet { - string id; - bytes1[] array; - uint usage; - uint index; - } -} \ No newline at end of file diff --git a/submodules/zenode-helpers/package.json b/submodules/zenode-helpers/package.json deleted file mode 100644 index 2c33cf9..0000000 --- a/submodules/zenode-helpers/package.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "name": "zenode-helpers", - "version": "1.0.0", - "main": "index.js", - "repository": "https://github.com/zenodeapp/zenode-helpers.git", - "author": "zenodeapp", - "license": "MIT" -}