I'm trying to verify the WFILFactory contract on rinkeby via truffle-plugin-verify v0.5.2:
npx truffle run verify WFILFactory --network rinkeby
DEBUG logging is turned ON
Running truffle-plugin-verify v0.5.2
Verifying WFILFactory
Reading artifact file at /home/hackfs/wfil-factory/build/contracts/WFILFactory.json
Retrieving constructor parameters from https://api-rinkeby.etherscan.io/api?apiKey=<API-KEY>&module=account&action=txlist&address=0xD27B309B0Fd0E251674a6A52765934ef961E38Df&page=1&sort=asc&offset=1
Constructor parameters retrieved: 0x000000000000000000000000a04bbe85d91c3125d577af17e4eb5d4e579100cf0000000000000000000000003bbca3216dbafdfa61b3bbaacb9c6febe4c45f2f
Sending verify request with POST arguments:
{
"apikey": "<API-KEY>",
"module": "contract",
"action": "verifysourcecode",
"contractaddress": "0xD27B309B0Fd0E251674a6A52765934ef961E38Df",
"sourceCode": "{\"language\":\"Solidity\",\"sources\":{\"/home/hackfs/wfil-factory/contracts/WFILFactory.sol\":{\"content\":\"/// SPDX-License-Identifier: AGPL-3.0-or-later\\npragma solidity 0.6.12;\\n\\n/// Copyright (C) 2020 WFIL Labs, Inc.\\n/// @title WFILFactory\\n/// @author Nazzareno Massari @naszam\\n/// @notice Wrapped Filecoin (WFIL) Factory\\n/// @dev All function calls are currently implemented without side effects through TDD approach\\n/// @dev OpenZeppelin library is used for secure contract development\\n\\nimport \\\"@openzeppelin/contracts/token/ERC20/SafeERC20.sol\\\";\\nimport \\\"@openzeppelin/contracts/access/AccessControl.sol\\\";\\nimport \\\"@openzeppelin/contracts/utils/Pausable.sol\\\";\\nimport \\\"@openzeppelin/contracts/utils/Counters.sol\\\";\\n\\ninterface WFILToken {\\n function wrap(address to, uint256 amount) external returns (bool);\\n function unwrapFrom(address account, uint256 amount) external returns (bool);\\n}\\n\\ncontract WFILFactory is AccessControl, Pausable {\\n\\n /// @dev Libraries\\n using SafeERC20 for IERC20;\\n using Counters for Counters.Counter;\\n\\n enum RequestStatus {PENDING, CANCELED, APPROVED, REJECTED}\\n\\n struct Request {\\n address requester; // sender of the request.\\n address custodian; // custodian associated to sender\\n uint256 amount; // amount of fil to mint/burn.\\n string deposit; // custodian's fil address in mint, merchant's fil address in burn.\\n string txId; // filcoin txId for sending/redeeming fil in the mint/burn process.\\n uint256 nonce; // serial number allocated for each request.\\n uint256 timestamp; // time of the request creation.\\n RequestStatus status; // status of the request.\\n }\\n\\n WFILToken internal immutable wfil;\\n\\n /// @dev Counters\\n Counters.Counter private _mintsIdTracker;\\n Counters.Counter private _burnsIdTracker;\\n\\n /// @dev Storage\\n mapping(address => string) public custodianDeposit;\\n mapping(address => string) public merchantDeposit;\\n mapping(bytes32 => uint256) public mintNonce;\\n mapping(bytes32 => uint256) public burnNonce;\\n mapping(uint256 => Request) public mints;\\n mapping(uint256 => Request) public burns;\\n\\n /// @dev Roles\\n bytes32 public constant CUSTODIAN_ROLE = keccak256(\\\"CUSTODIAN_ROLE\\\");\\n bytes32 public constant MERCHANT_ROLE = keccak256(\\\"MERCHANT_ROLE\\\");\\n bytes32 public constant PAUSER_ROLE = keccak256(\\\"PAUSER_ROLE\\\");\\n\\n /// @dev Events\\n event CustodianDepositSet(address indexed merchant, address indexed custodian, string deposit);\\n event MerchantDepositSet(address indexed merchant, string deposit);\\n event MintRequestAdd(\\n uint256 indexed nonce,\\n address indexed requester,\\n address indexed custodian,\\n uint256 amount,\\n string deposit,\\n string txId,\\n uint256 timestamp,\\n bytes32 requestHash\\n );\\n event MintRequestCancel(uint256 indexed nonce, address indexed requester, bytes32 requestHash);\\n event MintConfirmed(\\n uint256 indexed nonce,\\n address indexed requester,\\n address indexed custodian,\\n uint256 amount,\\n string deposit,\\n string txId,\\n uint256 timestamp,\\n bytes32 requestHash\\n );\\n event MintRejected(\\n uint256 indexed nonce,\\n address indexed requester,\\n address indexed custodian,\\n uint256 amount,\\n string deposit,\\n string txId,\\n uint256 timestamp,\\n bytes32 requestHash\\n );\\n event Burned(\\n uint256 indexed nonce,\\n address indexed requester,\\n address indexed custodian,\\n uint256 amount,\\n string deposit,\\n uint256 timestamp,\\n bytes32 requestHash\\n );\\n event BurnConfirmed(\\n uint256 indexed nonce,\\n address indexed requester,\\n address indexed custodian,\\n uint256 amount,\\n string deposit,\\n string txId,\\n uint256 timestamp,\\n bytes32 inputRequestHash\\n );\\n event BurnRejected(\\n uint256 indexed nonce,\\n address indexed requester,\\n address indexed custodian,\\n uint256 amount,\\n string deposit,\\n string txId,\\n uint256 timestamp,\\n bytes32 inputRequestHash\\n );\\n event TokenClaimed(IERC20 indexed token, address indexed recipient, uint256 amount);\\n\\n constructor(address wfil_, address dao_)\\n public\\n {\\n require(wfil_ != address(0), \\\"WFILFactory: wfil token set to zero address\\\");\\n require(dao_ != address(0), \\\"WFILFactory: dao set to zero address\\\");\\n\\n _setupRole(DEFAULT_ADMIN_ROLE, dao_);\\n _setupRole(PAUSER_ROLE, dao_);\\n\\n wfil = WFILToken(wfil_);\\n\\n }\\n\\n /// @notice Fallback function\\n /// @dev Added not payable to revert transactions not matching any other function which send value\\n fallback() external {\\n revert(\\\"WFILFactory: function not matching any other\\\");\\n }\\n\\n /// @notice Set Custodian Deposit Address\\n /// @dev Access restricted only for Custodian\\n /// @param merchant Merchant Address\\n /// @param deposit Custodian deposit address\\n function setCustodianDeposit(address merchant, string calldata deposit)\\n external\\n whenNotPaused\\n {\\n require(hasRole(CUSTODIAN_ROLE, msg.sender), \\\"WFILFactory: caller is not a custodian\\\");\\n require(merchant != address(0), \\\"WFILFactory: invalid merchant address\\\");\\n require(hasRole(MERCHANT_ROLE, merchant), \\\"WFILFactory: merchant address does not have merchant role\\\");\\n require(!_isEmpty(deposit), \\\"WFILFactory: invalid asset deposit address\\\");\\n require(!_compareStrings(deposit, custodianDeposit[merchant]), \\\"WFILFactory: custodian deposit address already set\\\");\\n\\n custodianDeposit[merchant] = deposit;\\n emit CustodianDepositSet(merchant, msg.sender, deposit);\\n }\\n\\n /// @notice Set Merchant Deposit Address\\n /// @dev Access restricted only for Merchant\\n /// @param deposit Merchant deposit address\\n function setMerchantDeposit(string calldata deposit)\\n external\\n whenNotPaused\\n {\\n require(hasRole(MERCHANT_ROLE, msg.sender), \\\"WFILFactory: caller is not a merchant\\\");\\n require(!_isEmpty(deposit), \\\"WFILFactory: invalid asset deposit address\\\");\\n require(!_compareStrings(deposit, merchantDeposit[msg.sender]), \\\"WFILFactory: merchant deposit address already set\\\");\\n\\n merchantDeposit[msg.sender] = deposit;\\n emit MerchantDepositSet(msg.sender, deposit);\\n }\\n\\n /// @notice Add Merchant WFIL Mint Request\\n /// @dev Access restricted only for Merchant\\n /// @param amount Ammount of WFIL to mint\\n /// @param txId Transaction Id of the FIL transaction\\n /// @param custodian Custodian address\\n function addMintRequest(uint256 amount, string calldata txId, address custodian)\\n external\\n whenNotPaused\\n {\\n require(hasRole(MERCHANT_ROLE, msg.sender), \\\"WFILFactory: caller is not a merchant\\\");\\n require(amount > 0, \\\"WFILFactory: amount is zero\\\");\\n require(!_isEmpty(txId), \\\"WFILFactory: invalid filecoin txId\\\");\\n require(hasRole(CUSTODIAN_ROLE, custodian), \\\"WFILFactory: custodian has not the custodian role\\\");\\n\\n string memory deposit = custodianDeposit[msg.sender];\\n require(!_isEmpty(deposit), \\\"WFILFactory: custodian filecoin deposit address was not set\\\");\\n\\n uint256 nonce = _mintsIdTracker.current();\\n uint256 timestamp = _timestamp();\\n\\n mints[nonce].requester = msg.sender;\\n mints[nonce].custodian = custodian;\\n mints[nonce].amount = amount;\\n mints[nonce].deposit = deposit;\\n mints[nonce].txId = txId;\\n mints[nonce].nonce = nonce;\\n mints[nonce].timestamp = timestamp;\\n mints[nonce].status = RequestStatus.PENDING;\\n\\n bytes32 requestHash = _hash(mints[nonce]);\\n mintNonce[requestHash] = nonce;\\n _mintsIdTracker.increment();\\n\\n emit MintRequestAdd(nonce, msg.sender, custodian, amount, deposit, txId, timestamp, requestHash);\\n }\\n\\n /// @notice Cancel Merchant WFIL Mint Request\\n /// @dev Access restricted only for Merchant\\n /// @param requestHash Hash of the merchant mint request metadata\\n function cancelMintRequest(bytes32 requestHash) external whenNotPaused {\\n require(hasRole(MERCHANT_ROLE, msg.sender), \\\"WFILFactory: caller is not a merchant\\\");\\n\\n (uint256 nonce, Request memory request) = _getPendingMintRequest(requestHash);\\n\\n require(msg.sender == request.requester, \\\"WFILFactory: cancel caller is different than pending request initiator\\\");\\n mints[nonce].status = RequestStatus.CANCELED;\\n\\n emit MintRequestCancel(nonce, msg.sender, requestHash);\\n }\\n\\n /// @notice Confirm Merchant WFIL Mint Request\\n /// @dev Access restricted only for Custodian\\n /// @param requestHash Hash of the merchant mint request metadata\\n function confirmMintRequest(bytes32 requestHash) external whenNotPaused {\\n require(hasRole(CUSTODIAN_ROLE, msg.sender), \\\"WFILFactory: caller is not a custodian\\\");\\n\\n (uint256 nonce, Request memory request) = _getPendingMintRequest(requestHash);\\n\\n require(msg.sender == request.custodian, \\\"WFILFactory: confirm caller is different than pending request custodian\\\");\\n\\n mints[nonce].status = RequestStatus.APPROVED;\\n\\n emit MintConfirmed(\\n request.nonce,\\n request.requester,\\n request.custodian,\\n request.amount,\\n request.deposit,\\n request.txId,\\n request.timestamp,\\n requestHash\\n );\\n\\n require(wfil.wrap(request.requester, request.amount), \\\"WFILFactory: mint failed\\\");\\n }\\n\\n /// @notice Reject Merchant WFIL Mint Request\\n /// @dev Access restricted only for Custodian\\n /// @param requestHash Hash of the merchant mint request metadata\\n function rejectMintRequest(bytes32 requestHash) external whenNotPaused {\\n require(hasRole(CUSTODIAN_ROLE, msg.sender), \\\"WFILFactory: caller is not a custodian\\\");\\n\\n (uint256 nonce, Request memory request) = _getPendingMintRequest(requestHash);\\n\\n require(msg.sender == request.custodian, \\\"WFILFactory: reject caller is different than pending request custodian\\\");\\n\\n mints[nonce].status = RequestStatus.REJECTED;\\n\\n emit MintRejected(\\n request.nonce,\\n request.requester,\\n request.custodian,\\n request.amount,\\n request.deposit,\\n request.txId,\\n request.timestamp,\\n requestHash\\n );\\n }\\n\\n /// @notice Add Merchant WFIL Burn Request\\n /// @dev Access restricted only for Merchant\\n /// @dev Set txId as empty since it is not known yet.\\n /// @param amount Amount of WFIL to burn\\n /// @param custodian Custodian Address\\n function addBurnRequest(uint256 amount, address custodian) external whenNotPaused {\\n require(hasRole(MERCHANT_ROLE, msg.sender), \\\"WFILFactory: caller is not a merchant\\\");\\n require(amount > 0, \\\"WFILFactory: amount is zero\\\");\\n require(hasRole(CUSTODIAN_ROLE, custodian), \\\"WFILFactory: custodian has not the custodian role\\\");\\n\\n string memory deposit = merchantDeposit[msg.sender];\\n require(!_isEmpty(deposit), \\\"WFILFactory: merchant filecoin deposit address was not set\\\");\\n\\n uint256 nonce = _burnsIdTracker.current();\\n uint256 timestamp = _timestamp();\\n\\n string memory txId = \\\"\\\";\\n\\n burns[nonce].requester = msg.sender;\\n burns[nonce].custodian = custodian;\\n burns[nonce].amount = amount;\\n burns[nonce].deposit = deposit;\\n burns[nonce].txId = txId;\\n burns[nonce].nonce = nonce;\\n burns[nonce].timestamp = timestamp;\\n burns[nonce].status = RequestStatus.PENDING;\\n\\n bytes32 requestHash = _hash(burns[nonce]);\\n burnNonce[requestHash] = nonce;\\n _burnsIdTracker.increment();\\n\\n emit Burned(nonce, msg.sender, custodian, amount, deposit, timestamp, requestHash);\\n\\n require(wfil.unwrapFrom(msg.sender, amount), \\\"WFILFactory: burn failed\\\");\\n }\\n\\n /// @notice Confirm Merchant Burn Request\\n /// @dev Access restricted only for Custodian\\n /// @param requestHash Hash of the merchant burn request metadata\\n /// @param txId Transaction Id of the FIL transaction\\n function confirmBurnRequest(bytes32 requestHash, string calldata txId) external whenNotPaused {\\n require(hasRole(CUSTODIAN_ROLE, msg.sender), \\\"WFILFactory: caller is not a custodian\\\");\\n require(!_isEmpty(txId), \\\"WFILFactory: invalid filecoin txId\\\");\\n\\n (uint256 nonce, Request memory request) = _getPendingBurnRequest(requestHash);\\n\\n require(msg.sender == request.custodian, \\\"WFILFactory: confirm caller is different than pending request custodian\\\");\\n\\n burns[nonce].txId = txId;\\n burns[nonce].status = RequestStatus.APPROVED;\\n burnNonce[_hash(burns[nonce])] = nonce;\\n\\n emit BurnConfirmed(\\n request.nonce,\\n request.requester,\\n request.custodian,\\n request.amount,\\n request.deposit,\\n txId,\\n request.timestamp,\\n requestHash\\n );\\n }\\n\\n /// @notice Reject Merchant WFIL Burn Request\\n /// @dev Access restricted only for Custodian\\n /// @param requestHash Hash of the merchant burn request metadata\\n function rejectBurnRequest(bytes32 requestHash) external whenNotPaused {\\n require(hasRole(CUSTODIAN_ROLE, msg.sender), \\\"WFILFactory: caller is not a custodian\\\");\\n\\n (uint256 nonce, Request memory request) = _getPendingBurnRequest(requestHash);\\n\\n require(msg.sender == request.custodian, \\\"WFILFactory: reject caller is different than pending request custodian\\\");\\n\\n burns[nonce].status = RequestStatus.REJECTED;\\n\\n emit BurnRejected(\\n request.nonce,\\n request.requester,\\n request.custodian,\\n request.amount,\\n request.deposit,\\n request.txId,\\n request.timestamp,\\n requestHash\\n );\\n\\n require(wfil.wrap(request.requester, request.amount), \\\"WFILFactory: mint failed\\\");\\n }\\n\\n /// @notice Mint Request Getter\\n /// @param nonce Mint Request Nonce\\n /// @return requestNonce requester amount deposit txId timestamp status requestHash\\n function getMintRequest(uint256 nonce)\\n external\\n view\\n returns (\\n uint256 requestNonce,\\n address requester,\\n address custodian,\\n uint256 amount,\\n string memory deposit,\\n string memory txId,\\n uint256 timestamp,\\n string memory status,\\n bytes32 requestHash\\n )\\n {\\n require(_mintsIdTracker.current() > nonce, \\\"WFILFactory: invalid mint request nonce\\\");\\n Request memory request = mints[nonce];\\n string memory statusString = _getStatusString(request.status);\\n\\n requestNonce = request.nonce;\\n requester = request.requester;\\n custodian = request.custodian;\\n amount = request.amount;\\n deposit = request.deposit;\\n txId = request.txId;\\n timestamp = request.timestamp;\\n status = statusString;\\n requestHash = _hash(request);\\n }\\n\\n /// @notice Mint Request Count Getter\\n /// @return count Current number of mint requests\\n function getMintRequestsCount() external view returns (uint256 count) {\\n return _mintsIdTracker.current();\\n }\\n\\n /// @notice Burn Request Getter\\n /// @param nonce Burn Request Nonce\\n /// @return requestNonce requester amount deposit txId timestamp status requestHash\\n function getBurnRequest(uint256 nonce)\\n external\\n view\\n returns (\\n uint256 requestNonce,\\n address requester,\\n address custodian,\\n uint256 amount,\\n string memory deposit,\\n string memory txId,\\n uint256 timestamp,\\n string memory status,\\n bytes32 requestHash\\n )\\n {\\n require(_burnsIdTracker.current() > nonce, \\\"WFILFactory: invalid burn request nonce\\\");\\n Request memory request = burns[nonce];\\n string memory statusString = _getStatusString(request.status);\\n\\n requestNonce = request.nonce;\\n requester = request.requester;\\n custodian = request.custodian;\\n amount = request.amount;\\n deposit = request.deposit;\\n txId = request.txId;\\n timestamp = request.timestamp;\\n status = statusString;\\n requestHash = _hash(request);\\n }\\n\\n /// @notice Burn Request Count Getter\\n /// @return count Current number of burn requests\\n function getBurnRequestsCount() external view returns (uint256 count) {\\n return _burnsIdTracker.current();\\n }\\n\\n\\n /// @notice Reclaim all ERC20 compatible tokens\\n /// @dev Access restricted only for Default Admin\\n /// @dev `recipient` cannot be the zero address\\n /// @param token IERC20 address of the token contract\\n /// @param recipient Recipient address\\n function reclaimToken(IERC20 token, address recipient) external {\\n require(hasRole(DEFAULT_ADMIN_ROLE, msg.sender), \\\"WFILFactory: caller is not the default admin\\\");\\n require(recipient != address(0), \\\"WFILFactory: recipient is the zero address\\\");\\n uint256 balance = token.balanceOf(address(this));\\n token.safeTransfer(recipient, balance);\\n emit TokenClaimed(token, recipient, balance);\\n }\\n\\n\\n /// @notice Add a new Custodian\\n /// @dev Access restricted only for Default Admin\\n /// @param account Address of the new Custodian\\n /// @return True if account is added as Custodian\\n function addCustodian(address account) external returns (bool) {\\n require(hasRole(DEFAULT_ADMIN_ROLE, msg.sender), \\\"WFILFactory: caller is not the default admin\\\");\\n require(account != address(0), \\\"WFILFactory: account is the zero address\\\");\\n require(!hasRole(CUSTODIAN_ROLE, account), \\\"WFILFactory: account is already a custodian\\\");\\n grantRole(CUSTODIAN_ROLE, account);\\n return true;\\n }\\n\\n /// @notice Remove a Custodian\\n /// @dev Access restricted only for Default Admin\\n /// @param account Address of the Custodian\\n /// @return True if account is removed as Custodian\\n function removeCustodian(address account) external returns (bool) {\\n require(hasRole(DEFAULT_ADMIN_ROLE, msg.sender), \\\"WFILFactory: caller is not the default admin\\\");\\n require(hasRole(CUSTODIAN_ROLE, account), \\\"WFILFactory: account is not a custodian\\\");\\n revokeRole(CUSTODIAN_ROLE, account);\\n return true;\\n }\\n\\n /// @notice Add a new Merchant\\n /// @dev Access restricted only for Default Admin\\n /// @param account Address of the new Merchant\\n /// @return True if account is added as Merchant\\n function addMerchant(address account) external returns (bool) {\\n require(hasRole(DEFAULT_ADMIN_ROLE, msg.sender), \\\"WFILFactory: caller is not the default admin\\\");\\n require(account != address(0), \\\"WFILFactory: account is the zero address\\\");\\n require(!hasRole(MERCHANT_ROLE, account), \\\"WFILFactory: account is already a merchant\\\");\\n grantRole(MERCHANT_ROLE, account);\\n return true;\\n }\\n\\n /// @notice Remove a Merchant\\n /// @dev Access restricted only for Default Admin\\n /// @param account Address of the Merchant\\n /// @return True if account is removed as Merchant\\n function removeMerchant(address account) external returns (bool) {\\n require(hasRole(DEFAULT_ADMIN_ROLE, msg.sender), \\\"WFILFactory: caller is not the default admin\\\");\\n require(hasRole(MERCHANT_ROLE, account), \\\"WFILFactory: account is not a merchant\\\");\\n revokeRole(MERCHANT_ROLE, account);\\n return true;\\n }\\n\\n /// @notice Pause all the functions\\n /// @dev the caller must have the 'PAUSER_ROLE'\\n function pause() external {\\n require(hasRole(PAUSER_ROLE, msg.sender), \\\"WFILFactory: must have pauser role to pause\\\");\\n _pause();\\n }\\n\\n /// @notice Unpause all the functions\\n /// @dev the caller must have the 'PAUSER_ROLE'\\n function unpause() external {\\n require(hasRole(PAUSER_ROLE, msg.sender), \\\"WFILFactory: must have pauser role to unpause\\\");\\n _unpause();\\n }\\n\\n /// @notice Compare Strings\\n /// @dev compare the hash of two strings\\n /// @param a String A\\n /// @param b String B\\n /// @return True if the strings matches\\n function _compareStrings(string memory a, string memory b) internal pure returns (bool) {\\n return keccak256(abi.encodePacked(a)) == keccak256(abi.encodePacked(b));\\n }\\n\\n /// @notice Check for Empty String\\n /// @dev compare a string with \\\"\\\"\\n /// @param a String A\\n /// @return True if the string is empty\\n function _isEmpty(string memory a) internal pure returns (bool) {\\n return bytes(a).length == 0;\\n }\\n\\n /// @notice Return Current Block Timestamp\\n /// @dev block.timestamp is only used for data maintaining purpose, it is not relied on for critical logic\\n function _timestamp() internal view returns (uint256) {\\n return block.timestamp;\\n }\\n\\n /// @notice Hash the Request Metadata\\n /// @param request Request\\n /// @return hash Hash of the request metadata\\n function _hash(Request memory request) internal pure returns (bytes32 hash) {\\n return keccak256(abi.encode(\\n request.requester,\\n request.custodian,\\n request.amount,\\n request.deposit,\\n request.txId,\\n request.nonce,\\n request.timestamp\\n ));\\n }\\n\\n /// @notice Get Pending Mint Requests\\n /// @param requestHash Hash of the merchant mint request metadata\\n /// @return nonce request\\n function _getPendingMintRequest(bytes32 requestHash) internal view returns (uint256 nonce, Request memory request) {\\n require(requestHash != 0, \\\"WFILFactory: request hash is 0\\\");\\n nonce = mintNonce[requestHash];\\n request = mints[nonce];\\n _check(request, requestHash);\\n }\\n\\n /// @notice Get Pending Burn Requests\\n /// @param requestHash Hash of the merchant burn request metadata\\n /// @return nonce request\\n function _getPendingBurnRequest(bytes32 requestHash) internal view returns (uint256 nonce, Request memory request) {\\n require(requestHash != 0, \\\"WFILFactory: request hash is 0\\\");\\n nonce = burnNonce[requestHash];\\n request = burns[nonce];\\n _check(request, requestHash);\\n }\\n\\n /// @notice Validate Pending Mint/Burn Requests\\n /// @dev Revert on not valid requests\\n /// @dev Hook used in _getPendingMintRequest and _getPendingBurnRequest\\n /// @param request Request\\n /// @param requestHash Hash of the merchant mint/burn request metadata\\n function _check(Request memory request, bytes32 requestHash) internal pure {\\n require(request.status == RequestStatus.PENDING, \\\"WFILFactory: request is not pending\\\");\\n require(requestHash == _hash(request), \\\"WFILFactory: given request hash does not match a pending request\\\");\\n }\\n\\n /// @notice Return Request Status String\\n /// @dev decode enum into string\\n /// @param status Request Status\\n /// @return request status string\\n function _getStatusString(RequestStatus status) internal pure returns (string memory) {\\n if (status == RequestStatus.PENDING) return \\\"pending\\\";\\n else if (status == RequestStatus.CANCELED) return \\\"canceled\\\";\\n else if (status == RequestStatus.APPROVED) return \\\"approved\\\";\\n else if (status == RequestStatus.REJECTED) return \\\"rejected\\\";\\n else revert(\\\"WFILFactory: unknown status\\\");\\n }\\n}\\n\"},\"@openzeppelin/contracts/GSN/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/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 \\\"../GSN/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/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, 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\\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 return sub(a, b, \\\"SafeMath: subtraction overflow\\\");\\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 * 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 uint256 c = a - b;\\n\\n return c;\\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 // 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) {\\n return 0;\\n }\\n\\n uint256 c = a * b;\\n require(c / a == b, \\\"SafeMath: multiplication overflow\\\");\\n\\n return c;\\n }\\n\\n /**\\n * @dev Returns the integer division of two unsigned integers. Reverts 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 return div(a, b, \\\"SafeMath: division by zero\\\");\\n }\\n\\n /**\\n * @dev Returns the integer division of two unsigned integers. Reverts with custom message 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, string memory errorMessage) internal pure returns (uint256) {\\n require(b > 0, errorMessage);\\n uint256 c = a / b;\\n // assert(a == b * c + a % b); // There is no case in which this doesn't hold\\n\\n return c;\\n }\\n\\n /**\\n * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),\\n * Reverts 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 return mod(a, b, \\\"SafeMath: modulo by zero\\\");\\n }\\n\\n /**\\n * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),\\n * Reverts with custom message 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, string memory errorMessage) internal pure returns (uint256) {\\n require(b != 0, errorMessage);\\n return a % b;\\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/token/ERC20/SafeERC20.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity >=0.6.0 <0.8.0;\\n\\nimport \\\"./IERC20.sol\\\";\\nimport \\\"../../math/SafeMath.sol\\\";\\nimport \\\"../../utils/Address.sol\\\";\\n\\n/**\\n * @title SafeERC20\\n * @dev Wrappers around ERC20 operations that throw on failure (when the token\\n * contract returns false). Tokens that return no value (and instead revert or\\n * throw on failure) are also supported, non-reverting calls are assumed to be\\n * successful.\\n * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,\\n * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.\\n */\\nlibrary SafeERC20 {\\n using SafeMath for uint256;\\n using Address for address;\\n\\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\\n _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));\\n }\\n\\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\\n _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));\\n }\\n\\n /**\\n * @dev Deprecated. This function has issues similar to the ones found in\\n * {IERC20-approve}, and its usage is discouraged.\\n *\\n * Whenever possible, use {safeIncreaseAllowance} and\\n * {safeDecreaseAllowance} instead.\\n */\\n function safeApprove(IERC20 token, address spender, uint256 value) internal {\\n // safeApprove should only be called when setting an initial allowance,\\n // or when resetting it to zero. To increase and decrease it, use\\n // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'\\n // solhint-disable-next-line max-line-length\\n require((value == 0) || (token.allowance(address(this), spender) == 0),\\n \\\"SafeERC20: approve from non-zero to non-zero allowance\\\"\\n );\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));\\n }\\n\\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\\n uint256 newAllowance = token.allowance(address(this), spender).add(value);\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));\\n }\\n\\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {\\n uint256 newAllowance = token.allowance(address(this), spender).sub(value, \\\"SafeERC20: decreased allowance below zero\\\");\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));\\n }\\n\\n /**\\n * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement\\n * on the return value: the return value is optional (but if data is returned, it must not be false).\\n * @param token The token targeted by the call.\\n * @param data The call data (encoded using abi.encode or one of its variants).\\n */\\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\\n // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since\\n // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that\\n // the target address contains contract code and also asserts for success in the low-level call.\\n\\n bytes memory returndata = address(token).functionCall(data, \\\"SafeERC20: low-level call failed\\\");\\n if (returndata.length > 0) { // Return data is optional\\n // solhint-disable-next-line max-line-length\\n require(abi.decode(returndata, (bool)), \\\"SafeERC20: ERC20 operation did not succeed\\\");\\n }\\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 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/Counters.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity >=0.6.0 <0.8.0;\\n\\nimport \\\"../math/SafeMath.sol\\\";\\n\\n/**\\n * @title Counters\\n * @author Matt Condon (@shrugs)\\n * @dev Provides counters that can only be incremented or decremented by one. This can be used e.g. to track the number\\n * of elements in a mapping, issuing ERC721 ids, or counting request ids.\\n *\\n * Include with `using Counters for Counters.Counter;`\\n * Since it is not possible to overflow a 256 bit integer with increments of one, `increment` can skip the {SafeMath}\\n * overflow check, thereby saving gas. This does assume however correct usage, in that the underlying `_value` is never\\n * directly accessed.\\n */\\nlibrary Counters {\\n using SafeMath for uint256;\\n\\n struct Counter {\\n // This variable should never be directly accessed by users of the library: interactions must be restricted to\\n // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add\\n // this feature: see https://github.com/ethereum/solidity/issues/4637\\n uint256 _value; // default: 0\\n }\\n\\n function current(Counter storage counter) internal view returns (uint256) {\\n return counter._value;\\n }\\n\\n function increment(Counter storage counter) internal {\\n // The {SafeMath} overflow check can be skipped here, see the comment at the top\\n counter._value += 1;\\n }\\n\\n function decrement(Counter storage counter) internal {\\n counter._value = counter._value.sub(1);\\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(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(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(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(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/Pausable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity >=0.6.0 <0.8.0;\\n\\nimport \\\"../GSN/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 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\"}},\"settings\":{\"remappings\":[],\"optimizer\":{\"enabled\":true,\"runs\":200},\"evmVersion\":\"byzantium\",\"libraries\":{\"\":{}}}}",
"codeformat": "solidity-standard-json-input",
"contractname": "/home/hackfs/wfil-factory/contracts/WFILFactory.sol:WFILFactory",
"compilerversion": "v0.6.12+commit.27d51765",
"constructorArguements": "000000000000000000000000a04bbe85d91c3125d577af17e4eb5d4e579100cf0000000000000000000000003bbca3216dbafdfa61b3bbaacb9c6febe4c45f2f"
}
Checking status of verification request nj6vgmv93yerhwqslvqdpc9jqp8h8e69dniarnw5a9jxltiki4
Fail - Unable to verify
Failed to verify 1 contract(s): WFILFactory