{"file_path":"contracts/v2/FiatTokenV2_2.sol","creation_status":"success","source_code":"/**\n * SPDX-License-Identifier: Apache-2.0\n *\n * Copyright (c) 2023 Xfers Pte. Ltd.\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\npragma solidity 0.6.12;\n\nimport { FiatTokenV2_1 } from \"./FiatTokenV2_1.sol\";\n\n// solhint-disable func-name-mixedcase\n\n/**\n * @title FiatToken V2.2\n * @notice ERC20 Token backed by fiat reserves, version 2.2\n */\ncontract FiatTokenV2_2 is FiatTokenV2_1 {\n    event TotalSupplyChanged(uint256 newTotalSupply);\n\n    /**\n     * @notice Initialize v2.2\n     */\n    function initializeV2_2() external {\n        // solhint-disable-next-line reason-string\n        require(_initializedVersion == 2);\n        _initializedVersion = 3;\n        emit VersionInitialized(_initializedVersion);\n    }\n\n    /**\n     * @notice Batch adds accounts to blacklist.\n     * @param accounts The addresses to blacklist.\n     */\n    function blacklistAccounts(address[] calldata accounts)\n        external\n        onlyBlacklister\n    {\n        for (uint256 i = 0; i < accounts.length; i++) {\n            _blacklist(accounts[i]);\n            emit Blacklisted(accounts[i]);\n        }\n    }\n\n    /**\n     * @notice Batch remove accounts from blacklist.\n     * @param accounts The addresses to be removed from blacklist.\n     */\n    function unblacklistAccounts(address[] calldata accounts)\n        external\n        onlyBlacklister\n    {\n        for (uint256 i = 0; i < accounts.length; i++) {\n            _unBlacklist(accounts[i]);\n            emit UnBlacklisted(accounts[i]);\n        }\n    }\n\n    /**\n     * @dev Function to allow the blacklister to burn entire balance of tokens from a blacklisted address\n     * Validates that contract is not paused\n     * caller is the blacklister\n     * address to burn tokens from is a blacklisted address\n     * @param _from address the address to burn tokens from\n     */\n    function lawEnforcementWipingBurn(address _from)\n        public\n        override\n        whenNotPaused\n        onlyBlacklister\n    {\n        require(\n            _isBlacklisted(_from),\n            \"Can't wipe balances of a non blacklisted address\"\n        );\n        uint256 balance = _balanceOf(_from);\n        totalSupply_ = totalSupply_.sub(balance);\n\n        uint256 currentState = balanceAndBlacklistStates[_from];\n        uint256 updatedState = (currentState & (1 << 255)); // only keep the blacklist state bit\n        balanceAndBlacklistStates[_from] = updatedState;\n        emit Burn(_from, balance);\n        emit Transfer(_from, address(0), balance);\n        emit TotalSupplyChanged(totalSupply_);\n    }\n\n    /**\n     * @dev Function to allow the blacklister to batch burn entire balance of tokens from blacklisted addresses\n     * @param accounts the address to burn tokens from\n     */\n    function batchLawEnforcementWipingBurn(address[] calldata accounts)\n        external\n        onlyBlacklister\n    {\n        for (uint256 i = 0; i < accounts.length; i++) {\n            lawEnforcementWipingBurn(accounts[i]);\n        }\n    }\n}\n","deployed_bytecode":"0x608060405234801561001057600080fd5b506004361061038e5760003560e01c80638a6db9c3116101de578063b7b728991161010f578063dc1454e8116100ad578063ef55bec61161007c578063ef55bec61461108c578063f2fde38b146110eb578063f9f92be414611111578063fe575a87146111375761038e565b8063dc1454e814610f65578063dd62ed3e14610fd3578063e3ee160e14611001578063e94a0102146110605761038e565b8063c0ee0b8a116100e9578063c0ee0b8a14610d7e578063cf09299514610e37578063d505accf14610f0c578063d916948714610f5d5761038e565b8063b7b7289914610c91578063bd10243014610d4a578063be76ebe514610d525761038e565b8063a35b4e7f1161017c578063aa20e1e411610156578063aa20e1e414610be9578063aa271e1a14610c0f578063ad38bf2214610c35578063b2118a8d14610c5b5761038e565b8063a35b4e7f14610b23578063a457c2d714610b91578063a9059cbb14610bbd5761038e565b80639fd0506d116101b85780639fd0506d14610a1e5780639fd5a6cf14610a26578063a0cc6a6814610aef578063a2ded11514610af75761038e565b80638a6db9c3146109e85780638da5cb5b14610a0e57806395d89b4114610a165761038e565b806340c10f19116102c35780635cd8a76b116102615780637f2eecc3116102305780637f2eecc3146108dd57806380e56f42146108e55780638456cb591461090b57806388b7ab63146109135761038e565b80635cd8a76b1461081b5780636d9311aa1461082357806370a08231146108915780637ecebe00146108b75761038e565b806351276d201161029d57806351276d20146107a4578063554bab3c146107ac5780635a049a70146107d25780635c975abb146108135761038e565b806340c10f19146106ed57806342966c681461071957806345a0b891146107365761038e565b80632ab600451161033057806335d99f351161030a57806335d99f351461068d57806338a63183146106b157806339509351146106b95780633f4ba83a146106e55761038e565b80632ab600451461064157806330adf81f14610667578063313ce5671461066f5761038e565b806317ffc3201161036c57806317ffc320146105a557806318160ddd146105cb5780631a895266146105e557806323b872dd1461060b5761038e565b806306fdde0314610393578063095ea7b314610410578063147936ba14610450575b600080fd5b61039b61115d565b6040805160208082528351818301528351919283929083019185019080838360005b838110156103d55781810151838201526020016103bd565b50505050905090810190601f1680156104025780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61043c6004803603604081101561042657600080fd5b506001600160a01b0381351690602001356111eb565b604080519115158252519081900360200190f35b6105a3600480360360e081101561046657600080fd5b810190602081018135600160201b81111561048057600080fd5b82018360208201111561049257600080fd5b803590602001918460018302840111600160201b831117156104b357600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b81111561050557600080fd5b82018360208201111561051757600080fd5b803590602001918460018302840111600160201b8311171561053857600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295505050813560ff1692505060208101356001600160a01b039081169160408101358216916060820135811691608001351661124f565b005b6105a3600480360360208110156105bb57600080fd5b50356001600160a01b03166114a1565b6105d361153c565b60408051918252519081900360200190f35b6105a3600480360360208110156105fb57600080fd5b50356001600160a01b0316611542565b61043c6004803603606081101561062157600080fd5b506001600160a01b038135811691602081013590911690604001356115cb565b6105a36004803603602081101561065757600080fd5b50356001600160a01b03166117d0565b6105d36118c3565b6106776118e7565b6040805160ff9092168252519081900360200190f35b6106956118f0565b604080516001600160a01b039092168252519081900360200190f35b610695611904565b61043c600480360360408110156106cf57600080fd5b506001600160a01b038135169060200135611913565b6105a361196e565b61043c6004803603604081101561070357600080fd5b506001600160a01b0381351690602001356119f3565b6105a36004803603602081101561072f57600080fd5b5035611d3c565b6105a36004803603602081101561074c57600080fd5b810190602081018135600160201b81111561076657600080fd5b82018360208201111561077857600080fd5b803590602001918460208302840111600160201b8311171561079957600080fd5b509092509050611f47565b6105a361201d565b6105a3600480360360208110156107c257600080fd5b50356001600160a01b0316612070565b6105a3600480360360a08110156107e857600080fd5b506001600160a01b038135169060208101359060ff60408201351690606081013590608001356121e2565b61043c612243565b6105a3612253565b6105a36004803603602081101561083957600080fd5b810190602081018135600160201b81111561085357600080fd5b82018360208201111561086557600080fd5b803590602001918460208302840111600160201b8311171561088657600080fd5b5090925090506122b9565b6105d3600480360360208110156108a757600080fd5b50356001600160a01b031661238a565b6105d3600480360360208110156108cd57600080fd5b50356001600160a01b031661239b565b6105d36123b6565b6105a3600480360360208110156108fb57600080fd5b50356001600160a01b03166123da565b6105a361259a565b6105a3600480360360e081101561092957600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359160808201359160a08101359181019060e0810160c0820135600160201b81111561097457600080fd5b82018360208201111561098657600080fd5b803590602001918460018302840111600160201b831117156109a757600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550612625945050505050565b6105d3600480360360208110156109fe57600080fd5b50356001600160a01b0316612718565b610695612733565b61039b612742565b61069561279d565b6105a3600480360360a0811015610a3c57600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a081016080820135600160201b811115610a7b57600080fd5b820183602082011115610a8d57600080fd5b803590602001918460018302840111600160201b83111715610aae57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506127ac945050505050565b6105d3612806565b6105a360048036036040811015610b0d57600080fd5b506001600160a01b03813516906020013561282a565b6105a360048036036020811015610b3957600080fd5b810190602081018135600160201b811115610b5357600080fd5b820183602082011115610b6557600080fd5b803590602001918460208302840111600160201b83111715610b8657600080fd5b509092509050612a01565b61043c60048036036040811015610ba757600080fd5b506001600160a01b038135169060200135612a81565b61043c60048036036040811015610bd357600080fd5b506001600160a01b038135169060200135612adc565b6105a360048036036020811015610bff57600080fd5b50356001600160a01b0316612bce565b61043c60048036036020811015610c2557600080fd5b50356001600160a01b0316612d4c565b6105a360048036036020811015610c4b57600080fd5b50356001600160a01b0316612d6a565b6105a360048036036060811015610c7157600080fd5b506001600160a01b03813581169160208101359091169060400135612e63565b6105a360048036036060811015610ca757600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b811115610cd657600080fd5b820183602082011115610ce857600080fd5b803590602001918460018302840111600160201b83111715610d0957600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550612ec0945050505050565b610695612f18565b6105a360048036036040811015610d6857600080fd5b506001600160a01b038135169060200135612f27565b6105a360048036036060811015610d9457600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b811115610dc357600080fd5b820183602082011115610dd557600080fd5b803590602001918460018302840111600160201b83111715610df657600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061304d945050505050565b6105a3600480360360e0811015610e4d57600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359160808201359160a08101359181019060e0810160c0820135600160201b811115610e9857600080fd5b820183602082011115610eaa57600080fd5b803590602001918460018302840111600160201b83111715610ecb57600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061309a945050505050565b6105a3600480360360e0811015610f2257600080fd5b506001600160a01b03813581169160208101359091169060408101359060608101359060ff6080820135169060a08101359060c00135613182565b6105d36131e7565b6105a360048036036020811015610f7b57600080fd5b810190602081018135600160201b811115610f9557600080fd5b820183602082011115610fa757600080fd5b803590602001918460208302840111600160201b83111715610fc857600080fd5b50909250905061320b565b6105d360048036036040811015610fe957600080fd5b506001600160a01b038135811691602001351661339e565b6105a3600480360361012081101561101857600080fd5b506001600160a01b03813581169160208101359091169060408101359060608101359060808101359060a08101359060ff60c0820135169060e08101359061010001356133c9565b61043c6004803603604081101561107657600080fd5b506001600160a01b0381351690602001356134c0565b6105a360048036036101208110156110a357600080fd5b506001600160a01b03813581169160208101359091169060408101359060608101359060808101359060a08101359060ff60c0820135169060e08101359061010001356134eb565b6105a36004803603602081101561110157600080fd5b50356001600160a01b03166135d5565b6105a36004803603602081101561112757600080fd5b50356001600160a01b0316613755565b61043c6004803603602081101561114d57600080fd5b50356001600160a01b03166137de565b6004805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156111e35780601f106111b8576101008083540402835291602001916111e3565b820191906000526020600020905b8154815290600101906020018083116111c657829003601f168201915b505050505081565b600154600090600160a01b900460ff161561123b576040805162461bcd60e51b815260206004820152601e6024820152600080516020614b46833981519152604482015290519081900360640190fd5b6112463384846137e9565b50600192915050565b600654600160a81b900460ff16156112a5576040805162461bcd60e51b8152602060048201526014602482015273616c726561647920696e697469616c697a65642160601b604482015290519081900360640190fd5b6001600160a01b038416611300576040805162461bcd60e51b815260206004820152601a60248201527f6d6173746572206d696e7465722063616e277420626520307830000000000000604482015290519081900360640190fd5b6001600160a01b038316611351576040805162461bcd60e51b815260206004820152601360248201527207061757365722063616e27742062652030783606c1b604482015290519081900360640190fd5b6001600160a01b0382166113ac576040805162461bcd60e51b815260206004820152601860248201527f626c61636b6c69737465722063616e2774206265203078300000000000000000604482015290519081900360640190fd5b6001600160a01b0381166113fc576040805162461bcd60e51b815260206004820152601260248201527106f776e65722063616e2774206265203078360741b604482015290519081900360640190fd5b865161140f9060049060208a0190614a52565b508551611423906005906020890190614a52565b506006805460ff191660ff871617610100600160a81b0319166101006001600160a01b038781169190910291909117909155600180546001600160a01b03199081168684161790915560028054909116918416919091179055611485816138d5565b50506006805460ff60a81b1916600160a81b1790555050505050565b6114a9612733565b6001600160a01b0316336001600160a01b031614611505576040805162461bcd60e51b815260206004820152601460248201527337b7363ca7bbb732b91d103737ba1037bbb732b960611b604482015290519081900360640190fd5b60405162461bcd60e51b8152600401808060200182810382526023815260200180614e356023913960400191505060405180910390fd5b60095490565b6002546001600160a01b0316331461158b5760405162461bcd60e51b815260040180806020018281038252602c815260200180614c28602c913960400191505060405180910390fd5b611594816138f7565b6040516001600160a01b038216907f117e3210bb9aa7d9baff172026820255c6f6c30ba8999d1c2fd88e2848137c4e90600090a250565b600154600090600160a01b900460ff161561161b576040805162461bcd60e51b815260206004820152601e6024820152600080516020614b46833981519152604482015290519081900360640190fd5b8261162581613902565b156116615760405162461bcd60e51b8152600401808060200182810382526025815260200180614e586025913960400191505060405180910390fd5b3361166b81613902565b156116a75760405162461bcd60e51b8152600401808060200182810382526025815260200180614e586025913960400191505060405180910390fd5b856116b181613902565b156116ed5760405162461bcd60e51b8152600401808060200182810382526025815260200180614e586025913960400191505060405180910390fd5b6001600160a01b0387166000908152600860209081526040808320338452909152902054851115611765576040805162461bcd60e51b815260206004820152601a60248201527f746f6b656e20616c6c6f77616e636520697320746f6f206c6f77000000000000604482015290519081900360640190fd5b611770878787613923565b6001600160a01b038716600090815260086020908152604080832033845290915290205461179e9086613a54565b6001600160a01b0388166000908152600860209081526040808320338452909152902055600193505050509392505050565b6117d8612733565b6001600160a01b0316336001600160a01b031614611834576040805162461bcd60e51b815260206004820152601460248201527337b7363ca7bbb732b91d103737ba1037bbb732b960611b604482015290519081900360640190fd5b6001600160a01b0381166118795760405162461bcd60e51b815260040180806020018281038252602a815260200180614bb3602a913960400191505060405180910390fd5b600c80546001600160a01b0319166001600160a01b0383169081179091556040517fe475e580d85111348e40d8ca33cfdd74c30fe1655c2d8537a13abc10065ffa5a90600090a250565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b60065460ff1681565b60065461010090046001600160a01b031681565b600c546001600160a01b031690565b600154600090600160a01b900460ff1615611963576040805162461bcd60e51b815260206004820152601e6024820152600080516020614b46833981519152604482015290519081900360640190fd5b611246338484613ab1565b6001546001600160a01b031633146119bb576040805162461bcd60e51b815260206004820152600b60248201526a706175736572206f6e6c7960a81b604482015290519081900360640190fd5b6001805460ff60a01b191690556040517f7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b3390600090a1565b600154600090600160a01b900460ff1615611a43576040805162461bcd60e51b815260206004820152601e6024820152600080516020614b46833981519152604482015290519081900360640190fd5b336000908152600a602052604090205460ff161515600114611a9b576040805162461bcd60e51b815260206004820152600c60248201526b6d696e74657273206f6e6c7960a01b604482015290519081900360640190fd5b33611aa581613902565b15611ae15760405162461bcd60e51b8152600401808060200182810382526025815260200180614e586025913960400191505060405180910390fd5b83611aeb81613902565b15611b275760405162461bcd60e51b8152600401808060200182810382526025815260200180614e586025913960400191505060405180910390fd5b6001600160a01b038516611b76576040805162461bcd60e51b8152602060048201526011602482015270063616e2774206d696e7420746f2030783607c1b604482015290519081900360640190fd5b60008411611bcb576040805162461bcd60e51b815260206004820152601c60248201527f616d6f756e7420746f206d696e742068617320746f206265203e203000000000604482015290519081900360640190fd5b6000611bd633612718565b905080851115611c2d576040805162461bcd60e51b815260206004820152601860248201527f6d696e74657220616c6c6f77616e636520746f6f206c6f770000000000000000604482015290519081900360640190fd5b600954611c3a9086613aee565b600955611c5986611c5487611c4e83613b4f565b90613aee565b613b73565b611c638186613a54565b336000818152600b6020526040902091909155611c7f90612718565b611cc157336000818152600a6020526040808220805460ff19169055517fe94479a9f7e1952cc78f2d6baab678adc1b772d936c6583def489e524cb666929190a25b6040805186815290516001600160a01b0388169133917fab8530f87dc9b59234c4623bf917212bb2536d647574c8e7e5da92c2ede0c9f89181900360200190a36040805186815290516001600160a01b03881691600091600080516020614d428339815191529181900360200190a350600195945050505050565b600154600160a01b900460ff1615611d89576040805162461bcd60e51b815260206004820152601e6024820152600080516020614b46833981519152604482015290519081900360640190fd5b336000908152600a602052604090205460ff161515600114611de1576040805162461bcd60e51b815260206004820152600c60248201526b6d696e74657273206f6e6c7960a01b604482015290519081900360640190fd5b33611deb81613902565b15611e275760405162461bcd60e51b8152600401808060200182810382526025815260200180614e586025913960400191505060405180910390fd5b6000611e3233613b4f565b905060008311611e89576040805162461bcd60e51b815260206004820152601960248201527f6275726e20616d6f756e742068617320746f206265203e203000000000000000604482015290519081900360640190fd5b82811015611ec85760405162461bcd60e51b8152600401808060200182810382526025815260200180614c7e6025913960400191505060405180910390fd5b600954611ed59084613a54565b600955611ee633611c548386613a54565b60408051848152905133917fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5919081900360200190a26040805184815290516000913391600080516020614d428339815191529181900360200190a3505050565b6002546001600160a01b03163314611f905760405162461bcd60e51b815260040180806020018281038252602c815260200180614c28602c913960400191505060405180910390fd5b60005b8181101561201857611fbf838383818110611faa57fe5b905060200201356001600160a01b0316613c1a565b828282818110611fcb57fe5b905060200201356001600160a01b03166001600160a01b03167fffa4e6181777692565cf28528fc88fd1516ea86b56da075235fa575af6a4b85560405160405180910390a2600101611f93565b505050565b600f5460ff1660021461202f57600080fd5b600f805460ff19166003179081905560405160ff91909116907f9acd1ebb88c57afda916c7e76863b6692f70997e0a4ddd876f04abe3bdaae36890600090a2565b612078612733565b6001600160a01b0316336001600160a01b0316146120d4576040805162461bcd60e51b815260206004820152601460248201527337b7363ca7bbb732b91d103737ba1037bbb732b960611b604482015290519081900360640190fd5b6001600160a01b03811661212f576040805162461bcd60e51b815260206004820152601960248201527f7570646174655061757365723a2030783020696e76616c696400000000000000604482015290519081900360640190fd5b6001546001600160a01b0382811691161415612192576040805162461bcd60e51b815260206004820152601a60248201527f7570646174655061757365723a2073616d652061646472657373000000000000604482015290519081900360640190fd5b600180546001600160a01b0319166001600160a01b0383811691909117918290556040519116907fb80482a293ca2e013eda8683c9bd7fc8347cfdaeea5ede58cba46df502c2a60490600090a250565b600154600160a01b900460ff161561222f576040805162461bcd60e51b815260206004820152601e6024820152600080516020614b46833981519152604482015290519081900360640190fd5b61223c8585858585613c25565b5050505050565b600154600160a01b900460ff1681565b600654600160a81b900460ff16801561226f5750600f5460ff16155b61227857600080fd5b600f805460ff19166001179081905560405160ff91909116907f9acd1ebb88c57afda916c7e76863b6692f70997e0a4ddd876f04abe3bdaae36890600090a2565b6002546001600160a01b031633146123025760405162461bcd60e51b815260040180806020018281038252602c815260200180614c28602c913960400191505060405180910390fd5b60005b818110156120185761233183838381811061231c57fe5b905060200201356001600160a01b03166138f7565b82828281811061233d57fe5b905060200201356001600160a01b03166001600160a01b03167f117e3210bb9aa7d9baff172026820255c6f6c30ba8999d1c2fd88e2848137c4e60405160405180910390a2600101612305565b600061239582613b4f565b92915050565b6001600160a01b03166000908152600e602052604090205490565b7fd099cc98ef71107a616c4f0f941f04c322d8e254fe26b3c6668db87aae413de881565b600154600160a01b900460ff1615612427576040805162461bcd60e51b815260206004820152601e6024820152600080516020614b46833981519152604482015290519081900360640190fd5b6002546001600160a01b031633146124705760405162461bcd60e51b815260040180806020018281038252602c815260200180614c28602c913960400191505060405180910390fd5b61247981613902565b6124b45760405162461bcd60e51b8152600401808060200182810382526030815260200180614ca36030913960400191505060405180910390fd5b60006124bf82613b4f565b6009549091506124cf9082613a54565b6009556001600160a01b0382166000818152600760209081526040918290208054600160ff1b811691829055835186815293519094919391927fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5928290030190a26040805184815290516000916001600160a01b03871691600080516020614d428339815191529181900360200190a360095460408051918252517fc8b17f75f53401f272e9ee7fa431e81ba33779363238896180425a422420c8f79181900360200190a150505050565b6001546001600160a01b031633146125e7576040805162461bcd60e51b815260206004820152600b60248201526a706175736572206f6e6c7960a81b604482015290519081900360640190fd5b6001805460ff60a01b1916600160a01b1790556040517f6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff62590600090a1565b600154600160a01b900460ff1615612672576040805162461bcd60e51b815260206004820152601e6024820152600080516020614b46833981519152604482015290519081900360640190fd5b8661267c81613902565b156126b85760405162461bcd60e51b8152600401808060200182810382526025815260200180614e586025913960400191505060405180910390fd5b866126c281613902565b156126fe5760405162461bcd60e51b8152600401808060200182810382526025815260200180614e586025913960400191505060405180910390fd5b61270d89898989898989613c65565b505050505050505050565b6001600160a01b03166000908152600b602052604090205490565b6000546001600160a01b031690565b6005805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156111e35780601f106111b8576101008083540402835291602001916111e3565b6001546001600160a01b031681565b600154600160a01b900460ff16156127f9576040805162461bcd60e51b815260206004820152601e6024820152600080516020614b46833981519152604482015290519081900360640190fd5b61223c8585858585613d52565b7f7c7c6cdb67a18743f49ec6fa9b35f50d52ed05cbed4cc592e13b44501c1a226781565b60065461010090046001600160a01b03163314612883576040805162461bcd60e51b81526020600482015260126024820152716d6173746572206d696e746572206f6e6c7960701b604482015290519081900360640190fd5b6001600160a01b0382166128d4576040805162461bcd60e51b815260206004820152601360248201527206d696e7465722063616e27742062652030783606c1b604482015290519081900360640190fd5b6001600160a01b0382166000908152600a602052604090205460ff16612930576040805162461bcd60e51b815260206004820152600c60248201526b3737ba10309036b4b73a32b960a11b604482015290519081900360640190fd5b60006129458261293f85612718565b90613a54565b6001600160a01b0384166000908152600b6020526040812082905590915061296c84612718565b11156129b6576040805182815290516001600160a01b038516917f46980fca912ef9bcdbd36877427b6b90e860769f604e89c0e67720cece530d20919081900360200190a2612018565b6001600160a01b0383166000818152600a6020526040808220805460ff19169055517fe94479a9f7e1952cc78f2d6baab678adc1b772d936c6583def489e524cb666929190a2505050565b6002546001600160a01b03163314612a4a5760405162461bcd60e51b815260040180806020018281038252602c815260200180614c28602c913960400191505060405180910390fd5b60005b8181101561201857612a79838383818110612a6457fe5b905060200201356001600160a01b03166123da565b600101612a4d565b600154600090600160a01b900460ff1615612ad1576040805162461bcd60e51b815260206004820152601e6024820152600080516020614b46833981519152604482015290519081900360640190fd5b61124633848461400f565b600154600090600160a01b900460ff1615612b2c576040805162461bcd60e51b815260206004820152601e6024820152600080516020614b46833981519152604482015290519081900360640190fd5b33612b3681613902565b15612b725760405162461bcd60e51b8152600401808060200182810382526025815260200180614e586025913960400191505060405180910390fd5b83612b7c81613902565b15612bb85760405162461bcd60e51b8152600401808060200182810382526025815260200180614e586025913960400191505060405180910390fd5b612bc3338686613923565b506001949350505050565b612bd6612733565b6001600160a01b0316336001600160a01b031614612c32576040805162461bcd60e51b815260206004820152601460248201527337b7363ca7bbb732b91d103737ba1037bbb732b960611b604482015290519081900360640190fd5b6001600160a01b038116612c8d576040805162461bcd60e51b815260206004820152601a60248201527f6d6173746572206d696e7465722063616e277420626520307830000000000000604482015290519081900360640190fd5b6006546001600160a01b03828116610100909204161415612cf5576040805162461bcd60e51b815260206004820152601960248201527f6d6173746572206d696e746572206973207468652073616d6500000000000000604482015290519081900360640190fd5b60068054610100600160a81b0319166101006001600160a01b0384811682029290921792839055604051920416907fdb66dfa9c6b8f5226fe9aac7e51897ae8ee94ac31dc70bb6c9900b2574b707e690600090a250565b6001600160a01b03166000908152600a602052604090205460ff1690565b612d72612733565b6001600160a01b0316336001600160a01b031614612dce576040805162461bcd60e51b815260206004820152601460248201527337b7363ca7bbb732b91d103737ba1037bbb732b960611b604482015290519081900360640190fd5b6001600160a01b038116612e135760405162461bcd60e51b8152600401808060200182810382526032815260200180614e036032913960400191505060405180910390fd5b600280546001600160a01b0319166001600160a01b0383811691909117918290556040519116907fc67398012c111ce95ecb7429b933096c977380ee6c421175a71a4a4c6c88c06e90600090a250565b600c546001600160a01b03163314612eac5760405162461bcd60e51b8152600401808060200182810382526024815260200180614cf96024913960400191505060405180910390fd5b6120186001600160a01b038416838361405e565b600154600160a01b900460ff1615612f0d576040805162461bcd60e51b815260206004820152601e6024820152600080516020614b46833981519152604482015290519081900360640190fd5b6120188383836140b0565b6002546001600160a01b031681565b60065461010090046001600160a01b03163314612f80576040805162461bcd60e51b81526020600482015260126024820152716d6173746572206d696e746572206f6e6c7960701b604482015290519081900360640190fd5b6001600160a01b038216612fd1576040805162461bcd60e51b815260206004820152601360248201527206d696e7465722063616e27742062652030783606c1b604482015290519081900360640190fd5b6000612fe082611c4e85612718565b6001600160a01b0384166000818152600b60209081526040808320859055600a825291829020805460ff191660011790558151848152915193945091927f46980fca912ef9bcdbd36877427b6b90e860769f604e89c0e67720cece530d20929181900390910190a2505050565b6040805162461bcd60e51b815260206004820152601d60248201527f72656a6563742045495032323320746f6b656e207472616e7366657273000000604482015290519081900360640190fd5b600154600160a01b900460ff16156130e7576040805162461bcd60e51b815260206004820152601e6024820152600080516020614b46833981519152604482015290519081900360640190fd5b866130f181613902565b1561312d5760405162461bcd60e51b8152600401808060200182810382526025815260200180614e586025913960400191505060405180910390fd5b8661313781613902565b156131735760405162461bcd60e51b8152600401808060200182810382526025815260200180614e586025913960400191505060405180910390fd5b61270d89898989898989614182565b600154600160a01b900460ff16156131cf576040805162461bcd60e51b815260206004820152601e6024820152600080516020614b46833981519152604482015290519081900360640190fd5b6131de87878787878787614213565b50505050505050565b7f158b0a9edf7a828aad02f63cd515c68ef2f50ba807396f6d12842833a159742981565b600f5460ff1660011461321d57600080fd5b60005b8181101561333b576003600084848481811061323857fe5b602090810292909201356001600160a01b03168352508101919091526040016000205460ff166132995760405162461bcd60e51b815260040180806020018281038252603d815260200180614ae6603d913960400191505060405180910390fd5b6132a8838383818110611faa57fe5b600360008484848181106132b857fe5b602090810292909201356001600160a01b0316835250810191909152604001600020805460ff191690558282828181106132ee57fe5b905060200201356001600160a01b03166001600160a01b03167fffa4e6181777692565cf28528fc88fd1516ea86b56da075235fa575af6a4b85560405160405180910390a2600101613220565b5061334530613c1a565b30600090815260036020526040808220805460ff19908116909155600f805490911660021790819055905160ff91909116917f9acd1ebb88c57afda916c7e76863b6692f70997e0a4ddd876f04abe3bdaae36891a25050565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205490565b600154600160a01b900460ff1615613416576040805162461bcd60e51b815260206004820152601e6024820152600080516020614b46833981519152604482015290519081900360640190fd5b8861342081613902565b1561345c5760405162461bcd60e51b8152600401808060200182810382526025815260200180614e586025913960400191505060405180910390fd5b8861346681613902565b156134a25760405162461bcd60e51b8152600401808060200182810382526025815260200180614e586025913960400191505060405180910390fd5b6134b38b8b8b8b8b8b8b8b8b614255565b5050505050505050505050565b6001600160a01b03919091166000908152600d60209081526040808320938352929052205460ff1690565b600154600160a01b900460ff1615613538576040805162461bcd60e51b815260206004820152601e6024820152600080516020614b46833981519152604482015290519081900360640190fd5b8861354281613902565b1561357e5760405162461bcd60e51b8152600401808060200182810382526025815260200180614e586025913960400191505060405180910390fd5b8861358881613902565b156135c45760405162461bcd60e51b8152600401808060200182810382526025815260200180614e586025913960400191505060405180910390fd5b6134b38b8b8b8b8b8b8b8b8b614299565b6135dd612733565b6001600160a01b0316336001600160a01b031614613639576040805162461bcd60e51b815260206004820152601460248201527337b7363ca7bbb732b91d103737ba1037bbb732b960611b604482015290519081900360640190fd5b6001600160a01b038116613694576040805162461bcd60e51b815260206004820152601e60248201527f7472616e736665724f776e6572736869703a2030783020696e76616c69640000604482015290519081900360640190fd5b61369c612733565b6001600160a01b0316816001600160a01b03161415613702576040805162461bcd60e51b815260206004820152601f60248201527f7472616e736665724f776e6572736869703a2073616d65206164647265737300604482015290519081900360640190fd5b806001600160a01b0316613714612733565b6001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3613752816138d5565b50565b6002546001600160a01b0316331461379e5760405162461bcd60e51b815260040180806020018281038252602c815260200180614c28602c913960400191505060405180910390fd5b6137a781613c1a565b6040516001600160a01b038216907fffa4e6181777692565cf28528fc88fd1516ea86b56da075235fa575af6a4b85590600090a250565b600061239582613902565b6001600160a01b03831661382e5760405162461bcd60e51b8152600401808060200182810382526024815260200180614d876024913960400191505060405180910390fd5b6001600160a01b0382166138735760405162461bcd60e51b8152600401808060200182810382526022815260200180614b916022913960400191505060405180910390fd5b6001600160a01b03808416600081815260086020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b600080546001600160a01b0319166001600160a01b0392909216919091179055565b6137528160006142dd565b6001600160a01b031660009081526007602052604090205460ff1c60011490565b6001600160a01b0383166139685760405162461bcd60e51b8152600401808060200182810382526025815260200180614d626025913960400191505060405180910390fd5b6001600160a01b0382166139ad5760405162461bcd60e51b8152600401808060200182810382526023815260200180614b236023913960400191505060405180910390fd5b6139b683613b4f565b8111156139f45760405162461bcd60e51b8152600401808060200182810382526026815260200180614c026026913960400191505060405180910390fd5b613a0583611c548361293f87613b4f565b613a1682611c5483611c4e86613b4f565b816001600160a01b0316836001600160a01b0316600080516020614d42833981519152836040518082815260200191505060405180910390a3505050565b600082821115613aab576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b6001600160a01b038084166000908152600860209081526040808320938616835292905220546120189084908490613ae99085613aee565b6137e9565b600082820183811015613b48576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b03166000908152600760205260409020546001600160ff1b031690565b6001600160ff1b03811115613bb95760405162461bcd60e51b815260040180806020018281038252602a815260200180614c54602a913960400191505060405180910390fd5b613bc282613902565b15613bfe5760405162461bcd60e51b8152600401808060200182810382526025815260200180614bdd6025913960400191505060405180910390fd5b6001600160a01b03909116600090815260076020526040902055565b6137528160016142dd565b61223c8585848487604051602001808481526020018381526020018260ff1660f81b815260010193505050506040516020818303038152906040526140b0565b6001600160a01b0386163314613cac5760405162461bcd60e51b8152600401808060200182810382526025815260200180614d1d6025913960400191505060405180910390fd5b613cb887838686614330565b604080517fd099cc98ef71107a616c4f0f941f04c322d8e254fe26b3c6668db87aae413de86020808301919091526001600160a01b03808b1683850152891660608301526080820188905260a0820187905260c0820186905260e0808301869052835180840390910181526101009092019092528051910120613d3d908890836143bc565b613d478783614513565b6131de878787613923565b600019821480613d625750428210155b613db3576040805162461bcd60e51b815260206004820152601e60248201527f46696174546f6b656e56323a207065726d697420697320657870697265640000604482015290519081900360640190fd5b6000613e46613dc061456d565b6001600160a01b038089166000818152600e60209081526040918290205482517f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98184015280840194909452938b166060840152608083018a905260a083019390935260c08083018990528151808403909101815260e09092019052805191012061462d565b90507326ea411d85de05f194422f7fbecc329071040b5a636ccea6528783856040518463ffffffff1660e01b815260040180846001600160a01b0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015613ec6578181015183820152602001613eae565b50505050905090810190601f168015613ef35780820380516001836020036101000a031916815260200191505b5094505050505060206040518083038186803b158015613f1257600080fd5b505af4158015613f26573d6000803e3d6000fd5b505050506040513d6020811015613f3c57600080fd5b5051613f8f576040805162461bcd60e51b815260206004820152601a60248201527f454950323631323a20696e76616c6964207369676e6174757265000000000000604482015290519081900360640190fd5b613f9a8686866137e9565b6001600160a01b0386166000818152600e602090815260409182902054825190815291517f1866e09d34a3ce76138ae60f66355320cd8ef57ea6cc16c33306c32aa3f140e79281900390910190a25050506001600160a01b039092166000908152600e60205260409020805460010190555050565b6120188383613ae984604051806060016040528060258152602001614ea2602591396001600160a01b03808a166000908152600860209081526040808320938c1683529290522054919061464c565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526120189084906146e3565b6140ba8383614794565b614127837f158b0a9edf7a828aad02f63cd515c68ef2f50ba807396f6d12842833a159742960001b858560405160200180848152602001836001600160a01b03168152602001828152602001935050505060405160208183030381529060405280519060200120836143bc565b6001600160a01b0383166000818152600d60209081526040808320868452909152808220805460ff19166001179055518492917f1cdd46ff242716cdaa72d159d339a485b3438398348d68f09d7c8c0a59353d8191a3505050565b61418e87838686614330565b604080517f7c7c6cdb67a18743f49ec6fa9b35f50d52ed05cbed4cc592e13b44501c1a22676020808301919091526001600160a01b03808b1683850152891660608301526080820188905260a0820187905260c0820186905260e0808301869052835180840390910181526101009092019092528051910120613d3d908890836143bc565b6131de87878787868689604051602001808481526020018381526020018260ff1660f81b81526001019350505050604051602081830303815290604052613d52565b61270d89898989898988888b604051602001808481526020018381526020018260ff1660f81b81526001019350505050604051602081830303815290604052614182565b61270d89898989898988888b604051602001808481526020018381526020018260ff1660f81b81526001019350505050604051602081830303815290604052613c65565b806142f0576142eb82613b4f565b614310565b6001600160a01b038216600090815260076020526040902054600160ff1b175b6001600160a01b0390921660009081526007602052604090209190915550565b81421161436e5760405162461bcd60e51b815260040180806020018281038252602b815260200180614b66602b913960400191505060405180910390fd5b8042106143ac5760405162461bcd60e51b8152600401808060200182810382526025815260200180614e7d6025913960400191505060405180910390fd5b6143b68484614794565b50505050565b7326ea411d85de05f194422f7fbecc329071040b5a636ccea652846143e86143e261456d565b8661462d565b846040518463ffffffff1660e01b815260040180846001600160a01b0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561444a578181015183820152602001614432565b50505050905090810190601f1680156144775780820380516001836020036101000a031916815260200191505b5094505050505060206040518083038186803b15801561449657600080fd5b505af41580156144aa573d6000803e3d6000fd5b505050506040513d60208110156144c057600080fd5b5051612018576040805162461bcd60e51b815260206004820152601e60248201527f46696174546f6b656e56323a20696e76616c6964207369676e61747572650000604482015290519081900360640190fd5b6001600160a01b0382166000818152600d60209081526040808320858452909152808220805460ff19166001179055518392917f98de503528ee59b575ef0c0a2576a82497bfc029a5685b209e9ec333479b10a591a35050565b6004805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815260009361462893919290918301828280156145fc5780601f106145d1576101008083540402835291602001916145fc565b820191906000526020600020905b8154815290600101906020018083116145df57829003601f168201915b5050505050604051806040016040528060018152602001601960f91b8152506146236147fb565b6147ff565b905090565b60405161190160f01b8152600281019290925260228201526042902090565b600081848411156146db5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156146a0578181015183820152602001614688565b50505050905090810190601f1680156146cd5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6060614738826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166148739092919063ffffffff16565b8051909150156120185780806020019051602081101561475757600080fd5b50516120185760405162461bcd60e51b815260040180806020018281038252602a815260200180614dab602a913960400191505060405180910390fd5b6001600160a01b0382166000908152600d6020908152604080832084845290915290205460ff16156147f75760405162461bcd60e51b815260040180806020018281038252602e815260200180614dd5602e913960400191505060405180910390fd5b5050565b4690565b8251602093840120825192840192909220604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f8187015280820194909452606084019190915260808301919091523060a0808401919091528151808403909101815260c09092019052805191012090565b6060614882848460008561488a565b949350505050565b6060824710156148cb5760405162461bcd60e51b8152600401808060200182810382526026815260200180614cd36026913960400191505060405180910390fd5b6148d4856149e6565b614925576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106149645780518252601f199092019160209182019101614945565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146149c6576040519150601f19603f3d011682016040523d82523d6000602084013e6149cb565b606091505b50915091506149db8282866149ec565b979650505050505050565b3b151590565b606083156149fb575081613b48565b825115614a0b5782518084602001fd5b60405162461bcd60e51b81526020600482018181528451602484015284518593919283926044019190850190808383600083156146a0578181015183820152602001614688565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10614a9357805160ff1916838001178555614ac0565b82800160010185558215614ac0579182015b82811115614ac0578251825591602001919060010190614aa5565b50614acc929150614ad0565b5090565b5b80821115614acc5760008155600101614ad156fe46696174546f6b656e56325f313a20426c61636b6c697374696e672070726576696f75736c7920756e626c61636b6c6973746564206163636f756e742145524332303a207472616e7366657220746f20746865207a65726f20616464726573737768656e4e6f745061757365643a20636f6e747261637420706175736564000046696174546f6b656e56323a20617574686f72697a6174696f6e206973206e6f74207965742076616c696445524332303a20617070726f766520746f20746865207a65726f2061646472657373526573637561626c653a206e6577207265736375657220697320746865207a65726f206164647265737346696174546f6b656e56325f323a204163636f756e7420697320626c61636b6c697374656445524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365426c61636b6c69737461626c653a2063616c6c6572206973206e6f742074686520626c61636b6c697374657246696174546f6b656e56325f323a2042616c616e636520657863656564732028325e323535202d20312962616c616e636520696e206d696e746572206973203c20616d6f756e7420746f206275726e43616e277420776970652062616c616e636573206f662061206e6f6e20626c61636b6c69737465642061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c526573637561626c653a2063616c6c6572206973206e6f7420746865207265736375657246696174546f6b656e56323a2063616c6c6572206d75737420626520746865207061796565ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef45524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f20616464726573735361666545524332303a204552433230206f7065726174696f6e20646964206e6f74207375636365656446696174546f6b656e56323a20617574686f72697a6174696f6e2069732075736564206f722063616e63656c6564426c61636b6c69737461626c653a206e657720626c61636b6c697374657220697320746865207a65726f206164647265737346756e6374696f6e207265636c61696d546f6b656e2069732064657072656361746564426c61636b6c69737461626c653a206163636f756e7420697320626c61636b6c697374656446696174546f6b656e56323a20617574686f72697a6174696f6e206973206578706972656445524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220b61232cfc903d5496817133be778aa89fda41cb0bd976a544116a4908fa9277464736f6c634300060c0033","optimization_enabled":true,"verified_twin_address_hash":null,"is_verified":true,"compiler_settings":{"evmVersion":"istanbul","libraries":{"contracts/util/SignatureChecker.sol":{"SignatureChecker":"0x26EA411d85DE05F194422F7fBECC329071040B5A"}},"metadata":{"bytecodeHash":"ipfs","useLiteralContent":false},"optimizer":{"enabled":true,"runs":200},"outputSelection":{"*":{"":["*"],"*":["*"]}},"remappings":["forge-std/=lib/forge-std/src/","ds-test/=lib/forge-std/lib/ds-test/src/","@openzeppelin/=lib/openzeppelin-contracts/"]},"optimization_runs":200,"sourcify_repo_url":null,"decoded_constructor_args":null,"compiler_version":"v0.6.12+commit.27d51765","is_verified_via_verifier_alliance":false,"verified_at":"2026-07-21T18:28:56.295969Z","implementations":[],"proxy_type":null,"external_libraries":[{"name":"contracts/util/SignatureChecker.sol:SignatureChecker","address_hash":"0x26EA411d85DE05F194422F7fBECC329071040B5A"}],"creation_bytecode":"0x60806040526001805460ff60a01b1916905560006009553480156200002357600080fd5b506200002f336200006e565b600080546040516001600160a01b0390911691907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a362000090565b600080546001600160a01b0319166001600160a01b0392909216919091179055565b614efc80620000a06000396000f3fe608060405234801561001057600080fd5b506004361061038e5760003560e01c80638a6db9c3116101de578063b7b728991161010f578063dc1454e8116100ad578063ef55bec61161007c578063ef55bec61461108c578063f2fde38b146110eb578063f9f92be414611111578063fe575a87146111375761038e565b8063dc1454e814610f65578063dd62ed3e14610fd3578063e3ee160e14611001578063e94a0102146110605761038e565b8063c0ee0b8a116100e9578063c0ee0b8a14610d7e578063cf09299514610e37578063d505accf14610f0c578063d916948714610f5d5761038e565b8063b7b7289914610c91578063bd10243014610d4a578063be76ebe514610d525761038e565b8063a35b4e7f1161017c578063aa20e1e411610156578063aa20e1e414610be9578063aa271e1a14610c0f578063ad38bf2214610c35578063b2118a8d14610c5b5761038e565b8063a35b4e7f14610b23578063a457c2d714610b91578063a9059cbb14610bbd5761038e565b80639fd0506d116101b85780639fd0506d14610a1e5780639fd5a6cf14610a26578063a0cc6a6814610aef578063a2ded11514610af75761038e565b80638a6db9c3146109e85780638da5cb5b14610a0e57806395d89b4114610a165761038e565b806340c10f19116102c35780635cd8a76b116102615780637f2eecc3116102305780637f2eecc3146108dd57806380e56f42146108e55780638456cb591461090b57806388b7ab63146109135761038e565b80635cd8a76b1461081b5780636d9311aa1461082357806370a08231146108915780637ecebe00146108b75761038e565b806351276d201161029d57806351276d20146107a4578063554bab3c146107ac5780635a049a70146107d25780635c975abb146108135761038e565b806340c10f19146106ed57806342966c681461071957806345a0b891146107365761038e565b80632ab600451161033057806335d99f351161030a57806335d99f351461068d57806338a63183146106b157806339509351146106b95780633f4ba83a146106e55761038e565b80632ab600451461064157806330adf81f14610667578063313ce5671461066f5761038e565b806317ffc3201161036c57806317ffc320146105a557806318160ddd146105cb5780631a895266146105e557806323b872dd1461060b5761038e565b806306fdde0314610393578063095ea7b314610410578063147936ba14610450575b600080fd5b61039b61115d565b6040805160208082528351818301528351919283929083019185019080838360005b838110156103d55781810151838201526020016103bd565b50505050905090810190601f1680156104025780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61043c6004803603604081101561042657600080fd5b506001600160a01b0381351690602001356111eb565b604080519115158252519081900360200190f35b6105a3600480360360e081101561046657600080fd5b810190602081018135600160201b81111561048057600080fd5b82018360208201111561049257600080fd5b803590602001918460018302840111600160201b831117156104b357600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b81111561050557600080fd5b82018360208201111561051757600080fd5b803590602001918460018302840111600160201b8311171561053857600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295505050813560ff1692505060208101356001600160a01b039081169160408101358216916060820135811691608001351661124f565b005b6105a3600480360360208110156105bb57600080fd5b50356001600160a01b03166114a1565b6105d361153c565b60408051918252519081900360200190f35b6105a3600480360360208110156105fb57600080fd5b50356001600160a01b0316611542565b61043c6004803603606081101561062157600080fd5b506001600160a01b038135811691602081013590911690604001356115cb565b6105a36004803603602081101561065757600080fd5b50356001600160a01b03166117d0565b6105d36118c3565b6106776118e7565b6040805160ff9092168252519081900360200190f35b6106956118f0565b604080516001600160a01b039092168252519081900360200190f35b610695611904565b61043c600480360360408110156106cf57600080fd5b506001600160a01b038135169060200135611913565b6105a361196e565b61043c6004803603604081101561070357600080fd5b506001600160a01b0381351690602001356119f3565b6105a36004803603602081101561072f57600080fd5b5035611d3c565b6105a36004803603602081101561074c57600080fd5b810190602081018135600160201b81111561076657600080fd5b82018360208201111561077857600080fd5b803590602001918460208302840111600160201b8311171561079957600080fd5b509092509050611f47565b6105a361201d565b6105a3600480360360208110156107c257600080fd5b50356001600160a01b0316612070565b6105a3600480360360a08110156107e857600080fd5b506001600160a01b038135169060208101359060ff60408201351690606081013590608001356121e2565b61043c612243565b6105a3612253565b6105a36004803603602081101561083957600080fd5b810190602081018135600160201b81111561085357600080fd5b82018360208201111561086557600080fd5b803590602001918460208302840111600160201b8311171561088657600080fd5b5090925090506122b9565b6105d3600480360360208110156108a757600080fd5b50356001600160a01b031661238a565b6105d3600480360360208110156108cd57600080fd5b50356001600160a01b031661239b565b6105d36123b6565b6105a3600480360360208110156108fb57600080fd5b50356001600160a01b03166123da565b6105a361259a565b6105a3600480360360e081101561092957600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359160808201359160a08101359181019060e0810160c0820135600160201b81111561097457600080fd5b82018360208201111561098657600080fd5b803590602001918460018302840111600160201b831117156109a757600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550612625945050505050565b6105d3600480360360208110156109fe57600080fd5b50356001600160a01b0316612718565b610695612733565b61039b612742565b61069561279d565b6105a3600480360360a0811015610a3c57600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359181019060a081016080820135600160201b811115610a7b57600080fd5b820183602082011115610a8d57600080fd5b803590602001918460018302840111600160201b83111715610aae57600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506127ac945050505050565b6105d3612806565b6105a360048036036040811015610b0d57600080fd5b506001600160a01b03813516906020013561282a565b6105a360048036036020811015610b3957600080fd5b810190602081018135600160201b811115610b5357600080fd5b820183602082011115610b6557600080fd5b803590602001918460208302840111600160201b83111715610b8657600080fd5b509092509050612a01565b61043c60048036036040811015610ba757600080fd5b506001600160a01b038135169060200135612a81565b61043c60048036036040811015610bd357600080fd5b506001600160a01b038135169060200135612adc565b6105a360048036036020811015610bff57600080fd5b50356001600160a01b0316612bce565b61043c60048036036020811015610c2557600080fd5b50356001600160a01b0316612d4c565b6105a360048036036020811015610c4b57600080fd5b50356001600160a01b0316612d6a565b6105a360048036036060811015610c7157600080fd5b506001600160a01b03813581169160208101359091169060400135612e63565b6105a360048036036060811015610ca757600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b811115610cd657600080fd5b820183602082011115610ce857600080fd5b803590602001918460018302840111600160201b83111715610d0957600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550612ec0945050505050565b610695612f18565b6105a360048036036040811015610d6857600080fd5b506001600160a01b038135169060200135612f27565b6105a360048036036060811015610d9457600080fd5b6001600160a01b0382351691602081013591810190606081016040820135600160201b811115610dc357600080fd5b820183602082011115610dd557600080fd5b803590602001918460018302840111600160201b83111715610df657600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061304d945050505050565b6105a3600480360360e0811015610e4d57600080fd5b6001600160a01b03823581169260208101359091169160408201359160608101359160808201359160a08101359181019060e0810160c0820135600160201b811115610e9857600080fd5b820183602082011115610eaa57600080fd5b803590602001918460018302840111600160201b83111715610ecb57600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061309a945050505050565b6105a3600480360360e0811015610f2257600080fd5b506001600160a01b03813581169160208101359091169060408101359060608101359060ff6080820135169060a08101359060c00135613182565b6105d36131e7565b6105a360048036036020811015610f7b57600080fd5b810190602081018135600160201b811115610f9557600080fd5b820183602082011115610fa757600080fd5b803590602001918460208302840111600160201b83111715610fc857600080fd5b50909250905061320b565b6105d360048036036040811015610fe957600080fd5b506001600160a01b038135811691602001351661339e565b6105a3600480360361012081101561101857600080fd5b506001600160a01b03813581169160208101359091169060408101359060608101359060808101359060a08101359060ff60c0820135169060e08101359061010001356133c9565b61043c6004803603604081101561107657600080fd5b506001600160a01b0381351690602001356134c0565b6105a360048036036101208110156110a357600080fd5b506001600160a01b03813581169160208101359091169060408101359060608101359060808101359060a08101359060ff60c0820135169060e08101359061010001356134eb565b6105a36004803603602081101561110157600080fd5b50356001600160a01b03166135d5565b6105a36004803603602081101561112757600080fd5b50356001600160a01b0316613755565b61043c6004803603602081101561114d57600080fd5b50356001600160a01b03166137de565b6004805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156111e35780601f106111b8576101008083540402835291602001916111e3565b820191906000526020600020905b8154815290600101906020018083116111c657829003601f168201915b505050505081565b600154600090600160a01b900460ff161561123b576040805162461bcd60e51b815260206004820152601e6024820152600080516020614b46833981519152604482015290519081900360640190fd5b6112463384846137e9565b50600192915050565b600654600160a81b900460ff16156112a5576040805162461bcd60e51b8152602060048201526014602482015273616c726561647920696e697469616c697a65642160601b604482015290519081900360640190fd5b6001600160a01b038416611300576040805162461bcd60e51b815260206004820152601a60248201527f6d6173746572206d696e7465722063616e277420626520307830000000000000604482015290519081900360640190fd5b6001600160a01b038316611351576040805162461bcd60e51b815260206004820152601360248201527207061757365722063616e27742062652030783606c1b604482015290519081900360640190fd5b6001600160a01b0382166113ac576040805162461bcd60e51b815260206004820152601860248201527f626c61636b6c69737465722063616e2774206265203078300000000000000000604482015290519081900360640190fd5b6001600160a01b0381166113fc576040805162461bcd60e51b815260206004820152601260248201527106f776e65722063616e2774206265203078360741b604482015290519081900360640190fd5b865161140f9060049060208a0190614a52565b508551611423906005906020890190614a52565b506006805460ff191660ff871617610100600160a81b0319166101006001600160a01b038781169190910291909117909155600180546001600160a01b03199081168684161790915560028054909116918416919091179055611485816138d5565b50506006805460ff60a81b1916600160a81b1790555050505050565b6114a9612733565b6001600160a01b0316336001600160a01b031614611505576040805162461bcd60e51b815260206004820152601460248201527337b7363ca7bbb732b91d103737ba1037bbb732b960611b604482015290519081900360640190fd5b60405162461bcd60e51b8152600401808060200182810382526023815260200180614e356023913960400191505060405180910390fd5b60095490565b6002546001600160a01b0316331461158b5760405162461bcd60e51b815260040180806020018281038252602c815260200180614c28602c913960400191505060405180910390fd5b611594816138f7565b6040516001600160a01b038216907f117e3210bb9aa7d9baff172026820255c6f6c30ba8999d1c2fd88e2848137c4e90600090a250565b600154600090600160a01b900460ff161561161b576040805162461bcd60e51b815260206004820152601e6024820152600080516020614b46833981519152604482015290519081900360640190fd5b8261162581613902565b156116615760405162461bcd60e51b8152600401808060200182810382526025815260200180614e586025913960400191505060405180910390fd5b3361166b81613902565b156116a75760405162461bcd60e51b8152600401808060200182810382526025815260200180614e586025913960400191505060405180910390fd5b856116b181613902565b156116ed5760405162461bcd60e51b8152600401808060200182810382526025815260200180614e586025913960400191505060405180910390fd5b6001600160a01b0387166000908152600860209081526040808320338452909152902054851115611765576040805162461bcd60e51b815260206004820152601a60248201527f746f6b656e20616c6c6f77616e636520697320746f6f206c6f77000000000000604482015290519081900360640190fd5b611770878787613923565b6001600160a01b038716600090815260086020908152604080832033845290915290205461179e9086613a54565b6001600160a01b0388166000908152600860209081526040808320338452909152902055600193505050509392505050565b6117d8612733565b6001600160a01b0316336001600160a01b031614611834576040805162461bcd60e51b815260206004820152601460248201527337b7363ca7bbb732b91d103737ba1037bbb732b960611b604482015290519081900360640190fd5b6001600160a01b0381166118795760405162461bcd60e51b815260040180806020018281038252602a815260200180614bb3602a913960400191505060405180910390fd5b600c80546001600160a01b0319166001600160a01b0383169081179091556040517fe475e580d85111348e40d8ca33cfdd74c30fe1655c2d8537a13abc10065ffa5a90600090a250565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b60065460ff1681565b60065461010090046001600160a01b031681565b600c546001600160a01b031690565b600154600090600160a01b900460ff1615611963576040805162461bcd60e51b815260206004820152601e6024820152600080516020614b46833981519152604482015290519081900360640190fd5b611246338484613ab1565b6001546001600160a01b031633146119bb576040805162461bcd60e51b815260206004820152600b60248201526a706175736572206f6e6c7960a81b604482015290519081900360640190fd5b6001805460ff60a01b191690556040517f7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b3390600090a1565b600154600090600160a01b900460ff1615611a43576040805162461bcd60e51b815260206004820152601e6024820152600080516020614b46833981519152604482015290519081900360640190fd5b336000908152600a602052604090205460ff161515600114611a9b576040805162461bcd60e51b815260206004820152600c60248201526b6d696e74657273206f6e6c7960a01b604482015290519081900360640190fd5b33611aa581613902565b15611ae15760405162461bcd60e51b8152600401808060200182810382526025815260200180614e586025913960400191505060405180910390fd5b83611aeb81613902565b15611b275760405162461bcd60e51b8152600401808060200182810382526025815260200180614e586025913960400191505060405180910390fd5b6001600160a01b038516611b76576040805162461bcd60e51b8152602060048201526011602482015270063616e2774206d696e7420746f2030783607c1b604482015290519081900360640190fd5b60008411611bcb576040805162461bcd60e51b815260206004820152601c60248201527f616d6f756e7420746f206d696e742068617320746f206265203e203000000000604482015290519081900360640190fd5b6000611bd633612718565b905080851115611c2d576040805162461bcd60e51b815260206004820152601860248201527f6d696e74657220616c6c6f77616e636520746f6f206c6f770000000000000000604482015290519081900360640190fd5b600954611c3a9086613aee565b600955611c5986611c5487611c4e83613b4f565b90613aee565b613b73565b611c638186613a54565b336000818152600b6020526040902091909155611c7f90612718565b611cc157336000818152600a6020526040808220805460ff19169055517fe94479a9f7e1952cc78f2d6baab678adc1b772d936c6583def489e524cb666929190a25b6040805186815290516001600160a01b0388169133917fab8530f87dc9b59234c4623bf917212bb2536d647574c8e7e5da92c2ede0c9f89181900360200190a36040805186815290516001600160a01b03881691600091600080516020614d428339815191529181900360200190a350600195945050505050565b600154600160a01b900460ff1615611d89576040805162461bcd60e51b815260206004820152601e6024820152600080516020614b46833981519152604482015290519081900360640190fd5b336000908152600a602052604090205460ff161515600114611de1576040805162461bcd60e51b815260206004820152600c60248201526b6d696e74657273206f6e6c7960a01b604482015290519081900360640190fd5b33611deb81613902565b15611e275760405162461bcd60e51b8152600401808060200182810382526025815260200180614e586025913960400191505060405180910390fd5b6000611e3233613b4f565b905060008311611e89576040805162461bcd60e51b815260206004820152601960248201527f6275726e20616d6f756e742068617320746f206265203e203000000000000000604482015290519081900360640190fd5b82811015611ec85760405162461bcd60e51b8152600401808060200182810382526025815260200180614c7e6025913960400191505060405180910390fd5b600954611ed59084613a54565b600955611ee633611c548386613a54565b60408051848152905133917fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5919081900360200190a26040805184815290516000913391600080516020614d428339815191529181900360200190a3505050565b6002546001600160a01b03163314611f905760405162461bcd60e51b815260040180806020018281038252602c815260200180614c28602c913960400191505060405180910390fd5b60005b8181101561201857611fbf838383818110611faa57fe5b905060200201356001600160a01b0316613c1a565b828282818110611fcb57fe5b905060200201356001600160a01b03166001600160a01b03167fffa4e6181777692565cf28528fc88fd1516ea86b56da075235fa575af6a4b85560405160405180910390a2600101611f93565b505050565b600f5460ff1660021461202f57600080fd5b600f805460ff19166003179081905560405160ff91909116907f9acd1ebb88c57afda916c7e76863b6692f70997e0a4ddd876f04abe3bdaae36890600090a2565b612078612733565b6001600160a01b0316336001600160a01b0316146120d4576040805162461bcd60e51b815260206004820152601460248201527337b7363ca7bbb732b91d103737ba1037bbb732b960611b604482015290519081900360640190fd5b6001600160a01b03811661212f576040805162461bcd60e51b815260206004820152601960248201527f7570646174655061757365723a2030783020696e76616c696400000000000000604482015290519081900360640190fd5b6001546001600160a01b0382811691161415612192576040805162461bcd60e51b815260206004820152601a60248201527f7570646174655061757365723a2073616d652061646472657373000000000000604482015290519081900360640190fd5b600180546001600160a01b0319166001600160a01b0383811691909117918290556040519116907fb80482a293ca2e013eda8683c9bd7fc8347cfdaeea5ede58cba46df502c2a60490600090a250565b600154600160a01b900460ff161561222f576040805162461bcd60e51b815260206004820152601e6024820152600080516020614b46833981519152604482015290519081900360640190fd5b61223c8585858585613c25565b5050505050565b600154600160a01b900460ff1681565b600654600160a81b900460ff16801561226f5750600f5460ff16155b61227857600080fd5b600f805460ff19166001179081905560405160ff91909116907f9acd1ebb88c57afda916c7e76863b6692f70997e0a4ddd876f04abe3bdaae36890600090a2565b6002546001600160a01b031633146123025760405162461bcd60e51b815260040180806020018281038252602c815260200180614c28602c913960400191505060405180910390fd5b60005b818110156120185761233183838381811061231c57fe5b905060200201356001600160a01b03166138f7565b82828281811061233d57fe5b905060200201356001600160a01b03166001600160a01b03167f117e3210bb9aa7d9baff172026820255c6f6c30ba8999d1c2fd88e2848137c4e60405160405180910390a2600101612305565b600061239582613b4f565b92915050565b6001600160a01b03166000908152600e602052604090205490565b7fd099cc98ef71107a616c4f0f941f04c322d8e254fe26b3c6668db87aae413de881565b600154600160a01b900460ff1615612427576040805162461bcd60e51b815260206004820152601e6024820152600080516020614b46833981519152604482015290519081900360640190fd5b6002546001600160a01b031633146124705760405162461bcd60e51b815260040180806020018281038252602c815260200180614c28602c913960400191505060405180910390fd5b61247981613902565b6124b45760405162461bcd60e51b8152600401808060200182810382526030815260200180614ca36030913960400191505060405180910390fd5b60006124bf82613b4f565b6009549091506124cf9082613a54565b6009556001600160a01b0382166000818152600760209081526040918290208054600160ff1b811691829055835186815293519094919391927fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5928290030190a26040805184815290516000916001600160a01b03871691600080516020614d428339815191529181900360200190a360095460408051918252517fc8b17f75f53401f272e9ee7fa431e81ba33779363238896180425a422420c8f79181900360200190a150505050565b6001546001600160a01b031633146125e7576040805162461bcd60e51b815260206004820152600b60248201526a706175736572206f6e6c7960a81b604482015290519081900360640190fd5b6001805460ff60a01b1916600160a01b1790556040517f6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff62590600090a1565b600154600160a01b900460ff1615612672576040805162461bcd60e51b815260206004820152601e6024820152600080516020614b46833981519152604482015290519081900360640190fd5b8661267c81613902565b156126b85760405162461bcd60e51b8152600401808060200182810382526025815260200180614e586025913960400191505060405180910390fd5b866126c281613902565b156126fe5760405162461bcd60e51b8152600401808060200182810382526025815260200180614e586025913960400191505060405180910390fd5b61270d89898989898989613c65565b505050505050505050565b6001600160a01b03166000908152600b602052604090205490565b6000546001600160a01b031690565b6005805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156111e35780601f106111b8576101008083540402835291602001916111e3565b6001546001600160a01b031681565b600154600160a01b900460ff16156127f9576040805162461bcd60e51b815260206004820152601e6024820152600080516020614b46833981519152604482015290519081900360640190fd5b61223c8585858585613d52565b7f7c7c6cdb67a18743f49ec6fa9b35f50d52ed05cbed4cc592e13b44501c1a226781565b60065461010090046001600160a01b03163314612883576040805162461bcd60e51b81526020600482015260126024820152716d6173746572206d696e746572206f6e6c7960701b604482015290519081900360640190fd5b6001600160a01b0382166128d4576040805162461bcd60e51b815260206004820152601360248201527206d696e7465722063616e27742062652030783606c1b604482015290519081900360640190fd5b6001600160a01b0382166000908152600a602052604090205460ff16612930576040805162461bcd60e51b815260206004820152600c60248201526b3737ba10309036b4b73a32b960a11b604482015290519081900360640190fd5b60006129458261293f85612718565b90613a54565b6001600160a01b0384166000908152600b6020526040812082905590915061296c84612718565b11156129b6576040805182815290516001600160a01b038516917f46980fca912ef9bcdbd36877427b6b90e860769f604e89c0e67720cece530d20919081900360200190a2612018565b6001600160a01b0383166000818152600a6020526040808220805460ff19169055517fe94479a9f7e1952cc78f2d6baab678adc1b772d936c6583def489e524cb666929190a2505050565b6002546001600160a01b03163314612a4a5760405162461bcd60e51b815260040180806020018281038252602c815260200180614c28602c913960400191505060405180910390fd5b60005b8181101561201857612a79838383818110612a6457fe5b905060200201356001600160a01b03166123da565b600101612a4d565b600154600090600160a01b900460ff1615612ad1576040805162461bcd60e51b815260206004820152601e6024820152600080516020614b46833981519152604482015290519081900360640190fd5b61124633848461400f565b600154600090600160a01b900460ff1615612b2c576040805162461bcd60e51b815260206004820152601e6024820152600080516020614b46833981519152604482015290519081900360640190fd5b33612b3681613902565b15612b725760405162461bcd60e51b8152600401808060200182810382526025815260200180614e586025913960400191505060405180910390fd5b83612b7c81613902565b15612bb85760405162461bcd60e51b8152600401808060200182810382526025815260200180614e586025913960400191505060405180910390fd5b612bc3338686613923565b506001949350505050565b612bd6612733565b6001600160a01b0316336001600160a01b031614612c32576040805162461bcd60e51b815260206004820152601460248201527337b7363ca7bbb732b91d103737ba1037bbb732b960611b604482015290519081900360640190fd5b6001600160a01b038116612c8d576040805162461bcd60e51b815260206004820152601a60248201527f6d6173746572206d696e7465722063616e277420626520307830000000000000604482015290519081900360640190fd5b6006546001600160a01b03828116610100909204161415612cf5576040805162461bcd60e51b815260206004820152601960248201527f6d6173746572206d696e746572206973207468652073616d6500000000000000604482015290519081900360640190fd5b60068054610100600160a81b0319166101006001600160a01b0384811682029290921792839055604051920416907fdb66dfa9c6b8f5226fe9aac7e51897ae8ee94ac31dc70bb6c9900b2574b707e690600090a250565b6001600160a01b03166000908152600a602052604090205460ff1690565b612d72612733565b6001600160a01b0316336001600160a01b031614612dce576040805162461bcd60e51b815260206004820152601460248201527337b7363ca7bbb732b91d103737ba1037bbb732b960611b604482015290519081900360640190fd5b6001600160a01b038116612e135760405162461bcd60e51b8152600401808060200182810382526032815260200180614e036032913960400191505060405180910390fd5b600280546001600160a01b0319166001600160a01b0383811691909117918290556040519116907fc67398012c111ce95ecb7429b933096c977380ee6c421175a71a4a4c6c88c06e90600090a250565b600c546001600160a01b03163314612eac5760405162461bcd60e51b8152600401808060200182810382526024815260200180614cf96024913960400191505060405180910390fd5b6120186001600160a01b038416838361405e565b600154600160a01b900460ff1615612f0d576040805162461bcd60e51b815260206004820152601e6024820152600080516020614b46833981519152604482015290519081900360640190fd5b6120188383836140b0565b6002546001600160a01b031681565b60065461010090046001600160a01b03163314612f80576040805162461bcd60e51b81526020600482015260126024820152716d6173746572206d696e746572206f6e6c7960701b604482015290519081900360640190fd5b6001600160a01b038216612fd1576040805162461bcd60e51b815260206004820152601360248201527206d696e7465722063616e27742062652030783606c1b604482015290519081900360640190fd5b6000612fe082611c4e85612718565b6001600160a01b0384166000818152600b60209081526040808320859055600a825291829020805460ff191660011790558151848152915193945091927f46980fca912ef9bcdbd36877427b6b90e860769f604e89c0e67720cece530d20929181900390910190a2505050565b6040805162461bcd60e51b815260206004820152601d60248201527f72656a6563742045495032323320746f6b656e207472616e7366657273000000604482015290519081900360640190fd5b600154600160a01b900460ff16156130e7576040805162461bcd60e51b815260206004820152601e6024820152600080516020614b46833981519152604482015290519081900360640190fd5b866130f181613902565b1561312d5760405162461bcd60e51b8152600401808060200182810382526025815260200180614e586025913960400191505060405180910390fd5b8661313781613902565b156131735760405162461bcd60e51b8152600401808060200182810382526025815260200180614e586025913960400191505060405180910390fd5b61270d89898989898989614182565b600154600160a01b900460ff16156131cf576040805162461bcd60e51b815260206004820152601e6024820152600080516020614b46833981519152604482015290519081900360640190fd5b6131de87878787878787614213565b50505050505050565b7f158b0a9edf7a828aad02f63cd515c68ef2f50ba807396f6d12842833a159742981565b600f5460ff1660011461321d57600080fd5b60005b8181101561333b576003600084848481811061323857fe5b602090810292909201356001600160a01b03168352508101919091526040016000205460ff166132995760405162461bcd60e51b815260040180806020018281038252603d815260200180614ae6603d913960400191505060405180910390fd5b6132a8838383818110611faa57fe5b600360008484848181106132b857fe5b602090810292909201356001600160a01b0316835250810191909152604001600020805460ff191690558282828181106132ee57fe5b905060200201356001600160a01b03166001600160a01b03167fffa4e6181777692565cf28528fc88fd1516ea86b56da075235fa575af6a4b85560405160405180910390a2600101613220565b5061334530613c1a565b30600090815260036020526040808220805460ff19908116909155600f805490911660021790819055905160ff91909116917f9acd1ebb88c57afda916c7e76863b6692f70997e0a4ddd876f04abe3bdaae36891a25050565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205490565b600154600160a01b900460ff1615613416576040805162461bcd60e51b815260206004820152601e6024820152600080516020614b46833981519152604482015290519081900360640190fd5b8861342081613902565b1561345c5760405162461bcd60e51b8152600401808060200182810382526025815260200180614e586025913960400191505060405180910390fd5b8861346681613902565b156134a25760405162461bcd60e51b8152600401808060200182810382526025815260200180614e586025913960400191505060405180910390fd5b6134b38b8b8b8b8b8b8b8b8b614255565b5050505050505050505050565b6001600160a01b03919091166000908152600d60209081526040808320938352929052205460ff1690565b600154600160a01b900460ff1615613538576040805162461bcd60e51b815260206004820152601e6024820152600080516020614b46833981519152604482015290519081900360640190fd5b8861354281613902565b1561357e5760405162461bcd60e51b8152600401808060200182810382526025815260200180614e586025913960400191505060405180910390fd5b8861358881613902565b156135c45760405162461bcd60e51b8152600401808060200182810382526025815260200180614e586025913960400191505060405180910390fd5b6134b38b8b8b8b8b8b8b8b8b614299565b6135dd612733565b6001600160a01b0316336001600160a01b031614613639576040805162461bcd60e51b815260206004820152601460248201527337b7363ca7bbb732b91d103737ba1037bbb732b960611b604482015290519081900360640190fd5b6001600160a01b038116613694576040805162461bcd60e51b815260206004820152601e60248201527f7472616e736665724f776e6572736869703a2030783020696e76616c69640000604482015290519081900360640190fd5b61369c612733565b6001600160a01b0316816001600160a01b03161415613702576040805162461bcd60e51b815260206004820152601f60248201527f7472616e736665724f776e6572736869703a2073616d65206164647265737300604482015290519081900360640190fd5b806001600160a01b0316613714612733565b6001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3613752816138d5565b50565b6002546001600160a01b0316331461379e5760405162461bcd60e51b815260040180806020018281038252602c815260200180614c28602c913960400191505060405180910390fd5b6137a781613c1a565b6040516001600160a01b038216907fffa4e6181777692565cf28528fc88fd1516ea86b56da075235fa575af6a4b85590600090a250565b600061239582613902565b6001600160a01b03831661382e5760405162461bcd60e51b8152600401808060200182810382526024815260200180614d876024913960400191505060405180910390fd5b6001600160a01b0382166138735760405162461bcd60e51b8152600401808060200182810382526022815260200180614b916022913960400191505060405180910390fd5b6001600160a01b03808416600081815260086020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b600080546001600160a01b0319166001600160a01b0392909216919091179055565b6137528160006142dd565b6001600160a01b031660009081526007602052604090205460ff1c60011490565b6001600160a01b0383166139685760405162461bcd60e51b8152600401808060200182810382526025815260200180614d626025913960400191505060405180910390fd5b6001600160a01b0382166139ad5760405162461bcd60e51b8152600401808060200182810382526023815260200180614b236023913960400191505060405180910390fd5b6139b683613b4f565b8111156139f45760405162461bcd60e51b8152600401808060200182810382526026815260200180614c026026913960400191505060405180910390fd5b613a0583611c548361293f87613b4f565b613a1682611c5483611c4e86613b4f565b816001600160a01b0316836001600160a01b0316600080516020614d42833981519152836040518082815260200191505060405180910390a3505050565b600082821115613aab576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b6001600160a01b038084166000908152600860209081526040808320938616835292905220546120189084908490613ae99085613aee565b6137e9565b600082820183811015613b48576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6001600160a01b03166000908152600760205260409020546001600160ff1b031690565b6001600160ff1b03811115613bb95760405162461bcd60e51b815260040180806020018281038252602a815260200180614c54602a913960400191505060405180910390fd5b613bc282613902565b15613bfe5760405162461bcd60e51b8152600401808060200182810382526025815260200180614bdd6025913960400191505060405180910390fd5b6001600160a01b03909116600090815260076020526040902055565b6137528160016142dd565b61223c8585848487604051602001808481526020018381526020018260ff1660f81b815260010193505050506040516020818303038152906040526140b0565b6001600160a01b0386163314613cac5760405162461bcd60e51b8152600401808060200182810382526025815260200180614d1d6025913960400191505060405180910390fd5b613cb887838686614330565b604080517fd099cc98ef71107a616c4f0f941f04c322d8e254fe26b3c6668db87aae413de86020808301919091526001600160a01b03808b1683850152891660608301526080820188905260a0820187905260c0820186905260e0808301869052835180840390910181526101009092019092528051910120613d3d908890836143bc565b613d478783614513565b6131de878787613923565b600019821480613d625750428210155b613db3576040805162461bcd60e51b815260206004820152601e60248201527f46696174546f6b656e56323a207065726d697420697320657870697265640000604482015290519081900360640190fd5b6000613e46613dc061456d565b6001600160a01b038089166000818152600e60209081526040918290205482517f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98184015280840194909452938b166060840152608083018a905260a083019390935260c08083018990528151808403909101815260e09092019052805191012061462d565b90507326ea411d85de05f194422f7fbecc329071040b5a636ccea6528783856040518463ffffffff1660e01b815260040180846001600160a01b0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015613ec6578181015183820152602001613eae565b50505050905090810190601f168015613ef35780820380516001836020036101000a031916815260200191505b5094505050505060206040518083038186803b158015613f1257600080fd5b505af4158015613f26573d6000803e3d6000fd5b505050506040513d6020811015613f3c57600080fd5b5051613f8f576040805162461bcd60e51b815260206004820152601a60248201527f454950323631323a20696e76616c6964207369676e6174757265000000000000604482015290519081900360640190fd5b613f9a8686866137e9565b6001600160a01b0386166000818152600e602090815260409182902054825190815291517f1866e09d34a3ce76138ae60f66355320cd8ef57ea6cc16c33306c32aa3f140e79281900390910190a25050506001600160a01b039092166000908152600e60205260409020805460010190555050565b6120188383613ae984604051806060016040528060258152602001614ea2602591396001600160a01b03808a166000908152600860209081526040808320938c1683529290522054919061464c565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526120189084906146e3565b6140ba8383614794565b614127837f158b0a9edf7a828aad02f63cd515c68ef2f50ba807396f6d12842833a159742960001b858560405160200180848152602001836001600160a01b03168152602001828152602001935050505060405160208183030381529060405280519060200120836143bc565b6001600160a01b0383166000818152600d60209081526040808320868452909152808220805460ff19166001179055518492917f1cdd46ff242716cdaa72d159d339a485b3438398348d68f09d7c8c0a59353d8191a3505050565b61418e87838686614330565b604080517f7c7c6cdb67a18743f49ec6fa9b35f50d52ed05cbed4cc592e13b44501c1a22676020808301919091526001600160a01b03808b1683850152891660608301526080820188905260a0820187905260c0820186905260e0808301869052835180840390910181526101009092019092528051910120613d3d908890836143bc565b6131de87878787868689604051602001808481526020018381526020018260ff1660f81b81526001019350505050604051602081830303815290604052613d52565b61270d89898989898988888b604051602001808481526020018381526020018260ff1660f81b81526001019350505050604051602081830303815290604052614182565b61270d89898989898988888b604051602001808481526020018381526020018260ff1660f81b81526001019350505050604051602081830303815290604052613c65565b806142f0576142eb82613b4f565b614310565b6001600160a01b038216600090815260076020526040902054600160ff1b175b6001600160a01b0390921660009081526007602052604090209190915550565b81421161436e5760405162461bcd60e51b815260040180806020018281038252602b815260200180614b66602b913960400191505060405180910390fd5b8042106143ac5760405162461bcd60e51b8152600401808060200182810382526025815260200180614e7d6025913960400191505060405180910390fd5b6143b68484614794565b50505050565b7326ea411d85de05f194422f7fbecc329071040b5a636ccea652846143e86143e261456d565b8661462d565b846040518463ffffffff1660e01b815260040180846001600160a01b0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561444a578181015183820152602001614432565b50505050905090810190601f1680156144775780820380516001836020036101000a031916815260200191505b5094505050505060206040518083038186803b15801561449657600080fd5b505af41580156144aa573d6000803e3d6000fd5b505050506040513d60208110156144c057600080fd5b5051612018576040805162461bcd60e51b815260206004820152601e60248201527f46696174546f6b656e56323a20696e76616c6964207369676e61747572650000604482015290519081900360640190fd5b6001600160a01b0382166000818152600d60209081526040808320858452909152808220805460ff19166001179055518392917f98de503528ee59b575ef0c0a2576a82497bfc029a5685b209e9ec333479b10a591a35050565b6004805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815260009361462893919290918301828280156145fc5780601f106145d1576101008083540402835291602001916145fc565b820191906000526020600020905b8154815290600101906020018083116145df57829003601f168201915b5050505050604051806040016040528060018152602001601960f91b8152506146236147fb565b6147ff565b905090565b60405161190160f01b8152600281019290925260228201526042902090565b600081848411156146db5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156146a0578181015183820152602001614688565b50505050905090810190601f1680156146cd5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6060614738826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166148739092919063ffffffff16565b8051909150156120185780806020019051602081101561475757600080fd5b50516120185760405162461bcd60e51b815260040180806020018281038252602a815260200180614dab602a913960400191505060405180910390fd5b6001600160a01b0382166000908152600d6020908152604080832084845290915290205460ff16156147f75760405162461bcd60e51b815260040180806020018281038252602e815260200180614dd5602e913960400191505060405180910390fd5b5050565b4690565b8251602093840120825192840192909220604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f8187015280820194909452606084019190915260808301919091523060a0808401919091528151808403909101815260c09092019052805191012090565b6060614882848460008561488a565b949350505050565b6060824710156148cb5760405162461bcd60e51b8152600401808060200182810382526026815260200180614cd36026913960400191505060405180910390fd5b6148d4856149e6565b614925576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106149645780518252601f199092019160209182019101614945565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146149c6576040519150601f19603f3d011682016040523d82523d6000602084013e6149cb565b606091505b50915091506149db8282866149ec565b979650505050505050565b3b151590565b606083156149fb575081613b48565b825115614a0b5782518084602001fd5b60405162461bcd60e51b81526020600482018181528451602484015284518593919283926044019190850190808383600083156146a0578181015183820152602001614688565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10614a9357805160ff1916838001178555614ac0565b82800160010185558215614ac0579182015b82811115614ac0578251825591602001919060010190614aa5565b50614acc929150614ad0565b5090565b5b80821115614acc5760008155600101614ad156fe46696174546f6b656e56325f313a20426c61636b6c697374696e672070726576696f75736c7920756e626c61636b6c6973746564206163636f756e742145524332303a207472616e7366657220746f20746865207a65726f20616464726573737768656e4e6f745061757365643a20636f6e747261637420706175736564000046696174546f6b656e56323a20617574686f72697a6174696f6e206973206e6f74207965742076616c696445524332303a20617070726f766520746f20746865207a65726f2061646472657373526573637561626c653a206e6577207265736375657220697320746865207a65726f206164647265737346696174546f6b656e56325f323a204163636f756e7420697320626c61636b6c697374656445524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365426c61636b6c69737461626c653a2063616c6c6572206973206e6f742074686520626c61636b6c697374657246696174546f6b656e56325f323a2042616c616e636520657863656564732028325e323535202d20312962616c616e636520696e206d696e746572206973203c20616d6f756e7420746f206275726e43616e277420776970652062616c616e636573206f662061206e6f6e20626c61636b6c69737465642061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c526573637561626c653a2063616c6c6572206973206e6f7420746865207265736375657246696174546f6b656e56323a2063616c6c6572206d75737420626520746865207061796565ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef45524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f20616464726573735361666545524332303a204552433230206f7065726174696f6e20646964206e6f74207375636365656446696174546f6b656e56323a20617574686f72697a6174696f6e2069732075736564206f722063616e63656c6564426c61636b6c69737461626c653a206e657720626c61636b6c697374657220697320746865207a65726f206164647265737346756e6374696f6e207265636c61696d546f6b656e2069732064657072656361746564426c61636b6c69737461626c653a206163636f756e7420697320626c61636b6c697374656446696174546f6b656e56323a20617574686f72697a6174696f6e206973206578706972656445524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220b61232cfc903d5496817133be778aa89fda41cb0bd976a544116a4908fa9277464736f6c634300060c0033","name":"FiatTokenV2_2","is_blueprint":false,"license_type":"none","is_fully_verified":false,"is_verified_via_eth_bytecode_db":true,"language":"solidity","evm_version":"istanbul","can_be_visualized_via_sol2uml":true,"is_verified_via_sourcify":false,"additional_sources":[{"file_path":"contracts/interface/IERC1271.sol","source_code":"/**\n * SPDX-License-Identifier: Apache-2.0\n *\n * Copyright (c) 2023, Circle Internet Financial, LLC.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\npragma solidity 0.6.12;\n\n/**\n * @dev Interface of the ERC1271 standard signature validation method for\n * contracts as defined in https://eips.ethereum.org/EIPS/eip-1271[ERC-1271].\n */\ninterface IERC1271 {\n    /**\n     * @dev Should return whether the signature provided is valid for the provided data\n     * @param hash          Hash of the data to be signed\n     * @param signature     Signature byte array associated with the provided data hash\n     * @return magicValue   bytes4 magic value 0x1626ba7e when function passes\n     */\n    function isValidSignature(bytes32 hash, bytes memory signature)\n        external\n        view\n        returns (bytes4 magicValue);\n}\n"},{"file_path":"contracts/interface/IERC20.sol","source_code":"// 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)\n        external\n        view\n        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)\n        external\n        returns (bool);\n\n    /**\n     * @dev Emitted when `amount` tokens are moved from one account (`from`) to\n     * another (`to`).\n     *\n     * Note that `amount` may be zero.\n     */\n    event Transfer(address indexed from, address indexed to, uint256 amount);\n\n    /**\n     * @dev Emitted when the allowance of a `spender` for an `owner` is set by\n     * a call to {approve}. `amount` is the new allowance.\n     */\n    event Approval(\n        address indexed owner, address indexed spender, uint256 amount\n    );\n}\n"},{"file_path":"contracts/util/ECRecover.sol","source_code":"/**\n * SPDX-License-Identifier: Apache-2.0\n *\n * Copyright (c) 2023, Circle Internet Financial, LLC.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\npragma solidity 0.6.12;\n\n/**\n * @title ECRecover\n * @notice A library that provides a safe ECDSA recovery function\n */\nlibrary ECRecover {\n    /**\n     * @notice Recover signer's address from a signed message\n     * @dev Adapted from: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/65e4ffde586ec89af3b7e9140bdc9235d1254853/contracts/cryptography/ECDSA.sol\n     * Modifications: Accept v, r, and s as separate arguments\n     * @param digest    Keccak-256 hash digest of the signed message\n     * @param v         v of the signature\n     * @param r         r of the signature\n     * @param s         s of the signature\n     * @return Signer address\n     */\n    function recover(bytes32 digest, uint8 v, bytes32 r, bytes32 s)\n        internal\n        pure\n        returns (address)\n    {\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        if (\n            uint256(s)\n                > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0\n        ) {\n            revert(\"ECRecover: invalid signature 's' value\");\n        }\n\n        if (v != 27 && v != 28) {\n            revert(\"ECRecover: invalid signature 'v' value\");\n        }\n\n        // If the signature is valid (and not malleable), return the signer address\n        address signer = ecrecover(digest, v, r, s);\n        require(signer != address(0), \"ECRecover: invalid signature\");\n\n        return signer;\n    }\n\n    /**\n     * @notice Recover signer's address from a signed message\n     * @dev Adapted from: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/0053ee040a7ff1dbc39691c9e67a69f564930a88/contracts/utils/cryptography/ECDSA.sol\n     * @param digest    Keccak-256 hash digest of the signed message\n     * @param signature Signature byte array associated with hash\n     * @return Signer address\n     */\n    function recover(bytes32 digest, bytes memory signature)\n        internal\n        pure\n        returns (address)\n    {\n        require(signature.length == 65, \"ECRecover: invalid signature length\");\n\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        /// @solidity memory-safe-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        return recover(digest, v, r, s);\n    }\n}\n"},{"file_path":"contracts/util/EIP712.sol","source_code":"/**\n * SPDX-License-Identifier: Apache-2.0\n *\n * Copyright (c) 2023, Circle Internet Financial, LLC.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\npragma solidity 0.6.12;\n\n/**\n * @title EIP712\n * @notice A library that provides EIP712 helper functions\n */\nlibrary EIP712 {\n    /**\n     * @notice Make EIP712 domain separator\n     * @param name      Contract name\n     * @param version   Contract version\n     * @param chainId   Blockchain ID\n     * @return Domain separator\n     */\n    function makeDomainSeparator(\n        string memory name,\n        string memory version,\n        uint256 chainId\n    ) internal view returns (bytes32) {\n        return keccak256(\n            abi.encode(\n                // keccak256(\"EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)\")\n                0x8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f,\n                keccak256(bytes(name)),\n                keccak256(bytes(version)),\n                chainId,\n                address(this)\n            )\n        );\n    }\n\n    /**\n     * @notice Make EIP712 domain separator\n     * @param name      Contract name\n     * @param version   Contract version\n     * @return Domain separator\n     */\n    function makeDomainSeparator(string memory name, string memory version)\n        internal\n        view\n        returns (bytes32)\n    {\n        uint256 chainId;\n        assembly {\n            chainId := chainid()\n        }\n        return makeDomainSeparator(name, version, chainId);\n    }\n}\n"},{"file_path":"contracts/util/MessageHashUtils.sol","source_code":"/**\n * SPDX-License-Identifier: Apache-2.0\n *\n * Copyright (c) 2023, Circle Internet Financial, LLC.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\npragma solidity 0.6.12;\n\n/**\n * @dev Signature message hash utilities for producing digests to be consumed by {ECDSA} recovery or signing.\n *\n * The library provides methods for generating a hash of a message that conforms to the\n * https://eips.ethereum.org/EIPS/eip-191[EIP 191] and https://eips.ethereum.org/EIPS/eip-712[EIP 712]\n * specifications.\n */\nlibrary MessageHashUtils {\n    /**\n     * @dev Returns the keccak256 digest of an EIP-712 typed data (EIP-191 version `0x01`).\n     * Adapted from https://github.com/OpenZeppelin/openzeppelin-contracts/blob/21bb89ef5bfc789b9333eb05e3ba2b7b284ac77c/contracts/utils/cryptography/MessageHashUtils.sol\n     *\n     * The digest is calculated from a `domainSeparator` and a `structHash`, by prefixing them with\n     * `\\x19\\x01` and hashing the result. It corresponds to the hash signed by the\n     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] JSON-RPC method as part of EIP-712.\n     *\n     * @param domainSeparator    Domain separator\n     * @param structHash         Hashed EIP-712 data struct\n     * @return digest            The keccak256 digest of an EIP-712 typed data\n     */\n    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash)\n        internal\n        pure\n        returns (bytes32 digest)\n    {\n        assembly {\n            let ptr := mload(0x40)\n            mstore(ptr, \"\\x19\\x01\")\n            mstore(add(ptr, 0x02), domainSeparator)\n            mstore(add(ptr, 0x22), structHash)\n            digest := keccak256(ptr, 0x42)\n        }\n    }\n}\n"},{"file_path":"contracts/v1/Blacklistable.sol","source_code":"/**\n * SPDX-License-Identifier: Apache-2.0\n *\n * Copyright (c) 2023, Circle Internet Financial, LLC.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\npragma solidity 0.6.12;\n\nimport { Ownable } from \"./Ownable.sol\";\n\n/**\n * @title Blacklistable Token\n * @dev Allows accounts to be blacklisted by a \"blacklister\" role\n */\nabstract contract Blacklistable is Ownable {\n    address public blacklister;\n    mapping(address => bool) internal _deprecatedBlacklisted;\n\n    event Blacklisted(address indexed _account);\n    event UnBlacklisted(address indexed _account);\n    event BlacklisterChanged(address indexed newBlacklister);\n\n    /**\n     * @dev Throws if called by any account other than the blacklister.\n     */\n    modifier onlyBlacklister() {\n        require(\n            msg.sender == blacklister,\n            \"Blacklistable: caller is not the blacklister\"\n        );\n        _;\n    }\n\n    /**\n     * @dev Throws if argument account is blacklisted.\n     * @param _account The address to check.\n     */\n    modifier notBlacklisted(address _account) {\n        require(\n            !_isBlacklisted(_account), \"Blacklistable: account is blacklisted\"\n        );\n        _;\n    }\n\n    /**\n     * @notice Checks if account is blacklisted.\n     * @param _account The address to check.\n     * @return True if the account is blacklisted, false if the account is not blacklisted.\n     */\n    function isBlacklisted(address _account) external view returns (bool) {\n        return _isBlacklisted(_account);\n    }\n\n    /**\n     * @notice Adds account to blacklist.\n     * @param _account The address to blacklist.\n     */\n    function blacklist(address _account) external onlyBlacklister {\n        _blacklist(_account);\n        emit Blacklisted(_account);\n    }\n\n    /**\n     * @notice Removes account from blacklist.\n     * @param _account The address to remove from the blacklist.\n     */\n    function unBlacklist(address _account) external onlyBlacklister {\n        _unBlacklist(_account);\n        emit UnBlacklisted(_account);\n    }\n\n    /**\n     * @notice Updates the blacklister address.\n     * @param _newBlacklister The address of the new blacklister.\n     */\n    function updateBlacklister(address _newBlacklister) external onlyOwner {\n        require(\n            _newBlacklister != address(0),\n            \"Blacklistable: new blacklister is the zero address\"\n        );\n        blacklister = _newBlacklister;\n        emit BlacklisterChanged(blacklister);\n    }\n\n    /**\n     * @dev Checks if account is blacklisted.\n     * @param _account The address to check.\n     * @return true if the account is blacklisted, false otherwise.\n     */\n    function _isBlacklisted(address _account)\n        internal\n        view\n        virtual\n        returns (bool);\n\n    /**\n     * @dev Helper method that blacklists an account.\n     * @param _account The address to blacklist.\n     */\n    function _blacklist(address _account) internal virtual;\n\n    /**\n     * @dev Helper method that unblacklists an account.\n     * @param _account The address to unblacklist.\n     */\n    function _unBlacklist(address _account) internal virtual;\n}\n"},{"file_path":"contracts/v1/FiatTokenV1.sol","source_code":"/**\n * SPDX-License-Identifier: Apache-2.0\n *\n * Copyright CENTRE SECZ 2018\n * Copyright (c) 2020 Xfers Pte. Ltd.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is furnished to\n * do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\n * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n */\n\npragma solidity 0.6.12;\n\nimport \"@openzeppelin/contracts/math/SafeMath.sol\";\nimport \"./AbstractFiatTokenV1.sol\";\nimport \"./Ownable.sol\";\nimport \"./Blacklistable.sol\";\nimport \"./Pausable.sol\";\n\n/**\n * @title FiatToken\n * @dev Token backed by fiat reserves\n */\ncontract FiatTokenV1 is AbstractFiatTokenV1, Ownable, Pausable, Blacklistable {\n    using SafeMath for uint256;\n\n    string public name;\n    string public symbol;\n    uint8 public decimals;\n    address public masterMinter;\n\n    bool internal initialized;\n\n    /// @dev A mapping that stores the balance and blacklist states for a given address.\n    /// The first bit defines whether the address is blacklisted (1 if blacklisted, 0 otherwise).\n    /// The last 255 bits define the balance for the address.\n    mapping(address => uint256) internal balanceAndBlacklistStates;\n    mapping(address => mapping(address => uint256)) internal allowed;\n    uint256 internal totalSupply_ = 0;\n    mapping(address => bool) internal minters;\n    mapping(address => uint256) internal minterAllowed;\n\n    event Mint(address indexed minter, address indexed to, uint256 amount);\n    event Burn(address indexed burner, uint256 amount);\n    event MinterConfigured(address indexed minter, uint256 minterAllowedAmount);\n    event MinterRemoved(address indexed oldMinter);\n    event MasterMinterChanged(address indexed newMasterMinter);\n\n    /**\n     * @dev Throws if called by any account other than a minter\n     */\n    modifier onlyMinters() {\n        require(minters[msg.sender] == true, \"minters only\");\n        _;\n    }\n\n    /**\n     * @dev Throws if called by any account other than the masterMinter\n     */\n    modifier onlyMasterMinter() {\n        require(msg.sender == masterMinter, \"master minter only\");\n        _;\n    }\n\n    /**\n     * @dev Function to initialise contract\n     * @param _name string Token name\n     * @param _symbol string Token symbol\n     * @param _decimals uint8 Token decimals\n     * @param _masterMinter address Address of the master minter\n     * @param _pauser address Address of the pauser\n     * @param _blacklister address Address of the blacklister\n     * @param _owner address Address of the owner\n     */\n    function initialize(\n        string memory _name,\n        string memory _symbol,\n        uint8 _decimals,\n        address _masterMinter,\n        address _pauser,\n        address _blacklister,\n        address _owner\n    ) public {\n        require(!initialized, \"already initialized!\");\n        require(_masterMinter != address(0), \"master minter can't be 0x0\");\n        require(_pauser != address(0), \"pauser can't be 0x0\");\n        require(_blacklister != address(0), \"blacklister can't be 0x0\");\n        require(_owner != address(0), \"owner can't be 0x0\");\n\n        name = _name;\n        symbol = _symbol;\n        decimals = _decimals;\n        masterMinter = _masterMinter;\n        pauser = _pauser;\n        blacklister = _blacklister;\n        setOwner(_owner);\n        initialized = true;\n    }\n\n    /**\n     * @dev Function to mint tokens\n     * Validates that the contract is not paused\n     * only minters can call this function\n     * minter and the address that will received the minted tokens are not blacklisted\n     * @param _to address The address that will receive the minted tokens.\n     * @param _amount uint256 The amount of tokens to mint. Must be less than or equal to the minterAllowance of the caller.\n     * @return True if the operation was successful.\n     */\n    function mint(address _to, uint256 _amount)\n        public\n        whenNotPaused\n        onlyMinters\n        notBlacklisted(msg.sender)\n        notBlacklisted(_to)\n        returns (bool)\n    {\n        require(_to != address(0), \"can't mint to 0x0\");\n        require(_amount > 0, \"amount to mint has to be > 0\");\n\n        uint256 mintingAllowedAmount = minterAllowance(msg.sender);\n        require(_amount <= mintingAllowedAmount, \"minter allowance too low\");\n\n        totalSupply_ = totalSupply_.add(_amount);\n        _setBalance(_to, _balanceOf(_to).add(_amount));\n        minterAllowed[msg.sender] = mintingAllowedAmount.sub(_amount);\n        if (minterAllowance(msg.sender) == 0) {\n            minters[msg.sender] = false;\n            emit MinterRemoved(msg.sender);\n        }\n        emit Mint(msg.sender, _to, _amount);\n        emit Transfer(address(0), _to, _amount);\n        return true;\n    }\n\n    /**\n     * @dev Function to get minter allowance of an address\n     * @param _minter address The address of check minter allowance of\n     * @return The minter allowance of the address\n     */\n    function minterAllowance(address _minter) public view returns (uint256) {\n        return minterAllowed[_minter];\n    }\n\n    /**\n     * @dev Function to check if an address is a minter\n     * @param _address The address to check\n     * @return A boolean value to indicates if an address is a minter\n     */\n    function isMinter(address _address) public view returns (bool) {\n        return minters[_address];\n    }\n\n    /**\n     * @dev Function to get total supply of token\n     * @return The total supply of the token\n     */\n    function totalSupply() public view override returns (uint256) {\n        return totalSupply_;\n    }\n\n    /**\n     * @dev Function to get token balance of an address\n     * @param _address address The account\n     * @return The token balance of an address\n     */\n    function balanceOf(address _address)\n        public\n        view\n        override\n        returns (uint256)\n    {\n        return _balanceOf(_address);\n    }\n\n    /**\n     * @dev Function to approves a spender to spend up to a certain amount of tokens\n     * Validates that the contract is not paused\n     * the owner and spender are not blacklisted\n     * Avoid calling this function if possible (https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729)\n     * @param _spender address The Address of the spender\n     * @param _amount uint256 The amount of tokens that the spender is approved to spend\n     * @return True if the operation was successful.\n     */\n    function approve(address _spender, uint256 _amount)\n        public\n        virtual\n        override\n        whenNotPaused\n        notBlacklisted(msg.sender)\n        notBlacklisted(_spender)\n        returns (bool)\n    {\n        return _approve(_spender, _amount);\n    }\n\n    /**\n     * @dev Alternative function to the approve function\n     * Increases the allowance of the spender\n     * Validates that the contract is not paused\n     * the owner and spender are not blacklisted\n     * @param _spender address The Address of the spender\n     * @param _addedValue uint256 The amount of tokens to be added to a spender's allowance\n     * @return True if the operation was successful.\n     */\n    function increaseAllowance(address _spender, uint256 _addedValue)\n        public\n        virtual\n        whenNotPaused\n        notBlacklisted(msg.sender)\n        notBlacklisted(_spender)\n        returns (bool)\n    {\n        uint256 updatedAllowance = allowed[msg.sender][_spender].add(\n            _addedValue\n        );\n        return _approve(_spender, updatedAllowance);\n    }\n\n    /**\n     * @dev Alternative function to the approve function\n     * Decreases the allowance of the spender\n     * Validates that the contract is not paused\n     * the owner and spender are not blacklisted\n     * @param _spender address The Address of the spender\n     * @param _subtractedValue uint256 The amount of tokens to be subtracted from a spender's allowance\n     * @return True if the operation was successful.\n     */\n    function decreaseAllowance(address _spender, uint256 _subtractedValue)\n        public\n        virtual\n        whenNotPaused\n        notBlacklisted(msg.sender)\n        notBlacklisted(_spender)\n        returns (bool)\n    {\n        uint256 updatedAllowance = allowed[msg.sender][_spender].sub(\n            _subtractedValue\n        );\n        return _approve(_spender, updatedAllowance);\n    }\n\n    /**\n     * @dev Function to approves a spender to spend up to a certain amount of tokens\n     * @param _spender address The Address of the spender\n     * @param _amount uint256 The amount of tokens that the spender is approved to spend\n     */\n    function _approve(address _spender, uint256 _amount)\n        internal\n        returns (bool)\n    {\n        allowed[msg.sender][_spender] = _amount;\n        emit Approval(msg.sender, _spender, _amount);\n        return true;\n    }\n\n    /**\n     * @dev Internal function to set allowance.\n     * @param _owner     Token owner's address.\n     * @param _spender   Spender's address.\n     * @param _amount     Allowance amount.\n     */\n    function _approve(address _owner, address _spender, uint256 _amount)\n        internal\n        override\n    {\n        require(_owner != address(0), \"ERC20: approve from the zero address\");\n        require(_spender != address(0), \"ERC20: approve to the zero address\");\n        allowed[_owner][_spender] = _amount;\n        emit Approval(_owner, _spender, _amount);\n    }\n\n    /**\n     * @dev Function to get token allowance given to a spender by the owner\n     * @param _owner address The address of the owner\n     * @param _spender address The address of the spender\n     * @return The number of tokens that a spender can spend on behalf of the owner\n     */\n    function allowance(address _owner, address _spender)\n        public\n        view\n        override\n        returns (uint256)\n    {\n        return allowed[_owner][_spender];\n    }\n\n    /**\n     * @dev Function to transfer tokens from one address to another.\n     * Validates that the contract is not paused\n     * the caller, sender and receiver of the tokens are not blacklisted\n     * @param _from address The address which you want to send tokens from\n     * @param _to address The address which you want to transfer to\n     * @param _amount uint256 the amount of tokens to be transferred\n     * @return True if the operation was successful.\n     */\n    function transferFrom(address _from, address _to, uint256 _amount)\n        public\n        override\n        whenNotPaused\n        notBlacklisted(_to)\n        notBlacklisted(msg.sender)\n        notBlacklisted(_from)\n        returns (bool)\n    {\n        require(\n            _amount <= allowed[_from][msg.sender], \"token allowance is too low\"\n        );\n\n        _transfer(_from, _to, _amount);\n        allowed[_from][msg.sender] = allowed[_from][msg.sender].sub(_amount);\n        return true;\n    }\n\n    /**\n     * @dev Function to transfer token to a specified address\n     * Validates that the contract is not paused\n     * The sender and receiver are not blacklisted\n     * @param _to The address to transfer to.\n     * @param _amount The amount of tokens to be transferred.\n     * @return True if the operation is successful\n     */\n    function transfer(address _to, uint256 _amount)\n        public\n        override\n        whenNotPaused\n        notBlacklisted(msg.sender)\n        notBlacklisted(_to)\n        returns (bool)\n    {\n        _transfer(msg.sender, _to, _amount);\n        return true;\n    }\n\n    /**\n     * @dev Internal function to process transfers.\n     * @param _from  Payer's address.\n     * @param _to    Payee's address.\n     * @param _amount Transfer amount.\n     */\n    function _transfer(address _from, address _to, uint256 _amount)\n        internal\n        override\n    {\n        require(_from != address(0), \"ERC20: transfer from the zero address\");\n        require(_to != address(0), \"ERC20: transfer to the zero address\");\n        require(\n            _amount <= _balanceOf(_from),\n            \"ERC20: transfer amount exceeds balance\"\n        );\n\n        _setBalance(_from, _balanceOf(_from).sub(_amount));\n        _setBalance(_to, _balanceOf(_to).add(_amount));\n        emit Transfer(_from, _to, _amount);\n    }\n\n    /**\n     * @dev Function to increase minter allowance of a minter\n     * Validates that only the master minter can call this function\n     * @param _minter address The address of the minter\n     * @param _increasedAmount uint256 The amount of to be added to a minter's allowance\n     */\n    function increaseMinterAllowance(address _minter, uint256 _increasedAmount)\n        public\n        onlyMasterMinter\n    {\n        require(_minter != address(0), \"minter can't be 0x0\");\n        uint256 updatedAllowance =\n            minterAllowance(_minter).add(_increasedAmount);\n        minterAllowed[_minter] = updatedAllowance;\n        minters[_minter] = true;\n        emit MinterConfigured(_minter, updatedAllowance);\n    }\n\n    /**\n     * @dev Function to decrease minter allowance of a minter\n     * Validates that only the master minter can call this function\n     * @param _minter address The address of the minter\n     * @param _decreasedAmount uint256 The amount of allowance to be subtracted from a minter's allowance\n     */\n    function decreaseMinterAllowance(address _minter, uint256 _decreasedAmount)\n        public\n        onlyMasterMinter\n    {\n        require(_minter != address(0), \"minter can't be 0x0\");\n        require(minters[_minter], \"not a minter\");\n\n        uint256 updatedAllowance =\n            minterAllowance(_minter).sub(_decreasedAmount);\n        minterAllowed[_minter] = updatedAllowance;\n        if (minterAllowance(_minter) > 0) {\n            emit MinterConfigured(_minter, updatedAllowance);\n        } else {\n            minters[_minter] = false;\n            emit MinterRemoved(_minter);\n        }\n    }\n\n    /**\n     * @dev Function to allow a minter to burn some of its own tokens\n     * Validates that the contract is not paused\n     * caller is a minter and is not blacklisted\n     * amount is less than or equal to the minter's mint allowance balance\n     * @param _amount uint256 the amount of tokens to be burned\n     */\n    function burn(uint256 _amount)\n        public\n        whenNotPaused\n        onlyMinters\n        notBlacklisted(msg.sender)\n    {\n        uint256 balance = _balanceOf(msg.sender);\n        require(_amount > 0, \"burn amount has to be > 0\");\n        require(balance >= _amount, \"balance in minter is < amount to burn\");\n\n        totalSupply_ = totalSupply_.sub(_amount);\n        _setBalance(msg.sender, balance.sub(_amount));\n        emit Burn(msg.sender, _amount);\n        emit Transfer(msg.sender, address(0), _amount);\n    }\n\n    /**\n     * @dev Function to allow the blacklister to burn entire balance of tokens from a blacklisted address\n     * Validates that contract is not paused\n     * caller is the blacklister\n     * address to burn tokens from is a blacklisted address\n     * @param _from address the address to burn tokens from\n     */\n    function lawEnforcementWipingBurn(address _from)\n        public\n        virtual\n        whenNotPaused\n        onlyBlacklister\n    {\n        require(\n            _isBlacklisted(_from),\n            \"Can't wipe balances of a non blacklisted address\"\n        );\n        uint256 balance = _balanceOf(_from);\n        totalSupply_ = totalSupply_.sub(balance);\n        _setBalance(_from, 0);\n        emit Burn(_from, balance);\n        emit Transfer(_from, address(0), balance);\n    }\n\n    /**\n     * @dev Function to update the masterMinter role\n     * Validates that the caller is the owner\n     */\n    function updateMasterMinter(address _newMasterMinter) public onlyOwner {\n        require(_newMasterMinter != address(0), \"master minter can't be 0x0\");\n        require(_newMasterMinter != masterMinter, \"master minter is the same\");\n        masterMinter = _newMasterMinter;\n        emit MasterMinterChanged(masterMinter);\n    }\n\n    /**\n     * @dev Function to reject all EIP223 compatible tokens\n     * @param _from address The address that is transferring the tokens\n     * @param _value uint256 the amount of the specified token\n     * @param _data bytes The data passed from the caller\n     */\n    function tokenFallback(address _from, uint256 _value, bytes memory _data)\n        external\n        pure\n    {\n        revert(\"reject EIP223 token transfers\");\n    }\n\n    /**\n     * @inheritdoc Blacklistable\n     */\n    function _blacklist(address _account) internal override {\n        _setBlacklistState(_account, true);\n    }\n\n    /**\n     * @inheritdoc Blacklistable\n     */\n    function _unBlacklist(address _account) internal override {\n        _setBlacklistState(_account, false);\n    }\n\n    /**\n     * @dev Helper method that sets the blacklist state of an account.\n     * @param _account         The address of the account.\n     * @param _shouldBlacklist True if the account should be blacklisted, false if the account should be unblacklisted.\n     */\n    function _setBlacklistState(address _account, bool _shouldBlacklist)\n        internal\n        virtual\n    {\n        _deprecatedBlacklisted[_account] = _shouldBlacklist;\n    }\n\n    /**\n     * @inheritdoc Blacklistable\n     */\n    function _isBlacklisted(address _account)\n        internal\n        view\n        virtual\n        override\n        returns (bool)\n    {\n        return _deprecatedBlacklisted[_account];\n    }\n\n    /**\n     * @dev Helper method that sets the balance of an account.\n     * @param _account The address of the account.\n     * @param _balance The new fiat token balance of the account.\n     */\n    function _setBalance(address _account, uint256 _balance) internal virtual {\n        balanceAndBlacklistStates[_account] = _balance;\n    }\n\n    /**\n     * @dev Helper method to obtain the balance of an account.\n     * @param _account  The address of the account.\n     * @return          The fiat token balance of the account.\n     */\n    function _balanceOf(address _account)\n        internal\n        view\n        virtual\n        returns (uint256)\n    {\n        return balanceAndBlacklistStates[_account];\n    }\n\n    /**\n     * DEPRECATED in V2 and after\n     * @dev Function to reclaim all ERC20Recovery compatible tokens\n     * Validates that the caller is the owner\n     * @param _tokenAddress address The address of the token contract\n     */\n    function reclaimToken(address _tokenAddress) external onlyOwner {\n        revert(\"Function reclaimToken is deprecated\");\n    }\n}\n"},{"file_path":"contracts/v2/FiatTokenV2.sol","source_code":"/**\n * SPDX-License-Identifier: Apache-2.0\n *\n * Copyright (c) 2023, Circle Internet Financial, LLC.\n * Copyright (c) 2023 Xfers Pte. Ltd.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\npragma solidity 0.6.12;\n\nimport { EIP712Domain } from \"./EIP712Domain.sol\";\nimport { FiatTokenV1_1 } from \"../v1.1/FiatTokenV1_1.sol\";\nimport { EIP712 } from \"../util/EIP712.sol\";\nimport { EIP3009 } from \"./EIP3009.sol\";\nimport { EIP2612 } from \"./EIP2612.sol\";\n\n/**\n * @title FiatToken V2\n * @notice ERC20 Token backed by fiat reserves, version 2\n */\ncontract FiatTokenV2 is FiatTokenV1_1, EIP3009, EIP2612 {\n    uint8 internal _initializedVersion;\n\n    event VersionInitialized(uint8 indexed version);\n\n    /**\n     * @notice Initialize v2\n     */\n    function initializeV2() external {\n        require(initialized && _initializedVersion == 0);\n        _initializedVersion = 1;\n        emit VersionInitialized(_initializedVersion);\n    }\n\n    /**\n     * @dev Internal function to get the current chain id.\n     * @return The current chain id.\n     */\n    function _chainId() internal view virtual returns (uint256) {\n        uint256 chainId;\n        assembly {\n            chainId := chainid()\n        }\n        return chainId;\n    }\n\n    /**\n     * @inheritdoc EIP712Domain\n     */\n    function _domainSeparator() internal view override returns (bytes32) {\n        return EIP712.makeDomainSeparator(name, \"2\", _chainId());\n    }\n\n    /**\n     * @notice Increase the allowance by a given increment\n     * @param spender   Spender's address\n     * @param increment Amount of increase in allowance\n     * @return True if successful\n     */\n    function increaseAllowance(address spender, uint256 increment)\n        public\n        virtual\n        override\n        whenNotPaused\n        notBlacklisted(msg.sender)\n        notBlacklisted(spender)\n        returns (bool)\n    {\n        _increaseAllowance(msg.sender, spender, increment);\n        return true;\n    }\n\n    /**\n     * @notice Decrease the allowance by a given decrement\n     * @param spender   Spender's address\n     * @param decrement Amount of decrease in allowance\n     * @return True if successful\n     */\n    function decreaseAllowance(address spender, uint256 decrement)\n        public\n        virtual\n        override\n        whenNotPaused\n        notBlacklisted(msg.sender)\n        notBlacklisted(spender)\n        returns (bool)\n    {\n        _decreaseAllowance(msg.sender, spender, decrement);\n        return true;\n    }\n\n    /**\n     * @notice Execute a transfer with a signed authorization\n     * @param from          Payer's address (Authorizer)\n     * @param to            Payee's address\n     * @param value         Amount to be transferred\n     * @param validAfter    The time after which this is valid (unix time)\n     * @param validBefore   The time before which this is valid (unix time)\n     * @param nonce         Unique nonce\n     * @param v             v of the signature\n     * @param r             r of the signature\n     * @param s             s of the signature\n     */\n    function transferWithAuthorization(\n        address from,\n        address to,\n        uint256 value,\n        uint256 validAfter,\n        uint256 validBefore,\n        bytes32 nonce,\n        uint8 v,\n        bytes32 r,\n        bytes32 s\n    ) external whenNotPaused notBlacklisted(from) notBlacklisted(to) {\n        _transferWithAuthorization(\n            from, to, value, validAfter, validBefore, nonce, v, r, s\n        );\n    }\n\n    /**\n     * @notice Receive a transfer with a signed authorization from the payer\n     * @dev This has an additional check to ensure that the payee's address\n     * matches the caller of this function to prevent front-running attacks.\n     * @param from          Payer's address (Authorizer)\n     * @param to            Payee's address\n     * @param value         Amount to be transferred\n     * @param validAfter    The time after which this is valid (unix time)\n     * @param validBefore   The time before which this is valid (unix time)\n     * @param nonce         Unique nonce\n     * @param v             v of the signature\n     * @param r             r of the signature\n     * @param s             s of the signature\n     */\n    function receiveWithAuthorization(\n        address from,\n        address to,\n        uint256 value,\n        uint256 validAfter,\n        uint256 validBefore,\n        bytes32 nonce,\n        uint8 v,\n        bytes32 r,\n        bytes32 s\n    ) external whenNotPaused notBlacklisted(from) notBlacklisted(to) {\n        _receiveWithAuthorization(\n            from, to, value, validAfter, validBefore, nonce, v, r, s\n        );\n    }\n\n    /**\n     * @notice Attempt to cancel an authorization\n     * @dev Works only if the authorization is not yet used.\n     * @param authorizer    Authorizer's address\n     * @param nonce         Nonce of the authorization\n     * @param v             v of the signature\n     * @param r             r of the signature\n     * @param s             s of the signature\n     */\n    function cancelAuthorization(\n        address authorizer,\n        bytes32 nonce,\n        uint8 v,\n        bytes32 r,\n        bytes32 s\n    ) external whenNotPaused {\n        _cancelAuthorization(authorizer, nonce, v, r, s);\n    }\n\n    /**\n     * @notice Update allowance with a signed permit\n     * @param owner       Token owner's address (Authorizer)\n     * @param spender     Spender's address\n     * @param value       Amount of allowance\n     * @param deadline    The time at which the signature expires (unix time), or max uint256 value to signal no expiration\n     * @param v           v of the signature\n     * @param r           r of the signature\n     * @param s           s of the signature\n     */\n    function permit(\n        address owner,\n        address spender,\n        uint256 value,\n        uint256 deadline,\n        uint8 v,\n        bytes32 r,\n        bytes32 s\n    )\n        external\n        virtual\n        whenNotPaused\n        notBlacklisted(owner)\n        notBlacklisted(spender)\n    {\n        _permit(owner, spender, value, deadline, v, r, s);\n    }\n\n    /**\n     * @dev Internal function to increase the allowance by a given increment\n     * @param owner     Token owner's address\n     * @param spender   Spender's address\n     * @param increment Amount of increase\n     */\n    function _increaseAllowance(\n        address owner,\n        address spender,\n        uint256 increment\n    ) internal override {\n        _approve(owner, spender, allowed[owner][spender].add(increment));\n    }\n\n    /**\n     * @dev Internal function to decrease the allowance by a given decrement\n     * @param owner     Token owner's address\n     * @param spender   Spender's address\n     * @param decrement Amount of decrease\n     */\n    function _decreaseAllowance(\n        address owner,\n        address spender,\n        uint256 decrement\n    ) internal override {\n        _approve(\n            owner,\n            spender,\n            allowed[owner][spender].sub(\n                decrement, \"ERC20: decreased allowance below zero\"\n            )\n        );\n    }\n}\n"},{"file_path":"contracts/v2/FiatTokenV2_1.sol","source_code":"/**\n * SPDX-License-Identifier: Apache-2.0\n *\n * Copyright (c) 2023, Circle Internet Financial, LLC.\n * Copyright (c) 2023 Xfers Pte. Ltd.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\npragma solidity 0.6.12;\n\nimport { Blacklistable } from \"../v1/Blacklistable.sol\"; // solhint-disable-line no-unused-import\nimport { FiatTokenV1 } from \"../v1/FiatTokenV1.sol\"; // solhint-disable-line no-unused-import\nimport { FiatTokenV2 } from \"./FiatTokenV2.sol\"; // solhint-disable-line no-unused-import\n\n/**\n * @title FiatToken V2.1\n * @notice ERC20 Token backed by fiat reserves, version 2.1\n */\ncontract FiatTokenV2_1 is FiatTokenV2 {\n    /**\n     * @notice Initialize v2.1\n     * @param accountsToBlacklist   A list of accounts to migrate from the old blacklist\n     * data structure to the new blacklist data structure.\n     */\n    function initializeV2_1(address[] calldata accountsToBlacklist) external {\n        require(_initializedVersion == 1);\n\n        // Add previously blacklisted accounts to the new blacklist data structure\n        // and remove them from the old blacklist data structure.\n        for (uint256 i = 0; i < accountsToBlacklist.length; i++) {\n            require(\n                _deprecatedBlacklisted[accountsToBlacklist[i]],\n                \"FiatTokenV2_1: Blacklisting previously unblacklisted account!\"\n            );\n            _blacklist(accountsToBlacklist[i]);\n            delete _deprecatedBlacklisted[accountsToBlacklist[i]];\n            emit Blacklisted(accountsToBlacklist[i]);\n        }\n        _blacklist(address(this));\n        delete _deprecatedBlacklisted[address(this)];\n\n        _initializedVersion = 2;\n        emit VersionInitialized(_initializedVersion);\n    }\n\n    /**\n     * @notice Update allowance with a signed permit\n     * @dev EOA wallet signatures should be packed in the order of r, s, v.\n     * @param owner       Token owner's address (Authorizer)\n     * @param spender     Spender's address\n     * @param value       Amount of allowance\n     * @param deadline    The time at which the signature expires (unix time), or max uint256 value to signal no expiration\n     * @param signature   Signature bytes signed by an EOA wallet or a contract wallet\n     */\n    function permit(\n        address owner,\n        address spender,\n        uint256 value,\n        uint256 deadline,\n        bytes memory signature\n    ) external whenNotPaused {\n        _permit(owner, spender, value, deadline, signature);\n    }\n\n    /**\n     * @notice Execute a transfer with a signed authorization\n     * @dev EOA wallet signatures should be packed in the order of r, s, v.\n     * @param from          Payer's address (Authorizer)\n     * @param to            Payee's address\n     * @param value         Amount to be transferred\n     * @param validAfter    The time after which this is valid (unix time)\n     * @param validBefore   The time before which this is valid (unix time)\n     * @param nonce         Unique nonce\n     * @param signature     Signature bytes signed by an EOA wallet or a contract wallet\n     */\n    function transferWithAuthorization(\n        address from,\n        address to,\n        uint256 value,\n        uint256 validAfter,\n        uint256 validBefore,\n        bytes32 nonce,\n        bytes memory signature\n    ) external whenNotPaused notBlacklisted(from) notBlacklisted(to) {\n        _transferWithAuthorization(\n            from, to, value, validAfter, validBefore, nonce, signature\n        );\n    }\n\n    /**\n     * @notice Receive a transfer with a signed authorization from the payer\n     * @dev This has an additional check to ensure that the payee's address\n     * matches the caller of this function to prevent front-running attacks.\n     * EOA wallet signatures should be packed in the order of r, s, v.\n     * @param from          Payer's address (Authorizer)\n     * @param to            Payee's address\n     * @param value         Amount to be transferred\n     * @param validAfter    The time after which this is valid (unix time)\n     * @param validBefore   The time before which this is valid (unix time)\n     * @param nonce         Unique nonce\n     * @param signature     Signature bytes signed by an EOA wallet or a contract wallet\n     */\n    function receiveWithAuthorization(\n        address from,\n        address to,\n        uint256 value,\n        uint256 validAfter,\n        uint256 validBefore,\n        bytes32 nonce,\n        bytes memory signature\n    ) external whenNotPaused notBlacklisted(from) notBlacklisted(to) {\n        _receiveWithAuthorization(\n            from, to, value, validAfter, validBefore, nonce, signature\n        );\n    }\n\n    /**\n     * @notice Attempt to cancel an authorization\n     * @dev Works only if the authorization is not yet used.\n     * EOA wallet signatures should be packed in the order of r, s, v.\n     * @param authorizer    Authorizer's address\n     * @param nonce         Nonce of the authorization\n     * @param signature     Signature bytes signed by an EOA wallet or a contract wallet\n     */\n    function cancelAuthorization(\n        address authorizer,\n        bytes32 nonce,\n        bytes memory signature\n    ) external whenNotPaused {\n        _cancelAuthorization(authorizer, nonce, signature);\n    }\n\n    /**\n     * @dev Helper method that sets the blacklist state of an account on balanceAndBlacklistStates.\n     * If _shouldBlacklist is true, we apply a (1 << 255) bitmask with an OR operation on the\n     * account's balanceAndBlacklistState. This flips the high bit for the account to 1,\n     * indicating that the account is blacklisted.\n     *\n     * If _shouldBlacklist if false, we reset the account's balanceAndBlacklistStates to their\n     * balances. This clears the high bit for the account, indicating that the account is unblacklisted.\n     * @param _account         The address of the account.\n     * @param _shouldBlacklist True if the account should be blacklisted, false if the account should be unblacklisted.\n     */\n    function _setBlacklistState(address _account, bool _shouldBlacklist)\n        internal\n        override\n    {\n        balanceAndBlacklistStates[_account] = _shouldBlacklist\n            ? balanceAndBlacklistStates[_account] | (1 << 255)\n            : _balanceOf(_account);\n    }\n\n    /**\n     * @dev Helper method that sets the balance of an account on balanceAndBlacklistStates.\n     * Since balances are stored in the last 255 bits of the balanceAndBlacklistStates value,\n     * we need to ensure that the updated balance does not exceed (2^255 - 1).\n     * Since blacklisted accounts' balances cannot be updated, the method will also\n     * revert if the account is blacklisted\n     * @param _account The address of the account.\n     * @param _balance The new fiat token balance of the account (max: (2^255 - 1)).\n     */\n    function _setBalance(address _account, uint256 _balance) internal override {\n        require(\n            _balance <= ((1 << 255) - 1),\n            \"FiatTokenV2_2: Balance exceeds (2^255 - 1)\"\n        );\n        require(\n            !_isBlacklisted(_account), \"FiatTokenV2_2: Account is blacklisted\"\n        );\n\n        balanceAndBlacklistStates[_account] = _balance;\n    }\n\n    /**\n     * @inheritdoc Blacklistable\n     */\n    function _isBlacklisted(address _account)\n        internal\n        view\n        override\n        returns (bool)\n    {\n        return balanceAndBlacklistStates[_account] >> 255 == 1;\n    }\n\n    /**\n     * @dev Helper method to obtain the balance of an account. Since balances\n     * are stored in the last 255 bits of the balanceAndBlacklistStates value,\n     * we apply a ((1 << 255) - 1) bit bitmask with an AND operation on the\n     * balanceAndBlacklistState to obtain the balance.\n     * @param _account  The address of the account.\n     * @return          The fiat token balance of the account.\n     */\n    function _balanceOf(address _account)\n        internal\n        view\n        override\n        returns (uint256)\n    {\n        return balanceAndBlacklistStates[_account] & ((1 << 255) - 1);\n    }\n\n    /**\n     * @inheritdoc FiatTokenV1\n     */\n    function approve(address spender, uint256 value)\n        public\n        override\n        whenNotPaused\n        returns (bool)\n    {\n        _approve(msg.sender, spender, value);\n        return true;\n    }\n\n    /**\n     * @inheritdoc FiatTokenV2\n     */\n    function permit(\n        address owner,\n        address spender,\n        uint256 value,\n        uint256 deadline,\n        uint8 v,\n        bytes32 r,\n        bytes32 s\n    ) external override whenNotPaused {\n        _permit(owner, spender, value, deadline, v, r, s);\n    }\n\n    /**\n     * @inheritdoc FiatTokenV2\n     */\n    function increaseAllowance(address spender, uint256 increment)\n        public\n        override\n        whenNotPaused\n        returns (bool)\n    {\n        _increaseAllowance(msg.sender, spender, increment);\n        return true;\n    }\n\n    /**\n     * @inheritdoc FiatTokenV2\n     */\n    function decreaseAllowance(address spender, uint256 decrement)\n        public\n        override\n        whenNotPaused\n        returns (bool)\n    {\n        _decreaseAllowance(msg.sender, spender, decrement);\n        return true;\n    }\n}\n"},{"file_path":"contracts/util/SafeERC20.sol","source_code":"// SPDX-License-Identifier: MIT\n\npragma solidity >=0.6.0 <0.8.0;\n\nimport \"../interface/IERC20.sol\";\nimport \"@openzeppelin/contracts/math/SafeMath.sol\";\nimport \"@openzeppelin/contracts/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(\n            token, abi.encodeWithSelector(token.transfer.selector, to, value)\n        );\n    }\n\n    function safeTransferFrom(\n        IERC20 token,\n        address from,\n        address to,\n        uint256 value\n    ) internal {\n        _callOptionalReturn(\n            token,\n            abi.encodeWithSelector(token.transferFrom.selector, from, to, value)\n        );\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)\n        internal\n    {\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(\n            (value == 0) || (token.allowance(address(this), spender) == 0),\n            \"SafeERC20: approve from non-zero to non-zero allowance\"\n        );\n        _callOptionalReturn(\n            token,\n            abi.encodeWithSelector(token.approve.selector, spender, value)\n        );\n    }\n\n    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value)\n        internal\n    {\n        uint256 newAllowance =\n            token.allowance(address(this), spender).add(value);\n        _callOptionalReturn(\n            token,\n            abi.encodeWithSelector(\n                token.approve.selector, spender, newAllowance\n            )\n        );\n    }\n\n    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value)\n        internal\n    {\n        uint256 newAllowance = token.allowance(address(this), spender)\n            .sub(value, \"SafeERC20: decreased allowance below zero\");\n        _callOptionalReturn(\n            token,\n            abi.encodeWithSelector(\n                token.approve.selector, spender, newAllowance\n            )\n        );\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)\n            .functionCall(data, \"SafeERC20: low-level call failed\");\n        if (returndata.length > 0) {\n            // Return data is optional\n            // solhint-disable-next-line max-line-length\n            require(\n                abi.decode(returndata, (bool)),\n                \"SafeERC20: ERC20 operation did not succeed\"\n            );\n        }\n    }\n}\n"},{"file_path":"contracts/util/SignatureChecker.sol","source_code":"/**\n * SPDX-License-Identifier: Apache-2.0\n *\n * Copyright (c) 2023, Circle Internet Financial, LLC.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\npragma solidity 0.6.12;\n\nimport { ECRecover } from \"./ECRecover.sol\";\nimport { IERC1271 } from \"../interface/IERC1271.sol\";\n\n/**\n * @dev Signature verification helper that can be used instead of `ECRecover.recover` to seamlessly support both ECDSA\n * signatures from externally owned accounts (EOAs) as well as ERC1271 signatures from smart contract wallets.\n *\n * Adapted from https://github.com/OpenZeppelin/openzeppelin-contracts/blob/21bb89ef5bfc789b9333eb05e3ba2b7b284ac77c/contracts/utils/cryptography/SignatureChecker.sol\n */\nlibrary SignatureChecker {\n    /**\n     * @dev Checks if a signature is valid for a given signer and data hash. If the signer is a smart contract, the\n     * signature is validated against that smart contract using ERC1271, otherwise it's validated using `ECRecover.recover`.\n     * @param signer        Address of the claimed signer\n     * @param digest        Keccak-256 hash digest of the signed message\n     * @param signature     Signature byte array associated with hash\n     */\n    function isValidSignatureNow(\n        address signer,\n        bytes32 digest,\n        bytes memory signature\n    ) external view returns (bool) {\n        if (!isContract(signer)) {\n            return ECRecover.recover(digest, signature) == signer;\n        }\n        return isValidERC1271SignatureNow(signer, digest, signature);\n    }\n\n    /**\n     * @dev Checks if a signature is valid for a given signer and data hash. The signature is validated\n     * against the signer smart contract using ERC1271.\n     * @param signer        Address of the claimed signer\n     * @param digest        Keccak-256 hash digest of the signed message\n     * @param signature     Signature byte array associated with hash\n     *\n     * NOTE: Unlike ECDSA signatures, contract signatures are revocable, and the outcome of this function can thus\n     * change through time. It could return true at block N and false at block N+1 (or the opposite).\n     */\n    function isValidERC1271SignatureNow(\n        address signer,\n        bytes32 digest,\n        bytes memory signature\n    ) internal view returns (bool) {\n        (bool success, bytes memory result) = signer.staticcall(\n            abi.encodeWithSelector(\n                IERC1271.isValidSignature.selector, digest, signature\n            )\n        );\n        return (success && result.length >= 32\n                && abi.decode(result, (bytes32))\n                    == bytes32(IERC1271.isValidSignature.selector));\n    }\n\n    /**\n     * @dev Checks if the input address is a smart contract.\n     */\n    function isContract(address addr) internal view returns (bool) {\n        uint256 size;\n        assembly {\n            size := extcodesize(addr)\n        }\n        return size > 0;\n    }\n}\n"},{"file_path":"contracts/v1.1/FiatTokenV1_1.sol","source_code":"/**\n * SPDX-License-Identifier: Apache-2.0\n *\n * Copyright (c) 2023, Circle Internet Financial, LLC.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\npragma solidity 0.6.12;\n\nimport { FiatTokenV1 } from \"../v1/FiatTokenV1.sol\";\nimport { Rescuable } from \"./Rescuable.sol\";\n\n/**\n * @title FiatTokenV1_1\n * @dev ERC20 Token backed by fiat reserves\n */\ncontract FiatTokenV1_1 is FiatTokenV1, Rescuable { }\n"},{"file_path":"contracts/v1.1/Rescuable.sol","source_code":"/**\n * SPDX-License-Identifier: Apache-2.0\n *\n * Copyright (c) 2023, Circle Internet Financial, LLC.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\npragma solidity 0.6.12;\n\nimport { Ownable } from \"../v1/Ownable.sol\";\nimport { IERC20 } from \"../interface/IERC20.sol\";\nimport { SafeERC20 } from \"../util/SafeERC20.sol\";\n\ncontract Rescuable is Ownable {\n    using SafeERC20 for IERC20;\n\n    address private _rescuer;\n\n    event RescuerChanged(address indexed newRescuer);\n\n    /**\n     * @notice Returns current rescuer\n     * @return Rescuer's address\n     */\n    function rescuer() external view returns (address) {\n        return _rescuer;\n    }\n\n    /**\n     * @notice Revert if called by any account other than the rescuer.\n     */\n    modifier onlyRescuer() {\n        require(msg.sender == _rescuer, \"Rescuable: caller is not the rescuer\");\n        _;\n    }\n\n    /**\n     * @notice Rescue ERC20 tokens locked up in this contract.\n     * @param tokenContract ERC20 token contract address\n     * @param to        Recipient address\n     * @param amount    Amount to withdraw\n     */\n    function rescueERC20(IERC20 tokenContract, address to, uint256 amount)\n        external\n        onlyRescuer\n    {\n        tokenContract.safeTransfer(to, amount);\n    }\n\n    /**\n     * @notice Updates the rescuer address.\n     * @param newRescuer The address of the new rescuer.\n     */\n    function updateRescuer(address newRescuer) external onlyOwner {\n        require(\n            newRescuer != address(0),\n            \"Rescuable: new rescuer is the zero address\"\n        );\n        _rescuer = newRescuer;\n        emit RescuerChanged(newRescuer);\n    }\n}\n"},{"file_path":"contracts/v1/AbstractFiatTokenV1.sol","source_code":"/**\n * SPDX-License-Identifier: Apache-2.0\n *\n * Copyright (c) 2023, Circle Internet Financial, LLC.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\npragma solidity 0.6.12;\n\nimport \"../interface/IERC20.sol\";\n\nabstract contract AbstractFiatTokenV1 is IERC20 {\n    function _approve(address owner, address spender, uint256 value)\n        internal\n        virtual;\n\n    function _transfer(address from, address to, uint256 value) internal virtual;\n}\n"},{"file_path":"contracts/v1/Ownable.sol","source_code":"/**\n * SPDX-License-Identifier: Apache-2.0\n *\n * Copyright CENTRE SECZ 2018\n * Copyright (c) 2020 Xfers Pte. Ltd.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is furnished to\n * do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\n * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n */\n\npragma solidity 0.6.12;\n\ncontract Ownable {\n    address private _owner;\n\n    /**\n     * @dev Event to show ownership has been transferred\n     * @param previousOwner representing the address of the previous owner\n     * @param newOwner representing the address of the new owner\n     */\n    event OwnershipTransferred(\n        address indexed previousOwner, address indexed newOwner\n    );\n\n    /**\n     * @dev The constructor sets the original owner of the contract to the sender account.\n     */\n    constructor() internal {\n        setOwner(msg.sender);\n        emit OwnershipTransferred(address(0), _owner);\n    }\n\n    /**\n     * @dev Sets a new owner address\n     */\n    function setOwner(address newOwner) internal {\n        _owner = newOwner;\n    }\n\n    /**\n     * @dev Tells the address of the owner\n     * @return the address of the owner\n     */\n    function owner() public view returns (address) {\n        return _owner;\n    }\n\n    /**\n     * @dev Throws if called by any account other than the owner.\n     */\n    modifier onlyOwner() {\n        require(msg.sender == owner(), \"onlyOwner: not owner\");\n        _;\n    }\n\n    /**\n     * @dev Allows the current owner to transfer control of the contract to a newOwner.\n     * @param newOwner The address to transfer ownership to.\n     */\n    function transferOwnership(address newOwner) public onlyOwner {\n        require(newOwner != address(0), \"transferOwnership: 0x0 invalid\");\n        require(newOwner != owner(), \"transferOwnership: same address\");\n        emit OwnershipTransferred(owner(), newOwner);\n        setOwner(newOwner);\n    }\n}\n"},{"file_path":"contracts/v1/Pausable.sol","source_code":"/**\n * SPDX-License-Identifier: Apache-2.0\n *\n * Copyright CENTRE SECZ 2018\n * Copyright (c) 2020 Xfers Pte. Ltd.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is furnished to\n * do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\n * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n */\n\npragma solidity 0.6.12;\n\nimport \"./Ownable.sol\";\n\n/**\n * @title Pausable\n * @dev Base contract which allows children to implement an emergency stop mechanism.\n * Based on openzeppelin tag v1.10.0 commit: feb665136c0dae9912e08397c1a21c4af3651ef3\n * Modifications:\n * 1) Added pauser role, switched pause/unpause to be onlyPauser (6/14/2018)\n * 2) Removed whenNotPause/whenPaused from pause/unpause (6/14/2018)\n * 3) Removed whenPaused (6/14/2018)\n * 4) Switches ownable library to use zeppelinos (7/12/18)\n * 5) Remove constructor (7/13/18)\n */\ncontract Pausable is Ownable {\n    event Pause();\n    event Unpause();\n    event PauserChanged(address indexed newAddress);\n\n    address public pauser;\n    bool public paused = false;\n\n    /**\n     * @dev Modifier to make a function callable only when the contract is not paused.\n     */\n    modifier whenNotPaused() {\n        require(!paused, \"whenNotPaused: contract paused\");\n        _;\n    }\n\n    /**\n     * @dev throws if called by any account other than the pauser\n     */\n    modifier onlyPauser() {\n        require(msg.sender == pauser, \"pauser only\");\n        _;\n    }\n\n    /**\n     * @dev called by the owner to pause, triggers stopped state\n     */\n    function pause() public onlyPauser {\n        paused = true;\n        emit Pause();\n    }\n\n    /**\n     * @dev called by the owner to unpause, returns to normal state\n     */\n    function unpause() public onlyPauser {\n        paused = false;\n        emit Unpause();\n    }\n\n    /**\n     * @dev update the pauser role\n     */\n    function updatePauser(address _newPauser) public onlyOwner {\n        require(_newPauser != address(0), \"updatePauser: 0x0 invalid\");\n        require(_newPauser != pauser, \"updatePauser: same address\");\n        pauser = _newPauser;\n        emit PauserChanged(pauser);\n    }\n}\n"},{"file_path":"contracts/v2/AbstractFiatTokenV2.sol","source_code":"/**\n * SPDX-License-Identifier: Apache-2.0\n *\n * Copyright (c) 2023, Circle Internet Financial, LLC.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\npragma solidity 0.6.12;\n\nimport { AbstractFiatTokenV1 } from \"../v1/AbstractFiatTokenV1.sol\";\n\nabstract contract AbstractFiatTokenV2 is AbstractFiatTokenV1 {\n    function _increaseAllowance(\n        address owner,\n        address spender,\n        uint256 increment\n    ) internal virtual;\n\n    function _decreaseAllowance(\n        address owner,\n        address spender,\n        uint256 decrement\n    ) internal virtual;\n}\n"},{"file_path":"contracts/v2/EIP2612.sol","source_code":"/**\n * SPDX-License-Identifier: Apache-2.0\n *\n * Copyright (c) 2023, Circle Internet Financial, LLC.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\npragma solidity 0.6.12;\n\nimport { AbstractFiatTokenV2 } from \"./AbstractFiatTokenV2.sol\";\nimport { EIP712Domain } from \"./EIP712Domain.sol\";\nimport { MessageHashUtils } from \"../util/MessageHashUtils.sol\";\nimport { SignatureChecker } from \"../util/SignatureChecker.sol\";\n\n/**\n * @title EIP-2612\n * @notice Provide internal implementation for gas-abstracted approvals\n */\nabstract contract EIP2612 is AbstractFiatTokenV2, EIP712Domain {\n    // keccak256(\"Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)\")\n    bytes32 public constant PERMIT_TYPEHASH =\n        0x6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9;\n\n    mapping(address => uint256) private _permitNonces;\n    event PermitUsed(address indexed owner, uint256 nonce);\n\n    /**\n     * @notice Nonces for permit\n     * @param owner Token owner's address (Authorizer)\n     * @return Next nonce\n     */\n    function nonces(address owner) external view returns (uint256) {\n        return _permitNonces[owner];\n    }\n\n    /**\n     * @notice Verify a signed approval permit and execute if valid\n     * @param owner     Token owner's address (Authorizer)\n     * @param spender   Spender's address\n     * @param value     Amount of allowance\n     * @param deadline  The time at which the signature expires (unix time), or max uint256 value to signal no expiration\n     * @param v         v of the signature\n     * @param r         r of the signature\n     * @param s         s of the signature\n     */\n    function _permit(\n        address owner,\n        address spender,\n        uint256 value,\n        uint256 deadline,\n        uint8 v,\n        bytes32 r,\n        bytes32 s\n    ) internal {\n        _permit(owner, spender, value, deadline, abi.encodePacked(r, s, v));\n    }\n\n    /**\n     * @notice Verify a signed approval permit and execute if valid\n     * @dev EOA wallet signatures should be packed in the order of r, s, v.\n     * @param owner      Token owner's address (Authorizer)\n     * @param spender    Spender's address\n     * @param value      Amount of allowance\n     * @param deadline   The time at which the signature expires (unix time), or max uint256 value to signal no expiration\n     * @param signature  Signature byte array signed by an EOA wallet or a contract wallet\n     */\n    function _permit(\n        address owner,\n        address spender,\n        uint256 value,\n        uint256 deadline,\n        bytes memory signature\n    ) internal {\n        require(\n            deadline == type(uint256).max || deadline >= block.timestamp,\n            \"FiatTokenV2: permit is expired\"\n        );\n\n        bytes32 typedDataHash = MessageHashUtils.toTypedDataHash(\n            _domainSeparator(),\n            keccak256(\n                abi.encode(\n                    PERMIT_TYPEHASH,\n                    owner,\n                    spender,\n                    value,\n                    _permitNonces[owner],\n                    deadline\n                )\n            )\n        );\n        require(\n            SignatureChecker.isValidSignatureNow(\n                owner, typedDataHash, signature\n            ),\n            \"EIP2612: invalid signature\"\n        );\n\n        _approve(owner, spender, value);\n        // emit the event with the nonce used for hashing typedData\n        // then increment the nonce\n        emit PermitUsed(owner, _permitNonces[owner]);\n        _permitNonces[owner]++;\n    }\n}\n"},{"file_path":"contracts/v2/EIP3009.sol","source_code":"/**\n * SPDX-License-Identifier: Apache-2.0\n *\n * Copyright (c) 2023, Circle Internet Financial, LLC.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\npragma solidity 0.6.12;\n\nimport { AbstractFiatTokenV2 } from \"./AbstractFiatTokenV2.sol\";\nimport { EIP712Domain } from \"./EIP712Domain.sol\";\nimport { SignatureChecker } from \"../util/SignatureChecker.sol\";\nimport { MessageHashUtils } from \"../util/MessageHashUtils.sol\";\n\n/**\n * @title EIP-3009\n * @notice Provide internal implementation for gas-abstracted transfers\n * @dev Contracts that inherit from this must wrap these with publicly\n * accessible functions, optionally adding modifiers where necessary\n */\nabstract contract EIP3009 is AbstractFiatTokenV2, EIP712Domain {\n    // keccak256(\"TransferWithAuthorization(address from,address to,uint256 value,uint256 validAfter,uint256 validBefore,bytes32 nonce)\")\n    bytes32 public constant TRANSFER_WITH_AUTHORIZATION_TYPEHASH =\n        0x7c7c6cdb67a18743f49ec6fa9b35f50d52ed05cbed4cc592e13b44501c1a2267;\n\n    // keccak256(\"ReceiveWithAuthorization(address from,address to,uint256 value,uint256 validAfter,uint256 validBefore,bytes32 nonce)\")\n    bytes32 public constant RECEIVE_WITH_AUTHORIZATION_TYPEHASH =\n        0xd099cc98ef71107a616c4f0f941f04c322d8e254fe26b3c6668db87aae413de8;\n\n    // keccak256(\"CancelAuthorization(address authorizer,bytes32 nonce)\")\n    bytes32 public constant CANCEL_AUTHORIZATION_TYPEHASH =\n        0x158b0a9edf7a828aad02f63cd515c68ef2f50ba807396f6d12842833a1597429;\n\n    /**\n     * @dev authorizer address => nonce => bool (true if nonce is used)\n     */\n    mapping(address => mapping(bytes32 => bool)) private _authorizationStates;\n\n    event AuthorizationUsed(address indexed authorizer, bytes32 indexed nonce);\n    event AuthorizationCanceled(\n        address indexed authorizer, bytes32 indexed nonce\n    );\n\n    /**\n     * @notice Returns the state of an authorization\n     * @dev Nonces are randomly generated 32-byte data unique to the\n     * authorizer's address\n     * @param authorizer    Authorizer's address\n     * @param nonce         Nonce of the authorization\n     * @return True if the nonce is used\n     */\n    function authorizationState(address authorizer, bytes32 nonce)\n        external\n        view\n        returns (bool)\n    {\n        return _authorizationStates[authorizer][nonce];\n    }\n\n    /**\n     * @notice Execute a transfer with a signed authorization\n     * @param from          Payer's address (Authorizer)\n     * @param to            Payee's address\n     * @param value         Amount to be transferred\n     * @param validAfter    The time after which this is valid (unix time)\n     * @param validBefore   The time before which this is valid (unix time)\n     * @param nonce         Unique nonce\n     * @param v             v of the signature\n     * @param r             r of the signature\n     * @param s             s of the signature\n     */\n    function _transferWithAuthorization(\n        address from,\n        address to,\n        uint256 value,\n        uint256 validAfter,\n        uint256 validBefore,\n        bytes32 nonce,\n        uint8 v,\n        bytes32 r,\n        bytes32 s\n    ) internal {\n        _transferWithAuthorization(\n            from,\n            to,\n            value,\n            validAfter,\n            validBefore,\n            nonce,\n            abi.encodePacked(r, s, v)\n        );\n    }\n\n    /**\n     * @notice Execute a transfer with a signed authorization\n     * @dev EOA wallet signatures should be packed in the order of r, s, v.\n     * @param from          Payer's address (Authorizer)\n     * @param to            Payee's address\n     * @param value         Amount to be transferred\n     * @param validAfter    The time after which this is valid (unix time)\n     * @param validBefore   The time before which this is valid (unix time)\n     * @param nonce         Unique nonce\n     * @param signature     Signature byte array produced by an EOA wallet or a contract wallet\n     */\n    function _transferWithAuthorization(\n        address from,\n        address to,\n        uint256 value,\n        uint256 validAfter,\n        uint256 validBefore,\n        bytes32 nonce,\n        bytes memory signature\n    ) internal {\n        _requireValidAuthorization(from, nonce, validAfter, validBefore);\n        _requireValidSignature(\n            from,\n            keccak256(\n                abi.encode(\n                    TRANSFER_WITH_AUTHORIZATION_TYPEHASH,\n                    from,\n                    to,\n                    value,\n                    validAfter,\n                    validBefore,\n                    nonce\n                )\n            ),\n            signature\n        );\n\n        _markAuthorizationAsUsed(from, nonce);\n        _transfer(from, to, value);\n    }\n\n    /**\n     * @notice Receive a transfer with a signed authorization from the payer\n     * @dev This has an additional check to ensure that the payee's address\n     * matches the caller of this function to prevent front-running attacks.\n     * @param from          Payer's address (Authorizer)\n     * @param to            Payee's address\n     * @param value         Amount to be transferred\n     * @param validAfter    The time after which this is valid (unix time)\n     * @param validBefore   The time before which this is valid (unix time)\n     * @param nonce         Unique nonce\n     * @param v             v of the signature\n     * @param r             r of the signature\n     * @param s             s of the signature\n     */\n    function _receiveWithAuthorization(\n        address from,\n        address to,\n        uint256 value,\n        uint256 validAfter,\n        uint256 validBefore,\n        bytes32 nonce,\n        uint8 v,\n        bytes32 r,\n        bytes32 s\n    ) internal {\n        _receiveWithAuthorization(\n            from,\n            to,\n            value,\n            validAfter,\n            validBefore,\n            nonce,\n            abi.encodePacked(r, s, v)\n        );\n    }\n\n    /**\n     * @notice Receive a transfer with a signed authorization from the payer\n     * @dev This has an additional check to ensure that the payee's address\n     * matches the caller of this function to prevent front-running attacks.\n     * EOA wallet signatures should be packed in the order of r, s, v.\n     * @param from          Payer's address (Authorizer)\n     * @param to            Payee's address\n     * @param value         Amount to be transferred\n     * @param validAfter    The time after which this is valid (unix time)\n     * @param validBefore   The time before which this is valid (unix time)\n     * @param nonce         Unique nonce\n     * @param signature     Signature byte array produced by an EOA wallet or a contract wallet\n     */\n    function _receiveWithAuthorization(\n        address from,\n        address to,\n        uint256 value,\n        uint256 validAfter,\n        uint256 validBefore,\n        bytes32 nonce,\n        bytes memory signature\n    ) internal {\n        require(to == msg.sender, \"FiatTokenV2: caller must be the payee\");\n        _requireValidAuthorization(from, nonce, validAfter, validBefore);\n        _requireValidSignature(\n            from,\n            keccak256(\n                abi.encode(\n                    RECEIVE_WITH_AUTHORIZATION_TYPEHASH,\n                    from,\n                    to,\n                    value,\n                    validAfter,\n                    validBefore,\n                    nonce\n                )\n            ),\n            signature\n        );\n\n        _markAuthorizationAsUsed(from, nonce);\n        _transfer(from, to, value);\n    }\n\n    /**\n     * @notice Attempt to cancel an authorization\n     * @param authorizer    Authorizer's address\n     * @param nonce         Nonce of the authorization\n     * @param v             v of the signature\n     * @param r             r of the signature\n     * @param s             s of the signature\n     */\n    function _cancelAuthorization(\n        address authorizer,\n        bytes32 nonce,\n        uint8 v,\n        bytes32 r,\n        bytes32 s\n    ) internal {\n        _cancelAuthorization(authorizer, nonce, abi.encodePacked(r, s, v));\n    }\n\n    /**\n     * @notice Attempt to cancel an authorization\n     * @dev EOA wallet signatures should be packed in the order of r, s, v.\n     * @param authorizer    Authorizer's address\n     * @param nonce         Nonce of the authorization\n     * @param signature     Signature byte array produced by an EOA wallet or a contract wallet\n     */\n    function _cancelAuthorization(\n        address authorizer,\n        bytes32 nonce,\n        bytes memory signature\n    ) internal {\n        _requireUnusedAuthorization(authorizer, nonce);\n        _requireValidSignature(\n            authorizer,\n            keccak256(\n                abi.encode(CANCEL_AUTHORIZATION_TYPEHASH, authorizer, nonce)\n            ),\n            signature\n        );\n\n        _authorizationStates[authorizer][nonce] = true;\n        emit AuthorizationCanceled(authorizer, nonce);\n    }\n\n    /**\n     * @notice Validates that signature against input data struct\n     * @param signer        Signer's address\n     * @param dataHash      Hash of encoded data struct\n     * @param signature     Signature byte array produced by an EOA wallet or a contract wallet\n     */\n    function _requireValidSignature(\n        address signer,\n        bytes32 dataHash,\n        bytes memory signature\n    ) private view {\n        require(\n            SignatureChecker.isValidSignatureNow(\n                signer,\n                MessageHashUtils.toTypedDataHash(_domainSeparator(), dataHash),\n                signature\n            ),\n            \"FiatTokenV2: invalid signature\"\n        );\n    }\n\n    /**\n     * @notice Check that an authorization is unused\n     * @param authorizer    Authorizer's address\n     * @param nonce         Nonce of the authorization\n     */\n    function _requireUnusedAuthorization(address authorizer, bytes32 nonce)\n        private\n        view\n    {\n        require(\n            !_authorizationStates[authorizer][nonce],\n            \"FiatTokenV2: authorization is used or canceled\"\n        );\n    }\n\n    /**\n     * @notice Check that authorization is valid\n     * @param authorizer    Authorizer's address\n     * @param nonce         Nonce of the authorization\n     * @param validAfter    The time after which this is valid (unix time)\n     * @param validBefore   The time before which this is valid (unix time)\n     */\n    function _requireValidAuthorization(\n        address authorizer,\n        bytes32 nonce,\n        uint256 validAfter,\n        uint256 validBefore\n    ) private view {\n        require(\n            block.timestamp > validAfter,\n            \"FiatTokenV2: authorization is not yet valid\"\n        );\n        require(\n            block.timestamp < validBefore,\n            \"FiatTokenV2: authorization is expired\"\n        );\n        _requireUnusedAuthorization(authorizer, nonce);\n    }\n\n    /**\n     * @notice Mark an authorization as used\n     * @param authorizer    Authorizer's address\n     * @param nonce         Nonce of the authorization\n     */\n    function _markAuthorizationAsUsed(address authorizer, bytes32 nonce)\n        private\n    {\n        _authorizationStates[authorizer][nonce] = true;\n        emit AuthorizationUsed(authorizer, nonce);\n    }\n}\n"},{"file_path":"contracts/v2/EIP712Domain.sol","source_code":"/**\n * SPDX-License-Identifier: Apache-2.0\n *\n * Copyright (c) 2023, Circle Internet Financial, LLC.\n * Copyright (c) 2023 Xfers Pte. Ltd.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\npragma solidity 0.6.12;\n\n/**\n * @title EIP712 Domain\n */\nabstract contract EIP712Domain {\n    /**\n     * @dev Internal method to get the EIP712 Domain Separator.\n     * @return The bytes32 EIP712 domain separator.\n     */\n    function _domainSeparator() internal view virtual returns (bytes32);\n}\n"},{"file_path":"lib/openzeppelin-contracts/contracts/math/SafeMath.sol","source_code":"// 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"},{"file_path":"lib/openzeppelin-contracts/contracts/utils/Address.sol","source_code":"// 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"}],"certified":false,"conflicting_implementations":null,"abi":[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"authorizer","type":"address"},{"indexed":true,"internalType":"bytes32","name":"nonce","type":"bytes32"}],"name":"AuthorizationCanceled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"authorizer","type":"address"},{"indexed":true,"internalType":"bytes32","name":"nonce","type":"bytes32"}],"name":"AuthorizationUsed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_account","type":"address"}],"name":"Blacklisted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newBlacklister","type":"address"}],"name":"BlacklisterChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"burner","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newMasterMinter","type":"address"}],"name":"MasterMinterChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"minter","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"minter","type":"address"},{"indexed":false,"internalType":"uint256","name":"minterAllowedAmount","type":"uint256"}],"name":"MinterConfigured","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldMinter","type":"address"}],"name":"MinterRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[],"name":"Pause","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newAddress","type":"address"}],"name":"PauserChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"nonce","type":"uint256"}],"name":"PermitUsed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newRescuer","type":"address"}],"name":"RescuerChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newTotalSupply","type":"uint256"}],"name":"TotalSupplyChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_account","type":"address"}],"name":"UnBlacklisted","type":"event"},{"anonymous":false,"inputs":[],"name":"Unpause","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint8","name":"version","type":"uint8"}],"name":"VersionInitialized","type":"event"},{"inputs":[],"name":"CANCEL_AUTHORIZATION_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PERMIT_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RECEIVE_WITH_AUTHORIZATION_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TRANSFER_WITH_AUTHORIZATION_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"authorizer","type":"address"},{"internalType":"bytes32","name":"nonce","type":"bytes32"}],"name":"authorizationState","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"}],"name":"batchLawEnforcementWipingBurn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"blacklist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"}],"name":"blacklistAccounts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"blacklister","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"authorizer","type":"address"},{"internalType":"bytes32","name":"nonce","type":"bytes32"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"cancelAuthorization","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"authorizer","type":"address"},{"internalType":"bytes32","name":"nonce","type":"bytes32"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"cancelAuthorization","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"decrement","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_minter","type":"address"},{"internalType":"uint256","name":"_decreasedAmount","type":"uint256"}],"name":"decreaseMinterAllowance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"increment","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_minter","type":"address"},{"internalType":"uint256","name":"_increasedAmount","type":"uint256"}],"name":"increaseMinterAllowance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"uint8","name":"_decimals","type":"uint8"},{"internalType":"address","name":"_masterMinter","type":"address"},{"internalType":"address","name":"_pauser","type":"address"},{"internalType":"address","name":"_blacklister","type":"address"},{"internalType":"address","name":"_owner","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"initializeV2","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"accountsToBlacklist","type":"address[]"}],"name":"initializeV2_1","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"initializeV2_2","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"isBlacklisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"isMinter","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"}],"name":"lawEnforcementWipingBurn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"masterMinter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_minter","type":"address"}],"name":"minterAllowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pauser","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"validAfter","type":"uint256"},{"internalType":"uint256","name":"validBefore","type":"uint256"},{"internalType":"bytes32","name":"nonce","type":"bytes32"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"receiveWithAuthorization","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"validAfter","type":"uint256"},{"internalType":"uint256","name":"validBefore","type":"uint256"},{"internalType":"bytes32","name":"nonce","type":"bytes32"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"receiveWithAuthorization","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenAddress","type":"address"}],"name":"reclaimToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"tokenContract","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"rescueERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rescuer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"tokenFallback","outputs":[],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"validAfter","type":"uint256"},{"internalType":"uint256","name":"validBefore","type":"uint256"},{"internalType":"bytes32","name":"nonce","type":"bytes32"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"transferWithAuthorization","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"validAfter","type":"uint256"},{"internalType":"uint256","name":"validBefore","type":"uint256"},{"internalType":"bytes32","name":"nonce","type":"bytes32"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"transferWithAuthorization","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"unBlacklist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"}],"name":"unblacklistAccounts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newBlacklister","type":"address"}],"name":"updateBlacklister","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newMasterMinter","type":"address"}],"name":"updateMasterMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newPauser","type":"address"}],"name":"updatePauser","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newRescuer","type":"address"}],"name":"updateRescuer","outputs":[],"stateMutability":"nonpayable","type":"function"}],"is_changed_bytecode":false,"is_partially_verified":true,"constructor_args":null}