diff --git a/contracts/SimpleSwapFactory.sol b/contracts/SimpleSwapFactory.sol index 298ba7f..aa8b107 100755 --- a/contracts/SimpleSwapFactory.sol +++ b/contracts/SimpleSwapFactory.sol @@ -10,37 +10,77 @@ import "@openzeppelin/contracts/proxy/Clones.sol"; @notice This contract deploys SimpleSwap contracts */ contract SimpleSwapFactory { + /* event fired on every new SimpleSwap deployment */ + event SimpleSwapDeployed(address contractAddress); - /* event fired on every new SimpleSwap deployment */ - event SimpleSwapDeployed(address contractAddress); + /* mapping to keep track of which contracts were deployed by this factory */ + mapping(address => bool) public deployedContracts; - /* mapping to keep track of which contracts were deployed by this factory */ - mapping (address => bool) public deployedContracts; + /* mapping to keep track of migrations, pair is issuer => newContractAddress */ + mapping(address => address) public migratedContracts; - /* address of the ERC20-token, to be used by the to-be-deployed chequebooks */ - address public ERC20Address; - /* address of the code contract from which all chequebooks are cloned */ - address public master; + /* address of the ERC20-token, to be used by the to-be-deployed chequebooks */ + address public ERC20Address; + /* address of the code contract from which all chequebooks are cloned */ + address public master; - constructor(address _ERC20Address) { - ERC20Address = _ERC20Address; - ERC20SimpleSwap _master = new ERC20SimpleSwap(); - // set the issuer of the master contract to prevent misuse - _master.init(address(1), address(0), 0); - master = address(_master); - } - /** + constructor(address _ERC20Address) { + ERC20Address = _ERC20Address; + ERC20SimpleSwap _master = new ERC20SimpleSwap(); + // set the issuer of the master contract to prevent misuse + _master.init(address(1), address(0), 0); + master = address(_master); + } + + /** @notice creates a clone of the master SimpleSwap contract @param issuer the issuer of cheques for the new chequebook @param defaultHardDepositTimeoutDuration duration in seconds which by default will be used to reduce hardDeposit allocations @param salt salt to include in create2 to enable the same address to deploy multiple chequebooks */ - function deploySimpleSwap(address issuer, uint defaultHardDepositTimeoutDuration, bytes32 salt) - public returns (address) { - address contractAddress = Clones.cloneDeterministic(master, keccak256(abi.encode(msg.sender, salt))); - ERC20SimpleSwap(contractAddress).init(issuer, ERC20Address, defaultHardDepositTimeoutDuration); - deployedContracts[contractAddress] = true; - emit SimpleSwapDeployed(contractAddress); - return contractAddress; - } -} \ No newline at end of file + function deploySimpleSwap( + address issuer, + uint defaultHardDepositTimeoutDuration, + bytes32 salt + ) public returns (address) { + address contractAddress = Clones.cloneDeterministic( + master, + keccak256(abi.encode(msg.sender, salt)) + ); + ERC20SimpleSwap(contractAddress).init( + issuer, + ERC20Address, + defaultHardDepositTimeoutDuration + ); + deployedContracts[contractAddress] = true; + migratedContracts[issuer] = contractAddress; + emit SimpleSwapDeployed(contractAddress); + return contractAddress; + } + + /** + @notice migrates a clone of a master SimpleSwap contract + @param issuer the issuer of cheques for the new chequebook + @param defaultHardDepositTimeoutDuration duration in seconds which by default will be used to reduce hardDeposit allocations + @param salt salt to include in create2 to enable the same address to deploy multiple chequebooks + */ + function migrateSimpleSwap( + address issuer, + uint defaultHardDepositTimeoutDuration, + bytes32 salt, + address _master + ) public returns (address) { + address newContractAddress = Clones.cloneDeterministic( + _master, + keccak256(abi.encode(issuer, salt)) + ); + ERC20SimpleSwap(newContractAddress).init( + issuer, + ERC20Address, + defaultHardDepositTimeoutDuration + ); + deployedContracts[newContractAddress] = true; + emit SimpleSwapDeployed(newContractAddress); + return newContractAddress; + } +} diff --git a/deployments/testnet/SimpleSwapFactory.json b/deployments/testnet/SimpleSwapFactory.json index 219567f..1e824cc 100755 --- a/deployments/testnet/SimpleSwapFactory.json +++ b/deployments/testnet/SimpleSwapFactory.json @@ -1,5 +1,5 @@ { - "address": "0x0fF044F6bB4F684a5A149B46D7eC03ea659F98A1", + "address": "0x491075e789DBdbb7d08D95946E665eFB2751eE1E", "abi": [ { "inputs": [ @@ -98,32 +98,66 @@ ], "stateMutability": "view", "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "issuer", + "type": "address" + }, + { + "internalType": "uint256", + "name": "defaultHardDepositTimeoutDuration", + "type": "uint256" + }, + { + "internalType": "bytes32", + "name": "salt", + "type": "bytes32" + }, + { + "internalType": "address", + "name": "_master", + "type": "address" + } + ], + "name": "migrateSimpleSwap", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "nonpayable", + "type": "function" } ], - "transactionHash": "0xecdf92fa02e7274c0957b1196ca815f559dddaeb03a4947dddcc8b093c018545", + "transactionHash": "0x76c1628653f20a9e6a8a5482dadc6f1c7f96c69297a30db86dd8bc482d8bff13", "receipt": { "to": null, "from": "0xb1C7F17Ed88189Abf269Bf68A3B2Ed83C5276aAe", - "contractAddress": "0x0fF044F6bB4F684a5A149B46D7eC03ea659F98A1", + "contractAddress": "0x491075e789DBdbb7d08D95946E665eFB2751eE1E", "transactionIndex": 31, - "gasUsed": "1734222", + "gasUsed": "1805615", "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", - "blockHash": "0x66be8c4225abf06f33cd17953bab32a0ba1647588b41644754c63bc1dd160715", - "transactionHash": "0xecdf92fa02e7274c0957b1196ca815f559dddaeb03a4947dddcc8b093c018545", + "blockHash": "0xeab0a52f4a9125ed7c2507627f1248d2c3be65834b73303a295f469ec107d9e2", + "transactionHash": "0x76c1628653f20a9e6a8a5482dadc6f1c7f96c69297a30db86dd8bc482d8bff13", "logs": [], - "blockNumber": 4752810, - "cumulativeGasUsed": "5077529", + "blockNumber": 4873014, + "cumulativeGasUsed": "5237032", "status": 1, "byzantium": true }, "args": [ "0x543ddb01ba47acb11de34891cd86b675f04840db" ], - "numDeployments": 3, - "solcInputHash": "126591187300f42d56a4b4d666be9f01", - "metadata": "{\"compiler\":{\"version\":\"0.7.6+commit.7338295f\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_ERC20Address\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"contractAddress\",\"type\":\"address\"}],\"name\":\"SimpleSwapDeployed\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"ERC20Address\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"issuer\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"defaultHardDepositTimeoutDuration\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"salt\",\"type\":\"bytes32\"}],\"name\":\"deploySimpleSwap\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"deployedContracts\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"master\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"author\":\"The Swarm Authors\",\"kind\":\"dev\",\"methods\":{\"deploySimpleSwap(address,uint256,bytes32)\":{\"params\":{\"defaultHardDepositTimeoutDuration\":\"duration in seconds which by default will be used to reduce hardDeposit allocations\",\"issuer\":\"the issuer of cheques for the new chequebook\",\"salt\":\"salt to include in create2 to enable the same address to deploy multiple chequebooks\"}}},\"title\":\"Factory contract for SimpleSwap\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"deploySimpleSwap(address,uint256,bytes32)\":{\"notice\":\"creates a clone of the master SimpleSwap contract\"}},\"notice\":\"This contract deploys SimpleSwap contracts\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/SimpleSwapFactory.sol\":\"SimpleSwapFactory\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts/access/AccessControl.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity >=0.6.0 <0.8.0;\\n\\nimport \\\"../utils/EnumerableSet.sol\\\";\\nimport \\\"../utils/Address.sol\\\";\\nimport \\\"../utils/Context.sol\\\";\\n\\n/**\\n * @dev Contract module that allows children to implement role-based access\\n * control mechanisms.\\n *\\n * Roles are referred to by their `bytes32` identifier. These should be exposed\\n * in the external API and be unique. The best way to achieve this is by\\n * using `public constant` hash digests:\\n *\\n * ```\\n * bytes32 public constant MY_ROLE = keccak256(\\\"MY_ROLE\\\");\\n * ```\\n *\\n * Roles can be used to represent a set of permissions. To restrict access to a\\n * function call, use {hasRole}:\\n *\\n * ```\\n * function foo() public {\\n * require(hasRole(MY_ROLE, msg.sender));\\n * ...\\n * }\\n * ```\\n *\\n * Roles can be granted and revoked dynamically via the {grantRole} and\\n * {revokeRole} functions. Each role has an associated admin role, and only\\n * accounts that have a role's admin role can call {grantRole} and {revokeRole}.\\n *\\n * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means\\n * that only accounts with this role will be able to grant or revoke other\\n * roles. More complex role relationships can be created by using\\n * {_setRoleAdmin}.\\n *\\n * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to\\n * grant and revoke this role. Extra precautions should be taken to secure\\n * accounts that have been granted it.\\n */\\nabstract contract AccessControl is Context {\\n using EnumerableSet for EnumerableSet.AddressSet;\\n using Address for address;\\n\\n struct RoleData {\\n EnumerableSet.AddressSet members;\\n bytes32 adminRole;\\n }\\n\\n mapping (bytes32 => RoleData) private _roles;\\n\\n bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;\\n\\n /**\\n * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`\\n *\\n * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite\\n * {RoleAdminChanged} not being emitted signaling this.\\n *\\n * _Available since v3.1._\\n */\\n event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);\\n\\n /**\\n * @dev Emitted when `account` is granted `role`.\\n *\\n * `sender` is the account that originated the contract call, an admin role\\n * bearer except when using {_setupRole}.\\n */\\n event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Emitted when `account` is revoked `role`.\\n *\\n * `sender` is the account that originated the contract call:\\n * - if using `revokeRole`, it is the admin role bearer\\n * - if using `renounceRole`, it is the role bearer (i.e. `account`)\\n */\\n event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Returns `true` if `account` has been granted `role`.\\n */\\n function hasRole(bytes32 role, address account) public view returns (bool) {\\n return _roles[role].members.contains(account);\\n }\\n\\n /**\\n * @dev Returns the number of accounts that have `role`. Can be used\\n * together with {getRoleMember} to enumerate all bearers of a role.\\n */\\n function getRoleMemberCount(bytes32 role) public view returns (uint256) {\\n return _roles[role].members.length();\\n }\\n\\n /**\\n * @dev Returns one of the accounts that have `role`. `index` must be a\\n * value between 0 and {getRoleMemberCount}, non-inclusive.\\n *\\n * Role bearers are not sorted in any particular way, and their ordering may\\n * change at any point.\\n *\\n * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure\\n * you perform all queries on the same block. See the following\\n * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]\\n * for more information.\\n */\\n function getRoleMember(bytes32 role, uint256 index) public view returns (address) {\\n return _roles[role].members.at(index);\\n }\\n\\n /**\\n * @dev Returns the admin role that controls `role`. See {grantRole} and\\n * {revokeRole}.\\n *\\n * To change a role's admin, use {_setRoleAdmin}.\\n */\\n function getRoleAdmin(bytes32 role) public view returns (bytes32) {\\n return _roles[role].adminRole;\\n }\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function grantRole(bytes32 role, address account) public virtual {\\n require(hasRole(_roles[role].adminRole, _msgSender()), \\\"AccessControl: sender must be an admin to grant\\\");\\n\\n _grantRole(role, account);\\n }\\n\\n /**\\n * @dev Revokes `role` from `account`.\\n *\\n * If `account` had been granted `role`, emits a {RoleRevoked} event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function revokeRole(bytes32 role, address account) public virtual {\\n require(hasRole(_roles[role].adminRole, _msgSender()), \\\"AccessControl: sender must be an admin to revoke\\\");\\n\\n _revokeRole(role, account);\\n }\\n\\n /**\\n * @dev Revokes `role` from the calling account.\\n *\\n * Roles are often managed via {grantRole} and {revokeRole}: this function's\\n * purpose is to provide a mechanism for accounts to lose their privileges\\n * if they are compromised (such as when a trusted device is misplaced).\\n *\\n * If the calling account had been granted `role`, emits a {RoleRevoked}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must be `account`.\\n */\\n function renounceRole(bytes32 role, address account) public virtual {\\n require(account == _msgSender(), \\\"AccessControl: can only renounce roles for self\\\");\\n\\n _revokeRole(role, account);\\n }\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\n * event. Note that unlike {grantRole}, this function doesn't perform any\\n * checks on the calling account.\\n *\\n * [WARNING]\\n * ====\\n * This function should only be called from the constructor when setting\\n * up the initial roles for the system.\\n *\\n * Using this function in any other way is effectively circumventing the admin\\n * system imposed by {AccessControl}.\\n * ====\\n */\\n function _setupRole(bytes32 role, address account) internal virtual {\\n _grantRole(role, account);\\n }\\n\\n /**\\n * @dev Sets `adminRole` as ``role``'s admin role.\\n *\\n * Emits a {RoleAdminChanged} event.\\n */\\n function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {\\n emit RoleAdminChanged(role, _roles[role].adminRole, adminRole);\\n _roles[role].adminRole = adminRole;\\n }\\n\\n function _grantRole(bytes32 role, address account) private {\\n if (_roles[role].members.add(account)) {\\n emit RoleGranted(role, account, _msgSender());\\n }\\n }\\n\\n function _revokeRole(bytes32 role, address account) private {\\n if (_roles[role].members.remove(account)) {\\n emit RoleRevoked(role, account, _msgSender());\\n }\\n }\\n}\\n\",\"keccak256\":\"0x4fc155a2f7837603d69a13cfa481eb5e7f5e02cb77e2ec9edbac30986db37988\",\"license\":\"MIT\"},\"@openzeppelin/contracts/cryptography/ECDSA.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity >=0.6.0 <0.8.0;\\n\\n/**\\n * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.\\n *\\n * These functions can be used to verify that a message was signed by the holder\\n * of the private keys of a given address.\\n */\\nlibrary ECDSA {\\n /**\\n * @dev Returns the address that signed a hashed message (`hash`) with\\n * `signature`. This address can then be used for verification purposes.\\n *\\n * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:\\n * this function rejects them by requiring the `s` value to be in the lower\\n * half order, and the `v` value to be either 27 or 28.\\n *\\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\\n * verification to be secure: it is possible to craft signatures that\\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\\n * this is by receiving a hash of the original message (which may otherwise\\n * be too long), and then calling {toEthSignedMessageHash} on it.\\n */\\n function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {\\n // Check the signature length\\n if (signature.length != 65) {\\n revert(\\\"ECDSA: invalid signature length\\\");\\n }\\n\\n // Divide the signature in r, s and v variables\\n bytes32 r;\\n bytes32 s;\\n uint8 v;\\n\\n // ecrecover takes the signature parameters, and the only way to get them\\n // currently is to use assembly.\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n r := mload(add(signature, 0x20))\\n s := mload(add(signature, 0x40))\\n v := byte(0, mload(add(signature, 0x60)))\\n }\\n\\n return recover(hash, v, r, s);\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-recover-bytes32-bytes-} that receives the `v`,\\n * `r` and `s` signature fields separately.\\n */\\n function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) {\\n // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature\\n // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines\\n // the valid range for s in (281): 0 < s < secp256k1n \\u00f7 2 + 1, and for v in (282): v \\u2208 {27, 28}. Most\\n // signatures from current libraries generate a unique signature with an s-value in the lower half order.\\n //\\n // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value\\n // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or\\n // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept\\n // these malleable signatures as well.\\n require(uint256(s) <= 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0, \\\"ECDSA: invalid signature 's' value\\\");\\n require(v == 27 || v == 28, \\\"ECDSA: invalid signature 'v' value\\\");\\n\\n // If the signature is valid (and not malleable), return the signer address\\n address signer = ecrecover(hash, v, r, s);\\n require(signer != address(0), \\\"ECDSA: invalid signature\\\");\\n\\n return signer;\\n }\\n\\n /**\\n * @dev Returns an Ethereum Signed Message, created from a `hash`. This\\n * replicates the behavior of the\\n * https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_sign[`eth_sign`]\\n * JSON-RPC method.\\n *\\n * See {recover}.\\n */\\n function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {\\n // 32 is the length in bytes of hash,\\n // enforced by the type signature above\\n return keccak256(abi.encodePacked(\\\"\\\\x19Ethereum Signed Message:\\\\n32\\\", hash));\\n }\\n}\\n\",\"keccak256\":\"0x94c4719c16ffb96dd3cdc68f6fbf78105153018adbf382241821e8188e6a4bd5\",\"license\":\"MIT\"},\"@openzeppelin/contracts/math/Math.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity >=0.6.0 <0.8.0;\\n\\n/**\\n * @dev Standard math utilities missing in the Solidity language.\\n */\\nlibrary Math {\\n /**\\n * @dev Returns the largest of two numbers.\\n */\\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a >= b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the smallest of two numbers.\\n */\\n function min(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a < b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the average of two numbers. The result is rounded towards\\n * zero.\\n */\\n function average(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b) / 2 can overflow, so we distribute\\n return (a / 2) + (b / 2) + ((a % 2 + b % 2) / 2);\\n }\\n}\\n\",\"keccak256\":\"0x363bd3b45201f07c9b71c2edc96533468cf14a3d029fabd82fddceb1eb3ebd9c\",\"license\":\"MIT\"},\"@openzeppelin/contracts/math/SafeMath.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity >=0.6.0 <0.8.0;\\n\\n/**\\n * @dev Wrappers over Solidity's arithmetic operations with added overflow\\n * checks.\\n *\\n * Arithmetic operations in Solidity wrap on overflow. This can easily result\\n * in bugs, because programmers usually assume that an overflow raises an\\n * error, which is the standard behavior in high level programming languages.\\n * `SafeMath` restores this intuition by reverting the transaction when an\\n * operation overflows.\\n *\\n * Using this library instead of the unchecked operations eliminates an entire\\n * class of bugs, so it's recommended to use it always.\\n */\\nlibrary SafeMath {\\n /**\\n * @dev Returns the addition of two unsigned integers, with an overflow flag.\\n *\\n * _Available since v3.4._\\n */\\n function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n uint256 c = a + b;\\n if (c < a) return (false, 0);\\n return (true, c);\\n }\\n\\n /**\\n * @dev Returns the substraction of two unsigned integers, with an overflow flag.\\n *\\n * _Available since v3.4._\\n */\\n function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n if (b > a) return (false, 0);\\n return (true, a - b);\\n }\\n\\n /**\\n * @dev Returns the multiplication of two unsigned integers, with an overflow flag.\\n *\\n * _Available since v3.4._\\n */\\n function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n // Gas optimization: this is cheaper than requiring 'a' not being zero, but the\\n // benefit is lost if 'b' is also tested.\\n // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522\\n if (a == 0) return (true, 0);\\n uint256 c = a * b;\\n if (c / a != b) return (false, 0);\\n return (true, c);\\n }\\n\\n /**\\n * @dev Returns the division of two unsigned integers, with a division by zero flag.\\n *\\n * _Available since v3.4._\\n */\\n function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n if (b == 0) return (false, 0);\\n return (true, a / b);\\n }\\n\\n /**\\n * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.\\n *\\n * _Available since v3.4._\\n */\\n function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n if (b == 0) return (false, 0);\\n return (true, a % b);\\n }\\n\\n /**\\n * @dev Returns the addition of two unsigned integers, reverting on\\n * overflow.\\n *\\n * Counterpart to Solidity's `+` operator.\\n *\\n * Requirements:\\n *\\n * - Addition cannot overflow.\\n */\\n function add(uint256 a, uint256 b) internal pure returns (uint256) {\\n uint256 c = a + b;\\n require(c >= a, \\\"SafeMath: addition overflow\\\");\\n return c;\\n }\\n\\n /**\\n * @dev Returns the subtraction of two unsigned integers, reverting on\\n * overflow (when the result is negative).\\n *\\n * Counterpart to Solidity's `-` operator.\\n *\\n * Requirements:\\n *\\n * - Subtraction cannot overflow.\\n */\\n function sub(uint256 a, uint256 b) internal pure returns (uint256) {\\n require(b <= a, \\\"SafeMath: subtraction overflow\\\");\\n return a - b;\\n }\\n\\n /**\\n * @dev Returns the multiplication of two unsigned integers, reverting on\\n * overflow.\\n *\\n * Counterpart to Solidity's `*` operator.\\n *\\n * Requirements:\\n *\\n * - Multiplication cannot overflow.\\n */\\n function mul(uint256 a, uint256 b) internal pure returns (uint256) {\\n if (a == 0) return 0;\\n uint256 c = a * b;\\n require(c / a == b, \\\"SafeMath: multiplication overflow\\\");\\n return c;\\n }\\n\\n /**\\n * @dev Returns the integer division of two unsigned integers, reverting on\\n * division by zero. The result is rounded towards zero.\\n *\\n * Counterpart to Solidity's `/` operator. Note: this function uses a\\n * `revert` opcode (which leaves remaining gas untouched) while Solidity\\n * uses an invalid opcode to revert (consuming all remaining gas).\\n *\\n * Requirements:\\n *\\n * - The divisor cannot be zero.\\n */\\n function div(uint256 a, uint256 b) internal pure returns (uint256) {\\n require(b > 0, \\\"SafeMath: division by zero\\\");\\n return a / b;\\n }\\n\\n /**\\n * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),\\n * reverting when dividing by zero.\\n *\\n * Counterpart to Solidity's `%` operator. This function uses a `revert`\\n * opcode (which leaves remaining gas untouched) while Solidity uses an\\n * invalid opcode to revert (consuming all remaining gas).\\n *\\n * Requirements:\\n *\\n * - The divisor cannot be zero.\\n */\\n function mod(uint256 a, uint256 b) internal pure returns (uint256) {\\n require(b > 0, \\\"SafeMath: modulo by zero\\\");\\n return a % b;\\n }\\n\\n /**\\n * @dev Returns the subtraction of two unsigned integers, reverting with custom message on\\n * overflow (when the result is negative).\\n *\\n * CAUTION: This function is deprecated because it requires allocating memory for the error\\n * message unnecessarily. For custom revert reasons use {trySub}.\\n *\\n * Counterpart to Solidity's `-` operator.\\n *\\n * Requirements:\\n *\\n * - Subtraction cannot overflow.\\n */\\n function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {\\n require(b <= a, errorMessage);\\n return a - b;\\n }\\n\\n /**\\n * @dev Returns the integer division of two unsigned integers, reverting with custom message on\\n * division by zero. The result is rounded towards zero.\\n *\\n * CAUTION: This function is deprecated because it requires allocating memory for the error\\n * message unnecessarily. For custom revert reasons use {tryDiv}.\\n *\\n * Counterpart to Solidity's `/` operator. Note: this function uses a\\n * `revert` opcode (which leaves remaining gas untouched) while Solidity\\n * uses an invalid opcode to revert (consuming all remaining gas).\\n *\\n * Requirements:\\n *\\n * - The divisor cannot be zero.\\n */\\n function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {\\n require(b > 0, errorMessage);\\n return a / b;\\n }\\n\\n /**\\n * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),\\n * reverting with custom message when dividing by zero.\\n *\\n * CAUTION: This function is deprecated because it requires allocating memory for the error\\n * message unnecessarily. For custom revert reasons use {tryMod}.\\n *\\n * Counterpart to Solidity's `%` operator. This function uses a `revert`\\n * opcode (which leaves remaining gas untouched) while Solidity uses an\\n * invalid opcode to revert (consuming all remaining gas).\\n *\\n * Requirements:\\n *\\n * - The divisor cannot be zero.\\n */\\n function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {\\n require(b > 0, errorMessage);\\n return a % b;\\n }\\n}\\n\",\"keccak256\":\"0xcc78a17dd88fa5a2edc60c8489e2f405c0913b377216a5b26b35656b2d0dab52\",\"license\":\"MIT\"},\"@openzeppelin/contracts/presets/ERC20PresetMinterPauser.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity >=0.6.0 <0.8.0;\\n\\nimport \\\"../access/AccessControl.sol\\\";\\nimport \\\"../utils/Context.sol\\\";\\nimport \\\"../token/ERC20/ERC20.sol\\\";\\nimport \\\"../token/ERC20/ERC20Burnable.sol\\\";\\nimport \\\"../token/ERC20/ERC20Pausable.sol\\\";\\n\\n/**\\n * @dev {ERC20} token, including:\\n *\\n * - ability for holders to burn (destroy) their tokens\\n * - a minter role that allows for token minting (creation)\\n * - a pauser role that allows to stop all token transfers\\n *\\n * This contract uses {AccessControl} to lock permissioned functions using the\\n * different roles - head to its documentation for details.\\n *\\n * The account that deploys the contract will be granted the minter and pauser\\n * roles, as well as the default admin role, which will let it grant both minter\\n * and pauser roles to other accounts.\\n */\\ncontract ERC20PresetMinterPauser is Context, AccessControl, ERC20Burnable, ERC20Pausable {\\n bytes32 public constant MINTER_ROLE = keccak256(\\\"MINTER_ROLE\\\");\\n bytes32 public constant PAUSER_ROLE = keccak256(\\\"PAUSER_ROLE\\\");\\n\\n /**\\n * @dev Grants `DEFAULT_ADMIN_ROLE`, `MINTER_ROLE` and `PAUSER_ROLE` to the\\n * account that deploys the contract.\\n *\\n * See {ERC20-constructor}.\\n */\\n constructor(string memory name, string memory symbol) public ERC20(name, symbol) {\\n _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());\\n\\n _setupRole(MINTER_ROLE, _msgSender());\\n _setupRole(PAUSER_ROLE, _msgSender());\\n }\\n\\n /**\\n * @dev Creates `amount` new tokens for `to`.\\n *\\n * See {ERC20-_mint}.\\n *\\n * Requirements:\\n *\\n * - the caller must have the `MINTER_ROLE`.\\n */\\n function mint(address to, uint256 amount) public virtual {\\n require(hasRole(MINTER_ROLE, _msgSender()), \\\"ERC20PresetMinterPauser: must have minter role to mint\\\");\\n _mint(to, amount);\\n }\\n\\n /**\\n * @dev Pauses all token transfers.\\n *\\n * See {ERC20Pausable} and {Pausable-_pause}.\\n *\\n * Requirements:\\n *\\n * - the caller must have the `PAUSER_ROLE`.\\n */\\n function pause() public virtual {\\n require(hasRole(PAUSER_ROLE, _msgSender()), \\\"ERC20PresetMinterPauser: must have pauser role to pause\\\");\\n _pause();\\n }\\n\\n /**\\n * @dev Unpauses all token transfers.\\n *\\n * See {ERC20Pausable} and {Pausable-_unpause}.\\n *\\n * Requirements:\\n *\\n * - the caller must have the `PAUSER_ROLE`.\\n */\\n function unpause() public virtual {\\n require(hasRole(PAUSER_ROLE, _msgSender()), \\\"ERC20PresetMinterPauser: must have pauser role to unpause\\\");\\n _unpause();\\n }\\n\\n function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual override(ERC20, ERC20Pausable) {\\n super._beforeTokenTransfer(from, to, amount);\\n }\\n}\\n\",\"keccak256\":\"0xa7c607ed4a0b2bebb811a398838ce4b5165e490f420a06337478eb2ba8c90cfc\",\"license\":\"MIT\"},\"@openzeppelin/contracts/proxy/Clones.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity >=0.6.0 <0.8.0;\\n\\n/**\\n * @dev https://eips.ethereum.org/EIPS/eip-1167[EIP 1167] is a standard for\\n * deploying minimal proxy contracts, also known as \\\"clones\\\".\\n *\\n * > To simply and cheaply clone contract functionality in an immutable way, this standard specifies\\n * > a minimal bytecode implementation that delegates all calls to a known, fixed address.\\n *\\n * The library includes functions to deploy a proxy using either `create` (traditional deployment) or `create2`\\n * (salted deterministic deployment). It also includes functions to predict the addresses of clones deployed using the\\n * deterministic method.\\n *\\n * _Available since v3.4._\\n */\\nlibrary Clones {\\n /**\\n * @dev Deploys and returns the address of a clone that mimics the behaviour of `master`.\\n *\\n * This function uses the create opcode, which should never revert.\\n */\\n function clone(address master) internal returns (address instance) {\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let ptr := mload(0x40)\\n mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000)\\n mstore(add(ptr, 0x14), shl(0x60, master))\\n mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000)\\n instance := create(0, ptr, 0x37)\\n }\\n require(instance != address(0), \\\"ERC1167: create failed\\\");\\n }\\n\\n /**\\n * @dev Deploys and returns the address of a clone that mimics the behaviour of `master`.\\n *\\n * This function uses the create2 opcode and a `salt` to deterministically deploy\\n * the clone. Using the same `master` and `salt` multiple time will revert, since\\n * the clones cannot be deployed twice at the same address.\\n */\\n function cloneDeterministic(address master, bytes32 salt) internal returns (address instance) {\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let ptr := mload(0x40)\\n mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000)\\n mstore(add(ptr, 0x14), shl(0x60, master))\\n mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000)\\n instance := create2(0, ptr, 0x37, salt)\\n }\\n require(instance != address(0), \\\"ERC1167: create2 failed\\\");\\n }\\n\\n /**\\n * @dev Computes the address of a clone deployed using {Clones-cloneDeterministic}.\\n */\\n function predictDeterministicAddress(address master, bytes32 salt, address deployer) internal pure returns (address predicted) {\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let ptr := mload(0x40)\\n mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000)\\n mstore(add(ptr, 0x14), shl(0x60, master))\\n mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf3ff00000000000000000000000000000000)\\n mstore(add(ptr, 0x38), shl(0x60, deployer))\\n mstore(add(ptr, 0x4c), salt)\\n mstore(add(ptr, 0x6c), keccak256(ptr, 0x37))\\n predicted := keccak256(add(ptr, 0x37), 0x55)\\n }\\n }\\n\\n /**\\n * @dev Computes the address of a clone deployed using {Clones-cloneDeterministic}.\\n */\\n function predictDeterministicAddress(address master, bytes32 salt) internal view returns (address predicted) {\\n return predictDeterministicAddress(master, salt, address(this));\\n }\\n}\\n\",\"keccak256\":\"0x0d24348f536f928d8b42789737bf34762faee065667ab530ea20969a9d9920d1\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/ERC20.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity >=0.6.0 <0.8.0;\\n\\nimport \\\"../../utils/Context.sol\\\";\\nimport \\\"./IERC20.sol\\\";\\nimport \\\"../../math/SafeMath.sol\\\";\\n\\n/**\\n * @dev Implementation of the {IERC20} interface.\\n *\\n * This implementation is agnostic to the way tokens are created. This means\\n * that a supply mechanism has to be added in a derived contract using {_mint}.\\n * For a generic mechanism see {ERC20PresetMinterPauser}.\\n *\\n * TIP: For a detailed writeup see our guide\\n * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How\\n * to implement supply mechanisms].\\n *\\n * We have followed general OpenZeppelin guidelines: functions revert instead\\n * of returning `false` on failure. This behavior is nonetheless conventional\\n * and does not conflict with the expectations of ERC20 applications.\\n *\\n * Additionally, an {Approval} event is emitted on calls to {transferFrom}.\\n * This allows applications to reconstruct the allowance for all accounts just\\n * by listening to said events. Other implementations of the EIP may not emit\\n * these events, as it isn't required by the specification.\\n *\\n * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}\\n * functions have been added to mitigate the well-known issues around setting\\n * allowances. See {IERC20-approve}.\\n */\\ncontract ERC20 is Context, IERC20 {\\n using SafeMath for uint256;\\n\\n mapping (address => uint256) private _balances;\\n\\n mapping (address => mapping (address => uint256)) private _allowances;\\n\\n uint256 private _totalSupply;\\n\\n string private _name;\\n string private _symbol;\\n uint8 private _decimals;\\n\\n /**\\n * @dev Sets the values for {name} and {symbol}, initializes {decimals} with\\n * a default value of 18.\\n *\\n * To select a different value for {decimals}, use {_setupDecimals}.\\n *\\n * All three of these values are immutable: they can only be set once during\\n * construction.\\n */\\n constructor (string memory name_, string memory symbol_) public {\\n _name = name_;\\n _symbol = symbol_;\\n _decimals = 18;\\n }\\n\\n /**\\n * @dev Returns the name of the token.\\n */\\n function name() public view virtual returns (string memory) {\\n return _name;\\n }\\n\\n /**\\n * @dev Returns the symbol of the token, usually a shorter version of the\\n * name.\\n */\\n function symbol() public view virtual returns (string memory) {\\n return _symbol;\\n }\\n\\n /**\\n * @dev Returns the number of decimals used to get its user representation.\\n * For example, if `decimals` equals `2`, a balance of `505` tokens should\\n * be displayed to a user as `5,05` (`505 / 10 ** 2`).\\n *\\n * Tokens usually opt for a value of 18, imitating the relationship between\\n * Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is\\n * called.\\n *\\n * NOTE: This information is only used for _display_ purposes: it in\\n * no way affects any of the arithmetic of the contract, including\\n * {IERC20-balanceOf} and {IERC20-transfer}.\\n */\\n function decimals() public view virtual returns (uint8) {\\n return _decimals;\\n }\\n\\n /**\\n * @dev See {IERC20-totalSupply}.\\n */\\n function totalSupply() public view virtual override returns (uint256) {\\n return _totalSupply;\\n }\\n\\n /**\\n * @dev See {IERC20-balanceOf}.\\n */\\n function balanceOf(address account) public view virtual override returns (uint256) {\\n return _balances[account];\\n }\\n\\n /**\\n * @dev See {IERC20-transfer}.\\n *\\n * Requirements:\\n *\\n * - `recipient` cannot be the zero address.\\n * - the caller must have a balance of at least `amount`.\\n */\\n function transfer(address recipient, uint256 amount) public virtual override returns (bool) {\\n _transfer(_msgSender(), recipient, amount);\\n return true;\\n }\\n\\n /**\\n * @dev See {IERC20-allowance}.\\n */\\n function allowance(address owner, address spender) public view virtual override returns (uint256) {\\n return _allowances[owner][spender];\\n }\\n\\n /**\\n * @dev See {IERC20-approve}.\\n *\\n * Requirements:\\n *\\n * - `spender` cannot be the zero address.\\n */\\n function approve(address spender, uint256 amount) public virtual override returns (bool) {\\n _approve(_msgSender(), spender, amount);\\n return true;\\n }\\n\\n /**\\n * @dev See {IERC20-transferFrom}.\\n *\\n * Emits an {Approval} event indicating the updated allowance. This is not\\n * required by the EIP. See the note at the beginning of {ERC20}.\\n *\\n * Requirements:\\n *\\n * - `sender` and `recipient` cannot be the zero address.\\n * - `sender` must have a balance of at least `amount`.\\n * - the caller must have allowance for ``sender``'s tokens of at least\\n * `amount`.\\n */\\n function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {\\n _transfer(sender, recipient, amount);\\n _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, \\\"ERC20: transfer amount exceeds allowance\\\"));\\n return true;\\n }\\n\\n /**\\n * @dev Atomically increases the allowance granted to `spender` by the caller.\\n *\\n * This is an alternative to {approve} that can be used as a mitigation for\\n * problems described in {IERC20-approve}.\\n *\\n * Emits an {Approval} event indicating the updated allowance.\\n *\\n * Requirements:\\n *\\n * - `spender` cannot be the zero address.\\n */\\n function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {\\n _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));\\n return true;\\n }\\n\\n /**\\n * @dev Atomically decreases the allowance granted to `spender` by the caller.\\n *\\n * This is an alternative to {approve} that can be used as a mitigation for\\n * problems described in {IERC20-approve}.\\n *\\n * Emits an {Approval} event indicating the updated allowance.\\n *\\n * Requirements:\\n *\\n * - `spender` cannot be the zero address.\\n * - `spender` must have allowance for the caller of at least\\n * `subtractedValue`.\\n */\\n function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {\\n _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, \\\"ERC20: decreased allowance below zero\\\"));\\n return true;\\n }\\n\\n /**\\n * @dev Moves tokens `amount` from `sender` to `recipient`.\\n *\\n * This is internal function is equivalent to {transfer}, and can be used to\\n * e.g. implement automatic token fees, slashing mechanisms, etc.\\n *\\n * Emits a {Transfer} event.\\n *\\n * Requirements:\\n *\\n * - `sender` cannot be the zero address.\\n * - `recipient` cannot be the zero address.\\n * - `sender` must have a balance of at least `amount`.\\n */\\n function _transfer(address sender, address recipient, uint256 amount) internal virtual {\\n require(sender != address(0), \\\"ERC20: transfer from the zero address\\\");\\n require(recipient != address(0), \\\"ERC20: transfer to the zero address\\\");\\n\\n _beforeTokenTransfer(sender, recipient, amount);\\n\\n _balances[sender] = _balances[sender].sub(amount, \\\"ERC20: transfer amount exceeds balance\\\");\\n _balances[recipient] = _balances[recipient].add(amount);\\n emit Transfer(sender, recipient, amount);\\n }\\n\\n /** @dev Creates `amount` tokens and assigns them to `account`, increasing\\n * the total supply.\\n *\\n * Emits a {Transfer} event with `from` set to the zero address.\\n *\\n * Requirements:\\n *\\n * - `to` cannot be the zero address.\\n */\\n function _mint(address account, uint256 amount) internal virtual {\\n require(account != address(0), \\\"ERC20: mint to the zero address\\\");\\n\\n _beforeTokenTransfer(address(0), account, amount);\\n\\n _totalSupply = _totalSupply.add(amount);\\n _balances[account] = _balances[account].add(amount);\\n emit Transfer(address(0), account, amount);\\n }\\n\\n /**\\n * @dev Destroys `amount` tokens from `account`, reducing the\\n * total supply.\\n *\\n * Emits a {Transfer} event with `to` set to the zero address.\\n *\\n * Requirements:\\n *\\n * - `account` cannot be the zero address.\\n * - `account` must have at least `amount` tokens.\\n */\\n function _burn(address account, uint256 amount) internal virtual {\\n require(account != address(0), \\\"ERC20: burn from the zero address\\\");\\n\\n _beforeTokenTransfer(account, address(0), amount);\\n\\n _balances[account] = _balances[account].sub(amount, \\\"ERC20: burn amount exceeds balance\\\");\\n _totalSupply = _totalSupply.sub(amount);\\n emit Transfer(account, address(0), amount);\\n }\\n\\n /**\\n * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.\\n *\\n * This internal function is equivalent to `approve`, and can be used to\\n * e.g. set automatic allowances for certain subsystems, etc.\\n *\\n * Emits an {Approval} event.\\n *\\n * Requirements:\\n *\\n * - `owner` cannot be the zero address.\\n * - `spender` cannot be the zero address.\\n */\\n function _approve(address owner, address spender, uint256 amount) internal virtual {\\n require(owner != address(0), \\\"ERC20: approve from the zero address\\\");\\n require(spender != address(0), \\\"ERC20: approve to the zero address\\\");\\n\\n _allowances[owner][spender] = amount;\\n emit Approval(owner, spender, amount);\\n }\\n\\n /**\\n * @dev Sets {decimals} to a value other than the default one of 18.\\n *\\n * WARNING: This function should only be called from the constructor. Most\\n * applications that interact with token contracts will not expect\\n * {decimals} to ever change, and may work incorrectly if it does.\\n */\\n function _setupDecimals(uint8 decimals_) internal virtual {\\n _decimals = decimals_;\\n }\\n\\n /**\\n * @dev Hook that is called before any transfer of tokens. This includes\\n * minting and burning.\\n *\\n * Calling conditions:\\n *\\n * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens\\n * will be to transferred to `to`.\\n * - when `from` is zero, `amount` tokens will be minted for `to`.\\n * - when `to` is zero, `amount` of ``from``'s tokens will be burned.\\n * - `from` and `to` are never both zero.\\n *\\n * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].\\n */\\n function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }\\n}\\n\",\"keccak256\":\"0xca0c2396dbeb3503b51abf4248ebf77a1461edad513c01529df51850a012bee3\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/ERC20Burnable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity >=0.6.0 <0.8.0;\\n\\nimport \\\"../../utils/Context.sol\\\";\\nimport \\\"./ERC20.sol\\\";\\n\\n/**\\n * @dev Extension of {ERC20} that allows token holders to destroy both their own\\n * tokens and those that they have an allowance for, in a way that can be\\n * recognized off-chain (via event analysis).\\n */\\nabstract contract ERC20Burnable is Context, ERC20 {\\n using SafeMath for uint256;\\n\\n /**\\n * @dev Destroys `amount` tokens from the caller.\\n *\\n * See {ERC20-_burn}.\\n */\\n function burn(uint256 amount) public virtual {\\n _burn(_msgSender(), amount);\\n }\\n\\n /**\\n * @dev Destroys `amount` tokens from `account`, deducting from the caller's\\n * allowance.\\n *\\n * See {ERC20-_burn} and {ERC20-allowance}.\\n *\\n * Requirements:\\n *\\n * - the caller must have allowance for ``accounts``'s tokens of at least\\n * `amount`.\\n */\\n function burnFrom(address account, uint256 amount) public virtual {\\n uint256 decreasedAllowance = allowance(account, _msgSender()).sub(amount, \\\"ERC20: burn amount exceeds allowance\\\");\\n\\n _approve(account, _msgSender(), decreasedAllowance);\\n _burn(account, amount);\\n }\\n}\\n\",\"keccak256\":\"0x9c0eb3b0e11d2480d49991dc384f1e5f9c9b9967cc81944d50916a9b9c6c4984\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/ERC20Pausable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity >=0.6.0 <0.8.0;\\n\\nimport \\\"./ERC20.sol\\\";\\nimport \\\"../../utils/Pausable.sol\\\";\\n\\n/**\\n * @dev ERC20 token with pausable token transfers, minting and burning.\\n *\\n * Useful for scenarios such as preventing trades until the end of an evaluation\\n * period, or having an emergency switch for freezing all token transfers in the\\n * event of a large bug.\\n */\\nabstract contract ERC20Pausable is ERC20, Pausable {\\n /**\\n * @dev See {ERC20-_beforeTokenTransfer}.\\n *\\n * Requirements:\\n *\\n * - the contract must not be paused.\\n */\\n function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual override {\\n super._beforeTokenTransfer(from, to, amount);\\n\\n require(!paused(), \\\"ERC20Pausable: token transfer while paused\\\");\\n }\\n}\\n\",\"keccak256\":\"0xa22af140ae7ec1f8f2f3bed5869cd0d548dfaac66343f0efc7324ff34aaf1254\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/IERC20.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity >=0.6.0 <0.8.0;\\n\\n/**\\n * @dev Interface of the ERC20 standard as defined in the EIP.\\n */\\ninterface IERC20 {\\n /**\\n * @dev Returns the amount of tokens in existence.\\n */\\n function totalSupply() external view returns (uint256);\\n\\n /**\\n * @dev Returns the amount of tokens owned by `account`.\\n */\\n function balanceOf(address account) external view returns (uint256);\\n\\n /**\\n * @dev Moves `amount` tokens from the caller's account to `recipient`.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transfer(address recipient, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Returns the remaining number of tokens that `spender` will be\\n * allowed to spend on behalf of `owner` through {transferFrom}. This is\\n * zero by default.\\n *\\n * This value changes when {approve} or {transferFrom} are called.\\n */\\n function allowance(address owner, address spender) external view returns (uint256);\\n\\n /**\\n * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * IMPORTANT: Beware that changing an allowance with this method brings the risk\\n * that someone may use both the old and the new allowance by unfortunate\\n * transaction ordering. One possible solution to mitigate this race\\n * condition is to first reduce the spender's allowance to 0 and set the\\n * desired value afterwards:\\n * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\\n *\\n * Emits an {Approval} event.\\n */\\n function approve(address spender, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Moves `amount` tokens from `sender` to `recipient` using the\\n * allowance mechanism. `amount` is then deducted from the caller's\\n * allowance.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\\n * another (`to`).\\n *\\n * Note that `value` may be zero.\\n */\\n event Transfer(address indexed from, address indexed to, uint256 value);\\n\\n /**\\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\\n * a call to {approve}. `value` is the new allowance.\\n */\\n event Approval(address indexed owner, address indexed spender, uint256 value);\\n}\\n\",\"keccak256\":\"0x5f02220344881ce43204ae4a6281145a67bc52c2bb1290a791857df3d19d78f5\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/Address.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity >=0.6.2 <0.8.0;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary Address {\\n /**\\n * @dev Returns true if `account` is a contract.\\n *\\n * [IMPORTANT]\\n * ====\\n * It is unsafe to assume that an address for which this function returns\\n * false is an externally-owned account (EOA) and not a contract.\\n *\\n * Among others, `isContract` will return false for the following\\n * types of addresses:\\n *\\n * - an externally-owned account\\n * - a contract in construction\\n * - an address where a contract will be created\\n * - an address where a contract lived, but was destroyed\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize, which returns 0 for contracts in\\n // construction, since the code is only stored at the end of the\\n // constructor execution.\\n\\n uint256 size;\\n // solhint-disable-next-line no-inline-assembly\\n assembly { size := extcodesize(account) }\\n return size > 0;\\n }\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n require(address(this).balance >= amount, \\\"Address: insufficient balance\\\");\\n\\n // solhint-disable-next-line avoid-low-level-calls, avoid-call-value\\n (bool success, ) = recipient.call{ value: amount }(\\\"\\\");\\n require(success, \\\"Address: unable to send value, recipient may have reverted\\\");\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain`call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason, it is bubbled up by this\\n * function (like regular Solidity function calls).\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCall(target, data, \\\"Address: low-level call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\n * `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, value, \\\"Address: low-level call with value failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\n * with `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {\\n require(address(this).balance >= value, \\\"Address: insufficient balance for call\\\");\\n require(isContract(target), \\\"Address: call to non-contract\\\");\\n\\n // solhint-disable-next-line avoid-low-level-calls\\n (bool success, bytes memory returndata) = target.call{ value: value }(data);\\n return _verifyCallResult(success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n return functionStaticCall(target, data, \\\"Address: low-level static call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) {\\n require(isContract(target), \\\"Address: static call to non-contract\\\");\\n\\n // solhint-disable-next-line avoid-low-level-calls\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return _verifyCallResult(success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionDelegateCall(target, data, \\\"Address: low-level delegate call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {\\n require(isContract(target), \\\"Address: delegate call to non-contract\\\");\\n\\n // solhint-disable-next-line avoid-low-level-calls\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return _verifyCallResult(success, returndata, errorMessage);\\n }\\n\\n function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {\\n if (success) {\\n return returndata;\\n } else {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0x28911e614500ae7c607a432a709d35da25f3bc5ddc8bd12b278b66358070c0ea\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity >=0.6.0 <0.8.0;\\n\\n/*\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with GSN meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n function _msgSender() internal view virtual returns (address payable) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes memory) {\\n this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691\\n return msg.data;\\n }\\n}\\n\",\"keccak256\":\"0x8d3cb350f04ff49cfb10aef08d87f19dcbaecc8027b0bed12f3275cd12f38cf0\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/EnumerableSet.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity >=0.6.0 <0.8.0;\\n\\n/**\\n * @dev Library for managing\\n * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive\\n * types.\\n *\\n * Sets have the following properties:\\n *\\n * - Elements are added, removed, and checked for existence in constant time\\n * (O(1)).\\n * - Elements are enumerated in O(n). No guarantees are made on the ordering.\\n *\\n * ```\\n * contract Example {\\n * // Add the library methods\\n * using EnumerableSet for EnumerableSet.AddressSet;\\n *\\n * // Declare a set state variable\\n * EnumerableSet.AddressSet private mySet;\\n * }\\n * ```\\n *\\n * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)\\n * and `uint256` (`UintSet`) are supported.\\n */\\nlibrary EnumerableSet {\\n // To implement this library for multiple types with as little code\\n // repetition as possible, we write it in terms of a generic Set type with\\n // bytes32 values.\\n // The Set implementation uses private functions, and user-facing\\n // implementations (such as AddressSet) are just wrappers around the\\n // underlying Set.\\n // This means that we can only create new EnumerableSets for types that fit\\n // in bytes32.\\n\\n struct Set {\\n // Storage of set values\\n bytes32[] _values;\\n\\n // Position of the value in the `values` array, plus 1 because index 0\\n // means a value is not in the set.\\n mapping (bytes32 => uint256) _indexes;\\n }\\n\\n /**\\n * @dev Add a value to a set. O(1).\\n *\\n * Returns true if the value was added to the set, that is if it was not\\n * already present.\\n */\\n function _add(Set storage set, bytes32 value) private returns (bool) {\\n if (!_contains(set, value)) {\\n set._values.push(value);\\n // The value is stored at length-1, but we add 1 to all indexes\\n // and use 0 as a sentinel value\\n set._indexes[value] = set._values.length;\\n return true;\\n } else {\\n return false;\\n }\\n }\\n\\n /**\\n * @dev Removes a value from a set. O(1).\\n *\\n * Returns true if the value was removed from the set, that is if it was\\n * present.\\n */\\n function _remove(Set storage set, bytes32 value) private returns (bool) {\\n // We read and store the value's index to prevent multiple reads from the same storage slot\\n uint256 valueIndex = set._indexes[value];\\n\\n if (valueIndex != 0) { // Equivalent to contains(set, value)\\n // To delete an element from the _values array in O(1), we swap the element to delete with the last one in\\n // the array, and then remove the last element (sometimes called as 'swap and pop').\\n // This modifies the order of the array, as noted in {at}.\\n\\n uint256 toDeleteIndex = valueIndex - 1;\\n uint256 lastIndex = set._values.length - 1;\\n\\n // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs\\n // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.\\n\\n bytes32 lastvalue = set._values[lastIndex];\\n\\n // Move the last value to the index where the value to delete is\\n set._values[toDeleteIndex] = lastvalue;\\n // Update the index for the moved value\\n set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based\\n\\n // Delete the slot where the moved value was stored\\n set._values.pop();\\n\\n // Delete the index for the deleted slot\\n delete set._indexes[value];\\n\\n return true;\\n } else {\\n return false;\\n }\\n }\\n\\n /**\\n * @dev Returns true if the value is in the set. O(1).\\n */\\n function _contains(Set storage set, bytes32 value) private view returns (bool) {\\n return set._indexes[value] != 0;\\n }\\n\\n /**\\n * @dev Returns the number of values on the set. O(1).\\n */\\n function _length(Set storage set) private view returns (uint256) {\\n return set._values.length;\\n }\\n\\n /**\\n * @dev Returns the value stored at position `index` in the set. O(1).\\n *\\n * Note that there are no guarantees on the ordering of values inside the\\n * array, and it may change when more values are added or removed.\\n *\\n * Requirements:\\n *\\n * - `index` must be strictly less than {length}.\\n */\\n function _at(Set storage set, uint256 index) private view returns (bytes32) {\\n require(set._values.length > index, \\\"EnumerableSet: index out of bounds\\\");\\n return set._values[index];\\n }\\n\\n // Bytes32Set\\n\\n struct Bytes32Set {\\n Set _inner;\\n }\\n\\n /**\\n * @dev Add a value to a set. O(1).\\n *\\n * Returns true if the value was added to the set, that is if it was not\\n * already present.\\n */\\n function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {\\n return _add(set._inner, value);\\n }\\n\\n /**\\n * @dev Removes a value from a set. O(1).\\n *\\n * Returns true if the value was removed from the set, that is if it was\\n * present.\\n */\\n function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {\\n return _remove(set._inner, value);\\n }\\n\\n /**\\n * @dev Returns true if the value is in the set. O(1).\\n */\\n function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {\\n return _contains(set._inner, value);\\n }\\n\\n /**\\n * @dev Returns the number of values in the set. O(1).\\n */\\n function length(Bytes32Set storage set) internal view returns (uint256) {\\n return _length(set._inner);\\n }\\n\\n /**\\n * @dev Returns the value stored at position `index` in the set. O(1).\\n *\\n * Note that there are no guarantees on the ordering of values inside the\\n * array, and it may change when more values are added or removed.\\n *\\n * Requirements:\\n *\\n * - `index` must be strictly less than {length}.\\n */\\n function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {\\n return _at(set._inner, index);\\n }\\n\\n // AddressSet\\n\\n struct AddressSet {\\n Set _inner;\\n }\\n\\n /**\\n * @dev Add a value to a set. O(1).\\n *\\n * Returns true if the value was added to the set, that is if it was not\\n * already present.\\n */\\n function add(AddressSet storage set, address value) internal returns (bool) {\\n return _add(set._inner, bytes32(uint256(uint160(value))));\\n }\\n\\n /**\\n * @dev Removes a value from a set. O(1).\\n *\\n * Returns true if the value was removed from the set, that is if it was\\n * present.\\n */\\n function remove(AddressSet storage set, address value) internal returns (bool) {\\n return _remove(set._inner, bytes32(uint256(uint160(value))));\\n }\\n\\n /**\\n * @dev Returns true if the value is in the set. O(1).\\n */\\n function contains(AddressSet storage set, address value) internal view returns (bool) {\\n return _contains(set._inner, bytes32(uint256(uint160(value))));\\n }\\n\\n /**\\n * @dev Returns the number of values in the set. O(1).\\n */\\n function length(AddressSet storage set) internal view returns (uint256) {\\n return _length(set._inner);\\n }\\n\\n /**\\n * @dev Returns the value stored at position `index` in the set. O(1).\\n *\\n * Note that there are no guarantees on the ordering of values inside the\\n * array, and it may change when more values are added or removed.\\n *\\n * Requirements:\\n *\\n * - `index` must be strictly less than {length}.\\n */\\n function at(AddressSet storage set, uint256 index) internal view returns (address) {\\n return address(uint160(uint256(_at(set._inner, index))));\\n }\\n\\n\\n // UintSet\\n\\n struct UintSet {\\n Set _inner;\\n }\\n\\n /**\\n * @dev Add a value to a set. O(1).\\n *\\n * Returns true if the value was added to the set, that is if it was not\\n * already present.\\n */\\n function add(UintSet storage set, uint256 value) internal returns (bool) {\\n return _add(set._inner, bytes32(value));\\n }\\n\\n /**\\n * @dev Removes a value from a set. O(1).\\n *\\n * Returns true if the value was removed from the set, that is if it was\\n * present.\\n */\\n function remove(UintSet storage set, uint256 value) internal returns (bool) {\\n return _remove(set._inner, bytes32(value));\\n }\\n\\n /**\\n * @dev Returns true if the value is in the set. O(1).\\n */\\n function contains(UintSet storage set, uint256 value) internal view returns (bool) {\\n return _contains(set._inner, bytes32(value));\\n }\\n\\n /**\\n * @dev Returns the number of values on the set. O(1).\\n */\\n function length(UintSet storage set) internal view returns (uint256) {\\n return _length(set._inner);\\n }\\n\\n /**\\n * @dev Returns the value stored at position `index` in the set. O(1).\\n *\\n * Note that there are no guarantees on the ordering of values inside the\\n * array, and it may change when more values are added or removed.\\n *\\n * Requirements:\\n *\\n * - `index` must be strictly less than {length}.\\n */\\n function at(UintSet storage set, uint256 index) internal view returns (uint256) {\\n return uint256(_at(set._inner, index));\\n }\\n}\\n\",\"keccak256\":\"0x1562cd9922fbf739edfb979f506809e2743789cbde3177515542161c3d04b164\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/Pausable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity >=0.6.0 <0.8.0;\\n\\nimport \\\"./Context.sol\\\";\\n\\n/**\\n * @dev Contract module which allows children to implement an emergency stop\\n * mechanism that can be triggered by an authorized account.\\n *\\n * This module is used through inheritance. It will make available the\\n * modifiers `whenNotPaused` and `whenPaused`, which can be applied to\\n * the functions of your contract. Note that they will not be pausable by\\n * simply including this module, only once the modifiers are put in place.\\n */\\nabstract contract Pausable is Context {\\n /**\\n * @dev Emitted when the pause is triggered by `account`.\\n */\\n event Paused(address account);\\n\\n /**\\n * @dev Emitted when the pause is lifted by `account`.\\n */\\n event Unpaused(address account);\\n\\n bool private _paused;\\n\\n /**\\n * @dev Initializes the contract in unpaused state.\\n */\\n constructor () internal {\\n _paused = false;\\n }\\n\\n /**\\n * @dev Returns true if the contract is paused, and false otherwise.\\n */\\n function paused() public view virtual returns (bool) {\\n return _paused;\\n }\\n\\n /**\\n * @dev Modifier to make a function callable only when the contract is not paused.\\n *\\n * Requirements:\\n *\\n * - The contract must not be paused.\\n */\\n modifier whenNotPaused() {\\n require(!paused(), \\\"Pausable: paused\\\");\\n _;\\n }\\n\\n /**\\n * @dev Modifier to make a function callable only when the contract is paused.\\n *\\n * Requirements:\\n *\\n * - The contract must be paused.\\n */\\n modifier whenPaused() {\\n require(paused(), \\\"Pausable: not paused\\\");\\n _;\\n }\\n\\n /**\\n * @dev Triggers stopped state.\\n *\\n * Requirements:\\n *\\n * - The contract must not be paused.\\n */\\n function _pause() internal virtual whenNotPaused {\\n _paused = true;\\n emit Paused(_msgSender());\\n }\\n\\n /**\\n * @dev Returns to normal state.\\n *\\n * Requirements:\\n *\\n * - The contract must be paused.\\n */\\n function _unpause() internal virtual whenPaused {\\n _paused = false;\\n emit Unpaused(_msgSender());\\n }\\n}\\n\",\"keccak256\":\"0x212fb1b1d4beaf74354dad9bc329f44ee3c5375ef1c32acff76b4ecefc10f1d8\",\"license\":\"MIT\"},\"contracts/ERC20SimpleSwap.sol\":{\"content\":\"// SPDX-License-Identifier: BSD-3-Clause\\npragma solidity =0.7.6;\\npragma abicoder v2;\\nimport \\\"@openzeppelin/contracts/math/SafeMath.sol\\\";\\nimport \\\"@openzeppelin/contracts/math/Math.sol\\\";\\nimport \\\"@openzeppelin/contracts/cryptography/ECDSA.sol\\\";\\nimport \\\"@openzeppelin/contracts/token/ERC20/ERC20.sol\\\";\\nimport \\\"@openzeppelin/contracts/presets/ERC20PresetMinterPauser.sol\\\";\\n\\n\\n/**\\n@title Chequebook contract without waivers\\n@author The Swarm Authors\\n@notice The chequebook contract allows the issuer of the chequebook to send cheques to an unlimited amount of counterparties.\\nFurthermore, solvency can be guaranteed via hardDeposits\\n@dev as an issuer, no cheques should be send if the cumulative worth of a cheques send is above the cumulative worth of all deposits\\nas a beneficiary, we should always take into account the possibility that a cheque bounces (when no hardDeposits are assigned)\\n*/\\ncontract ERC20SimpleSwap {\\n using SafeMath for uint;\\n\\n event ChequeCashed(\\n address indexed beneficiary,\\n address indexed recipient,\\n address indexed caller,\\n uint totalPayout,\\n uint cumulativePayout,\\n uint callerPayout\\n );\\n event ChequeBounced();\\n event HardDepositAmountChanged(address indexed beneficiary, uint amount);\\n event HardDepositDecreasePrepared(address indexed beneficiary, uint decreaseAmount);\\n event HardDepositTimeoutChanged(address indexed beneficiary, uint timeout);\\n event Withdraw(uint amount);\\n\\n uint public defaultHardDepositTimeout;\\n /* structure to keep track of the hard deposits (on-chain guarantee of solvency) per beneficiary*/\\n struct HardDeposit {\\n uint amount; /* hard deposit amount allocated */\\n uint decreaseAmount; /* decreaseAmount substranced from amount when decrease is requested */\\n uint timeout; /* issuer has to wait timeout seconds to decrease hardDeposit, 0 implies applying defaultHardDepositTimeout */\\n uint canBeDecreasedAt; /* point in time after which harddeposit can be decreased*/\\n }\\n\\n struct EIP712Domain {\\n string name;\\n string version;\\n uint256 chainId;\\n }\\n\\n bytes32 public constant EIP712DOMAIN_TYPEHASH = keccak256(\\n \\\"EIP712Domain(string name,string version,uint256 chainId)\\\"\\n );\\n bytes32 public constant CHEQUE_TYPEHASH = keccak256(\\n \\\"Cheque(address chequebook,address beneficiary,uint256 cumulativePayout)\\\"\\n );\\n bytes32 public constant CASHOUT_TYPEHASH = keccak256(\\n \\\"Cashout(address chequebook,address sender,uint256 requestPayout,address recipient,uint256 callerPayout)\\\"\\n );\\n bytes32 public constant CUSTOMDECREASETIMEOUT_TYPEHASH = keccak256(\\n \\\"CustomDecreaseTimeout(address chequebook,address beneficiary,uint256 decreaseTimeout)\\\"\\n );\\n\\n // the EIP712 domain this contract uses\\n function domain() internal pure returns (EIP712Domain memory) {\\n uint256 chainId;\\n assembly {\\n chainId := chainid()\\n }\\n return EIP712Domain({\\n name: \\\"Chequebook\\\",\\n version: \\\"1.0\\\",\\n chainId: chainId\\n });\\n }\\n\\n // compute the EIP712 domain separator. this cannot be constant because it depends on chainId\\n function domainSeparator(EIP712Domain memory eip712Domain) internal pure returns (bytes32) {\\n return keccak256(abi.encode(\\n EIP712DOMAIN_TYPEHASH,\\n keccak256(bytes(eip712Domain.name)),\\n keccak256(bytes(eip712Domain.version)),\\n eip712Domain.chainId\\n ));\\n }\\n\\n // recover a signature with the EIP712 signing scheme\\n function recoverEIP712(bytes32 hash, bytes memory sig) internal pure returns (address) {\\n bytes32 digest = keccak256(abi.encodePacked(\\n \\\"\\\\x19\\\\x01\\\",\\n domainSeparator(domain()),\\n hash\\n ));\\n return ECDSA.recover(digest, sig);\\n }\\n\\n /* The token against which this chequebook writes cheques */\\n ERC20 public token;\\n /* associates every beneficiary with how much has been paid out to them */\\n mapping (address => uint) public paidOut;\\n /* total amount paid out */\\n uint public totalPaidOut;\\n /* associates every beneficiary with their HardDeposit */\\n mapping (address => HardDeposit) public hardDeposits;\\n /* sum of all hard deposits */\\n uint public totalHardDeposit;\\n /* issuer of the contract, set at construction */\\n address public issuer;\\n /* indicates wether a cheque bounced in the past */\\n bool public bounced;\\n\\n /**\\n @notice sets the issuer, token and the defaultHardDepositTimeout. can only be called once.\\n @param _issuer the issuer of cheques from this chequebook (needed as an argument for \\\"Setting up a chequebook as a payment\\\").\\n _issuer must be an Externally Owned Account, or it must support calling the function cashCheque\\n @param _token the token this chequebook uses\\n @param _defaultHardDepositTimeout duration in seconds which by default will be used to reduce hardDeposit allocations\\n */\\n function init(address _issuer, address _token, uint _defaultHardDepositTimeout) public {\\n require(_issuer != address(0), \\\"invalid issuer\\\");\\n require(issuer == address(0), \\\"already initialized\\\");\\n issuer = _issuer;\\n token = ERC20(_token);\\n defaultHardDepositTimeout = _defaultHardDepositTimeout;\\n }\\n\\n /// @return the balance of the chequebook\\n function balance() public view returns(uint) {\\n return token.balanceOf(address(this));\\n }\\n /// @return the part of the balance that is not covered by hard deposits\\n function liquidBalance() public view returns(uint) {\\n return balance().sub(totalHardDeposit);\\n }\\n\\n /// @return the part of the balance available for a specific beneficiary\\n function liquidBalanceFor(address beneficiary) public view returns(uint) {\\n return liquidBalance().add(hardDeposits[beneficiary].amount);\\n }\\n /**\\n @dev internal function responsible for checking the issuerSignature, updating hardDeposit balances and doing transfers.\\n Called by cashCheque and cashChequeBeneficary\\n @param beneficiary the beneficiary to which cheques were assigned. Beneficiary must be an Externally Owned Account\\n @param recipient receives the differences between cumulativePayment and what was already paid-out to the beneficiary minus callerPayout\\n @param cumulativePayout cumulative amount of cheques assigned to beneficiary\\n @param issuerSig if issuer is not the sender, issuer must have given explicit approval on the cumulativePayout to the beneficiary\\n */\\n function _cashChequeInternal(\\n address beneficiary,\\n address recipient,\\n uint cumulativePayout,\\n uint callerPayout,\\n bytes memory issuerSig\\n ) internal {\\n /* The issuer must have given explicit approval to the cumulativePayout, either by being the caller or by signature*/\\n if (msg.sender != issuer) {\\n require(issuer == recoverEIP712(chequeHash(address(this), beneficiary, cumulativePayout), issuerSig),\\n \\\"invalid issuer signature\\\");\\n }\\n /* the requestPayout is the amount requested for payment processing */\\n uint requestPayout = cumulativePayout.sub(paidOut[beneficiary]);\\n /* calculates acutal payout */\\n uint totalPayout = Math.min(requestPayout, liquidBalanceFor(beneficiary));\\n /* calculates hard-deposit usage */\\n uint hardDepositUsage = Math.min(totalPayout, hardDeposits[beneficiary].amount);\\n require(totalPayout >= callerPayout, \\\"SimpleSwap: cannot pay caller\\\");\\n /* if there are some of the hard deposit used, update hardDeposits*/\\n if (hardDepositUsage != 0) {\\n hardDeposits[beneficiary].amount = hardDeposits[beneficiary].amount.sub(hardDepositUsage);\\n\\n totalHardDeposit = totalHardDeposit.sub(hardDepositUsage);\\n }\\n /* increase the stored paidOut amount to avoid double payout */\\n paidOut[beneficiary] = paidOut[beneficiary].add(totalPayout);\\n totalPaidOut = totalPaidOut.add(totalPayout);\\n\\n /* let the world know that the issuer has over-promised on outstanding cheques */\\n if (requestPayout != totalPayout) {\\n bounced = true;\\n emit ChequeBounced();\\n }\\n\\n if (callerPayout != 0) {\\n /* do a transfer to the caller if specified*/\\n require(token.transfer(msg.sender, callerPayout), \\\"transfer failed\\\");\\n /* do the actual payment */\\n require(token.transfer(recipient, totalPayout.sub(callerPayout)), \\\"transfer failed\\\");\\n } else {\\n /* do the actual payment */\\n require(token.transfer(recipient, totalPayout), \\\"transfer failed\\\");\\n }\\n\\n emit ChequeCashed(beneficiary, recipient, msg.sender, totalPayout, cumulativePayout, callerPayout);\\n }\\n /**\\n @notice cash a cheque of the beneficiary by a non-beneficiary and reward the sender for doing so with callerPayout\\n @dev a beneficiary must be able to generate signatures (be an Externally Owned Account) to make use of this feature\\n @param beneficiary the beneficiary to which cheques were assigned. Beneficiary must be an Externally Owned Account\\n @param recipient receives the differences between cumulativePayment and what was already paid-out to the beneficiary minus callerPayout\\n @param cumulativePayout cumulative amount of cheques assigned to beneficiary\\n @param beneficiarySig beneficiary must have given explicit approval for cashing out the cumulativePayout by the sender and sending the callerPayout\\n @param issuerSig if issuer is not the sender, issuer must have given explicit approval on the cumulativePayout to the beneficiary\\n @param callerPayout when beneficiary does not have ether yet, he can incentivize other people to cash cheques with help of callerPayout\\n @param issuerSig if issuer is not the sender, issuer must have given explicit approval on the cumulativePayout to the beneficiary\\n */\\n function cashCheque(\\n address beneficiary,\\n address recipient,\\n uint cumulativePayout,\\n bytes memory beneficiarySig,\\n uint256 callerPayout,\\n bytes memory issuerSig\\n ) public {\\n require(\\n beneficiary == recoverEIP712(\\n cashOutHash(\\n address(this),\\n msg.sender,\\n cumulativePayout,\\n recipient,\\n callerPayout\\n ), beneficiarySig\\n ), \\\"invalid beneficiary signature\\\");\\n _cashChequeInternal(beneficiary, recipient, cumulativePayout, callerPayout, issuerSig);\\n }\\n\\n /**\\n @notice cash a cheque as beneficiary\\n @param recipient receives the differences between cumulativePayment and what was already paid-out to the beneficiary minus callerPayout\\n @param cumulativePayout amount requested to pay out\\n @param issuerSig issuer must have given explicit approval on the cumulativePayout to the beneficiary\\n */\\n function cashChequeBeneficiary(address recipient, uint cumulativePayout, bytes memory issuerSig) public {\\n _cashChequeInternal(msg.sender, recipient, cumulativePayout, 0, issuerSig);\\n }\\n\\n /**\\n @notice prepare to decrease the hard deposit\\n @dev decreasing hardDeposits must be done in two steps to allow beneficiaries to cash any uncashed cheques (and make use of the assgined hard-deposits)\\n @param beneficiary beneficiary whose hard deposit should be decreased\\n @param decreaseAmount amount that the deposit is supposed to be decreased by\\n */\\n function prepareDecreaseHardDeposit(address beneficiary, uint decreaseAmount) public {\\n require(msg.sender == issuer, \\\"SimpleSwap: not issuer\\\");\\n HardDeposit storage hardDeposit = hardDeposits[beneficiary];\\n /* cannot decrease it by more than the deposit */\\n require(decreaseAmount <= hardDeposit.amount, \\\"hard deposit not sufficient\\\");\\n // if hardDeposit.timeout was never set, apply defaultHardDepositTimeout\\n uint timeout = hardDeposit.timeout == 0 ? defaultHardDepositTimeout : hardDeposit.timeout;\\n hardDeposit.canBeDecreasedAt = block.timestamp + timeout;\\n hardDeposit.decreaseAmount = decreaseAmount;\\n emit HardDepositDecreasePrepared(beneficiary, decreaseAmount);\\n }\\n\\n /**\\n @notice decrease the hard deposit after waiting the necesary amount of time since prepareDecreaseHardDeposit was called\\n @param beneficiary beneficiary whose hard deposit should be decreased\\n */\\n function decreaseHardDeposit(address beneficiary) public {\\n HardDeposit storage hardDeposit = hardDeposits[beneficiary];\\n require(block.timestamp >= hardDeposit.canBeDecreasedAt && hardDeposit.canBeDecreasedAt != 0, \\\"deposit not yet timed out\\\");\\n /* this throws if decreaseAmount > amount */\\n //TODO: if there is a cash-out in between prepareDecreaseHardDeposit and decreaseHardDeposit, decreaseHardDeposit will throw and reducing hard-deposits is impossible.\\n hardDeposit.amount = hardDeposit.amount.sub(hardDeposit.decreaseAmount);\\n /* reset the canBeDecreasedAt to avoid a double decrease */\\n hardDeposit.canBeDecreasedAt = 0;\\n /* keep totalDeposit in sync */\\n totalHardDeposit = totalHardDeposit.sub(hardDeposit.decreaseAmount);\\n emit HardDepositAmountChanged(beneficiary, hardDeposit.amount);\\n }\\n\\n /**\\n @notice increase the hard deposit\\n @param beneficiary beneficiary whose hard deposit should be decreased\\n @param amount the new hard deposit\\n */\\n function increaseHardDeposit(address beneficiary, uint amount) public {\\n require(msg.sender == issuer, \\\"SimpleSwap: not issuer\\\");\\n /* ensure hard deposits don't exceed the global balance */\\n require(totalHardDeposit.add(amount) <= balance(), \\\"hard deposit exceeds balance\\\");\\n\\n HardDeposit storage hardDeposit = hardDeposits[beneficiary];\\n hardDeposit.amount = hardDeposit.amount.add(amount);\\n // we don't explicitely set hardDepositTimout, as zero means using defaultHardDepositTimeout\\n totalHardDeposit = totalHardDeposit.add(amount);\\n /* disable any pending decrease */\\n hardDeposit.canBeDecreasedAt = 0;\\n emit HardDepositAmountChanged(beneficiary, hardDeposit.amount);\\n }\\n\\n /**\\n @notice allows for setting a custom hardDepositDecreaseTimeout per beneficiary\\n @dev this is required when solvency must be guaranteed for a period longer than the defaultHardDepositDecreaseTimeout\\n @param beneficiary beneficiary whose hard deposit decreaseTimeout must be changed\\n @param hardDepositTimeout new hardDeposit.timeout for beneficiary\\n @param beneficiarySig beneficiary must give explicit approval by giving his signature on the new decreaseTimeout\\n */\\n function setCustomHardDepositTimeout(\\n address beneficiary,\\n uint hardDepositTimeout,\\n bytes memory beneficiarySig\\n ) public {\\n require(msg.sender == issuer, \\\"not issuer\\\");\\n require(\\n beneficiary == recoverEIP712(customDecreaseTimeoutHash(address(this), beneficiary, hardDepositTimeout), beneficiarySig),\\n \\\"invalid beneficiary signature\\\"\\n );\\n hardDeposits[beneficiary].timeout = hardDepositTimeout;\\n emit HardDepositTimeoutChanged(beneficiary, hardDepositTimeout);\\n }\\n\\n /// @notice withdraw ether\\n /// @param amount amount to withdraw\\n // solhint-disable-next-line no-simple-event-func-name\\n function withdraw(uint amount) public {\\n /* only issuer can do this */\\n require(msg.sender == issuer, \\\"not issuer\\\");\\n /* ensure we don't take anything from the hard deposit */\\n require(amount <= liquidBalance(), \\\"liquidBalance not sufficient\\\");\\n require(token.transfer(issuer, amount), \\\"transfer failed\\\");\\n }\\n\\n function chequeHash(address chequebook, address beneficiary, uint cumulativePayout)\\n internal pure returns (bytes32) {\\n return keccak256(abi.encode(\\n CHEQUE_TYPEHASH,\\n chequebook,\\n beneficiary,\\n cumulativePayout\\n ));\\n } \\n\\n function cashOutHash(address chequebook, address sender, uint requestPayout, address recipient, uint callerPayout)\\n internal pure returns (bytes32) {\\n return keccak256(abi.encode(\\n CASHOUT_TYPEHASH,\\n chequebook,\\n sender,\\n requestPayout,\\n recipient,\\n callerPayout\\n ));\\n }\\n\\n function customDecreaseTimeoutHash(address chequebook, address beneficiary, uint decreaseTimeout)\\n internal pure returns (bytes32) {\\n return keccak256(abi.encode(\\n CUSTOMDECREASETIMEOUT_TYPEHASH,\\n chequebook,\\n beneficiary,\\n decreaseTimeout\\n ));\\n }\\n}\",\"keccak256\":\"0x7bd0873a5b75bd94a5de127b2e60cb52ebb3a365651e2bb3dba86bcc4134ea6d\",\"license\":\"BSD-3-Clause\"},\"contracts/SimpleSwapFactory.sol\":{\"content\":\"// SPDX-License-Identifier: BSD-3-Clause\\npragma solidity =0.7.6;\\npragma abicoder v2;\\nimport \\\"./ERC20SimpleSwap.sol\\\";\\nimport \\\"@openzeppelin/contracts/proxy/Clones.sol\\\";\\n\\n/**\\n@title Factory contract for SimpleSwap\\n@author The Swarm Authors\\n@notice This contract deploys SimpleSwap contracts\\n*/\\ncontract SimpleSwapFactory {\\n\\n /* event fired on every new SimpleSwap deployment */\\n event SimpleSwapDeployed(address contractAddress);\\n\\n /* mapping to keep track of which contracts were deployed by this factory */\\n mapping (address => bool) public deployedContracts;\\n\\n /* address of the ERC20-token, to be used by the to-be-deployed chequebooks */\\n address public ERC20Address;\\n /* address of the code contract from which all chequebooks are cloned */\\n address public master;\\n\\n constructor(address _ERC20Address) {\\n ERC20Address = _ERC20Address;\\n ERC20SimpleSwap _master = new ERC20SimpleSwap();\\n // set the issuer of the master contract to prevent misuse\\n _master.init(address(1), address(0), 0);\\n master = address(_master);\\n }\\n /**\\n @notice creates a clone of the master SimpleSwap contract\\n @param issuer the issuer of cheques for the new chequebook\\n @param defaultHardDepositTimeoutDuration duration in seconds which by default will be used to reduce hardDeposit allocations\\n @param salt salt to include in create2 to enable the same address to deploy multiple chequebooks\\n */\\n function deploySimpleSwap(address issuer, uint defaultHardDepositTimeoutDuration, bytes32 salt)\\n public returns (address) { \\n address contractAddress = Clones.cloneDeterministic(master, keccak256(abi.encode(msg.sender, salt)));\\n ERC20SimpleSwap(contractAddress).init(issuer, ERC20Address, defaultHardDepositTimeoutDuration);\\n deployedContracts[contractAddress] = true;\\n emit SimpleSwapDeployed(contractAddress);\\n return contractAddress;\\n }\\n}\",\"keccak256\":\"0x9c53f43c46e681f3adfd000d7c82b711edc558149a7d711a7d735d23ceaf8d7c\",\"license\":\"BSD-3-Clause\"}},\"version\":1}", - "bytecode": "0x608060405234801561001057600080fd5b50604051611df2380380611df283398101604081905261002f91610112565b600180546001600160a01b0319166001600160a01b03831617905560405160009061005990610105565b604051809103906000f080158015610075573d6000803e3d6000fd5b506040516343431f6360e11b81529091506001600160a01b038216906386863ec6906100ab906001906000908190600401610140565b600060405180830381600087803b1580156100c557600080fd5b505af11580156100d9573d6000803e3d6000fd5b5050600280546001600160a01b0319166001600160a01b03949094169390931790925550610164915050565b6118e58061050d83390190565b600060208284031215610123578081fd5b81516001600160a01b0381168114610139578182fd5b9392505050565b6001600160a01b039384168152919092166020820152604081019190915260600190565b61039a806101736000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c806315efd8a714610051578063a6021ace1461007a578063c70242ad14610082578063ee97f7f3146100a2575b600080fd5b61006461005f3660046102d6565b6100aa565b6040516100719190610308565b60405180910390f35b6100646101bb565b6100956100903660046102b5565b6101ca565b6040516100719190610359565b6100646101df565b60025460405160009182916100ee916001600160a01b0316906100d3903390879060200161031c565b604051602081830303815290604052805190602001206101ee565b6001546040516343431f6360e11b81529192506001600160a01b03808416926386863ec692610126928a929116908990600401610335565b600060405180830381600087803b15801561014057600080fd5b505af1158015610154573d6000803e3d6000fd5b5050506001600160a01b03821660009081526020819052604090819020805460ff19166001179055517fc0ffc525a1c7689549d7f79b49eca900e61ac49b43d977f680bcc3b36224c00491506101ab908390610308565b60405180910390a1949350505050565b6001546001600160a01b031681565b60006020819052908152604090205460ff1681565b6002546001600160a01b031681565b6000604051733d602d80600a3d3981f3363d3d373d3d3d363d7360601b81528360601b60148201526e5af43d82803e903d91602b57fd5bf360881b6028820152826037826000f59150506001600160a01b038116610293576040805162461bcd60e51b815260206004820152601760248201527f455243313136373a2063726561746532206661696c6564000000000000000000604482015290519081900360640190fd5b92915050565b80356001600160a01b03811681146102b057600080fd5b919050565b6000602082840312156102c6578081fd5b6102cf82610299565b9392505050565b6000806000606084860312156102ea578182fd5b6102f384610299565b95602085013595506040909401359392505050565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b90151581526020019056fea2646970667358221220b260612b64b2388a58a0d557b99cc9121129d7c5aaa1c649d70eac8f0870b29c64736f6c63430007060033608060405234801561001057600080fd5b506118c5806100206000396000f3fe608060405234801561001057600080fd5b506004361061014d5760003560e01c8063946f46a2116100c3578063b7ec1a331161007c578063b7ec1a331461027f578063c49f91d314610287578063c76a4d311461028f578063d4c9a8e8146102a2578063e0bcf13a146102b5578063fc0c546a146102bd5761014d565b8063946f46a214610211578063b6343b0d14610224578063b648b41714610247578063b69ef8a81461025c578063b777035014610264578063b7998907146102775761014d565b80631d143848116101155780631d143848146101a85780632e1a7d4d146101bd578063338f3fed146101d0578063488b017c146101e357806381f03fcb146101eb57806386863ec6146101fe5761014d565b80630d5f26591461015257806312101021146101675780631357e1dc1461018557806315c3343f1461018d5780631633fb1d14610195575b600080fd5b61016561016036600461146b565b6102c5565b005b61016f6102d8565b60405161017c9190611563565b60405180910390f35b61016f6102de565b61016f6102e4565b6101656101a33660046113ae565b610308565b6101b061036c565b60405161017c919061152b565b6101656101cb3660046114e0565b61037b565b6101656101de366004611442565b610473565b61016f610556565b61016f6101f9366004611359565b61057a565b61016561020c366004611373565b61058c565b61016561021f366004611359565b610610565b610237610232366004611359565b6106d0565b60405161017c94939291906115c7565b61024f6106f7565b60405161017c9190611558565b61016f610707565b610165610272366004611442565b61078d565b61016f610867565b61016f61088b565b61016f6108a1565b61016f61029d366004611359565b6108c5565b6101656102b036600461146b565b6108f8565b61016f6109b4565b6101b06109ba565b6102d33384846000856109c9565b505050565b60005481565b60035481565b7f48ebe6deff4a5ee645c01506a026031e2a945d6f41f1f4e5098ad65347492c1281565b61031e6103183033878987610dd2565b84610e30565b6001600160a01b0316866001600160a01b0316146103575760405162461bcd60e51b815260040161034e906117d5565b60405180910390fd5b61036486868685856109c9565b505050505050565b6006546001600160a01b031681565b6006546001600160a01b031633146103a55760405162461bcd60e51b815260040161034e906115e2565b6103ad61088b565b8111156103cc5760405162461bcd60e51b815260040161034e90611695565b60015460065460405163a9059cbb60e01b81526001600160a01b039283169263a9059cbb9261040292911690859060040161153f565b602060405180830381600087803b15801561041c57600080fd5b505af1158015610430573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061045491906114c0565b6104705760405162461bcd60e51b815260040161034e9061180c565b50565b6006546001600160a01b0316331461049d5760405162461bcd60e51b815260040161034e90611665565b6104a5610707565b6005546104b29083610e7f565b11156104d05760405162461bcd60e51b815260040161034e90611730565b6001600160a01b038216600090815260046020526040902080546104f49083610e7f565b81556005546105039083610e7f565b6005556000600382015580546040516001600160a01b038516917f2506c43272ded05d095b91dbba876e66e46888157d3e078db5691496e96c5fad916105499190611563565b60405180910390a2505050565b7f7d824962dd0f01520922ea1766c987b1db570cd5db90bdba5ccf5e320607950281565b60026020526000908152604090205481565b6001600160a01b0383166105b25760405162461bcd60e51b815260040161034e9061163d565b6006546001600160a01b0316156105db5760405162461bcd60e51b815260040161034e906116cc565b600680546001600160a01b039485166001600160a01b0319918216179091556001805493909416921691909117909155600055565b6001600160a01b03811660009081526004602052604090206003810154421080159061063f5750600381015415155b61065b5760405162461bcd60e51b815260040161034e90611606565b6001810154815461066b91610ee0565b815560006003820155600181015460055461068591610ee0565b60055580546040516001600160a01b038416917f2506c43272ded05d095b91dbba876e66e46888157d3e078db5691496e96c5fad916106c49190611563565b60405180910390a25050565b60046020526000908152604090208054600182015460028301546003909301549192909184565b600654600160a01b900460ff1681565b6001546040516370a0823160e01b81526000916001600160a01b0316906370a082319061073890309060040161152b565b60206040518083038186803b15801561075057600080fd5b505afa158015610764573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061078891906114f8565b905090565b6006546001600160a01b031633146107b75760405162461bcd60e51b815260040161034e90611665565b6001600160a01b038216600090815260046020526040902080548211156107f05760405162461bcd60e51b815260040161034e906116f9565b6000816002015460001461080857816002015461080c565b6000545b4281016003840155600183018490556040519091506001600160a01b038516907fc8305077b495025ec4c1d977b176a762c350bb18cad4666ce1ee85c32b78698a90610859908690611563565b60405180910390a250505050565b7fe95f353750f192082df064ca5142d3a2d6f0bef0f3ffad66d80d8af86b7a749a81565b600061078860055461089b610707565b90610ee0565b7fc2f8787176b8ac6bf7215b4adcc1e069bf4ab82d9ab1df05a57a91d425935b6e81565b6001600160a01b0381166000908152600460205260408120546108f0906108ea61088b565b90610e7f565b90505b919050565b6006546001600160a01b031633146109225760405162461bcd60e51b815260040161034e906115e2565b610936610930308585610f3d565b82610e30565b6001600160a01b0316836001600160a01b0316146109665760405162461bcd60e51b815260040161034e906117d5565b6001600160a01b03831660008181526004602052604090819020600201849055517f7b816003a769eb718bd9c66bdbd2dd5827da3f92bc6645276876bd7957b08cf090610549908590611563565b60055481565b6001546001600160a01b031681565b6006546001600160a01b03163314610a16576109e9610930308786610f95565b6006546001600160a01b03908116911614610a165760405162461bcd60e51b815260040161034e9061179e565b6001600160a01b038516600090815260026020526040812054610a3a908590610ee0565b90506000610a5082610a4b896108c5565b610fce565b6001600160a01b03881660009081526004602052604081205491925090610a78908390610fce565b905084821015610a9a5760405162461bcd60e51b815260040161034e90611767565b8015610aed576001600160a01b038816600090815260046020526040902054610ac39082610ee0565b6001600160a01b038916600090815260046020526040902055600554610ae99082610ee0565b6005555b6001600160a01b038816600090815260026020526040902054610b109083610e7f565b6001600160a01b038916600090815260026020526040902055600354610b369083610e7f565b600355828214610b7d576006805460ff60a01b1916600160a01b1790556040517f3f4449c047e11092ec54dc0751b6b4817a9162745de856c893a26e611d18ffc490600090a15b8415610ccf5760015460405163a9059cbb60e01b81526001600160a01b039091169063a9059cbb90610bb5903390899060040161153f565b602060405180830381600087803b158015610bcf57600080fd5b505af1158015610be3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c0791906114c0565b610c235760405162461bcd60e51b815260040161034e9061180c565b6001546001600160a01b031663a9059cbb88610c3f8589610ee0565b6040518363ffffffff1660e01b8152600401610c5c92919061153f565b602060405180830381600087803b158015610c7657600080fd5b505af1158015610c8a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cae91906114c0565b610cca5760405162461bcd60e51b815260040161034e9061180c565b610d6f565b60015460405163a9059cbb60e01b81526001600160a01b039091169063a9059cbb90610d01908a90869060040161153f565b602060405180830381600087803b158015610d1b57600080fd5b505af1158015610d2f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d5391906114c0565b610d6f5760405162461bcd60e51b815260040161034e9061180c565b336001600160a01b0316876001600160a01b0316896001600160a01b03167f950494fc3642fae5221b6c32e0e45765c95ebb382a04a71b160db0843e74c99f858a8a604051610dc093929190611835565b60405180910390a45050505050505050565b60007f7d824962dd0f01520922ea1766c987b1db570cd5db90bdba5ccf5e32060795028686868686604051602001610e0f96959493929190611591565b60405160208183030381529060405280519060200120905095945050505050565b600080610e43610e3e610fe4565b61103e565b84604051602001610e55929190611510565b604051602081830303815290604052805190602001209050610e7781846110ae565b949350505050565b600082820183811015610ed9576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b600082821115610f37576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b60007fe95f353750f192082df064ca5142d3a2d6f0bef0f3ffad66d80d8af86b7a749a848484604051602001610f76949392919061156c565b6040516020818303038152906040528051906020012090509392505050565b60007f48ebe6deff4a5ee645c01506a026031e2a945d6f41f1f4e5098ad65347492c12848484604051602001610f76949392919061156c565b6000818310610fdd5781610ed9565b5090919050565b610fec6112ac565b506040805160a081018252600a6060820190815269436865717565626f6f6b60b01b608083015281528151808301835260038152620312e360ec1b602082810191909152820152469181019190915290565b60007fc2f8787176b8ac6bf7215b4adcc1e069bf4ab82d9ab1df05a57a91d425935b6e826000015180519060200120836020015180519060200120846040015160405160200161109194939291906115c7565b604051602081830303815290604052805190602001209050919050565b60008151604114611106576040805162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015290519081900360640190fd5b60208201516040830151606084015160001a6111248682858561112e565b9695505050505050565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a082111561118f5760405162461bcd60e51b815260040180806020018281038252602281526020018061184c6022913960400191505060405180910390fd5b8360ff16601b14806111a457508360ff16601c145b6111df5760405162461bcd60e51b815260040180806020018281038252602281526020018061186e6022913960400191505060405180910390fd5b600060018686868660405160008152602001604052604051808581526020018460ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa15801561123b573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166112a3576040805162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015290519081900360640190fd5b95945050505050565b60405180606001604052806060815260200160608152602001600081525090565b80356001600160a01b03811681146108f357600080fd5b600082601f8301126112f4578081fd5b813567ffffffffffffffff8082111561130957fe5b604051601f8301601f19168101602001828111828210171561132757fe5b60405282815284830160200186101561133e578384fd5b82602086016020830137918201602001929092529392505050565b60006020828403121561136a578081fd5b610ed9826112cd565b600080600060608486031215611387578182fd5b611390846112cd565b925061139e602085016112cd565b9150604084013590509250925092565b60008060008060008060c087890312156113c6578182fd5b6113cf876112cd565b95506113dd602088016112cd565b945060408701359350606087013567ffffffffffffffff80821115611400578384fd5b61140c8a838b016112e4565b94506080890135935060a0890135915080821115611428578283fd5b5061143589828a016112e4565b9150509295509295509295565b60008060408385031215611454578182fd5b61145d836112cd565b946020939093013593505050565b60008060006060848603121561147f578283fd5b611488846112cd565b925060208401359150604084013567ffffffffffffffff8111156114aa578182fd5b6114b6868287016112e4565b9150509250925092565b6000602082840312156114d1578081fd5b81518015158114610ed9578182fd5b6000602082840312156114f1578081fd5b5035919050565b600060208284031215611509578081fd5b5051919050565b61190160f01b81526002810192909252602282015260420190565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b901515815260200190565b90815260200190565b9384526001600160a01b03928316602085015291166040830152606082015260800190565b9586526001600160a01b03948516602087015292841660408601526060850191909152909116608083015260a082015260c00190565b93845260208401929092526040830152606082015260800190565b6020808252600a90820152693737ba1034b9b9bab2b960b11b604082015260600190565b60208082526019908201527f6465706f736974206e6f74207965742074696d6564206f757400000000000000604082015260600190565b6020808252600e908201526d34b73b30b634b21034b9b9bab2b960911b604082015260600190565b60208082526016908201527529b4b6b83632a9bbb0b81d103737ba1034b9b9bab2b960511b604082015260600190565b6020808252601c908201527f6c697175696442616c616e6365206e6f742073756666696369656e7400000000604082015260600190565b602080825260139082015272185b1c9958591e481a5b9a5d1a585b1a5e9959606a1b604082015260600190565b6020808252601b908201527f68617264206465706f736974206e6f742073756666696369656e740000000000604082015260600190565b6020808252601c908201527f68617264206465706f73697420657863656564732062616c616e636500000000604082015260600190565b6020808252601d908201527f53696d706c65537761703a2063616e6e6f74207061792063616c6c6572000000604082015260600190565b60208082526018908201527f696e76616c696420697373756572207369676e61747572650000000000000000604082015260600190565b6020808252601d908201527f696e76616c69642062656e6566696369617279207369676e6174757265000000604082015260600190565b6020808252600f908201526e1d1c985b9cd9995c8819985a5b1959608a1b604082015260600190565b928352602083019190915260408201526060019056fe45434453413a20696e76616c6964207369676e6174757265202773272076616c756545434453413a20696e76616c6964207369676e6174757265202776272076616c7565a2646970667358221220b270820590249f6db00f7142812273c92ea84cea0862f4083a5c75edd08f437264736f6c63430007060033", - "deployedBytecode": "0x608060405234801561001057600080fd5b506004361061004c5760003560e01c806315efd8a714610051578063a6021ace1461007a578063c70242ad14610082578063ee97f7f3146100a2575b600080fd5b61006461005f3660046102d6565b6100aa565b6040516100719190610308565b60405180910390f35b6100646101bb565b6100956100903660046102b5565b6101ca565b6040516100719190610359565b6100646101df565b60025460405160009182916100ee916001600160a01b0316906100d3903390879060200161031c565b604051602081830303815290604052805190602001206101ee565b6001546040516343431f6360e11b81529192506001600160a01b03808416926386863ec692610126928a929116908990600401610335565b600060405180830381600087803b15801561014057600080fd5b505af1158015610154573d6000803e3d6000fd5b5050506001600160a01b03821660009081526020819052604090819020805460ff19166001179055517fc0ffc525a1c7689549d7f79b49eca900e61ac49b43d977f680bcc3b36224c00491506101ab908390610308565b60405180910390a1949350505050565b6001546001600160a01b031681565b60006020819052908152604090205460ff1681565b6002546001600160a01b031681565b6000604051733d602d80600a3d3981f3363d3d373d3d3d363d7360601b81528360601b60148201526e5af43d82803e903d91602b57fd5bf360881b6028820152826037826000f59150506001600160a01b038116610293576040805162461bcd60e51b815260206004820152601760248201527f455243313136373a2063726561746532206661696c6564000000000000000000604482015290519081900360640190fd5b92915050565b80356001600160a01b03811681146102b057600080fd5b919050565b6000602082840312156102c6578081fd5b6102cf82610299565b9392505050565b6000806000606084860312156102ea578182fd5b6102f384610299565b95602085013595506040909401359392505050565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b90151581526020019056fea2646970667358221220b260612b64b2388a58a0d557b99cc9121129d7c5aaa1c649d70eac8f0870b29c64736f6c63430007060033", + "numDeployments": 4, + "solcInputHash": "0eaea2bdf31aa57088976e75cb520201", + "metadata": "{\"compiler\":{\"version\":\"0.7.6+commit.7338295f\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_ERC20Address\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"contractAddress\",\"type\":\"address\"}],\"name\":\"SimpleSwapDeployed\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"ERC20Address\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"issuer\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"defaultHardDepositTimeoutDuration\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"salt\",\"type\":\"bytes32\"}],\"name\":\"deploySimpleSwap\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"deployedContracts\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"master\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"issuer\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"defaultHardDepositTimeoutDuration\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"salt\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"_master\",\"type\":\"address\"}],\"name\":\"migrateSimpleSwap\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"author\":\"The Swarm Authors\",\"kind\":\"dev\",\"methods\":{\"deploySimpleSwap(address,uint256,bytes32)\":{\"params\":{\"defaultHardDepositTimeoutDuration\":\"duration in seconds which by default will be used to reduce hardDeposit allocations\",\"issuer\":\"the issuer of cheques for the new chequebook\",\"salt\":\"salt to include in create2 to enable the same address to deploy multiple chequebooks\"}},\"migrateSimpleSwap(address,uint256,bytes32,address)\":{\"params\":{\"defaultHardDepositTimeoutDuration\":\"duration in seconds which by default will be used to reduce hardDeposit allocations\",\"issuer\":\"the issuer of cheques for the new chequebook\",\"salt\":\"salt to include in create2 to enable the same address to deploy multiple chequebooks\"}}},\"title\":\"Factory contract for SimpleSwap\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"deploySimpleSwap(address,uint256,bytes32)\":{\"notice\":\"creates a clone of the master SimpleSwap contract\"},\"migrateSimpleSwap(address,uint256,bytes32,address)\":{\"notice\":\"migrates a clone of a master SimpleSwap contract\"}},\"notice\":\"This contract deploys SimpleSwap contracts\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/SimpleSwapFactory.sol\":\"SimpleSwapFactory\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts/access/AccessControl.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity >=0.6.0 <0.8.0;\\n\\nimport \\\"../utils/EnumerableSet.sol\\\";\\nimport \\\"../utils/Address.sol\\\";\\nimport \\\"../utils/Context.sol\\\";\\n\\n/**\\n * @dev Contract module that allows children to implement role-based access\\n * control mechanisms.\\n *\\n * Roles are referred to by their `bytes32` identifier. These should be exposed\\n * in the external API and be unique. The best way to achieve this is by\\n * using `public constant` hash digests:\\n *\\n * ```\\n * bytes32 public constant MY_ROLE = keccak256(\\\"MY_ROLE\\\");\\n * ```\\n *\\n * Roles can be used to represent a set of permissions. To restrict access to a\\n * function call, use {hasRole}:\\n *\\n * ```\\n * function foo() public {\\n * require(hasRole(MY_ROLE, msg.sender));\\n * ...\\n * }\\n * ```\\n *\\n * Roles can be granted and revoked dynamically via the {grantRole} and\\n * {revokeRole} functions. Each role has an associated admin role, and only\\n * accounts that have a role's admin role can call {grantRole} and {revokeRole}.\\n *\\n * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means\\n * that only accounts with this role will be able to grant or revoke other\\n * roles. More complex role relationships can be created by using\\n * {_setRoleAdmin}.\\n *\\n * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to\\n * grant and revoke this role. Extra precautions should be taken to secure\\n * accounts that have been granted it.\\n */\\nabstract contract AccessControl is Context {\\n using EnumerableSet for EnumerableSet.AddressSet;\\n using Address for address;\\n\\n struct RoleData {\\n EnumerableSet.AddressSet members;\\n bytes32 adminRole;\\n }\\n\\n mapping (bytes32 => RoleData) private _roles;\\n\\n bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;\\n\\n /**\\n * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`\\n *\\n * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite\\n * {RoleAdminChanged} not being emitted signaling this.\\n *\\n * _Available since v3.1._\\n */\\n event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);\\n\\n /**\\n * @dev Emitted when `account` is granted `role`.\\n *\\n * `sender` is the account that originated the contract call, an admin role\\n * bearer except when using {_setupRole}.\\n */\\n event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Emitted when `account` is revoked `role`.\\n *\\n * `sender` is the account that originated the contract call:\\n * - if using `revokeRole`, it is the admin role bearer\\n * - if using `renounceRole`, it is the role bearer (i.e. `account`)\\n */\\n event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Returns `true` if `account` has been granted `role`.\\n */\\n function hasRole(bytes32 role, address account) public view returns (bool) {\\n return _roles[role].members.contains(account);\\n }\\n\\n /**\\n * @dev Returns the number of accounts that have `role`. Can be used\\n * together with {getRoleMember} to enumerate all bearers of a role.\\n */\\n function getRoleMemberCount(bytes32 role) public view returns (uint256) {\\n return _roles[role].members.length();\\n }\\n\\n /**\\n * @dev Returns one of the accounts that have `role`. `index` must be a\\n * value between 0 and {getRoleMemberCount}, non-inclusive.\\n *\\n * Role bearers are not sorted in any particular way, and their ordering may\\n * change at any point.\\n *\\n * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure\\n * you perform all queries on the same block. See the following\\n * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]\\n * for more information.\\n */\\n function getRoleMember(bytes32 role, uint256 index) public view returns (address) {\\n return _roles[role].members.at(index);\\n }\\n\\n /**\\n * @dev Returns the admin role that controls `role`. See {grantRole} and\\n * {revokeRole}.\\n *\\n * To change a role's admin, use {_setRoleAdmin}.\\n */\\n function getRoleAdmin(bytes32 role) public view returns (bytes32) {\\n return _roles[role].adminRole;\\n }\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function grantRole(bytes32 role, address account) public virtual {\\n require(hasRole(_roles[role].adminRole, _msgSender()), \\\"AccessControl: sender must be an admin to grant\\\");\\n\\n _grantRole(role, account);\\n }\\n\\n /**\\n * @dev Revokes `role` from `account`.\\n *\\n * If `account` had been granted `role`, emits a {RoleRevoked} event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function revokeRole(bytes32 role, address account) public virtual {\\n require(hasRole(_roles[role].adminRole, _msgSender()), \\\"AccessControl: sender must be an admin to revoke\\\");\\n\\n _revokeRole(role, account);\\n }\\n\\n /**\\n * @dev Revokes `role` from the calling account.\\n *\\n * Roles are often managed via {grantRole} and {revokeRole}: this function's\\n * purpose is to provide a mechanism for accounts to lose their privileges\\n * if they are compromised (such as when a trusted device is misplaced).\\n *\\n * If the calling account had been granted `role`, emits a {RoleRevoked}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must be `account`.\\n */\\n function renounceRole(bytes32 role, address account) public virtual {\\n require(account == _msgSender(), \\\"AccessControl: can only renounce roles for self\\\");\\n\\n _revokeRole(role, account);\\n }\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\n * event. Note that unlike {grantRole}, this function doesn't perform any\\n * checks on the calling account.\\n *\\n * [WARNING]\\n * ====\\n * This function should only be called from the constructor when setting\\n * up the initial roles for the system.\\n *\\n * Using this function in any other way is effectively circumventing the admin\\n * system imposed by {AccessControl}.\\n * ====\\n */\\n function _setupRole(bytes32 role, address account) internal virtual {\\n _grantRole(role, account);\\n }\\n\\n /**\\n * @dev Sets `adminRole` as ``role``'s admin role.\\n *\\n * Emits a {RoleAdminChanged} event.\\n */\\n function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {\\n emit RoleAdminChanged(role, _roles[role].adminRole, adminRole);\\n _roles[role].adminRole = adminRole;\\n }\\n\\n function _grantRole(bytes32 role, address account) private {\\n if (_roles[role].members.add(account)) {\\n emit RoleGranted(role, account, _msgSender());\\n }\\n }\\n\\n function _revokeRole(bytes32 role, address account) private {\\n if (_roles[role].members.remove(account)) {\\n emit RoleRevoked(role, account, _msgSender());\\n }\\n }\\n}\\n\",\"keccak256\":\"0x4fc155a2f7837603d69a13cfa481eb5e7f5e02cb77e2ec9edbac30986db37988\",\"license\":\"MIT\"},\"@openzeppelin/contracts/cryptography/ECDSA.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity >=0.6.0 <0.8.0;\\n\\n/**\\n * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.\\n *\\n * These functions can be used to verify that a message was signed by the holder\\n * of the private keys of a given address.\\n */\\nlibrary ECDSA {\\n /**\\n * @dev Returns the address that signed a hashed message (`hash`) with\\n * `signature`. This address can then be used for verification purposes.\\n *\\n * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:\\n * this function rejects them by requiring the `s` value to be in the lower\\n * half order, and the `v` value to be either 27 or 28.\\n *\\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\\n * verification to be secure: it is possible to craft signatures that\\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\\n * this is by receiving a hash of the original message (which may otherwise\\n * be too long), and then calling {toEthSignedMessageHash} on it.\\n */\\n function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {\\n // Check the signature length\\n if (signature.length != 65) {\\n revert(\\\"ECDSA: invalid signature length\\\");\\n }\\n\\n // Divide the signature in r, s and v variables\\n bytes32 r;\\n bytes32 s;\\n uint8 v;\\n\\n // ecrecover takes the signature parameters, and the only way to get them\\n // currently is to use assembly.\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n r := mload(add(signature, 0x20))\\n s := mload(add(signature, 0x40))\\n v := byte(0, mload(add(signature, 0x60)))\\n }\\n\\n return recover(hash, v, r, s);\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-recover-bytes32-bytes-} that receives the `v`,\\n * `r` and `s` signature fields separately.\\n */\\n function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) {\\n // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature\\n // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines\\n // the valid range for s in (281): 0 < s < secp256k1n \\u00f7 2 + 1, and for v in (282): v \\u2208 {27, 28}. Most\\n // signatures from current libraries generate a unique signature with an s-value in the lower half order.\\n //\\n // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value\\n // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or\\n // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept\\n // these malleable signatures as well.\\n require(uint256(s) <= 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0, \\\"ECDSA: invalid signature 's' value\\\");\\n require(v == 27 || v == 28, \\\"ECDSA: invalid signature 'v' value\\\");\\n\\n // If the signature is valid (and not malleable), return the signer address\\n address signer = ecrecover(hash, v, r, s);\\n require(signer != address(0), \\\"ECDSA: invalid signature\\\");\\n\\n return signer;\\n }\\n\\n /**\\n * @dev Returns an Ethereum Signed Message, created from a `hash`. This\\n * replicates the behavior of the\\n * https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_sign[`eth_sign`]\\n * JSON-RPC method.\\n *\\n * See {recover}.\\n */\\n function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {\\n // 32 is the length in bytes of hash,\\n // enforced by the type signature above\\n return keccak256(abi.encodePacked(\\\"\\\\x19Ethereum Signed Message:\\\\n32\\\", hash));\\n }\\n}\\n\",\"keccak256\":\"0x94c4719c16ffb96dd3cdc68f6fbf78105153018adbf382241821e8188e6a4bd5\",\"license\":\"MIT\"},\"@openzeppelin/contracts/math/Math.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity >=0.6.0 <0.8.0;\\n\\n/**\\n * @dev Standard math utilities missing in the Solidity language.\\n */\\nlibrary Math {\\n /**\\n * @dev Returns the largest of two numbers.\\n */\\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a >= b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the smallest of two numbers.\\n */\\n function min(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a < b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the average of two numbers. The result is rounded towards\\n * zero.\\n */\\n function average(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b) / 2 can overflow, so we distribute\\n return (a / 2) + (b / 2) + ((a % 2 + b % 2) / 2);\\n }\\n}\\n\",\"keccak256\":\"0x363bd3b45201f07c9b71c2edc96533468cf14a3d029fabd82fddceb1eb3ebd9c\",\"license\":\"MIT\"},\"@openzeppelin/contracts/math/SafeMath.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity >=0.6.0 <0.8.0;\\n\\n/**\\n * @dev Wrappers over Solidity's arithmetic operations with added overflow\\n * checks.\\n *\\n * Arithmetic operations in Solidity wrap on overflow. This can easily result\\n * in bugs, because programmers usually assume that an overflow raises an\\n * error, which is the standard behavior in high level programming languages.\\n * `SafeMath` restores this intuition by reverting the transaction when an\\n * operation overflows.\\n *\\n * Using this library instead of the unchecked operations eliminates an entire\\n * class of bugs, so it's recommended to use it always.\\n */\\nlibrary SafeMath {\\n /**\\n * @dev Returns the addition of two unsigned integers, with an overflow flag.\\n *\\n * _Available since v3.4._\\n */\\n function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n uint256 c = a + b;\\n if (c < a) return (false, 0);\\n return (true, c);\\n }\\n\\n /**\\n * @dev Returns the substraction of two unsigned integers, with an overflow flag.\\n *\\n * _Available since v3.4._\\n */\\n function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n if (b > a) return (false, 0);\\n return (true, a - b);\\n }\\n\\n /**\\n * @dev Returns the multiplication of two unsigned integers, with an overflow flag.\\n *\\n * _Available since v3.4._\\n */\\n function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n // Gas optimization: this is cheaper than requiring 'a' not being zero, but the\\n // benefit is lost if 'b' is also tested.\\n // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522\\n if (a == 0) return (true, 0);\\n uint256 c = a * b;\\n if (c / a != b) return (false, 0);\\n return (true, c);\\n }\\n\\n /**\\n * @dev Returns the division of two unsigned integers, with a division by zero flag.\\n *\\n * _Available since v3.4._\\n */\\n function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n if (b == 0) return (false, 0);\\n return (true, a / b);\\n }\\n\\n /**\\n * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.\\n *\\n * _Available since v3.4._\\n */\\n function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n if (b == 0) return (false, 0);\\n return (true, a % b);\\n }\\n\\n /**\\n * @dev Returns the addition of two unsigned integers, reverting on\\n * overflow.\\n *\\n * Counterpart to Solidity's `+` operator.\\n *\\n * Requirements:\\n *\\n * - Addition cannot overflow.\\n */\\n function add(uint256 a, uint256 b) internal pure returns (uint256) {\\n uint256 c = a + b;\\n require(c >= a, \\\"SafeMath: addition overflow\\\");\\n return c;\\n }\\n\\n /**\\n * @dev Returns the subtraction of two unsigned integers, reverting on\\n * overflow (when the result is negative).\\n *\\n * Counterpart to Solidity's `-` operator.\\n *\\n * Requirements:\\n *\\n * - Subtraction cannot overflow.\\n */\\n function sub(uint256 a, uint256 b) internal pure returns (uint256) {\\n require(b <= a, \\\"SafeMath: subtraction overflow\\\");\\n return a - b;\\n }\\n\\n /**\\n * @dev Returns the multiplication of two unsigned integers, reverting on\\n * overflow.\\n *\\n * Counterpart to Solidity's `*` operator.\\n *\\n * Requirements:\\n *\\n * - Multiplication cannot overflow.\\n */\\n function mul(uint256 a, uint256 b) internal pure returns (uint256) {\\n if (a == 0) return 0;\\n uint256 c = a * b;\\n require(c / a == b, \\\"SafeMath: multiplication overflow\\\");\\n return c;\\n }\\n\\n /**\\n * @dev Returns the integer division of two unsigned integers, reverting on\\n * division by zero. The result is rounded towards zero.\\n *\\n * Counterpart to Solidity's `/` operator. Note: this function uses a\\n * `revert` opcode (which leaves remaining gas untouched) while Solidity\\n * uses an invalid opcode to revert (consuming all remaining gas).\\n *\\n * Requirements:\\n *\\n * - The divisor cannot be zero.\\n */\\n function div(uint256 a, uint256 b) internal pure returns (uint256) {\\n require(b > 0, \\\"SafeMath: division by zero\\\");\\n return a / b;\\n }\\n\\n /**\\n * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),\\n * reverting when dividing by zero.\\n *\\n * Counterpart to Solidity's `%` operator. This function uses a `revert`\\n * opcode (which leaves remaining gas untouched) while Solidity uses an\\n * invalid opcode to revert (consuming all remaining gas).\\n *\\n * Requirements:\\n *\\n * - The divisor cannot be zero.\\n */\\n function mod(uint256 a, uint256 b) internal pure returns (uint256) {\\n require(b > 0, \\\"SafeMath: modulo by zero\\\");\\n return a % b;\\n }\\n\\n /**\\n * @dev Returns the subtraction of two unsigned integers, reverting with custom message on\\n * overflow (when the result is negative).\\n *\\n * CAUTION: This function is deprecated because it requires allocating memory for the error\\n * message unnecessarily. For custom revert reasons use {trySub}.\\n *\\n * Counterpart to Solidity's `-` operator.\\n *\\n * Requirements:\\n *\\n * - Subtraction cannot overflow.\\n */\\n function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {\\n require(b <= a, errorMessage);\\n return a - b;\\n }\\n\\n /**\\n * @dev Returns the integer division of two unsigned integers, reverting with custom message on\\n * division by zero. The result is rounded towards zero.\\n *\\n * CAUTION: This function is deprecated because it requires allocating memory for the error\\n * message unnecessarily. For custom revert reasons use {tryDiv}.\\n *\\n * Counterpart to Solidity's `/` operator. Note: this function uses a\\n * `revert` opcode (which leaves remaining gas untouched) while Solidity\\n * uses an invalid opcode to revert (consuming all remaining gas).\\n *\\n * Requirements:\\n *\\n * - The divisor cannot be zero.\\n */\\n function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {\\n require(b > 0, errorMessage);\\n return a / b;\\n }\\n\\n /**\\n * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),\\n * reverting with custom message when dividing by zero.\\n *\\n * CAUTION: This function is deprecated because it requires allocating memory for the error\\n * message unnecessarily. For custom revert reasons use {tryMod}.\\n *\\n * Counterpart to Solidity's `%` operator. This function uses a `revert`\\n * opcode (which leaves remaining gas untouched) while Solidity uses an\\n * invalid opcode to revert (consuming all remaining gas).\\n *\\n * Requirements:\\n *\\n * - The divisor cannot be zero.\\n */\\n function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {\\n require(b > 0, errorMessage);\\n return a % b;\\n }\\n}\\n\",\"keccak256\":\"0xcc78a17dd88fa5a2edc60c8489e2f405c0913b377216a5b26b35656b2d0dab52\",\"license\":\"MIT\"},\"@openzeppelin/contracts/presets/ERC20PresetMinterPauser.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity >=0.6.0 <0.8.0;\\n\\nimport \\\"../access/AccessControl.sol\\\";\\nimport \\\"../utils/Context.sol\\\";\\nimport \\\"../token/ERC20/ERC20.sol\\\";\\nimport \\\"../token/ERC20/ERC20Burnable.sol\\\";\\nimport \\\"../token/ERC20/ERC20Pausable.sol\\\";\\n\\n/**\\n * @dev {ERC20} token, including:\\n *\\n * - ability for holders to burn (destroy) their tokens\\n * - a minter role that allows for token minting (creation)\\n * - a pauser role that allows to stop all token transfers\\n *\\n * This contract uses {AccessControl} to lock permissioned functions using the\\n * different roles - head to its documentation for details.\\n *\\n * The account that deploys the contract will be granted the minter and pauser\\n * roles, as well as the default admin role, which will let it grant both minter\\n * and pauser roles to other accounts.\\n */\\ncontract ERC20PresetMinterPauser is Context, AccessControl, ERC20Burnable, ERC20Pausable {\\n bytes32 public constant MINTER_ROLE = keccak256(\\\"MINTER_ROLE\\\");\\n bytes32 public constant PAUSER_ROLE = keccak256(\\\"PAUSER_ROLE\\\");\\n\\n /**\\n * @dev Grants `DEFAULT_ADMIN_ROLE`, `MINTER_ROLE` and `PAUSER_ROLE` to the\\n * account that deploys the contract.\\n *\\n * See {ERC20-constructor}.\\n */\\n constructor(string memory name, string memory symbol) public ERC20(name, symbol) {\\n _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());\\n\\n _setupRole(MINTER_ROLE, _msgSender());\\n _setupRole(PAUSER_ROLE, _msgSender());\\n }\\n\\n /**\\n * @dev Creates `amount` new tokens for `to`.\\n *\\n * See {ERC20-_mint}.\\n *\\n * Requirements:\\n *\\n * - the caller must have the `MINTER_ROLE`.\\n */\\n function mint(address to, uint256 amount) public virtual {\\n require(hasRole(MINTER_ROLE, _msgSender()), \\\"ERC20PresetMinterPauser: must have minter role to mint\\\");\\n _mint(to, amount);\\n }\\n\\n /**\\n * @dev Pauses all token transfers.\\n *\\n * See {ERC20Pausable} and {Pausable-_pause}.\\n *\\n * Requirements:\\n *\\n * - the caller must have the `PAUSER_ROLE`.\\n */\\n function pause() public virtual {\\n require(hasRole(PAUSER_ROLE, _msgSender()), \\\"ERC20PresetMinterPauser: must have pauser role to pause\\\");\\n _pause();\\n }\\n\\n /**\\n * @dev Unpauses all token transfers.\\n *\\n * See {ERC20Pausable} and {Pausable-_unpause}.\\n *\\n * Requirements:\\n *\\n * - the caller must have the `PAUSER_ROLE`.\\n */\\n function unpause() public virtual {\\n require(hasRole(PAUSER_ROLE, _msgSender()), \\\"ERC20PresetMinterPauser: must have pauser role to unpause\\\");\\n _unpause();\\n }\\n\\n function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual override(ERC20, ERC20Pausable) {\\n super._beforeTokenTransfer(from, to, amount);\\n }\\n}\\n\",\"keccak256\":\"0xa7c607ed4a0b2bebb811a398838ce4b5165e490f420a06337478eb2ba8c90cfc\",\"license\":\"MIT\"},\"@openzeppelin/contracts/proxy/Clones.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity >=0.6.0 <0.8.0;\\n\\n/**\\n * @dev https://eips.ethereum.org/EIPS/eip-1167[EIP 1167] is a standard for\\n * deploying minimal proxy contracts, also known as \\\"clones\\\".\\n *\\n * > To simply and cheaply clone contract functionality in an immutable way, this standard specifies\\n * > a minimal bytecode implementation that delegates all calls to a known, fixed address.\\n *\\n * The library includes functions to deploy a proxy using either `create` (traditional deployment) or `create2`\\n * (salted deterministic deployment). It also includes functions to predict the addresses of clones deployed using the\\n * deterministic method.\\n *\\n * _Available since v3.4._\\n */\\nlibrary Clones {\\n /**\\n * @dev Deploys and returns the address of a clone that mimics the behaviour of `master`.\\n *\\n * This function uses the create opcode, which should never revert.\\n */\\n function clone(address master) internal returns (address instance) {\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let ptr := mload(0x40)\\n mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000)\\n mstore(add(ptr, 0x14), shl(0x60, master))\\n mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000)\\n instance := create(0, ptr, 0x37)\\n }\\n require(instance != address(0), \\\"ERC1167: create failed\\\");\\n }\\n\\n /**\\n * @dev Deploys and returns the address of a clone that mimics the behaviour of `master`.\\n *\\n * This function uses the create2 opcode and a `salt` to deterministically deploy\\n * the clone. Using the same `master` and `salt` multiple time will revert, since\\n * the clones cannot be deployed twice at the same address.\\n */\\n function cloneDeterministic(address master, bytes32 salt) internal returns (address instance) {\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let ptr := mload(0x40)\\n mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000)\\n mstore(add(ptr, 0x14), shl(0x60, master))\\n mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000)\\n instance := create2(0, ptr, 0x37, salt)\\n }\\n require(instance != address(0), \\\"ERC1167: create2 failed\\\");\\n }\\n\\n /**\\n * @dev Computes the address of a clone deployed using {Clones-cloneDeterministic}.\\n */\\n function predictDeterministicAddress(address master, bytes32 salt, address deployer) internal pure returns (address predicted) {\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let ptr := mload(0x40)\\n mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000)\\n mstore(add(ptr, 0x14), shl(0x60, master))\\n mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf3ff00000000000000000000000000000000)\\n mstore(add(ptr, 0x38), shl(0x60, deployer))\\n mstore(add(ptr, 0x4c), salt)\\n mstore(add(ptr, 0x6c), keccak256(ptr, 0x37))\\n predicted := keccak256(add(ptr, 0x37), 0x55)\\n }\\n }\\n\\n /**\\n * @dev Computes the address of a clone deployed using {Clones-cloneDeterministic}.\\n */\\n function predictDeterministicAddress(address master, bytes32 salt) internal view returns (address predicted) {\\n return predictDeterministicAddress(master, salt, address(this));\\n }\\n}\\n\",\"keccak256\":\"0x0d24348f536f928d8b42789737bf34762faee065667ab530ea20969a9d9920d1\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/ERC20.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity >=0.6.0 <0.8.0;\\n\\nimport \\\"../../utils/Context.sol\\\";\\nimport \\\"./IERC20.sol\\\";\\nimport \\\"../../math/SafeMath.sol\\\";\\n\\n/**\\n * @dev Implementation of the {IERC20} interface.\\n *\\n * This implementation is agnostic to the way tokens are created. This means\\n * that a supply mechanism has to be added in a derived contract using {_mint}.\\n * For a generic mechanism see {ERC20PresetMinterPauser}.\\n *\\n * TIP: For a detailed writeup see our guide\\n * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How\\n * to implement supply mechanisms].\\n *\\n * We have followed general OpenZeppelin guidelines: functions revert instead\\n * of returning `false` on failure. This behavior is nonetheless conventional\\n * and does not conflict with the expectations of ERC20 applications.\\n *\\n * Additionally, an {Approval} event is emitted on calls to {transferFrom}.\\n * This allows applications to reconstruct the allowance for all accounts just\\n * by listening to said events. Other implementations of the EIP may not emit\\n * these events, as it isn't required by the specification.\\n *\\n * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}\\n * functions have been added to mitigate the well-known issues around setting\\n * allowances. See {IERC20-approve}.\\n */\\ncontract ERC20 is Context, IERC20 {\\n using SafeMath for uint256;\\n\\n mapping (address => uint256) private _balances;\\n\\n mapping (address => mapping (address => uint256)) private _allowances;\\n\\n uint256 private _totalSupply;\\n\\n string private _name;\\n string private _symbol;\\n uint8 private _decimals;\\n\\n /**\\n * @dev Sets the values for {name} and {symbol}, initializes {decimals} with\\n * a default value of 18.\\n *\\n * To select a different value for {decimals}, use {_setupDecimals}.\\n *\\n * All three of these values are immutable: they can only be set once during\\n * construction.\\n */\\n constructor (string memory name_, string memory symbol_) public {\\n _name = name_;\\n _symbol = symbol_;\\n _decimals = 18;\\n }\\n\\n /**\\n * @dev Returns the name of the token.\\n */\\n function name() public view virtual returns (string memory) {\\n return _name;\\n }\\n\\n /**\\n * @dev Returns the symbol of the token, usually a shorter version of the\\n * name.\\n */\\n function symbol() public view virtual returns (string memory) {\\n return _symbol;\\n }\\n\\n /**\\n * @dev Returns the number of decimals used to get its user representation.\\n * For example, if `decimals` equals `2`, a balance of `505` tokens should\\n * be displayed to a user as `5,05` (`505 / 10 ** 2`).\\n *\\n * Tokens usually opt for a value of 18, imitating the relationship between\\n * Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is\\n * called.\\n *\\n * NOTE: This information is only used for _display_ purposes: it in\\n * no way affects any of the arithmetic of the contract, including\\n * {IERC20-balanceOf} and {IERC20-transfer}.\\n */\\n function decimals() public view virtual returns (uint8) {\\n return _decimals;\\n }\\n\\n /**\\n * @dev See {IERC20-totalSupply}.\\n */\\n function totalSupply() public view virtual override returns (uint256) {\\n return _totalSupply;\\n }\\n\\n /**\\n * @dev See {IERC20-balanceOf}.\\n */\\n function balanceOf(address account) public view virtual override returns (uint256) {\\n return _balances[account];\\n }\\n\\n /**\\n * @dev See {IERC20-transfer}.\\n *\\n * Requirements:\\n *\\n * - `recipient` cannot be the zero address.\\n * - the caller must have a balance of at least `amount`.\\n */\\n function transfer(address recipient, uint256 amount) public virtual override returns (bool) {\\n _transfer(_msgSender(), recipient, amount);\\n return true;\\n }\\n\\n /**\\n * @dev See {IERC20-allowance}.\\n */\\n function allowance(address owner, address spender) public view virtual override returns (uint256) {\\n return _allowances[owner][spender];\\n }\\n\\n /**\\n * @dev See {IERC20-approve}.\\n *\\n * Requirements:\\n *\\n * - `spender` cannot be the zero address.\\n */\\n function approve(address spender, uint256 amount) public virtual override returns (bool) {\\n _approve(_msgSender(), spender, amount);\\n return true;\\n }\\n\\n /**\\n * @dev See {IERC20-transferFrom}.\\n *\\n * Emits an {Approval} event indicating the updated allowance. This is not\\n * required by the EIP. See the note at the beginning of {ERC20}.\\n *\\n * Requirements:\\n *\\n * - `sender` and `recipient` cannot be the zero address.\\n * - `sender` must have a balance of at least `amount`.\\n * - the caller must have allowance for ``sender``'s tokens of at least\\n * `amount`.\\n */\\n function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {\\n _transfer(sender, recipient, amount);\\n _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, \\\"ERC20: transfer amount exceeds allowance\\\"));\\n return true;\\n }\\n\\n /**\\n * @dev Atomically increases the allowance granted to `spender` by the caller.\\n *\\n * This is an alternative to {approve} that can be used as a mitigation for\\n * problems described in {IERC20-approve}.\\n *\\n * Emits an {Approval} event indicating the updated allowance.\\n *\\n * Requirements:\\n *\\n * - `spender` cannot be the zero address.\\n */\\n function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {\\n _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));\\n return true;\\n }\\n\\n /**\\n * @dev Atomically decreases the allowance granted to `spender` by the caller.\\n *\\n * This is an alternative to {approve} that can be used as a mitigation for\\n * problems described in {IERC20-approve}.\\n *\\n * Emits an {Approval} event indicating the updated allowance.\\n *\\n * Requirements:\\n *\\n * - `spender` cannot be the zero address.\\n * - `spender` must have allowance for the caller of at least\\n * `subtractedValue`.\\n */\\n function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {\\n _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, \\\"ERC20: decreased allowance below zero\\\"));\\n return true;\\n }\\n\\n /**\\n * @dev Moves tokens `amount` from `sender` to `recipient`.\\n *\\n * This is internal function is equivalent to {transfer}, and can be used to\\n * e.g. implement automatic token fees, slashing mechanisms, etc.\\n *\\n * Emits a {Transfer} event.\\n *\\n * Requirements:\\n *\\n * - `sender` cannot be the zero address.\\n * - `recipient` cannot be the zero address.\\n * - `sender` must have a balance of at least `amount`.\\n */\\n function _transfer(address sender, address recipient, uint256 amount) internal virtual {\\n require(sender != address(0), \\\"ERC20: transfer from the zero address\\\");\\n require(recipient != address(0), \\\"ERC20: transfer to the zero address\\\");\\n\\n _beforeTokenTransfer(sender, recipient, amount);\\n\\n _balances[sender] = _balances[sender].sub(amount, \\\"ERC20: transfer amount exceeds balance\\\");\\n _balances[recipient] = _balances[recipient].add(amount);\\n emit Transfer(sender, recipient, amount);\\n }\\n\\n /** @dev Creates `amount` tokens and assigns them to `account`, increasing\\n * the total supply.\\n *\\n * Emits a {Transfer} event with `from` set to the zero address.\\n *\\n * Requirements:\\n *\\n * - `to` cannot be the zero address.\\n */\\n function _mint(address account, uint256 amount) internal virtual {\\n require(account != address(0), \\\"ERC20: mint to the zero address\\\");\\n\\n _beforeTokenTransfer(address(0), account, amount);\\n\\n _totalSupply = _totalSupply.add(amount);\\n _balances[account] = _balances[account].add(amount);\\n emit Transfer(address(0), account, amount);\\n }\\n\\n /**\\n * @dev Destroys `amount` tokens from `account`, reducing the\\n * total supply.\\n *\\n * Emits a {Transfer} event with `to` set to the zero address.\\n *\\n * Requirements:\\n *\\n * - `account` cannot be the zero address.\\n * - `account` must have at least `amount` tokens.\\n */\\n function _burn(address account, uint256 amount) internal virtual {\\n require(account != address(0), \\\"ERC20: burn from the zero address\\\");\\n\\n _beforeTokenTransfer(account, address(0), amount);\\n\\n _balances[account] = _balances[account].sub(amount, \\\"ERC20: burn amount exceeds balance\\\");\\n _totalSupply = _totalSupply.sub(amount);\\n emit Transfer(account, address(0), amount);\\n }\\n\\n /**\\n * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.\\n *\\n * This internal function is equivalent to `approve`, and can be used to\\n * e.g. set automatic allowances for certain subsystems, etc.\\n *\\n * Emits an {Approval} event.\\n *\\n * Requirements:\\n *\\n * - `owner` cannot be the zero address.\\n * - `spender` cannot be the zero address.\\n */\\n function _approve(address owner, address spender, uint256 amount) internal virtual {\\n require(owner != address(0), \\\"ERC20: approve from the zero address\\\");\\n require(spender != address(0), \\\"ERC20: approve to the zero address\\\");\\n\\n _allowances[owner][spender] = amount;\\n emit Approval(owner, spender, amount);\\n }\\n\\n /**\\n * @dev Sets {decimals} to a value other than the default one of 18.\\n *\\n * WARNING: This function should only be called from the constructor. Most\\n * applications that interact with token contracts will not expect\\n * {decimals} to ever change, and may work incorrectly if it does.\\n */\\n function _setupDecimals(uint8 decimals_) internal virtual {\\n _decimals = decimals_;\\n }\\n\\n /**\\n * @dev Hook that is called before any transfer of tokens. This includes\\n * minting and burning.\\n *\\n * Calling conditions:\\n *\\n * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens\\n * will be to transferred to `to`.\\n * - when `from` is zero, `amount` tokens will be minted for `to`.\\n * - when `to` is zero, `amount` of ``from``'s tokens will be burned.\\n * - `from` and `to` are never both zero.\\n *\\n * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].\\n */\\n function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }\\n}\\n\",\"keccak256\":\"0xca0c2396dbeb3503b51abf4248ebf77a1461edad513c01529df51850a012bee3\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/ERC20Burnable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity >=0.6.0 <0.8.0;\\n\\nimport \\\"../../utils/Context.sol\\\";\\nimport \\\"./ERC20.sol\\\";\\n\\n/**\\n * @dev Extension of {ERC20} that allows token holders to destroy both their own\\n * tokens and those that they have an allowance for, in a way that can be\\n * recognized off-chain (via event analysis).\\n */\\nabstract contract ERC20Burnable is Context, ERC20 {\\n using SafeMath for uint256;\\n\\n /**\\n * @dev Destroys `amount` tokens from the caller.\\n *\\n * See {ERC20-_burn}.\\n */\\n function burn(uint256 amount) public virtual {\\n _burn(_msgSender(), amount);\\n }\\n\\n /**\\n * @dev Destroys `amount` tokens from `account`, deducting from the caller's\\n * allowance.\\n *\\n * See {ERC20-_burn} and {ERC20-allowance}.\\n *\\n * Requirements:\\n *\\n * - the caller must have allowance for ``accounts``'s tokens of at least\\n * `amount`.\\n */\\n function burnFrom(address account, uint256 amount) public virtual {\\n uint256 decreasedAllowance = allowance(account, _msgSender()).sub(amount, \\\"ERC20: burn amount exceeds allowance\\\");\\n\\n _approve(account, _msgSender(), decreasedAllowance);\\n _burn(account, amount);\\n }\\n}\\n\",\"keccak256\":\"0x9c0eb3b0e11d2480d49991dc384f1e5f9c9b9967cc81944d50916a9b9c6c4984\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/ERC20Pausable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity >=0.6.0 <0.8.0;\\n\\nimport \\\"./ERC20.sol\\\";\\nimport \\\"../../utils/Pausable.sol\\\";\\n\\n/**\\n * @dev ERC20 token with pausable token transfers, minting and burning.\\n *\\n * Useful for scenarios such as preventing trades until the end of an evaluation\\n * period, or having an emergency switch for freezing all token transfers in the\\n * event of a large bug.\\n */\\nabstract contract ERC20Pausable is ERC20, Pausable {\\n /**\\n * @dev See {ERC20-_beforeTokenTransfer}.\\n *\\n * Requirements:\\n *\\n * - the contract must not be paused.\\n */\\n function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual override {\\n super._beforeTokenTransfer(from, to, amount);\\n\\n require(!paused(), \\\"ERC20Pausable: token transfer while paused\\\");\\n }\\n}\\n\",\"keccak256\":\"0xa22af140ae7ec1f8f2f3bed5869cd0d548dfaac66343f0efc7324ff34aaf1254\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/IERC20.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity >=0.6.0 <0.8.0;\\n\\n/**\\n * @dev Interface of the ERC20 standard as defined in the EIP.\\n */\\ninterface IERC20 {\\n /**\\n * @dev Returns the amount of tokens in existence.\\n */\\n function totalSupply() external view returns (uint256);\\n\\n /**\\n * @dev Returns the amount of tokens owned by `account`.\\n */\\n function balanceOf(address account) external view returns (uint256);\\n\\n /**\\n * @dev Moves `amount` tokens from the caller's account to `recipient`.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transfer(address recipient, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Returns the remaining number of tokens that `spender` will be\\n * allowed to spend on behalf of `owner` through {transferFrom}. This is\\n * zero by default.\\n *\\n * This value changes when {approve} or {transferFrom} are called.\\n */\\n function allowance(address owner, address spender) external view returns (uint256);\\n\\n /**\\n * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * IMPORTANT: Beware that changing an allowance with this method brings the risk\\n * that someone may use both the old and the new allowance by unfortunate\\n * transaction ordering. One possible solution to mitigate this race\\n * condition is to first reduce the spender's allowance to 0 and set the\\n * desired value afterwards:\\n * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\\n *\\n * Emits an {Approval} event.\\n */\\n function approve(address spender, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Moves `amount` tokens from `sender` to `recipient` using the\\n * allowance mechanism. `amount` is then deducted from the caller's\\n * allowance.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\\n * another (`to`).\\n *\\n * Note that `value` may be zero.\\n */\\n event Transfer(address indexed from, address indexed to, uint256 value);\\n\\n /**\\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\\n * a call to {approve}. `value` is the new allowance.\\n */\\n event Approval(address indexed owner, address indexed spender, uint256 value);\\n}\\n\",\"keccak256\":\"0x5f02220344881ce43204ae4a6281145a67bc52c2bb1290a791857df3d19d78f5\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/Address.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity >=0.6.2 <0.8.0;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary Address {\\n /**\\n * @dev Returns true if `account` is a contract.\\n *\\n * [IMPORTANT]\\n * ====\\n * It is unsafe to assume that an address for which this function returns\\n * false is an externally-owned account (EOA) and not a contract.\\n *\\n * Among others, `isContract` will return false for the following\\n * types of addresses:\\n *\\n * - an externally-owned account\\n * - a contract in construction\\n * - an address where a contract will be created\\n * - an address where a contract lived, but was destroyed\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize, which returns 0 for contracts in\\n // construction, since the code is only stored at the end of the\\n // constructor execution.\\n\\n uint256 size;\\n // solhint-disable-next-line no-inline-assembly\\n assembly { size := extcodesize(account) }\\n return size > 0;\\n }\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n require(address(this).balance >= amount, \\\"Address: insufficient balance\\\");\\n\\n // solhint-disable-next-line avoid-low-level-calls, avoid-call-value\\n (bool success, ) = recipient.call{ value: amount }(\\\"\\\");\\n require(success, \\\"Address: unable to send value, recipient may have reverted\\\");\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain`call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason, it is bubbled up by this\\n * function (like regular Solidity function calls).\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCall(target, data, \\\"Address: low-level call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\n * `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, value, \\\"Address: low-level call with value failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\n * with `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {\\n require(address(this).balance >= value, \\\"Address: insufficient balance for call\\\");\\n require(isContract(target), \\\"Address: call to non-contract\\\");\\n\\n // solhint-disable-next-line avoid-low-level-calls\\n (bool success, bytes memory returndata) = target.call{ value: value }(data);\\n return _verifyCallResult(success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n return functionStaticCall(target, data, \\\"Address: low-level static call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) {\\n require(isContract(target), \\\"Address: static call to non-contract\\\");\\n\\n // solhint-disable-next-line avoid-low-level-calls\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return _verifyCallResult(success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionDelegateCall(target, data, \\\"Address: low-level delegate call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {\\n require(isContract(target), \\\"Address: delegate call to non-contract\\\");\\n\\n // solhint-disable-next-line avoid-low-level-calls\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return _verifyCallResult(success, returndata, errorMessage);\\n }\\n\\n function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {\\n if (success) {\\n return returndata;\\n } else {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n\\n // solhint-disable-next-line no-inline-assembly\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0x28911e614500ae7c607a432a709d35da25f3bc5ddc8bd12b278b66358070c0ea\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity >=0.6.0 <0.8.0;\\n\\n/*\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with GSN meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n function _msgSender() internal view virtual returns (address payable) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes memory) {\\n this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691\\n return msg.data;\\n }\\n}\\n\",\"keccak256\":\"0x8d3cb350f04ff49cfb10aef08d87f19dcbaecc8027b0bed12f3275cd12f38cf0\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/EnumerableSet.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity >=0.6.0 <0.8.0;\\n\\n/**\\n * @dev Library for managing\\n * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive\\n * types.\\n *\\n * Sets have the following properties:\\n *\\n * - Elements are added, removed, and checked for existence in constant time\\n * (O(1)).\\n * - Elements are enumerated in O(n). No guarantees are made on the ordering.\\n *\\n * ```\\n * contract Example {\\n * // Add the library methods\\n * using EnumerableSet for EnumerableSet.AddressSet;\\n *\\n * // Declare a set state variable\\n * EnumerableSet.AddressSet private mySet;\\n * }\\n * ```\\n *\\n * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)\\n * and `uint256` (`UintSet`) are supported.\\n */\\nlibrary EnumerableSet {\\n // To implement this library for multiple types with as little code\\n // repetition as possible, we write it in terms of a generic Set type with\\n // bytes32 values.\\n // The Set implementation uses private functions, and user-facing\\n // implementations (such as AddressSet) are just wrappers around the\\n // underlying Set.\\n // This means that we can only create new EnumerableSets for types that fit\\n // in bytes32.\\n\\n struct Set {\\n // Storage of set values\\n bytes32[] _values;\\n\\n // Position of the value in the `values` array, plus 1 because index 0\\n // means a value is not in the set.\\n mapping (bytes32 => uint256) _indexes;\\n }\\n\\n /**\\n * @dev Add a value to a set. O(1).\\n *\\n * Returns true if the value was added to the set, that is if it was not\\n * already present.\\n */\\n function _add(Set storage set, bytes32 value) private returns (bool) {\\n if (!_contains(set, value)) {\\n set._values.push(value);\\n // The value is stored at length-1, but we add 1 to all indexes\\n // and use 0 as a sentinel value\\n set._indexes[value] = set._values.length;\\n return true;\\n } else {\\n return false;\\n }\\n }\\n\\n /**\\n * @dev Removes a value from a set. O(1).\\n *\\n * Returns true if the value was removed from the set, that is if it was\\n * present.\\n */\\n function _remove(Set storage set, bytes32 value) private returns (bool) {\\n // We read and store the value's index to prevent multiple reads from the same storage slot\\n uint256 valueIndex = set._indexes[value];\\n\\n if (valueIndex != 0) { // Equivalent to contains(set, value)\\n // To delete an element from the _values array in O(1), we swap the element to delete with the last one in\\n // the array, and then remove the last element (sometimes called as 'swap and pop').\\n // This modifies the order of the array, as noted in {at}.\\n\\n uint256 toDeleteIndex = valueIndex - 1;\\n uint256 lastIndex = set._values.length - 1;\\n\\n // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs\\n // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.\\n\\n bytes32 lastvalue = set._values[lastIndex];\\n\\n // Move the last value to the index where the value to delete is\\n set._values[toDeleteIndex] = lastvalue;\\n // Update the index for the moved value\\n set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based\\n\\n // Delete the slot where the moved value was stored\\n set._values.pop();\\n\\n // Delete the index for the deleted slot\\n delete set._indexes[value];\\n\\n return true;\\n } else {\\n return false;\\n }\\n }\\n\\n /**\\n * @dev Returns true if the value is in the set. O(1).\\n */\\n function _contains(Set storage set, bytes32 value) private view returns (bool) {\\n return set._indexes[value] != 0;\\n }\\n\\n /**\\n * @dev Returns the number of values on the set. O(1).\\n */\\n function _length(Set storage set) private view returns (uint256) {\\n return set._values.length;\\n }\\n\\n /**\\n * @dev Returns the value stored at position `index` in the set. O(1).\\n *\\n * Note that there are no guarantees on the ordering of values inside the\\n * array, and it may change when more values are added or removed.\\n *\\n * Requirements:\\n *\\n * - `index` must be strictly less than {length}.\\n */\\n function _at(Set storage set, uint256 index) private view returns (bytes32) {\\n require(set._values.length > index, \\\"EnumerableSet: index out of bounds\\\");\\n return set._values[index];\\n }\\n\\n // Bytes32Set\\n\\n struct Bytes32Set {\\n Set _inner;\\n }\\n\\n /**\\n * @dev Add a value to a set. O(1).\\n *\\n * Returns true if the value was added to the set, that is if it was not\\n * already present.\\n */\\n function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {\\n return _add(set._inner, value);\\n }\\n\\n /**\\n * @dev Removes a value from a set. O(1).\\n *\\n * Returns true if the value was removed from the set, that is if it was\\n * present.\\n */\\n function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {\\n return _remove(set._inner, value);\\n }\\n\\n /**\\n * @dev Returns true if the value is in the set. O(1).\\n */\\n function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {\\n return _contains(set._inner, value);\\n }\\n\\n /**\\n * @dev Returns the number of values in the set. O(1).\\n */\\n function length(Bytes32Set storage set) internal view returns (uint256) {\\n return _length(set._inner);\\n }\\n\\n /**\\n * @dev Returns the value stored at position `index` in the set. O(1).\\n *\\n * Note that there are no guarantees on the ordering of values inside the\\n * array, and it may change when more values are added or removed.\\n *\\n * Requirements:\\n *\\n * - `index` must be strictly less than {length}.\\n */\\n function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {\\n return _at(set._inner, index);\\n }\\n\\n // AddressSet\\n\\n struct AddressSet {\\n Set _inner;\\n }\\n\\n /**\\n * @dev Add a value to a set. O(1).\\n *\\n * Returns true if the value was added to the set, that is if it was not\\n * already present.\\n */\\n function add(AddressSet storage set, address value) internal returns (bool) {\\n return _add(set._inner, bytes32(uint256(uint160(value))));\\n }\\n\\n /**\\n * @dev Removes a value from a set. O(1).\\n *\\n * Returns true if the value was removed from the set, that is if it was\\n * present.\\n */\\n function remove(AddressSet storage set, address value) internal returns (bool) {\\n return _remove(set._inner, bytes32(uint256(uint160(value))));\\n }\\n\\n /**\\n * @dev Returns true if the value is in the set. O(1).\\n */\\n function contains(AddressSet storage set, address value) internal view returns (bool) {\\n return _contains(set._inner, bytes32(uint256(uint160(value))));\\n }\\n\\n /**\\n * @dev Returns the number of values in the set. O(1).\\n */\\n function length(AddressSet storage set) internal view returns (uint256) {\\n return _length(set._inner);\\n }\\n\\n /**\\n * @dev Returns the value stored at position `index` in the set. O(1).\\n *\\n * Note that there are no guarantees on the ordering of values inside the\\n * array, and it may change when more values are added or removed.\\n *\\n * Requirements:\\n *\\n * - `index` must be strictly less than {length}.\\n */\\n function at(AddressSet storage set, uint256 index) internal view returns (address) {\\n return address(uint160(uint256(_at(set._inner, index))));\\n }\\n\\n\\n // UintSet\\n\\n struct UintSet {\\n Set _inner;\\n }\\n\\n /**\\n * @dev Add a value to a set. O(1).\\n *\\n * Returns true if the value was added to the set, that is if it was not\\n * already present.\\n */\\n function add(UintSet storage set, uint256 value) internal returns (bool) {\\n return _add(set._inner, bytes32(value));\\n }\\n\\n /**\\n * @dev Removes a value from a set. O(1).\\n *\\n * Returns true if the value was removed from the set, that is if it was\\n * present.\\n */\\n function remove(UintSet storage set, uint256 value) internal returns (bool) {\\n return _remove(set._inner, bytes32(value));\\n }\\n\\n /**\\n * @dev Returns true if the value is in the set. O(1).\\n */\\n function contains(UintSet storage set, uint256 value) internal view returns (bool) {\\n return _contains(set._inner, bytes32(value));\\n }\\n\\n /**\\n * @dev Returns the number of values on the set. O(1).\\n */\\n function length(UintSet storage set) internal view returns (uint256) {\\n return _length(set._inner);\\n }\\n\\n /**\\n * @dev Returns the value stored at position `index` in the set. O(1).\\n *\\n * Note that there are no guarantees on the ordering of values inside the\\n * array, and it may change when more values are added or removed.\\n *\\n * Requirements:\\n *\\n * - `index` must be strictly less than {length}.\\n */\\n function at(UintSet storage set, uint256 index) internal view returns (uint256) {\\n return uint256(_at(set._inner, index));\\n }\\n}\\n\",\"keccak256\":\"0x1562cd9922fbf739edfb979f506809e2743789cbde3177515542161c3d04b164\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/Pausable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity >=0.6.0 <0.8.0;\\n\\nimport \\\"./Context.sol\\\";\\n\\n/**\\n * @dev Contract module which allows children to implement an emergency stop\\n * mechanism that can be triggered by an authorized account.\\n *\\n * This module is used through inheritance. It will make available the\\n * modifiers `whenNotPaused` and `whenPaused`, which can be applied to\\n * the functions of your contract. Note that they will not be pausable by\\n * simply including this module, only once the modifiers are put in place.\\n */\\nabstract contract Pausable is Context {\\n /**\\n * @dev Emitted when the pause is triggered by `account`.\\n */\\n event Paused(address account);\\n\\n /**\\n * @dev Emitted when the pause is lifted by `account`.\\n */\\n event Unpaused(address account);\\n\\n bool private _paused;\\n\\n /**\\n * @dev Initializes the contract in unpaused state.\\n */\\n constructor () internal {\\n _paused = false;\\n }\\n\\n /**\\n * @dev Returns true if the contract is paused, and false otherwise.\\n */\\n function paused() public view virtual returns (bool) {\\n return _paused;\\n }\\n\\n /**\\n * @dev Modifier to make a function callable only when the contract is not paused.\\n *\\n * Requirements:\\n *\\n * - The contract must not be paused.\\n */\\n modifier whenNotPaused() {\\n require(!paused(), \\\"Pausable: paused\\\");\\n _;\\n }\\n\\n /**\\n * @dev Modifier to make a function callable only when the contract is paused.\\n *\\n * Requirements:\\n *\\n * - The contract must be paused.\\n */\\n modifier whenPaused() {\\n require(paused(), \\\"Pausable: not paused\\\");\\n _;\\n }\\n\\n /**\\n * @dev Triggers stopped state.\\n *\\n * Requirements:\\n *\\n * - The contract must not be paused.\\n */\\n function _pause() internal virtual whenNotPaused {\\n _paused = true;\\n emit Paused(_msgSender());\\n }\\n\\n /**\\n * @dev Returns to normal state.\\n *\\n * Requirements:\\n *\\n * - The contract must be paused.\\n */\\n function _unpause() internal virtual whenPaused {\\n _paused = false;\\n emit Unpaused(_msgSender());\\n }\\n}\\n\",\"keccak256\":\"0x212fb1b1d4beaf74354dad9bc329f44ee3c5375ef1c32acff76b4ecefc10f1d8\",\"license\":\"MIT\"},\"contracts/ERC20SimpleSwap.sol\":{\"content\":\"// SPDX-License-Identifier: BSD-3-Clause\\npragma solidity =0.7.6;\\npragma abicoder v2;\\nimport \\\"@openzeppelin/contracts/math/SafeMath.sol\\\";\\nimport \\\"@openzeppelin/contracts/math/Math.sol\\\";\\nimport \\\"@openzeppelin/contracts/cryptography/ECDSA.sol\\\";\\nimport \\\"@openzeppelin/contracts/token/ERC20/ERC20.sol\\\";\\nimport \\\"@openzeppelin/contracts/presets/ERC20PresetMinterPauser.sol\\\";\\n\\n\\n/**\\n@title Chequebook contract without waivers\\n@author The Swarm Authors\\n@notice The chequebook contract allows the issuer of the chequebook to send cheques to an unlimited amount of counterparties.\\nFurthermore, solvency can be guaranteed via hardDeposits\\n@dev as an issuer, no cheques should be send if the cumulative worth of a cheques send is above the cumulative worth of all deposits\\nas a beneficiary, we should always take into account the possibility that a cheque bounces (when no hardDeposits are assigned)\\n*/\\ncontract ERC20SimpleSwap {\\n using SafeMath for uint;\\n\\n event ChequeCashed(\\n address indexed beneficiary,\\n address indexed recipient,\\n address indexed caller,\\n uint totalPayout,\\n uint cumulativePayout,\\n uint callerPayout\\n );\\n event ChequeBounced();\\n event HardDepositAmountChanged(address indexed beneficiary, uint amount);\\n event HardDepositDecreasePrepared(address indexed beneficiary, uint decreaseAmount);\\n event HardDepositTimeoutChanged(address indexed beneficiary, uint timeout);\\n event Withdraw(uint amount);\\n\\n uint public defaultHardDepositTimeout;\\n /* structure to keep track of the hard deposits (on-chain guarantee of solvency) per beneficiary*/\\n struct HardDeposit {\\n uint amount; /* hard deposit amount allocated */\\n uint decreaseAmount; /* decreaseAmount substranced from amount when decrease is requested */\\n uint timeout; /* issuer has to wait timeout seconds to decrease hardDeposit, 0 implies applying defaultHardDepositTimeout */\\n uint canBeDecreasedAt; /* point in time after which harddeposit can be decreased*/\\n }\\n\\n struct EIP712Domain {\\n string name;\\n string version;\\n uint256 chainId;\\n }\\n\\n bytes32 public constant EIP712DOMAIN_TYPEHASH = keccak256(\\n \\\"EIP712Domain(string name,string version,uint256 chainId)\\\"\\n );\\n bytes32 public constant CHEQUE_TYPEHASH = keccak256(\\n \\\"Cheque(address chequebook,address beneficiary,uint256 cumulativePayout)\\\"\\n );\\n bytes32 public constant CASHOUT_TYPEHASH = keccak256(\\n \\\"Cashout(address chequebook,address sender,uint256 requestPayout,address recipient,uint256 callerPayout)\\\"\\n );\\n bytes32 public constant CUSTOMDECREASETIMEOUT_TYPEHASH = keccak256(\\n \\\"CustomDecreaseTimeout(address chequebook,address beneficiary,uint256 decreaseTimeout)\\\"\\n );\\n\\n // the EIP712 domain this contract uses\\n function domain() internal pure returns (EIP712Domain memory) {\\n uint256 chainId;\\n assembly {\\n chainId := chainid()\\n }\\n return EIP712Domain({\\n name: \\\"Chequebook\\\",\\n version: \\\"1.0\\\",\\n chainId: chainId\\n });\\n }\\n\\n // compute the EIP712 domain separator. this cannot be constant because it depends on chainId\\n function domainSeparator(EIP712Domain memory eip712Domain) internal pure returns (bytes32) {\\n return keccak256(abi.encode(\\n EIP712DOMAIN_TYPEHASH,\\n keccak256(bytes(eip712Domain.name)),\\n keccak256(bytes(eip712Domain.version)),\\n eip712Domain.chainId\\n ));\\n }\\n\\n // recover a signature with the EIP712 signing scheme\\n function recoverEIP712(bytes32 hash, bytes memory sig) internal pure returns (address) {\\n bytes32 digest = keccak256(abi.encodePacked(\\n \\\"\\\\x19\\\\x01\\\",\\n domainSeparator(domain()),\\n hash\\n ));\\n return ECDSA.recover(digest, sig);\\n }\\n\\n /* The token against which this chequebook writes cheques */\\n ERC20 public token;\\n /* associates every beneficiary with how much has been paid out to them */\\n mapping (address => uint) public paidOut;\\n /* total amount paid out */\\n uint public totalPaidOut;\\n /* associates every beneficiary with their HardDeposit */\\n mapping (address => HardDeposit) public hardDeposits;\\n /* sum of all hard deposits */\\n uint public totalHardDeposit;\\n /* issuer of the contract, set at construction */\\n address public issuer;\\n /* indicates wether a cheque bounced in the past */\\n bool public bounced;\\n\\n /**\\n @notice sets the issuer, token and the defaultHardDepositTimeout. can only be called once.\\n @param _issuer the issuer of cheques from this chequebook (needed as an argument for \\\"Setting up a chequebook as a payment\\\").\\n _issuer must be an Externally Owned Account, or it must support calling the function cashCheque\\n @param _token the token this chequebook uses\\n @param _defaultHardDepositTimeout duration in seconds which by default will be used to reduce hardDeposit allocations\\n */\\n function init(address _issuer, address _token, uint _defaultHardDepositTimeout) public {\\n require(_issuer != address(0), \\\"invalid issuer\\\");\\n require(issuer == address(0), \\\"already initialized\\\");\\n issuer = _issuer;\\n token = ERC20(_token);\\n defaultHardDepositTimeout = _defaultHardDepositTimeout;\\n }\\n\\n /// @return the balance of the chequebook\\n function balance() public view returns(uint) {\\n return token.balanceOf(address(this));\\n }\\n /// @return the part of the balance that is not covered by hard deposits\\n function liquidBalance() public view returns(uint) {\\n return balance().sub(totalHardDeposit);\\n }\\n\\n /// @return the part of the balance available for a specific beneficiary\\n function liquidBalanceFor(address beneficiary) public view returns(uint) {\\n return liquidBalance().add(hardDeposits[beneficiary].amount);\\n }\\n /**\\n @dev internal function responsible for checking the issuerSignature, updating hardDeposit balances and doing transfers.\\n Called by cashCheque and cashChequeBeneficary\\n @param beneficiary the beneficiary to which cheques were assigned. Beneficiary must be an Externally Owned Account\\n @param recipient receives the differences between cumulativePayment and what was already paid-out to the beneficiary minus callerPayout\\n @param cumulativePayout cumulative amount of cheques assigned to beneficiary\\n @param issuerSig if issuer is not the sender, issuer must have given explicit approval on the cumulativePayout to the beneficiary\\n */\\n function _cashChequeInternal(\\n address beneficiary,\\n address recipient,\\n uint cumulativePayout,\\n uint callerPayout,\\n bytes memory issuerSig\\n ) internal {\\n /* The issuer must have given explicit approval to the cumulativePayout, either by being the caller or by signature*/\\n if (msg.sender != issuer) {\\n require(issuer == recoverEIP712(chequeHash(address(this), beneficiary, cumulativePayout), issuerSig),\\n \\\"invalid issuer signature\\\");\\n }\\n /* the requestPayout is the amount requested for payment processing */\\n uint requestPayout = cumulativePayout.sub(paidOut[beneficiary]);\\n /* calculates acutal payout */\\n uint totalPayout = Math.min(requestPayout, liquidBalanceFor(beneficiary));\\n /* calculates hard-deposit usage */\\n uint hardDepositUsage = Math.min(totalPayout, hardDeposits[beneficiary].amount);\\n require(totalPayout >= callerPayout, \\\"SimpleSwap: cannot pay caller\\\");\\n /* if there are some of the hard deposit used, update hardDeposits*/\\n if (hardDepositUsage != 0) {\\n hardDeposits[beneficiary].amount = hardDeposits[beneficiary].amount.sub(hardDepositUsage);\\n\\n totalHardDeposit = totalHardDeposit.sub(hardDepositUsage);\\n }\\n /* increase the stored paidOut amount to avoid double payout */\\n paidOut[beneficiary] = paidOut[beneficiary].add(totalPayout);\\n totalPaidOut = totalPaidOut.add(totalPayout);\\n\\n /* let the world know that the issuer has over-promised on outstanding cheques */\\n if (requestPayout != totalPayout) {\\n bounced = true;\\n emit ChequeBounced();\\n }\\n\\n if (callerPayout != 0) {\\n /* do a transfer to the caller if specified*/\\n require(token.transfer(msg.sender, callerPayout), \\\"transfer failed\\\");\\n /* do the actual payment */\\n require(token.transfer(recipient, totalPayout.sub(callerPayout)), \\\"transfer failed\\\");\\n } else {\\n /* do the actual payment */\\n require(token.transfer(recipient, totalPayout), \\\"transfer failed\\\");\\n }\\n\\n emit ChequeCashed(beneficiary, recipient, msg.sender, totalPayout, cumulativePayout, callerPayout);\\n }\\n /**\\n @notice cash a cheque of the beneficiary by a non-beneficiary and reward the sender for doing so with callerPayout\\n @dev a beneficiary must be able to generate signatures (be an Externally Owned Account) to make use of this feature\\n @param beneficiary the beneficiary to which cheques were assigned. Beneficiary must be an Externally Owned Account\\n @param recipient receives the differences between cumulativePayment and what was already paid-out to the beneficiary minus callerPayout\\n @param cumulativePayout cumulative amount of cheques assigned to beneficiary\\n @param beneficiarySig beneficiary must have given explicit approval for cashing out the cumulativePayout by the sender and sending the callerPayout\\n @param issuerSig if issuer is not the sender, issuer must have given explicit approval on the cumulativePayout to the beneficiary\\n @param callerPayout when beneficiary does not have ether yet, he can incentivize other people to cash cheques with help of callerPayout\\n @param issuerSig if issuer is not the sender, issuer must have given explicit approval on the cumulativePayout to the beneficiary\\n */\\n function cashCheque(\\n address beneficiary,\\n address recipient,\\n uint cumulativePayout,\\n bytes memory beneficiarySig,\\n uint256 callerPayout,\\n bytes memory issuerSig\\n ) public {\\n require(\\n beneficiary == recoverEIP712(\\n cashOutHash(\\n address(this),\\n msg.sender,\\n cumulativePayout,\\n recipient,\\n callerPayout\\n ), beneficiarySig\\n ), \\\"invalid beneficiary signature\\\");\\n _cashChequeInternal(beneficiary, recipient, cumulativePayout, callerPayout, issuerSig);\\n }\\n\\n /**\\n @notice cash a cheque as beneficiary\\n @param recipient receives the differences between cumulativePayment and what was already paid-out to the beneficiary minus callerPayout\\n @param cumulativePayout amount requested to pay out\\n @param issuerSig issuer must have given explicit approval on the cumulativePayout to the beneficiary\\n */\\n function cashChequeBeneficiary(address recipient, uint cumulativePayout, bytes memory issuerSig) public {\\n _cashChequeInternal(msg.sender, recipient, cumulativePayout, 0, issuerSig);\\n }\\n\\n /**\\n @notice prepare to decrease the hard deposit\\n @dev decreasing hardDeposits must be done in two steps to allow beneficiaries to cash any uncashed cheques (and make use of the assgined hard-deposits)\\n @param beneficiary beneficiary whose hard deposit should be decreased\\n @param decreaseAmount amount that the deposit is supposed to be decreased by\\n */\\n function prepareDecreaseHardDeposit(address beneficiary, uint decreaseAmount) public {\\n require(msg.sender == issuer, \\\"SimpleSwap: not issuer\\\");\\n HardDeposit storage hardDeposit = hardDeposits[beneficiary];\\n /* cannot decrease it by more than the deposit */\\n require(decreaseAmount <= hardDeposit.amount, \\\"hard deposit not sufficient\\\");\\n // if hardDeposit.timeout was never set, apply defaultHardDepositTimeout\\n uint timeout = hardDeposit.timeout == 0 ? defaultHardDepositTimeout : hardDeposit.timeout;\\n hardDeposit.canBeDecreasedAt = block.timestamp + timeout;\\n hardDeposit.decreaseAmount = decreaseAmount;\\n emit HardDepositDecreasePrepared(beneficiary, decreaseAmount);\\n }\\n\\n /**\\n @notice decrease the hard deposit after waiting the necesary amount of time since prepareDecreaseHardDeposit was called\\n @param beneficiary beneficiary whose hard deposit should be decreased\\n */\\n function decreaseHardDeposit(address beneficiary) public {\\n HardDeposit storage hardDeposit = hardDeposits[beneficiary];\\n require(block.timestamp >= hardDeposit.canBeDecreasedAt && hardDeposit.canBeDecreasedAt != 0, \\\"deposit not yet timed out\\\");\\n /* this throws if decreaseAmount > amount */\\n //TODO: if there is a cash-out in between prepareDecreaseHardDeposit and decreaseHardDeposit, decreaseHardDeposit will throw and reducing hard-deposits is impossible.\\n hardDeposit.amount = hardDeposit.amount.sub(hardDeposit.decreaseAmount);\\n /* reset the canBeDecreasedAt to avoid a double decrease */\\n hardDeposit.canBeDecreasedAt = 0;\\n /* keep totalDeposit in sync */\\n totalHardDeposit = totalHardDeposit.sub(hardDeposit.decreaseAmount);\\n emit HardDepositAmountChanged(beneficiary, hardDeposit.amount);\\n }\\n\\n /**\\n @notice increase the hard deposit\\n @param beneficiary beneficiary whose hard deposit should be decreased\\n @param amount the new hard deposit\\n */\\n function increaseHardDeposit(address beneficiary, uint amount) public {\\n require(msg.sender == issuer, \\\"SimpleSwap: not issuer\\\");\\n /* ensure hard deposits don't exceed the global balance */\\n require(totalHardDeposit.add(amount) <= balance(), \\\"hard deposit exceeds balance\\\");\\n\\n HardDeposit storage hardDeposit = hardDeposits[beneficiary];\\n hardDeposit.amount = hardDeposit.amount.add(amount);\\n // we don't explicitely set hardDepositTimout, as zero means using defaultHardDepositTimeout\\n totalHardDeposit = totalHardDeposit.add(amount);\\n /* disable any pending decrease */\\n hardDeposit.canBeDecreasedAt = 0;\\n emit HardDepositAmountChanged(beneficiary, hardDeposit.amount);\\n }\\n\\n /**\\n @notice allows for setting a custom hardDepositDecreaseTimeout per beneficiary\\n @dev this is required when solvency must be guaranteed for a period longer than the defaultHardDepositDecreaseTimeout\\n @param beneficiary beneficiary whose hard deposit decreaseTimeout must be changed\\n @param hardDepositTimeout new hardDeposit.timeout for beneficiary\\n @param beneficiarySig beneficiary must give explicit approval by giving his signature on the new decreaseTimeout\\n */\\n function setCustomHardDepositTimeout(\\n address beneficiary,\\n uint hardDepositTimeout,\\n bytes memory beneficiarySig\\n ) public {\\n require(msg.sender == issuer, \\\"not issuer\\\");\\n require(\\n beneficiary == recoverEIP712(customDecreaseTimeoutHash(address(this), beneficiary, hardDepositTimeout), beneficiarySig),\\n \\\"invalid beneficiary signature\\\"\\n );\\n hardDeposits[beneficiary].timeout = hardDepositTimeout;\\n emit HardDepositTimeoutChanged(beneficiary, hardDepositTimeout);\\n }\\n\\n /// @notice withdraw ether\\n /// @param amount amount to withdraw\\n // solhint-disable-next-line no-simple-event-func-name\\n function withdraw(uint amount) public {\\n /* only issuer can do this */\\n require(msg.sender == issuer, \\\"not issuer\\\");\\n /* ensure we don't take anything from the hard deposit */\\n require(amount <= liquidBalance(), \\\"liquidBalance not sufficient\\\");\\n require(token.transfer(issuer, amount), \\\"transfer failed\\\");\\n }\\n\\n function chequeHash(address chequebook, address beneficiary, uint cumulativePayout)\\n internal pure returns (bytes32) {\\n return keccak256(abi.encode(\\n CHEQUE_TYPEHASH,\\n chequebook,\\n beneficiary,\\n cumulativePayout\\n ));\\n } \\n\\n function cashOutHash(address chequebook, address sender, uint requestPayout, address recipient, uint callerPayout)\\n internal pure returns (bytes32) {\\n return keccak256(abi.encode(\\n CASHOUT_TYPEHASH,\\n chequebook,\\n sender,\\n requestPayout,\\n recipient,\\n callerPayout\\n ));\\n }\\n\\n function customDecreaseTimeoutHash(address chequebook, address beneficiary, uint decreaseTimeout)\\n internal pure returns (bytes32) {\\n return keccak256(abi.encode(\\n CUSTOMDECREASETIMEOUT_TYPEHASH,\\n chequebook,\\n beneficiary,\\n decreaseTimeout\\n ));\\n }\\n}\",\"keccak256\":\"0x7bd0873a5b75bd94a5de127b2e60cb52ebb3a365651e2bb3dba86bcc4134ea6d\",\"license\":\"BSD-3-Clause\"},\"contracts/SimpleSwapFactory.sol\":{\"content\":\"// SPDX-License-Identifier: BSD-3-Clause\\npragma solidity =0.7.6;\\npragma abicoder v2;\\nimport \\\"./ERC20SimpleSwap.sol\\\";\\nimport \\\"@openzeppelin/contracts/proxy/Clones.sol\\\";\\n\\n/**\\n@title Factory contract for SimpleSwap\\n@author The Swarm Authors\\n@notice This contract deploys SimpleSwap contracts\\n*/\\ncontract SimpleSwapFactory {\\n /* event fired on every new SimpleSwap deployment */\\n event SimpleSwapDeployed(address contractAddress);\\n\\n /* mapping to keep track of which contracts were deployed by this factory */\\n mapping(address => bool) public deployedContracts;\\n\\n /* address of the ERC20-token, to be used by the to-be-deployed chequebooks */\\n address public ERC20Address;\\n /* address of the code contract from which all chequebooks are cloned */\\n address public master;\\n\\n constructor(address _ERC20Address) {\\n ERC20Address = _ERC20Address;\\n ERC20SimpleSwap _master = new ERC20SimpleSwap();\\n // set the issuer of the master contract to prevent misuse\\n _master.init(address(1), address(0), 0);\\n master = address(_master);\\n }\\n\\n /**\\n @notice creates a clone of the master SimpleSwap contract\\n @param issuer the issuer of cheques for the new chequebook\\n @param defaultHardDepositTimeoutDuration duration in seconds which by default will be used to reduce hardDeposit allocations\\n @param salt salt to include in create2 to enable the same address to deploy multiple chequebooks\\n */\\n function deploySimpleSwap(\\n address issuer,\\n uint defaultHardDepositTimeoutDuration,\\n bytes32 salt\\n ) public returns (address) {\\n address contractAddress = Clones.cloneDeterministic(\\n master,\\n keccak256(abi.encode(msg.sender, salt))\\n );\\n ERC20SimpleSwap(contractAddress).init(\\n issuer,\\n ERC20Address,\\n defaultHardDepositTimeoutDuration\\n );\\n deployedContracts[contractAddress] = true;\\n emit SimpleSwapDeployed(contractAddress);\\n return contractAddress;\\n }\\n\\n /**\\n @notice migrates a clone of a master SimpleSwap contract\\n @param issuer the issuer of cheques for the new chequebook\\n @param defaultHardDepositTimeoutDuration duration in seconds which by default will be used to reduce hardDeposit allocations\\n @param salt salt to include in create2 to enable the same address to deploy multiple chequebooks\\n */\\n function migrateSimpleSwap(\\n address issuer,\\n uint defaultHardDepositTimeoutDuration,\\n bytes32 salt,\\n address _master\\n ) public returns (address) {\\n address contractAddress = Clones.cloneDeterministic(\\n _master,\\n keccak256(abi.encode(issuer, salt))\\n );\\n ERC20SimpleSwap(contractAddress).init(\\n issuer,\\n ERC20Address,\\n defaultHardDepositTimeoutDuration\\n );\\n deployedContracts[contractAddress] = true;\\n emit SimpleSwapDeployed(contractAddress);\\n return contractAddress;\\n }\\n}\\n\",\"keccak256\":\"0xbdfa9d35be6f02ae54d94f5136225e827a9fe5221aa072f23b0624fe4ce71660\",\"license\":\"BSD-3-Clause\"}},\"version\":1}", + "bytecode": "0x608060405234801561001057600080fd5b50604051611f3d380380611f3d83398101604081905261002f91610112565b600180546001600160a01b0319166001600160a01b03831617905560405160009061005990610105565b604051809103906000f080158015610075573d6000803e3d6000fd5b506040516343431f6360e11b81529091506001600160a01b038216906386863ec6906100ab906001906000908190600401610140565b600060405180830381600087803b1580156100c557600080fd5b505af11580156100d9573d6000803e3d6000fd5b5050600280546001600160a01b0319166001600160a01b03949094169390931790925550610164915050565b6118e58061065883390190565b600060208284031215610123578081fd5b81516001600160a01b0381168114610139578182fd5b9392505050565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6104e5806101736000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c806315efd8a71461005c5780636486d86314610085578063a6021ace14610098578063c70242ad146100a0578063ee97f7f3146100c0575b600080fd5b61006f61006a3660046103dc565b6100c8565b60405161007c9190610453565b60405180910390f35b61006f61009336600461040e565b6101d9565b61006f6102c1565b6100b36100ae3660046103bb565b6102d0565b60405161007c91906104a4565b61006f6102e5565b600254604051600091829161010c916001600160a01b0316906100f19033908790602001610467565b604051602081830303815290604052805190602001206102f4565b6001546040516343431f6360e11b81529192506001600160a01b03808416926386863ec692610144928a929116908990600401610480565b600060405180830381600087803b15801561015e57600080fd5b505af1158015610172573d6000803e3d6000fd5b5050506001600160a01b03821660009081526020819052604090819020805460ff19166001179055517fc0ffc525a1c7689549d7f79b49eca900e61ac49b43d977f680bcc3b36224c00491506101c9908390610453565b60405180910390a1949350505050565b6000806101f38387866040516020016100f1929190610467565b6001546040516343431f6360e11b81529192506001600160a01b03808416926386863ec69261022b928b929116908a90600401610480565b600060405180830381600087803b15801561024557600080fd5b505af1158015610259573d6000803e3d6000fd5b5050506001600160a01b03821660009081526020819052604090819020805460ff19166001179055517fc0ffc525a1c7689549d7f79b49eca900e61ac49b43d977f680bcc3b36224c00491506102b0908390610453565b60405180910390a195945050505050565b6001546001600160a01b031681565b60006020819052908152604090205460ff1681565b6002546001600160a01b031681565b6000604051733d602d80600a3d3981f3363d3d373d3d3d363d7360601b81528360601b60148201526e5af43d82803e903d91602b57fd5bf360881b6028820152826037826000f59150506001600160a01b038116610399576040805162461bcd60e51b815260206004820152601760248201527f455243313136373a2063726561746532206661696c6564000000000000000000604482015290519081900360640190fd5b92915050565b80356001600160a01b03811681146103b657600080fd5b919050565b6000602082840312156103cc578081fd5b6103d58261039f565b9392505050565b6000806000606084860312156103f0578182fd5b6103f98461039f565b95602085013595506040909401359392505050565b60008060008060808587031215610423578081fd5b61042c8561039f565b935060208501359250604085013591506104486060860161039f565b905092959194509250565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b90151581526020019056fea2646970667358221220ec173399f349bf15af89badfb3ac9ccfba0f8866c54a37d22cdc5a9dbde5067264736f6c63430007060033608060405234801561001057600080fd5b506118c5806100206000396000f3fe608060405234801561001057600080fd5b506004361061014d5760003560e01c8063946f46a2116100c3578063b7ec1a331161007c578063b7ec1a331461027f578063c49f91d314610287578063c76a4d311461028f578063d4c9a8e8146102a2578063e0bcf13a146102b5578063fc0c546a146102bd5761014d565b8063946f46a214610211578063b6343b0d14610224578063b648b41714610247578063b69ef8a81461025c578063b777035014610264578063b7998907146102775761014d565b80631d143848116101155780631d143848146101a85780632e1a7d4d146101bd578063338f3fed146101d0578063488b017c146101e357806381f03fcb146101eb57806386863ec6146101fe5761014d565b80630d5f26591461015257806312101021146101675780631357e1dc1461018557806315c3343f1461018d5780631633fb1d14610195575b600080fd5b61016561016036600461146b565b6102c5565b005b61016f6102d8565b60405161017c9190611563565b60405180910390f35b61016f6102de565b61016f6102e4565b6101656101a33660046113ae565b610308565b6101b061036c565b60405161017c919061152b565b6101656101cb3660046114e0565b61037b565b6101656101de366004611442565b610473565b61016f610556565b61016f6101f9366004611359565b61057a565b61016561020c366004611373565b61058c565b61016561021f366004611359565b610610565b610237610232366004611359565b6106d0565b60405161017c94939291906115c7565b61024f6106f7565b60405161017c9190611558565b61016f610707565b610165610272366004611442565b61078d565b61016f610867565b61016f61088b565b61016f6108a1565b61016f61029d366004611359565b6108c5565b6101656102b036600461146b565b6108f8565b61016f6109b4565b6101b06109ba565b6102d33384846000856109c9565b505050565b60005481565b60035481565b7f48ebe6deff4a5ee645c01506a026031e2a945d6f41f1f4e5098ad65347492c1281565b61031e6103183033878987610dd2565b84610e30565b6001600160a01b0316866001600160a01b0316146103575760405162461bcd60e51b815260040161034e906117d5565b60405180910390fd5b61036486868685856109c9565b505050505050565b6006546001600160a01b031681565b6006546001600160a01b031633146103a55760405162461bcd60e51b815260040161034e906115e2565b6103ad61088b565b8111156103cc5760405162461bcd60e51b815260040161034e90611695565b60015460065460405163a9059cbb60e01b81526001600160a01b039283169263a9059cbb9261040292911690859060040161153f565b602060405180830381600087803b15801561041c57600080fd5b505af1158015610430573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061045491906114c0565b6104705760405162461bcd60e51b815260040161034e9061180c565b50565b6006546001600160a01b0316331461049d5760405162461bcd60e51b815260040161034e90611665565b6104a5610707565b6005546104b29083610e7f565b11156104d05760405162461bcd60e51b815260040161034e90611730565b6001600160a01b038216600090815260046020526040902080546104f49083610e7f565b81556005546105039083610e7f565b6005556000600382015580546040516001600160a01b038516917f2506c43272ded05d095b91dbba876e66e46888157d3e078db5691496e96c5fad916105499190611563565b60405180910390a2505050565b7f7d824962dd0f01520922ea1766c987b1db570cd5db90bdba5ccf5e320607950281565b60026020526000908152604090205481565b6001600160a01b0383166105b25760405162461bcd60e51b815260040161034e9061163d565b6006546001600160a01b0316156105db5760405162461bcd60e51b815260040161034e906116cc565b600680546001600160a01b039485166001600160a01b0319918216179091556001805493909416921691909117909155600055565b6001600160a01b03811660009081526004602052604090206003810154421080159061063f5750600381015415155b61065b5760405162461bcd60e51b815260040161034e90611606565b6001810154815461066b91610ee0565b815560006003820155600181015460055461068591610ee0565b60055580546040516001600160a01b038416917f2506c43272ded05d095b91dbba876e66e46888157d3e078db5691496e96c5fad916106c49190611563565b60405180910390a25050565b60046020526000908152604090208054600182015460028301546003909301549192909184565b600654600160a01b900460ff1681565b6001546040516370a0823160e01b81526000916001600160a01b0316906370a082319061073890309060040161152b565b60206040518083038186803b15801561075057600080fd5b505afa158015610764573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061078891906114f8565b905090565b6006546001600160a01b031633146107b75760405162461bcd60e51b815260040161034e90611665565b6001600160a01b038216600090815260046020526040902080548211156107f05760405162461bcd60e51b815260040161034e906116f9565b6000816002015460001461080857816002015461080c565b6000545b4281016003840155600183018490556040519091506001600160a01b038516907fc8305077b495025ec4c1d977b176a762c350bb18cad4666ce1ee85c32b78698a90610859908690611563565b60405180910390a250505050565b7fe95f353750f192082df064ca5142d3a2d6f0bef0f3ffad66d80d8af86b7a749a81565b600061078860055461089b610707565b90610ee0565b7fc2f8787176b8ac6bf7215b4adcc1e069bf4ab82d9ab1df05a57a91d425935b6e81565b6001600160a01b0381166000908152600460205260408120546108f0906108ea61088b565b90610e7f565b90505b919050565b6006546001600160a01b031633146109225760405162461bcd60e51b815260040161034e906115e2565b610936610930308585610f3d565b82610e30565b6001600160a01b0316836001600160a01b0316146109665760405162461bcd60e51b815260040161034e906117d5565b6001600160a01b03831660008181526004602052604090819020600201849055517f7b816003a769eb718bd9c66bdbd2dd5827da3f92bc6645276876bd7957b08cf090610549908590611563565b60055481565b6001546001600160a01b031681565b6006546001600160a01b03163314610a16576109e9610930308786610f95565b6006546001600160a01b03908116911614610a165760405162461bcd60e51b815260040161034e9061179e565b6001600160a01b038516600090815260026020526040812054610a3a908590610ee0565b90506000610a5082610a4b896108c5565b610fce565b6001600160a01b03881660009081526004602052604081205491925090610a78908390610fce565b905084821015610a9a5760405162461bcd60e51b815260040161034e90611767565b8015610aed576001600160a01b038816600090815260046020526040902054610ac39082610ee0565b6001600160a01b038916600090815260046020526040902055600554610ae99082610ee0565b6005555b6001600160a01b038816600090815260026020526040902054610b109083610e7f565b6001600160a01b038916600090815260026020526040902055600354610b369083610e7f565b600355828214610b7d576006805460ff60a01b1916600160a01b1790556040517f3f4449c047e11092ec54dc0751b6b4817a9162745de856c893a26e611d18ffc490600090a15b8415610ccf5760015460405163a9059cbb60e01b81526001600160a01b039091169063a9059cbb90610bb5903390899060040161153f565b602060405180830381600087803b158015610bcf57600080fd5b505af1158015610be3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c0791906114c0565b610c235760405162461bcd60e51b815260040161034e9061180c565b6001546001600160a01b031663a9059cbb88610c3f8589610ee0565b6040518363ffffffff1660e01b8152600401610c5c92919061153f565b602060405180830381600087803b158015610c7657600080fd5b505af1158015610c8a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cae91906114c0565b610cca5760405162461bcd60e51b815260040161034e9061180c565b610d6f565b60015460405163a9059cbb60e01b81526001600160a01b039091169063a9059cbb90610d01908a90869060040161153f565b602060405180830381600087803b158015610d1b57600080fd5b505af1158015610d2f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d5391906114c0565b610d6f5760405162461bcd60e51b815260040161034e9061180c565b336001600160a01b0316876001600160a01b0316896001600160a01b03167f950494fc3642fae5221b6c32e0e45765c95ebb382a04a71b160db0843e74c99f858a8a604051610dc093929190611835565b60405180910390a45050505050505050565b60007f7d824962dd0f01520922ea1766c987b1db570cd5db90bdba5ccf5e32060795028686868686604051602001610e0f96959493929190611591565b60405160208183030381529060405280519060200120905095945050505050565b600080610e43610e3e610fe4565b61103e565b84604051602001610e55929190611510565b604051602081830303815290604052805190602001209050610e7781846110ae565b949350505050565b600082820183811015610ed9576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b600082821115610f37576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b60007fe95f353750f192082df064ca5142d3a2d6f0bef0f3ffad66d80d8af86b7a749a848484604051602001610f76949392919061156c565b6040516020818303038152906040528051906020012090509392505050565b60007f48ebe6deff4a5ee645c01506a026031e2a945d6f41f1f4e5098ad65347492c12848484604051602001610f76949392919061156c565b6000818310610fdd5781610ed9565b5090919050565b610fec6112ac565b506040805160a081018252600a6060820190815269436865717565626f6f6b60b01b608083015281528151808301835260038152620312e360ec1b602082810191909152820152469181019190915290565b60007fc2f8787176b8ac6bf7215b4adcc1e069bf4ab82d9ab1df05a57a91d425935b6e826000015180519060200120836020015180519060200120846040015160405160200161109194939291906115c7565b604051602081830303815290604052805190602001209050919050565b60008151604114611106576040805162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015290519081900360640190fd5b60208201516040830151606084015160001a6111248682858561112e565b9695505050505050565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a082111561118f5760405162461bcd60e51b815260040180806020018281038252602281526020018061184c6022913960400191505060405180910390fd5b8360ff16601b14806111a457508360ff16601c145b6111df5760405162461bcd60e51b815260040180806020018281038252602281526020018061186e6022913960400191505060405180910390fd5b600060018686868660405160008152602001604052604051808581526020018460ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa15801561123b573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166112a3576040805162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015290519081900360640190fd5b95945050505050565b60405180606001604052806060815260200160608152602001600081525090565b80356001600160a01b03811681146108f357600080fd5b600082601f8301126112f4578081fd5b813567ffffffffffffffff8082111561130957fe5b604051601f8301601f19168101602001828111828210171561132757fe5b60405282815284830160200186101561133e578384fd5b82602086016020830137918201602001929092529392505050565b60006020828403121561136a578081fd5b610ed9826112cd565b600080600060608486031215611387578182fd5b611390846112cd565b925061139e602085016112cd565b9150604084013590509250925092565b60008060008060008060c087890312156113c6578182fd5b6113cf876112cd565b95506113dd602088016112cd565b945060408701359350606087013567ffffffffffffffff80821115611400578384fd5b61140c8a838b016112e4565b94506080890135935060a0890135915080821115611428578283fd5b5061143589828a016112e4565b9150509295509295509295565b60008060408385031215611454578182fd5b61145d836112cd565b946020939093013593505050565b60008060006060848603121561147f578283fd5b611488846112cd565b925060208401359150604084013567ffffffffffffffff8111156114aa578182fd5b6114b6868287016112e4565b9150509250925092565b6000602082840312156114d1578081fd5b81518015158114610ed9578182fd5b6000602082840312156114f1578081fd5b5035919050565b600060208284031215611509578081fd5b5051919050565b61190160f01b81526002810192909252602282015260420190565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b901515815260200190565b90815260200190565b9384526001600160a01b03928316602085015291166040830152606082015260800190565b9586526001600160a01b03948516602087015292841660408601526060850191909152909116608083015260a082015260c00190565b93845260208401929092526040830152606082015260800190565b6020808252600a90820152693737ba1034b9b9bab2b960b11b604082015260600190565b60208082526019908201527f6465706f736974206e6f74207965742074696d6564206f757400000000000000604082015260600190565b6020808252600e908201526d34b73b30b634b21034b9b9bab2b960911b604082015260600190565b60208082526016908201527529b4b6b83632a9bbb0b81d103737ba1034b9b9bab2b960511b604082015260600190565b6020808252601c908201527f6c697175696442616c616e6365206e6f742073756666696369656e7400000000604082015260600190565b602080825260139082015272185b1c9958591e481a5b9a5d1a585b1a5e9959606a1b604082015260600190565b6020808252601b908201527f68617264206465706f736974206e6f742073756666696369656e740000000000604082015260600190565b6020808252601c908201527f68617264206465706f73697420657863656564732062616c616e636500000000604082015260600190565b6020808252601d908201527f53696d706c65537761703a2063616e6e6f74207061792063616c6c6572000000604082015260600190565b60208082526018908201527f696e76616c696420697373756572207369676e61747572650000000000000000604082015260600190565b6020808252601d908201527f696e76616c69642062656e6566696369617279207369676e6174757265000000604082015260600190565b6020808252600f908201526e1d1c985b9cd9995c8819985a5b1959608a1b604082015260600190565b928352602083019190915260408201526060019056fe45434453413a20696e76616c6964207369676e6174757265202773272076616c756545434453413a20696e76616c6964207369676e6174757265202776272076616c7565a2646970667358221220b270820590249f6db00f7142812273c92ea84cea0862f4083a5c75edd08f437264736f6c63430007060033", + "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100575760003560e01c806315efd8a71461005c5780636486d86314610085578063a6021ace14610098578063c70242ad146100a0578063ee97f7f3146100c0575b600080fd5b61006f61006a3660046103dc565b6100c8565b60405161007c9190610453565b60405180910390f35b61006f61009336600461040e565b6101d9565b61006f6102c1565b6100b36100ae3660046103bb565b6102d0565b60405161007c91906104a4565b61006f6102e5565b600254604051600091829161010c916001600160a01b0316906100f19033908790602001610467565b604051602081830303815290604052805190602001206102f4565b6001546040516343431f6360e11b81529192506001600160a01b03808416926386863ec692610144928a929116908990600401610480565b600060405180830381600087803b15801561015e57600080fd5b505af1158015610172573d6000803e3d6000fd5b5050506001600160a01b03821660009081526020819052604090819020805460ff19166001179055517fc0ffc525a1c7689549d7f79b49eca900e61ac49b43d977f680bcc3b36224c00491506101c9908390610453565b60405180910390a1949350505050565b6000806101f38387866040516020016100f1929190610467565b6001546040516343431f6360e11b81529192506001600160a01b03808416926386863ec69261022b928b929116908a90600401610480565b600060405180830381600087803b15801561024557600080fd5b505af1158015610259573d6000803e3d6000fd5b5050506001600160a01b03821660009081526020819052604090819020805460ff19166001179055517fc0ffc525a1c7689549d7f79b49eca900e61ac49b43d977f680bcc3b36224c00491506102b0908390610453565b60405180910390a195945050505050565b6001546001600160a01b031681565b60006020819052908152604090205460ff1681565b6002546001600160a01b031681565b6000604051733d602d80600a3d3981f3363d3d373d3d3d363d7360601b81528360601b60148201526e5af43d82803e903d91602b57fd5bf360881b6028820152826037826000f59150506001600160a01b038116610399576040805162461bcd60e51b815260206004820152601760248201527f455243313136373a2063726561746532206661696c6564000000000000000000604482015290519081900360640190fd5b92915050565b80356001600160a01b03811681146103b657600080fd5b919050565b6000602082840312156103cc578081fd5b6103d58261039f565b9392505050565b6000806000606084860312156103f0578182fd5b6103f98461039f565b95602085013595506040909401359392505050565b60008060008060808587031215610423578081fd5b61042c8561039f565b935060208501359250604085013591506104486060860161039f565b905092959194509250565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b90151581526020019056fea2646970667358221220ec173399f349bf15af89badfb3ac9ccfba0f8866c54a37d22cdc5a9dbde5067264736f6c63430007060033", "devdoc": { "author": "The Swarm Authors", "kind": "dev", @@ -134,6 +168,13 @@ "issuer": "the issuer of cheques for the new chequebook", "salt": "salt to include in create2 to enable the same address to deploy multiple chequebooks" } + }, + "migrateSimpleSwap(address,uint256,bytes32,address)": { + "params": { + "defaultHardDepositTimeoutDuration": "duration in seconds which by default will be used to reduce hardDeposit allocations", + "issuer": "the issuer of cheques for the new chequebook", + "salt": "salt to include in create2 to enable the same address to deploy multiple chequebooks" + } } }, "title": "Factory contract for SimpleSwap", @@ -144,6 +185,9 @@ "methods": { "deploySimpleSwap(address,uint256,bytes32)": { "notice": "creates a clone of the master SimpleSwap contract" + }, + "migrateSimpleSwap(address,uint256,bytes32,address)": { + "notice": "migrates a clone of a master SimpleSwap contract" } }, "notice": "This contract deploys SimpleSwap contracts", diff --git a/deployments/testnet/solcInputs/0eaea2bdf31aa57088976e75cb520201.json b/deployments/testnet/solcInputs/0eaea2bdf31aa57088976e75cb520201.json new file mode 100644 index 0000000..e96a54d --- /dev/null +++ b/deployments/testnet/solcInputs/0eaea2bdf31aa57088976e75cb520201.json @@ -0,0 +1,83 @@ +{ + "language": "Solidity", + "sources": { + "contracts/ERC20SimpleSwap.sol": { + "content": "// SPDX-License-Identifier: BSD-3-Clause\npragma solidity =0.7.6;\npragma abicoder v2;\nimport \"@openzeppelin/contracts/math/SafeMath.sol\";\nimport \"@openzeppelin/contracts/math/Math.sol\";\nimport \"@openzeppelin/contracts/cryptography/ECDSA.sol\";\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\";\nimport \"@openzeppelin/contracts/presets/ERC20PresetMinterPauser.sol\";\n\n\n/**\n@title Chequebook contract without waivers\n@author The Swarm Authors\n@notice The chequebook contract allows the issuer of the chequebook to send cheques to an unlimited amount of counterparties.\nFurthermore, solvency can be guaranteed via hardDeposits\n@dev as an issuer, no cheques should be send if the cumulative worth of a cheques send is above the cumulative worth of all deposits\nas a beneficiary, we should always take into account the possibility that a cheque bounces (when no hardDeposits are assigned)\n*/\ncontract ERC20SimpleSwap {\n using SafeMath for uint;\n\n event ChequeCashed(\n address indexed beneficiary,\n address indexed recipient,\n address indexed caller,\n uint totalPayout,\n uint cumulativePayout,\n uint callerPayout\n );\n event ChequeBounced();\n event HardDepositAmountChanged(address indexed beneficiary, uint amount);\n event HardDepositDecreasePrepared(address indexed beneficiary, uint decreaseAmount);\n event HardDepositTimeoutChanged(address indexed beneficiary, uint timeout);\n event Withdraw(uint amount);\n\n uint public defaultHardDepositTimeout;\n /* structure to keep track of the hard deposits (on-chain guarantee of solvency) per beneficiary*/\n struct HardDeposit {\n uint amount; /* hard deposit amount allocated */\n uint decreaseAmount; /* decreaseAmount substranced from amount when decrease is requested */\n uint timeout; /* issuer has to wait timeout seconds to decrease hardDeposit, 0 implies applying defaultHardDepositTimeout */\n uint canBeDecreasedAt; /* point in time after which harddeposit can be decreased*/\n }\n\n struct EIP712Domain {\n string name;\n string version;\n uint256 chainId;\n }\n\n bytes32 public constant EIP712DOMAIN_TYPEHASH = keccak256(\n \"EIP712Domain(string name,string version,uint256 chainId)\"\n );\n bytes32 public constant CHEQUE_TYPEHASH = keccak256(\n \"Cheque(address chequebook,address beneficiary,uint256 cumulativePayout)\"\n );\n bytes32 public constant CASHOUT_TYPEHASH = keccak256(\n \"Cashout(address chequebook,address sender,uint256 requestPayout,address recipient,uint256 callerPayout)\"\n );\n bytes32 public constant CUSTOMDECREASETIMEOUT_TYPEHASH = keccak256(\n \"CustomDecreaseTimeout(address chequebook,address beneficiary,uint256 decreaseTimeout)\"\n );\n\n // the EIP712 domain this contract uses\n function domain() internal pure returns (EIP712Domain memory) {\n uint256 chainId;\n assembly {\n chainId := chainid()\n }\n return EIP712Domain({\n name: \"Chequebook\",\n version: \"1.0\",\n chainId: chainId\n });\n }\n\n // compute the EIP712 domain separator. this cannot be constant because it depends on chainId\n function domainSeparator(EIP712Domain memory eip712Domain) internal pure returns (bytes32) {\n return keccak256(abi.encode(\n EIP712DOMAIN_TYPEHASH,\n keccak256(bytes(eip712Domain.name)),\n keccak256(bytes(eip712Domain.version)),\n eip712Domain.chainId\n ));\n }\n\n // recover a signature with the EIP712 signing scheme\n function recoverEIP712(bytes32 hash, bytes memory sig) internal pure returns (address) {\n bytes32 digest = keccak256(abi.encodePacked(\n \"\\x19\\x01\",\n domainSeparator(domain()),\n hash\n ));\n return ECDSA.recover(digest, sig);\n }\n\n /* The token against which this chequebook writes cheques */\n ERC20 public token;\n /* associates every beneficiary with how much has been paid out to them */\n mapping (address => uint) public paidOut;\n /* total amount paid out */\n uint public totalPaidOut;\n /* associates every beneficiary with their HardDeposit */\n mapping (address => HardDeposit) public hardDeposits;\n /* sum of all hard deposits */\n uint public totalHardDeposit;\n /* issuer of the contract, set at construction */\n address public issuer;\n /* indicates wether a cheque bounced in the past */\n bool public bounced;\n\n /**\n @notice sets the issuer, token and the defaultHardDepositTimeout. can only be called once.\n @param _issuer the issuer of cheques from this chequebook (needed as an argument for \"Setting up a chequebook as a payment\").\n _issuer must be an Externally Owned Account, or it must support calling the function cashCheque\n @param _token the token this chequebook uses\n @param _defaultHardDepositTimeout duration in seconds which by default will be used to reduce hardDeposit allocations\n */\n function init(address _issuer, address _token, uint _defaultHardDepositTimeout) public {\n require(_issuer != address(0), \"invalid issuer\");\n require(issuer == address(0), \"already initialized\");\n issuer = _issuer;\n token = ERC20(_token);\n defaultHardDepositTimeout = _defaultHardDepositTimeout;\n }\n\n /// @return the balance of the chequebook\n function balance() public view returns(uint) {\n return token.balanceOf(address(this));\n }\n /// @return the part of the balance that is not covered by hard deposits\n function liquidBalance() public view returns(uint) {\n return balance().sub(totalHardDeposit);\n }\n\n /// @return the part of the balance available for a specific beneficiary\n function liquidBalanceFor(address beneficiary) public view returns(uint) {\n return liquidBalance().add(hardDeposits[beneficiary].amount);\n }\n /**\n @dev internal function responsible for checking the issuerSignature, updating hardDeposit balances and doing transfers.\n Called by cashCheque and cashChequeBeneficary\n @param beneficiary the beneficiary to which cheques were assigned. Beneficiary must be an Externally Owned Account\n @param recipient receives the differences between cumulativePayment and what was already paid-out to the beneficiary minus callerPayout\n @param cumulativePayout cumulative amount of cheques assigned to beneficiary\n @param issuerSig if issuer is not the sender, issuer must have given explicit approval on the cumulativePayout to the beneficiary\n */\n function _cashChequeInternal(\n address beneficiary,\n address recipient,\n uint cumulativePayout,\n uint callerPayout,\n bytes memory issuerSig\n ) internal {\n /* The issuer must have given explicit approval to the cumulativePayout, either by being the caller or by signature*/\n if (msg.sender != issuer) {\n require(issuer == recoverEIP712(chequeHash(address(this), beneficiary, cumulativePayout), issuerSig),\n \"invalid issuer signature\");\n }\n /* the requestPayout is the amount requested for payment processing */\n uint requestPayout = cumulativePayout.sub(paidOut[beneficiary]);\n /* calculates acutal payout */\n uint totalPayout = Math.min(requestPayout, liquidBalanceFor(beneficiary));\n /* calculates hard-deposit usage */\n uint hardDepositUsage = Math.min(totalPayout, hardDeposits[beneficiary].amount);\n require(totalPayout >= callerPayout, \"SimpleSwap: cannot pay caller\");\n /* if there are some of the hard deposit used, update hardDeposits*/\n if (hardDepositUsage != 0) {\n hardDeposits[beneficiary].amount = hardDeposits[beneficiary].amount.sub(hardDepositUsage);\n\n totalHardDeposit = totalHardDeposit.sub(hardDepositUsage);\n }\n /* increase the stored paidOut amount to avoid double payout */\n paidOut[beneficiary] = paidOut[beneficiary].add(totalPayout);\n totalPaidOut = totalPaidOut.add(totalPayout);\n\n /* let the world know that the issuer has over-promised on outstanding cheques */\n if (requestPayout != totalPayout) {\n bounced = true;\n emit ChequeBounced();\n }\n\n if (callerPayout != 0) {\n /* do a transfer to the caller if specified*/\n require(token.transfer(msg.sender, callerPayout), \"transfer failed\");\n /* do the actual payment */\n require(token.transfer(recipient, totalPayout.sub(callerPayout)), \"transfer failed\");\n } else {\n /* do the actual payment */\n require(token.transfer(recipient, totalPayout), \"transfer failed\");\n }\n\n emit ChequeCashed(beneficiary, recipient, msg.sender, totalPayout, cumulativePayout, callerPayout);\n }\n /**\n @notice cash a cheque of the beneficiary by a non-beneficiary and reward the sender for doing so with callerPayout\n @dev a beneficiary must be able to generate signatures (be an Externally Owned Account) to make use of this feature\n @param beneficiary the beneficiary to which cheques were assigned. Beneficiary must be an Externally Owned Account\n @param recipient receives the differences between cumulativePayment and what was already paid-out to the beneficiary minus callerPayout\n @param cumulativePayout cumulative amount of cheques assigned to beneficiary\n @param beneficiarySig beneficiary must have given explicit approval for cashing out the cumulativePayout by the sender and sending the callerPayout\n @param issuerSig if issuer is not the sender, issuer must have given explicit approval on the cumulativePayout to the beneficiary\n @param callerPayout when beneficiary does not have ether yet, he can incentivize other people to cash cheques with help of callerPayout\n @param issuerSig if issuer is not the sender, issuer must have given explicit approval on the cumulativePayout to the beneficiary\n */\n function cashCheque(\n address beneficiary,\n address recipient,\n uint cumulativePayout,\n bytes memory beneficiarySig,\n uint256 callerPayout,\n bytes memory issuerSig\n ) public {\n require(\n beneficiary == recoverEIP712(\n cashOutHash(\n address(this),\n msg.sender,\n cumulativePayout,\n recipient,\n callerPayout\n ), beneficiarySig\n ), \"invalid beneficiary signature\");\n _cashChequeInternal(beneficiary, recipient, cumulativePayout, callerPayout, issuerSig);\n }\n\n /**\n @notice cash a cheque as beneficiary\n @param recipient receives the differences between cumulativePayment and what was already paid-out to the beneficiary minus callerPayout\n @param cumulativePayout amount requested to pay out\n @param issuerSig issuer must have given explicit approval on the cumulativePayout to the beneficiary\n */\n function cashChequeBeneficiary(address recipient, uint cumulativePayout, bytes memory issuerSig) public {\n _cashChequeInternal(msg.sender, recipient, cumulativePayout, 0, issuerSig);\n }\n\n /**\n @notice prepare to decrease the hard deposit\n @dev decreasing hardDeposits must be done in two steps to allow beneficiaries to cash any uncashed cheques (and make use of the assgined hard-deposits)\n @param beneficiary beneficiary whose hard deposit should be decreased\n @param decreaseAmount amount that the deposit is supposed to be decreased by\n */\n function prepareDecreaseHardDeposit(address beneficiary, uint decreaseAmount) public {\n require(msg.sender == issuer, \"SimpleSwap: not issuer\");\n HardDeposit storage hardDeposit = hardDeposits[beneficiary];\n /* cannot decrease it by more than the deposit */\n require(decreaseAmount <= hardDeposit.amount, \"hard deposit not sufficient\");\n // if hardDeposit.timeout was never set, apply defaultHardDepositTimeout\n uint timeout = hardDeposit.timeout == 0 ? defaultHardDepositTimeout : hardDeposit.timeout;\n hardDeposit.canBeDecreasedAt = block.timestamp + timeout;\n hardDeposit.decreaseAmount = decreaseAmount;\n emit HardDepositDecreasePrepared(beneficiary, decreaseAmount);\n }\n\n /**\n @notice decrease the hard deposit after waiting the necesary amount of time since prepareDecreaseHardDeposit was called\n @param beneficiary beneficiary whose hard deposit should be decreased\n */\n function decreaseHardDeposit(address beneficiary) public {\n HardDeposit storage hardDeposit = hardDeposits[beneficiary];\n require(block.timestamp >= hardDeposit.canBeDecreasedAt && hardDeposit.canBeDecreasedAt != 0, \"deposit not yet timed out\");\n /* this throws if decreaseAmount > amount */\n //TODO: if there is a cash-out in between prepareDecreaseHardDeposit and decreaseHardDeposit, decreaseHardDeposit will throw and reducing hard-deposits is impossible.\n hardDeposit.amount = hardDeposit.amount.sub(hardDeposit.decreaseAmount);\n /* reset the canBeDecreasedAt to avoid a double decrease */\n hardDeposit.canBeDecreasedAt = 0;\n /* keep totalDeposit in sync */\n totalHardDeposit = totalHardDeposit.sub(hardDeposit.decreaseAmount);\n emit HardDepositAmountChanged(beneficiary, hardDeposit.amount);\n }\n\n /**\n @notice increase the hard deposit\n @param beneficiary beneficiary whose hard deposit should be decreased\n @param amount the new hard deposit\n */\n function increaseHardDeposit(address beneficiary, uint amount) public {\n require(msg.sender == issuer, \"SimpleSwap: not issuer\");\n /* ensure hard deposits don't exceed the global balance */\n require(totalHardDeposit.add(amount) <= balance(), \"hard deposit exceeds balance\");\n\n HardDeposit storage hardDeposit = hardDeposits[beneficiary];\n hardDeposit.amount = hardDeposit.amount.add(amount);\n // we don't explicitely set hardDepositTimout, as zero means using defaultHardDepositTimeout\n totalHardDeposit = totalHardDeposit.add(amount);\n /* disable any pending decrease */\n hardDeposit.canBeDecreasedAt = 0;\n emit HardDepositAmountChanged(beneficiary, hardDeposit.amount);\n }\n\n /**\n @notice allows for setting a custom hardDepositDecreaseTimeout per beneficiary\n @dev this is required when solvency must be guaranteed for a period longer than the defaultHardDepositDecreaseTimeout\n @param beneficiary beneficiary whose hard deposit decreaseTimeout must be changed\n @param hardDepositTimeout new hardDeposit.timeout for beneficiary\n @param beneficiarySig beneficiary must give explicit approval by giving his signature on the new decreaseTimeout\n */\n function setCustomHardDepositTimeout(\n address beneficiary,\n uint hardDepositTimeout,\n bytes memory beneficiarySig\n ) public {\n require(msg.sender == issuer, \"not issuer\");\n require(\n beneficiary == recoverEIP712(customDecreaseTimeoutHash(address(this), beneficiary, hardDepositTimeout), beneficiarySig),\n \"invalid beneficiary signature\"\n );\n hardDeposits[beneficiary].timeout = hardDepositTimeout;\n emit HardDepositTimeoutChanged(beneficiary, hardDepositTimeout);\n }\n\n /// @notice withdraw ether\n /// @param amount amount to withdraw\n // solhint-disable-next-line no-simple-event-func-name\n function withdraw(uint amount) public {\n /* only issuer can do this */\n require(msg.sender == issuer, \"not issuer\");\n /* ensure we don't take anything from the hard deposit */\n require(amount <= liquidBalance(), \"liquidBalance not sufficient\");\n require(token.transfer(issuer, amount), \"transfer failed\");\n }\n\n function chequeHash(address chequebook, address beneficiary, uint cumulativePayout)\n internal pure returns (bytes32) {\n return keccak256(abi.encode(\n CHEQUE_TYPEHASH,\n chequebook,\n beneficiary,\n cumulativePayout\n ));\n } \n\n function cashOutHash(address chequebook, address sender, uint requestPayout, address recipient, uint callerPayout)\n internal pure returns (bytes32) {\n return keccak256(abi.encode(\n CASHOUT_TYPEHASH,\n chequebook,\n sender,\n requestPayout,\n recipient,\n callerPayout\n ));\n }\n\n function customDecreaseTimeoutHash(address chequebook, address beneficiary, uint decreaseTimeout)\n internal pure returns (bytes32) {\n return keccak256(abi.encode(\n CUSTOMDECREASETIMEOUT_TYPEHASH,\n chequebook,\n beneficiary,\n decreaseTimeout\n ));\n }\n}" + }, + "@openzeppelin/contracts/math/SafeMath.sol": { + "content": "// SPDX-License-Identifier: MIT\n\npragma solidity >=0.6.0 <0.8.0;\n\n/**\n * @dev Wrappers over Solidity's arithmetic operations with added overflow\n * checks.\n *\n * Arithmetic operations in Solidity wrap on overflow. This can easily result\n * in bugs, because programmers usually assume that an overflow raises an\n * error, which is the standard behavior in high level programming languages.\n * `SafeMath` restores this intuition by reverting the transaction when an\n * operation overflows.\n *\n * Using this library instead of the unchecked operations eliminates an entire\n * class of bugs, so it's recommended to use it always.\n */\nlibrary SafeMath {\n /**\n * @dev Returns the addition of two unsigned integers, with an overflow flag.\n *\n * _Available since v3.4._\n */\n function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {\n uint256 c = a + b;\n if (c < a) return (false, 0);\n return (true, c);\n }\n\n /**\n * @dev Returns the substraction of two unsigned integers, with an overflow flag.\n *\n * _Available since v3.4._\n */\n function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {\n if (b > a) return (false, 0);\n return (true, a - b);\n }\n\n /**\n * @dev Returns the multiplication of two unsigned integers, with an overflow flag.\n *\n * _Available since v3.4._\n */\n function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {\n // Gas optimization: this is cheaper than requiring 'a' not being zero, but the\n // benefit is lost if 'b' is also tested.\n // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522\n if (a == 0) return (true, 0);\n uint256 c = a * b;\n if (c / a != b) return (false, 0);\n return (true, c);\n }\n\n /**\n * @dev Returns the division of two unsigned integers, with a division by zero flag.\n *\n * _Available since v3.4._\n */\n function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {\n if (b == 0) return (false, 0);\n return (true, a / b);\n }\n\n /**\n * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.\n *\n * _Available since v3.4._\n */\n function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {\n if (b == 0) return (false, 0);\n return (true, a % b);\n }\n\n /**\n * @dev Returns the addition of two unsigned integers, reverting on\n * overflow.\n *\n * Counterpart to Solidity's `+` operator.\n *\n * Requirements:\n *\n * - Addition cannot overflow.\n */\n function add(uint256 a, uint256 b) internal pure returns (uint256) {\n uint256 c = a + b;\n require(c >= a, \"SafeMath: addition overflow\");\n return c;\n }\n\n /**\n * @dev Returns the subtraction of two unsigned integers, reverting on\n * overflow (when the result is negative).\n *\n * Counterpart to Solidity's `-` operator.\n *\n * Requirements:\n *\n * - Subtraction cannot overflow.\n */\n function sub(uint256 a, uint256 b) internal pure returns (uint256) {\n require(b <= a, \"SafeMath: subtraction overflow\");\n return a - b;\n }\n\n /**\n * @dev Returns the multiplication of two unsigned integers, reverting on\n * overflow.\n *\n * Counterpart to Solidity's `*` operator.\n *\n * Requirements:\n *\n * - Multiplication cannot overflow.\n */\n function mul(uint256 a, uint256 b) internal pure returns (uint256) {\n if (a == 0) return 0;\n uint256 c = a * b;\n require(c / a == b, \"SafeMath: multiplication overflow\");\n return c;\n }\n\n /**\n * @dev Returns the integer division of two unsigned integers, reverting on\n * division by zero. The result is rounded towards zero.\n *\n * Counterpart to Solidity's `/` operator. Note: this function uses a\n * `revert` opcode (which leaves remaining gas untouched) while Solidity\n * uses an invalid opcode to revert (consuming all remaining gas).\n *\n * Requirements:\n *\n * - The divisor cannot be zero.\n */\n function div(uint256 a, uint256 b) internal pure returns (uint256) {\n require(b > 0, \"SafeMath: division by zero\");\n return a / b;\n }\n\n /**\n * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),\n * reverting when dividing by zero.\n *\n * Counterpart to Solidity's `%` operator. This function uses a `revert`\n * opcode (which leaves remaining gas untouched) while Solidity uses an\n * invalid opcode to revert (consuming all remaining gas).\n *\n * Requirements:\n *\n * - The divisor cannot be zero.\n */\n function mod(uint256 a, uint256 b) internal pure returns (uint256) {\n require(b > 0, \"SafeMath: modulo by zero\");\n return a % b;\n }\n\n /**\n * @dev Returns the subtraction of two unsigned integers, reverting with custom message on\n * overflow (when the result is negative).\n *\n * CAUTION: This function is deprecated because it requires allocating memory for the error\n * message unnecessarily. For custom revert reasons use {trySub}.\n *\n * Counterpart to Solidity's `-` operator.\n *\n * Requirements:\n *\n * - Subtraction cannot overflow.\n */\n function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {\n require(b <= a, errorMessage);\n return a - b;\n }\n\n /**\n * @dev Returns the integer division of two unsigned integers, reverting with custom message on\n * division by zero. The result is rounded towards zero.\n *\n * CAUTION: This function is deprecated because it requires allocating memory for the error\n * message unnecessarily. For custom revert reasons use {tryDiv}.\n *\n * Counterpart to Solidity's `/` operator. Note: this function uses a\n * `revert` opcode (which leaves remaining gas untouched) while Solidity\n * uses an invalid opcode to revert (consuming all remaining gas).\n *\n * Requirements:\n *\n * - The divisor cannot be zero.\n */\n function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {\n require(b > 0, errorMessage);\n return a / b;\n }\n\n /**\n * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),\n * reverting with custom message when dividing by zero.\n *\n * CAUTION: This function is deprecated because it requires allocating memory for the error\n * message unnecessarily. For custom revert reasons use {tryMod}.\n *\n * Counterpart to Solidity's `%` operator. This function uses a `revert`\n * opcode (which leaves remaining gas untouched) while Solidity uses an\n * invalid opcode to revert (consuming all remaining gas).\n *\n * Requirements:\n *\n * - The divisor cannot be zero.\n */\n function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {\n require(b > 0, errorMessage);\n return a % b;\n }\n}\n" + }, + "@openzeppelin/contracts/math/Math.sol": { + "content": "// SPDX-License-Identifier: MIT\n\npragma solidity >=0.6.0 <0.8.0;\n\n/**\n * @dev Standard math utilities missing in the Solidity language.\n */\nlibrary Math {\n /**\n * @dev Returns the largest of two numbers.\n */\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\n return a >= b ? a : b;\n }\n\n /**\n * @dev Returns the smallest of two numbers.\n */\n function min(uint256 a, uint256 b) internal pure returns (uint256) {\n return a < b ? a : b;\n }\n\n /**\n * @dev Returns the average of two numbers. The result is rounded towards\n * zero.\n */\n function average(uint256 a, uint256 b) internal pure returns (uint256) {\n // (a + b) / 2 can overflow, so we distribute\n return (a / 2) + (b / 2) + ((a % 2 + b % 2) / 2);\n }\n}\n" + }, + "@openzeppelin/contracts/cryptography/ECDSA.sol": { + "content": "// SPDX-License-Identifier: MIT\n\npragma solidity >=0.6.0 <0.8.0;\n\n/**\n * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.\n *\n * These functions can be used to verify that a message was signed by the holder\n * of the private keys of a given address.\n */\nlibrary ECDSA {\n /**\n * @dev Returns the address that signed a hashed message (`hash`) with\n * `signature`. This address can then be used for verification purposes.\n *\n * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:\n * this function rejects them by requiring the `s` value to be in the lower\n * half order, and the `v` value to be either 27 or 28.\n *\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\n * verification to be secure: it is possible to craft signatures that\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\n * this is by receiving a hash of the original message (which may otherwise\n * be too long), and then calling {toEthSignedMessageHash} on it.\n */\n function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {\n // Check the signature length\n if (signature.length != 65) {\n revert(\"ECDSA: invalid signature length\");\n }\n\n // Divide the signature in r, s and v variables\n bytes32 r;\n bytes32 s;\n uint8 v;\n\n // ecrecover takes the signature parameters, and the only way to get them\n // currently is to use assembly.\n // solhint-disable-next-line no-inline-assembly\n assembly {\n r := mload(add(signature, 0x20))\n s := mload(add(signature, 0x40))\n v := byte(0, mload(add(signature, 0x60)))\n }\n\n return recover(hash, v, r, s);\n }\n\n /**\n * @dev Overload of {ECDSA-recover-bytes32-bytes-} that receives the `v`,\n * `r` and `s` signature fields separately.\n */\n function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) {\n // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature\n // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines\n // the valid range for s in (281): 0 < s < secp256k1n ÷ 2 + 1, and for v in (282): v ∈ {27, 28}. Most\n // signatures from current libraries generate a unique signature with an s-value in the lower half order.\n //\n // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value\n // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or\n // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept\n // these malleable signatures as well.\n require(uint256(s) <= 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0, \"ECDSA: invalid signature 's' value\");\n require(v == 27 || v == 28, \"ECDSA: invalid signature 'v' value\");\n\n // If the signature is valid (and not malleable), return the signer address\n address signer = ecrecover(hash, v, r, s);\n require(signer != address(0), \"ECDSA: invalid signature\");\n\n return signer;\n }\n\n /**\n * @dev Returns an Ethereum Signed Message, created from a `hash`. This\n * replicates the behavior of the\n * https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_sign[`eth_sign`]\n * JSON-RPC method.\n *\n * See {recover}.\n */\n function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {\n // 32 is the length in bytes of hash,\n // enforced by the type signature above\n return keccak256(abi.encodePacked(\"\\x19Ethereum Signed Message:\\n32\", hash));\n }\n}\n" + }, + "@openzeppelin/contracts/token/ERC20/ERC20.sol": { + "content": "// SPDX-License-Identifier: MIT\n\npragma solidity >=0.6.0 <0.8.0;\n\nimport \"../../utils/Context.sol\";\nimport \"./IERC20.sol\";\nimport \"../../math/SafeMath.sol\";\n\n/**\n * @dev Implementation of the {IERC20} interface.\n *\n * This implementation is agnostic to the way tokens are created. This means\n * that a supply mechanism has to be added in a derived contract using {_mint}.\n * For a generic mechanism see {ERC20PresetMinterPauser}.\n *\n * TIP: For a detailed writeup see our guide\n * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How\n * to implement supply mechanisms].\n *\n * We have followed general OpenZeppelin guidelines: functions revert instead\n * of returning `false` on failure. This behavior is nonetheless conventional\n * and does not conflict with the expectations of ERC20 applications.\n *\n * Additionally, an {Approval} event is emitted on calls to {transferFrom}.\n * This allows applications to reconstruct the allowance for all accounts just\n * by listening to said events. Other implementations of the EIP may not emit\n * these events, as it isn't required by the specification.\n *\n * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}\n * functions have been added to mitigate the well-known issues around setting\n * allowances. See {IERC20-approve}.\n */\ncontract ERC20 is Context, IERC20 {\n using SafeMath for uint256;\n\n mapping (address => uint256) private _balances;\n\n mapping (address => mapping (address => uint256)) private _allowances;\n\n uint256 private _totalSupply;\n\n string private _name;\n string private _symbol;\n uint8 private _decimals;\n\n /**\n * @dev Sets the values for {name} and {symbol}, initializes {decimals} with\n * a default value of 18.\n *\n * To select a different value for {decimals}, use {_setupDecimals}.\n *\n * All three of these values are immutable: they can only be set once during\n * construction.\n */\n constructor (string memory name_, string memory symbol_) public {\n _name = name_;\n _symbol = symbol_;\n _decimals = 18;\n }\n\n /**\n * @dev Returns the name of the token.\n */\n function name() public view virtual returns (string memory) {\n return _name;\n }\n\n /**\n * @dev Returns the symbol of the token, usually a shorter version of the\n * name.\n */\n function symbol() public view virtual returns (string memory) {\n return _symbol;\n }\n\n /**\n * @dev Returns the number of decimals used to get its user representation.\n * For example, if `decimals` equals `2`, a balance of `505` tokens should\n * be displayed to a user as `5,05` (`505 / 10 ** 2`).\n *\n * Tokens usually opt for a value of 18, imitating the relationship between\n * Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is\n * called.\n *\n * NOTE: This information is only used for _display_ purposes: it in\n * no way affects any of the arithmetic of the contract, including\n * {IERC20-balanceOf} and {IERC20-transfer}.\n */\n function decimals() public view virtual returns (uint8) {\n return _decimals;\n }\n\n /**\n * @dev See {IERC20-totalSupply}.\n */\n function totalSupply() public view virtual override returns (uint256) {\n return _totalSupply;\n }\n\n /**\n * @dev See {IERC20-balanceOf}.\n */\n function balanceOf(address account) public view virtual override returns (uint256) {\n return _balances[account];\n }\n\n /**\n * @dev See {IERC20-transfer}.\n *\n * Requirements:\n *\n * - `recipient` cannot be the zero address.\n * - the caller must have a balance of at least `amount`.\n */\n function transfer(address recipient, uint256 amount) public virtual override returns (bool) {\n _transfer(_msgSender(), recipient, amount);\n return true;\n }\n\n /**\n * @dev See {IERC20-allowance}.\n */\n function allowance(address owner, address spender) public view virtual override returns (uint256) {\n return _allowances[owner][spender];\n }\n\n /**\n * @dev See {IERC20-approve}.\n *\n * Requirements:\n *\n * - `spender` cannot be the zero address.\n */\n function approve(address spender, uint256 amount) public virtual override returns (bool) {\n _approve(_msgSender(), spender, amount);\n return true;\n }\n\n /**\n * @dev See {IERC20-transferFrom}.\n *\n * Emits an {Approval} event indicating the updated allowance. This is not\n * required by the EIP. See the note at the beginning of {ERC20}.\n *\n * Requirements:\n *\n * - `sender` and `recipient` cannot be the zero address.\n * - `sender` must have a balance of at least `amount`.\n * - the caller must have allowance for ``sender``'s tokens of at least\n * `amount`.\n */\n function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {\n _transfer(sender, recipient, amount);\n _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, \"ERC20: transfer amount exceeds allowance\"));\n return true;\n }\n\n /**\n * @dev Atomically increases the allowance granted to `spender` by the caller.\n *\n * This is an alternative to {approve} that can be used as a mitigation for\n * problems described in {IERC20-approve}.\n *\n * Emits an {Approval} event indicating the updated allowance.\n *\n * Requirements:\n *\n * - `spender` cannot be the zero address.\n */\n function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {\n _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));\n return true;\n }\n\n /**\n * @dev Atomically decreases the allowance granted to `spender` by the caller.\n *\n * This is an alternative to {approve} that can be used as a mitigation for\n * problems described in {IERC20-approve}.\n *\n * Emits an {Approval} event indicating the updated allowance.\n *\n * Requirements:\n *\n * - `spender` cannot be the zero address.\n * - `spender` must have allowance for the caller of at least\n * `subtractedValue`.\n */\n function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {\n _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, \"ERC20: decreased allowance below zero\"));\n return true;\n }\n\n /**\n * @dev Moves tokens `amount` from `sender` to `recipient`.\n *\n * This is internal function is equivalent to {transfer}, and can be used to\n * e.g. implement automatic token fees, slashing mechanisms, etc.\n *\n * Emits a {Transfer} event.\n *\n * Requirements:\n *\n * - `sender` cannot be the zero address.\n * - `recipient` cannot be the zero address.\n * - `sender` must have a balance of at least `amount`.\n */\n function _transfer(address sender, address recipient, uint256 amount) internal virtual {\n require(sender != address(0), \"ERC20: transfer from the zero address\");\n require(recipient != address(0), \"ERC20: transfer to the zero address\");\n\n _beforeTokenTransfer(sender, recipient, amount);\n\n _balances[sender] = _balances[sender].sub(amount, \"ERC20: transfer amount exceeds balance\");\n _balances[recipient] = _balances[recipient].add(amount);\n emit Transfer(sender, recipient, amount);\n }\n\n /** @dev Creates `amount` tokens and assigns them to `account`, increasing\n * the total supply.\n *\n * Emits a {Transfer} event with `from` set to the zero address.\n *\n * Requirements:\n *\n * - `to` cannot be the zero address.\n */\n function _mint(address account, uint256 amount) internal virtual {\n require(account != address(0), \"ERC20: mint to the zero address\");\n\n _beforeTokenTransfer(address(0), account, amount);\n\n _totalSupply = _totalSupply.add(amount);\n _balances[account] = _balances[account].add(amount);\n emit Transfer(address(0), account, amount);\n }\n\n /**\n * @dev Destroys `amount` tokens from `account`, reducing the\n * total supply.\n *\n * Emits a {Transfer} event with `to` set to the zero address.\n *\n * Requirements:\n *\n * - `account` cannot be the zero address.\n * - `account` must have at least `amount` tokens.\n */\n function _burn(address account, uint256 amount) internal virtual {\n require(account != address(0), \"ERC20: burn from the zero address\");\n\n _beforeTokenTransfer(account, address(0), amount);\n\n _balances[account] = _balances[account].sub(amount, \"ERC20: burn amount exceeds balance\");\n _totalSupply = _totalSupply.sub(amount);\n emit Transfer(account, address(0), amount);\n }\n\n /**\n * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.\n *\n * This internal function is equivalent to `approve`, and can be used to\n * e.g. set automatic allowances for certain subsystems, etc.\n *\n * Emits an {Approval} event.\n *\n * Requirements:\n *\n * - `owner` cannot be the zero address.\n * - `spender` cannot be the zero address.\n */\n function _approve(address owner, address spender, uint256 amount) internal virtual {\n require(owner != address(0), \"ERC20: approve from the zero address\");\n require(spender != address(0), \"ERC20: approve to the zero address\");\n\n _allowances[owner][spender] = amount;\n emit Approval(owner, spender, amount);\n }\n\n /**\n * @dev Sets {decimals} to a value other than the default one of 18.\n *\n * WARNING: This function should only be called from the constructor. Most\n * applications that interact with token contracts will not expect\n * {decimals} to ever change, and may work incorrectly if it does.\n */\n function _setupDecimals(uint8 decimals_) internal virtual {\n _decimals = decimals_;\n }\n\n /**\n * @dev Hook that is called before any transfer of tokens. This includes\n * minting and burning.\n *\n * Calling conditions:\n *\n * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens\n * will be to transferred to `to`.\n * - when `from` is zero, `amount` tokens will be minted for `to`.\n * - when `to` is zero, `amount` of ``from``'s tokens will be burned.\n * - `from` and `to` are never both zero.\n *\n * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].\n */\n function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }\n}\n" + }, + "@openzeppelin/contracts/presets/ERC20PresetMinterPauser.sol": { + "content": "// SPDX-License-Identifier: MIT\n\npragma solidity >=0.6.0 <0.8.0;\n\nimport \"../access/AccessControl.sol\";\nimport \"../utils/Context.sol\";\nimport \"../token/ERC20/ERC20.sol\";\nimport \"../token/ERC20/ERC20Burnable.sol\";\nimport \"../token/ERC20/ERC20Pausable.sol\";\n\n/**\n * @dev {ERC20} token, including:\n *\n * - ability for holders to burn (destroy) their tokens\n * - a minter role that allows for token minting (creation)\n * - a pauser role that allows to stop all token transfers\n *\n * This contract uses {AccessControl} to lock permissioned functions using the\n * different roles - head to its documentation for details.\n *\n * The account that deploys the contract will be granted the minter and pauser\n * roles, as well as the default admin role, which will let it grant both minter\n * and pauser roles to other accounts.\n */\ncontract ERC20PresetMinterPauser is Context, AccessControl, ERC20Burnable, ERC20Pausable {\n bytes32 public constant MINTER_ROLE = keccak256(\"MINTER_ROLE\");\n bytes32 public constant PAUSER_ROLE = keccak256(\"PAUSER_ROLE\");\n\n /**\n * @dev Grants `DEFAULT_ADMIN_ROLE`, `MINTER_ROLE` and `PAUSER_ROLE` to the\n * account that deploys the contract.\n *\n * See {ERC20-constructor}.\n */\n constructor(string memory name, string memory symbol) public ERC20(name, symbol) {\n _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());\n\n _setupRole(MINTER_ROLE, _msgSender());\n _setupRole(PAUSER_ROLE, _msgSender());\n }\n\n /**\n * @dev Creates `amount` new tokens for `to`.\n *\n * See {ERC20-_mint}.\n *\n * Requirements:\n *\n * - the caller must have the `MINTER_ROLE`.\n */\n function mint(address to, uint256 amount) public virtual {\n require(hasRole(MINTER_ROLE, _msgSender()), \"ERC20PresetMinterPauser: must have minter role to mint\");\n _mint(to, amount);\n }\n\n /**\n * @dev Pauses all token transfers.\n *\n * See {ERC20Pausable} and {Pausable-_pause}.\n *\n * Requirements:\n *\n * - the caller must have the `PAUSER_ROLE`.\n */\n function pause() public virtual {\n require(hasRole(PAUSER_ROLE, _msgSender()), \"ERC20PresetMinterPauser: must have pauser role to pause\");\n _pause();\n }\n\n /**\n * @dev Unpauses all token transfers.\n *\n * See {ERC20Pausable} and {Pausable-_unpause}.\n *\n * Requirements:\n *\n * - the caller must have the `PAUSER_ROLE`.\n */\n function unpause() public virtual {\n require(hasRole(PAUSER_ROLE, _msgSender()), \"ERC20PresetMinterPauser: must have pauser role to unpause\");\n _unpause();\n }\n\n function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual override(ERC20, ERC20Pausable) {\n super._beforeTokenTransfer(from, to, amount);\n }\n}\n" + }, + "@openzeppelin/contracts/utils/Context.sol": { + "content": "// SPDX-License-Identifier: MIT\n\npragma solidity >=0.6.0 <0.8.0;\n\n/*\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with GSN meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract Context {\n function _msgSender() internal view virtual returns (address payable) {\n return msg.sender;\n }\n\n function _msgData() internal view virtual returns (bytes memory) {\n this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691\n return msg.data;\n }\n}\n" + }, + "@openzeppelin/contracts/token/ERC20/IERC20.sol": { + "content": "// SPDX-License-Identifier: MIT\n\npragma solidity >=0.6.0 <0.8.0;\n\n/**\n * @dev Interface of the ERC20 standard as defined in the EIP.\n */\ninterface IERC20 {\n /**\n * @dev Returns the amount of tokens in existence.\n */\n function totalSupply() external view returns (uint256);\n\n /**\n * @dev Returns the amount of tokens owned by `account`.\n */\n function balanceOf(address account) external view returns (uint256);\n\n /**\n * @dev Moves `amount` tokens from the caller's account to `recipient`.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transfer(address recipient, uint256 amount) external returns (bool);\n\n /**\n * @dev Returns the remaining number of tokens that `spender` will be\n * allowed to spend on behalf of `owner` through {transferFrom}. This is\n * zero by default.\n *\n * This value changes when {approve} or {transferFrom} are called.\n */\n function allowance(address owner, address spender) external view returns (uint256);\n\n /**\n * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * IMPORTANT: Beware that changing an allowance with this method brings the risk\n * that someone may use both the old and the new allowance by unfortunate\n * transaction ordering. One possible solution to mitigate this race\n * condition is to first reduce the spender's allowance to 0 and set the\n * desired value afterwards:\n * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\n *\n * Emits an {Approval} event.\n */\n function approve(address spender, uint256 amount) external returns (bool);\n\n /**\n * @dev Moves `amount` tokens from `sender` to `recipient` using the\n * allowance mechanism. `amount` is then deducted from the caller's\n * allowance.\n *\n * Returns a boolean value indicating whether the operation succeeded.\n *\n * Emits a {Transfer} event.\n */\n function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);\n\n /**\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\n * another (`to`).\n *\n * Note that `value` may be zero.\n */\n event Transfer(address indexed from, address indexed to, uint256 value);\n\n /**\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n * a call to {approve}. `value` is the new allowance.\n */\n event Approval(address indexed owner, address indexed spender, uint256 value);\n}\n" + }, + "@openzeppelin/contracts/access/AccessControl.sol": { + "content": "// SPDX-License-Identifier: MIT\n\npragma solidity >=0.6.0 <0.8.0;\n\nimport \"../utils/EnumerableSet.sol\";\nimport \"../utils/Address.sol\";\nimport \"../utils/Context.sol\";\n\n/**\n * @dev Contract module that allows children to implement role-based access\n * control mechanisms.\n *\n * Roles are referred to by their `bytes32` identifier. These should be exposed\n * in the external API and be unique. The best way to achieve this is by\n * using `public constant` hash digests:\n *\n * ```\n * bytes32 public constant MY_ROLE = keccak256(\"MY_ROLE\");\n * ```\n *\n * Roles can be used to represent a set of permissions. To restrict access to a\n * function call, use {hasRole}:\n *\n * ```\n * function foo() public {\n * require(hasRole(MY_ROLE, msg.sender));\n * ...\n * }\n * ```\n *\n * Roles can be granted and revoked dynamically via the {grantRole} and\n * {revokeRole} functions. Each role has an associated admin role, and only\n * accounts that have a role's admin role can call {grantRole} and {revokeRole}.\n *\n * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means\n * that only accounts with this role will be able to grant or revoke other\n * roles. More complex role relationships can be created by using\n * {_setRoleAdmin}.\n *\n * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to\n * grant and revoke this role. Extra precautions should be taken to secure\n * accounts that have been granted it.\n */\nabstract contract AccessControl is Context {\n using EnumerableSet for EnumerableSet.AddressSet;\n using Address for address;\n\n struct RoleData {\n EnumerableSet.AddressSet members;\n bytes32 adminRole;\n }\n\n mapping (bytes32 => RoleData) private _roles;\n\n bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;\n\n /**\n * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`\n *\n * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite\n * {RoleAdminChanged} not being emitted signaling this.\n *\n * _Available since v3.1._\n */\n event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);\n\n /**\n * @dev Emitted when `account` is granted `role`.\n *\n * `sender` is the account that originated the contract call, an admin role\n * bearer except when using {_setupRole}.\n */\n event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);\n\n /**\n * @dev Emitted when `account` is revoked `role`.\n *\n * `sender` is the account that originated the contract call:\n * - if using `revokeRole`, it is the admin role bearer\n * - if using `renounceRole`, it is the role bearer (i.e. `account`)\n */\n event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);\n\n /**\n * @dev Returns `true` if `account` has been granted `role`.\n */\n function hasRole(bytes32 role, address account) public view returns (bool) {\n return _roles[role].members.contains(account);\n }\n\n /**\n * @dev Returns the number of accounts that have `role`. Can be used\n * together with {getRoleMember} to enumerate all bearers of a role.\n */\n function getRoleMemberCount(bytes32 role) public view returns (uint256) {\n return _roles[role].members.length();\n }\n\n /**\n * @dev Returns one of the accounts that have `role`. `index` must be a\n * value between 0 and {getRoleMemberCount}, non-inclusive.\n *\n * Role bearers are not sorted in any particular way, and their ordering may\n * change at any point.\n *\n * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure\n * you perform all queries on the same block. See the following\n * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]\n * for more information.\n */\n function getRoleMember(bytes32 role, uint256 index) public view returns (address) {\n return _roles[role].members.at(index);\n }\n\n /**\n * @dev Returns the admin role that controls `role`. See {grantRole} and\n * {revokeRole}.\n *\n * To change a role's admin, use {_setRoleAdmin}.\n */\n function getRoleAdmin(bytes32 role) public view returns (bytes32) {\n return _roles[role].adminRole;\n }\n\n /**\n * @dev Grants `role` to `account`.\n *\n * If `account` had not been already granted `role`, emits a {RoleGranted}\n * event.\n *\n * Requirements:\n *\n * - the caller must have ``role``'s admin role.\n */\n function grantRole(bytes32 role, address account) public virtual {\n require(hasRole(_roles[role].adminRole, _msgSender()), \"AccessControl: sender must be an admin to grant\");\n\n _grantRole(role, account);\n }\n\n /**\n * @dev Revokes `role` from `account`.\n *\n * If `account` had been granted `role`, emits a {RoleRevoked} event.\n *\n * Requirements:\n *\n * - the caller must have ``role``'s admin role.\n */\n function revokeRole(bytes32 role, address account) public virtual {\n require(hasRole(_roles[role].adminRole, _msgSender()), \"AccessControl: sender must be an admin to revoke\");\n\n _revokeRole(role, account);\n }\n\n /**\n * @dev Revokes `role` from the calling account.\n *\n * Roles are often managed via {grantRole} and {revokeRole}: this function's\n * purpose is to provide a mechanism for accounts to lose their privileges\n * if they are compromised (such as when a trusted device is misplaced).\n *\n * If the calling account had been granted `role`, emits a {RoleRevoked}\n * event.\n *\n * Requirements:\n *\n * - the caller must be `account`.\n */\n function renounceRole(bytes32 role, address account) public virtual {\n require(account == _msgSender(), \"AccessControl: can only renounce roles for self\");\n\n _revokeRole(role, account);\n }\n\n /**\n * @dev Grants `role` to `account`.\n *\n * If `account` had not been already granted `role`, emits a {RoleGranted}\n * event. Note that unlike {grantRole}, this function doesn't perform any\n * checks on the calling account.\n *\n * [WARNING]\n * ====\n * This function should only be called from the constructor when setting\n * up the initial roles for the system.\n *\n * Using this function in any other way is effectively circumventing the admin\n * system imposed by {AccessControl}.\n * ====\n */\n function _setupRole(bytes32 role, address account) internal virtual {\n _grantRole(role, account);\n }\n\n /**\n * @dev Sets `adminRole` as ``role``'s admin role.\n *\n * Emits a {RoleAdminChanged} event.\n */\n function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {\n emit RoleAdminChanged(role, _roles[role].adminRole, adminRole);\n _roles[role].adminRole = adminRole;\n }\n\n function _grantRole(bytes32 role, address account) private {\n if (_roles[role].members.add(account)) {\n emit RoleGranted(role, account, _msgSender());\n }\n }\n\n function _revokeRole(bytes32 role, address account) private {\n if (_roles[role].members.remove(account)) {\n emit RoleRevoked(role, account, _msgSender());\n }\n }\n}\n" + }, + "@openzeppelin/contracts/token/ERC20/ERC20Burnable.sol": { + "content": "// SPDX-License-Identifier: MIT\n\npragma solidity >=0.6.0 <0.8.0;\n\nimport \"../../utils/Context.sol\";\nimport \"./ERC20.sol\";\n\n/**\n * @dev Extension of {ERC20} that allows token holders to destroy both their own\n * tokens and those that they have an allowance for, in a way that can be\n * recognized off-chain (via event analysis).\n */\nabstract contract ERC20Burnable is Context, ERC20 {\n using SafeMath for uint256;\n\n /**\n * @dev Destroys `amount` tokens from the caller.\n *\n * See {ERC20-_burn}.\n */\n function burn(uint256 amount) public virtual {\n _burn(_msgSender(), amount);\n }\n\n /**\n * @dev Destroys `amount` tokens from `account`, deducting from the caller's\n * allowance.\n *\n * See {ERC20-_burn} and {ERC20-allowance}.\n *\n * Requirements:\n *\n * - the caller must have allowance for ``accounts``'s tokens of at least\n * `amount`.\n */\n function burnFrom(address account, uint256 amount) public virtual {\n uint256 decreasedAllowance = allowance(account, _msgSender()).sub(amount, \"ERC20: burn amount exceeds allowance\");\n\n _approve(account, _msgSender(), decreasedAllowance);\n _burn(account, amount);\n }\n}\n" + }, + "@openzeppelin/contracts/token/ERC20/ERC20Pausable.sol": { + "content": "// SPDX-License-Identifier: MIT\n\npragma solidity >=0.6.0 <0.8.0;\n\nimport \"./ERC20.sol\";\nimport \"../../utils/Pausable.sol\";\n\n/**\n * @dev ERC20 token with pausable token transfers, minting and burning.\n *\n * Useful for scenarios such as preventing trades until the end of an evaluation\n * period, or having an emergency switch for freezing all token transfers in the\n * event of a large bug.\n */\nabstract contract ERC20Pausable is ERC20, Pausable {\n /**\n * @dev See {ERC20-_beforeTokenTransfer}.\n *\n * Requirements:\n *\n * - the contract must not be paused.\n */\n function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual override {\n super._beforeTokenTransfer(from, to, amount);\n\n require(!paused(), \"ERC20Pausable: token transfer while paused\");\n }\n}\n" + }, + "@openzeppelin/contracts/utils/EnumerableSet.sol": { + "content": "// SPDX-License-Identifier: MIT\n\npragma solidity >=0.6.0 <0.8.0;\n\n/**\n * @dev Library for managing\n * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive\n * types.\n *\n * Sets have the following properties:\n *\n * - Elements are added, removed, and checked for existence in constant time\n * (O(1)).\n * - Elements are enumerated in O(n). No guarantees are made on the ordering.\n *\n * ```\n * contract Example {\n * // Add the library methods\n * using EnumerableSet for EnumerableSet.AddressSet;\n *\n * // Declare a set state variable\n * EnumerableSet.AddressSet private mySet;\n * }\n * ```\n *\n * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)\n * and `uint256` (`UintSet`) are supported.\n */\nlibrary EnumerableSet {\n // To implement this library for multiple types with as little code\n // repetition as possible, we write it in terms of a generic Set type with\n // bytes32 values.\n // The Set implementation uses private functions, and user-facing\n // implementations (such as AddressSet) are just wrappers around the\n // underlying Set.\n // This means that we can only create new EnumerableSets for types that fit\n // in bytes32.\n\n struct Set {\n // Storage of set values\n bytes32[] _values;\n\n // Position of the value in the `values` array, plus 1 because index 0\n // means a value is not in the set.\n mapping (bytes32 => uint256) _indexes;\n }\n\n /**\n * @dev Add a value to a set. O(1).\n *\n * Returns true if the value was added to the set, that is if it was not\n * already present.\n */\n function _add(Set storage set, bytes32 value) private returns (bool) {\n if (!_contains(set, value)) {\n set._values.push(value);\n // The value is stored at length-1, but we add 1 to all indexes\n // and use 0 as a sentinel value\n set._indexes[value] = set._values.length;\n return true;\n } else {\n return false;\n }\n }\n\n /**\n * @dev Removes a value from a set. O(1).\n *\n * Returns true if the value was removed from the set, that is if it was\n * present.\n */\n function _remove(Set storage set, bytes32 value) private returns (bool) {\n // We read and store the value's index to prevent multiple reads from the same storage slot\n uint256 valueIndex = set._indexes[value];\n\n if (valueIndex != 0) { // Equivalent to contains(set, value)\n // To delete an element from the _values array in O(1), we swap the element to delete with the last one in\n // the array, and then remove the last element (sometimes called as 'swap and pop').\n // This modifies the order of the array, as noted in {at}.\n\n uint256 toDeleteIndex = valueIndex - 1;\n uint256 lastIndex = set._values.length - 1;\n\n // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs\n // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.\n\n bytes32 lastvalue = set._values[lastIndex];\n\n // Move the last value to the index where the value to delete is\n set._values[toDeleteIndex] = lastvalue;\n // Update the index for the moved value\n set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based\n\n // Delete the slot where the moved value was stored\n set._values.pop();\n\n // Delete the index for the deleted slot\n delete set._indexes[value];\n\n return true;\n } else {\n return false;\n }\n }\n\n /**\n * @dev Returns true if the value is in the set. O(1).\n */\n function _contains(Set storage set, bytes32 value) private view returns (bool) {\n return set._indexes[value] != 0;\n }\n\n /**\n * @dev Returns the number of values on the set. O(1).\n */\n function _length(Set storage set) private view returns (uint256) {\n return set._values.length;\n }\n\n /**\n * @dev Returns the value stored at position `index` in the set. O(1).\n *\n * Note that there are no guarantees on the ordering of values inside the\n * array, and it may change when more values are added or removed.\n *\n * Requirements:\n *\n * - `index` must be strictly less than {length}.\n */\n function _at(Set storage set, uint256 index) private view returns (bytes32) {\n require(set._values.length > index, \"EnumerableSet: index out of bounds\");\n return set._values[index];\n }\n\n // Bytes32Set\n\n struct Bytes32Set {\n Set _inner;\n }\n\n /**\n * @dev Add a value to a set. O(1).\n *\n * Returns true if the value was added to the set, that is if it was not\n * already present.\n */\n function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {\n return _add(set._inner, value);\n }\n\n /**\n * @dev Removes a value from a set. O(1).\n *\n * Returns true if the value was removed from the set, that is if it was\n * present.\n */\n function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {\n return _remove(set._inner, value);\n }\n\n /**\n * @dev Returns true if the value is in the set. O(1).\n */\n function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {\n return _contains(set._inner, value);\n }\n\n /**\n * @dev Returns the number of values in the set. O(1).\n */\n function length(Bytes32Set storage set) internal view returns (uint256) {\n return _length(set._inner);\n }\n\n /**\n * @dev Returns the value stored at position `index` in the set. O(1).\n *\n * Note that there are no guarantees on the ordering of values inside the\n * array, and it may change when more values are added or removed.\n *\n * Requirements:\n *\n * - `index` must be strictly less than {length}.\n */\n function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {\n return _at(set._inner, index);\n }\n\n // AddressSet\n\n struct AddressSet {\n Set _inner;\n }\n\n /**\n * @dev Add a value to a set. O(1).\n *\n * Returns true if the value was added to the set, that is if it was not\n * already present.\n */\n function add(AddressSet storage set, address value) internal returns (bool) {\n return _add(set._inner, bytes32(uint256(uint160(value))));\n }\n\n /**\n * @dev Removes a value from a set. O(1).\n *\n * Returns true if the value was removed from the set, that is if it was\n * present.\n */\n function remove(AddressSet storage set, address value) internal returns (bool) {\n return _remove(set._inner, bytes32(uint256(uint160(value))));\n }\n\n /**\n * @dev Returns true if the value is in the set. O(1).\n */\n function contains(AddressSet storage set, address value) internal view returns (bool) {\n return _contains(set._inner, bytes32(uint256(uint160(value))));\n }\n\n /**\n * @dev Returns the number of values in the set. O(1).\n */\n function length(AddressSet storage set) internal view returns (uint256) {\n return _length(set._inner);\n }\n\n /**\n * @dev Returns the value stored at position `index` in the set. O(1).\n *\n * Note that there are no guarantees on the ordering of values inside the\n * array, and it may change when more values are added or removed.\n *\n * Requirements:\n *\n * - `index` must be strictly less than {length}.\n */\n function at(AddressSet storage set, uint256 index) internal view returns (address) {\n return address(uint160(uint256(_at(set._inner, index))));\n }\n\n\n // UintSet\n\n struct UintSet {\n Set _inner;\n }\n\n /**\n * @dev Add a value to a set. O(1).\n *\n * Returns true if the value was added to the set, that is if it was not\n * already present.\n */\n function add(UintSet storage set, uint256 value) internal returns (bool) {\n return _add(set._inner, bytes32(value));\n }\n\n /**\n * @dev Removes a value from a set. O(1).\n *\n * Returns true if the value was removed from the set, that is if it was\n * present.\n */\n function remove(UintSet storage set, uint256 value) internal returns (bool) {\n return _remove(set._inner, bytes32(value));\n }\n\n /**\n * @dev Returns true if the value is in the set. O(1).\n */\n function contains(UintSet storage set, uint256 value) internal view returns (bool) {\n return _contains(set._inner, bytes32(value));\n }\n\n /**\n * @dev Returns the number of values on the set. O(1).\n */\n function length(UintSet storage set) internal view returns (uint256) {\n return _length(set._inner);\n }\n\n /**\n * @dev Returns the value stored at position `index` in the set. O(1).\n *\n * Note that there are no guarantees on the ordering of values inside the\n * array, and it may change when more values are added or removed.\n *\n * Requirements:\n *\n * - `index` must be strictly less than {length}.\n */\n function at(UintSet storage set, uint256 index) internal view returns (uint256) {\n return uint256(_at(set._inner, index));\n }\n}\n" + }, + "@openzeppelin/contracts/utils/Address.sol": { + "content": "// SPDX-License-Identifier: MIT\n\npragma solidity >=0.6.2 <0.8.0;\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\n /**\n * @dev Returns true if `account` is a contract.\n *\n * [IMPORTANT]\n * ====\n * It is unsafe to assume that an address for which this function returns\n * false is an externally-owned account (EOA) and not a contract.\n *\n * Among others, `isContract` will return false for the following\n * types of addresses:\n *\n * - an externally-owned account\n * - a contract in construction\n * - an address where a contract will be created\n * - an address where a contract lived, but was destroyed\n * ====\n */\n function isContract(address account) internal view returns (bool) {\n // This method relies on extcodesize, which returns 0 for contracts in\n // construction, since the code is only stored at the end of the\n // constructor execution.\n\n uint256 size;\n // solhint-disable-next-line no-inline-assembly\n assembly { size := extcodesize(account) }\n return size > 0;\n }\n\n /**\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\n * `recipient`, forwarding all available gas and reverting on errors.\n *\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\n * imposed by `transfer`, making them unable to receive funds via\n * `transfer`. {sendValue} removes this limitation.\n *\n * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].\n *\n * IMPORTANT: because control is transferred to `recipient`, care must be\n * taken to not create reentrancy vulnerabilities. Consider using\n * {ReentrancyGuard} or the\n * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n */\n function sendValue(address payable recipient, uint256 amount) internal {\n require(address(this).balance >= amount, \"Address: insufficient balance\");\n\n // solhint-disable-next-line avoid-low-level-calls, avoid-call-value\n (bool success, ) = recipient.call{ value: amount }(\"\");\n require(success, \"Address: unable to send value, recipient may have reverted\");\n }\n\n /**\n * @dev Performs a Solidity function call using a low level `call`. A\n * plain`call` is an unsafe replacement for a function call: use this\n * function instead.\n *\n * If `target` reverts with a revert reason, it is bubbled up by this\n * function (like regular Solidity function calls).\n *\n * Returns the raw returned data. To convert to the expected return value,\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\n *\n * Requirements:\n *\n * - `target` must be a contract.\n * - calling `target` with `data` must not revert.\n *\n * _Available since v3.1._\n */\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionCall(target, data, \"Address: low-level call failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\n * `errorMessage` as a fallback revert reason when `target` reverts.\n *\n * _Available since v3.1._\n */\n function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {\n return functionCallWithValue(target, data, 0, errorMessage);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but also transferring `value` wei to `target`.\n *\n * Requirements:\n *\n * - the calling contract must have an ETH balance of at least `value`.\n * - the called Solidity function must be `payable`.\n *\n * _Available since v3.1._\n */\n function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\n return functionCallWithValue(target, data, value, \"Address: low-level call with value failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\n * with `errorMessage` as a fallback revert reason when `target` reverts.\n *\n * _Available since v3.1._\n */\n function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {\n require(address(this).balance >= value, \"Address: insufficient balance for call\");\n require(isContract(target), \"Address: call to non-contract\");\n\n // solhint-disable-next-line avoid-low-level-calls\n (bool success, bytes memory returndata) = target.call{ value: value }(data);\n return _verifyCallResult(success, returndata, errorMessage);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a static call.\n *\n * _Available since v3.3._\n */\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n return functionStaticCall(target, data, \"Address: low-level static call failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\n * but performing a static call.\n *\n * _Available since v3.3._\n */\n function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) {\n require(isContract(target), \"Address: static call to non-contract\");\n\n // solhint-disable-next-line avoid-low-level-calls\n (bool success, bytes memory returndata) = target.staticcall(data);\n return _verifyCallResult(success, returndata, errorMessage);\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n * but performing a delegate call.\n *\n * _Available since v3.4._\n */\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n return functionDelegateCall(target, data, \"Address: low-level delegate call failed\");\n }\n\n /**\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\n * but performing a delegate call.\n *\n * _Available since v3.4._\n */\n function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {\n require(isContract(target), \"Address: delegate call to non-contract\");\n\n // solhint-disable-next-line avoid-low-level-calls\n (bool success, bytes memory returndata) = target.delegatecall(data);\n return _verifyCallResult(success, returndata, errorMessage);\n }\n\n function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {\n if (success) {\n return returndata;\n } else {\n // Look for revert reason and bubble it up if present\n if (returndata.length > 0) {\n // The easiest way to bubble the revert reason is using memory via assembly\n\n // solhint-disable-next-line no-inline-assembly\n assembly {\n let returndata_size := mload(returndata)\n revert(add(32, returndata), returndata_size)\n }\n } else {\n revert(errorMessage);\n }\n }\n }\n}\n" + }, + "@openzeppelin/contracts/utils/Pausable.sol": { + "content": "// SPDX-License-Identifier: MIT\n\npragma solidity >=0.6.0 <0.8.0;\n\nimport \"./Context.sol\";\n\n/**\n * @dev Contract module which allows children to implement an emergency stop\n * mechanism that can be triggered by an authorized account.\n *\n * This module is used through inheritance. It will make available the\n * modifiers `whenNotPaused` and `whenPaused`, which can be applied to\n * the functions of your contract. Note that they will not be pausable by\n * simply including this module, only once the modifiers are put in place.\n */\nabstract contract Pausable is Context {\n /**\n * @dev Emitted when the pause is triggered by `account`.\n */\n event Paused(address account);\n\n /**\n * @dev Emitted when the pause is lifted by `account`.\n */\n event Unpaused(address account);\n\n bool private _paused;\n\n /**\n * @dev Initializes the contract in unpaused state.\n */\n constructor () internal {\n _paused = false;\n }\n\n /**\n * @dev Returns true if the contract is paused, and false otherwise.\n */\n function paused() public view virtual returns (bool) {\n return _paused;\n }\n\n /**\n * @dev Modifier to make a function callable only when the contract is not paused.\n *\n * Requirements:\n *\n * - The contract must not be paused.\n */\n modifier whenNotPaused() {\n require(!paused(), \"Pausable: paused\");\n _;\n }\n\n /**\n * @dev Modifier to make a function callable only when the contract is paused.\n *\n * Requirements:\n *\n * - The contract must be paused.\n */\n modifier whenPaused() {\n require(paused(), \"Pausable: not paused\");\n _;\n }\n\n /**\n * @dev Triggers stopped state.\n *\n * Requirements:\n *\n * - The contract must not be paused.\n */\n function _pause() internal virtual whenNotPaused {\n _paused = true;\n emit Paused(_msgSender());\n }\n\n /**\n * @dev Returns to normal state.\n *\n * Requirements:\n *\n * - The contract must be paused.\n */\n function _unpause() internal virtual whenPaused {\n _paused = false;\n emit Unpaused(_msgSender());\n }\n}\n" + }, + "contracts/SimpleSwapFactory.sol": { + "content": "// SPDX-License-Identifier: BSD-3-Clause\npragma solidity =0.7.6;\npragma abicoder v2;\nimport \"./ERC20SimpleSwap.sol\";\nimport \"@openzeppelin/contracts/proxy/Clones.sol\";\n\n/**\n@title Factory contract for SimpleSwap\n@author The Swarm Authors\n@notice This contract deploys SimpleSwap contracts\n*/\ncontract SimpleSwapFactory {\n /* event fired on every new SimpleSwap deployment */\n event SimpleSwapDeployed(address contractAddress);\n\n /* mapping to keep track of which contracts were deployed by this factory */\n mapping(address => bool) public deployedContracts;\n\n /* address of the ERC20-token, to be used by the to-be-deployed chequebooks */\n address public ERC20Address;\n /* address of the code contract from which all chequebooks are cloned */\n address public master;\n\n constructor(address _ERC20Address) {\n ERC20Address = _ERC20Address;\n ERC20SimpleSwap _master = new ERC20SimpleSwap();\n // set the issuer of the master contract to prevent misuse\n _master.init(address(1), address(0), 0);\n master = address(_master);\n }\n\n /**\n @notice creates a clone of the master SimpleSwap contract\n @param issuer the issuer of cheques for the new chequebook\n @param defaultHardDepositTimeoutDuration duration in seconds which by default will be used to reduce hardDeposit allocations\n @param salt salt to include in create2 to enable the same address to deploy multiple chequebooks\n */\n function deploySimpleSwap(\n address issuer,\n uint defaultHardDepositTimeoutDuration,\n bytes32 salt\n ) public returns (address) {\n address contractAddress = Clones.cloneDeterministic(\n master,\n keccak256(abi.encode(msg.sender, salt))\n );\n ERC20SimpleSwap(contractAddress).init(\n issuer,\n ERC20Address,\n defaultHardDepositTimeoutDuration\n );\n deployedContracts[contractAddress] = true;\n emit SimpleSwapDeployed(contractAddress);\n return contractAddress;\n }\n\n /**\n @notice migrates a clone of a master SimpleSwap contract\n @param issuer the issuer of cheques for the new chequebook\n @param defaultHardDepositTimeoutDuration duration in seconds which by default will be used to reduce hardDeposit allocations\n @param salt salt to include in create2 to enable the same address to deploy multiple chequebooks\n */\n function migrateSimpleSwap(\n address issuer,\n uint defaultHardDepositTimeoutDuration,\n bytes32 salt,\n address _master\n ) public returns (address) {\n address contractAddress = Clones.cloneDeterministic(\n _master,\n keccak256(abi.encode(issuer, salt))\n );\n ERC20SimpleSwap(contractAddress).init(\n issuer,\n ERC20Address,\n defaultHardDepositTimeoutDuration\n );\n deployedContracts[contractAddress] = true;\n emit SimpleSwapDeployed(contractAddress);\n return contractAddress;\n }\n}\n" + }, + "@openzeppelin/contracts/proxy/Clones.sol": { + "content": "// SPDX-License-Identifier: MIT\n\npragma solidity >=0.6.0 <0.8.0;\n\n/**\n * @dev https://eips.ethereum.org/EIPS/eip-1167[EIP 1167] is a standard for\n * deploying minimal proxy contracts, also known as \"clones\".\n *\n * > To simply and cheaply clone contract functionality in an immutable way, this standard specifies\n * > a minimal bytecode implementation that delegates all calls to a known, fixed address.\n *\n * The library includes functions to deploy a proxy using either `create` (traditional deployment) or `create2`\n * (salted deterministic deployment). It also includes functions to predict the addresses of clones deployed using the\n * deterministic method.\n *\n * _Available since v3.4._\n */\nlibrary Clones {\n /**\n * @dev Deploys and returns the address of a clone that mimics the behaviour of `master`.\n *\n * This function uses the create opcode, which should never revert.\n */\n function clone(address master) internal returns (address instance) {\n // solhint-disable-next-line no-inline-assembly\n assembly {\n let ptr := mload(0x40)\n mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000)\n mstore(add(ptr, 0x14), shl(0x60, master))\n mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000)\n instance := create(0, ptr, 0x37)\n }\n require(instance != address(0), \"ERC1167: create failed\");\n }\n\n /**\n * @dev Deploys and returns the address of a clone that mimics the behaviour of `master`.\n *\n * This function uses the create2 opcode and a `salt` to deterministically deploy\n * the clone. Using the same `master` and `salt` multiple time will revert, since\n * the clones cannot be deployed twice at the same address.\n */\n function cloneDeterministic(address master, bytes32 salt) internal returns (address instance) {\n // solhint-disable-next-line no-inline-assembly\n assembly {\n let ptr := mload(0x40)\n mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000)\n mstore(add(ptr, 0x14), shl(0x60, master))\n mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000)\n instance := create2(0, ptr, 0x37, salt)\n }\n require(instance != address(0), \"ERC1167: create2 failed\");\n }\n\n /**\n * @dev Computes the address of a clone deployed using {Clones-cloneDeterministic}.\n */\n function predictDeterministicAddress(address master, bytes32 salt, address deployer) internal pure returns (address predicted) {\n // solhint-disable-next-line no-inline-assembly\n assembly {\n let ptr := mload(0x40)\n mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000)\n mstore(add(ptr, 0x14), shl(0x60, master))\n mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf3ff00000000000000000000000000000000)\n mstore(add(ptr, 0x38), shl(0x60, deployer))\n mstore(add(ptr, 0x4c), salt)\n mstore(add(ptr, 0x6c), keccak256(ptr, 0x37))\n predicted := keccak256(add(ptr, 0x37), 0x55)\n }\n }\n\n /**\n * @dev Computes the address of a clone deployed using {Clones-cloneDeterministic}.\n */\n function predictDeterministicAddress(address master, bytes32 salt) internal view returns (address predicted) {\n return predictDeterministicAddress(master, salt, address(this));\n }\n}\n" + }, + "contracts/TestToken.sol": { + "content": "// SPDX-License-Identifier: BSD-3-Clause\npragma solidity =0.7.6;\n\nimport \"@openzeppelin/contracts/presets/ERC20PresetMinterPauser.sol\";\n\ncontract TestToken is ERC20PresetMinterPauser {\n\n constructor() ERC20PresetMinterPauser(\"Test\", \"TST\") {\n }\n\n}" + } + }, + "settings": { + "optimizer": { + "enabled": true, + "runs": 200 + }, + "outputSelection": { + "*": { + "*": [ + "abi", + "evm.bytecode", + "evm.deployedBytecode", + "evm.methodIdentifiers", + "metadata", + "devdoc", + "userdoc", + "storageLayout", + "evm.gasEstimates" + ], + "": [ + "ast" + ] + } + }, + "metadata": { + "useLiteralContent": true + } + } +} \ No newline at end of file diff --git a/hardhat.config.js b/hardhat.config.js index 357f086..dc09847 100755 --- a/hardhat.config.js +++ b/hardhat.config.js @@ -3,6 +3,7 @@ require("solidity-coverage"); require("dotenv/config"); require("hardhat-deploy"); require("@nomicfoundation/hardhat-verify"); +require("@nomicfoundation/hardhat-ethers"); const PRIVATE_RPC_MAINNET = !process.env.PRIVATE_RPC_MAINNET ? undefined @@ -48,6 +49,11 @@ module.exports = { accounts, chainId: 11155111, }, + goerli: { + url: "https://eth-goerli.g.alchemy.com/v2/UbKbbJpAxim12srTJ5vUo3DdQy0WPdHK", + accounts, + chainId: 5, + }, mainnet: { url: PRIVATE_RPC_MAINNET ? PRIVATE_RPC_MAINNET @@ -60,6 +66,7 @@ module.exports = { apiKey: { mainnet: mainnetEtherscanKey || "", testnet: testnetEtherscanKey || "", + goerli: testnetEtherscanKey || "", }, customChains: [ { @@ -70,6 +77,14 @@ module.exports = { browserURL: "https://sepolia.etherscan.io/address/", }, }, + { + network: "goerli", + chainId: 5, + urls: { + apiURL: "https://api-goerli.etherscan.io/api", + browserURL: "https://goerli.etherscan.io/address/", + }, + }, { network: "mainnet", chainId: 100, diff --git a/package.json b/package.json index d95c9bb..a1a1967 100755 --- a/package.json +++ b/package.json @@ -11,10 +11,12 @@ "url": "https://github.com/ethersphere/swap-swear-and-swindle.git" }, "dependencies": { + "@nomicfoundation/hardhat-ethers": "^3.0.5", "@nomicfoundation/hardhat-verify": "^1.0.0", "@nomiclabs/hardhat-etherscan": "^3.1.7", "@openzeppelin/contracts": "^3.4.1-solc-0.7-2", - "dotenv": "^16.0.3" + "dotenv": "^16.0.3", + "ethers": "^6.9.0" }, "devDependencies": { "@nomiclabs/hardhat-truffle5": "^2.0.2", @@ -39,4 +41,4 @@ "keywords": [], "author": "", "license": "ISC" -} \ No newline at end of file +} diff --git a/scripts/decodedData.json b/scripts/decodedData.json new file mode 100644 index 0000000..985b245 --- /dev/null +++ b/scripts/decodedData.json @@ -0,0 +1,2060 @@ +[ + [ + "0x73c412512E1cA0be3b89b77aB3466dA6A1B9d273", + "0", + "0x73c412512e1ca0be3b89b77ab3466da6a1b9d273000000000000000000000000", + "0xcaC4BE4BC6313c7ab3E8D7B71D66CdD2E45dB83a", + "0" + ], + [ + "0x3C311D5223c011972c20FbC6aE06656D591b2364", + "0", + "0x2f1e6b78a1cfcb368e324d70d3a10e17d35c30f44eed02dee8abf57b66eb81eb", + "0x27E252ea0Ed20E44870c0E9C4AaF4730fdf1Fc96", + "100000000000000000" + ], + [ + "0x3329C7492ffBb0E3f88ce133D1D8e57dD9843E11", + "0", + "0xd3f5ceb59a831a88751bea225ef1007a8bfbdb2d8249b0e6c2137fb62a76ff31", + "0x167719Da580c36db5B38EeB447Cd1Ff77Fb02169", + "0" + ], + [ + "0x75a2E2075e63876F145644DeDE57e57CD155D431", + "0", + "0x84d783b3dba7575deef1950e721852facec37d208a6d746b5df85cca5d2c16f7", + "0xf0A052be825ec1820977D0BE4E311cFaF52fd19C", + "100000000000000000" + ], + [ + "0x9aa667522fBe516b8AEBA222B9829266E92d2e79", + "0", + "0x6a0e4c4fa2ea28116f47681270f0b728140c2736ab21b4ca8b0d5525f74df3c9", + "0x292F175999E7F1130796Db88103FC2c4290223E1", + "100000000000000000" + ], + [ + "0x5fe9ac19D5624c101d3D40385B0830C91bf6FB17", + "0", + "0xbd47c542a1edd746d80db29af463c507d62fde22ffe6af55bbb627e44f53360d", + "0x3acE764C9f2c9a15a2A269B841263852Db549D21", + "100000000000000000" + ], + [ + "0xEC63fED322B85fCAf9C3d2e9E972ef6334CF29D6", + "0", + "0x931e6459462af7f5520ce1624d7cd0db885d4b60dd1416265059e0586e824030", + "0x025ab2D13FfEF8e28aCB33e21550DEf3F1642E2e", + "0" + ], + [ + "0x4b0c4471C5a9FDf73b9bE26c273766d2DAC377DF", + "0", + "0xdab3876d6cc7f7af3930eb6ce3488779af16b60524c2bedd9efc4f0418cffba7", + "0x387198894D211847E2b9dA4E089cAf9F1c3d5483", + "0" + ], + [ + "0xA82743d6c425E987816F321B447aac6cE8358461", + "0", + "0x78bc9652e534b69723e5b45a4b74994e41408b1efbc3131629c275b337ba790d", + "0xfE3A62B5cA78DdDeF3C27B608e6eB8ed7BDC9dea", + "100000000000000000" + ], + [ + "0x460DcC317fEFe0422678a55A40F486F7622e5186", + "0", + "0x65e036f8c481373b159242b1da3789773b6ad8e536b83858fdb84075043def2a", + "0x805B3700fcAbe9196899EacED2CFB8c862fab32B", + "100000000000000000" + ], + [ + "0x62629Dfc0f5A715114988EeFc3e545418b1bc241", + "0", + "0x1e599d286331f5bcd8a730af88e66913a4da02697db9b08b2e943139d9435623", + "0xc298c5ADDe7C73dF8218b14d3d26D32DA3bF9111", + "0" + ], + [ + "0x6350dDef79744E5375274aE50BE71695ED2F5bE8", + "0", + "0xbaf8680322b3041c896d3ee7f1d34a84aa6952ebac689a26b9471b98781bad8c", + "0x934ab99de4f94b3d86d2f361b3BB1520BFe1A048", + "0" + ], + [ + "0x88C3Bbeb5CD140991DA080e49f66B748a5eb587e", + "0", + "0x065a3e3108d0df4e64dd78562b525d086e48011c36c3b15069146b02d77cea4c", + "0x0869C6F0A7d4dEdD628465424F910aE4b3fA2Dff", + "100000000000000000" + ], + [ + "0x199d2fC4C074EF2d34951797d4aA2ef8AacEfB60", + "0", + "0xf1c738188f6fbf8987dbb0ebef17bc334dc44dbf7bc4dc4653b49d35f9fe4c72", + "0xAba4A352198Fb821eC02790821e3622Be88C4A17", + "0" + ], + [ + "0xAA254Dd898842755745e1f10De2F0CE87DC776Fb", + "0", + "0x4d4574e00462512c03d40dd3f48a2e33865feb92ef0091063ba9d85c9b12fa7f", + "0x367E74DB04668e0b562CF90E626DDEdDA0Da5a19", + "100000000000000000" + ], + [ + "0x74f8c158dAC39243f990c655Fd47c933A17169bB", + "0", + "0xc653edf30f29de1e60878afc235a88d468d03bb2ac2453c844c2817a670b1d58", + "0x8c081DCc7a8A3DE3a43F0C414c5dd4faf9b7B474", + "0" + ], + [ + "0x74f8c158dAC39243f990c655Fd47c933A17169bB", + "0", + "0x030d1dfcce48fa0a115bb168cbf01bf199b5cb6784c3c008be6f2df521a392c6", + "0xa238b7996671230FE521b9F2AC09a65b0b443BeD", + "0" + ], + [ + "0x65459Da62718766c042a835314BeF6603FfdD76a", + "0", + "0x119e6e7b2ebe2d87842f75de582f45e3807224dcfc637df135c82650c3a3dd11", + "0xA4CA080B559A310b6f0Bcb28c16BcAd4Ce8ACC87", + "100000000000000000" + ], + [ + "0xFe69B4f312De6ba2270D150759399ade7a43aeeb", + "0", + "0x4c3d190b6fb16e8bb2308830dfd50460332e3892300e71fb0da42596055626f7", + "0x44Cd9E17fC208DaCd2E94A5121e3a4e274c4A6e7", + "100000000000000000" + ], + [ + "0x179FfF671a83670f509799b9A007057DF951412f", + "0", + "0xc1042a28ad19aae1152cdc0e542614ae650e14f117cea082c30fb1465ffff984", + "0x53e327d2854CBDF7369E1A0cE496b74BA4C0b51F", + "100000000000000000" + ], + [ + "0x512485B80f1eb278B065d4B29265bd1558bede42", + "0", + "0x6605d0274276755702b811e94d474b7ef5a1e52583f7be4f172b3129a4f6b07c", + "0x8eA1daa06dd467eeFA01A93A5867B5BBF4B09354", + "10000000000000000" + ], + [ + "0xf57d3A8f2F99eDA6FCB1b8e9Da521a232D4232ed", + "0", + "0xb06dc30fba81ab962af486b25fbbea70b5074cab2f26891c0b003945f2424c3b", + "0x23417111Cba5Af3f39c502C7aa8620E5676f923f", + "100000000000000000" + ], + [ + "0xc1d56FBCe619765607bE65b58E9aA83FDfC02653", + "0", + "0xc0af8aa37a15cbc61a5f58fff0c4d7467de974c42a89e0d17d7f0a9d03087f3a", + "0x80A04665a1f210c4bC5CCF07F8d5c7B463750796", + "100000000000000000" + ], + [ + "0x9a3d104A3f1060b95ADdA36F489cB5483cfe83B1", + "0", + "0xbc7fbc2c96b265e7046af51fc2e6250c6f06e712a77938a37bee3c953e922cb9", + "0x07A676332eae4D76b9C6306ba03Bf95ef6277b07", + "100000000000000000" + ], + [ + "0xf7cF507d38d54Fe0A79C72D369f1E0792eC5F4f6", + "0", + "0x34a7371c38ed7e63f38d8af86f4bf7fbefd31049147b849859248d826a28a51a", + "0x801E9336A72d02a511826644001AAC0ce8c5082f", + "100000000000000000" + ], + [ + "0x98c6A1bF414116E5414f6D083f673E1e398AC02b", + "0", + "0x33822854e7f8218ccf745cb5c6f0fc1e4f53477a7b823e7c922abde1be0dc83a", + "0xFe2563AE1a435def3B95d2dDC12161f4c12ACC48", + "100000000000000000" + ], + [ + "0x90eE5894f1ce3719Ba9e2421c93544A8506D1203", + "0", + "0xb5c07d394f58ede4606feb5471cefb3e50f0564c491599f462cb9a0427881944", + "0xf978076cD1cAa6A109969E3189AD669d6249127c", + "10000000000000000" + ], + [ + "0x7C20D50fefe09e62814c660488d08482168186aF", + "0", + "0x09defbfb5377814a84722381ad7fe50a842acd0b4d781b2241b2342c382ce233", + "0x04b25C4FDeda6323C16DBae10f56aD22679f5974", + "10000000000000000" + ], + [ + "0x8cc742863aFFa3C13c150A165C54aF3D4fdaE277", + "0", + "0x044258b0abcd767d5621c2eddf806a743fae8a5e25ed3fe6f3bd7c3ad6a64293", + "0x454B0b0D8f2EF44687B3a6020bDF8417e93B9E2F", + "100000000000000000" + ], + [ + "0x957c6b2f3186C35144945c98B2BcA4C2bc89738F", + "0", + "0x85ebba567280eee8f7b34379e270e8fe03ddc903105263b23de970a7962ba9fd", + "0x1fbe0aC0F40988689EE223f5530785AE16053823", + "0" + ], + [ + "0x98439AD84374F26849c92865d317EFAfDd0292eD", + "0", + "0xa4b7f6c01db9d559044f78bcaf873a8c54289d4f1e80743f52df661e2661347e", + "0xfb2c0c10f7A354f194d861F230B353C24Cd5CE8b", + "0" + ], + [ + "0xab21186abE3B00DE9F51DB9309f03e38b3e92fF5", + "0", + "0x9172df69e201357d3bf66f0773d730361f963e9c0d4440594fa481e1ee365a29", + "0x78C128b18Ea32Ec5dDD8792Aa46e6D315f8f5596", + "100000000000000000" + ], + [ + "0x30af383Df8ed744aDe0dc0aaa37318C00c8742b8", + "0", + "0x65cc44c04eac43dfa28033527fcb1d0da3e1de3c878edee36578cc26d079f01a", + "0x6c630a0AaaDde6F0AB1c9EaEa4e908D723262406", + "100000000000000000" + ], + [ + "0xa7c79Cec9EaaFa09DE4a3D767cB4FEd2A5b1b87E", + "0", + "0xb85c418a112d11a9f2440f4c6b6870d4152828258db0246b80704885f41eeb54", + "0x3B34Afa4C0Aef33C5d36A95a014B6BdEb10dce41", + "100000000000000000" + ], + [ + "0xE0c0f9a2B1920Ef8B5fd1bF92DcBd3736A6f3602", + "0", + "0x7f5033c3ebd9d005c344899b1379ebc5e2ba0ba87000ee0e56270f282ad75314", + "0x2097A802e529C6A01d37C70E2D1C3fc7E8d1AB91", + "383658000000000" + ], + [ + "0x3304A12697295841600a04A9f3E57f7BF4C17005", + "0", + "0xec7196ab36d423cf4e22998a13b3ce40248f3cff3e0e2af33854f80f7b9f30cc", + "0x57CbA08f930F273bAa1Da4d0B584A6De61F7Cdbb", + "100000000000000000" + ], + [ + "0xBB80692062409Fe9261c9c2988C85cA44F4D1275", + "0", + "0x9cfecedf21a5a198b71584ae48f25e43014691176f50b2f3ba46fcbf18bee45f", + "0xbAe49a03E5A4c9154c0B04bC82b9595ba61c1e2b", + "100000000000000000" + ], + [ + "0xA00C9E9EE078733523e0f5E276721B691e393A0f", + "0", + "0x22d08054cee7f69a29749552e2e5cdb763853e74e8a4a06bda23615dd84750fa", + "0xfaCC1601E9FC6dBccB3cD4810EDBD51b9281C4CC", + "100000000000000000" + ], + [ + "0xA923D0d0A9C0412aD8268e339c4a36ce3f61d5Ba", + "0", + "0x8b03bb5512dded93e2ccd90886397e74307d4d23d5ce76146be3eeb0ac4d30d8", + "0x0CA92572345a2Ac6ebdd216C3DB654c091ECAecA", + "100000000000000000" + ], + [ + "0xeBDC56ddaCA0a5C8dc2257E96E4436a8C428d5aD", + "0", + "0xc371753fa64511cfcba26cfba6ea779e08c3d40a60c1647f5aeda7030290a301", + "0x1Df7ED1E277630da3CD4d57B401716eA9439Eeb3", + "100000000000000000" + ], + [ + "0x1702ed3BCf637FFC754d20c2a0aD411aCB2cB550", + "0", + "0xe08d38e13b6554d5754cc8d722d15d2872d983a7af302a6c79ca89a440cd6d77", + "0x82eB690a2D7644E2dBc70B47Bd9910d9d6b7ac18", + "100000000000000000" + ], + [ + "0xDAb03B6C8A91e2E723928959dbe5F54466b23b31", + "0", + "0x529d193b51d4d1e00b136c0e5ef03535151b753e2fe563cd8eeee13a8a88316f", + "0x5De8C4C365a844D45132b75F1aF2a96fF776f33d", + "100000000000000000" + ], + [ + "0x4d16C4b79F7E0aF7007286dFc8903d7A0cFc84Bd", + "0", + "0x5f8be043d667c6a693cb17c17b9e512e6a93eb408dddd19a780ee7a314974ae5", + "0xc52081D00052C2Ce263fa339F1792B74b8515c0b", + "100000000000000000" + ], + [ + "0xC2b3cb3d0D30e814F2ABEFd7036C63b7454937FD", + "0", + "0x9a68e2343d977c7c64d0053e10d3222f8f72bae05d67e0b9ba2b1553a4bd0703", + "0x06202AD1503a351bDf4087733A521b33a5cE5BEe", + "100000000000000000" + ], + [ + "0x1D364c3960DA4f8E3126b7B7EfF5DC59363fC4D4", + "0", + "0xaa09e104af04f5fe37759ae611dcd3f45f4724608315378087d9ccb8f32fb641", + "0x5EDe854557020e3b54568d3Ebe4ce3cCc0bA1e08", + "100000000000000000" + ], + [ + "0x91c7A9241aEA8bee9aa1D2a71A20CcE6069B7593", + "0", + "0xa348e8d2158967d513af228f333a58798c2d3b443b79b7ef7fe4a1760316fd0f", + "0xF936e4C07E6dDf12eb2c6A581d992c4b06610E2c", + "100000000000000000" + ], + [ + "0x0509a573D60687E44E362F01Ac68900D68eaEecE", + "0", + "0xfcdf3f45911c56c66a00470fcdf2f5b960dfee39628e5c87ee0dbe4558ce5a82", + "0xD96278911dDAAF1aA61bBD31965c8B5076125750", + "100000000000000000" + ], + [ + "0x0E50990f402977D33f5960201dFDD43cAAD3C7C5", + "0", + "0x55e59d94cdada28596a20a857cc4415619b3ebe82ef111d89aba8563bbd12369", + "0xE1f86E1d10135bE1CB3358293429cd036a986959", + "10000000000000000" + ], + [ + "0xA94C730F54e43456467C17e41531355Fde0d5A2E", + "0", + "0xb189743d0420ad1cb5997edb84dc1460b4011a65a7dda2983d462f222e12afea", + "0xB1A58d85056B25f62edFEfe9503b15102458F180", + "0" + ], + [ + "0xA94C730F54e43456467C17e41531355Fde0d5A2E", + "0", + "0xa2dfeb30361e9d537702965e2afcddc9986aa3409876071d67f297a6439fb5f1", + "0x855952e2D9E56840D2B4B71468c18aaf30392BDA", + "0" + ], + [ + "0x87f4E8B9f59160c3835c8f6C2798aA1F34808C92", + "0", + "0x28eaccdd0f932831d1c2e9da6b56fcca2675e5077e72632aa5ed93ebae4033ab", + "0x12FF8f9Af1D75a08C18B1B150675647e1419E362", + "10000000000000000" + ], + [ + "0x6DdF3B80dD7E391eaDA761A1C52fB011Ca0e6Dc6", + "0", + "0xa6eee90c0d6d7a681944dee53f0437be69cb8e88854cf31eccc62af14fb19a11", + "0x3dbF9f2d72931e03312D3E7c255ff3A662Af7BAF", + "10000000000000000" + ], + [ + "0x3269cD739188aDE844C0D8ED5F7B6BCb9Eccb0b9", + "0", + "0x76c71200201f636afd4c9cceee52eb62287532e1f50b6c0d621b6cf074a57c36", + "0x48BBE417676967e911D848055003cbBa24F9DF0B", + "10000000000000000" + ], + [ + "0x286137aff589051FeDf0229E892ae5a94B1F3890", + "0", + "0xe186f9afcc7aca6d2238c847f343b9960ce0a67e2816f170fd8362679727e199", + "0x6fBB972C2fAa9d275be0F44651fb223F052B8ACa", + "10000000000000000" + ], + [ + "0x606afd3C6A31dbCE5F368b138832f43Ec83891c5", + "0", + "0x4a50879273f810a666671017954e8155ab85258addc2e09f106dfa8a51e74c38", + "0xf86BDA24caBD8f2D34F22ab6b1a50E9823696375", + "10000000000000000" + ], + [ + "0xAaF3Fd7299BA673FD515a4eAc415D2D2aaFBaDCb", + "0", + "0x5ca9e4b84ae2ee2870834f96ad3e3d4bd6b13e03f32056ee8c0bfd4206417dfb", + "0x5AE667C09893f218F33B47907d084fBbBeD09c39", + "10000000000000000" + ], + [ + "0xc4971fA497F88BeBfdD87cEEBBA99b6A9dff786f", + "0", + "0x87e17b6b081dcaf3f235d86fe43508c07e73e697dca6fbcf365930bce5565eca", + "0x2C9360F2AC44522B0bd3F345EFe515D61F8C6Df2", + "10000000000000000" + ], + [ + "0xA18bc6EC56A940e210f6e50206a3FA44169b002B", + "0", + "0x1a623f3fa29872e477c963f5636327e82dd6f9ef83a7003aaa3cd2a2ae1387b7", + "0xEfbb0812293CE85A2a61ADfF89f6D840Da6FEf34", + "10000000000000000" + ], + [ + "0xB918b36d3a8351A19b3f42Eb662840d7988C9Acc", + "0", + "0x8c9cdf03c34cbc26e1842b704e47bb47e9708b3b0205ec27744c34b541bc0c29", + "0xed84B758bC0588D2bAE3e52d1745c37402298601", + "10000000000000000" + ], + [ + "0x256ac4870c55eaC39c43b4d12Ea15924f0014CB2", + "0", + "0x0fba34de0372a2673adf1f1d16d10e68a67aee879c076012f1b3872545cfa2b5", + "0xA926f0E7c16E2326E9cA3F9FC2Cb061883e57b45", + "10000000000000000" + ], + [ + "0x814fabD951C18969310b49B1e16b7b31bA4321eb", + "0", + "0xca65de911b348bea1c6dbd18e8215c40604a1521d27e3dd0b6e47b31a90f8192", + "0x813d179b94f9e5D47D62605e502E60AEc06C7cb4", + "10000000000000000" + ], + [ + "0xeE7C9b1fFa29473Dd65091ce591D067FB62329Ac", + "0", + "0xd71c230cf9262b95d7b9ad73b98401ae9fe3af90b77d034382d13040dcdceaaa", + "0x2d0b163911ff3311cFC663820B20BD5dD1675769", + "10000000000000000" + ], + [ + "0x4D583D602758DF38aBcc4e100C7d5bA5775eFF49", + "0", + "0xf3c04f970a14d5fe24f49a323dc310838be89aba71bbb960c0ee13577dd38e12", + "0x37Bf1819973C51b86ca4c72c5acB92b0F392E36E", + "10000000000000000" + ], + [ + "0x74BfCE0f28b2B0579EaE5Eb89d8BC0126ba3b2e5", + "0", + "0xa2a2862e279a7f228ea765d7739ac9064c1ebaf8743606d87a60efa9a3f5331a", + "0x013C404F4841F2cDbBe74530b3F860EBBd9e8406", + "10000000000000000" + ], + [ + "0xfAF950fEeebCaf26D19b30DEA99811F0a0bf88F5", + "0", + "0x4933100be88500f05e12644e0379737adeffb893e1b2df4225242405d6183b08", + "0xFEf4C50A61CA19D2675A501A0A790327728c1601", + "10000000000000000" + ], + [ + "0x6017CFDf8D052f8CC5AB6d6219F161f5797B319C", + "0", + "0x3923c46aa47c052ca8418f5acfad59b8b27fd5e8d4424269d069a347a9c70911", + "0x214F0c67b27b84DDB279405Cb45cC05B5696d810", + "10000000000000000" + ], + [ + "0xd1e1308621b79C2c2d477cdcFbd9904Fb4A595E5", + "0", + "0x4f6a5754fd1cacdea869d258f0e98529c7a2f8d9b66883eec9a28853dc8826be", + "0x8DaAB93Ac95a9249DcB5872A9845608162F0211F", + "10000000000000000" + ], + [ + "0x2c77Fd56C01f397F496e7C0d49C3EB477caa3236", + "0", + "0x7fa8bac0c2f924eace6e0846049fb599e5aa20aee2b0ab99b33ac6f63e8f59b7", + "0x6eB69e8330f2Ab40e693d609f14783D46A9c4e17", + "10000000000000000" + ], + [ + "0x8F382741ed30F2259141C38C4323CCe9874cBF4F", + "0", + "0x00bb84f94415930148d8243c303ea7a4fc19beb4a32670cfda3b498f3bb8d83b", + "0x922591A472E2b6300EE244cFF35e0Fb69697c13d", + "10000000000000000" + ], + [ + "0x2859D5Ee6Feb15E91c3a66B989eF4E4Ad41F1E79", + "0", + "0x818783347c141b342ba84c2a4559140f0a3a8429e4858758adbac86f83236c0f", + "0xeD3376f2e9B050a40a9b5cA53036666a11F68Fb4", + "10000000000000000" + ], + [ + "0xc2F4d3Fa54100F9cB07B478476836e375b2f10dA", + "0", + "0x31228fb5048b3b7bcdcde4db8675202f5eedf2d2c9f1c11a4ebf4edfad123deb", + "0x1596DBfdd1b27C47C726d5de656E923Acb0F8160", + "10000000000000000" + ], + [ + "0x3dc6Fe547Faf9CDCF6BC97ae3d58ac79f81Cb967", + "0", + "0xd778f6d7e2e2fc7cb1d87a942d460c8cb7fed1c90a556917eb0b20ac778f5bb3", + "0x2Bc8E05670Eb1d5F5fb9fA4090720a103B846bF1", + "10000000000000000" + ], + [ + "0x0De91Dbf219C2C831812d304af90224D560A5f16", + "0", + "0xcef65a819295227b67ede564a7248daf34b6a4b3da93b3e24d4057d97fb17208", + "0x168AE1eE0D5d951fa3088737201F57813fC2ff96", + "10000000000000000" + ], + [ + "0x77863A8c058c6A3F11EB6e96a5254aA68746edd0", + "0", + "0xc5790638bb05d2152e9379c986ad7d8e98c1eba1f98f18af112df640f4f4238f", + "0x8474334694A1C5112B670Fb65E57967Ad9063b72", + "10000000000000000" + ], + [ + "0x59be6c947d50C3e80158E1EA523829b316bB13bd", + "0", + "0xd0ded5ba9cec0836fd8ffb7e4d98c6e3106dbc1b20d59f06efd865881ac44520", + "0x731a565F4A8AFA8b7802b343e8d9c6D29818e805", + "10000000000000000" + ], + [ + "0x30B74774c69C248c7a2f471288C3d335a3AebA2d", + "0", + "0x01d6d7cfd0fd88e09da3541a1d0ee8319073a5a36986d502a2c06b8acdc5dd2f", + "0xaBBD66B990aBD4e4A10668DdA62843640FA137dF", + "10000000000000000" + ], + [ + "0xF2Af1482414f16C780247d65b5aEEAbDf6EC773a", + "0", + "0x621525a093a2c7efecdf2474359e834ab6989362175d12dd98eaa85cfaaaf660", + "0xe9F270241005E5cE6325cF50c9898bA746611426", + "10000000000000000" + ], + [ + "0x3bEb75646dDF5D9db0926D7A3c1B6334e2Bf8DDF", + "0", + "0x1c18df6d62f66a9aaf9c359d0db08f51e93ab2973a4b1bc87e4bc92c6c79f184", + "0xC86aFF49CfFd3574Fac8BAde54f24385888bd92e", + "10000000000000000" + ], + [ + "0x7aDf05B7EB98612E734954fDf5B4CCDf7392D043", + "0", + "0x7a373eac0448ffb67a0192a9e2dfab589a4ef7e71e7766e009f597417c1fd4c4", + "0xC0De476DAdFb5F9435227eb9095Bf031a4D9dCC9", + "10000000000000000" + ], + [ + "0xD8fb429E9f3a3009A91Ee18d65691FB9B1EA2588", + "0", + "0x3dab6b122a5eb6bc18d41b8fc0774adc252cba4d08141ad6d5a23c2d444f6041", + "0x64B79dE11B427dFb0537B66e177fA71cD25d5185", + "10000000000000000" + ], + [ + "0x16Fe5d4C8020bABb63f2b8A373A978340749d735", + "0", + "0xdf1a82ade48fed53e31b6e10bfca971aa29580ec7d51f3eb23417227afde39d8", + "0x03353D9cfE5DCAA0CB91526a9Dcf3ed4c9E6A2Af", + "10000000000000000" + ], + [ + "0xc781D09327a6A0407a36DBB201E150d7B4d27E92", + "0", + "0x6dc261222fb47157da74413155737171883a0e5584545ef2d4b6f3b3db7aca7f", + "0x95D0e68Db274289a4a71a3F9983d006B509E48c9", + "10000000000000000" + ], + [ + "0xB5f10c646bf8B7d4e5F75E2d335cfE96691Fc6A3", + "0", + "0x8b2870651f607569034d07ac86e05f15bc4fc105ab7c8b19a53622694eaf4894", + "0x2560163d8d59903d14CAb3803b86ACe7A8Bd7347", + "10000000000000000" + ], + [ + "0xD267bf4d46f72857dD2f6A978e57a06E9Fa9AAb0", + "0", + "0x28f2375a008baec166b1668632f655d4c4364b38143003084e6108bf4820186a", + "0x10E575dD057788b17be14Ea9f5D7aD235Babbb53", + "10000000000000000" + ], + [ + "0xC201D24C3ab74906534308fb30A7be2c9fE6c7d1", + "0", + "0x3054fb5fad1a1435c9dfaf877496bbcd6f6d6b9794a32ca6bcce43b80e83d5d9", + "0xBE783Febdd1ad1beb9CB6284980FbE1d1cF32582", + "10000000000000000" + ], + [ + "0x125c83952010892b1B31D6a415E10f1ae77678Ac", + "0", + "0x3f62269946dbc1048b80dadf948ea08861e7fa4893ba7418d6a7d9a1d038f726", + "0x07A74C550Ecd4ddc62Fdc23cD0B0Eae0d60433C6", + "10000000000000000" + ], + [ + "0xf25331fB39b457b389E2db1d919646A69c336CC7", + "0", + "0xcd6a784443fabbdfea521a20fec7e326b0fc2f839be6c5a59193ed2a28c74866", + "0x6cC6E4Cf7a3c303f16cCfe0d97ac786b9F885abe", + "10000000000000000" + ], + [ + "0xc781D09327a6A0407a36DBB201E150d7B4d27E92", + "0", + "0xe75d7fe86b00a6b45d6ee0ace5d665a1b38a6836f40d668c36a254fe5115e97b", + "0xe50dc3CA12A31Ea5BC2a794Ab505c6bb70116408", + "10000000000000000" + ], + [ + "0xc781D09327a6A0407a36DBB201E150d7B4d27E92", + "0", + "0x33a066006622a8d6cba0de222c16f8f1400616677d5f7cb9329d93a12087082e", + "0x8887F0beD9052f2d68a00c2Cf76F755BF3922687", + "10000000000000000" + ], + [ + "0x02252B7f2a179c6ecB988aB30BefC4CDF8C3f4E0", + "0", + "0x3491fa5efa3eadf2ace5f5dea3f488353eefff4f638443a66e15d4cd89e4b676", + "0x7BA9D65747f0e0dF6b2dD8BaBF37a17F7FE39461", + "10000000000000000" + ], + [ + "0xc781D09327a6A0407a36DBB201E150d7B4d27E92", + "0", + "0x5c05ff7fecc5a59180607f6bfb5cc96e7c8131138e963fdc0e7d1ec644286564", + "0x6fAFc0308add2e4Dd6EAF17B901024cd6E1039C8", + "10000000000000000" + ], + [ + "0xb4bfF10b0A379d76a8DC940E6925471df9322e5f", + "0", + "0xe4b525c4696596ee75743be0fde8263e3dec5e723e0b04149785a7923fdc906b", + "0x7Bd341C7668e5f75B9d3C81B9b4E700F2501062b", + "10000000000000000" + ], + [ + "0xc781D09327a6A0407a36DBB201E150d7B4d27E92", + "0", + "0xca3c9c51a1cfe2a30e86a3b0e1e1e0784d4eb14a68b7afa8a9eb309a01b72522", + "0x1ad48B59181621FF0398ae1Cb815b5E3548AAD4f", + "10000000000000000" + ], + [ + "0xc781D09327a6A0407a36DBB201E150d7B4d27E92", + "0", + "0x7cf69b7a789d84a4d4707fe51a4bdb518de32bc1e1892aa13832c0314b553764", + "0xa148e1913acC0c8C8Ba9eCCBcc9C2a7758dDf601", + "10000000000000000" + ], + [ + "0xA6E72Da29870A38A6a5044ACDbA5b226d5B3A6FD", + "0", + "0x1484d5f8717460f240640eb0c6e765b4c8dce672812c2b6c727551e0b6cb07ab", + "0x9B3821A6E6CF8F8b24F8386BA57c865D84E427f1", + "10000000000000000" + ], + [ + "0x14CaAaDBB35C2E7eb53a3866477e53B6f08fC7A9", + "0", + "0x1e09424de1b7c78503e0cdb627916c77ea83016373d135afe13ab60e82c30691", + "0xE068c6e3F8FebeddE567c04453F8864F84542F27", + "10000000000000000" + ], + [ + "0x261f9872949dC7E2BDf96B15B41293223804059F", + "0", + "0x85bff15c0a64380f3e133fdf8ff97f707d4d5bc6bd0d4ab9ccf623fc4d86054e", + "0x8eF8E221824733f58325bEA11d8f9D9EB59E2caa", + "10000000000000000" + ], + [ + "0xA08D69f6a7F2BEC88e13bF5Fe83ff6ad41Cf7C02", + "0", + "0xdcddcfdb5bdb72ab4edfc0d166666c7febd9b902b66efd13f0e4bed52be892b6", + "0x36e15197E6f523023058d17708e3B2DaA95994e5", + "10000000000000000" + ], + [ + "0xA5bd017700Cf983389391b104110B6ce8Ceba77B", + "0", + "0x79fd97e2c599b3bb2843965284ca984826410aaf1e0d220c40b443f0e69c301b", + "0x11b41B54F3f339B594A96A70f72EB18261d8b28c", + "0" + ], + [ + "0x25b182b6BDB90a03512632556f7E9f5dDEb664F4", + "0", + "0x2127a7da22c8ade6b3b408565464db78a8994a262fb4fd0eb3dfa0dd450a4cfc", + "0xf27D36475b0b7bD82C2c10fe962742a9B7B64adb", + "10000000000000000" + ], + [ + "0xFd50804054419000cfc820275e4EcF5DAf270Ac7", + "0", + "0x2471c6699bd2dba364f6fc5f06ad347e396f4ea2f10cbbbcfb2db96cf53f1ca1", + "0xCec22292474F244357B497A9645F5C4648d67DE2", + "10000000000000000" + ], + [ + "0x0fA70F2cb401C71b0998006a60C2255771150F3C", + "0", + "0xcc6df3c7bdba777f1921d3f00063b42d519cc8db429947956b5af86b72f465ef", + "0x26f7a299Da5AF7b8305a9BD6201558801517df95", + "10000000000000000" + ], + [ + "0x5f59CF7c0c856153B0B18D9306542C46fBC9dc76", + "0", + "0xe79c6ceccc11e94d2d49878493f75d2702bd88509990262fbeb028349b8e91cd", + "0xFb7f3a26AD8D7ea3198efDe7bd0Ed98B95a25591", + "10000000000000000" + ], + [ + "0xbBb35d580Fb458E4381631e99d55E8B8fe60baDC", + "0", + "0x25262467085462916d882de5621811058b777f069ae0d07d0d56fa678c7e43b6", + "0xBa5994EeB133d0E401cB773E47f36ecAa3011cAD", + "10000000000000000" + ], + [ + "0x94d2aC963ce36C0296227273E580384be54a12A6", + "0", + "0x56f13a50b930d89ec15e76cd8856e0752e37c9b40ed6dfa04e6d40d676b6d459", + "0x0a1E462F3842B6B846C8A33D93fa36ED9e972A80", + "10000000000000000" + ], + [ + "0x5A918DFE4AbC6cC08d89ec26c07f3617420fCb99", + "0", + "0x57dedb6170fb1d9c304a0e306c5df83cdfd8dd605fb8abcf58e129abba078af4", + "0x3EE4d719C7ccD6533B857a3530517faad4a486Ae", + "10000000000000000" + ], + [ + "0x53129c5e3398cB95afc27607AC86191EF4D91643", + "0", + "0x4b3d6588333a2ac839fd03b59ebb67cd0be6ec9b493b94e1f046a5b3effdc8e9", + "0x6dE24F2E6b780CB63c9600F18C59674ab39700Ef", + "10000000000000000" + ], + [ + "0x7B12f7F7111222204e21bB99abCBCaE940241d8b", + "0", + "0xc26673cb13176bc8bff4beb91c288e408d30e7b37f087e2f856aa3c14a4e6e65", + "0x98C2927dB4D19a916139C176aDde36CDB396F759", + "10000000000000000" + ], + [ + "0xB635ae792252938e10e6C104b21F48C2201e41a6", + "0", + "0xf8faa2acd5b1e7092772d2102fee0c4065d4908f2be51b43d4e1cee4706d09ef", + "0x3bdC0656Ba2C1be2619108c93Ef2207839198223", + "10000000000000000" + ], + [ + "0xc781D09327a6A0407a36DBB201E150d7B4d27E92", + "0", + "0x7977fda116b76f6b06cdc2143074143352788269e0d6233e722ed416c4648554", + "0x77b7Af5597e5838730E2251FCf8676357a3dEaa4", + "10000000000000000" + ], + [ + "0xe70a1EDB7149FA09600B6d78C96592fFB9a93D6F", + "0", + "0x65fe08073dc7f094b2628c16378089b098e6be5d85a0286a21297834bef7e24d", + "0x2aA3e70d0bD03C9Dbc8A14CB145030cF34bCBdce", + "10000000000000000" + ], + [ + "0xc781D09327a6A0407a36DBB201E150d7B4d27E92", + "0", + "0xb6a08df32cc1e1139f10078dd21474b11fc4bf6562933cc397fd49680a26d2da", + "0xb039bD7B408cF0cBBc4C76c4F41c377BDc0fd167", + "10000000000000000" + ], + [ + "0xc781D09327a6A0407a36DBB201E150d7B4d27E92", + "0", + "0xbd3fb128b617dffb8abb70272a85802d37541ddab51bd21a7fa6eec3497c8675", + "0xA93B4f180074b3b1E8818dE7803168749b65E104", + "10000000000000000" + ], + [ + "0x584D01560A3a673beF9533bd3eCBA7c5dA2Fa534", + "0", + "0x244d3f28a70115f88a9706116d766e489e5a7be4cf5939d46a581d4f68bb8ee4", + "0xe49fb62961a06251f0B63eb1333b3de9Ab2B1d8F", + "10000000000000000" + ], + [ + "0xAa6A4B2a11836FEbB5f9dE4860A63Cdf81B0E474", + "0", + "0xa910524b714b0dff04deaee151a0da6f09089a1b25033eb29c4092be69109479", + "0x35d7b135f840F900E89893641E947d55483751C7", + "100000000000000000" + ], + [ + "0xc781D09327a6A0407a36DBB201E150d7B4d27E92", + "0", + "0x99f091a144e51b47a8637092e571d117408ffde857cf560d707d1e341ec03653", + "0xC04A23C257A5e8C7967e61A080C69A9aE8BB371F", + "10000000000000000" + ], + [ + "0xB3Afc138bd341338C9D7377c6Aa707909D8c1e2d", + "0", + "0x31051341d798973fddb1590aad766d6de37a41b973442964284151df4db5125a", + "0x6bad0F1CF320041886e6c5E1cf5e2b56d4846445", + "10000000000000000" + ], + [ + "0x8A19d7c7937f36fE018a2c998cFc752671c678E8", + "0", + "0xb1385d7ae3b6e539afdf3839bb068cdea5b2ab7b5dcd7794d6537dfdad31b1f3", + "0x2bBCe1d14a9d1234B8eF878E8Ddd6ec50cF7A124", + "10000000000000000" + ], + [ + "0x45701b39d66863b23Ba11B8456e030064aD7bb27", + "0", + "0x7c1f6717625f388c7b07f1a75a60b8980ccb02a79d8a3d00bfda5049b2142868", + "0x806c6998e895494bFBfB362E32eb67C5Eed325b3", + "10000000000000000" + ], + [ + "0x2fC9738c31F63d71404e1a70E4AB990A0c8f1018", + "0", + "0x54dab9b6e4cc1bf20f1d650f8b20b1b2e408a29f8fa809d459e7395f0f02ca27", + "0x297ABcfdCeC342D9D332B12AEf7f11DDdd49E5CD", + "10000000000000000" + ], + [ + "0xBCa6fD067921a78101E9b6Ff2A17923415C59c9B", + "0", + "0x8f4ae7f2b6b037c8de6fc3d8128066a61a948ed2250cd72a7d3c0d39b55df22f", + "0x5271eD856DB832ef73A7aA9d27124ae253Eb9113", + "10000000000000000" + ], + [ + "0xfb5ce97CbD6414bA9C9A2F9FE262016D07e25c2F", + "0", + "0x63c1359934e3c1c70b573c3f0676090275bd9c516c56c5a2da90069aa43186e5", + "0x5836940EB8b12Ec1c0484Cc72d0DE542C5e2f3aB", + "10000000000000000" + ], + [ + "0x5d62AE60a614937F3289aCD8493c496627edA47c", + "0", + "0xd5eebbc53756d9d208abe172074ca53b21dd0d4699e6086f13d09f1b58c7b142", + "0x526627f2Ca21607680AD44467c8bf6c446793c8d", + "10000000000000000" + ], + [ + "0x6e8b809a7dCEbB509da392A89eF76f36b0410439", + "0", + "0x16ca020424a4febac25a9b7c1f621709fbdbf6dcbd580d965b9deb78b2ada281", + "0xcDD670C06A93E2EEB1C7C59b459B4a60f1DDEF08", + "10000000000000000" + ], + [ + "0x369601A9b4b9F2ba92df70099667061594B4d52A", + "0", + "0x8aa5beeec35d665cd65e74d9b67e6181370e06dc408489417c8cf9c610e836c5", + "0x8aEbAEA63138AC49bCC8ba33edE2EF471678ac7B", + "0" + ], + [ + "0x7419df33FA98Ad0bB71fA9271daA025d67543159", + "0", + "0xa39f679bce3e8cc2d377796fa3401aaa574b5f222a8f1108adfc0564308f5817", + "0xd4E32f9ec774a0269755250747a1F1DBa8E57767", + "10000000000000000" + ], + [ + "0x2084bf5A818Be263e5b84A198A7F5bFf93A66436", + "0", + "0xf344e20d2310e176e28485f6afc2cd595642cc7bb48f7b944781d13df68f60f7", + "0x975a087b60E06edA7a3860ADfeDE519B7bB337Dd", + "10000000000000000" + ], + [ + "0xA2C98Ac112a4257Ef81F7C6B6c627a152247d8eD", + "0", + "0x7a01096537e2dd7bfe8153ca2d2e60d55bbde832d269f784fdef2be32d778ce8", + "0xF493BE810e95F8A848F48968935f156fD2B85E71", + "0" + ], + [ + "0x2f0dE11a3B537a79C763ACe9A79C1e0C3C879d22", + "0", + "0x4c9722b23812b8a181b57674fc669bbdb391ea160ea5d599b13520d42bffad75", + "0x558DC7758cEDD1AfB489d2dfae1A8DCc58F466ce", + "10000000000000000" + ], + [ + "0x24C33F03fc59FB8de3f79C21C28ad0A50aFf2169", + "0", + "0xb08ac673bb5321aa3a3e72aafe228432cae67bb96692b0e5c534d6c9fb0a9ca3", + "0x5B6744eca1bd0CCF0E4ea48d7FdFdA6c92040118", + "0" + ], + [ + "0x8b6Afb61a6d999b3c505331d5ed2a31E12d3f3C5", + "0", + "0xf5688e6274a6d5d918a507ad0c5a019b2eb5125f04a93de46b34b2ccb1eb6aee", + "0x2211448F8b4e987C5FF9054E52D2F1690f0C8A64", + "10000000000000000" + ], + [ + "0x28a9CfdF1592c1774E2008478f6A590aE03dCFbF", + "0", + "0xbf185c21f44082e8e51449357cd52ba68e242850081176f06b989571f0f82781", + "0x61253c81a94fdc90A49ad35e6D1720b38B644f6D", + "10000000000000000" + ], + [ + "0x78e47a794afeA77c69ec5F6E73263A41c2D75776", + "0", + "0x129caf7a9ac626ca2ae0324430235de60928100597b05a5381ed9221b8745542", + "0xBD4851255b006015BEF12b52F39743c7AFFdcDb2", + "10000000000000000" + ], + [ + "0x387867F53047949Fca4C0C8f71484F60d2425698", + "0", + "0x95f0230a79840966a286d5cb5c6db5aa8b1d081107c7354d4da71b4abcb1dfc0", + "0xc2d2d668609a1998b5EDD1C4DbBb3dBbc9cC3d6A", + "10000000000000000" + ], + [ + "0x4469ee61C9290baF3fDdEaFeFdce3CEB80106784", + "0", + "0xbdbebf5f281d702075a2d1b12b9f021e7c6d8f6685fcfb8faf4f2dffb12138e2", + "0xfe3c4150147E2aF952762f6f19a88FF04F474476", + "0" + ], + [ + "0x43C383aBBE817780eC9C5f4d511EB8b6F9342aB3", + "0", + "0x3fc354e2c88c66f1b0455c4948cf55be5e3f86bf34c30cb2743b7f475e805b54", + "0x9AF6EeEfE1190E0409C583F42B76AF9B771d3E58", + "10000000000000000" + ], + [ + "0x3C6d523dBDA8b2Acb9f7Cc1e402c13941c92896a", + "0", + "0xa355b1e4f5c5dab232318454c36958acc3d248ce44e7014c61a706e3093fc7d4", + "0x960FD6C9D23422cbFD970BD820929588B97Ebff1", + "10000000000000000" + ], + [ + "0x971bE7c3179581CFde2E5277C22777D572579b89", + "0", + "0x5f1194b9817e1d5e36c91498d4c22779a96cb8c70c0423af588dcfc5be4e6d2a", + "0x4B919FdfB933B0E9f0171D5Dc6D4089C301d1152", + "10000000000000000" + ], + [ + "0x72a9219C040Eff645f413693F9FA6c920f6155E1", + "0", + "0x13125b88814bf190e7e5870980dba25f239a79191b1251be2c45a35e8188dabe", + "0xD82F4e349f193e01fA046608b4CC131933e26D93", + "10000000000000000" + ], + [ + "0x3c7B759d47b8feA14152A58B66d3e045F9C9045C", + "0", + "0x9ea9e5fcc95da6a01a396530f35f0257d59724ea331be1cdc29ab4ef9afa6a5a", + "0xC17f9EB002364411ea57aF13529Fb52662473606", + "10000000000000000" + ], + [ + "0xa062BFC329441c69EAc175E00fA9De150786Bbd7", + "0", + "0xe4391651be77a7fa7bbfbfdb064660e8d00ab004f954aeccb182ffb0c3e73018", + "0x3891349a0458D783117850C4769Dbc3d393649EE", + "10000000000000000" + ], + [ + "0x8a7a2F88335d940061eFBfAD6CCc72cF21e92c2b", + "0", + "0xebfc45a44c66050e56185dea0f9e95b24a15315f1fa1577ac577ddf248db47c1", + "0xC02f8C48A5d7Fb47b21a706E707Bcb603aDeAdD5", + "10000000000000000" + ], + [ + "0x0fB0B78DA1b350f679a20531330e1D7596F9809e", + "0", + "0xce3166da6bec6d290e7e03861380e337e3c935879994c0901e8fde8e21e0c04a", + "0x4e1c4C58DC57505786F1247bF311bD4c773a6DD3", + "10000000000000000" + ], + [ + "0xC6941eF244Ac0384DF7381d1d8ea878748F7C5A2", + "0", + "0x15eac8bdfa65f648c0a345c3ece79ae44cfe31108f56633af73614960eacf596", + "0x8c81fd94705232B97CA561E9F1a3DFB6983b74f7", + "10000000000000000" + ], + [ + "0x4E9C2e930265e6A03271A2C8bC1Ac65f63A2e52a", + "0", + "0x9ff01ffb2d866807b809a06a2128c0ebd2836246a5934ccc4632f2595c2d513d", + "0x547f61E89189C3a7c7fD2022c25273a56a6b606A", + "10000000000000000" + ], + [ + "0x105A0674Aec6bFb521E84194290e5Cdc13234A66", + "0", + "0x810f932970b7cf8661a69833e86b6ab93e8921ed06de633bf7a9febd286cadb3", + "0x05217bf618a3f7a655eEDc1e53FC6cCdD4482854", + "10000000000000000" + ], + [ + "0x678Aa5785032Ba822d735652aF6d6d6c3Cdc77Ac", + "0", + "0x37665b80e8e0f86722a85a93b35bdb2400fbe176892f264fba6ad051051c2d85", + "0x9A641d256467a47b698621Db48e35cA4B1F4B693", + "10000000000000000" + ], + [ + "0x84a3dAd8173f201BE4975B5464599884f73FB5bE", + "0", + "0x753e4f2a388adf17d3bf926d4a2d2cf7556eee7b8d566ad3c12a781b7a1e31f2", + "0xC2c1eB84F53Af131D3EF3d70C3641e961423C210", + "10000000000000000" + ], + [ + "0x3e7e670Edf64884c1f163Bb8951E99a58fa90B7E", + "0", + "0x879d2192d6523c617a12221bf2c6b26d30655de50edd29881e5cd136558fdc39", + "0x6630a1F15f84cc549ee4a94A84CCAB2B750f67E7", + "10000000000000000" + ], + [ + "0x7958e226A2faEAeF3a59A1113C1D22057d6119D9", + "0", + "0x552263edfcc2c535ec37f133213a34a26451bf68ed6979a4c015b58c40341a73", + "0x10ED5F486ae4408eb2A66aeE166a5cc7579123E4", + "10000000000000000" + ], + [ + "0x89eFE40aa0798cb44f0Ea7eC5cBAb44646fDE86A", + "0", + "0xc3a2ec6af4264d4330d7a00268e869d9862c7f21f3f763a3b387ea39730c6ba9", + "0xE606AcA885f3107327095A6506445eCE021661b0", + "10000000000000000" + ], + [ + "0x40fFA824d0C9e1a144C0c1429Ec3D7Dd50037E71", + "0", + "0xb4da2040a44843f7d546b456063f5ff5e1a3d5089c2166a8e52bf7f823562801", + "0x81cB80fb728Ff2a3aD9bF4e1538553A7415081c1", + "10000000000000000" + ], + [ + "0xbe6BcfA020e6eDe9c7D1c0530027433a972f5493", + "0", + "0x903f29c2e6b06794ecb5d9727d3b3d68d9ba0cfe6142b88b39962a5bb852ff70", + "0x3b5A158f63Fd6e81DA80fF98d06936BF28130D6A", + "10000000000000000" + ], + [ + "0xB63E7F8026e7295d2142656589Fd9288F0b1BaAD", + "0", + "0x4bd6a695052825b8d6bd23d15fe1d9767a7391913d1057f06e71618f7b7690db", + "0xc96ff86c49792742987b200d82bc5B93E918D026", + "10000000000000000" + ], + [ + "0xe804d11622D5aE4222d83656955f37ae7FF821F5", + "0", + "0x16f3590080f77f0861f3ede08896af65f1845b03aca7f133b7ab13e5412fd173", + "0xE31616d6c630Cc94f433edB6Dc62Fc0A2cD4f271", + "10000000000000000" + ], + [ + "0x6fd6bB158876B308a188227d81dab62451685F66", + "0", + "0xc7b13a88a8cecafb617c0e4c8033bd8c5cb94950f6052451037073b175b1ee81", + "0xeDbfb8e6Ce1a9b4936AA39e5468a4F9b1a805BB3", + "10000000000000000" + ], + [ + "0xab28675876A14a5bCf0900412c7527c1bF437e82", + "0", + "0x0458086c69a249bdde10764cb79886f5630d2e3b88248e9812a711a0dda522d5", + "0x1b929e20c5ede941578c295D9e05Df22f5e9B625", + "10000000000000000" + ], + [ + "0xb37D10b577F60Ee5a9F644692B50d142a7b0e7c3", + "0", + "0x11c8c0083cf8e9227fadea5002c8e22373b24afcd6bbe9563e9e15abc74de2dd", + "0x5Cf8daDB5858EfEfc4EeA1721344192EaFe01a5c", + "10000000000000000" + ], + [ + "0x2bfe4B0a9037605D80751a605b630fFFa24dbbc9", + "0", + "0x0de2c6e95699460ad8758abaf14e98a5c65ead19d0e056ff11084e1bc68e38c2", + "0x01F10ed4dBC59729dc7C7c3dFFAC758a93F78Ae9", + "0" + ], + [ + "0xA3f0729E3666E8E59f43bB13e50752c489a8A4c2", + "0", + "0xf4c51dff0f69a796aa3442a73f062c5a9f40d7ead1175074315bda84e3759dab", + "0x7b237405b8bAad614ccBAEd801ed182b23A985e6", + "10000000000000000" + ], + [ + "0x106887276ace18e846495a6CABf380E4164c9001", + "0", + "0x536871fa01c37b2aafd47059ef66ec3bc44491680b8a91461a2c1a1f70d046e1", + "0x7772DB548E15917E28d3EADE63AC84410f324dA5", + "10000000000000000" + ], + [ + "0xCb0E8fA5f436F4d5E0ea8B3946994B9696e8163D", + "0", + "0x851aa1eb48067f4da8a08d875498643786809c023e46cf574f8a320680018162", + "0x0C84B31B57E759cd6AB276C594cB809089950dd2", + "10000000000000000" + ], + [ + "0xB91Cb53677B8964e0f42CF49e14A4E61346f105b", + "0", + "0xb9eeba490b46ff11b417f5156f1dd78f5905caeca74daf8c50973e5c971a509f", + "0xC875e817e6321590a56379AC8D06a5D9a8f4b977", + "10000000000000000" + ], + [ + "0x6071F83F785310e46bD8f5240C6A7F79a7e446c9", + "0", + "0x887b346aa2ef35f3aeda5dd387d91d0a709f3a910b90baabe663dfd0130eab3a", + "0x4F899508E8bb3055d6E16868B7DF9599D87c0Cfd", + "10000000000000000" + ], + [ + "0x3E7E2ef9f4c6b9E4a6353D5864A4E5Cb316EB706", + "0", + "0x0c3a6585610d819422a952a2102b4f3d5f6d30ff92c10c390bcd57e8a5e1921c", + "0xFbB30074B4b86C189FDebc0DcDdaA63fCEa44b15", + "10000000000000000" + ], + [ + "0x6963BC26fEDebEf8A97E404392CC64Df9ebA0DBe", + "0", + "0x51060a52068ac59d1ce52c4b60c267c3eea566330ff6a25ed5d9ce8225319f28", + "0x1752D389CFBF5D0b5F6eA7B8406731425E0e6293", + "10000000000000000" + ], + [ + "0x7Bee70C5E4d6359A9A8c57D79771519D706D0c46", + "0", + "0xd1569efc8fac16eb0b3d7fd3c05bcd7943cbb50593128e5b1a82a5ae108a0951", + "0x2917fBe62611722B0fD360fdcA218dc2434FDd4f", + "10000000000000000" + ], + [ + "0x88C3Bbeb5CD140991DA080e49f66B748a5eb587e", + "0", + "0xe59e53887729ada531116c7ad1edaa461c4a12299dbdc85965506b529b8941d4", + "0x105D8e64f793E15776b9286ad5a6d76464433fEC", + "10000000000000000" + ], + [ + "0x71FAE787b618631bAeF25C8f104055B39fE81C13", + "0", + "0xcc493988aa27beabc706ca989f9ae83d712e3ba47e53426eee45e0750000034a", + "0xbe0b5536Ff81b2b727a769Ba1623B946636676Cc", + "1000000000000000000" + ], + [ + "0x7667B2f71C2FE7A526C4390811c9168EE97Ebd4C", + "0", + "0x76bc63d59facbe950718c0d690f9d9f3d7cc7813f16a9a9654b7cdfd508e25c0", + "0xEd945Dec9b8f2F037767797FB82D8301737a384C", + "1000000000000000000" + ], + [ + "0xc1C13de877658AB10AB1B64c0aB6dfD6eBCBCc74", + "0", + "0x0c24d591d207e8d963577acd070ac79c68d6f69885b1be08926d6c5256fb656b", + "0x03706e26Ae9e980464dB0f21FB645bA884E57604", + "1000000000000000000" + ], + [ + "0x2484E284D5A3c7e7e34f488fFa98FF3A744b0ce1", + "0", + "0x3013836039898342b3a3bb477fc73415ef60180d3ced703f2b4c4b6f10107a7c", + "0x695496Dfa359138CC17D60466fEDF98c8cC1463e", + "1000000000000000000" + ], + [ + "0x4159B13bEf40e06Fd60D4CE3D813829d25285BF0", + "0", + "0xc973d33136cc504efc7062bd51c1adb166b9d02ce6d783645cf4697bb8d78ce4", + "0x0786C63c75B7F029D860bE04426Ba197637218c3", + "1000000000000000000" + ], + [ + "0xBaA6E2986C188C4C6132008a49E2CB18Ac25DF25", + "0", + "0xcefce9ee64856712c11cc99d9efae80c9fe8e633caf0c942b77ef218c7068846", + "0xc72a50dB1F51fF274807A1538530aFD4bf16324A", + "1000000000000000000" + ], + [ + "0x4840a97473EbdFD97Cc017fBBf5DC66C3d9eb3E8", + "0", + "0x81c92476b9769099ea75cac5184927efe53efbc408dc726ae2ecfe0b893c554b", + "0xb6Af24C0dF7fF5037d16f1eB079B3f44325f8BA2", + "0" + ], + [ + "0xE0bBE0c4987cCE3a0A08aA4C91A36763aF575D97", + "0", + "0x5acb9c091ef14f6f4e717b8d4fb0409af1c3c94ca015384758ced1c2c30e0c93", + "0x1Ae584b4d24D93D9Da44dB74976186F8b8DE1304", + "1000000000000000000" + ], + [ + "0xF54a3BfbC27200642510B56DFeB00aA0325Ab2DD", + "0", + "0x8aa96d70d78916d97620ec10d6b6a19ba1da1e1bda1dc32414a59502adbe35a8", + "0x0E4b2c8be0B9d69d93ABBeCda83A8229E2A3dDD6", + "1000000000000000000" + ], + [ + "0xdDFDc4B0ef8eA00D542eF89f48Fb829d6debD3b5", + "0", + "0x93fc69eb1630a170e485d2ad62c98a894d5cc99b36649aaa284db16d2eb312bb", + "0x886daa64154aC73297337926d4687748dB2044c1", + "1000000000000000000" + ], + [ + "0x11ca1599E257d498416490F9e405B2f991DAe5F7", + "0", + "0x57839eda3e455f4edd7db80823c81116fcf2ee11e0d7d127958708b7bca1504c", + "0x3E476022893AaaA914F392B872B4bAc20ADE01f9", + "10000000000000000" + ], + [ + "0x0EB90bB1eB451a895EE9A67E1EDE015Cd200C022", + "0", + "0x5c90130780bcee1e32b1040e07563057b204a4ff64563e742094d41402a07226", + "0x051757266B7cE9F763368bECeCCe1E60CeC81C11", + "1000000000000000000" + ], + [ + "0x00e78C83E6c20F9d4ACFd4FFb2C6c430157f2990", + "0", + "0xfdd239eae662a69dfda2523b66df6e1cdb22308c7057fc3df3c0c2c068b087fb", + "0x2378A827Bc5066B7eBfe948105A6AdefF77Eaea2", + "10000000000000000" + ], + [ + "0xb5763F67e6387A8640cE3040a4D582D207D46f5F", + "0", + "0x78755f4b6857f7978fb9537cd7bf8d0b812d7b8d93ec1a0bc25ee8047bf6e4c0", + "0x5abCC3376E1e5679e1353861D58971B1639ded1c", + "10000000000000000" + ], + [ + "0xAF92A4F7e9D46741D89579CC34DD9a36a6d26966", + "0", + "0x4d33ad9d5410165e9a467074c114b8e87ae91cb9175d2635133b59a45a9ef45c", + "0x06dc2A3c9d756302215744Dc58208d435A7fE423", + "10000000" + ], + [ + "0x559E3e6D42DA50bCE6b40088189F949E2939582a", + "0", + "0x1fd7a7c847b4ec6d39028420746ef91212d8d40d5c8ceb6a3af75dcc213b0c37", + "0x7F87761EA1DBF8E77d5f11C62Cbec28eD629C6B2", + "10000000000000000" + ], + [ + "0x5527f94561E78A8c57226E4dF7Aa5AF2251289F7", + "0", + "0x949d5ea7c9902b6b8593e208f87cb92c2f2a96dc3244a70c599be895b681d18d", + "0xc925Bd10c3E972B3366e9900646f301E9fe8fB94", + "1000000000000000000" + ], + [ + "0x10E6F1b84cc6cd82C3dB1a7c68166432Db0267f4", + "0", + "0xfea8f6e3df6b07be2b1c85f50aa8e8dc44095e5d3371d1ef36ec4bd35e82b433", + "0x80313fF707A116fF0Bb8d255A7bD7D0eaEed8e53", + "1000000000000000000" + ], + [ + "0x88C3Bbeb5CD140991DA080e49f66B748a5eb587e", + "0", + "0xfe7cf98eb910ab6371c1b5c6f830309d246f892034be6a03851e1a34a2e4c655", + "0xD56c44B4135EeB994FC783130119a338118192Cb", + "10000000000000000" + ], + [ + "0x4840a97473EbdFD97Cc017fBBf5DC66C3d9eb3E8", + "0", + "0xbcdff6241a838603a57b9176a05e8e9f628d1a24b0fbe9b5557046dda5edb7d8", + "0x67E2324FA76FaC38F1aA975e421250357a665000", + "1000000000000000000" + ], + [ + "0x6e38b3742F5E353d40B2Cb52716375310f37B5Ba", + "0", + "0x3f3a11b37eaabfc3a83a9c72e5f6fb86b2698f69a1a399c521ee779c29836d55", + "0xc3179E89b0DB58f4ec5c3d8590C583A7eA84169B", + "1000000000000000000" + ], + [ + "0x3648fe8DE91F7b8AE1c7c6F48144F7040ef2741c", + "0", + "0x16cb0fdab27c77aaf8d9f6a6780a98b9ae2fd90331f835db1b81ff9e5c510d81", + "0xAE06CbED5a7D71dA9eeeE192d213e61986D2b94e", + "1000000000000000000" + ], + [ + "0x1eD5254AfFA4276e5EF216C6b9bA7E4134D077F2", + "0", + "0x4a2c6a8fb4e8ae128d6ea28dcd461c00f2bf982f7727d501da6754c973eb98a7", + "0xD9a60090b4A39327296E09adFa8Afe5b92660A99", + "1000000000000000000" + ], + [ + "0xF395431c6e7703F605b1dE78fbD0De5441F1e20B", + "0", + "0xb9fd3f8010400204866a7beb13b08a14603d0cfc9530f85a883abdd73c3aa4b8", + "0x3b90BF34E37E1de12E8197372eB1D5b496BbeEa6", + "1000000000000000000" + ], + [ + "0x7Bee70C5E4d6359A9A8c57D79771519D706D0c46", + "0", + "0x80bf6d32246757b9a0710d68560b5a1ee9aea50b191e4fb9f33ec22738d23e0b", + "0xE7EEfB8b2763f64862dfB90c6F1a8fBb694AEdE3", + "10000000000000000" + ], + [ + "0xdc66c81F3196dA11c6b975B1B9423f1d928B14D6", + "0", + "0x13f12ff129167cf8ccf7e837c84c281b71e4a724dcb3502aedc77b8da5c971be", + "0x50Ae14365bC6EF8Ac9096E10649C14501b613715", + "100000000000000000" + ], + [ + "0x0aAaEcBBD716489b5d135d82DC0BEF8B1830212B", + "0", + "0x9ffd7546b3e55a5ed4ea17c2f52e5c99fca8043aa26d6c16bcb85efc1fa74401", + "0x6e9b5F458C43600f87d9c3627F3e0ccE3acC79eB", + "10000000000000000" + ], + [ + "0x0e63a6CA170045456c86A645a2771CeCed8447D4", + "0", + "0xfe24dd2bbb89f09ddc05e92268358ca64ac6b3f42057723b99c80746013d3e2f", + "0x32EADb0FD3ac5a4753336B55C52EA83d49BbaC60", + "10000000000000000" + ], + [ + "0x9aa667522fBe516b8AEBA222B9829266E92d2e79", + "0", + "0xa27a21c845a0a4dc013bcdf68281a2ef6cb7e9c7685bef6e905c139871515d0c", + "0xb106811eC663b4C90712D15E542CC9E5373d223e", + "10000000000000000" + ], + [ + "0xc781D09327a6A0407a36DBB201E150d7B4d27E92", + "0", + "0xc53a6ade33c7f48b00937ffed984c37a82558452cb7574d2cbb1af06a41e3d16", + "0x8D620d3589492d5C6301c522193Fd6D9d82a00b7", + "10000000000000000" + ], + [ + "0x584D01560A3a673beF9533bd3eCBA7c5dA2Fa534", + "0", + "0xe5e089179c5b15287bb2fa77f32c9d12b4d28b835ac9ba7341aa75b907eec89a", + "0x240118E0f97B2dF00AA89A1cBfF6FC8Ee6a3D3aD", + "10000000000000000" + ], + [ + "0x6e4cE2C8b6b123e3c8d28104e983dEB48762A3ea", + "0", + "0x585d62901b7a7087f95bb0be89d3845922cbb85382edd2b92b9f41d5cf98e294", + "0xcb8a814Bda01a7C80bC06070413E9578c3d4b964", + "10000000000000000" + ], + [ + "0x8dA5004292c81FD02000b0992AeaD2A5345A49Bf", + "0", + "0xf02aa53a906a02c156e10c334ac2117e332fc7a182898d7fca11ea1dfd9188c0", + "0xC351d81d39Efc106e95bd66fBd5Ff5A3113d994D", + "10000000000000000" + ], + [ + "0xc45266343406DE7dC94DBF4696F25BEcBFEA9664", + "0", + "0xfc2b09d3b4a6c552cbcbd9cb8e99a95693d816416c0c3fde251b952ce1851516", + "0xD6bbAb041dCea9DB90e1eC075F71aE9DFc8837B2", + "10000000000000000" + ], + [ + "0xc45266343406DE7dC94DBF4696F25BEcBFEA9664", + "0", + "0x3cda04656e21243f06f3a4cc3bee6ae5c21b9b1dc900e5f7999397c7962c09f6", + "0x734d09d92fcc44AEa05b01488170c496af174F4e", + "10000000000000000" + ], + [ + "0xc45266343406DE7dC94DBF4696F25BEcBFEA9664", + "0", + "0xa3685b10362324a72119ee84442be62da16df7741c1a20a608bb8a2b3ef7a6ff", + "0x13cf32f8D29Af9D2a0950bbCd064f126285f622C", + "10000000000000000" + ], + [ + "0xc45266343406DE7dC94DBF4696F25BEcBFEA9664", + "0", + "0x487a9ac94ffb1e01a4a7f8b8c4b48d35034b050592f40c27bbd76b31733f2b6f", + "0x1360d0654c0D7b8606eC56c868b1BCbEbf202D11", + "10000000000000000" + ], + [ + "0xc45266343406DE7dC94DBF4696F25BEcBFEA9664", + "0", + "0xc446d807c6acfc2a6d27623e889aa18fe7b4b954880a2a175bd333793afd5c52", + "0x578397713F5B4fB9db1e0078339199bA303087f1", + "10000000000000000" + ], + [ + "0xc45266343406DE7dC94DBF4696F25BEcBFEA9664", + "0", + "0xe2043eda94bf4770970bd95b88b21c09581e216f655675f9c90e9ff4280b8bab", + "0xD96E03D6C02d14078CC146A7889129Aff9c136Dc", + "10000000000000000" + ], + [ + "0xc45266343406DE7dC94DBF4696F25BEcBFEA9664", + "0", + "0x90fa4fa0c39ae947815934ce3b8e64a3b48b1d3aa045c297937ee7c1c46bf196", + "0xB4fbF4aF6f7c9f4FB54F32714359eaB4ecd34f06", + "10000000000000000" + ], + [ + "0xc45266343406DE7dC94DBF4696F25BEcBFEA9664", + "0", + "0x643d5e679b8cef32cb89de07bf6e02cb8f1349e63f87c39a60f49e183bddd218", + "0xd700853fbDf64062d801B7072f791e2e52824c45", + "10000000000000000" + ], + [ + "0xc45266343406DE7dC94DBF4696F25BEcBFEA9664", + "0", + "0x03094a514a8819d868d877ee3084e482fd40e6a9293b0f47ccdffd5e3ae844d5", + "0xAC0CbcF489827074E5335Bb0bfED3Bc0eb8Aa718", + "0" + ], + [ + "0xc45266343406DE7dC94DBF4696F25BEcBFEA9664", + "0", + "0xcb890a2ebcd55dabd9cc1d7e6e324ea74cbad79c30a3632cf141f549ef6c38a3", + "0x24938e1EB491B382E546325fE5bed3e6675C3123", + "10000000000000000" + ], + [ + "0x79d7A3a6E4EBEBd4992d60351E06D19f35391261", + "0", + "0x5174ab8342693a9318efbc9e3a1639c1260f4936bbc255f5209fee0834c77485", + "0x495D181175322A65DE68A698Ce0acbb58Dd22cC3", + "10000000000000000" + ], + [ + "0x360969ae487BcC3e836923628eA228541b09A1Ec", + "0", + "0xad2ecfc37f7b4395a2ed85a15bf743eb304db1e3644feecd86782071c4bb3559", + "0x8A92C339c102c3F42AFBca88bA6CFe7755ceC6B1", + "10000000000000000" + ], + [ + "0xcf7116Be1874C92f12e2DA46336E617DbFC8faf3", + "0", + "0xd6f38535329572c3619547dc5ced16c0f8dbd883bb249d0bb90da2e4eaf2e849", + "0x0Ec2A54c218fE58d522568a39fa44da6C3Ddbd97", + "10000000000000000" + ], + [ + "0xb44d78744BB09a685b6B0962E0bf1eF492143059", + "0", + "0x5632f2e03eb6d64dcc11b569fc9c9fda1d69622a62368cf7d02ed51d059327b9", + "0x632266abb883DCf335567a792f1ac8AA7D296B24", + "10000000000000000" + ], + [ + "0xeD3FF824d7ce0b145653ed1e8cB135314B120504", + "0", + "0xbc2586441a69b013d2b998694cc7aae0070c86f23f0bce06aff962ac0a28579e", + "0x1dD128C5636CC272be5DB3861c8449f06f7fE7Ff", + "10000000000000000" + ], + [ + "0x6A47C9612d54517E66474390fe34522bCdDaeE72", + "0", + "0x4b2cb86e65258aaceb6e9e6c13ee952f22de00cfffa4e59ed8e77b20ac25f649", + "0x57217aec3F0D1DEBdc1edB60A6b1c0159827897E", + "10000000000000000" + ], + [ + "0x29b88e7b29fD09c37c8668cD3EB533242e86F69d", + "0", + "0xf71273aa4a30b95fc01d83c609b24328f373c184dead97ea4b61dddbd1325977", + "0x268f4815367150116239eC49EAa92562dec8cd65", + "10000000000000000" + ], + [ + "0x2057A69d537751b9B1ff6c1EDBde575299fB28C9", + "0", + "0xc8a259ee699ceacd4781fdf44bcd620a4ee21398d97b3d59830c1cae3b267179", + "0xD6ae568F347C9B88d991dA952BfbAbEDb51aAFD6", + "10000000000000000" + ], + [ + "0x39274EF6bF3A69A29d3CBAAff01fDbEd9313fA8c", + "0", + "0x32c52c7c44165bc9d2a6ccec5a774177581b350bb9e9e6eebaf0cc9637379705", + "0xD39e0DD7c4Bd53A0BAFF8865BD8820010D29F4ac", + "10000000000000000" + ], + [ + "0x67BbF033226a0C6b4887B4C8E821E83EAd99A846", + "0", + "0x74a6439079315ebb99de647ddc979acca6c8fefcfceffeafe40b31b91bd36490", + "0xAf77cd225E3C5A06177D9464Fc485Da8e3A08AA8", + "10000000000000000" + ], + [ + "0xBDE6E53B4A75C0d7722598920B5Fa708bB1528B2", + "0", + "0x08ea63e7beaceedda68699560350b940d4bb6d38e4e63b9ba84803ce5f59cbbc", + "0x32d74cCd03659504B92E9bA0c8324A7DE3132872", + "10000000000000000" + ], + [ + "0x1E18CE77332F28aA3075E42a3c31F8Df1170FbbE", + "0", + "0xeb4e1cadc9044d56eb36b4fe2c0a48bd6f8aa0c91a505327d53a3066ae10e913", + "0x2CD8849eA23f6aB697C14c8fE611795A1019006a", + "10000000000000000" + ], + [ + "0xFa429049CcDd31365dD567cbAb998da89D283f47", + "0", + "0x53c48ae3765c4c8d3db1f93d996408bf04c3b9e018d4aebcfc30f9eb135bf9c6", + "0x930cC31236386B84ce46AF0D7eE50e77E68Af564", + "10000000000000000" + ], + [ + "0xAf40C885D42D83CFcec248935128624b80c4D759", + "0", + "0x805143647197eba4f735f71c59084a31f60429b95c6900b10e7f9321da63e1a8", + "0x1bc67b7a05AEAdd59E4340F0073b143258A2ae0C", + "10000000000000000" + ], + [ + "0xB871fD5BE7C8b54610ee2E5a97E95fc5d718E8B6", + "0", + "0x45aee8be2af716f74f94c98a67fd9bf883d072deb81c3c139a404287e85770c0", + "0xAF31B260DDcd6D30f89AD83E11339723ee6F9b1b", + "10000000000000000" + ], + [ + "0x7D6d19ADc2bea6Da9fB4F95aCF4Cc9f38e76892F", + "0", + "0xc96401cf508d711361a6d7c9d959ff2d3f454ef42c260a57959ed44dfec03f45", + "0x26B5f5599446D156E6bE85547B66b4eB37A96F9A", + "10000000000000000" + ], + [ + "0xD38686097965f00387037f15147cA8a1Bc946066", + "0", + "0xaa765c71cfe3b041788812684c13165d6317e53eb25dc9a0c4573016fdc45c5b", + "0x18dEf9c4afD6d5a7e28cbF51C61799DF62560D74", + "10000000000000000" + ], + [ + "0x864899D70837708c9B095C31AaecF42696386d93", + "0", + "0x8589cfbb47f9f6db120b6877ec31c66242a2d9dbda36c571b09b2b2f2aad1fb9", + "0x9A4999093fC051D0548893339F9F0D2FB0FF556B", + "10000000000000000" + ], + [ + "0xD75DcE5E165ec48951Cec841d1Ca723a860f18EE", + "0", + "0x258a386c6850fd985535d66bad6a7ed95c735ab3abe6b30505609663d66cc2ea", + "0x0Ad52bFb2E265590070D9174a07B4C6101FC0378", + "10000000000000000" + ], + [ + "0xbBB65182C259c812EB949D1e96f848B39cbB42F5", + "0", + "0xdf27b32d14446ecd456e5954ecacd47eceee81ae8a86fc88f1a2ab12f03df339", + "0x7B2f789289f267C10D279Fe5b2642cA0C8dd4c23", + "10000000000000000" + ], + [ + "0x7F18adf997BfC5440c3FeDA10bF5B8F9aC83f78C", + "0", + "0xcebbdfbe9a2572369780223da2a45d5d5752d97e02910e0bd6a3e54dd8694889", + "0x22FEcb2F7af55DfCC8EB593A103fFaDDEaCA93c0", + "100000000000000000" + ], + [ + "0xbdE0a4c1AD81c7e67D3d5c2178BF82626f34d489", + "0", + "0x75d800dd1619ecf1bf4a0206115019d9dd0bd687b5da35eb16c9bff5f4b1c420", + "0x775349BF4fBDD79087269745477E45e680C34f6d", + "10000000000000000" + ], + [ + "0xbdE0a4c1AD81c7e67D3d5c2178BF82626f34d489", + "0", + "0x47b455195522e59fadf8321a44c76fe673fd6c1cd9cbe1730869db179923ece3", + "0x27B4d61Cc0E8690127fA03ef606123Ff000fAA02", + "10000000000000000" + ], + [ + "0x0112B216cD6DCC1780A488F7064bEC6F69975E83", + "0", + "0x6ed5140cbd9bdba5e480766ce5259050f224d9de072bf66add74bb12cc927769", + "0x95F87ae88562217D27e07F7DF333e034215770fA", + "10000000" + ], + [ + "0x5d992c05821E6068cB5Fa9d2994F56b1160343A1", + "0", + "0x1687453c38e56481a42617479ddc454a06eb43c9fc47dd3ba64a9ad0c59085ac", + "0xCBF9adaE4030516e8162D4b8cCD8e66477342AeE", + "10000000" + ], + [ + "0x0d544098a9402a7CC1A8e5aDdfF86646DE6FBB0c", + "0", + "0xf1130287cb7395d7ab07d91635a88956a6cba4c9034394b4ce814892a93915c7", + "0x37194836A753A8450bDbaFbfbF8066f4517CD793", + "10000000" + ], + [ + "0xEBB16F33B937d5e4416D44376dac6aD5BAA33877", + "0", + "0x9ecb7f092cde7c294e7e14dcebd0409e391cae755471d4cd353c00c722bd6630", + "0x15C16ab9caC332430BE6867dD00b55b960303041", + "10000000" + ], + [ + "0x584D01560A3a673beF9533bd3eCBA7c5dA2Fa534", + "0", + "0x4b2d3bf1eefe4fe5134982a2c9bd8a0978f6c6cabbac8f8a9894cec8ad468ad1", + "0xc49e59451963eB5f58eE25132481a55D9731749D", + "10000000000000000" + ], + [ + "0x7Bd724Be9e3AD5653BEc09f19f5198490Cb7c9Dc", + "0", + "0x43c35e90dfca71ccee6bcc2dded5dea31fd3b7e00cf0a11dba9a0681d9f65048", + "0xF0252ead10213E61ebB219c94BA927333636Ec20", + "10000000000000000" + ], + [ + "0xC90FFcd1694DB38157a53a9A0ab6137d03CFdC7D", + "0", + "0x207311a511c12a84a40dc05b86d1c81dd54db242fb16b3c786b08404f8eadf82", + "0xc5212b0A21e58c2FE6e872eEcf3fC6F0aD276Ab7", + "10000000000000000" + ], + [ + "0x22de2352E31BDb3ec7Cc8F170Cd3B901e9D16d0C", + "0", + "0xe2981431d5a11ed0154b60e5b9de32fb7473ca5c8286ea488e1e6cbc07179de9", + "0x754c9bE6554a3f3850bE41Be0dbD9E56FE300C3E", + "10000000000000000" + ], + [ + "0xf241c49A730431BD635aFc042796d3941462755f", + "0", + "0x8c32e4e91b6662f1731d57c4d09c2ee27d444a54c1bd6c2b1b52dd5dbe80c2a0", + "0x6C0AaAd9d027917C54f2952De6A80b9da97f7c97", + "10000000000000000" + ], + [ + "0x35Ab1E05d4F0830Dae203FD34c167765E8694d3F", + "0", + "0x37e1c03d68204cf116c614d31bdd8149d12ee9d83caa4a4fd7497d87298d7d47", + "0x8C005793d7d87D41905Ea9d3063704204C214B6e", + "10000000000000000" + ], + [ + "0x92Fe52221EEBaCc5190547791Ea2f14C567F6969", + "0", + "0xde181ab9250db0b87b3fc518ec4a3007f2ab501ac1994c9b7c822c546f267456", + "0x3457c9656BDBC35C410A961E62d2061e384F7d00", + "10000000000000000" + ], + [ + "0xd26ceC1E5e56BD226b7A0f94Af7CD5fB76727211", + "0", + "0xeefbbc5ce8493e65472ad5341061d8c4d4d3b4faf0f477fc603b24057491992d", + "0x660Dd67d0d65AB8B5E73AECD42860894A8BB35A0", + "10000000000000000" + ], + [ + "0xe142b37B809C1De97BB541Fc59D5086e52d18B5E", + "0", + "0x06b233542a9d35f71fe2a22f7ce650d3378fc341913d232077e30612ca66a772", + "0x0987a41582cbF609b69B56b87750878f8947e2B9", + "10000000000000000" + ], + [ + "0x7158b2B27BCD1a336026f26f77B48883c74aca49", + "0", + "0xf6b9d6188dfd1a9e976458d86f9f4fea239ded83a2aa087e4a3e21ae77f27a1e", + "0xf52D5eBc578Caf9E3229e7C33d07960C5cfdd067", + "10000000000000000" + ], + [ + "0x411121bcC0296398f6c8d4d811A0b64B96aDdA1F", + "0", + "0x54d027866178bae06e8aac6d0349d36e84b2d355a2d99ed368e82445f966dbc0", + "0xC6A6630aC8b7417a18Ea34E5A4F3a7F6cDd6439D", + "10000000000000000" + ], + [ + "0x3ABbBEd810DD85c749559C0BcD7D0fb8b08EE885", + "0", + "0xbaff85a17a2509b5a7e73c292db101b056e3498beb95525ceb61be463f32e5af", + "0xd6dDd57105c0E50adEC51E8443a9b8040C830892", + "10000000000000000" + ], + [ + "0xED447A4092F6841e76897D794781DdbEF08E1A93", + "0", + "0xcb0b3912b9622dcdfd171658137d3d5a9bc16ea0c78b6c3c4d8ad0383f465664", + "0xBad3e024CBe5230f8FF29174ab9f154298A7AA8f", + "10000000000000000" + ], + [ + "0x012610A32f83c84E58Dda9ca4052B782d7ACAA5F", + "0", + "0xc93e4ad84af0a4b6bc4c146f711ae6f506260f0661670b5adcb9a90526d9de03", + "0xe8c2cD3B4720A2c28B4194472576111B411114d1", + "10000000000000000" + ], + [ + "0x4dEeC5891D42A96631D940eb672e1f6948b9E952", + "0", + "0x8eb245c4de64bf564fe9bf5fd7c10a3b2465737979ac6345130836dae4c988c8", + "0x964c89242E05119C0699755eaC6bEcE96AA78242", + "10000000000000000" + ], + [ + "0xd26ceC1E5e56BD226b7A0f94Af7CD5fB76727211", + "0", + "0x7b87b98c6cb4288c7c65199879ef5139739ca7917e4e4c2e89d58bec0f98a05b", + "0x4875ddCbB3760b1F1cc46E4F5Acf2F39FAe29125", + "10000000000000000" + ], + [ + "0x54E15FD53C4c95edb533B8934fF38e92966FfE00", + "0", + "0x1d30babac396b41a84b2a7a3808509028580b4683f57d5d1a0711ba2afe62f37", + "0x00697a0f20a27eF2458CA202f735aaE31c6399DD", + "10000000000000000" + ], + [ + "0x3fC973A1d3bC26Bd940d7BF051b8814075D163A9", + "0", + "0x03c0bc69dfdd6429591f950ace296f2f1eb3b8620b8f0158ad6c32ec6763919d", + "0xB4d2186054cB29FFe35475E5483dfD3955D68899", + "10000000000000000" + ], + [ + "0x6C4a71781D025821F81DD5EEd8e7bb7FB1EEc11f", + "0", + "0xd18e1841696ae733d88bda51336c7323ccfd65ad37f2872040ee8252eedcced6", + "0x0f98b97Be75c96f9F7536206aDA484bC98730091", + "10000000000000000" + ], + [ + "0x68A8cdEB69fc47FDDc2197451E144C8F42892ff9", + "0", + "0xc326948194036f99d73ce6e5d4172c0e7e97aa14e02217112ab5ddf9bffe902c", + "0xFE06042662671f8D37fF09C01072715f6BC5404D", + "10000000000000000" + ], + [ + "0xEc37f6A011d4E31B0e20d84445a26259700ed824", + "0", + "0xebd3de412bbe5657c918d3e9f924587447716f48242764907e0cc4f604c79f27", + "0xBfceb533FE02C82dC805A5b0914036bdA36E35Ee", + "10000000000000000" + ], + [ + "0xB74Ca7735F25C412924885724CE327649FD98835", + "0", + "0x307583340f06a00e06ad98c59df801238fd80678cc24c0d4bcfcb68b6dd103c8", + "0x0c479816380724B7cE8c6F4B7D90F978597E7725", + "10000000000000000" + ], + [ + "0x48924c905aeF024Cfe1b4058a0f4F4a74ac5fFAD", + "0", + "0x18864e56c242f3cfa4fc595efed4a574a5299857136e234d6dbc9cc698adae3c", + "0xdaE379CF7d6B5253F5b4027ff614aa7753153E12", + "10000000000000000" + ], + [ + "0x90054e56b5b277CA3B019C3EECD944464182D366", + "0", + "0xd83c8fe1741082a0bc70375fc5ace013fe4a176ad1913b6b58d2f3798537174b", + "0x9f80d5D7F96B657e8A13D48d5636DaA3D353F198", + "10000000000000000" + ], + [ + "0x6737704f6C6Ab5E97BF8432787215477543d5640", + "0", + "0x7973f266de533c1f6358c20a4f458c1e99b2da04f9b8bb4287930f97e0f6e42c", + "0x987557c6691f02f59F1F4abDA83ee58C817e39B4", + "10000000000000000" + ], + [ + "0x331D141927aeBE7B2624888A62EE6C8093d71815", + "0", + "0x3614c0a0e4ff76b26c6a5157a625b39e8c2b30010ac041fa992f278a3ccde078", + "0x20117616f13303dC5E5805faaE538f3157ebCd1e", + "10000000000000000" + ], + [ + "0x2779F1a4EaBf2EEB981afc0991565D0802D3eDeC", + "0", + "0x4192d192140fb1148204fc4f500c370b2bd24cd544a07a9a95d42f1f294eaf9b", + "0xA911121f41831c610b7F0E40EAb4Cb46B02552f7", + "10000000000000000" + ], + [ + "0xb623637dECf9140c110345B15d29B1702d0CA8C9", + "0", + "0x8f92655c6b119faf703fe841426bfe1f642e2ab5ec9ca0b750fd67af41344ba3", + "0xE08866f2822f0Cc1239eE3516370D7640a55B42e", + "10000000000000000" + ], + [ + "0xDaDdFFdC83f6fbCB02bC4CFc8b9217b9BD9283c1", + "0", + "0x3527a10e4983dbd50d8cd46787750a313c5700648105e768e91b2f48b8bff852", + "0x3B68d7d1b43E19714f3dd8cC3cB72cD279634298", + "10000000000000000" + ], + [ + "0x336E09E0827478Add2da822bA5dAf6098b6FF8e9", + "0", + "0xc2d8d7a8dfe7bd8068b71a1cd06e48cccf54383884a6d2c04aae3785e30cf214", + "0x9AC262870059a60eEE9807726D093aA82ff8b70d", + "10000000000000000" + ], + [ + "0x49C000573F91BA59f41A82e5aA0Ccd8cf623e385", + "0", + "0x127b756d387a3c3f28b41e160fa6048ee2d0347c5aa64977aa0f63f899245ceb", + "0x4751E1Cc8E5F538d1E4ff3c51247Da2768565e6a", + "10000000000000000" + ], + [ + "0xE6076F1EE09E7ba75f86Ac97B1b717E63E42AD48", + "0", + "0x5a56101dd6df0b38126a35f23275bbe67a263f9c83a15582fc426e89879c473f", + "0x1c42BBe3597Ee765Df81b85Df1f63E1F62729897", + "10000000000000000" + ], + [ + "0xFE0929ED5B18e01A19340D90e60A7e38B92BcD06", + "0", + "0x5c78539f5a9734560f7f2b71a554577c8d1d5d65395c9beebc12967512effb37", + "0x1B4dE6A9fdF28e2b4Ab09F6D6e486d8829A2A809", + "10000000000000000" + ], + [ + "0x8B5a0d81814517D7c08E29a3E19e8f01BB36ee38", + "0", + "0xb62bc056c4df93c24d86d6d937b13a93a10af2706b15beb9dda993818b0c540e", + "0x55971BA6800c2d46ddCD7d20EF1525cA5b553df1", + "10000000000000000" + ], + [ + "0x094b75c1235917344D62fD6590d5f00B66bDA87e", + "0", + "0x7a32ab8d7c446b015ba959c777db83b0c00e142b1e505baee06b680ff29775e8", + "0x357dB436728734e853F2Be7e1018edD5c33d4FF1", + "10000000000000000" + ], + [ + "0x076245d0aBED74977654Af26F591100079B2d1Db", + "0", + "0xcc66333c6060eeb4faeab1ee48b38075a4b7b972621c33f197618361835b49f3", + "0xC1c8192354F329Beca035702610e2513DcED5402", + "10000000000000000" + ], + [ + "0xA65a568A8f9918Fb1a26ce3602af952575d8E359", + "0", + "0x34e47a714ac9dc36c47f1fc6e18fd48648a52ef4d316f9879645fa6d1b99fb86", + "0xe1B7dad5AF82b4105406F76a53150C63323EA1B3", + "10000000000000000" + ], + [ + "0xA65a568A8f9918Fb1a26ce3602af952575d8E359", + "0", + "0x6e2dfe2f5e5bbb5bd968112f1d349b8c3cf8a073d7d7dc048ca3467f4d04cf59", + "0x07EF42ddFa0740C84F5D8aB47539c620afD4b798", + "10000000000000000" + ], + [ + "0xb6fc15c1c97B131053e2Cdd4910015ed8797D16f", + "0", + "0xb40e81a993c332e5bda78e1edaa4f7b7f0a3ed5378f5a9fa2c01e7f6e23be452", + "0xBD5c663Fd652dE427cCF8359862DF0C52c48C980", + "0" + ], + [ + "0xA65a568A8f9918Fb1a26ce3602af952575d8E359", + "0", + "0x03327611d51ad219c5c3d1e5c3b37393d7a5eeffea1377a1856ca87a149f85d1", + "0x2cE967614236e1346e8591c607Fd53f8699DEA9b", + "10000000000000000" + ], + [ + "0xA65a568A8f9918Fb1a26ce3602af952575d8E359", + "0", + "0xccbd14bb22ce7ddae7c6212fc127d34c997bcf319fe9af6c3c1bc4342c69f537", + "0xcb42dd239b66672C87B783E43C5bBD2Df2A4AE73", + "10000000000000000" + ], + [ + "0xD2617FD4cb89a2a6eD3712ee7Bf09933157DAC9d", + "0", + "0xb1970d84b5f39f741af015fc43ae2de18031de6f9e683438758bca7a9517fa60", + "0xf9008c0B973A23A8Ac48EedE1cf46efd43acEcBC", + "10000000000000000" + ], + [ + "0x183B007f551fe4DAeb7ab4874b520e471bb70289", + "0", + "0xdceec5b06a96b71c44c53db94f941895a409af2a3b3219c8bae4b6cd23245def", + "0x61f42CBC540c1940A3633cB5E729096E59af7C5a", + "10000000000000000" + ], + [ + "0x4D6ee74b3ef8198883c1b39a6ac742bA7774fE88", + "0", + "0x3a1143db21ceb69eebaa96bc4aceded8cad7228adcaa8683b53ca85facbacc91", + "0xb47a7c36ECadba6B3CF8092BEe57C6539fDfA08d", + "100000000000000000" + ], + [ + "0x70487fD73F5f72Ecd436F0bD17135832367E1285", + "0", + "0x63a1965a4d0052d9fe1147f09f401f8f7162157c989949c744c15c0d5d0edf06", + "0xFc5eA4f60041cfa8F59079987D271e7dE965ce7f", + "10000000000000000" + ], + [ + "0xA65a568A8f9918Fb1a26ce3602af952575d8E359", + "0", + "0xead54a79e898edc2d89df9e326582732c51116ee8c6ff9d562b43e7be64549d5", + "0xC0236FBA24a534bf8c1325e33102B210923EF309", + "10000000000000000" + ], + [ + "0xA65a568A8f9918Fb1a26ce3602af952575d8E359", + "0", + "0x37b2618dac6f1e15bb7677e89b1c41333ace89f050889c6f7e1b8ad8919abd78", + "0x3503F8bCE102Da0e35Fb90cedB61010670C15690", + "10000000000000000" + ], + [ + "0x02be1C4614f233d1EdDD649FA8716F12a0d0fd41", + "0", + "0x4a2ee9b80e03de6294c15969244488d4c02eb2697676c9a92cdb8138fd98312b", + "0x4dDB971140EA1269F619173b996f20aCbD189107", + "10000000000000000" + ], + [ + "0xA65a568A8f9918Fb1a26ce3602af952575d8E359", + "0", + "0xd10920bdc6bcf76aefd797d36f229bf90dee7c14a06d4d1bc935bd99c2ed82f8", + "0x6b6b30DDD7edb528F9e08cd2F16a77CEa9373053", + "10000000000000000" + ], + [ + "0xA65a568A8f9918Fb1a26ce3602af952575d8E359", + "0", + "0xb46dd11156529a53a9862ace46adf6d9e26c046bdcfe175eea6f7c77bc750e7f", + "0xAd4A76AC6F698b4E136f8280db76B77912BAf0C7", + "10000000000000000" + ], + [ + "0x307a137fE2fB6766ead0980cf2B20b5b1B6C5C77", + "0", + "0x3a1714cd9f06ee175a91afa3498b3a912ce8f761d5a9d0b2f009dad716400e99", + "0xa32A73069b69c286F026Aba01D780c8cd6296874", + "10000000000000000" + ], + [ + "0x9CF4759bDA4C1E8B644e6006F12ce92775fB44cA", + "0", + "0xdb2373197e2f26b66bd3c229d5f631667ec3761f23a2e2df1057f4610b8ac641", + "0xb2D164314D9545C05D6843290505C9e705254CfB", + "10000000000000000" + ], + [ + "0xf5A68579bE1F8084de7bE85826DDBe467774Bf9C", + "0", + "0xd09fb08e2656f635bcf1dcea17c8d8920708bbcf59f7da66c876f087393a989e", + "0x9C499c883eb8d6C017904a8344178E0cf4a24FbB", + "10000000000000000" + ], + [ + "0xDf939Af617EC278df802F5ab2846e30a7BE5c6dB", + "0", + "0xcb25757006996d0b425f4db0b793f3c92ab0626afd711cd366e8519bf40e336d", + "0x1F2a0705aBdb84c74d0B5543da576a858A15A3D9", + "10000000000000000" + ], + [ + "0xD1f3367Dd31713D1A549B634f5cF03f84bCA8b00", + "0", + "0xf3e859078707dd46378dc0baa2feaf3c1733f5d799a5bf1048f148699f66219f", + "0x9b2133bC1D83941B6274398F5Ae899054444D928", + "10000000000000000" + ], + [ + "0x9498931c90503BDBE9d4ef35dBA52dF052287509", + "0", + "0x23b70d82b52d84949c2612f9a6e1a04b771ee81a23777273330aa9421f162bc1", + "0x1918F39F556DAcDc294832f9f8f24995717547E4", + "10000000000000000" + ] +] \ No newline at end of file diff --git a/scripts/decodedData2.json b/scripts/decodedData2.json new file mode 100644 index 0000000..f97490e --- /dev/null +++ b/scripts/decodedData2.json @@ -0,0 +1,16 @@ +[ + [ + "0x73c412512E1cA0be3b89b77aB3466dA6A1B9d273", + "0", + "0x73c412512e1ca0be3b89b77ab3466da6a1b9d273000000000000000000000000", + "0xcaC4BE4BC6313c7ab3E8D7B71D66CdD2E45dB83a", + "0" + ], + [ + "0x3C311D5223c011972c20FbC6aE06656D591b2364", + "0", + "0x2f1e6b78a1cfcb368e324d70d3a10e17d35c30f44eed02dee8abf57b66eb81eb", + "0x27E252ea0Ed20E44870c0E9C4AaF4730fdf1Fc96", + "100000000000000000" + ] +] \ No newline at end of file diff --git a/scripts/fetch.js b/scripts/fetch.js new file mode 100644 index 0000000..662ce6b --- /dev/null +++ b/scripts/fetch.js @@ -0,0 +1,180 @@ +// This is SCRIPT for MIGRATION of Swaps, it fetches created contracts from SimpleSwapDeployed EVENT + +const hre = require("hardhat"); +const fs = require("fs/promises"); + +// Function to decode transaction input data +async function decodeTransactionInput(transactionHash, provider) { + try { + // Get the transaction + const transaction = await provider.getTransaction(transactionHash); + if (!transaction) { + console.log("Transaction not found!"); + return null; + } + + const contractABI = await require("../artifacts/contracts/SimpleSwapFactory.sol/SimpleSwapFactory.json"); + + // Create an interface from the ABI to decode the data + const contractInterface = new ethers.Interface(contractABI.abi); + + // Decode the transaction input data + const decodedInput = contractInterface.parseTransaction({ + data: transaction.data, + }); + + // Convert decoded data to a more readable format + // Return only the args + return decodedInput.args; + } catch (error) { + console.error("Error decoding transaction input:", error); + return null; + } +} +async function decodeTransactionOutput(transactionHash, provider) { + try { + // Get the transaction + const transaction = await provider.getTransaction(transactionHash); + if (!transaction) { + console.log("Transaction not found!"); + return null; + } + + const contractABI = await require("../artifacts/contracts/SimpleSwapFactory.sol/SimpleSwapFactory.json"); + + // Create an interface from the ABI to decode the data + const contractInterface = new ethers.Interface(contractABI.abi); + + // Get the transaction receipt + const receipt = await provider.getTransactionReceipt(transactionHash); + + // Decode the logs using the contract interface + const decodedLogs = receipt.logs.map((log) => + contractInterface.parseLog(log) + ); + let newContract; + + // Process the decoded logs to extract the information you need + decodedLogs.forEach((log) => { + if (log.name == "SimpleSwapDeployed") { + newContract = log.args[0]; + } + }); + + return newContract; + } catch (error) { + console.error("Error decoding transaction output:", error); + return null; + } +} + +async function getBalanceOutput(contractAddress, provider) { + try { + const contractABI = await require("../artifacts/contracts/ERC20SimpleSwap.sol/ERC20SimpleSwap.json"); + + // Create a contract instance + const contract = new ethers.Contract( + contractAddress, + contractABI.abi, + provider + ); + + // Call the balance() function + const balance = await contract.balance(); + + // Store the value + return balance.toString(); + } catch (error) { + console.error("Error getting balance:", error); + return null; + } +} + +// Custom replacer function to handle BigInt serialization +function replacer(key, value) { + if (typeof value === "bigint") { + return value.toString(); + } + return value; +} + +async function main() { + const provider = ethers.provider; + + // Specify the starting block + const startBlock = 4526243; // Replace with the block number from where you want to start + + const contractAddress = "0x73c412512E1cA0be3b89b77aB3466dA6A1B9d273"; + const myContract = await ethers.getContractAt( + "SimpleSwapFactory", + contractAddress + ); + + // Prepare to store the decoded data + let decodedDataArray = []; + + // Define batch size and delay (in milliseconds) + const batchSize = 10000; // Adjust based on your needs + const delay = 200; // Delay of 0.02 seconds + + // Get the latest block number + const latestBlock = await provider.getBlockNumber(); + + for ( + let currentBlock = startBlock; + currentBlock < 4806243; + currentBlock += batchSize + ) { + // Calculate the end block for the current batch + const endBlock = Math.min(currentBlock + batchSize - 1, latestBlock); + + // Query events in the current batch + const events = await myContract.queryFilter( + "SimpleSwapDeployed", + currentBlock, + endBlock + ); + for (let event of events) { + const decodedDataInput = await decodeTransactionInput( + event.transactionHash, + provider + ); + + const decodedDataOutput = await decodeTransactionOutput( + event.transactionHash, + provider + ); + + const getBalance = await getBalanceOutput(decodedDataOutput, provider); + + let mergedArray = [...decodedDataInput, decodedDataOutput, getBalance]; + if (decodedDataInput) { + decodedDataArray.push(mergedArray); + } + } + + // Log completion of the current batch + console.log(`Completed querying blocks ${currentBlock} to ${endBlock}`); + + // Wait for a specified delay before the next batch + await new Promise((resolve) => setTimeout(resolve, delay)); + } + + // Save the decoded data array to a JSON file + try { + await fs.writeFile( + "scripts/decodedData2.json", + JSON.stringify(decodedDataArray, replacer, 2) + ); + console.log("Successfully wrote decoded data to decodedData.json"); + } catch (err) { + console.error("Error writing file:", err); + } +} + +main() + .then(() => process.exit(0)) + .catch((error) => { + console.error(error); + process.exit(1); + }); diff --git a/yarn.lock b/yarn.lock index 9c0680d..ac409dc 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2,6 +2,11 @@ # yarn lockfile v1 +"@adraffy/ens-normalize@1.10.0": + version "1.10.0" + resolved "https://registry.npmjs.org/@adraffy/ens-normalize/-/ens-normalize-1.10.0.tgz" + integrity sha512-nA9XHtlAkYfJxY7bce8DcN7eKxWWCWkU+1GR9d+U6MbNpfwQp8TI7vqOsBsMcHoT4mBu2kypKoSKnghEzOOq5Q== + "@babel/code-frame@^7.0.0": version "7.16.0" resolved "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.16.0.tgz" @@ -215,7 +220,7 @@ "@ethersproject/transactions" "^5.7.0" "@ethersproject/web" "^5.7.0" -"@ethersproject/abstract-signer@5.5.0", "@ethersproject/abstract-signer@^5.5.0": +"@ethersproject/abstract-signer@5.5.0": version "5.5.0" resolved "https://registry.npmjs.org/@ethersproject/abstract-signer/-/abstract-signer-5.5.0.tgz" integrity sha512-lj//7r250MXVLKI7sVarXAbZXbv9P50lgmJQGr2/is82EwEb8r7HrxsmMqAjTsztMYy7ohrIhGMIml+Gx4D3mA== @@ -226,7 +231,7 @@ "@ethersproject/logger" "^5.5.0" "@ethersproject/properties" "^5.5.0" -"@ethersproject/abstract-signer@5.7.0", "@ethersproject/abstract-signer@^5.7.0": +"@ethersproject/abstract-signer@5.7.0", "@ethersproject/abstract-signer@^5.5.0", "@ethersproject/abstract-signer@^5.7.0": version "5.7.0" resolved "https://registry.npmjs.org/@ethersproject/abstract-signer/-/abstract-signer-5.7.0.tgz" integrity sha512-a16V8bq1/Cz+TGCkE2OPMTOUDLS3grCpdjoJCYNnVBbdYEMSgKrU0+B90s8b6H+ByYTBZN7a3g76jdIJi7UfKQ== @@ -237,7 +242,7 @@ "@ethersproject/logger" "^5.7.0" "@ethersproject/properties" "^5.7.0" -"@ethersproject/address@5.5.0", "@ethersproject/address@^5.0.4", "@ethersproject/address@^5.5.0": +"@ethersproject/address@5.5.0": version "5.5.0" resolved "https://registry.npmjs.org/@ethersproject/address/-/address-5.5.0.tgz" integrity sha512-l4Nj0eWlTUh6ro5IbPTgbpT4wRbdH5l8CQf7icF7sb/SI3Nhd9Y9HzhonTSTi6CefI0necIw7LJqQPopPLZyWw== @@ -248,7 +253,7 @@ "@ethersproject/logger" "^5.5.0" "@ethersproject/rlp" "^5.5.0" -"@ethersproject/address@5.7.0", "@ethersproject/address@^5.0.2", "@ethersproject/address@^5.7.0": +"@ethersproject/address@5.7.0", "@ethersproject/address@^5.0.2", "@ethersproject/address@^5.0.4", "@ethersproject/address@^5.5.0", "@ethersproject/address@^5.7.0": version "5.7.0" resolved "https://registry.npmjs.org/@ethersproject/address/-/address-5.7.0.tgz" integrity sha512-9wYhYt7aghVGo758POM5nqcOMaE168Q6aRLJZwUmiqSrAungkG74gSSeKEIR7ukixesdRZGPgVqme6vmxs1fkA== @@ -259,14 +264,14 @@ "@ethersproject/logger" "^5.7.0" "@ethersproject/rlp" "^5.7.0" -"@ethersproject/base64@5.5.0", "@ethersproject/base64@^5.5.0": +"@ethersproject/base64@5.5.0": version "5.5.0" resolved "https://registry.npmjs.org/@ethersproject/base64/-/base64-5.5.0.tgz" integrity sha512-tdayUKhU1ljrlHzEWbStXazDpsx4eg1dBXUSI6+mHlYklOXoXF6lZvw8tnD6oVaWfnMxAgRSKROg3cVKtCcppA== dependencies: "@ethersproject/bytes" "^5.5.0" -"@ethersproject/base64@5.7.0", "@ethersproject/base64@^5.7.0": +"@ethersproject/base64@5.7.0", "@ethersproject/base64@^5.5.0", "@ethersproject/base64@^5.7.0": version "5.7.0" resolved "https://registry.npmjs.org/@ethersproject/base64/-/base64-5.7.0.tgz" integrity sha512-Dr8tcHt2mEbsZr/mwTPIQAf3Ai0Bks/7gTw9dSqk1mQvhW3XvRlmDJr/4n+wg1JmCl16NZue17CDh8xb/vZ0sQ== @@ -841,6 +846,18 @@ "@ethersproject/properties" "^5.7.0" "@ethersproject/strings" "^5.7.0" +"@noble/curves@1.2.0": + version "1.2.0" + resolved "https://registry.npmjs.org/@noble/curves/-/curves-1.2.0.tgz" + integrity sha512-oYclrNgRaM9SsBUBVbb8M6DTV7ZHRTKugureoYEncY5c65HOmRzvSiTE3y5CYaPYJA/GVkrhXEoF0M3Ya9PMnw== + dependencies: + "@noble/hashes" "1.3.2" + +"@noble/hashes@1.3.2": + version "1.3.2" + resolved "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.2.tgz" + integrity sha512-MVC8EAQp7MvEcm30KWENFjgR+Mkmf+D189XJTkFIlwohU5hcBbn1ZkKq7KVTi2Hme3PMGF390DaL52beVrIihQ== + "@nodelib/fs.scandir@2.1.5": version "2.1.5" resolved "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz" @@ -862,9 +879,17 @@ "@nodelib/fs.scandir" "2.1.5" fastq "^1.6.0" +"@nomicfoundation/hardhat-ethers@^3.0.5": + version "3.0.5" + resolved "https://registry.yarnpkg.com/@nomicfoundation/hardhat-ethers/-/hardhat-ethers-3.0.5.tgz#0422c2123dec7c42e7fb2be8e1691f1d9708db56" + integrity sha512-RNFe8OtbZK6Ila9kIlHp0+S80/0Bu/3p41HUpaRIoHLm6X3WekTd83vob3rE54Duufu1edCiBDxspBzi2rxHHw== + dependencies: + debug "^4.1.1" + lodash.isequal "^4.5.0" + "@nomicfoundation/hardhat-verify@^1.0.0": version "1.0.0" - resolved "https://registry.yarnpkg.com/@nomicfoundation/hardhat-verify/-/hardhat-verify-1.0.0.tgz#f18be34f5e7fdb2ffd4f55e8516108568b99da5c" + resolved "https://registry.npmjs.org/@nomicfoundation/hardhat-verify/-/hardhat-verify-1.0.0.tgz" integrity sha512-R3UM/w2+e4D9PZRaeJHbC0caHSu/FV3ykAFBFg+RPNsfSzNgtHeRJXS+V+2HnVJYPaucBUD0v/6qtU8BZAouoQ== dependencies: "@ethersproject/abi" "^5.1.2" @@ -879,7 +904,7 @@ "@nomiclabs/hardhat-etherscan@^3.1.7": version "3.1.7" - resolved "https://registry.yarnpkg.com/@nomiclabs/hardhat-etherscan/-/hardhat-etherscan-3.1.7.tgz#72e3d5bd5d0ceb695e097a7f6f5ff6fcbf062b9a" + resolved "https://registry.npmjs.org/@nomiclabs/hardhat-etherscan/-/hardhat-etherscan-3.1.7.tgz" integrity sha512-tZ3TvSgpvsQ6B6OGmo1/Au6u8BrAkvs1mIC/eURA3xgIfznUZBhmpne8hv7BXUzw9xNL3fXdpOYgOQlVMTcoHQ== dependencies: "@ethersproject/abi" "^5.1.2" @@ -936,7 +961,7 @@ "@openzeppelin/contracts@^3.4.1-solc-0.7-2": version "3.4.2" - resolved "https://registry.yarnpkg.com/@openzeppelin/contracts/-/contracts-3.4.2.tgz#d81f786fda2871d1eb8a8c5a73e455753ba53527" + resolved "https://registry.npmjs.org/@openzeppelin/contracts/-/contracts-3.4.2.tgz" integrity sha512-z0zMCjyhhp4y7XKAcDAi3Vgms4T2PstwBdahiO0+9NaGICQKjynK3wduSRplTgk4LXmoO1yfDGO5RbjKYxtuxA== "@openzeppelin/test-helpers@^0.5.15": @@ -1292,6 +1317,11 @@ resolved "https://registry.npmjs.org/@types/node/-/node-16.11.9.tgz" integrity sha512-MKmdASMf3LtPzwLyRrFjtFFZ48cMf8jmX5VRYrDQiJa8Ybu5VAmkqBWqKU8fdCwD8ysw4mQ9nrEHvzg6gunR7A== +"@types/node@18.15.13": + version "18.15.13" + resolved "https://registry.npmjs.org/@types/node/-/node-18.15.13.tgz" + integrity sha512-N+0kuo9KgrUQ1Sn/ifDXsvg0TTleP7rIy4zOBGECxAljqvqfqpTfzx0Q1NUedOixRMBfe2Whhb056a42cWs26Q== + "@types/node@^12.12.6": version "12.20.37" resolved "https://registry.npmjs.org/@types/node/-/node-12.20.37.tgz" @@ -1405,6 +1435,11 @@ aes-js@3.0.0: resolved "https://registry.npmjs.org/aes-js/-/aes-js-3.0.0.tgz" integrity sha1-4h3xCtbCBTKVvLuNq0Cwnb6ofk0= +aes-js@4.0.0-beta.5: + version "4.0.0-beta.5" + resolved "https://registry.npmjs.org/aes-js/-/aes-js-4.0.0-beta.5.tgz" + integrity sha512-G965FqalsNyrPqgEGON7nIx1e/OVENSgiEIzyC63haUMuvNnwIgIjMs52hlTCKhkBny7A2ORNlfY9Zu+jmGk1Q== + agent-base@6: version "6.0.2" resolved "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz" @@ -1429,7 +1464,7 @@ ajv@^6.1.0, ajv@^6.10.0, ajv@^6.10.2, ajv@^6.12.3, ajv@^6.6.1, ajv@^6.9.1: ajv@^8.0.1: version "8.12.0" - resolved "https://registry.yarnpkg.com/ajv/-/ajv-8.12.0.tgz#d1a0527323e22f53562c567c00991577dfbe19d1" + resolved "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz" integrity sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA== dependencies: fast-deep-equal "^3.1.1" @@ -1506,7 +1541,7 @@ ansi-regex@^4.1.0: ansi-regex@^5.0.1: version "5.0.1" - resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304" + resolved "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz" integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ== ansi-styles@^3.2.0, ansi-styles@^3.2.1: @@ -1643,7 +1678,7 @@ astral-regex@^1.0.0: astral-regex@^2.0.0: version "2.0.0" - resolved "https://registry.yarnpkg.com/astral-regex/-/astral-regex-2.0.0.tgz#483143c567aeed4785759c0865786dc77d7d2e31" + resolved "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz" integrity sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ== async-each@^1.0.1: @@ -2039,7 +2074,7 @@ builtin-status-codes@^3.0.0: busboy@^1.6.0: version "1.6.0" - resolved "https://registry.yarnpkg.com/busboy/-/busboy-1.6.0.tgz#966ea36a9502e43cdb9146962523b92f531f6893" + resolved "https://registry.npmjs.org/busboy/-/busboy-1.6.0.tgz" integrity sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA== dependencies: streamsearch "^1.1.0" @@ -2157,7 +2192,7 @@ cbor@^5.1.0: cbor@^8.1.0: version "8.1.0" - resolved "https://registry.yarnpkg.com/cbor/-/cbor-8.1.0.tgz#cfc56437e770b73417a2ecbfc9caf6b771af60d5" + resolved "https://registry.npmjs.org/cbor/-/cbor-8.1.0.tgz" integrity sha512-DwGjNW9omn6EwP70aXsn7FQJx5kO12tX0bZkaTjzdVFM6/7nhA4t0EENocKGx6D2Bch9PE2KzCUf5SceBdeijg== dependencies: nofilter "^3.1.0" @@ -2960,7 +2995,7 @@ emoji-regex@^7.0.1: emoji-regex@^8.0.0: version "8.0.0" - resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37" + resolved "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz" integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A== emojis-list@^3.0.0: @@ -3530,6 +3565,19 @@ ethers@^5.5.3: "@ethersproject/web" "5.7.1" "@ethersproject/wordlists" "5.7.0" +ethers@^6.9.0: + version "6.9.0" + resolved "https://registry.yarnpkg.com/ethers/-/ethers-6.9.0.tgz#a4534bdcdfde306aee94ef32f3d5c70d7e33fcb9" + integrity sha512-pmfNyQzc2mseLe91FnT2vmNaTt8dDzhxZ/xItAV7uGsF4dI4ek2ufMu3rAkgQETL/TIs0GS5A+U05g9QyWnv3Q== + dependencies: + "@adraffy/ens-normalize" "1.10.0" + "@noble/curves" "1.2.0" + "@noble/hashes" "1.3.2" + "@types/node" "18.15.13" + aes-js "4.0.0-beta.5" + tslib "2.4.0" + ws "8.5.0" + ethjs-abi@^0.2.1: version "0.2.1" resolved "https://registry.npmjs.org/ethjs-abi/-/ethjs-abi-0.2.1.tgz" @@ -4021,9 +4069,9 @@ fsevents@~2.1.1: integrity sha512-Auw9a4AxqWpa9GUfj370BMPzzyncfBABW8Mab7BGWBYDj4Isgq+cDKtx0i6u9jcX9pQDnswsaaOTgTmA5pEjuQ== fsevents@~2.3.2: - version "2.3.2" - resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.2.tgz#8a526f78b8fdf4623b709e0b975c52c24c02fd1a" - integrity sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA== + version "2.3.3" + resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.3.tgz#cac6407785d03675a2a5e1a5305c697b347d90d6" + integrity sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw== function-bind@^1.1.1: version "1.1.1" @@ -4903,7 +4951,7 @@ is-fullwidth-code-point@^2.0.0: is-fullwidth-code-point@^3.0.0: version "3.0.0" - resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz#f116f8064fe90b3f7844a38997c0b75051269f1d" + resolved "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz" integrity sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg== is-function@^1.0.1: @@ -5165,7 +5213,7 @@ json-schema-traverse@^0.4.1: json-schema-traverse@^1.0.0: version "1.0.0" - resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz#ae7bcb3656ab77a73ba5c49bf654f38e6b6860e2" + resolved "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz" integrity sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug== json-schema@0.2.3: @@ -5463,6 +5511,11 @@ lodash.flatten@^4.4.0: resolved "https://registry.npmjs.org/lodash.flatten/-/lodash.flatten-4.4.0.tgz" integrity sha1-8xwiIlqWMtK7+OSt2+8kCqdlph8= +lodash.isequal@^4.5.0: + version "4.5.0" + resolved "https://registry.yarnpkg.com/lodash.isequal/-/lodash.isequal-4.5.0.tgz#415c4478f2bcc30120c22ce10ed3226f7d3e18e0" + integrity sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ== + lodash.merge@^4.6.2: version "4.6.2" resolved "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz" @@ -5480,7 +5533,7 @@ lodash.sum@^4.0.2: lodash.truncate@^4.4.2: version "4.4.2" - resolved "https://registry.yarnpkg.com/lodash.truncate/-/lodash.truncate-4.4.2.tgz#5a350da0b1113b837ecfffd5812cbe58d6eae193" + resolved "https://registry.npmjs.org/lodash.truncate/-/lodash.truncate-4.4.2.tgz" integrity sha512-jttmRe7bRse52OsWIMDLaXxWqRAmtIUccAQ3garviCqJjafXOfNMO0yMfNpdD6zbGaTU0P5Nz7e7gAT6cKmJRw== lodash@^4.17.11, lodash@^4.17.12, lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.21: @@ -5926,9 +5979,9 @@ mute-stream@0.0.7: integrity sha1-MHXOk7whuPq0PhvE2n6BFe0ee6s= nan@^2.12.1: - version "2.17.0" - resolved "https://registry.yarnpkg.com/nan/-/nan-2.17.0.tgz#c0150a2368a182f033e9aa5195ec76ea41a199cb" - integrity sha512-2ZTgtl0nJsO0KQCjEpxcIr5D+Yv90plTitZt9JBfQvVJDS5seMl3FOvsh3+9CoYWXf/1l5OaZzzF6nDm4cagaQ== + version "2.18.0" + resolved "https://registry.yarnpkg.com/nan/-/nan-2.18.0.tgz#26a6faae7ffbeb293a39660e88a76b82e30b7554" + integrity sha512-W7tfG7vMOGtD30sHoZSSc/JVYiyDPEyQVso/Zz+/uQd0B0L46gtC+pHha5FFMRpil6fm/AoEcRWyOVi4+E/f8w== nano-base32@^1.0.1: version "1.0.1" @@ -6057,7 +6110,7 @@ nofilter@^1.0.4: nofilter@^3.1.0: version "3.1.0" - resolved "https://registry.yarnpkg.com/nofilter/-/nofilter-3.1.0.tgz#c757ba68801d41ff930ba2ec55bab52ca184aa66" + resolved "https://registry.npmjs.org/nofilter/-/nofilter-3.1.0.tgz" integrity sha512-l2NNj07e9afPnhAhvgVrCD/oy2Ai1yfLpuo3EpiO1jFTsB4sFz6oIfAfSZyQzVpkZQ9xS8ZS5g1jCBgq4Hwo0g== nopt@3.x: @@ -7210,7 +7263,7 @@ set-value@^2.0.0, set-value@^2.0.1: setimmediate@1.0.4: version "1.0.4" resolved "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.4.tgz" - integrity sha1-IOgd5iLUoCWIzgyNqJc8vPHTE48= + integrity sha512-/TjEmXQVEzdod/FFskf3o7oOAsGhHf2j1dZqRFbDzq4F3mvvxflIIi4Hd3bLQE9y/CpwqfSQam5JakI/mi3Pog== setimmediate@^1.0.4, setimmediate@^1.0.5: version "1.0.5" @@ -7307,7 +7360,7 @@ slice-ansi@^2.1.0: slice-ansi@^4.0.0: version "4.0.0" - resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-4.0.0.tgz#500e8dd0fd55b05815086255b3195adf2a45fe6b" + resolved "https://registry.npmjs.org/slice-ansi/-/slice-ansi-4.0.0.tgz" integrity sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ== dependencies: ansi-styles "^4.0.0" @@ -7572,7 +7625,7 @@ stream-http@^2.7.2: streamsearch@^1.1.0: version "1.1.0" - resolved "https://registry.yarnpkg.com/streamsearch/-/streamsearch-1.1.0.tgz#404dd1e2247ca94af554e841a8ef0eaa238da764" + resolved "https://registry.npmjs.org/streamsearch/-/streamsearch-1.1.0.tgz" integrity sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg== strict-uri-encode@^1.0.0: @@ -7608,7 +7661,7 @@ string-width@^3.0.0, string-width@^3.1.0: string-width@^4.2.3: version "4.2.3" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" + resolved "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz" integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== dependencies: emoji-regex "^8.0.0" @@ -7668,7 +7721,7 @@ strip-ansi@^5.0.0, strip-ansi@^5.1.0, strip-ansi@^5.2.0: strip-ansi@^6.0.1: version "6.0.1" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" + resolved "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz" integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== dependencies: ansi-regex "^5.0.1" @@ -7784,7 +7837,7 @@ table@^5.2.3: table@^6.8.0: version "6.8.1" - resolved "https://registry.yarnpkg.com/table/-/table-6.8.1.tgz#ea2b71359fe03b017a5fbc296204471158080bdf" + resolved "https://registry.npmjs.org/table/-/table-6.8.1.tgz" integrity sha512-Y4X9zqrCftUhMeH2EptSSERdVKt/nEdijTOacGD/97EKjhQ/Qs8RTlEGABSJNNN8lac9kheH+af7yAkEWlgneA== dependencies: ajv "^8.0.1" @@ -7923,6 +7976,11 @@ tr46@~0.0.3: resolved "https://registry.npmjs.org/true-case-path/-/true-case-path-2.2.1.tgz" integrity sha512-0z3j8R7MCjy10kc/g+qg7Ln3alJTodw9aDuVWZa3uiWqfuBMKeAeP2ocWcxoyM3D73yz3Jt/Pu4qPr4wHSdB/Q== +tslib@2.4.0: + version "2.4.0" + resolved "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz" + integrity sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ== + tslib@^1.9.0, tslib@^1.9.3: version "1.14.1" resolved "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz" @@ -8073,7 +8131,7 @@ underscore@^1.8.3: undici@^5.14.0: version "5.22.1" - resolved "https://registry.yarnpkg.com/undici/-/undici-5.22.1.tgz#877d512effef2ac8be65e695f3586922e1a57d7b" + resolved "https://registry.npmjs.org/undici/-/undici-5.22.1.tgz" integrity sha512-Ji2IJhFXZY0x/0tVBXeQwgPlLWw13GVzpsWPQ3rV50IFMMof2I55PZZxtm4P6iNq+L5znYN9nSTAq0ZyE6lSJw== dependencies: busboy "^1.6.0" @@ -8228,7 +8286,7 @@ utils-merge@1.0.1: uuid@2.0.1: version "2.0.1" resolved "https://registry.npmjs.org/uuid/-/uuid-2.0.1.tgz" - integrity sha1-wqMN7bPlNdcsz4LjQ5QaULqFM6w= + integrity sha512-nWg9+Oa3qD2CQzHIP4qKUqwNfzKn8P0LtFhotaCTFchsV7ZfDhAybeip/HZVeMIpZi9JgY1E3nUlwaCmZT1sEg== uuid@3.3.2: version "3.3.2" @@ -9168,6 +9226,11 @@ ws@7.4.6: resolved "https://registry.npmjs.org/ws/-/ws-7.4.6.tgz" integrity sha512-YmhHDO4MzaDLB+M9ym/mDA5z0naX8j7SIlT8f8z+I0VtzsRbekxEutHSme7NPS2qE8StCYQNUnfWdXta/Yu85A== +ws@8.5.0: + version "8.5.0" + resolved "https://registry.npmjs.org/ws/-/ws-8.5.0.tgz" + integrity sha512-BWX0SWVgLPzYwF8lTzEy1egjhS4S4OEAHfsO8o65WOVsrnSRGaSiUaa9e0ggGlkMTtBlmOpEXiie9RUcBO86qg== + ws@^3.0.0: version "3.3.3" resolved "https://registry.npmjs.org/ws/-/ws-3.3.3.tgz" @@ -9222,7 +9285,7 @@ xhr@^2.0.4, xhr@^2.3.3: xmlhttprequest@1.8.0: version "1.8.0" resolved "https://registry.npmjs.org/xmlhttprequest/-/xmlhttprequest-1.8.0.tgz" - integrity sha1-Z/4HXFwk/vOfnWX197f+dRcZaPw= + integrity sha512-58Im/U0mlVBLM38NdZjHyhuMtCqa61469k2YP/AaPbvCoV9aQGUpbJBj1QRm2ytRiVQBD/fsw7L2bJGDVQswBA== xtend@^4.0.0, xtend@^4.0.1, xtend@^4.0.2, xtend@~4.0.0: version "4.0.2" @@ -9236,7 +9299,7 @@ y18n@^3.2.1: y18n@^4.0.0: version "4.0.3" - resolved "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz" + resolved "https://registry.yarnpkg.com/y18n/-/y18n-4.0.3.tgz#b5f259c82cd6e336921efd7bfd8bf560de9eeedf" integrity sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ== yaeti@^0.0.6: