From 9ce77580165dc75ddc00a16a3df97f02fd9eb800 Mon Sep 17 00:00:00 2001 From: Jerry Date: Fri, 19 Aug 2022 16:49:49 +0000 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=90=B3=20chore:=20deploy=20p12testnet?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deployments/p12TestNet/ERC1155Delegate.json | 633 ++++++ deployments/p12TestNet/ERC721Delegate.json | 581 +++++ .../GaugeControllerUpgradeable.json | 1200 +++++++++++ ...eControllerUpgradeable_Implementation.json | 1788 +++++++++++++++ .../GaugeControllerUpgradeable_Proxy.json | 125 ++ .../p12TestNet/P12AssetFactoryUpgradable.json | 509 +++++ ...AssetFactoryUpgradable_Implementation.json | 700 ++++++ .../P12AssetFactoryUpgradable_Proxy.json | 125 ++ .../p12TestNet/P12CoinFactoryUpgradeable.json | 1189 ++++++++++ ...CoinFactoryUpgradeable_Implementation.json | 1588 ++++++++++++++ .../P12CoinFactoryUpgradeable_Proxy.json | 139 ++ .../p12TestNet/P12MineUpgradeable.json | 1325 ++++++++++++ .../P12MineUpgradeable_Implementation.json | 1910 +++++++++++++++++ .../p12TestNet/P12MineUpgradeable_Proxy.json | 139 ++ .../p12TestNet/SecretShopUpgradable.json | 1080 ++++++++++ .../SecretShopUpgradable_Implementation.json | 1344 ++++++++++++ .../SecretShopUpgradable_Proxy.json | 125 ++ deployments/p12TestNet/VotingEscrow.json | 1190 ++++++++++ 18 files changed, 15690 insertions(+) create mode 100644 deployments/p12TestNet/ERC1155Delegate.json create mode 100644 deployments/p12TestNet/ERC721Delegate.json create mode 100644 deployments/p12TestNet/GaugeControllerUpgradeable.json create mode 100644 deployments/p12TestNet/GaugeControllerUpgradeable_Implementation.json create mode 100644 deployments/p12TestNet/GaugeControllerUpgradeable_Proxy.json create mode 100644 deployments/p12TestNet/P12AssetFactoryUpgradable.json create mode 100644 deployments/p12TestNet/P12AssetFactoryUpgradable_Implementation.json create mode 100644 deployments/p12TestNet/P12AssetFactoryUpgradable_Proxy.json create mode 100644 deployments/p12TestNet/P12CoinFactoryUpgradeable.json create mode 100644 deployments/p12TestNet/P12CoinFactoryUpgradeable_Implementation.json create mode 100644 deployments/p12TestNet/P12CoinFactoryUpgradeable_Proxy.json create mode 100644 deployments/p12TestNet/P12MineUpgradeable.json create mode 100644 deployments/p12TestNet/P12MineUpgradeable_Implementation.json create mode 100644 deployments/p12TestNet/P12MineUpgradeable_Proxy.json create mode 100644 deployments/p12TestNet/SecretShopUpgradable.json create mode 100644 deployments/p12TestNet/SecretShopUpgradable_Implementation.json create mode 100644 deployments/p12TestNet/SecretShopUpgradable_Proxy.json create mode 100644 deployments/p12TestNet/VotingEscrow.json diff --git a/deployments/p12TestNet/ERC1155Delegate.json b/deployments/p12TestNet/ERC1155Delegate.json new file mode 100644 index 0000000..cc5f037 --- /dev/null +++ b/deployments/p12TestNet/ERC1155Delegate.json @@ -0,0 +1,633 @@ +{ + "address": "0x571A3EE9212806b3C8CF4e46D50D833028A903c3", + "abi": [ + { + "inputs": [], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "Paused", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "role", + "type": "bytes32" + }, + { + "indexed": true, + "internalType": "bytes32", + "name": "previousAdminRole", + "type": "bytes32" + }, + { + "indexed": true, + "internalType": "bytes32", + "name": "newAdminRole", + "type": "bytes32" + } + ], + "name": "RoleAdminChanged", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "role", + "type": "bytes32" + }, + { + "indexed": true, + "internalType": "address", + "name": "account", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "sender", + "type": "address" + } + ], + "name": "RoleGranted", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "role", + "type": "bytes32" + }, + { + "indexed": true, + "internalType": "address", + "name": "account", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "sender", + "type": "address" + } + ], + "name": "RoleRevoked", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "Unpaused", + "type": "event" + }, + { + "inputs": [], + "name": "DEFAULT_ADMIN_ROLE", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "DELEGATION_CALLER", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "PAUSABLE_CALLER", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "decode", + "outputs": [ + { + "components": [ + { + "internalType": "uint256", + "name": "salt", + "type": "uint256" + }, + { + "internalType": "contract IERC1155", + "name": "token", + "type": "address" + }, + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "internalType": "struct ERC1155Delegate.Pair[]", + "name": "", + "type": "tuple[]" + } + ], + "stateMutability": "pure", + "type": "function" + }, + { + "inputs": [], + "name": "delegateType", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "pure", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "seller", + "type": "address" + }, + { + "internalType": "address", + "name": "buyer", + "type": "address" + }, + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "executeSell", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "role", + "type": "bytes32" + } + ], + "name": "getRoleAdmin", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "role", + "type": "bytes32" + }, + { + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "grantRole", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "role", + "type": "bytes32" + }, + { + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "hasRole", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + }, + { + "internalType": "address", + "name": "", + "type": "address" + }, + { + "internalType": "uint256[]", + "name": "", + "type": "uint256[]" + }, + { + "internalType": "uint256[]", + "name": "", + "type": "uint256[]" + }, + { + "internalType": "bytes", + "name": "", + "type": "bytes" + } + ], + "name": "onERC1155BatchReceived", + "outputs": [ + { + "internalType": "bytes4", + "name": "", + "type": "bytes4" + } + ], + "stateMutability": "pure", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + }, + { + "internalType": "address", + "name": "", + "type": "address" + }, + { + "internalType": "uint256", + "name": "", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "", + "type": "bytes" + } + ], + "name": "onERC1155Received", + "outputs": [ + { + "internalType": "bytes4", + "name": "", + "type": "bytes4" + } + ], + "stateMutability": "pure", + "type": "function" + }, + { + "inputs": [], + "name": "pause", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "paused", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "role", + "type": "bytes32" + }, + { + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "renounceRole", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "role", + "type": "bytes32" + }, + { + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "revokeRole", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes4", + "name": "interfaceId", + "type": "bytes4" + } + ], + "name": "supportsInterface", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "unpause", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + } + ], + "transactionHash": "0x01199c8773ba59114cfff879e5d9ac76f1a1ee32809cd24e6dee1638bc9b875a", + "receipt": { + "to": null, + "from": "0xfeD03676c595DD1F1c6716a446cD44B4C90AD290", + "contractAddress": "0x571A3EE9212806b3C8CF4e46D50D833028A903c3", + "transactionIndex": 0, + "gasUsed": "1036586", + "logsBloom": "0x00000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004020000000000000000000800000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000001000000000000100000000000000000000000000000000000000000000000100000000000020000000000100000000000000000000000000000000000000000000000010000000", + "blockHash": "0x66ba432f7064960f48b365699284b124c3a8b30474ee989252ff095b00be6e5d", + "transactionHash": "0x01199c8773ba59114cfff879e5d9ac76f1a1ee32809cd24e6dee1638bc9b875a", + "logs": [ + { + "transactionIndex": 0, + "blockNumber": 1206192, + "transactionHash": "0x01199c8773ba59114cfff879e5d9ac76f1a1ee32809cd24e6dee1638bc9b875a", + "address": "0x571A3EE9212806b3C8CF4e46D50D833028A903c3", + "topics": [ + "0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d", + "0x0000000000000000000000000000000000000000000000000000000000000000", + "0x000000000000000000000000fed03676c595dd1f1c6716a446cd44b4c90ad290", + "0x000000000000000000000000fed03676c595dd1f1c6716a446cd44b4c90ad290" + ], + "data": "0x", + "logIndex": 0, + "blockHash": "0x66ba432f7064960f48b365699284b124c3a8b30474ee989252ff095b00be6e5d" + } + ], + "blockNumber": 1206192, + "cumulativeGasUsed": "1036586", + "status": 1, + "byzantium": true + }, + "args": [], + "numDeployments": 1, + "solcInputHash": "1f7f80fb95b6efcc6f464d7df403eaaa", + "metadata": "{\"compiler\":{\"version\":\"0.8.15+commit.e14f2714\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Paused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"previousAdminRole\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"newAdminRole\",\"type\":\"bytes32\"}],\"name\":\"RoleAdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleGranted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleRevoked\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Unpaused\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"DEFAULT_ADMIN_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"DELEGATION_CALLER\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"PAUSABLE_CALLER\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"decode\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"salt\",\"type\":\"uint256\"},{\"internalType\":\"contract IERC1155\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"internalType\":\"struct ERC1155Delegate.Pair[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"delegateType\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"seller\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"buyer\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"executeSell\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"name\":\"getRoleAdmin\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"grantRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"hasRole\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"onERC1155BatchReceived\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"onERC1155Received\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"paused\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"renounceRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"revokeRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"unpause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"decode(bytes)\":{\"details\":\"decode data to the array of Pair\"},\"delegateType()\":{\"returns\":{\"_0\":\"delegateType the delegate's type\"}},\"executeSell(address,address,bytes)\":{\"details\":\"run the sell to transfer item\",\"params\":{\"buyer\":\"address which buy the item\",\"data\":\"the item's data, which will be decode as a array of Pair\",\"seller\":\"address which sell the item\"}},\"getRoleAdmin(bytes32)\":{\"details\":\"Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}.\"},\"grantRole(bytes32,address)\":{\"details\":\"Grants `role` to `account`. If `account` had not been already granted `role`, emits a {RoleGranted} event. Requirements: - the caller must have ``role``'s admin role.\"},\"hasRole(bytes32,address)\":{\"details\":\"Returns `true` if `account` has been granted `role`.\"},\"onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)\":{\"details\":\"Received function\"},\"onERC1155Received(address,address,uint256,uint256,bytes)\":{\"details\":\"Received function\"},\"paused()\":{\"details\":\"Returns true if the contract is paused, and false otherwise.\"},\"renounceRole(bytes32,address)\":{\"details\":\"Revokes `role` from the calling account. Roles are often managed via {grantRole} and {revokeRole}: this function's purpose is to provide a mechanism for accounts to lose their privileges if they are compromised (such as when a trusted device is misplaced). If the calling account had been revoked `role`, emits a {RoleRevoked} event. Requirements: - the caller must be `account`.\"},\"revokeRole(bytes32,address)\":{\"details\":\"Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role.\"},\"supportsInterface(bytes4)\":{\"details\":\"See {IERC165-supportsInterface}.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/secretShop/ERC1155Delegate.sol\":\"ERC1155Delegate\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC20 standard as defined in the EIP.\\n */\\ninterface IERC20Upgradeable {\\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 `to`.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transfer(address to, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Returns the remaining number of tokens that `spender` will be\\n * allowed to spend on behalf of `owner` through {transferFrom}. This is\\n * zero by default.\\n *\\n * This value changes when {approve} or {transferFrom} are called.\\n */\\n function allowance(address owner, address spender) external view returns (uint256);\\n\\n /**\\n * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * IMPORTANT: Beware that changing an allowance with this method brings the risk\\n * that someone may use both the old and the new allowance by unfortunate\\n * transaction ordering. One possible solution to mitigate this race\\n * condition is to first reduce the spender's allowance to 0 and set the\\n * desired value afterwards:\\n * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\\n *\\n * Emits an {Approval} event.\\n */\\n function approve(address spender, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Moves `amount` tokens from `from` to `to` 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(\\n address from,\\n address to,\\n uint256 amount\\n ) external returns (bool);\\n\\n /**\\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\\n * another (`to`).\\n *\\n * Note that `value` may be zero.\\n */\\n event Transfer(address indexed from, address indexed to, uint256 value);\\n\\n /**\\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\\n * a call to {approve}. `value` is the new allowance.\\n */\\n event Approval(address indexed owner, address indexed spender, uint256 value);\\n}\\n\",\"keccak256\":\"0x6777f3fccb5dab95a9088ef62c41bee0198fd92e50d7c94f0e3733788af4079e\",\"license\":\"MIT\"},\"@openzeppelin/contracts/access/AccessControl.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControl.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IAccessControl.sol\\\";\\nimport \\\"../utils/Context.sol\\\";\\nimport \\\"../utils/Strings.sol\\\";\\nimport \\\"../utils/introspection/ERC165.sol\\\";\\n\\n/**\\n * @dev Contract module that allows children to implement role-based access\\n * control mechanisms. This is a lightweight version that doesn't allow enumerating role\\n * members except through off-chain means by accessing the contract event logs. Some\\n * applications may benefit from on-chain enumerability, for those cases see\\n * {AccessControlEnumerable}.\\n *\\n * Roles are referred to by their `bytes32` identifier. These should be exposed\\n * in the external API and be unique. The best way to achieve this is by\\n * using `public constant` hash digests:\\n *\\n * ```\\n * bytes32 public constant MY_ROLE = keccak256(\\\"MY_ROLE\\\");\\n * ```\\n *\\n * Roles can be used to represent a set of permissions. To restrict access to a\\n * function call, use {hasRole}:\\n *\\n * ```\\n * function foo() public {\\n * require(hasRole(MY_ROLE, msg.sender));\\n * ...\\n * }\\n * ```\\n *\\n * Roles can be granted and revoked dynamically via the {grantRole} and\\n * {revokeRole} functions. Each role has an associated admin role, and only\\n * accounts that have a role's admin role can call {grantRole} and {revokeRole}.\\n *\\n * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means\\n * that only accounts with this role will be able to grant or revoke other\\n * roles. More complex role relationships can be created by using\\n * {_setRoleAdmin}.\\n *\\n * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to\\n * grant and revoke this role. Extra precautions should be taken to secure\\n * accounts that have been granted it.\\n */\\nabstract contract AccessControl is Context, IAccessControl, ERC165 {\\n struct RoleData {\\n mapping(address => bool) members;\\n bytes32 adminRole;\\n }\\n\\n mapping(bytes32 => RoleData) private _roles;\\n\\n bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;\\n\\n /**\\n * @dev Modifier that checks that an account has a specific role. Reverts\\n * with a standardized message including the required role.\\n *\\n * The format of the revert reason is given by the following regular expression:\\n *\\n * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/\\n *\\n * _Available since v4.1._\\n */\\n modifier onlyRole(bytes32 role) {\\n _checkRole(role, _msgSender());\\n _;\\n }\\n\\n /**\\n * @dev See {IERC165-supportsInterface}.\\n */\\n function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\\n return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);\\n }\\n\\n /**\\n * @dev Returns `true` if `account` has been granted `role`.\\n */\\n function hasRole(bytes32 role, address account) public view virtual override returns (bool) {\\n return _roles[role].members[account];\\n }\\n\\n /**\\n * @dev Revert with a standard message if `account` is missing `role`.\\n *\\n * The format of the revert reason is given by the following regular expression:\\n *\\n * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/\\n */\\n function _checkRole(bytes32 role, address account) internal view virtual {\\n if (!hasRole(role, account)) {\\n revert(\\n string(\\n abi.encodePacked(\\n \\\"AccessControl: account \\\",\\n Strings.toHexString(uint160(account), 20),\\n \\\" is missing role \\\",\\n Strings.toHexString(uint256(role), 32)\\n )\\n )\\n );\\n }\\n }\\n\\n /**\\n * @dev Returns the admin role that controls `role`. See {grantRole} and\\n * {revokeRole}.\\n *\\n * To change a role's admin, use {_setRoleAdmin}.\\n */\\n function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {\\n return _roles[role].adminRole;\\n }\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {\\n _grantRole(role, account);\\n }\\n\\n /**\\n * @dev Revokes `role` from `account`.\\n *\\n * If `account` had been granted `role`, emits a {RoleRevoked} event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {\\n _revokeRole(role, account);\\n }\\n\\n /**\\n * @dev Revokes `role` from the calling account.\\n *\\n * Roles are often managed via {grantRole} and {revokeRole}: this function's\\n * purpose is to provide a mechanism for accounts to lose their privileges\\n * if they are compromised (such as when a trusted device is misplaced).\\n *\\n * If the calling account had been revoked `role`, emits a {RoleRevoked}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must be `account`.\\n */\\n function renounceRole(bytes32 role, address account) public virtual override {\\n require(account == _msgSender(), \\\"AccessControl: can only renounce roles for self\\\");\\n\\n _revokeRole(role, account);\\n }\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\n * event. Note that unlike {grantRole}, this function doesn't perform any\\n * checks on the calling account.\\n *\\n * [WARNING]\\n * ====\\n * This function should only be called from the constructor when setting\\n * up the initial roles for the system.\\n *\\n * Using this function in any other way is effectively circumventing the admin\\n * system imposed by {AccessControl}.\\n * ====\\n *\\n * NOTE: This function is deprecated in favor of {_grantRole}.\\n */\\n function _setupRole(bytes32 role, address account) internal virtual {\\n _grantRole(role, account);\\n }\\n\\n /**\\n * @dev Sets `adminRole` as ``role``'s admin role.\\n *\\n * Emits a {RoleAdminChanged} event.\\n */\\n function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {\\n bytes32 previousAdminRole = getRoleAdmin(role);\\n _roles[role].adminRole = adminRole;\\n emit RoleAdminChanged(role, previousAdminRole, adminRole);\\n }\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * Internal function without access restriction.\\n */\\n function _grantRole(bytes32 role, address account) internal virtual {\\n if (!hasRole(role, account)) {\\n _roles[role].members[account] = true;\\n emit RoleGranted(role, account, _msgSender());\\n }\\n }\\n\\n /**\\n * @dev Revokes `role` from `account`.\\n *\\n * Internal function without access restriction.\\n */\\n function _revokeRole(bytes32 role, address account) internal virtual {\\n if (hasRole(role, account)) {\\n _roles[role].members[account] = false;\\n emit RoleRevoked(role, account, _msgSender());\\n }\\n }\\n}\\n\",\"keccak256\":\"0x4a1a0ba12bf1a33f10d9fe226278cf59675c0b929d29e4da99658a079b27fb84\",\"license\":\"MIT\"},\"@openzeppelin/contracts/access/IAccessControl.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev External interface of AccessControl declared to support ERC165 detection.\\n */\\ninterface IAccessControl {\\n /**\\n * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`\\n *\\n * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite\\n * {RoleAdminChanged} not being emitted signaling this.\\n *\\n * _Available since v3.1._\\n */\\n event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);\\n\\n /**\\n * @dev Emitted when `account` is granted `role`.\\n *\\n * `sender` is the account that originated the contract call, an admin role\\n * bearer except when using {AccessControl-_setupRole}.\\n */\\n event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Emitted when `account` is revoked `role`.\\n *\\n * `sender` is the account that originated the contract call:\\n * - if using `revokeRole`, it is the admin role bearer\\n * - if using `renounceRole`, it is the role bearer (i.e. `account`)\\n */\\n event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Returns `true` if `account` has been granted `role`.\\n */\\n function hasRole(bytes32 role, address account) external view returns (bool);\\n\\n /**\\n * @dev Returns the admin role that controls `role`. See {grantRole} and\\n * {revokeRole}.\\n *\\n * To change a role's admin, use {AccessControl-_setRoleAdmin}.\\n */\\n function getRoleAdmin(bytes32 role) external view returns (bytes32);\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function grantRole(bytes32 role, address account) external;\\n\\n /**\\n * @dev Revokes `role` from `account`.\\n *\\n * If `account` had been granted `role`, emits a {RoleRevoked} event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function revokeRole(bytes32 role, address account) external;\\n\\n /**\\n * @dev Revokes `role` from the calling account.\\n *\\n * Roles are often managed via {grantRole} and {revokeRole}: this function's\\n * purpose is to provide a mechanism for accounts to lose their privileges\\n * if they are compromised (such as when a trusted device is misplaced).\\n *\\n * If the calling account had been granted `role`, emits a {RoleRevoked}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must be `account`.\\n */\\n function renounceRole(bytes32 role, address account) external;\\n}\\n\",\"keccak256\":\"0x59ce320a585d7e1f163cd70390a0ef2ff9cec832e2aa544293a00692465a7a57\",\"license\":\"MIT\"},\"@openzeppelin/contracts/security/Pausable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../utils/Context.sol\\\";\\n\\n/**\\n * @dev Contract module which allows children to implement an emergency stop\\n * mechanism that can be triggered by an authorized account.\\n *\\n * This module is used through inheritance. It will make available the\\n * modifiers `whenNotPaused` and `whenPaused`, which can be applied to\\n * the functions of your contract. Note that they will not be pausable by\\n * simply including this module, only once the modifiers are put in place.\\n */\\nabstract contract Pausable is Context {\\n /**\\n * @dev Emitted when the pause is triggered by `account`.\\n */\\n event Paused(address account);\\n\\n /**\\n * @dev Emitted when the pause is lifted by `account`.\\n */\\n event Unpaused(address account);\\n\\n bool private _paused;\\n\\n /**\\n * @dev Initializes the contract in unpaused state.\\n */\\n constructor() {\\n _paused = false;\\n }\\n\\n /**\\n * @dev Returns true if the contract is paused, and false otherwise.\\n */\\n function paused() public view virtual returns (bool) {\\n return _paused;\\n }\\n\\n /**\\n * @dev Modifier to make a function callable only when the contract is not paused.\\n *\\n * Requirements:\\n *\\n * - The contract must not be paused.\\n */\\n modifier whenNotPaused() {\\n require(!paused(), \\\"Pausable: paused\\\");\\n _;\\n }\\n\\n /**\\n * @dev Modifier to make a function callable only when the contract is paused.\\n *\\n * Requirements:\\n *\\n * - The contract must be paused.\\n */\\n modifier whenPaused() {\\n require(paused(), \\\"Pausable: not paused\\\");\\n _;\\n }\\n\\n /**\\n * @dev Triggers stopped state.\\n *\\n * Requirements:\\n *\\n * - The contract must not be paused.\\n */\\n function _pause() internal virtual whenNotPaused {\\n _paused = true;\\n emit Paused(_msgSender());\\n }\\n\\n /**\\n * @dev Returns to normal state.\\n *\\n * Requirements:\\n *\\n * - The contract must be paused.\\n */\\n function _unpause() internal virtual whenPaused {\\n _paused = false;\\n emit Unpaused(_msgSender());\\n }\\n}\\n\",\"keccak256\":\"0xe68ed7fb8766ed1e888291f881e36b616037f852b37d96877045319ad298ba87\",\"license\":\"MIT\"},\"@openzeppelin/contracts/security/ReentrancyGuard.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Contract module that helps prevent reentrant calls to a function.\\n *\\n * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier\\n * available, which can be applied to functions to make sure there are no nested\\n * (reentrant) calls to them.\\n *\\n * Note that because there is a single `nonReentrant` guard, functions marked as\\n * `nonReentrant` may not call one another. This can be worked around by making\\n * those functions `private`, and then adding `external` `nonReentrant` entry\\n * points to them.\\n *\\n * TIP: If you would like to learn more about reentrancy and alternative ways\\n * to protect against it, check out our blog post\\n * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].\\n */\\nabstract contract ReentrancyGuard {\\n // Booleans are more expensive than uint256 or any type that takes up a full\\n // word because each write operation emits an extra SLOAD to first read the\\n // slot's contents, replace the bits taken up by the boolean, and then write\\n // back. This is the compiler's defense against contract upgrades and\\n // pointer aliasing, and it cannot be disabled.\\n\\n // The values being non-zero value makes deployment a bit more expensive,\\n // but in exchange the refund on every call to nonReentrant will be lower in\\n // amount. Since refunds are capped to a percentage of the total\\n // transaction's gas, it is best to keep them low in cases like this one, to\\n // increase the likelihood of the full refund coming into effect.\\n uint256 private constant _NOT_ENTERED = 1;\\n uint256 private constant _ENTERED = 2;\\n\\n uint256 private _status;\\n\\n constructor() {\\n _status = _NOT_ENTERED;\\n }\\n\\n /**\\n * @dev Prevents a contract from calling itself, directly or indirectly.\\n * Calling a `nonReentrant` function from another `nonReentrant`\\n * function is not supported. It is possible to prevent this from happening\\n * by making the `nonReentrant` function external, and making it call a\\n * `private` function that does the actual work.\\n */\\n modifier nonReentrant() {\\n // On the first call to nonReentrant, _notEntered will be true\\n require(_status != _ENTERED, \\\"ReentrancyGuard: reentrant call\\\");\\n\\n // Any calls to nonReentrant after this point will fail\\n _status = _ENTERED;\\n\\n _;\\n\\n // By storing the original value once again, a refund is triggered (see\\n // https://eips.ethereum.org/EIPS/eip-2200)\\n _status = _NOT_ENTERED;\\n }\\n}\\n\",\"keccak256\":\"0x0e9621f60b2faabe65549f7ed0f24e8853a45c1b7990d47e8160e523683f3935\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC1155/IERC1155.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/introspection/IERC165.sol\\\";\\n\\n/**\\n * @dev Required interface of an ERC1155 compliant contract, as defined in the\\n * https://eips.ethereum.org/EIPS/eip-1155[EIP].\\n *\\n * _Available since v3.1._\\n */\\ninterface IERC1155 is IERC165 {\\n /**\\n * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.\\n */\\n event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);\\n\\n /**\\n * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all\\n * transfers.\\n */\\n event TransferBatch(\\n address indexed operator,\\n address indexed from,\\n address indexed to,\\n uint256[] ids,\\n uint256[] values\\n );\\n\\n /**\\n * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to\\n * `approved`.\\n */\\n event ApprovalForAll(address indexed account, address indexed operator, bool approved);\\n\\n /**\\n * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.\\n *\\n * If an {URI} event was emitted for `id`, the standard\\n * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value\\n * returned by {IERC1155MetadataURI-uri}.\\n */\\n event URI(string value, uint256 indexed id);\\n\\n /**\\n * @dev Returns the amount of tokens of token type `id` owned by `account`.\\n *\\n * Requirements:\\n *\\n * - `account` cannot be the zero address.\\n */\\n function balanceOf(address account, uint256 id) external view returns (uint256);\\n\\n /**\\n * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.\\n *\\n * Requirements:\\n *\\n * - `accounts` and `ids` must have the same length.\\n */\\n function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids)\\n external\\n view\\n returns (uint256[] memory);\\n\\n /**\\n * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,\\n *\\n * Emits an {ApprovalForAll} event.\\n *\\n * Requirements:\\n *\\n * - `operator` cannot be the caller.\\n */\\n function setApprovalForAll(address operator, bool approved) external;\\n\\n /**\\n * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.\\n *\\n * See {setApprovalForAll}.\\n */\\n function isApprovedForAll(address account, address operator) external view returns (bool);\\n\\n /**\\n * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.\\n *\\n * Emits a {TransferSingle} event.\\n *\\n * Requirements:\\n *\\n * - `to` cannot be the zero address.\\n * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}.\\n * - `from` must have a balance of tokens of type `id` of at least `amount`.\\n * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the\\n * acceptance magic value.\\n */\\n function safeTransferFrom(\\n address from,\\n address to,\\n uint256 id,\\n uint256 amount,\\n bytes calldata data\\n ) external;\\n\\n /**\\n * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.\\n *\\n * Emits a {TransferBatch} event.\\n *\\n * Requirements:\\n *\\n * - `ids` and `amounts` must have the same length.\\n * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the\\n * acceptance magic value.\\n */\\n function safeBatchTransferFrom(\\n address from,\\n address to,\\n uint256[] calldata ids,\\n uint256[] calldata amounts,\\n bytes calldata data\\n ) external;\\n}\\n\",\"keccak256\":\"0x8e93de94c9062ebc94fb7e2e3929b0781ac6a2b7772e2f7a59045861c93e5be9\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC1155/IERC1155Receiver.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/introspection/IERC165.sol\\\";\\n\\n/**\\n * @dev _Available since v3.1._\\n */\\ninterface IERC1155Receiver is IERC165 {\\n /**\\n * @dev Handles the receipt of a single ERC1155 token type. This function is\\n * called at the end of a `safeTransferFrom` after the balance has been updated.\\n *\\n * NOTE: To accept the transfer, this must return\\n * `bytes4(keccak256(\\\"onERC1155Received(address,address,uint256,uint256,bytes)\\\"))`\\n * (i.e. 0xf23a6e61, or its own function selector).\\n *\\n * @param operator The address which initiated the transfer (i.e. msg.sender)\\n * @param from The address which previously owned the token\\n * @param id The ID of the token being transferred\\n * @param value The amount of tokens being transferred\\n * @param data Additional data with no specified format\\n * @return `bytes4(keccak256(\\\"onERC1155Received(address,address,uint256,uint256,bytes)\\\"))` if transfer is allowed\\n */\\n function onERC1155Received(\\n address operator,\\n address from,\\n uint256 id,\\n uint256 value,\\n bytes calldata data\\n ) external returns (bytes4);\\n\\n /**\\n * @dev Handles the receipt of a multiple ERC1155 token types. This function\\n * is called at the end of a `safeBatchTransferFrom` after the balances have\\n * been updated.\\n *\\n * NOTE: To accept the transfer(s), this must return\\n * `bytes4(keccak256(\\\"onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)\\\"))`\\n * (i.e. 0xbc197c81, or its own function selector).\\n *\\n * @param operator The address which initiated the batch transfer (i.e. msg.sender)\\n * @param from The address which previously owned the token\\n * @param ids An array containing ids of each token being transferred (order and length must match values array)\\n * @param values An array containing amounts of each token being transferred (order and length must match ids array)\\n * @param data Additional data with no specified format\\n * @return `bytes4(keccak256(\\\"onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)\\\"))` if transfer is allowed\\n */\\n function onERC1155BatchReceived(\\n address operator,\\n address from,\\n uint256[] calldata ids,\\n uint256[] calldata values,\\n bytes calldata data\\n ) external returns (bytes4);\\n}\\n\",\"keccak256\":\"0xeb373f1fdc7b755c6a750123a9b9e3a8a02c1470042fd6505d875000a80bde0b\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n}\\n\",\"keccak256\":\"0xe2e337e6dde9ef6b680e07338c493ebea1b5fd09b43424112868e9cc1706bca7\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/Strings.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev String operations.\\n */\\nlibrary Strings {\\n bytes16 private constant _HEX_SYMBOLS = \\\"0123456789abcdef\\\";\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\\n */\\n function toString(uint256 value) internal pure returns (string memory) {\\n // Inspired by OraclizeAPI's implementation - MIT licence\\n // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol\\n\\n if (value == 0) {\\n return \\\"0\\\";\\n }\\n uint256 temp = value;\\n uint256 digits;\\n while (temp != 0) {\\n digits++;\\n temp /= 10;\\n }\\n bytes memory buffer = new bytes(digits);\\n while (value != 0) {\\n digits -= 1;\\n buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));\\n value /= 10;\\n }\\n return string(buffer);\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\\n */\\n function toHexString(uint256 value) internal pure returns (string memory) {\\n if (value == 0) {\\n return \\\"0x00\\\";\\n }\\n uint256 temp = value;\\n uint256 length = 0;\\n while (temp != 0) {\\n length++;\\n temp >>= 8;\\n }\\n return toHexString(value, length);\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\\n */\\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\\n bytes memory buffer = new bytes(2 * length + 2);\\n buffer[0] = \\\"0\\\";\\n buffer[1] = \\\"x\\\";\\n for (uint256 i = 2 * length + 1; i > 1; --i) {\\n buffer[i] = _HEX_SYMBOLS[value & 0xf];\\n value >>= 4;\\n }\\n require(value == 0, \\\"Strings: hex length insufficient\\\");\\n return string(buffer);\\n }\\n}\\n\",\"keccak256\":\"0x32c202bd28995dd20c4347b7c6467a6d3241c74c8ad3edcbb610cd9205916c45\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/introspection/ERC165.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IERC165.sol\\\";\\n\\n/**\\n * @dev Implementation of the {IERC165} interface.\\n *\\n * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check\\n * for the additional interface id that will be supported. For example:\\n *\\n * ```solidity\\n * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\\n * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);\\n * }\\n * ```\\n *\\n * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.\\n */\\nabstract contract ERC165 is IERC165 {\\n /**\\n * @dev See {IERC165-supportsInterface}.\\n */\\n function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\\n return interfaceId == type(IERC165).interfaceId;\\n }\\n}\\n\",\"keccak256\":\"0xd10975de010d89fd1c78dc5e8a9a7e7f496198085c151648f20cba166b32582b\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/introspection/IERC165.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC165 standard, as defined in the\\n * https://eips.ethereum.org/EIPS/eip-165[EIP].\\n *\\n * Implementers can declare support of contract interfaces, which can then be\\n * queried by others ({ERC165Checker}).\\n *\\n * For an implementation, see {ERC165}.\\n */\\ninterface IERC165 {\\n /**\\n * @dev Returns true if this contract implements the interface defined by\\n * `interfaceId`. See the corresponding\\n * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]\\n * to learn more about how these ids are created.\\n *\\n * This function call must use less than 30 000 gas.\\n */\\n function supportsInterface(bytes4 interfaceId) external view returns (bool);\\n}\\n\",\"keccak256\":\"0x447a5f3ddc18419d41ff92b3773fb86471b1db25773e07f877f548918a185bf1\",\"license\":\"MIT\"},\"contracts/secretShop/ERC1155Delegate.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\n\\npragma solidity 0.8.15;\\n\\nimport '@openzeppelin/contracts/token/ERC1155/IERC1155Receiver.sol';\\nimport '@openzeppelin/contracts/token/ERC1155/IERC1155.sol';\\nimport '@openzeppelin/contracts/access/AccessControl.sol';\\nimport '@openzeppelin/contracts/security/ReentrancyGuard.sol';\\nimport '@openzeppelin/contracts/security/Pausable.sol';\\nimport './MarketConsts.sol';\\nimport './interfaces/IDelegate.sol';\\n\\ncontract ERC1155Delegate is IDelegate, AccessControl, IERC1155Receiver, ReentrancyGuard, Pausable {\\n bytes32 public constant DELEGATION_CALLER = keccak256('DELEGATION_CALLER');\\n bytes32 public constant PAUSABLE_CALLER = keccak256('PAUSABLE_CALLER');\\n\\n /**\\n * @dev single item data\\n */\\n struct Pair {\\n uint256 salt;\\n IERC1155 token;\\n uint256 tokenId;\\n uint256 amount;\\n }\\n\\n constructor() {\\n _grantRole(DEFAULT_ADMIN_ROLE, msg.sender);\\n }\\n\\n /**\\n * @return delegateType the delegate's type\\n */\\n function delegateType() external pure override returns (uint256) {\\n return uint256(Market.DelegationType.ERC1155);\\n }\\n\\n /**\\n * @dev Received function\\n */\\n function onERC1155BatchReceived(\\n address,\\n address,\\n uint256[] calldata,\\n uint256[] calldata,\\n bytes calldata\\n ) external pure override returns (bytes4) {\\n return this.onERC1155BatchReceived.selector;\\n }\\n\\n /**\\n * @dev Received function\\n */\\n function onERC1155Received(\\n address,\\n address,\\n uint256,\\n uint256,\\n bytes calldata\\n ) external pure override returns (bytes4) {\\n return this.onERC1155Received.selector;\\n }\\n\\n function pause() public onlyRole(PAUSABLE_CALLER) {\\n _pause();\\n }\\n\\n function unpause() public onlyRole(PAUSABLE_CALLER) {\\n _unpause();\\n }\\n\\n /**\\n * @dev decode data to the array of Pair\\n */\\n function decode(bytes calldata data) public pure returns (Pair[] memory) {\\n return abi.decode(data, (Pair[]));\\n }\\n\\n /**\\n * @dev run the sell to transfer item\\n * @param seller address which sell the item\\n * @param buyer address which buy the item\\n * @param data the item's data, which will be decode as a array of Pair\\n */\\n function executeSell(\\n address seller,\\n address buyer,\\n bytes calldata data\\n ) public override nonReentrant onlyRole(DELEGATION_CALLER) whenNotPaused returns (bool) {\\n Pair[] memory pairs = decode(data);\\n for (uint256 i = 0; i < pairs.length; i++) {\\n Pair memory p = pairs[i];\\n p.token.safeTransferFrom(seller, buyer, p.tokenId, p.amount, new bytes(0));\\n }\\n return true;\\n }\\n}\\n\",\"keccak256\":\"0x0541e5b748f2b051e0520650bc3bcd04ebb02419c10b875d630a16625da35c95\",\"license\":\"GPL-3.0-only\"},\"contracts/secretShop/MarketConsts.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\n\\npragma solidity 0.8.15;\\n\\nimport './interfaces/IDelegate.sol';\\nimport './interfaces/IWETHUpgradable.sol';\\nimport '@openzeppelin/contracts/token/ERC1155/IERC1155.sol';\\n\\nlibrary Market {\\n uint256 public constant INTENT_SELL = 1;\\n uint256 public constant INTENT_BUY = 2;\\n\\n uint8 public constant SIGN_V1 = 1;\\n\\n struct OrderItem {\\n uint256 price;\\n /** why bytes: because struct too complex will be omitted */\\n bytes data;\\n }\\n\\n // An Order\\n struct Order {\\n /* salt, a random number */\\n uint256 salt;\\n /* address which create order */\\n address user;\\n /** ChainId explain which network */\\n uint256 network;\\n /** which intent, 1 for sell */\\n uint256 intent;\\n /** just 1 at v1 */\\n uint256 delegateType;\\n /** order end ddl */\\n uint256 deadline;\\n /**\\n address of the ERC20 coin to trade\\n */\\n IERC20Upgradeable currency;\\n /**\\n items in an Order\\n */\\n OrderItem[] items;\\n /**\\n signature for Order, eip 2098 would be better\\n */\\n bytes32 r;\\n bytes32 s;\\n uint8 v;\\n /**\\n could be 1 now\\n */\\n uint8 signVersion;\\n }\\n\\n struct Fee {\\n uint256 percentage;\\n address to;\\n }\\n\\n struct SettleDetail {\\n // order operation type\\n Market.Op op;\\n //\\n uint256 orderIdx;\\n //\\n uint256 itemIdx;\\n //\\n uint256 price;\\n //\\n bytes32 itemHash;\\n // delegate which address to transfer token\\n IDelegate executionDelegate;\\n Fee[] fees;\\n }\\n\\n /**\\n * @dev information from who send this tx\\n */\\n struct SettleShared {\\n uint256 salt;\\n uint256 deadline;\\n address user;\\n /**\\n * can one order fail\\n * if true, tx will revert if one order fail\\n * else, tx didn't fail if one\\n */\\n bool canFail;\\n }\\n\\n struct RunInput {\\n // one Order match one SettleDetail\\n Order[] orders;\\n SettleDetail[] details;\\n SettleShared shared;\\n }\\n\\n enum InvStatus {\\n NEW,\\n COMPLETE,\\n CANCELLED\\n }\\n\\n /**\\n Operation\\n */\\n enum Op {\\n INVALID,\\n COMPLETE_SELL_OFFER,\\n COMPLETE_BUY_OFFER,\\n CANCEL_OFFER\\n }\\n\\n enum DelegationType {\\n INVALID,\\n ERC1155,\\n ERC721\\n }\\n}\\n\",\"keccak256\":\"0xb46dc7d278f3ca8049bd16ded6aefe9d40ea89a1040ca03b91e4216881da19e4\",\"license\":\"GPL-3.0-only\"},\"contracts/secretShop/interfaces/IDelegate.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\n\\npragma solidity 0.8.15;\\n\\ninterface IDelegate {\\n function delegateType() external view returns (uint256);\\n\\n function executeSell(\\n address seller,\\n address buyer,\\n bytes calldata data\\n ) external returns (bool);\\n}\\n\",\"keccak256\":\"0x6fc77df4bc7f0676906f87e16a5c7ed1f0e38945e7f82f32ff064e6e189d800a\",\"license\":\"GPL-3.0-only\"},\"contracts/secretShop/interfaces/IWETHUpgradable.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\n\\npragma solidity 0.8.15;\\n\\nimport '@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol';\\n\\ninterface IWETHUpgradable is IERC20Upgradeable {\\n function deposit() external payable;\\n\\n function withdraw(uint256 wad) external;\\n}\\n\",\"keccak256\":\"0xf8362bb88f787666b366b08a70ba214adecf9973af8956b651f24f264f5b488b\",\"license\":\"GPL-3.0-only\"}},\"version\":1}", + "bytecode": "0x608060405234801561001057600080fd5b50600180556002805460ff1916905561002a60003361002f565b6100ce565b6000828152602081815260408083206001600160a01b038516845290915290205460ff166100ca576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556100893390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6110e9806100dd6000396000f3fe608060405234801561001057600080fd5b506004361061010b5760003560e01c80638456cb59116100a2578063bc197c8111610071578063bc197c811461021c578063bc553f0f14610257578063d547741f1461026a578063e5c5e9a31461027d578063f23a6e611461029d57600080fd5b80638456cb59146101d25780638e325979146101da57806391d1485414610201578063a217fddf1461021457600080fd5b806336568abe116100de57806336568abe146101855780633cf7af26146101985780633f4ba83a146101bf5780635c975abb146101c757600080fd5b806301ffc9a714610110578063248a9ca3146101385780632c436e5b146101695780632f2ff15d14610170575b600080fd5b61012361011e366004610a43565b6102bd565b60405190151581526020015b60405180910390f35b61015b610146366004610a6d565b60009081526020819052604090206001015490565b60405190815260200161012f565b600161015b565b61018361017e366004610a9b565b6102f4565b005b610183610193366004610a9b565b61031f565b61015b7f4d5b90b2ff801b79c44742188d0f2fce5a80a460e67b2fdad2eaca180bf3607b81565b6101836103a2565b60025460ff16610123565b6101836103d8565b61015b7f7630198b183b603be5df16e380207195f2a065102b113930ccb600feaf61533181565b61012361020f366004610a9b565b61040b565b61015b600081565b61023e61022a366004610b59565b63bc197c8160e01b98975050505050505050565b6040516001600160e01b0319909116815260200161012f565b610123610265366004610c18565b610434565b610183610278366004610a9b565b610611565b61029061028b366004610c7d565b610637565b60405161012f9190610cbf565b61023e6102ab366004610d2c565b63f23a6e6160e01b9695505050505050565b60006001600160e01b03198216637965db0b60e01b14806102ee57506301ffc9a760e01b6001600160e01b03198316145b92915050565b600082815260208190526040902060010154610310813361064c565b61031a83836106b0565b505050565b6001600160a01b03811633146103945760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b61039e8282610734565b5050565b7f4d5b90b2ff801b79c44742188d0f2fce5a80a460e67b2fdad2eaca180bf3607b6103cd813361064c565b6103d5610799565b50565b7f4d5b90b2ff801b79c44742188d0f2fce5a80a460e67b2fdad2eaca180bf3607b610403813361064c565b6103d561082c565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b60006002600154036104885760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161038b565b60026001557f7630198b183b603be5df16e380207195f2a065102b113930ccb600feaf6153316104b8813361064c565b60025460ff16156104fe5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161038b565b600061050a8585610637565b905060005b815181101561060057600082828151811061052c5761052c610da8565b6020026020010151905080602001516001600160a01b031663f242432a8a8a84604001518560600151600067ffffffffffffffff81111561056f5761056f610dbe565b6040519080825280601f01601f191660200182016040528015610599576020820181803683370190505b506040518663ffffffff1660e01b81526004016105ba959493929190610e30565b600060405180830381600087803b1580156105d457600080fd5b505af11580156105e8573d6000803e3d6000fd5b505050505080806105f890610e8b565b91505061050f565b505060018080559695505050505050565b60008281526020819052604090206001015461062d813361064c565b61031a8383610734565b606061064582840184610efe565b9392505050565b610656828261040b565b61039e5761066e816001600160a01b031660146108a7565b6106798360206108a7565b60405160200161068a929190610fdd565b60408051601f198184030181529082905262461bcd60e51b825261038b91600401611052565b6106ba828261040b565b61039e576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556106f03390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b61073e828261040b565b1561039e576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60025460ff166107e25760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161038b565b6002805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60025460ff16156108725760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161038b565b6002805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861080f3390565b606060006108b6836002611065565b6108c1906002611084565b67ffffffffffffffff8111156108d9576108d9610dbe565b6040519080825280601f01601f191660200182016040528015610903576020820181803683370190505b509050600360fc1b8160008151811061091e5761091e610da8565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061094d5761094d610da8565b60200101906001600160f81b031916908160001a9053506000610971846002611065565b61097c906001611084565b90505b60018111156109f4576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106109b0576109b0610da8565b1a60f81b8282815181106109c6576109c6610da8565b60200101906001600160f81b031916908160001a90535060049490941c936109ed8161109c565b905061097f565b5083156106455760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161038b565b600060208284031215610a5557600080fd5b81356001600160e01b03198116811461064557600080fd5b600060208284031215610a7f57600080fd5b5035919050565b6001600160a01b03811681146103d557600080fd5b60008060408385031215610aae57600080fd5b823591506020830135610ac081610a86565b809150509250929050565b60008083601f840112610add57600080fd5b50813567ffffffffffffffff811115610af557600080fd5b6020830191508360208260051b8501011115610b1057600080fd5b9250929050565b60008083601f840112610b2957600080fd5b50813567ffffffffffffffff811115610b4157600080fd5b602083019150836020828501011115610b1057600080fd5b60008060008060008060008060a0898b031215610b7557600080fd5b8835610b8081610a86565b97506020890135610b9081610a86565b9650604089013567ffffffffffffffff80821115610bad57600080fd5b610bb98c838d01610acb565b909850965060608b0135915080821115610bd257600080fd5b610bde8c838d01610acb565b909650945060808b0135915080821115610bf757600080fd5b50610c048b828c01610b17565b999c989b5096995094979396929594505050565b60008060008060608587031215610c2e57600080fd5b8435610c3981610a86565b93506020850135610c4981610a86565b9250604085013567ffffffffffffffff811115610c6557600080fd5b610c7187828801610b17565b95989497509550505050565b60008060208385031215610c9057600080fd5b823567ffffffffffffffff811115610ca757600080fd5b610cb385828601610b17565b90969095509350505050565b602080825282518282018190526000919060409081850190868401855b82811015610d1f57815180518552868101516001600160a01b03168786015285810151868601526060908101519085015260809093019290850190600101610cdc565b5091979650505050505050565b60008060008060008060a08789031215610d4557600080fd5b8635610d5081610a86565b95506020870135610d6081610a86565b94506040870135935060608701359250608087013567ffffffffffffffff811115610d8a57600080fd5b610d9689828a01610b17565b979a9699509497509295939492505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b60005b83811015610def578181015183820152602001610dd7565b83811115610dfe576000848401525b50505050565b60008151808452610e1c816020860160208601610dd4565b601f01601f19169290920160200192915050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090610e6a90830184610e04565b979650505050505050565b634e487b7160e01b600052601160045260246000fd5b600060018201610e9d57610e9d610e75565b5060010190565b6040516080810167ffffffffffffffff81118282101715610ec757610ec7610dbe565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715610ef657610ef6610dbe565b604052919050565b60006020808385031215610f1157600080fd5b823567ffffffffffffffff80821115610f2957600080fd5b818501915085601f830112610f3d57600080fd5b813581811115610f4f57610f4f610dbe565b610f5d848260051b01610ecd565b818152848101925060079190911b830184019087821115610f7d57600080fd5b928401925b81841015610e6a5760808489031215610f9b5760008081fd5b610fa3610ea4565b8435815285850135610fb481610a86565b818701526040858101359082015260608086013590820152835260809093019291840191610f82565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351611015816017850160208801610dd4565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351611046816028840160208801610dd4565b01602801949350505050565b6020815260006106456020830184610e04565b600081600019048311821515161561107f5761107f610e75565b500290565b6000821982111561109757611097610e75565b500190565b6000816110ab576110ab610e75565b50600019019056fea264697066735822122040819865f3374f6b201f5a5588ee08c380befc32618814f1c6a9114162f363fe64736f6c634300080f0033", + "deployedBytecode": "0x608060405234801561001057600080fd5b506004361061010b5760003560e01c80638456cb59116100a2578063bc197c8111610071578063bc197c811461021c578063bc553f0f14610257578063d547741f1461026a578063e5c5e9a31461027d578063f23a6e611461029d57600080fd5b80638456cb59146101d25780638e325979146101da57806391d1485414610201578063a217fddf1461021457600080fd5b806336568abe116100de57806336568abe146101855780633cf7af26146101985780633f4ba83a146101bf5780635c975abb146101c757600080fd5b806301ffc9a714610110578063248a9ca3146101385780632c436e5b146101695780632f2ff15d14610170575b600080fd5b61012361011e366004610a43565b6102bd565b60405190151581526020015b60405180910390f35b61015b610146366004610a6d565b60009081526020819052604090206001015490565b60405190815260200161012f565b600161015b565b61018361017e366004610a9b565b6102f4565b005b610183610193366004610a9b565b61031f565b61015b7f4d5b90b2ff801b79c44742188d0f2fce5a80a460e67b2fdad2eaca180bf3607b81565b6101836103a2565b60025460ff16610123565b6101836103d8565b61015b7f7630198b183b603be5df16e380207195f2a065102b113930ccb600feaf61533181565b61012361020f366004610a9b565b61040b565b61015b600081565b61023e61022a366004610b59565b63bc197c8160e01b98975050505050505050565b6040516001600160e01b0319909116815260200161012f565b610123610265366004610c18565b610434565b610183610278366004610a9b565b610611565b61029061028b366004610c7d565b610637565b60405161012f9190610cbf565b61023e6102ab366004610d2c565b63f23a6e6160e01b9695505050505050565b60006001600160e01b03198216637965db0b60e01b14806102ee57506301ffc9a760e01b6001600160e01b03198316145b92915050565b600082815260208190526040902060010154610310813361064c565b61031a83836106b0565b505050565b6001600160a01b03811633146103945760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b61039e8282610734565b5050565b7f4d5b90b2ff801b79c44742188d0f2fce5a80a460e67b2fdad2eaca180bf3607b6103cd813361064c565b6103d5610799565b50565b7f4d5b90b2ff801b79c44742188d0f2fce5a80a460e67b2fdad2eaca180bf3607b610403813361064c565b6103d561082c565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b60006002600154036104885760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161038b565b60026001557f7630198b183b603be5df16e380207195f2a065102b113930ccb600feaf6153316104b8813361064c565b60025460ff16156104fe5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161038b565b600061050a8585610637565b905060005b815181101561060057600082828151811061052c5761052c610da8565b6020026020010151905080602001516001600160a01b031663f242432a8a8a84604001518560600151600067ffffffffffffffff81111561056f5761056f610dbe565b6040519080825280601f01601f191660200182016040528015610599576020820181803683370190505b506040518663ffffffff1660e01b81526004016105ba959493929190610e30565b600060405180830381600087803b1580156105d457600080fd5b505af11580156105e8573d6000803e3d6000fd5b505050505080806105f890610e8b565b91505061050f565b505060018080559695505050505050565b60008281526020819052604090206001015461062d813361064c565b61031a8383610734565b606061064582840184610efe565b9392505050565b610656828261040b565b61039e5761066e816001600160a01b031660146108a7565b6106798360206108a7565b60405160200161068a929190610fdd565b60408051601f198184030181529082905262461bcd60e51b825261038b91600401611052565b6106ba828261040b565b61039e576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556106f03390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b61073e828261040b565b1561039e576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60025460ff166107e25760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161038b565b6002805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60025460ff16156108725760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161038b565b6002805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861080f3390565b606060006108b6836002611065565b6108c1906002611084565b67ffffffffffffffff8111156108d9576108d9610dbe565b6040519080825280601f01601f191660200182016040528015610903576020820181803683370190505b509050600360fc1b8160008151811061091e5761091e610da8565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061094d5761094d610da8565b60200101906001600160f81b031916908160001a9053506000610971846002611065565b61097c906001611084565b90505b60018111156109f4576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106109b0576109b0610da8565b1a60f81b8282815181106109c6576109c6610da8565b60200101906001600160f81b031916908160001a90535060049490941c936109ed8161109c565b905061097f565b5083156106455760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161038b565b600060208284031215610a5557600080fd5b81356001600160e01b03198116811461064557600080fd5b600060208284031215610a7f57600080fd5b5035919050565b6001600160a01b03811681146103d557600080fd5b60008060408385031215610aae57600080fd5b823591506020830135610ac081610a86565b809150509250929050565b60008083601f840112610add57600080fd5b50813567ffffffffffffffff811115610af557600080fd5b6020830191508360208260051b8501011115610b1057600080fd5b9250929050565b60008083601f840112610b2957600080fd5b50813567ffffffffffffffff811115610b4157600080fd5b602083019150836020828501011115610b1057600080fd5b60008060008060008060008060a0898b031215610b7557600080fd5b8835610b8081610a86565b97506020890135610b9081610a86565b9650604089013567ffffffffffffffff80821115610bad57600080fd5b610bb98c838d01610acb565b909850965060608b0135915080821115610bd257600080fd5b610bde8c838d01610acb565b909650945060808b0135915080821115610bf757600080fd5b50610c048b828c01610b17565b999c989b5096995094979396929594505050565b60008060008060608587031215610c2e57600080fd5b8435610c3981610a86565b93506020850135610c4981610a86565b9250604085013567ffffffffffffffff811115610c6557600080fd5b610c7187828801610b17565b95989497509550505050565b60008060208385031215610c9057600080fd5b823567ffffffffffffffff811115610ca757600080fd5b610cb385828601610b17565b90969095509350505050565b602080825282518282018190526000919060409081850190868401855b82811015610d1f57815180518552868101516001600160a01b03168786015285810151868601526060908101519085015260809093019290850190600101610cdc565b5091979650505050505050565b60008060008060008060a08789031215610d4557600080fd5b8635610d5081610a86565b95506020870135610d6081610a86565b94506040870135935060608701359250608087013567ffffffffffffffff811115610d8a57600080fd5b610d9689828a01610b17565b979a9699509497509295939492505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b60005b83811015610def578181015183820152602001610dd7565b83811115610dfe576000848401525b50505050565b60008151808452610e1c816020860160208601610dd4565b601f01601f19169290920160200192915050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090610e6a90830184610e04565b979650505050505050565b634e487b7160e01b600052601160045260246000fd5b600060018201610e9d57610e9d610e75565b5060010190565b6040516080810167ffffffffffffffff81118282101715610ec757610ec7610dbe565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715610ef657610ef6610dbe565b604052919050565b60006020808385031215610f1157600080fd5b823567ffffffffffffffff80821115610f2957600080fd5b818501915085601f830112610f3d57600080fd5b813581811115610f4f57610f4f610dbe565b610f5d848260051b01610ecd565b818152848101925060079190911b830184019087821115610f7d57600080fd5b928401925b81841015610e6a5760808489031215610f9b5760008081fd5b610fa3610ea4565b8435815285850135610fb481610a86565b818701526040858101359082015260608086013590820152835260809093019291840191610f82565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351611015816017850160208801610dd4565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351611046816028840160208801610dd4565b01602801949350505050565b6020815260006106456020830184610e04565b600081600019048311821515161561107f5761107f610e75565b500290565b6000821982111561109757611097610e75565b500190565b6000816110ab576110ab610e75565b50600019019056fea264697066735822122040819865f3374f6b201f5a5588ee08c380befc32618814f1c6a9114162f363fe64736f6c634300080f0033", + "devdoc": { + "kind": "dev", + "methods": { + "decode(bytes)": { + "details": "decode data to the array of Pair" + }, + "delegateType()": { + "returns": { + "_0": "delegateType the delegate's type" + } + }, + "executeSell(address,address,bytes)": { + "details": "run the sell to transfer item", + "params": { + "buyer": "address which buy the item", + "data": "the item's data, which will be decode as a array of Pair", + "seller": "address which sell the item" + } + }, + "getRoleAdmin(bytes32)": { + "details": "Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}." + }, + "grantRole(bytes32,address)": { + "details": "Grants `role` to `account`. If `account` had not been already granted `role`, emits a {RoleGranted} event. Requirements: - the caller must have ``role``'s admin role." + }, + "hasRole(bytes32,address)": { + "details": "Returns `true` if `account` has been granted `role`." + }, + "onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)": { + "details": "Received function" + }, + "onERC1155Received(address,address,uint256,uint256,bytes)": { + "details": "Received function" + }, + "paused()": { + "details": "Returns true if the contract is paused, and false otherwise." + }, + "renounceRole(bytes32,address)": { + "details": "Revokes `role` from the calling account. Roles are often managed via {grantRole} and {revokeRole}: this function's purpose is to provide a mechanism for accounts to lose their privileges if they are compromised (such as when a trusted device is misplaced). If the calling account had been revoked `role`, emits a {RoleRevoked} event. Requirements: - the caller must be `account`." + }, + "revokeRole(bytes32,address)": { + "details": "Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role." + }, + "supportsInterface(bytes4)": { + "details": "See {IERC165-supportsInterface}." + } + }, + "version": 1 + }, + "userdoc": { + "kind": "user", + "methods": {}, + "version": 1 + }, + "storageLayout": { + "storage": [ + { + "astId": 1440, + "contract": "contracts/secretShop/ERC1155Delegate.sol:ERC1155Delegate", + "label": "_roles", + "offset": 0, + "slot": "0", + "type": "t_mapping(t_bytes32,t_struct(RoleData)1435_storage)" + }, + { + "astId": 1900, + "contract": "contracts/secretShop/ERC1155Delegate.sol:ERC1155Delegate", + "label": "_status", + "offset": 0, + "slot": "1", + "type": "t_uint256" + }, + { + "astId": 1815, + "contract": "contracts/secretShop/ERC1155Delegate.sol:ERC1155Delegate", + "label": "_paused", + "offset": 0, + "slot": "2", + "type": "t_bool" + } + ], + "types": { + "t_address": { + "encoding": "inplace", + "label": "address", + "numberOfBytes": "20" + }, + "t_bool": { + "encoding": "inplace", + "label": "bool", + "numberOfBytes": "1" + }, + "t_bytes32": { + "encoding": "inplace", + "label": "bytes32", + "numberOfBytes": "32" + }, + "t_mapping(t_address,t_bool)": { + "encoding": "mapping", + "key": "t_address", + "label": "mapping(address => bool)", + "numberOfBytes": "32", + "value": "t_bool" + }, + "t_mapping(t_bytes32,t_struct(RoleData)1435_storage)": { + "encoding": "mapping", + "key": "t_bytes32", + "label": "mapping(bytes32 => struct AccessControl.RoleData)", + "numberOfBytes": "32", + "value": "t_struct(RoleData)1435_storage" + }, + "t_struct(RoleData)1435_storage": { + "encoding": "inplace", + "label": "struct AccessControl.RoleData", + "members": [ + { + "astId": 1432, + "contract": "contracts/secretShop/ERC1155Delegate.sol:ERC1155Delegate", + "label": "members", + "offset": 0, + "slot": "0", + "type": "t_mapping(t_address,t_bool)" + }, + { + "astId": 1434, + "contract": "contracts/secretShop/ERC1155Delegate.sol:ERC1155Delegate", + "label": "adminRole", + "offset": 0, + "slot": "1", + "type": "t_bytes32" + } + ], + "numberOfBytes": "64" + }, + "t_uint256": { + "encoding": "inplace", + "label": "uint256", + "numberOfBytes": "32" + } + } + } +} \ No newline at end of file diff --git a/deployments/p12TestNet/ERC721Delegate.json b/deployments/p12TestNet/ERC721Delegate.json new file mode 100644 index 0000000..6364138 --- /dev/null +++ b/deployments/p12TestNet/ERC721Delegate.json @@ -0,0 +1,581 @@ +{ + "address": "0xA57422Bed77ff74cC20d7458B93FC2D978F12193", + "abi": [ + { + "inputs": [], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "Paused", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "role", + "type": "bytes32" + }, + { + "indexed": true, + "internalType": "bytes32", + "name": "previousAdminRole", + "type": "bytes32" + }, + { + "indexed": true, + "internalType": "bytes32", + "name": "newAdminRole", + "type": "bytes32" + } + ], + "name": "RoleAdminChanged", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "role", + "type": "bytes32" + }, + { + "indexed": true, + "internalType": "address", + "name": "account", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "sender", + "type": "address" + } + ], + "name": "RoleGranted", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "role", + "type": "bytes32" + }, + { + "indexed": true, + "internalType": "address", + "name": "account", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "sender", + "type": "address" + } + ], + "name": "RoleRevoked", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "Unpaused", + "type": "event" + }, + { + "inputs": [], + "name": "DEFAULT_ADMIN_ROLE", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "DELEGATION_CALLER", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "PAUSABLE_CALLER", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "decode", + "outputs": [ + { + "components": [ + { + "internalType": "uint256", + "name": "salt", + "type": "uint256" + }, + { + "internalType": "contract IERC721", + "name": "token", + "type": "address" + }, + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + } + ], + "internalType": "struct ERC721Delegate.Pair[]", + "name": "", + "type": "tuple[]" + } + ], + "stateMutability": "pure", + "type": "function" + }, + { + "inputs": [], + "name": "delegateType", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "pure", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "seller", + "type": "address" + }, + { + "internalType": "address", + "name": "buyer", + "type": "address" + }, + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "executeSell", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "role", + "type": "bytes32" + } + ], + "name": "getRoleAdmin", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "role", + "type": "bytes32" + }, + { + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "grantRole", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "role", + "type": "bytes32" + }, + { + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "hasRole", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + }, + { + "internalType": "address", + "name": "", + "type": "address" + }, + { + "internalType": "uint256", + "name": "", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "", + "type": "bytes" + } + ], + "name": "onERC721Received", + "outputs": [ + { + "internalType": "bytes4", + "name": "", + "type": "bytes4" + } + ], + "stateMutability": "pure", + "type": "function" + }, + { + "inputs": [], + "name": "pause", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "paused", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "role", + "type": "bytes32" + }, + { + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "renounceRole", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "role", + "type": "bytes32" + }, + { + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "revokeRole", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes4", + "name": "interfaceId", + "type": "bytes4" + } + ], + "name": "supportsInterface", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "unpause", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + } + ], + "transactionHash": "0x8f64059b95c7bac25c93a5fbd1ede53bcecf29f0648082e750731d3f1aa234b2", + "receipt": { + "to": null, + "from": "0xfeD03676c595DD1F1c6716a446cD44B4C90AD290", + "contractAddress": "0xA57422Bed77ff74cC20d7458B93FC2D978F12193", + "transactionIndex": 0, + "gasUsed": "934932", + "logsBloom": "0x00000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000020000000000000000000800000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000001000000000000000000000000000000000000000000000000000000000000100000000000020000000000100000000000000000000000000000000000000000000000010000000", + "blockHash": "0x02c61c42b64df7d74657619045fb24a8e845c59b50636d85e5a6d9a2874787bb", + "transactionHash": "0x8f64059b95c7bac25c93a5fbd1ede53bcecf29f0648082e750731d3f1aa234b2", + "logs": [ + { + "transactionIndex": 0, + "blockNumber": 1206191, + "transactionHash": "0x8f64059b95c7bac25c93a5fbd1ede53bcecf29f0648082e750731d3f1aa234b2", + "address": "0xA57422Bed77ff74cC20d7458B93FC2D978F12193", + "topics": [ + "0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d", + "0x0000000000000000000000000000000000000000000000000000000000000000", + "0x000000000000000000000000fed03676c595dd1f1c6716a446cd44b4c90ad290", + "0x000000000000000000000000fed03676c595dd1f1c6716a446cd44b4c90ad290" + ], + "data": "0x", + "logIndex": 0, + "blockHash": "0x02c61c42b64df7d74657619045fb24a8e845c59b50636d85e5a6d9a2874787bb" + } + ], + "blockNumber": 1206191, + "cumulativeGasUsed": "934932", + "status": 1, + "byzantium": true + }, + "args": [], + "numDeployments": 1, + "solcInputHash": "1f7f80fb95b6efcc6f464d7df403eaaa", + "metadata": "{\"compiler\":{\"version\":\"0.8.15+commit.e14f2714\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Paused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"previousAdminRole\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"newAdminRole\",\"type\":\"bytes32\"}],\"name\":\"RoleAdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleGranted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleRevoked\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Unpaused\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"DEFAULT_ADMIN_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"DELEGATION_CALLER\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"PAUSABLE_CALLER\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"decode\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"salt\",\"type\":\"uint256\"},{\"internalType\":\"contract IERC721\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"internalType\":\"struct ERC721Delegate.Pair[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"delegateType\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"seller\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"buyer\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"executeSell\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"name\":\"getRoleAdmin\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"grantRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"hasRole\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"onERC721Received\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"paused\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"renounceRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"revokeRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"unpause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"decode(bytes)\":{\"details\":\"decode data to the array of Pair\"},\"delegateType()\":{\"returns\":{\"_0\":\"delegateType the delegate's type\"}},\"executeSell(address,address,bytes)\":{\"details\":\"run the sell to transfer item\",\"params\":{\"buyer\":\"address which buy the item\",\"data\":\"the item's data, which will be decode as a array of Pair\",\"seller\":\"address which sell the item\"}},\"getRoleAdmin(bytes32)\":{\"details\":\"Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}.\"},\"grantRole(bytes32,address)\":{\"details\":\"Grants `role` to `account`. If `account` had not been already granted `role`, emits a {RoleGranted} event. Requirements: - the caller must have ``role``'s admin role.\"},\"hasRole(bytes32,address)\":{\"details\":\"Returns `true` if `account` has been granted `role`.\"},\"onERC721Received(address,address,uint256,bytes)\":{\"details\":\"Received function\"},\"paused()\":{\"details\":\"Returns true if the contract is paused, and false otherwise.\"},\"renounceRole(bytes32,address)\":{\"details\":\"Revokes `role` from the calling account. Roles are often managed via {grantRole} and {revokeRole}: this function's purpose is to provide a mechanism for accounts to lose their privileges if they are compromised (such as when a trusted device is misplaced). If the calling account had been revoked `role`, emits a {RoleRevoked} event. Requirements: - the caller must be `account`.\"},\"revokeRole(bytes32,address)\":{\"details\":\"Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role.\"},\"supportsInterface(bytes4)\":{\"details\":\"See {IERC165-supportsInterface}.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/secretShop/ERC721Delegate.sol\":\"ERC721Delegate\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC20 standard as defined in the EIP.\\n */\\ninterface IERC20Upgradeable {\\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 `to`.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transfer(address to, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Returns the remaining number of tokens that `spender` will be\\n * allowed to spend on behalf of `owner` through {transferFrom}. This is\\n * zero by default.\\n *\\n * This value changes when {approve} or {transferFrom} are called.\\n */\\n function allowance(address owner, address spender) external view returns (uint256);\\n\\n /**\\n * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * IMPORTANT: Beware that changing an allowance with this method brings the risk\\n * that someone may use both the old and the new allowance by unfortunate\\n * transaction ordering. One possible solution to mitigate this race\\n * condition is to first reduce the spender's allowance to 0 and set the\\n * desired value afterwards:\\n * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\\n *\\n * Emits an {Approval} event.\\n */\\n function approve(address spender, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Moves `amount` tokens from `from` to `to` 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(\\n address from,\\n address to,\\n uint256 amount\\n ) external returns (bool);\\n\\n /**\\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\\n * another (`to`).\\n *\\n * Note that `value` may be zero.\\n */\\n event Transfer(address indexed from, address indexed to, uint256 value);\\n\\n /**\\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\\n * a call to {approve}. `value` is the new allowance.\\n */\\n event Approval(address indexed owner, address indexed spender, uint256 value);\\n}\\n\",\"keccak256\":\"0x6777f3fccb5dab95a9088ef62c41bee0198fd92e50d7c94f0e3733788af4079e\",\"license\":\"MIT\"},\"@openzeppelin/contracts/access/AccessControl.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControl.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IAccessControl.sol\\\";\\nimport \\\"../utils/Context.sol\\\";\\nimport \\\"../utils/Strings.sol\\\";\\nimport \\\"../utils/introspection/ERC165.sol\\\";\\n\\n/**\\n * @dev Contract module that allows children to implement role-based access\\n * control mechanisms. This is a lightweight version that doesn't allow enumerating role\\n * members except through off-chain means by accessing the contract event logs. Some\\n * applications may benefit from on-chain enumerability, for those cases see\\n * {AccessControlEnumerable}.\\n *\\n * Roles are referred to by their `bytes32` identifier. These should be exposed\\n * in the external API and be unique. The best way to achieve this is by\\n * using `public constant` hash digests:\\n *\\n * ```\\n * bytes32 public constant MY_ROLE = keccak256(\\\"MY_ROLE\\\");\\n * ```\\n *\\n * Roles can be used to represent a set of permissions. To restrict access to a\\n * function call, use {hasRole}:\\n *\\n * ```\\n * function foo() public {\\n * require(hasRole(MY_ROLE, msg.sender));\\n * ...\\n * }\\n * ```\\n *\\n * Roles can be granted and revoked dynamically via the {grantRole} and\\n * {revokeRole} functions. Each role has an associated admin role, and only\\n * accounts that have a role's admin role can call {grantRole} and {revokeRole}.\\n *\\n * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means\\n * that only accounts with this role will be able to grant or revoke other\\n * roles. More complex role relationships can be created by using\\n * {_setRoleAdmin}.\\n *\\n * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to\\n * grant and revoke this role. Extra precautions should be taken to secure\\n * accounts that have been granted it.\\n */\\nabstract contract AccessControl is Context, IAccessControl, ERC165 {\\n struct RoleData {\\n mapping(address => bool) members;\\n bytes32 adminRole;\\n }\\n\\n mapping(bytes32 => RoleData) private _roles;\\n\\n bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;\\n\\n /**\\n * @dev Modifier that checks that an account has a specific role. Reverts\\n * with a standardized message including the required role.\\n *\\n * The format of the revert reason is given by the following regular expression:\\n *\\n * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/\\n *\\n * _Available since v4.1._\\n */\\n modifier onlyRole(bytes32 role) {\\n _checkRole(role, _msgSender());\\n _;\\n }\\n\\n /**\\n * @dev See {IERC165-supportsInterface}.\\n */\\n function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\\n return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);\\n }\\n\\n /**\\n * @dev Returns `true` if `account` has been granted `role`.\\n */\\n function hasRole(bytes32 role, address account) public view virtual override returns (bool) {\\n return _roles[role].members[account];\\n }\\n\\n /**\\n * @dev Revert with a standard message if `account` is missing `role`.\\n *\\n * The format of the revert reason is given by the following regular expression:\\n *\\n * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/\\n */\\n function _checkRole(bytes32 role, address account) internal view virtual {\\n if (!hasRole(role, account)) {\\n revert(\\n string(\\n abi.encodePacked(\\n \\\"AccessControl: account \\\",\\n Strings.toHexString(uint160(account), 20),\\n \\\" is missing role \\\",\\n Strings.toHexString(uint256(role), 32)\\n )\\n )\\n );\\n }\\n }\\n\\n /**\\n * @dev Returns the admin role that controls `role`. See {grantRole} and\\n * {revokeRole}.\\n *\\n * To change a role's admin, use {_setRoleAdmin}.\\n */\\n function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {\\n return _roles[role].adminRole;\\n }\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {\\n _grantRole(role, account);\\n }\\n\\n /**\\n * @dev Revokes `role` from `account`.\\n *\\n * If `account` had been granted `role`, emits a {RoleRevoked} event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {\\n _revokeRole(role, account);\\n }\\n\\n /**\\n * @dev Revokes `role` from the calling account.\\n *\\n * Roles are often managed via {grantRole} and {revokeRole}: this function's\\n * purpose is to provide a mechanism for accounts to lose their privileges\\n * if they are compromised (such as when a trusted device is misplaced).\\n *\\n * If the calling account had been revoked `role`, emits a {RoleRevoked}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must be `account`.\\n */\\n function renounceRole(bytes32 role, address account) public virtual override {\\n require(account == _msgSender(), \\\"AccessControl: can only renounce roles for self\\\");\\n\\n _revokeRole(role, account);\\n }\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\n * event. Note that unlike {grantRole}, this function doesn't perform any\\n * checks on the calling account.\\n *\\n * [WARNING]\\n * ====\\n * This function should only be called from the constructor when setting\\n * up the initial roles for the system.\\n *\\n * Using this function in any other way is effectively circumventing the admin\\n * system imposed by {AccessControl}.\\n * ====\\n *\\n * NOTE: This function is deprecated in favor of {_grantRole}.\\n */\\n function _setupRole(bytes32 role, address account) internal virtual {\\n _grantRole(role, account);\\n }\\n\\n /**\\n * @dev Sets `adminRole` as ``role``'s admin role.\\n *\\n * Emits a {RoleAdminChanged} event.\\n */\\n function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {\\n bytes32 previousAdminRole = getRoleAdmin(role);\\n _roles[role].adminRole = adminRole;\\n emit RoleAdminChanged(role, previousAdminRole, adminRole);\\n }\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * Internal function without access restriction.\\n */\\n function _grantRole(bytes32 role, address account) internal virtual {\\n if (!hasRole(role, account)) {\\n _roles[role].members[account] = true;\\n emit RoleGranted(role, account, _msgSender());\\n }\\n }\\n\\n /**\\n * @dev Revokes `role` from `account`.\\n *\\n * Internal function without access restriction.\\n */\\n function _revokeRole(bytes32 role, address account) internal virtual {\\n if (hasRole(role, account)) {\\n _roles[role].members[account] = false;\\n emit RoleRevoked(role, account, _msgSender());\\n }\\n }\\n}\\n\",\"keccak256\":\"0x4a1a0ba12bf1a33f10d9fe226278cf59675c0b929d29e4da99658a079b27fb84\",\"license\":\"MIT\"},\"@openzeppelin/contracts/access/IAccessControl.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev External interface of AccessControl declared to support ERC165 detection.\\n */\\ninterface IAccessControl {\\n /**\\n * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`\\n *\\n * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite\\n * {RoleAdminChanged} not being emitted signaling this.\\n *\\n * _Available since v3.1._\\n */\\n event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);\\n\\n /**\\n * @dev Emitted when `account` is granted `role`.\\n *\\n * `sender` is the account that originated the contract call, an admin role\\n * bearer except when using {AccessControl-_setupRole}.\\n */\\n event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Emitted when `account` is revoked `role`.\\n *\\n * `sender` is the account that originated the contract call:\\n * - if using `revokeRole`, it is the admin role bearer\\n * - if using `renounceRole`, it is the role bearer (i.e. `account`)\\n */\\n event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Returns `true` if `account` has been granted `role`.\\n */\\n function hasRole(bytes32 role, address account) external view returns (bool);\\n\\n /**\\n * @dev Returns the admin role that controls `role`. See {grantRole} and\\n * {revokeRole}.\\n *\\n * To change a role's admin, use {AccessControl-_setRoleAdmin}.\\n */\\n function getRoleAdmin(bytes32 role) external view returns (bytes32);\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function grantRole(bytes32 role, address account) external;\\n\\n /**\\n * @dev Revokes `role` from `account`.\\n *\\n * If `account` had been granted `role`, emits a {RoleRevoked} event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function revokeRole(bytes32 role, address account) external;\\n\\n /**\\n * @dev Revokes `role` from the calling account.\\n *\\n * Roles are often managed via {grantRole} and {revokeRole}: this function's\\n * purpose is to provide a mechanism for accounts to lose their privileges\\n * if they are compromised (such as when a trusted device is misplaced).\\n *\\n * If the calling account had been granted `role`, emits a {RoleRevoked}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must be `account`.\\n */\\n function renounceRole(bytes32 role, address account) external;\\n}\\n\",\"keccak256\":\"0x59ce320a585d7e1f163cd70390a0ef2ff9cec832e2aa544293a00692465a7a57\",\"license\":\"MIT\"},\"@openzeppelin/contracts/security/Pausable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../utils/Context.sol\\\";\\n\\n/**\\n * @dev Contract module which allows children to implement an emergency stop\\n * mechanism that can be triggered by an authorized account.\\n *\\n * This module is used through inheritance. It will make available the\\n * modifiers `whenNotPaused` and `whenPaused`, which can be applied to\\n * the functions of your contract. Note that they will not be pausable by\\n * simply including this module, only once the modifiers are put in place.\\n */\\nabstract contract Pausable is Context {\\n /**\\n * @dev Emitted when the pause is triggered by `account`.\\n */\\n event Paused(address account);\\n\\n /**\\n * @dev Emitted when the pause is lifted by `account`.\\n */\\n event Unpaused(address account);\\n\\n bool private _paused;\\n\\n /**\\n * @dev Initializes the contract in unpaused state.\\n */\\n constructor() {\\n _paused = false;\\n }\\n\\n /**\\n * @dev Returns true if the contract is paused, and false otherwise.\\n */\\n function paused() public view virtual returns (bool) {\\n return _paused;\\n }\\n\\n /**\\n * @dev Modifier to make a function callable only when the contract is not paused.\\n *\\n * Requirements:\\n *\\n * - The contract must not be paused.\\n */\\n modifier whenNotPaused() {\\n require(!paused(), \\\"Pausable: paused\\\");\\n _;\\n }\\n\\n /**\\n * @dev Modifier to make a function callable only when the contract is paused.\\n *\\n * Requirements:\\n *\\n * - The contract must be paused.\\n */\\n modifier whenPaused() {\\n require(paused(), \\\"Pausable: not paused\\\");\\n _;\\n }\\n\\n /**\\n * @dev Triggers stopped state.\\n *\\n * Requirements:\\n *\\n * - The contract must not be paused.\\n */\\n function _pause() internal virtual whenNotPaused {\\n _paused = true;\\n emit Paused(_msgSender());\\n }\\n\\n /**\\n * @dev Returns to normal state.\\n *\\n * Requirements:\\n *\\n * - The contract must be paused.\\n */\\n function _unpause() internal virtual whenPaused {\\n _paused = false;\\n emit Unpaused(_msgSender());\\n }\\n}\\n\",\"keccak256\":\"0xe68ed7fb8766ed1e888291f881e36b616037f852b37d96877045319ad298ba87\",\"license\":\"MIT\"},\"@openzeppelin/contracts/security/ReentrancyGuard.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Contract module that helps prevent reentrant calls to a function.\\n *\\n * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier\\n * available, which can be applied to functions to make sure there are no nested\\n * (reentrant) calls to them.\\n *\\n * Note that because there is a single `nonReentrant` guard, functions marked as\\n * `nonReentrant` may not call one another. This can be worked around by making\\n * those functions `private`, and then adding `external` `nonReentrant` entry\\n * points to them.\\n *\\n * TIP: If you would like to learn more about reentrancy and alternative ways\\n * to protect against it, check out our blog post\\n * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].\\n */\\nabstract contract ReentrancyGuard {\\n // Booleans are more expensive than uint256 or any type that takes up a full\\n // word because each write operation emits an extra SLOAD to first read the\\n // slot's contents, replace the bits taken up by the boolean, and then write\\n // back. This is the compiler's defense against contract upgrades and\\n // pointer aliasing, and it cannot be disabled.\\n\\n // The values being non-zero value makes deployment a bit more expensive,\\n // but in exchange the refund on every call to nonReentrant will be lower in\\n // amount. Since refunds are capped to a percentage of the total\\n // transaction's gas, it is best to keep them low in cases like this one, to\\n // increase the likelihood of the full refund coming into effect.\\n uint256 private constant _NOT_ENTERED = 1;\\n uint256 private constant _ENTERED = 2;\\n\\n uint256 private _status;\\n\\n constructor() {\\n _status = _NOT_ENTERED;\\n }\\n\\n /**\\n * @dev Prevents a contract from calling itself, directly or indirectly.\\n * Calling a `nonReentrant` function from another `nonReentrant`\\n * function is not supported. It is possible to prevent this from happening\\n * by making the `nonReentrant` function external, and making it call a\\n * `private` function that does the actual work.\\n */\\n modifier nonReentrant() {\\n // On the first call to nonReentrant, _notEntered will be true\\n require(_status != _ENTERED, \\\"ReentrancyGuard: reentrant call\\\");\\n\\n // Any calls to nonReentrant after this point will fail\\n _status = _ENTERED;\\n\\n _;\\n\\n // By storing the original value once again, a refund is triggered (see\\n // https://eips.ethereum.org/EIPS/eip-2200)\\n _status = _NOT_ENTERED;\\n }\\n}\\n\",\"keccak256\":\"0x0e9621f60b2faabe65549f7ed0f24e8853a45c1b7990d47e8160e523683f3935\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC1155/IERC1155.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/introspection/IERC165.sol\\\";\\n\\n/**\\n * @dev Required interface of an ERC1155 compliant contract, as defined in the\\n * https://eips.ethereum.org/EIPS/eip-1155[EIP].\\n *\\n * _Available since v3.1._\\n */\\ninterface IERC1155 is IERC165 {\\n /**\\n * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.\\n */\\n event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);\\n\\n /**\\n * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all\\n * transfers.\\n */\\n event TransferBatch(\\n address indexed operator,\\n address indexed from,\\n address indexed to,\\n uint256[] ids,\\n uint256[] values\\n );\\n\\n /**\\n * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to\\n * `approved`.\\n */\\n event ApprovalForAll(address indexed account, address indexed operator, bool approved);\\n\\n /**\\n * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.\\n *\\n * If an {URI} event was emitted for `id`, the standard\\n * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value\\n * returned by {IERC1155MetadataURI-uri}.\\n */\\n event URI(string value, uint256 indexed id);\\n\\n /**\\n * @dev Returns the amount of tokens of token type `id` owned by `account`.\\n *\\n * Requirements:\\n *\\n * - `account` cannot be the zero address.\\n */\\n function balanceOf(address account, uint256 id) external view returns (uint256);\\n\\n /**\\n * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.\\n *\\n * Requirements:\\n *\\n * - `accounts` and `ids` must have the same length.\\n */\\n function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids)\\n external\\n view\\n returns (uint256[] memory);\\n\\n /**\\n * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,\\n *\\n * Emits an {ApprovalForAll} event.\\n *\\n * Requirements:\\n *\\n * - `operator` cannot be the caller.\\n */\\n function setApprovalForAll(address operator, bool approved) external;\\n\\n /**\\n * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.\\n *\\n * See {setApprovalForAll}.\\n */\\n function isApprovedForAll(address account, address operator) external view returns (bool);\\n\\n /**\\n * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.\\n *\\n * Emits a {TransferSingle} event.\\n *\\n * Requirements:\\n *\\n * - `to` cannot be the zero address.\\n * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}.\\n * - `from` must have a balance of tokens of type `id` of at least `amount`.\\n * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the\\n * acceptance magic value.\\n */\\n function safeTransferFrom(\\n address from,\\n address to,\\n uint256 id,\\n uint256 amount,\\n bytes calldata data\\n ) external;\\n\\n /**\\n * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.\\n *\\n * Emits a {TransferBatch} event.\\n *\\n * Requirements:\\n *\\n * - `ids` and `amounts` must have the same length.\\n * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the\\n * acceptance magic value.\\n */\\n function safeBatchTransferFrom(\\n address from,\\n address to,\\n uint256[] calldata ids,\\n uint256[] calldata amounts,\\n bytes calldata data\\n ) external;\\n}\\n\",\"keccak256\":\"0x8e93de94c9062ebc94fb7e2e3929b0781ac6a2b7772e2f7a59045861c93e5be9\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC721/IERC721.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/introspection/IERC165.sol\\\";\\n\\n/**\\n * @dev Required interface of an ERC721 compliant contract.\\n */\\ninterface IERC721 is IERC165 {\\n /**\\n * @dev Emitted when `tokenId` token is transferred from `from` to `to`.\\n */\\n event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);\\n\\n /**\\n * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.\\n */\\n event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);\\n\\n /**\\n * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.\\n */\\n event ApprovalForAll(address indexed owner, address indexed operator, bool approved);\\n\\n /**\\n * @dev Returns the number of tokens in ``owner``'s account.\\n */\\n function balanceOf(address owner) external view returns (uint256 balance);\\n\\n /**\\n * @dev Returns the owner of the `tokenId` token.\\n *\\n * Requirements:\\n *\\n * - `tokenId` must exist.\\n */\\n function ownerOf(uint256 tokenId) external view returns (address owner);\\n\\n /**\\n * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients\\n * are aware of the ERC721 protocol to prevent tokens from being forever locked.\\n *\\n * Requirements:\\n *\\n * - `from` cannot be the zero address.\\n * - `to` cannot be the zero address.\\n * - `tokenId` token must exist and be owned by `from`.\\n * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.\\n * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.\\n *\\n * Emits a {Transfer} event.\\n */\\n function safeTransferFrom(\\n address from,\\n address to,\\n uint256 tokenId\\n ) external;\\n\\n /**\\n * @dev Transfers `tokenId` token from `from` to `to`.\\n *\\n * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.\\n *\\n * Requirements:\\n *\\n * - `from` cannot be the zero address.\\n * - `to` cannot be the zero address.\\n * - `tokenId` token must be owned by `from`.\\n * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transferFrom(\\n address from,\\n address to,\\n uint256 tokenId\\n ) external;\\n\\n /**\\n * @dev Gives permission to `to` to transfer `tokenId` token to another account.\\n * The approval is cleared when the token is transferred.\\n *\\n * Only a single account can be approved at a time, so approving the zero address clears previous approvals.\\n *\\n * Requirements:\\n *\\n * - The caller must own the token or be an approved operator.\\n * - `tokenId` must exist.\\n *\\n * Emits an {Approval} event.\\n */\\n function approve(address to, uint256 tokenId) external;\\n\\n /**\\n * @dev Returns the account approved for `tokenId` token.\\n *\\n * Requirements:\\n *\\n * - `tokenId` must exist.\\n */\\n function getApproved(uint256 tokenId) external view returns (address operator);\\n\\n /**\\n * @dev Approve or remove `operator` as an operator for the caller.\\n * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.\\n *\\n * Requirements:\\n *\\n * - The `operator` cannot be the caller.\\n *\\n * Emits an {ApprovalForAll} event.\\n */\\n function setApprovalForAll(address operator, bool _approved) external;\\n\\n /**\\n * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.\\n *\\n * See {setApprovalForAll}\\n */\\n function isApprovedForAll(address owner, address operator) external view returns (bool);\\n\\n /**\\n * @dev Safely transfers `tokenId` token from `from` to `to`.\\n *\\n * Requirements:\\n *\\n * - `from` cannot be the zero address.\\n * - `to` cannot be the zero address.\\n * - `tokenId` token must exist and be owned by `from`.\\n * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.\\n * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.\\n *\\n * Emits a {Transfer} event.\\n */\\n function safeTransferFrom(\\n address from,\\n address to,\\n uint256 tokenId,\\n bytes calldata data\\n ) external;\\n}\\n\",\"keccak256\":\"0x516a22876c1fab47f49b1bc22b4614491cd05338af8bd2e7b382da090a079990\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @title ERC721 token receiver interface\\n * @dev Interface for any contract that wants to support safeTransfers\\n * from ERC721 asset contracts.\\n */\\ninterface IERC721Receiver {\\n /**\\n * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}\\n * by `operator` from `from`, this function is called.\\n *\\n * It must return its Solidity selector to confirm the token transfer.\\n * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.\\n *\\n * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.\\n */\\n function onERC721Received(\\n address operator,\\n address from,\\n uint256 tokenId,\\n bytes calldata data\\n ) external returns (bytes4);\\n}\\n\",\"keccak256\":\"0xd5fa74b4fb323776fa4a8158800fec9d5ac0fec0d6dd046dd93798632ada265f\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n}\\n\",\"keccak256\":\"0xe2e337e6dde9ef6b680e07338c493ebea1b5fd09b43424112868e9cc1706bca7\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/Strings.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev String operations.\\n */\\nlibrary Strings {\\n bytes16 private constant _HEX_SYMBOLS = \\\"0123456789abcdef\\\";\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\\n */\\n function toString(uint256 value) internal pure returns (string memory) {\\n // Inspired by OraclizeAPI's implementation - MIT licence\\n // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol\\n\\n if (value == 0) {\\n return \\\"0\\\";\\n }\\n uint256 temp = value;\\n uint256 digits;\\n while (temp != 0) {\\n digits++;\\n temp /= 10;\\n }\\n bytes memory buffer = new bytes(digits);\\n while (value != 0) {\\n digits -= 1;\\n buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));\\n value /= 10;\\n }\\n return string(buffer);\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\\n */\\n function toHexString(uint256 value) internal pure returns (string memory) {\\n if (value == 0) {\\n return \\\"0x00\\\";\\n }\\n uint256 temp = value;\\n uint256 length = 0;\\n while (temp != 0) {\\n length++;\\n temp >>= 8;\\n }\\n return toHexString(value, length);\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\\n */\\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\\n bytes memory buffer = new bytes(2 * length + 2);\\n buffer[0] = \\\"0\\\";\\n buffer[1] = \\\"x\\\";\\n for (uint256 i = 2 * length + 1; i > 1; --i) {\\n buffer[i] = _HEX_SYMBOLS[value & 0xf];\\n value >>= 4;\\n }\\n require(value == 0, \\\"Strings: hex length insufficient\\\");\\n return string(buffer);\\n }\\n}\\n\",\"keccak256\":\"0x32c202bd28995dd20c4347b7c6467a6d3241c74c8ad3edcbb610cd9205916c45\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/introspection/ERC165.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IERC165.sol\\\";\\n\\n/**\\n * @dev Implementation of the {IERC165} interface.\\n *\\n * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check\\n * for the additional interface id that will be supported. For example:\\n *\\n * ```solidity\\n * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\\n * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);\\n * }\\n * ```\\n *\\n * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.\\n */\\nabstract contract ERC165 is IERC165 {\\n /**\\n * @dev See {IERC165-supportsInterface}.\\n */\\n function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\\n return interfaceId == type(IERC165).interfaceId;\\n }\\n}\\n\",\"keccak256\":\"0xd10975de010d89fd1c78dc5e8a9a7e7f496198085c151648f20cba166b32582b\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/introspection/IERC165.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC165 standard, as defined in the\\n * https://eips.ethereum.org/EIPS/eip-165[EIP].\\n *\\n * Implementers can declare support of contract interfaces, which can then be\\n * queried by others ({ERC165Checker}).\\n *\\n * For an implementation, see {ERC165}.\\n */\\ninterface IERC165 {\\n /**\\n * @dev Returns true if this contract implements the interface defined by\\n * `interfaceId`. See the corresponding\\n * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]\\n * to learn more about how these ids are created.\\n *\\n * This function call must use less than 30 000 gas.\\n */\\n function supportsInterface(bytes4 interfaceId) external view returns (bool);\\n}\\n\",\"keccak256\":\"0x447a5f3ddc18419d41ff92b3773fb86471b1db25773e07f877f548918a185bf1\",\"license\":\"MIT\"},\"contracts/secretShop/ERC721Delegate.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\n\\npragma solidity 0.8.15;\\n\\nimport '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol';\\nimport '@openzeppelin/contracts/token/ERC721/IERC721.sol';\\nimport '@openzeppelin/contracts/access/AccessControl.sol';\\nimport '@openzeppelin/contracts/security/ReentrancyGuard.sol';\\nimport '@openzeppelin/contracts/security/Pausable.sol';\\nimport './MarketConsts.sol';\\nimport './interfaces/IDelegate.sol';\\n\\ncontract ERC721Delegate is IDelegate, AccessControl, IERC721Receiver, ReentrancyGuard, Pausable {\\n bytes32 public constant DELEGATION_CALLER = keccak256('DELEGATION_CALLER');\\n bytes32 public constant PAUSABLE_CALLER = keccak256('PAUSABLE_CALLER');\\n\\n /**\\n * @dev single item data\\n */\\n struct Pair {\\n uint256 salt;\\n IERC721 token;\\n uint256 tokenId;\\n }\\n\\n constructor() {\\n _grantRole(DEFAULT_ADMIN_ROLE, msg.sender);\\n }\\n\\n /**\\n * @return delegateType the delegate's type\\n */\\n function delegateType() external pure override returns (uint256) {\\n return uint256(Market.DelegationType.ERC721);\\n }\\n\\n /**\\n * @dev Received function\\n */\\n function onERC721Received(\\n address,\\n address,\\n uint256,\\n bytes calldata\\n ) external pure override returns (bytes4) {\\n return this.onERC721Received.selector;\\n }\\n\\n function pause() public onlyRole(PAUSABLE_CALLER) {\\n _pause();\\n }\\n\\n function unpause() public onlyRole(PAUSABLE_CALLER) {\\n _unpause();\\n }\\n\\n /**\\n * @dev decode data to the array of Pair\\n */\\n function decode(bytes calldata data) public pure returns (Pair[] memory) {\\n return abi.decode(data, (Pair[]));\\n }\\n\\n /**\\n * @dev run the sell to transfer item\\n * @param seller address which sell the item\\n * @param buyer address which buy the item\\n * @param data the item's data, which will be decode as a array of Pair\\n */\\n function executeSell(\\n address seller,\\n address buyer,\\n bytes calldata data\\n ) public override nonReentrant onlyRole(DELEGATION_CALLER) whenNotPaused returns (bool) {\\n Pair[] memory pairs = decode(data);\\n for (uint256 i = 0; i < pairs.length; i++) {\\n Pair memory p = pairs[i];\\n p.token.safeTransferFrom(seller, buyer, p.tokenId);\\n }\\n return true;\\n }\\n}\\n\",\"keccak256\":\"0xe2b3794594df77601d19cc51ddc3f3cf8bf579bcd9d46f29d05d6d5f1e9d19ce\",\"license\":\"GPL-3.0-only\"},\"contracts/secretShop/MarketConsts.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\n\\npragma solidity 0.8.15;\\n\\nimport './interfaces/IDelegate.sol';\\nimport './interfaces/IWETHUpgradable.sol';\\nimport '@openzeppelin/contracts/token/ERC1155/IERC1155.sol';\\n\\nlibrary Market {\\n uint256 public constant INTENT_SELL = 1;\\n uint256 public constant INTENT_BUY = 2;\\n\\n uint8 public constant SIGN_V1 = 1;\\n\\n struct OrderItem {\\n uint256 price;\\n /** why bytes: because struct too complex will be omitted */\\n bytes data;\\n }\\n\\n // An Order\\n struct Order {\\n /* salt, a random number */\\n uint256 salt;\\n /* address which create order */\\n address user;\\n /** ChainId explain which network */\\n uint256 network;\\n /** which intent, 1 for sell */\\n uint256 intent;\\n /** just 1 at v1 */\\n uint256 delegateType;\\n /** order end ddl */\\n uint256 deadline;\\n /**\\n address of the ERC20 coin to trade\\n */\\n IERC20Upgradeable currency;\\n /**\\n items in an Order\\n */\\n OrderItem[] items;\\n /**\\n signature for Order, eip 2098 would be better\\n */\\n bytes32 r;\\n bytes32 s;\\n uint8 v;\\n /**\\n could be 1 now\\n */\\n uint8 signVersion;\\n }\\n\\n struct Fee {\\n uint256 percentage;\\n address to;\\n }\\n\\n struct SettleDetail {\\n // order operation type\\n Market.Op op;\\n //\\n uint256 orderIdx;\\n //\\n uint256 itemIdx;\\n //\\n uint256 price;\\n //\\n bytes32 itemHash;\\n // delegate which address to transfer token\\n IDelegate executionDelegate;\\n Fee[] fees;\\n }\\n\\n /**\\n * @dev information from who send this tx\\n */\\n struct SettleShared {\\n uint256 salt;\\n uint256 deadline;\\n address user;\\n /**\\n * can one order fail\\n * if true, tx will revert if one order fail\\n * else, tx didn't fail if one\\n */\\n bool canFail;\\n }\\n\\n struct RunInput {\\n // one Order match one SettleDetail\\n Order[] orders;\\n SettleDetail[] details;\\n SettleShared shared;\\n }\\n\\n enum InvStatus {\\n NEW,\\n COMPLETE,\\n CANCELLED\\n }\\n\\n /**\\n Operation\\n */\\n enum Op {\\n INVALID,\\n COMPLETE_SELL_OFFER,\\n COMPLETE_BUY_OFFER,\\n CANCEL_OFFER\\n }\\n\\n enum DelegationType {\\n INVALID,\\n ERC1155,\\n ERC721\\n }\\n}\\n\",\"keccak256\":\"0xb46dc7d278f3ca8049bd16ded6aefe9d40ea89a1040ca03b91e4216881da19e4\",\"license\":\"GPL-3.0-only\"},\"contracts/secretShop/interfaces/IDelegate.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\n\\npragma solidity 0.8.15;\\n\\ninterface IDelegate {\\n function delegateType() external view returns (uint256);\\n\\n function executeSell(\\n address seller,\\n address buyer,\\n bytes calldata data\\n ) external returns (bool);\\n}\\n\",\"keccak256\":\"0x6fc77df4bc7f0676906f87e16a5c7ed1f0e38945e7f82f32ff064e6e189d800a\",\"license\":\"GPL-3.0-only\"},\"contracts/secretShop/interfaces/IWETHUpgradable.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\n\\npragma solidity 0.8.15;\\n\\nimport '@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol';\\n\\ninterface IWETHUpgradable is IERC20Upgradeable {\\n function deposit() external payable;\\n\\n function withdraw(uint256 wad) external;\\n}\\n\",\"keccak256\":\"0xf8362bb88f787666b366b08a70ba214adecf9973af8956b651f24f264f5b488b\",\"license\":\"GPL-3.0-only\"}},\"version\":1}", + "bytecode": "0x608060405234801561001057600080fd5b50600180556002805460ff1916905561002a60003361002f565b6100ce565b6000828152602081815260408083206001600160a01b038516845290915290205460ff166100ca576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556100893390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b610f12806100dd6000396000f3fe608060405234801561001057600080fd5b50600436106101005760003560e01c80635c975abb11610097578063a217fddf11610066578063a217fddf14610241578063bc553f0f14610249578063d547741f1461025c578063e5c5e9a31461026f57600080fd5b80635c975abb146101f45780638456cb59146101ff5780638e3259791461020757806391d148541461022e57600080fd5b80632f2ff15d116100d35780632f2ff15d1461019d57806336568abe146101b25780633cf7af26146101c55780633f4ba83a146101ec57600080fd5b806301ffc9a714610105578063150b7a021461012d578063248a9ca3146101655780632c436e5b14610196575b600080fd5b6101186101133660046109d7565b61028f565b60405190151581526020015b60405180910390f35b61014c61013b366004610a5f565b630a85bd0160e11b95945050505050565b6040516001600160e01b03199091168152602001610124565b610188610173366004610ad2565b60009081526020819052604090206001015490565b604051908152602001610124565b6002610188565b6101b06101ab366004610aeb565b6102c6565b005b6101b06101c0366004610aeb565b6102f1565b6101887f4d5b90b2ff801b79c44742188d0f2fce5a80a460e67b2fdad2eaca180bf3607b81565b6101b0610374565b60025460ff16610118565b6101b06103aa565b6101887f7630198b183b603be5df16e380207195f2a065102b113930ccb600feaf61533181565b61011861023c366004610aeb565b6103dd565b610188600081565b610118610257366004610b1b565b610406565b6101b061026a366004610aeb565b6105a5565b61028261027d366004610b80565b6105cb565b6040516101249190610bc2565b60006001600160e01b03198216637965db0b60e01b14806102c057506301ffc9a760e01b6001600160e01b03198316145b92915050565b6000828152602081905260409020600101546102e281336105e0565b6102ec8383610644565b505050565b6001600160a01b03811633146103665760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b61037082826106c8565b5050565b7f4d5b90b2ff801b79c44742188d0f2fce5a80a460e67b2fdad2eaca180bf3607b61039f81336105e0565b6103a761072d565b50565b7f4d5b90b2ff801b79c44742188d0f2fce5a80a460e67b2fdad2eaca180bf3607b6103d581336105e0565b6103a76107c0565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b600060026001540361045a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161035d565b60026001557f7630198b183b603be5df16e380207195f2a065102b113930ccb600feaf61533161048a81336105e0565b60025460ff16156104d05760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161035d565b60006104dc85856105cb565b905060005b81518110156105945760008282815181106104fe576104fe610c24565b602090810291909101810151908101516040808301519051632142170760e11b81526001600160a01b038d811660048301528c81166024830152604482019290925292935016906342842e0e90606401600060405180830381600087803b15801561056857600080fd5b505af115801561057c573d6000803e3d6000fd5b5050505050808061058c90610c50565b9150506104e1565b505060018080559695505050505050565b6000828152602081905260409020600101546105c181336105e0565b6102ec83836106c8565b60606105d982840184610cd9565b9392505050565b6105ea82826103dd565b61037057610602816001600160a01b0316601461083b565b61060d83602061083b565b60405160200161061e929190610de6565b60408051601f198184030181529082905262461bcd60e51b825261035d91600401610e5b565b61064e82826103dd565b610370576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556106843390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6106d282826103dd565b15610370576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60025460ff166107765760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161035d565b6002805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60025460ff16156108065760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161035d565b6002805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586107a33390565b6060600061084a836002610e8e565b610855906002610ead565b67ffffffffffffffff81111561086d5761086d610c69565b6040519080825280601f01601f191660200182016040528015610897576020820181803683370190505b509050600360fc1b816000815181106108b2576108b2610c24565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106108e1576108e1610c24565b60200101906001600160f81b031916908160001a9053506000610905846002610e8e565b610910906001610ead565b90505b6001811115610988576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061094457610944610c24565b1a60f81b82828151811061095a5761095a610c24565b60200101906001600160f81b031916908160001a90535060049490941c9361098181610ec5565b9050610913565b5083156105d95760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161035d565b6000602082840312156109e957600080fd5b81356001600160e01b0319811681146105d957600080fd5b6001600160a01b03811681146103a757600080fd5b60008083601f840112610a2857600080fd5b50813567ffffffffffffffff811115610a4057600080fd5b602083019150836020828501011115610a5857600080fd5b9250929050565b600080600080600060808688031215610a7757600080fd5b8535610a8281610a01565b94506020860135610a9281610a01565b935060408601359250606086013567ffffffffffffffff811115610ab557600080fd5b610ac188828901610a16565b969995985093965092949392505050565b600060208284031215610ae457600080fd5b5035919050565b60008060408385031215610afe57600080fd5b823591506020830135610b1081610a01565b809150509250929050565b60008060008060608587031215610b3157600080fd5b8435610b3c81610a01565b93506020850135610b4c81610a01565b9250604085013567ffffffffffffffff811115610b6857600080fd5b610b7487828801610a16565b95989497509550505050565b60008060208385031215610b9357600080fd5b823567ffffffffffffffff811115610baa57600080fd5b610bb685828601610a16565b90969095509350505050565b602080825282518282018190526000919060409081850190868401855b82811015610c1757815180518552868101516001600160a01b0316878601528501518585015260609093019290850190600101610bdf565b5091979650505050505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201610c6257610c62610c3a565b5060010190565b634e487b7160e01b600052604160045260246000fd5b6040516060810167ffffffffffffffff81118282101715610ca257610ca2610c69565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715610cd157610cd1610c69565b604052919050565b60006020808385031215610cec57600080fd5b823567ffffffffffffffff80821115610d0457600080fd5b818501915085601f830112610d1857600080fd5b813581811115610d2a57610d2a610c69565b610d38848260051b01610ca8565b81815284810192506060918202840185019188831115610d5757600080fd5b938501935b82851015610daa5780858a031215610d745760008081fd5b610d7c610c7f565b8535815286860135610d8d81610a01565b818801526040868101359082015284529384019392850192610d5c565b50979650505050505050565b60005b83811015610dd1578181015183820152602001610db9565b83811115610de0576000848401525b50505050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351610e1e816017850160208801610db6565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351610e4f816028840160208801610db6565b01602801949350505050565b6020815260008251806020840152610e7a816040850160208701610db6565b601f01601f19169190910160400192915050565b6000816000190483118215151615610ea857610ea8610c3a565b500290565b60008219821115610ec057610ec0610c3a565b500190565b600081610ed457610ed4610c3a565b50600019019056fea264697066735822122074d8c86170ec02f65c85d010a031bf125323334afb20993bd45361284ffe439864736f6c634300080f0033", + "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106101005760003560e01c80635c975abb11610097578063a217fddf11610066578063a217fddf14610241578063bc553f0f14610249578063d547741f1461025c578063e5c5e9a31461026f57600080fd5b80635c975abb146101f45780638456cb59146101ff5780638e3259791461020757806391d148541461022e57600080fd5b80632f2ff15d116100d35780632f2ff15d1461019d57806336568abe146101b25780633cf7af26146101c55780633f4ba83a146101ec57600080fd5b806301ffc9a714610105578063150b7a021461012d578063248a9ca3146101655780632c436e5b14610196575b600080fd5b6101186101133660046109d7565b61028f565b60405190151581526020015b60405180910390f35b61014c61013b366004610a5f565b630a85bd0160e11b95945050505050565b6040516001600160e01b03199091168152602001610124565b610188610173366004610ad2565b60009081526020819052604090206001015490565b604051908152602001610124565b6002610188565b6101b06101ab366004610aeb565b6102c6565b005b6101b06101c0366004610aeb565b6102f1565b6101887f4d5b90b2ff801b79c44742188d0f2fce5a80a460e67b2fdad2eaca180bf3607b81565b6101b0610374565b60025460ff16610118565b6101b06103aa565b6101887f7630198b183b603be5df16e380207195f2a065102b113930ccb600feaf61533181565b61011861023c366004610aeb565b6103dd565b610188600081565b610118610257366004610b1b565b610406565b6101b061026a366004610aeb565b6105a5565b61028261027d366004610b80565b6105cb565b6040516101249190610bc2565b60006001600160e01b03198216637965db0b60e01b14806102c057506301ffc9a760e01b6001600160e01b03198316145b92915050565b6000828152602081905260409020600101546102e281336105e0565b6102ec8383610644565b505050565b6001600160a01b03811633146103665760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b61037082826106c8565b5050565b7f4d5b90b2ff801b79c44742188d0f2fce5a80a460e67b2fdad2eaca180bf3607b61039f81336105e0565b6103a761072d565b50565b7f4d5b90b2ff801b79c44742188d0f2fce5a80a460e67b2fdad2eaca180bf3607b6103d581336105e0565b6103a76107c0565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b600060026001540361045a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161035d565b60026001557f7630198b183b603be5df16e380207195f2a065102b113930ccb600feaf61533161048a81336105e0565b60025460ff16156104d05760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161035d565b60006104dc85856105cb565b905060005b81518110156105945760008282815181106104fe576104fe610c24565b602090810291909101810151908101516040808301519051632142170760e11b81526001600160a01b038d811660048301528c81166024830152604482019290925292935016906342842e0e90606401600060405180830381600087803b15801561056857600080fd5b505af115801561057c573d6000803e3d6000fd5b5050505050808061058c90610c50565b9150506104e1565b505060018080559695505050505050565b6000828152602081905260409020600101546105c181336105e0565b6102ec83836106c8565b60606105d982840184610cd9565b9392505050565b6105ea82826103dd565b61037057610602816001600160a01b0316601461083b565b61060d83602061083b565b60405160200161061e929190610de6565b60408051601f198184030181529082905262461bcd60e51b825261035d91600401610e5b565b61064e82826103dd565b610370576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556106843390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6106d282826103dd565b15610370576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60025460ff166107765760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161035d565b6002805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60025460ff16156108065760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161035d565b6002805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586107a33390565b6060600061084a836002610e8e565b610855906002610ead565b67ffffffffffffffff81111561086d5761086d610c69565b6040519080825280601f01601f191660200182016040528015610897576020820181803683370190505b509050600360fc1b816000815181106108b2576108b2610c24565b60200101906001600160f81b031916908160001a905350600f60fb1b816001815181106108e1576108e1610c24565b60200101906001600160f81b031916908160001a9053506000610905846002610e8e565b610910906001610ead565b90505b6001811115610988576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061094457610944610c24565b1a60f81b82828151811061095a5761095a610c24565b60200101906001600160f81b031916908160001a90535060049490941c9361098181610ec5565b9050610913565b5083156105d95760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161035d565b6000602082840312156109e957600080fd5b81356001600160e01b0319811681146105d957600080fd5b6001600160a01b03811681146103a757600080fd5b60008083601f840112610a2857600080fd5b50813567ffffffffffffffff811115610a4057600080fd5b602083019150836020828501011115610a5857600080fd5b9250929050565b600080600080600060808688031215610a7757600080fd5b8535610a8281610a01565b94506020860135610a9281610a01565b935060408601359250606086013567ffffffffffffffff811115610ab557600080fd5b610ac188828901610a16565b969995985093965092949392505050565b600060208284031215610ae457600080fd5b5035919050565b60008060408385031215610afe57600080fd5b823591506020830135610b1081610a01565b809150509250929050565b60008060008060608587031215610b3157600080fd5b8435610b3c81610a01565b93506020850135610b4c81610a01565b9250604085013567ffffffffffffffff811115610b6857600080fd5b610b7487828801610a16565b95989497509550505050565b60008060208385031215610b9357600080fd5b823567ffffffffffffffff811115610baa57600080fd5b610bb685828601610a16565b90969095509350505050565b602080825282518282018190526000919060409081850190868401855b82811015610c1757815180518552868101516001600160a01b0316878601528501518585015260609093019290850190600101610bdf565b5091979650505050505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201610c6257610c62610c3a565b5060010190565b634e487b7160e01b600052604160045260246000fd5b6040516060810167ffffffffffffffff81118282101715610ca257610ca2610c69565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715610cd157610cd1610c69565b604052919050565b60006020808385031215610cec57600080fd5b823567ffffffffffffffff80821115610d0457600080fd5b818501915085601f830112610d1857600080fd5b813581811115610d2a57610d2a610c69565b610d38848260051b01610ca8565b81815284810192506060918202840185019188831115610d5757600080fd5b938501935b82851015610daa5780858a031215610d745760008081fd5b610d7c610c7f565b8535815286860135610d8d81610a01565b818801526040868101359082015284529384019392850192610d5c565b50979650505050505050565b60005b83811015610dd1578181015183820152602001610db9565b83811115610de0576000848401525b50505050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351610e1e816017850160208801610db6565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351610e4f816028840160208801610db6565b01602801949350505050565b6020815260008251806020840152610e7a816040850160208701610db6565b601f01601f19169190910160400192915050565b6000816000190483118215151615610ea857610ea8610c3a565b500290565b60008219821115610ec057610ec0610c3a565b500190565b600081610ed457610ed4610c3a565b50600019019056fea264697066735822122074d8c86170ec02f65c85d010a031bf125323334afb20993bd45361284ffe439864736f6c634300080f0033", + "devdoc": { + "kind": "dev", + "methods": { + "decode(bytes)": { + "details": "decode data to the array of Pair" + }, + "delegateType()": { + "returns": { + "_0": "delegateType the delegate's type" + } + }, + "executeSell(address,address,bytes)": { + "details": "run the sell to transfer item", + "params": { + "buyer": "address which buy the item", + "data": "the item's data, which will be decode as a array of Pair", + "seller": "address which sell the item" + } + }, + "getRoleAdmin(bytes32)": { + "details": "Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}." + }, + "grantRole(bytes32,address)": { + "details": "Grants `role` to `account`. If `account` had not been already granted `role`, emits a {RoleGranted} event. Requirements: - the caller must have ``role``'s admin role." + }, + "hasRole(bytes32,address)": { + "details": "Returns `true` if `account` has been granted `role`." + }, + "onERC721Received(address,address,uint256,bytes)": { + "details": "Received function" + }, + "paused()": { + "details": "Returns true if the contract is paused, and false otherwise." + }, + "renounceRole(bytes32,address)": { + "details": "Revokes `role` from the calling account. Roles are often managed via {grantRole} and {revokeRole}: this function's purpose is to provide a mechanism for accounts to lose their privileges if they are compromised (such as when a trusted device is misplaced). If the calling account had been revoked `role`, emits a {RoleRevoked} event. Requirements: - the caller must be `account`." + }, + "revokeRole(bytes32,address)": { + "details": "Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role." + }, + "supportsInterface(bytes4)": { + "details": "See {IERC165-supportsInterface}." + } + }, + "version": 1 + }, + "userdoc": { + "kind": "user", + "methods": {}, + "version": 1 + }, + "storageLayout": { + "storage": [ + { + "astId": 1440, + "contract": "contracts/secretShop/ERC721Delegate.sol:ERC721Delegate", + "label": "_roles", + "offset": 0, + "slot": "0", + "type": "t_mapping(t_bytes32,t_struct(RoleData)1435_storage)" + }, + { + "astId": 1900, + "contract": "contracts/secretShop/ERC721Delegate.sol:ERC721Delegate", + "label": "_status", + "offset": 0, + "slot": "1", + "type": "t_uint256" + }, + { + "astId": 1815, + "contract": "contracts/secretShop/ERC721Delegate.sol:ERC721Delegate", + "label": "_paused", + "offset": 0, + "slot": "2", + "type": "t_bool" + } + ], + "types": { + "t_address": { + "encoding": "inplace", + "label": "address", + "numberOfBytes": "20" + }, + "t_bool": { + "encoding": "inplace", + "label": "bool", + "numberOfBytes": "1" + }, + "t_bytes32": { + "encoding": "inplace", + "label": "bytes32", + "numberOfBytes": "32" + }, + "t_mapping(t_address,t_bool)": { + "encoding": "mapping", + "key": "t_address", + "label": "mapping(address => bool)", + "numberOfBytes": "32", + "value": "t_bool" + }, + "t_mapping(t_bytes32,t_struct(RoleData)1435_storage)": { + "encoding": "mapping", + "key": "t_bytes32", + "label": "mapping(bytes32 => struct AccessControl.RoleData)", + "numberOfBytes": "32", + "value": "t_struct(RoleData)1435_storage" + }, + "t_struct(RoleData)1435_storage": { + "encoding": "inplace", + "label": "struct AccessControl.RoleData", + "members": [ + { + "astId": 1432, + "contract": "contracts/secretShop/ERC721Delegate.sol:ERC721Delegate", + "label": "members", + "offset": 0, + "slot": "0", + "type": "t_mapping(t_address,t_bool)" + }, + { + "astId": 1434, + "contract": "contracts/secretShop/ERC721Delegate.sol:ERC721Delegate", + "label": "adminRole", + "offset": 0, + "slot": "1", + "type": "t_bytes32" + } + ], + "numberOfBytes": "64" + }, + "t_uint256": { + "encoding": "inplace", + "label": "uint256", + "numberOfBytes": "32" + } + } + } +} \ No newline at end of file diff --git a/deployments/p12TestNet/GaugeControllerUpgradeable.json b/deployments/p12TestNet/GaugeControllerUpgradeable.json new file mode 100644 index 0000000..01c1a68 --- /dev/null +++ b/deployments/p12TestNet/GaugeControllerUpgradeable.json @@ -0,0 +1,1200 @@ +{ + "address": "0x92Ef99Db92b04C34D55b1C1537166dbeF130068e", + "abi": [ + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "previousAdmin", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "newAdmin", + "type": "address" + } + ], + "name": "AdminChanged", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "beacon", + "type": "address" + } + ], + "name": "BeaconUpgraded", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "implementation", + "type": "address" + } + ], + "name": "Upgraded", + "type": "event" + }, + { + "stateMutability": "payable", + "type": "fallback" + }, + { + "stateMutability": "payable", + "type": "receive" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "string", + "name": "name", + "type": "string" + }, + { + "indexed": false, + "internalType": "int128", + "name": "typeId", + "type": "int128" + } + ], + "name": "AddType", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "admin", + "type": "address" + } + ], + "name": "ApplyOwnership", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "admin", + "type": "address" + } + ], + "name": "CommitOwnership", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "addr", + "type": "address" + }, + { + "indexed": false, + "internalType": "int128", + "name": "gaugeType", + "type": "int128" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "weight", + "type": "uint256" + } + ], + "name": "NewGauge", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "gaugeAddress", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "time", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "weight", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "totalWeight", + "type": "uint256" + } + ], + "name": "NewGaugeWeight", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "int128", + "name": "typeId", + "type": "int128" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "time", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "weight", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "totalWeight", + "type": "uint256" + } + ], + "name": "NewTypeWeight", + "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": [ + { + "indexed": false, + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "Paused", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "oldP12Factory", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "newP12Factory", + "type": "address" + } + ], + "name": "SetP12Factory", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "contract IVotingEscrow", + "name": "oldVotingEscrow", + "type": "address" + }, + { + "indexed": false, + "internalType": "contract IVotingEscrow", + "name": "newVotingEscrow", + "type": "address" + } + ], + "name": "SetVotingEscrow", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "Unpaused", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "time", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "address", + "name": "user", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "gaugeAddress", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "weight", + "type": "uint256" + } + ], + "name": "VoteForGauge", + "type": "event" + }, + { + "inputs": [], + "name": "MULTIPLIER", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "WEEK", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "WEIGHT_VOTE_DELAY", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "addr", + "type": "address" + }, + { + "internalType": "int128", + "name": "gaugeType", + "type": "int128" + }, + { + "internalType": "uint256", + "name": "weight", + "type": "uint256" + } + ], + "name": "addGauge", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "string", + "name": "name", + "type": "string" + }, + { + "internalType": "uint256", + "name": "weight", + "type": "uint256" + } + ], + "name": "addType", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "addr", + "type": "address" + }, + { + "internalType": "uint256", + "name": "weight", + "type": "uint256" + } + ], + "name": "changeGaugeWeight", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "int128", + "name": "typeId", + "type": "int128" + }, + { + "internalType": "uint256", + "name": "weight", + "type": "uint256" + } + ], + "name": "changeTypeWeight", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "checkpoint", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "addr", + "type": "address" + } + ], + "name": "checkpointGauge", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "claimOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "addr", + "type": "address" + }, + { + "internalType": "uint256", + "name": "time", + "type": "uint256" + } + ], + "name": "gaugeRelativeWeight", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "addr", + "type": "address" + }, + { + "internalType": "uint256", + "name": "time", + "type": "uint256" + } + ], + "name": "gaugeRelativeWeightWrite", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "int128", + "name": "", + "type": "int128" + } + ], + "name": "gaugeTypeNames", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "name": "gaugeTypes", + "outputs": [ + { + "internalType": "int128", + "name": "", + "type": "int128" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "int128", + "name": "", + "type": "int128" + } + ], + "name": "gauges", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "addr", + "type": "address" + } + ], + "name": "getGaugeTypes", + "outputs": [ + { + "internalType": "int128", + "name": "", + "type": "int128" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "addr", + "type": "address" + } + ], + "name": "getGaugeWeight", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getTotalWeight", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "int128", + "name": "typeId", + "type": "int128" + } + ], + "name": "getTypeWeight", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "int128", + "name": "typeId", + "type": "int128" + } + ], + "name": "getWeightsSumPerType", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "votingEscrow_", + "type": "address" + }, + { + "internalType": "address", + "name": "p12CoinFactory_", + "type": "address" + } + ], + "name": "initialize", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + }, + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "name": "lastUserVote", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "nGaugeTypes", + "outputs": [ + { + "internalType": "int128", + "name": "", + "type": "int128" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "nGauges", + "outputs": [ + { + "internalType": "int128", + "name": "", + "type": "int128" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "owner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "p12CoinFactory", + "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": "pendingOwner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "int128", + "name": "", + "type": "int128" + }, + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "name": "pointsSum", + "outputs": [ + { + "internalType": "uint256", + "name": "bias", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "slope", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "name": "pointsTotal", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "int128", + "name": "", + "type": "int128" + }, + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "name": "pointsTypeWeight", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + }, + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "name": "pointsWeight", + "outputs": [ + { + "internalType": "uint256", + "name": "bias", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "slope", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "proxiableUUID", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "renounceOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newP12Factory", + "type": "address" + } + ], + "name": "setP12CoinFactory", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "contract IVotingEscrow", + "name": "newVotingEscrow", + "type": "address" + } + ], + "name": "setVotingEscrow", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "int128", + "name": "", + "type": "int128" + } + ], + "name": "timeSum", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "timeTotal", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "int128", + "name": "", + "type": "int128" + } + ], + "name": "timeTypeWeight", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "name": "timeWeight", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newOwner", + "type": "address" + }, + { + "internalType": "bool", + "name": "direct", + "type": "bool" + } + ], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "unpause", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newImplementation", + "type": "address" + } + ], + "name": "upgradeTo", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newImplementation", + "type": "address" + }, + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "upgradeToAndCall", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "gaugeAddr", + "type": "address" + }, + { + "internalType": "uint256", + "name": "userWeight", + "type": "uint256" + } + ], + "name": "voteForGaugeWeights", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "name": "voteUserPower", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + }, + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "name": "voteUserSlopes", + "outputs": [ + { + "internalType": "uint256", + "name": "slope", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "power", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "end", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "votingEscrow", + "outputs": [ + { + "internalType": "contract IVotingEscrow", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_logic", + "type": "address" + }, + { + "internalType": "bytes", + "name": "_data", + "type": "bytes" + } + ], + "stateMutability": "payable", + "type": "constructor" + } + ], + "transactionHash": "0xc5bd6b952e1c6388b5a14fe62a64631f3f6b37d8874d894363d81c69f9e44588", + "receipt": { + "to": null, + "from": "0xfeD03676c595DD1F1c6716a446cD44B4C90AD290", + "contractAddress": "0x92Ef99Db92b04C34D55b1C1537166dbeF130068e", + "transactionIndex": 0, + "gasUsed": "339618", + "logsBloom": "0x00000000000000000000000000000000400000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010080002000001000000000000000000000000000000000000020000000000000000000800000002000000000000000000000000400100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000020000000000000000000000000000000000000000000000020000020000000000100000000000000000020000000000000000000000000000010000000", + "blockHash": "0xe6a8cc8f5596a5d3778252cd4b23e63ff83bb698dc1f30b14a8f0de8416bbf6e", + "transactionHash": "0xc5bd6b952e1c6388b5a14fe62a64631f3f6b37d8874d894363d81c69f9e44588", + "logs": [ + { + "transactionIndex": 0, + "blockNumber": 1206197, + "transactionHash": "0xc5bd6b952e1c6388b5a14fe62a64631f3f6b37d8874d894363d81c69f9e44588", + "address": "0x92Ef99Db92b04C34D55b1C1537166dbeF130068e", + "topics": [ + "0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b", + "0x000000000000000000000000dd6708f8e9409b26da06924d9b9c35f42c32d93e" + ], + "data": "0x", + "logIndex": 0, + "blockHash": "0xe6a8cc8f5596a5d3778252cd4b23e63ff83bb698dc1f30b14a8f0de8416bbf6e" + }, + { + "transactionIndex": 0, + "blockNumber": 1206197, + "transactionHash": "0xc5bd6b952e1c6388b5a14fe62a64631f3f6b37d8874d894363d81c69f9e44588", + "address": "0x92Ef99Db92b04C34D55b1C1537166dbeF130068e", + "topics": [ + "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", + "0x0000000000000000000000000000000000000000000000000000000000000000", + "0x000000000000000000000000fed03676c595dd1f1c6716a446cd44b4c90ad290" + ], + "data": "0x", + "logIndex": 1, + "blockHash": "0xe6a8cc8f5596a5d3778252cd4b23e63ff83bb698dc1f30b14a8f0de8416bbf6e" + } + ], + "blockNumber": 1206197, + "cumulativeGasUsed": "339618", + "status": 1, + "byzantium": true + }, + "args": [ + "0xDD6708F8e9409b26da06924d9b9c35F42C32D93e", + "0x485cc955000000000000000000000000a7f7dee4e7a86b96db09dacbbbb13da911462b200000000000000000000000002695ef03c7ea6a1f55463ee4b47e4e3dbcbcd6d1" + ], + "numDeployments": 1, + "bytecode": "0x6080604052604051610772380380610772833981016040819052610022916102f7565b61004d60017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd61040f565b60008051602061072b8339815191521461007757634e487b7160e01b600052600160045260246000fd5b6100838282600061008a565b5050610474565b610093836100f4565b6040516001600160a01b038416907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a26000825111806100d45750805b156100ef576100ed83836101b460201b6100291760201c565b505b505050565b610107816101e060201b6100551760201c565b61016e5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084015b60405180910390fd5b8061019360008051602061072b83398151915260001b6101e660201b61005b1760201c565b80546001600160a01b0319166001600160a01b039290921691909117905550565b60606101d9838360405180606001604052806027815260200161074b602791396101e9565b9392505050565b3b151590565b90565b6060833b6102485760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b6064820152608401610165565b600080856001600160a01b03168560405161026391906103c0565b600060405180830381855af49150503d806000811461029e576040519150601f19603f3d011682016040523d82523d6000602084013e6102a3565b606091505b5090925090506102b48282866102be565b9695505050505050565b606083156102cd5750816101d9565b8251156102dd5782518084602001fd5b8160405162461bcd60e51b815260040161016591906103dc565b60008060408385031215610309578182fd5b82516001600160a01b038116811461031f578283fd5b60208401519092506001600160401b038082111561033b578283fd5b818501915085601f83011261034e578283fd5b8151818111156103605761036061045e565b604051601f8201601f19908116603f011681019083821181831017156103885761038861045e565b816040528281528860208487010111156103a0578586fd5b6103b1836020830160208801610432565b80955050505050509250929050565b600082516103d2818460208701610432565b9190910192915050565b60006020825282518060208401526103fb816040850160208701610432565b601f01601f19169190910160400192915050565b60008282101561042d57634e487b7160e01b81526011600452602481fd5b500390565b60005b8381101561044d578181015183820152602001610435565b838111156100ed5750506000910152565b634e487b7160e01b600052604160045260246000fd5b6102a8806104836000396000f3fe60806040523661001357610011610017565b005b6100115b61002761002261005e565b610096565b565b606061004e838360405180606001604052806027815260200161024c602791396100ba565b9392505050565b3b151590565b90565b60006100917f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b3660008037600080366000845af43d6000803e8080156100b5573d6000f35b3d6000fd5b6060833b61011e5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084015b60405180910390fd5b600080856001600160a01b03168560405161013991906101cc565b600060405180830381855af49150503d8060008114610174576040519150601f19603f3d011682016040523d82523d6000602084013e610179565b606091505b5091509150610189828286610193565b9695505050505050565b606083156101a257508161004e565b8251156101b25782518084602001fd5b8160405162461bcd60e51b815260040161011591906101e8565b600082516101de81846020870161021b565b9190910192915050565b600060208252825180602084015261020781604085016020870161021b565b601f01601f19169190910160400192915050565b60005b8381101561023657818101518382015260200161021e565b83811115610245576000848401525b5050505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212209b8470f06e8a3960c912103fc2be177edaad69584ee3c7d2809ee737e79408e764736f6c63430008020033360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564", + "deployedBytecode": "0x60806040523661001357610011610017565b005b6100115b61002761002261005e565b610096565b565b606061004e838360405180606001604052806027815260200161024c602791396100ba565b9392505050565b3b151590565b90565b60006100917f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b3660008037600080366000845af43d6000803e8080156100b5573d6000f35b3d6000fd5b6060833b61011e5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084015b60405180910390fd5b600080856001600160a01b03168560405161013991906101cc565b600060405180830381855af49150503d8060008114610174576040519150601f19603f3d011682016040523d82523d6000602084013e610179565b606091505b5091509150610189828286610193565b9695505050505050565b606083156101a257508161004e565b8251156101b25782518084602001fd5b8160405162461bcd60e51b815260040161011591906101e8565b600082516101de81846020870161021b565b9190910192915050565b600060208252825180602084015261020781604085016020870161021b565b601f01601f19169190910160400192915050565b60005b8381101561023657818101518382015260200161021e565b83811115610245576000848401525b5050505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212209b8470f06e8a3960c912103fc2be177edaad69584ee3c7d2809ee737e79408e764736f6c63430008020033", + "execute": { + "methodName": "initialize", + "args": [ + "0xA7f7dee4E7a86b96dB09DAcBBbB13Da911462B20", + "0x2695eF03c7ea6A1F55463ee4b47E4E3DBCBcd6d1" + ] + }, + "implementation": "0xDD6708F8e9409b26da06924d9b9c35F42C32D93e" +} \ No newline at end of file diff --git a/deployments/p12TestNet/GaugeControllerUpgradeable_Implementation.json b/deployments/p12TestNet/GaugeControllerUpgradeable_Implementation.json new file mode 100644 index 0000000..8e6fa9a --- /dev/null +++ b/deployments/p12TestNet/GaugeControllerUpgradeable_Implementation.json @@ -0,0 +1,1788 @@ +{ + "address": "0xDD6708F8e9409b26da06924d9b9c35F42C32D93e", + "abi": [ + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "string", + "name": "name", + "type": "string" + }, + { + "indexed": false, + "internalType": "int128", + "name": "typeId", + "type": "int128" + } + ], + "name": "AddType", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "previousAdmin", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "newAdmin", + "type": "address" + } + ], + "name": "AdminChanged", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "admin", + "type": "address" + } + ], + "name": "ApplyOwnership", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "beacon", + "type": "address" + } + ], + "name": "BeaconUpgraded", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "admin", + "type": "address" + } + ], + "name": "CommitOwnership", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "addr", + "type": "address" + }, + { + "indexed": false, + "internalType": "int128", + "name": "gaugeType", + "type": "int128" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "weight", + "type": "uint256" + } + ], + "name": "NewGauge", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "gaugeAddress", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "time", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "weight", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "totalWeight", + "type": "uint256" + } + ], + "name": "NewGaugeWeight", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "int128", + "name": "typeId", + "type": "int128" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "time", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "weight", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "totalWeight", + "type": "uint256" + } + ], + "name": "NewTypeWeight", + "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": [ + { + "indexed": false, + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "Paused", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "oldP12Factory", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "newP12Factory", + "type": "address" + } + ], + "name": "SetP12Factory", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "contract IVotingEscrow", + "name": "oldVotingEscrow", + "type": "address" + }, + { + "indexed": false, + "internalType": "contract IVotingEscrow", + "name": "newVotingEscrow", + "type": "address" + } + ], + "name": "SetVotingEscrow", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "Unpaused", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "implementation", + "type": "address" + } + ], + "name": "Upgraded", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "time", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "address", + "name": "user", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "gaugeAddress", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "weight", + "type": "uint256" + } + ], + "name": "VoteForGauge", + "type": "event" + }, + { + "inputs": [], + "name": "MULTIPLIER", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "WEEK", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "WEIGHT_VOTE_DELAY", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "addr", + "type": "address" + }, + { + "internalType": "int128", + "name": "gaugeType", + "type": "int128" + }, + { + "internalType": "uint256", + "name": "weight", + "type": "uint256" + } + ], + "name": "addGauge", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "string", + "name": "name", + "type": "string" + }, + { + "internalType": "uint256", + "name": "weight", + "type": "uint256" + } + ], + "name": "addType", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "addr", + "type": "address" + }, + { + "internalType": "uint256", + "name": "weight", + "type": "uint256" + } + ], + "name": "changeGaugeWeight", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "int128", + "name": "typeId", + "type": "int128" + }, + { + "internalType": "uint256", + "name": "weight", + "type": "uint256" + } + ], + "name": "changeTypeWeight", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "checkpoint", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "addr", + "type": "address" + } + ], + "name": "checkpointGauge", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "claimOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "addr", + "type": "address" + }, + { + "internalType": "uint256", + "name": "time", + "type": "uint256" + } + ], + "name": "gaugeRelativeWeight", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "addr", + "type": "address" + }, + { + "internalType": "uint256", + "name": "time", + "type": "uint256" + } + ], + "name": "gaugeRelativeWeightWrite", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "int128", + "name": "", + "type": "int128" + } + ], + "name": "gaugeTypeNames", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "name": "gaugeTypes", + "outputs": [ + { + "internalType": "int128", + "name": "", + "type": "int128" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "int128", + "name": "", + "type": "int128" + } + ], + "name": "gauges", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "addr", + "type": "address" + } + ], + "name": "getGaugeTypes", + "outputs": [ + { + "internalType": "int128", + "name": "", + "type": "int128" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "addr", + "type": "address" + } + ], + "name": "getGaugeWeight", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getTotalWeight", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "int128", + "name": "typeId", + "type": "int128" + } + ], + "name": "getTypeWeight", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "int128", + "name": "typeId", + "type": "int128" + } + ], + "name": "getWeightsSumPerType", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "votingEscrow_", + "type": "address" + }, + { + "internalType": "address", + "name": "p12CoinFactory_", + "type": "address" + } + ], + "name": "initialize", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + }, + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "name": "lastUserVote", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "nGaugeTypes", + "outputs": [ + { + "internalType": "int128", + "name": "", + "type": "int128" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "nGauges", + "outputs": [ + { + "internalType": "int128", + "name": "", + "type": "int128" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "owner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "p12CoinFactory", + "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": "pendingOwner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "int128", + "name": "", + "type": "int128" + }, + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "name": "pointsSum", + "outputs": [ + { + "internalType": "uint256", + "name": "bias", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "slope", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "name": "pointsTotal", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "int128", + "name": "", + "type": "int128" + }, + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "name": "pointsTypeWeight", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + }, + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "name": "pointsWeight", + "outputs": [ + { + "internalType": "uint256", + "name": "bias", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "slope", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "proxiableUUID", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "renounceOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newP12Factory", + "type": "address" + } + ], + "name": "setP12CoinFactory", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "contract IVotingEscrow", + "name": "newVotingEscrow", + "type": "address" + } + ], + "name": "setVotingEscrow", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "int128", + "name": "", + "type": "int128" + } + ], + "name": "timeSum", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "timeTotal", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "int128", + "name": "", + "type": "int128" + } + ], + "name": "timeTypeWeight", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "name": "timeWeight", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newOwner", + "type": "address" + }, + { + "internalType": "bool", + "name": "direct", + "type": "bool" + } + ], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "unpause", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newImplementation", + "type": "address" + } + ], + "name": "upgradeTo", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newImplementation", + "type": "address" + }, + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "upgradeToAndCall", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "gaugeAddr", + "type": "address" + }, + { + "internalType": "uint256", + "name": "userWeight", + "type": "uint256" + } + ], + "name": "voteForGaugeWeights", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "name": "voteUserPower", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + }, + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "name": "voteUserSlopes", + "outputs": [ + { + "internalType": "uint256", + "name": "slope", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "power", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "end", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "votingEscrow", + "outputs": [ + { + "internalType": "contract IVotingEscrow", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + } + ], + "transactionHash": "0x8fb2d70b76bbf08db7ff2535adebe8b05b3fb508ac3e12ae23ed3aa14aad2ae2", + "receipt": { + "to": null, + "from": "0xfeD03676c595DD1F1c6716a446cD44B4C90AD290", + "contractAddress": "0xDD6708F8e9409b26da06924d9b9c35F42C32D93e", + "transactionIndex": 0, + "gasUsed": "3035661", + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "blockHash": "0xfac4d6f2640637b22de011eabee3e6e39ff3f67d3ce45bc344356873d289f09a", + "transactionHash": "0x8fb2d70b76bbf08db7ff2535adebe8b05b3fb508ac3e12ae23ed3aa14aad2ae2", + "logs": [], + "blockNumber": 1206196, + "cumulativeGasUsed": "3035661", + "status": 1, + "byzantium": true + }, + "args": [], + "numDeployments": 1, + "solcInputHash": "1f7f80fb95b6efcc6f464d7df403eaaa", + "metadata": "{\"compiler\":{\"version\":\"0.8.15+commit.e14f2714\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"int128\",\"name\":\"typeId\",\"type\":\"int128\"}],\"name\":\"AddType\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"previousAdmin\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newAdmin\",\"type\":\"address\"}],\"name\":\"AdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"admin\",\"type\":\"address\"}],\"name\":\"ApplyOwnership\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"beacon\",\"type\":\"address\"}],\"name\":\"BeaconUpgraded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"admin\",\"type\":\"address\"}],\"name\":\"CommitOwnership\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"int128\",\"name\":\"gaugeType\",\"type\":\"int128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"weight\",\"type\":\"uint256\"}],\"name\":\"NewGauge\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"gaugeAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"time\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"weight\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"totalWeight\",\"type\":\"uint256\"}],\"name\":\"NewGaugeWeight\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"int128\",\"name\":\"typeId\",\"type\":\"int128\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"time\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"weight\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"totalWeight\",\"type\":\"uint256\"}],\"name\":\"NewTypeWeight\",\"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\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Paused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"oldP12Factory\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newP12Factory\",\"type\":\"address\"}],\"name\":\"SetP12Factory\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"contract IVotingEscrow\",\"name\":\"oldVotingEscrow\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"contract IVotingEscrow\",\"name\":\"newVotingEscrow\",\"type\":\"address\"}],\"name\":\"SetVotingEscrow\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Unpaused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"Upgraded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"time\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"gaugeAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"weight\",\"type\":\"uint256\"}],\"name\":\"VoteForGauge\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"MULTIPLIER\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"WEEK\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"WEIGHT_VOTE_DELAY\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"int128\",\"name\":\"gaugeType\",\"type\":\"int128\"},{\"internalType\":\"uint256\",\"name\":\"weight\",\"type\":\"uint256\"}],\"name\":\"addGauge\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"weight\",\"type\":\"uint256\"}],\"name\":\"addType\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"weight\",\"type\":\"uint256\"}],\"name\":\"changeGaugeWeight\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"int128\",\"name\":\"typeId\",\"type\":\"int128\"},{\"internalType\":\"uint256\",\"name\":\"weight\",\"type\":\"uint256\"}],\"name\":\"changeTypeWeight\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"checkpoint\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"}],\"name\":\"checkpointGauge\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"claimOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"time\",\"type\":\"uint256\"}],\"name\":\"gaugeRelativeWeight\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"time\",\"type\":\"uint256\"}],\"name\":\"gaugeRelativeWeightWrite\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"int128\",\"name\":\"\",\"type\":\"int128\"}],\"name\":\"gaugeTypeNames\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"gaugeTypes\",\"outputs\":[{\"internalType\":\"int128\",\"name\":\"\",\"type\":\"int128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"int128\",\"name\":\"\",\"type\":\"int128\"}],\"name\":\"gauges\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"}],\"name\":\"getGaugeTypes\",\"outputs\":[{\"internalType\":\"int128\",\"name\":\"\",\"type\":\"int128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"}],\"name\":\"getGaugeWeight\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getTotalWeight\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"int128\",\"name\":\"typeId\",\"type\":\"int128\"}],\"name\":\"getTypeWeight\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"int128\",\"name\":\"typeId\",\"type\":\"int128\"}],\"name\":\"getWeightsSumPerType\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"votingEscrow_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"p12CoinFactory_\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"lastUserVote\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"nGaugeTypes\",\"outputs\":[{\"internalType\":\"int128\",\"name\":\"\",\"type\":\"int128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"nGauges\",\"outputs\":[{\"internalType\":\"int128\",\"name\":\"\",\"type\":\"int128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"p12CoinFactory\",\"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\":\"pendingOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"int128\",\"name\":\"\",\"type\":\"int128\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"pointsSum\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"bias\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"slope\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"pointsTotal\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"int128\",\"name\":\"\",\"type\":\"int128\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"pointsTypeWeight\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"pointsWeight\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"bias\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"slope\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"proxiableUUID\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newP12Factory\",\"type\":\"address\"}],\"name\":\"setP12CoinFactory\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract IVotingEscrow\",\"name\":\"newVotingEscrow\",\"type\":\"address\"}],\"name\":\"setVotingEscrow\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"int128\",\"name\":\"\",\"type\":\"int128\"}],\"name\":\"timeSum\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"timeTotal\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"int128\",\"name\":\"\",\"type\":\"int128\"}],\"name\":\"timeTypeWeight\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"timeWeight\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"direct\",\"type\":\"bool\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"unpause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"}],\"name\":\"upgradeTo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"upgradeToAndCall\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"gaugeAddr\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"userWeight\",\"type\":\"uint256\"}],\"name\":\"voteForGaugeWeights\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"voteUserPower\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"voteUserSlopes\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"slope\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"power\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"end\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"votingEscrow\",\"outputs\":[{\"internalType\":\"contract IVotingEscrow\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"addGauge(address,int128,uint256)\":{\"params\":{\"addr\":\"Gauge address\",\"gaugeType\":\"Gauge type\",\"weight\":\"Gauge weight\"}},\"addType(string,uint256)\":{\"params\":{\"name\":\"Name of gauge type\",\"weight\":\"Weight of gauge type\"}},\"changeGaugeWeight(address,uint256)\":{\"params\":{\"addr\":\"`GaugeController` contract address\",\"weight\":\"New Gauge weight\"}},\"changeTypeWeight(int128,uint256)\":{\"params\":{\"typeId\":\"Gauge type id\",\"weight\":\"New Gauge weight\"}},\"checkpointGauge(address)\":{\"params\":{\"addr\":\"Gauge address\"}},\"claimOwnership()\":{\"details\":\"pending owner call this function to claim ownership\"},\"gaugeRelativeWeight(address,uint256)\":{\"params\":{\"addr\":\"Gauge address\",\"time\":\"Relative weight at the specified timestamp in the past or present\"},\"returns\":{\"_0\":\"Value of relative weight normalized to 1e18\"}},\"gaugeRelativeWeightWrite(address,uint256)\":{\"details\":\"Any address can call, however nothing is recorded if the values are filled already\",\"params\":{\"addr\":\"Gauge address\",\"time\":\"Relative weight at the specified timestamp in the past or present\"},\"returns\":{\"_0\":\"Value of relative weight normalized to 1e18\"}},\"getGaugeTypes(address)\":{\"params\":{\"addr\":\"Gauge address\"},\"returns\":{\"_0\":\"Gauge type id\"}},\"getGaugeWeight(address)\":{\"params\":{\"addr\":\"Gauge address\"},\"returns\":{\"_0\":\"Gauge weight\"}},\"getTotalWeight()\":{\"returns\":{\"_0\":\"Total weight\"}},\"getTypeWeight(int128)\":{\"params\":{\"typeId\":\"Type id\"},\"returns\":{\"_0\":\"Type weight\"}},\"getWeightsSumPerType(int128)\":{\"params\":{\"typeId\":\"Type id\"},\"returns\":{\"_0\":\"Sum of gauge weights\"}},\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"paused()\":{\"details\":\"Returns true if the contract is paused, and false otherwise.\"},\"pendingOwner()\":{\"details\":\"Return the address of the pending owner\"},\"proxiableUUID()\":{\"details\":\"Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the implementation. It is used to validate that the this implementation remains valid after an upgrade. IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\"},\"renounceOwnership()\":{\"details\":\"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.\"},\"setP12CoinFactory(address)\":{\"params\":{\"newP12Factory\":\"address of newP12Factory\"}},\"setVotingEscrow(address)\":{\"params\":{\"newVotingEscrow\":\"address of votingEscrow\"}},\"transferOwnership(address,bool)\":{\"details\":\"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner. Note If direct is false, it will set an pending owner and the OwnerShipTransferring only happens when the pending owner claim the ownership\"},\"upgradeTo(address)\":{\"details\":\"Upgrade the implementation of the proxy to `newImplementation`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.\"},\"upgradeToAndCall(address,bytes)\":{\"details\":\"Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call encoded in `data`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.\"},\"voteForGaugeWeights(address,uint256)\":{\"params\":{\"gaugeAddr\":\"Gauge which `msg.sender` votes for\",\"userWeight\":\"Weight for a gauge in bps (units of 0.01%). Minimal is 0.01%. Ignored if 0\"}}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"addGauge(address,int128,uint256)\":{\"notice\":\"Add gauge `addr` of type `gaugeType` with weight `weight`\"},\"addType(string,uint256)\":{\"notice\":\"Add gauge type with name `name` and weight `weight`\"},\"changeGaugeWeight(address,uint256)\":{\"notice\":\"Change weight of gauge `addr` to `weight`\"},\"changeTypeWeight(int128,uint256)\":{\"notice\":\"Change gauge type `typeId` weight to `weight`\"},\"checkpoint()\":{\"notice\":\"Checkpoint to fill data common for all gauges\"},\"checkpointGauge(address)\":{\"notice\":\"Checkpoint to fill data for both a specific gauge and common for all gauges\"},\"gaugeRelativeWeight(address,uint256)\":{\"notice\":\"Get Gauge relative weight (not more than 1.0) normalized to 1e18 (e.g. 1.0 == 1e18). Inflation which will be received by it is inflation_rate * relative_weight / 1e18\"},\"gaugeRelativeWeightWrite(address,uint256)\":{\"notice\":\"Get gauge weight normalized to 1e18 and also fill all the unfilled values for type and gauge records\"},\"getGaugeTypes(address)\":{\"notice\":\"Get gauge type for address\"},\"getGaugeWeight(address)\":{\"notice\":\"Get current gauge weight\"},\"getTotalWeight()\":{\"notice\":\"Get current total (type-weighted) weight\"},\"getTypeWeight(int128)\":{\"notice\":\"Get current type weight\"},\"getWeightsSumPerType(int128)\":{\"notice\":\"Get sum of gauge weights per type\"},\"setP12CoinFactory(address)\":{\"notice\":\"set new p12CoinFactory\"},\"setVotingEscrow(address)\":{\"notice\":\"set new votingEscrow\"},\"voteForGaugeWeights(address,uint256)\":{\"notice\":\"Allocate voting power for changing pool weights\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/staking/GaugeControllerUpgradeable.sol\":\"GaugeControllerUpgradeable\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts-upgradeable/interfaces/draft-IERC1822Upgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (interfaces/draft-IERC1822.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\\n * proxy whose upgrades are fully controlled by the current implementation.\\n */\\ninterface IERC1822ProxiableUpgradeable {\\n /**\\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\\n * address.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy.\\n */\\n function proxiableUUID() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x77c89f893e403efc6929ba842b7ccf6534d4ffe03afe31670b4a528c0ad78c0f\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/ERC1967/ERC1967UpgradeUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (proxy/ERC1967/ERC1967Upgrade.sol)\\n\\npragma solidity ^0.8.2;\\n\\nimport \\\"../beacon/IBeaconUpgradeable.sol\\\";\\nimport \\\"../../interfaces/draft-IERC1822Upgradeable.sol\\\";\\nimport \\\"../../utils/AddressUpgradeable.sol\\\";\\nimport \\\"../../utils/StorageSlotUpgradeable.sol\\\";\\nimport \\\"../utils/Initializable.sol\\\";\\n\\n/**\\n * @dev This abstract contract provides getters and event emitting update functions for\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.\\n *\\n * _Available since v4.1._\\n *\\n * @custom:oz-upgrades-unsafe-allow delegatecall\\n */\\nabstract contract ERC1967UpgradeUpgradeable is Initializable {\\n function __ERC1967Upgrade_init() internal onlyInitializing {\\n }\\n\\n function __ERC1967Upgrade_init_unchained() internal onlyInitializing {\\n }\\n // This is the keccak-256 hash of \\\"eip1967.proxy.rollback\\\" subtracted by 1\\n bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143;\\n\\n /**\\n * @dev Storage slot with the address of the current implementation.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.implementation\\\" subtracted by 1, and is\\n * validated in the constructor.\\n */\\n bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n\\n /**\\n * @dev Emitted when the implementation is upgraded.\\n */\\n event Upgraded(address indexed implementation);\\n\\n /**\\n * @dev Returns the current implementation address.\\n */\\n function _getImplementation() internal view returns (address) {\\n return StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 implementation slot.\\n */\\n function _setImplementation(address newImplementation) private {\\n require(AddressUpgradeable.isContract(newImplementation), \\\"ERC1967: new implementation is not a contract\\\");\\n StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n }\\n\\n /**\\n * @dev Perform implementation upgrade\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeTo(address newImplementation) internal {\\n _setImplementation(newImplementation);\\n emit Upgraded(newImplementation);\\n }\\n\\n /**\\n * @dev Perform implementation upgrade with additional setup call.\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeToAndCall(\\n address newImplementation,\\n bytes memory data,\\n bool forceCall\\n ) internal {\\n _upgradeTo(newImplementation);\\n if (data.length > 0 || forceCall) {\\n _functionDelegateCall(newImplementation, data);\\n }\\n }\\n\\n /**\\n * @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call.\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeToAndCallUUPS(\\n address newImplementation,\\n bytes memory data,\\n bool forceCall\\n ) internal {\\n // Upgrades from old implementations will perform a rollback test. This test requires the new\\n // implementation to upgrade back to the old, non-ERC1822 compliant, implementation. Removing\\n // this special case will break upgrade paths from old UUPS implementation to new ones.\\n if (StorageSlotUpgradeable.getBooleanSlot(_ROLLBACK_SLOT).value) {\\n _setImplementation(newImplementation);\\n } else {\\n try IERC1822ProxiableUpgradeable(newImplementation).proxiableUUID() returns (bytes32 slot) {\\n require(slot == _IMPLEMENTATION_SLOT, \\\"ERC1967Upgrade: unsupported proxiableUUID\\\");\\n } catch {\\n revert(\\\"ERC1967Upgrade: new implementation is not UUPS\\\");\\n }\\n _upgradeToAndCall(newImplementation, data, forceCall);\\n }\\n }\\n\\n /**\\n * @dev Storage slot with the admin of the contract.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.admin\\\" subtracted by 1, and is\\n * validated in the constructor.\\n */\\n bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\\n\\n /**\\n * @dev Emitted when the admin account has changed.\\n */\\n event AdminChanged(address previousAdmin, address newAdmin);\\n\\n /**\\n * @dev Returns the current admin.\\n */\\n function _getAdmin() internal view returns (address) {\\n return StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 admin slot.\\n */\\n function _setAdmin(address newAdmin) private {\\n require(newAdmin != address(0), \\\"ERC1967: new admin is the zero address\\\");\\n StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value = newAdmin;\\n }\\n\\n /**\\n * @dev Changes the admin of the proxy.\\n *\\n * Emits an {AdminChanged} event.\\n */\\n function _changeAdmin(address newAdmin) internal {\\n emit AdminChanged(_getAdmin(), newAdmin);\\n _setAdmin(newAdmin);\\n }\\n\\n /**\\n * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.\\n * This is bytes32(uint256(keccak256('eip1967.proxy.beacon')) - 1)) and is validated in the constructor.\\n */\\n bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\\n\\n /**\\n * @dev Emitted when the beacon is upgraded.\\n */\\n event BeaconUpgraded(address indexed beacon);\\n\\n /**\\n * @dev Returns the current beacon.\\n */\\n function _getBeacon() internal view returns (address) {\\n return StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new beacon in the EIP1967 beacon slot.\\n */\\n function _setBeacon(address newBeacon) private {\\n require(AddressUpgradeable.isContract(newBeacon), \\\"ERC1967: new beacon is not a contract\\\");\\n require(\\n AddressUpgradeable.isContract(IBeaconUpgradeable(newBeacon).implementation()),\\n \\\"ERC1967: beacon implementation is not a contract\\\"\\n );\\n StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value = newBeacon;\\n }\\n\\n /**\\n * @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does\\n * not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that).\\n *\\n * Emits a {BeaconUpgraded} event.\\n */\\n function _upgradeBeaconToAndCall(\\n address newBeacon,\\n bytes memory data,\\n bool forceCall\\n ) internal {\\n _setBeacon(newBeacon);\\n emit BeaconUpgraded(newBeacon);\\n if (data.length > 0 || forceCall) {\\n _functionDelegateCall(IBeaconUpgradeable(newBeacon).implementation(), data);\\n }\\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) private returns (bytes memory) {\\n require(AddressUpgradeable.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 AddressUpgradeable.verifyCallResult(success, returndata, \\\"Address: low-level delegate call failed\\\");\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0x315887e846f1e5f8d8fa535a229d318bb9290aaa69485117f1ee8a9a6b3be823\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/beacon/IBeaconUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev This is the interface that {BeaconProxy} expects of its beacon.\\n */\\ninterface IBeaconUpgradeable {\\n /**\\n * @dev Must return an address that can be used as a delegate call target.\\n *\\n * {BeaconProxy} will check that this address is a contract.\\n */\\n function implementation() external view returns (address);\\n}\\n\",\"keccak256\":\"0x24b86ac8c005b8c654fbf6ac34a5a4f61580d7273541e83e013e89d66fbf0908\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (proxy/utils/Initializable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/AddressUpgradeable.sol\\\";\\n\\n/**\\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\\n *\\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\\n *\\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\\n *\\n * [CAUTION]\\n * ====\\n * Avoid leaving a contract uninitialized.\\n *\\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\\n * contract, which may impact the proxy. To initialize the implementation contract, you can either invoke the\\n * initializer manually, or you can include a constructor to automatically mark it as initialized when it is deployed:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```\\n * /// @custom:oz-upgrades-unsafe-allow constructor\\n * constructor() initializer {}\\n * ```\\n * ====\\n */\\nabstract contract Initializable {\\n /**\\n * @dev Indicates that the contract has been initialized.\\n */\\n bool private _initialized;\\n\\n /**\\n * @dev Indicates that the contract is in the process of being initialized.\\n */\\n bool private _initializing;\\n\\n /**\\n * @dev Modifier to protect an initializer function from being invoked twice.\\n */\\n modifier initializer() {\\n // If the contract is initializing we ignore whether _initialized is set in order to support multiple\\n // inheritance patterns, but we only do this in the context of a constructor, because in other contexts the\\n // contract may have been reentered.\\n require(_initializing ? _isConstructor() : !_initialized, \\\"Initializable: contract is already initialized\\\");\\n\\n bool isTopLevelCall = !_initializing;\\n if (isTopLevelCall) {\\n _initializing = true;\\n _initialized = true;\\n }\\n\\n _;\\n\\n if (isTopLevelCall) {\\n _initializing = false;\\n }\\n }\\n\\n /**\\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\\n * {initializer} modifier, directly or indirectly.\\n */\\n modifier onlyInitializing() {\\n require(_initializing, \\\"Initializable: contract is not initializing\\\");\\n _;\\n }\\n\\n function _isConstructor() private view returns (bool) {\\n return !AddressUpgradeable.isContract(address(this));\\n }\\n}\\n\",\"keccak256\":\"0x372b0bc04e3b4c074559bbbfb1317afddb56de5504158ca25a7f9cd403980445\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (proxy/utils/UUPSUpgradeable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../interfaces/draft-IERC1822Upgradeable.sol\\\";\\nimport \\\"../ERC1967/ERC1967UpgradeUpgradeable.sol\\\";\\nimport \\\"./Initializable.sol\\\";\\n\\n/**\\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\\n *\\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\\n * `UUPSUpgradeable` with a custom implementation of upgrades.\\n *\\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\\n *\\n * _Available since v4.1._\\n */\\nabstract contract UUPSUpgradeable is Initializable, IERC1822ProxiableUpgradeable, ERC1967UpgradeUpgradeable {\\n function __UUPSUpgradeable_init() internal onlyInitializing {\\n }\\n\\n function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\\n }\\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment\\n address private immutable __self = address(this);\\n\\n /**\\n * @dev Check that the execution is being performed through a delegatecall call and that the execution context is\\n * a proxy contract with an implementation (as defined in ERC1967) pointing to self. This should only be the case\\n * for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a\\n * function through ERC1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\\n * fail.\\n */\\n modifier onlyProxy() {\\n require(address(this) != __self, \\\"Function must be called through delegatecall\\\");\\n require(_getImplementation() == __self, \\\"Function must be called through active proxy\\\");\\n _;\\n }\\n\\n /**\\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\\n * callable on the implementing contract but not through proxies.\\n */\\n modifier notDelegated() {\\n require(address(this) == __self, \\\"UUPSUpgradeable: must not be called through delegatecall\\\");\\n _;\\n }\\n\\n /**\\n * @dev Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the\\n * implementation. It is used to validate that the this implementation remains valid after an upgrade.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\\n */\\n function proxiableUUID() external view virtual override notDelegated returns (bytes32) {\\n return _IMPLEMENTATION_SLOT;\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy to `newImplementation`.\\n *\\n * Calls {_authorizeUpgrade}.\\n *\\n * Emits an {Upgraded} event.\\n */\\n function upgradeTo(address newImplementation) external virtual onlyProxy {\\n _authorizeUpgrade(newImplementation);\\n _upgradeToAndCallUUPS(newImplementation, new bytes(0), false);\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call\\n * encoded in `data`.\\n *\\n * Calls {_authorizeUpgrade}.\\n *\\n * Emits an {Upgraded} event.\\n */\\n function upgradeToAndCall(address newImplementation, bytes memory data) external payable virtual onlyProxy {\\n _authorizeUpgrade(newImplementation);\\n _upgradeToAndCallUUPS(newImplementation, data, true);\\n }\\n\\n /**\\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\\n * {upgradeTo} and {upgradeToAndCall}.\\n *\\n * Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}.\\n *\\n * ```solidity\\n * function _authorizeUpgrade(address) internal override onlyOwner {}\\n * ```\\n */\\n function _authorizeUpgrade(address newImplementation) internal virtual;\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0x6e36e9b4b71de699c2f3f0d4e4d1aa0b35da99a26e8d5b91ef09ba234b4ef270\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../utils/ContextUpgradeable.sol\\\";\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module which allows children to implement an emergency stop\\n * mechanism that can be triggered by an authorized account.\\n *\\n * This module is used through inheritance. It will make available the\\n * modifiers `whenNotPaused` and `whenPaused`, which can be applied to\\n * the functions of your contract. Note that they will not be pausable by\\n * simply including this module, only once the modifiers are put in place.\\n */\\nabstract contract PausableUpgradeable is Initializable, ContextUpgradeable {\\n /**\\n * @dev Emitted when the pause is triggered by `account`.\\n */\\n event Paused(address account);\\n\\n /**\\n * @dev Emitted when the pause is lifted by `account`.\\n */\\n event Unpaused(address account);\\n\\n bool private _paused;\\n\\n /**\\n * @dev Initializes the contract in unpaused state.\\n */\\n function __Pausable_init() internal onlyInitializing {\\n __Pausable_init_unchained();\\n }\\n\\n function __Pausable_init_unchained() internal onlyInitializing {\\n _paused = false;\\n }\\n\\n /**\\n * @dev Returns true if the contract is paused, and false otherwise.\\n */\\n function paused() public view virtual returns (bool) {\\n return _paused;\\n }\\n\\n /**\\n * @dev Modifier to make a function callable only when the contract is not paused.\\n *\\n * Requirements:\\n *\\n * - The contract must not be paused.\\n */\\n modifier whenNotPaused() {\\n require(!paused(), \\\"Pausable: paused\\\");\\n _;\\n }\\n\\n /**\\n * @dev Modifier to make a function callable only when the contract is paused.\\n *\\n * Requirements:\\n *\\n * - The contract must be paused.\\n */\\n modifier whenPaused() {\\n require(paused(), \\\"Pausable: not paused\\\");\\n _;\\n }\\n\\n /**\\n * @dev Triggers stopped state.\\n *\\n * Requirements:\\n *\\n * - The contract must not be paused.\\n */\\n function _pause() internal virtual whenNotPaused {\\n _paused = true;\\n emit Paused(_msgSender());\\n }\\n\\n /**\\n * @dev Returns to normal state.\\n *\\n * Requirements:\\n *\\n * - The contract must be paused.\\n */\\n function _unpause() internal virtual whenPaused {\\n _paused = false;\\n emit Unpaused(_msgSender());\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[49] private __gap;\\n}\\n\",\"keccak256\":\"0x041af89e5e60b74e1203d5a34614c9de379726f52ecb8cf064cab78b9fdcdf9d\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary AddressUpgradeable {\\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 * [IMPORTANT]\\n * ====\\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\\n *\\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n * constructor.\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize/address.code.length, which returns 0\\n // for contracts in construction, since the code is only stored at the end\\n // of the constructor execution.\\n\\n return account.code.length > 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 (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(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) 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(\\n address target,\\n bytes memory data,\\n uint256 value\\n ) 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(\\n address target,\\n bytes memory data,\\n uint256 value,\\n string memory errorMessage\\n ) 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 (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(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n require(isContract(target), \\\"Address: static call to non-contract\\\");\\n\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResult(success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the\\n * revert reason using the provided one.\\n *\\n * _Available since v4.3._\\n */\\n function verifyCallResult(\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal 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 assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0x55cf2bd9fc76704ddcdc19834cd288b7de00fc0f298a40ea16a954ae8991db2d\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\\n\\npragma solidity ^0.8.0;\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract ContextUpgradeable is Initializable {\\n function __Context_init() internal onlyInitializing {\\n }\\n\\n function __Context_init_unchained() internal onlyInitializing {\\n }\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0x963ea7f0b48b032eef72fe3a7582edf78408d6f834115b9feadd673a4d5bd149\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/StorageSlotUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/StorageSlot.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Library for reading and writing primitive types to specific storage slots.\\n *\\n * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.\\n * This library helps with reading and writing to such slots without the need for inline assembly.\\n *\\n * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.\\n *\\n * Example usage to set ERC1967 implementation slot:\\n * ```\\n * contract ERC1967 {\\n * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n *\\n * function _getImplementation() internal view returns (address) {\\n * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n * }\\n *\\n * function _setImplementation(address newImplementation) internal {\\n * require(Address.isContract(newImplementation), \\\"ERC1967: new implementation is not a contract\\\");\\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n * }\\n * }\\n * ```\\n *\\n * _Available since v4.1 for `address`, `bool`, `bytes32`, and `uint256`._\\n */\\nlibrary StorageSlotUpgradeable {\\n struct AddressSlot {\\n address value;\\n }\\n\\n struct BooleanSlot {\\n bool value;\\n }\\n\\n struct Bytes32Slot {\\n bytes32 value;\\n }\\n\\n struct Uint256Slot {\\n uint256 value;\\n }\\n\\n /**\\n * @dev Returns an `AddressSlot` with member `value` located at `slot`.\\n */\\n function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BooleanSlot` with member `value` located at `slot`.\\n */\\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.\\n */\\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Uint256Slot` with member `value` located at `slot`.\\n */\\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\\n assembly {\\n r.slot := slot\\n }\\n }\\n}\\n\",\"keccak256\":\"0x422c3d27d0d5681cea93acbb0dcb175fa5b461b5b7731da7ff77e51f0f0174c7\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/math/Math.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (utils/math/Math.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Standard math utilities missing in the Solidity language.\\n */\\nlibrary Math {\\n /**\\n * @dev Returns the largest of two numbers.\\n */\\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a >= b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the smallest of two numbers.\\n */\\n function min(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a < b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the average of two numbers. The result is rounded towards\\n * zero.\\n */\\n function average(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b) / 2 can overflow.\\n return (a & b) + (a ^ b) / 2;\\n }\\n\\n /**\\n * @dev Returns the ceiling of the division of two numbers.\\n *\\n * This differs from standard division with `/` in that it rounds up instead\\n * of rounding down.\\n */\\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b - 1) / b can overflow on addition, so we distribute.\\n return a / b + (a % b == 0 ? 0 : 1);\\n }\\n}\\n\",\"keccak256\":\"0xc995bddbca1ae19788db9f8b61e63385edd3fddf89693b612d5abd1a275974d2\",\"license\":\"MIT\"},\"@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol\":{\"content\":\"pragma solidity >=0.5.0;\\n\\ninterface IUniswapV2Pair {\\n event Approval(address indexed owner, address indexed spender, uint value);\\n event Transfer(address indexed from, address indexed to, uint value);\\n\\n function name() external pure returns (string memory);\\n function symbol() external pure returns (string memory);\\n function decimals() external pure returns (uint8);\\n function totalSupply() external view returns (uint);\\n function balanceOf(address owner) external view returns (uint);\\n function allowance(address owner, address spender) external view returns (uint);\\n\\n function approve(address spender, uint value) external returns (bool);\\n function transfer(address to, uint value) external returns (bool);\\n function transferFrom(address from, address to, uint value) external returns (bool);\\n\\n function DOMAIN_SEPARATOR() external view returns (bytes32);\\n function PERMIT_TYPEHASH() external pure returns (bytes32);\\n function nonces(address owner) external view returns (uint);\\n\\n function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;\\n\\n event Mint(address indexed sender, uint amount0, uint amount1);\\n event Burn(address indexed sender, uint amount0, uint amount1, address indexed to);\\n event Swap(\\n address indexed sender,\\n uint amount0In,\\n uint amount1In,\\n uint amount0Out,\\n uint amount1Out,\\n address indexed to\\n );\\n event Sync(uint112 reserve0, uint112 reserve1);\\n\\n function MINIMUM_LIQUIDITY() external pure returns (uint);\\n function factory() external view returns (address);\\n function token0() external view returns (address);\\n function token1() external view returns (address);\\n function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);\\n function price0CumulativeLast() external view returns (uint);\\n function price1CumulativeLast() external view returns (uint);\\n function kLast() external view returns (uint);\\n\\n function mint(address to) external returns (uint liquidity);\\n function burn(address to) external returns (uint amount0, uint amount1);\\n function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;\\n function skim(address to) external;\\n function sync() external;\\n\\n function initialize(address, address) external;\\n}\\n\",\"keccak256\":\"0x7c9bc70e5996c763e02ff38905282bc24fb242b0ef2519a003b36824fc524a4b\"},\"contracts/access/SafeOwnableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\n// Refer to https://github.com/boringcrypto/BoringSolidity/blob/master/contracts/BoringOwnable.sol and https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable/blob/master/contracts/access/OwnableUpgradeable.sol\\n\\npragma solidity 0.8.15;\\n\\nimport '@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol';\\nimport '@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol';\\n\\ncontract SafeOwnableUpgradeable is Initializable, ContextUpgradeable {\\n address private _owner;\\n address private _pendingOwner;\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the deployer as the initial owner.\\n */\\n function __Ownable_init() internal onlyInitializing {\\n __Ownable_init_unchained();\\n }\\n\\n function __Ownable_init_unchained() internal onlyInitializing {\\n _transferOwnership(_msgSender());\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Return the address of the pending owner\\n */\\n function pendingOwner() public view virtual returns (address) {\\n return _pendingOwner;\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n require(owner() == _msgSender(), 'SafeOwnable: caller not owner');\\n _;\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions anymore. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby removing any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n * Note If direct is false, it will set an pending owner and the OwnerShipTransferring\\n * only happens when the pending owner claim the ownership\\n */\\n function transferOwnership(address newOwner, bool direct) public virtual onlyOwner {\\n require(newOwner != address(0), 'SafeOwnable: new owner is 0');\\n if (direct) {\\n _transferOwnership(newOwner);\\n } else {\\n _transferPendingOwnership(newOwner);\\n }\\n }\\n\\n /**\\n * @dev pending owner call this function to claim ownership\\n */\\n function claimOwnership() public {\\n require(msg.sender == _pendingOwner, 'SafeOwnable: caller != pending');\\n\\n _claimOwnership();\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n address oldOwner = _owner;\\n _owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n\\n /**\\n * @dev set the pending owner address\\n * Internal function without access restriction.\\n */\\n function _transferPendingOwnership(address newOwner) internal virtual {\\n _pendingOwner = newOwner;\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _claimOwnership() internal virtual {\\n address oldOwner = _owner;\\n emit OwnershipTransferred(oldOwner, _pendingOwner);\\n\\n _owner = _pendingOwner;\\n _pendingOwner = address(0);\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[48] private __gap;\\n}\\n\",\"keccak256\":\"0x8de5eb1e824cf860909d77028719522b6bcf5b4cb96293e7f95c2d1f4299147b\",\"license\":\"GPL-3.0-only\"},\"contracts/staking/ControllerStorage.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\n\\npragma solidity 0.8.15;\\n\\nimport '@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol';\\nimport '../token/interfaces/IVotingEscrow.sol';\\n\\ncontract ControllerStorage {\\n IVotingEscrow public votingEscrow; // Voting escrow\\n address public p12CoinFactory;\\n // Gauge parameters\\n // All numbers are \\\"fixed point\\\" on the basis of 1e18\\n int128 public nGaugeTypes;\\n int128 public nGauges;\\n uint256 public timeTotal; // last scheduled time\\n\\n uint256[45] private __gap;\\n\\n mapping(int128 => string) public gaugeTypeNames;\\n // Needed for enumeration\\n mapping(int128 => address) public gauges;\\n\\n // we increment values by 1 prior to storing them here so we can rely on a value\\n // of zero as meaning the gauge has not been set\\n mapping(address => int128) public gaugeTypes;\\n\\n mapping(address => mapping(address => VotedSlope)) public voteUserSlopes; // user -> gauge_addr -> VotedSlope\\n mapping(address => uint256) public voteUserPower; // Total vote power used by user\\n mapping(address => mapping(address => uint256)) public lastUserVote; // Last user vote's timestamp for each gauge address\\n\\n // Past and scheduled points for gauge weight, sum of weights per type, total weight\\n // Point is for bias+slope\\n // changes_* are for changes in slope\\n // time_* are for the last change timestamp\\n // timestamps are rounded to whole weeks\\n\\n mapping(address => mapping(uint256 => Point)) public pointsWeight; // gauge_addr -> time -> Point\\n mapping(address => mapping(uint256 => uint256)) internal changesWeight; // gauge_addr -> time -> slope\\n mapping(address => uint256) public timeWeight; // gauge_addr -> last scheduled time (next week)\\n\\n mapping(int128 => mapping(uint256 => Point)) public pointsSum; // type_id -> time -> Point\\n mapping(int128 => mapping(uint256 => uint256)) internal changesSum; // type_id -> time -> slope\\n mapping(int128 => uint256) public timeSum; // type_id -> last scheduled time (next week)\\n\\n mapping(uint256 => uint256) public pointsTotal; // time -> total weight\\n\\n mapping(int128 => mapping(uint256 => uint256)) public pointsTypeWeight; // type_id -> time -> type weight\\n mapping(int128 => uint256) public timeTypeWeight; // type_id -> last scheduled time (next week)\\n\\n struct Point {\\n uint256 bias;\\n uint256 slope;\\n }\\n\\n struct VotedSlope {\\n uint256 slope;\\n uint256 power;\\n uint256 end;\\n }\\n\\n struct TmpBiasAndSlope {\\n uint256 oldWeightBias;\\n uint256 oldWeightSlope;\\n uint256 oldSumBias;\\n uint256 oldSumSlope;\\n }\\n\\n struct TmpBias {\\n uint256 oldBias;\\n uint256 newBias;\\n }\\n}\\n\",\"keccak256\":\"0x8d329c01561bee0d248a16f4022bb34287b3bd1536910b8c0d1452838b31a142\",\"license\":\"GPL-3.0-only\"},\"contracts/staking/GaugeControllerUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\n\\npragma solidity 0.8.15;\\n\\nimport '@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol';\\nimport '@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol';\\nimport '@openzeppelin/contracts/utils/math/Math.sol';\\n\\nimport './interfaces/IGaugeController.sol';\\nimport '../token/interfaces/IVotingEscrow.sol';\\nimport './ControllerStorage.sol';\\nimport '../access/SafeOwnableUpgradeable.sol';\\n\\ncontract GaugeControllerUpgradeable is\\n ControllerStorage,\\n IGaugeController,\\n UUPSUpgradeable,\\n SafeOwnableUpgradeable,\\n PausableUpgradeable\\n{\\n using Math for uint256;\\n // 7 * 86400 seconds - all future times are rounded by week\\n uint256 public constant WEEK = 604800;\\n uint256 public constant MULTIPLIER = 10**18;\\n\\n // Cannot change weight votes more often than once in 10 days\\n uint256 public constant WEIGHT_VOTE_DELAY = 10 * 86400;\\n\\n /**\\n @notice set new votingEscrow\\n @param newVotingEscrow address of votingEscrow\\n */\\n function setVotingEscrow(IVotingEscrow newVotingEscrow) external virtual override onlyOwner {\\n IVotingEscrow oldVotingEscrow = votingEscrow;\\n require(address(newVotingEscrow) != address(0), 'GC: ve can not 0');\\n votingEscrow = newVotingEscrow;\\n emit SetVotingEscrow(oldVotingEscrow, newVotingEscrow);\\n }\\n\\n /**\\n @notice set new p12CoinFactory\\n @param newP12Factory address of newP12Factory\\n */\\n function setP12CoinFactory(address newP12Factory) external virtual override onlyOwner {\\n address oldP12Factory = p12CoinFactory;\\n require(newP12Factory != address(0), 'GC: ve can not 0');\\n p12CoinFactory = newP12Factory;\\n emit SetP12Factory(oldP12Factory, newP12Factory);\\n }\\n\\n /**\\n @notice Get gauge type for address\\n @param addr Gauge address\\n @return Gauge type id\\n */\\n function getGaugeTypes(address addr) external view virtual override returns (int128) {\\n int128 gaugeType = gaugeTypes[addr];\\n require(gaugeType != 0, 'GC: wrong gauge type');\\n return gaugeType - 1;\\n }\\n\\n /**\\n @notice Add gauge `addr` of type `gaugeType` with weight `weight`\\n @param addr Gauge address\\n @param gaugeType Gauge type\\n @param weight Gauge weight\\n */\\n function addGauge(\\n address addr,\\n int128 gaugeType,\\n uint256 weight\\n ) external virtual override {\\n require(msg.sender == owner() || msg.sender == address(p12CoinFactory), 'GC: only admin or p12CoinFactory');\\n require(gaugeType >= 0 && gaugeType < nGaugeTypes, 'GC: gaugeType error');\\n require(gaugeTypes[addr] == 0, 'GC: duplicated gauge type'); //dev: cannot add the same gauge twice\\n\\n int128 n = nGauges;\\n nGauges = n + 1;\\n gauges[n] = addr;\\n\\n gaugeTypes[addr] = gaugeType + 1;\\n uint256 nextTime = ((block.timestamp + WEEK) / WEEK) * WEEK;\\n\\n if (weight > 0) {\\n uint256 typeWeight = _getTypeWeight(gaugeType);\\n uint256 oldSum = _getSum(gaugeType);\\n uint256 oldTotal = _getTotal();\\n\\n pointsSum[gaugeType][nextTime].bias = weight + oldSum;\\n timeSum[gaugeType] = nextTime;\\n pointsTotal[nextTime] = oldTotal + typeWeight * weight;\\n timeTotal = nextTime;\\n\\n pointsWeight[addr][nextTime].bias = weight;\\n }\\n\\n if (timeSum[gaugeType] == 0) {\\n timeSum[gaugeType] = nextTime;\\n }\\n timeWeight[addr] = nextTime;\\n\\n emit NewGauge(addr, gaugeType, weight);\\n }\\n\\n /**\\n @notice Checkpoint to fill data common for all gauges\\n */\\n function checkpoint() external virtual override {\\n _getTotal();\\n }\\n\\n /**\\n @notice Checkpoint to fill data for both a specific gauge and common for all gauges\\n @param addr Gauge address\\n */\\n function checkpointGauge(address addr) external virtual override {\\n _getWeight(addr);\\n _getTotal();\\n }\\n\\n /**\\n @notice Get Gauge relative weight (not more than 1.0) normalized to 1e18\\n (e.g. 1.0 == 1e18). Inflation which will be received by it is\\n inflation_rate * relative_weight / 1e18\\n @param addr Gauge address\\n @param time Relative weight at the specified timestamp in the past or present\\n @return Value of relative weight normalized to 1e18\\n */\\n function gaugeRelativeWeight(address addr, uint256 time) external view virtual override returns (uint256) {\\n return _gaugeRelativeWeight(addr, time);\\n }\\n\\n /**\\n @notice Get gauge weight normalized to 1e18 and also fill all the unfilled\\n values for type and gauge records\\n @dev Any address can call, however nothing is recorded if the values are filled already\\n @param addr Gauge address\\n @param time Relative weight at the specified timestamp in the past or present\\n @return Value of relative weight normalized to 1e18\\n */\\n function gaugeRelativeWeightWrite(address addr, uint256 time) external virtual override returns (uint256) {\\n _getWeight(addr);\\n _getTotal(); // Also calculates get_sum\\n return _gaugeRelativeWeight(addr, time);\\n }\\n\\n /**\\n @notice Add gauge type with name `name` and weight `weight`\\n @param name Name of gauge type\\n @param weight Weight of gauge type\\n */\\n function addType(string memory name, uint256 weight) external virtual override onlyOwner {\\n int128 typeId = nGaugeTypes;\\n gaugeTypeNames[typeId] = name;\\n nGaugeTypes = typeId + 1;\\n if (weight != 0) {\\n _changeTypeWeight(typeId, weight);\\n emit AddType(name, typeId);\\n }\\n }\\n\\n /**\\n @notice Change gauge type `typeId` weight to `weight`\\n @param typeId Gauge type id\\n @param weight New Gauge weight\\n */\\n function changeTypeWeight(int128 typeId, uint256 weight) external virtual override onlyOwner {\\n _changeTypeWeight(typeId, weight);\\n }\\n\\n /**\\n @notice Change weight of gauge `addr` to `weight`\\n @param addr `GaugeController` contract address\\n @param weight New Gauge weight\\n */\\n function changeGaugeWeight(address addr, uint256 weight) external virtual override onlyOwner {\\n _changeGaugeWeight(addr, weight);\\n }\\n\\n /**\\n @notice Allocate voting power for changing pool weights\\n @param gaugeAddr Gauge which `msg.sender` votes for\\n @param userWeight Weight for a gauge in bps (units of 0.01%). Minimal is 0.01%. Ignored if 0\\n */\\n function voteForGaugeWeights(address gaugeAddr, uint256 userWeight) external virtual override whenNotPaused {\\n uint256 slope = uint256(votingEscrow.getLastUserSlope(msg.sender));\\n uint256 lockEnd = votingEscrow.lockedEnd(msg.sender);\\n uint256 nextTime = ((block.timestamp + WEEK) / WEEK) * WEEK;\\n\\n require(lockEnd > nextTime, 'GC: no valid ve');\\n require(userWeight <= 10000, 'GC: no enough voting power');\\n require(block.timestamp >= lastUserVote[msg.sender][gaugeAddr] + WEIGHT_VOTE_DELAY, 'GC: Cannot vote so often');\\n\\n TmpBias memory tmp1;\\n int128 gaugeType = gaugeTypes[gaugeAddr] - 1;\\n require(gaugeType >= 0, 'GC: Gauge not added');\\n // Prepare slopes and biases in memory\\n VotedSlope memory oldSlope = voteUserSlopes[msg.sender][gaugeAddr];\\n uint256 oldDt = 0;\\n if (oldSlope.end > nextTime) {\\n oldDt = oldSlope.end - nextTime;\\n }\\n tmp1.oldBias = oldSlope.slope * oldDt;\\n VotedSlope memory newSlope = VotedSlope({ slope: (slope * userWeight) / 10000, end: lockEnd, power: userWeight });\\n uint256 newDt = lockEnd - nextTime; // dev: raises when expired\\n tmp1.newBias = newSlope.slope * newDt;\\n\\n // Check and update powers (weights) used\\n voteUserPower[msg.sender] = voteUserPower[msg.sender] + newSlope.power - oldSlope.power;\\n require(voteUserPower[msg.sender] <= 10000, 'GC: Used too much power');\\n\\n // Remove old and schedule new slope changes\\n // Remove slope changes for old slopes\\n // Schedule recording of initial slope for nextTime\\n\\n {\\n TmpBiasAndSlope memory tmp2;\\n tmp2.oldWeightBias = _getWeight(gaugeAddr);\\n tmp2.oldWeightSlope = pointsWeight[gaugeAddr][nextTime].slope;\\n tmp2.oldSumBias = _getSum(gaugeType);\\n tmp2.oldSumSlope = pointsSum[gaugeType][nextTime].slope;\\n\\n pointsWeight[gaugeAddr][nextTime].bias = Math.max(tmp2.oldWeightBias + tmp1.newBias, tmp1.oldBias) - tmp1.oldBias;\\n pointsSum[gaugeType][nextTime].bias = Math.max(tmp2.oldSumBias + tmp1.newBias, tmp1.oldBias) - tmp1.oldBias;\\n if (oldSlope.end > nextTime) {\\n pointsWeight[gaugeAddr][nextTime].slope =\\n Math.max(tmp2.oldWeightSlope + newSlope.slope, oldSlope.slope) -\\n oldSlope.slope;\\n pointsSum[gaugeType][nextTime].slope = Math.max(tmp2.oldSumSlope + newSlope.slope, oldSlope.slope) - oldSlope.slope;\\n } else {\\n pointsWeight[gaugeAddr][nextTime].slope += newSlope.slope;\\n pointsSum[gaugeType][nextTime].slope += newSlope.slope;\\n }\\n }\\n\\n if (oldSlope.end > block.timestamp) {\\n // Cancel old slope changes if they still didn't happen\\n changesWeight[gaugeAddr][oldSlope.end] -= oldSlope.slope;\\n changesSum[gaugeType][oldSlope.end] -= oldSlope.slope;\\n }\\n\\n // Add slope changes for new slopes\\n\\n changesWeight[gaugeAddr][newSlope.end] += newSlope.slope;\\n changesSum[gaugeType][newSlope.end] += newSlope.slope;\\n\\n _getTotal();\\n\\n voteUserSlopes[msg.sender][gaugeAddr] = newSlope;\\n\\n // Record last action time\\n lastUserVote[msg.sender][gaugeAddr] = block.timestamp;\\n emit VoteForGauge(block.timestamp, msg.sender, gaugeAddr, userWeight);\\n }\\n\\n /**\\n @notice Get current gauge weight\\n @param addr Gauge address\\n @return Gauge weight\\n */\\n function getGaugeWeight(address addr) external view virtual override returns (uint256) {\\n return pointsWeight[addr][timeWeight[addr]].bias;\\n }\\n\\n /**\\n @notice Get current type weight\\n @param typeId Type id\\n @return Type weight\\n */\\n function getTypeWeight(int128 typeId) external view virtual override returns (uint256) {\\n return pointsTypeWeight[typeId][timeTypeWeight[typeId]];\\n }\\n\\n /**\\n @notice Get current total (type-weighted) weight\\n @return Total weight\\n */\\n function getTotalWeight() external view virtual override returns (uint256) {\\n return pointsTotal[timeTotal];\\n }\\n\\n /**\\n @notice Get sum of gauge weights per type\\n @param typeId Type id\\n @return Sum of gauge weights\\n */\\n function getWeightsSumPerType(int128 typeId) external view virtual override returns (uint256) {\\n return pointsSum[typeId][timeSum[typeId]].bias;\\n }\\n\\n //-----------public----------\\n\\n function pause() public onlyOwner {\\n _pause();\\n }\\n\\n function unpause() public onlyOwner {\\n _unpause();\\n }\\n\\n function initialize(address votingEscrow_, address p12CoinFactory_) public initializer {\\n require(votingEscrow_ != address(0) && p12CoinFactory_ != address(0), 'GC: address can not 0');\\n votingEscrow = IVotingEscrow(votingEscrow_);\\n p12CoinFactory = p12CoinFactory_;\\n\\n __Pausable_init_unchained();\\n __Ownable_init_unchained();\\n }\\n\\n //-----------internal----------\\n function _authorizeUpgrade(address newImplementation) internal override onlyOwner {}\\n\\n /**\\n @notice Fill historic type weights week-over-week for missed checkins\\n and return the type weight for the future week\\n @param gaugeType Gauge type id\\n @return Type weight\\n */\\n function _getTypeWeight(int128 gaugeType) internal virtual returns (uint256) {\\n uint256 t = timeTypeWeight[gaugeType];\\n if (t > 0) {\\n uint256 w = pointsTypeWeight[gaugeType][t];\\n for (uint256 i = 0; i < 500; i++) {\\n if (t > block.timestamp) {\\n break;\\n }\\n t += WEEK;\\n pointsTypeWeight[gaugeType][t] = w;\\n if (t > block.timestamp) {\\n timeTypeWeight[gaugeType] = t;\\n }\\n }\\n return w;\\n } else {\\n return 0;\\n }\\n }\\n\\n /**\\n @notice Fill sum of gauge weights for the same type week-over-week for\\n missed checkins and return the sum for the future week\\n @param gaugeType Gauge type id\\n @return Sum of weights\\n */\\n function _getSum(int128 gaugeType) internal virtual returns (uint256) {\\n uint256 t = timeSum[gaugeType];\\n if (t > 0) {\\n Point memory pt = pointsSum[gaugeType][t];\\n for (uint256 i = 0; i < 500; i++) {\\n if (t > block.timestamp) {\\n break;\\n }\\n t += WEEK;\\n uint256 dBias = pt.slope * WEEK;\\n if (pt.bias > dBias) {\\n pt.bias -= dBias;\\n uint256 dSlope = changesSum[gaugeType][t];\\n pt.slope -= dSlope;\\n } else {\\n pt.bias = 0;\\n pt.slope = 0;\\n }\\n pointsSum[gaugeType][t] = pt;\\n if (t > block.timestamp) {\\n timeSum[gaugeType] = t;\\n }\\n }\\n return pt.bias;\\n } else {\\n return 0;\\n }\\n }\\n\\n /**\\n @notice Fill historic total weights week-over-week for missed checkins\\n and return the total for the future week\\n @return Total weight\\n */\\n function _getTotal() internal virtual returns (uint256) {\\n uint256 t = timeTotal;\\n int128 _nGaugeTypes = nGaugeTypes;\\n if (t > block.timestamp) {\\n // If we have already checkpointed - still need to change the value\\n t -= WEEK;\\n }\\n\\n uint256 pt = pointsTotal[t];\\n for (int128 gaugeType = 0; gaugeType < 100; gaugeType++) {\\n if (gaugeType == _nGaugeTypes) {\\n break;\\n }\\n _getSum(gaugeType);\\n _getTypeWeight(gaugeType);\\n }\\n\\n for (uint256 i = 0; i < 500; i++) {\\n if (t > block.timestamp) {\\n break;\\n }\\n\\n t += WEEK;\\n pt = 0;\\n // Scales as n_types * n_unchecked_weeks (hopefully 1 at most)\\n for (int128 gaugeType = 0; gaugeType < 100; gaugeType++) {\\n if (gaugeType == nGaugeTypes) {\\n break;\\n }\\n uint256 typeSum = pointsSum[gaugeType][t].bias;\\n uint256 typeWeight = pointsTypeWeight[gaugeType][t];\\n pt += typeSum * typeWeight;\\n }\\n pointsTotal[t] = pt;\\n\\n if (t > block.timestamp) {\\n timeTotal = t;\\n }\\n }\\n return pt;\\n }\\n\\n /**\\n @notice Fill historic gauge weights week-over-week for missed checkins\\n and return the total for the future week\\n @param gaugeAddr Address of the gauge\\n @return Gauge weight\\n */\\n function _getWeight(address gaugeAddr) internal virtual returns (uint256) {\\n uint256 t = timeWeight[gaugeAddr];\\n if (t > 0) {\\n Point memory pt = pointsWeight[gaugeAddr][t];\\n for (uint256 i = 0; i < 500; i++) {\\n if (t > block.timestamp) {\\n break;\\n }\\n t += WEEK;\\n uint256 dBias = pt.slope * WEEK;\\n if (pt.bias > dBias) {\\n pt.bias -= dBias;\\n uint256 dSlope = changesWeight[gaugeAddr][t];\\n pt.slope -= dSlope;\\n } else {\\n pt.bias = 0;\\n pt.slope = 0;\\n }\\n pointsWeight[gaugeAddr][t] = pt;\\n if (t > block.timestamp) {\\n timeWeight[gaugeAddr] = t;\\n }\\n }\\n return pt.bias;\\n } else {\\n return 0;\\n }\\n }\\n\\n /**\\n @notice Get Gauge relative weight (not more than 1.0) normalized to 1e18\\n (e.g. 1.0 == 1e18). Inflation which will be received by it is\\n inflation_rate * relative_weight / 1e18\\n @param addr Gauge address\\n @param time Relative weight at the specified timestamp in the past or present\\n @return Value of relative weight normalized to 1e18\\n */\\n function _gaugeRelativeWeight(address addr, uint256 time) internal view virtual returns (uint256) {\\n uint256 t = (time / WEEK) * WEEK;\\n\\n uint256 totalWeight = pointsTotal[t];\\n\\n if (totalWeight > 0) {\\n int128 gaugeType = gaugeTypes[addr] - 1;\\n uint256 typeWeight = pointsTypeWeight[gaugeType][t];\\n uint256 gaugeWeight = pointsWeight[addr][t].bias;\\n return (MULTIPLIER * typeWeight * gaugeWeight) / totalWeight;\\n } else {\\n return 0;\\n }\\n }\\n\\n function _changeTypeWeight(int128 typeId, uint256 weight) internal virtual {\\n uint256 oldWeight = _getTypeWeight(typeId);\\n uint256 oldSum = _getSum(typeId);\\n uint256 totalWeight = _getTotal();\\n uint256 nextTime = ((block.timestamp + WEEK) / WEEK) * WEEK;\\n\\n totalWeight = totalWeight + oldSum * weight - oldSum * oldWeight;\\n pointsTotal[nextTime] = totalWeight;\\n pointsTypeWeight[typeId][nextTime] = weight;\\n timeTotal = nextTime;\\n timeTypeWeight[typeId] = nextTime;\\n\\n emit NewTypeWeight(typeId, nextTime, weight, totalWeight);\\n }\\n\\n function _changeGaugeWeight(address addr, uint256 weight) internal virtual {\\n // Change gauge weight\\n // Only needed when testing in reality\\n int128 gaugeType = gaugeTypes[addr] - 1;\\n uint256 oldGaugeWeight = _getWeight(addr);\\n uint256 typeWeight = _getTypeWeight(gaugeType);\\n uint256 oldSum = _getSum(gaugeType);\\n uint256 totalWeight = _getTotal();\\n uint256 nextTime = ((block.timestamp + WEEK) / WEEK) * WEEK;\\n\\n pointsWeight[addr][nextTime].bias = weight;\\n timeWeight[addr] = nextTime;\\n\\n uint256 newSum = oldSum + weight - oldGaugeWeight;\\n pointsSum[gaugeType][nextTime].bias = newSum;\\n timeSum[gaugeType] = nextTime;\\n\\n totalWeight = totalWeight + newSum * typeWeight - oldSum * typeWeight;\\n pointsTotal[nextTime] = totalWeight;\\n timeTotal = nextTime;\\n\\n emit NewGaugeWeight(addr, block.timestamp, weight, totalWeight);\\n }\\n}\\n\",\"keccak256\":\"0x4440977d7d88a7d01f5493b0b531f9fff7f3f9eac4b23b1bf760c0f1feb96caf\",\"license\":\"GPL-3.0-only\"},\"contracts/staking/interfaces/IGaugeController.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\n\\npragma solidity 0.8.15;\\n\\nimport '../../token/interfaces/IVotingEscrow.sol';\\n\\ninterface IGaugeController {\\n event CommitOwnership(address admin);\\n\\n event ApplyOwnership(address admin);\\n\\n event AddType(string name, int128 typeId);\\n\\n event NewTypeWeight(int128 typeId, uint256 time, uint256 weight, uint256 totalWeight);\\n\\n event NewGaugeWeight(address gaugeAddress, uint256 time, uint256 weight, uint256 totalWeight);\\n\\n event VoteForGauge(uint256 time, address user, address gaugeAddress, uint256 weight);\\n\\n event NewGauge(address addr, int128 gaugeType, uint256 weight);\\n\\n event SetVotingEscrow(IVotingEscrow oldVotingEscrow, IVotingEscrow newVotingEscrow);\\n\\n event SetP12Factory(address oldP12Factory, address newP12Factory);\\n\\n function getGaugeTypes(address addr) external returns (int128);\\n\\n function checkpoint() external;\\n\\n function gaugeRelativeWeightWrite(address addr, uint256 time) external returns (uint256);\\n\\n function changeTypeWeight(int128 typeId, uint256 weight) external;\\n\\n function changeGaugeWeight(address addr, uint256 weight) external;\\n\\n function voteForGaugeWeights(address gaugeAddr, uint256 userWeight) external;\\n\\n function checkpointGauge(address addr) external;\\n\\n function gaugeRelativeWeight(address lpToken, uint256 time) external returns (uint256);\\n\\n function getGaugeWeight(address addr) external returns (uint256);\\n\\n function getTypeWeight(int128 typeId) external returns (uint256);\\n\\n function getTotalWeight() external returns (uint256);\\n\\n function getWeightsSumPerType(int128 typeId) external returns (uint256);\\n\\n function addGauge(\\n address addr,\\n int128 gaugeType,\\n uint256 weight\\n ) external;\\n\\n function addType(string memory name, uint256 weight) external;\\n\\n function setVotingEscrow(IVotingEscrow newVotingEscrow) external;\\n\\n function setP12CoinFactory(address newP12Factory) external;\\n}\\n\",\"keccak256\":\"0xf38a5b6d1b395e89a0b1d685ac8e7124debf96990552afbe1cd486ad8c726a0f\",\"license\":\"GPL-3.0-only\"},\"contracts/token/interfaces/IVotingEscrow.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\n\\npragma solidity 0.8.15;\\n\\ninterface IVotingEscrow {\\n function getLastUserSlope(address addr) external returns (int256);\\n\\n function lockedEnd(address addr) external returns (uint256);\\n}\\n\",\"keccak256\":\"0x5b86f26484c0360029da65eb81b461fb0ec612c4ff3290dc82f5396b5733c6b9\",\"license\":\"GPL-3.0-only\"}},\"version\":1}", + "bytecode": "0x60a06040523060805234801561001457600080fd5b506080516135f961004c60003960008181610a9301528181610ad301528181610ddb01528181610e1b0152610eaa01526135f96000f3fe6080604052600436106102ae5760003560e01c806372be527611610175578063c685775a116100dc578063e4036c6d11610095578063ec73d9061161006f578063ec73d90614610998578063f4359ce5146109c5578063f763d1ff146109dc578063f89993f014610a1b57600080fd5b8063e4036c6d146108d1578063e75ec699146108fe578063eab9041e1461096057600080fd5b8063c685775a146107ec578063ce5ec92e14610822578063dd2b117f14610842578063e0ab067e14610863578063e24862e814610883578063e30c3978146108b357600080fd5b80639e08e3ef1161012e5780639e08e3ef146107095780639fbd4f6614610723578063b242e53414610743578063bb18d47a14610763578063c2c4c5c114610783578063c3a6ca131461079857600080fd5b806372be52761461062e5780637e183ba0146106765780638456cb5914610696578063870e3733146106ab5780638aca6a23146106cb5780638da5cb5b146106eb57600080fd5b8063491640411161021957806357f4cf27116101d257806357f4cf271461055d5780635c975abb1461059f57806365c60468146105c3578063688f3f1f146105e3578063715018a6146105f95780637244d9601461060e57600080fd5b806349164041146104b65780634e71e0c8146104e95780634f1ef286146104fe5780634f2bfe5b146105115780634f6ffd071461053157806352d1902d1461054857600080fd5b80632d1746911161026b5780632d174691146103da57806330928dc5146103fc5780633659cfe6146104295780633cd784f1146104495780633f4ba83a14610481578063485cc9551461049657600080fd5b8063057c9cb4146102b3578063059f8b16146102f357806306aba0e11461030f57806310d1ba581461033357806326f4ed5114610375578063289f338f146103ad575b600080fd5b3480156102bf57600080fd5b506102e06102ce366004612e40565b603d6020526000908152604090205481565b6040519081526020015b60405180910390f35b3480156102ff57600080fd5b506102e0670de0b6b3a764000081565b34801561031b57600080fd5b506003546000908152603d60205260409020546102e0565b34801561033f57600080fd5b506102e061034e366004612e70565b600f0b6000908152603e60209081526040808320603f835281842054845290915290205490565b34801561038157600080fd5b506102e0610390366004612ea0565b603660209081526000928352604080842090915290825290205481565b3480156103b957600080fd5b506102e06103c8366004612ed9565b60396020526000908152604090205481565b3480156103e657600080fd5b506103fa6103f5366004612ef6565b610a48565b005b34801561040857600080fd5b506102e0610417366004612e70565b603f6020526000908152604090205481565b34801561043557600080fd5b506103fa610444366004612ed9565b610a89565b34801561045557600080fd5b50600154610469906001600160a01b031681565b6040516001600160a01b0390911681526020016102ea565b34801561048d57600080fd5b506103fa610b68565b3480156104a257600080fd5b506103fa6104b1366004612ea0565b610b9c565b3480156104c257600080fd5b506104d66104d1366004612ed9565b610cfb565b604051600f9190910b81526020016102ea565b3480156104f557600080fd5b506103fa610d6f565b6103fa61050c366004612fae565b610dd1565b34801561051d57600080fd5b50600054610469906001600160a01b031681565b34801561053d57600080fd5b506102e0620d2f0081565b34801561055457600080fd5b506102e0610e9d565b34801561056957600080fd5b506102e0610578366004612e70565b600f0b6000908152603a60209081526040808320603c835281842054845290915290205490565b3480156105ab57600080fd5b506101095460ff1660405190151581526020016102ea565b3480156105cf57600080fd5b506102e06105de366004612ef6565b610f50565b3480156105ef57600080fd5b506102e060035481565b34801561060557600080fd5b506103fa610f65565b34801561061a57600080fd5b506103fa610629366004612ef6565b610f99565b34801561063a57600080fd5b506102e0610649366004612ed9565b6001600160a01b031660009081526037602090815260408083206039835281842054845290915290205490565b34801561068257600080fd5b506103fa610691366004612ed9565b611849565b3480156106a257600080fd5b506103fa611923565b3480156106b757600080fd5b506103fa6106c6366004613012565b611955565b3480156106d757600080fd5b506103fa6106e6366004612ed9565b611a17565b3480156106f757600080fd5b5060d7546001600160a01b0316610469565b34801561071557600080fd5b506002546104d690600f0b81565b34801561072f57600080fd5b506103fa61073e36600461306b565b611a29565b34801561074f57600080fd5b506103fa61075e3660046130a9565b611d73565b34801561076f57600080fd5b506102e061077e366004612ef6565b611e21565b34801561078f57600080fd5b506103fa611e40565b3480156107a457600080fd5b506107d76107b3366004612ef6565b60376020908152600092835260408084209091529082529020805460019091015482565b604080519283526020830191909152016102ea565b3480156107f857600080fd5b50610469610807366004612e70565b6032602052600090815260409020546001600160a01b031681565b34801561082e57600080fd5b506103fa61083d366004612ed9565b611e48565b34801561084e57600080fd5b506002546104d690600160801b9004600f0b81565b34801561086f57600080fd5b506103fa61087e3660046130dc565b611f1a565b34801561088f57600080fd5b506104d661089e366004612ed9565b603360205260009081526040902054600f0b81565b3480156108bf57600080fd5b5060d8546001600160a01b0316610469565b3480156108dd57600080fd5b506108f16108ec366004612e70565b611f4e565b6040516102ea9190613150565b34801561090a57600080fd5b50610945610919366004612ea0565b603460209081526000928352604080842090915290825290208054600182015460029092015490919083565b604080519384526020840192909252908201526060016102ea565b34801561096c57600080fd5b506102e061097b3660046130dc565b603e60209081526000928352604080842090915290825290205481565b3480156109a457600080fd5b506102e06109b3366004612ed9565b60356020526000908152604090205481565b3480156109d157600080fd5b506102e062093a8081565b3480156109e857600080fd5b506107d76109f73660046130dc565b603a6020908152600092835260408084209091529082529020805460019091015482565b348015610a2757600080fd5b506102e0610a36366004612e70565b603c6020526000908152604090205481565b60d7546001600160a01b03163314610a7b5760405162461bcd60e51b8152600401610a7290613163565b60405180910390fd5b610a858282611fe8565b5050565b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163003610ad15760405162461bcd60e51b8152600401610a729061319a565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610b1a60008051602061357d833981519152546001600160a01b031690565b6001600160a01b031614610b405760405162461bcd60e51b8152600401610a72906131e6565b610b4981612183565b60408051600080825260208201909252610b65918391906121ad565b50565b60d7546001600160a01b03163314610b925760405162461bcd60e51b8152600401610a7290613163565b610b9a612318565b565b604054610100900460ff16610bb75760405460ff1615610bbb565b303b155b610c1e5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610a72565b604054610100900460ff16158015610c40576040805461ffff19166101011790555b6001600160a01b03831615801590610c6057506001600160a01b03821615155b610ca45760405162461bcd60e51b8152602060048201526015602482015274047433a20616464726573732063616e206e6f74203605c1b6044820152606401610a72565b600080546001600160a01b038086166001600160a01b0319928316179092556001805492851692909116919091179055610cdc6123ad565b610ce46123e1565b8015610cf6576040805461ff00191690555b505050565b6001600160a01b038116600090815260336020526040812054600f0b808203610d5d5760405162461bcd60e51b815260206004820152601460248201527347433a2077726f6e67206761756765207479706560601b6044820152606401610a72565b610d68600182613248565b9392505050565b60d8546001600160a01b03163314610dc95760405162461bcd60e51b815260206004820152601e60248201527f536166654f776e61626c653a2063616c6c657220213d2070656e64696e6700006044820152606401610a72565b610b9a612411565b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163003610e195760405162461bcd60e51b8152600401610a729061319a565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610e6260008051602061357d833981519152546001600160a01b031690565b6001600160a01b031614610e885760405162461bcd60e51b8152600401610a72906131e6565b610e9182612183565b610a85828260016121ad565b6000306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610f3d5760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c00000000000000006064820152608401610a72565b5060008051602061357d83398151915290565b6000610f5c838361247a565b90505b92915050565b60d7546001600160a01b03163314610f8f5760405162461bcd60e51b8152600401610a7290613163565b610b9a6000612554565b6101095460ff1615610fe05760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610a72565b60008054604051631e74dac160e31b81523360048201526001600160a01b039091169063f3a6d608906024016020604051808303816000875af115801561102b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061104f9190613298565b600080546040516326f57e5760e11b815233600482015292935090916001600160a01b0390911690634deafcae906024016020604051808303816000875af115801561109f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110c39190613298565b9050600062093a80806110d681426132b1565b6110e091906132c9565b6110ea91906132eb565b905080821161112d5760405162461bcd60e51b815260206004820152600f60248201526e47433a206e6f2076616c696420766560881b6044820152606401610a72565b61271084111561117f5760405162461bcd60e51b815260206004820152601a60248201527f47433a206e6f20656e6f75676820766f74696e6720706f7765720000000000006044820152606401610a72565b3360009081526036602090815260408083206001600160a01b03891684529091529020546111b190620d2f00906132b1565b4210156112005760405162461bcd60e51b815260206004820152601860248201527f47433a2043616e6e6f7420766f746520736f206f6674656e00000000000000006044820152606401610a72565b60408051808201909152600080825260208201526001600160a01b03861660009081526033602052604081205461123c90600190600f0b613248565b9050600081600f0b12156112885760405162461bcd60e51b815260206004820152601360248201527211d0ce8811d85d59d9481b9bdd081859191959606a1b6044820152606401610a72565b3360009081526034602090815260408083206001600160a01b038b1684528252808320815160608101835281548152600182015493810193909352600201549082018190529091908510156112ea578482604001516112e7919061330a565b90505b81516112f79082906132eb565b84526040805160608101909152600090806127106113158c8c6132eb565b61131f91906132c9565b8152602081018b90526040018890529050600061133c878961330a565b825190915061134c9082906132eb565b602080880191909152848101518382015133600090815260359093526040909220549091611379916132b1565b611383919061330a565b33600090815260356020526040902081905561271010156113e65760405162461bcd60e51b815260206004820152601760248201527f47433a205573656420746f6f206d75636820706f7765720000000000000000006044820152606401610a72565b6114116040518060800160405280600081526020016000815260200160008152602001600081525090565b61141a8c6125a6565b81526001600160a01b038c1660009081526037602090815260408083208b84528252909120600101549082015261145086612725565b604080830191909152600f87900b6000908152603a60209081528282208b83528152919020600101546060830152875190880151825161149a91611493916132b1565b8951612873565b6114a4919061330a565b6001600160a01b038d1660009081526037602090815260408083208c845282529182902092909255885191890151908301516114e391611493916132b1565b6114ed919061330a565b600f87900b6000908152603a602090815260408083208c845290915290819020919091558501518810156115b05784518351602083015161153891611531916132b1565b8751612873565b611542919061330a565b6001600160a01b038d1660009081526037602090815260408083208c845290915290206001015584518351606083015161157f91611531916132b1565b611589919061330a565b600f87900b6000908152603a602090815260408083208c8452909152902060010155611626565b82516001600160a01b038d1660009081526037602090815260408083208c8452909152812060010180549091906115e89084906132b1565b90915550508251600f87900b6000908152603a602090815260408083208c8452909152812060010180549091906116209084906132b1565b90915550505b5042846040015111156116a95783516001600160a01b038c1660009081526038602090815260408083208189015184529091528120805490919061166b90849061330a565b90915550508351600f86900b6000908152603b60209081526040808320818901518452909152812080549091906116a390849061330a565b90915550505b81516001600160a01b038c166000908152603860209081526040808320818701518452909152812080549091906116e19084906132b1565b90915550508151600f86900b6000908152603b60209081526040808320818701518452909152812080549091906117199084906132b1565b90915550611727905061288a565b508160346000336001600160a01b03166001600160a01b0316815260200190815260200160002060008d6001600160a01b03166001600160a01b031681526020019081526020016000206000820151816000015560208201518160010155604082015181600201559050504260366000336001600160a01b03166001600160a01b0316815260200190815260200160002060008d6001600160a01b03166001600160a01b03168152602001908152602001600020819055507f45ca9a4c8d0119eb329e580d28fe689e484e1be230da8037ade9547d2d25cc9142338d8d60405161183494939291909384526001600160a01b03928316602085015291166040830152606082015260800190565b60405180910390a15050505050505050505050565b60d7546001600160a01b031633146118735760405162461bcd60e51b8152600401610a7290613163565b6001546001600160a01b039081169082166118c35760405162461bcd60e51b815260206004820152601060248201526f047433a2076652063616e206e6f7420360841b6044820152606401610a72565b600180546001600160a01b0319166001600160a01b0384811691821790925560408051928416835260208301919091527fb5004c6dd32173c6ee128faa447de600665c96ba213f764d94599ca5ceda78b191015b60405180910390a15050565b60d7546001600160a01b0316331461194d5760405162461bcd60e51b8152600401610a7290613163565b610b9a6129de565b60d7546001600160a01b0316331461197f5760405162461bcd60e51b8152600401610a7290613163565b600254600f0b600081815260316020526040902061199d84826133a3565b506119a9816001613463565b600280546001600160801b0319166001600160801b03929092169190911790558115610cf6576119d98183612a5b565b7f6fbe76157c712f16b5a3c44ed48baa04e3450bc3fab0c020e848aca72bbccc848382604051611a0a9291906134b2565b60405180910390a1505050565b611a20816125a6565b50610a8561288a565b60d7546001600160a01b0316331480611a4c57506001546001600160a01b031633145b611a985760405162461bcd60e51b815260206004820181905260248201527f47433a206f6e6c792061646d696e206f7220703132436f696e466163746f72796044820152606401610a72565b600082600f0b12158015611ab55750600254600f90810b9083900b125b611af75760405162461bcd60e51b815260206004820152601360248201527223a19d1033b0bab3b2aa3cb8329032b93937b960691b6044820152606401610a72565b6001600160a01b038316600090815260336020526040902054600f0b15611b605760405162461bcd60e51b815260206004820152601960248201527f47433a206475706c6963617465642067617567652074797065000000000000006044820152606401610a72565b600254600160801b9004600f0b611b78816001613463565b600280546001600160801b03928316600160801b029216919091179055600f81900b600090815260326020526040902080546001600160a01b0386166001600160a01b0319909116179055611bce836001613463565b6001600160a01b038516600090815260336020526040812080546001600160801b0319166001600160801b03939093169290921790915562093a8080611c1481426132b1565b611c1e91906132c9565b611c2891906132eb565b90508215611cdc576000611c3b85612b5f565b90506000611c4886612725565b90506000611c5461288a565b9050611c6082876132b1565b600f88900b6000818152603a60209081526040808320898452825280832094909455918152603c90915220849055611c9886846132eb565b611ca290826132b1565b6000858152603d602090815260408083209390935560038790556001600160a01b038b168252603781528282208783529052208690555050505b600f84900b6000908152603c60205260408120549003611d0d57600f84900b6000908152603c602052604090208190555b6001600160a01b0385166000818152603960209081526040918290208490558151928352600f87900b9083015281018490527ffd55b3191f9c9dd92f4f134dd700e7d76f6a0c836a08687023d6d38f03ebd8779060600160405180910390a15050505050565b60d7546001600160a01b03163314611d9d5760405162461bcd60e51b8152600401610a7290613163565b6001600160a01b038216611df35760405162461bcd60e51b815260206004820152601b60248201527f536166654f776e61626c653a206e6577206f776e6572206973203000000000006044820152606401610a72565b8015611e0257610a8582612554565b60d880546001600160a01b0319166001600160a01b0384161790555050565b6000611e2c836125a6565b50611e3561288a565b50610f5c838361247a565b610b6561288a565b60d7546001600160a01b03163314611e725760405162461bcd60e51b8152600401610a7290613163565b6000546001600160a01b03908116908216611ec25760405162461bcd60e51b815260206004820152601060248201526f047433a2076652063616e206e6f7420360841b6044820152606401610a72565b600080546001600160a01b0319166001600160a01b0384811691821790925560408051928416835260208301919091527fd828f779f83b901159162ddcecf828d6a7983bf62746349df2da26aff0ac140b9101611917565b60d7546001600160a01b03163314611f445760405162461bcd60e51b8152600401610a7290613163565b610a858282612a5b565b60316020526000908152604090208054611f6790613321565b80601f0160208091040260200160405190810160405280929190818152602001828054611f9390613321565b8015611fe05780601f10611fb557610100808354040283529160200191611fe0565b820191906000526020600020905b815481529060010190602001808311611fc357829003601f168201915b505050505081565b6001600160a01b03821660009081526033602052604081205461201090600190600f0b613248565b9050600061201d846125a6565b9050600061202a83612b5f565b9050600061203784612725565b9050600061204361288a565b9050600062093a808061205681426132b1565b61206091906132c9565b61206a91906132eb565b6001600160a01b038916600081815260376020908152604080832085845282528083208c905592825260399052908120829055909150856120ab89866132b1565b6120b5919061330a565b600f88900b6000818152603a602090815260408083208784528252808320859055928252603c90522083905590506120ed85856132eb565b6120f786836132eb565b61210190856132b1565b61210b919061330a565b6000838152603d6020908152604091829020839055600385905581516001600160a01b038d16815242918101919091529081018a9052606081018290529093507f54c0cf3647e6cdb2fc0a7876e60ba77563fceedf2e06c01c597f8dccb9e6bd729060800160405180910390a1505050505050505050565b60d7546001600160a01b03163314610b655760405162461bcd60e51b8152600401610a7290613163565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff16156121e057610cf683612c0c565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561223a575060408051601f3d908101601f1916820190925261223791810190613298565b60015b61229d5760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b6064820152608401610a72565b60008051602061357d833981519152811461230c5760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b6064820152608401610a72565b50610cf6838383612ca8565b6101095460ff166123625760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610a72565b610109805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b604054610100900460ff166123d45760405162461bcd60e51b8152600401610a72906134d7565b610109805460ff19169055565b604054610100900460ff166124085760405162461bcd60e51b8152600401610a72906134d7565b610b9a33612554565b60d75460d8546040516001600160a01b03928316929091169082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35060d8805460d780546001600160a01b03199081166001600160a01b03841617909155169055565b60008062093a8061248b81856132c9565b61249591906132eb565b6000818152603d60205260409020549091508015612549576001600160a01b0385166000908152603360205260408120546124d590600190600f0b613248565b600f81900b6000908152603e602090815260408083208784528252808320546001600160a01b038b168452603783528184208885529092529091205491925090838161252984670de0b6b3a76400006132eb565b61253391906132eb565b61253d91906132c9565b95505050505050610f5f565b600092505050610f5f565b60d780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0381166000908152603960205260408120548015612716576001600160a01b038316600090815260376020908152604080832084845282528083208151808301909252805482526001015491810191909152905b6101f481101561270d5742831161270d5761261f62093a80846132b1565b9250600062093a80836020015161263691906132eb565b9050808360000151111561269a578083600001818151612656919061330a565b9052506001600160a01b0386166000908152603860209081526040808320878452825290912054908401805182919061269090839061330a565b9052506126a59050565b600080845260208401525b6001600160a01b038616600090815260376020908152604080832087845282529091208451815590840151600190910155428411156126fa576001600160a01b03861660009081526039602052604090208490555b508061270581613522565b915050612601565b50519392505050565b50600092915050565b50919050565b600f81900b6000908152603c6020526040812054801561271657600f83900b6000908152603a6020908152604080832084845282528083208151808301909252805482526001015491810191909152905b6101f481101561270d5742831161270d5761279462093a80846132b1565b9250600062093a8083602001516127ab91906132eb565b9050808360000151111561280a5780836000018181516127cb919061330a565b905250600f86900b6000908152603b60209081526040808320878452825290912054908401805182919061280090839061330a565b9052506128159050565b600080845260208401525b600f86900b6000908152603a60209081526040808320878452825290912084518155908401516001909101554284111561286057600f86900b6000908152603c602052604090208490555b508061286b81613522565b915050612776565b6000818310156128835781610f5c565b5090919050565b60035460025460009190600f0b428211156128af576128ac62093a808361330a565b91505b6000828152603d6020526040812054905b606481600f0b12156129005782600f0b81600f0b0315612900576128e381612725565b506128ed81612b5f565b50806128f88161353b565b9150506128c0565b5060005b6101f48110156129d6574284116129d65761292262093a80856132b1565b93506000915060005b606481600f0b12156129a457600254600f82810b91900b146129a457600f81900b6000818152603a60209081526040808320898452825280832054938352603e825280832089845290915290205461298381836132eb565b61298d90866132b1565b94505050808061299c9061353b565b91505061292b565b506000848152603d60205260409020829055428411156129c45760038490555b806129ce81613522565b915050612904565b509392505050565b6101095460ff1615612a255760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610a72565b610109805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586123903390565b6000612a6683612b5f565b90506000612a7384612725565b90506000612a7f61288a565b9050600062093a8080612a9281426132b1565b612a9c91906132c9565b612aa691906132eb565b9050612ab284846132eb565b612abc86856132eb565b612ac690846132b1565b612ad0919061330a565b6000828152603d60209081526040808320849055600f8a900b808452603e835281842086855283528184208a90556003869055808452603f83529281902085905580519283529082018490528101879052606081018290529092507e170bcdc909b6ac6e12d020fe8942256312cdcd555fb6d712899eba56d2f9019060800160405180910390a1505050505050565b600f81900b6000908152603f6020526040812054801561271657600f83900b6000908152603e60209081526040808320848452909152812054905b6101f48110156129d6574283116129d657612bb862093a80846132b1565b600f86900b6000908152603e602090815260408083208484529091529020839055925042831115612bfa57600f85900b6000908152603f602052604090208390555b80612c0481613522565b915050612b9a565b6001600160a01b0381163b612c795760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b6064820152608401610a72565b60008051602061357d83398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b612cb183612cd3565b600082511180612cbe5750805b15610cf657612ccd8383612d13565b50505050565b612cdc81612c0c565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606001600160a01b0383163b612d7b5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b6064820152608401610a72565b600080846001600160a01b031684604051612d969190613560565b600060405180830381855af49150503d8060008114612dd1576040519150601f19603f3d011682016040523d82523d6000602084013e612dd6565b606091505b5091509150612dfe828260405180606001604052806027815260200161359d60279139612e07565b95945050505050565b60608315612e16575081610d68565b825115612e265782518084602001fd5b8160405162461bcd60e51b8152600401610a729190613150565b600060208284031215612e5257600080fd5b5035919050565b8035600f81900b8114612e6b57600080fd5b919050565b600060208284031215612e8257600080fd5b610f5c82612e59565b6001600160a01b0381168114610b6557600080fd5b60008060408385031215612eb357600080fd5b8235612ebe81612e8b565b91506020830135612ece81612e8b565b809150509250929050565b600060208284031215612eeb57600080fd5b8135610d6881612e8b565b60008060408385031215612f0957600080fd5b8235612f1481612e8b565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115612f5357612f53612f22565b604051601f8501601f19908116603f01168101908282118183101715612f7b57612f7b612f22565b81604052809350858152868686011115612f9457600080fd5b858560208301376000602087830101525050509392505050565b60008060408385031215612fc157600080fd5b8235612fcc81612e8b565b9150602083013567ffffffffffffffff811115612fe857600080fd5b8301601f81018513612ff957600080fd5b61300885823560208401612f38565b9150509250929050565b6000806040838503121561302557600080fd5b823567ffffffffffffffff81111561303c57600080fd5b8301601f8101851361304d57600080fd5b61305c85823560208401612f38565b95602094909401359450505050565b60008060006060848603121561308057600080fd5b833561308b81612e8b565b925061309960208501612e59565b9150604084013590509250925092565b600080604083850312156130bc57600080fd5b82356130c781612e8b565b915060208301358015158114612ece57600080fd5b600080604083850312156130ef57600080fd5b612f1483612e59565b60005b838110156131135781810151838201526020016130fb565b83811115612ccd5750506000910152565b6000815180845261313c8160208601602086016130f8565b601f01601f19169290920160200192915050565b602081526000610f5c6020830184613124565b6020808252601d908201527f536166654f776e61626c653a2063616c6c6572206e6f74206f776e6572000000604082015260600190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b600081600f0b83600f0b600081128160016001607f1b03190183128115161561327357613273613232565b8160016001607f1b0301831381161561328e5761328e613232565b5090039392505050565b6000602082840312156132aa57600080fd5b5051919050565b600082198211156132c4576132c4613232565b500190565b6000826132e657634e487b7160e01b600052601260045260246000fd5b500490565b600081600019048311821515161561330557613305613232565b500290565b60008282101561331c5761331c613232565b500390565b600181811c9082168061333557607f821691505b60208210810361271f57634e487b7160e01b600052602260045260246000fd5b601f821115610cf657600081815260208120601f850160051c8101602086101561337c5750805b601f850160051c820191505b8181101561339b57828155600101613388565b505050505050565b815167ffffffffffffffff8111156133bd576133bd612f22565b6133d1816133cb8454613321565b84613355565b602080601f83116001811461340657600084156133ee5750858301515b600019600386901b1c1916600185901b17855561339b565b600085815260208120601f198616915b8281101561343557888601518255948401946001909101908401613416565b50858210156134535787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600081600f0b83600f0b600082128260016001607f1b030382138115161561348d5761348d613232565b8260016001607f1b03190382128116156134a9576134a9613232565b50019392505050565b6040815260006134c56040830185613124565b905082600f0b60208301529392505050565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60006001820161353457613534613232565b5060010190565b600081600f0b60016001607f1b03810361355757613557613232565b60010192915050565b600082516135728184602087016130f8565b919091019291505056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220f40a363ea445421a91a52abb6b574ea86b214e3dc828157ad43806787c7b430164736f6c634300080f0033", + "deployedBytecode": "0x6080604052600436106102ae5760003560e01c806372be527611610175578063c685775a116100dc578063e4036c6d11610095578063ec73d9061161006f578063ec73d90614610998578063f4359ce5146109c5578063f763d1ff146109dc578063f89993f014610a1b57600080fd5b8063e4036c6d146108d1578063e75ec699146108fe578063eab9041e1461096057600080fd5b8063c685775a146107ec578063ce5ec92e14610822578063dd2b117f14610842578063e0ab067e14610863578063e24862e814610883578063e30c3978146108b357600080fd5b80639e08e3ef1161012e5780639e08e3ef146107095780639fbd4f6614610723578063b242e53414610743578063bb18d47a14610763578063c2c4c5c114610783578063c3a6ca131461079857600080fd5b806372be52761461062e5780637e183ba0146106765780638456cb5914610696578063870e3733146106ab5780638aca6a23146106cb5780638da5cb5b146106eb57600080fd5b8063491640411161021957806357f4cf27116101d257806357f4cf271461055d5780635c975abb1461059f57806365c60468146105c3578063688f3f1f146105e3578063715018a6146105f95780637244d9601461060e57600080fd5b806349164041146104b65780634e71e0c8146104e95780634f1ef286146104fe5780634f2bfe5b146105115780634f6ffd071461053157806352d1902d1461054857600080fd5b80632d1746911161026b5780632d174691146103da57806330928dc5146103fc5780633659cfe6146104295780633cd784f1146104495780633f4ba83a14610481578063485cc9551461049657600080fd5b8063057c9cb4146102b3578063059f8b16146102f357806306aba0e11461030f57806310d1ba581461033357806326f4ed5114610375578063289f338f146103ad575b600080fd5b3480156102bf57600080fd5b506102e06102ce366004612e40565b603d6020526000908152604090205481565b6040519081526020015b60405180910390f35b3480156102ff57600080fd5b506102e0670de0b6b3a764000081565b34801561031b57600080fd5b506003546000908152603d60205260409020546102e0565b34801561033f57600080fd5b506102e061034e366004612e70565b600f0b6000908152603e60209081526040808320603f835281842054845290915290205490565b34801561038157600080fd5b506102e0610390366004612ea0565b603660209081526000928352604080842090915290825290205481565b3480156103b957600080fd5b506102e06103c8366004612ed9565b60396020526000908152604090205481565b3480156103e657600080fd5b506103fa6103f5366004612ef6565b610a48565b005b34801561040857600080fd5b506102e0610417366004612e70565b603f6020526000908152604090205481565b34801561043557600080fd5b506103fa610444366004612ed9565b610a89565b34801561045557600080fd5b50600154610469906001600160a01b031681565b6040516001600160a01b0390911681526020016102ea565b34801561048d57600080fd5b506103fa610b68565b3480156104a257600080fd5b506103fa6104b1366004612ea0565b610b9c565b3480156104c257600080fd5b506104d66104d1366004612ed9565b610cfb565b604051600f9190910b81526020016102ea565b3480156104f557600080fd5b506103fa610d6f565b6103fa61050c366004612fae565b610dd1565b34801561051d57600080fd5b50600054610469906001600160a01b031681565b34801561053d57600080fd5b506102e0620d2f0081565b34801561055457600080fd5b506102e0610e9d565b34801561056957600080fd5b506102e0610578366004612e70565b600f0b6000908152603a60209081526040808320603c835281842054845290915290205490565b3480156105ab57600080fd5b506101095460ff1660405190151581526020016102ea565b3480156105cf57600080fd5b506102e06105de366004612ef6565b610f50565b3480156105ef57600080fd5b506102e060035481565b34801561060557600080fd5b506103fa610f65565b34801561061a57600080fd5b506103fa610629366004612ef6565b610f99565b34801561063a57600080fd5b506102e0610649366004612ed9565b6001600160a01b031660009081526037602090815260408083206039835281842054845290915290205490565b34801561068257600080fd5b506103fa610691366004612ed9565b611849565b3480156106a257600080fd5b506103fa611923565b3480156106b757600080fd5b506103fa6106c6366004613012565b611955565b3480156106d757600080fd5b506103fa6106e6366004612ed9565b611a17565b3480156106f757600080fd5b5060d7546001600160a01b0316610469565b34801561071557600080fd5b506002546104d690600f0b81565b34801561072f57600080fd5b506103fa61073e36600461306b565b611a29565b34801561074f57600080fd5b506103fa61075e3660046130a9565b611d73565b34801561076f57600080fd5b506102e061077e366004612ef6565b611e21565b34801561078f57600080fd5b506103fa611e40565b3480156107a457600080fd5b506107d76107b3366004612ef6565b60376020908152600092835260408084209091529082529020805460019091015482565b604080519283526020830191909152016102ea565b3480156107f857600080fd5b50610469610807366004612e70565b6032602052600090815260409020546001600160a01b031681565b34801561082e57600080fd5b506103fa61083d366004612ed9565b611e48565b34801561084e57600080fd5b506002546104d690600160801b9004600f0b81565b34801561086f57600080fd5b506103fa61087e3660046130dc565b611f1a565b34801561088f57600080fd5b506104d661089e366004612ed9565b603360205260009081526040902054600f0b81565b3480156108bf57600080fd5b5060d8546001600160a01b0316610469565b3480156108dd57600080fd5b506108f16108ec366004612e70565b611f4e565b6040516102ea9190613150565b34801561090a57600080fd5b50610945610919366004612ea0565b603460209081526000928352604080842090915290825290208054600182015460029092015490919083565b604080519384526020840192909252908201526060016102ea565b34801561096c57600080fd5b506102e061097b3660046130dc565b603e60209081526000928352604080842090915290825290205481565b3480156109a457600080fd5b506102e06109b3366004612ed9565b60356020526000908152604090205481565b3480156109d157600080fd5b506102e062093a8081565b3480156109e857600080fd5b506107d76109f73660046130dc565b603a6020908152600092835260408084209091529082529020805460019091015482565b348015610a2757600080fd5b506102e0610a36366004612e70565b603c6020526000908152604090205481565b60d7546001600160a01b03163314610a7b5760405162461bcd60e51b8152600401610a7290613163565b60405180910390fd5b610a858282611fe8565b5050565b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163003610ad15760405162461bcd60e51b8152600401610a729061319a565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610b1a60008051602061357d833981519152546001600160a01b031690565b6001600160a01b031614610b405760405162461bcd60e51b8152600401610a72906131e6565b610b4981612183565b60408051600080825260208201909252610b65918391906121ad565b50565b60d7546001600160a01b03163314610b925760405162461bcd60e51b8152600401610a7290613163565b610b9a612318565b565b604054610100900460ff16610bb75760405460ff1615610bbb565b303b155b610c1e5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610a72565b604054610100900460ff16158015610c40576040805461ffff19166101011790555b6001600160a01b03831615801590610c6057506001600160a01b03821615155b610ca45760405162461bcd60e51b8152602060048201526015602482015274047433a20616464726573732063616e206e6f74203605c1b6044820152606401610a72565b600080546001600160a01b038086166001600160a01b0319928316179092556001805492851692909116919091179055610cdc6123ad565b610ce46123e1565b8015610cf6576040805461ff00191690555b505050565b6001600160a01b038116600090815260336020526040812054600f0b808203610d5d5760405162461bcd60e51b815260206004820152601460248201527347433a2077726f6e67206761756765207479706560601b6044820152606401610a72565b610d68600182613248565b9392505050565b60d8546001600160a01b03163314610dc95760405162461bcd60e51b815260206004820152601e60248201527f536166654f776e61626c653a2063616c6c657220213d2070656e64696e6700006044820152606401610a72565b610b9a612411565b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163003610e195760405162461bcd60e51b8152600401610a729061319a565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610e6260008051602061357d833981519152546001600160a01b031690565b6001600160a01b031614610e885760405162461bcd60e51b8152600401610a72906131e6565b610e9182612183565b610a85828260016121ad565b6000306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610f3d5760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c00000000000000006064820152608401610a72565b5060008051602061357d83398151915290565b6000610f5c838361247a565b90505b92915050565b60d7546001600160a01b03163314610f8f5760405162461bcd60e51b8152600401610a7290613163565b610b9a6000612554565b6101095460ff1615610fe05760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610a72565b60008054604051631e74dac160e31b81523360048201526001600160a01b039091169063f3a6d608906024016020604051808303816000875af115801561102b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061104f9190613298565b600080546040516326f57e5760e11b815233600482015292935090916001600160a01b0390911690634deafcae906024016020604051808303816000875af115801561109f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110c39190613298565b9050600062093a80806110d681426132b1565b6110e091906132c9565b6110ea91906132eb565b905080821161112d5760405162461bcd60e51b815260206004820152600f60248201526e47433a206e6f2076616c696420766560881b6044820152606401610a72565b61271084111561117f5760405162461bcd60e51b815260206004820152601a60248201527f47433a206e6f20656e6f75676820766f74696e6720706f7765720000000000006044820152606401610a72565b3360009081526036602090815260408083206001600160a01b03891684529091529020546111b190620d2f00906132b1565b4210156112005760405162461bcd60e51b815260206004820152601860248201527f47433a2043616e6e6f7420766f746520736f206f6674656e00000000000000006044820152606401610a72565b60408051808201909152600080825260208201526001600160a01b03861660009081526033602052604081205461123c90600190600f0b613248565b9050600081600f0b12156112885760405162461bcd60e51b815260206004820152601360248201527211d0ce8811d85d59d9481b9bdd081859191959606a1b6044820152606401610a72565b3360009081526034602090815260408083206001600160a01b038b1684528252808320815160608101835281548152600182015493810193909352600201549082018190529091908510156112ea578482604001516112e7919061330a565b90505b81516112f79082906132eb565b84526040805160608101909152600090806127106113158c8c6132eb565b61131f91906132c9565b8152602081018b90526040018890529050600061133c878961330a565b825190915061134c9082906132eb565b602080880191909152848101518382015133600090815260359093526040909220549091611379916132b1565b611383919061330a565b33600090815260356020526040902081905561271010156113e65760405162461bcd60e51b815260206004820152601760248201527f47433a205573656420746f6f206d75636820706f7765720000000000000000006044820152606401610a72565b6114116040518060800160405280600081526020016000815260200160008152602001600081525090565b61141a8c6125a6565b81526001600160a01b038c1660009081526037602090815260408083208b84528252909120600101549082015261145086612725565b604080830191909152600f87900b6000908152603a60209081528282208b83528152919020600101546060830152875190880151825161149a91611493916132b1565b8951612873565b6114a4919061330a565b6001600160a01b038d1660009081526037602090815260408083208c845282529182902092909255885191890151908301516114e391611493916132b1565b6114ed919061330a565b600f87900b6000908152603a602090815260408083208c845290915290819020919091558501518810156115b05784518351602083015161153891611531916132b1565b8751612873565b611542919061330a565b6001600160a01b038d1660009081526037602090815260408083208c845290915290206001015584518351606083015161157f91611531916132b1565b611589919061330a565b600f87900b6000908152603a602090815260408083208c8452909152902060010155611626565b82516001600160a01b038d1660009081526037602090815260408083208c8452909152812060010180549091906115e89084906132b1565b90915550508251600f87900b6000908152603a602090815260408083208c8452909152812060010180549091906116209084906132b1565b90915550505b5042846040015111156116a95783516001600160a01b038c1660009081526038602090815260408083208189015184529091528120805490919061166b90849061330a565b90915550508351600f86900b6000908152603b60209081526040808320818901518452909152812080549091906116a390849061330a565b90915550505b81516001600160a01b038c166000908152603860209081526040808320818701518452909152812080549091906116e19084906132b1565b90915550508151600f86900b6000908152603b60209081526040808320818701518452909152812080549091906117199084906132b1565b90915550611727905061288a565b508160346000336001600160a01b03166001600160a01b0316815260200190815260200160002060008d6001600160a01b03166001600160a01b031681526020019081526020016000206000820151816000015560208201518160010155604082015181600201559050504260366000336001600160a01b03166001600160a01b0316815260200190815260200160002060008d6001600160a01b03166001600160a01b03168152602001908152602001600020819055507f45ca9a4c8d0119eb329e580d28fe689e484e1be230da8037ade9547d2d25cc9142338d8d60405161183494939291909384526001600160a01b03928316602085015291166040830152606082015260800190565b60405180910390a15050505050505050505050565b60d7546001600160a01b031633146118735760405162461bcd60e51b8152600401610a7290613163565b6001546001600160a01b039081169082166118c35760405162461bcd60e51b815260206004820152601060248201526f047433a2076652063616e206e6f7420360841b6044820152606401610a72565b600180546001600160a01b0319166001600160a01b0384811691821790925560408051928416835260208301919091527fb5004c6dd32173c6ee128faa447de600665c96ba213f764d94599ca5ceda78b191015b60405180910390a15050565b60d7546001600160a01b0316331461194d5760405162461bcd60e51b8152600401610a7290613163565b610b9a6129de565b60d7546001600160a01b0316331461197f5760405162461bcd60e51b8152600401610a7290613163565b600254600f0b600081815260316020526040902061199d84826133a3565b506119a9816001613463565b600280546001600160801b0319166001600160801b03929092169190911790558115610cf6576119d98183612a5b565b7f6fbe76157c712f16b5a3c44ed48baa04e3450bc3fab0c020e848aca72bbccc848382604051611a0a9291906134b2565b60405180910390a1505050565b611a20816125a6565b50610a8561288a565b60d7546001600160a01b0316331480611a4c57506001546001600160a01b031633145b611a985760405162461bcd60e51b815260206004820181905260248201527f47433a206f6e6c792061646d696e206f7220703132436f696e466163746f72796044820152606401610a72565b600082600f0b12158015611ab55750600254600f90810b9083900b125b611af75760405162461bcd60e51b815260206004820152601360248201527223a19d1033b0bab3b2aa3cb8329032b93937b960691b6044820152606401610a72565b6001600160a01b038316600090815260336020526040902054600f0b15611b605760405162461bcd60e51b815260206004820152601960248201527f47433a206475706c6963617465642067617567652074797065000000000000006044820152606401610a72565b600254600160801b9004600f0b611b78816001613463565b600280546001600160801b03928316600160801b029216919091179055600f81900b600090815260326020526040902080546001600160a01b0386166001600160a01b0319909116179055611bce836001613463565b6001600160a01b038516600090815260336020526040812080546001600160801b0319166001600160801b03939093169290921790915562093a8080611c1481426132b1565b611c1e91906132c9565b611c2891906132eb565b90508215611cdc576000611c3b85612b5f565b90506000611c4886612725565b90506000611c5461288a565b9050611c6082876132b1565b600f88900b6000818152603a60209081526040808320898452825280832094909455918152603c90915220849055611c9886846132eb565b611ca290826132b1565b6000858152603d602090815260408083209390935560038790556001600160a01b038b168252603781528282208783529052208690555050505b600f84900b6000908152603c60205260408120549003611d0d57600f84900b6000908152603c602052604090208190555b6001600160a01b0385166000818152603960209081526040918290208490558151928352600f87900b9083015281018490527ffd55b3191f9c9dd92f4f134dd700e7d76f6a0c836a08687023d6d38f03ebd8779060600160405180910390a15050505050565b60d7546001600160a01b03163314611d9d5760405162461bcd60e51b8152600401610a7290613163565b6001600160a01b038216611df35760405162461bcd60e51b815260206004820152601b60248201527f536166654f776e61626c653a206e6577206f776e6572206973203000000000006044820152606401610a72565b8015611e0257610a8582612554565b60d880546001600160a01b0319166001600160a01b0384161790555050565b6000611e2c836125a6565b50611e3561288a565b50610f5c838361247a565b610b6561288a565b60d7546001600160a01b03163314611e725760405162461bcd60e51b8152600401610a7290613163565b6000546001600160a01b03908116908216611ec25760405162461bcd60e51b815260206004820152601060248201526f047433a2076652063616e206e6f7420360841b6044820152606401610a72565b600080546001600160a01b0319166001600160a01b0384811691821790925560408051928416835260208301919091527fd828f779f83b901159162ddcecf828d6a7983bf62746349df2da26aff0ac140b9101611917565b60d7546001600160a01b03163314611f445760405162461bcd60e51b8152600401610a7290613163565b610a858282612a5b565b60316020526000908152604090208054611f6790613321565b80601f0160208091040260200160405190810160405280929190818152602001828054611f9390613321565b8015611fe05780601f10611fb557610100808354040283529160200191611fe0565b820191906000526020600020905b815481529060010190602001808311611fc357829003601f168201915b505050505081565b6001600160a01b03821660009081526033602052604081205461201090600190600f0b613248565b9050600061201d846125a6565b9050600061202a83612b5f565b9050600061203784612725565b9050600061204361288a565b9050600062093a808061205681426132b1565b61206091906132c9565b61206a91906132eb565b6001600160a01b038916600081815260376020908152604080832085845282528083208c905592825260399052908120829055909150856120ab89866132b1565b6120b5919061330a565b600f88900b6000818152603a602090815260408083208784528252808320859055928252603c90522083905590506120ed85856132eb565b6120f786836132eb565b61210190856132b1565b61210b919061330a565b6000838152603d6020908152604091829020839055600385905581516001600160a01b038d16815242918101919091529081018a9052606081018290529093507f54c0cf3647e6cdb2fc0a7876e60ba77563fceedf2e06c01c597f8dccb9e6bd729060800160405180910390a1505050505050505050565b60d7546001600160a01b03163314610b655760405162461bcd60e51b8152600401610a7290613163565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff16156121e057610cf683612c0c565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801561223a575060408051601f3d908101601f1916820190925261223791810190613298565b60015b61229d5760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b6064820152608401610a72565b60008051602061357d833981519152811461230c5760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b6064820152608401610a72565b50610cf6838383612ca8565b6101095460ff166123625760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610a72565b610109805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b604054610100900460ff166123d45760405162461bcd60e51b8152600401610a72906134d7565b610109805460ff19169055565b604054610100900460ff166124085760405162461bcd60e51b8152600401610a72906134d7565b610b9a33612554565b60d75460d8546040516001600160a01b03928316929091169082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35060d8805460d780546001600160a01b03199081166001600160a01b03841617909155169055565b60008062093a8061248b81856132c9565b61249591906132eb565b6000818152603d60205260409020549091508015612549576001600160a01b0385166000908152603360205260408120546124d590600190600f0b613248565b600f81900b6000908152603e602090815260408083208784528252808320546001600160a01b038b168452603783528184208885529092529091205491925090838161252984670de0b6b3a76400006132eb565b61253391906132eb565b61253d91906132c9565b95505050505050610f5f565b600092505050610f5f565b60d780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0381166000908152603960205260408120548015612716576001600160a01b038316600090815260376020908152604080832084845282528083208151808301909252805482526001015491810191909152905b6101f481101561270d5742831161270d5761261f62093a80846132b1565b9250600062093a80836020015161263691906132eb565b9050808360000151111561269a578083600001818151612656919061330a565b9052506001600160a01b0386166000908152603860209081526040808320878452825290912054908401805182919061269090839061330a565b9052506126a59050565b600080845260208401525b6001600160a01b038616600090815260376020908152604080832087845282529091208451815590840151600190910155428411156126fa576001600160a01b03861660009081526039602052604090208490555b508061270581613522565b915050612601565b50519392505050565b50600092915050565b50919050565b600f81900b6000908152603c6020526040812054801561271657600f83900b6000908152603a6020908152604080832084845282528083208151808301909252805482526001015491810191909152905b6101f481101561270d5742831161270d5761279462093a80846132b1565b9250600062093a8083602001516127ab91906132eb565b9050808360000151111561280a5780836000018181516127cb919061330a565b905250600f86900b6000908152603b60209081526040808320878452825290912054908401805182919061280090839061330a565b9052506128159050565b600080845260208401525b600f86900b6000908152603a60209081526040808320878452825290912084518155908401516001909101554284111561286057600f86900b6000908152603c602052604090208490555b508061286b81613522565b915050612776565b6000818310156128835781610f5c565b5090919050565b60035460025460009190600f0b428211156128af576128ac62093a808361330a565b91505b6000828152603d6020526040812054905b606481600f0b12156129005782600f0b81600f0b0315612900576128e381612725565b506128ed81612b5f565b50806128f88161353b565b9150506128c0565b5060005b6101f48110156129d6574284116129d65761292262093a80856132b1565b93506000915060005b606481600f0b12156129a457600254600f82810b91900b146129a457600f81900b6000818152603a60209081526040808320898452825280832054938352603e825280832089845290915290205461298381836132eb565b61298d90866132b1565b94505050808061299c9061353b565b91505061292b565b506000848152603d60205260409020829055428411156129c45760038490555b806129ce81613522565b915050612904565b509392505050565b6101095460ff1615612a255760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610a72565b610109805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586123903390565b6000612a6683612b5f565b90506000612a7384612725565b90506000612a7f61288a565b9050600062093a8080612a9281426132b1565b612a9c91906132c9565b612aa691906132eb565b9050612ab284846132eb565b612abc86856132eb565b612ac690846132b1565b612ad0919061330a565b6000828152603d60209081526040808320849055600f8a900b808452603e835281842086855283528184208a90556003869055808452603f83529281902085905580519283529082018490528101879052606081018290529092507e170bcdc909b6ac6e12d020fe8942256312cdcd555fb6d712899eba56d2f9019060800160405180910390a1505050505050565b600f81900b6000908152603f6020526040812054801561271657600f83900b6000908152603e60209081526040808320848452909152812054905b6101f48110156129d6574283116129d657612bb862093a80846132b1565b600f86900b6000908152603e602090815260408083208484529091529020839055925042831115612bfa57600f85900b6000908152603f602052604090208390555b80612c0481613522565b915050612b9a565b6001600160a01b0381163b612c795760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b6064820152608401610a72565b60008051602061357d83398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b612cb183612cd3565b600082511180612cbe5750805b15610cf657612ccd8383612d13565b50505050565b612cdc81612c0c565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606001600160a01b0383163b612d7b5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b6064820152608401610a72565b600080846001600160a01b031684604051612d969190613560565b600060405180830381855af49150503d8060008114612dd1576040519150601f19603f3d011682016040523d82523d6000602084013e612dd6565b606091505b5091509150612dfe828260405180606001604052806027815260200161359d60279139612e07565b95945050505050565b60608315612e16575081610d68565b825115612e265782518084602001fd5b8160405162461bcd60e51b8152600401610a729190613150565b600060208284031215612e5257600080fd5b5035919050565b8035600f81900b8114612e6b57600080fd5b919050565b600060208284031215612e8257600080fd5b610f5c82612e59565b6001600160a01b0381168114610b6557600080fd5b60008060408385031215612eb357600080fd5b8235612ebe81612e8b565b91506020830135612ece81612e8b565b809150509250929050565b600060208284031215612eeb57600080fd5b8135610d6881612e8b565b60008060408385031215612f0957600080fd5b8235612f1481612e8b565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115612f5357612f53612f22565b604051601f8501601f19908116603f01168101908282118183101715612f7b57612f7b612f22565b81604052809350858152868686011115612f9457600080fd5b858560208301376000602087830101525050509392505050565b60008060408385031215612fc157600080fd5b8235612fcc81612e8b565b9150602083013567ffffffffffffffff811115612fe857600080fd5b8301601f81018513612ff957600080fd5b61300885823560208401612f38565b9150509250929050565b6000806040838503121561302557600080fd5b823567ffffffffffffffff81111561303c57600080fd5b8301601f8101851361304d57600080fd5b61305c85823560208401612f38565b95602094909401359450505050565b60008060006060848603121561308057600080fd5b833561308b81612e8b565b925061309960208501612e59565b9150604084013590509250925092565b600080604083850312156130bc57600080fd5b82356130c781612e8b565b915060208301358015158114612ece57600080fd5b600080604083850312156130ef57600080fd5b612f1483612e59565b60005b838110156131135781810151838201526020016130fb565b83811115612ccd5750506000910152565b6000815180845261313c8160208601602086016130f8565b601f01601f19169290920160200192915050565b602081526000610f5c6020830184613124565b6020808252601d908201527f536166654f776e61626c653a2063616c6c6572206e6f74206f776e6572000000604082015260600190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b600081600f0b83600f0b600081128160016001607f1b03190183128115161561327357613273613232565b8160016001607f1b0301831381161561328e5761328e613232565b5090039392505050565b6000602082840312156132aa57600080fd5b5051919050565b600082198211156132c4576132c4613232565b500190565b6000826132e657634e487b7160e01b600052601260045260246000fd5b500490565b600081600019048311821515161561330557613305613232565b500290565b60008282101561331c5761331c613232565b500390565b600181811c9082168061333557607f821691505b60208210810361271f57634e487b7160e01b600052602260045260246000fd5b601f821115610cf657600081815260208120601f850160051c8101602086101561337c5750805b601f850160051c820191505b8181101561339b57828155600101613388565b505050505050565b815167ffffffffffffffff8111156133bd576133bd612f22565b6133d1816133cb8454613321565b84613355565b602080601f83116001811461340657600084156133ee5750858301515b600019600386901b1c1916600185901b17855561339b565b600085815260208120601f198616915b8281101561343557888601518255948401946001909101908401613416565b50858210156134535787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600081600f0b83600f0b600082128260016001607f1b030382138115161561348d5761348d613232565b8260016001607f1b03190382128116156134a9576134a9613232565b50019392505050565b6040815260006134c56040830185613124565b905082600f0b60208301529392505050565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60006001820161353457613534613232565b5060010190565b600081600f0b60016001607f1b03810361355757613557613232565b60010192915050565b600082516135728184602087016130f8565b919091019291505056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220f40a363ea445421a91a52abb6b574ea86b214e3dc828157ad43806787c7b430164736f6c634300080f0033", + "devdoc": { + "kind": "dev", + "methods": { + "addGauge(address,int128,uint256)": { + "params": { + "addr": "Gauge address", + "gaugeType": "Gauge type", + "weight": "Gauge weight" + } + }, + "addType(string,uint256)": { + "params": { + "name": "Name of gauge type", + "weight": "Weight of gauge type" + } + }, + "changeGaugeWeight(address,uint256)": { + "params": { + "addr": "`GaugeController` contract address", + "weight": "New Gauge weight" + } + }, + "changeTypeWeight(int128,uint256)": { + "params": { + "typeId": "Gauge type id", + "weight": "New Gauge weight" + } + }, + "checkpointGauge(address)": { + "params": { + "addr": "Gauge address" + } + }, + "claimOwnership()": { + "details": "pending owner call this function to claim ownership" + }, + "gaugeRelativeWeight(address,uint256)": { + "params": { + "addr": "Gauge address", + "time": "Relative weight at the specified timestamp in the past or present" + }, + "returns": { + "_0": "Value of relative weight normalized to 1e18" + } + }, + "gaugeRelativeWeightWrite(address,uint256)": { + "details": "Any address can call, however nothing is recorded if the values are filled already", + "params": { + "addr": "Gauge address", + "time": "Relative weight at the specified timestamp in the past or present" + }, + "returns": { + "_0": "Value of relative weight normalized to 1e18" + } + }, + "getGaugeTypes(address)": { + "params": { + "addr": "Gauge address" + }, + "returns": { + "_0": "Gauge type id" + } + }, + "getGaugeWeight(address)": { + "params": { + "addr": "Gauge address" + }, + "returns": { + "_0": "Gauge weight" + } + }, + "getTotalWeight()": { + "returns": { + "_0": "Total weight" + } + }, + "getTypeWeight(int128)": { + "params": { + "typeId": "Type id" + }, + "returns": { + "_0": "Type weight" + } + }, + "getWeightsSumPerType(int128)": { + "params": { + "typeId": "Type id" + }, + "returns": { + "_0": "Sum of gauge weights" + } + }, + "owner()": { + "details": "Returns the address of the current owner." + }, + "paused()": { + "details": "Returns true if the contract is paused, and false otherwise." + }, + "pendingOwner()": { + "details": "Return the address of the pending owner" + }, + "proxiableUUID()": { + "details": "Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the implementation. It is used to validate that the this implementation remains valid after an upgrade. IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier." + }, + "renounceOwnership()": { + "details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner." + }, + "setP12CoinFactory(address)": { + "params": { + "newP12Factory": "address of newP12Factory" + } + }, + "setVotingEscrow(address)": { + "params": { + "newVotingEscrow": "address of votingEscrow" + } + }, + "transferOwnership(address,bool)": { + "details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner. Note If direct is false, it will set an pending owner and the OwnerShipTransferring only happens when the pending owner claim the ownership" + }, + "upgradeTo(address)": { + "details": "Upgrade the implementation of the proxy to `newImplementation`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event." + }, + "upgradeToAndCall(address,bytes)": { + "details": "Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call encoded in `data`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event." + }, + "voteForGaugeWeights(address,uint256)": { + "params": { + "gaugeAddr": "Gauge which `msg.sender` votes for", + "userWeight": "Weight for a gauge in bps (units of 0.01%). Minimal is 0.01%. Ignored if 0" + } + } + }, + "version": 1 + }, + "userdoc": { + "kind": "user", + "methods": { + "addGauge(address,int128,uint256)": { + "notice": "Add gauge `addr` of type `gaugeType` with weight `weight`" + }, + "addType(string,uint256)": { + "notice": "Add gauge type with name `name` and weight `weight`" + }, + "changeGaugeWeight(address,uint256)": { + "notice": "Change weight of gauge `addr` to `weight`" + }, + "changeTypeWeight(int128,uint256)": { + "notice": "Change gauge type `typeId` weight to `weight`" + }, + "checkpoint()": { + "notice": "Checkpoint to fill data common for all gauges" + }, + "checkpointGauge(address)": { + "notice": "Checkpoint to fill data for both a specific gauge and common for all gauges" + }, + "gaugeRelativeWeight(address,uint256)": { + "notice": "Get Gauge relative weight (not more than 1.0) normalized to 1e18 (e.g. 1.0 == 1e18). Inflation which will be received by it is inflation_rate * relative_weight / 1e18" + }, + "gaugeRelativeWeightWrite(address,uint256)": { + "notice": "Get gauge weight normalized to 1e18 and also fill all the unfilled values for type and gauge records" + }, + "getGaugeTypes(address)": { + "notice": "Get gauge type for address" + }, + "getGaugeWeight(address)": { + "notice": "Get current gauge weight" + }, + "getTotalWeight()": { + "notice": "Get current total (type-weighted) weight" + }, + "getTypeWeight(int128)": { + "notice": "Get current type weight" + }, + "getWeightsSumPerType(int128)": { + "notice": "Get sum of gauge weights per type" + }, + "setP12CoinFactory(address)": { + "notice": "set new p12CoinFactory" + }, + "setVotingEscrow(address)": { + "notice": "set new votingEscrow" + }, + "voteForGaugeWeights(address,uint256)": { + "notice": "Allocate voting power for changing pool weights" + } + }, + "version": 1 + }, + "storageLayout": { + "storage": [ + { + "astId": 11905, + "contract": "contracts/staking/GaugeControllerUpgradeable.sol:GaugeControllerUpgradeable", + "label": "votingEscrow", + "offset": 0, + "slot": "0", + "type": "t_contract(IVotingEscrow)18464" + }, + { + "astId": 11907, + "contract": "contracts/staking/GaugeControllerUpgradeable.sol:GaugeControllerUpgradeable", + "label": "p12CoinFactory", + "offset": 0, + "slot": "1", + "type": "t_address" + }, + { + "astId": 11909, + "contract": "contracts/staking/GaugeControllerUpgradeable.sol:GaugeControllerUpgradeable", + "label": "nGaugeTypes", + "offset": 0, + "slot": "2", + "type": "t_int128" + }, + { + "astId": 11911, + "contract": "contracts/staking/GaugeControllerUpgradeable.sol:GaugeControllerUpgradeable", + "label": "nGauges", + "offset": 16, + "slot": "2", + "type": "t_int128" + }, + { + "astId": 11913, + "contract": "contracts/staking/GaugeControllerUpgradeable.sol:GaugeControllerUpgradeable", + "label": "timeTotal", + "offset": 0, + "slot": "3", + "type": "t_uint256" + }, + { + "astId": 11917, + "contract": "contracts/staking/GaugeControllerUpgradeable.sol:GaugeControllerUpgradeable", + "label": "__gap", + "offset": 0, + "slot": "4", + "type": "t_array(t_uint256)45_storage" + }, + { + "astId": 11921, + "contract": "contracts/staking/GaugeControllerUpgradeable.sol:GaugeControllerUpgradeable", + "label": "gaugeTypeNames", + "offset": 0, + "slot": "49", + "type": "t_mapping(t_int128,t_string_storage)" + }, + { + "astId": 11925, + "contract": "contracts/staking/GaugeControllerUpgradeable.sol:GaugeControllerUpgradeable", + "label": "gauges", + "offset": 0, + "slot": "50", + "type": "t_mapping(t_int128,t_address)" + }, + { + "astId": 11929, + "contract": "contracts/staking/GaugeControllerUpgradeable.sol:GaugeControllerUpgradeable", + "label": "gaugeTypes", + "offset": 0, + "slot": "51", + "type": "t_mapping(t_address,t_int128)" + }, + { + "astId": 11936, + "contract": "contracts/staking/GaugeControllerUpgradeable.sol:GaugeControllerUpgradeable", + "label": "voteUserSlopes", + "offset": 0, + "slot": "52", + "type": "t_mapping(t_address,t_mapping(t_address,t_struct(VotedSlope)12006_storage))" + }, + { + "astId": 11940, + "contract": "contracts/staking/GaugeControllerUpgradeable.sol:GaugeControllerUpgradeable", + "label": "voteUserPower", + "offset": 0, + "slot": "53", + "type": "t_mapping(t_address,t_uint256)" + }, + { + "astId": 11946, + "contract": "contracts/staking/GaugeControllerUpgradeable.sol:GaugeControllerUpgradeable", + "label": "lastUserVote", + "offset": 0, + "slot": "54", + "type": "t_mapping(t_address,t_mapping(t_address,t_uint256))" + }, + { + "astId": 11953, + "contract": "contracts/staking/GaugeControllerUpgradeable.sol:GaugeControllerUpgradeable", + "label": "pointsWeight", + "offset": 0, + "slot": "55", + "type": "t_mapping(t_address,t_mapping(t_uint256,t_struct(Point)11999_storage))" + }, + { + "astId": 11959, + "contract": "contracts/staking/GaugeControllerUpgradeable.sol:GaugeControllerUpgradeable", + "label": "changesWeight", + "offset": 0, + "slot": "56", + "type": "t_mapping(t_address,t_mapping(t_uint256,t_uint256))" + }, + { + "astId": 11963, + "contract": "contracts/staking/GaugeControllerUpgradeable.sol:GaugeControllerUpgradeable", + "label": "timeWeight", + "offset": 0, + "slot": "57", + "type": "t_mapping(t_address,t_uint256)" + }, + { + "astId": 11970, + "contract": "contracts/staking/GaugeControllerUpgradeable.sol:GaugeControllerUpgradeable", + "label": "pointsSum", + "offset": 0, + "slot": "58", + "type": "t_mapping(t_int128,t_mapping(t_uint256,t_struct(Point)11999_storage))" + }, + { + "astId": 11976, + "contract": "contracts/staking/GaugeControllerUpgradeable.sol:GaugeControllerUpgradeable", + "label": "changesSum", + "offset": 0, + "slot": "59", + "type": "t_mapping(t_int128,t_mapping(t_uint256,t_uint256))" + }, + { + "astId": 11980, + "contract": "contracts/staking/GaugeControllerUpgradeable.sol:GaugeControllerUpgradeable", + "label": "timeSum", + "offset": 0, + "slot": "60", + "type": "t_mapping(t_int128,t_uint256)" + }, + { + "astId": 11984, + "contract": "contracts/staking/GaugeControllerUpgradeable.sol:GaugeControllerUpgradeable", + "label": "pointsTotal", + "offset": 0, + "slot": "61", + "type": "t_mapping(t_uint256,t_uint256)" + }, + { + "astId": 11990, + "contract": "contracts/staking/GaugeControllerUpgradeable.sol:GaugeControllerUpgradeable", + "label": "pointsTypeWeight", + "offset": 0, + "slot": "62", + "type": "t_mapping(t_int128,t_mapping(t_uint256,t_uint256))" + }, + { + "astId": 11994, + "contract": "contracts/staking/GaugeControllerUpgradeable.sol:GaugeControllerUpgradeable", + "label": "timeTypeWeight", + "offset": 0, + "slot": "63", + "type": "t_mapping(t_int128,t_uint256)" + }, + { + "astId": 395, + "contract": "contracts/staking/GaugeControllerUpgradeable.sol:GaugeControllerUpgradeable", + "label": "_initialized", + "offset": 0, + "slot": "64", + "type": "t_bool" + }, + { + "astId": 398, + "contract": "contracts/staking/GaugeControllerUpgradeable.sol:GaugeControllerUpgradeable", + "label": "_initializing", + "offset": 1, + "slot": "64", + "type": "t_bool" + }, + { + "astId": 377, + "contract": "contracts/staking/GaugeControllerUpgradeable.sol:GaugeControllerUpgradeable", + "label": "__gap", + "offset": 0, + "slot": "65", + "type": "t_array(t_uint256)50_storage" + }, + { + "astId": 597, + "contract": "contracts/staking/GaugeControllerUpgradeable.sol:GaugeControllerUpgradeable", + "label": "__gap", + "offset": 0, + "slot": "115", + "type": "t_array(t_uint256)50_storage" + }, + { + "astId": 1354, + "contract": "contracts/staking/GaugeControllerUpgradeable.sol:GaugeControllerUpgradeable", + "label": "__gap", + "offset": 0, + "slot": "165", + "type": "t_array(t_uint256)50_storage" + }, + { + "astId": 7440, + "contract": "contracts/staking/GaugeControllerUpgradeable.sol:GaugeControllerUpgradeable", + "label": "_owner", + "offset": 0, + "slot": "215", + "type": "t_address" + }, + { + "astId": 7442, + "contract": "contracts/staking/GaugeControllerUpgradeable.sol:GaugeControllerUpgradeable", + "label": "_pendingOwner", + "offset": 0, + "slot": "216", + "type": "t_address" + }, + { + "astId": 7625, + "contract": "contracts/staking/GaugeControllerUpgradeable.sol:GaugeControllerUpgradeable", + "label": "__gap", + "offset": 0, + "slot": "217", + "type": "t_array(t_uint256)48_storage" + }, + { + "astId": 619, + "contract": "contracts/staking/GaugeControllerUpgradeable.sol:GaugeControllerUpgradeable", + "label": "_paused", + "offset": 0, + "slot": "265", + "type": "t_bool" + }, + { + "astId": 708, + "contract": "contracts/staking/GaugeControllerUpgradeable.sol:GaugeControllerUpgradeable", + "label": "__gap", + "offset": 0, + "slot": "266", + "type": "t_array(t_uint256)49_storage" + } + ], + "types": { + "t_address": { + "encoding": "inplace", + "label": "address", + "numberOfBytes": "20" + }, + "t_array(t_uint256)45_storage": { + "base": "t_uint256", + "encoding": "inplace", + "label": "uint256[45]", + "numberOfBytes": "1440" + }, + "t_array(t_uint256)48_storage": { + "base": "t_uint256", + "encoding": "inplace", + "label": "uint256[48]", + "numberOfBytes": "1536" + }, + "t_array(t_uint256)49_storage": { + "base": "t_uint256", + "encoding": "inplace", + "label": "uint256[49]", + "numberOfBytes": "1568" + }, + "t_array(t_uint256)50_storage": { + "base": "t_uint256", + "encoding": "inplace", + "label": "uint256[50]", + "numberOfBytes": "1600" + }, + "t_bool": { + "encoding": "inplace", + "label": "bool", + "numberOfBytes": "1" + }, + "t_contract(IVotingEscrow)18464": { + "encoding": "inplace", + "label": "contract IVotingEscrow", + "numberOfBytes": "20" + }, + "t_int128": { + "encoding": "inplace", + "label": "int128", + "numberOfBytes": "16" + }, + "t_mapping(t_address,t_int128)": { + "encoding": "mapping", + "key": "t_address", + "label": "mapping(address => int128)", + "numberOfBytes": "32", + "value": "t_int128" + }, + "t_mapping(t_address,t_mapping(t_address,t_struct(VotedSlope)12006_storage))": { + "encoding": "mapping", + "key": "t_address", + "label": "mapping(address => mapping(address => struct ControllerStorage.VotedSlope))", + "numberOfBytes": "32", + "value": "t_mapping(t_address,t_struct(VotedSlope)12006_storage)" + }, + "t_mapping(t_address,t_mapping(t_address,t_uint256))": { + "encoding": "mapping", + "key": "t_address", + "label": "mapping(address => mapping(address => uint256))", + "numberOfBytes": "32", + "value": "t_mapping(t_address,t_uint256)" + }, + "t_mapping(t_address,t_mapping(t_uint256,t_struct(Point)11999_storage))": { + "encoding": "mapping", + "key": "t_address", + "label": "mapping(address => mapping(uint256 => struct ControllerStorage.Point))", + "numberOfBytes": "32", + "value": "t_mapping(t_uint256,t_struct(Point)11999_storage)" + }, + "t_mapping(t_address,t_mapping(t_uint256,t_uint256))": { + "encoding": "mapping", + "key": "t_address", + "label": "mapping(address => mapping(uint256 => uint256))", + "numberOfBytes": "32", + "value": "t_mapping(t_uint256,t_uint256)" + }, + "t_mapping(t_address,t_struct(VotedSlope)12006_storage)": { + "encoding": "mapping", + "key": "t_address", + "label": "mapping(address => struct ControllerStorage.VotedSlope)", + "numberOfBytes": "32", + "value": "t_struct(VotedSlope)12006_storage" + }, + "t_mapping(t_address,t_uint256)": { + "encoding": "mapping", + "key": "t_address", + "label": "mapping(address => uint256)", + "numberOfBytes": "32", + "value": "t_uint256" + }, + "t_mapping(t_int128,t_address)": { + "encoding": "mapping", + "key": "t_int128", + "label": "mapping(int128 => address)", + "numberOfBytes": "32", + "value": "t_address" + }, + "t_mapping(t_int128,t_mapping(t_uint256,t_struct(Point)11999_storage))": { + "encoding": "mapping", + "key": "t_int128", + "label": "mapping(int128 => mapping(uint256 => struct ControllerStorage.Point))", + "numberOfBytes": "32", + "value": "t_mapping(t_uint256,t_struct(Point)11999_storage)" + }, + "t_mapping(t_int128,t_mapping(t_uint256,t_uint256))": { + "encoding": "mapping", + "key": "t_int128", + "label": "mapping(int128 => mapping(uint256 => uint256))", + "numberOfBytes": "32", + "value": "t_mapping(t_uint256,t_uint256)" + }, + "t_mapping(t_int128,t_string_storage)": { + "encoding": "mapping", + "key": "t_int128", + "label": "mapping(int128 => string)", + "numberOfBytes": "32", + "value": "t_string_storage" + }, + "t_mapping(t_int128,t_uint256)": { + "encoding": "mapping", + "key": "t_int128", + "label": "mapping(int128 => uint256)", + "numberOfBytes": "32", + "value": "t_uint256" + }, + "t_mapping(t_uint256,t_struct(Point)11999_storage)": { + "encoding": "mapping", + "key": "t_uint256", + "label": "mapping(uint256 => struct ControllerStorage.Point)", + "numberOfBytes": "32", + "value": "t_struct(Point)11999_storage" + }, + "t_mapping(t_uint256,t_uint256)": { + "encoding": "mapping", + "key": "t_uint256", + "label": "mapping(uint256 => uint256)", + "numberOfBytes": "32", + "value": "t_uint256" + }, + "t_string_storage": { + "encoding": "bytes", + "label": "string", + "numberOfBytes": "32" + }, + "t_struct(Point)11999_storage": { + "encoding": "inplace", + "label": "struct ControllerStorage.Point", + "members": [ + { + "astId": 11996, + "contract": "contracts/staking/GaugeControllerUpgradeable.sol:GaugeControllerUpgradeable", + "label": "bias", + "offset": 0, + "slot": "0", + "type": "t_uint256" + }, + { + "astId": 11998, + "contract": "contracts/staking/GaugeControllerUpgradeable.sol:GaugeControllerUpgradeable", + "label": "slope", + "offset": 0, + "slot": "1", + "type": "t_uint256" + } + ], + "numberOfBytes": "64" + }, + "t_struct(VotedSlope)12006_storage": { + "encoding": "inplace", + "label": "struct ControllerStorage.VotedSlope", + "members": [ + { + "astId": 12001, + "contract": "contracts/staking/GaugeControllerUpgradeable.sol:GaugeControllerUpgradeable", + "label": "slope", + "offset": 0, + "slot": "0", + "type": "t_uint256" + }, + { + "astId": 12003, + "contract": "contracts/staking/GaugeControllerUpgradeable.sol:GaugeControllerUpgradeable", + "label": "power", + "offset": 0, + "slot": "1", + "type": "t_uint256" + }, + { + "astId": 12005, + "contract": "contracts/staking/GaugeControllerUpgradeable.sol:GaugeControllerUpgradeable", + "label": "end", + "offset": 0, + "slot": "2", + "type": "t_uint256" + } + ], + "numberOfBytes": "96" + }, + "t_uint256": { + "encoding": "inplace", + "label": "uint256", + "numberOfBytes": "32" + } + } + } +} \ No newline at end of file diff --git a/deployments/p12TestNet/GaugeControllerUpgradeable_Proxy.json b/deployments/p12TestNet/GaugeControllerUpgradeable_Proxy.json new file mode 100644 index 0000000..69c333a --- /dev/null +++ b/deployments/p12TestNet/GaugeControllerUpgradeable_Proxy.json @@ -0,0 +1,125 @@ +{ + "address": "0x92Ef99Db92b04C34D55b1C1537166dbeF130068e", + "abi": [ + { + "inputs": [ + { + "internalType": "address", + "name": "_logic", + "type": "address" + }, + { + "internalType": "bytes", + "name": "_data", + "type": "bytes" + } + ], + "stateMutability": "payable", + "type": "constructor" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "previousAdmin", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "newAdmin", + "type": "address" + } + ], + "name": "AdminChanged", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "beacon", + "type": "address" + } + ], + "name": "BeaconUpgraded", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "implementation", + "type": "address" + } + ], + "name": "Upgraded", + "type": "event" + }, + { + "stateMutability": "payable", + "type": "fallback" + }, + { + "stateMutability": "payable", + "type": "receive" + } + ], + "transactionHash": "0xc5bd6b952e1c6388b5a14fe62a64631f3f6b37d8874d894363d81c69f9e44588", + "receipt": { + "to": null, + "from": "0xfeD03676c595DD1F1c6716a446cD44B4C90AD290", + "contractAddress": "0x92Ef99Db92b04C34D55b1C1537166dbeF130068e", + "transactionIndex": 0, + "gasUsed": "339618", + "logsBloom": "0x00000000000000000000000000000000400000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010080002000001000000000000000000000000000000000000020000000000000000000800000002000000000000000000000000400100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000020000000000000000000000000000000000000000000000020000020000000000100000000000000000020000000000000000000000000000010000000", + "blockHash": "0xe6a8cc8f5596a5d3778252cd4b23e63ff83bb698dc1f30b14a8f0de8416bbf6e", + "transactionHash": "0xc5bd6b952e1c6388b5a14fe62a64631f3f6b37d8874d894363d81c69f9e44588", + "logs": [ + { + "transactionIndex": 0, + "blockNumber": 1206197, + "transactionHash": "0xc5bd6b952e1c6388b5a14fe62a64631f3f6b37d8874d894363d81c69f9e44588", + "address": "0x92Ef99Db92b04C34D55b1C1537166dbeF130068e", + "topics": [ + "0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b", + "0x000000000000000000000000dd6708f8e9409b26da06924d9b9c35f42c32d93e" + ], + "data": "0x", + "logIndex": 0, + "blockHash": "0xe6a8cc8f5596a5d3778252cd4b23e63ff83bb698dc1f30b14a8f0de8416bbf6e" + }, + { + "transactionIndex": 0, + "blockNumber": 1206197, + "transactionHash": "0xc5bd6b952e1c6388b5a14fe62a64631f3f6b37d8874d894363d81c69f9e44588", + "address": "0x92Ef99Db92b04C34D55b1C1537166dbeF130068e", + "topics": [ + "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", + "0x0000000000000000000000000000000000000000000000000000000000000000", + "0x000000000000000000000000fed03676c595dd1f1c6716a446cd44b4c90ad290" + ], + "data": "0x", + "logIndex": 1, + "blockHash": "0xe6a8cc8f5596a5d3778252cd4b23e63ff83bb698dc1f30b14a8f0de8416bbf6e" + } + ], + "blockNumber": 1206197, + "cumulativeGasUsed": "339618", + "status": 1, + "byzantium": true + }, + "args": [ + "0xDD6708F8e9409b26da06924d9b9c35F42C32D93e", + "0x485cc955000000000000000000000000a7f7dee4e7a86b96db09dacbbbb13da911462b200000000000000000000000002695ef03c7ea6a1f55463ee4b47e4e3dbcbcd6d1" + ], + "numDeployments": 1, + "bytecode": "0x6080604052604051610772380380610772833981016040819052610022916102f7565b61004d60017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd61040f565b60008051602061072b8339815191521461007757634e487b7160e01b600052600160045260246000fd5b6100838282600061008a565b5050610474565b610093836100f4565b6040516001600160a01b038416907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a26000825111806100d45750805b156100ef576100ed83836101b460201b6100291760201c565b505b505050565b610107816101e060201b6100551760201c565b61016e5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084015b60405180910390fd5b8061019360008051602061072b83398151915260001b6101e660201b61005b1760201c565b80546001600160a01b0319166001600160a01b039290921691909117905550565b60606101d9838360405180606001604052806027815260200161074b602791396101e9565b9392505050565b3b151590565b90565b6060833b6102485760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b6064820152608401610165565b600080856001600160a01b03168560405161026391906103c0565b600060405180830381855af49150503d806000811461029e576040519150601f19603f3d011682016040523d82523d6000602084013e6102a3565b606091505b5090925090506102b48282866102be565b9695505050505050565b606083156102cd5750816101d9565b8251156102dd5782518084602001fd5b8160405162461bcd60e51b815260040161016591906103dc565b60008060408385031215610309578182fd5b82516001600160a01b038116811461031f578283fd5b60208401519092506001600160401b038082111561033b578283fd5b818501915085601f83011261034e578283fd5b8151818111156103605761036061045e565b604051601f8201601f19908116603f011681019083821181831017156103885761038861045e565b816040528281528860208487010111156103a0578586fd5b6103b1836020830160208801610432565b80955050505050509250929050565b600082516103d2818460208701610432565b9190910192915050565b60006020825282518060208401526103fb816040850160208701610432565b601f01601f19169190910160400192915050565b60008282101561042d57634e487b7160e01b81526011600452602481fd5b500390565b60005b8381101561044d578181015183820152602001610435565b838111156100ed5750506000910152565b634e487b7160e01b600052604160045260246000fd5b6102a8806104836000396000f3fe60806040523661001357610011610017565b005b6100115b61002761002261005e565b610096565b565b606061004e838360405180606001604052806027815260200161024c602791396100ba565b9392505050565b3b151590565b90565b60006100917f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b3660008037600080366000845af43d6000803e8080156100b5573d6000f35b3d6000fd5b6060833b61011e5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084015b60405180910390fd5b600080856001600160a01b03168560405161013991906101cc565b600060405180830381855af49150503d8060008114610174576040519150601f19603f3d011682016040523d82523d6000602084013e610179565b606091505b5091509150610189828286610193565b9695505050505050565b606083156101a257508161004e565b8251156101b25782518084602001fd5b8160405162461bcd60e51b815260040161011591906101e8565b600082516101de81846020870161021b565b9190910192915050565b600060208252825180602084015261020781604085016020870161021b565b601f01601f19169190910160400192915050565b60005b8381101561023657818101518382015260200161021e565b83811115610245576000848401525b5050505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212209b8470f06e8a3960c912103fc2be177edaad69584ee3c7d2809ee737e79408e764736f6c63430008020033360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564", + "deployedBytecode": "0x60806040523661001357610011610017565b005b6100115b61002761002261005e565b610096565b565b606061004e838360405180606001604052806027815260200161024c602791396100ba565b9392505050565b3b151590565b90565b60006100917f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b3660008037600080366000845af43d6000803e8080156100b5573d6000f35b3d6000fd5b6060833b61011e5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084015b60405180910390fd5b600080856001600160a01b03168560405161013991906101cc565b600060405180830381855af49150503d8060008114610174576040519150601f19603f3d011682016040523d82523d6000602084013e610179565b606091505b5091509150610189828286610193565b9695505050505050565b606083156101a257508161004e565b8251156101b25782518084602001fd5b8160405162461bcd60e51b815260040161011591906101e8565b600082516101de81846020870161021b565b9190910192915050565b600060208252825180602084015261020781604085016020870161021b565b601f01601f19169190910160400192915050565b60005b8381101561023657818101518382015260200161021e565b83811115610245576000848401525b5050505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212209b8470f06e8a3960c912103fc2be177edaad69584ee3c7d2809ee737e79408e764736f6c63430008020033" +} \ No newline at end of file diff --git a/deployments/p12TestNet/P12AssetFactoryUpgradable.json b/deployments/p12TestNet/P12AssetFactoryUpgradable.json new file mode 100644 index 0000000..c95ac26 --- /dev/null +++ b/deployments/p12TestNet/P12AssetFactoryUpgradable.json @@ -0,0 +1,509 @@ +{ + "address": "0x6CB86eBd560ca078BAAfBfecc21C2E7e0aa9010D", + "abi": [ + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "previousAdmin", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "newAdmin", + "type": "address" + } + ], + "name": "AdminChanged", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "beacon", + "type": "address" + } + ], + "name": "BeaconUpgraded", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "implementation", + "type": "address" + } + ], + "name": "Upgraded", + "type": "event" + }, + { + "stateMutability": "payable", + "type": "fallback" + }, + { + "stateMutability": "payable", + "type": "receive" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "collection", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "developer", + "type": "address" + } + ], + "name": "CollectionCreated", + "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": [ + { + "indexed": false, + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "Paused", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "oldP12Factory", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "newP12Factory", + "type": "address" + } + ], + "name": "SetP12Factory", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "collection", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "SftCreated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "Unpaused", + "type": "event" + }, + { + "inputs": [], + "name": "claimOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "collection", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "internalType": "string", + "name": "uri", + "type": "string" + } + ], + "name": "createAssetAndMint", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "string", + "name": "gameId", + "type": "string" + }, + { + "internalType": "string", + "name": "contractURI", + "type": "string" + } + ], + "name": "createCollection", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "p12CoinFactory_", + "type": "address" + } + ], + "name": "initialize", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "owner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "p12CoinFactory", + "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": "pendingOwner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "proxiableUUID", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "name": "registry", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "renounceOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newP12CoinFactory", + "type": "address" + } + ], + "name": "setP12CoinFactory", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newOwner", + "type": "address" + }, + { + "internalType": "bool", + "name": "direct", + "type": "bool" + } + ], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "unpause", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "collection", + "type": "address" + }, + { + "internalType": "string", + "name": "newUri", + "type": "string" + } + ], + "name": "updateCollectionUri", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "collection", + "type": "address" + }, + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "internalType": "string", + "name": "newUri", + "type": "string" + } + ], + "name": "updateSftUri", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newImplementation", + "type": "address" + } + ], + "name": "upgradeTo", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newImplementation", + "type": "address" + }, + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "upgradeToAndCall", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_logic", + "type": "address" + }, + { + "internalType": "bytes", + "name": "_data", + "type": "bytes" + } + ], + "stateMutability": "payable", + "type": "constructor" + } + ], + "transactionHash": "0x25c75ce728bf73139c6d9a3589b837d687c8bc76db453d42b71f43ebcd495da5", + "receipt": { + "to": null, + "from": "0xfeD03676c595DD1F1c6716a446cD44B4C90AD290", + "contractAddress": "0x6CB86eBd560ca078BAAfBfecc21C2E7e0aa9010D", + "transactionIndex": 0, + "gasUsed": "338874", + "logsBloom": "0x00000000000000000000000000000000400000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000002000001000000000000000000400000000000000000024000000000000000000800000002000000000000000000000000400000000000000000000000000000000005000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000100000000000000020000000000100000000000000000000000000000000000000000000000010000000", + "blockHash": "0xe36f7833e5a14ab5c0b6a9cdf5e59d75b9f31034fda9965191053c7f6688d6a4", + "transactionHash": "0x25c75ce728bf73139c6d9a3589b837d687c8bc76db453d42b71f43ebcd495da5", + "logs": [ + { + "transactionIndex": 0, + "blockNumber": 1206190, + "transactionHash": "0x25c75ce728bf73139c6d9a3589b837d687c8bc76db453d42b71f43ebcd495da5", + "address": "0x6CB86eBd560ca078BAAfBfecc21C2E7e0aa9010D", + "topics": [ + "0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b", + "0x00000000000000000000000098ed648ce19501ed0bd2b9293f82344412d2fde6" + ], + "data": "0x", + "logIndex": 0, + "blockHash": "0xe36f7833e5a14ab5c0b6a9cdf5e59d75b9f31034fda9965191053c7f6688d6a4" + }, + { + "transactionIndex": 0, + "blockNumber": 1206190, + "transactionHash": "0x25c75ce728bf73139c6d9a3589b837d687c8bc76db453d42b71f43ebcd495da5", + "address": "0x6CB86eBd560ca078BAAfBfecc21C2E7e0aa9010D", + "topics": [ + "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", + "0x0000000000000000000000000000000000000000000000000000000000000000", + "0x000000000000000000000000fed03676c595dd1f1c6716a446cd44b4c90ad290" + ], + "data": "0x", + "logIndex": 1, + "blockHash": "0xe36f7833e5a14ab5c0b6a9cdf5e59d75b9f31034fda9965191053c7f6688d6a4" + } + ], + "blockNumber": 1206190, + "cumulativeGasUsed": "338874", + "status": 1, + "byzantium": true + }, + "args": [ + "0x98Ed648CE19501eD0bd2B9293f82344412d2FdE6", + "0xc4d66de80000000000000000000000002695ef03c7ea6a1f55463ee4b47e4e3dbcbcd6d1" + ], + "numDeployments": 1, + "bytecode": "0x6080604052604051610772380380610772833981016040819052610022916102f7565b61004d60017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd61040f565b60008051602061072b8339815191521461007757634e487b7160e01b600052600160045260246000fd5b6100838282600061008a565b5050610474565b610093836100f4565b6040516001600160a01b038416907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a26000825111806100d45750805b156100ef576100ed83836101b460201b6100291760201c565b505b505050565b610107816101e060201b6100551760201c565b61016e5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084015b60405180910390fd5b8061019360008051602061072b83398151915260001b6101e660201b61005b1760201c565b80546001600160a01b0319166001600160a01b039290921691909117905550565b60606101d9838360405180606001604052806027815260200161074b602791396101e9565b9392505050565b3b151590565b90565b6060833b6102485760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b6064820152608401610165565b600080856001600160a01b03168560405161026391906103c0565b600060405180830381855af49150503d806000811461029e576040519150601f19603f3d011682016040523d82523d6000602084013e6102a3565b606091505b5090925090506102b48282866102be565b9695505050505050565b606083156102cd5750816101d9565b8251156102dd5782518084602001fd5b8160405162461bcd60e51b815260040161016591906103dc565b60008060408385031215610309578182fd5b82516001600160a01b038116811461031f578283fd5b60208401519092506001600160401b038082111561033b578283fd5b818501915085601f83011261034e578283fd5b8151818111156103605761036061045e565b604051601f8201601f19908116603f011681019083821181831017156103885761038861045e565b816040528281528860208487010111156103a0578586fd5b6103b1836020830160208801610432565b80955050505050509250929050565b600082516103d2818460208701610432565b9190910192915050565b60006020825282518060208401526103fb816040850160208701610432565b601f01601f19169190910160400192915050565b60008282101561042d57634e487b7160e01b81526011600452602481fd5b500390565b60005b8381101561044d578181015183820152602001610435565b838111156100ed5750506000910152565b634e487b7160e01b600052604160045260246000fd5b6102a8806104836000396000f3fe60806040523661001357610011610017565b005b6100115b61002761002261005e565b610096565b565b606061004e838360405180606001604052806027815260200161024c602791396100ba565b9392505050565b3b151590565b90565b60006100917f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b3660008037600080366000845af43d6000803e8080156100b5573d6000f35b3d6000fd5b6060833b61011e5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084015b60405180910390fd5b600080856001600160a01b03168560405161013991906101cc565b600060405180830381855af49150503d8060008114610174576040519150601f19603f3d011682016040523d82523d6000602084013e610179565b606091505b5091509150610189828286610193565b9695505050505050565b606083156101a257508161004e565b8251156101b25782518084602001fd5b8160405162461bcd60e51b815260040161011591906101e8565b600082516101de81846020870161021b565b9190910192915050565b600060208252825180602084015261020781604085016020870161021b565b601f01601f19169190910160400192915050565b60005b8381101561023657818101518382015260200161021e565b83811115610245576000848401525b5050505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212209b8470f06e8a3960c912103fc2be177edaad69584ee3c7d2809ee737e79408e764736f6c63430008020033360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564", + "deployedBytecode": "0x60806040523661001357610011610017565b005b6100115b61002761002261005e565b610096565b565b606061004e838360405180606001604052806027815260200161024c602791396100ba565b9392505050565b3b151590565b90565b60006100917f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b3660008037600080366000845af43d6000803e8080156100b5573d6000f35b3d6000fd5b6060833b61011e5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084015b60405180910390fd5b600080856001600160a01b03168560405161013991906101cc565b600060405180830381855af49150503d8060008114610174576040519150601f19603f3d011682016040523d82523d6000602084013e610179565b606091505b5091509150610189828286610193565b9695505050505050565b606083156101a257508161004e565b8251156101b25782518084602001fd5b8160405162461bcd60e51b815260040161011591906101e8565b600082516101de81846020870161021b565b9190910192915050565b600060208252825180602084015261020781604085016020870161021b565b601f01601f19169190910160400192915050565b60005b8381101561023657818101518382015260200161021e565b83811115610245576000848401525b5050505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212209b8470f06e8a3960c912103fc2be177edaad69584ee3c7d2809ee737e79408e764736f6c63430008020033", + "execute": { + "methodName": "initialize", + "args": [ + "0x2695eF03c7ea6A1F55463ee4b47E4E3DBCBcd6d1" + ] + }, + "implementation": "0x98Ed648CE19501eD0bd2B9293f82344412d2FdE6" +} \ No newline at end of file diff --git a/deployments/p12TestNet/P12AssetFactoryUpgradable_Implementation.json b/deployments/p12TestNet/P12AssetFactoryUpgradable_Implementation.json new file mode 100644 index 0000000..f6e23eb --- /dev/null +++ b/deployments/p12TestNet/P12AssetFactoryUpgradable_Implementation.json @@ -0,0 +1,700 @@ +{ + "address": "0x98Ed648CE19501eD0bd2B9293f82344412d2FdE6", + "abi": [ + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "previousAdmin", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "newAdmin", + "type": "address" + } + ], + "name": "AdminChanged", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "beacon", + "type": "address" + } + ], + "name": "BeaconUpgraded", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "collection", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "developer", + "type": "address" + } + ], + "name": "CollectionCreated", + "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": [ + { + "indexed": false, + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "Paused", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "oldP12Factory", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "newP12Factory", + "type": "address" + } + ], + "name": "SetP12Factory", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "collection", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "SftCreated", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "Unpaused", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "implementation", + "type": "address" + } + ], + "name": "Upgraded", + "type": "event" + }, + { + "inputs": [], + "name": "claimOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "collection", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "internalType": "string", + "name": "uri", + "type": "string" + } + ], + "name": "createAssetAndMint", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "string", + "name": "gameId", + "type": "string" + }, + { + "internalType": "string", + "name": "contractURI", + "type": "string" + } + ], + "name": "createCollection", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "p12CoinFactory_", + "type": "address" + } + ], + "name": "initialize", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "owner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "p12CoinFactory", + "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": "pendingOwner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "proxiableUUID", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "name": "registry", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "renounceOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newP12CoinFactory", + "type": "address" + } + ], + "name": "setP12CoinFactory", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newOwner", + "type": "address" + }, + { + "internalType": "bool", + "name": "direct", + "type": "bool" + } + ], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "unpause", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "collection", + "type": "address" + }, + { + "internalType": "string", + "name": "newUri", + "type": "string" + } + ], + "name": "updateCollectionUri", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "collection", + "type": "address" + }, + { + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" + }, + { + "internalType": "string", + "name": "newUri", + "type": "string" + } + ], + "name": "updateSftUri", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newImplementation", + "type": "address" + } + ], + "name": "upgradeTo", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newImplementation", + "type": "address" + }, + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "upgradeToAndCall", + "outputs": [], + "stateMutability": "payable", + "type": "function" + } + ], + "transactionHash": "0x424f52ba048906e9c433d87e8793b1004943d587c5bb5edb2d6684fd2cf7a87c", + "receipt": { + "to": null, + "from": "0xfeD03676c595DD1F1c6716a446cD44B4C90AD290", + "contractAddress": "0x98Ed648CE19501eD0bd2B9293f82344412d2FdE6", + "transactionIndex": 0, + "gasUsed": "3810339", + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "blockHash": "0x69a9ef65a7723bcec72e8c6bf77cb0dd657ab4333927a73c8997a62e7cfe3771", + "transactionHash": "0x424f52ba048906e9c433d87e8793b1004943d587c5bb5edb2d6684fd2cf7a87c", + "logs": [], + "blockNumber": 1206189, + "cumulativeGasUsed": "3810339", + "status": 1, + "byzantium": true + }, + "args": [], + "numDeployments": 1, + "solcInputHash": "1f7f80fb95b6efcc6f464d7df403eaaa", + "metadata": "{\"compiler\":{\"version\":\"0.8.15+commit.e14f2714\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"previousAdmin\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newAdmin\",\"type\":\"address\"}],\"name\":\"AdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"beacon\",\"type\":\"address\"}],\"name\":\"BeaconUpgraded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"collection\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"developer\",\"type\":\"address\"}],\"name\":\"CollectionCreated\",\"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\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Paused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"oldP12Factory\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newP12Factory\",\"type\":\"address\"}],\"name\":\"SetP12Factory\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"collection\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"SftCreated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Unpaused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"Upgraded\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"claimOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"collection\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"uri\",\"type\":\"string\"}],\"name\":\"createAssetAndMint\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"gameId\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"contractURI\",\"type\":\"string\"}],\"name\":\"createCollection\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"p12CoinFactory_\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"p12CoinFactory\",\"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\":\"pendingOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"proxiableUUID\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"registry\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newP12CoinFactory\",\"type\":\"address\"}],\"name\":\"setP12CoinFactory\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"direct\",\"type\":\"bool\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"unpause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"collection\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"newUri\",\"type\":\"string\"}],\"name\":\"updateCollectionUri\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"collection\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"newUri\",\"type\":\"string\"}],\"name\":\"updateSftUri\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"}],\"name\":\"upgradeTo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"upgradeToAndCall\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"claimOwnership()\":{\"details\":\"pending owner call this function to claim ownership\"},\"createAssetAndMint(address,uint256,string)\":{\"details\":\"create asset and mint to msg.sender address\",\"params\":{\"amount\":\"amount of asset\",\"collection\":\"which collection want to create\",\"uri\":\"new asset's metadata uri\"}},\"createCollection(string,string)\":{\"details\":\"create Collection\",\"params\":{\"contractURI\":\"contract-level metadata uri\",\"gameId\":\"a off-chain game id\"}},\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"paused()\":{\"details\":\"Returns true if the contract is paused, and false otherwise.\"},\"pendingOwner()\":{\"details\":\"Return the address of the pending owner\"},\"proxiableUUID()\":{\"details\":\"Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the implementation. It is used to validate that the this implementation remains valid after an upgrade. IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\"},\"renounceOwnership()\":{\"details\":\"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.\"},\"setP12CoinFactory(address)\":{\"params\":{\"newP12CoinFactory\":\"address of p12CoinFactory\"}},\"transferOwnership(address,bool)\":{\"details\":\"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner. Note If direct is false, it will set an pending owner and the OwnerShipTransferring only happens when the pending owner claim the ownership\"},\"updateCollectionUri(address,string)\":{\"details\":\"update Collection Uri\",\"params\":{\"collection\":\"collection address\",\"newUri\":\"new Contract-level metadata uri\"}},\"updateSftUri(address,uint256,string)\":{\"details\":\"update Sft Uri\",\"params\":{\"collection\":\"collection address\",\"newUri\":\"new metadata uri\",\"tokenId\":\"token id\"}},\"upgradeTo(address)\":{\"details\":\"Upgrade the implementation of the proxy to `newImplementation`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.\"},\"upgradeToAndCall(address,bytes)\":{\"details\":\"Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call encoded in `data`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"p12CoinFactory()\":{\"notice\":\"p12CoinFactory address, for reading game and developer relationship\"},\"setP12CoinFactory(address)\":{\"notice\":\"set new p12CoinFactory\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/assetFactory/P12AssetFactoryUpgradable.sol\":\"P12AssetFactoryUpgradable\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts-upgradeable/interfaces/draft-IERC1822Upgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (interfaces/draft-IERC1822.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\\n * proxy whose upgrades are fully controlled by the current implementation.\\n */\\ninterface IERC1822ProxiableUpgradeable {\\n /**\\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\\n * address.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy.\\n */\\n function proxiableUUID() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x77c89f893e403efc6929ba842b7ccf6534d4ffe03afe31670b4a528c0ad78c0f\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/ERC1967/ERC1967UpgradeUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (proxy/ERC1967/ERC1967Upgrade.sol)\\n\\npragma solidity ^0.8.2;\\n\\nimport \\\"../beacon/IBeaconUpgradeable.sol\\\";\\nimport \\\"../../interfaces/draft-IERC1822Upgradeable.sol\\\";\\nimport \\\"../../utils/AddressUpgradeable.sol\\\";\\nimport \\\"../../utils/StorageSlotUpgradeable.sol\\\";\\nimport \\\"../utils/Initializable.sol\\\";\\n\\n/**\\n * @dev This abstract contract provides getters and event emitting update functions for\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.\\n *\\n * _Available since v4.1._\\n *\\n * @custom:oz-upgrades-unsafe-allow delegatecall\\n */\\nabstract contract ERC1967UpgradeUpgradeable is Initializable {\\n function __ERC1967Upgrade_init() internal onlyInitializing {\\n }\\n\\n function __ERC1967Upgrade_init_unchained() internal onlyInitializing {\\n }\\n // This is the keccak-256 hash of \\\"eip1967.proxy.rollback\\\" subtracted by 1\\n bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143;\\n\\n /**\\n * @dev Storage slot with the address of the current implementation.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.implementation\\\" subtracted by 1, and is\\n * validated in the constructor.\\n */\\n bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n\\n /**\\n * @dev Emitted when the implementation is upgraded.\\n */\\n event Upgraded(address indexed implementation);\\n\\n /**\\n * @dev Returns the current implementation address.\\n */\\n function _getImplementation() internal view returns (address) {\\n return StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 implementation slot.\\n */\\n function _setImplementation(address newImplementation) private {\\n require(AddressUpgradeable.isContract(newImplementation), \\\"ERC1967: new implementation is not a contract\\\");\\n StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n }\\n\\n /**\\n * @dev Perform implementation upgrade\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeTo(address newImplementation) internal {\\n _setImplementation(newImplementation);\\n emit Upgraded(newImplementation);\\n }\\n\\n /**\\n * @dev Perform implementation upgrade with additional setup call.\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeToAndCall(\\n address newImplementation,\\n bytes memory data,\\n bool forceCall\\n ) internal {\\n _upgradeTo(newImplementation);\\n if (data.length > 0 || forceCall) {\\n _functionDelegateCall(newImplementation, data);\\n }\\n }\\n\\n /**\\n * @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call.\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeToAndCallUUPS(\\n address newImplementation,\\n bytes memory data,\\n bool forceCall\\n ) internal {\\n // Upgrades from old implementations will perform a rollback test. This test requires the new\\n // implementation to upgrade back to the old, non-ERC1822 compliant, implementation. Removing\\n // this special case will break upgrade paths from old UUPS implementation to new ones.\\n if (StorageSlotUpgradeable.getBooleanSlot(_ROLLBACK_SLOT).value) {\\n _setImplementation(newImplementation);\\n } else {\\n try IERC1822ProxiableUpgradeable(newImplementation).proxiableUUID() returns (bytes32 slot) {\\n require(slot == _IMPLEMENTATION_SLOT, \\\"ERC1967Upgrade: unsupported proxiableUUID\\\");\\n } catch {\\n revert(\\\"ERC1967Upgrade: new implementation is not UUPS\\\");\\n }\\n _upgradeToAndCall(newImplementation, data, forceCall);\\n }\\n }\\n\\n /**\\n * @dev Storage slot with the admin of the contract.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.admin\\\" subtracted by 1, and is\\n * validated in the constructor.\\n */\\n bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\\n\\n /**\\n * @dev Emitted when the admin account has changed.\\n */\\n event AdminChanged(address previousAdmin, address newAdmin);\\n\\n /**\\n * @dev Returns the current admin.\\n */\\n function _getAdmin() internal view returns (address) {\\n return StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 admin slot.\\n */\\n function _setAdmin(address newAdmin) private {\\n require(newAdmin != address(0), \\\"ERC1967: new admin is the zero address\\\");\\n StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value = newAdmin;\\n }\\n\\n /**\\n * @dev Changes the admin of the proxy.\\n *\\n * Emits an {AdminChanged} event.\\n */\\n function _changeAdmin(address newAdmin) internal {\\n emit AdminChanged(_getAdmin(), newAdmin);\\n _setAdmin(newAdmin);\\n }\\n\\n /**\\n * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.\\n * This is bytes32(uint256(keccak256('eip1967.proxy.beacon')) - 1)) and is validated in the constructor.\\n */\\n bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\\n\\n /**\\n * @dev Emitted when the beacon is upgraded.\\n */\\n event BeaconUpgraded(address indexed beacon);\\n\\n /**\\n * @dev Returns the current beacon.\\n */\\n function _getBeacon() internal view returns (address) {\\n return StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new beacon in the EIP1967 beacon slot.\\n */\\n function _setBeacon(address newBeacon) private {\\n require(AddressUpgradeable.isContract(newBeacon), \\\"ERC1967: new beacon is not a contract\\\");\\n require(\\n AddressUpgradeable.isContract(IBeaconUpgradeable(newBeacon).implementation()),\\n \\\"ERC1967: beacon implementation is not a contract\\\"\\n );\\n StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value = newBeacon;\\n }\\n\\n /**\\n * @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does\\n * not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that).\\n *\\n * Emits a {BeaconUpgraded} event.\\n */\\n function _upgradeBeaconToAndCall(\\n address newBeacon,\\n bytes memory data,\\n bool forceCall\\n ) internal {\\n _setBeacon(newBeacon);\\n emit BeaconUpgraded(newBeacon);\\n if (data.length > 0 || forceCall) {\\n _functionDelegateCall(IBeaconUpgradeable(newBeacon).implementation(), data);\\n }\\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) private returns (bytes memory) {\\n require(AddressUpgradeable.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 AddressUpgradeable.verifyCallResult(success, returndata, \\\"Address: low-level delegate call failed\\\");\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0x315887e846f1e5f8d8fa535a229d318bb9290aaa69485117f1ee8a9a6b3be823\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/beacon/IBeaconUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev This is the interface that {BeaconProxy} expects of its beacon.\\n */\\ninterface IBeaconUpgradeable {\\n /**\\n * @dev Must return an address that can be used as a delegate call target.\\n *\\n * {BeaconProxy} will check that this address is a contract.\\n */\\n function implementation() external view returns (address);\\n}\\n\",\"keccak256\":\"0x24b86ac8c005b8c654fbf6ac34a5a4f61580d7273541e83e013e89d66fbf0908\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (proxy/utils/Initializable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/AddressUpgradeable.sol\\\";\\n\\n/**\\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\\n *\\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\\n *\\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\\n *\\n * [CAUTION]\\n * ====\\n * Avoid leaving a contract uninitialized.\\n *\\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\\n * contract, which may impact the proxy. To initialize the implementation contract, you can either invoke the\\n * initializer manually, or you can include a constructor to automatically mark it as initialized when it is deployed:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```\\n * /// @custom:oz-upgrades-unsafe-allow constructor\\n * constructor() initializer {}\\n * ```\\n * ====\\n */\\nabstract contract Initializable {\\n /**\\n * @dev Indicates that the contract has been initialized.\\n */\\n bool private _initialized;\\n\\n /**\\n * @dev Indicates that the contract is in the process of being initialized.\\n */\\n bool private _initializing;\\n\\n /**\\n * @dev Modifier to protect an initializer function from being invoked twice.\\n */\\n modifier initializer() {\\n // If the contract is initializing we ignore whether _initialized is set in order to support multiple\\n // inheritance patterns, but we only do this in the context of a constructor, because in other contexts the\\n // contract may have been reentered.\\n require(_initializing ? _isConstructor() : !_initialized, \\\"Initializable: contract is already initialized\\\");\\n\\n bool isTopLevelCall = !_initializing;\\n if (isTopLevelCall) {\\n _initializing = true;\\n _initialized = true;\\n }\\n\\n _;\\n\\n if (isTopLevelCall) {\\n _initializing = false;\\n }\\n }\\n\\n /**\\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\\n * {initializer} modifier, directly or indirectly.\\n */\\n modifier onlyInitializing() {\\n require(_initializing, \\\"Initializable: contract is not initializing\\\");\\n _;\\n }\\n\\n function _isConstructor() private view returns (bool) {\\n return !AddressUpgradeable.isContract(address(this));\\n }\\n}\\n\",\"keccak256\":\"0x372b0bc04e3b4c074559bbbfb1317afddb56de5504158ca25a7f9cd403980445\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (proxy/utils/UUPSUpgradeable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../interfaces/draft-IERC1822Upgradeable.sol\\\";\\nimport \\\"../ERC1967/ERC1967UpgradeUpgradeable.sol\\\";\\nimport \\\"./Initializable.sol\\\";\\n\\n/**\\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\\n *\\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\\n * `UUPSUpgradeable` with a custom implementation of upgrades.\\n *\\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\\n *\\n * _Available since v4.1._\\n */\\nabstract contract UUPSUpgradeable is Initializable, IERC1822ProxiableUpgradeable, ERC1967UpgradeUpgradeable {\\n function __UUPSUpgradeable_init() internal onlyInitializing {\\n }\\n\\n function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\\n }\\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment\\n address private immutable __self = address(this);\\n\\n /**\\n * @dev Check that the execution is being performed through a delegatecall call and that the execution context is\\n * a proxy contract with an implementation (as defined in ERC1967) pointing to self. This should only be the case\\n * for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a\\n * function through ERC1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\\n * fail.\\n */\\n modifier onlyProxy() {\\n require(address(this) != __self, \\\"Function must be called through delegatecall\\\");\\n require(_getImplementation() == __self, \\\"Function must be called through active proxy\\\");\\n _;\\n }\\n\\n /**\\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\\n * callable on the implementing contract but not through proxies.\\n */\\n modifier notDelegated() {\\n require(address(this) == __self, \\\"UUPSUpgradeable: must not be called through delegatecall\\\");\\n _;\\n }\\n\\n /**\\n * @dev Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the\\n * implementation. It is used to validate that the this implementation remains valid after an upgrade.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\\n */\\n function proxiableUUID() external view virtual override notDelegated returns (bytes32) {\\n return _IMPLEMENTATION_SLOT;\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy to `newImplementation`.\\n *\\n * Calls {_authorizeUpgrade}.\\n *\\n * Emits an {Upgraded} event.\\n */\\n function upgradeTo(address newImplementation) external virtual onlyProxy {\\n _authorizeUpgrade(newImplementation);\\n _upgradeToAndCallUUPS(newImplementation, new bytes(0), false);\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call\\n * encoded in `data`.\\n *\\n * Calls {_authorizeUpgrade}.\\n *\\n * Emits an {Upgraded} event.\\n */\\n function upgradeToAndCall(address newImplementation, bytes memory data) external payable virtual onlyProxy {\\n _authorizeUpgrade(newImplementation);\\n _upgradeToAndCallUUPS(newImplementation, data, true);\\n }\\n\\n /**\\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\\n * {upgradeTo} and {upgradeToAndCall}.\\n *\\n * Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}.\\n *\\n * ```solidity\\n * function _authorizeUpgrade(address) internal override onlyOwner {}\\n * ```\\n */\\n function _authorizeUpgrade(address newImplementation) internal virtual;\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0x6e36e9b4b71de699c2f3f0d4e4d1aa0b35da99a26e8d5b91ef09ba234b4ef270\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../utils/ContextUpgradeable.sol\\\";\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module which allows children to implement an emergency stop\\n * mechanism that can be triggered by an authorized account.\\n *\\n * This module is used through inheritance. It will make available the\\n * modifiers `whenNotPaused` and `whenPaused`, which can be applied to\\n * the functions of your contract. Note that they will not be pausable by\\n * simply including this module, only once the modifiers are put in place.\\n */\\nabstract contract PausableUpgradeable is Initializable, ContextUpgradeable {\\n /**\\n * @dev Emitted when the pause is triggered by `account`.\\n */\\n event Paused(address account);\\n\\n /**\\n * @dev Emitted when the pause is lifted by `account`.\\n */\\n event Unpaused(address account);\\n\\n bool private _paused;\\n\\n /**\\n * @dev Initializes the contract in unpaused state.\\n */\\n function __Pausable_init() internal onlyInitializing {\\n __Pausable_init_unchained();\\n }\\n\\n function __Pausable_init_unchained() internal onlyInitializing {\\n _paused = false;\\n }\\n\\n /**\\n * @dev Returns true if the contract is paused, and false otherwise.\\n */\\n function paused() public view virtual returns (bool) {\\n return _paused;\\n }\\n\\n /**\\n * @dev Modifier to make a function callable only when the contract is not paused.\\n *\\n * Requirements:\\n *\\n * - The contract must not be paused.\\n */\\n modifier whenNotPaused() {\\n require(!paused(), \\\"Pausable: paused\\\");\\n _;\\n }\\n\\n /**\\n * @dev Modifier to make a function callable only when the contract is paused.\\n *\\n * Requirements:\\n *\\n * - The contract must be paused.\\n */\\n modifier whenPaused() {\\n require(paused(), \\\"Pausable: not paused\\\");\\n _;\\n }\\n\\n /**\\n * @dev Triggers stopped state.\\n *\\n * Requirements:\\n *\\n * - The contract must not be paused.\\n */\\n function _pause() internal virtual whenNotPaused {\\n _paused = true;\\n emit Paused(_msgSender());\\n }\\n\\n /**\\n * @dev Returns to normal state.\\n *\\n * Requirements:\\n *\\n * - The contract must be paused.\\n */\\n function _unpause() internal virtual whenPaused {\\n _paused = false;\\n emit Unpaused(_msgSender());\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[49] private __gap;\\n}\\n\",\"keccak256\":\"0x041af89e5e60b74e1203d5a34614c9de379726f52ecb8cf064cab78b9fdcdf9d\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)\\n\\npragma solidity ^0.8.0;\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module that helps prevent reentrant calls to a function.\\n *\\n * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier\\n * available, which can be applied to functions to make sure there are no nested\\n * (reentrant) calls to them.\\n *\\n * Note that because there is a single `nonReentrant` guard, functions marked as\\n * `nonReentrant` may not call one another. This can be worked around by making\\n * those functions `private`, and then adding `external` `nonReentrant` entry\\n * points to them.\\n *\\n * TIP: If you would like to learn more about reentrancy and alternative ways\\n * to protect against it, check out our blog post\\n * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].\\n */\\nabstract contract ReentrancyGuardUpgradeable is Initializable {\\n // Booleans are more expensive than uint256 or any type that takes up a full\\n // word because each write operation emits an extra SLOAD to first read the\\n // slot's contents, replace the bits taken up by the boolean, and then write\\n // back. This is the compiler's defense against contract upgrades and\\n // pointer aliasing, and it cannot be disabled.\\n\\n // The values being non-zero value makes deployment a bit more expensive,\\n // but in exchange the refund on every call to nonReentrant will be lower in\\n // amount. Since refunds are capped to a percentage of the total\\n // transaction's gas, it is best to keep them low in cases like this one, to\\n // increase the likelihood of the full refund coming into effect.\\n uint256 private constant _NOT_ENTERED = 1;\\n uint256 private constant _ENTERED = 2;\\n\\n uint256 private _status;\\n\\n function __ReentrancyGuard_init() internal onlyInitializing {\\n __ReentrancyGuard_init_unchained();\\n }\\n\\n function __ReentrancyGuard_init_unchained() internal onlyInitializing {\\n _status = _NOT_ENTERED;\\n }\\n\\n /**\\n * @dev Prevents a contract from calling itself, directly or indirectly.\\n * Calling a `nonReentrant` function from another `nonReentrant`\\n * function is not supported. It is possible to prevent this from happening\\n * by making the `nonReentrant` function external, and making it call a\\n * `private` function that does the actual work.\\n */\\n modifier nonReentrant() {\\n // On the first call to nonReentrant, _notEntered will be true\\n require(_status != _ENTERED, \\\"ReentrancyGuard: reentrant call\\\");\\n\\n // Any calls to nonReentrant after this point will fail\\n _status = _ENTERED;\\n\\n _;\\n\\n // By storing the original value once again, a refund is triggered (see\\n // https://eips.ethereum.org/EIPS/eip-2200)\\n _status = _NOT_ENTERED;\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[49] private __gap;\\n}\\n\",\"keccak256\":\"0x8cc03c5ac17e8a7396e487cda41fc1f1dfdb91db7d528e6da84bee3b6dd7e167\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC20 standard as defined in the EIP.\\n */\\ninterface IERC20Upgradeable {\\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 `to`.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transfer(address to, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Returns the remaining number of tokens that `spender` will be\\n * allowed to spend on behalf of `owner` through {transferFrom}. This is\\n * zero by default.\\n *\\n * This value changes when {approve} or {transferFrom} are called.\\n */\\n function allowance(address owner, address spender) external view returns (uint256);\\n\\n /**\\n * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * IMPORTANT: Beware that changing an allowance with this method brings the risk\\n * that someone may use both the old and the new allowance by unfortunate\\n * transaction ordering. One possible solution to mitigate this race\\n * condition is to first reduce the spender's allowance to 0 and set the\\n * desired value afterwards:\\n * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\\n *\\n * Emits an {Approval} event.\\n */\\n function approve(address spender, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Moves `amount` tokens from `from` to `to` 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(\\n address from,\\n address to,\\n uint256 amount\\n ) external returns (bool);\\n\\n /**\\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\\n * another (`to`).\\n *\\n * Note that `value` may be zero.\\n */\\n event Transfer(address indexed from, address indexed to, uint256 value);\\n\\n /**\\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\\n * a call to {approve}. `value` is the new allowance.\\n */\\n event Approval(address indexed owner, address indexed spender, uint256 value);\\n}\\n\",\"keccak256\":\"0x6777f3fccb5dab95a9088ef62c41bee0198fd92e50d7c94f0e3733788af4079e\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../IERC20Upgradeable.sol\\\";\\nimport \\\"../../../utils/AddressUpgradeable.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 SafeERC20Upgradeable {\\n using AddressUpgradeable for address;\\n\\n function safeTransfer(\\n IERC20Upgradeable token,\\n address to,\\n uint256 value\\n ) internal {\\n _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));\\n }\\n\\n function safeTransferFrom(\\n IERC20Upgradeable token,\\n address from,\\n address to,\\n uint256 value\\n ) internal {\\n _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));\\n }\\n\\n /**\\n * @dev Deprecated. This function has issues similar to the ones found in\\n * {IERC20-approve}, and its usage is discouraged.\\n *\\n * Whenever possible, use {safeIncreaseAllowance} and\\n * {safeDecreaseAllowance} instead.\\n */\\n function safeApprove(\\n IERC20Upgradeable token,\\n address spender,\\n uint256 value\\n ) internal {\\n // safeApprove should only be called when setting an initial allowance,\\n // or when resetting it to zero. To increase and decrease it, use\\n // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'\\n require(\\n (value == 0) || (token.allowance(address(this), spender) == 0),\\n \\\"SafeERC20: approve from non-zero to non-zero allowance\\\"\\n );\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));\\n }\\n\\n function safeIncreaseAllowance(\\n IERC20Upgradeable token,\\n address spender,\\n uint256 value\\n ) internal {\\n uint256 newAllowance = token.allowance(address(this), spender) + value;\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));\\n }\\n\\n function safeDecreaseAllowance(\\n IERC20Upgradeable token,\\n address spender,\\n uint256 value\\n ) internal {\\n unchecked {\\n uint256 oldAllowance = token.allowance(address(this), spender);\\n require(oldAllowance >= value, \\\"SafeERC20: decreased allowance below zero\\\");\\n uint256 newAllowance = oldAllowance - value;\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));\\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(IERC20Upgradeable token, bytes memory data) private {\\n // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since\\n // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that\\n // the target address contains contract code and also asserts for success in the low-level call.\\n\\n bytes memory returndata = address(token).functionCall(data, \\\"SafeERC20: low-level call failed\\\");\\n if (returndata.length > 0) {\\n // Return data is optional\\n require(abi.decode(returndata, (bool)), \\\"SafeERC20: ERC20 operation did not succeed\\\");\\n }\\n }\\n}\\n\",\"keccak256\":\"0x3e26a49d2fa5ef8338b8a9467c91e54f417cb07e849b1cc0f4ebc4d2a147938e\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary AddressUpgradeable {\\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 * [IMPORTANT]\\n * ====\\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\\n *\\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n * constructor.\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize/address.code.length, which returns 0\\n // for contracts in construction, since the code is only stored at the end\\n // of the constructor execution.\\n\\n return account.code.length > 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 (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(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) 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(\\n address target,\\n bytes memory data,\\n uint256 value\\n ) 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(\\n address target,\\n bytes memory data,\\n uint256 value,\\n string memory errorMessage\\n ) 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 (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(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n require(isContract(target), \\\"Address: static call to non-contract\\\");\\n\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResult(success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the\\n * revert reason using the provided one.\\n *\\n * _Available since v4.3._\\n */\\n function verifyCallResult(\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal 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 assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0x55cf2bd9fc76704ddcdc19834cd288b7de00fc0f298a40ea16a954ae8991db2d\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\\n\\npragma solidity ^0.8.0;\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract ContextUpgradeable is Initializable {\\n function __Context_init() internal onlyInitializing {\\n }\\n\\n function __Context_init_unchained() internal onlyInitializing {\\n }\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0x963ea7f0b48b032eef72fe3a7582edf78408d6f834115b9feadd673a4d5bd149\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/StorageSlotUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/StorageSlot.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Library for reading and writing primitive types to specific storage slots.\\n *\\n * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.\\n * This library helps with reading and writing to such slots without the need for inline assembly.\\n *\\n * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.\\n *\\n * Example usage to set ERC1967 implementation slot:\\n * ```\\n * contract ERC1967 {\\n * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n *\\n * function _getImplementation() internal view returns (address) {\\n * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n * }\\n *\\n * function _setImplementation(address newImplementation) internal {\\n * require(Address.isContract(newImplementation), \\\"ERC1967: new implementation is not a contract\\\");\\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n * }\\n * }\\n * ```\\n *\\n * _Available since v4.1 for `address`, `bool`, `bytes32`, and `uint256`._\\n */\\nlibrary StorageSlotUpgradeable {\\n struct AddressSlot {\\n address value;\\n }\\n\\n struct BooleanSlot {\\n bool value;\\n }\\n\\n struct Bytes32Slot {\\n bytes32 value;\\n }\\n\\n struct Uint256Slot {\\n uint256 value;\\n }\\n\\n /**\\n * @dev Returns an `AddressSlot` with member `value` located at `slot`.\\n */\\n function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BooleanSlot` with member `value` located at `slot`.\\n */\\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.\\n */\\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Uint256Slot` with member `value` located at `slot`.\\n */\\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\\n assembly {\\n r.slot := slot\\n }\\n }\\n}\\n\",\"keccak256\":\"0x422c3d27d0d5681cea93acbb0dcb175fa5b461b5b7731da7ff77e51f0f0174c7\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC1155/ERC1155.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (token/ERC1155/ERC1155.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IERC1155.sol\\\";\\nimport \\\"./IERC1155Receiver.sol\\\";\\nimport \\\"./extensions/IERC1155MetadataURI.sol\\\";\\nimport \\\"../../utils/Address.sol\\\";\\nimport \\\"../../utils/Context.sol\\\";\\nimport \\\"../../utils/introspection/ERC165.sol\\\";\\n\\n/**\\n * @dev Implementation of the basic standard multi-token.\\n * See https://eips.ethereum.org/EIPS/eip-1155\\n * Originally based on code by Enjin: https://github.com/enjin/erc-1155\\n *\\n * _Available since v3.1._\\n */\\ncontract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {\\n using Address for address;\\n\\n // Mapping from token ID to account balances\\n mapping(uint256 => mapping(address => uint256)) private _balances;\\n\\n // Mapping from account to operator approvals\\n mapping(address => mapping(address => bool)) private _operatorApprovals;\\n\\n // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json\\n string private _uri;\\n\\n /**\\n * @dev See {_setURI}.\\n */\\n constructor(string memory uri_) {\\n _setURI(uri_);\\n }\\n\\n /**\\n * @dev See {IERC165-supportsInterface}.\\n */\\n function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {\\n return\\n interfaceId == type(IERC1155).interfaceId ||\\n interfaceId == type(IERC1155MetadataURI).interfaceId ||\\n super.supportsInterface(interfaceId);\\n }\\n\\n /**\\n * @dev See {IERC1155MetadataURI-uri}.\\n *\\n * This implementation returns the same URI for *all* token types. It relies\\n * on the token type ID substitution mechanism\\n * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].\\n *\\n * Clients calling this function must replace the `\\\\{id\\\\}` substring with the\\n * actual token type ID.\\n */\\n function uri(uint256) public view virtual override returns (string memory) {\\n return _uri;\\n }\\n\\n /**\\n * @dev See {IERC1155-balanceOf}.\\n *\\n * Requirements:\\n *\\n * - `account` cannot be the zero address.\\n */\\n function balanceOf(address account, uint256 id) public view virtual override returns (uint256) {\\n require(account != address(0), \\\"ERC1155: balance query for the zero address\\\");\\n return _balances[id][account];\\n }\\n\\n /**\\n * @dev See {IERC1155-balanceOfBatch}.\\n *\\n * Requirements:\\n *\\n * - `accounts` and `ids` must have the same length.\\n */\\n function balanceOfBatch(address[] memory accounts, uint256[] memory ids)\\n public\\n view\\n virtual\\n override\\n returns (uint256[] memory)\\n {\\n require(accounts.length == ids.length, \\\"ERC1155: accounts and ids length mismatch\\\");\\n\\n uint256[] memory batchBalances = new uint256[](accounts.length);\\n\\n for (uint256 i = 0; i < accounts.length; ++i) {\\n batchBalances[i] = balanceOf(accounts[i], ids[i]);\\n }\\n\\n return batchBalances;\\n }\\n\\n /**\\n * @dev See {IERC1155-setApprovalForAll}.\\n */\\n function setApprovalForAll(address operator, bool approved) public virtual override {\\n _setApprovalForAll(_msgSender(), operator, approved);\\n }\\n\\n /**\\n * @dev See {IERC1155-isApprovedForAll}.\\n */\\n function isApprovedForAll(address account, address operator) public view virtual override returns (bool) {\\n return _operatorApprovals[account][operator];\\n }\\n\\n /**\\n * @dev See {IERC1155-safeTransferFrom}.\\n */\\n function safeTransferFrom(\\n address from,\\n address to,\\n uint256 id,\\n uint256 amount,\\n bytes memory data\\n ) public virtual override {\\n require(\\n from == _msgSender() || isApprovedForAll(from, _msgSender()),\\n \\\"ERC1155: caller is not owner nor approved\\\"\\n );\\n _safeTransferFrom(from, to, id, amount, data);\\n }\\n\\n /**\\n * @dev See {IERC1155-safeBatchTransferFrom}.\\n */\\n function safeBatchTransferFrom(\\n address from,\\n address to,\\n uint256[] memory ids,\\n uint256[] memory amounts,\\n bytes memory data\\n ) public virtual override {\\n require(\\n from == _msgSender() || isApprovedForAll(from, _msgSender()),\\n \\\"ERC1155: transfer caller is not owner nor approved\\\"\\n );\\n _safeBatchTransferFrom(from, to, ids, amounts, data);\\n }\\n\\n /**\\n * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.\\n *\\n * Emits a {TransferSingle} event.\\n *\\n * Requirements:\\n *\\n * - `to` cannot be the zero address.\\n * - `from` must have a balance of tokens of type `id` of at least `amount`.\\n * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the\\n * acceptance magic value.\\n */\\n function _safeTransferFrom(\\n address from,\\n address to,\\n uint256 id,\\n uint256 amount,\\n bytes memory data\\n ) internal virtual {\\n require(to != address(0), \\\"ERC1155: transfer to the zero address\\\");\\n\\n address operator = _msgSender();\\n\\n _beforeTokenTransfer(operator, from, to, _asSingletonArray(id), _asSingletonArray(amount), data);\\n\\n uint256 fromBalance = _balances[id][from];\\n require(fromBalance >= amount, \\\"ERC1155: insufficient balance for transfer\\\");\\n unchecked {\\n _balances[id][from] = fromBalance - amount;\\n }\\n _balances[id][to] += amount;\\n\\n emit TransferSingle(operator, from, to, id, amount);\\n\\n _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data);\\n }\\n\\n /**\\n * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}.\\n *\\n * Emits a {TransferBatch} event.\\n *\\n * Requirements:\\n *\\n * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the\\n * acceptance magic value.\\n */\\n function _safeBatchTransferFrom(\\n address from,\\n address to,\\n uint256[] memory ids,\\n uint256[] memory amounts,\\n bytes memory data\\n ) internal virtual {\\n require(ids.length == amounts.length, \\\"ERC1155: ids and amounts length mismatch\\\");\\n require(to != address(0), \\\"ERC1155: transfer to the zero address\\\");\\n\\n address operator = _msgSender();\\n\\n _beforeTokenTransfer(operator, from, to, ids, amounts, data);\\n\\n for (uint256 i = 0; i < ids.length; ++i) {\\n uint256 id = ids[i];\\n uint256 amount = amounts[i];\\n\\n uint256 fromBalance = _balances[id][from];\\n require(fromBalance >= amount, \\\"ERC1155: insufficient balance for transfer\\\");\\n unchecked {\\n _balances[id][from] = fromBalance - amount;\\n }\\n _balances[id][to] += amount;\\n }\\n\\n emit TransferBatch(operator, from, to, ids, amounts);\\n\\n _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data);\\n }\\n\\n /**\\n * @dev Sets a new URI for all token types, by relying on the token type ID\\n * substitution mechanism\\n * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].\\n *\\n * By this mechanism, any occurrence of the `\\\\{id\\\\}` substring in either the\\n * URI or any of the amounts in the JSON file at said URI will be replaced by\\n * clients with the token type ID.\\n *\\n * For example, the `https://token-cdn-domain/\\\\{id\\\\}.json` URI would be\\n * interpreted by clients as\\n * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json`\\n * for token type ID 0x4cce0.\\n *\\n * See {uri}.\\n *\\n * Because these URIs cannot be meaningfully represented by the {URI} event,\\n * this function emits no events.\\n */\\n function _setURI(string memory newuri) internal virtual {\\n _uri = newuri;\\n }\\n\\n /**\\n * @dev Creates `amount` tokens of token type `id`, and assigns them to `to`.\\n *\\n * Emits a {TransferSingle} event.\\n *\\n * Requirements:\\n *\\n * - `to` cannot be the zero address.\\n * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the\\n * acceptance magic value.\\n */\\n function _mint(\\n address to,\\n uint256 id,\\n uint256 amount,\\n bytes memory data\\n ) internal virtual {\\n require(to != address(0), \\\"ERC1155: mint to the zero address\\\");\\n\\n address operator = _msgSender();\\n\\n _beforeTokenTransfer(operator, address(0), to, _asSingletonArray(id), _asSingletonArray(amount), data);\\n\\n _balances[id][to] += amount;\\n emit TransferSingle(operator, address(0), to, id, amount);\\n\\n _doSafeTransferAcceptanceCheck(operator, address(0), to, id, amount, data);\\n }\\n\\n /**\\n * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}.\\n *\\n * Requirements:\\n *\\n * - `ids` and `amounts` must have the same length.\\n * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the\\n * acceptance magic value.\\n */\\n function _mintBatch(\\n address to,\\n uint256[] memory ids,\\n uint256[] memory amounts,\\n bytes memory data\\n ) internal virtual {\\n require(to != address(0), \\\"ERC1155: mint to the zero address\\\");\\n require(ids.length == amounts.length, \\\"ERC1155: ids and amounts length mismatch\\\");\\n\\n address operator = _msgSender();\\n\\n _beforeTokenTransfer(operator, address(0), to, ids, amounts, data);\\n\\n for (uint256 i = 0; i < ids.length; i++) {\\n _balances[ids[i]][to] += amounts[i];\\n }\\n\\n emit TransferBatch(operator, address(0), to, ids, amounts);\\n\\n _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data);\\n }\\n\\n /**\\n * @dev Destroys `amount` tokens of token type `id` from `from`\\n *\\n * Requirements:\\n *\\n * - `from` cannot be the zero address.\\n * - `from` must have at least `amount` tokens of token type `id`.\\n */\\n function _burn(\\n address from,\\n uint256 id,\\n uint256 amount\\n ) internal virtual {\\n require(from != address(0), \\\"ERC1155: burn from the zero address\\\");\\n\\n address operator = _msgSender();\\n\\n _beforeTokenTransfer(operator, from, address(0), _asSingletonArray(id), _asSingletonArray(amount), \\\"\\\");\\n\\n uint256 fromBalance = _balances[id][from];\\n require(fromBalance >= amount, \\\"ERC1155: burn amount exceeds balance\\\");\\n unchecked {\\n _balances[id][from] = fromBalance - amount;\\n }\\n\\n emit TransferSingle(operator, from, address(0), id, amount);\\n }\\n\\n /**\\n * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}.\\n *\\n * Requirements:\\n *\\n * - `ids` and `amounts` must have the same length.\\n */\\n function _burnBatch(\\n address from,\\n uint256[] memory ids,\\n uint256[] memory amounts\\n ) internal virtual {\\n require(from != address(0), \\\"ERC1155: burn from the zero address\\\");\\n require(ids.length == amounts.length, \\\"ERC1155: ids and amounts length mismatch\\\");\\n\\n address operator = _msgSender();\\n\\n _beforeTokenTransfer(operator, from, address(0), ids, amounts, \\\"\\\");\\n\\n for (uint256 i = 0; i < ids.length; i++) {\\n uint256 id = ids[i];\\n uint256 amount = amounts[i];\\n\\n uint256 fromBalance = _balances[id][from];\\n require(fromBalance >= amount, \\\"ERC1155: burn amount exceeds balance\\\");\\n unchecked {\\n _balances[id][from] = fromBalance - amount;\\n }\\n }\\n\\n emit TransferBatch(operator, from, address(0), ids, amounts);\\n }\\n\\n /**\\n * @dev Approve `operator` to operate on all of `owner` tokens\\n *\\n * Emits a {ApprovalForAll} event.\\n */\\n function _setApprovalForAll(\\n address owner,\\n address operator,\\n bool approved\\n ) internal virtual {\\n require(owner != operator, \\\"ERC1155: setting approval status for self\\\");\\n _operatorApprovals[owner][operator] = approved;\\n emit ApprovalForAll(owner, operator, approved);\\n }\\n\\n /**\\n * @dev Hook that is called before any token transfer. This includes minting\\n * and burning, as well as batched variants.\\n *\\n * The same hook is called on both single and batched variants. For single\\n * transfers, the length of the `id` and `amount` arrays will be 1.\\n *\\n * Calling conditions (for each `id` and `amount` pair):\\n *\\n * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens\\n * of token type `id` will be transferred to `to`.\\n * - When `from` is zero, `amount` tokens of token type `id` will be minted\\n * for `to`.\\n * - when `to` is zero, `amount` of ``from``'s tokens of token type `id`\\n * will be burned.\\n * - `from` and `to` are never both zero.\\n * - `ids` and `amounts` have the same, non-zero length.\\n *\\n * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].\\n */\\n function _beforeTokenTransfer(\\n address operator,\\n address from,\\n address to,\\n uint256[] memory ids,\\n uint256[] memory amounts,\\n bytes memory data\\n ) internal virtual {}\\n\\n function _doSafeTransferAcceptanceCheck(\\n address operator,\\n address from,\\n address to,\\n uint256 id,\\n uint256 amount,\\n bytes memory data\\n ) private {\\n if (to.isContract()) {\\n try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) {\\n if (response != IERC1155Receiver.onERC1155Received.selector) {\\n revert(\\\"ERC1155: ERC1155Receiver rejected tokens\\\");\\n }\\n } catch Error(string memory reason) {\\n revert(reason);\\n } catch {\\n revert(\\\"ERC1155: transfer to non ERC1155Receiver implementer\\\");\\n }\\n }\\n }\\n\\n function _doSafeBatchTransferAcceptanceCheck(\\n address operator,\\n address from,\\n address to,\\n uint256[] memory ids,\\n uint256[] memory amounts,\\n bytes memory data\\n ) private {\\n if (to.isContract()) {\\n try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns (\\n bytes4 response\\n ) {\\n if (response != IERC1155Receiver.onERC1155BatchReceived.selector) {\\n revert(\\\"ERC1155: ERC1155Receiver rejected tokens\\\");\\n }\\n } catch Error(string memory reason) {\\n revert(reason);\\n } catch {\\n revert(\\\"ERC1155: transfer to non ERC1155Receiver implementer\\\");\\n }\\n }\\n }\\n\\n function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) {\\n uint256[] memory array = new uint256[](1);\\n array[0] = element;\\n\\n return array;\\n }\\n}\\n\",\"keccak256\":\"0x04d6d1342ece664085921a4fabc928a7bcf1cf2873fa81780f61a54dc2b9b66e\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC1155/IERC1155.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/introspection/IERC165.sol\\\";\\n\\n/**\\n * @dev Required interface of an ERC1155 compliant contract, as defined in the\\n * https://eips.ethereum.org/EIPS/eip-1155[EIP].\\n *\\n * _Available since v3.1._\\n */\\ninterface IERC1155 is IERC165 {\\n /**\\n * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.\\n */\\n event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);\\n\\n /**\\n * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all\\n * transfers.\\n */\\n event TransferBatch(\\n address indexed operator,\\n address indexed from,\\n address indexed to,\\n uint256[] ids,\\n uint256[] values\\n );\\n\\n /**\\n * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to\\n * `approved`.\\n */\\n event ApprovalForAll(address indexed account, address indexed operator, bool approved);\\n\\n /**\\n * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.\\n *\\n * If an {URI} event was emitted for `id`, the standard\\n * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value\\n * returned by {IERC1155MetadataURI-uri}.\\n */\\n event URI(string value, uint256 indexed id);\\n\\n /**\\n * @dev Returns the amount of tokens of token type `id` owned by `account`.\\n *\\n * Requirements:\\n *\\n * - `account` cannot be the zero address.\\n */\\n function balanceOf(address account, uint256 id) external view returns (uint256);\\n\\n /**\\n * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.\\n *\\n * Requirements:\\n *\\n * - `accounts` and `ids` must have the same length.\\n */\\n function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids)\\n external\\n view\\n returns (uint256[] memory);\\n\\n /**\\n * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,\\n *\\n * Emits an {ApprovalForAll} event.\\n *\\n * Requirements:\\n *\\n * - `operator` cannot be the caller.\\n */\\n function setApprovalForAll(address operator, bool approved) external;\\n\\n /**\\n * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.\\n *\\n * See {setApprovalForAll}.\\n */\\n function isApprovedForAll(address account, address operator) external view returns (bool);\\n\\n /**\\n * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.\\n *\\n * Emits a {TransferSingle} event.\\n *\\n * Requirements:\\n *\\n * - `to` cannot be the zero address.\\n * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}.\\n * - `from` must have a balance of tokens of type `id` of at least `amount`.\\n * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the\\n * acceptance magic value.\\n */\\n function safeTransferFrom(\\n address from,\\n address to,\\n uint256 id,\\n uint256 amount,\\n bytes calldata data\\n ) external;\\n\\n /**\\n * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.\\n *\\n * Emits a {TransferBatch} event.\\n *\\n * Requirements:\\n *\\n * - `ids` and `amounts` must have the same length.\\n * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the\\n * acceptance magic value.\\n */\\n function safeBatchTransferFrom(\\n address from,\\n address to,\\n uint256[] calldata ids,\\n uint256[] calldata amounts,\\n bytes calldata data\\n ) external;\\n}\\n\",\"keccak256\":\"0x8e93de94c9062ebc94fb7e2e3929b0781ac6a2b7772e2f7a59045861c93e5be9\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC1155/IERC1155Receiver.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/introspection/IERC165.sol\\\";\\n\\n/**\\n * @dev _Available since v3.1._\\n */\\ninterface IERC1155Receiver is IERC165 {\\n /**\\n * @dev Handles the receipt of a single ERC1155 token type. This function is\\n * called at the end of a `safeTransferFrom` after the balance has been updated.\\n *\\n * NOTE: To accept the transfer, this must return\\n * `bytes4(keccak256(\\\"onERC1155Received(address,address,uint256,uint256,bytes)\\\"))`\\n * (i.e. 0xf23a6e61, or its own function selector).\\n *\\n * @param operator The address which initiated the transfer (i.e. msg.sender)\\n * @param from The address which previously owned the token\\n * @param id The ID of the token being transferred\\n * @param value The amount of tokens being transferred\\n * @param data Additional data with no specified format\\n * @return `bytes4(keccak256(\\\"onERC1155Received(address,address,uint256,uint256,bytes)\\\"))` if transfer is allowed\\n */\\n function onERC1155Received(\\n address operator,\\n address from,\\n uint256 id,\\n uint256 value,\\n bytes calldata data\\n ) external returns (bytes4);\\n\\n /**\\n * @dev Handles the receipt of a multiple ERC1155 token types. This function\\n * is called at the end of a `safeBatchTransferFrom` after the balances have\\n * been updated.\\n *\\n * NOTE: To accept the transfer(s), this must return\\n * `bytes4(keccak256(\\\"onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)\\\"))`\\n * (i.e. 0xbc197c81, or its own function selector).\\n *\\n * @param operator The address which initiated the batch transfer (i.e. msg.sender)\\n * @param from The address which previously owned the token\\n * @param ids An array containing ids of each token being transferred (order and length must match values array)\\n * @param values An array containing amounts of each token being transferred (order and length must match ids array)\\n * @param data Additional data with no specified format\\n * @return `bytes4(keccak256(\\\"onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)\\\"))` if transfer is allowed\\n */\\n function onERC1155BatchReceived(\\n address operator,\\n address from,\\n uint256[] calldata ids,\\n uint256[] calldata values,\\n bytes calldata data\\n ) external returns (bytes4);\\n}\\n\",\"keccak256\":\"0xeb373f1fdc7b755c6a750123a9b9e3a8a02c1470042fd6505d875000a80bde0b\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC1155/extensions/IERC1155MetadataURI.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../IERC1155.sol\\\";\\n\\n/**\\n * @dev Interface of the optional ERC1155MetadataExtension interface, as defined\\n * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP].\\n *\\n * _Available since v3.1._\\n */\\ninterface IERC1155MetadataURI is IERC1155 {\\n /**\\n * @dev Returns the URI for token type `id`.\\n *\\n * If the `\\\\{id\\\\}` substring is present in the URI, it must be replaced by\\n * clients with the actual token type ID.\\n */\\n function uri(uint256 id) external view returns (string memory);\\n}\\n\",\"keccak256\":\"0xa66d18b9a85458d28fc3304717964502ae36f7f8a2ff35bc83f6f85d74b03574\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/ERC20.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/ERC20.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IERC20.sol\\\";\\nimport \\\"./extensions/IERC20Metadata.sol\\\";\\nimport \\\"../../utils/Context.sol\\\";\\n\\n/**\\n * @dev Implementation of the {IERC20} interface.\\n *\\n * This implementation is agnostic to the way tokens are created. This means\\n * that a supply mechanism has to be added in a derived contract using {_mint}.\\n * For a generic mechanism see {ERC20PresetMinterPauser}.\\n *\\n * TIP: For a detailed writeup see our guide\\n * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How\\n * to implement supply mechanisms].\\n *\\n * We have followed general OpenZeppelin Contracts guidelines: functions revert\\n * instead returning `false` on failure. This behavior is nonetheless\\n * conventional and does not conflict with the expectations of ERC20\\n * applications.\\n *\\n * Additionally, an {Approval} event is emitted on calls to {transferFrom}.\\n * This allows applications to reconstruct the allowance for all accounts just\\n * by listening to said events. Other implementations of the EIP may not emit\\n * these events, as it isn't required by the specification.\\n *\\n * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}\\n * functions have been added to mitigate the well-known issues around setting\\n * allowances. See {IERC20-approve}.\\n */\\ncontract ERC20 is Context, IERC20, IERC20Metadata {\\n mapping(address => uint256) private _balances;\\n\\n mapping(address => mapping(address => uint256)) private _allowances;\\n\\n uint256 private _totalSupply;\\n\\n string private _name;\\n string private _symbol;\\n\\n /**\\n * @dev Sets the values for {name} and {symbol}.\\n *\\n * The default value of {decimals} is 18. To select a different value for\\n * {decimals} you should overload it.\\n *\\n * All two of these values are immutable: they can only be set once during\\n * construction.\\n */\\n constructor(string memory name_, string memory symbol_) {\\n _name = name_;\\n _symbol = symbol_;\\n }\\n\\n /**\\n * @dev Returns the name of the token.\\n */\\n function name() public view virtual override returns (string memory) {\\n return _name;\\n }\\n\\n /**\\n * @dev Returns the symbol of the token, usually a shorter version of the\\n * name.\\n */\\n function symbol() public view virtual override returns (string memory) {\\n return _symbol;\\n }\\n\\n /**\\n * @dev Returns the number of decimals used to get its user representation.\\n * For example, if `decimals` equals `2`, a balance of `505` tokens should\\n * be displayed to a user as `5.05` (`505 / 10 ** 2`).\\n *\\n * Tokens usually opt for a value of 18, imitating the relationship between\\n * Ether and Wei. This is the value {ERC20} uses, unless this function is\\n * overridden;\\n *\\n * NOTE: This information is only used for _display_ purposes: it in\\n * no way affects any of the arithmetic of the contract, including\\n * {IERC20-balanceOf} and {IERC20-transfer}.\\n */\\n function decimals() public view virtual override returns (uint8) {\\n return 18;\\n }\\n\\n /**\\n * @dev See {IERC20-totalSupply}.\\n */\\n function totalSupply() public view virtual override returns (uint256) {\\n return _totalSupply;\\n }\\n\\n /**\\n * @dev See {IERC20-balanceOf}.\\n */\\n function balanceOf(address account) public view virtual override returns (uint256) {\\n return _balances[account];\\n }\\n\\n /**\\n * @dev See {IERC20-transfer}.\\n *\\n * Requirements:\\n *\\n * - `to` cannot be the zero address.\\n * - the caller must have a balance of at least `amount`.\\n */\\n function transfer(address to, uint256 amount) public virtual override returns (bool) {\\n address owner = _msgSender();\\n _transfer(owner, to, amount);\\n return true;\\n }\\n\\n /**\\n * @dev See {IERC20-allowance}.\\n */\\n function allowance(address owner, address spender) public view virtual override returns (uint256) {\\n return _allowances[owner][spender];\\n }\\n\\n /**\\n * @dev See {IERC20-approve}.\\n *\\n * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on\\n * `transferFrom`. This is semantically equivalent to an infinite approval.\\n *\\n * Requirements:\\n *\\n * - `spender` cannot be the zero address.\\n */\\n function approve(address spender, uint256 amount) public virtual override returns (bool) {\\n address owner = _msgSender();\\n _approve(owner, spender, amount);\\n return true;\\n }\\n\\n /**\\n * @dev See {IERC20-transferFrom}.\\n *\\n * Emits an {Approval} event indicating the updated allowance. This is not\\n * required by the EIP. See the note at the beginning of {ERC20}.\\n *\\n * NOTE: Does not update the allowance if the current allowance\\n * is the maximum `uint256`.\\n *\\n * Requirements:\\n *\\n * - `from` and `to` cannot be the zero address.\\n * - `from` must have a balance of at least `amount`.\\n * - the caller must have allowance for ``from``'s tokens of at least\\n * `amount`.\\n */\\n function transferFrom(\\n address from,\\n address to,\\n uint256 amount\\n ) public virtual override returns (bool) {\\n address spender = _msgSender();\\n _spendAllowance(from, spender, amount);\\n _transfer(from, to, amount);\\n return true;\\n }\\n\\n /**\\n * @dev Atomically increases the allowance granted to `spender` by the caller.\\n *\\n * This is an alternative to {approve} that can be used as a mitigation for\\n * problems described in {IERC20-approve}.\\n *\\n * Emits an {Approval} event indicating the updated allowance.\\n *\\n * Requirements:\\n *\\n * - `spender` cannot be the zero address.\\n */\\n function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {\\n address owner = _msgSender();\\n _approve(owner, spender, _allowances[owner][spender] + addedValue);\\n return true;\\n }\\n\\n /**\\n * @dev Atomically decreases the allowance granted to `spender` by the caller.\\n *\\n * This is an alternative to {approve} that can be used as a mitigation for\\n * problems described in {IERC20-approve}.\\n *\\n * Emits an {Approval} event indicating the updated allowance.\\n *\\n * Requirements:\\n *\\n * - `spender` cannot be the zero address.\\n * - `spender` must have allowance for the caller of at least\\n * `subtractedValue`.\\n */\\n function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {\\n address owner = _msgSender();\\n uint256 currentAllowance = _allowances[owner][spender];\\n require(currentAllowance >= subtractedValue, \\\"ERC20: decreased allowance below zero\\\");\\n unchecked {\\n _approve(owner, spender, currentAllowance - subtractedValue);\\n }\\n\\n return true;\\n }\\n\\n /**\\n * @dev Moves `amount` of tokens from `sender` to `recipient`.\\n *\\n * This internal function is equivalent to {transfer}, and can be used to\\n * e.g. implement automatic token fees, slashing mechanisms, etc.\\n *\\n * Emits a {Transfer} event.\\n *\\n * Requirements:\\n *\\n * - `from` cannot be the zero address.\\n * - `to` cannot be the zero address.\\n * - `from` must have a balance of at least `amount`.\\n */\\n function _transfer(\\n address from,\\n address to,\\n uint256 amount\\n ) internal virtual {\\n require(from != address(0), \\\"ERC20: transfer from the zero address\\\");\\n require(to != address(0), \\\"ERC20: transfer to the zero address\\\");\\n\\n _beforeTokenTransfer(from, to, amount);\\n\\n uint256 fromBalance = _balances[from];\\n require(fromBalance >= amount, \\\"ERC20: transfer amount exceeds balance\\\");\\n unchecked {\\n _balances[from] = fromBalance - amount;\\n }\\n _balances[to] += amount;\\n\\n emit Transfer(from, to, amount);\\n\\n _afterTokenTransfer(from, to, amount);\\n }\\n\\n /** @dev Creates `amount` tokens and assigns them to `account`, increasing\\n * the total supply.\\n *\\n * Emits a {Transfer} event with `from` set to the zero address.\\n *\\n * Requirements:\\n *\\n * - `account` cannot be the zero address.\\n */\\n function _mint(address account, uint256 amount) internal virtual {\\n require(account != address(0), \\\"ERC20: mint to the zero address\\\");\\n\\n _beforeTokenTransfer(address(0), account, amount);\\n\\n _totalSupply += amount;\\n _balances[account] += amount;\\n emit Transfer(address(0), account, amount);\\n\\n _afterTokenTransfer(address(0), account, amount);\\n }\\n\\n /**\\n * @dev Destroys `amount` tokens from `account`, reducing the\\n * total supply.\\n *\\n * Emits a {Transfer} event with `to` set to the zero address.\\n *\\n * Requirements:\\n *\\n * - `account` cannot be the zero address.\\n * - `account` must have at least `amount` tokens.\\n */\\n function _burn(address account, uint256 amount) internal virtual {\\n require(account != address(0), \\\"ERC20: burn from the zero address\\\");\\n\\n _beforeTokenTransfer(account, address(0), amount);\\n\\n uint256 accountBalance = _balances[account];\\n require(accountBalance >= amount, \\\"ERC20: burn amount exceeds balance\\\");\\n unchecked {\\n _balances[account] = accountBalance - amount;\\n }\\n _totalSupply -= amount;\\n\\n emit Transfer(account, address(0), amount);\\n\\n _afterTokenTransfer(account, address(0), amount);\\n }\\n\\n /**\\n * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.\\n *\\n * This internal function is equivalent to `approve`, and can be used to\\n * e.g. set automatic allowances for certain subsystems, etc.\\n *\\n * Emits an {Approval} event.\\n *\\n * Requirements:\\n *\\n * - `owner` cannot be the zero address.\\n * - `spender` cannot be the zero address.\\n */\\n function _approve(\\n address owner,\\n address spender,\\n uint256 amount\\n ) internal virtual {\\n require(owner != address(0), \\\"ERC20: approve from the zero address\\\");\\n require(spender != address(0), \\\"ERC20: approve to the zero address\\\");\\n\\n _allowances[owner][spender] = amount;\\n emit Approval(owner, spender, amount);\\n }\\n\\n /**\\n * @dev Spend `amount` form the allowance of `owner` toward `spender`.\\n *\\n * Does not update the allowance amount in case of infinite allowance.\\n * Revert if not enough allowance is available.\\n *\\n * Might emit an {Approval} event.\\n */\\n function _spendAllowance(\\n address owner,\\n address spender,\\n uint256 amount\\n ) internal virtual {\\n uint256 currentAllowance = allowance(owner, spender);\\n if (currentAllowance != type(uint256).max) {\\n require(currentAllowance >= amount, \\\"ERC20: insufficient allowance\\\");\\n unchecked {\\n _approve(owner, spender, currentAllowance - amount);\\n }\\n }\\n }\\n\\n /**\\n * @dev Hook that is called before any transfer of tokens. This includes\\n * minting and burning.\\n *\\n * Calling conditions:\\n *\\n * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens\\n * will be transferred to `to`.\\n * - when `from` is zero, `amount` tokens will be minted for `to`.\\n * - when `to` is zero, `amount` of ``from``'s tokens will be burned.\\n * - `from` and `to` are never both zero.\\n *\\n * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].\\n */\\n function _beforeTokenTransfer(\\n address from,\\n address to,\\n uint256 amount\\n ) internal virtual {}\\n\\n /**\\n * @dev Hook that is called after any transfer of tokens. This includes\\n * minting and burning.\\n *\\n * Calling conditions:\\n *\\n * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens\\n * has been transferred to `to`.\\n * - when `from` is zero, `amount` tokens have been minted for `to`.\\n * - when `to` is zero, `amount` of ``from``'s tokens have been burned.\\n * - `from` and `to` are never both zero.\\n *\\n * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].\\n */\\n function _afterTokenTransfer(\\n address from,\\n address to,\\n uint256 amount\\n ) internal virtual {}\\n}\\n\",\"keccak256\":\"0xdadd41acb749920eccf40aeaa8d291adf9751399a7343561bad13e7a8d99be0b\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/IERC20.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)\\n\\npragma solidity ^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 `to`.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transfer(address to, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Returns the remaining number of tokens that `spender` will be\\n * allowed to spend on behalf of `owner` through {transferFrom}. This is\\n * zero by default.\\n *\\n * This value changes when {approve} or {transferFrom} are called.\\n */\\n function allowance(address owner, address spender) external view returns (uint256);\\n\\n /**\\n * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * IMPORTANT: Beware that changing an allowance with this method brings the risk\\n * that someone may use both the old and the new allowance by unfortunate\\n * transaction ordering. One possible solution to mitigate this race\\n * condition is to first reduce the spender's allowance to 0 and set the\\n * desired value afterwards:\\n * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\\n *\\n * Emits an {Approval} event.\\n */\\n function approve(address spender, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Moves `amount` tokens from `from` to `to` 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(\\n address from,\\n address to,\\n uint256 amount\\n ) external returns (bool);\\n\\n /**\\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\\n * another (`to`).\\n *\\n * Note that `value` may be zero.\\n */\\n event Transfer(address indexed from, address indexed to, uint256 value);\\n\\n /**\\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\\n * a call to {approve}. `value` is the new allowance.\\n */\\n event Approval(address indexed owner, address indexed spender, uint256 value);\\n}\\n\",\"keccak256\":\"0xbbc8ac883ac3c0078ce5ad3e288fbb3ffcc8a30c3a98c0fda0114d64fc44fca2\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/extensions/ERC20Burnable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../ERC20.sol\\\";\\nimport \\\"../../../utils/Context.sol\\\";\\n\\n/**\\n * @dev Extension of {ERC20} that allows token holders to destroy both their own\\n * tokens and those that they have an allowance for, in a way that can be\\n * recognized off-chain (via event analysis).\\n */\\nabstract contract ERC20Burnable is Context, ERC20 {\\n /**\\n * @dev Destroys `amount` tokens from the caller.\\n *\\n * See {ERC20-_burn}.\\n */\\n function burn(uint256 amount) public virtual {\\n _burn(_msgSender(), amount);\\n }\\n\\n /**\\n * @dev Destroys `amount` tokens from `account`, deducting from the caller's\\n * allowance.\\n *\\n * See {ERC20-_burn} and {ERC20-allowance}.\\n *\\n * Requirements:\\n *\\n * - the caller must have allowance for ``accounts``'s tokens of at least\\n * `amount`.\\n */\\n function burnFrom(address account, uint256 amount) public virtual {\\n _spendAllowance(account, _msgSender(), amount);\\n _burn(account, amount);\\n }\\n}\\n\",\"keccak256\":\"0x0d19410453cda55960a818e02bd7c18952a5c8fe7a3036e81f0d599f34487a7b\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../IERC20.sol\\\";\\n\\n/**\\n * @dev Interface for the optional metadata functions from the ERC20 standard.\\n *\\n * _Available since v4.1._\\n */\\ninterface IERC20Metadata is IERC20 {\\n /**\\n * @dev Returns the name of the token.\\n */\\n function name() external view returns (string memory);\\n\\n /**\\n * @dev Returns the symbol of the token.\\n */\\n function symbol() external view returns (string memory);\\n\\n /**\\n * @dev Returns the decimals places of the token.\\n */\\n function decimals() external view returns (uint8);\\n}\\n\",\"keccak256\":\"0x8de418a5503946cabe331f35fe242d3201a73f67f77aaeb7110acb1f30423aca\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/Address.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\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 * [IMPORTANT]\\n * ====\\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\\n *\\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n * constructor.\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize/address.code.length, which returns 0\\n // for contracts in construction, since the code is only stored at the end\\n // of the constructor execution.\\n\\n return account.code.length > 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 (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(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) 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(\\n address target,\\n bytes memory data,\\n uint256 value\\n ) 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(\\n address target,\\n bytes memory data,\\n uint256 value,\\n string memory errorMessage\\n ) 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 (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(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n require(isContract(target), \\\"Address: static call to non-contract\\\");\\n\\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(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(isContract(target), \\\"Address: delegate call to non-contract\\\");\\n\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResult(success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the\\n * revert reason using the provided one.\\n *\\n * _Available since v4.3._\\n */\\n function verifyCallResult(\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal 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 assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0x2ccf9d2313a313d41a791505f2b5abfdc62191b5d4334f7f7a82691c088a1c87\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n}\\n\",\"keccak256\":\"0xe2e337e6dde9ef6b680e07338c493ebea1b5fd09b43424112868e9cc1706bca7\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/Strings.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev String operations.\\n */\\nlibrary Strings {\\n bytes16 private constant _HEX_SYMBOLS = \\\"0123456789abcdef\\\";\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\\n */\\n function toString(uint256 value) internal pure returns (string memory) {\\n // Inspired by OraclizeAPI's implementation - MIT licence\\n // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol\\n\\n if (value == 0) {\\n return \\\"0\\\";\\n }\\n uint256 temp = value;\\n uint256 digits;\\n while (temp != 0) {\\n digits++;\\n temp /= 10;\\n }\\n bytes memory buffer = new bytes(digits);\\n while (value != 0) {\\n digits -= 1;\\n buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));\\n value /= 10;\\n }\\n return string(buffer);\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\\n */\\n function toHexString(uint256 value) internal pure returns (string memory) {\\n if (value == 0) {\\n return \\\"0x00\\\";\\n }\\n uint256 temp = value;\\n uint256 length = 0;\\n while (temp != 0) {\\n length++;\\n temp >>= 8;\\n }\\n return toHexString(value, length);\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\\n */\\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\\n bytes memory buffer = new bytes(2 * length + 2);\\n buffer[0] = \\\"0\\\";\\n buffer[1] = \\\"x\\\";\\n for (uint256 i = 2 * length + 1; i > 1; --i) {\\n buffer[i] = _HEX_SYMBOLS[value & 0xf];\\n value >>= 4;\\n }\\n require(value == 0, \\\"Strings: hex length insufficient\\\");\\n return string(buffer);\\n }\\n}\\n\",\"keccak256\":\"0x32c202bd28995dd20c4347b7c6467a6d3241c74c8ad3edcbb610cd9205916c45\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/cryptography/ECDSA.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/ECDSA.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../Strings.sol\\\";\\n\\n/**\\n * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.\\n *\\n * These functions can be used to verify that a message was signed by the holder\\n * of the private keys of a given address.\\n */\\nlibrary ECDSA {\\n enum RecoverError {\\n NoError,\\n InvalidSignature,\\n InvalidSignatureLength,\\n InvalidSignatureS,\\n InvalidSignatureV\\n }\\n\\n function _throwError(RecoverError error) private pure {\\n if (error == RecoverError.NoError) {\\n return; // no error: do nothing\\n } else if (error == RecoverError.InvalidSignature) {\\n revert(\\\"ECDSA: invalid signature\\\");\\n } else if (error == RecoverError.InvalidSignatureLength) {\\n revert(\\\"ECDSA: invalid signature length\\\");\\n } else if (error == RecoverError.InvalidSignatureS) {\\n revert(\\\"ECDSA: invalid signature 's' value\\\");\\n } else if (error == RecoverError.InvalidSignatureV) {\\n revert(\\\"ECDSA: invalid signature 'v' value\\\");\\n }\\n }\\n\\n /**\\n * @dev Returns the address that signed a hashed message (`hash`) with\\n * `signature` or error string. This address can then be used for verification purposes.\\n *\\n * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:\\n * this function rejects them by requiring the `s` value to be in the lower\\n * half order, and the `v` value to be either 27 or 28.\\n *\\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\\n * verification to be secure: it is possible to craft signatures that\\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\\n * this is by receiving a hash of the original message (which may otherwise\\n * be too long), and then calling {toEthSignedMessageHash} on it.\\n *\\n * Documentation for signature generation:\\n * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]\\n * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]\\n *\\n * _Available since v4.3._\\n */\\n function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {\\n // Check the signature length\\n // - case 65: r,s,v signature (standard)\\n // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._\\n if (signature.length == 65) {\\n bytes32 r;\\n bytes32 s;\\n uint8 v;\\n // ecrecover takes the signature parameters, and the only way to get them\\n // currently is to use 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 tryRecover(hash, v, r, s);\\n } else if (signature.length == 64) {\\n bytes32 r;\\n bytes32 vs;\\n // ecrecover takes the signature parameters, and the only way to get them\\n // currently is to use assembly.\\n assembly {\\n r := mload(add(signature, 0x20))\\n vs := mload(add(signature, 0x40))\\n }\\n return tryRecover(hash, r, vs);\\n } else {\\n return (address(0), RecoverError.InvalidSignatureLength);\\n }\\n }\\n\\n /**\\n * @dev Returns the address that signed a hashed message (`hash`) with\\n * `signature`. This address can then be used for verification purposes.\\n *\\n * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:\\n * this function rejects them by requiring the `s` value to be in the lower\\n * half order, and the `v` value to be either 27 or 28.\\n *\\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\\n * verification to be secure: it is possible to craft signatures that\\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\\n * this is by receiving a hash of the original message (which may otherwise\\n * be too long), and then calling {toEthSignedMessageHash} on it.\\n */\\n function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {\\n (address recovered, RecoverError error) = tryRecover(hash, signature);\\n _throwError(error);\\n return recovered;\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.\\n *\\n * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]\\n *\\n * _Available since v4.3._\\n */\\n function tryRecover(\\n bytes32 hash,\\n bytes32 r,\\n bytes32 vs\\n ) internal pure returns (address, RecoverError) {\\n bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);\\n uint8 v = uint8((uint256(vs) >> 255) + 27);\\n return tryRecover(hash, v, r, s);\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.\\n *\\n * _Available since v4.2._\\n */\\n function recover(\\n bytes32 hash,\\n bytes32 r,\\n bytes32 vs\\n ) internal pure returns (address) {\\n (address recovered, RecoverError error) = tryRecover(hash, r, vs);\\n _throwError(error);\\n return recovered;\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-tryRecover} that receives the `v`,\\n * `r` and `s` signature fields separately.\\n *\\n * _Available since v4.3._\\n */\\n function tryRecover(\\n bytes32 hash,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) internal pure returns (address, RecoverError) {\\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 (301): 0 < s < secp256k1n \\u00f7 2 + 1, and for v in (302): v \\u2208 {27, 28}. Most\\n // signatures from current libraries generate a unique signature with an s-value in the lower half order.\\n //\\n // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value\\n // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or\\n // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept\\n // these malleable signatures as well.\\n if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {\\n return (address(0), RecoverError.InvalidSignatureS);\\n }\\n if (v != 27 && v != 28) {\\n return (address(0), RecoverError.InvalidSignatureV);\\n }\\n\\n // If the signature is valid (and not malleable), return the signer address\\n address signer = ecrecover(hash, v, r, s);\\n if (signer == address(0)) {\\n return (address(0), RecoverError.InvalidSignature);\\n }\\n\\n return (signer, RecoverError.NoError);\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-recover} that receives the `v`,\\n * `r` and `s` signature fields separately.\\n */\\n function recover(\\n bytes32 hash,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) internal pure returns (address) {\\n (address recovered, RecoverError error) = tryRecover(hash, v, r, s);\\n _throwError(error);\\n return recovered;\\n }\\n\\n /**\\n * @dev Returns an Ethereum Signed Message, created from a `hash`. This\\n * produces hash corresponding to the one signed with the\\n * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]\\n * JSON-RPC method as part of EIP-191.\\n *\\n * See {recover}.\\n */\\n function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {\\n // 32 is the length in bytes of hash,\\n // enforced by the type signature above\\n return keccak256(abi.encodePacked(\\\"\\\\x19Ethereum Signed Message:\\\\n32\\\", hash));\\n }\\n\\n /**\\n * @dev Returns an Ethereum Signed Message, created from `s`. This\\n * produces hash corresponding to the one signed with the\\n * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]\\n * JSON-RPC method as part of EIP-191.\\n *\\n * See {recover}.\\n */\\n function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {\\n return keccak256(abi.encodePacked(\\\"\\\\x19Ethereum Signed Message:\\\\n\\\", Strings.toString(s.length), s));\\n }\\n\\n /**\\n * @dev Returns an Ethereum Signed Typed Data, created from a\\n * `domainSeparator` and a `structHash`. This produces hash corresponding\\n * to the one signed with the\\n * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]\\n * JSON-RPC method as part of EIP-712.\\n *\\n * See {recover}.\\n */\\n function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {\\n return keccak256(abi.encodePacked(\\\"\\\\x19\\\\x01\\\", domainSeparator, structHash));\\n }\\n}\\n\",\"keccak256\":\"0x3c07f43e60e099b3b157243b3152722e73b80eeb7985c2cd73712828d7f7da29\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/introspection/ERC165.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IERC165.sol\\\";\\n\\n/**\\n * @dev Implementation of the {IERC165} interface.\\n *\\n * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check\\n * for the additional interface id that will be supported. For example:\\n *\\n * ```solidity\\n * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\\n * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);\\n * }\\n * ```\\n *\\n * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.\\n */\\nabstract contract ERC165 is IERC165 {\\n /**\\n * @dev See {IERC165-supportsInterface}.\\n */\\n function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\\n return interfaceId == type(IERC165).interfaceId;\\n }\\n}\\n\",\"keccak256\":\"0xd10975de010d89fd1c78dc5e8a9a7e7f496198085c151648f20cba166b32582b\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/introspection/IERC165.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC165 standard, as defined in the\\n * https://eips.ethereum.org/EIPS/eip-165[EIP].\\n *\\n * Implementers can declare support of contract interfaces, which can then be\\n * queried by others ({ERC165Checker}).\\n *\\n * For an implementation, see {ERC165}.\\n */\\ninterface IERC165 {\\n /**\\n * @dev Returns true if this contract implements the interface defined by\\n * `interfaceId`. See the corresponding\\n * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]\\n * to learn more about how these ids are created.\\n *\\n * This function call must use less than 30 000 gas.\\n */\\n function supportsInterface(bytes4 interfaceId) external view returns (bool);\\n}\\n\",\"keccak256\":\"0x447a5f3ddc18419d41ff92b3773fb86471b1db25773e07f877f548918a185bf1\",\"license\":\"MIT\"},\"@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol\":{\"content\":\"pragma solidity >=0.5.0;\\n\\ninterface IUniswapV2Factory {\\n event PairCreated(address indexed token0, address indexed token1, address pair, uint);\\n\\n function feeTo() external view returns (address);\\n function feeToSetter() external view returns (address);\\n\\n function getPair(address tokenA, address tokenB) external view returns (address pair);\\n function allPairs(uint) external view returns (address pair);\\n function allPairsLength() external view returns (uint);\\n\\n function createPair(address tokenA, address tokenB) external returns (address pair);\\n\\n function setFeeTo(address) external;\\n function setFeeToSetter(address) external;\\n}\\n\",\"keccak256\":\"0xe5905c0989cf5a865ed9bb7b9252536ca011c5b744017a82a7d4443b9c00a891\"},\"@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol\":{\"content\":\"pragma solidity >=0.5.0;\\n\\ninterface IUniswapV2Pair {\\n event Approval(address indexed owner, address indexed spender, uint value);\\n event Transfer(address indexed from, address indexed to, uint value);\\n\\n function name() external pure returns (string memory);\\n function symbol() external pure returns (string memory);\\n function decimals() external pure returns (uint8);\\n function totalSupply() external view returns (uint);\\n function balanceOf(address owner) external view returns (uint);\\n function allowance(address owner, address spender) external view returns (uint);\\n\\n function approve(address spender, uint value) external returns (bool);\\n function transfer(address to, uint value) external returns (bool);\\n function transferFrom(address from, address to, uint value) external returns (bool);\\n\\n function DOMAIN_SEPARATOR() external view returns (bytes32);\\n function PERMIT_TYPEHASH() external pure returns (bytes32);\\n function nonces(address owner) external view returns (uint);\\n\\n function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;\\n\\n event Mint(address indexed sender, uint amount0, uint amount1);\\n event Burn(address indexed sender, uint amount0, uint amount1, address indexed to);\\n event Swap(\\n address indexed sender,\\n uint amount0In,\\n uint amount1In,\\n uint amount0Out,\\n uint amount1Out,\\n address indexed to\\n );\\n event Sync(uint112 reserve0, uint112 reserve1);\\n\\n function MINIMUM_LIQUIDITY() external pure returns (uint);\\n function factory() external view returns (address);\\n function token0() external view returns (address);\\n function token1() external view returns (address);\\n function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);\\n function price0CumulativeLast() external view returns (uint);\\n function price1CumulativeLast() external view returns (uint);\\n function kLast() external view returns (uint);\\n\\n function mint(address to) external returns (uint liquidity);\\n function burn(address to) external returns (uint amount0, uint amount1);\\n function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;\\n function skim(address to) external;\\n function sync() external;\\n\\n function initialize(address, address) external;\\n}\\n\",\"keccak256\":\"0x7c9bc70e5996c763e02ff38905282bc24fb242b0ef2519a003b36824fc524a4b\"},\"@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router01.sol\":{\"content\":\"pragma solidity >=0.6.2;\\n\\ninterface IUniswapV2Router01 {\\n function factory() external pure returns (address);\\n function WETH() external pure returns (address);\\n\\n function addLiquidity(\\n address tokenA,\\n address tokenB,\\n uint amountADesired,\\n uint amountBDesired,\\n uint amountAMin,\\n uint amountBMin,\\n address to,\\n uint deadline\\n ) external returns (uint amountA, uint amountB, uint liquidity);\\n function addLiquidityETH(\\n address token,\\n uint amountTokenDesired,\\n uint amountTokenMin,\\n uint amountETHMin,\\n address to,\\n uint deadline\\n ) external payable returns (uint amountToken, uint amountETH, uint liquidity);\\n function removeLiquidity(\\n address tokenA,\\n address tokenB,\\n uint liquidity,\\n uint amountAMin,\\n uint amountBMin,\\n address to,\\n uint deadline\\n ) external returns (uint amountA, uint amountB);\\n function removeLiquidityETH(\\n address token,\\n uint liquidity,\\n uint amountTokenMin,\\n uint amountETHMin,\\n address to,\\n uint deadline\\n ) external returns (uint amountToken, uint amountETH);\\n function removeLiquidityWithPermit(\\n address tokenA,\\n address tokenB,\\n uint liquidity,\\n uint amountAMin,\\n uint amountBMin,\\n address to,\\n uint deadline,\\n bool approveMax, uint8 v, bytes32 r, bytes32 s\\n ) external returns (uint amountA, uint amountB);\\n function removeLiquidityETHWithPermit(\\n address token,\\n uint liquidity,\\n uint amountTokenMin,\\n uint amountETHMin,\\n address to,\\n uint deadline,\\n bool approveMax, uint8 v, bytes32 r, bytes32 s\\n ) external returns (uint amountToken, uint amountETH);\\n function swapExactTokensForTokens(\\n uint amountIn,\\n uint amountOutMin,\\n address[] calldata path,\\n address to,\\n uint deadline\\n ) external returns (uint[] memory amounts);\\n function swapTokensForExactTokens(\\n uint amountOut,\\n uint amountInMax,\\n address[] calldata path,\\n address to,\\n uint deadline\\n ) external returns (uint[] memory amounts);\\n function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)\\n external\\n payable\\n returns (uint[] memory amounts);\\n function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)\\n external\\n returns (uint[] memory amounts);\\n function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)\\n external\\n returns (uint[] memory amounts);\\n function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)\\n external\\n payable\\n returns (uint[] memory amounts);\\n\\n function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB);\\n function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut);\\n function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn);\\n function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);\\n function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);\\n}\\n\",\"keccak256\":\"0x8a3c5c449d4b7cd76513ed6995f4b86e4a86f222c770f8442f5fc128ce29b4d2\"},\"@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol\":{\"content\":\"pragma solidity >=0.6.2;\\n\\nimport './IUniswapV2Router01.sol';\\n\\ninterface IUniswapV2Router02 is IUniswapV2Router01 {\\n function removeLiquidityETHSupportingFeeOnTransferTokens(\\n address token,\\n uint liquidity,\\n uint amountTokenMin,\\n uint amountETHMin,\\n address to,\\n uint deadline\\n ) external returns (uint amountETH);\\n function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(\\n address token,\\n uint liquidity,\\n uint amountTokenMin,\\n uint amountETHMin,\\n address to,\\n uint deadline,\\n bool approveMax, uint8 v, bytes32 r, bytes32 s\\n ) external returns (uint amountETH);\\n\\n function swapExactTokensForTokensSupportingFeeOnTransferTokens(\\n uint amountIn,\\n uint amountOutMin,\\n address[] calldata path,\\n address to,\\n uint deadline\\n ) external;\\n function swapExactETHForTokensSupportingFeeOnTransferTokens(\\n uint amountOutMin,\\n address[] calldata path,\\n address to,\\n uint deadline\\n ) external payable;\\n function swapExactTokensForETHSupportingFeeOnTransferTokens(\\n uint amountIn,\\n uint amountOutMin,\\n address[] calldata path,\\n address to,\\n uint deadline\\n ) external;\\n}\\n\",\"keccak256\":\"0x744e30c133bd0f7ca9e7163433cf6d72f45c6bb1508c2c9c02f1a6db796ae59d\"},\"contracts/access/SafeOwnable.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\n// Refer to https://github.com/boringcrypto/BoringSolidity/blob/master/contracts/BoringOwnable.sol and https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol\\n\\npragma solidity 0.8.15;\\n\\nimport '@openzeppelin/contracts/utils/Context.sol';\\n\\ncontract SafeOwnable is Context {\\n address private _owner;\\n address private _pendingOwner;\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the deployer as the initial owner.\\n */\\n constructor() {\\n _transferOwnership(_msgSender());\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Return the address of the pending owner\\n */\\n function pendingOwner() public view virtual returns (address) {\\n return _pendingOwner;\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n require(owner() == _msgSender(), 'SafeOwnable: caller not owner');\\n _;\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions anymore. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby removing any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n * Note If direct is false, it will set an pending owner and the OwnerShipTransferring\\n * only happens when the pending owner claim the ownership\\n */\\n function transferOwnership(address newOwner, bool direct) public virtual onlyOwner {\\n require(newOwner != address(0), 'SafeOwnable: new owner is 0');\\n\\n if (direct) {\\n _transferOwnership(newOwner);\\n } else {\\n _transferPendingOwnership(newOwner);\\n }\\n }\\n\\n /**\\n * @dev pending owner call this function to claim ownership\\n */\\n function claimOwnership() public {\\n require(msg.sender == _pendingOwner, 'SafeOwnable: caller != pending');\\n\\n _claimOwnership();\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n address oldOwner = _owner;\\n _owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n\\n /**\\n * @dev set the pending owner address\\n * Internal function without access restriction.\\n */\\n function _transferPendingOwnership(address newOwner) internal virtual {\\n _pendingOwner = newOwner;\\n }\\n\\n /**\\n * @dev claim ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _claimOwnership() internal virtual {\\n address oldOwner = _owner;\\n emit OwnershipTransferred(oldOwner, _pendingOwner);\\n\\n _owner = _pendingOwner;\\n _pendingOwner = address(0);\\n }\\n}\\n\",\"keccak256\":\"0x79a077ba2b45d1a3b01f1b5b4537b1885deb03515c10dab1fe4d16536d4bf91b\",\"license\":\"GPL-3.0-only\"},\"contracts/access/SafeOwnableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\n// Refer to https://github.com/boringcrypto/BoringSolidity/blob/master/contracts/BoringOwnable.sol and https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable/blob/master/contracts/access/OwnableUpgradeable.sol\\n\\npragma solidity 0.8.15;\\n\\nimport '@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol';\\nimport '@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol';\\n\\ncontract SafeOwnableUpgradeable is Initializable, ContextUpgradeable {\\n address private _owner;\\n address private _pendingOwner;\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the deployer as the initial owner.\\n */\\n function __Ownable_init() internal onlyInitializing {\\n __Ownable_init_unchained();\\n }\\n\\n function __Ownable_init_unchained() internal onlyInitializing {\\n _transferOwnership(_msgSender());\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Return the address of the pending owner\\n */\\n function pendingOwner() public view virtual returns (address) {\\n return _pendingOwner;\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n require(owner() == _msgSender(), 'SafeOwnable: caller not owner');\\n _;\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions anymore. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby removing any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n * Note If direct is false, it will set an pending owner and the OwnerShipTransferring\\n * only happens when the pending owner claim the ownership\\n */\\n function transferOwnership(address newOwner, bool direct) public virtual onlyOwner {\\n require(newOwner != address(0), 'SafeOwnable: new owner is 0');\\n if (direct) {\\n _transferOwnership(newOwner);\\n } else {\\n _transferPendingOwnership(newOwner);\\n }\\n }\\n\\n /**\\n * @dev pending owner call this function to claim ownership\\n */\\n function claimOwnership() public {\\n require(msg.sender == _pendingOwner, 'SafeOwnable: caller != pending');\\n\\n _claimOwnership();\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n address oldOwner = _owner;\\n _owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n\\n /**\\n * @dev set the pending owner address\\n * Internal function without access restriction.\\n */\\n function _transferPendingOwnership(address newOwner) internal virtual {\\n _pendingOwner = newOwner;\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _claimOwnership() internal virtual {\\n address oldOwner = _owner;\\n emit OwnershipTransferred(oldOwner, _pendingOwner);\\n\\n _owner = _pendingOwner;\\n _pendingOwner = address(0);\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[48] private __gap;\\n}\\n\",\"keccak256\":\"0x8de5eb1e824cf860909d77028719522b6bcf5b4cb96293e7f95c2d1f4299147b\",\"license\":\"GPL-3.0-only\"},\"contracts/assetFactory/P12Asset.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\n\\npragma solidity 0.8.15;\\n\\nimport './interfaces/IP12Asset.sol';\\nimport '@openzeppelin/contracts/token/ERC1155/ERC1155.sol';\\nimport '../access/SafeOwnable.sol';\\n\\ncontract P12Asset is IP12Asset, ERC1155(''), SafeOwnable {\\n /**\\n * @dev contract-level metadata uri, refer to https://docs.opensea.io/docs/contract-level-metadata\\n */\\n string public contractURI;\\n\\n /**\\n * @dev current supply, how many a id are minted not.\\n */\\n mapping(uint256 => uint256) public supply;\\n\\n /**\\n * @dev max supply, a token id has a max supply cap\\n */\\n mapping(uint256 => uint256) public maxSupply;\\n /**\\n * @dev token id index, which will increase one by one\\n */\\n uint256 private idx = 0;\\n\\n // Mapping from token ID to account balances\\n mapping(uint256 => mapping(address => uint256)) private _balances;\\n\\n // metadata uri\\n mapping(uint256 => string) private _uri;\\n\\n constructor(string memory contractURI_) {\\n require(bytes(contractURI_).length != 0, 'P12Asset: empty contractURI');\\n contractURI = contractURI_;\\n }\\n\\n /**\\n * @dev developer create an new asset\\n * @param amount the new asset's totalSupply\\n * @param newUri metadata uri of the asset\\n * @return uint256 new asset's tokenId\\n */\\n\\n function create(uint256 amount, string calldata newUri) public override onlyOwner returns (uint256) {\\n // set tokenId totalSupply\\n maxSupply[idx] = amount;\\n // set metadata Uri\\n _setUri(idx, newUri);\\n // idx increment\\n idx += 1;\\n return idx - 1;\\n }\\n\\n /**\\n * @dev update token's metadata uri\\n * @param id tokenId\\n * @param newUri new uri\\n */\\n function setUri(uint256 id, string calldata newUri) public override onlyOwner {\\n _setUri(id, newUri);\\n }\\n\\n /**\\n * See {_mint}.\\n */\\n function mint(\\n address to,\\n uint256 id,\\n uint256 amount,\\n bytes memory data\\n ) public override onlyOwner {\\n require(id < idx, 'P12Asset: id is not valid');\\n require(amount + supply[id] <= maxSupply[id], 'P12Asset: exceed max supply');\\n _mint(to, id, amount, data);\\n supply[id] += amount;\\n }\\n\\n /**\\n * @dev return token metadata uri\\n * @param id token's id\\n * @return uri metadata uri\\n */\\n function uri(uint256 id) public view virtual override returns (string memory) {\\n require(id < idx, 'P12Asset: id not exist');\\n return _uri[id];\\n }\\n\\n /**\\n * @dev set contract-level MetaData\\n * @param newContractURI new Contract-level metadata uri\\n */\\n function setContractURI(string calldata newContractURI) public override onlyOwner {\\n require(bytes(newContractURI).length != 0, 'P12Asset: empty contractURI');\\n string memory oldContractURI = contractURI;\\n contractURI = newContractURI;\\n emit SetContractURI(oldContractURI, contractURI);\\n }\\n\\n /**\\n * @dev set token metadata uri\\n * @param id token id\\n * @param newUri metadata uri\\n */\\n function _setUri(uint256 id, string calldata newUri) private {\\n require(bytes(newUri).length != 0, 'P12Asset: empty uri');\\n require(id <= idx, 'P12Asset: id not exist');\\n _uri[id] = newUri;\\n emit SetUri(id, newUri);\\n }\\n}\\n\",\"keccak256\":\"0x8203ffd6208f5f8a02db2d1576cd597881ad65c853e274419d2ea5074c4578ff\",\"license\":\"GPL-3.0-only\"},\"contracts/assetFactory/P12AssetFactoryStorage.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\npragma solidity 0.8.15;\\n\\ncontract P12AssetFactoryStorage {\\n /**\\n @dev collection address => gameId\\n */\\n mapping(address => string) public registry;\\n\\n /**\\n * p12CoinFactory address, for reading game and developer relationship\\n */\\n address public p12CoinFactory;\\n\\n uint256[49] private __gap;\\n}\\n\",\"keccak256\":\"0xaf84dde4a7126d2988ff074a4be61e78c59b050f47528429f4d3002a60700ea5\",\"license\":\"GPL-3.0-only\"},\"contracts/assetFactory/P12AssetFactoryUpgradable.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\npragma solidity 0.8.15;\\n\\nimport '@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol';\\nimport '@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol';\\nimport '@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol';\\nimport '@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol';\\nimport '@openzeppelin/contracts/utils/cryptography/ECDSA.sol';\\nimport './P12Asset.sol';\\nimport '../factory/P12CoinFactoryUpgradeable.sol';\\nimport './interfaces/IP12AssetFactoryUpgradable.sol';\\nimport './P12AssetFactoryStorage.sol';\\nimport '../access/SafeOwnableUpgradeable.sol';\\n\\ncontract P12AssetFactoryUpgradable is\\n P12AssetFactoryStorage,\\n IP12AssetFactoryUpgradable,\\n ReentrancyGuardUpgradeable,\\n SafeOwnableUpgradeable,\\n PausableUpgradeable,\\n UUPSUpgradeable\\n{\\n // ============ External ============\\n\\n /**\\n @notice set new p12CoinFactory\\n @param newP12CoinFactory address of p12CoinFactory\\n */\\n function setP12CoinFactory(address newP12CoinFactory) external virtual override onlyOwner {\\n address oldP12Factory = p12CoinFactory;\\n require(newP12CoinFactory != address(0), 'P12AssetF: p12CoinFactory cannot be 0');\\n p12CoinFactory = newP12CoinFactory;\\n emit SetP12Factory(oldP12Factory, newP12CoinFactory);\\n }\\n\\n function pause() public onlyOwner {\\n _pause();\\n }\\n\\n function unpause() public onlyOwner {\\n _unpause();\\n }\\n\\n function initialize(address p12CoinFactory_) public initializer {\\n require(p12CoinFactory_ != address(0), 'P12AssetF: p12CoinFactory cannot be 0');\\n p12CoinFactory = p12CoinFactory_;\\n\\n __ReentrancyGuard_init_unchained();\\n __Pausable_init_unchained();\\n __Ownable_init_unchained();\\n }\\n\\n /**\\n * @dev create Collection\\n * @param gameId a off-chain game id\\n * @param contractURI contract-level metadata uri\\n */\\n function createCollection(string calldata gameId, string calldata contractURI)\\n public\\n override\\n onlyDeveloper(gameId)\\n whenNotPaused\\n {\\n P12Asset collection = new P12Asset(contractURI);\\n // record creator\\n registry[address(collection)] = gameId;\\n\\n emit CollectionCreated(address(collection), msg.sender);\\n }\\n\\n /**\\n * @dev create asset and mint to msg.sender address\\n * @param collection which collection want to create\\n * @param amount amount of asset\\n * @param uri new asset's metadata uri\\n */\\n function createAssetAndMint(\\n address collection,\\n uint256 amount,\\n string calldata uri\\n ) public override onlyCollectionDeveloper(collection) whenNotPaused nonReentrant {\\n // create\\n uint256 tokenId = P12Asset(collection).create(amount, uri);\\n // mint to developer address\\n P12Asset(collection).mint(msg.sender, tokenId, amount, new bytes(0));\\n\\n emit SftCreated(address(collection), tokenId, amount);\\n }\\n\\n /**\\n * @dev update Collection Uri\\n * @param collection collection address\\n * @param newUri new Contract-level metadata uri\\n */\\n function updateCollectionUri(address collection, string calldata newUri)\\n public\\n override\\n onlyCollectionDeveloper(collection)\\n whenNotPaused\\n {\\n P12Asset(collection).setContractURI(newUri);\\n }\\n\\n /**\\n * @dev update Sft Uri\\n * @param collection collection address\\n * @param tokenId token id\\n * @param newUri new metadata uri\\n */\\n function updateSftUri(\\n address collection,\\n uint256 tokenId,\\n string calldata newUri\\n ) public override onlyCollectionDeveloper(collection) whenNotPaused {\\n P12Asset(collection).setUri(tokenId, newUri);\\n }\\n\\n /** upgrade function */\\n function _authorizeUpgrade(address newImplementation) internal override onlyOwner {}\\n\\n modifier onlyDeveloper(string memory gameId) {\\n require(P12CoinFactoryUpgradeable(p12CoinFactory).allGames(gameId) == msg.sender, 'P12AssetF: not game developer');\\n _;\\n }\\n\\n modifier onlyCollectionDeveloper(address collection) {\\n require(\\n P12CoinFactoryUpgradeable(p12CoinFactory).allGames(registry[collection]) == msg.sender,\\n 'P12AssetF: not game developer'\\n );\\n _;\\n }\\n}\\n\",\"keccak256\":\"0xaaa1e4eecbf367401f6c664fd0f39eea8c7e0e6a639490ffb83e92bd264ab509\",\"license\":\"GPL-3.0-only\"},\"contracts/assetFactory/interfaces/IP12Asset.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\n\\npragma solidity 0.8.15;\\n\\ninterface IP12Asset {\\n /**\\n * @dev Update log of contract-level MetaData\\n */\\n event SetContractURI(string oldContractURI, string newContractURI);\\n\\n /**\\n * @dev log of token metadata uri\\n */\\n event SetUri(uint256 id, string uri);\\n\\n function create(uint256, string calldata) external returns (uint256);\\n\\n function mint(\\n address,\\n uint256,\\n uint256,\\n bytes memory\\n ) external;\\n\\n function setContractURI(string calldata) external;\\n\\n function setUri(uint256, string calldata) external;\\n}\\n\",\"keccak256\":\"0x53f7ed29d26934c4da607430036e641ea1bb8226e2ec59ea0c27711e7a75b124\",\"license\":\"GPL-3.0-only\"},\"contracts/assetFactory/interfaces/IP12AssetFactoryUpgradable.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\npragma solidity 0.8.15;\\n\\ninterface IP12AssetFactoryUpgradable {\\n /**\\n * @dev record a new Collection Created\\n */\\n event CollectionCreated(address indexed collection, address indexed developer);\\n\\n /**\\n * @dev record a new Sft created, sft is semi-fungible token, as it's in a ERC1155 contract\\n */\\n event SftCreated(address indexed collection, uint256 indexed tokenId, uint256 amount);\\n\\n event SetP12Factory(address oldP12Factory, address newP12Factory);\\n\\n function setP12CoinFactory(address newP12Factory) external;\\n\\n function createCollection(string calldata gameId, string calldata) external;\\n\\n function createAssetAndMint(\\n address,\\n uint256,\\n string calldata\\n ) external;\\n\\n function updateCollectionUri(address, string calldata) external;\\n\\n function updateSftUri(\\n address,\\n uint256,\\n string calldata\\n ) external;\\n}\\n\",\"keccak256\":\"0x1f2b33e89fa06f5ba1e20035865200b0b6147e090cd25a47d9d3a1fed6a65cdd\",\"license\":\"GPL-3.0-only\"},\"contracts/factory/P12CoinFactoryStorage.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\npragma solidity 0.8.15;\\n\\nimport '@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol';\\nimport '@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol';\\nimport '../staking/interfaces/IP12MineUpgradeable.sol';\\nimport '../staking/interfaces/IGaugeController.sol';\\nimport './interfaces/IP12GameCoin.sol';\\n\\ncontract P12CoinFactoryStorage {\\n /**\\n * @dev p12 ERC20 address\\n */\\n address public p12;\\n /**\\n * @dev uniswap v2 Router address\\n */\\n IUniswapV2Router02 public uniswapRouter;\\n /**\\n * @dev uniswap v2 Factory address\\n */\\n IUniswapV2Factory public uniswapFactory;\\n /**\\n * @dev length of cast delay time is a linear function of percentage of additional issues,\\n * @dev delayK and delayB is the linear function's parameter which could be changed later\\n */\\n uint256 public delayK;\\n uint256 public delayB;\\n\\n /**\\n * @dev a random hash value for calculate mintId\\n */\\n bytes32 internal _initHash;\\n\\n uint256 public addLiquidityEffectiveTime;\\n\\n /**\\n * @dev p12 staking contract\\n */\\n IP12MineUpgradeable public p12Mine;\\n\\n address public dev;\\n IGaugeController public gaugeController;\\n\\n uint256[40] private __gap;\\n\\n // gameId => developer address\\n mapping(string => address) public allGames;\\n // gameCoinAddress => gameId\\n mapping(IP12GameCoin => string) public allGameCoins;\\n // gameCoinAddress => declareMintId => MintCoinInfo\\n mapping(IP12GameCoin => mapping(bytes32 => MintCoinInfo)) public coinMintRecords;\\n // gameCoinAddress => declareMintId\\n mapping(IP12GameCoin => bytes32) public preMintIds;\\n\\n /**\\n * @dev struct of each mint request\\n */\\n struct MintCoinInfo {\\n uint256 amount;\\n uint256 unlockTimestamp;\\n bool executed;\\n }\\n}\\n\",\"keccak256\":\"0xc89afbdd4f16bcdade9265c13e15ac02d7fc818600fb229cca8182670f24a987\",\"license\":\"GPL-3.0-only\"},\"contracts/factory/P12CoinFactoryUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\npragma solidity 0.8.15;\\n\\nimport '@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol';\\nimport '@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol';\\nimport '@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol';\\nimport '@openzeppelin/contracts/token/ERC20/IERC20.sol';\\nimport '@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol';\\nimport '../access/SafeOwnableUpgradeable.sol';\\nimport '@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol';\\nimport '@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol';\\nimport '@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol';\\nimport '@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol';\\nimport './interfaces/IP12CoinFactoryUpgradeable.sol';\\nimport '../staking/interfaces/IP12MineUpgradeable.sol';\\nimport './P12CoinFactoryStorage.sol';\\nimport '../staking/interfaces/IGaugeController.sol';\\nimport './P12GameCoin.sol';\\nimport './interfaces/IP12GameCoin.sol';\\n\\ncontract P12CoinFactoryUpgradeable is\\n P12CoinFactoryStorage,\\n UUPSUpgradeable,\\n IP12CoinFactoryUpgradeable,\\n SafeOwnableUpgradeable,\\n ReentrancyGuardUpgradeable,\\n PausableUpgradeable\\n{\\n using SafeERC20Upgradeable for IERC20Upgradeable;\\n\\n //============ External ============\\n /**\\n * @dev set dev address\\n * @param newDev new dev address\\n */\\n function setDev(address newDev) external virtual override onlyOwner {\\n require(newDev != address(0), 'P12Factory: address cannot be 0');\\n address oldDev = dev;\\n dev = newDev;\\n emit SetDev(oldDev, newDev);\\n }\\n\\n /**\\n * @dev set p12mine contract address\\n * @param newP12Mine new p12mine address\\n */\\n function setP12Mine(IP12MineUpgradeable newP12Mine) external virtual override onlyOwner {\\n require(address(newP12Mine) != address(0), 'P12Factory: address cannot be 0');\\n IP12MineUpgradeable oldP12Mine = p12Mine;\\n p12Mine = newP12Mine;\\n emit SetP12Mine(oldP12Mine, newP12Mine);\\n }\\n\\n /**\\n * @dev set gaugeController contract address\\n * @param newGaugeController new gaugeController address\\n */\\n function setGaugeController(IGaugeController newGaugeController) external virtual override onlyOwner {\\n require(address(newGaugeController) != address(0), 'P12Factory: address cannot be 0');\\n IGaugeController oldGaugeController = gaugeController;\\n gaugeController = newGaugeController;\\n emit SetGaugeController(oldGaugeController, newGaugeController);\\n }\\n\\n /**\\n * @dev set p12Token address\\n * reserved only during development\\n * @param newP12Token new p12Token address\\n */\\n function setP12Token(address newP12Token) external virtual override onlyOwner {\\n require(newP12Token != address(0), 'P12Factory: address cannot be 0');\\n address oldP12Token = p12;\\n p12 = newP12Token;\\n emit SetP12Token(oldP12Token, newP12Token);\\n }\\n\\n /**\\n * @dev set uniswapFactory address\\n * reserved only during development\\n * @param newUniswapFactory new UniswapFactory address\\n */\\n function setUniswapFactory(IUniswapV2Factory newUniswapFactory) external virtual override onlyOwner {\\n require(address(newUniswapFactory) != address(0), 'P12Factory: address cannot be 0');\\n IUniswapV2Factory oldUniswapFactory = uniswapFactory;\\n uniswapFactory = newUniswapFactory;\\n emit SetUniswapFactory(oldUniswapFactory, newUniswapFactory);\\n }\\n\\n /**\\n * @dev set uniswapRouter address\\n * reserved only during development\\n * @param newUniswapRouter new uniswapRouter address\\n */\\n function setUniswapRouter(IUniswapV2Router02 newUniswapRouter) external virtual override onlyOwner {\\n require(address(newUniswapRouter) != address(0), 'P12Factory: address cannot be 0');\\n IUniswapV2Router02 oldUniswapRouter = uniswapRouter;\\n uniswapRouter = newUniswapRouter;\\n emit SetUniswapRouter(oldUniswapRouter, newUniswapRouter);\\n }\\n\\n /**\\n * @dev create binding between game and developer, only called by p12 backend\\n * @param gameId game id\\n * @param developer developer address, who own this game\\n */\\n function register(string memory gameId, address developer) external virtual override onlyDev {\\n require(developer != address(0), 'P12Factory: address cannot be 0');\\n allGames[gameId] = developer;\\n emit RegisterGame(gameId, developer);\\n }\\n\\n /**\\n * @dev developer first create their game coin\\n * @param name new game coin's name\\n * @param symbol game coin's symbol\\n * @param gameId the game's id\\n * @param gameCoinIconUrl game coin icon's url\\n * @param amountGameCoin how many coin first mint\\n * @param amountP12 how many P12 coin developer would stake\\n * @return gameCoinAddress the address of the new game coin\\n */\\n function create(\\n string memory name,\\n string memory symbol,\\n string memory gameId,\\n string memory gameCoinIconUrl,\\n uint256 amountGameCoin,\\n uint256 amountP12\\n ) external virtual override nonReentrant whenNotPaused returns (IP12GameCoin gameCoinAddress) {\\n require(msg.sender == allGames[gameId], 'P12Factory: no permit to create');\\n require(amountP12 > 0, 'P12Factory: not enough p12');\\n gameCoinAddress = _create(name, symbol, gameId, gameCoinIconUrl, amountGameCoin);\\n uint256 amountGameCoinDesired = amountGameCoin / 2;\\n\\n IERC20Upgradeable(p12).safeTransferFrom(msg.sender, address(this), amountP12);\\n\\n IERC20Upgradeable(address(gameCoinAddress)).safeApprove(address(uniswapRouter), amountGameCoinDesired);\\n\\n uint256 liquidity0;\\n (, , liquidity0) = uniswapRouter.addLiquidity(\\n p12,\\n address(gameCoinAddress),\\n amountP12,\\n amountGameCoinDesired,\\n amountP12,\\n amountGameCoinDesired,\\n address(p12Mine),\\n getBlockTimestamp() + addLiquidityEffectiveTime\\n );\\n //get pair contract address\\n address pair = uniswapFactory.getPair(p12, address(gameCoinAddress));\\n\\n // check address\\n require(pair != address(0), 'P12Factory: pair address error');\\n\\n // get lpToken value\\n uint256 liquidity1 = IUniswapV2Pair(pair).balanceOf(address(p12Mine));\\n require(liquidity0 == liquidity1, 'P12Factory: liquidities not =');\\n\\n // add pair address to Controller,100 is init weight\\n gaugeController.addGauge(pair, 0, 100);\\n\\n // create a new pool and add staking info\\n p12Mine.addLpTokenInfoForGameCreator(pair, liquidity1, msg.sender);\\n\\n allGameCoins[gameCoinAddress] = gameId;\\n emit CreateGameCoin(gameCoinAddress, gameId, amountP12);\\n return IP12GameCoin(gameCoinAddress);\\n }\\n\\n /**\\n * @dev if developer want to mint after create coin, developer must declare first\\n * @param gameId game's id\\n * @param gameCoinAddress game coin's address\\n * @param amountGameCoin how many developer want to mint\\n * @param success whether the operation success\\n */\\n function queueMintCoin(\\n string memory gameId,\\n IP12GameCoin gameCoinAddress,\\n uint256 amountGameCoin\\n ) external virtual override nonReentrant whenNotPaused returns (bool success) {\\n require(msg.sender == allGames[gameId], 'P12Factory: have no permission');\\n require(compareStrings(allGameCoins[gameCoinAddress], gameId), 'P12Factory: wrong game id');\\n // Set the correct unlock time\\n uint256 time;\\n uint256 currentTimestamp = getBlockTimestamp();\\n bytes32 _preMintId = preMintIds[gameCoinAddress];\\n uint256 lastUnlockTimestamp = coinMintRecords[gameCoinAddress][_preMintId].unlockTimestamp;\\n if (currentTimestamp >= lastUnlockTimestamp) {\\n time = currentTimestamp;\\n } else {\\n time = lastUnlockTimestamp;\\n }\\n\\n // minting fee for p12\\n uint256 p12Fee = getMintFee(gameCoinAddress, amountGameCoin);\\n\\n // transfer the p12 to this contract\\n IERC20Upgradeable(p12).safeTransferFrom(msg.sender, address(this), p12Fee);\\n\\n uint256 delayD = getMintDelay(gameCoinAddress, amountGameCoin);\\n\\n bytes32 mintId = _hashOperation(gameCoinAddress, msg.sender, amountGameCoin, time, _initHash);\\n coinMintRecords[gameCoinAddress][mintId] = MintCoinInfo(amountGameCoin, delayD + time, false);\\n\\n emit QueueMintCoin(mintId, gameCoinAddress, amountGameCoin, delayD + time, p12Fee);\\n\\n return true;\\n }\\n\\n /**\\n * @dev when time is up, anyone can call this function to make the mint executed\\n * @param gameCoinAddress address of the game coin\\n * @param mintId a unique id to identify a mint, developer can get it after declare\\n * @return bool whether the operation success\\n */\\n function executeMintCoin(IP12GameCoin gameCoinAddress, bytes32 mintId)\\n external\\n virtual\\n override\\n nonReentrant\\n whenNotPaused\\n returns (bool)\\n {\\n require(coinMintRecords[gameCoinAddress][mintId].unlockTimestamp != 0, 'P12Factory: non-existent mint');\\n // check if it has been executed\\n require(!coinMintRecords[gameCoinAddress][mintId].executed, 'P12Factory: mint executed');\\n\\n uint256 time = getBlockTimestamp();\\n\\n // check that the current time is greater than the unlock time\\n require(time > coinMintRecords[gameCoinAddress][mintId].unlockTimestamp, 'P12Factory: not time to mint');\\n\\n // Modify status\\n coinMintRecords[gameCoinAddress][mintId].executed = true;\\n\\n // transfer the gameCoin to this contract first\\n\\n IP12GameCoin(gameCoinAddress).mint(address(this), coinMintRecords[gameCoinAddress][mintId].amount);\\n\\n emit ExecuteMintCoin(mintId, gameCoinAddress, msg.sender);\\n\\n return true;\\n }\\n\\n /**\\n * @notice called when user want to withdraw his game coin from custodian address\\n * @param userAddress user's address\\n * @param gameCoinAddress gameCoin's address\\n * @param amountGameCoin how many user want to withdraw\\n */\\n function withdraw(\\n address userAddress,\\n IP12GameCoin gameCoinAddress,\\n uint256 amountGameCoin\\n ) external virtual override onlyDev returns (bool) {\\n IERC20Upgradeable(address(gameCoinAddress)).safeTransfer(userAddress, amountGameCoin);\\n emit Withdraw(userAddress, gameCoinAddress, amountGameCoin);\\n return true;\\n }\\n\\n //============ Public ============\\n function pause() public onlyOwner {\\n _pause();\\n }\\n\\n function unpause() public onlyOwner {\\n _unpause();\\n }\\n\\n function initialize(\\n address p12_,\\n IUniswapV2Factory uniswapFactory_,\\n IUniswapV2Router02 uniswapRouter_,\\n uint256 effectiveTime_,\\n bytes32 initHash_\\n ) public initializer {\\n require(p12_ != address(0), 'P12Mine: p12 token cannot be 0');\\n require(address(uniswapFactory_) != address(0), 'P12Mine: uniswapF cannot be 0');\\n require(address(uniswapRouter_) != address(0), 'P12Mine: uniswapR cannot be 0');\\n\\n p12 = p12_;\\n uniswapFactory = uniswapFactory_;\\n uniswapRouter = uniswapRouter_;\\n _initHash = initHash_;\\n addLiquidityEffectiveTime = effectiveTime_;\\n IERC20Upgradeable(p12).safeApprove(address(uniswapRouter), type(uint256).max);\\n __ReentrancyGuard_init_unchained();\\n __Pausable_init_unchained();\\n __Ownable_init_unchained();\\n }\\n\\n /**\\n * @dev set linear function's K parameter\\n * @param newDelayK new K parameter\\n */\\n function setDelayK(uint256 newDelayK) public virtual override onlyOwner returns (bool) {\\n uint256 oldDelayK = delayK;\\n delayK = newDelayK;\\n emit SetDelayK(oldDelayK, delayK);\\n return true;\\n }\\n\\n /**\\n * @dev set linear function's B parameter\\n * @param newDelayB new B parameter\\n */\\n function setDelayB(uint256 newDelayB) public virtual override onlyOwner returns (bool) {\\n uint256 oldDelayB = delayB;\\n delayB = newDelayB;\\n emit SetDelayB(oldDelayB, delayB);\\n return true;\\n }\\n\\n /**\\n * @dev calculate the MintFee in P12\\n */\\n function getMintFee(IP12GameCoin gameCoinAddress, uint256 amountGameCoin)\\n public\\n view\\n virtual\\n override\\n returns (uint256 amountP12)\\n {\\n uint256 gameCoinReserved;\\n uint256 p12Reserved;\\n if (p12 < address(gameCoinAddress)) {\\n (p12Reserved, gameCoinReserved, ) = IUniswapV2Pair(uniswapFactory.getPair(address(gameCoinAddress), p12)).getReserves();\\n } else {\\n (gameCoinReserved, p12Reserved, ) = IUniswapV2Pair(uniswapFactory.getPair(address(gameCoinAddress), p12)).getReserves();\\n }\\n\\n // overflow when p12Reserved * amountGameCoin > 2^256 ~= 10^77\\n amountP12 = (p12Reserved * amountGameCoin) / (gameCoinReserved * 100);\\n\\n return amountP12;\\n }\\n\\n /**\\n * @dev linear function to calculate the delay time\\n * @dev delayB is the minimum delay period, even someone mint zero token,\\n * @dev there still be delayB period before someone can really mint zero token\\n * @dev delayK is the parameter to take the ratio of new amount in to account\\n * @dev For example, the initial supply of Game Coin is 100k. If developer want\\n * @dev to mint 100k, developer needs to real mint it after `delayK + delayB`. If\\n * @dev developer want to mint 200k, developer has to real mint it after `2DelayK +\\n * @dev delayB`.\\n ^\\n t + /\\n | /\\n | /\\n 2k+b| /\\n | /\\n k+b| / \\n |/ \\n b|\\n 0----p---2p---------> amount\\n \\n */\\n function getMintDelay(IP12GameCoin gameCoinAddress, uint256 amountGameCoin)\\n public\\n view\\n virtual\\n override\\n returns (uint256 time)\\n {\\n time = (amountGameCoin * delayK) / (IP12GameCoin(gameCoinAddress).totalSupply()) + delayB;\\n return time;\\n }\\n\\n //============ Internal ============\\n\\n /**\\n * @dev function to create a game coin contract\\n * @param name game coin name\\n * @param symbol game coin symbol\\n * @param gameId game id\\n * @param gameCoinIconUrl game coin icon's url\\n * @param amountGameCoin how many for first mint\\n */\\n function _create(\\n string memory name,\\n string memory symbol,\\n string memory gameId,\\n string memory gameCoinIconUrl,\\n uint256 amountGameCoin\\n ) internal virtual returns (P12GameCoin gameCoinAddress) {\\n P12GameCoin gameCoin = new P12GameCoin(name, symbol, gameId, gameCoinIconUrl, amountGameCoin);\\n gameCoinAddress = gameCoin;\\n }\\n\\n /**\\n * @dev hash function to general mintId\\n * @param gameCoinAddress game coin address\\n * @param declarer address which declare to mint game coin\\n * @param amount how much to mint\\n * @param timestamp time when declare\\n * @param salt a random bytes32\\n * @return hash mintId\\n */\\n function _hashOperation(\\n IP12GameCoin gameCoinAddress,\\n address declarer,\\n uint256 amount,\\n uint256 timestamp,\\n bytes32 salt\\n ) internal virtual returns (bytes32 hash) {\\n bytes32 preMintId = preMintIds[gameCoinAddress];\\n\\n bytes32 preMintIdNew = keccak256(abi.encode(gameCoinAddress, declarer, amount, timestamp, preMintId, salt));\\n preMintIds[gameCoinAddress] = preMintIdNew;\\n return preMintIdNew;\\n }\\n\\n function _authorizeUpgrade(address newImplementation) internal override onlyOwner {}\\n\\n /**\\n * @dev get current block's timestamp\\n */\\n function getBlockTimestamp() internal view virtual returns (uint256) {\\n return block.timestamp;\\n }\\n\\n /**\\n * @dev compare two string and judge whether they are the same\\n */\\n function compareStrings(string memory a, string memory b) internal pure virtual returns (bool) {\\n return (keccak256(abi.encodePacked((a))) == keccak256(abi.encodePacked((b))));\\n }\\n\\n // ============= Modifier ================\\n modifier onlyDev() {\\n require(msg.sender == dev, 'P12Factory: caller must be dev');\\n _;\\n }\\n}\\n\",\"keccak256\":\"0x93977e6ae641e232d58f86e02060b0a064037e232b5999c0d08367eea71bb64f\",\"license\":\"GPL-3.0-only\"},\"contracts/factory/P12GameCoin.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\npragma solidity 0.8.15;\\n\\nimport '@openzeppelin/contracts/token/ERC20/ERC20.sol';\\nimport '../access/SafeOwnable.sol';\\nimport '@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol';\\nimport './interfaces/IP12GameCoin.sol';\\n\\ncontract P12GameCoin is IP12GameCoin, ERC20, ERC20Burnable, SafeOwnable {\\n /**\\n * @dev Off-chain data, game id\\n */\\n string public override gameId;\\n\\n /**\\n * @dev game coin's logo\\n */\\n string public override gameCoinIconUrl;\\n\\n /**\\n * @param name_ game coin name\\n * @param symbol_ game coin symbol\\n * @param gameId_ gameId\\n * @param gameCoinIconUrl_ game coin icon's url\\n * @param amount_ amount of first minting\\n */\\n constructor(\\n string memory name_,\\n string memory symbol_,\\n string memory gameId_,\\n string memory gameCoinIconUrl_,\\n uint256 amount_\\n ) ERC20(name_, symbol_) {\\n gameId = gameId_;\\n gameCoinIconUrl = gameCoinIconUrl_;\\n _mint(msg.sender, amount_);\\n }\\n\\n /**\\n * @dev mint function, the Owner will only be factory contract\\n * @param to address which receive newly-minted coin\\n * @param amount amount of the minting\\n */\\n function mint(address to, uint256 amount) public override onlyOwner {\\n _mint(to, amount);\\n }\\n\\n /**\\n * @dev transfer function for just a basic transfer with an off-chain account\\n * @dev called when a user want to deposit his coin from on-chain to off-chain\\n * @param recipient address which receive the coin, usually be custodian address\\n * @param account off-chain account\\n * @param amount amount of this transfer\\n */\\n function transferWithAccount(\\n address recipient,\\n string memory account,\\n uint256 amount\\n ) external override {\\n transfer(recipient, amount);\\n emit TransferWithAccount(recipient, account, amount);\\n }\\n}\\n\",\"keccak256\":\"0xb05dd717b90ecb6a673276122674b950e3e6462fbd80c66ad1c1b4042c471349\",\"license\":\"GPL-3.0-only\"},\"contracts/factory/interfaces/IP12CoinFactoryUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\npragma solidity 0.8.15;\\nimport '@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol';\\nimport '@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol';\\nimport '../../staking/interfaces/IP12MineUpgradeable.sol';\\nimport '../../staking/interfaces/IGaugeController.sol';\\nimport './IP12GameCoin.sol';\\n\\ninterface IP12CoinFactoryUpgradeable {\\n // register gameId =>developer\\n function register(string memory gameId, address developer) external;\\n\\n // mint game coin\\n function create(\\n string memory name,\\n string memory symbol,\\n string memory gameId,\\n string memory gameCoinIconUrl,\\n uint256 amountGameCoin,\\n uint256 amountP12\\n ) external returns (IP12GameCoin);\\n\\n // mint coin and Launch a statement\\n function queueMintCoin(\\n string memory gameId,\\n IP12GameCoin gameCoinAddress,\\n uint256 amountGameCoin\\n ) external returns (bool);\\n\\n // execute Mint coin\\n function executeMintCoin(IP12GameCoin gameCoinAddress, bytes32 mintId) external returns (bool);\\n\\n function withdraw(\\n address userAddress,\\n IP12GameCoin gameCoinAddress,\\n uint256 amountGameCoin\\n ) external returns (bool);\\n\\n function setDev(address newDev) external;\\n\\n function setP12Mine(IP12MineUpgradeable newP12Mine) external;\\n\\n function setGaugeController(IGaugeController newGaugeController) external;\\n\\n function setUniswapFactory(IUniswapV2Factory newUniswapFactory) external;\\n\\n function setUniswapRouter(IUniswapV2Router02 newUniswapRouter) external;\\n\\n function setP12Token(address newP12Token) external;\\n\\n // get mintFee\\n function getMintFee(IP12GameCoin gameCoinAddress, uint256 amountGameCoin) external view returns (uint256);\\n\\n // get mintDelay\\n function getMintDelay(IP12GameCoin gameCoinAddress, uint256 amountGameCoin) external view returns (uint256);\\n\\n // get delayK\\n function setDelayK(uint256 delayK) external returns (bool);\\n\\n // get delayB\\n function setDelayB(uint256 delayB) external returns (bool);\\n\\n // register Game developer log\\n event RegisterGame(string gameId, address indexed developer);\\n\\n // register Game coin log\\n event CreateGameCoin(IP12GameCoin indexed gameCoinAddress, string gameId, uint256 amountP12);\\n\\n // mint coin in future log\\n event QueueMintCoin(\\n bytes32 indexed mintId,\\n IP12GameCoin indexed gameCoinAddress,\\n uint256 mintAmount,\\n uint256 unlockTimestamp,\\n uint256 amountP12\\n );\\n\\n // mint coin success log\\n event ExecuteMintCoin(bytes32 indexed mintId, IP12GameCoin indexed gameCoinAddress, address indexed executor);\\n\\n // game player withdraw gameCoin\\n event Withdraw(address userAddress, IP12GameCoin gameCoinAddress, uint256 amountGameCoin);\\n\\n event SetDev(address oldDev, address newDev);\\n\\n // p12Mine and GaugeController address change log\\n event SetP12Mine(IP12MineUpgradeable oldP12Mine, IP12MineUpgradeable newP12Mine);\\n\\n event SetGaugeController(IGaugeController oldGaugeController, IGaugeController newGaugeController);\\n\\n // uniFactory and router address change log\\n event SetUniswapFactory(IUniswapV2Factory oldUniswapFactory, IUniswapV2Factory newUniswapFactory);\\n\\n event SetUniswapRouter(IUniswapV2Router02 oldUniswapRouter, IUniswapV2Router02 newUniswapRouter);\\n\\n event SetP12Token(address oldP12Token, address newP12Token);\\n\\n // change delayB log\\n event SetDelayB(uint256 oldDelayB, uint256 newDelayB);\\n\\n // change delayK log\\n event SetDelayK(uint256 oldDelayK, uint256 newDelayK);\\n}\\n\",\"keccak256\":\"0x742c2aaf18cb07cfd0e392e3a9586ca85c3d6c9bed41e0a77d37a3221c7d874e\",\"license\":\"GPL-3.0-only\"},\"contracts/factory/interfaces/IP12GameCoin.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\npragma solidity 0.8.15;\\nimport '@openzeppelin/contracts/token/ERC20/IERC20.sol';\\n\\ninterface IP12GameCoin is IERC20 {\\n /**\\n * @dev record the event that transfer coin with a off-chain account, which will be used when someone want to deposit his coin to off-chain game.\\n */\\n event TransferWithAccount(address recipient, string account, uint256 amount);\\n\\n function mint(address to, uint256 amount) external;\\n\\n function gameId() external view returns (string memory);\\n\\n function gameCoinIconUrl() external view returns (string memory);\\n\\n function transferWithAccount(\\n address recipient,\\n string memory account,\\n uint256 amount\\n ) external;\\n}\\n\",\"keccak256\":\"0xcd9f69bc5581492220eca0b3fcd5bcd8d4168d778df80b8726be5cd53020d646\",\"license\":\"GPL-3.0-only\"},\"contracts/staking/interfaces/IGaugeController.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\n\\npragma solidity 0.8.15;\\n\\nimport '../../token/interfaces/IVotingEscrow.sol';\\n\\ninterface IGaugeController {\\n event CommitOwnership(address admin);\\n\\n event ApplyOwnership(address admin);\\n\\n event AddType(string name, int128 typeId);\\n\\n event NewTypeWeight(int128 typeId, uint256 time, uint256 weight, uint256 totalWeight);\\n\\n event NewGaugeWeight(address gaugeAddress, uint256 time, uint256 weight, uint256 totalWeight);\\n\\n event VoteForGauge(uint256 time, address user, address gaugeAddress, uint256 weight);\\n\\n event NewGauge(address addr, int128 gaugeType, uint256 weight);\\n\\n event SetVotingEscrow(IVotingEscrow oldVotingEscrow, IVotingEscrow newVotingEscrow);\\n\\n event SetP12Factory(address oldP12Factory, address newP12Factory);\\n\\n function getGaugeTypes(address addr) external returns (int128);\\n\\n function checkpoint() external;\\n\\n function gaugeRelativeWeightWrite(address addr, uint256 time) external returns (uint256);\\n\\n function changeTypeWeight(int128 typeId, uint256 weight) external;\\n\\n function changeGaugeWeight(address addr, uint256 weight) external;\\n\\n function voteForGaugeWeights(address gaugeAddr, uint256 userWeight) external;\\n\\n function checkpointGauge(address addr) external;\\n\\n function gaugeRelativeWeight(address lpToken, uint256 time) external returns (uint256);\\n\\n function getGaugeWeight(address addr) external returns (uint256);\\n\\n function getTypeWeight(int128 typeId) external returns (uint256);\\n\\n function getTotalWeight() external returns (uint256);\\n\\n function getWeightsSumPerType(int128 typeId) external returns (uint256);\\n\\n function addGauge(\\n address addr,\\n int128 gaugeType,\\n uint256 weight\\n ) external;\\n\\n function addType(string memory name, uint256 weight) external;\\n\\n function setVotingEscrow(IVotingEscrow newVotingEscrow) external;\\n\\n function setP12CoinFactory(address newP12Factory) external;\\n}\\n\",\"keccak256\":\"0xf38a5b6d1b395e89a0b1d685ac8e7124debf96990552afbe1cd486ad8c726a0f\",\"license\":\"GPL-3.0-only\"},\"contracts/staking/interfaces/IP12MineUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\n\\npragma solidity 0.8.15;\\n\\nimport '../../token/interfaces/IVotingEscrow.sol';\\nimport './IGaugeController.sol';\\n\\ninterface IP12MineUpgradeable {\\n event Deposit(address indexed user, uint256 indexed pid, uint256 amount, uint256 userAmount, uint256 poolAmount); // deposit lpToken log\\n event ExecuteWithdraw(address indexed user, uint256 indexed pid,bytes32 indexed withdrawId, uint256 amount, uint256 userAmount, uint256 poolAmount); // withdraw lpToken log\\n event QueueWithdraw(\\n address indexed user,\\n uint256 pid,\\n uint256 indexed amount,\\n bytes32 indexed newWithdrawId,\\n uint256 unlockTimestamp\\n ); // delayed unStaking mining log\\n event Claim(address indexed user, uint256 amount); // get rewards\\n event SetDelayB(uint256 oldDelayB, uint256 newDelayB); // change delayB log\\n event SetDelayK(uint256 oldDelayK, uint256 newDelayK); // change delayK log\\n event SetRate(uint256 oldRate, uint256 newRate); // set new rate\\n event SetP12Factory(address oldP12Factory, address newP12Factory);\\n event SetGaugeController(IGaugeController oldGaugeController, IGaugeController newGaugeController);\\n event WithdrawLpTokenEmergency(address lpToken, uint256 amount);\\n\\n event Emergency(address executor, uint256 emergencyUnlockTime);\\n event Checkpoint(address indexed lpToken, uint256 indexed poolAmount, uint256 accP12PerShare);\\n\\n function poolLength() external returns (uint256);\\n\\n function getPid(address lpToken) external returns (uint256);\\n\\n function getUserLpBalance(address lpToken, address user) external returns (uint256);\\n\\n function checkpointAll() external;\\n\\n function getWithdrawUnlockTimestamp(address lpToken, uint256 amount) external returns (uint256);\\n\\n function withdrawEmergency() external;\\n\\n function withdrawLpTokenEmergency(address lpToken) external;\\n\\n function withdrawAllLpTokenEmergency() external;\\n\\n function emergency() external;\\n\\n function createPool(address lpToken) external; // new pool\\n\\n function setDelayK(uint256 delayK) external returns (bool);\\n\\n function setDelayB(uint256 delayB) external returns (bool);\\n\\n function deposit(address lpToken, uint256 amount) external; // deposit lpToken\\n\\n function setRate(uint256 newRate) external returns (bool);\\n\\n function setP12CoinFactory(address newP12Factory) external;\\n\\n function setGaugeController(IGaugeController newGaugeController) external;\\n\\n function executeWithdraw(address lpToken, bytes32 id) external; // withdraw lpToken\\n\\n function queueWithdraw(address lpToken, uint256 amount) external; // delayed unStaking mining\\n\\n function addLpTokenInfoForGameCreator(\\n address lpToken,\\n uint256 amount,\\n address gameCoinCreator\\n ) external; // add lpToken info for gameCoin creator when first time\\n\\n function claim(address lpToken) external returns (uint256); // get pending rewards\\n\\n function claimAll() external returns (uint256); // get all pending rewards\\n\\n function checkpoint(address lpToken) external ;\\n}\\n\",\"keccak256\":\"0xefcf97e25549cfc6abc0f3d3a381cc416e3b8a40cd8f31bb4c1617231d6fdf66\",\"license\":\"GPL-3.0-only\"},\"contracts/token/interfaces/IVotingEscrow.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\n\\npragma solidity 0.8.15;\\n\\ninterface IVotingEscrow {\\n function getLastUserSlope(address addr) external returns (int256);\\n\\n function lockedEnd(address addr) external returns (uint256);\\n}\\n\",\"keccak256\":\"0x5b86f26484c0360029da65eb81b461fb0ec612c4ff3290dc82f5396b5733c6b9\",\"license\":\"GPL-3.0-only\"}},\"version\":1}", + "bytecode": "0x60a06040523060805234801561001457600080fd5b5060805161441361004c6000396000818161062b0152818161066e01528181610a3c01528181610a7f0152610b1b01526144136000f3fe6080604052600436106200012b5760003560e01c806352d1902d11620000ad5780638da5cb5b116200006c5780638da5cb5b1462000326578063b242e5341462000346578063c4d66de8146200036b578063d5bc3ab11462000390578063e30c397814620003b557600080fd5b806352d1902d14620002855780635c975abb14620002ac578063715018a614620002d15780637e183ba014620002e95780638456cb59146200030e57600080fd5b80633f4ba83a11620000fa5780633f4ba83a14620001f4578063408a908f146200020c578063422cf3fe14620002315780634e71e0c814620002565780634f1ef286146200026e57600080fd5b8063038defd71462000130578063176b9b75146200016d5780633659cfe614620001945780633cd784f114620001b9575b600080fd5b3480156200013d57600080fd5b50620001556200014f366004620017a7565b620003d5565b60405162000164919062001824565b60405180910390f35b3480156200017a57600080fd5b50620001926200018c36600462001885565b62000477565b005b348015620001a157600080fd5b5062000192620001b3366004620017a7565b62000621565b348015620001c657600080fd5b50600154620001db906001600160a01b031681565b6040516001600160a01b03909116815260200162000164565b3480156200020157600080fd5b50620001926200070c565b3480156200021957600080fd5b50620001926200022b366004620018f8565b62000745565b3480156200023e57600080fd5b5062000192620002503660046200194e565b6200088a565b3480156200026357600080fd5b5062000192620009cc565b620001926200027f366004620019bf565b62000a32565b3480156200029257600080fd5b506200029d62000b0e565b60405190815260200162000164565b348015620002b957600080fd5b5060ca5460ff16604051901515815260200162000164565b348015620002de57600080fd5b506200019262000bc4565b348015620002f657600080fd5b506200019262000308366004620017a7565b62000bfd565b3480156200031b57600080fd5b506200019262000cb9565b3480156200033357600080fd5b506098546001600160a01b0316620001db565b3480156200035357600080fd5b50620001926200036536600462001a8f565b62000cf0565b3480156200037857600080fd5b50620001926200038a366004620017a7565b62000da6565b3480156200039d57600080fd5b5062000192620003af366004620018f8565b62000ec7565b348015620003c257600080fd5b506099546001600160a01b0316620001db565b60006020819052908152604090208054620003f09062001ad1565b80601f01602080910402602001604051908101604052809291908181526020018280546200041e9062001ad1565b80156200046f5780601f1062000443576101008083540402835291602001916200046f565b820191906000526020600020905b8154815290600101906020018083116200045157829003601f168201915b505050505081565b83838080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505060015460405163cad2efad60e01b81523393506001600160a01b03909116915063cad2efad90620004e190859060040162001824565b602060405180830381865afa158015620004ff573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000525919062001b0d565b6001600160a01b031614620005575760405162461bcd60e51b81526004016200054e9062001b2d565b60405180910390fd5b60ca5460ff16156200057d5760405162461bcd60e51b81526004016200054e9062001b64565b600083836040516200058f9062001783565b6200059c92919062001bb7565b604051809103906000f080158015620005b9573d6000803e3d6000fd5b506001600160a01b0381166000908152602081905260409020909150620005e286888362001c27565b5060405133906001600160a01b038316907f5d0de243db1669e3a7056744cd715c625f0c1c348736c2c2d53d0ddebff1a6c790600090a3505050505050565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036200066c5760405162461bcd60e51b81526004016200054e9062001cf5565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316620006b760008051602062004397833981519152546001600160a01b031690565b6001600160a01b031614620006e05760405162461bcd60e51b81526004016200054e9062001d41565b620006eb816200113d565b6040805160008082526020820190925262000709918391906200116a565b50565b6098546001600160a01b03163314620007395760405162461bcd60e51b81526004016200054e9062001d8d565b62000743620012e7565b565b6001546001600160a01b0380861660009081526020819052604090819020905163cad2efad60e01b815287933393169163cad2efad916200078a919060040162001dc4565b602060405180830381865afa158015620007a8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620007ce919062001b0d565b6001600160a01b031614620007f75760405162461bcd60e51b81526004016200054e9062001b2d565b60ca5460ff16156200081d5760405162461bcd60e51b81526004016200054e9062001b64565b604051633c17845760e11b81526001600160a01b0386169063782f08ae906200084f9087908790879060040162001e57565b600060405180830381600087803b1580156200086a57600080fd5b505af11580156200087f573d6000803e3d6000fd5b505050505050505050565b6001546001600160a01b0380851660009081526020819052604090819020905163cad2efad60e01b815286933393169163cad2efad91620008cf919060040162001dc4565b602060405180830381865afa158015620008ed573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000913919062001b0d565b6001600160a01b0316146200093c5760405162461bcd60e51b81526004016200054e9062001b2d565b60ca5460ff1615620009625760405162461bcd60e51b81526004016200054e9062001b64565b60405163938e3d7b60e01b81526001600160a01b0385169063938e3d7b9062000992908690869060040162001bb7565b600060405180830381600087803b158015620009ad57600080fd5b505af1158015620009c2573d6000803e3d6000fd5b5050505050505050565b6099546001600160a01b0316331462000a285760405162461bcd60e51b815260206004820152601e60248201527f536166654f776e61626c653a2063616c6c657220213d2070656e64696e67000060448201526064016200054e565b620007436200137c565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016300362000a7d5760405162461bcd60e51b81526004016200054e9062001cf5565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031662000ac860008051602062004397833981519152546001600160a01b031690565b6001600160a01b03161462000af15760405162461bcd60e51b81526004016200054e9062001d41565b62000afc826200113d565b62000b0a828260016200116a565b5050565b6000306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161462000bb05760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c000000000000000060648201526084016200054e565b506000805160206200439783398151915290565b6098546001600160a01b0316331462000bf15760405162461bcd60e51b81526004016200054e9062001d8d565b620007436000620013e5565b6098546001600160a01b0316331462000c2a5760405162461bcd60e51b81526004016200054e9062001d8d565b6001546001600160a01b0390811690821662000c5a5760405162461bcd60e51b81526004016200054e9062001e73565b600180546001600160a01b0319166001600160a01b0384811691821790925560408051928416835260208301919091527fb5004c6dd32173c6ee128faa447de600665c96ba213f764d94599ca5ceda78b1910160405180910390a15050565b6098546001600160a01b0316331462000ce65760405162461bcd60e51b81526004016200054e9062001d8d565b6200074362001437565b6098546001600160a01b0316331462000d1d5760405162461bcd60e51b81526004016200054e9062001d8d565b6001600160a01b03821662000d755760405162461bcd60e51b815260206004820152601b60248201527f536166654f776e61626c653a206e6577206f776e65722069732030000000000060448201526064016200054e565b801562000d875762000b0a82620013e5565b609980546001600160a01b0319166001600160a01b0384161790555050565b603354610100900460ff1662000dc35760335460ff161562000dc7565b303b155b62000e2c5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016200054e565b603354610100900460ff1615801562000e4f576033805461ffff19166101011790555b6001600160a01b03821662000e785760405162461bcd60e51b81526004016200054e9062001e73565b600180546001600160a01b0319166001600160a01b03841617905562000e9d62001493565b62000ea7620014c4565b62000eb1620014fa565b801562000b0a576033805461ff00191690555050565b6001546001600160a01b0380861660009081526020819052604090819020905163cad2efad60e01b815287933393169163cad2efad9162000f0c919060040162001dc4565b602060405180830381865afa15801562000f2a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000f50919062001b0d565b6001600160a01b03161462000f795760405162461bcd60e51b81526004016200054e9062001b2d565b60ca5460ff161562000f9f5760405162461bcd60e51b81526004016200054e9062001b64565b60026034540362000ff35760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016200054e565b6002603455604051630118fa4960e01b81526000906001600160a01b03871690630118fa49906200102d9088908890889060040162001e57565b6020604051808303816000875af11580156200104d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062001073919062001eb8565b6040805160008152602081019182905263731133e960e01b9091529091506001600160a01b0387169063731133e990620010b790339085908a906024810162001ed2565b600060405180830381600087803b158015620010d257600080fd5b505af1158015620010e7573d6000803e3d6000fd5b5050505080866001600160a01b03167f58be1f766b329e9aa34f854f3b08451e86df3ddc1043743469ed3fa3205984db876040516200112891815260200190565b60405180910390a35050600160345550505050565b6098546001600160a01b03163314620007095760405162461bcd60e51b81526004016200054e9062001d8d565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff1615620011a557620011a0836200152f565b505050565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801562001202575060408051601f3d908101601f19168201909252620011ff9181019062001eb8565b60015b620012675760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b60648201526084016200054e565b600080516020620043978339815191528114620012d95760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b60648201526084016200054e565b50620011a0838383620015ce565b60ca5460ff16620013325760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016200054e565b60ca805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6098546099546040516001600160a01b03928316929091169082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35060998054609880546001600160a01b03199081166001600160a01b03841617909155169055565b609880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60ca5460ff16156200145d5760405162461bcd60e51b81526004016200054e9062001b64565b60ca805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586200135f3390565b603354610100900460ff16620014bd5760405162461bcd60e51b81526004016200054e9062001f0b565b6001603455565b603354610100900460ff16620014ee5760405162461bcd60e51b81526004016200054e9062001f0b565b60ca805460ff19169055565b603354610100900460ff16620015245760405162461bcd60e51b81526004016200054e9062001f0b565b6200074333620013e5565b6001600160a01b0381163b6200159e5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084016200054e565b6000805160206200439783398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b620015d983620015ff565b600082511180620015e75750805b15620011a057620015f9838362001641565b50505050565b6200160a816200152f565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606001600160a01b0383163b620016ab5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084016200054e565b600080846001600160a01b031684604051620016c8919062001f56565b600060405180830381855af49150503d806000811462001705576040519150601f19603f3d011682016040523d82523d6000602084013e6200170a565b606091505b5091509150620017358282604051806060016040528060278152602001620043b7602791396200173e565b95945050505050565b606083156200174f5750816200177c565b825115620017605782518084602001fd5b8160405162461bcd60e51b81526004016200054e919062001824565b9392505050565b6124228062001f7583390190565b6001600160a01b03811681146200070957600080fd5b600060208284031215620017ba57600080fd5b81356200177c8162001791565b60005b83811015620017e4578181015183820152602001620017ca565b83811115620015f95750506000910152565b6000815180845262001810816020860160208601620017c7565b601f01601f19169290920160200192915050565b6020815260006200177c6020830184620017f6565b60008083601f8401126200184c57600080fd5b50813567ffffffffffffffff8111156200186557600080fd5b6020830191508360208285010111156200187e57600080fd5b9250929050565b600080600080604085870312156200189c57600080fd5b843567ffffffffffffffff80821115620018b557600080fd5b620018c38883890162001839565b90965094506020870135915080821115620018dd57600080fd5b50620018ec8782880162001839565b95989497509550505050565b600080600080606085870312156200190f57600080fd5b84356200191c8162001791565b935060208501359250604085013567ffffffffffffffff8111156200194057600080fd5b620018ec8782880162001839565b6000806000604084860312156200196457600080fd5b8335620019718162001791565b9250602084013567ffffffffffffffff8111156200198e57600080fd5b6200199c8682870162001839565b9497909650939450505050565b634e487b7160e01b600052604160045260246000fd5b60008060408385031215620019d357600080fd5b8235620019e08162001791565b9150602083013567ffffffffffffffff80821115620019fe57600080fd5b818501915085601f83011262001a1357600080fd5b81358181111562001a285762001a28620019a9565b604051601f8201601f19908116603f0116810190838211818310171562001a535762001a53620019a9565b8160405282815288602084870101111562001a6d57600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b6000806040838503121562001aa357600080fd5b823562001ab08162001791565b91506020830135801515811462001ac657600080fd5b809150509250929050565b600181811c9082168062001ae657607f821691505b60208210810362001b0757634e487b7160e01b600052602260045260246000fd5b50919050565b60006020828403121562001b2057600080fd5b81516200177c8162001791565b6020808252601d908201527f5031324173736574463a206e6f742067616d6520646576656c6f706572000000604082015260600190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b60208152600062001bcd60208301848662001b8e565b949350505050565b601f821115620011a057600081815260208120601f850160051c8101602086101562001bfe5750805b601f850160051c820191505b8181101562001c1f5782815560010162001c0a565b505050505050565b67ffffffffffffffff83111562001c425762001c42620019a9565b62001c5a8362001c53835462001ad1565b8362001bd5565b6000601f84116001811462001c91576000851562001c785750838201355b600019600387901b1c1916600186901b17835562001cee565b600083815260209020601f19861690835b8281101562001cc4578685013582556020948501946001909201910162001ca2565b508682101562001ce25760001960f88860031b161c19848701351681555b505060018560011b0183555b5050505050565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b6020808252601d908201527f536166654f776e61626c653a2063616c6c6572206e6f74206f776e6572000000604082015260600190565b600060208083526000845462001dda8162001ad1565b8084870152604060018084166000811462001dfe576001811462001e195762001e49565b60ff1985168984015283151560051b89018301955062001e49565b896000528660002060005b8581101562001e415781548b820186015290830190880162001e24565b8a0184019650505b509398975050505050505050565b8381526040602082015260006200173560408301848662001b8e565b60208082526025908201527f5031324173736574463a20703132436f696e466163746f72792063616e6e6f74604082015264020626520360dc1b606082015260800190565b60006020828403121562001ecb57600080fd5b5051919050565b60018060a01b038516815283602082015282604082015260806060820152600062001f016080830184620017f6565b9695505050505050565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b6000825162001f6a818460208701620017c7565b919091019291505056fe608060405260006008553480156200001657600080fd5b506040516200242238038062002422833981016040819052620000399162000145565b6040805160208101909152600081526200005381620000cb565b506200005f33620000dd565b8051600003620000b55760405162461bcd60e51b815260206004820152601b60248201527f50313241737365743a20656d70747920636f6e74726163745552490000000000604482015260640160405180910390fd5b6005620000c38282620002b0565b50506200037c565b6002620000d98282620002b0565b5050565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600060208083850312156200015957600080fd5b82516001600160401b03808211156200017157600080fd5b818501915085601f8301126200018657600080fd5b8151818111156200019b576200019b6200012f565b604051601f8201601f19908116603f01168101908382118183101715620001c657620001c66200012f565b816040528281528886848701011115620001df57600080fd5b600093505b82841015620002035784840186015181850187015292850192620001e4565b82841115620002155760008684830101525b98975050505050505050565b600181811c908216806200023657607f821691505b6020821081036200025757634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620002ab57600081815260208120601f850160051c81016020861015620002865750805b601f850160051c820191505b81811015620002a75782815560010162000292565b5050505b505050565b81516001600160401b03811115620002cc57620002cc6200012f565b620002e481620002dd845462000221565b846200025d565b602080601f8311600181146200031c5760008415620003035750858301515b600019600386901b1c1916600185901b178555620002a7565b600085815260208120601f198616915b828110156200034d578886015182559484019460019091019084016200032c565b50858210156200036c5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b612096806200038c6000396000f3fe608060405234801561001057600080fd5b506004361061012b5760003560e01c8063782f08ae116100ad578063b242e53411610071578063b242e534146102a2578063e30c3978146102b5578063e8a3d485146102c6578063e985e9c5146102ce578063f242432a1461030a57600080fd5b8063782f08ae14610224578063869f7594146102375780638da5cb5b14610257578063938e3d7b1461027c578063a22cb4651461028f57600080fd5b806335403023116100f457806335403023146101c15780634e1273f4146101e15780634e71e0c814610201578063715018a614610209578063731133e91461021157600080fd5b8062fdd58e146101305780630118fa491461015657806301ffc9a7146101695780630e89341c1461018c5780632eb2c2d6146101ac575b600080fd5b61014361013e36600461154a565b61031d565b6040519081526020015b60405180910390f35b6101436101643660046115bc565b6103b4565b61017c610177366004611620565b610431565b604051901515815260200161014d565b61019f61019a366004611644565b610483565b60405161014d91906116aa565b6101bf6101ba366004611806565b61056d565b005b6101436101cf366004611644565b60066020526000908152604090205481565b6101f46101ef3660046118af565b610604565b60405161014d91906119b4565b6101bf61072d565b6101bf610791565b6101bf61021f3660046119c7565b6107c5565b6101bf6102323660046115bc565b6108e8565b610143610245366004611644565b60076020526000908152604090205481565b6003546001600160a01b03165b6040516001600160a01b03909116815260200161014d565b6101bf61028a366004611a27565b610922565b6101bf61029d366004611a68565b610a7d565b6101bf6102b0366004611a68565b610a8c565b6004546001600160a01b0316610264565b61019f610b3a565b61017c6102dc366004611aa4565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b6101bf610318366004611ad7565b610bc8565b60006001600160a01b03831661038e5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b6003546000906001600160a01b031633146103e15760405162461bcd60e51b815260040161038590611b3b565b60088054600090815260076020526040902085905554610402908484610c4f565b6001600860008282546104159190611b88565b909155505060085461042990600190611ba0565b949350505050565b60006001600160e01b03198216636cdb3d1360e11b148061046257506001600160e01b031982166303a24d0760e21b145b8061047d57506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060085482106104cf5760405162461bcd60e51b8152602060048201526016602482015275140c4c905cdcd95d0e881a59081b9bdd08195e1a5cdd60521b6044820152606401610385565b6000828152600a6020526040902080546104e890611bb7565b80601f016020809104026020016040519081016040528092919081815260200182805461051490611bb7565b80156105615780601f1061053657610100808354040283529160200191610561565b820191906000526020600020905b81548152906001019060200180831161054457829003601f168201915b50505050509050919050565b6001600160a01b038516331480610589575061058985336102dc565b6105f05760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610385565b6105fd8585858585610d2e565b5050505050565b606081518351146106695760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610385565b600083516001600160401b03811115610684576106846116bd565b6040519080825280602002602001820160405280156106ad578160200160208202803683370190505b50905060005b8451811015610725576106f88582815181106106d1576106d1611bf1565b60200260200101518583815181106106eb576106eb611bf1565b602002602001015161031d565b82828151811061070a5761070a611bf1565b602090810291909101015261071e81611c07565b90506106b3565b509392505050565b6004546001600160a01b031633146107875760405162461bcd60e51b815260206004820152601e60248201527f536166654f776e61626c653a2063616c6c657220213d2070656e64696e6700006044820152606401610385565b61078f610f0b565b565b6003546001600160a01b031633146107bb5760405162461bcd60e51b815260040161038590611b3b565b61078f6000610f74565b6003546001600160a01b031633146107ef5760405162461bcd60e51b815260040161038590611b3b565b60085483106108405760405162461bcd60e51b815260206004820152601960248201527f50313241737365743a206964206973206e6f742076616c6964000000000000006044820152606401610385565b6000838152600760209081526040808320546006909252909120546108659084611b88565b11156108b35760405162461bcd60e51b815260206004820152601b60248201527f50313241737365743a20657863656564206d617820737570706c7900000000006044820152606401610385565b6108bf84848484610fc6565b600083815260066020526040812080548492906108dd908490611b88565b909155505050505050565b6003546001600160a01b031633146109125760405162461bcd60e51b815260040161038590611b3b565b61091d838383610c4f565b505050565b6003546001600160a01b0316331461094c5760405162461bcd60e51b815260040161038590611b3b565b600081900361099d5760405162461bcd60e51b815260206004820152601b60248201527f50313241737365743a20656d70747920636f6e747261637455524900000000006044820152606401610385565b6000600580546109ac90611bb7565b80601f01602080910402602001604051908101604052809291908181526020018280546109d890611bb7565b8015610a255780601f106109fa57610100808354040283529160200191610a25565b820191906000526020600020905b815481529060010190602001808311610a0857829003601f168201915b50505050509050828260059182610a3d929190611c66565b507f89e5b6f07571941ef88c704155a3557ef26b4fd73f9c2c18294de8e767dda34d816005604051610a70929190611d25565b60405180910390a1505050565b610a883383836110d0565b5050565b6003546001600160a01b03163314610ab65760405162461bcd60e51b815260040161038590611b3b565b6001600160a01b038216610b0c5760405162461bcd60e51b815260206004820152601b60248201527f536166654f776e61626c653a206e6577206f776e6572206973203000000000006044820152606401610385565b8015610b1b57610a8882610f74565b600480546001600160a01b0319166001600160a01b0384161790555050565b60058054610b4790611bb7565b80601f0160208091040260200160405190810160405280929190818152602001828054610b7390611bb7565b8015610bc05780601f10610b9557610100808354040283529160200191610bc0565b820191906000526020600020905b815481529060010190602001808311610ba357829003601f168201915b505050505081565b6001600160a01b038516331480610be45750610be485336102dc565b610c425760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b6064820152608401610385565b6105fd85858585856111b0565b6000819003610c965760405162461bcd60e51b815260206004820152601360248201527250313241737365743a20656d7074792075726960681b6044820152606401610385565b600854831115610ce15760405162461bcd60e51b8152602060048201526016602482015275140c4c905cdcd95d0e881a59081b9bdd08195e1a5cdd60521b6044820152606401610385565b6000838152600a60205260409020610cfa828483611c66565b507fcb8a581c366c006d079f78b3f29b10e2bf252c6a9df7fb60286aa83c09bbd0b1838383604051610a7093929190611dc0565b8151835114610d905760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608401610385565b6001600160a01b038416610db65760405162461bcd60e51b815260040161038590611df6565b3360005b8451811015610e9d576000858281518110610dd757610dd7611bf1565b602002602001015190506000858381518110610df557610df5611bf1565b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015610e455760405162461bcd60e51b815260040161038590611e3b565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290610e82908490611b88565b9250508190555050505080610e9690611c07565b9050610dba565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051610eed929190611e85565b60405180910390a4610f038187878787876112cd565b505050505050565b6003546004546040516001600160a01b03928316929091169082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35060048054600380546001600160a01b03199081166001600160a01b03841617909155169055565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0384166110265760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610385565b336110408160008761103788611428565b6105fd88611428565b6000848152602081815260408083206001600160a01b038916845290915281208054859290611070908490611b88565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46105fd81600087878787611473565b816001600160a01b0316836001600160a01b0316036111435760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610385565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0384166111d65760405162461bcd60e51b815260040161038590611df6565b336111e681878761103788611428565b6000848152602081815260408083206001600160a01b038a168452909152902054838110156112275760405162461bcd60e51b815260040161038590611e3b565b6000858152602081815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290611264908490611b88565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46112c4828888888888611473565b50505050505050565b6001600160a01b0384163b15610f035760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906113119089908990889088908890600401611eb3565b6020604051808303816000875af192505050801561134c575060408051601f3d908101601f1916820190925261134991810190611f11565b60015b6113f857611358611f2e565b806308c379a003611391575061136c611f4a565b806113775750611393565b8060405162461bcd60e51b815260040161038591906116aa565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610385565b6001600160e01b0319811663bc197c8160e01b146112c45760405162461bcd60e51b815260040161038590611fd3565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061146257611462611bf1565b602090810291909101015292915050565b6001600160a01b0384163b15610f035760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906114b7908990899088908890889060040161201b565b6020604051808303816000875af19250505080156114f2575060408051601f3d908101601f191682019092526114ef91810190611f11565b60015b6114fe57611358611f2e565b6001600160e01b0319811663f23a6e6160e01b146112c45760405162461bcd60e51b815260040161038590611fd3565b80356001600160a01b038116811461154557600080fd5b919050565b6000806040838503121561155d57600080fd5b6115668361152e565b946020939093013593505050565b60008083601f84011261158657600080fd5b5081356001600160401b0381111561159d57600080fd5b6020830191508360208285010111156115b557600080fd5b9250929050565b6000806000604084860312156115d157600080fd5b8335925060208401356001600160401b038111156115ee57600080fd5b6115fa86828701611574565b9497909650939450505050565b6001600160e01b03198116811461161d57600080fd5b50565b60006020828403121561163257600080fd5b813561163d81611607565b9392505050565b60006020828403121561165657600080fd5b5035919050565b6000815180845260005b8181101561168357602081850181015186830182015201611667565b81811115611695576000602083870101525b50601f01601f19169290920160200192915050565b60208152600061163d602083018461165d565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b03811182821017156116f8576116f86116bd565b6040525050565b60006001600160401b03821115611718576117186116bd565b5060051b60200190565b600082601f83011261173357600080fd5b81356020611740826116ff565b60405161174d82826116d3565b83815260059390931b850182019282810191508684111561176d57600080fd5b8286015b848110156117885780358352918301918301611771565b509695505050505050565b600082601f8301126117a457600080fd5b81356001600160401b038111156117bd576117bd6116bd565b6040516117d4601f8301601f1916602001826116d3565b8181528460208386010111156117e957600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a0868803121561181e57600080fd5b6118278661152e565b94506118356020870161152e565b935060408601356001600160401b038082111561185157600080fd5b61185d89838a01611722565b9450606088013591508082111561187357600080fd5b61187f89838a01611722565b9350608088013591508082111561189557600080fd5b506118a288828901611793565b9150509295509295909350565b600080604083850312156118c257600080fd5b82356001600160401b03808211156118d957600080fd5b818501915085601f8301126118ed57600080fd5b813560206118fa826116ff565b60405161190782826116d3565b83815260059390931b850182019282810191508984111561192757600080fd5b948201945b8386101561194c5761193d8661152e565b8252948201949082019061192c565b9650508601359250508082111561196257600080fd5b5061196f85828601611722565b9150509250929050565b600081518084526020808501945080840160005b838110156119a95781518752958201959082019060010161198d565b509495945050505050565b60208152600061163d6020830184611979565b600080600080608085870312156119dd57600080fd5b6119e68561152e565b9350602085013592506040850135915060608501356001600160401b03811115611a0f57600080fd5b611a1b87828801611793565b91505092959194509250565b60008060208385031215611a3a57600080fd5b82356001600160401b03811115611a5057600080fd5b611a5c85828601611574565b90969095509350505050565b60008060408385031215611a7b57600080fd5b611a848361152e565b915060208301358015158114611a9957600080fd5b809150509250929050565b60008060408385031215611ab757600080fd5b611ac08361152e565b9150611ace6020840161152e565b90509250929050565b600080600080600060a08688031215611aef57600080fd5b611af88661152e565b9450611b066020870161152e565b9350604086013592506060860135915060808601356001600160401b03811115611b2f57600080fd5b6118a288828901611793565b6020808252601d908201527f536166654f776e61626c653a2063616c6c6572206e6f74206f776e6572000000604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60008219821115611b9b57611b9b611b72565b500190565b600082821015611bb257611bb2611b72565b500390565b600181811c90821680611bcb57607f821691505b602082108103611beb57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b600060018201611c1957611c19611b72565b5060010190565b601f82111561091d57600081815260208120601f850160051c81016020861015611c475750805b601f850160051c820191505b81811015610f0357828155600101611c53565b6001600160401b03831115611c7d57611c7d6116bd565b611c9183611c8b8354611bb7565b83611c20565b6000601f841160018114611cc55760008515611cad5750838201355b600019600387901b1c1916600186901b1783556105fd565b600083815260209020601f19861690835b82811015611cf65786850135825560209485019460019092019101611cd6565b5086821015611d135760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b604081526000611d38604083018561165d565b60208382038185015260008554611d4e81611bb7565b80855260018281168015611d695760018114611d8357611db1565b60ff1984168787015282151560051b870186019450611db1565b896000528560002060005b84811015611da9578154898201890152908301908701611d8e565b880187019550505b50929998505050505050505050565b83815260406020820152816040820152818360608301376000818301606090810191909152601f909201601f1916010192915050565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b604081526000611e986040830185611979565b8281036020840152611eaa8185611979565b95945050505050565b6001600160a01b0386811682528516602082015260a060408201819052600090611edf90830186611979565b8281036060840152611ef18186611979565b90508281036080840152611f05818561165d565b98975050505050505050565b600060208284031215611f2357600080fd5b815161163d81611607565b600060033d1115611f475760046000803e5060005160e01c5b90565b600060443d1015611f585790565b6040516003193d81016004833e81513d6001600160401b038160248401118184111715611f8757505050505090565b8285019150815181811115611f9f5750505050505090565b843d8701016020828501011115611fb95750505050505090565b611fc8602082860101876116d3565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906120559083018461165d565b97965050505050505056fea2646970667358221220b1070ac28efc863ffd305e3c6d2568d6a46e631431483f224be6584921a62c9f64736f6c634300080f0033360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a264697066735822122073c25dae996dd47b4e5a1f0c6cc45f15ebdf78010f7a26838b75493db271e02864736f6c634300080f0033", + "deployedBytecode": "0x6080604052600436106200012b5760003560e01c806352d1902d11620000ad5780638da5cb5b116200006c5780638da5cb5b1462000326578063b242e5341462000346578063c4d66de8146200036b578063d5bc3ab11462000390578063e30c397814620003b557600080fd5b806352d1902d14620002855780635c975abb14620002ac578063715018a614620002d15780637e183ba014620002e95780638456cb59146200030e57600080fd5b80633f4ba83a11620000fa5780633f4ba83a14620001f4578063408a908f146200020c578063422cf3fe14620002315780634e71e0c814620002565780634f1ef286146200026e57600080fd5b8063038defd71462000130578063176b9b75146200016d5780633659cfe614620001945780633cd784f114620001b9575b600080fd5b3480156200013d57600080fd5b50620001556200014f366004620017a7565b620003d5565b60405162000164919062001824565b60405180910390f35b3480156200017a57600080fd5b50620001926200018c36600462001885565b62000477565b005b348015620001a157600080fd5b5062000192620001b3366004620017a7565b62000621565b348015620001c657600080fd5b50600154620001db906001600160a01b031681565b6040516001600160a01b03909116815260200162000164565b3480156200020157600080fd5b50620001926200070c565b3480156200021957600080fd5b50620001926200022b366004620018f8565b62000745565b3480156200023e57600080fd5b5062000192620002503660046200194e565b6200088a565b3480156200026357600080fd5b5062000192620009cc565b620001926200027f366004620019bf565b62000a32565b3480156200029257600080fd5b506200029d62000b0e565b60405190815260200162000164565b348015620002b957600080fd5b5060ca5460ff16604051901515815260200162000164565b348015620002de57600080fd5b506200019262000bc4565b348015620002f657600080fd5b506200019262000308366004620017a7565b62000bfd565b3480156200031b57600080fd5b506200019262000cb9565b3480156200033357600080fd5b506098546001600160a01b0316620001db565b3480156200035357600080fd5b50620001926200036536600462001a8f565b62000cf0565b3480156200037857600080fd5b50620001926200038a366004620017a7565b62000da6565b3480156200039d57600080fd5b5062000192620003af366004620018f8565b62000ec7565b348015620003c257600080fd5b506099546001600160a01b0316620001db565b60006020819052908152604090208054620003f09062001ad1565b80601f01602080910402602001604051908101604052809291908181526020018280546200041e9062001ad1565b80156200046f5780601f1062000443576101008083540402835291602001916200046f565b820191906000526020600020905b8154815290600101906020018083116200045157829003601f168201915b505050505081565b83838080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505060015460405163cad2efad60e01b81523393506001600160a01b03909116915063cad2efad90620004e190859060040162001824565b602060405180830381865afa158015620004ff573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000525919062001b0d565b6001600160a01b031614620005575760405162461bcd60e51b81526004016200054e9062001b2d565b60405180910390fd5b60ca5460ff16156200057d5760405162461bcd60e51b81526004016200054e9062001b64565b600083836040516200058f9062001783565b6200059c92919062001bb7565b604051809103906000f080158015620005b9573d6000803e3d6000fd5b506001600160a01b0381166000908152602081905260409020909150620005e286888362001c27565b5060405133906001600160a01b038316907f5d0de243db1669e3a7056744cd715c625f0c1c348736c2c2d53d0ddebff1a6c790600090a3505050505050565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036200066c5760405162461bcd60e51b81526004016200054e9062001cf5565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316620006b760008051602062004397833981519152546001600160a01b031690565b6001600160a01b031614620006e05760405162461bcd60e51b81526004016200054e9062001d41565b620006eb816200113d565b6040805160008082526020820190925262000709918391906200116a565b50565b6098546001600160a01b03163314620007395760405162461bcd60e51b81526004016200054e9062001d8d565b62000743620012e7565b565b6001546001600160a01b0380861660009081526020819052604090819020905163cad2efad60e01b815287933393169163cad2efad916200078a919060040162001dc4565b602060405180830381865afa158015620007a8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620007ce919062001b0d565b6001600160a01b031614620007f75760405162461bcd60e51b81526004016200054e9062001b2d565b60ca5460ff16156200081d5760405162461bcd60e51b81526004016200054e9062001b64565b604051633c17845760e11b81526001600160a01b0386169063782f08ae906200084f9087908790879060040162001e57565b600060405180830381600087803b1580156200086a57600080fd5b505af11580156200087f573d6000803e3d6000fd5b505050505050505050565b6001546001600160a01b0380851660009081526020819052604090819020905163cad2efad60e01b815286933393169163cad2efad91620008cf919060040162001dc4565b602060405180830381865afa158015620008ed573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000913919062001b0d565b6001600160a01b0316146200093c5760405162461bcd60e51b81526004016200054e9062001b2d565b60ca5460ff1615620009625760405162461bcd60e51b81526004016200054e9062001b64565b60405163938e3d7b60e01b81526001600160a01b0385169063938e3d7b9062000992908690869060040162001bb7565b600060405180830381600087803b158015620009ad57600080fd5b505af1158015620009c2573d6000803e3d6000fd5b5050505050505050565b6099546001600160a01b0316331462000a285760405162461bcd60e51b815260206004820152601e60248201527f536166654f776e61626c653a2063616c6c657220213d2070656e64696e67000060448201526064016200054e565b620007436200137c565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016300362000a7d5760405162461bcd60e51b81526004016200054e9062001cf5565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031662000ac860008051602062004397833981519152546001600160a01b031690565b6001600160a01b03161462000af15760405162461bcd60e51b81526004016200054e9062001d41565b62000afc826200113d565b62000b0a828260016200116a565b5050565b6000306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161462000bb05760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c000000000000000060648201526084016200054e565b506000805160206200439783398151915290565b6098546001600160a01b0316331462000bf15760405162461bcd60e51b81526004016200054e9062001d8d565b620007436000620013e5565b6098546001600160a01b0316331462000c2a5760405162461bcd60e51b81526004016200054e9062001d8d565b6001546001600160a01b0390811690821662000c5a5760405162461bcd60e51b81526004016200054e9062001e73565b600180546001600160a01b0319166001600160a01b0384811691821790925560408051928416835260208301919091527fb5004c6dd32173c6ee128faa447de600665c96ba213f764d94599ca5ceda78b1910160405180910390a15050565b6098546001600160a01b0316331462000ce65760405162461bcd60e51b81526004016200054e9062001d8d565b6200074362001437565b6098546001600160a01b0316331462000d1d5760405162461bcd60e51b81526004016200054e9062001d8d565b6001600160a01b03821662000d755760405162461bcd60e51b815260206004820152601b60248201527f536166654f776e61626c653a206e6577206f776e65722069732030000000000060448201526064016200054e565b801562000d875762000b0a82620013e5565b609980546001600160a01b0319166001600160a01b0384161790555050565b603354610100900460ff1662000dc35760335460ff161562000dc7565b303b155b62000e2c5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016200054e565b603354610100900460ff1615801562000e4f576033805461ffff19166101011790555b6001600160a01b03821662000e785760405162461bcd60e51b81526004016200054e9062001e73565b600180546001600160a01b0319166001600160a01b03841617905562000e9d62001493565b62000ea7620014c4565b62000eb1620014fa565b801562000b0a576033805461ff00191690555050565b6001546001600160a01b0380861660009081526020819052604090819020905163cad2efad60e01b815287933393169163cad2efad9162000f0c919060040162001dc4565b602060405180830381865afa15801562000f2a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000f50919062001b0d565b6001600160a01b03161462000f795760405162461bcd60e51b81526004016200054e9062001b2d565b60ca5460ff161562000f9f5760405162461bcd60e51b81526004016200054e9062001b64565b60026034540362000ff35760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016200054e565b6002603455604051630118fa4960e01b81526000906001600160a01b03871690630118fa49906200102d9088908890889060040162001e57565b6020604051808303816000875af11580156200104d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062001073919062001eb8565b6040805160008152602081019182905263731133e960e01b9091529091506001600160a01b0387169063731133e990620010b790339085908a906024810162001ed2565b600060405180830381600087803b158015620010d257600080fd5b505af1158015620010e7573d6000803e3d6000fd5b5050505080866001600160a01b03167f58be1f766b329e9aa34f854f3b08451e86df3ddc1043743469ed3fa3205984db876040516200112891815260200190565b60405180910390a35050600160345550505050565b6098546001600160a01b03163314620007095760405162461bcd60e51b81526004016200054e9062001d8d565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff1615620011a557620011a0836200152f565b505050565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa92505050801562001202575060408051601f3d908101601f19168201909252620011ff9181019062001eb8565b60015b620012675760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b60648201526084016200054e565b600080516020620043978339815191528114620012d95760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b60648201526084016200054e565b50620011a0838383620015ce565b60ca5460ff16620013325760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016200054e565b60ca805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6098546099546040516001600160a01b03928316929091169082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35060998054609880546001600160a01b03199081166001600160a01b03841617909155169055565b609880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60ca5460ff16156200145d5760405162461bcd60e51b81526004016200054e9062001b64565b60ca805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586200135f3390565b603354610100900460ff16620014bd5760405162461bcd60e51b81526004016200054e9062001f0b565b6001603455565b603354610100900460ff16620014ee5760405162461bcd60e51b81526004016200054e9062001f0b565b60ca805460ff19169055565b603354610100900460ff16620015245760405162461bcd60e51b81526004016200054e9062001f0b565b6200074333620013e5565b6001600160a01b0381163b6200159e5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084016200054e565b6000805160206200439783398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b620015d983620015ff565b600082511180620015e75750805b15620011a057620015f9838362001641565b50505050565b6200160a816200152f565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606001600160a01b0383163b620016ab5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084016200054e565b600080846001600160a01b031684604051620016c8919062001f56565b600060405180830381855af49150503d806000811462001705576040519150601f19603f3d011682016040523d82523d6000602084013e6200170a565b606091505b5091509150620017358282604051806060016040528060278152602001620043b7602791396200173e565b95945050505050565b606083156200174f5750816200177c565b825115620017605782518084602001fd5b8160405162461bcd60e51b81526004016200054e919062001824565b9392505050565b6124228062001f7583390190565b6001600160a01b03811681146200070957600080fd5b600060208284031215620017ba57600080fd5b81356200177c8162001791565b60005b83811015620017e4578181015183820152602001620017ca565b83811115620015f95750506000910152565b6000815180845262001810816020860160208601620017c7565b601f01601f19169290920160200192915050565b6020815260006200177c6020830184620017f6565b60008083601f8401126200184c57600080fd5b50813567ffffffffffffffff8111156200186557600080fd5b6020830191508360208285010111156200187e57600080fd5b9250929050565b600080600080604085870312156200189c57600080fd5b843567ffffffffffffffff80821115620018b557600080fd5b620018c38883890162001839565b90965094506020870135915080821115620018dd57600080fd5b50620018ec8782880162001839565b95989497509550505050565b600080600080606085870312156200190f57600080fd5b84356200191c8162001791565b935060208501359250604085013567ffffffffffffffff8111156200194057600080fd5b620018ec8782880162001839565b6000806000604084860312156200196457600080fd5b8335620019718162001791565b9250602084013567ffffffffffffffff8111156200198e57600080fd5b6200199c8682870162001839565b9497909650939450505050565b634e487b7160e01b600052604160045260246000fd5b60008060408385031215620019d357600080fd5b8235620019e08162001791565b9150602083013567ffffffffffffffff80821115620019fe57600080fd5b818501915085601f83011262001a1357600080fd5b81358181111562001a285762001a28620019a9565b604051601f8201601f19908116603f0116810190838211818310171562001a535762001a53620019a9565b8160405282815288602084870101111562001a6d57600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b6000806040838503121562001aa357600080fd5b823562001ab08162001791565b91506020830135801515811462001ac657600080fd5b809150509250929050565b600181811c9082168062001ae657607f821691505b60208210810362001b0757634e487b7160e01b600052602260045260246000fd5b50919050565b60006020828403121562001b2057600080fd5b81516200177c8162001791565b6020808252601d908201527f5031324173736574463a206e6f742067616d6520646576656c6f706572000000604082015260600190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b60208152600062001bcd60208301848662001b8e565b949350505050565b601f821115620011a057600081815260208120601f850160051c8101602086101562001bfe5750805b601f850160051c820191505b8181101562001c1f5782815560010162001c0a565b505050505050565b67ffffffffffffffff83111562001c425762001c42620019a9565b62001c5a8362001c53835462001ad1565b8362001bd5565b6000601f84116001811462001c91576000851562001c785750838201355b600019600387901b1c1916600186901b17835562001cee565b600083815260209020601f19861690835b8281101562001cc4578685013582556020948501946001909201910162001ca2565b508682101562001ce25760001960f88860031b161c19848701351681555b505060018560011b0183555b5050505050565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b6020808252601d908201527f536166654f776e61626c653a2063616c6c6572206e6f74206f776e6572000000604082015260600190565b600060208083526000845462001dda8162001ad1565b8084870152604060018084166000811462001dfe576001811462001e195762001e49565b60ff1985168984015283151560051b89018301955062001e49565b896000528660002060005b8581101562001e415781548b820186015290830190880162001e24565b8a0184019650505b509398975050505050505050565b8381526040602082015260006200173560408301848662001b8e565b60208082526025908201527f5031324173736574463a20703132436f696e466163746f72792063616e6e6f74604082015264020626520360dc1b606082015260800190565b60006020828403121562001ecb57600080fd5b5051919050565b60018060a01b038516815283602082015282604082015260806060820152600062001f016080830184620017f6565b9695505050505050565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b6000825162001f6a818460208701620017c7565b919091019291505056fe608060405260006008553480156200001657600080fd5b506040516200242238038062002422833981016040819052620000399162000145565b6040805160208101909152600081526200005381620000cb565b506200005f33620000dd565b8051600003620000b55760405162461bcd60e51b815260206004820152601b60248201527f50313241737365743a20656d70747920636f6e74726163745552490000000000604482015260640160405180910390fd5b6005620000c38282620002b0565b50506200037c565b6002620000d98282620002b0565b5050565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600060208083850312156200015957600080fd5b82516001600160401b03808211156200017157600080fd5b818501915085601f8301126200018657600080fd5b8151818111156200019b576200019b6200012f565b604051601f8201601f19908116603f01168101908382118183101715620001c657620001c66200012f565b816040528281528886848701011115620001df57600080fd5b600093505b82841015620002035784840186015181850187015292850192620001e4565b82841115620002155760008684830101525b98975050505050505050565b600181811c908216806200023657607f821691505b6020821081036200025757634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620002ab57600081815260208120601f850160051c81016020861015620002865750805b601f850160051c820191505b81811015620002a75782815560010162000292565b5050505b505050565b81516001600160401b03811115620002cc57620002cc6200012f565b620002e481620002dd845462000221565b846200025d565b602080601f8311600181146200031c5760008415620003035750858301515b600019600386901b1c1916600185901b178555620002a7565b600085815260208120601f198616915b828110156200034d578886015182559484019460019091019084016200032c565b50858210156200036c5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b612096806200038c6000396000f3fe608060405234801561001057600080fd5b506004361061012b5760003560e01c8063782f08ae116100ad578063b242e53411610071578063b242e534146102a2578063e30c3978146102b5578063e8a3d485146102c6578063e985e9c5146102ce578063f242432a1461030a57600080fd5b8063782f08ae14610224578063869f7594146102375780638da5cb5b14610257578063938e3d7b1461027c578063a22cb4651461028f57600080fd5b806335403023116100f457806335403023146101c15780634e1273f4146101e15780634e71e0c814610201578063715018a614610209578063731133e91461021157600080fd5b8062fdd58e146101305780630118fa491461015657806301ffc9a7146101695780630e89341c1461018c5780632eb2c2d6146101ac575b600080fd5b61014361013e36600461154a565b61031d565b6040519081526020015b60405180910390f35b6101436101643660046115bc565b6103b4565b61017c610177366004611620565b610431565b604051901515815260200161014d565b61019f61019a366004611644565b610483565b60405161014d91906116aa565b6101bf6101ba366004611806565b61056d565b005b6101436101cf366004611644565b60066020526000908152604090205481565b6101f46101ef3660046118af565b610604565b60405161014d91906119b4565b6101bf61072d565b6101bf610791565b6101bf61021f3660046119c7565b6107c5565b6101bf6102323660046115bc565b6108e8565b610143610245366004611644565b60076020526000908152604090205481565b6003546001600160a01b03165b6040516001600160a01b03909116815260200161014d565b6101bf61028a366004611a27565b610922565b6101bf61029d366004611a68565b610a7d565b6101bf6102b0366004611a68565b610a8c565b6004546001600160a01b0316610264565b61019f610b3a565b61017c6102dc366004611aa4565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b6101bf610318366004611ad7565b610bc8565b60006001600160a01b03831661038e5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b6003546000906001600160a01b031633146103e15760405162461bcd60e51b815260040161038590611b3b565b60088054600090815260076020526040902085905554610402908484610c4f565b6001600860008282546104159190611b88565b909155505060085461042990600190611ba0565b949350505050565b60006001600160e01b03198216636cdb3d1360e11b148061046257506001600160e01b031982166303a24d0760e21b145b8061047d57506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060085482106104cf5760405162461bcd60e51b8152602060048201526016602482015275140c4c905cdcd95d0e881a59081b9bdd08195e1a5cdd60521b6044820152606401610385565b6000828152600a6020526040902080546104e890611bb7565b80601f016020809104026020016040519081016040528092919081815260200182805461051490611bb7565b80156105615780601f1061053657610100808354040283529160200191610561565b820191906000526020600020905b81548152906001019060200180831161054457829003601f168201915b50505050509050919050565b6001600160a01b038516331480610589575061058985336102dc565b6105f05760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610385565b6105fd8585858585610d2e565b5050505050565b606081518351146106695760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610385565b600083516001600160401b03811115610684576106846116bd565b6040519080825280602002602001820160405280156106ad578160200160208202803683370190505b50905060005b8451811015610725576106f88582815181106106d1576106d1611bf1565b60200260200101518583815181106106eb576106eb611bf1565b602002602001015161031d565b82828151811061070a5761070a611bf1565b602090810291909101015261071e81611c07565b90506106b3565b509392505050565b6004546001600160a01b031633146107875760405162461bcd60e51b815260206004820152601e60248201527f536166654f776e61626c653a2063616c6c657220213d2070656e64696e6700006044820152606401610385565b61078f610f0b565b565b6003546001600160a01b031633146107bb5760405162461bcd60e51b815260040161038590611b3b565b61078f6000610f74565b6003546001600160a01b031633146107ef5760405162461bcd60e51b815260040161038590611b3b565b60085483106108405760405162461bcd60e51b815260206004820152601960248201527f50313241737365743a206964206973206e6f742076616c6964000000000000006044820152606401610385565b6000838152600760209081526040808320546006909252909120546108659084611b88565b11156108b35760405162461bcd60e51b815260206004820152601b60248201527f50313241737365743a20657863656564206d617820737570706c7900000000006044820152606401610385565b6108bf84848484610fc6565b600083815260066020526040812080548492906108dd908490611b88565b909155505050505050565b6003546001600160a01b031633146109125760405162461bcd60e51b815260040161038590611b3b565b61091d838383610c4f565b505050565b6003546001600160a01b0316331461094c5760405162461bcd60e51b815260040161038590611b3b565b600081900361099d5760405162461bcd60e51b815260206004820152601b60248201527f50313241737365743a20656d70747920636f6e747261637455524900000000006044820152606401610385565b6000600580546109ac90611bb7565b80601f01602080910402602001604051908101604052809291908181526020018280546109d890611bb7565b8015610a255780601f106109fa57610100808354040283529160200191610a25565b820191906000526020600020905b815481529060010190602001808311610a0857829003601f168201915b50505050509050828260059182610a3d929190611c66565b507f89e5b6f07571941ef88c704155a3557ef26b4fd73f9c2c18294de8e767dda34d816005604051610a70929190611d25565b60405180910390a1505050565b610a883383836110d0565b5050565b6003546001600160a01b03163314610ab65760405162461bcd60e51b815260040161038590611b3b565b6001600160a01b038216610b0c5760405162461bcd60e51b815260206004820152601b60248201527f536166654f776e61626c653a206e6577206f776e6572206973203000000000006044820152606401610385565b8015610b1b57610a8882610f74565b600480546001600160a01b0319166001600160a01b0384161790555050565b60058054610b4790611bb7565b80601f0160208091040260200160405190810160405280929190818152602001828054610b7390611bb7565b8015610bc05780601f10610b9557610100808354040283529160200191610bc0565b820191906000526020600020905b815481529060010190602001808311610ba357829003601f168201915b505050505081565b6001600160a01b038516331480610be45750610be485336102dc565b610c425760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b6064820152608401610385565b6105fd85858585856111b0565b6000819003610c965760405162461bcd60e51b815260206004820152601360248201527250313241737365743a20656d7074792075726960681b6044820152606401610385565b600854831115610ce15760405162461bcd60e51b8152602060048201526016602482015275140c4c905cdcd95d0e881a59081b9bdd08195e1a5cdd60521b6044820152606401610385565b6000838152600a60205260409020610cfa828483611c66565b507fcb8a581c366c006d079f78b3f29b10e2bf252c6a9df7fb60286aa83c09bbd0b1838383604051610a7093929190611dc0565b8151835114610d905760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b6064820152608401610385565b6001600160a01b038416610db65760405162461bcd60e51b815260040161038590611df6565b3360005b8451811015610e9d576000858281518110610dd757610dd7611bf1565b602002602001015190506000858381518110610df557610df5611bf1565b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015610e455760405162461bcd60e51b815260040161038590611e3b565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290610e82908490611b88565b9250508190555050505080610e9690611c07565b9050610dba565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051610eed929190611e85565b60405180910390a4610f038187878787876112cd565b505050505050565b6003546004546040516001600160a01b03928316929091169082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35060048054600380546001600160a01b03199081166001600160a01b03841617909155169055565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0384166110265760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610385565b336110408160008761103788611428565b6105fd88611428565b6000848152602081815260408083206001600160a01b038916845290915281208054859290611070908490611b88565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46105fd81600087878787611473565b816001600160a01b0316836001600160a01b0316036111435760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610385565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0384166111d65760405162461bcd60e51b815260040161038590611df6565b336111e681878761103788611428565b6000848152602081815260408083206001600160a01b038a168452909152902054838110156112275760405162461bcd60e51b815260040161038590611e3b565b6000858152602081815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290611264908490611b88565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46112c4828888888888611473565b50505050505050565b6001600160a01b0384163b15610f035760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906113119089908990889088908890600401611eb3565b6020604051808303816000875af192505050801561134c575060408051601f3d908101601f1916820190925261134991810190611f11565b60015b6113f857611358611f2e565b806308c379a003611391575061136c611f4a565b806113775750611393565b8060405162461bcd60e51b815260040161038591906116aa565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610385565b6001600160e01b0319811663bc197c8160e01b146112c45760405162461bcd60e51b815260040161038590611fd3565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061146257611462611bf1565b602090810291909101015292915050565b6001600160a01b0384163b15610f035760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906114b7908990899088908890889060040161201b565b6020604051808303816000875af19250505080156114f2575060408051601f3d908101601f191682019092526114ef91810190611f11565b60015b6114fe57611358611f2e565b6001600160e01b0319811663f23a6e6160e01b146112c45760405162461bcd60e51b815260040161038590611fd3565b80356001600160a01b038116811461154557600080fd5b919050565b6000806040838503121561155d57600080fd5b6115668361152e565b946020939093013593505050565b60008083601f84011261158657600080fd5b5081356001600160401b0381111561159d57600080fd5b6020830191508360208285010111156115b557600080fd5b9250929050565b6000806000604084860312156115d157600080fd5b8335925060208401356001600160401b038111156115ee57600080fd5b6115fa86828701611574565b9497909650939450505050565b6001600160e01b03198116811461161d57600080fd5b50565b60006020828403121561163257600080fd5b813561163d81611607565b9392505050565b60006020828403121561165657600080fd5b5035919050565b6000815180845260005b8181101561168357602081850181015186830182015201611667565b81811115611695576000602083870101525b50601f01601f19169290920160200192915050565b60208152600061163d602083018461165d565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b03811182821017156116f8576116f86116bd565b6040525050565b60006001600160401b03821115611718576117186116bd565b5060051b60200190565b600082601f83011261173357600080fd5b81356020611740826116ff565b60405161174d82826116d3565b83815260059390931b850182019282810191508684111561176d57600080fd5b8286015b848110156117885780358352918301918301611771565b509695505050505050565b600082601f8301126117a457600080fd5b81356001600160401b038111156117bd576117bd6116bd565b6040516117d4601f8301601f1916602001826116d3565b8181528460208386010111156117e957600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a0868803121561181e57600080fd5b6118278661152e565b94506118356020870161152e565b935060408601356001600160401b038082111561185157600080fd5b61185d89838a01611722565b9450606088013591508082111561187357600080fd5b61187f89838a01611722565b9350608088013591508082111561189557600080fd5b506118a288828901611793565b9150509295509295909350565b600080604083850312156118c257600080fd5b82356001600160401b03808211156118d957600080fd5b818501915085601f8301126118ed57600080fd5b813560206118fa826116ff565b60405161190782826116d3565b83815260059390931b850182019282810191508984111561192757600080fd5b948201945b8386101561194c5761193d8661152e565b8252948201949082019061192c565b9650508601359250508082111561196257600080fd5b5061196f85828601611722565b9150509250929050565b600081518084526020808501945080840160005b838110156119a95781518752958201959082019060010161198d565b509495945050505050565b60208152600061163d6020830184611979565b600080600080608085870312156119dd57600080fd5b6119e68561152e565b9350602085013592506040850135915060608501356001600160401b03811115611a0f57600080fd5b611a1b87828801611793565b91505092959194509250565b60008060208385031215611a3a57600080fd5b82356001600160401b03811115611a5057600080fd5b611a5c85828601611574565b90969095509350505050565b60008060408385031215611a7b57600080fd5b611a848361152e565b915060208301358015158114611a9957600080fd5b809150509250929050565b60008060408385031215611ab757600080fd5b611ac08361152e565b9150611ace6020840161152e565b90509250929050565b600080600080600060a08688031215611aef57600080fd5b611af88661152e565b9450611b066020870161152e565b9350604086013592506060860135915060808601356001600160401b03811115611b2f57600080fd5b6118a288828901611793565b6020808252601d908201527f536166654f776e61626c653a2063616c6c6572206e6f74206f776e6572000000604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60008219821115611b9b57611b9b611b72565b500190565b600082821015611bb257611bb2611b72565b500390565b600181811c90821680611bcb57607f821691505b602082108103611beb57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b600060018201611c1957611c19611b72565b5060010190565b601f82111561091d57600081815260208120601f850160051c81016020861015611c475750805b601f850160051c820191505b81811015610f0357828155600101611c53565b6001600160401b03831115611c7d57611c7d6116bd565b611c9183611c8b8354611bb7565b83611c20565b6000601f841160018114611cc55760008515611cad5750838201355b600019600387901b1c1916600186901b1783556105fd565b600083815260209020601f19861690835b82811015611cf65786850135825560209485019460019092019101611cd6565b5086821015611d135760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b604081526000611d38604083018561165d565b60208382038185015260008554611d4e81611bb7565b80855260018281168015611d695760018114611d8357611db1565b60ff1984168787015282151560051b870186019450611db1565b896000528560002060005b84811015611da9578154898201890152908301908701611d8e565b880187019550505b50929998505050505050505050565b83815260406020820152816040820152818360608301376000818301606090810191909152601f909201601f1916010192915050565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b604081526000611e986040830185611979565b8281036020840152611eaa8185611979565b95945050505050565b6001600160a01b0386811682528516602082015260a060408201819052600090611edf90830186611979565b8281036060840152611ef18186611979565b90508281036080840152611f05818561165d565b98975050505050505050565b600060208284031215611f2357600080fd5b815161163d81611607565b600060033d1115611f475760046000803e5060005160e01c5b90565b600060443d1015611f585790565b6040516003193d81016004833e81513d6001600160401b038160248401118184111715611f8757505050505090565b8285019150815181811115611f9f5750505050505090565b843d8701016020828501011115611fb95750505050505090565b611fc8602082860101876116d3565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906120559083018461165d565b97965050505050505056fea2646970667358221220b1070ac28efc863ffd305e3c6d2568d6a46e631431483f224be6584921a62c9f64736f6c634300080f0033360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a264697066735822122073c25dae996dd47b4e5a1f0c6cc45f15ebdf78010f7a26838b75493db271e02864736f6c634300080f0033", + "devdoc": { + "kind": "dev", + "methods": { + "claimOwnership()": { + "details": "pending owner call this function to claim ownership" + }, + "createAssetAndMint(address,uint256,string)": { + "details": "create asset and mint to msg.sender address", + "params": { + "amount": "amount of asset", + "collection": "which collection want to create", + "uri": "new asset's metadata uri" + } + }, + "createCollection(string,string)": { + "details": "create Collection", + "params": { + "contractURI": "contract-level metadata uri", + "gameId": "a off-chain game id" + } + }, + "owner()": { + "details": "Returns the address of the current owner." + }, + "paused()": { + "details": "Returns true if the contract is paused, and false otherwise." + }, + "pendingOwner()": { + "details": "Return the address of the pending owner" + }, + "proxiableUUID()": { + "details": "Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the implementation. It is used to validate that the this implementation remains valid after an upgrade. IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier." + }, + "renounceOwnership()": { + "details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner." + }, + "setP12CoinFactory(address)": { + "params": { + "newP12CoinFactory": "address of p12CoinFactory" + } + }, + "transferOwnership(address,bool)": { + "details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner. Note If direct is false, it will set an pending owner and the OwnerShipTransferring only happens when the pending owner claim the ownership" + }, + "updateCollectionUri(address,string)": { + "details": "update Collection Uri", + "params": { + "collection": "collection address", + "newUri": "new Contract-level metadata uri" + } + }, + "updateSftUri(address,uint256,string)": { + "details": "update Sft Uri", + "params": { + "collection": "collection address", + "newUri": "new metadata uri", + "tokenId": "token id" + } + }, + "upgradeTo(address)": { + "details": "Upgrade the implementation of the proxy to `newImplementation`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event." + }, + "upgradeToAndCall(address,bytes)": { + "details": "Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call encoded in `data`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event." + } + }, + "version": 1 + }, + "userdoc": { + "kind": "user", + "methods": { + "p12CoinFactory()": { + "notice": "p12CoinFactory address, for reading game and developer relationship" + }, + "setP12CoinFactory(address)": { + "notice": "set new p12CoinFactory" + } + }, + "version": 1 + }, + "storageLayout": { + "storage": [ + { + "astId": 7886, + "contract": "contracts/assetFactory/P12AssetFactoryUpgradable.sol:P12AssetFactoryUpgradable", + "label": "registry", + "offset": 0, + "slot": "0", + "type": "t_mapping(t_address,t_string_storage)" + }, + { + "astId": 7889, + "contract": "contracts/assetFactory/P12AssetFactoryUpgradable.sol:P12AssetFactoryUpgradable", + "label": "p12CoinFactory", + "offset": 0, + "slot": "1", + "type": "t_address" + }, + { + "astId": 7893, + "contract": "contracts/assetFactory/P12AssetFactoryUpgradable.sol:P12AssetFactoryUpgradable", + "label": "__gap", + "offset": 0, + "slot": "2", + "type": "t_array(t_uint256)49_storage" + }, + { + "astId": 395, + "contract": "contracts/assetFactory/P12AssetFactoryUpgradable.sol:P12AssetFactoryUpgradable", + "label": "_initialized", + "offset": 0, + "slot": "51", + "type": "t_bool" + }, + { + "astId": 398, + "contract": "contracts/assetFactory/P12AssetFactoryUpgradable.sol:P12AssetFactoryUpgradable", + "label": "_initializing", + "offset": 1, + "slot": "51", + "type": "t_bool" + }, + { + "astId": 723, + "contract": "contracts/assetFactory/P12AssetFactoryUpgradable.sol:P12AssetFactoryUpgradable", + "label": "_status", + "offset": 0, + "slot": "52", + "type": "t_uint256" + }, + { + "astId": 767, + "contract": "contracts/assetFactory/P12AssetFactoryUpgradable.sol:P12AssetFactoryUpgradable", + "label": "__gap", + "offset": 0, + "slot": "53", + "type": "t_array(t_uint256)49_storage" + }, + { + "astId": 1354, + "contract": "contracts/assetFactory/P12AssetFactoryUpgradable.sol:P12AssetFactoryUpgradable", + "label": "__gap", + "offset": 0, + "slot": "102", + "type": "t_array(t_uint256)50_storage" + }, + { + "astId": 7440, + "contract": "contracts/assetFactory/P12AssetFactoryUpgradable.sol:P12AssetFactoryUpgradable", + "label": "_owner", + "offset": 0, + "slot": "152", + "type": "t_address" + }, + { + "astId": 7442, + "contract": "contracts/assetFactory/P12AssetFactoryUpgradable.sol:P12AssetFactoryUpgradable", + "label": "_pendingOwner", + "offset": 0, + "slot": "153", + "type": "t_address" + }, + { + "astId": 7625, + "contract": "contracts/assetFactory/P12AssetFactoryUpgradable.sol:P12AssetFactoryUpgradable", + "label": "__gap", + "offset": 0, + "slot": "154", + "type": "t_array(t_uint256)48_storage" + }, + { + "astId": 619, + "contract": "contracts/assetFactory/P12AssetFactoryUpgradable.sol:P12AssetFactoryUpgradable", + "label": "_paused", + "offset": 0, + "slot": "202", + "type": "t_bool" + }, + { + "astId": 708, + "contract": "contracts/assetFactory/P12AssetFactoryUpgradable.sol:P12AssetFactoryUpgradable", + "label": "__gap", + "offset": 0, + "slot": "203", + "type": "t_array(t_uint256)49_storage" + }, + { + "astId": 377, + "contract": "contracts/assetFactory/P12AssetFactoryUpgradable.sol:P12AssetFactoryUpgradable", + "label": "__gap", + "offset": 0, + "slot": "252", + "type": "t_array(t_uint256)50_storage" + }, + { + "astId": 597, + "contract": "contracts/assetFactory/P12AssetFactoryUpgradable.sol:P12AssetFactoryUpgradable", + "label": "__gap", + "offset": 0, + "slot": "302", + "type": "t_array(t_uint256)50_storage" + } + ], + "types": { + "t_address": { + "encoding": "inplace", + "label": "address", + "numberOfBytes": "20" + }, + "t_array(t_uint256)48_storage": { + "base": "t_uint256", + "encoding": "inplace", + "label": "uint256[48]", + "numberOfBytes": "1536" + }, + "t_array(t_uint256)49_storage": { + "base": "t_uint256", + "encoding": "inplace", + "label": "uint256[49]", + "numberOfBytes": "1568" + }, + "t_array(t_uint256)50_storage": { + "base": "t_uint256", + "encoding": "inplace", + "label": "uint256[50]", + "numberOfBytes": "1600" + }, + "t_bool": { + "encoding": "inplace", + "label": "bool", + "numberOfBytes": "1" + }, + "t_mapping(t_address,t_string_storage)": { + "encoding": "mapping", + "key": "t_address", + "label": "mapping(address => string)", + "numberOfBytes": "32", + "value": "t_string_storage" + }, + "t_string_storage": { + "encoding": "bytes", + "label": "string", + "numberOfBytes": "32" + }, + "t_uint256": { + "encoding": "inplace", + "label": "uint256", + "numberOfBytes": "32" + } + } + } +} \ No newline at end of file diff --git a/deployments/p12TestNet/P12AssetFactoryUpgradable_Proxy.json b/deployments/p12TestNet/P12AssetFactoryUpgradable_Proxy.json new file mode 100644 index 0000000..9647cba --- /dev/null +++ b/deployments/p12TestNet/P12AssetFactoryUpgradable_Proxy.json @@ -0,0 +1,125 @@ +{ + "address": "0x6CB86eBd560ca078BAAfBfecc21C2E7e0aa9010D", + "abi": [ + { + "inputs": [ + { + "internalType": "address", + "name": "_logic", + "type": "address" + }, + { + "internalType": "bytes", + "name": "_data", + "type": "bytes" + } + ], + "stateMutability": "payable", + "type": "constructor" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "previousAdmin", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "newAdmin", + "type": "address" + } + ], + "name": "AdminChanged", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "beacon", + "type": "address" + } + ], + "name": "BeaconUpgraded", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "implementation", + "type": "address" + } + ], + "name": "Upgraded", + "type": "event" + }, + { + "stateMutability": "payable", + "type": "fallback" + }, + { + "stateMutability": "payable", + "type": "receive" + } + ], + "transactionHash": "0x25c75ce728bf73139c6d9a3589b837d687c8bc76db453d42b71f43ebcd495da5", + "receipt": { + "to": null, + "from": "0xfeD03676c595DD1F1c6716a446cD44B4C90AD290", + "contractAddress": "0x6CB86eBd560ca078BAAfBfecc21C2E7e0aa9010D", + "transactionIndex": 0, + "gasUsed": "338874", + "logsBloom": "0x00000000000000000000000000000000400000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000002000001000000000000000000400000000000000000024000000000000000000800000002000000000000000000000000400000000000000000000000000000000005000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000100000000000000020000000000100000000000000000000000000000000000000000000000010000000", + "blockHash": "0xe36f7833e5a14ab5c0b6a9cdf5e59d75b9f31034fda9965191053c7f6688d6a4", + "transactionHash": "0x25c75ce728bf73139c6d9a3589b837d687c8bc76db453d42b71f43ebcd495da5", + "logs": [ + { + "transactionIndex": 0, + "blockNumber": 1206190, + "transactionHash": "0x25c75ce728bf73139c6d9a3589b837d687c8bc76db453d42b71f43ebcd495da5", + "address": "0x6CB86eBd560ca078BAAfBfecc21C2E7e0aa9010D", + "topics": [ + "0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b", + "0x00000000000000000000000098ed648ce19501ed0bd2b9293f82344412d2fde6" + ], + "data": "0x", + "logIndex": 0, + "blockHash": "0xe36f7833e5a14ab5c0b6a9cdf5e59d75b9f31034fda9965191053c7f6688d6a4" + }, + { + "transactionIndex": 0, + "blockNumber": 1206190, + "transactionHash": "0x25c75ce728bf73139c6d9a3589b837d687c8bc76db453d42b71f43ebcd495da5", + "address": "0x6CB86eBd560ca078BAAfBfecc21C2E7e0aa9010D", + "topics": [ + "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", + "0x0000000000000000000000000000000000000000000000000000000000000000", + "0x000000000000000000000000fed03676c595dd1f1c6716a446cd44b4c90ad290" + ], + "data": "0x", + "logIndex": 1, + "blockHash": "0xe36f7833e5a14ab5c0b6a9cdf5e59d75b9f31034fda9965191053c7f6688d6a4" + } + ], + "blockNumber": 1206190, + "cumulativeGasUsed": "338874", + "status": 1, + "byzantium": true + }, + "args": [ + "0x98Ed648CE19501eD0bd2B9293f82344412d2FdE6", + "0xc4d66de80000000000000000000000002695ef03c7ea6a1f55463ee4b47e4e3dbcbcd6d1" + ], + "numDeployments": 1, + "bytecode": "0x6080604052604051610772380380610772833981016040819052610022916102f7565b61004d60017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd61040f565b60008051602061072b8339815191521461007757634e487b7160e01b600052600160045260246000fd5b6100838282600061008a565b5050610474565b610093836100f4565b6040516001600160a01b038416907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a26000825111806100d45750805b156100ef576100ed83836101b460201b6100291760201c565b505b505050565b610107816101e060201b6100551760201c565b61016e5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084015b60405180910390fd5b8061019360008051602061072b83398151915260001b6101e660201b61005b1760201c565b80546001600160a01b0319166001600160a01b039290921691909117905550565b60606101d9838360405180606001604052806027815260200161074b602791396101e9565b9392505050565b3b151590565b90565b6060833b6102485760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b6064820152608401610165565b600080856001600160a01b03168560405161026391906103c0565b600060405180830381855af49150503d806000811461029e576040519150601f19603f3d011682016040523d82523d6000602084013e6102a3565b606091505b5090925090506102b48282866102be565b9695505050505050565b606083156102cd5750816101d9565b8251156102dd5782518084602001fd5b8160405162461bcd60e51b815260040161016591906103dc565b60008060408385031215610309578182fd5b82516001600160a01b038116811461031f578283fd5b60208401519092506001600160401b038082111561033b578283fd5b818501915085601f83011261034e578283fd5b8151818111156103605761036061045e565b604051601f8201601f19908116603f011681019083821181831017156103885761038861045e565b816040528281528860208487010111156103a0578586fd5b6103b1836020830160208801610432565b80955050505050509250929050565b600082516103d2818460208701610432565b9190910192915050565b60006020825282518060208401526103fb816040850160208701610432565b601f01601f19169190910160400192915050565b60008282101561042d57634e487b7160e01b81526011600452602481fd5b500390565b60005b8381101561044d578181015183820152602001610435565b838111156100ed5750506000910152565b634e487b7160e01b600052604160045260246000fd5b6102a8806104836000396000f3fe60806040523661001357610011610017565b005b6100115b61002761002261005e565b610096565b565b606061004e838360405180606001604052806027815260200161024c602791396100ba565b9392505050565b3b151590565b90565b60006100917f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b3660008037600080366000845af43d6000803e8080156100b5573d6000f35b3d6000fd5b6060833b61011e5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084015b60405180910390fd5b600080856001600160a01b03168560405161013991906101cc565b600060405180830381855af49150503d8060008114610174576040519150601f19603f3d011682016040523d82523d6000602084013e610179565b606091505b5091509150610189828286610193565b9695505050505050565b606083156101a257508161004e565b8251156101b25782518084602001fd5b8160405162461bcd60e51b815260040161011591906101e8565b600082516101de81846020870161021b565b9190910192915050565b600060208252825180602084015261020781604085016020870161021b565b601f01601f19169190910160400192915050565b60005b8381101561023657818101518382015260200161021e565b83811115610245576000848401525b5050505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212209b8470f06e8a3960c912103fc2be177edaad69584ee3c7d2809ee737e79408e764736f6c63430008020033360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564", + "deployedBytecode": "0x60806040523661001357610011610017565b005b6100115b61002761002261005e565b610096565b565b606061004e838360405180606001604052806027815260200161024c602791396100ba565b9392505050565b3b151590565b90565b60006100917f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b3660008037600080366000845af43d6000803e8080156100b5573d6000f35b3d6000fd5b6060833b61011e5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084015b60405180910390fd5b600080856001600160a01b03168560405161013991906101cc565b600060405180830381855af49150503d8060008114610174576040519150601f19603f3d011682016040523d82523d6000602084013e610179565b606091505b5091509150610189828286610193565b9695505050505050565b606083156101a257508161004e565b8251156101b25782518084602001fd5b8160405162461bcd60e51b815260040161011591906101e8565b600082516101de81846020870161021b565b9190910192915050565b600060208252825180602084015261020781604085016020870161021b565b601f01601f19169190910160400192915050565b60005b8381101561023657818101518382015260200161021e565b83811115610245576000848401525b5050505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212209b8470f06e8a3960c912103fc2be177edaad69584ee3c7d2809ee737e79408e764736f6c63430008020033" +} \ No newline at end of file diff --git a/deployments/p12TestNet/P12CoinFactoryUpgradeable.json b/deployments/p12TestNet/P12CoinFactoryUpgradeable.json new file mode 100644 index 0000000..6a9577a --- /dev/null +++ b/deployments/p12TestNet/P12CoinFactoryUpgradeable.json @@ -0,0 +1,1189 @@ +{ + "address": "0x2695eF03c7ea6A1F55463ee4b47E4E3DBCBcd6d1", + "abi": [ + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "previousAdmin", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "newAdmin", + "type": "address" + } + ], + "name": "AdminChanged", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "beacon", + "type": "address" + } + ], + "name": "BeaconUpgraded", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "implementation", + "type": "address" + } + ], + "name": "Upgraded", + "type": "event" + }, + { + "stateMutability": "payable", + "type": "fallback" + }, + { + "stateMutability": "payable", + "type": "receive" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "contract IP12GameCoin", + "name": "gameCoinAddress", + "type": "address" + }, + { + "indexed": false, + "internalType": "string", + "name": "gameId", + "type": "string" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amountP12", + "type": "uint256" + } + ], + "name": "CreateGameCoin", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "mintId", + "type": "bytes32" + }, + { + "indexed": true, + "internalType": "contract IP12GameCoin", + "name": "gameCoinAddress", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "executor", + "type": "address" + } + ], + "name": "ExecuteMintCoin", + "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": [ + { + "indexed": false, + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "Paused", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "mintId", + "type": "bytes32" + }, + { + "indexed": true, + "internalType": "contract IP12GameCoin", + "name": "gameCoinAddress", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "mintAmount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "unlockTimestamp", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amountP12", + "type": "uint256" + } + ], + "name": "QueueMintCoin", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "string", + "name": "gameId", + "type": "string" + }, + { + "indexed": true, + "internalType": "address", + "name": "developer", + "type": "address" + } + ], + "name": "RegisterGame", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "oldDelayB", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "newDelayB", + "type": "uint256" + } + ], + "name": "SetDelayB", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "oldDelayK", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "newDelayK", + "type": "uint256" + } + ], + "name": "SetDelayK", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "oldDev", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "newDev", + "type": "address" + } + ], + "name": "SetDev", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "contract IGaugeController", + "name": "oldGaugeController", + "type": "address" + }, + { + "indexed": false, + "internalType": "contract IGaugeController", + "name": "newGaugeController", + "type": "address" + } + ], + "name": "SetGaugeController", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "contract IP12MineUpgradeable", + "name": "oldP12Mine", + "type": "address" + }, + { + "indexed": false, + "internalType": "contract IP12MineUpgradeable", + "name": "newP12Mine", + "type": "address" + } + ], + "name": "SetP12Mine", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "oldP12Token", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "newP12Token", + "type": "address" + } + ], + "name": "SetP12Token", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "contract IUniswapV2Factory", + "name": "oldUniswapFactory", + "type": "address" + }, + { + "indexed": false, + "internalType": "contract IUniswapV2Factory", + "name": "newUniswapFactory", + "type": "address" + } + ], + "name": "SetUniswapFactory", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "contract IUniswapV2Router02", + "name": "oldUniswapRouter", + "type": "address" + }, + { + "indexed": false, + "internalType": "contract IUniswapV2Router02", + "name": "newUniswapRouter", + "type": "address" + } + ], + "name": "SetUniswapRouter", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "Unpaused", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "userAddress", + "type": "address" + }, + { + "indexed": false, + "internalType": "contract IP12GameCoin", + "name": "gameCoinAddress", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amountGameCoin", + "type": "uint256" + } + ], + "name": "Withdraw", + "type": "event" + }, + { + "inputs": [], + "name": "addLiquidityEffectiveTime", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "contract IP12GameCoin", + "name": "", + "type": "address" + } + ], + "name": "allGameCoins", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "name": "allGames", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "claimOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "contract IP12GameCoin", + "name": "", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "name": "coinMintRecords", + "outputs": [ + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "unlockTimestamp", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "executed", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "string", + "name": "name", + "type": "string" + }, + { + "internalType": "string", + "name": "symbol", + "type": "string" + }, + { + "internalType": "string", + "name": "gameId", + "type": "string" + }, + { + "internalType": "string", + "name": "gameCoinIconUrl", + "type": "string" + }, + { + "internalType": "uint256", + "name": "amountGameCoin", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amountP12", + "type": "uint256" + } + ], + "name": "create", + "outputs": [ + { + "internalType": "contract IP12GameCoin", + "name": "gameCoinAddress", + "type": "address" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "delayB", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "delayK", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "dev", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "contract IP12GameCoin", + "name": "gameCoinAddress", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "mintId", + "type": "bytes32" + } + ], + "name": "executeMintCoin", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "gaugeController", + "outputs": [ + { + "internalType": "contract IGaugeController", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "contract IP12GameCoin", + "name": "gameCoinAddress", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amountGameCoin", + "type": "uint256" + } + ], + "name": "getMintDelay", + "outputs": [ + { + "internalType": "uint256", + "name": "time", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "contract IP12GameCoin", + "name": "gameCoinAddress", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amountGameCoin", + "type": "uint256" + } + ], + "name": "getMintFee", + "outputs": [ + { + "internalType": "uint256", + "name": "amountP12", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "p12_", + "type": "address" + }, + { + "internalType": "contract IUniswapV2Factory", + "name": "uniswapFactory_", + "type": "address" + }, + { + "internalType": "contract IUniswapV2Router02", + "name": "uniswapRouter_", + "type": "address" + }, + { + "internalType": "uint256", + "name": "effectiveTime_", + "type": "uint256" + }, + { + "internalType": "bytes32", + "name": "initHash_", + "type": "bytes32" + } + ], + "name": "initialize", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "owner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "p12", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "p12Mine", + "outputs": [ + { + "internalType": "contract IP12MineUpgradeable", + "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": "pendingOwner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "contract IP12GameCoin", + "name": "", + "type": "address" + } + ], + "name": "preMintIds", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "proxiableUUID", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "string", + "name": "gameId", + "type": "string" + }, + { + "internalType": "contract IP12GameCoin", + "name": "gameCoinAddress", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amountGameCoin", + "type": "uint256" + } + ], + "name": "queueMintCoin", + "outputs": [ + { + "internalType": "bool", + "name": "success", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "string", + "name": "gameId", + "type": "string" + }, + { + "internalType": "address", + "name": "developer", + "type": "address" + } + ], + "name": "register", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "renounceOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "newDelayB", + "type": "uint256" + } + ], + "name": "setDelayB", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "newDelayK", + "type": "uint256" + } + ], + "name": "setDelayK", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newDev", + "type": "address" + } + ], + "name": "setDev", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "contract IGaugeController", + "name": "newGaugeController", + "type": "address" + } + ], + "name": "setGaugeController", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "contract IP12MineUpgradeable", + "name": "newP12Mine", + "type": "address" + } + ], + "name": "setP12Mine", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newP12Token", + "type": "address" + } + ], + "name": "setP12Token", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "contract IUniswapV2Factory", + "name": "newUniswapFactory", + "type": "address" + } + ], + "name": "setUniswapFactory", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "contract IUniswapV2Router02", + "name": "newUniswapRouter", + "type": "address" + } + ], + "name": "setUniswapRouter", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newOwner", + "type": "address" + }, + { + "internalType": "bool", + "name": "direct", + "type": "bool" + } + ], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "uniswapFactory", + "outputs": [ + { + "internalType": "contract IUniswapV2Factory", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "uniswapRouter", + "outputs": [ + { + "internalType": "contract IUniswapV2Router02", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "unpause", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newImplementation", + "type": "address" + } + ], + "name": "upgradeTo", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newImplementation", + "type": "address" + }, + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "upgradeToAndCall", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "userAddress", + "type": "address" + }, + { + "internalType": "contract IP12GameCoin", + "name": "gameCoinAddress", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amountGameCoin", + "type": "uint256" + } + ], + "name": "withdraw", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_logic", + "type": "address" + }, + { + "internalType": "bytes", + "name": "_data", + "type": "bytes" + } + ], + "stateMutability": "payable", + "type": "constructor" + } + ], + "transactionHash": "0x7de456c498c153d9ba359f955e0f17f127f98de141977ebc82671d64c03d93f5", + "receipt": { + "to": null, + "from": "0xfeD03676c595DD1F1c6716a446cD44B4C90AD290", + "contractAddress": "0x2695eF03c7ea6A1F55463ee4b47E4E3DBCBcd6d1", + "transactionIndex": 0, + "gasUsed": "450871", + "logsBloom": "0x00000000000000000000000000000000400010000000000000800000000400000000000000000000000004000000000000000100000000000000000000200000000000000000000000000000000002000001000000000000000000000002000000000008020000000000000000000800000002000010000000020000000000400000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000010000100000000000000000000000020000000000000000000000082000000000000000000000000000030000010000100000000000000000000000000000000008000000000000010002000", + "blockHash": "0xf5934f1d7dac8a28764e1f1d253433edb8358fc1a5d20e60517f908a154ab86f", + "transactionHash": "0x7de456c498c153d9ba359f955e0f17f127f98de141977ebc82671d64c03d93f5", + "logs": [ + { + "transactionIndex": 0, + "blockNumber": 1206188, + "transactionHash": "0x7de456c498c153d9ba359f955e0f17f127f98de141977ebc82671d64c03d93f5", + "address": "0x2695eF03c7ea6A1F55463ee4b47E4E3DBCBcd6d1", + "topics": [ + "0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b", + "0x0000000000000000000000002a0c13ccaeeae5325fa487139944ecc1f93c9487" + ], + "data": "0x", + "logIndex": 0, + "blockHash": "0xf5934f1d7dac8a28764e1f1d253433edb8358fc1a5d20e60517f908a154ab86f" + }, + { + "transactionIndex": 0, + "blockNumber": 1206188, + "transactionHash": "0x7de456c498c153d9ba359f955e0f17f127f98de141977ebc82671d64c03d93f5", + "address": "0xeAc1F044C4b9B7069eF9F3eC05AC60Df76Fe6Cd0", + "topics": [ + "0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925", + "0x0000000000000000000000002695ef03c7ea6a1f55463ee4b47e4e3dbcbcd6d1", + "0x00000000000000000000000071a3b75a9a774eb793a44a36af760ee2868912ac" + ], + "data": "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff", + "logIndex": 1, + "blockHash": "0xf5934f1d7dac8a28764e1f1d253433edb8358fc1a5d20e60517f908a154ab86f" + }, + { + "transactionIndex": 0, + "blockNumber": 1206188, + "transactionHash": "0x7de456c498c153d9ba359f955e0f17f127f98de141977ebc82671d64c03d93f5", + "address": "0x2695eF03c7ea6A1F55463ee4b47E4E3DBCBcd6d1", + "topics": [ + "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", + "0x0000000000000000000000000000000000000000000000000000000000000000", + "0x000000000000000000000000fed03676c595dd1f1c6716a446cd44b4c90ad290" + ], + "data": "0x", + "logIndex": 2, + "blockHash": "0xf5934f1d7dac8a28764e1f1d253433edb8358fc1a5d20e60517f908a154ab86f" + } + ], + "blockNumber": 1206188, + "cumulativeGasUsed": "450871", + "status": 1, + "byzantium": true + }, + "args": [ + "0x2A0c13CcaEeAe5325fa487139944ECC1f93c9487", + "0x8d7017d3000000000000000000000000eac1f044c4b9b7069ef9f3ec05ac60df76fe6cd00000000000000000000000008c2543578efed64343c63e9075ed70f1d255d1c600000000000000000000000071a3b75a9a774eb793a44a36af760ee2868912ac00000000000000000000000000000000000000000000000000000000000000642f22821dda185ca6a368bbdbda5c5e8522ce7b523c2bfe62fed3b8a423b0357e" + ], + "numDeployments": 1, + "bytecode": "0x6080604052604051610772380380610772833981016040819052610022916102f7565b61004d60017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd61040f565b60008051602061072b8339815191521461007757634e487b7160e01b600052600160045260246000fd5b6100838282600061008a565b5050610474565b610093836100f4565b6040516001600160a01b038416907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a26000825111806100d45750805b156100ef576100ed83836101b460201b6100291760201c565b505b505050565b610107816101e060201b6100551760201c565b61016e5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084015b60405180910390fd5b8061019360008051602061072b83398151915260001b6101e660201b61005b1760201c565b80546001600160a01b0319166001600160a01b039290921691909117905550565b60606101d9838360405180606001604052806027815260200161074b602791396101e9565b9392505050565b3b151590565b90565b6060833b6102485760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b6064820152608401610165565b600080856001600160a01b03168560405161026391906103c0565b600060405180830381855af49150503d806000811461029e576040519150601f19603f3d011682016040523d82523d6000602084013e6102a3565b606091505b5090925090506102b48282866102be565b9695505050505050565b606083156102cd5750816101d9565b8251156102dd5782518084602001fd5b8160405162461bcd60e51b815260040161016591906103dc565b60008060408385031215610309578182fd5b82516001600160a01b038116811461031f578283fd5b60208401519092506001600160401b038082111561033b578283fd5b818501915085601f83011261034e578283fd5b8151818111156103605761036061045e565b604051601f8201601f19908116603f011681019083821181831017156103885761038861045e565b816040528281528860208487010111156103a0578586fd5b6103b1836020830160208801610432565b80955050505050509250929050565b600082516103d2818460208701610432565b9190910192915050565b60006020825282518060208401526103fb816040850160208701610432565b601f01601f19169190910160400192915050565b60008282101561042d57634e487b7160e01b81526011600452602481fd5b500390565b60005b8381101561044d578181015183820152602001610435565b838111156100ed5750506000910152565b634e487b7160e01b600052604160045260246000fd5b6102a8806104836000396000f3fe60806040523661001357610011610017565b005b6100115b61002761002261005e565b610096565b565b606061004e838360405180606001604052806027815260200161024c602791396100ba565b9392505050565b3b151590565b90565b60006100917f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b3660008037600080366000845af43d6000803e8080156100b5573d6000f35b3d6000fd5b6060833b61011e5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084015b60405180910390fd5b600080856001600160a01b03168560405161013991906101cc565b600060405180830381855af49150503d8060008114610174576040519150601f19603f3d011682016040523d82523d6000602084013e610179565b606091505b5091509150610189828286610193565b9695505050505050565b606083156101a257508161004e565b8251156101b25782518084602001fd5b8160405162461bcd60e51b815260040161011591906101e8565b600082516101de81846020870161021b565b9190910192915050565b600060208252825180602084015261020781604085016020870161021b565b601f01601f19169190910160400192915050565b60005b8381101561023657818101518382015260200161021e565b83811115610245576000848401525b5050505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212209b8470f06e8a3960c912103fc2be177edaad69584ee3c7d2809ee737e79408e764736f6c63430008020033360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564", + "deployedBytecode": "0x60806040523661001357610011610017565b005b6100115b61002761002261005e565b610096565b565b606061004e838360405180606001604052806027815260200161024c602791396100ba565b9392505050565b3b151590565b90565b60006100917f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b3660008037600080366000845af43d6000803e8080156100b5573d6000f35b3d6000fd5b6060833b61011e5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084015b60405180910390fd5b600080856001600160a01b03168560405161013991906101cc565b600060405180830381855af49150503d8060008114610174576040519150601f19603f3d011682016040523d82523d6000602084013e610179565b606091505b5091509150610189828286610193565b9695505050505050565b606083156101a257508161004e565b8251156101b25782518084602001fd5b8160405162461bcd60e51b815260040161011591906101e8565b600082516101de81846020870161021b565b9190910192915050565b600060208252825180602084015261020781604085016020870161021b565b601f01601f19169190910160400192915050565b60005b8381101561023657818101518382015260200161021e565b83811115610245576000848401525b5050505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212209b8470f06e8a3960c912103fc2be177edaad69584ee3c7d2809ee737e79408e764736f6c63430008020033", + "execute": { + "methodName": "initialize", + "args": [ + "0xeAc1F044C4b9B7069eF9F3eC05AC60Df76Fe6Cd0", + "0x8C2543578eFEd64343C63e9075ed70F1d255D1c6", + "0x71A3B75A9A774EB793A44a36AF760ee2868912ac", + 100, + { + "0": 47, + "1": 34, + "2": 130, + "3": 29, + "4": 218, + "5": 24, + "6": 92, + "7": 166, + "8": 163, + "9": 104, + "10": 187, + "11": 219, + "12": 218, + "13": 92, + "14": 94, + "15": 133, + "16": 34, + "17": 206, + "18": 123, + "19": 82, + "20": 60, + "21": 43, + "22": 254, + "23": 98, + "24": 254, + "25": 211, + "26": 184, + "27": 164, + "28": 35, + "29": 176, + "30": 53, + "31": 126 + } + ] + }, + "implementation": "0x2A0c13CcaEeAe5325fa487139944ECC1f93c9487" +} \ No newline at end of file diff --git a/deployments/p12TestNet/P12CoinFactoryUpgradeable_Implementation.json b/deployments/p12TestNet/P12CoinFactoryUpgradeable_Implementation.json new file mode 100644 index 0000000..f09e140 --- /dev/null +++ b/deployments/p12TestNet/P12CoinFactoryUpgradeable_Implementation.json @@ -0,0 +1,1588 @@ +{ + "address": "0x2A0c13CcaEeAe5325fa487139944ECC1f93c9487", + "abi": [ + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "previousAdmin", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "newAdmin", + "type": "address" + } + ], + "name": "AdminChanged", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "beacon", + "type": "address" + } + ], + "name": "BeaconUpgraded", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "contract IP12GameCoin", + "name": "gameCoinAddress", + "type": "address" + }, + { + "indexed": false, + "internalType": "string", + "name": "gameId", + "type": "string" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amountP12", + "type": "uint256" + } + ], + "name": "CreateGameCoin", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "mintId", + "type": "bytes32" + }, + { + "indexed": true, + "internalType": "contract IP12GameCoin", + "name": "gameCoinAddress", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "executor", + "type": "address" + } + ], + "name": "ExecuteMintCoin", + "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": [ + { + "indexed": false, + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "Paused", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "mintId", + "type": "bytes32" + }, + { + "indexed": true, + "internalType": "contract IP12GameCoin", + "name": "gameCoinAddress", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "mintAmount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "unlockTimestamp", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amountP12", + "type": "uint256" + } + ], + "name": "QueueMintCoin", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "string", + "name": "gameId", + "type": "string" + }, + { + "indexed": true, + "internalType": "address", + "name": "developer", + "type": "address" + } + ], + "name": "RegisterGame", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "oldDelayB", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "newDelayB", + "type": "uint256" + } + ], + "name": "SetDelayB", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "oldDelayK", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "newDelayK", + "type": "uint256" + } + ], + "name": "SetDelayK", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "oldDev", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "newDev", + "type": "address" + } + ], + "name": "SetDev", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "contract IGaugeController", + "name": "oldGaugeController", + "type": "address" + }, + { + "indexed": false, + "internalType": "contract IGaugeController", + "name": "newGaugeController", + "type": "address" + } + ], + "name": "SetGaugeController", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "contract IP12MineUpgradeable", + "name": "oldP12Mine", + "type": "address" + }, + { + "indexed": false, + "internalType": "contract IP12MineUpgradeable", + "name": "newP12Mine", + "type": "address" + } + ], + "name": "SetP12Mine", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "oldP12Token", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "newP12Token", + "type": "address" + } + ], + "name": "SetP12Token", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "contract IUniswapV2Factory", + "name": "oldUniswapFactory", + "type": "address" + }, + { + "indexed": false, + "internalType": "contract IUniswapV2Factory", + "name": "newUniswapFactory", + "type": "address" + } + ], + "name": "SetUniswapFactory", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "contract IUniswapV2Router02", + "name": "oldUniswapRouter", + "type": "address" + }, + { + "indexed": false, + "internalType": "contract IUniswapV2Router02", + "name": "newUniswapRouter", + "type": "address" + } + ], + "name": "SetUniswapRouter", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "Unpaused", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "implementation", + "type": "address" + } + ], + "name": "Upgraded", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "userAddress", + "type": "address" + }, + { + "indexed": false, + "internalType": "contract IP12GameCoin", + "name": "gameCoinAddress", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amountGameCoin", + "type": "uint256" + } + ], + "name": "Withdraw", + "type": "event" + }, + { + "inputs": [], + "name": "addLiquidityEffectiveTime", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "contract IP12GameCoin", + "name": "", + "type": "address" + } + ], + "name": "allGameCoins", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "name": "allGames", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "claimOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "contract IP12GameCoin", + "name": "", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "name": "coinMintRecords", + "outputs": [ + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "unlockTimestamp", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "executed", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "string", + "name": "name", + "type": "string" + }, + { + "internalType": "string", + "name": "symbol", + "type": "string" + }, + { + "internalType": "string", + "name": "gameId", + "type": "string" + }, + { + "internalType": "string", + "name": "gameCoinIconUrl", + "type": "string" + }, + { + "internalType": "uint256", + "name": "amountGameCoin", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amountP12", + "type": "uint256" + } + ], + "name": "create", + "outputs": [ + { + "internalType": "contract IP12GameCoin", + "name": "gameCoinAddress", + "type": "address" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "delayB", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "delayK", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "dev", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "contract IP12GameCoin", + "name": "gameCoinAddress", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "mintId", + "type": "bytes32" + } + ], + "name": "executeMintCoin", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "gaugeController", + "outputs": [ + { + "internalType": "contract IGaugeController", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "contract IP12GameCoin", + "name": "gameCoinAddress", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amountGameCoin", + "type": "uint256" + } + ], + "name": "getMintDelay", + "outputs": [ + { + "internalType": "uint256", + "name": "time", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "contract IP12GameCoin", + "name": "gameCoinAddress", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amountGameCoin", + "type": "uint256" + } + ], + "name": "getMintFee", + "outputs": [ + { + "internalType": "uint256", + "name": "amountP12", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "p12_", + "type": "address" + }, + { + "internalType": "contract IUniswapV2Factory", + "name": "uniswapFactory_", + "type": "address" + }, + { + "internalType": "contract IUniswapV2Router02", + "name": "uniswapRouter_", + "type": "address" + }, + { + "internalType": "uint256", + "name": "effectiveTime_", + "type": "uint256" + }, + { + "internalType": "bytes32", + "name": "initHash_", + "type": "bytes32" + } + ], + "name": "initialize", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "owner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "p12", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "p12Mine", + "outputs": [ + { + "internalType": "contract IP12MineUpgradeable", + "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": "pendingOwner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "contract IP12GameCoin", + "name": "", + "type": "address" + } + ], + "name": "preMintIds", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "proxiableUUID", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "string", + "name": "gameId", + "type": "string" + }, + { + "internalType": "contract IP12GameCoin", + "name": "gameCoinAddress", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amountGameCoin", + "type": "uint256" + } + ], + "name": "queueMintCoin", + "outputs": [ + { + "internalType": "bool", + "name": "success", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "string", + "name": "gameId", + "type": "string" + }, + { + "internalType": "address", + "name": "developer", + "type": "address" + } + ], + "name": "register", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "renounceOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "newDelayB", + "type": "uint256" + } + ], + "name": "setDelayB", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "newDelayK", + "type": "uint256" + } + ], + "name": "setDelayK", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newDev", + "type": "address" + } + ], + "name": "setDev", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "contract IGaugeController", + "name": "newGaugeController", + "type": "address" + } + ], + "name": "setGaugeController", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "contract IP12MineUpgradeable", + "name": "newP12Mine", + "type": "address" + } + ], + "name": "setP12Mine", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newP12Token", + "type": "address" + } + ], + "name": "setP12Token", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "contract IUniswapV2Factory", + "name": "newUniswapFactory", + "type": "address" + } + ], + "name": "setUniswapFactory", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "contract IUniswapV2Router02", + "name": "newUniswapRouter", + "type": "address" + } + ], + "name": "setUniswapRouter", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newOwner", + "type": "address" + }, + { + "internalType": "bool", + "name": "direct", + "type": "bool" + } + ], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "uniswapFactory", + "outputs": [ + { + "internalType": "contract IUniswapV2Factory", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "uniswapRouter", + "outputs": [ + { + "internalType": "contract IUniswapV2Router02", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "unpause", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newImplementation", + "type": "address" + } + ], + "name": "upgradeTo", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newImplementation", + "type": "address" + }, + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "upgradeToAndCall", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "userAddress", + "type": "address" + }, + { + "internalType": "contract IP12GameCoin", + "name": "gameCoinAddress", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amountGameCoin", + "type": "uint256" + } + ], + "name": "withdraw", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + } + ], + "transactionHash": "0x335c45dd7e98d358255a8aa34f7238ef7baffe2049e625a860e4121623012431", + "receipt": { + "to": null, + "from": "0xfeD03676c595DD1F1c6716a446cD44B4C90AD290", + "contractAddress": "0x2A0c13CcaEeAe5325fa487139944ECC1f93c9487", + "transactionIndex": 0, + "gasUsed": "4486130", + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "blockHash": "0x083081e3af367596c21978234835d5056ff7eaa8570d2f5a230b174a9bca91b4", + "transactionHash": "0x335c45dd7e98d358255a8aa34f7238ef7baffe2049e625a860e4121623012431", + "logs": [], + "blockNumber": 1206187, + "cumulativeGasUsed": "4486130", + "status": 1, + "byzantium": true + }, + "args": [], + "numDeployments": 1, + "solcInputHash": "1f7f80fb95b6efcc6f464d7df403eaaa", + "metadata": "{\"compiler\":{\"version\":\"0.8.15+commit.e14f2714\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"previousAdmin\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newAdmin\",\"type\":\"address\"}],\"name\":\"AdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"beacon\",\"type\":\"address\"}],\"name\":\"BeaconUpgraded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"contract IP12GameCoin\",\"name\":\"gameCoinAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"gameId\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountP12\",\"type\":\"uint256\"}],\"name\":\"CreateGameCoin\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"mintId\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"contract IP12GameCoin\",\"name\":\"gameCoinAddress\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"executor\",\"type\":\"address\"}],\"name\":\"ExecuteMintCoin\",\"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\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Paused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"mintId\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"contract IP12GameCoin\",\"name\":\"gameCoinAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"mintAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"unlockTimestamp\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountP12\",\"type\":\"uint256\"}],\"name\":\"QueueMintCoin\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"gameId\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"developer\",\"type\":\"address\"}],\"name\":\"RegisterGame\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"oldDelayB\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newDelayB\",\"type\":\"uint256\"}],\"name\":\"SetDelayB\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"oldDelayK\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newDelayK\",\"type\":\"uint256\"}],\"name\":\"SetDelayK\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"oldDev\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newDev\",\"type\":\"address\"}],\"name\":\"SetDev\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"contract IGaugeController\",\"name\":\"oldGaugeController\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"contract IGaugeController\",\"name\":\"newGaugeController\",\"type\":\"address\"}],\"name\":\"SetGaugeController\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"contract IP12MineUpgradeable\",\"name\":\"oldP12Mine\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"contract IP12MineUpgradeable\",\"name\":\"newP12Mine\",\"type\":\"address\"}],\"name\":\"SetP12Mine\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"oldP12Token\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newP12Token\",\"type\":\"address\"}],\"name\":\"SetP12Token\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"contract IUniswapV2Factory\",\"name\":\"oldUniswapFactory\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"contract IUniswapV2Factory\",\"name\":\"newUniswapFactory\",\"type\":\"address\"}],\"name\":\"SetUniswapFactory\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"contract IUniswapV2Router02\",\"name\":\"oldUniswapRouter\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"contract IUniswapV2Router02\",\"name\":\"newUniswapRouter\",\"type\":\"address\"}],\"name\":\"SetUniswapRouter\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Unpaused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"Upgraded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"userAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"contract IP12GameCoin\",\"name\":\"gameCoinAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountGameCoin\",\"type\":\"uint256\"}],\"name\":\"Withdraw\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"addLiquidityEffectiveTime\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract IP12GameCoin\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"allGameCoins\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"name\":\"allGames\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"claimOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract IP12GameCoin\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"coinMintRecords\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"unlockTimestamp\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"executed\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"symbol\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"gameId\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"gameCoinIconUrl\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"amountGameCoin\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amountP12\",\"type\":\"uint256\"}],\"name\":\"create\",\"outputs\":[{\"internalType\":\"contract IP12GameCoin\",\"name\":\"gameCoinAddress\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"delayB\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"delayK\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"dev\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract IP12GameCoin\",\"name\":\"gameCoinAddress\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"mintId\",\"type\":\"bytes32\"}],\"name\":\"executeMintCoin\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"gaugeController\",\"outputs\":[{\"internalType\":\"contract IGaugeController\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract IP12GameCoin\",\"name\":\"gameCoinAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountGameCoin\",\"type\":\"uint256\"}],\"name\":\"getMintDelay\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"time\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract IP12GameCoin\",\"name\":\"gameCoinAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountGameCoin\",\"type\":\"uint256\"}],\"name\":\"getMintFee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amountP12\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"p12_\",\"type\":\"address\"},{\"internalType\":\"contract IUniswapV2Factory\",\"name\":\"uniswapFactory_\",\"type\":\"address\"},{\"internalType\":\"contract IUniswapV2Router02\",\"name\":\"uniswapRouter_\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"effectiveTime_\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"initHash_\",\"type\":\"bytes32\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"p12\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"p12Mine\",\"outputs\":[{\"internalType\":\"contract IP12MineUpgradeable\",\"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\":\"pendingOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract IP12GameCoin\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"preMintIds\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"proxiableUUID\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"gameId\",\"type\":\"string\"},{\"internalType\":\"contract IP12GameCoin\",\"name\":\"gameCoinAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountGameCoin\",\"type\":\"uint256\"}],\"name\":\"queueMintCoin\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"gameId\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"developer\",\"type\":\"address\"}],\"name\":\"register\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"newDelayB\",\"type\":\"uint256\"}],\"name\":\"setDelayB\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"newDelayK\",\"type\":\"uint256\"}],\"name\":\"setDelayK\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newDev\",\"type\":\"address\"}],\"name\":\"setDev\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract IGaugeController\",\"name\":\"newGaugeController\",\"type\":\"address\"}],\"name\":\"setGaugeController\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract IP12MineUpgradeable\",\"name\":\"newP12Mine\",\"type\":\"address\"}],\"name\":\"setP12Mine\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newP12Token\",\"type\":\"address\"}],\"name\":\"setP12Token\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract IUniswapV2Factory\",\"name\":\"newUniswapFactory\",\"type\":\"address\"}],\"name\":\"setUniswapFactory\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract IUniswapV2Router02\",\"name\":\"newUniswapRouter\",\"type\":\"address\"}],\"name\":\"setUniswapRouter\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"direct\",\"type\":\"bool\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"uniswapFactory\",\"outputs\":[{\"internalType\":\"contract IUniswapV2Factory\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"uniswapRouter\",\"outputs\":[{\"internalType\":\"contract IUniswapV2Router02\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"unpause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"}],\"name\":\"upgradeTo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"upgradeToAndCall\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"userAddress\",\"type\":\"address\"},{\"internalType\":\"contract IP12GameCoin\",\"name\":\"gameCoinAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountGameCoin\",\"type\":\"uint256\"}],\"name\":\"withdraw\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"claimOwnership()\":{\"details\":\"pending owner call this function to claim ownership\"},\"create(string,string,string,string,uint256,uint256)\":{\"details\":\"developer first create their game coin\",\"params\":{\"amountGameCoin\":\"how many coin first mint\",\"amountP12\":\"how many P12 coin developer would stake\",\"gameCoinIconUrl\":\"game coin icon's url\",\"gameId\":\"the game's id\",\"name\":\"new game coin's name\",\"symbol\":\"game coin's symbol\"},\"returns\":{\"gameCoinAddress\":\"the address of the new game coin\"}},\"executeMintCoin(address,bytes32)\":{\"details\":\"when time is up, anyone can call this function to make the mint executed\",\"params\":{\"gameCoinAddress\":\"address of the game coin\",\"mintId\":\"a unique id to identify a mint, developer can get it after declare\"},\"returns\":{\"_0\":\"bool whether the operation success\"}},\"getMintDelay(address,uint256)\":{\"details\":\"linear function to calculate the delay timedelayB is the minimum delay period, even someone mint zero token,there still be delayB period before someone can really mint zero tokendelayK is the parameter to take the ratio of new amount in to accountFor example, the initial supply of Game Coin is 100k. If developer wantto mint 100k, developer needs to real mint it after `delayK + delayB`. Ifdeveloper want to mint 200k, developer has to real mint it after `2DelayK +delayB`. ^ t + / | / | / 2k+b| / | / k+b| / |/ b| 0----p---2p---------> amount\"},\"getMintFee(address,uint256)\":{\"details\":\"calculate the MintFee in P12\"},\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"paused()\":{\"details\":\"Returns true if the contract is paused, and false otherwise.\"},\"pendingOwner()\":{\"details\":\"Return the address of the pending owner\"},\"proxiableUUID()\":{\"details\":\"Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the implementation. It is used to validate that the this implementation remains valid after an upgrade. IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\"},\"queueMintCoin(string,address,uint256)\":{\"details\":\"if developer want to mint after create coin, developer must declare first\",\"params\":{\"amountGameCoin\":\"how many developer want to mint\",\"gameCoinAddress\":\"game coin's address\",\"gameId\":\"game's id\",\"success\":\"whether the operation success\"}},\"register(string,address)\":{\"details\":\"create binding between game and developer, only called by p12 backend\",\"params\":{\"developer\":\"developer address, who own this game\",\"gameId\":\"game id\"}},\"renounceOwnership()\":{\"details\":\"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.\"},\"setDelayB(uint256)\":{\"details\":\"set linear function's B parameter\",\"params\":{\"newDelayB\":\"new B parameter\"}},\"setDelayK(uint256)\":{\"details\":\"set linear function's K parameter\",\"params\":{\"newDelayK\":\"new K parameter\"}},\"setDev(address)\":{\"details\":\"set dev address\",\"params\":{\"newDev\":\"new dev address\"}},\"setGaugeController(address)\":{\"details\":\"set gaugeController contract address\",\"params\":{\"newGaugeController\":\"new gaugeController address\"}},\"setP12Mine(address)\":{\"details\":\"set p12mine contract address\",\"params\":{\"newP12Mine\":\"new p12mine address\"}},\"setP12Token(address)\":{\"details\":\"set p12Token address reserved only during development\",\"params\":{\"newP12Token\":\"new p12Token address\"}},\"setUniswapFactory(address)\":{\"details\":\"set uniswapFactory address reserved only during development\",\"params\":{\"newUniswapFactory\":\"new UniswapFactory address\"}},\"setUniswapRouter(address)\":{\"details\":\"set uniswapRouter address reserved only during development\",\"params\":{\"newUniswapRouter\":\"new uniswapRouter address\"}},\"transferOwnership(address,bool)\":{\"details\":\"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner. Note If direct is false, it will set an pending owner and the OwnerShipTransferring only happens when the pending owner claim the ownership\"},\"upgradeTo(address)\":{\"details\":\"Upgrade the implementation of the proxy to `newImplementation`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.\"},\"upgradeToAndCall(address,bytes)\":{\"details\":\"Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call encoded in `data`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.\"},\"withdraw(address,address,uint256)\":{\"params\":{\"amountGameCoin\":\"how many user want to withdraw\",\"gameCoinAddress\":\"gameCoin's address\",\"userAddress\":\"user's address\"}}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"withdraw(address,address,uint256)\":{\"notice\":\"called when user want to withdraw his game coin from custodian address\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/factory/P12CoinFactoryUpgradeable.sol\":\"P12CoinFactoryUpgradeable\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts-upgradeable/interfaces/draft-IERC1822Upgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (interfaces/draft-IERC1822.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\\n * proxy whose upgrades are fully controlled by the current implementation.\\n */\\ninterface IERC1822ProxiableUpgradeable {\\n /**\\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\\n * address.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy.\\n */\\n function proxiableUUID() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x77c89f893e403efc6929ba842b7ccf6534d4ffe03afe31670b4a528c0ad78c0f\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/ERC1967/ERC1967UpgradeUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (proxy/ERC1967/ERC1967Upgrade.sol)\\n\\npragma solidity ^0.8.2;\\n\\nimport \\\"../beacon/IBeaconUpgradeable.sol\\\";\\nimport \\\"../../interfaces/draft-IERC1822Upgradeable.sol\\\";\\nimport \\\"../../utils/AddressUpgradeable.sol\\\";\\nimport \\\"../../utils/StorageSlotUpgradeable.sol\\\";\\nimport \\\"../utils/Initializable.sol\\\";\\n\\n/**\\n * @dev This abstract contract provides getters and event emitting update functions for\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.\\n *\\n * _Available since v4.1._\\n *\\n * @custom:oz-upgrades-unsafe-allow delegatecall\\n */\\nabstract contract ERC1967UpgradeUpgradeable is Initializable {\\n function __ERC1967Upgrade_init() internal onlyInitializing {\\n }\\n\\n function __ERC1967Upgrade_init_unchained() internal onlyInitializing {\\n }\\n // This is the keccak-256 hash of \\\"eip1967.proxy.rollback\\\" subtracted by 1\\n bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143;\\n\\n /**\\n * @dev Storage slot with the address of the current implementation.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.implementation\\\" subtracted by 1, and is\\n * validated in the constructor.\\n */\\n bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n\\n /**\\n * @dev Emitted when the implementation is upgraded.\\n */\\n event Upgraded(address indexed implementation);\\n\\n /**\\n * @dev Returns the current implementation address.\\n */\\n function _getImplementation() internal view returns (address) {\\n return StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 implementation slot.\\n */\\n function _setImplementation(address newImplementation) private {\\n require(AddressUpgradeable.isContract(newImplementation), \\\"ERC1967: new implementation is not a contract\\\");\\n StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n }\\n\\n /**\\n * @dev Perform implementation upgrade\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeTo(address newImplementation) internal {\\n _setImplementation(newImplementation);\\n emit Upgraded(newImplementation);\\n }\\n\\n /**\\n * @dev Perform implementation upgrade with additional setup call.\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeToAndCall(\\n address newImplementation,\\n bytes memory data,\\n bool forceCall\\n ) internal {\\n _upgradeTo(newImplementation);\\n if (data.length > 0 || forceCall) {\\n _functionDelegateCall(newImplementation, data);\\n }\\n }\\n\\n /**\\n * @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call.\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeToAndCallUUPS(\\n address newImplementation,\\n bytes memory data,\\n bool forceCall\\n ) internal {\\n // Upgrades from old implementations will perform a rollback test. This test requires the new\\n // implementation to upgrade back to the old, non-ERC1822 compliant, implementation. Removing\\n // this special case will break upgrade paths from old UUPS implementation to new ones.\\n if (StorageSlotUpgradeable.getBooleanSlot(_ROLLBACK_SLOT).value) {\\n _setImplementation(newImplementation);\\n } else {\\n try IERC1822ProxiableUpgradeable(newImplementation).proxiableUUID() returns (bytes32 slot) {\\n require(slot == _IMPLEMENTATION_SLOT, \\\"ERC1967Upgrade: unsupported proxiableUUID\\\");\\n } catch {\\n revert(\\\"ERC1967Upgrade: new implementation is not UUPS\\\");\\n }\\n _upgradeToAndCall(newImplementation, data, forceCall);\\n }\\n }\\n\\n /**\\n * @dev Storage slot with the admin of the contract.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.admin\\\" subtracted by 1, and is\\n * validated in the constructor.\\n */\\n bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\\n\\n /**\\n * @dev Emitted when the admin account has changed.\\n */\\n event AdminChanged(address previousAdmin, address newAdmin);\\n\\n /**\\n * @dev Returns the current admin.\\n */\\n function _getAdmin() internal view returns (address) {\\n return StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 admin slot.\\n */\\n function _setAdmin(address newAdmin) private {\\n require(newAdmin != address(0), \\\"ERC1967: new admin is the zero address\\\");\\n StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value = newAdmin;\\n }\\n\\n /**\\n * @dev Changes the admin of the proxy.\\n *\\n * Emits an {AdminChanged} event.\\n */\\n function _changeAdmin(address newAdmin) internal {\\n emit AdminChanged(_getAdmin(), newAdmin);\\n _setAdmin(newAdmin);\\n }\\n\\n /**\\n * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.\\n * This is bytes32(uint256(keccak256('eip1967.proxy.beacon')) - 1)) and is validated in the constructor.\\n */\\n bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\\n\\n /**\\n * @dev Emitted when the beacon is upgraded.\\n */\\n event BeaconUpgraded(address indexed beacon);\\n\\n /**\\n * @dev Returns the current beacon.\\n */\\n function _getBeacon() internal view returns (address) {\\n return StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new beacon in the EIP1967 beacon slot.\\n */\\n function _setBeacon(address newBeacon) private {\\n require(AddressUpgradeable.isContract(newBeacon), \\\"ERC1967: new beacon is not a contract\\\");\\n require(\\n AddressUpgradeable.isContract(IBeaconUpgradeable(newBeacon).implementation()),\\n \\\"ERC1967: beacon implementation is not a contract\\\"\\n );\\n StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value = newBeacon;\\n }\\n\\n /**\\n * @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does\\n * not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that).\\n *\\n * Emits a {BeaconUpgraded} event.\\n */\\n function _upgradeBeaconToAndCall(\\n address newBeacon,\\n bytes memory data,\\n bool forceCall\\n ) internal {\\n _setBeacon(newBeacon);\\n emit BeaconUpgraded(newBeacon);\\n if (data.length > 0 || forceCall) {\\n _functionDelegateCall(IBeaconUpgradeable(newBeacon).implementation(), data);\\n }\\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) private returns (bytes memory) {\\n require(AddressUpgradeable.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 AddressUpgradeable.verifyCallResult(success, returndata, \\\"Address: low-level delegate call failed\\\");\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0x315887e846f1e5f8d8fa535a229d318bb9290aaa69485117f1ee8a9a6b3be823\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/beacon/IBeaconUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev This is the interface that {BeaconProxy} expects of its beacon.\\n */\\ninterface IBeaconUpgradeable {\\n /**\\n * @dev Must return an address that can be used as a delegate call target.\\n *\\n * {BeaconProxy} will check that this address is a contract.\\n */\\n function implementation() external view returns (address);\\n}\\n\",\"keccak256\":\"0x24b86ac8c005b8c654fbf6ac34a5a4f61580d7273541e83e013e89d66fbf0908\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (proxy/utils/Initializable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/AddressUpgradeable.sol\\\";\\n\\n/**\\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\\n *\\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\\n *\\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\\n *\\n * [CAUTION]\\n * ====\\n * Avoid leaving a contract uninitialized.\\n *\\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\\n * contract, which may impact the proxy. To initialize the implementation contract, you can either invoke the\\n * initializer manually, or you can include a constructor to automatically mark it as initialized when it is deployed:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```\\n * /// @custom:oz-upgrades-unsafe-allow constructor\\n * constructor() initializer {}\\n * ```\\n * ====\\n */\\nabstract contract Initializable {\\n /**\\n * @dev Indicates that the contract has been initialized.\\n */\\n bool private _initialized;\\n\\n /**\\n * @dev Indicates that the contract is in the process of being initialized.\\n */\\n bool private _initializing;\\n\\n /**\\n * @dev Modifier to protect an initializer function from being invoked twice.\\n */\\n modifier initializer() {\\n // If the contract is initializing we ignore whether _initialized is set in order to support multiple\\n // inheritance patterns, but we only do this in the context of a constructor, because in other contexts the\\n // contract may have been reentered.\\n require(_initializing ? _isConstructor() : !_initialized, \\\"Initializable: contract is already initialized\\\");\\n\\n bool isTopLevelCall = !_initializing;\\n if (isTopLevelCall) {\\n _initializing = true;\\n _initialized = true;\\n }\\n\\n _;\\n\\n if (isTopLevelCall) {\\n _initializing = false;\\n }\\n }\\n\\n /**\\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\\n * {initializer} modifier, directly or indirectly.\\n */\\n modifier onlyInitializing() {\\n require(_initializing, \\\"Initializable: contract is not initializing\\\");\\n _;\\n }\\n\\n function _isConstructor() private view returns (bool) {\\n return !AddressUpgradeable.isContract(address(this));\\n }\\n}\\n\",\"keccak256\":\"0x372b0bc04e3b4c074559bbbfb1317afddb56de5504158ca25a7f9cd403980445\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (proxy/utils/UUPSUpgradeable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../interfaces/draft-IERC1822Upgradeable.sol\\\";\\nimport \\\"../ERC1967/ERC1967UpgradeUpgradeable.sol\\\";\\nimport \\\"./Initializable.sol\\\";\\n\\n/**\\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\\n *\\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\\n * `UUPSUpgradeable` with a custom implementation of upgrades.\\n *\\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\\n *\\n * _Available since v4.1._\\n */\\nabstract contract UUPSUpgradeable is Initializable, IERC1822ProxiableUpgradeable, ERC1967UpgradeUpgradeable {\\n function __UUPSUpgradeable_init() internal onlyInitializing {\\n }\\n\\n function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\\n }\\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment\\n address private immutable __self = address(this);\\n\\n /**\\n * @dev Check that the execution is being performed through a delegatecall call and that the execution context is\\n * a proxy contract with an implementation (as defined in ERC1967) pointing to self. This should only be the case\\n * for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a\\n * function through ERC1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\\n * fail.\\n */\\n modifier onlyProxy() {\\n require(address(this) != __self, \\\"Function must be called through delegatecall\\\");\\n require(_getImplementation() == __self, \\\"Function must be called through active proxy\\\");\\n _;\\n }\\n\\n /**\\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\\n * callable on the implementing contract but not through proxies.\\n */\\n modifier notDelegated() {\\n require(address(this) == __self, \\\"UUPSUpgradeable: must not be called through delegatecall\\\");\\n _;\\n }\\n\\n /**\\n * @dev Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the\\n * implementation. It is used to validate that the this implementation remains valid after an upgrade.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\\n */\\n function proxiableUUID() external view virtual override notDelegated returns (bytes32) {\\n return _IMPLEMENTATION_SLOT;\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy to `newImplementation`.\\n *\\n * Calls {_authorizeUpgrade}.\\n *\\n * Emits an {Upgraded} event.\\n */\\n function upgradeTo(address newImplementation) external virtual onlyProxy {\\n _authorizeUpgrade(newImplementation);\\n _upgradeToAndCallUUPS(newImplementation, new bytes(0), false);\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call\\n * encoded in `data`.\\n *\\n * Calls {_authorizeUpgrade}.\\n *\\n * Emits an {Upgraded} event.\\n */\\n function upgradeToAndCall(address newImplementation, bytes memory data) external payable virtual onlyProxy {\\n _authorizeUpgrade(newImplementation);\\n _upgradeToAndCallUUPS(newImplementation, data, true);\\n }\\n\\n /**\\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\\n * {upgradeTo} and {upgradeToAndCall}.\\n *\\n * Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}.\\n *\\n * ```solidity\\n * function _authorizeUpgrade(address) internal override onlyOwner {}\\n * ```\\n */\\n function _authorizeUpgrade(address newImplementation) internal virtual;\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0x6e36e9b4b71de699c2f3f0d4e4d1aa0b35da99a26e8d5b91ef09ba234b4ef270\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../utils/ContextUpgradeable.sol\\\";\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module which allows children to implement an emergency stop\\n * mechanism that can be triggered by an authorized account.\\n *\\n * This module is used through inheritance. It will make available the\\n * modifiers `whenNotPaused` and `whenPaused`, which can be applied to\\n * the functions of your contract. Note that they will not be pausable by\\n * simply including this module, only once the modifiers are put in place.\\n */\\nabstract contract PausableUpgradeable is Initializable, ContextUpgradeable {\\n /**\\n * @dev Emitted when the pause is triggered by `account`.\\n */\\n event Paused(address account);\\n\\n /**\\n * @dev Emitted when the pause is lifted by `account`.\\n */\\n event Unpaused(address account);\\n\\n bool private _paused;\\n\\n /**\\n * @dev Initializes the contract in unpaused state.\\n */\\n function __Pausable_init() internal onlyInitializing {\\n __Pausable_init_unchained();\\n }\\n\\n function __Pausable_init_unchained() internal onlyInitializing {\\n _paused = false;\\n }\\n\\n /**\\n * @dev Returns true if the contract is paused, and false otherwise.\\n */\\n function paused() public view virtual returns (bool) {\\n return _paused;\\n }\\n\\n /**\\n * @dev Modifier to make a function callable only when the contract is not paused.\\n *\\n * Requirements:\\n *\\n * - The contract must not be paused.\\n */\\n modifier whenNotPaused() {\\n require(!paused(), \\\"Pausable: paused\\\");\\n _;\\n }\\n\\n /**\\n * @dev Modifier to make a function callable only when the contract is paused.\\n *\\n * Requirements:\\n *\\n * - The contract must be paused.\\n */\\n modifier whenPaused() {\\n require(paused(), \\\"Pausable: not paused\\\");\\n _;\\n }\\n\\n /**\\n * @dev Triggers stopped state.\\n *\\n * Requirements:\\n *\\n * - The contract must not be paused.\\n */\\n function _pause() internal virtual whenNotPaused {\\n _paused = true;\\n emit Paused(_msgSender());\\n }\\n\\n /**\\n * @dev Returns to normal state.\\n *\\n * Requirements:\\n *\\n * - The contract must be paused.\\n */\\n function _unpause() internal virtual whenPaused {\\n _paused = false;\\n emit Unpaused(_msgSender());\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[49] private __gap;\\n}\\n\",\"keccak256\":\"0x041af89e5e60b74e1203d5a34614c9de379726f52ecb8cf064cab78b9fdcdf9d\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)\\n\\npragma solidity ^0.8.0;\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module that helps prevent reentrant calls to a function.\\n *\\n * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier\\n * available, which can be applied to functions to make sure there are no nested\\n * (reentrant) calls to them.\\n *\\n * Note that because there is a single `nonReentrant` guard, functions marked as\\n * `nonReentrant` may not call one another. This can be worked around by making\\n * those functions `private`, and then adding `external` `nonReentrant` entry\\n * points to them.\\n *\\n * TIP: If you would like to learn more about reentrancy and alternative ways\\n * to protect against it, check out our blog post\\n * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].\\n */\\nabstract contract ReentrancyGuardUpgradeable is Initializable {\\n // Booleans are more expensive than uint256 or any type that takes up a full\\n // word because each write operation emits an extra SLOAD to first read the\\n // slot's contents, replace the bits taken up by the boolean, and then write\\n // back. This is the compiler's defense against contract upgrades and\\n // pointer aliasing, and it cannot be disabled.\\n\\n // The values being non-zero value makes deployment a bit more expensive,\\n // but in exchange the refund on every call to nonReentrant will be lower in\\n // amount. Since refunds are capped to a percentage of the total\\n // transaction's gas, it is best to keep them low in cases like this one, to\\n // increase the likelihood of the full refund coming into effect.\\n uint256 private constant _NOT_ENTERED = 1;\\n uint256 private constant _ENTERED = 2;\\n\\n uint256 private _status;\\n\\n function __ReentrancyGuard_init() internal onlyInitializing {\\n __ReentrancyGuard_init_unchained();\\n }\\n\\n function __ReentrancyGuard_init_unchained() internal onlyInitializing {\\n _status = _NOT_ENTERED;\\n }\\n\\n /**\\n * @dev Prevents a contract from calling itself, directly or indirectly.\\n * Calling a `nonReentrant` function from another `nonReentrant`\\n * function is not supported. It is possible to prevent this from happening\\n * by making the `nonReentrant` function external, and making it call a\\n * `private` function that does the actual work.\\n */\\n modifier nonReentrant() {\\n // On the first call to nonReentrant, _notEntered will be true\\n require(_status != _ENTERED, \\\"ReentrancyGuard: reentrant call\\\");\\n\\n // Any calls to nonReentrant after this point will fail\\n _status = _ENTERED;\\n\\n _;\\n\\n // By storing the original value once again, a refund is triggered (see\\n // https://eips.ethereum.org/EIPS/eip-2200)\\n _status = _NOT_ENTERED;\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[49] private __gap;\\n}\\n\",\"keccak256\":\"0x8cc03c5ac17e8a7396e487cda41fc1f1dfdb91db7d528e6da84bee3b6dd7e167\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC20 standard as defined in the EIP.\\n */\\ninterface IERC20Upgradeable {\\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 `to`.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transfer(address to, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Returns the remaining number of tokens that `spender` will be\\n * allowed to spend on behalf of `owner` through {transferFrom}. This is\\n * zero by default.\\n *\\n * This value changes when {approve} or {transferFrom} are called.\\n */\\n function allowance(address owner, address spender) external view returns (uint256);\\n\\n /**\\n * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * IMPORTANT: Beware that changing an allowance with this method brings the risk\\n * that someone may use both the old and the new allowance by unfortunate\\n * transaction ordering. One possible solution to mitigate this race\\n * condition is to first reduce the spender's allowance to 0 and set the\\n * desired value afterwards:\\n * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\\n *\\n * Emits an {Approval} event.\\n */\\n function approve(address spender, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Moves `amount` tokens from `from` to `to` 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(\\n address from,\\n address to,\\n uint256 amount\\n ) external returns (bool);\\n\\n /**\\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\\n * another (`to`).\\n *\\n * Note that `value` may be zero.\\n */\\n event Transfer(address indexed from, address indexed to, uint256 value);\\n\\n /**\\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\\n * a call to {approve}. `value` is the new allowance.\\n */\\n event Approval(address indexed owner, address indexed spender, uint256 value);\\n}\\n\",\"keccak256\":\"0x6777f3fccb5dab95a9088ef62c41bee0198fd92e50d7c94f0e3733788af4079e\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../IERC20Upgradeable.sol\\\";\\nimport \\\"../../../utils/AddressUpgradeable.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 SafeERC20Upgradeable {\\n using AddressUpgradeable for address;\\n\\n function safeTransfer(\\n IERC20Upgradeable token,\\n address to,\\n uint256 value\\n ) internal {\\n _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));\\n }\\n\\n function safeTransferFrom(\\n IERC20Upgradeable token,\\n address from,\\n address to,\\n uint256 value\\n ) internal {\\n _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));\\n }\\n\\n /**\\n * @dev Deprecated. This function has issues similar to the ones found in\\n * {IERC20-approve}, and its usage is discouraged.\\n *\\n * Whenever possible, use {safeIncreaseAllowance} and\\n * {safeDecreaseAllowance} instead.\\n */\\n function safeApprove(\\n IERC20Upgradeable token,\\n address spender,\\n uint256 value\\n ) internal {\\n // safeApprove should only be called when setting an initial allowance,\\n // or when resetting it to zero. To increase and decrease it, use\\n // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'\\n require(\\n (value == 0) || (token.allowance(address(this), spender) == 0),\\n \\\"SafeERC20: approve from non-zero to non-zero allowance\\\"\\n );\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));\\n }\\n\\n function safeIncreaseAllowance(\\n IERC20Upgradeable token,\\n address spender,\\n uint256 value\\n ) internal {\\n uint256 newAllowance = token.allowance(address(this), spender) + value;\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));\\n }\\n\\n function safeDecreaseAllowance(\\n IERC20Upgradeable token,\\n address spender,\\n uint256 value\\n ) internal {\\n unchecked {\\n uint256 oldAllowance = token.allowance(address(this), spender);\\n require(oldAllowance >= value, \\\"SafeERC20: decreased allowance below zero\\\");\\n uint256 newAllowance = oldAllowance - value;\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));\\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(IERC20Upgradeable token, bytes memory data) private {\\n // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since\\n // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that\\n // the target address contains contract code and also asserts for success in the low-level call.\\n\\n bytes memory returndata = address(token).functionCall(data, \\\"SafeERC20: low-level call failed\\\");\\n if (returndata.length > 0) {\\n // Return data is optional\\n require(abi.decode(returndata, (bool)), \\\"SafeERC20: ERC20 operation did not succeed\\\");\\n }\\n }\\n}\\n\",\"keccak256\":\"0x3e26a49d2fa5ef8338b8a9467c91e54f417cb07e849b1cc0f4ebc4d2a147938e\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary AddressUpgradeable {\\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 * [IMPORTANT]\\n * ====\\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\\n *\\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n * constructor.\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize/address.code.length, which returns 0\\n // for contracts in construction, since the code is only stored at the end\\n // of the constructor execution.\\n\\n return account.code.length > 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 (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(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) 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(\\n address target,\\n bytes memory data,\\n uint256 value\\n ) 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(\\n address target,\\n bytes memory data,\\n uint256 value,\\n string memory errorMessage\\n ) 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 (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(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n require(isContract(target), \\\"Address: static call to non-contract\\\");\\n\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResult(success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the\\n * revert reason using the provided one.\\n *\\n * _Available since v4.3._\\n */\\n function verifyCallResult(\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal 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 assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0x55cf2bd9fc76704ddcdc19834cd288b7de00fc0f298a40ea16a954ae8991db2d\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\\n\\npragma solidity ^0.8.0;\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract ContextUpgradeable is Initializable {\\n function __Context_init() internal onlyInitializing {\\n }\\n\\n function __Context_init_unchained() internal onlyInitializing {\\n }\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0x963ea7f0b48b032eef72fe3a7582edf78408d6f834115b9feadd673a4d5bd149\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/StorageSlotUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/StorageSlot.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Library for reading and writing primitive types to specific storage slots.\\n *\\n * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.\\n * This library helps with reading and writing to such slots without the need for inline assembly.\\n *\\n * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.\\n *\\n * Example usage to set ERC1967 implementation slot:\\n * ```\\n * contract ERC1967 {\\n * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n *\\n * function _getImplementation() internal view returns (address) {\\n * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n * }\\n *\\n * function _setImplementation(address newImplementation) internal {\\n * require(Address.isContract(newImplementation), \\\"ERC1967: new implementation is not a contract\\\");\\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n * }\\n * }\\n * ```\\n *\\n * _Available since v4.1 for `address`, `bool`, `bytes32`, and `uint256`._\\n */\\nlibrary StorageSlotUpgradeable {\\n struct AddressSlot {\\n address value;\\n }\\n\\n struct BooleanSlot {\\n bool value;\\n }\\n\\n struct Bytes32Slot {\\n bytes32 value;\\n }\\n\\n struct Uint256Slot {\\n uint256 value;\\n }\\n\\n /**\\n * @dev Returns an `AddressSlot` with member `value` located at `slot`.\\n */\\n function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BooleanSlot` with member `value` located at `slot`.\\n */\\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.\\n */\\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Uint256Slot` with member `value` located at `slot`.\\n */\\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\\n assembly {\\n r.slot := slot\\n }\\n }\\n}\\n\",\"keccak256\":\"0x422c3d27d0d5681cea93acbb0dcb175fa5b461b5b7731da7ff77e51f0f0174c7\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/ERC20.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/ERC20.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IERC20.sol\\\";\\nimport \\\"./extensions/IERC20Metadata.sol\\\";\\nimport \\\"../../utils/Context.sol\\\";\\n\\n/**\\n * @dev Implementation of the {IERC20} interface.\\n *\\n * This implementation is agnostic to the way tokens are created. This means\\n * that a supply mechanism has to be added in a derived contract using {_mint}.\\n * For a generic mechanism see {ERC20PresetMinterPauser}.\\n *\\n * TIP: For a detailed writeup see our guide\\n * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How\\n * to implement supply mechanisms].\\n *\\n * We have followed general OpenZeppelin Contracts guidelines: functions revert\\n * instead returning `false` on failure. This behavior is nonetheless\\n * conventional and does not conflict with the expectations of ERC20\\n * applications.\\n *\\n * Additionally, an {Approval} event is emitted on calls to {transferFrom}.\\n * This allows applications to reconstruct the allowance for all accounts just\\n * by listening to said events. Other implementations of the EIP may not emit\\n * these events, as it isn't required by the specification.\\n *\\n * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}\\n * functions have been added to mitigate the well-known issues around setting\\n * allowances. See {IERC20-approve}.\\n */\\ncontract ERC20 is Context, IERC20, IERC20Metadata {\\n mapping(address => uint256) private _balances;\\n\\n mapping(address => mapping(address => uint256)) private _allowances;\\n\\n uint256 private _totalSupply;\\n\\n string private _name;\\n string private _symbol;\\n\\n /**\\n * @dev Sets the values for {name} and {symbol}.\\n *\\n * The default value of {decimals} is 18. To select a different value for\\n * {decimals} you should overload it.\\n *\\n * All two of these values are immutable: they can only be set once during\\n * construction.\\n */\\n constructor(string memory name_, string memory symbol_) {\\n _name = name_;\\n _symbol = symbol_;\\n }\\n\\n /**\\n * @dev Returns the name of the token.\\n */\\n function name() public view virtual override returns (string memory) {\\n return _name;\\n }\\n\\n /**\\n * @dev Returns the symbol of the token, usually a shorter version of the\\n * name.\\n */\\n function symbol() public view virtual override returns (string memory) {\\n return _symbol;\\n }\\n\\n /**\\n * @dev Returns the number of decimals used to get its user representation.\\n * For example, if `decimals` equals `2`, a balance of `505` tokens should\\n * be displayed to a user as `5.05` (`505 / 10 ** 2`).\\n *\\n * Tokens usually opt for a value of 18, imitating the relationship between\\n * Ether and Wei. This is the value {ERC20} uses, unless this function is\\n * overridden;\\n *\\n * NOTE: This information is only used for _display_ purposes: it in\\n * no way affects any of the arithmetic of the contract, including\\n * {IERC20-balanceOf} and {IERC20-transfer}.\\n */\\n function decimals() public view virtual override returns (uint8) {\\n return 18;\\n }\\n\\n /**\\n * @dev See {IERC20-totalSupply}.\\n */\\n function totalSupply() public view virtual override returns (uint256) {\\n return _totalSupply;\\n }\\n\\n /**\\n * @dev See {IERC20-balanceOf}.\\n */\\n function balanceOf(address account) public view virtual override returns (uint256) {\\n return _balances[account];\\n }\\n\\n /**\\n * @dev See {IERC20-transfer}.\\n *\\n * Requirements:\\n *\\n * - `to` cannot be the zero address.\\n * - the caller must have a balance of at least `amount`.\\n */\\n function transfer(address to, uint256 amount) public virtual override returns (bool) {\\n address owner = _msgSender();\\n _transfer(owner, to, amount);\\n return true;\\n }\\n\\n /**\\n * @dev See {IERC20-allowance}.\\n */\\n function allowance(address owner, address spender) public view virtual override returns (uint256) {\\n return _allowances[owner][spender];\\n }\\n\\n /**\\n * @dev See {IERC20-approve}.\\n *\\n * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on\\n * `transferFrom`. This is semantically equivalent to an infinite approval.\\n *\\n * Requirements:\\n *\\n * - `spender` cannot be the zero address.\\n */\\n function approve(address spender, uint256 amount) public virtual override returns (bool) {\\n address owner = _msgSender();\\n _approve(owner, spender, amount);\\n return true;\\n }\\n\\n /**\\n * @dev See {IERC20-transferFrom}.\\n *\\n * Emits an {Approval} event indicating the updated allowance. This is not\\n * required by the EIP. See the note at the beginning of {ERC20}.\\n *\\n * NOTE: Does not update the allowance if the current allowance\\n * is the maximum `uint256`.\\n *\\n * Requirements:\\n *\\n * - `from` and `to` cannot be the zero address.\\n * - `from` must have a balance of at least `amount`.\\n * - the caller must have allowance for ``from``'s tokens of at least\\n * `amount`.\\n */\\n function transferFrom(\\n address from,\\n address to,\\n uint256 amount\\n ) public virtual override returns (bool) {\\n address spender = _msgSender();\\n _spendAllowance(from, spender, amount);\\n _transfer(from, to, amount);\\n return true;\\n }\\n\\n /**\\n * @dev Atomically increases the allowance granted to `spender` by the caller.\\n *\\n * This is an alternative to {approve} that can be used as a mitigation for\\n * problems described in {IERC20-approve}.\\n *\\n * Emits an {Approval} event indicating the updated allowance.\\n *\\n * Requirements:\\n *\\n * - `spender` cannot be the zero address.\\n */\\n function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {\\n address owner = _msgSender();\\n _approve(owner, spender, _allowances[owner][spender] + addedValue);\\n return true;\\n }\\n\\n /**\\n * @dev Atomically decreases the allowance granted to `spender` by the caller.\\n *\\n * This is an alternative to {approve} that can be used as a mitigation for\\n * problems described in {IERC20-approve}.\\n *\\n * Emits an {Approval} event indicating the updated allowance.\\n *\\n * Requirements:\\n *\\n * - `spender` cannot be the zero address.\\n * - `spender` must have allowance for the caller of at least\\n * `subtractedValue`.\\n */\\n function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {\\n address owner = _msgSender();\\n uint256 currentAllowance = _allowances[owner][spender];\\n require(currentAllowance >= subtractedValue, \\\"ERC20: decreased allowance below zero\\\");\\n unchecked {\\n _approve(owner, spender, currentAllowance - subtractedValue);\\n }\\n\\n return true;\\n }\\n\\n /**\\n * @dev Moves `amount` of tokens from `sender` to `recipient`.\\n *\\n * This internal function is equivalent to {transfer}, and can be used to\\n * e.g. implement automatic token fees, slashing mechanisms, etc.\\n *\\n * Emits a {Transfer} event.\\n *\\n * Requirements:\\n *\\n * - `from` cannot be the zero address.\\n * - `to` cannot be the zero address.\\n * - `from` must have a balance of at least `amount`.\\n */\\n function _transfer(\\n address from,\\n address to,\\n uint256 amount\\n ) internal virtual {\\n require(from != address(0), \\\"ERC20: transfer from the zero address\\\");\\n require(to != address(0), \\\"ERC20: transfer to the zero address\\\");\\n\\n _beforeTokenTransfer(from, to, amount);\\n\\n uint256 fromBalance = _balances[from];\\n require(fromBalance >= amount, \\\"ERC20: transfer amount exceeds balance\\\");\\n unchecked {\\n _balances[from] = fromBalance - amount;\\n }\\n _balances[to] += amount;\\n\\n emit Transfer(from, to, amount);\\n\\n _afterTokenTransfer(from, to, amount);\\n }\\n\\n /** @dev Creates `amount` tokens and assigns them to `account`, increasing\\n * the total supply.\\n *\\n * Emits a {Transfer} event with `from` set to the zero address.\\n *\\n * Requirements:\\n *\\n * - `account` cannot be the zero address.\\n */\\n function _mint(address account, uint256 amount) internal virtual {\\n require(account != address(0), \\\"ERC20: mint to the zero address\\\");\\n\\n _beforeTokenTransfer(address(0), account, amount);\\n\\n _totalSupply += amount;\\n _balances[account] += amount;\\n emit Transfer(address(0), account, amount);\\n\\n _afterTokenTransfer(address(0), account, amount);\\n }\\n\\n /**\\n * @dev Destroys `amount` tokens from `account`, reducing the\\n * total supply.\\n *\\n * Emits a {Transfer} event with `to` set to the zero address.\\n *\\n * Requirements:\\n *\\n * - `account` cannot be the zero address.\\n * - `account` must have at least `amount` tokens.\\n */\\n function _burn(address account, uint256 amount) internal virtual {\\n require(account != address(0), \\\"ERC20: burn from the zero address\\\");\\n\\n _beforeTokenTransfer(account, address(0), amount);\\n\\n uint256 accountBalance = _balances[account];\\n require(accountBalance >= amount, \\\"ERC20: burn amount exceeds balance\\\");\\n unchecked {\\n _balances[account] = accountBalance - amount;\\n }\\n _totalSupply -= amount;\\n\\n emit Transfer(account, address(0), amount);\\n\\n _afterTokenTransfer(account, address(0), amount);\\n }\\n\\n /**\\n * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.\\n *\\n * This internal function is equivalent to `approve`, and can be used to\\n * e.g. set automatic allowances for certain subsystems, etc.\\n *\\n * Emits an {Approval} event.\\n *\\n * Requirements:\\n *\\n * - `owner` cannot be the zero address.\\n * - `spender` cannot be the zero address.\\n */\\n function _approve(\\n address owner,\\n address spender,\\n uint256 amount\\n ) internal virtual {\\n require(owner != address(0), \\\"ERC20: approve from the zero address\\\");\\n require(spender != address(0), \\\"ERC20: approve to the zero address\\\");\\n\\n _allowances[owner][spender] = amount;\\n emit Approval(owner, spender, amount);\\n }\\n\\n /**\\n * @dev Spend `amount` form the allowance of `owner` toward `spender`.\\n *\\n * Does not update the allowance amount in case of infinite allowance.\\n * Revert if not enough allowance is available.\\n *\\n * Might emit an {Approval} event.\\n */\\n function _spendAllowance(\\n address owner,\\n address spender,\\n uint256 amount\\n ) internal virtual {\\n uint256 currentAllowance = allowance(owner, spender);\\n if (currentAllowance != type(uint256).max) {\\n require(currentAllowance >= amount, \\\"ERC20: insufficient allowance\\\");\\n unchecked {\\n _approve(owner, spender, currentAllowance - amount);\\n }\\n }\\n }\\n\\n /**\\n * @dev Hook that is called before any transfer of tokens. This includes\\n * minting and burning.\\n *\\n * Calling conditions:\\n *\\n * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens\\n * will be transferred to `to`.\\n * - when `from` is zero, `amount` tokens will be minted for `to`.\\n * - when `to` is zero, `amount` of ``from``'s tokens will be burned.\\n * - `from` and `to` are never both zero.\\n *\\n * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].\\n */\\n function _beforeTokenTransfer(\\n address from,\\n address to,\\n uint256 amount\\n ) internal virtual {}\\n\\n /**\\n * @dev Hook that is called after any transfer of tokens. This includes\\n * minting and burning.\\n *\\n * Calling conditions:\\n *\\n * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens\\n * has been transferred to `to`.\\n * - when `from` is zero, `amount` tokens have been minted for `to`.\\n * - when `to` is zero, `amount` of ``from``'s tokens have been burned.\\n * - `from` and `to` are never both zero.\\n *\\n * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].\\n */\\n function _afterTokenTransfer(\\n address from,\\n address to,\\n uint256 amount\\n ) internal virtual {}\\n}\\n\",\"keccak256\":\"0xdadd41acb749920eccf40aeaa8d291adf9751399a7343561bad13e7a8d99be0b\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/IERC20.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)\\n\\npragma solidity ^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 `to`.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transfer(address to, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Returns the remaining number of tokens that `spender` will be\\n * allowed to spend on behalf of `owner` through {transferFrom}. This is\\n * zero by default.\\n *\\n * This value changes when {approve} or {transferFrom} are called.\\n */\\n function allowance(address owner, address spender) external view returns (uint256);\\n\\n /**\\n * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * IMPORTANT: Beware that changing an allowance with this method brings the risk\\n * that someone may use both the old and the new allowance by unfortunate\\n * transaction ordering. One possible solution to mitigate this race\\n * condition is to first reduce the spender's allowance to 0 and set the\\n * desired value afterwards:\\n * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\\n *\\n * Emits an {Approval} event.\\n */\\n function approve(address spender, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Moves `amount` tokens from `from` to `to` 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(\\n address from,\\n address to,\\n uint256 amount\\n ) external returns (bool);\\n\\n /**\\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\\n * another (`to`).\\n *\\n * Note that `value` may be zero.\\n */\\n event Transfer(address indexed from, address indexed to, uint256 value);\\n\\n /**\\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\\n * a call to {approve}. `value` is the new allowance.\\n */\\n event Approval(address indexed owner, address indexed spender, uint256 value);\\n}\\n\",\"keccak256\":\"0xbbc8ac883ac3c0078ce5ad3e288fbb3ffcc8a30c3a98c0fda0114d64fc44fca2\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/extensions/ERC20Burnable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../ERC20.sol\\\";\\nimport \\\"../../../utils/Context.sol\\\";\\n\\n/**\\n * @dev Extension of {ERC20} that allows token holders to destroy both their own\\n * tokens and those that they have an allowance for, in a way that can be\\n * recognized off-chain (via event analysis).\\n */\\nabstract contract ERC20Burnable is Context, ERC20 {\\n /**\\n * @dev Destroys `amount` tokens from the caller.\\n *\\n * See {ERC20-_burn}.\\n */\\n function burn(uint256 amount) public virtual {\\n _burn(_msgSender(), amount);\\n }\\n\\n /**\\n * @dev Destroys `amount` tokens from `account`, deducting from the caller's\\n * allowance.\\n *\\n * See {ERC20-_burn} and {ERC20-allowance}.\\n *\\n * Requirements:\\n *\\n * - the caller must have allowance for ``accounts``'s tokens of at least\\n * `amount`.\\n */\\n function burnFrom(address account, uint256 amount) public virtual {\\n _spendAllowance(account, _msgSender(), amount);\\n _burn(account, amount);\\n }\\n}\\n\",\"keccak256\":\"0x0d19410453cda55960a818e02bd7c18952a5c8fe7a3036e81f0d599f34487a7b\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../IERC20.sol\\\";\\n\\n/**\\n * @dev Interface for the optional metadata functions from the ERC20 standard.\\n *\\n * _Available since v4.1._\\n */\\ninterface IERC20Metadata is IERC20 {\\n /**\\n * @dev Returns the name of the token.\\n */\\n function name() external view returns (string memory);\\n\\n /**\\n * @dev Returns the symbol of the token.\\n */\\n function symbol() external view returns (string memory);\\n\\n /**\\n * @dev Returns the decimals places of the token.\\n */\\n function decimals() external view returns (uint8);\\n}\\n\",\"keccak256\":\"0x8de418a5503946cabe331f35fe242d3201a73f67f77aaeb7110acb1f30423aca\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n}\\n\",\"keccak256\":\"0xe2e337e6dde9ef6b680e07338c493ebea1b5fd09b43424112868e9cc1706bca7\",\"license\":\"MIT\"},\"@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol\":{\"content\":\"pragma solidity >=0.5.0;\\n\\ninterface IUniswapV2Factory {\\n event PairCreated(address indexed token0, address indexed token1, address pair, uint);\\n\\n function feeTo() external view returns (address);\\n function feeToSetter() external view returns (address);\\n\\n function getPair(address tokenA, address tokenB) external view returns (address pair);\\n function allPairs(uint) external view returns (address pair);\\n function allPairsLength() external view returns (uint);\\n\\n function createPair(address tokenA, address tokenB) external returns (address pair);\\n\\n function setFeeTo(address) external;\\n function setFeeToSetter(address) external;\\n}\\n\",\"keccak256\":\"0xe5905c0989cf5a865ed9bb7b9252536ca011c5b744017a82a7d4443b9c00a891\"},\"@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol\":{\"content\":\"pragma solidity >=0.5.0;\\n\\ninterface IUniswapV2Pair {\\n event Approval(address indexed owner, address indexed spender, uint value);\\n event Transfer(address indexed from, address indexed to, uint value);\\n\\n function name() external pure returns (string memory);\\n function symbol() external pure returns (string memory);\\n function decimals() external pure returns (uint8);\\n function totalSupply() external view returns (uint);\\n function balanceOf(address owner) external view returns (uint);\\n function allowance(address owner, address spender) external view returns (uint);\\n\\n function approve(address spender, uint value) external returns (bool);\\n function transfer(address to, uint value) external returns (bool);\\n function transferFrom(address from, address to, uint value) external returns (bool);\\n\\n function DOMAIN_SEPARATOR() external view returns (bytes32);\\n function PERMIT_TYPEHASH() external pure returns (bytes32);\\n function nonces(address owner) external view returns (uint);\\n\\n function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;\\n\\n event Mint(address indexed sender, uint amount0, uint amount1);\\n event Burn(address indexed sender, uint amount0, uint amount1, address indexed to);\\n event Swap(\\n address indexed sender,\\n uint amount0In,\\n uint amount1In,\\n uint amount0Out,\\n uint amount1Out,\\n address indexed to\\n );\\n event Sync(uint112 reserve0, uint112 reserve1);\\n\\n function MINIMUM_LIQUIDITY() external pure returns (uint);\\n function factory() external view returns (address);\\n function token0() external view returns (address);\\n function token1() external view returns (address);\\n function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);\\n function price0CumulativeLast() external view returns (uint);\\n function price1CumulativeLast() external view returns (uint);\\n function kLast() external view returns (uint);\\n\\n function mint(address to) external returns (uint liquidity);\\n function burn(address to) external returns (uint amount0, uint amount1);\\n function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;\\n function skim(address to) external;\\n function sync() external;\\n\\n function initialize(address, address) external;\\n}\\n\",\"keccak256\":\"0x7c9bc70e5996c763e02ff38905282bc24fb242b0ef2519a003b36824fc524a4b\"},\"@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router01.sol\":{\"content\":\"pragma solidity >=0.6.2;\\n\\ninterface IUniswapV2Router01 {\\n function factory() external pure returns (address);\\n function WETH() external pure returns (address);\\n\\n function addLiquidity(\\n address tokenA,\\n address tokenB,\\n uint amountADesired,\\n uint amountBDesired,\\n uint amountAMin,\\n uint amountBMin,\\n address to,\\n uint deadline\\n ) external returns (uint amountA, uint amountB, uint liquidity);\\n function addLiquidityETH(\\n address token,\\n uint amountTokenDesired,\\n uint amountTokenMin,\\n uint amountETHMin,\\n address to,\\n uint deadline\\n ) external payable returns (uint amountToken, uint amountETH, uint liquidity);\\n function removeLiquidity(\\n address tokenA,\\n address tokenB,\\n uint liquidity,\\n uint amountAMin,\\n uint amountBMin,\\n address to,\\n uint deadline\\n ) external returns (uint amountA, uint amountB);\\n function removeLiquidityETH(\\n address token,\\n uint liquidity,\\n uint amountTokenMin,\\n uint amountETHMin,\\n address to,\\n uint deadline\\n ) external returns (uint amountToken, uint amountETH);\\n function removeLiquidityWithPermit(\\n address tokenA,\\n address tokenB,\\n uint liquidity,\\n uint amountAMin,\\n uint amountBMin,\\n address to,\\n uint deadline,\\n bool approveMax, uint8 v, bytes32 r, bytes32 s\\n ) external returns (uint amountA, uint amountB);\\n function removeLiquidityETHWithPermit(\\n address token,\\n uint liquidity,\\n uint amountTokenMin,\\n uint amountETHMin,\\n address to,\\n uint deadline,\\n bool approveMax, uint8 v, bytes32 r, bytes32 s\\n ) external returns (uint amountToken, uint amountETH);\\n function swapExactTokensForTokens(\\n uint amountIn,\\n uint amountOutMin,\\n address[] calldata path,\\n address to,\\n uint deadline\\n ) external returns (uint[] memory amounts);\\n function swapTokensForExactTokens(\\n uint amountOut,\\n uint amountInMax,\\n address[] calldata path,\\n address to,\\n uint deadline\\n ) external returns (uint[] memory amounts);\\n function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)\\n external\\n payable\\n returns (uint[] memory amounts);\\n function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)\\n external\\n returns (uint[] memory amounts);\\n function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)\\n external\\n returns (uint[] memory amounts);\\n function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)\\n external\\n payable\\n returns (uint[] memory amounts);\\n\\n function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB);\\n function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut);\\n function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn);\\n function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);\\n function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);\\n}\\n\",\"keccak256\":\"0x8a3c5c449d4b7cd76513ed6995f4b86e4a86f222c770f8442f5fc128ce29b4d2\"},\"@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol\":{\"content\":\"pragma solidity >=0.6.2;\\n\\nimport './IUniswapV2Router01.sol';\\n\\ninterface IUniswapV2Router02 is IUniswapV2Router01 {\\n function removeLiquidityETHSupportingFeeOnTransferTokens(\\n address token,\\n uint liquidity,\\n uint amountTokenMin,\\n uint amountETHMin,\\n address to,\\n uint deadline\\n ) external returns (uint amountETH);\\n function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(\\n address token,\\n uint liquidity,\\n uint amountTokenMin,\\n uint amountETHMin,\\n address to,\\n uint deadline,\\n bool approveMax, uint8 v, bytes32 r, bytes32 s\\n ) external returns (uint amountETH);\\n\\n function swapExactTokensForTokensSupportingFeeOnTransferTokens(\\n uint amountIn,\\n uint amountOutMin,\\n address[] calldata path,\\n address to,\\n uint deadline\\n ) external;\\n function swapExactETHForTokensSupportingFeeOnTransferTokens(\\n uint amountOutMin,\\n address[] calldata path,\\n address to,\\n uint deadline\\n ) external payable;\\n function swapExactTokensForETHSupportingFeeOnTransferTokens(\\n uint amountIn,\\n uint amountOutMin,\\n address[] calldata path,\\n address to,\\n uint deadline\\n ) external;\\n}\\n\",\"keccak256\":\"0x744e30c133bd0f7ca9e7163433cf6d72f45c6bb1508c2c9c02f1a6db796ae59d\"},\"contracts/access/SafeOwnable.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\n// Refer to https://github.com/boringcrypto/BoringSolidity/blob/master/contracts/BoringOwnable.sol and https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol\\n\\npragma solidity 0.8.15;\\n\\nimport '@openzeppelin/contracts/utils/Context.sol';\\n\\ncontract SafeOwnable is Context {\\n address private _owner;\\n address private _pendingOwner;\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the deployer as the initial owner.\\n */\\n constructor() {\\n _transferOwnership(_msgSender());\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Return the address of the pending owner\\n */\\n function pendingOwner() public view virtual returns (address) {\\n return _pendingOwner;\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n require(owner() == _msgSender(), 'SafeOwnable: caller not owner');\\n _;\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions anymore. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby removing any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n * Note If direct is false, it will set an pending owner and the OwnerShipTransferring\\n * only happens when the pending owner claim the ownership\\n */\\n function transferOwnership(address newOwner, bool direct) public virtual onlyOwner {\\n require(newOwner != address(0), 'SafeOwnable: new owner is 0');\\n\\n if (direct) {\\n _transferOwnership(newOwner);\\n } else {\\n _transferPendingOwnership(newOwner);\\n }\\n }\\n\\n /**\\n * @dev pending owner call this function to claim ownership\\n */\\n function claimOwnership() public {\\n require(msg.sender == _pendingOwner, 'SafeOwnable: caller != pending');\\n\\n _claimOwnership();\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n address oldOwner = _owner;\\n _owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n\\n /**\\n * @dev set the pending owner address\\n * Internal function without access restriction.\\n */\\n function _transferPendingOwnership(address newOwner) internal virtual {\\n _pendingOwner = newOwner;\\n }\\n\\n /**\\n * @dev claim ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _claimOwnership() internal virtual {\\n address oldOwner = _owner;\\n emit OwnershipTransferred(oldOwner, _pendingOwner);\\n\\n _owner = _pendingOwner;\\n _pendingOwner = address(0);\\n }\\n}\\n\",\"keccak256\":\"0x79a077ba2b45d1a3b01f1b5b4537b1885deb03515c10dab1fe4d16536d4bf91b\",\"license\":\"GPL-3.0-only\"},\"contracts/access/SafeOwnableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\n// Refer to https://github.com/boringcrypto/BoringSolidity/blob/master/contracts/BoringOwnable.sol and https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable/blob/master/contracts/access/OwnableUpgradeable.sol\\n\\npragma solidity 0.8.15;\\n\\nimport '@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol';\\nimport '@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol';\\n\\ncontract SafeOwnableUpgradeable is Initializable, ContextUpgradeable {\\n address private _owner;\\n address private _pendingOwner;\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the deployer as the initial owner.\\n */\\n function __Ownable_init() internal onlyInitializing {\\n __Ownable_init_unchained();\\n }\\n\\n function __Ownable_init_unchained() internal onlyInitializing {\\n _transferOwnership(_msgSender());\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Return the address of the pending owner\\n */\\n function pendingOwner() public view virtual returns (address) {\\n return _pendingOwner;\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n require(owner() == _msgSender(), 'SafeOwnable: caller not owner');\\n _;\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions anymore. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby removing any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n * Note If direct is false, it will set an pending owner and the OwnerShipTransferring\\n * only happens when the pending owner claim the ownership\\n */\\n function transferOwnership(address newOwner, bool direct) public virtual onlyOwner {\\n require(newOwner != address(0), 'SafeOwnable: new owner is 0');\\n if (direct) {\\n _transferOwnership(newOwner);\\n } else {\\n _transferPendingOwnership(newOwner);\\n }\\n }\\n\\n /**\\n * @dev pending owner call this function to claim ownership\\n */\\n function claimOwnership() public {\\n require(msg.sender == _pendingOwner, 'SafeOwnable: caller != pending');\\n\\n _claimOwnership();\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n address oldOwner = _owner;\\n _owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n\\n /**\\n * @dev set the pending owner address\\n * Internal function without access restriction.\\n */\\n function _transferPendingOwnership(address newOwner) internal virtual {\\n _pendingOwner = newOwner;\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _claimOwnership() internal virtual {\\n address oldOwner = _owner;\\n emit OwnershipTransferred(oldOwner, _pendingOwner);\\n\\n _owner = _pendingOwner;\\n _pendingOwner = address(0);\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[48] private __gap;\\n}\\n\",\"keccak256\":\"0x8de5eb1e824cf860909d77028719522b6bcf5b4cb96293e7f95c2d1f4299147b\",\"license\":\"GPL-3.0-only\"},\"contracts/factory/P12CoinFactoryStorage.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\npragma solidity 0.8.15;\\n\\nimport '@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol';\\nimport '@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol';\\nimport '../staking/interfaces/IP12MineUpgradeable.sol';\\nimport '../staking/interfaces/IGaugeController.sol';\\nimport './interfaces/IP12GameCoin.sol';\\n\\ncontract P12CoinFactoryStorage {\\n /**\\n * @dev p12 ERC20 address\\n */\\n address public p12;\\n /**\\n * @dev uniswap v2 Router address\\n */\\n IUniswapV2Router02 public uniswapRouter;\\n /**\\n * @dev uniswap v2 Factory address\\n */\\n IUniswapV2Factory public uniswapFactory;\\n /**\\n * @dev length of cast delay time is a linear function of percentage of additional issues,\\n * @dev delayK and delayB is the linear function's parameter which could be changed later\\n */\\n uint256 public delayK;\\n uint256 public delayB;\\n\\n /**\\n * @dev a random hash value for calculate mintId\\n */\\n bytes32 internal _initHash;\\n\\n uint256 public addLiquidityEffectiveTime;\\n\\n /**\\n * @dev p12 staking contract\\n */\\n IP12MineUpgradeable public p12Mine;\\n\\n address public dev;\\n IGaugeController public gaugeController;\\n\\n uint256[40] private __gap;\\n\\n // gameId => developer address\\n mapping(string => address) public allGames;\\n // gameCoinAddress => gameId\\n mapping(IP12GameCoin => string) public allGameCoins;\\n // gameCoinAddress => declareMintId => MintCoinInfo\\n mapping(IP12GameCoin => mapping(bytes32 => MintCoinInfo)) public coinMintRecords;\\n // gameCoinAddress => declareMintId\\n mapping(IP12GameCoin => bytes32) public preMintIds;\\n\\n /**\\n * @dev struct of each mint request\\n */\\n struct MintCoinInfo {\\n uint256 amount;\\n uint256 unlockTimestamp;\\n bool executed;\\n }\\n}\\n\",\"keccak256\":\"0xc89afbdd4f16bcdade9265c13e15ac02d7fc818600fb229cca8182670f24a987\",\"license\":\"GPL-3.0-only\"},\"contracts/factory/P12CoinFactoryUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\npragma solidity 0.8.15;\\n\\nimport '@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol';\\nimport '@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol';\\nimport '@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol';\\nimport '@openzeppelin/contracts/token/ERC20/IERC20.sol';\\nimport '@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol';\\nimport '../access/SafeOwnableUpgradeable.sol';\\nimport '@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol';\\nimport '@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol';\\nimport '@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol';\\nimport '@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol';\\nimport './interfaces/IP12CoinFactoryUpgradeable.sol';\\nimport '../staking/interfaces/IP12MineUpgradeable.sol';\\nimport './P12CoinFactoryStorage.sol';\\nimport '../staking/interfaces/IGaugeController.sol';\\nimport './P12GameCoin.sol';\\nimport './interfaces/IP12GameCoin.sol';\\n\\ncontract P12CoinFactoryUpgradeable is\\n P12CoinFactoryStorage,\\n UUPSUpgradeable,\\n IP12CoinFactoryUpgradeable,\\n SafeOwnableUpgradeable,\\n ReentrancyGuardUpgradeable,\\n PausableUpgradeable\\n{\\n using SafeERC20Upgradeable for IERC20Upgradeable;\\n\\n //============ External ============\\n /**\\n * @dev set dev address\\n * @param newDev new dev address\\n */\\n function setDev(address newDev) external virtual override onlyOwner {\\n require(newDev != address(0), 'P12Factory: address cannot be 0');\\n address oldDev = dev;\\n dev = newDev;\\n emit SetDev(oldDev, newDev);\\n }\\n\\n /**\\n * @dev set p12mine contract address\\n * @param newP12Mine new p12mine address\\n */\\n function setP12Mine(IP12MineUpgradeable newP12Mine) external virtual override onlyOwner {\\n require(address(newP12Mine) != address(0), 'P12Factory: address cannot be 0');\\n IP12MineUpgradeable oldP12Mine = p12Mine;\\n p12Mine = newP12Mine;\\n emit SetP12Mine(oldP12Mine, newP12Mine);\\n }\\n\\n /**\\n * @dev set gaugeController contract address\\n * @param newGaugeController new gaugeController address\\n */\\n function setGaugeController(IGaugeController newGaugeController) external virtual override onlyOwner {\\n require(address(newGaugeController) != address(0), 'P12Factory: address cannot be 0');\\n IGaugeController oldGaugeController = gaugeController;\\n gaugeController = newGaugeController;\\n emit SetGaugeController(oldGaugeController, newGaugeController);\\n }\\n\\n /**\\n * @dev set p12Token address\\n * reserved only during development\\n * @param newP12Token new p12Token address\\n */\\n function setP12Token(address newP12Token) external virtual override onlyOwner {\\n require(newP12Token != address(0), 'P12Factory: address cannot be 0');\\n address oldP12Token = p12;\\n p12 = newP12Token;\\n emit SetP12Token(oldP12Token, newP12Token);\\n }\\n\\n /**\\n * @dev set uniswapFactory address\\n * reserved only during development\\n * @param newUniswapFactory new UniswapFactory address\\n */\\n function setUniswapFactory(IUniswapV2Factory newUniswapFactory) external virtual override onlyOwner {\\n require(address(newUniswapFactory) != address(0), 'P12Factory: address cannot be 0');\\n IUniswapV2Factory oldUniswapFactory = uniswapFactory;\\n uniswapFactory = newUniswapFactory;\\n emit SetUniswapFactory(oldUniswapFactory, newUniswapFactory);\\n }\\n\\n /**\\n * @dev set uniswapRouter address\\n * reserved only during development\\n * @param newUniswapRouter new uniswapRouter address\\n */\\n function setUniswapRouter(IUniswapV2Router02 newUniswapRouter) external virtual override onlyOwner {\\n require(address(newUniswapRouter) != address(0), 'P12Factory: address cannot be 0');\\n IUniswapV2Router02 oldUniswapRouter = uniswapRouter;\\n uniswapRouter = newUniswapRouter;\\n emit SetUniswapRouter(oldUniswapRouter, newUniswapRouter);\\n }\\n\\n /**\\n * @dev create binding between game and developer, only called by p12 backend\\n * @param gameId game id\\n * @param developer developer address, who own this game\\n */\\n function register(string memory gameId, address developer) external virtual override onlyDev {\\n require(developer != address(0), 'P12Factory: address cannot be 0');\\n allGames[gameId] = developer;\\n emit RegisterGame(gameId, developer);\\n }\\n\\n /**\\n * @dev developer first create their game coin\\n * @param name new game coin's name\\n * @param symbol game coin's symbol\\n * @param gameId the game's id\\n * @param gameCoinIconUrl game coin icon's url\\n * @param amountGameCoin how many coin first mint\\n * @param amountP12 how many P12 coin developer would stake\\n * @return gameCoinAddress the address of the new game coin\\n */\\n function create(\\n string memory name,\\n string memory symbol,\\n string memory gameId,\\n string memory gameCoinIconUrl,\\n uint256 amountGameCoin,\\n uint256 amountP12\\n ) external virtual override nonReentrant whenNotPaused returns (IP12GameCoin gameCoinAddress) {\\n require(msg.sender == allGames[gameId], 'P12Factory: no permit to create');\\n require(amountP12 > 0, 'P12Factory: not enough p12');\\n gameCoinAddress = _create(name, symbol, gameId, gameCoinIconUrl, amountGameCoin);\\n uint256 amountGameCoinDesired = amountGameCoin / 2;\\n\\n IERC20Upgradeable(p12).safeTransferFrom(msg.sender, address(this), amountP12);\\n\\n IERC20Upgradeable(address(gameCoinAddress)).safeApprove(address(uniswapRouter), amountGameCoinDesired);\\n\\n uint256 liquidity0;\\n (, , liquidity0) = uniswapRouter.addLiquidity(\\n p12,\\n address(gameCoinAddress),\\n amountP12,\\n amountGameCoinDesired,\\n amountP12,\\n amountGameCoinDesired,\\n address(p12Mine),\\n getBlockTimestamp() + addLiquidityEffectiveTime\\n );\\n //get pair contract address\\n address pair = uniswapFactory.getPair(p12, address(gameCoinAddress));\\n\\n // check address\\n require(pair != address(0), 'P12Factory: pair address error');\\n\\n // get lpToken value\\n uint256 liquidity1 = IUniswapV2Pair(pair).balanceOf(address(p12Mine));\\n require(liquidity0 == liquidity1, 'P12Factory: liquidities not =');\\n\\n // add pair address to Controller,100 is init weight\\n gaugeController.addGauge(pair, 0, 100);\\n\\n // create a new pool and add staking info\\n p12Mine.addLpTokenInfoForGameCreator(pair, liquidity1, msg.sender);\\n\\n allGameCoins[gameCoinAddress] = gameId;\\n emit CreateGameCoin(gameCoinAddress, gameId, amountP12);\\n return IP12GameCoin(gameCoinAddress);\\n }\\n\\n /**\\n * @dev if developer want to mint after create coin, developer must declare first\\n * @param gameId game's id\\n * @param gameCoinAddress game coin's address\\n * @param amountGameCoin how many developer want to mint\\n * @param success whether the operation success\\n */\\n function queueMintCoin(\\n string memory gameId,\\n IP12GameCoin gameCoinAddress,\\n uint256 amountGameCoin\\n ) external virtual override nonReentrant whenNotPaused returns (bool success) {\\n require(msg.sender == allGames[gameId], 'P12Factory: have no permission');\\n require(compareStrings(allGameCoins[gameCoinAddress], gameId), 'P12Factory: wrong game id');\\n // Set the correct unlock time\\n uint256 time;\\n uint256 currentTimestamp = getBlockTimestamp();\\n bytes32 _preMintId = preMintIds[gameCoinAddress];\\n uint256 lastUnlockTimestamp = coinMintRecords[gameCoinAddress][_preMintId].unlockTimestamp;\\n if (currentTimestamp >= lastUnlockTimestamp) {\\n time = currentTimestamp;\\n } else {\\n time = lastUnlockTimestamp;\\n }\\n\\n // minting fee for p12\\n uint256 p12Fee = getMintFee(gameCoinAddress, amountGameCoin);\\n\\n // transfer the p12 to this contract\\n IERC20Upgradeable(p12).safeTransferFrom(msg.sender, address(this), p12Fee);\\n\\n uint256 delayD = getMintDelay(gameCoinAddress, amountGameCoin);\\n\\n bytes32 mintId = _hashOperation(gameCoinAddress, msg.sender, amountGameCoin, time, _initHash);\\n coinMintRecords[gameCoinAddress][mintId] = MintCoinInfo(amountGameCoin, delayD + time, false);\\n\\n emit QueueMintCoin(mintId, gameCoinAddress, amountGameCoin, delayD + time, p12Fee);\\n\\n return true;\\n }\\n\\n /**\\n * @dev when time is up, anyone can call this function to make the mint executed\\n * @param gameCoinAddress address of the game coin\\n * @param mintId a unique id to identify a mint, developer can get it after declare\\n * @return bool whether the operation success\\n */\\n function executeMintCoin(IP12GameCoin gameCoinAddress, bytes32 mintId)\\n external\\n virtual\\n override\\n nonReentrant\\n whenNotPaused\\n returns (bool)\\n {\\n require(coinMintRecords[gameCoinAddress][mintId].unlockTimestamp != 0, 'P12Factory: non-existent mint');\\n // check if it has been executed\\n require(!coinMintRecords[gameCoinAddress][mintId].executed, 'P12Factory: mint executed');\\n\\n uint256 time = getBlockTimestamp();\\n\\n // check that the current time is greater than the unlock time\\n require(time > coinMintRecords[gameCoinAddress][mintId].unlockTimestamp, 'P12Factory: not time to mint');\\n\\n // Modify status\\n coinMintRecords[gameCoinAddress][mintId].executed = true;\\n\\n // transfer the gameCoin to this contract first\\n\\n IP12GameCoin(gameCoinAddress).mint(address(this), coinMintRecords[gameCoinAddress][mintId].amount);\\n\\n emit ExecuteMintCoin(mintId, gameCoinAddress, msg.sender);\\n\\n return true;\\n }\\n\\n /**\\n * @notice called when user want to withdraw his game coin from custodian address\\n * @param userAddress user's address\\n * @param gameCoinAddress gameCoin's address\\n * @param amountGameCoin how many user want to withdraw\\n */\\n function withdraw(\\n address userAddress,\\n IP12GameCoin gameCoinAddress,\\n uint256 amountGameCoin\\n ) external virtual override onlyDev returns (bool) {\\n IERC20Upgradeable(address(gameCoinAddress)).safeTransfer(userAddress, amountGameCoin);\\n emit Withdraw(userAddress, gameCoinAddress, amountGameCoin);\\n return true;\\n }\\n\\n //============ Public ============\\n function pause() public onlyOwner {\\n _pause();\\n }\\n\\n function unpause() public onlyOwner {\\n _unpause();\\n }\\n\\n function initialize(\\n address p12_,\\n IUniswapV2Factory uniswapFactory_,\\n IUniswapV2Router02 uniswapRouter_,\\n uint256 effectiveTime_,\\n bytes32 initHash_\\n ) public initializer {\\n require(p12_ != address(0), 'P12Mine: p12 token cannot be 0');\\n require(address(uniswapFactory_) != address(0), 'P12Mine: uniswapF cannot be 0');\\n require(address(uniswapRouter_) != address(0), 'P12Mine: uniswapR cannot be 0');\\n\\n p12 = p12_;\\n uniswapFactory = uniswapFactory_;\\n uniswapRouter = uniswapRouter_;\\n _initHash = initHash_;\\n addLiquidityEffectiveTime = effectiveTime_;\\n IERC20Upgradeable(p12).safeApprove(address(uniswapRouter), type(uint256).max);\\n __ReentrancyGuard_init_unchained();\\n __Pausable_init_unchained();\\n __Ownable_init_unchained();\\n }\\n\\n /**\\n * @dev set linear function's K parameter\\n * @param newDelayK new K parameter\\n */\\n function setDelayK(uint256 newDelayK) public virtual override onlyOwner returns (bool) {\\n uint256 oldDelayK = delayK;\\n delayK = newDelayK;\\n emit SetDelayK(oldDelayK, delayK);\\n return true;\\n }\\n\\n /**\\n * @dev set linear function's B parameter\\n * @param newDelayB new B parameter\\n */\\n function setDelayB(uint256 newDelayB) public virtual override onlyOwner returns (bool) {\\n uint256 oldDelayB = delayB;\\n delayB = newDelayB;\\n emit SetDelayB(oldDelayB, delayB);\\n return true;\\n }\\n\\n /**\\n * @dev calculate the MintFee in P12\\n */\\n function getMintFee(IP12GameCoin gameCoinAddress, uint256 amountGameCoin)\\n public\\n view\\n virtual\\n override\\n returns (uint256 amountP12)\\n {\\n uint256 gameCoinReserved;\\n uint256 p12Reserved;\\n if (p12 < address(gameCoinAddress)) {\\n (p12Reserved, gameCoinReserved, ) = IUniswapV2Pair(uniswapFactory.getPair(address(gameCoinAddress), p12)).getReserves();\\n } else {\\n (gameCoinReserved, p12Reserved, ) = IUniswapV2Pair(uniswapFactory.getPair(address(gameCoinAddress), p12)).getReserves();\\n }\\n\\n // overflow when p12Reserved * amountGameCoin > 2^256 ~= 10^77\\n amountP12 = (p12Reserved * amountGameCoin) / (gameCoinReserved * 100);\\n\\n return amountP12;\\n }\\n\\n /**\\n * @dev linear function to calculate the delay time\\n * @dev delayB is the minimum delay period, even someone mint zero token,\\n * @dev there still be delayB period before someone can really mint zero token\\n * @dev delayK is the parameter to take the ratio of new amount in to account\\n * @dev For example, the initial supply of Game Coin is 100k. If developer want\\n * @dev to mint 100k, developer needs to real mint it after `delayK + delayB`. If\\n * @dev developer want to mint 200k, developer has to real mint it after `2DelayK +\\n * @dev delayB`.\\n ^\\n t + /\\n | /\\n | /\\n 2k+b| /\\n | /\\n k+b| / \\n |/ \\n b|\\n 0----p---2p---------> amount\\n \\n */\\n function getMintDelay(IP12GameCoin gameCoinAddress, uint256 amountGameCoin)\\n public\\n view\\n virtual\\n override\\n returns (uint256 time)\\n {\\n time = (amountGameCoin * delayK) / (IP12GameCoin(gameCoinAddress).totalSupply()) + delayB;\\n return time;\\n }\\n\\n //============ Internal ============\\n\\n /**\\n * @dev function to create a game coin contract\\n * @param name game coin name\\n * @param symbol game coin symbol\\n * @param gameId game id\\n * @param gameCoinIconUrl game coin icon's url\\n * @param amountGameCoin how many for first mint\\n */\\n function _create(\\n string memory name,\\n string memory symbol,\\n string memory gameId,\\n string memory gameCoinIconUrl,\\n uint256 amountGameCoin\\n ) internal virtual returns (P12GameCoin gameCoinAddress) {\\n P12GameCoin gameCoin = new P12GameCoin(name, symbol, gameId, gameCoinIconUrl, amountGameCoin);\\n gameCoinAddress = gameCoin;\\n }\\n\\n /**\\n * @dev hash function to general mintId\\n * @param gameCoinAddress game coin address\\n * @param declarer address which declare to mint game coin\\n * @param amount how much to mint\\n * @param timestamp time when declare\\n * @param salt a random bytes32\\n * @return hash mintId\\n */\\n function _hashOperation(\\n IP12GameCoin gameCoinAddress,\\n address declarer,\\n uint256 amount,\\n uint256 timestamp,\\n bytes32 salt\\n ) internal virtual returns (bytes32 hash) {\\n bytes32 preMintId = preMintIds[gameCoinAddress];\\n\\n bytes32 preMintIdNew = keccak256(abi.encode(gameCoinAddress, declarer, amount, timestamp, preMintId, salt));\\n preMintIds[gameCoinAddress] = preMintIdNew;\\n return preMintIdNew;\\n }\\n\\n function _authorizeUpgrade(address newImplementation) internal override onlyOwner {}\\n\\n /**\\n * @dev get current block's timestamp\\n */\\n function getBlockTimestamp() internal view virtual returns (uint256) {\\n return block.timestamp;\\n }\\n\\n /**\\n * @dev compare two string and judge whether they are the same\\n */\\n function compareStrings(string memory a, string memory b) internal pure virtual returns (bool) {\\n return (keccak256(abi.encodePacked((a))) == keccak256(abi.encodePacked((b))));\\n }\\n\\n // ============= Modifier ================\\n modifier onlyDev() {\\n require(msg.sender == dev, 'P12Factory: caller must be dev');\\n _;\\n }\\n}\\n\",\"keccak256\":\"0x93977e6ae641e232d58f86e02060b0a064037e232b5999c0d08367eea71bb64f\",\"license\":\"GPL-3.0-only\"},\"contracts/factory/P12GameCoin.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\npragma solidity 0.8.15;\\n\\nimport '@openzeppelin/contracts/token/ERC20/ERC20.sol';\\nimport '../access/SafeOwnable.sol';\\nimport '@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol';\\nimport './interfaces/IP12GameCoin.sol';\\n\\ncontract P12GameCoin is IP12GameCoin, ERC20, ERC20Burnable, SafeOwnable {\\n /**\\n * @dev Off-chain data, game id\\n */\\n string public override gameId;\\n\\n /**\\n * @dev game coin's logo\\n */\\n string public override gameCoinIconUrl;\\n\\n /**\\n * @param name_ game coin name\\n * @param symbol_ game coin symbol\\n * @param gameId_ gameId\\n * @param gameCoinIconUrl_ game coin icon's url\\n * @param amount_ amount of first minting\\n */\\n constructor(\\n string memory name_,\\n string memory symbol_,\\n string memory gameId_,\\n string memory gameCoinIconUrl_,\\n uint256 amount_\\n ) ERC20(name_, symbol_) {\\n gameId = gameId_;\\n gameCoinIconUrl = gameCoinIconUrl_;\\n _mint(msg.sender, amount_);\\n }\\n\\n /**\\n * @dev mint function, the Owner will only be factory contract\\n * @param to address which receive newly-minted coin\\n * @param amount amount of the minting\\n */\\n function mint(address to, uint256 amount) public override onlyOwner {\\n _mint(to, amount);\\n }\\n\\n /**\\n * @dev transfer function for just a basic transfer with an off-chain account\\n * @dev called when a user want to deposit his coin from on-chain to off-chain\\n * @param recipient address which receive the coin, usually be custodian address\\n * @param account off-chain account\\n * @param amount amount of this transfer\\n */\\n function transferWithAccount(\\n address recipient,\\n string memory account,\\n uint256 amount\\n ) external override {\\n transfer(recipient, amount);\\n emit TransferWithAccount(recipient, account, amount);\\n }\\n}\\n\",\"keccak256\":\"0xb05dd717b90ecb6a673276122674b950e3e6462fbd80c66ad1c1b4042c471349\",\"license\":\"GPL-3.0-only\"},\"contracts/factory/interfaces/IP12CoinFactoryUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\npragma solidity 0.8.15;\\nimport '@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol';\\nimport '@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol';\\nimport '../../staking/interfaces/IP12MineUpgradeable.sol';\\nimport '../../staking/interfaces/IGaugeController.sol';\\nimport './IP12GameCoin.sol';\\n\\ninterface IP12CoinFactoryUpgradeable {\\n // register gameId =>developer\\n function register(string memory gameId, address developer) external;\\n\\n // mint game coin\\n function create(\\n string memory name,\\n string memory symbol,\\n string memory gameId,\\n string memory gameCoinIconUrl,\\n uint256 amountGameCoin,\\n uint256 amountP12\\n ) external returns (IP12GameCoin);\\n\\n // mint coin and Launch a statement\\n function queueMintCoin(\\n string memory gameId,\\n IP12GameCoin gameCoinAddress,\\n uint256 amountGameCoin\\n ) external returns (bool);\\n\\n // execute Mint coin\\n function executeMintCoin(IP12GameCoin gameCoinAddress, bytes32 mintId) external returns (bool);\\n\\n function withdraw(\\n address userAddress,\\n IP12GameCoin gameCoinAddress,\\n uint256 amountGameCoin\\n ) external returns (bool);\\n\\n function setDev(address newDev) external;\\n\\n function setP12Mine(IP12MineUpgradeable newP12Mine) external;\\n\\n function setGaugeController(IGaugeController newGaugeController) external;\\n\\n function setUniswapFactory(IUniswapV2Factory newUniswapFactory) external;\\n\\n function setUniswapRouter(IUniswapV2Router02 newUniswapRouter) external;\\n\\n function setP12Token(address newP12Token) external;\\n\\n // get mintFee\\n function getMintFee(IP12GameCoin gameCoinAddress, uint256 amountGameCoin) external view returns (uint256);\\n\\n // get mintDelay\\n function getMintDelay(IP12GameCoin gameCoinAddress, uint256 amountGameCoin) external view returns (uint256);\\n\\n // get delayK\\n function setDelayK(uint256 delayK) external returns (bool);\\n\\n // get delayB\\n function setDelayB(uint256 delayB) external returns (bool);\\n\\n // register Game developer log\\n event RegisterGame(string gameId, address indexed developer);\\n\\n // register Game coin log\\n event CreateGameCoin(IP12GameCoin indexed gameCoinAddress, string gameId, uint256 amountP12);\\n\\n // mint coin in future log\\n event QueueMintCoin(\\n bytes32 indexed mintId,\\n IP12GameCoin indexed gameCoinAddress,\\n uint256 mintAmount,\\n uint256 unlockTimestamp,\\n uint256 amountP12\\n );\\n\\n // mint coin success log\\n event ExecuteMintCoin(bytes32 indexed mintId, IP12GameCoin indexed gameCoinAddress, address indexed executor);\\n\\n // game player withdraw gameCoin\\n event Withdraw(address userAddress, IP12GameCoin gameCoinAddress, uint256 amountGameCoin);\\n\\n event SetDev(address oldDev, address newDev);\\n\\n // p12Mine and GaugeController address change log\\n event SetP12Mine(IP12MineUpgradeable oldP12Mine, IP12MineUpgradeable newP12Mine);\\n\\n event SetGaugeController(IGaugeController oldGaugeController, IGaugeController newGaugeController);\\n\\n // uniFactory and router address change log\\n event SetUniswapFactory(IUniswapV2Factory oldUniswapFactory, IUniswapV2Factory newUniswapFactory);\\n\\n event SetUniswapRouter(IUniswapV2Router02 oldUniswapRouter, IUniswapV2Router02 newUniswapRouter);\\n\\n event SetP12Token(address oldP12Token, address newP12Token);\\n\\n // change delayB log\\n event SetDelayB(uint256 oldDelayB, uint256 newDelayB);\\n\\n // change delayK log\\n event SetDelayK(uint256 oldDelayK, uint256 newDelayK);\\n}\\n\",\"keccak256\":\"0x742c2aaf18cb07cfd0e392e3a9586ca85c3d6c9bed41e0a77d37a3221c7d874e\",\"license\":\"GPL-3.0-only\"},\"contracts/factory/interfaces/IP12GameCoin.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\npragma solidity 0.8.15;\\nimport '@openzeppelin/contracts/token/ERC20/IERC20.sol';\\n\\ninterface IP12GameCoin is IERC20 {\\n /**\\n * @dev record the event that transfer coin with a off-chain account, which will be used when someone want to deposit his coin to off-chain game.\\n */\\n event TransferWithAccount(address recipient, string account, uint256 amount);\\n\\n function mint(address to, uint256 amount) external;\\n\\n function gameId() external view returns (string memory);\\n\\n function gameCoinIconUrl() external view returns (string memory);\\n\\n function transferWithAccount(\\n address recipient,\\n string memory account,\\n uint256 amount\\n ) external;\\n}\\n\",\"keccak256\":\"0xcd9f69bc5581492220eca0b3fcd5bcd8d4168d778df80b8726be5cd53020d646\",\"license\":\"GPL-3.0-only\"},\"contracts/staking/interfaces/IGaugeController.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\n\\npragma solidity 0.8.15;\\n\\nimport '../../token/interfaces/IVotingEscrow.sol';\\n\\ninterface IGaugeController {\\n event CommitOwnership(address admin);\\n\\n event ApplyOwnership(address admin);\\n\\n event AddType(string name, int128 typeId);\\n\\n event NewTypeWeight(int128 typeId, uint256 time, uint256 weight, uint256 totalWeight);\\n\\n event NewGaugeWeight(address gaugeAddress, uint256 time, uint256 weight, uint256 totalWeight);\\n\\n event VoteForGauge(uint256 time, address user, address gaugeAddress, uint256 weight);\\n\\n event NewGauge(address addr, int128 gaugeType, uint256 weight);\\n\\n event SetVotingEscrow(IVotingEscrow oldVotingEscrow, IVotingEscrow newVotingEscrow);\\n\\n event SetP12Factory(address oldP12Factory, address newP12Factory);\\n\\n function getGaugeTypes(address addr) external returns (int128);\\n\\n function checkpoint() external;\\n\\n function gaugeRelativeWeightWrite(address addr, uint256 time) external returns (uint256);\\n\\n function changeTypeWeight(int128 typeId, uint256 weight) external;\\n\\n function changeGaugeWeight(address addr, uint256 weight) external;\\n\\n function voteForGaugeWeights(address gaugeAddr, uint256 userWeight) external;\\n\\n function checkpointGauge(address addr) external;\\n\\n function gaugeRelativeWeight(address lpToken, uint256 time) external returns (uint256);\\n\\n function getGaugeWeight(address addr) external returns (uint256);\\n\\n function getTypeWeight(int128 typeId) external returns (uint256);\\n\\n function getTotalWeight() external returns (uint256);\\n\\n function getWeightsSumPerType(int128 typeId) external returns (uint256);\\n\\n function addGauge(\\n address addr,\\n int128 gaugeType,\\n uint256 weight\\n ) external;\\n\\n function addType(string memory name, uint256 weight) external;\\n\\n function setVotingEscrow(IVotingEscrow newVotingEscrow) external;\\n\\n function setP12CoinFactory(address newP12Factory) external;\\n}\\n\",\"keccak256\":\"0xf38a5b6d1b395e89a0b1d685ac8e7124debf96990552afbe1cd486ad8c726a0f\",\"license\":\"GPL-3.0-only\"},\"contracts/staking/interfaces/IP12MineUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\n\\npragma solidity 0.8.15;\\n\\nimport '../../token/interfaces/IVotingEscrow.sol';\\nimport './IGaugeController.sol';\\n\\ninterface IP12MineUpgradeable {\\n event Deposit(address indexed user, uint256 indexed pid, uint256 amount, uint256 userAmount, uint256 poolAmount); // deposit lpToken log\\n event ExecuteWithdraw(address indexed user, uint256 indexed pid,bytes32 indexed withdrawId, uint256 amount, uint256 userAmount, uint256 poolAmount); // withdraw lpToken log\\n event QueueWithdraw(\\n address indexed user,\\n uint256 pid,\\n uint256 indexed amount,\\n bytes32 indexed newWithdrawId,\\n uint256 unlockTimestamp\\n ); // delayed unStaking mining log\\n event Claim(address indexed user, uint256 amount); // get rewards\\n event SetDelayB(uint256 oldDelayB, uint256 newDelayB); // change delayB log\\n event SetDelayK(uint256 oldDelayK, uint256 newDelayK); // change delayK log\\n event SetRate(uint256 oldRate, uint256 newRate); // set new rate\\n event SetP12Factory(address oldP12Factory, address newP12Factory);\\n event SetGaugeController(IGaugeController oldGaugeController, IGaugeController newGaugeController);\\n event WithdrawLpTokenEmergency(address lpToken, uint256 amount);\\n\\n event Emergency(address executor, uint256 emergencyUnlockTime);\\n event Checkpoint(address indexed lpToken, uint256 indexed poolAmount, uint256 accP12PerShare);\\n\\n function poolLength() external returns (uint256);\\n\\n function getPid(address lpToken) external returns (uint256);\\n\\n function getUserLpBalance(address lpToken, address user) external returns (uint256);\\n\\n function checkpointAll() external;\\n\\n function getWithdrawUnlockTimestamp(address lpToken, uint256 amount) external returns (uint256);\\n\\n function withdrawEmergency() external;\\n\\n function withdrawLpTokenEmergency(address lpToken) external;\\n\\n function withdrawAllLpTokenEmergency() external;\\n\\n function emergency() external;\\n\\n function createPool(address lpToken) external; // new pool\\n\\n function setDelayK(uint256 delayK) external returns (bool);\\n\\n function setDelayB(uint256 delayB) external returns (bool);\\n\\n function deposit(address lpToken, uint256 amount) external; // deposit lpToken\\n\\n function setRate(uint256 newRate) external returns (bool);\\n\\n function setP12CoinFactory(address newP12Factory) external;\\n\\n function setGaugeController(IGaugeController newGaugeController) external;\\n\\n function executeWithdraw(address lpToken, bytes32 id) external; // withdraw lpToken\\n\\n function queueWithdraw(address lpToken, uint256 amount) external; // delayed unStaking mining\\n\\n function addLpTokenInfoForGameCreator(\\n address lpToken,\\n uint256 amount,\\n address gameCoinCreator\\n ) external; // add lpToken info for gameCoin creator when first time\\n\\n function claim(address lpToken) external returns (uint256); // get pending rewards\\n\\n function claimAll() external returns (uint256); // get all pending rewards\\n\\n function checkpoint(address lpToken) external ;\\n}\\n\",\"keccak256\":\"0xefcf97e25549cfc6abc0f3d3a381cc416e3b8a40cd8f31bb4c1617231d6fdf66\",\"license\":\"GPL-3.0-only\"},\"contracts/token/interfaces/IVotingEscrow.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\n\\npragma solidity 0.8.15;\\n\\ninterface IVotingEscrow {\\n function getLastUserSlope(address addr) external returns (int256);\\n\\n function lockedEnd(address addr) external returns (uint256);\\n}\\n\",\"keccak256\":\"0x5b86f26484c0360029da65eb81b461fb0ec612c4ff3290dc82f5396b5733c6b9\",\"license\":\"GPL-3.0-only\"}},\"version\":1}", + "bytecode": "0x60a06040523060805234801561001457600080fd5b5060805161505e61004c60003960008181610a2801528181610a6b01528181610f6801528181610fab01526110f2015261505e6000f3fe6080604052600436106200026a5760003560e01c80638da5cb5b1162000147578063beb54e5311620000b9578063d477f05f1162000078578063d477f05f14620007b5578063d9caed1214620007da578063e04b677f14620007ff578063e30c39781462000824578063e48f427b146200084457600080fd5b8063beb54e5314620006e2578063bfe369531462000707578063c45ef4821462000729578063cad2efad146200074e578063caf3a4fe146200079357600080fd5b8063ada221f41162000106578063ada221f41462000629578063afdbf3c2146200064e578063b242e5341462000673578063b309bc981462000698578063bea9849e14620006bd57600080fd5b80638da5cb5b146200057c57806391cca3db146200059c57806398d294a114620005be57806399eecb3b14620005d65780639be55f5114620005f857600080fd5b80635377210f11620001e1578063735de9f711620001a0578063735de9f714620004c7578063739be25414620004e95780638456cb59146200051d5780638bdb2afa14620005355780638d7017d3146200055757600080fd5b80635377210f14620003d25780635c975abb146200043e578063614bb60a14620004595780637142bc831462000471578063715018a614620004af57600080fd5b80634e71e0c8116200022e5780634e71e0c814620003325780634f1ef286146200034a5780634f6649f1146200036157806352d1902d14620003865780635348e30414620003ad57600080fd5b806291d2b8146200026f5780631e59c52914620002965780633659cfe614620002bb5780633735e35914620002e05780633f4ba83a146200031a575b600080fd5b3480156200027c57600080fd5b50620002946200028e36600462002fbd565b6200085c565b005b348015620002a357600080fd5b5062000294620002b536600462003093565b6200091c565b348015620002c857600080fd5b5062000294620002da36600462002fbd565b62000a1e565b348015620002ed57600080fd5b5062000305620002ff366004620030eb565b62000b09565b60405190151581526020015b60405180910390f35b3480156200032757600080fd5b506200029462000ebf565b3480156200033f57600080fd5b506200029462000ef8565b620002946200035b3660046200314b565b62000f5e565b3480156200036e57600080fd5b50620002946200038036600462002fbd565b6200103a565b3480156200039357600080fd5b506200039e620010e5565b60405190815260200162000311565b348015620003ba57600080fd5b5062000305620003cc366004620031b6565b6200119b565b348015620003df57600080fd5b5062000420620003f1366004620031b6565b603460209081526000928352604080842090915290825290208054600182015460029092015490919060ff1683565b60408051938452602084019290925215159082015260600162000311565b3480156200044b57600080fd5b506101315460ff1662000305565b3480156200046657600080fd5b506200039e60045481565b3480156200047e57600080fd5b506200049662000490366004620031e5565b62001432565b6040516001600160a01b03909116815260200162000311565b348015620004bc57600080fd5b506200029462001992565b348015620004d457600080fd5b5060015462000496906001600160a01b031681565b348015620004f657600080fd5b506200050e6200050836600462002fbd565b620019cb565b6040516200031191906200330e565b3480156200052a57600080fd5b506200029462001a6d565b3480156200054257600080fd5b5060025462000496906001600160a01b031681565b3480156200056457600080fd5b50620002946200057636600462003323565b62001aa4565b3480156200058957600080fd5b5060cd546001600160a01b031662000496565b348015620005a957600080fd5b5060085462000496906001600160a01b031681565b348015620005cb57600080fd5b506200039e60065481565b348015620005e357600080fd5b5060095462000496906001600160a01b031681565b3480156200060557600080fd5b506200039e6200061736600462002fbd565b60356020526000908152604090205481565b3480156200063657600080fd5b50620002946200064836600462002fbd565b62001ce3565b3480156200065b57600080fd5b50620003056200066d36600462003385565b62001d8e565b3480156200068057600080fd5b506200029462000692366004620033ae565b62001e0b565b348015620006a557600080fd5b5062000305620006b736600462003385565b62001ec1565b348015620006ca57600080fd5b5062000294620006dc36600462002fbd565b62001f30565b348015620006ef57600080fd5b506200039e62000701366004620031b6565b62001fdb565b3480156200071457600080fd5b5060005462000496906001600160a01b031681565b3480156200073657600080fd5b506200039e62000748366004620031b6565b62002210565b3480156200075b57600080fd5b50620004966200076d366004620033e1565b80516020818301810180516032825292820191909301209152546001600160a01b031681565b348015620007a057600080fd5b5060075462000496906001600160a01b031681565b348015620007c257600080fd5b5062000294620007d436600462002fbd565b620022a8565b348015620007e757600080fd5b5062000305620007f93660046200341a565b62002353565b3480156200080c57600080fd5b50620002946200081e36600462002fbd565b6200241d565b3480156200083157600080fd5b5060ce546001600160a01b031662000496565b3480156200085157600080fd5b506200039e60035481565b60cd546001600160a01b03163314620008925760405162461bcd60e51b815260040162000889906200344f565b60405180910390fd5b6001600160a01b038116620008bb5760405162461bcd60e51b8152600401620008899062003486565b600980546001600160a01b038381166001600160a01b03198316179092556040519116907f9b1ae61f53f47914159f1f1397501254f37fc99c47286e6b059ce40b382bf0b490620009109083908590620034bd565b60405180910390a15050565b6008546001600160a01b03163314620009785760405162461bcd60e51b815260206004820152601e60248201527f503132466163746f72793a2063616c6c6572206d757374206265206465760000604482015260640162000889565b6001600160a01b038116620009a15760405162461bcd60e51b8152600401620008899062003486565b80603283604051620009b49190620034d7565b90815260405190819003602001812080546001600160a01b039384166001600160a01b0319909116179055908216907fd0dd9fef631eda10c96c4dc062a2dd5fa09ab1fc94bc8b015f6d7c3eeaca4a389062000a129085906200330e565b60405180910390a25050565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016300362000a695760405162461bcd60e51b81526004016200088990620034f5565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031662000ab460008051602062004fe2833981519152546001600160a01b031690565b6001600160a01b03161462000add5760405162461bcd60e51b8152600401620008899062003541565b62000ae881620024c8565b6040805160008082526020820190925262000b0691839190620024f5565b50565b6000600260ff540362000b305760405162461bcd60e51b815260040162000889906200358d565b600260ff5562000b436101315460ff1690565b1562000b635760405162461bcd60e51b81526004016200088990620035c4565b60328460405162000b759190620034d7565b90815260405190819003602001902054336001600160a01b039091161462000be05760405162461bcd60e51b815260206004820152601e60248201527f503132466163746f72793a2068617665206e6f207065726d697373696f6e0000604482015260640162000889565b6001600160a01b0383166000908152603360205260409020805462000c96919062000c0b90620035ee565b80601f016020809104026020016040519081016040528092919081815260200182805462000c3990620035ee565b801562000c8a5780601f1062000c5e5761010080835404028352916020019162000c8a565b820191906000526020600020905b81548152906001019060200180831162000c6c57829003601f168201915b50505050508562002672565b62000ce45760405162461bcd60e51b815260206004820152601960248201527f503132466163746f72793a2077726f6e672067616d6520696400000000000000604482015260640162000889565b6001600160a01b0383166000908152603560209081526040808320546034835281842081855290925282206001015442919080831062000d275782935062000d2b565b8093505b600062000d39888862001fdb565b60005490915062000d56906001600160a01b0316333084620026cf565b600062000d64898962002210565b9050600062000dea8a338b8a6005546001600160a01b039485166000818152603560208181526040808420805482518085018890529a909b168a83015260608a0198909852608089019690965260a088019890985260c0808801949094528451808803909401845260e09096019093528151918601919091209152919092529081905590565b905060405180606001604052808a8152602001888462000e0b919062003640565b8152600060209182018190526001600160a01b038d16808252603483526040808320868452845291829020845181559284015160018401559201516002909101805460ff1916911515919091179055817f192dbb596f99b94785518ef174823fd46e8962b95010f6ddc9fd529a129dbe778b62000e898b8762003640565b604080519283526020830191909152810187905260600160405180910390a36001975050505050505050600160ff559392505050565b60cd546001600160a01b0316331462000eec5760405162461bcd60e51b815260040162000889906200344f565b62000ef662002742565b565b60ce546001600160a01b0316331462000f545760405162461bcd60e51b815260206004820152601e60248201527f536166654f776e61626c653a2063616c6c657220213d2070656e64696e670000604482015260640162000889565b62000ef6620027d9565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016300362000fa95760405162461bcd60e51b81526004016200088990620034f5565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031662000ff460008051602062004fe2833981519152546001600160a01b031690565b6001600160a01b0316146200101d5760405162461bcd60e51b8152600401620008899062003541565b6200102882620024c8565b6200103682826001620024f5565b5050565b60cd546001600160a01b03163314620010675760405162461bcd60e51b815260040162000889906200344f565b6001600160a01b038116620010905760405162461bcd60e51b8152600401620008899062003486565b600780546001600160a01b038381166001600160a01b03198316179092556040519116907f95468d408cf5dd8c0bb5ce4d4a5e1b17b13caa162d20fc4d727f92d404e5265b90620009109083908590620034bd565b6000306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614620011875760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c0000000000000000606482015260840162000889565b5060008051602062004fe283398151915290565b6000600260ff5403620011c25760405162461bcd60e51b815260040162000889906200358d565b600260ff55620011d56101315460ff1690565b15620011f55760405162461bcd60e51b81526004016200088990620035c4565b6001600160a01b038316600090815260346020908152604080832085845290915281206001015490036200126c5760405162461bcd60e51b815260206004820152601d60248201527f503132466163746f72793a206e6f6e2d6578697374656e74206d696e74000000604482015260640162000889565b6001600160a01b038316600090815260346020908152604080832085845290915290206002015460ff1615620012e55760405162461bcd60e51b815260206004820152601960248201527f503132466163746f72793a206d696e7420657865637574656400000000000000604482015260640162000889565b6001600160a01b0383166000908152603460209081526040808320858452909152902060010154429081116200135e5760405162461bcd60e51b815260206004820152601c60248201527f503132466163746f72793a206e6f742074696d6520746f206d696e7400000000604482015260640162000889565b6001600160a01b03841660008181526034602090815260408083208784529091529081902060028101805460ff191660011790555490516340c10f1960e01b815230600482015260248101919091526340c10f1990604401600060405180830381600087803b158015620013d157600080fd5b505af1158015620013e6573d6000803e3d6000fd5b50506040513392506001600160a01b038716915085907f2da35f6537bd80d9cac4d158e23a0ab942e7fb1fd4a25243fcad824c3433e37990600090a46001915050600160ff5592915050565b6000600260ff5403620014595760405162461bcd60e51b815260040162000889906200358d565b600260ff556200146c6101315460ff1690565b156200148c5760405162461bcd60e51b81526004016200088990620035c4565b6032856040516200149e9190620034d7565b90815260405190819003602001902054336001600160a01b0390911614620015095760405162461bcd60e51b815260206004820152601f60248201527f503132466163746f72793a206e6f207065726d697420746f2063726561746500604482015260640162000889565b600082116200155b5760405162461bcd60e51b815260206004820152601a60248201527f503132466163746f72793a206e6f7420656e6f75676820703132000000000000604482015260640162000889565b6200156a878787878762002842565b905060006200157b6002856200365b565b60005490915062001598906001600160a01b0316333086620026cf565b600154620015b4906001600160a01b0384811691168362002891565b6001546000805460075460065492936001600160a01b039081169363e8e337009382169288928a92899284928492911690620015f1904262003640565b60405160e08a901b6001600160e01b03191681526001600160a01b039889166004820152968816602488015260448701959095526064860193909352608485019190915260a484015290921660c482015260e4810191909152610104016060604051808303816000875af11580156200166e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200169491906200367e565b6002546000805460405163e6a4390560e01b81529396509094506001600160a01b03918216935063e6a4390592620016d592909116908890600401620034bd565b602060405180830381865afa158015620016f3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620017199190620036ad565b90506001600160a01b038116620017735760405162461bcd60e51b815260206004820152601e60248201527f503132466163746f72793a20706169722061646472657373206572726f720000604482015260640162000889565b6007546040516370a0823160e01b81526001600160a01b0391821660048201526000918316906370a0823190602401602060405180830381865afa158015620017c0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620017e69190620036cd565b9050808314620018395760405162461bcd60e51b815260206004820152601d60248201527f503132466163746f72793a206c69717569646974696573206e6f74203d000000604482015260640162000889565b600954604051634fdea7b360e11b81526001600160a01b03848116600483015260006024830152606460448301819052921691639fbd4f669101600060405180830381600087803b1580156200188e57600080fd5b505af1158015620018a3573d6000803e3d6000fd5b50506007546040516361b5943760e11b81526001600160a01b03868116600483015260248201869052336044830152909116925063c36b286e9150606401600060405180830381600087803b158015620018fc57600080fd5b505af115801562001911573d6000803e3d6000fd5b505050506001600160a01b0385166000908152603360205260409020620019398a8262003731565b50846001600160a01b03167f6e95c3b5d98fadafb5128d1b47318086a57941593d293495faa5879c7eda5ba88a8860405162001977929190620037fe565b60405180910390a250505050600160ff559695505050505050565b60cd546001600160a01b03163314620019bf5760405162461bcd60e51b815260040162000889906200344f565b62000ef66000620029af565b60336020526000908152604090208054620019e690620035ee565b80601f016020809104026020016040519081016040528092919081815260200182805462001a1490620035ee565b801562001a655780601f1062001a395761010080835404028352916020019162001a65565b820191906000526020600020905b81548152906001019060200180831162001a4757829003601f168201915b505050505081565b60cd546001600160a01b0316331462001a9a5760405162461bcd60e51b815260040162000889906200344f565b62000ef662002a01565b603654610100900460ff1662001ac15760365460ff161562001ac5565b303b155b62001b2a5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840162000889565b603654610100900460ff1615801562001b4d576036805461ffff19166101011790555b6001600160a01b03861662001ba55760405162461bcd60e51b815260206004820152601e60248201527f5031324d696e653a2070313220746f6b656e2063616e6e6f7420626520300000604482015260640162000889565b6001600160a01b03851662001bfd5760405162461bcd60e51b815260206004820152601d60248201527f5031324d696e653a20756e6973776170462063616e6e6f742062652030000000604482015260640162000889565b6001600160a01b03841662001c555760405162461bcd60e51b815260206004820152601d60248201527f5031324d696e653a20756e6973776170522063616e6e6f742062652030000000604482015260640162000889565b600080546001600160a01b03199081166001600160a01b03898116918217909355600280548316898516179055600180549092169287169283179091556005849055600685905562001caa9160001962002891565b62001cb462002a5f565b62001cbe62002a90565b62001cc862002ac7565b801562001cdb576036805461ff00191690555b505050505050565b60cd546001600160a01b0316331462001d105760405162461bcd60e51b815260040162000889906200344f565b6001600160a01b03811662001d395760405162461bcd60e51b8152600401620008899062003486565b600080546001600160a01b038381166001600160a01b03198316179092556040519116907fa8b6187bdfcd1b7c94f6739c7b7fd3ae429f0243bb27db8dd521cb941628924c90620009109083908590620034bd565b60cd546000906001600160a01b0316331462001dbe5760405162461bcd60e51b815260040162000889906200344f565b600380549083905560408051828152602081018590527fb936e6dfcf3fec6bfb7d23d91ce9406c4ce74825de73cf38c764ed900731d7a491015b60405180910390a160019150505b919050565b60cd546001600160a01b0316331462001e385760405162461bcd60e51b815260040162000889906200344f565b6001600160a01b03821662001e905760405162461bcd60e51b815260206004820152601b60248201527f536166654f776e61626c653a206e6577206f776e657220697320300000000000604482015260640162000889565b801562001ea2576200103682620029af565b60ce80546001600160a01b0319166001600160a01b0384161790555050565b60cd546000906001600160a01b0316331462001ef15760405162461bcd60e51b815260040162000889906200344f565b600480549083905560408051828152602081018590527f43c057f209152d56f2de0fa1d79291670facf6161810b2392b949bf1647cc236910162001df8565b60cd546001600160a01b0316331462001f5d5760405162461bcd60e51b815260040162000889906200344f565b6001600160a01b03811662001f865760405162461bcd60e51b8152600401620008899062003486565b600180546001600160a01b038381166001600160a01b03198316179092556040519116907f0f37b9ce7f4d93710cfa573bde8e5e815a6ddd7917004b6832145a3c22047e3b90620009109083908590620034bd565b60008054819081906001600160a01b0380871691161015620020ef5760025460005460405163e6a4390560e01b81526001600160a01b039283169263e6a439059262002030928a9290911690600401620034bd565b602060405180830381865afa1580156200204e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620020749190620036ad565b6001600160a01b0316630902f1ac6040518163ffffffff1660e01b8152600401606060405180830381865afa158015620020b2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620020d891906200383a565b506001600160701b039081169350169050620021e2565b60025460005460405163e6a4390560e01b81526001600160a01b039283169263e6a439059262002128928a9290911690600401620034bd565b602060405180830381865afa15801562002146573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200216c9190620036ad565b6001600160a01b0316630902f1ac6040518163ffffffff1660e01b8152600401606060405180830381865afa158015620021aa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620021d091906200383a565b506001600160701b0391821693501690505b620021ef82606462003890565b620021fb858362003890565b6200220791906200365b565b95945050505050565b6000600454836001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa15801562002254573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200227a9190620036cd565b60035462002289908562003890565b6200229591906200365b565b620022a1919062003640565b9392505050565b60cd546001600160a01b03163314620022d55760405162461bcd60e51b815260040162000889906200344f565b6001600160a01b038116620022fe5760405162461bcd60e51b8152600401620008899062003486565b600880546001600160a01b038381166001600160a01b03198316179092556040519116907f7b4a3682445cf2b8276b6dde2faa9f9a653ea60d9ebadf169518e64f55666aae90620009109083908590620034bd565b6008546000906001600160a01b03163314620023b25760405162461bcd60e51b815260206004820152601e60248201527f503132466163746f72793a2063616c6c6572206d757374206265206465760000604482015260640162000889565b620023c86001600160a01b038416858462002afc565b604080516001600160a01b038087168252851660208201529081018390527f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb9060600160405180910390a15060019392505050565b60cd546001600160a01b031633146200244a5760405162461bcd60e51b815260040162000889906200344f565b6001600160a01b038116620024735760405162461bcd60e51b8152600401620008899062003486565b600280546001600160a01b038381166001600160a01b03198316179092556040519116907f1d63ba0b48b767ad4e57f2dabb3bc49065423e8fb23b85274d4f8d0c6952848990620009109083908590620034bd565b60cd546001600160a01b0316331462000b065760405162461bcd60e51b815260040162000889906200344f565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff161562002530576200252b8362002b2e565b505050565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156200258d575060408051601f3d908101601f191682019092526200258a91810190620036cd565b60015b620025f25760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b606482015260840162000889565b60008051602062004fe28339815191528114620026645760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b606482015260840162000889565b506200252b83838362002bcd565b600081604051602001620026879190620034d7565b6040516020818303038152906040528051906020012083604051602001620026b09190620034d7565b6040516020818303038152906040528051906020012014905092915050565b6040516001600160a01b03808516602483015283166044820152606481018290526200273c9085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915262002bf8565b50505050565b6101315460ff166200278e5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640162000889565b610131805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60cd5460ce546040516001600160a01b03928316929091169082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35060ce805460cd80546001600160a01b03199081166001600160a01b03841617909155169055565b6000808686868686604051620028589062002f99565b62002868959493929190620038b2565b604051809103906000f08015801562002885573d6000803e3d6000fd5b50979650505050505050565b801580620029105750604051636eb1769f60e11b81526001600160a01b0384169063dd62ed3e90620028ca9030908690600401620034bd565b602060405180830381865afa158015620028e8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200290e9190620036cd565b155b6200297d5760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b606482015260840162000889565b6040516001600160a01b0383166024820152604481018290526200252b90849063095ea7b360e01b9060640162002704565b60cd80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6101315460ff161562002a285760405162461bcd60e51b81526004016200088990620035c4565b610131805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258620027bc3390565b603654610100900460ff1662002a895760405162461bcd60e51b815260040162000889906200391a565b600160ff55565b603654610100900460ff1662002aba5760405162461bcd60e51b815260040162000889906200391a565b610131805460ff19169055565b603654610100900460ff1662002af15760405162461bcd60e51b815260040162000889906200391a565b62000ef633620029af565b6040516001600160a01b0383166024820152604481018290526200252b90849063a9059cbb60e01b9060640162002704565b6001600160a01b0381163b62002b9d5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b606482015260840162000889565b60008051602062004fe283398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b62002bd88362002cd1565b60008251118062002be65750805b156200252b576200273c838362002d13565b600062002c4f826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031662002e079092919063ffffffff16565b8051909150156200252b578080602001905181019062002c70919062003965565b6200252b5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840162000889565b62002cdc8162002b2e565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606001600160a01b0383163b62002d7d5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b606482015260840162000889565b600080846001600160a01b03168460405162002d9a9190620034d7565b600060405180830381855af49150503d806000811462002dd7576040519150601f19603f3d011682016040523d82523d6000602084013e62002ddc565b606091505b5091509150620022078282604051806060016040528060278152602001620050026027913962002e20565b606062002e18848460008562002e5e565b949350505050565b6060831562002e31575081620022a1565b82511562002e425782518084602001fd5b8160405162461bcd60e51b81526004016200088991906200330e565b60608247101562002ec15760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840162000889565b6001600160a01b0385163b62002f1a5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640162000889565b600080866001600160a01b0316858760405162002f389190620034d7565b60006040518083038185875af1925050503d806000811462002f77576040519150601f19603f3d011682016040523d82523d6000602084013e62002f7c565b606091505b509150915062002f8e82828662002e20565b979650505050505050565b61165c806200398683390190565b6001600160a01b038116811462000b0657600080fd5b60006020828403121562002fd057600080fd5b8135620022a18162002fa7565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111562003011576200301162002fdd565b604051601f8501601f19908116603f011681019082821181831017156200303c576200303c62002fdd565b816040528093508581528686860111156200305657600080fd5b858560208301376000602087830101525050509392505050565b600082601f8301126200308257600080fd5b620022a18383356020850162002ff3565b60008060408385031215620030a757600080fd5b823567ffffffffffffffff811115620030bf57600080fd5b620030cd8582860162003070565b9250506020830135620030e08162002fa7565b809150509250929050565b6000806000606084860312156200310157600080fd5b833567ffffffffffffffff8111156200311957600080fd5b620031278682870162003070565b93505060208401356200313a8162002fa7565b929592945050506040919091013590565b600080604083850312156200315f57600080fd5b82356200316c8162002fa7565b9150602083013567ffffffffffffffff8111156200318957600080fd5b8301601f810185136200319b57600080fd5b620031ac8582356020840162002ff3565b9150509250929050565b60008060408385031215620031ca57600080fd5b8235620031d78162002fa7565b946020939093013593505050565b60008060008060008060c08789031215620031ff57600080fd5b863567ffffffffffffffff808211156200321857600080fd5b620032268a838b0162003070565b975060208901359150808211156200323d57600080fd5b6200324b8a838b0162003070565b965060408901359150808211156200326257600080fd5b620032708a838b0162003070565b955060608901359150808211156200328757600080fd5b506200329689828a0162003070565b9350506080870135915060a087013590509295509295509295565b60005b83811015620032ce578181015183820152602001620032b4565b838111156200273c5750506000910152565b60008151808452620032fa816020860160208601620032b1565b601f01601f19169290920160200192915050565b602081526000620022a16020830184620032e0565b600080600080600060a086880312156200333c57600080fd5b8535620033498162002fa7565b945060208601356200335b8162002fa7565b935060408601356200336d8162002fa7565b94979396509394606081013594506080013592915050565b6000602082840312156200339857600080fd5b5035919050565b801515811462000b0657600080fd5b60008060408385031215620033c257600080fd5b8235620033cf8162002fa7565b91506020830135620030e0816200339f565b600060208284031215620033f457600080fd5b813567ffffffffffffffff8111156200340c57600080fd5b62002e188482850162003070565b6000806000606084860312156200343057600080fd5b83356200343d8162002fa7565b925060208401356200313a8162002fa7565b6020808252601d908201527f536166654f776e61626c653a2063616c6c6572206e6f74206f776e6572000000604082015260600190565b6020808252601f908201527f503132466163746f72793a20616464726573732063616e6e6f74206265203000604082015260600190565b6001600160a01b0392831681529116602082015260400190565b60008251620034eb818460208701620032b1565b9190910192915050565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b600181811c908216806200360357607f821691505b6020821081036200362457634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600082198211156200365657620036566200362a565b500190565b6000826200367957634e487b7160e01b600052601260045260246000fd5b500490565b6000806000606084860312156200369457600080fd5b8351925060208401519150604084015190509250925092565b600060208284031215620036c057600080fd5b8151620022a18162002fa7565b600060208284031215620036e057600080fd5b5051919050565b601f8211156200252b57600081815260208120601f850160051c81016020861015620037105750805b601f850160051c820191505b8181101562001cdb578281556001016200371c565b815167ffffffffffffffff8111156200374e576200374e62002fdd565b62003766816200375f8454620035ee565b84620036e7565b602080601f8311600181146200379e5760008415620037855750858301515b600019600386901b1c1916600185901b17855562001cdb565b600085815260208120601f198616915b82811015620037cf57888601518255948401946001909101908401620037ae565b5085821015620037ee5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b604081526000620038136040830185620032e0565b90508260208301529392505050565b80516001600160701b038116811462001e0657600080fd5b6000806000606084860312156200385057600080fd5b6200385b8462003822565b92506200386b6020850162003822565b9150604084015163ffffffff811681146200388557600080fd5b809150509250925092565b6000816000190483118215151615620038ad57620038ad6200362a565b500290565b60a081526000620038c760a0830188620032e0565b8281036020840152620038db8188620032e0565b90508281036040840152620038f18187620032e0565b90508281036060840152620039078186620032e0565b9150508260808301529695505050505050565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b6000602082840312156200397857600080fd5b8151620022a1816200339f56fe60806040523480156200001157600080fd5b506040516200165c3803806200165c8339810160408190526200003491620002b5565b8484600362000044838262000406565b50600462000053828262000406565b505050620000706200006a620000a560201b60201c565b620000a9565b60076200007e848262000406565b5060086200008d838262000406565b506200009a3382620000fb565b5050505050620004f9565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216620001565760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640160405180910390fd5b80600260008282546200016a9190620004d2565b90915550506001600160a01b0382166000908152602081905260408120805483929062000199908490620004d2565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b505050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200021057600080fd5b81516001600160401b03808211156200022d576200022d620001e8565b604051601f8301601f19908116603f01168101908282118183101715620002585762000258620001e8565b816040528381526020925086838588010111156200027557600080fd5b600091505b838210156200029957858201830151818301840152908201906200027a565b83821115620002ab5760008385830101525b9695505050505050565b600080600080600060a08688031215620002ce57600080fd5b85516001600160401b0380821115620002e657600080fd5b620002f489838a01620001fe565b965060208801519150808211156200030b57600080fd5b6200031989838a01620001fe565b955060408801519150808211156200033057600080fd5b6200033e89838a01620001fe565b945060608801519150808211156200035557600080fd5b506200036488828901620001fe565b925050608086015190509295509295909350565b600181811c908216806200038d57607f821691505b602082108103620003ae57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620001e357600081815260208120601f850160051c81016020861015620003dd5750805b601f850160051c820191505b81811015620003fe57828155600101620003e9565b505050505050565b81516001600160401b03811115620004225762000422620001e8565b6200043a8162000433845462000378565b84620003b4565b602080601f831160018114620004725760008415620004595750858301515b600019600386901b1c1916600185901b178555620003fe565b600085815260208120601f198616915b82811015620004a35788860151825594840194600190910190840162000482565b5085821015620004c25787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60008219821115620004f457634e487b7160e01b600052601160045260246000fd5b500190565b61115380620005096000396000f3fe608060405234801561001057600080fd5b50600436106101425760003560e01c8063715018a6116100b8578063a9059cbb1161007c578063a9059cbb1461028b578063b242e5341461029e578063c5ac5e3e146102b1578063d7c81b55146102c4578063dd62ed3e146102cc578063e30c39781461030557600080fd5b8063715018a61461023057806379cc6790146102385780638da5cb5b1461024b57806395d89b4114610270578063a457c2d71461027857600080fd5b8063313ce5671161010a578063313ce567146101b557806339509351146101c457806340c10f19146101d757806342966c68146101ec5780634e71e0c8146101ff57806370a082311461020757600080fd5b806306fdde0314610147578063095ea7b31461016557806318160ddd1461018857806323b872dd1461019a57806325371063146101ad575b600080fd5b61014f610316565b60405161015c9190610e13565b60405180910390f35b610178610173366004610e49565b6103a8565b604051901515815260200161015c565b6002545b60405190815260200161015c565b6101786101a8366004610e73565b6103c0565b61014f6103e4565b6040516012815260200161015c565b6101786101d2366004610e49565b610472565b6101ea6101e5366004610e49565b6104b1565b005b6101ea6101fa366004610eaf565b6104f2565b6101ea6104ff565b61018c610215366004610ec8565b6001600160a01b031660009081526020819052604090205490565b6101ea610563565b6101ea610246366004610e49565b610597565b6005546001600160a01b03165b6040516001600160a01b03909116815260200161015c565b61014f6105ac565b610178610286366004610e49565b6105bb565b610178610299366004610e49565b61064d565b6101ea6102ac366004610ee3565b61065b565b6101ea6102bf366004610f35565b610709565b61014f610754565b61018c6102da366004611000565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6006546001600160a01b0316610258565b60606003805461032590611033565b80601f016020809104026020016040519081016040528092919081815260200182805461035190611033565b801561039e5780601f106103735761010080835404028352916020019161039e565b820191906000526020600020905b81548152906001019060200180831161038157829003601f168201915b5050505050905090565b6000336103b6818585610761565b5060019392505050565b6000336103ce858285610886565b6103d9858585610918565b506001949350505050565b600880546103f190611033565b80601f016020809104026020016040519081016040528092919081815260200182805461041d90611033565b801561046a5780601f1061043f5761010080835404028352916020019161046a565b820191906000526020600020905b81548152906001019060200180831161044d57829003601f168201915b505050505081565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091906103b690829086906104ac908790611083565b610761565b6005546001600160a01b031633146104e45760405162461bcd60e51b81526004016104db9061109b565b60405180910390fd5b6104ee8282610ae6565b5050565b6104fc3382610bc5565b50565b6006546001600160a01b031633146105595760405162461bcd60e51b815260206004820152601e60248201527f536166654f776e61626c653a2063616c6c657220213d2070656e64696e67000060448201526064016104db565b610561610d0b565b565b6005546001600160a01b0316331461058d5760405162461bcd60e51b81526004016104db9061109b565b6105616000610d74565b6105a2823383610886565b6104ee8282610bc5565b60606004805461032590611033565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909190838110156106405760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016104db565b6103d98286868403610761565b6000336103b6818585610918565b6005546001600160a01b031633146106855760405162461bcd60e51b81526004016104db9061109b565b6001600160a01b0382166106db5760405162461bcd60e51b815260206004820152601b60248201527f536166654f776e61626c653a206e6577206f776e65722069732030000000000060448201526064016104db565b80156106ea576104ee82610d74565b600680546001600160a01b0319166001600160a01b0384161790555050565b610713838261064d565b507f0685266a580e960b24e8250625c91771b26ecea1913010a819fee0661a45dac8838383604051610747939291906110d2565b60405180910390a1505050565b600780546103f190611033565b6001600160a01b0383166107c35760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016104db565b6001600160a01b0382166108245760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016104db565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b03838116600090815260016020908152604080832093861683529290522054600019811461091257818110156109055760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016104db565b6109128484848403610761565b50505050565b6001600160a01b03831661097c5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016104db565b6001600160a01b0382166109de5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016104db565b6001600160a01b03831660009081526020819052604090205481811015610a565760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016104db565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290610a8d908490611083565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610ad991815260200190565b60405180910390a3610912565b6001600160a01b038216610b3c5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016104db565b8060026000828254610b4e9190611083565b90915550506001600160a01b03821660009081526020819052604081208054839290610b7b908490611083565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b038216610c255760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016104db565b6001600160a01b03821660009081526020819052604090205481811015610c995760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016104db565b6001600160a01b0383166000908152602081905260408120838303905560028054849290610cc8908490611106565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610879565b6005546006546040516001600160a01b03928316929091169082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35060068054600580546001600160a01b03199081166001600160a01b03841617909155169055565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000815180845260005b81811015610dec57602081850181015186830182015201610dd0565b81811115610dfe576000602083870101525b50601f01601f19169290920160200192915050565b602081526000610e266020830184610dc6565b9392505050565b80356001600160a01b0381168114610e4457600080fd5b919050565b60008060408385031215610e5c57600080fd5b610e6583610e2d565b946020939093013593505050565b600080600060608486031215610e8857600080fd5b610e9184610e2d565b9250610e9f60208501610e2d565b9150604084013590509250925092565b600060208284031215610ec157600080fd5b5035919050565b600060208284031215610eda57600080fd5b610e2682610e2d565b60008060408385031215610ef657600080fd5b610eff83610e2d565b915060208301358015158114610f1457600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b600080600060608486031215610f4a57600080fd5b610f5384610e2d565b9250602084013567ffffffffffffffff80821115610f7057600080fd5b818601915086601f830112610f8457600080fd5b813581811115610f9657610f96610f1f565b604051601f8201601f19908116603f01168101908382118183101715610fbe57610fbe610f1f565b81604052828152896020848701011115610fd757600080fd5b826020860160208301376000602084830101528096505050505050604084013590509250925092565b6000806040838503121561101357600080fd5b61101c83610e2d565b915061102a60208401610e2d565b90509250929050565b600181811c9082168061104757607f821691505b60208210810361106757634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600082198211156110965761109661106d565b500190565b6020808252601d908201527f536166654f776e61626c653a2063616c6c6572206e6f74206f776e6572000000604082015260600190565b6001600160a01b03841681526060602082018190526000906110f690830185610dc6565b9050826040830152949350505050565b6000828210156111185761111861106d565b50039056fea2646970667358221220800019f6c08dd9eedcbdd3bef63cbfcb062fe5332057f33c0a032a0d0df3ff4e64736f6c634300080f0033360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212205274e5baffdf6a719dbcec0ad8d0dfc485fc2cb3cde1d608ccc6c73c54b4550a64736f6c634300080f0033", + "deployedBytecode": "0x6080604052600436106200026a5760003560e01c80638da5cb5b1162000147578063beb54e5311620000b9578063d477f05f1162000078578063d477f05f14620007b5578063d9caed1214620007da578063e04b677f14620007ff578063e30c39781462000824578063e48f427b146200084457600080fd5b8063beb54e5314620006e2578063bfe369531462000707578063c45ef4821462000729578063cad2efad146200074e578063caf3a4fe146200079357600080fd5b8063ada221f41162000106578063ada221f41462000629578063afdbf3c2146200064e578063b242e5341462000673578063b309bc981462000698578063bea9849e14620006bd57600080fd5b80638da5cb5b146200057c57806391cca3db146200059c57806398d294a114620005be57806399eecb3b14620005d65780639be55f5114620005f857600080fd5b80635377210f11620001e1578063735de9f711620001a0578063735de9f714620004c7578063739be25414620004e95780638456cb59146200051d5780638bdb2afa14620005355780638d7017d3146200055757600080fd5b80635377210f14620003d25780635c975abb146200043e578063614bb60a14620004595780637142bc831462000471578063715018a614620004af57600080fd5b80634e71e0c8116200022e5780634e71e0c814620003325780634f1ef286146200034a5780634f6649f1146200036157806352d1902d14620003865780635348e30414620003ad57600080fd5b806291d2b8146200026f5780631e59c52914620002965780633659cfe614620002bb5780633735e35914620002e05780633f4ba83a146200031a575b600080fd5b3480156200027c57600080fd5b50620002946200028e36600462002fbd565b6200085c565b005b348015620002a357600080fd5b5062000294620002b536600462003093565b6200091c565b348015620002c857600080fd5b5062000294620002da36600462002fbd565b62000a1e565b348015620002ed57600080fd5b5062000305620002ff366004620030eb565b62000b09565b60405190151581526020015b60405180910390f35b3480156200032757600080fd5b506200029462000ebf565b3480156200033f57600080fd5b506200029462000ef8565b620002946200035b3660046200314b565b62000f5e565b3480156200036e57600080fd5b50620002946200038036600462002fbd565b6200103a565b3480156200039357600080fd5b506200039e620010e5565b60405190815260200162000311565b348015620003ba57600080fd5b5062000305620003cc366004620031b6565b6200119b565b348015620003df57600080fd5b5062000420620003f1366004620031b6565b603460209081526000928352604080842090915290825290208054600182015460029092015490919060ff1683565b60408051938452602084019290925215159082015260600162000311565b3480156200044b57600080fd5b506101315460ff1662000305565b3480156200046657600080fd5b506200039e60045481565b3480156200047e57600080fd5b506200049662000490366004620031e5565b62001432565b6040516001600160a01b03909116815260200162000311565b348015620004bc57600080fd5b506200029462001992565b348015620004d457600080fd5b5060015462000496906001600160a01b031681565b348015620004f657600080fd5b506200050e6200050836600462002fbd565b620019cb565b6040516200031191906200330e565b3480156200052a57600080fd5b506200029462001a6d565b3480156200054257600080fd5b5060025462000496906001600160a01b031681565b3480156200056457600080fd5b50620002946200057636600462003323565b62001aa4565b3480156200058957600080fd5b5060cd546001600160a01b031662000496565b348015620005a957600080fd5b5060085462000496906001600160a01b031681565b348015620005cb57600080fd5b506200039e60065481565b348015620005e357600080fd5b5060095462000496906001600160a01b031681565b3480156200060557600080fd5b506200039e6200061736600462002fbd565b60356020526000908152604090205481565b3480156200063657600080fd5b50620002946200064836600462002fbd565b62001ce3565b3480156200065b57600080fd5b50620003056200066d36600462003385565b62001d8e565b3480156200068057600080fd5b506200029462000692366004620033ae565b62001e0b565b348015620006a557600080fd5b5062000305620006b736600462003385565b62001ec1565b348015620006ca57600080fd5b5062000294620006dc36600462002fbd565b62001f30565b348015620006ef57600080fd5b506200039e62000701366004620031b6565b62001fdb565b3480156200071457600080fd5b5060005462000496906001600160a01b031681565b3480156200073657600080fd5b506200039e62000748366004620031b6565b62002210565b3480156200075b57600080fd5b50620004966200076d366004620033e1565b80516020818301810180516032825292820191909301209152546001600160a01b031681565b348015620007a057600080fd5b5060075462000496906001600160a01b031681565b348015620007c257600080fd5b5062000294620007d436600462002fbd565b620022a8565b348015620007e757600080fd5b5062000305620007f93660046200341a565b62002353565b3480156200080c57600080fd5b50620002946200081e36600462002fbd565b6200241d565b3480156200083157600080fd5b5060ce546001600160a01b031662000496565b3480156200085157600080fd5b506200039e60035481565b60cd546001600160a01b03163314620008925760405162461bcd60e51b815260040162000889906200344f565b60405180910390fd5b6001600160a01b038116620008bb5760405162461bcd60e51b8152600401620008899062003486565b600980546001600160a01b038381166001600160a01b03198316179092556040519116907f9b1ae61f53f47914159f1f1397501254f37fc99c47286e6b059ce40b382bf0b490620009109083908590620034bd565b60405180910390a15050565b6008546001600160a01b03163314620009785760405162461bcd60e51b815260206004820152601e60248201527f503132466163746f72793a2063616c6c6572206d757374206265206465760000604482015260640162000889565b6001600160a01b038116620009a15760405162461bcd60e51b8152600401620008899062003486565b80603283604051620009b49190620034d7565b90815260405190819003602001812080546001600160a01b039384166001600160a01b0319909116179055908216907fd0dd9fef631eda10c96c4dc062a2dd5fa09ab1fc94bc8b015f6d7c3eeaca4a389062000a129085906200330e565b60405180910390a25050565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016300362000a695760405162461bcd60e51b81526004016200088990620034f5565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031662000ab460008051602062004fe2833981519152546001600160a01b031690565b6001600160a01b03161462000add5760405162461bcd60e51b8152600401620008899062003541565b62000ae881620024c8565b6040805160008082526020820190925262000b0691839190620024f5565b50565b6000600260ff540362000b305760405162461bcd60e51b815260040162000889906200358d565b600260ff5562000b436101315460ff1690565b1562000b635760405162461bcd60e51b81526004016200088990620035c4565b60328460405162000b759190620034d7565b90815260405190819003602001902054336001600160a01b039091161462000be05760405162461bcd60e51b815260206004820152601e60248201527f503132466163746f72793a2068617665206e6f207065726d697373696f6e0000604482015260640162000889565b6001600160a01b0383166000908152603360205260409020805462000c96919062000c0b90620035ee565b80601f016020809104026020016040519081016040528092919081815260200182805462000c3990620035ee565b801562000c8a5780601f1062000c5e5761010080835404028352916020019162000c8a565b820191906000526020600020905b81548152906001019060200180831162000c6c57829003601f168201915b50505050508562002672565b62000ce45760405162461bcd60e51b815260206004820152601960248201527f503132466163746f72793a2077726f6e672067616d6520696400000000000000604482015260640162000889565b6001600160a01b0383166000908152603560209081526040808320546034835281842081855290925282206001015442919080831062000d275782935062000d2b565b8093505b600062000d39888862001fdb565b60005490915062000d56906001600160a01b0316333084620026cf565b600062000d64898962002210565b9050600062000dea8a338b8a6005546001600160a01b039485166000818152603560208181526040808420805482518085018890529a909b168a83015260608a0198909852608089019690965260a088019890985260c0808801949094528451808803909401845260e09096019093528151918601919091209152919092529081905590565b905060405180606001604052808a8152602001888462000e0b919062003640565b8152600060209182018190526001600160a01b038d16808252603483526040808320868452845291829020845181559284015160018401559201516002909101805460ff1916911515919091179055817f192dbb596f99b94785518ef174823fd46e8962b95010f6ddc9fd529a129dbe778b62000e898b8762003640565b604080519283526020830191909152810187905260600160405180910390a36001975050505050505050600160ff559392505050565b60cd546001600160a01b0316331462000eec5760405162461bcd60e51b815260040162000889906200344f565b62000ef662002742565b565b60ce546001600160a01b0316331462000f545760405162461bcd60e51b815260206004820152601e60248201527f536166654f776e61626c653a2063616c6c657220213d2070656e64696e670000604482015260640162000889565b62000ef6620027d9565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016300362000fa95760405162461bcd60e51b81526004016200088990620034f5565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031662000ff460008051602062004fe2833981519152546001600160a01b031690565b6001600160a01b0316146200101d5760405162461bcd60e51b8152600401620008899062003541565b6200102882620024c8565b6200103682826001620024f5565b5050565b60cd546001600160a01b03163314620010675760405162461bcd60e51b815260040162000889906200344f565b6001600160a01b038116620010905760405162461bcd60e51b8152600401620008899062003486565b600780546001600160a01b038381166001600160a01b03198316179092556040519116907f95468d408cf5dd8c0bb5ce4d4a5e1b17b13caa162d20fc4d727f92d404e5265b90620009109083908590620034bd565b6000306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614620011875760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c0000000000000000606482015260840162000889565b5060008051602062004fe283398151915290565b6000600260ff5403620011c25760405162461bcd60e51b815260040162000889906200358d565b600260ff55620011d56101315460ff1690565b15620011f55760405162461bcd60e51b81526004016200088990620035c4565b6001600160a01b038316600090815260346020908152604080832085845290915281206001015490036200126c5760405162461bcd60e51b815260206004820152601d60248201527f503132466163746f72793a206e6f6e2d6578697374656e74206d696e74000000604482015260640162000889565b6001600160a01b038316600090815260346020908152604080832085845290915290206002015460ff1615620012e55760405162461bcd60e51b815260206004820152601960248201527f503132466163746f72793a206d696e7420657865637574656400000000000000604482015260640162000889565b6001600160a01b0383166000908152603460209081526040808320858452909152902060010154429081116200135e5760405162461bcd60e51b815260206004820152601c60248201527f503132466163746f72793a206e6f742074696d6520746f206d696e7400000000604482015260640162000889565b6001600160a01b03841660008181526034602090815260408083208784529091529081902060028101805460ff191660011790555490516340c10f1960e01b815230600482015260248101919091526340c10f1990604401600060405180830381600087803b158015620013d157600080fd5b505af1158015620013e6573d6000803e3d6000fd5b50506040513392506001600160a01b038716915085907f2da35f6537bd80d9cac4d158e23a0ab942e7fb1fd4a25243fcad824c3433e37990600090a46001915050600160ff5592915050565b6000600260ff5403620014595760405162461bcd60e51b815260040162000889906200358d565b600260ff556200146c6101315460ff1690565b156200148c5760405162461bcd60e51b81526004016200088990620035c4565b6032856040516200149e9190620034d7565b90815260405190819003602001902054336001600160a01b0390911614620015095760405162461bcd60e51b815260206004820152601f60248201527f503132466163746f72793a206e6f207065726d697420746f2063726561746500604482015260640162000889565b600082116200155b5760405162461bcd60e51b815260206004820152601a60248201527f503132466163746f72793a206e6f7420656e6f75676820703132000000000000604482015260640162000889565b6200156a878787878762002842565b905060006200157b6002856200365b565b60005490915062001598906001600160a01b0316333086620026cf565b600154620015b4906001600160a01b0384811691168362002891565b6001546000805460075460065492936001600160a01b039081169363e8e337009382169288928a92899284928492911690620015f1904262003640565b60405160e08a901b6001600160e01b03191681526001600160a01b039889166004820152968816602488015260448701959095526064860193909352608485019190915260a484015290921660c482015260e4810191909152610104016060604051808303816000875af11580156200166e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200169491906200367e565b6002546000805460405163e6a4390560e01b81529396509094506001600160a01b03918216935063e6a4390592620016d592909116908890600401620034bd565b602060405180830381865afa158015620016f3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620017199190620036ad565b90506001600160a01b038116620017735760405162461bcd60e51b815260206004820152601e60248201527f503132466163746f72793a20706169722061646472657373206572726f720000604482015260640162000889565b6007546040516370a0823160e01b81526001600160a01b0391821660048201526000918316906370a0823190602401602060405180830381865afa158015620017c0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620017e69190620036cd565b9050808314620018395760405162461bcd60e51b815260206004820152601d60248201527f503132466163746f72793a206c69717569646974696573206e6f74203d000000604482015260640162000889565b600954604051634fdea7b360e11b81526001600160a01b03848116600483015260006024830152606460448301819052921691639fbd4f669101600060405180830381600087803b1580156200188e57600080fd5b505af1158015620018a3573d6000803e3d6000fd5b50506007546040516361b5943760e11b81526001600160a01b03868116600483015260248201869052336044830152909116925063c36b286e9150606401600060405180830381600087803b158015620018fc57600080fd5b505af115801562001911573d6000803e3d6000fd5b505050506001600160a01b0385166000908152603360205260409020620019398a8262003731565b50846001600160a01b03167f6e95c3b5d98fadafb5128d1b47318086a57941593d293495faa5879c7eda5ba88a8860405162001977929190620037fe565b60405180910390a250505050600160ff559695505050505050565b60cd546001600160a01b03163314620019bf5760405162461bcd60e51b815260040162000889906200344f565b62000ef66000620029af565b60336020526000908152604090208054620019e690620035ee565b80601f016020809104026020016040519081016040528092919081815260200182805462001a1490620035ee565b801562001a655780601f1062001a395761010080835404028352916020019162001a65565b820191906000526020600020905b81548152906001019060200180831162001a4757829003601f168201915b505050505081565b60cd546001600160a01b0316331462001a9a5760405162461bcd60e51b815260040162000889906200344f565b62000ef662002a01565b603654610100900460ff1662001ac15760365460ff161562001ac5565b303b155b62001b2a5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840162000889565b603654610100900460ff1615801562001b4d576036805461ffff19166101011790555b6001600160a01b03861662001ba55760405162461bcd60e51b815260206004820152601e60248201527f5031324d696e653a2070313220746f6b656e2063616e6e6f7420626520300000604482015260640162000889565b6001600160a01b03851662001bfd5760405162461bcd60e51b815260206004820152601d60248201527f5031324d696e653a20756e6973776170462063616e6e6f742062652030000000604482015260640162000889565b6001600160a01b03841662001c555760405162461bcd60e51b815260206004820152601d60248201527f5031324d696e653a20756e6973776170522063616e6e6f742062652030000000604482015260640162000889565b600080546001600160a01b03199081166001600160a01b03898116918217909355600280548316898516179055600180549092169287169283179091556005849055600685905562001caa9160001962002891565b62001cb462002a5f565b62001cbe62002a90565b62001cc862002ac7565b801562001cdb576036805461ff00191690555b505050505050565b60cd546001600160a01b0316331462001d105760405162461bcd60e51b815260040162000889906200344f565b6001600160a01b03811662001d395760405162461bcd60e51b8152600401620008899062003486565b600080546001600160a01b038381166001600160a01b03198316179092556040519116907fa8b6187bdfcd1b7c94f6739c7b7fd3ae429f0243bb27db8dd521cb941628924c90620009109083908590620034bd565b60cd546000906001600160a01b0316331462001dbe5760405162461bcd60e51b815260040162000889906200344f565b600380549083905560408051828152602081018590527fb936e6dfcf3fec6bfb7d23d91ce9406c4ce74825de73cf38c764ed900731d7a491015b60405180910390a160019150505b919050565b60cd546001600160a01b0316331462001e385760405162461bcd60e51b815260040162000889906200344f565b6001600160a01b03821662001e905760405162461bcd60e51b815260206004820152601b60248201527f536166654f776e61626c653a206e6577206f776e657220697320300000000000604482015260640162000889565b801562001ea2576200103682620029af565b60ce80546001600160a01b0319166001600160a01b0384161790555050565b60cd546000906001600160a01b0316331462001ef15760405162461bcd60e51b815260040162000889906200344f565b600480549083905560408051828152602081018590527f43c057f209152d56f2de0fa1d79291670facf6161810b2392b949bf1647cc236910162001df8565b60cd546001600160a01b0316331462001f5d5760405162461bcd60e51b815260040162000889906200344f565b6001600160a01b03811662001f865760405162461bcd60e51b8152600401620008899062003486565b600180546001600160a01b038381166001600160a01b03198316179092556040519116907f0f37b9ce7f4d93710cfa573bde8e5e815a6ddd7917004b6832145a3c22047e3b90620009109083908590620034bd565b60008054819081906001600160a01b0380871691161015620020ef5760025460005460405163e6a4390560e01b81526001600160a01b039283169263e6a439059262002030928a9290911690600401620034bd565b602060405180830381865afa1580156200204e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620020749190620036ad565b6001600160a01b0316630902f1ac6040518163ffffffff1660e01b8152600401606060405180830381865afa158015620020b2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620020d891906200383a565b506001600160701b039081169350169050620021e2565b60025460005460405163e6a4390560e01b81526001600160a01b039283169263e6a439059262002128928a9290911690600401620034bd565b602060405180830381865afa15801562002146573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200216c9190620036ad565b6001600160a01b0316630902f1ac6040518163ffffffff1660e01b8152600401606060405180830381865afa158015620021aa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620021d091906200383a565b506001600160701b0391821693501690505b620021ef82606462003890565b620021fb858362003890565b6200220791906200365b565b95945050505050565b6000600454836001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa15801562002254573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200227a9190620036cd565b60035462002289908562003890565b6200229591906200365b565b620022a1919062003640565b9392505050565b60cd546001600160a01b03163314620022d55760405162461bcd60e51b815260040162000889906200344f565b6001600160a01b038116620022fe5760405162461bcd60e51b8152600401620008899062003486565b600880546001600160a01b038381166001600160a01b03198316179092556040519116907f7b4a3682445cf2b8276b6dde2faa9f9a653ea60d9ebadf169518e64f55666aae90620009109083908590620034bd565b6008546000906001600160a01b03163314620023b25760405162461bcd60e51b815260206004820152601e60248201527f503132466163746f72793a2063616c6c6572206d757374206265206465760000604482015260640162000889565b620023c86001600160a01b038416858462002afc565b604080516001600160a01b038087168252851660208201529081018390527f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb9060600160405180910390a15060019392505050565b60cd546001600160a01b031633146200244a5760405162461bcd60e51b815260040162000889906200344f565b6001600160a01b038116620024735760405162461bcd60e51b8152600401620008899062003486565b600280546001600160a01b038381166001600160a01b03198316179092556040519116907f1d63ba0b48b767ad4e57f2dabb3bc49065423e8fb23b85274d4f8d0c6952848990620009109083908590620034bd565b60cd546001600160a01b0316331462000b065760405162461bcd60e51b815260040162000889906200344f565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff161562002530576200252b8362002b2e565b505050565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156200258d575060408051601f3d908101601f191682019092526200258a91810190620036cd565b60015b620025f25760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b606482015260840162000889565b60008051602062004fe28339815191528114620026645760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b606482015260840162000889565b506200252b83838362002bcd565b600081604051602001620026879190620034d7565b6040516020818303038152906040528051906020012083604051602001620026b09190620034d7565b6040516020818303038152906040528051906020012014905092915050565b6040516001600160a01b03808516602483015283166044820152606481018290526200273c9085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915262002bf8565b50505050565b6101315460ff166200278e5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640162000889565b610131805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60cd5460ce546040516001600160a01b03928316929091169082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35060ce805460cd80546001600160a01b03199081166001600160a01b03841617909155169055565b6000808686868686604051620028589062002f99565b62002868959493929190620038b2565b604051809103906000f08015801562002885573d6000803e3d6000fd5b50979650505050505050565b801580620029105750604051636eb1769f60e11b81526001600160a01b0384169063dd62ed3e90620028ca9030908690600401620034bd565b602060405180830381865afa158015620028e8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200290e9190620036cd565b155b6200297d5760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b606482015260840162000889565b6040516001600160a01b0383166024820152604481018290526200252b90849063095ea7b360e01b9060640162002704565b60cd80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6101315460ff161562002a285760405162461bcd60e51b81526004016200088990620035c4565b610131805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258620027bc3390565b603654610100900460ff1662002a895760405162461bcd60e51b815260040162000889906200391a565b600160ff55565b603654610100900460ff1662002aba5760405162461bcd60e51b815260040162000889906200391a565b610131805460ff19169055565b603654610100900460ff1662002af15760405162461bcd60e51b815260040162000889906200391a565b62000ef633620029af565b6040516001600160a01b0383166024820152604481018290526200252b90849063a9059cbb60e01b9060640162002704565b6001600160a01b0381163b62002b9d5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b606482015260840162000889565b60008051602062004fe283398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b62002bd88362002cd1565b60008251118062002be65750805b156200252b576200273c838362002d13565b600062002c4f826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031662002e079092919063ffffffff16565b8051909150156200252b578080602001905181019062002c70919062003965565b6200252b5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840162000889565b62002cdc8162002b2e565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606001600160a01b0383163b62002d7d5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b606482015260840162000889565b600080846001600160a01b03168460405162002d9a9190620034d7565b600060405180830381855af49150503d806000811462002dd7576040519150601f19603f3d011682016040523d82523d6000602084013e62002ddc565b606091505b5091509150620022078282604051806060016040528060278152602001620050026027913962002e20565b606062002e18848460008562002e5e565b949350505050565b6060831562002e31575081620022a1565b82511562002e425782518084602001fd5b8160405162461bcd60e51b81526004016200088991906200330e565b60608247101562002ec15760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840162000889565b6001600160a01b0385163b62002f1a5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640162000889565b600080866001600160a01b0316858760405162002f389190620034d7565b60006040518083038185875af1925050503d806000811462002f77576040519150601f19603f3d011682016040523d82523d6000602084013e62002f7c565b606091505b509150915062002f8e82828662002e20565b979650505050505050565b61165c806200398683390190565b6001600160a01b038116811462000b0657600080fd5b60006020828403121562002fd057600080fd5b8135620022a18162002fa7565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111562003011576200301162002fdd565b604051601f8501601f19908116603f011681019082821181831017156200303c576200303c62002fdd565b816040528093508581528686860111156200305657600080fd5b858560208301376000602087830101525050509392505050565b600082601f8301126200308257600080fd5b620022a18383356020850162002ff3565b60008060408385031215620030a757600080fd5b823567ffffffffffffffff811115620030bf57600080fd5b620030cd8582860162003070565b9250506020830135620030e08162002fa7565b809150509250929050565b6000806000606084860312156200310157600080fd5b833567ffffffffffffffff8111156200311957600080fd5b620031278682870162003070565b93505060208401356200313a8162002fa7565b929592945050506040919091013590565b600080604083850312156200315f57600080fd5b82356200316c8162002fa7565b9150602083013567ffffffffffffffff8111156200318957600080fd5b8301601f810185136200319b57600080fd5b620031ac8582356020840162002ff3565b9150509250929050565b60008060408385031215620031ca57600080fd5b8235620031d78162002fa7565b946020939093013593505050565b60008060008060008060c08789031215620031ff57600080fd5b863567ffffffffffffffff808211156200321857600080fd5b620032268a838b0162003070565b975060208901359150808211156200323d57600080fd5b6200324b8a838b0162003070565b965060408901359150808211156200326257600080fd5b620032708a838b0162003070565b955060608901359150808211156200328757600080fd5b506200329689828a0162003070565b9350506080870135915060a087013590509295509295509295565b60005b83811015620032ce578181015183820152602001620032b4565b838111156200273c5750506000910152565b60008151808452620032fa816020860160208601620032b1565b601f01601f19169290920160200192915050565b602081526000620022a16020830184620032e0565b600080600080600060a086880312156200333c57600080fd5b8535620033498162002fa7565b945060208601356200335b8162002fa7565b935060408601356200336d8162002fa7565b94979396509394606081013594506080013592915050565b6000602082840312156200339857600080fd5b5035919050565b801515811462000b0657600080fd5b60008060408385031215620033c257600080fd5b8235620033cf8162002fa7565b91506020830135620030e0816200339f565b600060208284031215620033f457600080fd5b813567ffffffffffffffff8111156200340c57600080fd5b62002e188482850162003070565b6000806000606084860312156200343057600080fd5b83356200343d8162002fa7565b925060208401356200313a8162002fa7565b6020808252601d908201527f536166654f776e61626c653a2063616c6c6572206e6f74206f776e6572000000604082015260600190565b6020808252601f908201527f503132466163746f72793a20616464726573732063616e6e6f74206265203000604082015260600190565b6001600160a01b0392831681529116602082015260400190565b60008251620034eb818460208701620032b1565b9190910192915050565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b600181811c908216806200360357607f821691505b6020821081036200362457634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600082198211156200365657620036566200362a565b500190565b6000826200367957634e487b7160e01b600052601260045260246000fd5b500490565b6000806000606084860312156200369457600080fd5b8351925060208401519150604084015190509250925092565b600060208284031215620036c057600080fd5b8151620022a18162002fa7565b600060208284031215620036e057600080fd5b5051919050565b601f8211156200252b57600081815260208120601f850160051c81016020861015620037105750805b601f850160051c820191505b8181101562001cdb578281556001016200371c565b815167ffffffffffffffff8111156200374e576200374e62002fdd565b62003766816200375f8454620035ee565b84620036e7565b602080601f8311600181146200379e5760008415620037855750858301515b600019600386901b1c1916600185901b17855562001cdb565b600085815260208120601f198616915b82811015620037cf57888601518255948401946001909101908401620037ae565b5085821015620037ee5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b604081526000620038136040830185620032e0565b90508260208301529392505050565b80516001600160701b038116811462001e0657600080fd5b6000806000606084860312156200385057600080fd5b6200385b8462003822565b92506200386b6020850162003822565b9150604084015163ffffffff811681146200388557600080fd5b809150509250925092565b6000816000190483118215151615620038ad57620038ad6200362a565b500290565b60a081526000620038c760a0830188620032e0565b8281036020840152620038db8188620032e0565b90508281036040840152620038f18187620032e0565b90508281036060840152620039078186620032e0565b9150508260808301529695505050505050565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b6000602082840312156200397857600080fd5b8151620022a1816200339f56fe60806040523480156200001157600080fd5b506040516200165c3803806200165c8339810160408190526200003491620002b5565b8484600362000044838262000406565b50600462000053828262000406565b505050620000706200006a620000a560201b60201c565b620000a9565b60076200007e848262000406565b5060086200008d838262000406565b506200009a3382620000fb565b5050505050620004f9565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216620001565760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640160405180910390fd5b80600260008282546200016a9190620004d2565b90915550506001600160a01b0382166000908152602081905260408120805483929062000199908490620004d2565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b505050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200021057600080fd5b81516001600160401b03808211156200022d576200022d620001e8565b604051601f8301601f19908116603f01168101908282118183101715620002585762000258620001e8565b816040528381526020925086838588010111156200027557600080fd5b600091505b838210156200029957858201830151818301840152908201906200027a565b83821115620002ab5760008385830101525b9695505050505050565b600080600080600060a08688031215620002ce57600080fd5b85516001600160401b0380821115620002e657600080fd5b620002f489838a01620001fe565b965060208801519150808211156200030b57600080fd5b6200031989838a01620001fe565b955060408801519150808211156200033057600080fd5b6200033e89838a01620001fe565b945060608801519150808211156200035557600080fd5b506200036488828901620001fe565b925050608086015190509295509295909350565b600181811c908216806200038d57607f821691505b602082108103620003ae57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620001e357600081815260208120601f850160051c81016020861015620003dd5750805b601f850160051c820191505b81811015620003fe57828155600101620003e9565b505050505050565b81516001600160401b03811115620004225762000422620001e8565b6200043a8162000433845462000378565b84620003b4565b602080601f831160018114620004725760008415620004595750858301515b600019600386901b1c1916600185901b178555620003fe565b600085815260208120601f198616915b82811015620004a35788860151825594840194600190910190840162000482565b5085821015620004c25787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60008219821115620004f457634e487b7160e01b600052601160045260246000fd5b500190565b61115380620005096000396000f3fe608060405234801561001057600080fd5b50600436106101425760003560e01c8063715018a6116100b8578063a9059cbb1161007c578063a9059cbb1461028b578063b242e5341461029e578063c5ac5e3e146102b1578063d7c81b55146102c4578063dd62ed3e146102cc578063e30c39781461030557600080fd5b8063715018a61461023057806379cc6790146102385780638da5cb5b1461024b57806395d89b4114610270578063a457c2d71461027857600080fd5b8063313ce5671161010a578063313ce567146101b557806339509351146101c457806340c10f19146101d757806342966c68146101ec5780634e71e0c8146101ff57806370a082311461020757600080fd5b806306fdde0314610147578063095ea7b31461016557806318160ddd1461018857806323b872dd1461019a57806325371063146101ad575b600080fd5b61014f610316565b60405161015c9190610e13565b60405180910390f35b610178610173366004610e49565b6103a8565b604051901515815260200161015c565b6002545b60405190815260200161015c565b6101786101a8366004610e73565b6103c0565b61014f6103e4565b6040516012815260200161015c565b6101786101d2366004610e49565b610472565b6101ea6101e5366004610e49565b6104b1565b005b6101ea6101fa366004610eaf565b6104f2565b6101ea6104ff565b61018c610215366004610ec8565b6001600160a01b031660009081526020819052604090205490565b6101ea610563565b6101ea610246366004610e49565b610597565b6005546001600160a01b03165b6040516001600160a01b03909116815260200161015c565b61014f6105ac565b610178610286366004610e49565b6105bb565b610178610299366004610e49565b61064d565b6101ea6102ac366004610ee3565b61065b565b6101ea6102bf366004610f35565b610709565b61014f610754565b61018c6102da366004611000565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6006546001600160a01b0316610258565b60606003805461032590611033565b80601f016020809104026020016040519081016040528092919081815260200182805461035190611033565b801561039e5780601f106103735761010080835404028352916020019161039e565b820191906000526020600020905b81548152906001019060200180831161038157829003601f168201915b5050505050905090565b6000336103b6818585610761565b5060019392505050565b6000336103ce858285610886565b6103d9858585610918565b506001949350505050565b600880546103f190611033565b80601f016020809104026020016040519081016040528092919081815260200182805461041d90611033565b801561046a5780601f1061043f5761010080835404028352916020019161046a565b820191906000526020600020905b81548152906001019060200180831161044d57829003601f168201915b505050505081565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091906103b690829086906104ac908790611083565b610761565b6005546001600160a01b031633146104e45760405162461bcd60e51b81526004016104db9061109b565b60405180910390fd5b6104ee8282610ae6565b5050565b6104fc3382610bc5565b50565b6006546001600160a01b031633146105595760405162461bcd60e51b815260206004820152601e60248201527f536166654f776e61626c653a2063616c6c657220213d2070656e64696e67000060448201526064016104db565b610561610d0b565b565b6005546001600160a01b0316331461058d5760405162461bcd60e51b81526004016104db9061109b565b6105616000610d74565b6105a2823383610886565b6104ee8282610bc5565b60606004805461032590611033565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909190838110156106405760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016104db565b6103d98286868403610761565b6000336103b6818585610918565b6005546001600160a01b031633146106855760405162461bcd60e51b81526004016104db9061109b565b6001600160a01b0382166106db5760405162461bcd60e51b815260206004820152601b60248201527f536166654f776e61626c653a206e6577206f776e65722069732030000000000060448201526064016104db565b80156106ea576104ee82610d74565b600680546001600160a01b0319166001600160a01b0384161790555050565b610713838261064d565b507f0685266a580e960b24e8250625c91771b26ecea1913010a819fee0661a45dac8838383604051610747939291906110d2565b60405180910390a1505050565b600780546103f190611033565b6001600160a01b0383166107c35760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016104db565b6001600160a01b0382166108245760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016104db565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b03838116600090815260016020908152604080832093861683529290522054600019811461091257818110156109055760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016104db565b6109128484848403610761565b50505050565b6001600160a01b03831661097c5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016104db565b6001600160a01b0382166109de5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016104db565b6001600160a01b03831660009081526020819052604090205481811015610a565760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016104db565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290610a8d908490611083565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610ad991815260200190565b60405180910390a3610912565b6001600160a01b038216610b3c5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016104db565b8060026000828254610b4e9190611083565b90915550506001600160a01b03821660009081526020819052604081208054839290610b7b908490611083565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b038216610c255760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016104db565b6001600160a01b03821660009081526020819052604090205481811015610c995760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016104db565b6001600160a01b0383166000908152602081905260408120838303905560028054849290610cc8908490611106565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610879565b6005546006546040516001600160a01b03928316929091169082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35060068054600580546001600160a01b03199081166001600160a01b03841617909155169055565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000815180845260005b81811015610dec57602081850181015186830182015201610dd0565b81811115610dfe576000602083870101525b50601f01601f19169290920160200192915050565b602081526000610e266020830184610dc6565b9392505050565b80356001600160a01b0381168114610e4457600080fd5b919050565b60008060408385031215610e5c57600080fd5b610e6583610e2d565b946020939093013593505050565b600080600060608486031215610e8857600080fd5b610e9184610e2d565b9250610e9f60208501610e2d565b9150604084013590509250925092565b600060208284031215610ec157600080fd5b5035919050565b600060208284031215610eda57600080fd5b610e2682610e2d565b60008060408385031215610ef657600080fd5b610eff83610e2d565b915060208301358015158114610f1457600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b600080600060608486031215610f4a57600080fd5b610f5384610e2d565b9250602084013567ffffffffffffffff80821115610f7057600080fd5b818601915086601f830112610f8457600080fd5b813581811115610f9657610f96610f1f565b604051601f8201601f19908116603f01168101908382118183101715610fbe57610fbe610f1f565b81604052828152896020848701011115610fd757600080fd5b826020860160208301376000602084830101528096505050505050604084013590509250925092565b6000806040838503121561101357600080fd5b61101c83610e2d565b915061102a60208401610e2d565b90509250929050565b600181811c9082168061104757607f821691505b60208210810361106757634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600082198211156110965761109661106d565b500190565b6020808252601d908201527f536166654f776e61626c653a2063616c6c6572206e6f74206f776e6572000000604082015260600190565b6001600160a01b03841681526060602082018190526000906110f690830185610dc6565b9050826040830152949350505050565b6000828210156111185761111861106d565b50039056fea2646970667358221220800019f6c08dd9eedcbdd3bef63cbfcb062fe5332057f33c0a032a0d0df3ff4e64736f6c634300080f0033360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212205274e5baffdf6a719dbcec0ad8d0dfc485fc2cb3cde1d608ccc6c73c54b4550a64736f6c634300080f0033", + "devdoc": { + "kind": "dev", + "methods": { + "claimOwnership()": { + "details": "pending owner call this function to claim ownership" + }, + "create(string,string,string,string,uint256,uint256)": { + "details": "developer first create their game coin", + "params": { + "amountGameCoin": "how many coin first mint", + "amountP12": "how many P12 coin developer would stake", + "gameCoinIconUrl": "game coin icon's url", + "gameId": "the game's id", + "name": "new game coin's name", + "symbol": "game coin's symbol" + }, + "returns": { + "gameCoinAddress": "the address of the new game coin" + } + }, + "executeMintCoin(address,bytes32)": { + "details": "when time is up, anyone can call this function to make the mint executed", + "params": { + "gameCoinAddress": "address of the game coin", + "mintId": "a unique id to identify a mint, developer can get it after declare" + }, + "returns": { + "_0": "bool whether the operation success" + } + }, + "getMintDelay(address,uint256)": { + "details": "linear function to calculate the delay timedelayB is the minimum delay period, even someone mint zero token,there still be delayB period before someone can really mint zero tokendelayK is the parameter to take the ratio of new amount in to accountFor example, the initial supply of Game Coin is 100k. If developer wantto mint 100k, developer needs to real mint it after `delayK + delayB`. Ifdeveloper want to mint 200k, developer has to real mint it after `2DelayK +delayB`. ^ t + / | / | / 2k+b| / | / k+b| / |/ b| 0----p---2p---------> amount" + }, + "getMintFee(address,uint256)": { + "details": "calculate the MintFee in P12" + }, + "owner()": { + "details": "Returns the address of the current owner." + }, + "paused()": { + "details": "Returns true if the contract is paused, and false otherwise." + }, + "pendingOwner()": { + "details": "Return the address of the pending owner" + }, + "proxiableUUID()": { + "details": "Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the implementation. It is used to validate that the this implementation remains valid after an upgrade. IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier." + }, + "queueMintCoin(string,address,uint256)": { + "details": "if developer want to mint after create coin, developer must declare first", + "params": { + "amountGameCoin": "how many developer want to mint", + "gameCoinAddress": "game coin's address", + "gameId": "game's id", + "success": "whether the operation success" + } + }, + "register(string,address)": { + "details": "create binding between game and developer, only called by p12 backend", + "params": { + "developer": "developer address, who own this game", + "gameId": "game id" + } + }, + "renounceOwnership()": { + "details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner." + }, + "setDelayB(uint256)": { + "details": "set linear function's B parameter", + "params": { + "newDelayB": "new B parameter" + } + }, + "setDelayK(uint256)": { + "details": "set linear function's K parameter", + "params": { + "newDelayK": "new K parameter" + } + }, + "setDev(address)": { + "details": "set dev address", + "params": { + "newDev": "new dev address" + } + }, + "setGaugeController(address)": { + "details": "set gaugeController contract address", + "params": { + "newGaugeController": "new gaugeController address" + } + }, + "setP12Mine(address)": { + "details": "set p12mine contract address", + "params": { + "newP12Mine": "new p12mine address" + } + }, + "setP12Token(address)": { + "details": "set p12Token address reserved only during development", + "params": { + "newP12Token": "new p12Token address" + } + }, + "setUniswapFactory(address)": { + "details": "set uniswapFactory address reserved only during development", + "params": { + "newUniswapFactory": "new UniswapFactory address" + } + }, + "setUniswapRouter(address)": { + "details": "set uniswapRouter address reserved only during development", + "params": { + "newUniswapRouter": "new uniswapRouter address" + } + }, + "transferOwnership(address,bool)": { + "details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner. Note If direct is false, it will set an pending owner and the OwnerShipTransferring only happens when the pending owner claim the ownership" + }, + "upgradeTo(address)": { + "details": "Upgrade the implementation of the proxy to `newImplementation`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event." + }, + "upgradeToAndCall(address,bytes)": { + "details": "Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call encoded in `data`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event." + }, + "withdraw(address,address,uint256)": { + "params": { + "amountGameCoin": "how many user want to withdraw", + "gameCoinAddress": "gameCoin's address", + "userAddress": "user's address" + } + } + }, + "version": 1 + }, + "userdoc": { + "kind": "user", + "methods": { + "withdraw(address,address,uint256)": { + "notice": "called when user want to withdraw his game coin from custodian address" + } + }, + "version": 1 + }, + "storageLayout": { + "storage": [ + { + "astId": 8313, + "contract": "contracts/factory/P12CoinFactoryUpgradeable.sol:P12CoinFactoryUpgradeable", + "label": "p12", + "offset": 0, + "slot": "0", + "type": "t_address" + }, + { + "astId": 8317, + "contract": "contracts/factory/P12CoinFactoryUpgradeable.sol:P12CoinFactoryUpgradeable", + "label": "uniswapRouter", + "offset": 0, + "slot": "1", + "type": "t_contract(IUniswapV2Router02)7253" + }, + { + "astId": 8321, + "contract": "contracts/factory/P12CoinFactoryUpgradeable.sol:P12CoinFactoryUpgradeable", + "label": "uniswapFactory", + "offset": 0, + "slot": "2", + "type": "t_contract(IUniswapV2Factory)6615" + }, + { + "astId": 8324, + "contract": "contracts/factory/P12CoinFactoryUpgradeable.sol:P12CoinFactoryUpgradeable", + "label": "delayK", + "offset": 0, + "slot": "3", + "type": "t_uint256" + }, + { + "astId": 8326, + "contract": "contracts/factory/P12CoinFactoryUpgradeable.sol:P12CoinFactoryUpgradeable", + "label": "delayB", + "offset": 0, + "slot": "4", + "type": "t_uint256" + }, + { + "astId": 8329, + "contract": "contracts/factory/P12CoinFactoryUpgradeable.sol:P12CoinFactoryUpgradeable", + "label": "_initHash", + "offset": 0, + "slot": "5", + "type": "t_bytes32" + }, + { + "astId": 8331, + "contract": "contracts/factory/P12CoinFactoryUpgradeable.sol:P12CoinFactoryUpgradeable", + "label": "addLiquidityEffectiveTime", + "offset": 0, + "slot": "6", + "type": "t_uint256" + }, + { + "astId": 8335, + "contract": "contracts/factory/P12CoinFactoryUpgradeable.sol:P12CoinFactoryUpgradeable", + "label": "p12Mine", + "offset": 0, + "slot": "7", + "type": "t_contract(IP12MineUpgradeable)16164" + }, + { + "astId": 8337, + "contract": "contracts/factory/P12CoinFactoryUpgradeable.sol:P12CoinFactoryUpgradeable", + "label": "dev", + "offset": 0, + "slot": "8", + "type": "t_address" + }, + { + "astId": 8340, + "contract": "contracts/factory/P12CoinFactoryUpgradeable.sol:P12CoinFactoryUpgradeable", + "label": "gaugeController", + "offset": 0, + "slot": "9", + "type": "t_contract(IGaugeController)15932" + }, + { + "astId": 8344, + "contract": "contracts/factory/P12CoinFactoryUpgradeable.sol:P12CoinFactoryUpgradeable", + "label": "__gap", + "offset": 0, + "slot": "10", + "type": "t_array(t_uint256)40_storage" + }, + { + "astId": 8348, + "contract": "contracts/factory/P12CoinFactoryUpgradeable.sol:P12CoinFactoryUpgradeable", + "label": "allGames", + "offset": 0, + "slot": "50", + "type": "t_mapping(t_string_memory_ptr,t_address)" + }, + { + "astId": 8353, + "contract": "contracts/factory/P12CoinFactoryUpgradeable.sol:P12CoinFactoryUpgradeable", + "label": "allGameCoins", + "offset": 0, + "slot": "51", + "type": "t_mapping(t_contract(IP12GameCoin)9903,t_string_storage)" + }, + { + "astId": 8361, + "contract": "contracts/factory/P12CoinFactoryUpgradeable.sol:P12CoinFactoryUpgradeable", + "label": "coinMintRecords", + "offset": 0, + "slot": "52", + "type": "t_mapping(t_contract(IP12GameCoin)9903,t_mapping(t_bytes32,t_struct(MintCoinInfo)8373_storage))" + }, + { + "astId": 8366, + "contract": "contracts/factory/P12CoinFactoryUpgradeable.sol:P12CoinFactoryUpgradeable", + "label": "preMintIds", + "offset": 0, + "slot": "53", + "type": "t_mapping(t_contract(IP12GameCoin)9903,t_bytes32)" + }, + { + "astId": 395, + "contract": "contracts/factory/P12CoinFactoryUpgradeable.sol:P12CoinFactoryUpgradeable", + "label": "_initialized", + "offset": 0, + "slot": "54", + "type": "t_bool" + }, + { + "astId": 398, + "contract": "contracts/factory/P12CoinFactoryUpgradeable.sol:P12CoinFactoryUpgradeable", + "label": "_initializing", + "offset": 1, + "slot": "54", + "type": "t_bool" + }, + { + "astId": 377, + "contract": "contracts/factory/P12CoinFactoryUpgradeable.sol:P12CoinFactoryUpgradeable", + "label": "__gap", + "offset": 0, + "slot": "55", + "type": "t_array(t_uint256)50_storage" + }, + { + "astId": 597, + "contract": "contracts/factory/P12CoinFactoryUpgradeable.sol:P12CoinFactoryUpgradeable", + "label": "__gap", + "offset": 0, + "slot": "105", + "type": "t_array(t_uint256)50_storage" + }, + { + "astId": 1354, + "contract": "contracts/factory/P12CoinFactoryUpgradeable.sol:P12CoinFactoryUpgradeable", + "label": "__gap", + "offset": 0, + "slot": "155", + "type": "t_array(t_uint256)50_storage" + }, + { + "astId": 7440, + "contract": "contracts/factory/P12CoinFactoryUpgradeable.sol:P12CoinFactoryUpgradeable", + "label": "_owner", + "offset": 0, + "slot": "205", + "type": "t_address" + }, + { + "astId": 7442, + "contract": "contracts/factory/P12CoinFactoryUpgradeable.sol:P12CoinFactoryUpgradeable", + "label": "_pendingOwner", + "offset": 0, + "slot": "206", + "type": "t_address" + }, + { + "astId": 7625, + "contract": "contracts/factory/P12CoinFactoryUpgradeable.sol:P12CoinFactoryUpgradeable", + "label": "__gap", + "offset": 0, + "slot": "207", + "type": "t_array(t_uint256)48_storage" + }, + { + "astId": 723, + "contract": "contracts/factory/P12CoinFactoryUpgradeable.sol:P12CoinFactoryUpgradeable", + "label": "_status", + "offset": 0, + "slot": "255", + "type": "t_uint256" + }, + { + "astId": 767, + "contract": "contracts/factory/P12CoinFactoryUpgradeable.sol:P12CoinFactoryUpgradeable", + "label": "__gap", + "offset": 0, + "slot": "256", + "type": "t_array(t_uint256)49_storage" + }, + { + "astId": 619, + "contract": "contracts/factory/P12CoinFactoryUpgradeable.sol:P12CoinFactoryUpgradeable", + "label": "_paused", + "offset": 0, + "slot": "305", + "type": "t_bool" + }, + { + "astId": 708, + "contract": "contracts/factory/P12CoinFactoryUpgradeable.sol:P12CoinFactoryUpgradeable", + "label": "__gap", + "offset": 0, + "slot": "306", + "type": "t_array(t_uint256)49_storage" + } + ], + "types": { + "t_address": { + "encoding": "inplace", + "label": "address", + "numberOfBytes": "20" + }, + "t_array(t_uint256)40_storage": { + "base": "t_uint256", + "encoding": "inplace", + "label": "uint256[40]", + "numberOfBytes": "1280" + }, + "t_array(t_uint256)48_storage": { + "base": "t_uint256", + "encoding": "inplace", + "label": "uint256[48]", + "numberOfBytes": "1536" + }, + "t_array(t_uint256)49_storage": { + "base": "t_uint256", + "encoding": "inplace", + "label": "uint256[49]", + "numberOfBytes": "1568" + }, + "t_array(t_uint256)50_storage": { + "base": "t_uint256", + "encoding": "inplace", + "label": "uint256[50]", + "numberOfBytes": "1600" + }, + "t_bool": { + "encoding": "inplace", + "label": "bool", + "numberOfBytes": "1" + }, + "t_bytes32": { + "encoding": "inplace", + "label": "bytes32", + "numberOfBytes": "32" + }, + "t_contract(IGaugeController)15932": { + "encoding": "inplace", + "label": "contract IGaugeController", + "numberOfBytes": "20" + }, + "t_contract(IP12GameCoin)9903": { + "encoding": "inplace", + "label": "contract IP12GameCoin", + "numberOfBytes": "20" + }, + "t_contract(IP12MineUpgradeable)16164": { + "encoding": "inplace", + "label": "contract IP12MineUpgradeable", + "numberOfBytes": "20" + }, + "t_contract(IUniswapV2Factory)6615": { + "encoding": "inplace", + "label": "contract IUniswapV2Factory", + "numberOfBytes": "20" + }, + "t_contract(IUniswapV2Router02)7253": { + "encoding": "inplace", + "label": "contract IUniswapV2Router02", + "numberOfBytes": "20" + }, + "t_mapping(t_bytes32,t_struct(MintCoinInfo)8373_storage)": { + "encoding": "mapping", + "key": "t_bytes32", + "label": "mapping(bytes32 => struct P12CoinFactoryStorage.MintCoinInfo)", + "numberOfBytes": "32", + "value": "t_struct(MintCoinInfo)8373_storage" + }, + "t_mapping(t_contract(IP12GameCoin)9903,t_bytes32)": { + "encoding": "mapping", + "key": "t_contract(IP12GameCoin)9903", + "label": "mapping(contract IP12GameCoin => bytes32)", + "numberOfBytes": "32", + "value": "t_bytes32" + }, + "t_mapping(t_contract(IP12GameCoin)9903,t_mapping(t_bytes32,t_struct(MintCoinInfo)8373_storage))": { + "encoding": "mapping", + "key": "t_contract(IP12GameCoin)9903", + "label": "mapping(contract IP12GameCoin => mapping(bytes32 => struct P12CoinFactoryStorage.MintCoinInfo))", + "numberOfBytes": "32", + "value": "t_mapping(t_bytes32,t_struct(MintCoinInfo)8373_storage)" + }, + "t_mapping(t_contract(IP12GameCoin)9903,t_string_storage)": { + "encoding": "mapping", + "key": "t_contract(IP12GameCoin)9903", + "label": "mapping(contract IP12GameCoin => string)", + "numberOfBytes": "32", + "value": "t_string_storage" + }, + "t_mapping(t_string_memory_ptr,t_address)": { + "encoding": "mapping", + "key": "t_string_memory_ptr", + "label": "mapping(string => address)", + "numberOfBytes": "32", + "value": "t_address" + }, + "t_string_memory_ptr": { + "encoding": "bytes", + "label": "string", + "numberOfBytes": "32" + }, + "t_string_storage": { + "encoding": "bytes", + "label": "string", + "numberOfBytes": "32" + }, + "t_struct(MintCoinInfo)8373_storage": { + "encoding": "inplace", + "label": "struct P12CoinFactoryStorage.MintCoinInfo", + "members": [ + { + "astId": 8368, + "contract": "contracts/factory/P12CoinFactoryUpgradeable.sol:P12CoinFactoryUpgradeable", + "label": "amount", + "offset": 0, + "slot": "0", + "type": "t_uint256" + }, + { + "astId": 8370, + "contract": "contracts/factory/P12CoinFactoryUpgradeable.sol:P12CoinFactoryUpgradeable", + "label": "unlockTimestamp", + "offset": 0, + "slot": "1", + "type": "t_uint256" + }, + { + "astId": 8372, + "contract": "contracts/factory/P12CoinFactoryUpgradeable.sol:P12CoinFactoryUpgradeable", + "label": "executed", + "offset": 0, + "slot": "2", + "type": "t_bool" + } + ], + "numberOfBytes": "96" + }, + "t_uint256": { + "encoding": "inplace", + "label": "uint256", + "numberOfBytes": "32" + } + } + } +} \ No newline at end of file diff --git a/deployments/p12TestNet/P12CoinFactoryUpgradeable_Proxy.json b/deployments/p12TestNet/P12CoinFactoryUpgradeable_Proxy.json new file mode 100644 index 0000000..8c6ec68 --- /dev/null +++ b/deployments/p12TestNet/P12CoinFactoryUpgradeable_Proxy.json @@ -0,0 +1,139 @@ +{ + "address": "0x2695eF03c7ea6A1F55463ee4b47E4E3DBCBcd6d1", + "abi": [ + { + "inputs": [ + { + "internalType": "address", + "name": "_logic", + "type": "address" + }, + { + "internalType": "bytes", + "name": "_data", + "type": "bytes" + } + ], + "stateMutability": "payable", + "type": "constructor" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "previousAdmin", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "newAdmin", + "type": "address" + } + ], + "name": "AdminChanged", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "beacon", + "type": "address" + } + ], + "name": "BeaconUpgraded", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "implementation", + "type": "address" + } + ], + "name": "Upgraded", + "type": "event" + }, + { + "stateMutability": "payable", + "type": "fallback" + }, + { + "stateMutability": "payable", + "type": "receive" + } + ], + "transactionHash": "0x7de456c498c153d9ba359f955e0f17f127f98de141977ebc82671d64c03d93f5", + "receipt": { + "to": null, + "from": "0xfeD03676c595DD1F1c6716a446cD44B4C90AD290", + "contractAddress": "0x2695eF03c7ea6A1F55463ee4b47E4E3DBCBcd6d1", + "transactionIndex": 0, + "gasUsed": "450871", + "logsBloom": "0x00000000000000000000000000000000400010000000000000800000000400000000000000000000000004000000000000000100000000000000000000200000000000000000000000000000000002000001000000000000000000000002000000000008020000000000000000000800000002000010000000020000000000400000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000010000100000000000000000000000020000000000000000000000082000000000000000000000000000030000010000100000000000000000000000000000000008000000000000010002000", + "blockHash": "0xf5934f1d7dac8a28764e1f1d253433edb8358fc1a5d20e60517f908a154ab86f", + "transactionHash": "0x7de456c498c153d9ba359f955e0f17f127f98de141977ebc82671d64c03d93f5", + "logs": [ + { + "transactionIndex": 0, + "blockNumber": 1206188, + "transactionHash": "0x7de456c498c153d9ba359f955e0f17f127f98de141977ebc82671d64c03d93f5", + "address": "0x2695eF03c7ea6A1F55463ee4b47E4E3DBCBcd6d1", + "topics": [ + "0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b", + "0x0000000000000000000000002a0c13ccaeeae5325fa487139944ecc1f93c9487" + ], + "data": "0x", + "logIndex": 0, + "blockHash": "0xf5934f1d7dac8a28764e1f1d253433edb8358fc1a5d20e60517f908a154ab86f" + }, + { + "transactionIndex": 0, + "blockNumber": 1206188, + "transactionHash": "0x7de456c498c153d9ba359f955e0f17f127f98de141977ebc82671d64c03d93f5", + "address": "0xeAc1F044C4b9B7069eF9F3eC05AC60Df76Fe6Cd0", + "topics": [ + "0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925", + "0x0000000000000000000000002695ef03c7ea6a1f55463ee4b47e4e3dbcbcd6d1", + "0x00000000000000000000000071a3b75a9a774eb793a44a36af760ee2868912ac" + ], + "data": "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff", + "logIndex": 1, + "blockHash": "0xf5934f1d7dac8a28764e1f1d253433edb8358fc1a5d20e60517f908a154ab86f" + }, + { + "transactionIndex": 0, + "blockNumber": 1206188, + "transactionHash": "0x7de456c498c153d9ba359f955e0f17f127f98de141977ebc82671d64c03d93f5", + "address": "0x2695eF03c7ea6A1F55463ee4b47E4E3DBCBcd6d1", + "topics": [ + "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", + "0x0000000000000000000000000000000000000000000000000000000000000000", + "0x000000000000000000000000fed03676c595dd1f1c6716a446cd44b4c90ad290" + ], + "data": "0x", + "logIndex": 2, + "blockHash": "0xf5934f1d7dac8a28764e1f1d253433edb8358fc1a5d20e60517f908a154ab86f" + } + ], + "blockNumber": 1206188, + "cumulativeGasUsed": "450871", + "status": 1, + "byzantium": true + }, + "args": [ + "0x2A0c13CcaEeAe5325fa487139944ECC1f93c9487", + "0x8d7017d3000000000000000000000000eac1f044c4b9b7069ef9f3ec05ac60df76fe6cd00000000000000000000000008c2543578efed64343c63e9075ed70f1d255d1c600000000000000000000000071a3b75a9a774eb793a44a36af760ee2868912ac00000000000000000000000000000000000000000000000000000000000000642f22821dda185ca6a368bbdbda5c5e8522ce7b523c2bfe62fed3b8a423b0357e" + ], + "numDeployments": 1, + "bytecode": "0x6080604052604051610772380380610772833981016040819052610022916102f7565b61004d60017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd61040f565b60008051602061072b8339815191521461007757634e487b7160e01b600052600160045260246000fd5b6100838282600061008a565b5050610474565b610093836100f4565b6040516001600160a01b038416907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a26000825111806100d45750805b156100ef576100ed83836101b460201b6100291760201c565b505b505050565b610107816101e060201b6100551760201c565b61016e5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084015b60405180910390fd5b8061019360008051602061072b83398151915260001b6101e660201b61005b1760201c565b80546001600160a01b0319166001600160a01b039290921691909117905550565b60606101d9838360405180606001604052806027815260200161074b602791396101e9565b9392505050565b3b151590565b90565b6060833b6102485760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b6064820152608401610165565b600080856001600160a01b03168560405161026391906103c0565b600060405180830381855af49150503d806000811461029e576040519150601f19603f3d011682016040523d82523d6000602084013e6102a3565b606091505b5090925090506102b48282866102be565b9695505050505050565b606083156102cd5750816101d9565b8251156102dd5782518084602001fd5b8160405162461bcd60e51b815260040161016591906103dc565b60008060408385031215610309578182fd5b82516001600160a01b038116811461031f578283fd5b60208401519092506001600160401b038082111561033b578283fd5b818501915085601f83011261034e578283fd5b8151818111156103605761036061045e565b604051601f8201601f19908116603f011681019083821181831017156103885761038861045e565b816040528281528860208487010111156103a0578586fd5b6103b1836020830160208801610432565b80955050505050509250929050565b600082516103d2818460208701610432565b9190910192915050565b60006020825282518060208401526103fb816040850160208701610432565b601f01601f19169190910160400192915050565b60008282101561042d57634e487b7160e01b81526011600452602481fd5b500390565b60005b8381101561044d578181015183820152602001610435565b838111156100ed5750506000910152565b634e487b7160e01b600052604160045260246000fd5b6102a8806104836000396000f3fe60806040523661001357610011610017565b005b6100115b61002761002261005e565b610096565b565b606061004e838360405180606001604052806027815260200161024c602791396100ba565b9392505050565b3b151590565b90565b60006100917f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b3660008037600080366000845af43d6000803e8080156100b5573d6000f35b3d6000fd5b6060833b61011e5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084015b60405180910390fd5b600080856001600160a01b03168560405161013991906101cc565b600060405180830381855af49150503d8060008114610174576040519150601f19603f3d011682016040523d82523d6000602084013e610179565b606091505b5091509150610189828286610193565b9695505050505050565b606083156101a257508161004e565b8251156101b25782518084602001fd5b8160405162461bcd60e51b815260040161011591906101e8565b600082516101de81846020870161021b565b9190910192915050565b600060208252825180602084015261020781604085016020870161021b565b601f01601f19169190910160400192915050565b60005b8381101561023657818101518382015260200161021e565b83811115610245576000848401525b5050505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212209b8470f06e8a3960c912103fc2be177edaad69584ee3c7d2809ee737e79408e764736f6c63430008020033360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564", + "deployedBytecode": "0x60806040523661001357610011610017565b005b6100115b61002761002261005e565b610096565b565b606061004e838360405180606001604052806027815260200161024c602791396100ba565b9392505050565b3b151590565b90565b60006100917f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b3660008037600080366000845af43d6000803e8080156100b5573d6000f35b3d6000fd5b6060833b61011e5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084015b60405180910390fd5b600080856001600160a01b03168560405161013991906101cc565b600060405180830381855af49150503d8060008114610174576040519150601f19603f3d011682016040523d82523d6000602084013e610179565b606091505b5091509150610189828286610193565b9695505050505050565b606083156101a257508161004e565b8251156101b25782518084602001fd5b8160405162461bcd60e51b815260040161011591906101e8565b600082516101de81846020870161021b565b9190910192915050565b600060208252825180602084015261020781604085016020870161021b565b601f01601f19169190910160400192915050565b60005b8381101561023657818101518382015260200161021e565b83811115610245576000848401525b5050505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212209b8470f06e8a3960c912103fc2be177edaad69584ee3c7d2809ee737e79408e764736f6c63430008020033" +} \ No newline at end of file diff --git a/deployments/p12TestNet/P12MineUpgradeable.json b/deployments/p12TestNet/P12MineUpgradeable.json new file mode 100644 index 0000000..bb4698e --- /dev/null +++ b/deployments/p12TestNet/P12MineUpgradeable.json @@ -0,0 +1,1325 @@ +{ + "address": "0xCf7d5E1a92b0F9d6AA594fb0aB6890384FaD6aB1", + "abi": [ + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "previousAdmin", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "newAdmin", + "type": "address" + } + ], + "name": "AdminChanged", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "beacon", + "type": "address" + } + ], + "name": "BeaconUpgraded", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "implementation", + "type": "address" + } + ], + "name": "Upgraded", + "type": "event" + }, + { + "stateMutability": "payable", + "type": "fallback" + }, + { + "stateMutability": "payable", + "type": "receive" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "lpToken", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "poolAmount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "accP12PerShare", + "type": "uint256" + } + ], + "name": "Checkpoint", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "user", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "Claim", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "user", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "pid", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "userAmount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "poolAmount", + "type": "uint256" + } + ], + "name": "Deposit", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "executor", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "emergencyUnlockTime", + "type": "uint256" + } + ], + "name": "Emergency", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "user", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "pid", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "bytes32", + "name": "withdrawId", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "userAmount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "poolAmount", + "type": "uint256" + } + ], + "name": "ExecuteWithdraw", + "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": [ + { + "indexed": false, + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "Paused", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "user", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "pid", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "bytes32", + "name": "newWithdrawId", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "unlockTimestamp", + "type": "uint256" + } + ], + "name": "QueueWithdraw", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "oldDelayB", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "newDelayB", + "type": "uint256" + } + ], + "name": "SetDelayB", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "oldDelayK", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "newDelayK", + "type": "uint256" + } + ], + "name": "SetDelayK", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "contract IGaugeController", + "name": "oldGaugeController", + "type": "address" + }, + { + "indexed": false, + "internalType": "contract IGaugeController", + "name": "newGaugeController", + "type": "address" + } + ], + "name": "SetGaugeController", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "oldP12Factory", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "newP12Factory", + "type": "address" + } + ], + "name": "SetP12Factory", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "oldRate", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "newRate", + "type": "uint256" + } + ], + "name": "SetRate", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "Unpaused", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "lpToken", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "WithdrawLpTokenEmergency", + "type": "event" + }, + { + "inputs": [], + "name": "ONE", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "WEEK", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "lpToken", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "internalType": "address", + "name": "gameCoinCreator", + "type": "address" + } + ], + "name": "addLpTokenInfoForGameCreator", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "lpToken", + "type": "address" + } + ], + "name": "checkpoint", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "checkpointAll", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "lpToken", + "type": "address" + } + ], + "name": "claim", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "claimAll", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "claimOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "lpToken", + "type": "address" + } + ], + "name": "createPool", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "delayB", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "delayK", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "lpToken", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "deposit", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "emergency", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "emergencyUnlockTime", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "lpToken", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "id", + "type": "bytes32" + } + ], + "name": "executeWithdraw", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "gaugeController", + "outputs": [ + { + "internalType": "contract IGaugeController", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "lpToken", + "type": "address" + } + ], + "name": "getPid", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "lpToken", + "type": "address" + }, + { + "internalType": "address", + "name": "user", + "type": "address" + } + ], + "name": "getUserLpBalance", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "lpToken", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "getWithdrawUnlockTimestamp", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "p12Token_", + "type": "address" + }, + { + "internalType": "address", + "name": "p12CoinFactory_", + "type": "address" + }, + { + "internalType": "contract IGaugeController", + "name": "gaugeController_", + "type": "address" + }, + { + "internalType": "uint256", + "name": "delayK_", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "delayB_", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "rate_", + "type": "uint256" + } + ], + "name": "initialize", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "isEmergency", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "name": "lpTokenRegistry", + "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": "p12CoinFactory", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "p12RewardVault", + "outputs": [ + { + "internalType": "contract IP12RewardVault", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "p12Token", + "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": "pendingOwner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + }, + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "name": "periodTimestamp", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "name": "poolInfos", + "outputs": [ + { + "internalType": "address", + "name": "lpToken", + "type": "address" + }, + { + "internalType": "uint256", + "name": "accP12PerShare", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "period", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "poolLength", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "name": "preWithdrawIds", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "proxiableUUID", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "lpToken", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "queueWithdraw", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "rate", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "name": "realizedReward", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "renounceOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "newDelayB", + "type": "uint256" + } + ], + "name": "setDelayB", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "newDelayK", + "type": "uint256" + } + ], + "name": "setDelayK", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "contract IGaugeController", + "name": "newGaugeController", + "type": "address" + } + ], + "name": "setGaugeController", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newP12CoinFactory", + "type": "address" + } + ], + "name": "setP12CoinFactory", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "newRate", + "type": "uint256" + } + ], + "name": "setRate", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newOwner", + "type": "address" + }, + { + "internalType": "bool", + "name": "direct", + "type": "bool" + } + ], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "unpause", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newImplementation", + "type": "address" + } + ], + "name": "upgradeTo", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newImplementation", + "type": "address" + }, + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "upgradeToAndCall", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + }, + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "name": "userInfo", + "outputs": [ + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "rewardDebt", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "withdrawAllLpTokenEmergency", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "withdrawEmergency", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "name": "withdrawInfos", + "outputs": [ + { + "internalType": "address", + "name": "who", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "unlockTimestamp", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "executed", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "lpToken", + "type": "address" + } + ], + "name": "withdrawLpTokenEmergency", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_logic", + "type": "address" + }, + { + "internalType": "bytes", + "name": "_data", + "type": "bytes" + } + ], + "stateMutability": "payable", + "type": "constructor" + } + ], + "transactionHash": "0x37481b3a8a64749cee1dfcd6f19521865196279a71e49e812791c6b4bad975a1", + "receipt": { + "to": null, + "from": "0xfeD03676c595DD1F1c6716a446cD44B4C90AD290", + "contractAddress": "0xCf7d5E1a92b0F9d6AA594fb0aB6890384FaD6aB1", + "transactionIndex": 0, + "gasUsed": "1034054", + "logsBloom": "0x00000000000000020000000000000000400040000000000000800000000000000000000000000000000040000000000080000000400000000000000000000000000000000000000000000000000002400001000000000000000000000000000000000000020000000000000000000800000002000100000000000000000000500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000080000000020000000000000000000000000000000000000000010000000000020000000000100000000000000000000000000000002000000000000000010000000", + "blockHash": "0x6a4217ca226b2eaad757e78260a62f7736f9923787ed118e5550adb93d4ac32b", + "transactionHash": "0x37481b3a8a64749cee1dfcd6f19521865196279a71e49e812791c6b4bad975a1", + "logs": [ + { + "transactionIndex": 0, + "blockNumber": 1206199, + "transactionHash": "0x37481b3a8a64749cee1dfcd6f19521865196279a71e49e812791c6b4bad975a1", + "address": "0xCf7d5E1a92b0F9d6AA594fb0aB6890384FaD6aB1", + "topics": [ + "0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b", + "0x000000000000000000000000da10590765662de4295122341638c01160d759ff" + ], + "data": "0x", + "logIndex": 0, + "blockHash": "0x6a4217ca226b2eaad757e78260a62f7736f9923787ed118e5550adb93d4ac32b" + }, + { + "transactionIndex": 0, + "blockNumber": 1206199, + "transactionHash": "0x37481b3a8a64749cee1dfcd6f19521865196279a71e49e812791c6b4bad975a1", + "address": "0x3d9a233772b259561b5a481938CCbb5C14FB4D26", + "topics": [ + "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", + "0x0000000000000000000000000000000000000000000000000000000000000000", + "0x000000000000000000000000cf7d5e1a92b0f9d6aa594fb0ab6890384fad6ab1" + ], + "data": "0x", + "logIndex": 1, + "blockHash": "0x6a4217ca226b2eaad757e78260a62f7736f9923787ed118e5550adb93d4ac32b" + }, + { + "transactionIndex": 0, + "blockNumber": 1206199, + "transactionHash": "0x37481b3a8a64749cee1dfcd6f19521865196279a71e49e812791c6b4bad975a1", + "address": "0xCf7d5E1a92b0F9d6AA594fb0aB6890384FaD6aB1", + "topics": [ + "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", + "0x0000000000000000000000000000000000000000000000000000000000000000", + "0x000000000000000000000000fed03676c595dd1f1c6716a446cd44b4c90ad290" + ], + "data": "0x", + "logIndex": 2, + "blockHash": "0x6a4217ca226b2eaad757e78260a62f7736f9923787ed118e5550adb93d4ac32b" + } + ], + "blockNumber": 1206199, + "cumulativeGasUsed": "1034054", + "status": 1, + "byzantium": true + }, + "args": [ + "0xdA10590765662DE4295122341638C01160D759FF", + "0x728cdbca000000000000000000000000eac1f044c4b9b7069ef9f3ec05ac60df76fe6cd00000000000000000000000002695ef03c7ea6a1f55463ee4b47e4e3dbcbcd6d100000000000000000000000092ef99db92b04c34d55b1c1537166dbef130068e000000000000000000000000000000000000000000000000000000000000003c000000000000000000000000000000000000000000000000000000000000003c00000000000000000000000000000000000000000000000006f05b59d3b20000" + ], + "numDeployments": 1, + "bytecode": "0x6080604052604051610772380380610772833981016040819052610022916102f7565b61004d60017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd61040f565b60008051602061072b8339815191521461007757634e487b7160e01b600052600160045260246000fd5b6100838282600061008a565b5050610474565b610093836100f4565b6040516001600160a01b038416907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a26000825111806100d45750805b156100ef576100ed83836101b460201b6100291760201c565b505b505050565b610107816101e060201b6100551760201c565b61016e5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084015b60405180910390fd5b8061019360008051602061072b83398151915260001b6101e660201b61005b1760201c565b80546001600160a01b0319166001600160a01b039290921691909117905550565b60606101d9838360405180606001604052806027815260200161074b602791396101e9565b9392505050565b3b151590565b90565b6060833b6102485760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b6064820152608401610165565b600080856001600160a01b03168560405161026391906103c0565b600060405180830381855af49150503d806000811461029e576040519150601f19603f3d011682016040523d82523d6000602084013e6102a3565b606091505b5090925090506102b48282866102be565b9695505050505050565b606083156102cd5750816101d9565b8251156102dd5782518084602001fd5b8160405162461bcd60e51b815260040161016591906103dc565b60008060408385031215610309578182fd5b82516001600160a01b038116811461031f578283fd5b60208401519092506001600160401b038082111561033b578283fd5b818501915085601f83011261034e578283fd5b8151818111156103605761036061045e565b604051601f8201601f19908116603f011681019083821181831017156103885761038861045e565b816040528281528860208487010111156103a0578586fd5b6103b1836020830160208801610432565b80955050505050509250929050565b600082516103d2818460208701610432565b9190910192915050565b60006020825282518060208401526103fb816040850160208701610432565b601f01601f19169190910160400192915050565b60008282101561042d57634e487b7160e01b81526011600452602481fd5b500390565b60005b8381101561044d578181015183820152602001610435565b838111156100ed5750506000910152565b634e487b7160e01b600052604160045260246000fd5b6102a8806104836000396000f3fe60806040523661001357610011610017565b005b6100115b61002761002261005e565b610096565b565b606061004e838360405180606001604052806027815260200161024c602791396100ba565b9392505050565b3b151590565b90565b60006100917f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b3660008037600080366000845af43d6000803e8080156100b5573d6000f35b3d6000fd5b6060833b61011e5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084015b60405180910390fd5b600080856001600160a01b03168560405161013991906101cc565b600060405180830381855af49150503d8060008114610174576040519150601f19603f3d011682016040523d82523d6000602084013e610179565b606091505b5091509150610189828286610193565b9695505050505050565b606083156101a257508161004e565b8251156101b25782518084602001fd5b8160405162461bcd60e51b815260040161011591906101e8565b600082516101de81846020870161021b565b9190910192915050565b600060208252825180602084015261020781604085016020870161021b565b601f01601f19169190910160400192915050565b60005b8381101561023657818101518382015260200161021e565b83811115610245576000848401525b5050505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212209b8470f06e8a3960c912103fc2be177edaad69584ee3c7d2809ee737e79408e764736f6c63430008020033360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564", + "deployedBytecode": "0x60806040523661001357610011610017565b005b6100115b61002761002261005e565b610096565b565b606061004e838360405180606001604052806027815260200161024c602791396100ba565b9392505050565b3b151590565b90565b60006100917f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b3660008037600080366000845af43d6000803e8080156100b5573d6000f35b3d6000fd5b6060833b61011e5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084015b60405180910390fd5b600080856001600160a01b03168560405161013991906101cc565b600060405180830381855af49150503d8060008114610174576040519150601f19603f3d011682016040523d82523d6000602084013e610179565b606091505b5091509150610189828286610193565b9695505050505050565b606083156101a257508161004e565b8251156101b25782518084602001fd5b8160405162461bcd60e51b815260040161011591906101e8565b600082516101de81846020870161021b565b9190910192915050565b600060208252825180602084015261020781604085016020870161021b565b601f01601f19169190910160400192915050565b60005b8381101561023657818101518382015260200161021e565b83811115610245576000848401525b5050505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212209b8470f06e8a3960c912103fc2be177edaad69584ee3c7d2809ee737e79408e764736f6c63430008020033", + "execute": { + "methodName": "initialize", + "args": [ + "0xeAc1F044C4b9B7069eF9F3eC05AC60Df76Fe6Cd0", + "0x2695eF03c7ea6A1F55463ee4b47E4E3DBCBcd6d1", + "0x92Ef99Db92b04C34D55b1C1537166dbeF130068e", + 60, + 60, + { + "type": "BigNumber", + "hex": "0x06f05b59d3b20000" + } + ] + }, + "implementation": "0xdA10590765662DE4295122341638C01160D759FF" +} \ No newline at end of file diff --git a/deployments/p12TestNet/P12MineUpgradeable_Implementation.json b/deployments/p12TestNet/P12MineUpgradeable_Implementation.json new file mode 100644 index 0000000..84f7ecb --- /dev/null +++ b/deployments/p12TestNet/P12MineUpgradeable_Implementation.json @@ -0,0 +1,1910 @@ +{ + "address": "0xdA10590765662DE4295122341638C01160D759FF", + "abi": [ + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "previousAdmin", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "newAdmin", + "type": "address" + } + ], + "name": "AdminChanged", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "beacon", + "type": "address" + } + ], + "name": "BeaconUpgraded", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "lpToken", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "poolAmount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "accP12PerShare", + "type": "uint256" + } + ], + "name": "Checkpoint", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "user", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "Claim", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "user", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "pid", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "userAmount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "poolAmount", + "type": "uint256" + } + ], + "name": "Deposit", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "executor", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "emergencyUnlockTime", + "type": "uint256" + } + ], + "name": "Emergency", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "user", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "pid", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "bytes32", + "name": "withdrawId", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "userAmount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "poolAmount", + "type": "uint256" + } + ], + "name": "ExecuteWithdraw", + "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": [ + { + "indexed": false, + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "Paused", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "user", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "pid", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "bytes32", + "name": "newWithdrawId", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "unlockTimestamp", + "type": "uint256" + } + ], + "name": "QueueWithdraw", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "oldDelayB", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "newDelayB", + "type": "uint256" + } + ], + "name": "SetDelayB", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "oldDelayK", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "newDelayK", + "type": "uint256" + } + ], + "name": "SetDelayK", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "contract IGaugeController", + "name": "oldGaugeController", + "type": "address" + }, + { + "indexed": false, + "internalType": "contract IGaugeController", + "name": "newGaugeController", + "type": "address" + } + ], + "name": "SetGaugeController", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "oldP12Factory", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "newP12Factory", + "type": "address" + } + ], + "name": "SetP12Factory", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "oldRate", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "newRate", + "type": "uint256" + } + ], + "name": "SetRate", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "Unpaused", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "implementation", + "type": "address" + } + ], + "name": "Upgraded", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "lpToken", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "WithdrawLpTokenEmergency", + "type": "event" + }, + { + "inputs": [], + "name": "ONE", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "WEEK", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "lpToken", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "internalType": "address", + "name": "gameCoinCreator", + "type": "address" + } + ], + "name": "addLpTokenInfoForGameCreator", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "lpToken", + "type": "address" + } + ], + "name": "checkpoint", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "checkpointAll", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "lpToken", + "type": "address" + } + ], + "name": "claim", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "claimAll", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "claimOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "lpToken", + "type": "address" + } + ], + "name": "createPool", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "delayB", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "delayK", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "lpToken", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "deposit", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "emergency", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "emergencyUnlockTime", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "lpToken", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "id", + "type": "bytes32" + } + ], + "name": "executeWithdraw", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "gaugeController", + "outputs": [ + { + "internalType": "contract IGaugeController", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "lpToken", + "type": "address" + } + ], + "name": "getPid", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "lpToken", + "type": "address" + }, + { + "internalType": "address", + "name": "user", + "type": "address" + } + ], + "name": "getUserLpBalance", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "lpToken", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "getWithdrawUnlockTimestamp", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "p12Token_", + "type": "address" + }, + { + "internalType": "address", + "name": "p12CoinFactory_", + "type": "address" + }, + { + "internalType": "contract IGaugeController", + "name": "gaugeController_", + "type": "address" + }, + { + "internalType": "uint256", + "name": "delayK_", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "delayB_", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "rate_", + "type": "uint256" + } + ], + "name": "initialize", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "isEmergency", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "name": "lpTokenRegistry", + "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": "p12CoinFactory", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "p12RewardVault", + "outputs": [ + { + "internalType": "contract IP12RewardVault", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "p12Token", + "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": "pendingOwner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + }, + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "name": "periodTimestamp", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "name": "poolInfos", + "outputs": [ + { + "internalType": "address", + "name": "lpToken", + "type": "address" + }, + { + "internalType": "uint256", + "name": "accP12PerShare", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "period", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "poolLength", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "name": "preWithdrawIds", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "proxiableUUID", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "lpToken", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "queueWithdraw", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "rate", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "name": "realizedReward", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "renounceOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "newDelayB", + "type": "uint256" + } + ], + "name": "setDelayB", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "newDelayK", + "type": "uint256" + } + ], + "name": "setDelayK", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "contract IGaugeController", + "name": "newGaugeController", + "type": "address" + } + ], + "name": "setGaugeController", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newP12CoinFactory", + "type": "address" + } + ], + "name": "setP12CoinFactory", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "newRate", + "type": "uint256" + } + ], + "name": "setRate", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newOwner", + "type": "address" + }, + { + "internalType": "bool", + "name": "direct", + "type": "bool" + } + ], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "unpause", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newImplementation", + "type": "address" + } + ], + "name": "upgradeTo", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newImplementation", + "type": "address" + }, + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "upgradeToAndCall", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + }, + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "name": "userInfo", + "outputs": [ + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "rewardDebt", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "withdrawAllLpTokenEmergency", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "withdrawEmergency", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "name": "withdrawInfos", + "outputs": [ + { + "internalType": "address", + "name": "who", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "unlockTimestamp", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "executed", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "lpToken", + "type": "address" + } + ], + "name": "withdrawLpTokenEmergency", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + } + ], + "transactionHash": "0x49fd49c1c21b0934eeaec25c8cfd587e3f39adcdc513046e2d7c7090ce448a3f", + "receipt": { + "to": null, + "from": "0xfeD03676c595DD1F1c6716a446cD44B4C90AD290", + "contractAddress": "0xdA10590765662DE4295122341638C01160D759FF", + "transactionIndex": 0, + "gasUsed": "4227722", + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "blockHash": "0xbe7ac9db0b42d1457d265b8dc57a61050cc7d4ddaa54dd9826ddebdc4bf92b66", + "transactionHash": "0x49fd49c1c21b0934eeaec25c8cfd587e3f39adcdc513046e2d7c7090ce448a3f", + "logs": [], + "blockNumber": 1206198, + "cumulativeGasUsed": "4227722", + "status": 1, + "byzantium": true + }, + "args": [], + "numDeployments": 1, + "solcInputHash": "1f7f80fb95b6efcc6f464d7df403eaaa", + "metadata": "{\"compiler\":{\"version\":\"0.8.15+commit.e14f2714\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"previousAdmin\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newAdmin\",\"type\":\"address\"}],\"name\":\"AdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"beacon\",\"type\":\"address\"}],\"name\":\"BeaconUpgraded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"lpToken\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"poolAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"accP12PerShare\",\"type\":\"uint256\"}],\"name\":\"Checkpoint\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Claim\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"pid\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"userAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"poolAmount\",\"type\":\"uint256\"}],\"name\":\"Deposit\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"executor\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"emergencyUnlockTime\",\"type\":\"uint256\"}],\"name\":\"Emergency\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"pid\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"withdrawId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"userAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"poolAmount\",\"type\":\"uint256\"}],\"name\":\"ExecuteWithdraw\",\"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\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Paused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"pid\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"newWithdrawId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"unlockTimestamp\",\"type\":\"uint256\"}],\"name\":\"QueueWithdraw\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"oldDelayB\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newDelayB\",\"type\":\"uint256\"}],\"name\":\"SetDelayB\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"oldDelayK\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newDelayK\",\"type\":\"uint256\"}],\"name\":\"SetDelayK\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"contract IGaugeController\",\"name\":\"oldGaugeController\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"contract IGaugeController\",\"name\":\"newGaugeController\",\"type\":\"address\"}],\"name\":\"SetGaugeController\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"oldP12Factory\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newP12Factory\",\"type\":\"address\"}],\"name\":\"SetP12Factory\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"oldRate\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newRate\",\"type\":\"uint256\"}],\"name\":\"SetRate\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Unpaused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"Upgraded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"lpToken\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"WithdrawLpTokenEmergency\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"ONE\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"WEEK\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"lpToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"gameCoinCreator\",\"type\":\"address\"}],\"name\":\"addLpTokenInfoForGameCreator\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"lpToken\",\"type\":\"address\"}],\"name\":\"checkpoint\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"checkpointAll\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"lpToken\",\"type\":\"address\"}],\"name\":\"claim\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"claimAll\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"claimOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"lpToken\",\"type\":\"address\"}],\"name\":\"createPool\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"delayB\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"delayK\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"lpToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"deposit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"emergency\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"emergencyUnlockTime\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"lpToken\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"}],\"name\":\"executeWithdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"gaugeController\",\"outputs\":[{\"internalType\":\"contract IGaugeController\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"lpToken\",\"type\":\"address\"}],\"name\":\"getPid\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"lpToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"getUserLpBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"lpToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"getWithdrawUnlockTimestamp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"p12Token_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"p12CoinFactory_\",\"type\":\"address\"},{\"internalType\":\"contract IGaugeController\",\"name\":\"gaugeController_\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"delayK_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"delayB_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"rate_\",\"type\":\"uint256\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"isEmergency\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"lpTokenRegistry\",\"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\":\"p12CoinFactory\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"p12RewardVault\",\"outputs\":[{\"internalType\":\"contract IP12RewardVault\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"p12Token\",\"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\":\"pendingOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"periodTimestamp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"poolInfos\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"lpToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"accP12PerShare\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"period\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"poolLength\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"preWithdrawIds\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"proxiableUUID\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"lpToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"queueWithdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"rate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"realizedReward\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"newDelayB\",\"type\":\"uint256\"}],\"name\":\"setDelayB\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"newDelayK\",\"type\":\"uint256\"}],\"name\":\"setDelayK\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract IGaugeController\",\"name\":\"newGaugeController\",\"type\":\"address\"}],\"name\":\"setGaugeController\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newP12CoinFactory\",\"type\":\"address\"}],\"name\":\"setP12CoinFactory\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"newRate\",\"type\":\"uint256\"}],\"name\":\"setRate\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"direct\",\"type\":\"bool\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"unpause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"}],\"name\":\"upgradeTo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"upgradeToAndCall\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"userInfo\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"rewardDebt\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"withdrawAllLpTokenEmergency\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"withdrawEmergency\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"withdrawInfos\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"who\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"unlockTimestamp\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"executed\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"lpToken\",\"type\":\"address\"}],\"name\":\"withdrawLpTokenEmergency\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"addLpTokenInfoForGameCreator(address,uint256,address)\":{\"params\":{\"gameCoinCreator\":\"user of game coin creator\",\"lpToken\":\"Address of lpToken\"}},\"checkpoint(address)\":{\"params\":{\"lpToken\":\"Address of lpToken\"}},\"claim(address)\":{\"params\":{\"lpToken\":\"Address of lpToken\"}},\"claimOwnership()\":{\"details\":\"pending owner call this function to claim ownership\"},\"createPool(address)\":{\"params\":{\"lpToken\":\"Address of lpToken\"}},\"deposit(address,uint256)\":{\"params\":{\"amount\":\"Number of lpToken\",\"lpToken\":\"Address of lpToken\"}},\"executeWithdraw(address,bytes32)\":{\"params\":{\"id\":\"Withdraw id \",\"lpToken\":\"Address of lpToken\"}},\"getPid(address)\":{\"params\":{\"lpToken\":\"Address of lpToken\"}},\"getUserLpBalance(address,address)\":{\"params\":{\"lpToken\":\"Address of lpToken\",\"user\":\"LpToken holder\"},\"returns\":{\"_0\":\"Get lpToken balance \"}},\"getWithdrawUnlockTimestamp(address,uint256)\":{\"params\":{\"amount\":\"Number of lpToken\",\"lpToken\":\"Address of lpToken\"}},\"initialize(address,address,address,uint256,uint256,uint256)\":{\"params\":{\"delayB_\":\"delayB_ is a coefficient\",\"delayK_\":\"delayK_ is a coefficient\",\"gaugeController_\":\"address of gaugeController\",\"p12CoinFactory_\":\"Address of p12CoinFactory\",\"p12Token_\":\"Address of p12Token\"}},\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"paused()\":{\"details\":\"Returns true if the contract is paused, and false otherwise.\"},\"pendingOwner()\":{\"details\":\"Return the address of the pending owner\"},\"proxiableUUID()\":{\"details\":\"Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the implementation. It is used to validate that the this implementation remains valid after an upgrade. IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\"},\"queueWithdraw(address,uint256)\":{\"params\":{\"amount\":\"Number of lpToken\",\"lpToken\":\"Address of lpToken\"}},\"renounceOwnership()\":{\"details\":\"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.\"},\"setDelayB(uint256)\":{\"params\":{\"newDelayB\":\"Is a coefficient\"},\"returns\":{\"_0\":\"Get bool result \"}},\"setDelayK(uint256)\":{\"params\":{\"newDelayK\":\"Is a coefficient\"},\"returns\":{\"_0\":\"Get bool result \"}},\"setGaugeController(address)\":{\"params\":{\"newGaugeController\":\"address of gaugeController\"}},\"setP12CoinFactory(address)\":{\"params\":{\"newP12CoinFactory\":\"address of p12CoinFactory\"}},\"setRate(uint256)\":{\"params\":{\"newRate\":\"is p12 token inflation rate \"}},\"transferOwnership(address,bool)\":{\"details\":\"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner. Note If direct is false, it will set an pending owner and the OwnerShipTransferring only happens when the pending owner claim the ownership\"},\"upgradeTo(address)\":{\"details\":\"Upgrade the implementation of the proxy to `newImplementation`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.\"},\"upgradeToAndCall(address,bytes)\":{\"details\":\"Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call encoded in `data`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.\"},\"withdrawLpTokenEmergency(address)\":{\"params\":{\"lpToken\":\"address of lpToken\"}}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"addLpTokenInfoForGameCreator(address,uint256,address)\":{\"notice\":\"This method is only used when creating game coin in p12CoinFactory\"},\"checkpoint(address)\":{\"notice\":\"update checkpoint for pool\"},\"checkpointAll()\":{\"notice\":\"update checkpoint for all pool\"},\"claim(address)\":{\"notice\":\"Get pending rewards\"},\"claimAll()\":{\"notice\":\"Get all pending rewards\"},\"createPool(address)\":{\"notice\":\"Create a new pool\"},\"deposit(address,uint256)\":{\"notice\":\"Deposit lpToken\"},\"emergency()\":{\"notice\":\"set the isEmergency to true\"},\"executeWithdraw(address,bytes32)\":{\"notice\":\"Withdraw lpToken\"},\"getPid(address)\":{\"notice\":\"Get pool id\"},\"getUserLpBalance(address,address)\":{\"notice\":\"Get user lpToken balance\"},\"getWithdrawUnlockTimestamp(address,uint256)\":{\"notice\":\"get withdraw unlockTimestamp\"},\"initialize(address,address,address,uint256,uint256,uint256)\":{\"notice\":\"Contract initialization\"},\"poolLength()\":{\"notice\":\"Get pool len\"},\"queueWithdraw(address,uint256)\":{\"notice\":\"Withdraw lpToken delay\"},\"setDelayB(uint256)\":{\"notice\":\"Set delayB value \"},\"setDelayK(uint256)\":{\"notice\":\"Set delayK value \"},\"setGaugeController(address)\":{\"notice\":\"set new gaugeController\"},\"setP12CoinFactory(address)\":{\"notice\":\"set new p12CoinFactory\"},\"setRate(uint256)\":{\"notice\":\"set new rate\"},\"withdrawAllLpTokenEmergency()\":{\"notice\":\"withdraw lpToken Emergency\"},\"withdrawEmergency()\":{\"notice\":\"withdraw token Emergency\"},\"withdrawLpTokenEmergency(address)\":{\"notice\":\"withdraw all lpToken Emergency\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/staking/P12MineUpgradeable.sol\":\"P12MineUpgradeable\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts-upgradeable/interfaces/draft-IERC1822Upgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (interfaces/draft-IERC1822.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\\n * proxy whose upgrades are fully controlled by the current implementation.\\n */\\ninterface IERC1822ProxiableUpgradeable {\\n /**\\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\\n * address.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy.\\n */\\n function proxiableUUID() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x77c89f893e403efc6929ba842b7ccf6534d4ffe03afe31670b4a528c0ad78c0f\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/ERC1967/ERC1967UpgradeUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (proxy/ERC1967/ERC1967Upgrade.sol)\\n\\npragma solidity ^0.8.2;\\n\\nimport \\\"../beacon/IBeaconUpgradeable.sol\\\";\\nimport \\\"../../interfaces/draft-IERC1822Upgradeable.sol\\\";\\nimport \\\"../../utils/AddressUpgradeable.sol\\\";\\nimport \\\"../../utils/StorageSlotUpgradeable.sol\\\";\\nimport \\\"../utils/Initializable.sol\\\";\\n\\n/**\\n * @dev This abstract contract provides getters and event emitting update functions for\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.\\n *\\n * _Available since v4.1._\\n *\\n * @custom:oz-upgrades-unsafe-allow delegatecall\\n */\\nabstract contract ERC1967UpgradeUpgradeable is Initializable {\\n function __ERC1967Upgrade_init() internal onlyInitializing {\\n }\\n\\n function __ERC1967Upgrade_init_unchained() internal onlyInitializing {\\n }\\n // This is the keccak-256 hash of \\\"eip1967.proxy.rollback\\\" subtracted by 1\\n bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143;\\n\\n /**\\n * @dev Storage slot with the address of the current implementation.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.implementation\\\" subtracted by 1, and is\\n * validated in the constructor.\\n */\\n bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n\\n /**\\n * @dev Emitted when the implementation is upgraded.\\n */\\n event Upgraded(address indexed implementation);\\n\\n /**\\n * @dev Returns the current implementation address.\\n */\\n function _getImplementation() internal view returns (address) {\\n return StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 implementation slot.\\n */\\n function _setImplementation(address newImplementation) private {\\n require(AddressUpgradeable.isContract(newImplementation), \\\"ERC1967: new implementation is not a contract\\\");\\n StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n }\\n\\n /**\\n * @dev Perform implementation upgrade\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeTo(address newImplementation) internal {\\n _setImplementation(newImplementation);\\n emit Upgraded(newImplementation);\\n }\\n\\n /**\\n * @dev Perform implementation upgrade with additional setup call.\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeToAndCall(\\n address newImplementation,\\n bytes memory data,\\n bool forceCall\\n ) internal {\\n _upgradeTo(newImplementation);\\n if (data.length > 0 || forceCall) {\\n _functionDelegateCall(newImplementation, data);\\n }\\n }\\n\\n /**\\n * @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call.\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeToAndCallUUPS(\\n address newImplementation,\\n bytes memory data,\\n bool forceCall\\n ) internal {\\n // Upgrades from old implementations will perform a rollback test. This test requires the new\\n // implementation to upgrade back to the old, non-ERC1822 compliant, implementation. Removing\\n // this special case will break upgrade paths from old UUPS implementation to new ones.\\n if (StorageSlotUpgradeable.getBooleanSlot(_ROLLBACK_SLOT).value) {\\n _setImplementation(newImplementation);\\n } else {\\n try IERC1822ProxiableUpgradeable(newImplementation).proxiableUUID() returns (bytes32 slot) {\\n require(slot == _IMPLEMENTATION_SLOT, \\\"ERC1967Upgrade: unsupported proxiableUUID\\\");\\n } catch {\\n revert(\\\"ERC1967Upgrade: new implementation is not UUPS\\\");\\n }\\n _upgradeToAndCall(newImplementation, data, forceCall);\\n }\\n }\\n\\n /**\\n * @dev Storage slot with the admin of the contract.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.admin\\\" subtracted by 1, and is\\n * validated in the constructor.\\n */\\n bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\\n\\n /**\\n * @dev Emitted when the admin account has changed.\\n */\\n event AdminChanged(address previousAdmin, address newAdmin);\\n\\n /**\\n * @dev Returns the current admin.\\n */\\n function _getAdmin() internal view returns (address) {\\n return StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 admin slot.\\n */\\n function _setAdmin(address newAdmin) private {\\n require(newAdmin != address(0), \\\"ERC1967: new admin is the zero address\\\");\\n StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value = newAdmin;\\n }\\n\\n /**\\n * @dev Changes the admin of the proxy.\\n *\\n * Emits an {AdminChanged} event.\\n */\\n function _changeAdmin(address newAdmin) internal {\\n emit AdminChanged(_getAdmin(), newAdmin);\\n _setAdmin(newAdmin);\\n }\\n\\n /**\\n * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.\\n * This is bytes32(uint256(keccak256('eip1967.proxy.beacon')) - 1)) and is validated in the constructor.\\n */\\n bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\\n\\n /**\\n * @dev Emitted when the beacon is upgraded.\\n */\\n event BeaconUpgraded(address indexed beacon);\\n\\n /**\\n * @dev Returns the current beacon.\\n */\\n function _getBeacon() internal view returns (address) {\\n return StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new beacon in the EIP1967 beacon slot.\\n */\\n function _setBeacon(address newBeacon) private {\\n require(AddressUpgradeable.isContract(newBeacon), \\\"ERC1967: new beacon is not a contract\\\");\\n require(\\n AddressUpgradeable.isContract(IBeaconUpgradeable(newBeacon).implementation()),\\n \\\"ERC1967: beacon implementation is not a contract\\\"\\n );\\n StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value = newBeacon;\\n }\\n\\n /**\\n * @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does\\n * not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that).\\n *\\n * Emits a {BeaconUpgraded} event.\\n */\\n function _upgradeBeaconToAndCall(\\n address newBeacon,\\n bytes memory data,\\n bool forceCall\\n ) internal {\\n _setBeacon(newBeacon);\\n emit BeaconUpgraded(newBeacon);\\n if (data.length > 0 || forceCall) {\\n _functionDelegateCall(IBeaconUpgradeable(newBeacon).implementation(), data);\\n }\\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) private returns (bytes memory) {\\n require(AddressUpgradeable.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 AddressUpgradeable.verifyCallResult(success, returndata, \\\"Address: low-level delegate call failed\\\");\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0x315887e846f1e5f8d8fa535a229d318bb9290aaa69485117f1ee8a9a6b3be823\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/beacon/IBeaconUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev This is the interface that {BeaconProxy} expects of its beacon.\\n */\\ninterface IBeaconUpgradeable {\\n /**\\n * @dev Must return an address that can be used as a delegate call target.\\n *\\n * {BeaconProxy} will check that this address is a contract.\\n */\\n function implementation() external view returns (address);\\n}\\n\",\"keccak256\":\"0x24b86ac8c005b8c654fbf6ac34a5a4f61580d7273541e83e013e89d66fbf0908\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (proxy/utils/Initializable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/AddressUpgradeable.sol\\\";\\n\\n/**\\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\\n *\\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\\n *\\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\\n *\\n * [CAUTION]\\n * ====\\n * Avoid leaving a contract uninitialized.\\n *\\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\\n * contract, which may impact the proxy. To initialize the implementation contract, you can either invoke the\\n * initializer manually, or you can include a constructor to automatically mark it as initialized when it is deployed:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```\\n * /// @custom:oz-upgrades-unsafe-allow constructor\\n * constructor() initializer {}\\n * ```\\n * ====\\n */\\nabstract contract Initializable {\\n /**\\n * @dev Indicates that the contract has been initialized.\\n */\\n bool private _initialized;\\n\\n /**\\n * @dev Indicates that the contract is in the process of being initialized.\\n */\\n bool private _initializing;\\n\\n /**\\n * @dev Modifier to protect an initializer function from being invoked twice.\\n */\\n modifier initializer() {\\n // If the contract is initializing we ignore whether _initialized is set in order to support multiple\\n // inheritance patterns, but we only do this in the context of a constructor, because in other contexts the\\n // contract may have been reentered.\\n require(_initializing ? _isConstructor() : !_initialized, \\\"Initializable: contract is already initialized\\\");\\n\\n bool isTopLevelCall = !_initializing;\\n if (isTopLevelCall) {\\n _initializing = true;\\n _initialized = true;\\n }\\n\\n _;\\n\\n if (isTopLevelCall) {\\n _initializing = false;\\n }\\n }\\n\\n /**\\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\\n * {initializer} modifier, directly or indirectly.\\n */\\n modifier onlyInitializing() {\\n require(_initializing, \\\"Initializable: contract is not initializing\\\");\\n _;\\n }\\n\\n function _isConstructor() private view returns (bool) {\\n return !AddressUpgradeable.isContract(address(this));\\n }\\n}\\n\",\"keccak256\":\"0x372b0bc04e3b4c074559bbbfb1317afddb56de5504158ca25a7f9cd403980445\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (proxy/utils/UUPSUpgradeable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../interfaces/draft-IERC1822Upgradeable.sol\\\";\\nimport \\\"../ERC1967/ERC1967UpgradeUpgradeable.sol\\\";\\nimport \\\"./Initializable.sol\\\";\\n\\n/**\\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\\n *\\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\\n * `UUPSUpgradeable` with a custom implementation of upgrades.\\n *\\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\\n *\\n * _Available since v4.1._\\n */\\nabstract contract UUPSUpgradeable is Initializable, IERC1822ProxiableUpgradeable, ERC1967UpgradeUpgradeable {\\n function __UUPSUpgradeable_init() internal onlyInitializing {\\n }\\n\\n function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\\n }\\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment\\n address private immutable __self = address(this);\\n\\n /**\\n * @dev Check that the execution is being performed through a delegatecall call and that the execution context is\\n * a proxy contract with an implementation (as defined in ERC1967) pointing to self. This should only be the case\\n * for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a\\n * function through ERC1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\\n * fail.\\n */\\n modifier onlyProxy() {\\n require(address(this) != __self, \\\"Function must be called through delegatecall\\\");\\n require(_getImplementation() == __self, \\\"Function must be called through active proxy\\\");\\n _;\\n }\\n\\n /**\\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\\n * callable on the implementing contract but not through proxies.\\n */\\n modifier notDelegated() {\\n require(address(this) == __self, \\\"UUPSUpgradeable: must not be called through delegatecall\\\");\\n _;\\n }\\n\\n /**\\n * @dev Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the\\n * implementation. It is used to validate that the this implementation remains valid after an upgrade.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\\n */\\n function proxiableUUID() external view virtual override notDelegated returns (bytes32) {\\n return _IMPLEMENTATION_SLOT;\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy to `newImplementation`.\\n *\\n * Calls {_authorizeUpgrade}.\\n *\\n * Emits an {Upgraded} event.\\n */\\n function upgradeTo(address newImplementation) external virtual onlyProxy {\\n _authorizeUpgrade(newImplementation);\\n _upgradeToAndCallUUPS(newImplementation, new bytes(0), false);\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call\\n * encoded in `data`.\\n *\\n * Calls {_authorizeUpgrade}.\\n *\\n * Emits an {Upgraded} event.\\n */\\n function upgradeToAndCall(address newImplementation, bytes memory data) external payable virtual onlyProxy {\\n _authorizeUpgrade(newImplementation);\\n _upgradeToAndCallUUPS(newImplementation, data, true);\\n }\\n\\n /**\\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\\n * {upgradeTo} and {upgradeToAndCall}.\\n *\\n * Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}.\\n *\\n * ```solidity\\n * function _authorizeUpgrade(address) internal override onlyOwner {}\\n * ```\\n */\\n function _authorizeUpgrade(address newImplementation) internal virtual;\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0x6e36e9b4b71de699c2f3f0d4e4d1aa0b35da99a26e8d5b91ef09ba234b4ef270\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../utils/ContextUpgradeable.sol\\\";\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module which allows children to implement an emergency stop\\n * mechanism that can be triggered by an authorized account.\\n *\\n * This module is used through inheritance. It will make available the\\n * modifiers `whenNotPaused` and `whenPaused`, which can be applied to\\n * the functions of your contract. Note that they will not be pausable by\\n * simply including this module, only once the modifiers are put in place.\\n */\\nabstract contract PausableUpgradeable is Initializable, ContextUpgradeable {\\n /**\\n * @dev Emitted when the pause is triggered by `account`.\\n */\\n event Paused(address account);\\n\\n /**\\n * @dev Emitted when the pause is lifted by `account`.\\n */\\n event Unpaused(address account);\\n\\n bool private _paused;\\n\\n /**\\n * @dev Initializes the contract in unpaused state.\\n */\\n function __Pausable_init() internal onlyInitializing {\\n __Pausable_init_unchained();\\n }\\n\\n function __Pausable_init_unchained() internal onlyInitializing {\\n _paused = false;\\n }\\n\\n /**\\n * @dev Returns true if the contract is paused, and false otherwise.\\n */\\n function paused() public view virtual returns (bool) {\\n return _paused;\\n }\\n\\n /**\\n * @dev Modifier to make a function callable only when the contract is not paused.\\n *\\n * Requirements:\\n *\\n * - The contract must not be paused.\\n */\\n modifier whenNotPaused() {\\n require(!paused(), \\\"Pausable: paused\\\");\\n _;\\n }\\n\\n /**\\n * @dev Modifier to make a function callable only when the contract is paused.\\n *\\n * Requirements:\\n *\\n * - The contract must be paused.\\n */\\n modifier whenPaused() {\\n require(paused(), \\\"Pausable: not paused\\\");\\n _;\\n }\\n\\n /**\\n * @dev Triggers stopped state.\\n *\\n * Requirements:\\n *\\n * - The contract must not be paused.\\n */\\n function _pause() internal virtual whenNotPaused {\\n _paused = true;\\n emit Paused(_msgSender());\\n }\\n\\n /**\\n * @dev Returns to normal state.\\n *\\n * Requirements:\\n *\\n * - The contract must be paused.\\n */\\n function _unpause() internal virtual whenPaused {\\n _paused = false;\\n emit Unpaused(_msgSender());\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[49] private __gap;\\n}\\n\",\"keccak256\":\"0x041af89e5e60b74e1203d5a34614c9de379726f52ecb8cf064cab78b9fdcdf9d\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)\\n\\npragma solidity ^0.8.0;\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module that helps prevent reentrant calls to a function.\\n *\\n * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier\\n * available, which can be applied to functions to make sure there are no nested\\n * (reentrant) calls to them.\\n *\\n * Note that because there is a single `nonReentrant` guard, functions marked as\\n * `nonReentrant` may not call one another. This can be worked around by making\\n * those functions `private`, and then adding `external` `nonReentrant` entry\\n * points to them.\\n *\\n * TIP: If you would like to learn more about reentrancy and alternative ways\\n * to protect against it, check out our blog post\\n * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].\\n */\\nabstract contract ReentrancyGuardUpgradeable is Initializable {\\n // Booleans are more expensive than uint256 or any type that takes up a full\\n // word because each write operation emits an extra SLOAD to first read the\\n // slot's contents, replace the bits taken up by the boolean, and then write\\n // back. This is the compiler's defense against contract upgrades and\\n // pointer aliasing, and it cannot be disabled.\\n\\n // The values being non-zero value makes deployment a bit more expensive,\\n // but in exchange the refund on every call to nonReentrant will be lower in\\n // amount. Since refunds are capped to a percentage of the total\\n // transaction's gas, it is best to keep them low in cases like this one, to\\n // increase the likelihood of the full refund coming into effect.\\n uint256 private constant _NOT_ENTERED = 1;\\n uint256 private constant _ENTERED = 2;\\n\\n uint256 private _status;\\n\\n function __ReentrancyGuard_init() internal onlyInitializing {\\n __ReentrancyGuard_init_unchained();\\n }\\n\\n function __ReentrancyGuard_init_unchained() internal onlyInitializing {\\n _status = _NOT_ENTERED;\\n }\\n\\n /**\\n * @dev Prevents a contract from calling itself, directly or indirectly.\\n * Calling a `nonReentrant` function from another `nonReentrant`\\n * function is not supported. It is possible to prevent this from happening\\n * by making the `nonReentrant` function external, and making it call a\\n * `private` function that does the actual work.\\n */\\n modifier nonReentrant() {\\n // On the first call to nonReentrant, _notEntered will be true\\n require(_status != _ENTERED, \\\"ReentrancyGuard: reentrant call\\\");\\n\\n // Any calls to nonReentrant after this point will fail\\n _status = _ENTERED;\\n\\n _;\\n\\n // By storing the original value once again, a refund is triggered (see\\n // https://eips.ethereum.org/EIPS/eip-2200)\\n _status = _NOT_ENTERED;\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[49] private __gap;\\n}\\n\",\"keccak256\":\"0x8cc03c5ac17e8a7396e487cda41fc1f1dfdb91db7d528e6da84bee3b6dd7e167\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC20 standard as defined in the EIP.\\n */\\ninterface IERC20Upgradeable {\\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 `to`.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transfer(address to, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Returns the remaining number of tokens that `spender` will be\\n * allowed to spend on behalf of `owner` through {transferFrom}. This is\\n * zero by default.\\n *\\n * This value changes when {approve} or {transferFrom} are called.\\n */\\n function allowance(address owner, address spender) external view returns (uint256);\\n\\n /**\\n * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * IMPORTANT: Beware that changing an allowance with this method brings the risk\\n * that someone may use both the old and the new allowance by unfortunate\\n * transaction ordering. One possible solution to mitigate this race\\n * condition is to first reduce the spender's allowance to 0 and set the\\n * desired value afterwards:\\n * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\\n *\\n * Emits an {Approval} event.\\n */\\n function approve(address spender, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Moves `amount` tokens from `from` to `to` 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(\\n address from,\\n address to,\\n uint256 amount\\n ) external returns (bool);\\n\\n /**\\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\\n * another (`to`).\\n *\\n * Note that `value` may be zero.\\n */\\n event Transfer(address indexed from, address indexed to, uint256 value);\\n\\n /**\\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\\n * a call to {approve}. `value` is the new allowance.\\n */\\n event Approval(address indexed owner, address indexed spender, uint256 value);\\n}\\n\",\"keccak256\":\"0x6777f3fccb5dab95a9088ef62c41bee0198fd92e50d7c94f0e3733788af4079e\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../IERC20Upgradeable.sol\\\";\\nimport \\\"../../../utils/AddressUpgradeable.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 SafeERC20Upgradeable {\\n using AddressUpgradeable for address;\\n\\n function safeTransfer(\\n IERC20Upgradeable token,\\n address to,\\n uint256 value\\n ) internal {\\n _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));\\n }\\n\\n function safeTransferFrom(\\n IERC20Upgradeable token,\\n address from,\\n address to,\\n uint256 value\\n ) internal {\\n _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));\\n }\\n\\n /**\\n * @dev Deprecated. This function has issues similar to the ones found in\\n * {IERC20-approve}, and its usage is discouraged.\\n *\\n * Whenever possible, use {safeIncreaseAllowance} and\\n * {safeDecreaseAllowance} instead.\\n */\\n function safeApprove(\\n IERC20Upgradeable token,\\n address spender,\\n uint256 value\\n ) internal {\\n // safeApprove should only be called when setting an initial allowance,\\n // or when resetting it to zero. To increase and decrease it, use\\n // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'\\n require(\\n (value == 0) || (token.allowance(address(this), spender) == 0),\\n \\\"SafeERC20: approve from non-zero to non-zero allowance\\\"\\n );\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));\\n }\\n\\n function safeIncreaseAllowance(\\n IERC20Upgradeable token,\\n address spender,\\n uint256 value\\n ) internal {\\n uint256 newAllowance = token.allowance(address(this), spender) + value;\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));\\n }\\n\\n function safeDecreaseAllowance(\\n IERC20Upgradeable token,\\n address spender,\\n uint256 value\\n ) internal {\\n unchecked {\\n uint256 oldAllowance = token.allowance(address(this), spender);\\n require(oldAllowance >= value, \\\"SafeERC20: decreased allowance below zero\\\");\\n uint256 newAllowance = oldAllowance - value;\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));\\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(IERC20Upgradeable token, bytes memory data) private {\\n // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since\\n // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that\\n // the target address contains contract code and also asserts for success in the low-level call.\\n\\n bytes memory returndata = address(token).functionCall(data, \\\"SafeERC20: low-level call failed\\\");\\n if (returndata.length > 0) {\\n // Return data is optional\\n require(abi.decode(returndata, (bool)), \\\"SafeERC20: ERC20 operation did not succeed\\\");\\n }\\n }\\n}\\n\",\"keccak256\":\"0x3e26a49d2fa5ef8338b8a9467c91e54f417cb07e849b1cc0f4ebc4d2a147938e\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary AddressUpgradeable {\\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 * [IMPORTANT]\\n * ====\\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\\n *\\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n * constructor.\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize/address.code.length, which returns 0\\n // for contracts in construction, since the code is only stored at the end\\n // of the constructor execution.\\n\\n return account.code.length > 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 (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(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) 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(\\n address target,\\n bytes memory data,\\n uint256 value\\n ) 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(\\n address target,\\n bytes memory data,\\n uint256 value,\\n string memory errorMessage\\n ) 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 (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(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n require(isContract(target), \\\"Address: static call to non-contract\\\");\\n\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResult(success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the\\n * revert reason using the provided one.\\n *\\n * _Available since v4.3._\\n */\\n function verifyCallResult(\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal 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 assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0x55cf2bd9fc76704ddcdc19834cd288b7de00fc0f298a40ea16a954ae8991db2d\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\\n\\npragma solidity ^0.8.0;\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract ContextUpgradeable is Initializable {\\n function __Context_init() internal onlyInitializing {\\n }\\n\\n function __Context_init_unchained() internal onlyInitializing {\\n }\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0x963ea7f0b48b032eef72fe3a7582edf78408d6f834115b9feadd673a4d5bd149\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/StorageSlotUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/StorageSlot.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Library for reading and writing primitive types to specific storage slots.\\n *\\n * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.\\n * This library helps with reading and writing to such slots without the need for inline assembly.\\n *\\n * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.\\n *\\n * Example usage to set ERC1967 implementation slot:\\n * ```\\n * contract ERC1967 {\\n * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n *\\n * function _getImplementation() internal view returns (address) {\\n * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n * }\\n *\\n * function _setImplementation(address newImplementation) internal {\\n * require(Address.isContract(newImplementation), \\\"ERC1967: new implementation is not a contract\\\");\\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n * }\\n * }\\n * ```\\n *\\n * _Available since v4.1 for `address`, `bool`, `bytes32`, and `uint256`._\\n */\\nlibrary StorageSlotUpgradeable {\\n struct AddressSlot {\\n address value;\\n }\\n\\n struct BooleanSlot {\\n bool value;\\n }\\n\\n struct Bytes32Slot {\\n bytes32 value;\\n }\\n\\n struct Uint256Slot {\\n uint256 value;\\n }\\n\\n /**\\n * @dev Returns an `AddressSlot` with member `value` located at `slot`.\\n */\\n function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BooleanSlot` with member `value` located at `slot`.\\n */\\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.\\n */\\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Uint256Slot` with member `value` located at `slot`.\\n */\\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\\n assembly {\\n r.slot := slot\\n }\\n }\\n}\\n\",\"keccak256\":\"0x422c3d27d0d5681cea93acbb0dcb175fa5b461b5b7731da7ff77e51f0f0174c7\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/IERC20.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)\\n\\npragma solidity ^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 `to`.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transfer(address to, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Returns the remaining number of tokens that `spender` will be\\n * allowed to spend on behalf of `owner` through {transferFrom}. This is\\n * zero by default.\\n *\\n * This value changes when {approve} or {transferFrom} are called.\\n */\\n function allowance(address owner, address spender) external view returns (uint256);\\n\\n /**\\n * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * IMPORTANT: Beware that changing an allowance with this method brings the risk\\n * that someone may use both the old and the new allowance by unfortunate\\n * transaction ordering. One possible solution to mitigate this race\\n * condition is to first reduce the spender's allowance to 0 and set the\\n * desired value afterwards:\\n * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\\n *\\n * Emits an {Approval} event.\\n */\\n function approve(address spender, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Moves `amount` tokens from `from` to `to` 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(\\n address from,\\n address to,\\n uint256 amount\\n ) external returns (bool);\\n\\n /**\\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\\n * another (`to`).\\n *\\n * Note that `value` may be zero.\\n */\\n event Transfer(address indexed from, address indexed to, uint256 value);\\n\\n /**\\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\\n * a call to {approve}. `value` is the new allowance.\\n */\\n event Approval(address indexed owner, address indexed spender, uint256 value);\\n}\\n\",\"keccak256\":\"0xbbc8ac883ac3c0078ce5ad3e288fbb3ffcc8a30c3a98c0fda0114d64fc44fca2\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../IERC20.sol\\\";\\nimport \\\"../../../utils/Address.sol\\\";\\n\\n/**\\n * @title SafeERC20\\n * @dev Wrappers around ERC20 operations that throw on failure (when the token\\n * contract returns false). Tokens that return no value (and instead revert or\\n * throw on failure) are also supported, non-reverting calls are assumed to be\\n * successful.\\n * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,\\n * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.\\n */\\nlibrary SafeERC20 {\\n using Address for address;\\n\\n function safeTransfer(\\n IERC20 token,\\n address to,\\n uint256 value\\n ) internal {\\n _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));\\n }\\n\\n function safeTransferFrom(\\n IERC20 token,\\n address from,\\n address to,\\n uint256 value\\n ) internal {\\n _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));\\n }\\n\\n /**\\n * @dev Deprecated. This function has issues similar to the ones found in\\n * {IERC20-approve}, and its usage is discouraged.\\n *\\n * Whenever possible, use {safeIncreaseAllowance} and\\n * {safeDecreaseAllowance} instead.\\n */\\n function safeApprove(\\n IERC20 token,\\n address spender,\\n uint256 value\\n ) internal {\\n // safeApprove should only be called when setting an initial allowance,\\n // or when resetting it to zero. To increase and decrease it, use\\n // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'\\n require(\\n (value == 0) || (token.allowance(address(this), spender) == 0),\\n \\\"SafeERC20: approve from non-zero to non-zero allowance\\\"\\n );\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));\\n }\\n\\n function safeIncreaseAllowance(\\n IERC20 token,\\n address spender,\\n uint256 value\\n ) internal {\\n uint256 newAllowance = token.allowance(address(this), spender) + value;\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));\\n }\\n\\n function safeDecreaseAllowance(\\n IERC20 token,\\n address spender,\\n uint256 value\\n ) internal {\\n unchecked {\\n uint256 oldAllowance = token.allowance(address(this), spender);\\n require(oldAllowance >= value, \\\"SafeERC20: decreased allowance below zero\\\");\\n uint256 newAllowance = oldAllowance - value;\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));\\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).functionCall(data, \\\"SafeERC20: low-level call failed\\\");\\n if (returndata.length > 0) {\\n // Return data is optional\\n require(abi.decode(returndata, (bool)), \\\"SafeERC20: ERC20 operation did not succeed\\\");\\n }\\n }\\n}\\n\",\"keccak256\":\"0xc3d946432c0ddbb1f846a0d3985be71299df331b91d06732152117f62f0be2b5\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/Address.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\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 * [IMPORTANT]\\n * ====\\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\\n *\\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n * constructor.\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize/address.code.length, which returns 0\\n // for contracts in construction, since the code is only stored at the end\\n // of the constructor execution.\\n\\n return account.code.length > 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 (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(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) 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(\\n address target,\\n bytes memory data,\\n uint256 value\\n ) 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(\\n address target,\\n bytes memory data,\\n uint256 value,\\n string memory errorMessage\\n ) 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 (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(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n require(isContract(target), \\\"Address: static call to non-contract\\\");\\n\\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(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(isContract(target), \\\"Address: delegate call to non-contract\\\");\\n\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResult(success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the\\n * revert reason using the provided one.\\n *\\n * _Available since v4.3._\\n */\\n function verifyCallResult(\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal 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 assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0x2ccf9d2313a313d41a791505f2b5abfdc62191b5d4334f7f7a82691c088a1c87\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n}\\n\",\"keccak256\":\"0xe2e337e6dde9ef6b680e07338c493ebea1b5fd09b43424112868e9cc1706bca7\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/math/Math.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (utils/math/Math.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Standard math utilities missing in the Solidity language.\\n */\\nlibrary Math {\\n /**\\n * @dev Returns the largest of two numbers.\\n */\\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a >= b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the smallest of two numbers.\\n */\\n function min(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a < b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the average of two numbers. The result is rounded towards\\n * zero.\\n */\\n function average(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b) / 2 can overflow.\\n return (a & b) + (a ^ b) / 2;\\n }\\n\\n /**\\n * @dev Returns the ceiling of the division of two numbers.\\n *\\n * This differs from standard division with `/` in that it rounds up instead\\n * of rounding down.\\n */\\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b - 1) / b can overflow on addition, so we distribute.\\n return a / b + (a % b == 0 ? 0 : 1);\\n }\\n}\\n\",\"keccak256\":\"0xc995bddbca1ae19788db9f8b61e63385edd3fddf89693b612d5abd1a275974d2\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/math/SafeMath.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol)\\n\\npragma solidity ^0.8.0;\\n\\n// CAUTION\\n// This version of SafeMath should only be used with Solidity 0.8 or later,\\n// because it relies on the compiler's built in overflow checks.\\n\\n/**\\n * @dev Wrappers over Solidity's arithmetic operations.\\n *\\n * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler\\n * now has built in overflow checking.\\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 unchecked {\\n uint256 c = a + b;\\n if (c < a) return (false, 0);\\n return (true, c);\\n }\\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 unchecked {\\n if (b > a) return (false, 0);\\n return (true, a - b);\\n }\\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 unchecked {\\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 /**\\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 unchecked {\\n if (b == 0) return (false, 0);\\n return (true, a / b);\\n }\\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 unchecked {\\n if (b == 0) return (false, 0);\\n return (true, a % b);\\n }\\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 return a + b;\\n }\\n\\n /**\\n * @dev Returns the subtraction of two unsigned integers, reverting on\\n * overflow (when the result is negative).\\n *\\n * Counterpart to Solidity's `-` operator.\\n *\\n * Requirements:\\n *\\n * - Subtraction cannot overflow.\\n */\\n function sub(uint256 a, uint256 b) internal pure returns (uint256) {\\n return 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 return a * b;\\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.\\n *\\n * Requirements:\\n *\\n * - The divisor cannot be zero.\\n */\\n function div(uint256 a, uint256 b) internal pure returns (uint256) {\\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 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(\\n uint256 a,\\n uint256 b,\\n string memory errorMessage\\n ) internal pure returns (uint256) {\\n unchecked {\\n require(b <= a, errorMessage);\\n return a - b;\\n }\\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 * 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(\\n uint256 a,\\n uint256 b,\\n string memory errorMessage\\n ) internal pure returns (uint256) {\\n unchecked {\\n require(b > 0, errorMessage);\\n return a / b;\\n }\\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(\\n uint256 a,\\n uint256 b,\\n string memory errorMessage\\n ) internal pure returns (uint256) {\\n unchecked {\\n require(b > 0, errorMessage);\\n return a % b;\\n }\\n }\\n}\\n\",\"keccak256\":\"0xa2f576be637946f767aa56601c26d717f48a0aff44f82e46f13807eea1009a21\",\"license\":\"MIT\"},\"contracts/access/SafeOwnable.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\n// Refer to https://github.com/boringcrypto/BoringSolidity/blob/master/contracts/BoringOwnable.sol and https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol\\n\\npragma solidity 0.8.15;\\n\\nimport '@openzeppelin/contracts/utils/Context.sol';\\n\\ncontract SafeOwnable is Context {\\n address private _owner;\\n address private _pendingOwner;\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the deployer as the initial owner.\\n */\\n constructor() {\\n _transferOwnership(_msgSender());\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Return the address of the pending owner\\n */\\n function pendingOwner() public view virtual returns (address) {\\n return _pendingOwner;\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n require(owner() == _msgSender(), 'SafeOwnable: caller not owner');\\n _;\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions anymore. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby removing any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n * Note If direct is false, it will set an pending owner and the OwnerShipTransferring\\n * only happens when the pending owner claim the ownership\\n */\\n function transferOwnership(address newOwner, bool direct) public virtual onlyOwner {\\n require(newOwner != address(0), 'SafeOwnable: new owner is 0');\\n\\n if (direct) {\\n _transferOwnership(newOwner);\\n } else {\\n _transferPendingOwnership(newOwner);\\n }\\n }\\n\\n /**\\n * @dev pending owner call this function to claim ownership\\n */\\n function claimOwnership() public {\\n require(msg.sender == _pendingOwner, 'SafeOwnable: caller != pending');\\n\\n _claimOwnership();\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n address oldOwner = _owner;\\n _owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n\\n /**\\n * @dev set the pending owner address\\n * Internal function without access restriction.\\n */\\n function _transferPendingOwnership(address newOwner) internal virtual {\\n _pendingOwner = newOwner;\\n }\\n\\n /**\\n * @dev claim ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _claimOwnership() internal virtual {\\n address oldOwner = _owner;\\n emit OwnershipTransferred(oldOwner, _pendingOwner);\\n\\n _owner = _pendingOwner;\\n _pendingOwner = address(0);\\n }\\n}\\n\",\"keccak256\":\"0x79a077ba2b45d1a3b01f1b5b4537b1885deb03515c10dab1fe4d16536d4bf91b\",\"license\":\"GPL-3.0-only\"},\"contracts/access/SafeOwnableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\n// Refer to https://github.com/boringcrypto/BoringSolidity/blob/master/contracts/BoringOwnable.sol and https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable/blob/master/contracts/access/OwnableUpgradeable.sol\\n\\npragma solidity 0.8.15;\\n\\nimport '@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol';\\nimport '@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol';\\n\\ncontract SafeOwnableUpgradeable is Initializable, ContextUpgradeable {\\n address private _owner;\\n address private _pendingOwner;\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the deployer as the initial owner.\\n */\\n function __Ownable_init() internal onlyInitializing {\\n __Ownable_init_unchained();\\n }\\n\\n function __Ownable_init_unchained() internal onlyInitializing {\\n _transferOwnership(_msgSender());\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Return the address of the pending owner\\n */\\n function pendingOwner() public view virtual returns (address) {\\n return _pendingOwner;\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n require(owner() == _msgSender(), 'SafeOwnable: caller not owner');\\n _;\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions anymore. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby removing any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n * Note If direct is false, it will set an pending owner and the OwnerShipTransferring\\n * only happens when the pending owner claim the ownership\\n */\\n function transferOwnership(address newOwner, bool direct) public virtual onlyOwner {\\n require(newOwner != address(0), 'SafeOwnable: new owner is 0');\\n if (direct) {\\n _transferOwnership(newOwner);\\n } else {\\n _transferPendingOwnership(newOwner);\\n }\\n }\\n\\n /**\\n * @dev pending owner call this function to claim ownership\\n */\\n function claimOwnership() public {\\n require(msg.sender == _pendingOwner, 'SafeOwnable: caller != pending');\\n\\n _claimOwnership();\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n address oldOwner = _owner;\\n _owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n\\n /**\\n * @dev set the pending owner address\\n * Internal function without access restriction.\\n */\\n function _transferPendingOwnership(address newOwner) internal virtual {\\n _pendingOwner = newOwner;\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _claimOwnership() internal virtual {\\n address oldOwner = _owner;\\n emit OwnershipTransferred(oldOwner, _pendingOwner);\\n\\n _owner = _pendingOwner;\\n _pendingOwner = address(0);\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[48] private __gap;\\n}\\n\",\"keccak256\":\"0x8de5eb1e824cf860909d77028719522b6bcf5b4cb96293e7f95c2d1f4299147b\",\"license\":\"GPL-3.0-only\"},\"contracts/staking/P12MineStorage.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\n\\npragma solidity 0.8.15;\\n\\nimport './interfaces/IGaugeController.sol';\\nimport './interfaces/IP12RewardVault.sol';\\nimport '../token/interfaces/IP12Token.sol';\\n\\ncontract P12MineStorage {\\n address public p12CoinFactory;\\n address public p12Token;\\n IGaugeController public gaugeController;\\n IP12RewardVault public p12RewardVault;\\n\\n uint256 public delayK;\\n uint256 public delayB;\\n uint256 public rate;\\n\\n // Info of each pool.\\n PoolInfo[] public poolInfos;\\n\\n bool public isEmergency;\\n uint256 public emergencyUnlockTime;\\n\\n uint256[40] private __gap;\\n\\n mapping(address => uint256) public lpTokenRegistry;\\n // Info of each user that stakes LP tokens.\\n mapping(uint256 => mapping(address => UserInfo)) public userInfo;\\n mapping(address => uint256) public realizedReward;\\n // address=>period=>timestamp\\n mapping(address => mapping(uint256 => uint256)) public periodTimestamp;\\n\\n // lpToken => id\\n mapping(address => bytes32) public preWithdrawIds;\\n // lpToken => id=> WithdrawInfo\\n mapping(address => mapping(bytes32 => WithdrawInfo)) public withdrawInfos;\\n\\n // Info of each user.\\n struct UserInfo {\\n uint256 amount; // How many LP tokens the user has provided.\\n uint256 rewardDebt; // Reward debt. See explanation below.\\n //\\n // We do some fancy math here. Basically, any point in time, the amount of P12s\\n // entitled to a user but is pending to be distributed is:\\n //\\n // pending reward = (Amount * pool.accP12PerShare) - user.rewardDebt\\n //\\n // Whenever a user deposits or withdraws LP tokens to a pool. Here's what happens:\\n // 1. The pool's `accP12PerShare` (and `lastRewardBlock`) gets updated.\\n // 2. User receives the pending reward sent to his/her address.\\n // 3. User's `amount` gets updated.\\n // 4. User's `rewardDebt` gets updated.\\n }\\n\\n // Info of each pool.\\n struct PoolInfo {\\n address lpToken; // Address of LP token contract.\\n uint256 accP12PerShare; // Accumulated P12s per share, times 1e18. See below.\\n uint256 amount; // how many lpToken in this pool\\n uint256 period;\\n }\\n // withdraw info\\n struct WithdrawInfo {\\n address who;\\n uint256 amount;\\n uint256 unlockTimestamp;\\n bool executed;\\n }\\n}\\n\",\"keccak256\":\"0xade7b6b47da591797be2fd14fbe5d22cb942479724ca6a9b13d483e506d0c239\",\"license\":\"GPL-3.0-only\"},\"contracts/staking/P12MineUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\n\\npragma solidity 0.8.15;\\nimport '@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol';\\nimport '@openzeppelin/contracts/utils/math/SafeMath.sol';\\nimport '@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol';\\nimport '@openzeppelin/contracts/utils/math/Math.sol';\\nimport '@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol';\\nimport '../access/SafeOwnableUpgradeable.sol';\\nimport '@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol';\\nimport '@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol';\\nimport { IP12RewardVault, P12RewardVault } from './P12RewardVault.sol';\\nimport './interfaces/IGaugeController.sol';\\nimport './interfaces/IP12MineUpgradeable.sol';\\nimport './P12MineStorage.sol';\\nimport '../access/SafeOwnableUpgradeable.sol';\\nimport '../token/interfaces/IP12Token.sol';\\n\\ncontract P12MineUpgradeable is\\n P12MineStorage,\\n IP12MineUpgradeable,\\n UUPSUpgradeable,\\n SafeOwnableUpgradeable,\\n ReentrancyGuardUpgradeable,\\n PausableUpgradeable\\n{\\n using SafeERC20Upgradeable for IERC20Upgradeable;\\n using Math for uint256;\\n\\n uint256 public constant ONE = 10**18;\\n uint256 public constant WEEK = 7 * 86400;\\n\\n // ============ External ============\\n\\n /**\\n @notice set new p12CoinFactory\\n @param newP12CoinFactory address of p12CoinFactory\\n */\\n function setP12CoinFactory(address newP12CoinFactory) external virtual override onlyOwner {\\n address oldP12CoinFactory = p12CoinFactory;\\n require(newP12CoinFactory != address(0), 'P12Mine: p12CoinFactory cannot be 0');\\n p12CoinFactory = newP12CoinFactory;\\n emit SetP12Factory(oldP12CoinFactory, newP12CoinFactory);\\n }\\n\\n /**\\n @notice set new gaugeController\\n @param newGaugeController address of gaugeController\\n */\\n function setGaugeController(IGaugeController newGaugeController) external virtual override onlyOwner {\\n IGaugeController oldGaugeController = gaugeController;\\n require(address(newGaugeController) != address(0), 'P12Mine: gc cannot be 0');\\n gaugeController = newGaugeController;\\n emit SetGaugeController(oldGaugeController, newGaugeController);\\n }\\n\\n /**\\n @notice Get pool len\\n */\\n function poolLength() external view virtual override returns (uint256) {\\n return poolInfos.length;\\n }\\n\\n /**\\n\\u200b @notice withdraw token Emergency\\n */\\n function withdrawEmergency() external virtual override onlyOwner onlyEmergency {\\n p12RewardVault.withdrawEmergency(msg.sender);\\n }\\n\\n /**\\n @notice update checkpoint for pool\\n @param lpToken Address of lpToken\\n */\\n function checkpoint(address lpToken) external {\\n uint256 pid = getPid(lpToken);\\n _checkpoint(pid);\\n }\\n\\n // ============ Public ============\\n\\n function pause() public onlyOwner {\\n _pause();\\n }\\n\\n function unpause() public onlyOwner {\\n _unpause();\\n }\\n\\n /**\\n @notice Contract initialization\\n @param p12Token_ Address of p12Token\\n @param p12CoinFactory_ Address of p12CoinFactory\\n @param gaugeController_ address of gaugeController\\n @param delayK_ delayK_ is a coefficient\\n @param delayB_ delayB_ is a coefficient\\n */\\n function initialize(\\n address p12Token_,\\n address p12CoinFactory_,\\n IGaugeController gaugeController_,\\n uint256 delayK_,\\n uint256 delayB_,\\n uint256 rate_\\n ) public initializer {\\n require(p12Token_ != address(0), 'P12Mine: p12Token cannot be 0');\\n require(p12CoinFactory_ != address(0), 'P12Mine: p12CoinFactory cannot be 0');\\n\\n p12Token = p12Token_;\\n p12CoinFactory = p12CoinFactory_;\\n gaugeController = IGaugeController(gaugeController_);\\n p12RewardVault = IP12RewardVault(new P12RewardVault(p12Token_));\\n delayK = delayK_;\\n delayB = delayB_;\\n rate = rate_;\\n\\n __ReentrancyGuard_init_unchained();\\n __Pausable_init_unchained();\\n __Ownable_init_unchained();\\n }\\n\\n /**\\n @notice get withdraw unlockTimestamp\\n @param lpToken Address of lpToken\\n @param amount Number of lpToken\\n */\\n function getWithdrawUnlockTimestamp(address lpToken, uint256 amount) public view virtual override returns (uint256) {\\n uint256 pid = getPid(lpToken);\\n PoolInfo memory pool = poolInfos[pid];\\n uint256 time;\\n uint256 currentTimestamp = block.timestamp;\\n bytes32 _preWithdrawId = preWithdrawIds[lpToken];\\n uint256 lastUnlockTimestamp = withdrawInfos[lpToken][_preWithdrawId].unlockTimestamp;\\n\\n time = currentTimestamp >= lastUnlockTimestamp ? currentTimestamp : lastUnlockTimestamp;\\n uint256 delay = (amount * delayK) / IERC20Upgradeable(pool.lpToken).totalSupply() + delayB;\\n uint256 unlockTimestamp = delay + time;\\n return unlockTimestamp;\\n }\\n\\n /**\\n @notice Get pool id\\n @param lpToken Address of lpToken\\n */\\n function getPid(address lpToken) public view virtual override lpTokenExist(lpToken) returns (uint256) {\\n return lpTokenRegistry[lpToken] - 1;\\n }\\n\\n /**\\n @notice Get user lpToken balance\\n @param lpToken Address of lpToken\\n @param user LpToken holder\\n @return Get lpToken balance \\n */\\n function getUserLpBalance(address lpToken, address user) public view virtual override returns (uint256) {\\n uint256 pid = getPid(lpToken);\\n return userInfo[pid][user].amount;\\n }\\n\\n /**\\n @notice This method is only used when creating game coin in p12CoinFactory\\n @param lpToken Address of lpToken\\n @param gameCoinCreator user of game coin creator\\n */\\n function addLpTokenInfoForGameCreator(\\n address lpToken,\\n uint256 amount,\\n address gameCoinCreator\\n ) public virtual override whenNotPaused onlyP12Factory {\\n createPool(lpToken);\\n uint256 pid = getPid(lpToken);\\n uint256 totalLpStaked = IERC20Upgradeable(lpToken).balanceOf(address(this));\\n PoolInfo storage pool = poolInfos[pid];\\n UserInfo storage user = userInfo[pid][gameCoinCreator];\\n require(amount <= totalLpStaked - pool.amount && amount > 0, 'P12Mine: amount not met');\\n pool.period += 1;\\n periodTimestamp[pool.lpToken][pool.period] = block.timestamp;\\n user.amount += amount;\\n pool.amount += amount;\\n user.rewardDebt = (user.amount * pool.accP12PerShare) / ONE;\\n emit Deposit(gameCoinCreator, pid, amount, user.amount, pool.amount);\\n }\\n\\n // ============ Ownable ============\\n\\n /**\\n @notice set the isEmergency to true\\n */\\n\\n function emergency() public virtual override onlyOwner {\\n require(!isEmergency, 'P12Mine: already exists');\\n isEmergency = true;\\n uint256 delayTime = 86400;\\n emergencyUnlockTime = block.timestamp + delayTime;\\n emit Emergency(msg.sender, emergencyUnlockTime);\\n }\\n\\n /**\\n @notice Create a new pool\\n @param lpToken Address of lpToken\\n */\\n function createPool(address lpToken) public virtual override lpTokenNotExist(lpToken) whenNotPaused onlyP12FactoryOrOwner {\\n poolInfos.push(PoolInfo({ lpToken: lpToken, accP12PerShare: 0, amount: 0, period: 0 }));\\n periodTimestamp[lpToken][0] = block.timestamp;\\n lpTokenRegistry[lpToken] = poolInfos.length;\\n }\\n\\n /**\\n @notice Set delayK value \\n @param newDelayK Is a coefficient\\n @return Get bool result \\n */\\n function setDelayK(uint256 newDelayK) public virtual override onlyOwner returns (bool) {\\n uint256 oldDelayK = delayK;\\n delayK = newDelayK;\\n emit SetDelayK(oldDelayK, delayK);\\n return true;\\n }\\n\\n /**\\n @notice Set delayB value \\n @param newDelayB Is a coefficient\\n @return Get bool result \\n */\\n function setDelayB(uint256 newDelayB) public virtual override onlyOwner returns (bool) {\\n uint256 oldDelayB = delayB;\\n delayB = newDelayB;\\n emit SetDelayB(oldDelayB, delayB);\\n return true;\\n }\\n\\n /**\\n @notice set new rate\\n @param newRate is p12 token inflation rate \\n */\\n function setRate(uint256 newRate) public virtual override onlyOwner returns (bool) {\\n uint256 oldRate = rate;\\n rate = newRate;\\n checkpointAll();\\n emit SetRate(oldRate, newRate);\\n return true;\\n }\\n\\n /**\\n @notice update checkpoint for all pool\\n */\\n function checkpointAll() public virtual override {\\n uint256 length = poolInfos.length;\\n for (uint256 pid = 0; pid < length; pid++) {\\n _checkpoint(pid);\\n }\\n }\\n\\n // ============ Deposit & Withdraw & Claim & ============\\n // Deposit & withdraw will also trigger claim\\n\\n /**\\n @notice Deposit lpToken\\n @param lpToken Address of lpToken\\n @param amount Number of lpToken\\n */\\n function deposit(address lpToken, uint256 amount) public virtual override whenNotPaused nonReentrant {\\n uint256 pid = getPid(lpToken);\\n PoolInfo storage pool = poolInfos[pid];\\n UserInfo storage user = userInfo[pid][msg.sender];\\n\\n _checkpoint(pid);\\n if (user.amount > 0) {\\n uint256 pending = (user.amount * pool.accP12PerShare) / ONE - user.rewardDebt;\\n _safeP12Transfer(msg.sender, pending);\\n }\\n require(amount != 0, 'P12Mine: need amount > 0');\\n user.amount += amount;\\n pool.amount += amount;\\n IERC20Upgradeable(pool.lpToken).safeTransferFrom(msg.sender, address(this), amount);\\n user.rewardDebt = (user.amount * pool.accP12PerShare) / ONE;\\n emit Deposit(msg.sender, pid, amount, user.amount, pool.amount);\\n }\\n\\n /**\\n @notice Withdraw lpToken delay\\n @param lpToken Address of lpToken\\n @param amount Number of lpToken\\n */\\n function queueWithdraw(address lpToken, uint256 amount) public virtual override whenNotPaused nonReentrant {\\n uint256 pid = getPid(lpToken);\\n PoolInfo storage pool = poolInfos[pid];\\n UserInfo storage user = userInfo[pid][msg.sender];\\n require(user.amount >= amount, 'P12Mine: withdraw too much');\\n _checkpoint(pid);\\n if (user.amount > 0) {\\n uint256 pending = (user.amount * pool.accP12PerShare) / ONE - user.rewardDebt;\\n _safeP12Transfer(msg.sender, pending);\\n }\\n uint256 unlockTimestamp = getWithdrawUnlockTimestamp(lpToken, amount);\\n bytes32 newWithdrawId = _createWithdrawId(lpToken, amount, msg.sender);\\n withdrawInfos[lpToken][newWithdrawId] = WithdrawInfo(msg.sender, amount, unlockTimestamp, false);\\n user.rewardDebt = (user.amount * pool.accP12PerShare) / ONE;\\n emit QueueWithdraw(msg.sender, pid, amount, newWithdrawId, unlockTimestamp);\\n }\\n\\n /**\\n @notice Get pending rewards\\n @param lpToken Address of lpToken\\n */\\n function claim(address lpToken) public virtual override nonReentrant whenNotPaused returns (uint256){\\n uint256 pid = getPid(lpToken);\\n require(userInfo[pid][msg.sender].amount > 0, 'P12Mine: no staked token');\\n PoolInfo storage pool = poolInfos[pid];\\n UserInfo storage user = userInfo[pid][msg.sender];\\n _checkpoint(pid);\\n uint256 pending = (user.amount * pool.accP12PerShare) / ONE - user.rewardDebt;\\n user.rewardDebt = (user.amount * pool.accP12PerShare) / ONE;\\n _safeP12Transfer(msg.sender, pending);\\n return pending;\\n }\\n\\n /**\\n @notice Get all pending rewards\\n */\\n function claimAll() public virtual override nonReentrant whenNotPaused returns (uint256){\\n uint256 length = poolInfos.length;\\n uint256 pending = 0;\\n for (uint256 pid = 0; pid < length; pid++) {\\n if (userInfo[pid][msg.sender].amount == 0) {\\n continue; // save gas\\n }\\n PoolInfo storage pool = poolInfos[pid];\\n UserInfo storage user = userInfo[pid][msg.sender];\\n _checkpoint(pid);\\n pending += (user.amount * pool.accP12PerShare) / ONE - user.rewardDebt;\\n user.rewardDebt = (user.amount * pool.accP12PerShare) / ONE;\\n }\\n _safeP12Transfer(msg.sender, pending);\\n return pending;\\n }\\n\\n /**\\n @notice Withdraw lpToken\\n @param lpToken Address of lpToken\\n @param id Withdraw id \\n */\\n function executeWithdraw(address lpToken, bytes32 id) public virtual override nonReentrant whenNotPaused {\\n uint256 pid = getPid(lpToken);\\n address _who = withdrawInfos[lpToken][id].who;\\n require(msg.sender == _who, 'P12Mine: caller not token owner');\\n PoolInfo storage pool = poolInfos[pid];\\n UserInfo storage user = userInfo[pid][_who];\\n require(withdrawInfos[lpToken][id].amount <= user.amount, 'P12Mine: withdraw too much');\\n require(block.timestamp >= withdrawInfos[lpToken][id].unlockTimestamp, 'P12Mine: unlock time not reached');\\n require(!withdrawInfos[lpToken][id].executed, 'P12Mine: already withdrawn');\\n withdrawInfos[lpToken][id].executed = true;\\n _checkpoint(pid);\\n uint256 pending = (user.amount * pool.accP12PerShare) / ONE - user.rewardDebt;\\n _safeP12Transfer(_who, pending);\\n uint256 amount = withdrawInfos[lpToken][id].amount;\\n user.amount -= amount;\\n pool.amount -= amount;\\n user.rewardDebt = (user.amount * pool.accP12PerShare) / ONE;\\n IERC20Upgradeable(pool.lpToken).safeTransfer(address(_who), amount);\\n emit ExecuteWithdraw(_who, pid,id, amount, user.amount, pool.amount);\\n }\\n\\n /**\\n\\u200b @notice withdraw lpToken Emergency\\n */\\n\\n function withdrawAllLpTokenEmergency() public virtual override {\\n uint256 length = poolInfos.length;\\n\\n for (uint256 pid = 0; pid < length; pid++) {\\n if (userInfo[pid][msg.sender].amount == 0) {\\n continue; // save gas\\n }\\n PoolInfo memory pool = poolInfos[pid];\\n withdrawLpTokenEmergency(pool.lpToken);\\n }\\n }\\n\\n /**\\n\\u200b @notice withdraw all lpToken Emergency\\n @param lpToken address of lpToken\\n */\\n function withdrawLpTokenEmergency(address lpToken) public virtual override nonReentrant onlyEmergency {\\n uint256 pid = getPid(lpToken);\\n PoolInfo storage pool = poolInfos[pid];\\n UserInfo storage user = userInfo[pid][msg.sender];\\n require(user.amount > 0, 'P12Mine: without any lpToken');\\n uint256 amount = user.amount;\\n user.amount = 0;\\n user.rewardDebt = 0;\\n IERC20Upgradeable(pool.lpToken).safeTransfer(address(msg.sender), amount);\\n emit WithdrawLpTokenEmergency(lpToken, amount);\\n }\\n\\n // ============ Internal ============\\n\\n function _authorizeUpgrade(address newImplementation) internal override onlyOwner {}\\n\\n /**\\n @notice Transfer p12 to user\\n @param to The address of receiver\\n @param amount Number of p12\\n */\\n function _safeP12Transfer(address to, uint256 amount) internal virtual {\\n p12RewardVault.reward(to, amount);\\n realizedReward[to] = realizedReward[to] + amount;\\n emit Claim(to, amount);\\n }\\n\\n /**\\n @notice Create withdraw id\\n @param lpToken Address of lpToken\\n @param amount Number of lpToken\\n @param to Address of receiver\\n @return hash Get a withdraw Id\\n */\\n function _createWithdrawId(\\n address lpToken,\\n uint256 amount,\\n address to\\n ) internal virtual returns (bytes32 hash) {\\n bytes32 preWithdrawId = preWithdrawIds[lpToken];\\n bytes32 withdrawId = keccak256(abi.encode(lpToken, amount, to, preWithdrawId));\\n preWithdrawIds[lpToken] = withdrawId;\\n return withdrawId;\\n }\\n\\n // ============ checkpoint ============\\n /**\\n @notice update checkpoint for pool\\n @param pid Pool Id\\n */\\n function _checkpoint(uint256 pid) internal virtual whenNotPaused {\\n PoolInfo storage pool = poolInfos[pid];\\n uint256 _accP12PerShare = pool.accP12PerShare;\\n uint256 _periodTime = periodTimestamp[pool.lpToken][pool.period];\\n gaugeController.checkpointGauge(address(pool.lpToken));\\n require(block.timestamp > _periodTime, 'P12Mine: not time to check');\\n\\n if (pool.amount == 0) {\\n pool.period += 1;\\n periodTimestamp[pool.lpToken][pool.period] = block.timestamp;\\n return;\\n }\\n uint256 prevWeekTime = _periodTime;\\n uint256 weekTime = Math.min(((_periodTime + WEEK) / WEEK) * WEEK, block.timestamp);\\n for (uint256 i = 0; i < 500; i++) {\\n uint256 dt = weekTime - prevWeekTime;\\n uint256 w = gaugeController.gaugeRelativeWeight(pool.lpToken, (prevWeekTime / WEEK) * WEEK);\\n _accP12PerShare += (rate * w * dt) / pool.amount;\\n if (weekTime == block.timestamp) {\\n break;\\n }\\n prevWeekTime = weekTime;\\n weekTime = Math.min(weekTime + WEEK, block.timestamp);\\n }\\n pool.accP12PerShare = _accP12PerShare;\\n pool.period += 1;\\n periodTimestamp[pool.lpToken][pool.period] = block.timestamp;\\n emit Checkpoint(pool.lpToken, pool.amount, pool.accP12PerShare);\\n }\\n\\n // ============ Modifiers ============\\n\\n // check if lpToken exists\\n modifier lpTokenExist(address lpToken) {\\n require(lpTokenRegistry[lpToken] > 0, 'P12Mine: LP Token Not Exist');\\n _;\\n }\\n // check if lpToken exists\\n modifier lpTokenNotExist(address lpToken) {\\n require(lpTokenRegistry[lpToken] == 0, 'P12Mine: LP Token Already Exist');\\n _;\\n }\\n\\n // check the caller\\n modifier onlyP12FactoryOrOwner() {\\n require(msg.sender == address(p12CoinFactory) || msg.sender == owner(), 'P12Mine: not p12factory or owner');\\n _;\\n }\\n\\n // check the caller\\n modifier onlyP12Factory() {\\n require(msg.sender == address(p12CoinFactory), 'P12Mine: caller not p12factory');\\n _;\\n }\\n\\n // check Emergency\\n modifier onlyEmergency() {\\n require(isEmergency, 'P12Mine: no emergency now');\\n require(block.timestamp >= emergencyUnlockTime, 'P12Mine: not unlocked yet');\\n _;\\n }\\n}\\n\",\"keccak256\":\"0xea0ea9b1af21b379b2ae8a83563e813bf0df170c4f8a0cb2b94ee5a826705b46\",\"license\":\"GPL-3.0-only\"},\"contracts/staking/P12RewardVault.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\n\\npragma solidity 0.8.15;\\npragma experimental ABIEncoderV2;\\n\\nimport '../access/SafeOwnable.sol';\\nimport '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol';\\nimport '@openzeppelin/contracts/token/ERC20/IERC20.sol';\\nimport './interfaces/IP12RewardVault.sol';\\nimport '../token/interfaces/IP12Token.sol';\\n\\ncontract P12RewardVault is SafeOwnable, IP12RewardVault {\\n using SafeERC20 for IERC20;\\n\\n address public p12Token;\\n\\n constructor(address p12Token_) {\\n require(p12Token_ != address(0), 'P12RV: address cannot be 0');\\n p12Token = p12Token_;\\n }\\n\\n /**\\n @notice Send reward to user\\n @param to The address of awards \\n @param amount number of awards \\n */\\n function reward(address to, uint256 amount) external virtual override onlyOwner {\\n IERC20(p12Token).safeTransfer(to, amount);\\n }\\n\\n /**\\n @notice withdraw token Emergency\\n */\\n function withdrawEmergency(address to) external virtual override onlyOwner {\\n require(to != address(0), 'P12RV: address cannot be 0');\\n IERC20(p12Token).safeTransfer(to, IERC20(p12Token).balanceOf(address(this)));\\n emit WithdrawEmergency(p12Token, IERC20(p12Token).balanceOf(address(this)));\\n }\\n}\\n\",\"keccak256\":\"0x6d5f2c868afc883f1b9cd2aae7c640de6b5beb5a3a1cc069a74397f2070bd9e3\",\"license\":\"GPL-3.0-only\"},\"contracts/staking/interfaces/IGaugeController.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\n\\npragma solidity 0.8.15;\\n\\nimport '../../token/interfaces/IVotingEscrow.sol';\\n\\ninterface IGaugeController {\\n event CommitOwnership(address admin);\\n\\n event ApplyOwnership(address admin);\\n\\n event AddType(string name, int128 typeId);\\n\\n event NewTypeWeight(int128 typeId, uint256 time, uint256 weight, uint256 totalWeight);\\n\\n event NewGaugeWeight(address gaugeAddress, uint256 time, uint256 weight, uint256 totalWeight);\\n\\n event VoteForGauge(uint256 time, address user, address gaugeAddress, uint256 weight);\\n\\n event NewGauge(address addr, int128 gaugeType, uint256 weight);\\n\\n event SetVotingEscrow(IVotingEscrow oldVotingEscrow, IVotingEscrow newVotingEscrow);\\n\\n event SetP12Factory(address oldP12Factory, address newP12Factory);\\n\\n function getGaugeTypes(address addr) external returns (int128);\\n\\n function checkpoint() external;\\n\\n function gaugeRelativeWeightWrite(address addr, uint256 time) external returns (uint256);\\n\\n function changeTypeWeight(int128 typeId, uint256 weight) external;\\n\\n function changeGaugeWeight(address addr, uint256 weight) external;\\n\\n function voteForGaugeWeights(address gaugeAddr, uint256 userWeight) external;\\n\\n function checkpointGauge(address addr) external;\\n\\n function gaugeRelativeWeight(address lpToken, uint256 time) external returns (uint256);\\n\\n function getGaugeWeight(address addr) external returns (uint256);\\n\\n function getTypeWeight(int128 typeId) external returns (uint256);\\n\\n function getTotalWeight() external returns (uint256);\\n\\n function getWeightsSumPerType(int128 typeId) external returns (uint256);\\n\\n function addGauge(\\n address addr,\\n int128 gaugeType,\\n uint256 weight\\n ) external;\\n\\n function addType(string memory name, uint256 weight) external;\\n\\n function setVotingEscrow(IVotingEscrow newVotingEscrow) external;\\n\\n function setP12CoinFactory(address newP12Factory) external;\\n}\\n\",\"keccak256\":\"0xf38a5b6d1b395e89a0b1d685ac8e7124debf96990552afbe1cd486ad8c726a0f\",\"license\":\"GPL-3.0-only\"},\"contracts/staking/interfaces/IP12MineUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\n\\npragma solidity 0.8.15;\\n\\nimport '../../token/interfaces/IVotingEscrow.sol';\\nimport './IGaugeController.sol';\\n\\ninterface IP12MineUpgradeable {\\n event Deposit(address indexed user, uint256 indexed pid, uint256 amount, uint256 userAmount, uint256 poolAmount); // deposit lpToken log\\n event ExecuteWithdraw(address indexed user, uint256 indexed pid,bytes32 indexed withdrawId, uint256 amount, uint256 userAmount, uint256 poolAmount); // withdraw lpToken log\\n event QueueWithdraw(\\n address indexed user,\\n uint256 pid,\\n uint256 indexed amount,\\n bytes32 indexed newWithdrawId,\\n uint256 unlockTimestamp\\n ); // delayed unStaking mining log\\n event Claim(address indexed user, uint256 amount); // get rewards\\n event SetDelayB(uint256 oldDelayB, uint256 newDelayB); // change delayB log\\n event SetDelayK(uint256 oldDelayK, uint256 newDelayK); // change delayK log\\n event SetRate(uint256 oldRate, uint256 newRate); // set new rate\\n event SetP12Factory(address oldP12Factory, address newP12Factory);\\n event SetGaugeController(IGaugeController oldGaugeController, IGaugeController newGaugeController);\\n event WithdrawLpTokenEmergency(address lpToken, uint256 amount);\\n\\n event Emergency(address executor, uint256 emergencyUnlockTime);\\n event Checkpoint(address indexed lpToken, uint256 indexed poolAmount, uint256 accP12PerShare);\\n\\n function poolLength() external returns (uint256);\\n\\n function getPid(address lpToken) external returns (uint256);\\n\\n function getUserLpBalance(address lpToken, address user) external returns (uint256);\\n\\n function checkpointAll() external;\\n\\n function getWithdrawUnlockTimestamp(address lpToken, uint256 amount) external returns (uint256);\\n\\n function withdrawEmergency() external;\\n\\n function withdrawLpTokenEmergency(address lpToken) external;\\n\\n function withdrawAllLpTokenEmergency() external;\\n\\n function emergency() external;\\n\\n function createPool(address lpToken) external; // new pool\\n\\n function setDelayK(uint256 delayK) external returns (bool);\\n\\n function setDelayB(uint256 delayB) external returns (bool);\\n\\n function deposit(address lpToken, uint256 amount) external; // deposit lpToken\\n\\n function setRate(uint256 newRate) external returns (bool);\\n\\n function setP12CoinFactory(address newP12Factory) external;\\n\\n function setGaugeController(IGaugeController newGaugeController) external;\\n\\n function executeWithdraw(address lpToken, bytes32 id) external; // withdraw lpToken\\n\\n function queueWithdraw(address lpToken, uint256 amount) external; // delayed unStaking mining\\n\\n function addLpTokenInfoForGameCreator(\\n address lpToken,\\n uint256 amount,\\n address gameCoinCreator\\n ) external; // add lpToken info for gameCoin creator when first time\\n\\n function claim(address lpToken) external returns (uint256); // get pending rewards\\n\\n function claimAll() external returns (uint256); // get all pending rewards\\n\\n function checkpoint(address lpToken) external ;\\n}\\n\",\"keccak256\":\"0xefcf97e25549cfc6abc0f3d3a381cc416e3b8a40cd8f31bb4c1617231d6fdf66\",\"license\":\"GPL-3.0-only\"},\"contracts/staking/interfaces/IP12RewardVault.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\n\\npragma solidity 0.8.15;\\n\\ninterface IP12RewardVault {\\n function reward(address to, uint256 amount) external; // send reward\\n\\n function withdrawEmergency(address to) external;\\n\\n event WithdrawEmergency(address p12Token, uint256 amount);\\n}\\n\",\"keccak256\":\"0xae5614b56730977bbc7d186bbc5cc81cdc85ae686cafbb8d5b293154ff26c53a\",\"license\":\"GPL-3.0-only\"},\"contracts/token/interfaces/IP12Token.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\n\\npragma solidity 0.8.15;\\n\\ninterface IP12Token {\\n function mint(address recipient, uint256 amount) external;\\n}\\n\",\"keccak256\":\"0xadb20c8d78804e4528bf635c248106e3723fe50ccc2d655385e938b54c6b8054\",\"license\":\"GPL-3.0-only\"},\"contracts/token/interfaces/IVotingEscrow.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\n\\npragma solidity 0.8.15;\\n\\ninterface IVotingEscrow {\\n function getLastUserSlope(address addr) external returns (int256);\\n\\n function lockedEnd(address addr) external returns (uint256);\\n}\\n\",\"keccak256\":\"0x5b86f26484c0360029da65eb81b461fb0ec612c4ff3290dc82f5396b5733c6b9\",\"license\":\"GPL-3.0-only\"}},\"version\":1}", + "bytecode": "0x60a06040523060805234801561001457600080fd5b50608051614bb961004c6000396000818161118e015281816111d1015281816117c201528181611805015261189d0152614bb96000f3fe6080604052600436106200033e5760003560e01c8063689d84e411620001b1578063afdbf3c211620000ee578063caa6fea411620000a1578063e48f427b1162000078578063e48f427b1462000a6c578063ea4b4ca31462000a84578063ec83a76a1462000aa9578063f4359ce51462000ada57600080fd5b8063caa6fea41462000a1c578063d1058e591462000a34578063e30c39781462000a4c57600080fd5b8063afdbf3c214620008df578063b242e5341462000904578063b309bc981462000929578063b3868125146200094e578063c2ee3a0814620009d9578063c36b286e14620009f757600080fd5b80638b7c37a3116200016457806393f1a40b116200013b57806393f1a40b146200081a57806399eecb3b1462000873578063a24ed7421462000895578063a972985e14620008ba57600080fd5b80638b7c37a314620007b35780638da5cb5b14620007d55780639049f9d214620007f557600080fd5b8063689d84e414620006d1578063715018a61462000721578063728cdbca14620007395780637e183ba0146200075e5780638456cb5914620007835780638983727c146200079b57600080fd5b80633d16433e11620002805780634e13acc7116200023357806352d1902d116200020a57806352d1902d146200066a5780635c975abb14620006825780635f9e8f82146200069d578063614bb60a14620006b957600080fd5b80634e13acc7146200060a5780634e71e0c8146200063b5780634f1ef286146200065357600080fd5b80633d16433e14620005475780633f4ba83a14620005785780634016634014620005905780634146a07314620005a857806343b55f3514620005c057806347e7ef2414620005e557600080fd5b80632b57474d11620002f65780632f321b7111620002cd5780632f321b7114620004a557806334fcf43714620004ca5780633659cfe614620005005780633cd784f1146200052557600080fd5b80632b57474d14620004395780632bf6c5bc14620004755780632c4e722e146200048d57600080fd5b806291d2b81462000343578063081e3eda146200036a5780630f48fa5f146200038f57806319a78f5514620003b45780631e83409a14620003d957806320fe4adc14620003fe575b600080fd5b3480156200035057600080fd5b50620003686200036236600462003a6c565b62000af3565b005b3480156200037757600080fd5b506007545b6040519081526020015b60405180910390f35b3480156200039c57600080fd5b506200037c620003ae36600462003a8c565b62000be8565b348015620003c157600080fd5b506200037c620003d336600462003abb565b62000d44565b348015620003e657600080fd5b506200037c620003f836600462003a6c565b62000d7e565b3480156200040b57600080fd5b5060035462000420906001600160a01b031681565b6040516001600160a01b03909116815260200162000386565b3480156200044657600080fd5b506200037c6200045836600462003a8c565b603560209081526000928352604080842090915290825290205481565b3480156200048257600080fd5b506200037c60095481565b3480156200049a57600080fd5b506200037c60065481565b348015620004b257600080fd5b5062000368620004c436600462003a6c565b62000f21565b348015620004d757600080fd5b50620004ef620004e936600462003af9565b620010ff565b604051901515815260200162000386565b3480156200050d57600080fd5b50620003686200051f36600462003a6c565b62001184565b3480156200053257600080fd5b5060005462000420906001600160a01b031681565b3480156200055457600080fd5b506200037c6200056636600462003a6c565b60326020526000908152604090205481565b3480156200058557600080fd5b50620003686200126f565b3480156200059d57600080fd5b5062000368620012a8565b348015620005b557600080fd5b506200036862001363565b348015620005cd57600080fd5b506200037c620005df36600462003a6c565b62001491565b348015620005f257600080fd5b50620003686200060436600462003a8c565b62001528565b3480156200061757600080fd5b506200037c6200062936600462003a6c565b60366020526000908152604090205481565b3480156200064857600080fd5b506200036862001752565b620003686200066436600462003b29565b620017b8565b3480156200067757600080fd5b506200037c62001890565b3480156200068f57600080fd5b506101335460ff16620004ef565b348015620006aa57600080fd5b50600854620004ef9060ff1681565b348015620006c657600080fd5b506200037c60055481565b348015620006de57600080fd5b50620006f6620006f036600462003af9565b62001946565b604080516001600160a01b039095168552602085019390935291830152606082015260800162000386565b3480156200072e57600080fd5b50620003686200198b565b3480156200074657600080fd5b50620003686200075836600462003bf9565b620019c4565b3480156200076b57600080fd5b50620003686200077d36600462003a6c565b62001bd2565b3480156200079057600080fd5b506200036862001c88565b348015620007a857600080fd5b506200036862001cbf565b348015620007c057600080fd5b5060015462000420906001600160a01b031681565b348015620007e257600080fd5b5060cf546001600160a01b031662000420565b3480156200080257600080fd5b50620003686200081436600462003a6c565b62001cee565b3480156200082757600080fd5b506200085d6200083936600462003c65565b60336020908152600092835260408084209091529082529020805460019091015482565b6040805192835260208301919091520162000386565b3480156200088057600080fd5b5060025462000420906001600160a01b031681565b348015620008a257600080fd5b5062000368620008b436600462003a8c565b62001f05565b348015620008c757600080fd5b5062000368620008d936600462003a6c565b62002315565b348015620008ec57600080fd5b50620004ef620008fe36600462003af9565b6200232f565b3480156200091157600080fd5b50620003686200092336600462003c9c565b6200239e565b3480156200093657600080fd5b50620004ef6200094836600462003af9565b62002454565b3480156200095b57600080fd5b50620009ac6200096d36600462003a8c565b603760209081526000928352604080842090915290825290208054600182015460028301546003909301546001600160a01b0390921692909160ff1684565b604080516001600160a01b0390951685526020850193909352918301521515606082015260800162000386565b348015620009e657600080fd5b506200037c670de0b6b3a764000081565b34801562000a0457600080fd5b506200036862000a1636600462003ccf565b620024c3565b34801562000a2957600080fd5b506200036862002790565b34801562000a4157600080fd5b506200037c62002871565b34801562000a5957600080fd5b5060d0546001600160a01b031662000420565b34801562000a7957600080fd5b506200037c60045481565b34801562000a9157600080fd5b506200036862000aa336600462003a8c565b620029e9565b34801562000ab657600080fd5b506200037c62000ac836600462003a6c565b60346020526000908152604090205481565b34801562000ae757600080fd5b506200037c62093a8081565b60cf546001600160a01b0316331462000b295760405162461bcd60e51b815260040162000b209062003d16565b60405180910390fd5b6002546001600160a01b0390811690821662000b885760405162461bcd60e51b815260206004820152601760248201527f5031324d696e653a2067632063616e6e6f742062652030000000000000000000604482015260640162000b20565b600280546001600160a01b0319166001600160a01b0384811691821790925560408051928416835260208301919091527f9b1ae61f53f47914159f1f1397501254f37fc99c47286e6b059ce40b382bf0b491015b60405180910390a15050565b60008062000bf68462001491565b905060006007828154811062000c105762000c1062003d4d565b6000918252602080832060408051608081018252600490940290910180546001600160a01b0390811685526001820154858501526002808301548685015260039092015460608601528a168552603683528185205460378452828620818752909352908420015491935042918083101562000c8c578062000c8e565b825b9350600060055486600001516001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000cd8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000cfe919062003d63565b60045462000d0d908c62003d93565b62000d19919062003db5565b62000d25919062003dd8565b9050600062000d35868362003dd8565b9b9a5050505050505050505050565b60008062000d528462001491565b60009081526033602090815260408083206001600160a01b038716845290915290205491505092915050565b60006002610101540362000da65760405162461bcd60e51b815260040162000b209062003df3565b6002610101556101335460ff161562000dd35760405162461bcd60e51b815260040162000b209062003e2a565b600062000de08362001491565b600081815260336020908152604080832033845290915290205490915062000e4b5760405162461bcd60e51b815260206004820152601860248201527f5031324d696e653a206e6f207374616b656420746f6b656e0000000000000000604482015260640162000b20565b60006007828154811062000e635762000e6362003d4d565b6000918252602080832085845260338252604080852033865290925292206004909102909101915062000e968362002c98565b60008160010154670de0b6b3a76400008460010154846000015462000ebc919062003d93565b62000ec8919062003db5565b62000ed4919062003e54565b9050670de0b6b3a76400008360010154836000015462000ef5919062003d93565b62000f01919062003db5565b600183015562000f1233826200303b565b60016101015595945050505050565b6002610101540362000f475760405162461bcd60e51b815260040162000b209062003df3565b60026101015560085460ff1662000f9d5760405162461bcd60e51b81526020600482015260196024820152785031324d696e653a206e6f20656d657267656e6379206e6f7760381b604482015260640162000b20565b60095442101562000fed5760405162461bcd60e51b8152602060048201526019602482015278140c4c935a5b994e881b9bdd081d5b9b1bd8dad959081e595d603a1b604482015260640162000b20565b600062000ffa8262001491565b905060006007828154811062001014576200101462003d4d565b6000918252602080832085845260338252604080852033865290925292208054600490920290920192506200108c5760405162461bcd60e51b815260206004820152601c60248201527f5031324d696e653a20776974686f757420616e79206c70546f6b656e00000000604482015260640162000b20565b8054600080835560018301558254620010b0906001600160a01b0316338362003125565b604080516001600160a01b0387168152602081018390527fdbf7eb12dbcd8a10d5042f573e98fb78d4d13563e2591a961fc35b6d6c2b7841910160405180910390a15050600161010155505050565b60cf546000906001600160a01b031633146200112f5760405162461bcd60e51b815260040162000b209062003d16565b60068054908390556200114162001cbf565b60408051828152602081018590527f3a8f7e78fe36c54b4f888a309efa91eba128acb04cc1c2ffa0e5c4db7b4a878591015b60405180910390a150600192915050565b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163003620011cf5760405162461bcd60e51b815260040162000b209062003e6e565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166200121a60008051602062004b3d833981519152546001600160a01b031690565b6001600160a01b031614620012435760405162461bcd60e51b815260040162000b209062003eba565b6200124e816200318f565b604080516000808252602082019092526200126c91839190620031bc565b50565b60cf546001600160a01b031633146200129c5760405162461bcd60e51b815260040162000b209062003d16565b620012a662003334565b565b60075460005b818110156200135f576000818152603360209081526040808320338452909152902054156200134a57600060078281548110620012ef57620012ef62003d4d565b600091825260209182902060408051608081018252600490930290910180546001600160a01b03168084526001820154948401949094526002810154918301919091526003015460608201529150620013489062000f21565b505b80620013568162003f06565b915050620012ae565b5050565b60cf546001600160a01b03163314620013905760405162461bcd60e51b815260040162000b209062003d16565b60085460ff16620013e05760405162461bcd60e51b81526020600482015260196024820152785031324d696e653a206e6f20656d657267656e6379206e6f7760381b604482015260640162000b20565b600954421015620014305760405162461bcd60e51b8152602060048201526019602482015278140c4c935a5b994e881b9bdd081d5b9b1bd8dad959081e595d603a1b604482015260640162000b20565b6003546040516350e0278760e11b81523360048201526001600160a01b039091169063a1c04f0e90602401600060405180830381600087803b1580156200147657600080fd5b505af11580156200148b573d6000803e3d6000fd5b50505050565b6001600160a01b0381166000908152603260205260408120548290620014fa5760405162461bcd60e51b815260206004820152601b60248201527f5031324d696e653a204c5020546f6b656e204e6f742045786973740000000000604482015260640162000b20565b6001600160a01b038316600090815260326020526040902054620015219060019062003e54565b9392505050565b6101335460ff16156200154f5760405162461bcd60e51b815260040162000b209062003e2a565b60026101015403620015755760405162461bcd60e51b815260040162000b209062003df3565b6002610101556000620015888362001491565b9050600060078281548110620015a257620015a262003d4d565b60009182526020808320858452603382526040808520338652909252922060049091029091019150620015d58362002c98565b8054156200162b5760008160010154670de0b6b3a76400008460010154846000015462001603919062003d93565b6200160f919062003db5565b6200161b919062003e54565b90506200162933826200303b565b505b836000036200167d5760405162461bcd60e51b815260206004820152601860248201527f5031324d696e653a206e65656420616d6f756e74203e20300000000000000000604482015260640162000b20565b8381600001600082825462001693919062003dd8565b9250508190555083826002016000828254620016b0919062003dd8565b90915550508154620016ce906001600160a01b0316333087620033cb565b60018201548154670de0b6b3a764000091620016ea9162003d93565b620016f6919062003db5565b600182015580546002830154604080518781526020810193909352820152839033907f7162984403f6c73c8639375d45a9187dfd04602231bd8e587c415718b5f7e5f99060600160405180910390a35050600161010155505050565b60d0546001600160a01b03163314620017ae5760405162461bcd60e51b815260206004820152601e60248201527f536166654f776e61626c653a2063616c6c657220213d2070656e64696e670000604482015260640162000b20565b620012a662003405565b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163003620018035760405162461bcd60e51b815260040162000b209062003e6e565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166200184e60008051602062004b3d833981519152546001600160a01b031690565b6001600160a01b031614620018775760405162461bcd60e51b815260040162000b209062003eba565b62001882826200318f565b6200135f82826001620031bc565b6000306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614620019325760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c0000000000000000606482015260840162000b20565b5060008051602062004b3d83398151915290565b600781815481106200195757600080fd5b600091825260209091206004909102018054600182015460028301546003909301546001600160a01b039092169350919084565b60cf546001600160a01b03163314620019b85760405162461bcd60e51b815260040162000b209062003d16565b620012a660006200346e565b603854610100900460ff16620019e15760385460ff1615620019e5565b303b155b62001a4a5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840162000b20565b603854610100900460ff1615801562001a6d576038805461ffff19166101011790555b6001600160a01b03871662001ac55760405162461bcd60e51b815260206004820152601d60248201527f5031324d696e653a20703132546f6b656e2063616e6e6f742062652030000000604482015260640162000b20565b6001600160a01b03861662001aee5760405162461bcd60e51b815260040162000b209062003f22565b600180546001600160a01b03808a166001600160a01b031992831617909255600080548984169083161790556002805492881692909116919091179055604051879062001b3b9062003a48565b6001600160a01b039091168152602001604051809103906000f08015801562001b68573d6000803e3d6000fd5b50600380546001600160a01b0319166001600160a01b039290921691909117905560048490556005839055600682905562001ba2620034c0565b62001bac620034f2565b62001bb662003529565b801562001bc9576038805461ff00191690555b50505050505050565b60cf546001600160a01b0316331462001bff5760405162461bcd60e51b815260040162000b209062003d16565b6000546001600160a01b0390811690821662001c2f5760405162461bcd60e51b815260040162000b209062003f22565b600080546001600160a01b0319166001600160a01b0384811691821790925560408051928416835260208301919091527fb5004c6dd32173c6ee128faa447de600665c96ba213f764d94599ca5ceda78b1910162000bdc565b60cf546001600160a01b0316331462001cb55760405162461bcd60e51b815260040162000b209062003d16565b620012a66200355e565b60075460005b818110156200135f5762001cd98162002c98565b8062001ce58162003f06565b91505062001cc5565b6001600160a01b03811660009081526032602052604090205481901562001d585760405162461bcd60e51b815260206004820152601f60248201527f5031324d696e653a204c5020546f6b656e20416c726561647920457869737400604482015260640162000b20565b6101335460ff161562001d7f5760405162461bcd60e51b815260040162000b209062003e2a565b6000546001600160a01b031633148062001da3575060cf546001600160a01b031633145b62001df15760405162461bcd60e51b815260206004820181905260248201527f5031324d696e653a206e6f7420703132666163746f7279206f72206f776e6572604482015260640162000b20565b50604080516080810182526001600160a01b0392831680825260006020808401828152848601838152606086018481526007805460018101825581875297517fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c688600490990298890180546001600160a01b03191691909b161790995591517fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c689870155517fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c68a860155517fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c68b9094019390935581815260358352838120818052835283812042905593549084526032909152912055565b6002610101540362001f2b5760405162461bcd60e51b815260040162000b209062003df3565b6002610101556101335460ff161562001f585760405162461bcd60e51b815260040162000b209062003e2a565b600062001f658362001491565b6001600160a01b0380851660009081526037602090815260408083208784529091529020549192501633811462001fdf5760405162461bcd60e51b815260206004820152601f60248201527f5031324d696e653a2063616c6c6572206e6f7420746f6b656e206f776e657200604482015260640162000b20565b60006007838154811062001ff75762001ff762003d4d565b600091825260208083208684526033825260408085206001600160a01b0380891687529084528186208054918c168752603785528287208b88529094529420600101546004909302019350911015620020935760405162461bcd60e51b815260206004820152601a60248201527f5031324d696e653a20776974686472617720746f6f206d756368000000000000604482015260640162000b20565b6001600160a01b03861660009081526037602090815260408083208884529091529020600201544210156200210b5760405162461bcd60e51b815260206004820181905260248201527f5031324d696e653a20756e6c6f636b2074696d65206e6f742072656163686564604482015260640162000b20565b6001600160a01b038616600090815260376020908152604080832088845290915290206003015460ff1615620021845760405162461bcd60e51b815260206004820152601a60248201527f5031324d696e653a20616c72656164792077697468647261776e000000000000604482015260640162000b20565b6001600160a01b03861660009081526037602090815260408083208884529091529020600301805460ff19166001179055620021c08462002c98565b60008160010154670de0b6b3a764000084600101548460000154620021e6919062003d93565b620021f2919062003db5565b620021fe919062003e54565b90506200220c84826200303b565b6001600160a01b03871660009081526037602090815260408083208984529091528120600101548354909182918591906200224990849062003e54565b925050819055508084600201600082825462002266919062003e54565b909155505060018401548354670de0b6b3a764000091620022879162003d93565b62002293919062003db5565b60018401558354620022b0906001600160a01b0316868362003125565b82546002850154604080518481526020810193909352820152879087906001600160a01b038816907f3b6169f3eda7dec0c3762f33d51b47c9417626ef6b03a4112469b10e2542283c9060600160405180910390a45050600161010155505050505050565b6000620023228262001491565b90506200135f8162002c98565b60cf546000906001600160a01b031633146200235f5760405162461bcd60e51b815260040162000b209062003d16565b600480549083905560408051828152602081018590527fb936e6dfcf3fec6bfb7d23d91ce9406c4ce74825de73cf38c764ed900731d7a4910162001173565b60cf546001600160a01b03163314620023cb5760405162461bcd60e51b815260040162000b209062003d16565b6001600160a01b038216620024235760405162461bcd60e51b815260206004820152601b60248201527f536166654f776e61626c653a206e6577206f776e657220697320300000000000604482015260640162000b20565b801562002435576200135f826200346e565b60d080546001600160a01b0319166001600160a01b0384161790555050565b60cf546000906001600160a01b03163314620024845760405162461bcd60e51b815260040162000b209062003d16565b600580549083905560408051828152602081018590527f43c057f209152d56f2de0fa1d79291670facf6161810b2392b949bf1647cc236910162001173565b6101335460ff1615620024ea5760405162461bcd60e51b815260040162000b209062003e2a565b6000546001600160a01b03163314620025465760405162461bcd60e51b815260206004820152601e60248201527f5031324d696e653a2063616c6c6572206e6f7420703132666163746f72790000604482015260640162000b20565b620025518362001cee565b60006200255e8462001491565b6040516370a0823160e01b81523060048201529091506000906001600160a01b038616906370a0823190602401602060405180830381865afa158015620025a9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620025cf919062003d63565b9050600060078381548110620025e957620025e962003d4d565b600091825260208083208684526033825260408085206001600160a01b038a168652909252922060026004909202909201908101549092506200262d908462003e54565b86111580156200263d5750600086115b6200268b5760405162461bcd60e51b815260206004820152601760248201527f5031324d696e653a20616d6f756e74206e6f74206d6574000000000000000000604482015260640162000b20565b6001826003016000828254620026a2919062003dd8565b909155505081546001600160a01b03166000908152603560209081526040808320600386015484529091528120429055815487918391620026e590849062003dd8565b925050819055508582600201600082825462002702919062003dd8565b909155505060018201548154670de0b6b3a764000091620027239162003d93565b6200272f919062003db5565b60018201558054600283015460408051898152602081019390935282015284906001600160a01b038716907f7162984403f6c73c8639375d45a9187dfd04602231bd8e587c415718b5f7e5f99060600160405180910390a350505050505050565b60cf546001600160a01b03163314620027bd5760405162461bcd60e51b815260040162000b209062003d16565b60085460ff1615620028125760405162461bcd60e51b815260206004820152601760248201527f5031324d696e653a20616c726561647920657869737473000000000000000000604482015260640162000b20565b6008805460ff19166001179055620151806200282f814262003dd8565b60098190556040805133815260208101929092527f60d80110a4ada21fcf122778cf9fd06e96a62cfab4577aa054d8f50703342c94910160405180910390a150565b600060026101015403620028995760405162461bcd60e51b815260040162000b209062003df3565b6002610101556101335460ff1615620028c65760405162461bcd60e51b815260040162000b209062003e2a565b6007546000805b82811015620029d057600081815260336020908152604080832033845290915290205415620029bb576000600782815481106200290e576200290e62003d4d565b60009182526020808320858452603382526040808520338652909252922060049091029091019150620029418362002c98565b600180820154908301548254670de0b6b3a764000091620029629162003d93565b6200296e919062003db5565b6200297a919062003e54565b62002986908562003dd8565b9350670de0b6b3a764000082600101548260000154620029a7919062003d93565b620029b3919062003db5565b600190910155505b80620029c78162003f06565b915050620028cd565b50620029dd33826200303b565b91505060016101015590565b6101335460ff161562002a105760405162461bcd60e51b815260040162000b209062003e2a565b6002610101540362002a365760405162461bcd60e51b815260040162000b209062003df3565b600261010155600062002a498362001491565b905060006007828154811062002a635762002a6362003d4d565b60009182526020808320858452603382526040808520338652909252922080546004909202909201925084111562002ade5760405162461bcd60e51b815260206004820152601a60248201527f5031324d696e653a20776974686472617720746f6f206d756368000000000000604482015260640162000b20565b62002ae98362002c98565b80541562002b3f5760008160010154670de0b6b3a76400008460010154846000015462002b17919062003d93565b62002b23919062003db5565b62002b2f919062003e54565b905062002b3d33826200303b565b505b600062002b4d868662000be8565b6001600160a01b038781166000818152603660209081526040808320805482518085018790528084018e905233606082018190526080808301939093528451808303909301835260a082018086528351938701939093209384905561012082018552825260c081018e815260e082018a81526101009092018781529787526037865284872084885290955292909420935184546001600160a01b031916961695909517835590516001838101919091559051600283015591516003909101805460ff191691151591909117905585015484549293509091670de0b6b3a76400009162002c399162003d93565b62002c45919062003db5565b600184015560408051868152602081018490528291889133917f272443b29ab847e8afe0555c70202fdd13f55ad0256863dbf7babad95689f915910160405180910390a450506001610101555050505050565b6101335460ff161562002cbf5760405162461bcd60e51b815260040162000b209062003e2a565b60006007828154811062002cd75762002cd762003d4d565b60009182526020808320600492830201600181015481546001600160a01b039081168087526035855260408088206003860154895290955295849020546002549451638aca6a2360e01b8152958601969096529195509392911690638aca6a2390602401600060405180830381600087803b15801562002d5657600080fd5b505af115801562002d6b573d6000803e3d6000fd5b5050505080421162002dc05760405162461bcd60e51b815260206004820152601a60248201527f5031324d696e653a206e6f742074696d6520746f20636865636b000000000000604482015260640162000b20565b826002015460000362002e2057600183600301600082825462002de4919062003dd8565b909155505082546001600160a01b03166000908152603560209081526040808320600390960154835294905292909220429055506200126c9050565b80600062002e5762093a808062002e38818662003dd8565b62002e44919062003db5565b62002e50919062003d93565b42620035bc565b905060005b6101f481101562002fa157600062002e75848462003e54565b60025488549192506000916001600160a01b03918216916365c60468911662093a8062002ea3818a62003db5565b62002eaf919062003d93565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af115801562002efb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062002f21919062003d63565b90508760020154828260065462002f39919062003d93565b62002f45919062003d93565b62002f51919062003db5565b62002f5d908862003dd8565b965042840362002f6f57505062002fa1565b83945062002f8762093a808562002e50919062003dd8565b93505050808062002f989062003f06565b91505062002e5c565b50600180860185905560038601805460009062002fc090849062003dd8565b909155505084546001600160a01b03908116600090815260356020908152604080832060038a015484528252918290204290556002880154885460018a01549351938452909316917fd5d17e0ef95673e9f3758eb2dd453e0a395922322e5462909459da8ed6ea3b40910160405180910390a3505050505050565b6003546040516310b3879160e11b81526001600160a01b03848116600483015260248201849052909116906321670f2290604401600060405180830381600087803b1580156200308a57600080fd5b505af11580156200309f573d6000803e3d6000fd5b5050506001600160a01b038316600090815260346020526040902054620030c99150829062003dd8565b6001600160a01b038316600081815260346020526040908190209290925590517f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d490620031199084815260200190565b60405180910390a25050565b6040516001600160a01b0383166024820152604481018290526200318a90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152620035d4565b505050565b60cf546001600160a01b031633146200126c5760405162461bcd60e51b815260040162000b209062003d16565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff1615620031f2576200318a83620036ad565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156200324f575060408051601f3d908101601f191682019092526200324c9181019062003d63565b60015b620032b45760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b606482015260840162000b20565b60008051602062004b3d8339815191528114620033265760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b606482015260840162000b20565b506200318a8383836200374c565b6101335460ff16620033805760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640162000b20565b610133805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6040516001600160a01b03808516602483015283166044820152606481018290526200148b9085906323b872dd60e01b9060840162003152565b60cf5460d0546040516001600160a01b03928316929091169082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35060d0805460cf80546001600160a01b03199081166001600160a01b03841617909155169055565b60cf80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b603854610100900460ff16620034ea5760405162461bcd60e51b815260040162000b209062003f65565b600161010155565b603854610100900460ff166200351c5760405162461bcd60e51b815260040162000b209062003f65565b610133805460ff19169055565b603854610100900460ff16620035535760405162461bcd60e51b815260040162000b209062003f65565b620012a6336200346e565b6101335460ff1615620035855760405162461bcd60e51b815260040162000b209062003e2a565b610133805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258620033ae3390565b6000818310620035cd578162001521565b5090919050565b60006200362b826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316620037779092919063ffffffff16565b8051909150156200318a57808060200190518101906200364c919062003fb0565b6200318a5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840162000b20565b6001600160a01b0381163b6200371c5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b606482015260840162000b20565b60008051602062004b3d83398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b620037578362003790565b600082511180620037655750805b156200318a576200148b8383620037d2565b6060620037888484600085620038cf565b949350505050565b6200379b81620036ad565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606001600160a01b0383163b6200383c5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b606482015260840162000b20565b600080846001600160a01b03168460405162003859919062003fff565b600060405180830381855af49150503d806000811462003896576040519150601f19603f3d011682016040523d82523d6000602084013e6200389b565b606091505b5091509150620038c6828260405180606001604052806027815260200162004b5d6027913962003a0a565b95945050505050565b606082471015620039325760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840162000b20565b6001600160a01b0385163b6200398b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640162000b20565b600080866001600160a01b03168587604051620039a9919062003fff565b60006040518083038185875af1925050503d8060008114620039e8576040519150601f19603f3d011682016040523d82523d6000602084013e620039ed565b606091505b5091509150620039ff82828662003a0a565b979650505050505050565b6060831562003a1b57508162001521565b82511562003a2c5782518084602001fd5b8160405162461bcd60e51b815260040162000b2091906200401d565b610aea806200405383390190565b6001600160a01b03811681146200126c57600080fd5b60006020828403121562003a7f57600080fd5b8135620015218162003a56565b6000806040838503121562003aa057600080fd5b823562003aad8162003a56565b946020939093013593505050565b6000806040838503121562003acf57600080fd5b823562003adc8162003a56565b9150602083013562003aee8162003a56565b809150509250929050565b60006020828403121562003b0c57600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b6000806040838503121562003b3d57600080fd5b823562003b4a8162003a56565b9150602083013567ffffffffffffffff8082111562003b6857600080fd5b818501915085601f83011262003b7d57600080fd5b81358181111562003b925762003b9262003b13565b604051601f8201601f19908116603f0116810190838211818310171562003bbd5762003bbd62003b13565b8160405282815288602084870101111562003bd757600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b60008060008060008060c0878903121562003c1357600080fd5b863562003c208162003a56565b9550602087013562003c328162003a56565b9450604087013562003c448162003a56565b959894975094956060810135955060808101359460a0909101359350915050565b6000806040838503121562003c7957600080fd5b82359150602083013562003aee8162003a56565b80151581146200126c57600080fd5b6000806040838503121562003cb057600080fd5b823562003cbd8162003a56565b9150602083013562003aee8162003c8d565b60008060006060848603121562003ce557600080fd5b833562003cf28162003a56565b925060208401359150604084013562003d0b8162003a56565b809150509250925092565b6020808252601d908201527f536166654f776e61626c653a2063616c6c6572206e6f74206f776e6572000000604082015260600190565b634e487b7160e01b600052603260045260246000fd5b60006020828403121562003d7657600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161562003db05762003db062003d7d565b500290565b60008262003dd357634e487b7160e01b600052601260045260246000fd5b500490565b6000821982111562003dee5762003dee62003d7d565b500190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b60008282101562003e695762003e6962003d7d565b500390565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b60006001820162003f1b5762003f1b62003d7d565b5060010190565b60208082526023908201527f5031324d696e653a20703132436f696e466163746f72792063616e6e6f74206260408201526206520360ec1b606082015260800190565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60006020828403121562003fc357600080fd5b8151620015218162003c8d565b60005b8381101562003fed57818101518382015260200162003fd3565b838111156200148b5750506000910152565b600082516200401381846020870162003fd0565b9190910192915050565b60208152600082518060208401526200403e81604085016020870162003fd0565b601f01601f1916919091016040019291505056fe608060405234801561001057600080fd5b50604051610aea380380610aea83398101604081905261002f91610107565b610038336100b7565b6001600160a01b0381166100925760405162461bcd60e51b815260206004820152601a60248201527f50313252563a20616464726573732063616e6e6f742062652030000000000000604482015260640160405180910390fd5b600280546001600160a01b0319166001600160a01b0392909216919091179055610137565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006020828403121561011957600080fd5b81516001600160a01b038116811461013057600080fd5b9392505050565b6109a4806101466000396000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c80638da5cb5b1161005b5780638da5cb5b146100e1578063a1c04f0e146100f2578063b242e53414610105578063e30c39781461011857600080fd5b806321670f221461008d5780634e71e0c8146100a2578063715018a6146100aa5780638b7c37a3146100b2575b600080fd5b6100a061009b3660046107f5565b610129565b005b6100a0610177565b6100a06101db565b6002546100c5906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b6000546001600160a01b03166100c5565b6100a061010036600461081f565b61020f565b6100a061011336600461084b565b6103c7565b6001546001600160a01b03166100c5565b6000546001600160a01b0316331461015c5760405162461bcd60e51b815260040161015390610882565b60405180910390fd5b600254610173906001600160a01b03168383610475565b5050565b6001546001600160a01b031633146101d15760405162461bcd60e51b815260206004820152601e60248201527f536166654f776e61626c653a2063616c6c657220213d2070656e64696e6700006044820152606401610153565b6101d96104cc565b565b6000546001600160a01b031633146102055760405162461bcd60e51b815260040161015390610882565b6101d96000610534565b6000546001600160a01b031633146102395760405162461bcd60e51b815260040161015390610882565b6001600160a01b03811661028f5760405162461bcd60e51b815260206004820152601a60248201527f50313252563a20616464726573732063616e6e6f7420626520300000000000006044820152606401610153565b6002546040516370a0823160e01b81523060048201526103149183916001600160a01b03909116906370a0823190602401602060405180830381865afa1580156102dd573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061030191906108b9565b6002546001600160a01b03169190610475565b6002546040516370a0823160e01b81523060048201527ff58b081c2d077b17c9ef90e17090bd89e8b8b98933872e29c9352269eda3823f916001600160a01b03169081906370a0823190602401602060405180830381865afa15801561037e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103a291906108b9565b604080516001600160a01b03909316835260208301919091520160405180910390a150565b6000546001600160a01b031633146103f15760405162461bcd60e51b815260040161015390610882565b6001600160a01b0382166104475760405162461bcd60e51b815260206004820152601b60248201527f536166654f776e61626c653a206e6577206f776e6572206973203000000000006044820152606401610153565b80156104565761017382610534565b600180546001600160a01b0319166001600160a01b0384161790555050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526104c7908490610584565b505050565b600080546001546040516001600160a01b0392831693919092169183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35060018054600080546001600160a01b03199081166001600160a01b03841617909155169055565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006105d9826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166106569092919063ffffffff16565b8051909150156104c757808060200190518101906105f791906108d2565b6104c75760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610153565b6060610665848460008561066f565b90505b9392505050565b6060824710156106d05760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610153565b6001600160a01b0385163b6107275760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610153565b600080866001600160a01b03168587604051610743919061091f565b60006040518083038185875af1925050503d8060008114610780576040519150601f19603f3d011682016040523d82523d6000602084013e610785565b606091505b50915091506107958282866107a0565b979650505050505050565b606083156107af575081610668565b8251156107bf5782518084602001fd5b8160405162461bcd60e51b8152600401610153919061093b565b80356001600160a01b03811681146107f057600080fd5b919050565b6000806040838503121561080857600080fd5b610811836107d9565b946020939093013593505050565b60006020828403121561083157600080fd5b610668826107d9565b801515811461084857600080fd5b50565b6000806040838503121561085e57600080fd5b610867836107d9565b915060208301356108778161083a565b809150509250929050565b6020808252601d908201527f536166654f776e61626c653a2063616c6c6572206e6f74206f776e6572000000604082015260600190565b6000602082840312156108cb57600080fd5b5051919050565b6000602082840312156108e457600080fd5b81516106688161083a565b60005b8381101561090a5781810151838201526020016108f2565b83811115610919576000848401525b50505050565b600082516109318184602087016108ef565b9190910192915050565b602081526000825180602084015261095a8160408501602087016108ef565b601f01601f1916919091016040019291505056fea264697066735822122030b2370952a9106907ba0e8407dfe3d445ea28be7fb700ab36854edea45bd24964736f6c634300080f0033360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220628e014abae24c985f11e60491a97dee0da0899048f5eed64580778b0a6754fd64736f6c634300080f0033", + "deployedBytecode": "0x6080604052600436106200033e5760003560e01c8063689d84e411620001b1578063afdbf3c211620000ee578063caa6fea411620000a1578063e48f427b1162000078578063e48f427b1462000a6c578063ea4b4ca31462000a84578063ec83a76a1462000aa9578063f4359ce51462000ada57600080fd5b8063caa6fea41462000a1c578063d1058e591462000a34578063e30c39781462000a4c57600080fd5b8063afdbf3c214620008df578063b242e5341462000904578063b309bc981462000929578063b3868125146200094e578063c2ee3a0814620009d9578063c36b286e14620009f757600080fd5b80638b7c37a3116200016457806393f1a40b116200013b57806393f1a40b146200081a57806399eecb3b1462000873578063a24ed7421462000895578063a972985e14620008ba57600080fd5b80638b7c37a314620007b35780638da5cb5b14620007d55780639049f9d214620007f557600080fd5b8063689d84e414620006d1578063715018a61462000721578063728cdbca14620007395780637e183ba0146200075e5780638456cb5914620007835780638983727c146200079b57600080fd5b80633d16433e11620002805780634e13acc7116200023357806352d1902d116200020a57806352d1902d146200066a5780635c975abb14620006825780635f9e8f82146200069d578063614bb60a14620006b957600080fd5b80634e13acc7146200060a5780634e71e0c8146200063b5780634f1ef286146200065357600080fd5b80633d16433e14620005475780633f4ba83a14620005785780634016634014620005905780634146a07314620005a857806343b55f3514620005c057806347e7ef2414620005e557600080fd5b80632b57474d11620002f65780632f321b7111620002cd5780632f321b7114620004a557806334fcf43714620004ca5780633659cfe614620005005780633cd784f1146200052557600080fd5b80632b57474d14620004395780632bf6c5bc14620004755780632c4e722e146200048d57600080fd5b806291d2b81462000343578063081e3eda146200036a5780630f48fa5f146200038f57806319a78f5514620003b45780631e83409a14620003d957806320fe4adc14620003fe575b600080fd5b3480156200035057600080fd5b50620003686200036236600462003a6c565b62000af3565b005b3480156200037757600080fd5b506007545b6040519081526020015b60405180910390f35b3480156200039c57600080fd5b506200037c620003ae36600462003a8c565b62000be8565b348015620003c157600080fd5b506200037c620003d336600462003abb565b62000d44565b348015620003e657600080fd5b506200037c620003f836600462003a6c565b62000d7e565b3480156200040b57600080fd5b5060035462000420906001600160a01b031681565b6040516001600160a01b03909116815260200162000386565b3480156200044657600080fd5b506200037c6200045836600462003a8c565b603560209081526000928352604080842090915290825290205481565b3480156200048257600080fd5b506200037c60095481565b3480156200049a57600080fd5b506200037c60065481565b348015620004b257600080fd5b5062000368620004c436600462003a6c565b62000f21565b348015620004d757600080fd5b50620004ef620004e936600462003af9565b620010ff565b604051901515815260200162000386565b3480156200050d57600080fd5b50620003686200051f36600462003a6c565b62001184565b3480156200053257600080fd5b5060005462000420906001600160a01b031681565b3480156200055457600080fd5b506200037c6200056636600462003a6c565b60326020526000908152604090205481565b3480156200058557600080fd5b50620003686200126f565b3480156200059d57600080fd5b5062000368620012a8565b348015620005b557600080fd5b506200036862001363565b348015620005cd57600080fd5b506200037c620005df36600462003a6c565b62001491565b348015620005f257600080fd5b50620003686200060436600462003a8c565b62001528565b3480156200061757600080fd5b506200037c6200062936600462003a6c565b60366020526000908152604090205481565b3480156200064857600080fd5b506200036862001752565b620003686200066436600462003b29565b620017b8565b3480156200067757600080fd5b506200037c62001890565b3480156200068f57600080fd5b506101335460ff16620004ef565b348015620006aa57600080fd5b50600854620004ef9060ff1681565b348015620006c657600080fd5b506200037c60055481565b348015620006de57600080fd5b50620006f6620006f036600462003af9565b62001946565b604080516001600160a01b039095168552602085019390935291830152606082015260800162000386565b3480156200072e57600080fd5b50620003686200198b565b3480156200074657600080fd5b50620003686200075836600462003bf9565b620019c4565b3480156200076b57600080fd5b50620003686200077d36600462003a6c565b62001bd2565b3480156200079057600080fd5b506200036862001c88565b348015620007a857600080fd5b506200036862001cbf565b348015620007c057600080fd5b5060015462000420906001600160a01b031681565b348015620007e257600080fd5b5060cf546001600160a01b031662000420565b3480156200080257600080fd5b50620003686200081436600462003a6c565b62001cee565b3480156200082757600080fd5b506200085d6200083936600462003c65565b60336020908152600092835260408084209091529082529020805460019091015482565b6040805192835260208301919091520162000386565b3480156200088057600080fd5b5060025462000420906001600160a01b031681565b348015620008a257600080fd5b5062000368620008b436600462003a8c565b62001f05565b348015620008c757600080fd5b5062000368620008d936600462003a6c565b62002315565b348015620008ec57600080fd5b50620004ef620008fe36600462003af9565b6200232f565b3480156200091157600080fd5b50620003686200092336600462003c9c565b6200239e565b3480156200093657600080fd5b50620004ef6200094836600462003af9565b62002454565b3480156200095b57600080fd5b50620009ac6200096d36600462003a8c565b603760209081526000928352604080842090915290825290208054600182015460028301546003909301546001600160a01b0390921692909160ff1684565b604080516001600160a01b0390951685526020850193909352918301521515606082015260800162000386565b348015620009e657600080fd5b506200037c670de0b6b3a764000081565b34801562000a0457600080fd5b506200036862000a1636600462003ccf565b620024c3565b34801562000a2957600080fd5b506200036862002790565b34801562000a4157600080fd5b506200037c62002871565b34801562000a5957600080fd5b5060d0546001600160a01b031662000420565b34801562000a7957600080fd5b506200037c60045481565b34801562000a9157600080fd5b506200036862000aa336600462003a8c565b620029e9565b34801562000ab657600080fd5b506200037c62000ac836600462003a6c565b60346020526000908152604090205481565b34801562000ae757600080fd5b506200037c62093a8081565b60cf546001600160a01b0316331462000b295760405162461bcd60e51b815260040162000b209062003d16565b60405180910390fd5b6002546001600160a01b0390811690821662000b885760405162461bcd60e51b815260206004820152601760248201527f5031324d696e653a2067632063616e6e6f742062652030000000000000000000604482015260640162000b20565b600280546001600160a01b0319166001600160a01b0384811691821790925560408051928416835260208301919091527f9b1ae61f53f47914159f1f1397501254f37fc99c47286e6b059ce40b382bf0b491015b60405180910390a15050565b60008062000bf68462001491565b905060006007828154811062000c105762000c1062003d4d565b6000918252602080832060408051608081018252600490940290910180546001600160a01b0390811685526001820154858501526002808301548685015260039092015460608601528a168552603683528185205460378452828620818752909352908420015491935042918083101562000c8c578062000c8e565b825b9350600060055486600001516001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000cd8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062000cfe919062003d63565b60045462000d0d908c62003d93565b62000d19919062003db5565b62000d25919062003dd8565b9050600062000d35868362003dd8565b9b9a5050505050505050505050565b60008062000d528462001491565b60009081526033602090815260408083206001600160a01b038716845290915290205491505092915050565b60006002610101540362000da65760405162461bcd60e51b815260040162000b209062003df3565b6002610101556101335460ff161562000dd35760405162461bcd60e51b815260040162000b209062003e2a565b600062000de08362001491565b600081815260336020908152604080832033845290915290205490915062000e4b5760405162461bcd60e51b815260206004820152601860248201527f5031324d696e653a206e6f207374616b656420746f6b656e0000000000000000604482015260640162000b20565b60006007828154811062000e635762000e6362003d4d565b6000918252602080832085845260338252604080852033865290925292206004909102909101915062000e968362002c98565b60008160010154670de0b6b3a76400008460010154846000015462000ebc919062003d93565b62000ec8919062003db5565b62000ed4919062003e54565b9050670de0b6b3a76400008360010154836000015462000ef5919062003d93565b62000f01919062003db5565b600183015562000f1233826200303b565b60016101015595945050505050565b6002610101540362000f475760405162461bcd60e51b815260040162000b209062003df3565b60026101015560085460ff1662000f9d5760405162461bcd60e51b81526020600482015260196024820152785031324d696e653a206e6f20656d657267656e6379206e6f7760381b604482015260640162000b20565b60095442101562000fed5760405162461bcd60e51b8152602060048201526019602482015278140c4c935a5b994e881b9bdd081d5b9b1bd8dad959081e595d603a1b604482015260640162000b20565b600062000ffa8262001491565b905060006007828154811062001014576200101462003d4d565b6000918252602080832085845260338252604080852033865290925292208054600490920290920192506200108c5760405162461bcd60e51b815260206004820152601c60248201527f5031324d696e653a20776974686f757420616e79206c70546f6b656e00000000604482015260640162000b20565b8054600080835560018301558254620010b0906001600160a01b0316338362003125565b604080516001600160a01b0387168152602081018390527fdbf7eb12dbcd8a10d5042f573e98fb78d4d13563e2591a961fc35b6d6c2b7841910160405180910390a15050600161010155505050565b60cf546000906001600160a01b031633146200112f5760405162461bcd60e51b815260040162000b209062003d16565b60068054908390556200114162001cbf565b60408051828152602081018590527f3a8f7e78fe36c54b4f888a309efa91eba128acb04cc1c2ffa0e5c4db7b4a878591015b60405180910390a150600192915050565b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163003620011cf5760405162461bcd60e51b815260040162000b209062003e6e565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166200121a60008051602062004b3d833981519152546001600160a01b031690565b6001600160a01b031614620012435760405162461bcd60e51b815260040162000b209062003eba565b6200124e816200318f565b604080516000808252602082019092526200126c91839190620031bc565b50565b60cf546001600160a01b031633146200129c5760405162461bcd60e51b815260040162000b209062003d16565b620012a662003334565b565b60075460005b818110156200135f576000818152603360209081526040808320338452909152902054156200134a57600060078281548110620012ef57620012ef62003d4d565b600091825260209182902060408051608081018252600490930290910180546001600160a01b03168084526001820154948401949094526002810154918301919091526003015460608201529150620013489062000f21565b505b80620013568162003f06565b915050620012ae565b5050565b60cf546001600160a01b03163314620013905760405162461bcd60e51b815260040162000b209062003d16565b60085460ff16620013e05760405162461bcd60e51b81526020600482015260196024820152785031324d696e653a206e6f20656d657267656e6379206e6f7760381b604482015260640162000b20565b600954421015620014305760405162461bcd60e51b8152602060048201526019602482015278140c4c935a5b994e881b9bdd081d5b9b1bd8dad959081e595d603a1b604482015260640162000b20565b6003546040516350e0278760e11b81523360048201526001600160a01b039091169063a1c04f0e90602401600060405180830381600087803b1580156200147657600080fd5b505af11580156200148b573d6000803e3d6000fd5b50505050565b6001600160a01b0381166000908152603260205260408120548290620014fa5760405162461bcd60e51b815260206004820152601b60248201527f5031324d696e653a204c5020546f6b656e204e6f742045786973740000000000604482015260640162000b20565b6001600160a01b038316600090815260326020526040902054620015219060019062003e54565b9392505050565b6101335460ff16156200154f5760405162461bcd60e51b815260040162000b209062003e2a565b60026101015403620015755760405162461bcd60e51b815260040162000b209062003df3565b6002610101556000620015888362001491565b9050600060078281548110620015a257620015a262003d4d565b60009182526020808320858452603382526040808520338652909252922060049091029091019150620015d58362002c98565b8054156200162b5760008160010154670de0b6b3a76400008460010154846000015462001603919062003d93565b6200160f919062003db5565b6200161b919062003e54565b90506200162933826200303b565b505b836000036200167d5760405162461bcd60e51b815260206004820152601860248201527f5031324d696e653a206e65656420616d6f756e74203e20300000000000000000604482015260640162000b20565b8381600001600082825462001693919062003dd8565b9250508190555083826002016000828254620016b0919062003dd8565b90915550508154620016ce906001600160a01b0316333087620033cb565b60018201548154670de0b6b3a764000091620016ea9162003d93565b620016f6919062003db5565b600182015580546002830154604080518781526020810193909352820152839033907f7162984403f6c73c8639375d45a9187dfd04602231bd8e587c415718b5f7e5f99060600160405180910390a35050600161010155505050565b60d0546001600160a01b03163314620017ae5760405162461bcd60e51b815260206004820152601e60248201527f536166654f776e61626c653a2063616c6c657220213d2070656e64696e670000604482015260640162000b20565b620012a662003405565b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163003620018035760405162461bcd60e51b815260040162000b209062003e6e565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166200184e60008051602062004b3d833981519152546001600160a01b031690565b6001600160a01b031614620018775760405162461bcd60e51b815260040162000b209062003eba565b62001882826200318f565b6200135f82826001620031bc565b6000306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614620019325760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c0000000000000000606482015260840162000b20565b5060008051602062004b3d83398151915290565b600781815481106200195757600080fd5b600091825260209091206004909102018054600182015460028301546003909301546001600160a01b039092169350919084565b60cf546001600160a01b03163314620019b85760405162461bcd60e51b815260040162000b209062003d16565b620012a660006200346e565b603854610100900460ff16620019e15760385460ff1615620019e5565b303b155b62001a4a5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840162000b20565b603854610100900460ff1615801562001a6d576038805461ffff19166101011790555b6001600160a01b03871662001ac55760405162461bcd60e51b815260206004820152601d60248201527f5031324d696e653a20703132546f6b656e2063616e6e6f742062652030000000604482015260640162000b20565b6001600160a01b03861662001aee5760405162461bcd60e51b815260040162000b209062003f22565b600180546001600160a01b03808a166001600160a01b031992831617909255600080548984169083161790556002805492881692909116919091179055604051879062001b3b9062003a48565b6001600160a01b039091168152602001604051809103906000f08015801562001b68573d6000803e3d6000fd5b50600380546001600160a01b0319166001600160a01b039290921691909117905560048490556005839055600682905562001ba2620034c0565b62001bac620034f2565b62001bb662003529565b801562001bc9576038805461ff00191690555b50505050505050565b60cf546001600160a01b0316331462001bff5760405162461bcd60e51b815260040162000b209062003d16565b6000546001600160a01b0390811690821662001c2f5760405162461bcd60e51b815260040162000b209062003f22565b600080546001600160a01b0319166001600160a01b0384811691821790925560408051928416835260208301919091527fb5004c6dd32173c6ee128faa447de600665c96ba213f764d94599ca5ceda78b1910162000bdc565b60cf546001600160a01b0316331462001cb55760405162461bcd60e51b815260040162000b209062003d16565b620012a66200355e565b60075460005b818110156200135f5762001cd98162002c98565b8062001ce58162003f06565b91505062001cc5565b6001600160a01b03811660009081526032602052604090205481901562001d585760405162461bcd60e51b815260206004820152601f60248201527f5031324d696e653a204c5020546f6b656e20416c726561647920457869737400604482015260640162000b20565b6101335460ff161562001d7f5760405162461bcd60e51b815260040162000b209062003e2a565b6000546001600160a01b031633148062001da3575060cf546001600160a01b031633145b62001df15760405162461bcd60e51b815260206004820181905260248201527f5031324d696e653a206e6f7420703132666163746f7279206f72206f776e6572604482015260640162000b20565b50604080516080810182526001600160a01b0392831680825260006020808401828152848601838152606086018481526007805460018101825581875297517fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c688600490990298890180546001600160a01b03191691909b161790995591517fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c689870155517fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c68a860155517fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c68b9094019390935581815260358352838120818052835283812042905593549084526032909152912055565b6002610101540362001f2b5760405162461bcd60e51b815260040162000b209062003df3565b6002610101556101335460ff161562001f585760405162461bcd60e51b815260040162000b209062003e2a565b600062001f658362001491565b6001600160a01b0380851660009081526037602090815260408083208784529091529020549192501633811462001fdf5760405162461bcd60e51b815260206004820152601f60248201527f5031324d696e653a2063616c6c6572206e6f7420746f6b656e206f776e657200604482015260640162000b20565b60006007838154811062001ff75762001ff762003d4d565b600091825260208083208684526033825260408085206001600160a01b0380891687529084528186208054918c168752603785528287208b88529094529420600101546004909302019350911015620020935760405162461bcd60e51b815260206004820152601a60248201527f5031324d696e653a20776974686472617720746f6f206d756368000000000000604482015260640162000b20565b6001600160a01b03861660009081526037602090815260408083208884529091529020600201544210156200210b5760405162461bcd60e51b815260206004820181905260248201527f5031324d696e653a20756e6c6f636b2074696d65206e6f742072656163686564604482015260640162000b20565b6001600160a01b038616600090815260376020908152604080832088845290915290206003015460ff1615620021845760405162461bcd60e51b815260206004820152601a60248201527f5031324d696e653a20616c72656164792077697468647261776e000000000000604482015260640162000b20565b6001600160a01b03861660009081526037602090815260408083208884529091529020600301805460ff19166001179055620021c08462002c98565b60008160010154670de0b6b3a764000084600101548460000154620021e6919062003d93565b620021f2919062003db5565b620021fe919062003e54565b90506200220c84826200303b565b6001600160a01b03871660009081526037602090815260408083208984529091528120600101548354909182918591906200224990849062003e54565b925050819055508084600201600082825462002266919062003e54565b909155505060018401548354670de0b6b3a764000091620022879162003d93565b62002293919062003db5565b60018401558354620022b0906001600160a01b0316868362003125565b82546002850154604080518481526020810193909352820152879087906001600160a01b038816907f3b6169f3eda7dec0c3762f33d51b47c9417626ef6b03a4112469b10e2542283c9060600160405180910390a45050600161010155505050505050565b6000620023228262001491565b90506200135f8162002c98565b60cf546000906001600160a01b031633146200235f5760405162461bcd60e51b815260040162000b209062003d16565b600480549083905560408051828152602081018590527fb936e6dfcf3fec6bfb7d23d91ce9406c4ce74825de73cf38c764ed900731d7a4910162001173565b60cf546001600160a01b03163314620023cb5760405162461bcd60e51b815260040162000b209062003d16565b6001600160a01b038216620024235760405162461bcd60e51b815260206004820152601b60248201527f536166654f776e61626c653a206e6577206f776e657220697320300000000000604482015260640162000b20565b801562002435576200135f826200346e565b60d080546001600160a01b0319166001600160a01b0384161790555050565b60cf546000906001600160a01b03163314620024845760405162461bcd60e51b815260040162000b209062003d16565b600580549083905560408051828152602081018590527f43c057f209152d56f2de0fa1d79291670facf6161810b2392b949bf1647cc236910162001173565b6101335460ff1615620024ea5760405162461bcd60e51b815260040162000b209062003e2a565b6000546001600160a01b03163314620025465760405162461bcd60e51b815260206004820152601e60248201527f5031324d696e653a2063616c6c6572206e6f7420703132666163746f72790000604482015260640162000b20565b620025518362001cee565b60006200255e8462001491565b6040516370a0823160e01b81523060048201529091506000906001600160a01b038616906370a0823190602401602060405180830381865afa158015620025a9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620025cf919062003d63565b9050600060078381548110620025e957620025e962003d4d565b600091825260208083208684526033825260408085206001600160a01b038a168652909252922060026004909202909201908101549092506200262d908462003e54565b86111580156200263d5750600086115b6200268b5760405162461bcd60e51b815260206004820152601760248201527f5031324d696e653a20616d6f756e74206e6f74206d6574000000000000000000604482015260640162000b20565b6001826003016000828254620026a2919062003dd8565b909155505081546001600160a01b03166000908152603560209081526040808320600386015484529091528120429055815487918391620026e590849062003dd8565b925050819055508582600201600082825462002702919062003dd8565b909155505060018201548154670de0b6b3a764000091620027239162003d93565b6200272f919062003db5565b60018201558054600283015460408051898152602081019390935282015284906001600160a01b038716907f7162984403f6c73c8639375d45a9187dfd04602231bd8e587c415718b5f7e5f99060600160405180910390a350505050505050565b60cf546001600160a01b03163314620027bd5760405162461bcd60e51b815260040162000b209062003d16565b60085460ff1615620028125760405162461bcd60e51b815260206004820152601760248201527f5031324d696e653a20616c726561647920657869737473000000000000000000604482015260640162000b20565b6008805460ff19166001179055620151806200282f814262003dd8565b60098190556040805133815260208101929092527f60d80110a4ada21fcf122778cf9fd06e96a62cfab4577aa054d8f50703342c94910160405180910390a150565b600060026101015403620028995760405162461bcd60e51b815260040162000b209062003df3565b6002610101556101335460ff1615620028c65760405162461bcd60e51b815260040162000b209062003e2a565b6007546000805b82811015620029d057600081815260336020908152604080832033845290915290205415620029bb576000600782815481106200290e576200290e62003d4d565b60009182526020808320858452603382526040808520338652909252922060049091029091019150620029418362002c98565b600180820154908301548254670de0b6b3a764000091620029629162003d93565b6200296e919062003db5565b6200297a919062003e54565b62002986908562003dd8565b9350670de0b6b3a764000082600101548260000154620029a7919062003d93565b620029b3919062003db5565b600190910155505b80620029c78162003f06565b915050620028cd565b50620029dd33826200303b565b91505060016101015590565b6101335460ff161562002a105760405162461bcd60e51b815260040162000b209062003e2a565b6002610101540362002a365760405162461bcd60e51b815260040162000b209062003df3565b600261010155600062002a498362001491565b905060006007828154811062002a635762002a6362003d4d565b60009182526020808320858452603382526040808520338652909252922080546004909202909201925084111562002ade5760405162461bcd60e51b815260206004820152601a60248201527f5031324d696e653a20776974686472617720746f6f206d756368000000000000604482015260640162000b20565b62002ae98362002c98565b80541562002b3f5760008160010154670de0b6b3a76400008460010154846000015462002b17919062003d93565b62002b23919062003db5565b62002b2f919062003e54565b905062002b3d33826200303b565b505b600062002b4d868662000be8565b6001600160a01b038781166000818152603660209081526040808320805482518085018790528084018e905233606082018190526080808301939093528451808303909301835260a082018086528351938701939093209384905561012082018552825260c081018e815260e082018a81526101009092018781529787526037865284872084885290955292909420935184546001600160a01b031916961695909517835590516001838101919091559051600283015591516003909101805460ff191691151591909117905585015484549293509091670de0b6b3a76400009162002c399162003d93565b62002c45919062003db5565b600184015560408051868152602081018490528291889133917f272443b29ab847e8afe0555c70202fdd13f55ad0256863dbf7babad95689f915910160405180910390a450506001610101555050505050565b6101335460ff161562002cbf5760405162461bcd60e51b815260040162000b209062003e2a565b60006007828154811062002cd75762002cd762003d4d565b60009182526020808320600492830201600181015481546001600160a01b039081168087526035855260408088206003860154895290955295849020546002549451638aca6a2360e01b8152958601969096529195509392911690638aca6a2390602401600060405180830381600087803b15801562002d5657600080fd5b505af115801562002d6b573d6000803e3d6000fd5b5050505080421162002dc05760405162461bcd60e51b815260206004820152601a60248201527f5031324d696e653a206e6f742074696d6520746f20636865636b000000000000604482015260640162000b20565b826002015460000362002e2057600183600301600082825462002de4919062003dd8565b909155505082546001600160a01b03166000908152603560209081526040808320600390960154835294905292909220429055506200126c9050565b80600062002e5762093a808062002e38818662003dd8565b62002e44919062003db5565b62002e50919062003d93565b42620035bc565b905060005b6101f481101562002fa157600062002e75848462003e54565b60025488549192506000916001600160a01b03918216916365c60468911662093a8062002ea3818a62003db5565b62002eaf919062003d93565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af115801562002efb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019062002f21919062003d63565b90508760020154828260065462002f39919062003d93565b62002f45919062003d93565b62002f51919062003db5565b62002f5d908862003dd8565b965042840362002f6f57505062002fa1565b83945062002f8762093a808562002e50919062003dd8565b93505050808062002f989062003f06565b91505062002e5c565b50600180860185905560038601805460009062002fc090849062003dd8565b909155505084546001600160a01b03908116600090815260356020908152604080832060038a015484528252918290204290556002880154885460018a01549351938452909316917fd5d17e0ef95673e9f3758eb2dd453e0a395922322e5462909459da8ed6ea3b40910160405180910390a3505050505050565b6003546040516310b3879160e11b81526001600160a01b03848116600483015260248201849052909116906321670f2290604401600060405180830381600087803b1580156200308a57600080fd5b505af11580156200309f573d6000803e3d6000fd5b5050506001600160a01b038316600090815260346020526040902054620030c99150829062003dd8565b6001600160a01b038316600081815260346020526040908190209290925590517f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d490620031199084815260200190565b60405180910390a25050565b6040516001600160a01b0383166024820152604481018290526200318a90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152620035d4565b505050565b60cf546001600160a01b031633146200126c5760405162461bcd60e51b815260040162000b209062003d16565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff1615620031f2576200318a83620036ad565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156200324f575060408051601f3d908101601f191682019092526200324c9181019062003d63565b60015b620032b45760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b606482015260840162000b20565b60008051602062004b3d8339815191528114620033265760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b606482015260840162000b20565b506200318a8383836200374c565b6101335460ff16620033805760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640162000b20565b610133805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6040516001600160a01b03808516602483015283166044820152606481018290526200148b9085906323b872dd60e01b9060840162003152565b60cf5460d0546040516001600160a01b03928316929091169082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35060d0805460cf80546001600160a01b03199081166001600160a01b03841617909155169055565b60cf80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b603854610100900460ff16620034ea5760405162461bcd60e51b815260040162000b209062003f65565b600161010155565b603854610100900460ff166200351c5760405162461bcd60e51b815260040162000b209062003f65565b610133805460ff19169055565b603854610100900460ff16620035535760405162461bcd60e51b815260040162000b209062003f65565b620012a6336200346e565b6101335460ff1615620035855760405162461bcd60e51b815260040162000b209062003e2a565b610133805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258620033ae3390565b6000818310620035cd578162001521565b5090919050565b60006200362b826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316620037779092919063ffffffff16565b8051909150156200318a57808060200190518101906200364c919062003fb0565b6200318a5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840162000b20565b6001600160a01b0381163b6200371c5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b606482015260840162000b20565b60008051602062004b3d83398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b620037578362003790565b600082511180620037655750805b156200318a576200148b8383620037d2565b6060620037888484600085620038cf565b949350505050565b6200379b81620036ad565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606001600160a01b0383163b6200383c5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b606482015260840162000b20565b600080846001600160a01b03168460405162003859919062003fff565b600060405180830381855af49150503d806000811462003896576040519150601f19603f3d011682016040523d82523d6000602084013e6200389b565b606091505b5091509150620038c6828260405180606001604052806027815260200162004b5d6027913962003a0a565b95945050505050565b606082471015620039325760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840162000b20565b6001600160a01b0385163b6200398b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640162000b20565b600080866001600160a01b03168587604051620039a9919062003fff565b60006040518083038185875af1925050503d8060008114620039e8576040519150601f19603f3d011682016040523d82523d6000602084013e620039ed565b606091505b5091509150620039ff82828662003a0a565b979650505050505050565b6060831562003a1b57508162001521565b82511562003a2c5782518084602001fd5b8160405162461bcd60e51b815260040162000b2091906200401d565b610aea806200405383390190565b6001600160a01b03811681146200126c57600080fd5b60006020828403121562003a7f57600080fd5b8135620015218162003a56565b6000806040838503121562003aa057600080fd5b823562003aad8162003a56565b946020939093013593505050565b6000806040838503121562003acf57600080fd5b823562003adc8162003a56565b9150602083013562003aee8162003a56565b809150509250929050565b60006020828403121562003b0c57600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b6000806040838503121562003b3d57600080fd5b823562003b4a8162003a56565b9150602083013567ffffffffffffffff8082111562003b6857600080fd5b818501915085601f83011262003b7d57600080fd5b81358181111562003b925762003b9262003b13565b604051601f8201601f19908116603f0116810190838211818310171562003bbd5762003bbd62003b13565b8160405282815288602084870101111562003bd757600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b60008060008060008060c0878903121562003c1357600080fd5b863562003c208162003a56565b9550602087013562003c328162003a56565b9450604087013562003c448162003a56565b959894975094956060810135955060808101359460a0909101359350915050565b6000806040838503121562003c7957600080fd5b82359150602083013562003aee8162003a56565b80151581146200126c57600080fd5b6000806040838503121562003cb057600080fd5b823562003cbd8162003a56565b9150602083013562003aee8162003c8d565b60008060006060848603121562003ce557600080fd5b833562003cf28162003a56565b925060208401359150604084013562003d0b8162003a56565b809150509250925092565b6020808252601d908201527f536166654f776e61626c653a2063616c6c6572206e6f74206f776e6572000000604082015260600190565b634e487b7160e01b600052603260045260246000fd5b60006020828403121562003d7657600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161562003db05762003db062003d7d565b500290565b60008262003dd357634e487b7160e01b600052601260045260246000fd5b500490565b6000821982111562003dee5762003dee62003d7d565b500190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b60008282101562003e695762003e6962003d7d565b500390565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b60006001820162003f1b5762003f1b62003d7d565b5060010190565b60208082526023908201527f5031324d696e653a20703132436f696e466163746f72792063616e6e6f74206260408201526206520360ec1b606082015260800190565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60006020828403121562003fc357600080fd5b8151620015218162003c8d565b60005b8381101562003fed57818101518382015260200162003fd3565b838111156200148b5750506000910152565b600082516200401381846020870162003fd0565b9190910192915050565b60208152600082518060208401526200403e81604085016020870162003fd0565b601f01601f1916919091016040019291505056fe608060405234801561001057600080fd5b50604051610aea380380610aea83398101604081905261002f91610107565b610038336100b7565b6001600160a01b0381166100925760405162461bcd60e51b815260206004820152601a60248201527f50313252563a20616464726573732063616e6e6f742062652030000000000000604482015260640160405180910390fd5b600280546001600160a01b0319166001600160a01b0392909216919091179055610137565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006020828403121561011957600080fd5b81516001600160a01b038116811461013057600080fd5b9392505050565b6109a4806101466000396000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c80638da5cb5b1161005b5780638da5cb5b146100e1578063a1c04f0e146100f2578063b242e53414610105578063e30c39781461011857600080fd5b806321670f221461008d5780634e71e0c8146100a2578063715018a6146100aa5780638b7c37a3146100b2575b600080fd5b6100a061009b3660046107f5565b610129565b005b6100a0610177565b6100a06101db565b6002546100c5906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b6000546001600160a01b03166100c5565b6100a061010036600461081f565b61020f565b6100a061011336600461084b565b6103c7565b6001546001600160a01b03166100c5565b6000546001600160a01b0316331461015c5760405162461bcd60e51b815260040161015390610882565b60405180910390fd5b600254610173906001600160a01b03168383610475565b5050565b6001546001600160a01b031633146101d15760405162461bcd60e51b815260206004820152601e60248201527f536166654f776e61626c653a2063616c6c657220213d2070656e64696e6700006044820152606401610153565b6101d96104cc565b565b6000546001600160a01b031633146102055760405162461bcd60e51b815260040161015390610882565b6101d96000610534565b6000546001600160a01b031633146102395760405162461bcd60e51b815260040161015390610882565b6001600160a01b03811661028f5760405162461bcd60e51b815260206004820152601a60248201527f50313252563a20616464726573732063616e6e6f7420626520300000000000006044820152606401610153565b6002546040516370a0823160e01b81523060048201526103149183916001600160a01b03909116906370a0823190602401602060405180830381865afa1580156102dd573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061030191906108b9565b6002546001600160a01b03169190610475565b6002546040516370a0823160e01b81523060048201527ff58b081c2d077b17c9ef90e17090bd89e8b8b98933872e29c9352269eda3823f916001600160a01b03169081906370a0823190602401602060405180830381865afa15801561037e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103a291906108b9565b604080516001600160a01b03909316835260208301919091520160405180910390a150565b6000546001600160a01b031633146103f15760405162461bcd60e51b815260040161015390610882565b6001600160a01b0382166104475760405162461bcd60e51b815260206004820152601b60248201527f536166654f776e61626c653a206e6577206f776e6572206973203000000000006044820152606401610153565b80156104565761017382610534565b600180546001600160a01b0319166001600160a01b0384161790555050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526104c7908490610584565b505050565b600080546001546040516001600160a01b0392831693919092169183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35060018054600080546001600160a01b03199081166001600160a01b03841617909155169055565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006105d9826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166106569092919063ffffffff16565b8051909150156104c757808060200190518101906105f791906108d2565b6104c75760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610153565b6060610665848460008561066f565b90505b9392505050565b6060824710156106d05760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610153565b6001600160a01b0385163b6107275760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610153565b600080866001600160a01b03168587604051610743919061091f565b60006040518083038185875af1925050503d8060008114610780576040519150601f19603f3d011682016040523d82523d6000602084013e610785565b606091505b50915091506107958282866107a0565b979650505050505050565b606083156107af575081610668565b8251156107bf5782518084602001fd5b8160405162461bcd60e51b8152600401610153919061093b565b80356001600160a01b03811681146107f057600080fd5b919050565b6000806040838503121561080857600080fd5b610811836107d9565b946020939093013593505050565b60006020828403121561083157600080fd5b610668826107d9565b801515811461084857600080fd5b50565b6000806040838503121561085e57600080fd5b610867836107d9565b915060208301356108778161083a565b809150509250929050565b6020808252601d908201527f536166654f776e61626c653a2063616c6c6572206e6f74206f776e6572000000604082015260600190565b6000602082840312156108cb57600080fd5b5051919050565b6000602082840312156108e457600080fd5b81516106688161083a565b60005b8381101561090a5781810151838201526020016108f2565b83811115610919576000848401525b50505050565b600082516109318184602087016108ef565b9190910192915050565b602081526000825180602084015261095a8160408501602087016108ef565b601f01601f1916919091016040019291505056fea264697066735822122030b2370952a9106907ba0e8407dfe3d445ea28be7fb700ab36854edea45bd24964736f6c634300080f0033360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220628e014abae24c985f11e60491a97dee0da0899048f5eed64580778b0a6754fd64736f6c634300080f0033", + "devdoc": { + "kind": "dev", + "methods": { + "addLpTokenInfoForGameCreator(address,uint256,address)": { + "params": { + "gameCoinCreator": "user of game coin creator", + "lpToken": "Address of lpToken" + } + }, + "checkpoint(address)": { + "params": { + "lpToken": "Address of lpToken" + } + }, + "claim(address)": { + "params": { + "lpToken": "Address of lpToken" + } + }, + "claimOwnership()": { + "details": "pending owner call this function to claim ownership" + }, + "createPool(address)": { + "params": { + "lpToken": "Address of lpToken" + } + }, + "deposit(address,uint256)": { + "params": { + "amount": "Number of lpToken", + "lpToken": "Address of lpToken" + } + }, + "executeWithdraw(address,bytes32)": { + "params": { + "id": "Withdraw id ", + "lpToken": "Address of lpToken" + } + }, + "getPid(address)": { + "params": { + "lpToken": "Address of lpToken" + } + }, + "getUserLpBalance(address,address)": { + "params": { + "lpToken": "Address of lpToken", + "user": "LpToken holder" + }, + "returns": { + "_0": "Get lpToken balance " + } + }, + "getWithdrawUnlockTimestamp(address,uint256)": { + "params": { + "amount": "Number of lpToken", + "lpToken": "Address of lpToken" + } + }, + "initialize(address,address,address,uint256,uint256,uint256)": { + "params": { + "delayB_": "delayB_ is a coefficient", + "delayK_": "delayK_ is a coefficient", + "gaugeController_": "address of gaugeController", + "p12CoinFactory_": "Address of p12CoinFactory", + "p12Token_": "Address of p12Token" + } + }, + "owner()": { + "details": "Returns the address of the current owner." + }, + "paused()": { + "details": "Returns true if the contract is paused, and false otherwise." + }, + "pendingOwner()": { + "details": "Return the address of the pending owner" + }, + "proxiableUUID()": { + "details": "Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the implementation. It is used to validate that the this implementation remains valid after an upgrade. IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier." + }, + "queueWithdraw(address,uint256)": { + "params": { + "amount": "Number of lpToken", + "lpToken": "Address of lpToken" + } + }, + "renounceOwnership()": { + "details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner." + }, + "setDelayB(uint256)": { + "params": { + "newDelayB": "Is a coefficient" + }, + "returns": { + "_0": "Get bool result " + } + }, + "setDelayK(uint256)": { + "params": { + "newDelayK": "Is a coefficient" + }, + "returns": { + "_0": "Get bool result " + } + }, + "setGaugeController(address)": { + "params": { + "newGaugeController": "address of gaugeController" + } + }, + "setP12CoinFactory(address)": { + "params": { + "newP12CoinFactory": "address of p12CoinFactory" + } + }, + "setRate(uint256)": { + "params": { + "newRate": "is p12 token inflation rate " + } + }, + "transferOwnership(address,bool)": { + "details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner. Note If direct is false, it will set an pending owner and the OwnerShipTransferring only happens when the pending owner claim the ownership" + }, + "upgradeTo(address)": { + "details": "Upgrade the implementation of the proxy to `newImplementation`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event." + }, + "upgradeToAndCall(address,bytes)": { + "details": "Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call encoded in `data`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event." + }, + "withdrawLpTokenEmergency(address)": { + "params": { + "lpToken": "address of lpToken" + } + } + }, + "version": 1 + }, + "userdoc": { + "kind": "user", + "methods": { + "addLpTokenInfoForGameCreator(address,uint256,address)": { + "notice": "This method is only used when creating game coin in p12CoinFactory" + }, + "checkpoint(address)": { + "notice": "update checkpoint for pool" + }, + "checkpointAll()": { + "notice": "update checkpoint for all pool" + }, + "claim(address)": { + "notice": "Get pending rewards" + }, + "claimAll()": { + "notice": "Get all pending rewards" + }, + "createPool(address)": { + "notice": "Create a new pool" + }, + "deposit(address,uint256)": { + "notice": "Deposit lpToken" + }, + "emergency()": { + "notice": "set the isEmergency to true" + }, + "executeWithdraw(address,bytes32)": { + "notice": "Withdraw lpToken" + }, + "getPid(address)": { + "notice": "Get pool id" + }, + "getUserLpBalance(address,address)": { + "notice": "Get user lpToken balance" + }, + "getWithdrawUnlockTimestamp(address,uint256)": { + "notice": "get withdraw unlockTimestamp" + }, + "initialize(address,address,address,uint256,uint256,uint256)": { + "notice": "Contract initialization" + }, + "poolLength()": { + "notice": "Get pool len" + }, + "queueWithdraw(address,uint256)": { + "notice": "Withdraw lpToken delay" + }, + "setDelayB(uint256)": { + "notice": "Set delayB value " + }, + "setDelayK(uint256)": { + "notice": "Set delayK value " + }, + "setGaugeController(address)": { + "notice": "set new gaugeController" + }, + "setP12CoinFactory(address)": { + "notice": "set new p12CoinFactory" + }, + "setRate(uint256)": { + "notice": "set new rate" + }, + "withdrawAllLpTokenEmergency()": { + "notice": "withdraw lpToken Emergency" + }, + "withdrawEmergency()": { + "notice": "withdraw token Emergency" + }, + "withdrawLpTokenEmergency(address)": { + "notice": "withdraw all lpToken Emergency" + } + }, + "version": 1 + }, + "storageLayout": { + "storage": [ + { + "astId": 13766, + "contract": "contracts/staking/P12MineUpgradeable.sol:P12MineUpgradeable", + "label": "p12CoinFactory", + "offset": 0, + "slot": "0", + "type": "t_address" + }, + { + "astId": 13768, + "contract": "contracts/staking/P12MineUpgradeable.sol:P12MineUpgradeable", + "label": "p12Token", + "offset": 0, + "slot": "1", + "type": "t_address" + }, + { + "astId": 13771, + "contract": "contracts/staking/P12MineUpgradeable.sol:P12MineUpgradeable", + "label": "gaugeController", + "offset": 0, + "slot": "2", + "type": "t_contract(IGaugeController)15932" + }, + { + "astId": 13774, + "contract": "contracts/staking/P12MineUpgradeable.sol:P12MineUpgradeable", + "label": "p12RewardVault", + "offset": 0, + "slot": "3", + "type": "t_contract(IP12RewardVault)16185" + }, + { + "astId": 13776, + "contract": "contracts/staking/P12MineUpgradeable.sol:P12MineUpgradeable", + "label": "delayK", + "offset": 0, + "slot": "4", + "type": "t_uint256" + }, + { + "astId": 13778, + "contract": "contracts/staking/P12MineUpgradeable.sol:P12MineUpgradeable", + "label": "delayB", + "offset": 0, + "slot": "5", + "type": "t_uint256" + }, + { + "astId": 13780, + "contract": "contracts/staking/P12MineUpgradeable.sol:P12MineUpgradeable", + "label": "rate", + "offset": 0, + "slot": "6", + "type": "t_uint256" + }, + { + "astId": 13784, + "contract": "contracts/staking/P12MineUpgradeable.sol:P12MineUpgradeable", + "label": "poolInfos", + "offset": 0, + "slot": "7", + "type": "t_array(t_struct(PoolInfo)13838_storage)dyn_storage" + }, + { + "astId": 13786, + "contract": "contracts/staking/P12MineUpgradeable.sol:P12MineUpgradeable", + "label": "isEmergency", + "offset": 0, + "slot": "8", + "type": "t_bool" + }, + { + "astId": 13788, + "contract": "contracts/staking/P12MineUpgradeable.sol:P12MineUpgradeable", + "label": "emergencyUnlockTime", + "offset": 0, + "slot": "9", + "type": "t_uint256" + }, + { + "astId": 13792, + "contract": "contracts/staking/P12MineUpgradeable.sol:P12MineUpgradeable", + "label": "__gap", + "offset": 0, + "slot": "10", + "type": "t_array(t_uint256)40_storage" + }, + { + "astId": 13796, + "contract": "contracts/staking/P12MineUpgradeable.sol:P12MineUpgradeable", + "label": "lpTokenRegistry", + "offset": 0, + "slot": "50", + "type": "t_mapping(t_address,t_uint256)" + }, + { + "astId": 13803, + "contract": "contracts/staking/P12MineUpgradeable.sol:P12MineUpgradeable", + "label": "userInfo", + "offset": 0, + "slot": "51", + "type": "t_mapping(t_uint256,t_mapping(t_address,t_struct(UserInfo)13829_storage))" + }, + { + "astId": 13807, + "contract": "contracts/staking/P12MineUpgradeable.sol:P12MineUpgradeable", + "label": "realizedReward", + "offset": 0, + "slot": "52", + "type": "t_mapping(t_address,t_uint256)" + }, + { + "astId": 13813, + "contract": "contracts/staking/P12MineUpgradeable.sol:P12MineUpgradeable", + "label": "periodTimestamp", + "offset": 0, + "slot": "53", + "type": "t_mapping(t_address,t_mapping(t_uint256,t_uint256))" + }, + { + "astId": 13817, + "contract": "contracts/staking/P12MineUpgradeable.sol:P12MineUpgradeable", + "label": "preWithdrawIds", + "offset": 0, + "slot": "54", + "type": "t_mapping(t_address,t_bytes32)" + }, + { + "astId": 13824, + "contract": "contracts/staking/P12MineUpgradeable.sol:P12MineUpgradeable", + "label": "withdrawInfos", + "offset": 0, + "slot": "55", + "type": "t_mapping(t_address,t_mapping(t_bytes32,t_struct(WithdrawInfo)13847_storage))" + }, + { + "astId": 395, + "contract": "contracts/staking/P12MineUpgradeable.sol:P12MineUpgradeable", + "label": "_initialized", + "offset": 0, + "slot": "56", + "type": "t_bool" + }, + { + "astId": 398, + "contract": "contracts/staking/P12MineUpgradeable.sol:P12MineUpgradeable", + "label": "_initializing", + "offset": 1, + "slot": "56", + "type": "t_bool" + }, + { + "astId": 377, + "contract": "contracts/staking/P12MineUpgradeable.sol:P12MineUpgradeable", + "label": "__gap", + "offset": 0, + "slot": "57", + "type": "t_array(t_uint256)50_storage" + }, + { + "astId": 597, + "contract": "contracts/staking/P12MineUpgradeable.sol:P12MineUpgradeable", + "label": "__gap", + "offset": 0, + "slot": "107", + "type": "t_array(t_uint256)50_storage" + }, + { + "astId": 1354, + "contract": "contracts/staking/P12MineUpgradeable.sol:P12MineUpgradeable", + "label": "__gap", + "offset": 0, + "slot": "157", + "type": "t_array(t_uint256)50_storage" + }, + { + "astId": 7440, + "contract": "contracts/staking/P12MineUpgradeable.sol:P12MineUpgradeable", + "label": "_owner", + "offset": 0, + "slot": "207", + "type": "t_address" + }, + { + "astId": 7442, + "contract": "contracts/staking/P12MineUpgradeable.sol:P12MineUpgradeable", + "label": "_pendingOwner", + "offset": 0, + "slot": "208", + "type": "t_address" + }, + { + "astId": 7625, + "contract": "contracts/staking/P12MineUpgradeable.sol:P12MineUpgradeable", + "label": "__gap", + "offset": 0, + "slot": "209", + "type": "t_array(t_uint256)48_storage" + }, + { + "astId": 723, + "contract": "contracts/staking/P12MineUpgradeable.sol:P12MineUpgradeable", + "label": "_status", + "offset": 0, + "slot": "257", + "type": "t_uint256" + }, + { + "astId": 767, + "contract": "contracts/staking/P12MineUpgradeable.sol:P12MineUpgradeable", + "label": "__gap", + "offset": 0, + "slot": "258", + "type": "t_array(t_uint256)49_storage" + }, + { + "astId": 619, + "contract": "contracts/staking/P12MineUpgradeable.sol:P12MineUpgradeable", + "label": "_paused", + "offset": 0, + "slot": "307", + "type": "t_bool" + }, + { + "astId": 708, + "contract": "contracts/staking/P12MineUpgradeable.sol:P12MineUpgradeable", + "label": "__gap", + "offset": 0, + "slot": "308", + "type": "t_array(t_uint256)49_storage" + } + ], + "types": { + "t_address": { + "encoding": "inplace", + "label": "address", + "numberOfBytes": "20" + }, + "t_array(t_struct(PoolInfo)13838_storage)dyn_storage": { + "base": "t_struct(PoolInfo)13838_storage", + "encoding": "dynamic_array", + "label": "struct P12MineStorage.PoolInfo[]", + "numberOfBytes": "32" + }, + "t_array(t_uint256)40_storage": { + "base": "t_uint256", + "encoding": "inplace", + "label": "uint256[40]", + "numberOfBytes": "1280" + }, + "t_array(t_uint256)48_storage": { + "base": "t_uint256", + "encoding": "inplace", + "label": "uint256[48]", + "numberOfBytes": "1536" + }, + "t_array(t_uint256)49_storage": { + "base": "t_uint256", + "encoding": "inplace", + "label": "uint256[49]", + "numberOfBytes": "1568" + }, + "t_array(t_uint256)50_storage": { + "base": "t_uint256", + "encoding": "inplace", + "label": "uint256[50]", + "numberOfBytes": "1600" + }, + "t_bool": { + "encoding": "inplace", + "label": "bool", + "numberOfBytes": "1" + }, + "t_bytes32": { + "encoding": "inplace", + "label": "bytes32", + "numberOfBytes": "32" + }, + "t_contract(IGaugeController)15932": { + "encoding": "inplace", + "label": "contract IGaugeController", + "numberOfBytes": "20" + }, + "t_contract(IP12RewardVault)16185": { + "encoding": "inplace", + "label": "contract IP12RewardVault", + "numberOfBytes": "20" + }, + "t_mapping(t_address,t_bytes32)": { + "encoding": "mapping", + "key": "t_address", + "label": "mapping(address => bytes32)", + "numberOfBytes": "32", + "value": "t_bytes32" + }, + "t_mapping(t_address,t_mapping(t_bytes32,t_struct(WithdrawInfo)13847_storage))": { + "encoding": "mapping", + "key": "t_address", + "label": "mapping(address => mapping(bytes32 => struct P12MineStorage.WithdrawInfo))", + "numberOfBytes": "32", + "value": "t_mapping(t_bytes32,t_struct(WithdrawInfo)13847_storage)" + }, + "t_mapping(t_address,t_mapping(t_uint256,t_uint256))": { + "encoding": "mapping", + "key": "t_address", + "label": "mapping(address => mapping(uint256 => uint256))", + "numberOfBytes": "32", + "value": "t_mapping(t_uint256,t_uint256)" + }, + "t_mapping(t_address,t_struct(UserInfo)13829_storage)": { + "encoding": "mapping", + "key": "t_address", + "label": "mapping(address => struct P12MineStorage.UserInfo)", + "numberOfBytes": "32", + "value": "t_struct(UserInfo)13829_storage" + }, + "t_mapping(t_address,t_uint256)": { + "encoding": "mapping", + "key": "t_address", + "label": "mapping(address => uint256)", + "numberOfBytes": "32", + "value": "t_uint256" + }, + "t_mapping(t_bytes32,t_struct(WithdrawInfo)13847_storage)": { + "encoding": "mapping", + "key": "t_bytes32", + "label": "mapping(bytes32 => struct P12MineStorage.WithdrawInfo)", + "numberOfBytes": "32", + "value": "t_struct(WithdrawInfo)13847_storage" + }, + "t_mapping(t_uint256,t_mapping(t_address,t_struct(UserInfo)13829_storage))": { + "encoding": "mapping", + "key": "t_uint256", + "label": "mapping(uint256 => mapping(address => struct P12MineStorage.UserInfo))", + "numberOfBytes": "32", + "value": "t_mapping(t_address,t_struct(UserInfo)13829_storage)" + }, + "t_mapping(t_uint256,t_uint256)": { + "encoding": "mapping", + "key": "t_uint256", + "label": "mapping(uint256 => uint256)", + "numberOfBytes": "32", + "value": "t_uint256" + }, + "t_struct(PoolInfo)13838_storage": { + "encoding": "inplace", + "label": "struct P12MineStorage.PoolInfo", + "members": [ + { + "astId": 13831, + "contract": "contracts/staking/P12MineUpgradeable.sol:P12MineUpgradeable", + "label": "lpToken", + "offset": 0, + "slot": "0", + "type": "t_address" + }, + { + "astId": 13833, + "contract": "contracts/staking/P12MineUpgradeable.sol:P12MineUpgradeable", + "label": "accP12PerShare", + "offset": 0, + "slot": "1", + "type": "t_uint256" + }, + { + "astId": 13835, + "contract": "contracts/staking/P12MineUpgradeable.sol:P12MineUpgradeable", + "label": "amount", + "offset": 0, + "slot": "2", + "type": "t_uint256" + }, + { + "astId": 13837, + "contract": "contracts/staking/P12MineUpgradeable.sol:P12MineUpgradeable", + "label": "period", + "offset": 0, + "slot": "3", + "type": "t_uint256" + } + ], + "numberOfBytes": "128" + }, + "t_struct(UserInfo)13829_storage": { + "encoding": "inplace", + "label": "struct P12MineStorage.UserInfo", + "members": [ + { + "astId": 13826, + "contract": "contracts/staking/P12MineUpgradeable.sol:P12MineUpgradeable", + "label": "amount", + "offset": 0, + "slot": "0", + "type": "t_uint256" + }, + { + "astId": 13828, + "contract": "contracts/staking/P12MineUpgradeable.sol:P12MineUpgradeable", + "label": "rewardDebt", + "offset": 0, + "slot": "1", + "type": "t_uint256" + } + ], + "numberOfBytes": "64" + }, + "t_struct(WithdrawInfo)13847_storage": { + "encoding": "inplace", + "label": "struct P12MineStorage.WithdrawInfo", + "members": [ + { + "astId": 13840, + "contract": "contracts/staking/P12MineUpgradeable.sol:P12MineUpgradeable", + "label": "who", + "offset": 0, + "slot": "0", + "type": "t_address" + }, + { + "astId": 13842, + "contract": "contracts/staking/P12MineUpgradeable.sol:P12MineUpgradeable", + "label": "amount", + "offset": 0, + "slot": "1", + "type": "t_uint256" + }, + { + "astId": 13844, + "contract": "contracts/staking/P12MineUpgradeable.sol:P12MineUpgradeable", + "label": "unlockTimestamp", + "offset": 0, + "slot": "2", + "type": "t_uint256" + }, + { + "astId": 13846, + "contract": "contracts/staking/P12MineUpgradeable.sol:P12MineUpgradeable", + "label": "executed", + "offset": 0, + "slot": "3", + "type": "t_bool" + } + ], + "numberOfBytes": "128" + }, + "t_uint256": { + "encoding": "inplace", + "label": "uint256", + "numberOfBytes": "32" + } + } + } +} \ No newline at end of file diff --git a/deployments/p12TestNet/P12MineUpgradeable_Proxy.json b/deployments/p12TestNet/P12MineUpgradeable_Proxy.json new file mode 100644 index 0000000..585e968 --- /dev/null +++ b/deployments/p12TestNet/P12MineUpgradeable_Proxy.json @@ -0,0 +1,139 @@ +{ + "address": "0xCf7d5E1a92b0F9d6AA594fb0aB6890384FaD6aB1", + "abi": [ + { + "inputs": [ + { + "internalType": "address", + "name": "_logic", + "type": "address" + }, + { + "internalType": "bytes", + "name": "_data", + "type": "bytes" + } + ], + "stateMutability": "payable", + "type": "constructor" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "previousAdmin", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "newAdmin", + "type": "address" + } + ], + "name": "AdminChanged", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "beacon", + "type": "address" + } + ], + "name": "BeaconUpgraded", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "implementation", + "type": "address" + } + ], + "name": "Upgraded", + "type": "event" + }, + { + "stateMutability": "payable", + "type": "fallback" + }, + { + "stateMutability": "payable", + "type": "receive" + } + ], + "transactionHash": "0x37481b3a8a64749cee1dfcd6f19521865196279a71e49e812791c6b4bad975a1", + "receipt": { + "to": null, + "from": "0xfeD03676c595DD1F1c6716a446cD44B4C90AD290", + "contractAddress": "0xCf7d5E1a92b0F9d6AA594fb0aB6890384FaD6aB1", + "transactionIndex": 0, + "gasUsed": "1034054", + "logsBloom": "0x00000000000000020000000000000000400040000000000000800000000000000000000000000000000040000000000080000000400000000000000000000000000000000000000000000000000002400001000000000000000000000000000000000000020000000000000000000800000002000100000000000000000000500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000080000000020000000000000000000000000000000000000000010000000000020000000000100000000000000000000000000000002000000000000000010000000", + "blockHash": "0x6a4217ca226b2eaad757e78260a62f7736f9923787ed118e5550adb93d4ac32b", + "transactionHash": "0x37481b3a8a64749cee1dfcd6f19521865196279a71e49e812791c6b4bad975a1", + "logs": [ + { + "transactionIndex": 0, + "blockNumber": 1206199, + "transactionHash": "0x37481b3a8a64749cee1dfcd6f19521865196279a71e49e812791c6b4bad975a1", + "address": "0xCf7d5E1a92b0F9d6AA594fb0aB6890384FaD6aB1", + "topics": [ + "0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b", + "0x000000000000000000000000da10590765662de4295122341638c01160d759ff" + ], + "data": "0x", + "logIndex": 0, + "blockHash": "0x6a4217ca226b2eaad757e78260a62f7736f9923787ed118e5550adb93d4ac32b" + }, + { + "transactionIndex": 0, + "blockNumber": 1206199, + "transactionHash": "0x37481b3a8a64749cee1dfcd6f19521865196279a71e49e812791c6b4bad975a1", + "address": "0x3d9a233772b259561b5a481938CCbb5C14FB4D26", + "topics": [ + "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", + "0x0000000000000000000000000000000000000000000000000000000000000000", + "0x000000000000000000000000cf7d5e1a92b0f9d6aa594fb0ab6890384fad6ab1" + ], + "data": "0x", + "logIndex": 1, + "blockHash": "0x6a4217ca226b2eaad757e78260a62f7736f9923787ed118e5550adb93d4ac32b" + }, + { + "transactionIndex": 0, + "blockNumber": 1206199, + "transactionHash": "0x37481b3a8a64749cee1dfcd6f19521865196279a71e49e812791c6b4bad975a1", + "address": "0xCf7d5E1a92b0F9d6AA594fb0aB6890384FaD6aB1", + "topics": [ + "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", + "0x0000000000000000000000000000000000000000000000000000000000000000", + "0x000000000000000000000000fed03676c595dd1f1c6716a446cd44b4c90ad290" + ], + "data": "0x", + "logIndex": 2, + "blockHash": "0x6a4217ca226b2eaad757e78260a62f7736f9923787ed118e5550adb93d4ac32b" + } + ], + "blockNumber": 1206199, + "cumulativeGasUsed": "1034054", + "status": 1, + "byzantium": true + }, + "args": [ + "0xdA10590765662DE4295122341638C01160D759FF", + "0x728cdbca000000000000000000000000eac1f044c4b9b7069ef9f3ec05ac60df76fe6cd00000000000000000000000002695ef03c7ea6a1f55463ee4b47e4e3dbcbcd6d100000000000000000000000092ef99db92b04c34d55b1c1537166dbef130068e000000000000000000000000000000000000000000000000000000000000003c000000000000000000000000000000000000000000000000000000000000003c00000000000000000000000000000000000000000000000006f05b59d3b20000" + ], + "numDeployments": 1, + "bytecode": "0x6080604052604051610772380380610772833981016040819052610022916102f7565b61004d60017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd61040f565b60008051602061072b8339815191521461007757634e487b7160e01b600052600160045260246000fd5b6100838282600061008a565b5050610474565b610093836100f4565b6040516001600160a01b038416907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a26000825111806100d45750805b156100ef576100ed83836101b460201b6100291760201c565b505b505050565b610107816101e060201b6100551760201c565b61016e5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084015b60405180910390fd5b8061019360008051602061072b83398151915260001b6101e660201b61005b1760201c565b80546001600160a01b0319166001600160a01b039290921691909117905550565b60606101d9838360405180606001604052806027815260200161074b602791396101e9565b9392505050565b3b151590565b90565b6060833b6102485760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b6064820152608401610165565b600080856001600160a01b03168560405161026391906103c0565b600060405180830381855af49150503d806000811461029e576040519150601f19603f3d011682016040523d82523d6000602084013e6102a3565b606091505b5090925090506102b48282866102be565b9695505050505050565b606083156102cd5750816101d9565b8251156102dd5782518084602001fd5b8160405162461bcd60e51b815260040161016591906103dc565b60008060408385031215610309578182fd5b82516001600160a01b038116811461031f578283fd5b60208401519092506001600160401b038082111561033b578283fd5b818501915085601f83011261034e578283fd5b8151818111156103605761036061045e565b604051601f8201601f19908116603f011681019083821181831017156103885761038861045e565b816040528281528860208487010111156103a0578586fd5b6103b1836020830160208801610432565b80955050505050509250929050565b600082516103d2818460208701610432565b9190910192915050565b60006020825282518060208401526103fb816040850160208701610432565b601f01601f19169190910160400192915050565b60008282101561042d57634e487b7160e01b81526011600452602481fd5b500390565b60005b8381101561044d578181015183820152602001610435565b838111156100ed5750506000910152565b634e487b7160e01b600052604160045260246000fd5b6102a8806104836000396000f3fe60806040523661001357610011610017565b005b6100115b61002761002261005e565b610096565b565b606061004e838360405180606001604052806027815260200161024c602791396100ba565b9392505050565b3b151590565b90565b60006100917f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b3660008037600080366000845af43d6000803e8080156100b5573d6000f35b3d6000fd5b6060833b61011e5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084015b60405180910390fd5b600080856001600160a01b03168560405161013991906101cc565b600060405180830381855af49150503d8060008114610174576040519150601f19603f3d011682016040523d82523d6000602084013e610179565b606091505b5091509150610189828286610193565b9695505050505050565b606083156101a257508161004e565b8251156101b25782518084602001fd5b8160405162461bcd60e51b815260040161011591906101e8565b600082516101de81846020870161021b565b9190910192915050565b600060208252825180602084015261020781604085016020870161021b565b601f01601f19169190910160400192915050565b60005b8381101561023657818101518382015260200161021e565b83811115610245576000848401525b5050505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212209b8470f06e8a3960c912103fc2be177edaad69584ee3c7d2809ee737e79408e764736f6c63430008020033360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564", + "deployedBytecode": "0x60806040523661001357610011610017565b005b6100115b61002761002261005e565b610096565b565b606061004e838360405180606001604052806027815260200161024c602791396100ba565b9392505050565b3b151590565b90565b60006100917f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b3660008037600080366000845af43d6000803e8080156100b5573d6000f35b3d6000fd5b6060833b61011e5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084015b60405180910390fd5b600080856001600160a01b03168560405161013991906101cc565b600060405180830381855af49150503d8060008114610174576040519150601f19603f3d011682016040523d82523d6000602084013e610179565b606091505b5091509150610189828286610193565b9695505050505050565b606083156101a257508161004e565b8251156101b25782518084602001fd5b8160405162461bcd60e51b815260040161011591906101e8565b600082516101de81846020870161021b565b9190910192915050565b600060208252825180602084015261020781604085016020870161021b565b601f01601f19169190910160400192915050565b60005b8381101561023657818101518382015260200161021e565b83811115610245576000848401525b5050505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212209b8470f06e8a3960c912103fc2be177edaad69584ee3c7d2809ee737e79408e764736f6c63430008020033" +} \ No newline at end of file diff --git a/deployments/p12TestNet/SecretShopUpgradable.json b/deployments/p12TestNet/SecretShopUpgradable.json new file mode 100644 index 0000000..48e505f --- /dev/null +++ b/deployments/p12TestNet/SecretShopUpgradable.json @@ -0,0 +1,1080 @@ +{ + "address": "0x76eDf742106828B2aDd50829142B84d3B337Fdd5", + "abi": [ + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "previousAdmin", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "newAdmin", + "type": "address" + } + ], + "name": "AdminChanged", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "beacon", + "type": "address" + } + ], + "name": "BeaconUpgraded", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "implementation", + "type": "address" + } + ], + "name": "Upgraded", + "type": "event" + }, + { + "stateMutability": "payable", + "type": "fallback" + }, + { + "stateMutability": "payable", + "type": "receive" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "itemHash", + "type": "bytes32" + } + ], + "name": "EvCancel", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "contract IERC20Upgradeable", + "name": "currency", + "type": "address" + }, + { + "indexed": false, + "internalType": "bool", + "name": "isRemoval", + "type": "bool" + } + ], + "name": "EvCurrency", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "delegate", + "type": "address" + }, + { + "indexed": false, + "internalType": "bool", + "name": "isRemoval", + "type": "bool" + } + ], + "name": "EvDelegate", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "index", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "error", + "type": "bytes" + } + ], + "name": "EvFailure", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "newValue", + "type": "uint256" + } + ], + "name": "EvFeeCapUpdate", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "itemHash", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "address", + "name": "maker", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "taker", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "orderSalt", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "settleSalt", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "intent", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "delegateType", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "deadline", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "contract IERC20Upgradeable", + "name": "currency", + "type": "address" + }, + { + "components": [ + { + "internalType": "uint256", + "name": "price", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "indexed": false, + "internalType": "struct Market.OrderItem", + "name": "item", + "type": "tuple" + }, + { + "components": [ + { + "internalType": "enum Market.Op", + "name": "op", + "type": "uint8" + }, + { + "internalType": "uint256", + "name": "orderIdx", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "itemIdx", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "price", + "type": "uint256" + }, + { + "internalType": "bytes32", + "name": "itemHash", + "type": "bytes32" + }, + { + "internalType": "contract IDelegate", + "name": "executionDelegate", + "type": "address" + }, + { + "components": [ + { + "internalType": "uint256", + "name": "percentage", + "type": "uint256" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + } + ], + "internalType": "struct Market.Fee[]", + "name": "fees", + "type": "tuple[]" + } + ], + "indexed": false, + "internalType": "struct Market.SettleDetail", + "name": "detail", + "type": "tuple" + } + ], + "name": "EvInventory", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "bytes32", + "name": "itemHash", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "address", + "name": "currency", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "EvProfit", + "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": [ + { + "indexed": false, + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "Paused", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "Unpaused", + "type": "event" + }, + { + "inputs": [], + "name": "RATE_BASE", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "claimOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "contract IERC20Upgradeable", + "name": "", + "type": "address" + } + ], + "name": "currencies", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "name": "delegates", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "domainSeparator", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "feeCapPct", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "feeCapPct_", + "type": "uint256" + }, + { + "internalType": "address", + "name": "weth_", + "type": "address" + } + ], + "name": "initialize", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "name": "inventoryStatus", + "outputs": [ + { + "internalType": "enum Market.InvStatus", + "name": "", + "type": "uint8" + } + ], + "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": "pendingOwner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "proxiableUUID", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "renounceOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "components": [ + { + "components": [ + { + "internalType": "uint256", + "name": "salt", + "type": "uint256" + }, + { + "internalType": "address", + "name": "user", + "type": "address" + }, + { + "internalType": "uint256", + "name": "network", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "intent", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "delegateType", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "deadline", + "type": "uint256" + }, + { + "internalType": "contract IERC20Upgradeable", + "name": "currency", + "type": "address" + }, + { + "components": [ + { + "internalType": "uint256", + "name": "price", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "internalType": "struct Market.OrderItem[]", + "name": "items", + "type": "tuple[]" + }, + { + "internalType": "bytes32", + "name": "r", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "s", + "type": "bytes32" + }, + { + "internalType": "uint8", + "name": "v", + "type": "uint8" + }, + { + "internalType": "uint8", + "name": "signVersion", + "type": "uint8" + } + ], + "internalType": "struct Market.Order[]", + "name": "orders", + "type": "tuple[]" + }, + { + "components": [ + { + "internalType": "enum Market.Op", + "name": "op", + "type": "uint8" + }, + { + "internalType": "uint256", + "name": "orderIdx", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "itemIdx", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "price", + "type": "uint256" + }, + { + "internalType": "bytes32", + "name": "itemHash", + "type": "bytes32" + }, + { + "internalType": "contract IDelegate", + "name": "executionDelegate", + "type": "address" + }, + { + "components": [ + { + "internalType": "uint256", + "name": "percentage", + "type": "uint256" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + } + ], + "internalType": "struct Market.Fee[]", + "name": "fees", + "type": "tuple[]" + } + ], + "internalType": "struct Market.SettleDetail[]", + "name": "details", + "type": "tuple[]" + }, + { + "components": [ + { + "internalType": "uint256", + "name": "salt", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "deadline", + "type": "uint256" + }, + { + "internalType": "address", + "name": "user", + "type": "address" + }, + { + "internalType": "bool", + "name": "canFail", + "type": "bool" + } + ], + "internalType": "struct Market.SettleShared", + "name": "shared", + "type": "tuple" + } + ], + "internalType": "struct Market.RunInput", + "name": "input", + "type": "tuple" + } + ], + "name": "run", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "components": [ + { + "internalType": "uint256", + "name": "salt", + "type": "uint256" + }, + { + "internalType": "address", + "name": "user", + "type": "address" + }, + { + "internalType": "uint256", + "name": "network", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "intent", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "delegateType", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "deadline", + "type": "uint256" + }, + { + "internalType": "contract IERC20Upgradeable", + "name": "currency", + "type": "address" + }, + { + "components": [ + { + "internalType": "uint256", + "name": "price", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "internalType": "struct Market.OrderItem[]", + "name": "items", + "type": "tuple[]" + }, + { + "internalType": "bytes32", + "name": "r", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "s", + "type": "bytes32" + }, + { + "internalType": "uint8", + "name": "v", + "type": "uint8" + }, + { + "internalType": "uint8", + "name": "signVersion", + "type": "uint8" + } + ], + "internalType": "struct Market.Order", + "name": "order", + "type": "tuple" + }, + { + "components": [ + { + "internalType": "uint256", + "name": "salt", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "deadline", + "type": "uint256" + }, + { + "internalType": "address", + "name": "user", + "type": "address" + }, + { + "internalType": "bool", + "name": "canFail", + "type": "bool" + } + ], + "internalType": "struct Market.SettleShared", + "name": "shared", + "type": "tuple" + }, + { + "components": [ + { + "internalType": "enum Market.Op", + "name": "op", + "type": "uint8" + }, + { + "internalType": "uint256", + "name": "orderIdx", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "itemIdx", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "price", + "type": "uint256" + }, + { + "internalType": "bytes32", + "name": "itemHash", + "type": "bytes32" + }, + { + "internalType": "contract IDelegate", + "name": "executionDelegate", + "type": "address" + }, + { + "components": [ + { + "internalType": "uint256", + "name": "percentage", + "type": "uint256" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + } + ], + "internalType": "struct Market.Fee[]", + "name": "fees", + "type": "tuple[]" + } + ], + "internalType": "struct Market.SettleDetail", + "name": "detail", + "type": "tuple" + } + ], + "name": "runSingle", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newOwner", + "type": "address" + }, + { + "internalType": "bool", + "name": "direct", + "type": "bool" + } + ], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "unpause", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "contract IERC20Upgradeable[]", + "name": "toAdd", + "type": "address[]" + }, + { + "internalType": "contract IERC20Upgradeable[]", + "name": "toRemove", + "type": "address[]" + } + ], + "name": "updateCurrencies", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address[]", + "name": "toAdd", + "type": "address[]" + }, + { + "internalType": "address[]", + "name": "toRemove", + "type": "address[]" + } + ], + "name": "updateDelegates", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "val", + "type": "uint256" + } + ], + "name": "updateFeeCap", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newImplementation", + "type": "address" + } + ], + "name": "upgradeTo", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newImplementation", + "type": "address" + }, + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "upgradeToAndCall", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [], + "name": "weth", + "outputs": [ + { + "internalType": "contract IWETHUpgradable", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_logic", + "type": "address" + }, + { + "internalType": "bytes", + "name": "_data", + "type": "bytes" + } + ], + "stateMutability": "payable", + "type": "constructor" + } + ], + "transactionHash": "0xc860fe599f63e0f1e8b5aaf79b878b1d1a824dc26ce9d6916ed0c184f1e55404", + "receipt": { + "to": null, + "from": "0xfeD03676c595DD1F1c6716a446cD44B4C90AD290", + "contractAddress": "0x76eDf742106828B2aDd50829142B84d3B337Fdd5", + "transactionIndex": 0, + "gasUsed": "379551", + "logsBloom": "0x00000000000000000000000000000000400000000000000000800010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000001000000000000000000000000000000000000020020000000000000000800000002000000000000000000000000400000000000000000000000000000000000000000000004008000000000000000000000000000000000000000000000000002000000000000000000000000000000000020000000000000000000000000000000000000000000000000000020000000000100000000000040000000000000000000000000000000000010000000", + "blockHash": "0x8ed01304122d581745e91fa1791490d162f7c50905bae48bc3e896bc20e91dea", + "transactionHash": "0xc860fe599f63e0f1e8b5aaf79b878b1d1a824dc26ce9d6916ed0c184f1e55404", + "logs": [ + { + "transactionIndex": 0, + "blockNumber": 1206194, + "transactionHash": "0xc860fe599f63e0f1e8b5aaf79b878b1d1a824dc26ce9d6916ed0c184f1e55404", + "address": "0x76eDf742106828B2aDd50829142B84d3B337Fdd5", + "topics": [ + "0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b", + "0x00000000000000000000000059d7cab3aedd66a47b242752e599f5d557bdbc12" + ], + "data": "0x", + "logIndex": 0, + "blockHash": "0x8ed01304122d581745e91fa1791490d162f7c50905bae48bc3e896bc20e91dea" + }, + { + "transactionIndex": 0, + "blockNumber": 1206194, + "transactionHash": "0xc860fe599f63e0f1e8b5aaf79b878b1d1a824dc26ce9d6916ed0c184f1e55404", + "address": "0x76eDf742106828B2aDd50829142B84d3B337Fdd5", + "topics": [ + "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", + "0x0000000000000000000000000000000000000000000000000000000000000000", + "0x000000000000000000000000fed03676c595dd1f1c6716a446cd44b4c90ad290" + ], + "data": "0x", + "logIndex": 1, + "blockHash": "0x8ed01304122d581745e91fa1791490d162f7c50905bae48bc3e896bc20e91dea" + } + ], + "blockNumber": 1206194, + "cumulativeGasUsed": "379551", + "status": 1, + "byzantium": true + }, + "args": [ + "0x59d7Cab3aedD66A47B242752E599F5D557bdbc12", + "0xda35a26f00000000000000000000000000000000000000000000000000000000000186a00000000000000000000000000ee3f0848ca07e6342390c34fcc7ea9d0217a47d" + ], + "numDeployments": 1, + "bytecode": "0x6080604052604051610772380380610772833981016040819052610022916102f7565b61004d60017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd61040f565b60008051602061072b8339815191521461007757634e487b7160e01b600052600160045260246000fd5b6100838282600061008a565b5050610474565b610093836100f4565b6040516001600160a01b038416907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a26000825111806100d45750805b156100ef576100ed83836101b460201b6100291760201c565b505b505050565b610107816101e060201b6100551760201c565b61016e5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084015b60405180910390fd5b8061019360008051602061072b83398151915260001b6101e660201b61005b1760201c565b80546001600160a01b0319166001600160a01b039290921691909117905550565b60606101d9838360405180606001604052806027815260200161074b602791396101e9565b9392505050565b3b151590565b90565b6060833b6102485760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b6064820152608401610165565b600080856001600160a01b03168560405161026391906103c0565b600060405180830381855af49150503d806000811461029e576040519150601f19603f3d011682016040523d82523d6000602084013e6102a3565b606091505b5090925090506102b48282866102be565b9695505050505050565b606083156102cd5750816101d9565b8251156102dd5782518084602001fd5b8160405162461bcd60e51b815260040161016591906103dc565b60008060408385031215610309578182fd5b82516001600160a01b038116811461031f578283fd5b60208401519092506001600160401b038082111561033b578283fd5b818501915085601f83011261034e578283fd5b8151818111156103605761036061045e565b604051601f8201601f19908116603f011681019083821181831017156103885761038861045e565b816040528281528860208487010111156103a0578586fd5b6103b1836020830160208801610432565b80955050505050509250929050565b600082516103d2818460208701610432565b9190910192915050565b60006020825282518060208401526103fb816040850160208701610432565b601f01601f19169190910160400192915050565b60008282101561042d57634e487b7160e01b81526011600452602481fd5b500390565b60005b8381101561044d578181015183820152602001610435565b838111156100ed5750506000910152565b634e487b7160e01b600052604160045260246000fd5b6102a8806104836000396000f3fe60806040523661001357610011610017565b005b6100115b61002761002261005e565b610096565b565b606061004e838360405180606001604052806027815260200161024c602791396100ba565b9392505050565b3b151590565b90565b60006100917f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b3660008037600080366000845af43d6000803e8080156100b5573d6000f35b3d6000fd5b6060833b61011e5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084015b60405180910390fd5b600080856001600160a01b03168560405161013991906101cc565b600060405180830381855af49150503d8060008114610174576040519150601f19603f3d011682016040523d82523d6000602084013e610179565b606091505b5091509150610189828286610193565b9695505050505050565b606083156101a257508161004e565b8251156101b25782518084602001fd5b8160405162461bcd60e51b815260040161011591906101e8565b600082516101de81846020870161021b565b9190910192915050565b600060208252825180602084015261020781604085016020870161021b565b601f01601f19169190910160400192915050565b60005b8381101561023657818101518382015260200161021e565b83811115610245576000848401525b5050505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212209b8470f06e8a3960c912103fc2be177edaad69584ee3c7d2809ee737e79408e764736f6c63430008020033360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564", + "deployedBytecode": "0x60806040523661001357610011610017565b005b6100115b61002761002261005e565b610096565b565b606061004e838360405180606001604052806027815260200161024c602791396100ba565b9392505050565b3b151590565b90565b60006100917f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b3660008037600080366000845af43d6000803e8080156100b5573d6000f35b3d6000fd5b6060833b61011e5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084015b60405180910390fd5b600080856001600160a01b03168560405161013991906101cc565b600060405180830381855af49150503d8060008114610174576040519150601f19603f3d011682016040523d82523d6000602084013e610179565b606091505b5091509150610189828286610193565b9695505050505050565b606083156101a257508161004e565b8251156101b25782518084602001fd5b8160405162461bcd60e51b815260040161011591906101e8565b600082516101de81846020870161021b565b9190910192915050565b600060208252825180602084015261020781604085016020870161021b565b601f01601f19169190910160400192915050565b60005b8381101561023657818101518382015260200161021e565b83811115610245576000848401525b5050505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212209b8470f06e8a3960c912103fc2be177edaad69584ee3c7d2809ee737e79408e764736f6c63430008020033", + "execute": { + "methodName": "initialize", + "args": [ + 100000, + "0x0EE3F0848cA07E6342390C34FcC7Ea9D0217a47d" + ] + }, + "implementation": "0x59d7Cab3aedD66A47B242752E599F5D557bdbc12" +} \ No newline at end of file diff --git a/deployments/p12TestNet/SecretShopUpgradable_Implementation.json b/deployments/p12TestNet/SecretShopUpgradable_Implementation.json new file mode 100644 index 0000000..4e76fbb --- /dev/null +++ b/deployments/p12TestNet/SecretShopUpgradable_Implementation.json @@ -0,0 +1,1344 @@ +{ + "address": "0x59d7Cab3aedD66A47B242752E599F5D557bdbc12", + "abi": [ + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "previousAdmin", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "newAdmin", + "type": "address" + } + ], + "name": "AdminChanged", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "beacon", + "type": "address" + } + ], + "name": "BeaconUpgraded", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "itemHash", + "type": "bytes32" + } + ], + "name": "EvCancel", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "contract IERC20Upgradeable", + "name": "currency", + "type": "address" + }, + { + "indexed": false, + "internalType": "bool", + "name": "isRemoval", + "type": "bool" + } + ], + "name": "EvCurrency", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "delegate", + "type": "address" + }, + { + "indexed": false, + "internalType": "bool", + "name": "isRemoval", + "type": "bool" + } + ], + "name": "EvDelegate", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "index", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "error", + "type": "bytes" + } + ], + "name": "EvFailure", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "newValue", + "type": "uint256" + } + ], + "name": "EvFeeCapUpdate", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "bytes32", + "name": "itemHash", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "address", + "name": "maker", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "taker", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "orderSalt", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "settleSalt", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "intent", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "delegateType", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "deadline", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "contract IERC20Upgradeable", + "name": "currency", + "type": "address" + }, + { + "components": [ + { + "internalType": "uint256", + "name": "price", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "indexed": false, + "internalType": "struct Market.OrderItem", + "name": "item", + "type": "tuple" + }, + { + "components": [ + { + "internalType": "enum Market.Op", + "name": "op", + "type": "uint8" + }, + { + "internalType": "uint256", + "name": "orderIdx", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "itemIdx", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "price", + "type": "uint256" + }, + { + "internalType": "bytes32", + "name": "itemHash", + "type": "bytes32" + }, + { + "internalType": "contract IDelegate", + "name": "executionDelegate", + "type": "address" + }, + { + "components": [ + { + "internalType": "uint256", + "name": "percentage", + "type": "uint256" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + } + ], + "internalType": "struct Market.Fee[]", + "name": "fees", + "type": "tuple[]" + } + ], + "indexed": false, + "internalType": "struct Market.SettleDetail", + "name": "detail", + "type": "tuple" + } + ], + "name": "EvInventory", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "bytes32", + "name": "itemHash", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "address", + "name": "currency", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "EvProfit", + "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": [ + { + "indexed": false, + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "Paused", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "Unpaused", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "implementation", + "type": "address" + } + ], + "name": "Upgraded", + "type": "event" + }, + { + "inputs": [], + "name": "RATE_BASE", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "claimOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "contract IERC20Upgradeable", + "name": "", + "type": "address" + } + ], + "name": "currencies", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "name": "delegates", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "domainSeparator", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "feeCapPct", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "feeCapPct_", + "type": "uint256" + }, + { + "internalType": "address", + "name": "weth_", + "type": "address" + } + ], + "name": "initialize", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "name": "inventoryStatus", + "outputs": [ + { + "internalType": "enum Market.InvStatus", + "name": "", + "type": "uint8" + } + ], + "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": "pendingOwner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "proxiableUUID", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "renounceOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "components": [ + { + "components": [ + { + "internalType": "uint256", + "name": "salt", + "type": "uint256" + }, + { + "internalType": "address", + "name": "user", + "type": "address" + }, + { + "internalType": "uint256", + "name": "network", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "intent", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "delegateType", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "deadline", + "type": "uint256" + }, + { + "internalType": "contract IERC20Upgradeable", + "name": "currency", + "type": "address" + }, + { + "components": [ + { + "internalType": "uint256", + "name": "price", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "internalType": "struct Market.OrderItem[]", + "name": "items", + "type": "tuple[]" + }, + { + "internalType": "bytes32", + "name": "r", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "s", + "type": "bytes32" + }, + { + "internalType": "uint8", + "name": "v", + "type": "uint8" + }, + { + "internalType": "uint8", + "name": "signVersion", + "type": "uint8" + } + ], + "internalType": "struct Market.Order[]", + "name": "orders", + "type": "tuple[]" + }, + { + "components": [ + { + "internalType": "enum Market.Op", + "name": "op", + "type": "uint8" + }, + { + "internalType": "uint256", + "name": "orderIdx", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "itemIdx", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "price", + "type": "uint256" + }, + { + "internalType": "bytes32", + "name": "itemHash", + "type": "bytes32" + }, + { + "internalType": "contract IDelegate", + "name": "executionDelegate", + "type": "address" + }, + { + "components": [ + { + "internalType": "uint256", + "name": "percentage", + "type": "uint256" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + } + ], + "internalType": "struct Market.Fee[]", + "name": "fees", + "type": "tuple[]" + } + ], + "internalType": "struct Market.SettleDetail[]", + "name": "details", + "type": "tuple[]" + }, + { + "components": [ + { + "internalType": "uint256", + "name": "salt", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "deadline", + "type": "uint256" + }, + { + "internalType": "address", + "name": "user", + "type": "address" + }, + { + "internalType": "bool", + "name": "canFail", + "type": "bool" + } + ], + "internalType": "struct Market.SettleShared", + "name": "shared", + "type": "tuple" + } + ], + "internalType": "struct Market.RunInput", + "name": "input", + "type": "tuple" + } + ], + "name": "run", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "components": [ + { + "internalType": "uint256", + "name": "salt", + "type": "uint256" + }, + { + "internalType": "address", + "name": "user", + "type": "address" + }, + { + "internalType": "uint256", + "name": "network", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "intent", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "delegateType", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "deadline", + "type": "uint256" + }, + { + "internalType": "contract IERC20Upgradeable", + "name": "currency", + "type": "address" + }, + { + "components": [ + { + "internalType": "uint256", + "name": "price", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "internalType": "struct Market.OrderItem[]", + "name": "items", + "type": "tuple[]" + }, + { + "internalType": "bytes32", + "name": "r", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "s", + "type": "bytes32" + }, + { + "internalType": "uint8", + "name": "v", + "type": "uint8" + }, + { + "internalType": "uint8", + "name": "signVersion", + "type": "uint8" + } + ], + "internalType": "struct Market.Order", + "name": "order", + "type": "tuple" + }, + { + "components": [ + { + "internalType": "uint256", + "name": "salt", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "deadline", + "type": "uint256" + }, + { + "internalType": "address", + "name": "user", + "type": "address" + }, + { + "internalType": "bool", + "name": "canFail", + "type": "bool" + } + ], + "internalType": "struct Market.SettleShared", + "name": "shared", + "type": "tuple" + }, + { + "components": [ + { + "internalType": "enum Market.Op", + "name": "op", + "type": "uint8" + }, + { + "internalType": "uint256", + "name": "orderIdx", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "itemIdx", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "price", + "type": "uint256" + }, + { + "internalType": "bytes32", + "name": "itemHash", + "type": "bytes32" + }, + { + "internalType": "contract IDelegate", + "name": "executionDelegate", + "type": "address" + }, + { + "components": [ + { + "internalType": "uint256", + "name": "percentage", + "type": "uint256" + }, + { + "internalType": "address", + "name": "to", + "type": "address" + } + ], + "internalType": "struct Market.Fee[]", + "name": "fees", + "type": "tuple[]" + } + ], + "internalType": "struct Market.SettleDetail", + "name": "detail", + "type": "tuple" + } + ], + "name": "runSingle", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newOwner", + "type": "address" + }, + { + "internalType": "bool", + "name": "direct", + "type": "bool" + } + ], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "unpause", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "contract IERC20Upgradeable[]", + "name": "toAdd", + "type": "address[]" + }, + { + "internalType": "contract IERC20Upgradeable[]", + "name": "toRemove", + "type": "address[]" + } + ], + "name": "updateCurrencies", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address[]", + "name": "toAdd", + "type": "address[]" + }, + { + "internalType": "address[]", + "name": "toRemove", + "type": "address[]" + } + ], + "name": "updateDelegates", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "val", + "type": "uint256" + } + ], + "name": "updateFeeCap", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newImplementation", + "type": "address" + } + ], + "name": "upgradeTo", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newImplementation", + "type": "address" + }, + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "upgradeToAndCall", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [], + "name": "weth", + "outputs": [ + { + "internalType": "contract IWETHUpgradable", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "stateMutability": "payable", + "type": "receive" + } + ], + "transactionHash": "0x7dfc244371eba8191b115a4ce4e27ff2f74a23beb2310f38e6282d8f71e8614d", + "receipt": { + "to": null, + "from": "0xfeD03676c595DD1F1c6716a446cD44B4C90AD290", + "contractAddress": "0x59d7Cab3aedD66A47B242752E599F5D557bdbc12", + "transactionIndex": 0, + "gasUsed": "3474425", + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "blockHash": "0xb86909a8a9a8743d9c0e0024eecaa9c54ef470476e9a73db38929b0e71719918", + "transactionHash": "0x7dfc244371eba8191b115a4ce4e27ff2f74a23beb2310f38e6282d8f71e8614d", + "logs": [], + "blockNumber": 1206193, + "cumulativeGasUsed": "3474425", + "status": 1, + "byzantium": true + }, + "args": [], + "numDeployments": 1, + "solcInputHash": "1f7f80fb95b6efcc6f464d7df403eaaa", + "metadata": "{\"compiler\":{\"version\":\"0.8.15+commit.e14f2714\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"previousAdmin\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newAdmin\",\"type\":\"address\"}],\"name\":\"AdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"beacon\",\"type\":\"address\"}],\"name\":\"BeaconUpgraded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"itemHash\",\"type\":\"bytes32\"}],\"name\":\"EvCancel\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"contract IERC20Upgradeable\",\"name\":\"currency\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"isRemoval\",\"type\":\"bool\"}],\"name\":\"EvCurrency\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"delegate\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"isRemoval\",\"type\":\"bool\"}],\"name\":\"EvDelegate\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"error\",\"type\":\"bytes\"}],\"name\":\"EvFailure\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"newValue\",\"type\":\"uint256\"}],\"name\":\"EvFeeCapUpdate\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"itemHash\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"maker\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"taker\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"orderSalt\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"settleSalt\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"intent\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"delegateType\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"contract IERC20Upgradeable\",\"name\":\"currency\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"indexed\":false,\"internalType\":\"struct Market.OrderItem\",\"name\":\"item\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"enum Market.Op\",\"name\":\"op\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"orderIdx\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"itemIdx\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"itemHash\",\"type\":\"bytes32\"},{\"internalType\":\"contract IDelegate\",\"name\":\"executionDelegate\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"percentage\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"internalType\":\"struct Market.Fee[]\",\"name\":\"fees\",\"type\":\"tuple[]\"}],\"indexed\":false,\"internalType\":\"struct Market.SettleDetail\",\"name\":\"detail\",\"type\":\"tuple\"}],\"name\":\"EvInventory\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"itemHash\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"currency\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"EvProfit\",\"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\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Paused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Unpaused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"Upgraded\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"RATE_BASE\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"claimOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract IERC20Upgradeable\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"currencies\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"delegates\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"domainSeparator\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"feeCapPct\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"feeCapPct_\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"weth_\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"inventoryStatus\",\"outputs\":[{\"internalType\":\"enum Market.InvStatus\",\"name\":\"\",\"type\":\"uint8\"}],\"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\":\"pendingOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"proxiableUUID\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"salt\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"network\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"intent\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"delegateType\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"contract IERC20Upgradeable\",\"name\":\"currency\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"internalType\":\"struct Market.OrderItem[]\",\"name\":\"items\",\"type\":\"tuple[]\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"},{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"uint8\",\"name\":\"signVersion\",\"type\":\"uint8\"}],\"internalType\":\"struct Market.Order[]\",\"name\":\"orders\",\"type\":\"tuple[]\"},{\"components\":[{\"internalType\":\"enum Market.Op\",\"name\":\"op\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"orderIdx\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"itemIdx\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"itemHash\",\"type\":\"bytes32\"},{\"internalType\":\"contract IDelegate\",\"name\":\"executionDelegate\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"percentage\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"internalType\":\"struct Market.Fee[]\",\"name\":\"fees\",\"type\":\"tuple[]\"}],\"internalType\":\"struct Market.SettleDetail[]\",\"name\":\"details\",\"type\":\"tuple[]\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"salt\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"canFail\",\"type\":\"bool\"}],\"internalType\":\"struct Market.SettleShared\",\"name\":\"shared\",\"type\":\"tuple\"}],\"internalType\":\"struct Market.RunInput\",\"name\":\"input\",\"type\":\"tuple\"}],\"name\":\"run\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"salt\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"network\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"intent\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"delegateType\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"contract IERC20Upgradeable\",\"name\":\"currency\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"internalType\":\"struct Market.OrderItem[]\",\"name\":\"items\",\"type\":\"tuple[]\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"},{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"uint8\",\"name\":\"signVersion\",\"type\":\"uint8\"}],\"internalType\":\"struct Market.Order\",\"name\":\"order\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"salt\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"canFail\",\"type\":\"bool\"}],\"internalType\":\"struct Market.SettleShared\",\"name\":\"shared\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"enum Market.Op\",\"name\":\"op\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"orderIdx\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"itemIdx\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"itemHash\",\"type\":\"bytes32\"},{\"internalType\":\"contract IDelegate\",\"name\":\"executionDelegate\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"percentage\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"internalType\":\"struct Market.Fee[]\",\"name\":\"fees\",\"type\":\"tuple[]\"}],\"internalType\":\"struct Market.SettleDetail\",\"name\":\"detail\",\"type\":\"tuple\"}],\"name\":\"runSingle\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"direct\",\"type\":\"bool\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"unpause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract IERC20Upgradeable[]\",\"name\":\"toAdd\",\"type\":\"address[]\"},{\"internalType\":\"contract IERC20Upgradeable[]\",\"name\":\"toRemove\",\"type\":\"address[]\"}],\"name\":\"updateCurrencies\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"toAdd\",\"type\":\"address[]\"},{\"internalType\":\"address[]\",\"name\":\"toRemove\",\"type\":\"address[]\"}],\"name\":\"updateDelegates\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"val\",\"type\":\"uint256\"}],\"name\":\"updateFeeCap\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"}],\"name\":\"upgradeTo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"upgradeToAndCall\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"weth\",\"outputs\":[{\"internalType\":\"contract IWETHUpgradable\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"claimOwnership()\":{\"details\":\"pending owner call this function to claim ownership\"},\"initialize(uint256,address)\":{\"details\":\"initialize\",\"params\":{\"feeCapPct_\":\"max fee percentage\",\"weth_\":\"address of wrapped eth\"}},\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"paused()\":{\"details\":\"Returns true if the contract is paused, and false otherwise.\"},\"pendingOwner()\":{\"details\":\"Return the address of the pending owner\"},\"proxiableUUID()\":{\"details\":\"Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the implementation. It is used to validate that the this implementation remains valid after an upgrade. IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\"},\"renounceOwnership()\":{\"details\":\"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.\"},\"run(((uint256,address,uint256,uint256,uint256,uint256,address,(uint256,bytes)[],bytes32,bytes32,uint8,uint8)[],(uint8,uint256,uint256,uint256,bytes32,address,(uint256,address)[])[],(uint256,uint256,address,bool)))\":{\"details\":\"Entry of a contract call\",\"params\":{\"input\":\"a struct that contains all data\"}},\"runSingle((uint256,address,uint256,uint256,uint256,uint256,address,(uint256,bytes)[],bytes32,bytes32,uint8,uint8),(uint256,uint256,address,bool),(uint8,uint256,uint256,uint256,bytes32,address,(uint256,address)[]))\":{\"details\":\"run a single order\",\"params\":{\"detail\":\"detail by the taker\",\"order\":\"order by the maker\",\"shared\":\"some option of the taker\"}},\"transferOwnership(address,bool)\":{\"details\":\"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner. Note If direct is false, it will set an pending owner and the OwnerShipTransferring only happens when the pending owner claim the ownership\"},\"updateCurrencies(address[],address[])\":{\"details\":\"update Currencies address\",\"params\":{\"toAdd\":\"the array of currency address that want to add\",\"toRemove\":\"the array to currency address that want to remove\"}},\"updateDelegates(address[],address[])\":{\"details\":\"update Delegates address\",\"params\":{\"toAdd\":\"the array of delegate address that want to add\",\"toRemove\":\"the array to delegate address that want to remove\"}},\"updateFeeCap(uint256)\":{\"params\":{\"val\":\"new Fee Cap\"}},\"upgradeTo(address)\":{\"details\":\"Upgrade the implementation of the proxy to `newImplementation`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.\"},\"upgradeToAndCall(address,bytes)\":{\"details\":\"Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call encoded in `data`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.\"}},\"stateVariables\":{\"RATE_BASE\":{\"details\":\"precision of the parameters \"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/secretShop/SecretShopUpgradable.sol\":\"SecretShopUpgradable\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts-upgradeable/interfaces/draft-IERC1822Upgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (interfaces/draft-IERC1822.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\\n * proxy whose upgrades are fully controlled by the current implementation.\\n */\\ninterface IERC1822ProxiableUpgradeable {\\n /**\\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\\n * address.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy.\\n */\\n function proxiableUUID() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x77c89f893e403efc6929ba842b7ccf6534d4ffe03afe31670b4a528c0ad78c0f\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/ERC1967/ERC1967UpgradeUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (proxy/ERC1967/ERC1967Upgrade.sol)\\n\\npragma solidity ^0.8.2;\\n\\nimport \\\"../beacon/IBeaconUpgradeable.sol\\\";\\nimport \\\"../../interfaces/draft-IERC1822Upgradeable.sol\\\";\\nimport \\\"../../utils/AddressUpgradeable.sol\\\";\\nimport \\\"../../utils/StorageSlotUpgradeable.sol\\\";\\nimport \\\"../utils/Initializable.sol\\\";\\n\\n/**\\n * @dev This abstract contract provides getters and event emitting update functions for\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.\\n *\\n * _Available since v4.1._\\n *\\n * @custom:oz-upgrades-unsafe-allow delegatecall\\n */\\nabstract contract ERC1967UpgradeUpgradeable is Initializable {\\n function __ERC1967Upgrade_init() internal onlyInitializing {\\n }\\n\\n function __ERC1967Upgrade_init_unchained() internal onlyInitializing {\\n }\\n // This is the keccak-256 hash of \\\"eip1967.proxy.rollback\\\" subtracted by 1\\n bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143;\\n\\n /**\\n * @dev Storage slot with the address of the current implementation.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.implementation\\\" subtracted by 1, and is\\n * validated in the constructor.\\n */\\n bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n\\n /**\\n * @dev Emitted when the implementation is upgraded.\\n */\\n event Upgraded(address indexed implementation);\\n\\n /**\\n * @dev Returns the current implementation address.\\n */\\n function _getImplementation() internal view returns (address) {\\n return StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 implementation slot.\\n */\\n function _setImplementation(address newImplementation) private {\\n require(AddressUpgradeable.isContract(newImplementation), \\\"ERC1967: new implementation is not a contract\\\");\\n StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n }\\n\\n /**\\n * @dev Perform implementation upgrade\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeTo(address newImplementation) internal {\\n _setImplementation(newImplementation);\\n emit Upgraded(newImplementation);\\n }\\n\\n /**\\n * @dev Perform implementation upgrade with additional setup call.\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeToAndCall(\\n address newImplementation,\\n bytes memory data,\\n bool forceCall\\n ) internal {\\n _upgradeTo(newImplementation);\\n if (data.length > 0 || forceCall) {\\n _functionDelegateCall(newImplementation, data);\\n }\\n }\\n\\n /**\\n * @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call.\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeToAndCallUUPS(\\n address newImplementation,\\n bytes memory data,\\n bool forceCall\\n ) internal {\\n // Upgrades from old implementations will perform a rollback test. This test requires the new\\n // implementation to upgrade back to the old, non-ERC1822 compliant, implementation. Removing\\n // this special case will break upgrade paths from old UUPS implementation to new ones.\\n if (StorageSlotUpgradeable.getBooleanSlot(_ROLLBACK_SLOT).value) {\\n _setImplementation(newImplementation);\\n } else {\\n try IERC1822ProxiableUpgradeable(newImplementation).proxiableUUID() returns (bytes32 slot) {\\n require(slot == _IMPLEMENTATION_SLOT, \\\"ERC1967Upgrade: unsupported proxiableUUID\\\");\\n } catch {\\n revert(\\\"ERC1967Upgrade: new implementation is not UUPS\\\");\\n }\\n _upgradeToAndCall(newImplementation, data, forceCall);\\n }\\n }\\n\\n /**\\n * @dev Storage slot with the admin of the contract.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.admin\\\" subtracted by 1, and is\\n * validated in the constructor.\\n */\\n bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\\n\\n /**\\n * @dev Emitted when the admin account has changed.\\n */\\n event AdminChanged(address previousAdmin, address newAdmin);\\n\\n /**\\n * @dev Returns the current admin.\\n */\\n function _getAdmin() internal view returns (address) {\\n return StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 admin slot.\\n */\\n function _setAdmin(address newAdmin) private {\\n require(newAdmin != address(0), \\\"ERC1967: new admin is the zero address\\\");\\n StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value = newAdmin;\\n }\\n\\n /**\\n * @dev Changes the admin of the proxy.\\n *\\n * Emits an {AdminChanged} event.\\n */\\n function _changeAdmin(address newAdmin) internal {\\n emit AdminChanged(_getAdmin(), newAdmin);\\n _setAdmin(newAdmin);\\n }\\n\\n /**\\n * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.\\n * This is bytes32(uint256(keccak256('eip1967.proxy.beacon')) - 1)) and is validated in the constructor.\\n */\\n bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\\n\\n /**\\n * @dev Emitted when the beacon is upgraded.\\n */\\n event BeaconUpgraded(address indexed beacon);\\n\\n /**\\n * @dev Returns the current beacon.\\n */\\n function _getBeacon() internal view returns (address) {\\n return StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new beacon in the EIP1967 beacon slot.\\n */\\n function _setBeacon(address newBeacon) private {\\n require(AddressUpgradeable.isContract(newBeacon), \\\"ERC1967: new beacon is not a contract\\\");\\n require(\\n AddressUpgradeable.isContract(IBeaconUpgradeable(newBeacon).implementation()),\\n \\\"ERC1967: beacon implementation is not a contract\\\"\\n );\\n StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value = newBeacon;\\n }\\n\\n /**\\n * @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does\\n * not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that).\\n *\\n * Emits a {BeaconUpgraded} event.\\n */\\n function _upgradeBeaconToAndCall(\\n address newBeacon,\\n bytes memory data,\\n bool forceCall\\n ) internal {\\n _setBeacon(newBeacon);\\n emit BeaconUpgraded(newBeacon);\\n if (data.length > 0 || forceCall) {\\n _functionDelegateCall(IBeaconUpgradeable(newBeacon).implementation(), data);\\n }\\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) private returns (bytes memory) {\\n require(AddressUpgradeable.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 AddressUpgradeable.verifyCallResult(success, returndata, \\\"Address: low-level delegate call failed\\\");\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0x315887e846f1e5f8d8fa535a229d318bb9290aaa69485117f1ee8a9a6b3be823\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/beacon/IBeaconUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev This is the interface that {BeaconProxy} expects of its beacon.\\n */\\ninterface IBeaconUpgradeable {\\n /**\\n * @dev Must return an address that can be used as a delegate call target.\\n *\\n * {BeaconProxy} will check that this address is a contract.\\n */\\n function implementation() external view returns (address);\\n}\\n\",\"keccak256\":\"0x24b86ac8c005b8c654fbf6ac34a5a4f61580d7273541e83e013e89d66fbf0908\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (proxy/utils/Initializable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/AddressUpgradeable.sol\\\";\\n\\n/**\\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\\n *\\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\\n *\\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\\n *\\n * [CAUTION]\\n * ====\\n * Avoid leaving a contract uninitialized.\\n *\\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\\n * contract, which may impact the proxy. To initialize the implementation contract, you can either invoke the\\n * initializer manually, or you can include a constructor to automatically mark it as initialized when it is deployed:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```\\n * /// @custom:oz-upgrades-unsafe-allow constructor\\n * constructor() initializer {}\\n * ```\\n * ====\\n */\\nabstract contract Initializable {\\n /**\\n * @dev Indicates that the contract has been initialized.\\n */\\n bool private _initialized;\\n\\n /**\\n * @dev Indicates that the contract is in the process of being initialized.\\n */\\n bool private _initializing;\\n\\n /**\\n * @dev Modifier to protect an initializer function from being invoked twice.\\n */\\n modifier initializer() {\\n // If the contract is initializing we ignore whether _initialized is set in order to support multiple\\n // inheritance patterns, but we only do this in the context of a constructor, because in other contexts the\\n // contract may have been reentered.\\n require(_initializing ? _isConstructor() : !_initialized, \\\"Initializable: contract is already initialized\\\");\\n\\n bool isTopLevelCall = !_initializing;\\n if (isTopLevelCall) {\\n _initializing = true;\\n _initialized = true;\\n }\\n\\n _;\\n\\n if (isTopLevelCall) {\\n _initializing = false;\\n }\\n }\\n\\n /**\\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\\n * {initializer} modifier, directly or indirectly.\\n */\\n modifier onlyInitializing() {\\n require(_initializing, \\\"Initializable: contract is not initializing\\\");\\n _;\\n }\\n\\n function _isConstructor() private view returns (bool) {\\n return !AddressUpgradeable.isContract(address(this));\\n }\\n}\\n\",\"keccak256\":\"0x372b0bc04e3b4c074559bbbfb1317afddb56de5504158ca25a7f9cd403980445\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (proxy/utils/UUPSUpgradeable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../interfaces/draft-IERC1822Upgradeable.sol\\\";\\nimport \\\"../ERC1967/ERC1967UpgradeUpgradeable.sol\\\";\\nimport \\\"./Initializable.sol\\\";\\n\\n/**\\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\\n *\\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\\n * `UUPSUpgradeable` with a custom implementation of upgrades.\\n *\\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\\n *\\n * _Available since v4.1._\\n */\\nabstract contract UUPSUpgradeable is Initializable, IERC1822ProxiableUpgradeable, ERC1967UpgradeUpgradeable {\\n function __UUPSUpgradeable_init() internal onlyInitializing {\\n }\\n\\n function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\\n }\\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment\\n address private immutable __self = address(this);\\n\\n /**\\n * @dev Check that the execution is being performed through a delegatecall call and that the execution context is\\n * a proxy contract with an implementation (as defined in ERC1967) pointing to self. This should only be the case\\n * for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a\\n * function through ERC1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\\n * fail.\\n */\\n modifier onlyProxy() {\\n require(address(this) != __self, \\\"Function must be called through delegatecall\\\");\\n require(_getImplementation() == __self, \\\"Function must be called through active proxy\\\");\\n _;\\n }\\n\\n /**\\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\\n * callable on the implementing contract but not through proxies.\\n */\\n modifier notDelegated() {\\n require(address(this) == __self, \\\"UUPSUpgradeable: must not be called through delegatecall\\\");\\n _;\\n }\\n\\n /**\\n * @dev Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the\\n * implementation. It is used to validate that the this implementation remains valid after an upgrade.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\\n */\\n function proxiableUUID() external view virtual override notDelegated returns (bytes32) {\\n return _IMPLEMENTATION_SLOT;\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy to `newImplementation`.\\n *\\n * Calls {_authorizeUpgrade}.\\n *\\n * Emits an {Upgraded} event.\\n */\\n function upgradeTo(address newImplementation) external virtual onlyProxy {\\n _authorizeUpgrade(newImplementation);\\n _upgradeToAndCallUUPS(newImplementation, new bytes(0), false);\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call\\n * encoded in `data`.\\n *\\n * Calls {_authorizeUpgrade}.\\n *\\n * Emits an {Upgraded} event.\\n */\\n function upgradeToAndCall(address newImplementation, bytes memory data) external payable virtual onlyProxy {\\n _authorizeUpgrade(newImplementation);\\n _upgradeToAndCallUUPS(newImplementation, data, true);\\n }\\n\\n /**\\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\\n * {upgradeTo} and {upgradeToAndCall}.\\n *\\n * Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}.\\n *\\n * ```solidity\\n * function _authorizeUpgrade(address) internal override onlyOwner {}\\n * ```\\n */\\n function _authorizeUpgrade(address newImplementation) internal virtual;\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0x6e36e9b4b71de699c2f3f0d4e4d1aa0b35da99a26e8d5b91ef09ba234b4ef270\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../utils/ContextUpgradeable.sol\\\";\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module which allows children to implement an emergency stop\\n * mechanism that can be triggered by an authorized account.\\n *\\n * This module is used through inheritance. It will make available the\\n * modifiers `whenNotPaused` and `whenPaused`, which can be applied to\\n * the functions of your contract. Note that they will not be pausable by\\n * simply including this module, only once the modifiers are put in place.\\n */\\nabstract contract PausableUpgradeable is Initializable, ContextUpgradeable {\\n /**\\n * @dev Emitted when the pause is triggered by `account`.\\n */\\n event Paused(address account);\\n\\n /**\\n * @dev Emitted when the pause is lifted by `account`.\\n */\\n event Unpaused(address account);\\n\\n bool private _paused;\\n\\n /**\\n * @dev Initializes the contract in unpaused state.\\n */\\n function __Pausable_init() internal onlyInitializing {\\n __Pausable_init_unchained();\\n }\\n\\n function __Pausable_init_unchained() internal onlyInitializing {\\n _paused = false;\\n }\\n\\n /**\\n * @dev Returns true if the contract is paused, and false otherwise.\\n */\\n function paused() public view virtual returns (bool) {\\n return _paused;\\n }\\n\\n /**\\n * @dev Modifier to make a function callable only when the contract is not paused.\\n *\\n * Requirements:\\n *\\n * - The contract must not be paused.\\n */\\n modifier whenNotPaused() {\\n require(!paused(), \\\"Pausable: paused\\\");\\n _;\\n }\\n\\n /**\\n * @dev Modifier to make a function callable only when the contract is paused.\\n *\\n * Requirements:\\n *\\n * - The contract must be paused.\\n */\\n modifier whenPaused() {\\n require(paused(), \\\"Pausable: not paused\\\");\\n _;\\n }\\n\\n /**\\n * @dev Triggers stopped state.\\n *\\n * Requirements:\\n *\\n * - The contract must not be paused.\\n */\\n function _pause() internal virtual whenNotPaused {\\n _paused = true;\\n emit Paused(_msgSender());\\n }\\n\\n /**\\n * @dev Returns to normal state.\\n *\\n * Requirements:\\n *\\n * - The contract must be paused.\\n */\\n function _unpause() internal virtual whenPaused {\\n _paused = false;\\n emit Unpaused(_msgSender());\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[49] private __gap;\\n}\\n\",\"keccak256\":\"0x041af89e5e60b74e1203d5a34614c9de379726f52ecb8cf064cab78b9fdcdf9d\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)\\n\\npragma solidity ^0.8.0;\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module that helps prevent reentrant calls to a function.\\n *\\n * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier\\n * available, which can be applied to functions to make sure there are no nested\\n * (reentrant) calls to them.\\n *\\n * Note that because there is a single `nonReentrant` guard, functions marked as\\n * `nonReentrant` may not call one another. This can be worked around by making\\n * those functions `private`, and then adding `external` `nonReentrant` entry\\n * points to them.\\n *\\n * TIP: If you would like to learn more about reentrancy and alternative ways\\n * to protect against it, check out our blog post\\n * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].\\n */\\nabstract contract ReentrancyGuardUpgradeable is Initializable {\\n // Booleans are more expensive than uint256 or any type that takes up a full\\n // word because each write operation emits an extra SLOAD to first read the\\n // slot's contents, replace the bits taken up by the boolean, and then write\\n // back. This is the compiler's defense against contract upgrades and\\n // pointer aliasing, and it cannot be disabled.\\n\\n // The values being non-zero value makes deployment a bit more expensive,\\n // but in exchange the refund on every call to nonReentrant will be lower in\\n // amount. Since refunds are capped to a percentage of the total\\n // transaction's gas, it is best to keep them low in cases like this one, to\\n // increase the likelihood of the full refund coming into effect.\\n uint256 private constant _NOT_ENTERED = 1;\\n uint256 private constant _ENTERED = 2;\\n\\n uint256 private _status;\\n\\n function __ReentrancyGuard_init() internal onlyInitializing {\\n __ReentrancyGuard_init_unchained();\\n }\\n\\n function __ReentrancyGuard_init_unchained() internal onlyInitializing {\\n _status = _NOT_ENTERED;\\n }\\n\\n /**\\n * @dev Prevents a contract from calling itself, directly or indirectly.\\n * Calling a `nonReentrant` function from another `nonReentrant`\\n * function is not supported. It is possible to prevent this from happening\\n * by making the `nonReentrant` function external, and making it call a\\n * `private` function that does the actual work.\\n */\\n modifier nonReentrant() {\\n // On the first call to nonReentrant, _notEntered will be true\\n require(_status != _ENTERED, \\\"ReentrancyGuard: reentrant call\\\");\\n\\n // Any calls to nonReentrant after this point will fail\\n _status = _ENTERED;\\n\\n _;\\n\\n // By storing the original value once again, a refund is triggered (see\\n // https://eips.ethereum.org/EIPS/eip-2200)\\n _status = _NOT_ENTERED;\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[49] private __gap;\\n}\\n\",\"keccak256\":\"0x8cc03c5ac17e8a7396e487cda41fc1f1dfdb91db7d528e6da84bee3b6dd7e167\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC20 standard as defined in the EIP.\\n */\\ninterface IERC20Upgradeable {\\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 `to`.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transfer(address to, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Returns the remaining number of tokens that `spender` will be\\n * allowed to spend on behalf of `owner` through {transferFrom}. This is\\n * zero by default.\\n *\\n * This value changes when {approve} or {transferFrom} are called.\\n */\\n function allowance(address owner, address spender) external view returns (uint256);\\n\\n /**\\n * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * IMPORTANT: Beware that changing an allowance with this method brings the risk\\n * that someone may use both the old and the new allowance by unfortunate\\n * transaction ordering. One possible solution to mitigate this race\\n * condition is to first reduce the spender's allowance to 0 and set the\\n * desired value afterwards:\\n * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\\n *\\n * Emits an {Approval} event.\\n */\\n function approve(address spender, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Moves `amount` tokens from `from` to `to` 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(\\n address from,\\n address to,\\n uint256 amount\\n ) external returns (bool);\\n\\n /**\\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\\n * another (`to`).\\n *\\n * Note that `value` may be zero.\\n */\\n event Transfer(address indexed from, address indexed to, uint256 value);\\n\\n /**\\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\\n * a call to {approve}. `value` is the new allowance.\\n */\\n event Approval(address indexed owner, address indexed spender, uint256 value);\\n}\\n\",\"keccak256\":\"0x6777f3fccb5dab95a9088ef62c41bee0198fd92e50d7c94f0e3733788af4079e\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../IERC20Upgradeable.sol\\\";\\nimport \\\"../../../utils/AddressUpgradeable.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 SafeERC20Upgradeable {\\n using AddressUpgradeable for address;\\n\\n function safeTransfer(\\n IERC20Upgradeable token,\\n address to,\\n uint256 value\\n ) internal {\\n _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));\\n }\\n\\n function safeTransferFrom(\\n IERC20Upgradeable token,\\n address from,\\n address to,\\n uint256 value\\n ) internal {\\n _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));\\n }\\n\\n /**\\n * @dev Deprecated. This function has issues similar to the ones found in\\n * {IERC20-approve}, and its usage is discouraged.\\n *\\n * Whenever possible, use {safeIncreaseAllowance} and\\n * {safeDecreaseAllowance} instead.\\n */\\n function safeApprove(\\n IERC20Upgradeable token,\\n address spender,\\n uint256 value\\n ) internal {\\n // safeApprove should only be called when setting an initial allowance,\\n // or when resetting it to zero. To increase and decrease it, use\\n // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'\\n require(\\n (value == 0) || (token.allowance(address(this), spender) == 0),\\n \\\"SafeERC20: approve from non-zero to non-zero allowance\\\"\\n );\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));\\n }\\n\\n function safeIncreaseAllowance(\\n IERC20Upgradeable token,\\n address spender,\\n uint256 value\\n ) internal {\\n uint256 newAllowance = token.allowance(address(this), spender) + value;\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));\\n }\\n\\n function safeDecreaseAllowance(\\n IERC20Upgradeable token,\\n address spender,\\n uint256 value\\n ) internal {\\n unchecked {\\n uint256 oldAllowance = token.allowance(address(this), spender);\\n require(oldAllowance >= value, \\\"SafeERC20: decreased allowance below zero\\\");\\n uint256 newAllowance = oldAllowance - value;\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));\\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(IERC20Upgradeable token, bytes memory data) private {\\n // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since\\n // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that\\n // the target address contains contract code and also asserts for success in the low-level call.\\n\\n bytes memory returndata = address(token).functionCall(data, \\\"SafeERC20: low-level call failed\\\");\\n if (returndata.length > 0) {\\n // Return data is optional\\n require(abi.decode(returndata, (bool)), \\\"SafeERC20: ERC20 operation did not succeed\\\");\\n }\\n }\\n}\\n\",\"keccak256\":\"0x3e26a49d2fa5ef8338b8a9467c91e54f417cb07e849b1cc0f4ebc4d2a147938e\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary AddressUpgradeable {\\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 * [IMPORTANT]\\n * ====\\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\\n *\\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n * constructor.\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize/address.code.length, which returns 0\\n // for contracts in construction, since the code is only stored at the end\\n // of the constructor execution.\\n\\n return account.code.length > 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 (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(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) 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(\\n address target,\\n bytes memory data,\\n uint256 value\\n ) 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(\\n address target,\\n bytes memory data,\\n uint256 value,\\n string memory errorMessage\\n ) 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 (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(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n require(isContract(target), \\\"Address: static call to non-contract\\\");\\n\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResult(success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the\\n * revert reason using the provided one.\\n *\\n * _Available since v4.3._\\n */\\n function verifyCallResult(\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal 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 assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0x55cf2bd9fc76704ddcdc19834cd288b7de00fc0f298a40ea16a954ae8991db2d\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\\n\\npragma solidity ^0.8.0;\\nimport \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract ContextUpgradeable is Initializable {\\n function __Context_init() internal onlyInitializing {\\n }\\n\\n function __Context_init_unchained() internal onlyInitializing {\\n }\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[50] private __gap;\\n}\\n\",\"keccak256\":\"0x963ea7f0b48b032eef72fe3a7582edf78408d6f834115b9feadd673a4d5bd149\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/StorageSlotUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/StorageSlot.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Library for reading and writing primitive types to specific storage slots.\\n *\\n * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.\\n * This library helps with reading and writing to such slots without the need for inline assembly.\\n *\\n * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.\\n *\\n * Example usage to set ERC1967 implementation slot:\\n * ```\\n * contract ERC1967 {\\n * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n *\\n * function _getImplementation() internal view returns (address) {\\n * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n * }\\n *\\n * function _setImplementation(address newImplementation) internal {\\n * require(Address.isContract(newImplementation), \\\"ERC1967: new implementation is not a contract\\\");\\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n * }\\n * }\\n * ```\\n *\\n * _Available since v4.1 for `address`, `bool`, `bytes32`, and `uint256`._\\n */\\nlibrary StorageSlotUpgradeable {\\n struct AddressSlot {\\n address value;\\n }\\n\\n struct BooleanSlot {\\n bool value;\\n }\\n\\n struct Bytes32Slot {\\n bytes32 value;\\n }\\n\\n struct Uint256Slot {\\n uint256 value;\\n }\\n\\n /**\\n * @dev Returns an `AddressSlot` with member `value` located at `slot`.\\n */\\n function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BooleanSlot` with member `value` located at `slot`.\\n */\\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.\\n */\\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Uint256Slot` with member `value` located at `slot`.\\n */\\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\\n assembly {\\n r.slot := slot\\n }\\n }\\n}\\n\",\"keccak256\":\"0x422c3d27d0d5681cea93acbb0dcb175fa5b461b5b7731da7ff77e51f0f0174c7\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC1155/IERC1155.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/introspection/IERC165.sol\\\";\\n\\n/**\\n * @dev Required interface of an ERC1155 compliant contract, as defined in the\\n * https://eips.ethereum.org/EIPS/eip-1155[EIP].\\n *\\n * _Available since v3.1._\\n */\\ninterface IERC1155 is IERC165 {\\n /**\\n * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.\\n */\\n event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);\\n\\n /**\\n * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all\\n * transfers.\\n */\\n event TransferBatch(\\n address indexed operator,\\n address indexed from,\\n address indexed to,\\n uint256[] ids,\\n uint256[] values\\n );\\n\\n /**\\n * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to\\n * `approved`.\\n */\\n event ApprovalForAll(address indexed account, address indexed operator, bool approved);\\n\\n /**\\n * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.\\n *\\n * If an {URI} event was emitted for `id`, the standard\\n * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value\\n * returned by {IERC1155MetadataURI-uri}.\\n */\\n event URI(string value, uint256 indexed id);\\n\\n /**\\n * @dev Returns the amount of tokens of token type `id` owned by `account`.\\n *\\n * Requirements:\\n *\\n * - `account` cannot be the zero address.\\n */\\n function balanceOf(address account, uint256 id) external view returns (uint256);\\n\\n /**\\n * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.\\n *\\n * Requirements:\\n *\\n * - `accounts` and `ids` must have the same length.\\n */\\n function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids)\\n external\\n view\\n returns (uint256[] memory);\\n\\n /**\\n * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,\\n *\\n * Emits an {ApprovalForAll} event.\\n *\\n * Requirements:\\n *\\n * - `operator` cannot be the caller.\\n */\\n function setApprovalForAll(address operator, bool approved) external;\\n\\n /**\\n * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.\\n *\\n * See {setApprovalForAll}.\\n */\\n function isApprovedForAll(address account, address operator) external view returns (bool);\\n\\n /**\\n * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.\\n *\\n * Emits a {TransferSingle} event.\\n *\\n * Requirements:\\n *\\n * - `to` cannot be the zero address.\\n * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}.\\n * - `from` must have a balance of tokens of type `id` of at least `amount`.\\n * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the\\n * acceptance magic value.\\n */\\n function safeTransferFrom(\\n address from,\\n address to,\\n uint256 id,\\n uint256 amount,\\n bytes calldata data\\n ) external;\\n\\n /**\\n * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.\\n *\\n * Emits a {TransferBatch} event.\\n *\\n * Requirements:\\n *\\n * - `ids` and `amounts` must have the same length.\\n * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the\\n * acceptance magic value.\\n */\\n function safeBatchTransferFrom(\\n address from,\\n address to,\\n uint256[] calldata ids,\\n uint256[] calldata amounts,\\n bytes calldata data\\n ) external;\\n}\\n\",\"keccak256\":\"0x8e93de94c9062ebc94fb7e2e3929b0781ac6a2b7772e2f7a59045861c93e5be9\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/Strings.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev String operations.\\n */\\nlibrary Strings {\\n bytes16 private constant _HEX_SYMBOLS = \\\"0123456789abcdef\\\";\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\\n */\\n function toString(uint256 value) internal pure returns (string memory) {\\n // Inspired by OraclizeAPI's implementation - MIT licence\\n // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol\\n\\n if (value == 0) {\\n return \\\"0\\\";\\n }\\n uint256 temp = value;\\n uint256 digits;\\n while (temp != 0) {\\n digits++;\\n temp /= 10;\\n }\\n bytes memory buffer = new bytes(digits);\\n while (value != 0) {\\n digits -= 1;\\n buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));\\n value /= 10;\\n }\\n return string(buffer);\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\\n */\\n function toHexString(uint256 value) internal pure returns (string memory) {\\n if (value == 0) {\\n return \\\"0x00\\\";\\n }\\n uint256 temp = value;\\n uint256 length = 0;\\n while (temp != 0) {\\n length++;\\n temp >>= 8;\\n }\\n return toHexString(value, length);\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\\n */\\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\\n bytes memory buffer = new bytes(2 * length + 2);\\n buffer[0] = \\\"0\\\";\\n buffer[1] = \\\"x\\\";\\n for (uint256 i = 2 * length + 1; i > 1; --i) {\\n buffer[i] = _HEX_SYMBOLS[value & 0xf];\\n value >>= 4;\\n }\\n require(value == 0, \\\"Strings: hex length insufficient\\\");\\n return string(buffer);\\n }\\n}\\n\",\"keccak256\":\"0x32c202bd28995dd20c4347b7c6467a6d3241c74c8ad3edcbb610cd9205916c45\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/cryptography/ECDSA.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/ECDSA.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../Strings.sol\\\";\\n\\n/**\\n * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.\\n *\\n * These functions can be used to verify that a message was signed by the holder\\n * of the private keys of a given address.\\n */\\nlibrary ECDSA {\\n enum RecoverError {\\n NoError,\\n InvalidSignature,\\n InvalidSignatureLength,\\n InvalidSignatureS,\\n InvalidSignatureV\\n }\\n\\n function _throwError(RecoverError error) private pure {\\n if (error == RecoverError.NoError) {\\n return; // no error: do nothing\\n } else if (error == RecoverError.InvalidSignature) {\\n revert(\\\"ECDSA: invalid signature\\\");\\n } else if (error == RecoverError.InvalidSignatureLength) {\\n revert(\\\"ECDSA: invalid signature length\\\");\\n } else if (error == RecoverError.InvalidSignatureS) {\\n revert(\\\"ECDSA: invalid signature 's' value\\\");\\n } else if (error == RecoverError.InvalidSignatureV) {\\n revert(\\\"ECDSA: invalid signature 'v' value\\\");\\n }\\n }\\n\\n /**\\n * @dev Returns the address that signed a hashed message (`hash`) with\\n * `signature` or error string. This address can then be used for verification purposes.\\n *\\n * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:\\n * this function rejects them by requiring the `s` value to be in the lower\\n * half order, and the `v` value to be either 27 or 28.\\n *\\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\\n * verification to be secure: it is possible to craft signatures that\\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\\n * this is by receiving a hash of the original message (which may otherwise\\n * be too long), and then calling {toEthSignedMessageHash} on it.\\n *\\n * Documentation for signature generation:\\n * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]\\n * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]\\n *\\n * _Available since v4.3._\\n */\\n function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {\\n // Check the signature length\\n // - case 65: r,s,v signature (standard)\\n // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._\\n if (signature.length == 65) {\\n bytes32 r;\\n bytes32 s;\\n uint8 v;\\n // ecrecover takes the signature parameters, and the only way to get them\\n // currently is to use 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 tryRecover(hash, v, r, s);\\n } else if (signature.length == 64) {\\n bytes32 r;\\n bytes32 vs;\\n // ecrecover takes the signature parameters, and the only way to get them\\n // currently is to use assembly.\\n assembly {\\n r := mload(add(signature, 0x20))\\n vs := mload(add(signature, 0x40))\\n }\\n return tryRecover(hash, r, vs);\\n } else {\\n return (address(0), RecoverError.InvalidSignatureLength);\\n }\\n }\\n\\n /**\\n * @dev Returns the address that signed a hashed message (`hash`) with\\n * `signature`. This address can then be used for verification purposes.\\n *\\n * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:\\n * this function rejects them by requiring the `s` value to be in the lower\\n * half order, and the `v` value to be either 27 or 28.\\n *\\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\\n * verification to be secure: it is possible to craft signatures that\\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\\n * this is by receiving a hash of the original message (which may otherwise\\n * be too long), and then calling {toEthSignedMessageHash} on it.\\n */\\n function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {\\n (address recovered, RecoverError error) = tryRecover(hash, signature);\\n _throwError(error);\\n return recovered;\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.\\n *\\n * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]\\n *\\n * _Available since v4.3._\\n */\\n function tryRecover(\\n bytes32 hash,\\n bytes32 r,\\n bytes32 vs\\n ) internal pure returns (address, RecoverError) {\\n bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);\\n uint8 v = uint8((uint256(vs) >> 255) + 27);\\n return tryRecover(hash, v, r, s);\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.\\n *\\n * _Available since v4.2._\\n */\\n function recover(\\n bytes32 hash,\\n bytes32 r,\\n bytes32 vs\\n ) internal pure returns (address) {\\n (address recovered, RecoverError error) = tryRecover(hash, r, vs);\\n _throwError(error);\\n return recovered;\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-tryRecover} that receives the `v`,\\n * `r` and `s` signature fields separately.\\n *\\n * _Available since v4.3._\\n */\\n function tryRecover(\\n bytes32 hash,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) internal pure returns (address, RecoverError) {\\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 (301): 0 < s < secp256k1n \\u00f7 2 + 1, and for v in (302): v \\u2208 {27, 28}. Most\\n // signatures from current libraries generate a unique signature with an s-value in the lower half order.\\n //\\n // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value\\n // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or\\n // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept\\n // these malleable signatures as well.\\n if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {\\n return (address(0), RecoverError.InvalidSignatureS);\\n }\\n if (v != 27 && v != 28) {\\n return (address(0), RecoverError.InvalidSignatureV);\\n }\\n\\n // If the signature is valid (and not malleable), return the signer address\\n address signer = ecrecover(hash, v, r, s);\\n if (signer == address(0)) {\\n return (address(0), RecoverError.InvalidSignature);\\n }\\n\\n return (signer, RecoverError.NoError);\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-recover} that receives the `v`,\\n * `r` and `s` signature fields separately.\\n */\\n function recover(\\n bytes32 hash,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) internal pure returns (address) {\\n (address recovered, RecoverError error) = tryRecover(hash, v, r, s);\\n _throwError(error);\\n return recovered;\\n }\\n\\n /**\\n * @dev Returns an Ethereum Signed Message, created from a `hash`. This\\n * produces hash corresponding to the one signed with the\\n * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]\\n * JSON-RPC method as part of EIP-191.\\n *\\n * See {recover}.\\n */\\n function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {\\n // 32 is the length in bytes of hash,\\n // enforced by the type signature above\\n return keccak256(abi.encodePacked(\\\"\\\\x19Ethereum Signed Message:\\\\n32\\\", hash));\\n }\\n\\n /**\\n * @dev Returns an Ethereum Signed Message, created from `s`. This\\n * produces hash corresponding to the one signed with the\\n * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]\\n * JSON-RPC method as part of EIP-191.\\n *\\n * See {recover}.\\n */\\n function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {\\n return keccak256(abi.encodePacked(\\\"\\\\x19Ethereum Signed Message:\\\\n\\\", Strings.toString(s.length), s));\\n }\\n\\n /**\\n * @dev Returns an Ethereum Signed Typed Data, created from a\\n * `domainSeparator` and a `structHash`. This produces hash corresponding\\n * to the one signed with the\\n * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]\\n * JSON-RPC method as part of EIP-712.\\n *\\n * See {recover}.\\n */\\n function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {\\n return keccak256(abi.encodePacked(\\\"\\\\x19\\\\x01\\\", domainSeparator, structHash));\\n }\\n}\\n\",\"keccak256\":\"0x3c07f43e60e099b3b157243b3152722e73b80eeb7985c2cd73712828d7f7da29\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/introspection/IERC165.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC165 standard, as defined in the\\n * https://eips.ethereum.org/EIPS/eip-165[EIP].\\n *\\n * Implementers can declare support of contract interfaces, which can then be\\n * queried by others ({ERC165Checker}).\\n *\\n * For an implementation, see {ERC165}.\\n */\\ninterface IERC165 {\\n /**\\n * @dev Returns true if this contract implements the interface defined by\\n * `interfaceId`. See the corresponding\\n * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]\\n * to learn more about how these ids are created.\\n *\\n * This function call must use less than 30 000 gas.\\n */\\n function supportsInterface(bytes4 interfaceId) external view returns (bool);\\n}\\n\",\"keccak256\":\"0x447a5f3ddc18419d41ff92b3773fb86471b1db25773e07f877f548918a185bf1\",\"license\":\"MIT\"},\"contracts/access/SafeOwnableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\n// Refer to https://github.com/boringcrypto/BoringSolidity/blob/master/contracts/BoringOwnable.sol and https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable/blob/master/contracts/access/OwnableUpgradeable.sol\\n\\npragma solidity 0.8.15;\\n\\nimport '@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol';\\nimport '@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol';\\n\\ncontract SafeOwnableUpgradeable is Initializable, ContextUpgradeable {\\n address private _owner;\\n address private _pendingOwner;\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the deployer as the initial owner.\\n */\\n function __Ownable_init() internal onlyInitializing {\\n __Ownable_init_unchained();\\n }\\n\\n function __Ownable_init_unchained() internal onlyInitializing {\\n _transferOwnership(_msgSender());\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Return the address of the pending owner\\n */\\n function pendingOwner() public view virtual returns (address) {\\n return _pendingOwner;\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n require(owner() == _msgSender(), 'SafeOwnable: caller not owner');\\n _;\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions anymore. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby removing any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n * Note If direct is false, it will set an pending owner and the OwnerShipTransferring\\n * only happens when the pending owner claim the ownership\\n */\\n function transferOwnership(address newOwner, bool direct) public virtual onlyOwner {\\n require(newOwner != address(0), 'SafeOwnable: new owner is 0');\\n if (direct) {\\n _transferOwnership(newOwner);\\n } else {\\n _transferPendingOwnership(newOwner);\\n }\\n }\\n\\n /**\\n * @dev pending owner call this function to claim ownership\\n */\\n function claimOwnership() public {\\n require(msg.sender == _pendingOwner, 'SafeOwnable: caller != pending');\\n\\n _claimOwnership();\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n address oldOwner = _owner;\\n _owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n\\n /**\\n * @dev set the pending owner address\\n * Internal function without access restriction.\\n */\\n function _transferPendingOwnership(address newOwner) internal virtual {\\n _pendingOwner = newOwner;\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _claimOwnership() internal virtual {\\n address oldOwner = _owner;\\n emit OwnershipTransferred(oldOwner, _pendingOwner);\\n\\n _owner = _pendingOwner;\\n _pendingOwner = address(0);\\n }\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n */\\n uint256[48] private __gap;\\n}\\n\",\"keccak256\":\"0x8de5eb1e824cf860909d77028719522b6bcf5b4cb96293e7f95c2d1f4299147b\",\"license\":\"GPL-3.0-only\"},\"contracts/secretShop/MarketConsts.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\n\\npragma solidity 0.8.15;\\n\\nimport './interfaces/IDelegate.sol';\\nimport './interfaces/IWETHUpgradable.sol';\\nimport '@openzeppelin/contracts/token/ERC1155/IERC1155.sol';\\n\\nlibrary Market {\\n uint256 public constant INTENT_SELL = 1;\\n uint256 public constant INTENT_BUY = 2;\\n\\n uint8 public constant SIGN_V1 = 1;\\n\\n struct OrderItem {\\n uint256 price;\\n /** why bytes: because struct too complex will be omitted */\\n bytes data;\\n }\\n\\n // An Order\\n struct Order {\\n /* salt, a random number */\\n uint256 salt;\\n /* address which create order */\\n address user;\\n /** ChainId explain which network */\\n uint256 network;\\n /** which intent, 1 for sell */\\n uint256 intent;\\n /** just 1 at v1 */\\n uint256 delegateType;\\n /** order end ddl */\\n uint256 deadline;\\n /**\\n address of the ERC20 coin to trade\\n */\\n IERC20Upgradeable currency;\\n /**\\n items in an Order\\n */\\n OrderItem[] items;\\n /**\\n signature for Order, eip 2098 would be better\\n */\\n bytes32 r;\\n bytes32 s;\\n uint8 v;\\n /**\\n could be 1 now\\n */\\n uint8 signVersion;\\n }\\n\\n struct Fee {\\n uint256 percentage;\\n address to;\\n }\\n\\n struct SettleDetail {\\n // order operation type\\n Market.Op op;\\n //\\n uint256 orderIdx;\\n //\\n uint256 itemIdx;\\n //\\n uint256 price;\\n //\\n bytes32 itemHash;\\n // delegate which address to transfer token\\n IDelegate executionDelegate;\\n Fee[] fees;\\n }\\n\\n /**\\n * @dev information from who send this tx\\n */\\n struct SettleShared {\\n uint256 salt;\\n uint256 deadline;\\n address user;\\n /**\\n * can one order fail\\n * if true, tx will revert if one order fail\\n * else, tx didn't fail if one\\n */\\n bool canFail;\\n }\\n\\n struct RunInput {\\n // one Order match one SettleDetail\\n Order[] orders;\\n SettleDetail[] details;\\n SettleShared shared;\\n }\\n\\n enum InvStatus {\\n NEW,\\n COMPLETE,\\n CANCELLED\\n }\\n\\n /**\\n Operation\\n */\\n enum Op {\\n INVALID,\\n COMPLETE_SELL_OFFER,\\n COMPLETE_BUY_OFFER,\\n CANCEL_OFFER\\n }\\n\\n enum DelegationType {\\n INVALID,\\n ERC1155,\\n ERC721\\n }\\n}\\n\",\"keccak256\":\"0xb46dc7d278f3ca8049bd16ded6aefe9d40ea89a1040ca03b91e4216881da19e4\",\"license\":\"GPL-3.0-only\"},\"contracts/secretShop/SecretShopStorage.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\npragma solidity 0.8.15;\\n\\nimport '@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol';\\nimport './MarketConsts.sol';\\n\\nabstract contract SecretShopStorage {\\n /**\\n * @dev fee Cap\\n */\\n uint256 public feeCapPct;\\n /**\\n * @dev DOMAIN_SEPARATOR for EIP712\\n */\\n bytes32 public domainSeparator;\\n\\n IWETHUpgradable public weth;\\n\\n uint256[47] private __gap;\\n\\n /**\\n * @dev store delegator contract status\\n */\\n mapping(address => bool) public delegates;\\n\\n /**\\n * @dev store currency supported\\n */\\n mapping(IERC20Upgradeable => bool) public currencies;\\n\\n /**\\n * @dev store itemHash status\\n */\\n mapping(bytes32 => Market.InvStatus) public inventoryStatus;\\n}\\n\",\"keccak256\":\"0xdfaed0aff150b8b5e5ca62730e214646c58a8ece823397ecbe257e8ae23f88ab\",\"license\":\"GPL-3.0-only\"},\"contracts/secretShop/SecretShopUpgradable.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\npragma solidity 0.8.15;\\n\\nimport './interfaces/IDelegate.sol';\\nimport './interfaces/IWETHUpgradable.sol';\\n\\nimport './interfaces/ISecretShopUpgradable.sol';\\nimport '@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol';\\nimport '@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol';\\nimport '@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol';\\nimport '@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol';\\nimport '@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol';\\nimport '@openzeppelin/contracts/utils/cryptography/ECDSA.sol';\\nimport './SecretShopStorage.sol';\\nimport '../access/SafeOwnableUpgradeable.sol';\\n\\ncontract SecretShopUpgradable is\\n SecretShopStorage,\\n ISecretShopUpgradable,\\n ReentrancyGuardUpgradeable,\\n SafeOwnableUpgradeable,\\n PausableUpgradeable,\\n UUPSUpgradeable\\n{\\n using SafeERC20Upgradeable for IERC20Upgradeable;\\n\\n /** @dev precision of the parameters */\\n uint256 public constant RATE_BASE = 1e6;\\n\\n /**\\n * @dev for contract to receive native token\\n */\\n receive() external payable {}\\n\\n /**\\n * @dev run a single order\\n * @param order order by the maker\\n * @param shared some option of the taker\\n * @param detail detail by the taker\\n */\\n function runSingle(\\n Market.Order memory order,\\n Market.SettleShared memory shared,\\n Market.SettleDetail memory detail\\n ) external virtual override returns (uint256) {\\n require(msg.sender == address(this), 'SecretShop: unsafe call');\\n\\n return _run(order, shared, detail);\\n }\\n\\n function pause() public onlyOwner {\\n _pause();\\n }\\n\\n function unpause() public onlyOwner {\\n _unpause();\\n }\\n\\n /**\\n * @dev initialize\\n * @param feeCapPct_ max fee percentage\\n * @param weth_ address of wrapped eth\\n */\\n function initialize(uint256 feeCapPct_, address weth_) public initializer {\\n feeCapPct = feeCapPct_;\\n weth = IWETHUpgradable(weth_);\\n bytes32 eip712DomainTypeHash = keccak256(\\n 'EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)'\\n );\\n\\n // if changed, not compatible with old version\\n domainSeparator = keccak256(\\n abi.encode(\\n eip712DomainTypeHash,\\n keccak256(bytes('P12 SecretShop')),\\n keccak256(bytes('1.0.0')),\\n block.chainid,\\n address(this)\\n )\\n );\\n\\n __ReentrancyGuard_init_unchained();\\n __Pausable_init_unchained();\\n __Ownable_init_unchained();\\n }\\n\\n /**\\n * @param val new Fee Cap\\n */\\n function updateFeeCap(uint256 val) public virtual override onlyOwner {\\n feeCapPct = val;\\n emit EvFeeCapUpdate(val);\\n }\\n\\n /**\\n * @dev update Delegates address\\n * @param toAdd the array of delegate address that want to add\\n * @param toRemove the array to delegate address that want to remove\\n */\\n function updateDelegates(address[] calldata toAdd, address[] calldata toRemove) public virtual override onlyOwner {\\n for (uint256 i = 0; i < toAdd.length; i++) {\\n delegates[toAdd[i]] = true;\\n emit EvDelegate(toAdd[i], false);\\n }\\n for (uint256 i = 0; i < toRemove.length; i++) {\\n delete delegates[toRemove[i]];\\n emit EvDelegate(toRemove[i], true);\\n }\\n }\\n\\n /**\\n * @dev update Currencies address\\n * @param toAdd the array of currency address that want to add\\n * @param toRemove the array to currency address that want to remove\\n */\\n function updateCurrencies(IERC20Upgradeable[] memory toAdd, IERC20Upgradeable[] memory toRemove) public override onlyOwner {\\n for (uint256 i = 0; i < toAdd.length; i++) {\\n currencies[toAdd[i]] = true;\\n emit EvCurrency(toAdd[i], false);\\n }\\n for (uint256 i = 0; i < toRemove.length; i++) {\\n delete currencies[toRemove[i]];\\n emit EvCurrency(toRemove[i], true);\\n }\\n }\\n\\n /**\\n * @dev Entry of a contract call\\n * @param input a struct that contains all data\\n */\\n function run(Market.RunInput memory input) public payable virtual override nonReentrant whenNotPaused {\\n require(input.shared.deadline > block.timestamp, 'SecretShop: deadline reached');\\n require(msg.sender == input.shared.user, 'SecretShop: sender not match');\\n\\n uint256 amountEth = msg.value;\\n\\n /**\\n * @dev Iterate over multiple orders and verify signatures\\n */\\n for (uint256 i = 0; i < input.orders.length; i++) {\\n _verifyOrderSignature(input.orders[i]);\\n }\\n\\n /**\\n * @dev try to execute after verify\\n */\\n for (uint256 i = 0; i < input.details.length; i++) {\\n Market.SettleDetail memory detail = input.details[i];\\n Market.Order memory order = input.orders[detail.orderIdx];\\n if (input.shared.canFail) {\\n try ISecretShopUpgradable(address(this)).runSingle(order, input.shared, detail) returns (uint256 ethPayment) {\\n amountEth -= ethPayment;\\n } catch Error(string memory err) {\\n emit EvFailure(i, bytes(err));\\n } catch (bytes memory err) {\\n emit EvFailure(i, err);\\n }\\n } else {\\n amountEth -= _run(order, input.shared, detail);\\n }\\n }\\n\\n // refund extra native token\\n require(payable(msg.sender).send(amountEth), 'SecretShop: refund token fail');\\n }\\n\\n function _emitInventory(\\n bytes32 itemHash,\\n Market.Order memory order,\\n Market.OrderItem memory item,\\n Market.SettleShared memory shared,\\n Market.SettleDetail memory detail\\n ) internal virtual {\\n emit EvInventory(\\n itemHash,\\n order.user,\\n shared.user,\\n order.salt,\\n shared.salt,\\n order.intent,\\n order.delegateType,\\n order.deadline,\\n order.currency,\\n item,\\n detail\\n );\\n }\\n\\n /**\\n * @dev internal function, real implementation\\n * @dev make single trade to be achieved\\n * @param order order by the maker\\n * @param shared some option of the taker\\n * @param detail detail by the taker\\n */\\n function _run(\\n Market.Order memory order,\\n Market.SettleShared memory shared,\\n Market.SettleDetail memory detail\\n ) internal virtual returns (uint256) {\\n uint256 nativeAmount = 0;\\n\\n Market.OrderItem memory item = order.items[detail.itemIdx];\\n bytes32 itemHash = _hashItem(order, item);\\n\\n {\\n require(itemHash == detail.itemHash, 'SecretShop: hash not match');\\n require(order.network == block.chainid, 'SecretShop: wrong network');\\n require(\\n address(detail.executionDelegate) != address(0) && delegates[address(detail.executionDelegate)],\\n 'SecretShop: unknown delegate'\\n );\\n require(currencies[order.currency], 'SecretShop: wrong currency');\\n }\\n\\n bytes memory data = item.data;\\n\\n if (detail.op == Market.Op.COMPLETE_SELL_OFFER) {\\n /** @dev COMPLETE_SELL_OFFER */\\n require(inventoryStatus[itemHash] == Market.InvStatus.NEW, 'SecretShop: sold or canceled');\\n require(order.intent == Market.INTENT_SELL, 'SecretShop: intent != sell');\\n _assertDelegation(order, detail);\\n require(order.deadline > block.timestamp, 'SecretShop: deadline reached');\\n require(detail.price >= item.price, 'SecretShop: underpaid');\\n\\n /**\\n * @dev transfer token from buyer address to this contract\\n */\\n nativeAmount = _takePayment(order.currency, shared.user, detail.price);\\n require(detail.executionDelegate.executeSell(order.user, shared.user, data), 'SecretShop: delegation error');\\n\\n _distributeFeeAndProfit(itemHash, order.user, order.currency, detail, detail.price);\\n inventoryStatus[itemHash] = Market.InvStatus.COMPLETE;\\n } else if (detail.op == Market.Op.COMPLETE_BUY_OFFER) {\\n /** @dev COMPLETE_BUY_OFFER */\\n require(inventoryStatus[itemHash] == Market.InvStatus.NEW, 'SecretShop: sold or canceled');\\n require(order.intent == Market.INTENT_BUY, 'SecretShop: intent != sell');\\n\\n _assertDelegation(order, detail);\\n\\n require(order.deadline > block.timestamp, 'SecretShop: deadline reached');\\n require(detail.price >= item.price, 'SecretShop: underpaid');\\n\\n /**\\n * @dev transfer token from buyer address to this contract\\n */\\n nativeAmount = _takePayment(order.currency, order.user, detail.price);\\n require(detail.executionDelegate.executeSell(shared.user, order.user, data), 'SecretShop: delegation error');\\n\\n _distributeFeeAndProfit(itemHash, shared.user, order.currency, detail, detail.price);\\n inventoryStatus[itemHash] = Market.InvStatus.COMPLETE;\\n } else if (detail.op == Market.Op.CANCEL_OFFER) {\\n /** CANCEL_OFFER */\\n require(inventoryStatus[itemHash] == Market.InvStatus.NEW, 'SecretShop: unable to cancel');\\n require(order.user == msg.sender, 'SecretShop: no permit cancel');\\n require(order.deadline > block.timestamp, 'SecretShop: deadline reached');\\n inventoryStatus[itemHash] = Market.InvStatus.CANCELLED;\\n emit EvCancel(itemHash);\\n } else {\\n revert('SecretShop: unknown op');\\n }\\n\\n _emitInventory(itemHash, order, item, shared, detail);\\n return nativeAmount;\\n }\\n\\n /**\\n * @dev transfer some kind ERC20 to this contract\\n * @param currency currency's address\\n * @param from who pays\\n * @param amount how much pay\\n */\\n function _takePayment(\\n IERC20Upgradeable currency,\\n address from,\\n uint256 amount\\n ) internal virtual returns (uint256) {\\n if (amount > 0) {\\n if (_isNative(currency)) {\\n return amount;\\n } else {\\n currency.safeTransferFrom(from, address(this), amount);\\n }\\n }\\n return 0;\\n }\\n\\n /**\\n * @dev transfer some kind ERC20\\n * @param currency currency's address\\n * @param to who receive\\n * @param amount how much receive\\n */\\n function _transferTo(\\n IERC20Upgradeable currency,\\n address to,\\n uint256 amount\\n ) internal virtual {\\n if (amount > 0) {\\n if (_isNative(currency)) {\\n AddressUpgradeable.sendValue(payable(to), amount);\\n } else {\\n currency.safeTransfer(to, amount);\\n }\\n }\\n }\\n\\n /**\\n * @dev distribute fees and give extra to seller\\n * @param itemHash the item's hash\\n * @param seller who sell the item\\n * @param currency currency's address\\n * @param sd detail by the taker\\n * @param price the item's price\\n */\\n function _distributeFeeAndProfit(\\n bytes32 itemHash,\\n address seller,\\n IERC20Upgradeable currency,\\n Market.SettleDetail memory sd,\\n uint256 price\\n ) internal virtual {\\n uint256 payment = price;\\n uint256 totalFeePct;\\n\\n /**\\n * @dev distribute fees\\n */\\n for (uint256 i = 0; i < sd.fees.length; i++) {\\n Market.Fee memory fee = sd.fees[i];\\n totalFeePct += fee.percentage;\\n uint256 amount = (price * fee.percentage) / RATE_BASE;\\n payment -= amount;\\n _transferTo(currency, fee.to, amount);\\n }\\n\\n require(feeCapPct >= totalFeePct, 'total fee cap exceeded');\\n\\n /**\\n * @dev give extra to seller\\n */\\n _transferTo(currency, seller, payment);\\n emit EvProfit(itemHash, address(currency), seller, payment);\\n }\\n\\n /** upgrade function */\\n function _authorizeUpgrade(address newImplementation) internal override onlyOwner {}\\n\\n /**\\n * @dev judge whether token is chain native token\\n * @param currency address of the currency, 0 for native token\\n * @return bool whether the token is a native token\\n */\\n function _isNative(IERC20Upgradeable currency) internal view virtual returns (bool) {\\n return address(currency) == address(0);\\n }\\n\\n /**\\n * @dev verify whether the order data is real, necessary for security\\n * @param order order by the maker\\n */\\n function _verifyOrderSignature(Market.Order memory order) internal view virtual {\\n address orderSigner;\\n\\n if (order.signVersion == Market.SIGN_V1) {\\n bytes32 dataHash = ECDSA.toTypedDataHash(domainSeparator, _hash(order));\\n orderSigner = ECDSA.recover(dataHash, order.v, order.r, order.s);\\n } else {\\n revert('SecretShop: wrong sig version');\\n }\\n\\n require(orderSigner == order.user, 'SecretShop: sig not match');\\n }\\n\\n /**\\n * @dev hash an item Data to calculate itemHash\\n * @param order order by the maker\\n * @param item which item to be hashed in the order\\n * @return hash the item's hash, which is unique\\n */\\n function _hashItem(Market.Order memory order, Market.OrderItem memory item) internal view virtual returns (bytes32) {\\n return\\n keccak256(\\n abi.encode(\\n order.salt,\\n order.user,\\n order.network,\\n order.intent,\\n order.delegateType,\\n order.deadline,\\n order.currency,\\n item\\n )\\n );\\n }\\n\\n /**\\n * @dev judge delegate type\\n * @param order order by the maker\\n * @param detail settle detail by the taker\\n */\\n function _assertDelegation(Market.Order memory order, Market.SettleDetail memory detail) internal view virtual {\\n require(detail.executionDelegate.delegateType() == order.delegateType, 'SecretShop: delegation error');\\n }\\n\\n /**\\n * @dev hash typed data of an Order\\n * @param order order by the maker\\n * @return hash typed data hash\\n */\\n function _hash(Market.Order memory order) private pure returns (bytes32) {\\n return\\n keccak256(\\n abi.encode(\\n keccak256(\\n 'Order(uint256 salt,address user,uint256 network,uint256 intent,uint256 delegateType,uint256 deadline,address currency,uint256 length,OrderItem[] items)OrderItem(uint256 price,bytes data)'\\n ),\\n order.salt,\\n order.user,\\n order.network,\\n order.intent,\\n order.delegateType,\\n order.deadline,\\n order.currency,\\n order.items.length,\\n _hash(order.items)\\n )\\n );\\n }\\n\\n /**\\n * @dev hash typed data of a array of orderItem\\n * @param orderItems[] the array of the orderItem\\n * @return hash typed data hash\\n */\\n function _hash(Market.OrderItem[] memory orderItems) private pure returns (bytes32) {\\n bytes memory h;\\n for (uint256 i = 0; i < orderItems.length; i++) {\\n h = abi.encodePacked(h, _hash(orderItems[i]));\\n }\\n return keccak256(h);\\n }\\n\\n /**\\n * @dev hash typed data of an orderItem\\n * @param orderItem orderItem\\n * @return hash typed data hash\\n */\\n\\n function _hash(Market.OrderItem memory orderItem) private pure returns (bytes32) {\\n return keccak256(abi.encode(keccak256('OrderItem(uint256 price,bytes data)'), orderItem.price, keccak256(orderItem.data)));\\n }\\n}\\n\",\"keccak256\":\"0x3277aabc80f7ef9e4c722dbe91446a52ca5a2ecb8b25ebf9a9a085888140d067\",\"license\":\"GPL-3.0-only\"},\"contracts/secretShop/interfaces/IDelegate.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\n\\npragma solidity 0.8.15;\\n\\ninterface IDelegate {\\n function delegateType() external view returns (uint256);\\n\\n function executeSell(\\n address seller,\\n address buyer,\\n bytes calldata data\\n ) external returns (bool);\\n}\\n\",\"keccak256\":\"0x6fc77df4bc7f0676906f87e16a5c7ed1f0e38945e7f82f32ff064e6e189d800a\",\"license\":\"GPL-3.0-only\"},\"contracts/secretShop/interfaces/ISecretShopUpgradable.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\npragma solidity 0.8.15;\\nimport '../MarketConsts.sol';\\nimport '@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol';\\n\\ninterface ISecretShopUpgradable {\\n /**\\n * @dev event to record how much seller earns\\n */\\n event EvProfit(bytes32 itemHash, address currency, address to, uint256 amount);\\n\\n /**\\n * @dev event to record a item order matched\\n */\\n event EvInventory(\\n bytes32 indexed itemHash,\\n address maker,\\n address taker,\\n uint256 orderSalt,\\n uint256 settleSalt,\\n uint256 intent,\\n uint256 delegateType,\\n uint256 deadline,\\n IERC20Upgradeable currency,\\n Market.OrderItem item,\\n Market.SettleDetail detail\\n );\\n\\n /**\\n * @dev event to record delegator contract change\\n */\\n event EvDelegate(address delegate, bool isRemoval);\\n\\n /**\\n * @dev event to record currency supported change\\n */\\n event EvCurrency(IERC20Upgradeable currency, bool isRemoval);\\n\\n /**\\n * @dev event to record fee update\\n */\\n event EvFeeCapUpdate(uint256 newValue);\\n /**\\n * @dev event to record a order canceled\\n */\\n event EvCancel(bytes32 indexed itemHash);\\n /**\\n * @dev event to record a order failing\\n */\\n event EvFailure(uint256 index, bytes error);\\n\\n function runSingle(\\n Market.Order memory,\\n Market.SettleShared memory,\\n Market.SettleDetail memory\\n ) external returns (uint256);\\n\\n function updateFeeCap(uint256) external;\\n\\n function updateDelegates(address[] calldata, address[] calldata) external;\\n\\n function updateCurrencies(IERC20Upgradeable[] calldata, IERC20Upgradeable[] calldata) external;\\n\\n function run(Market.RunInput memory input) external payable;\\n}\\n\",\"keccak256\":\"0x4921105232bccf4d6061b091d90a30ea75b90ff63ff1daeac782305dbafe927e\",\"license\":\"GPL-3.0-only\"},\"contracts/secretShop/interfaces/IWETHUpgradable.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\n\\npragma solidity 0.8.15;\\n\\nimport '@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol';\\n\\ninterface IWETHUpgradable is IERC20Upgradeable {\\n function deposit() external payable;\\n\\n function withdraw(uint256 wad) external;\\n}\\n\",\"keccak256\":\"0xf8362bb88f787666b366b08a70ba214adecf9973af8956b651f24f264f5b488b\",\"license\":\"GPL-3.0-only\"}},\"version\":1}", + "bytecode": "0x60a06040523060805234801561001457600080fd5b50608051613de961004c600039600081816104d001528181610510015281816106450152818161068501526107180152613de96000f3fe60806040526004361061014f5760003560e01c80638456cb59116100b6578063a90419121161006f578063a9041912146103b4578063b242e534146103c7578063da35a26f146103e7578063e30c397814610407578063e59f739a14610425578063f698da251461044557600080fd5b80638456cb59146102ee5780638c7c8f84146103035780638da5cb5b14610323578063912c860c1461034157806395835fea1461037e5780639fb514671461039e57600080fd5b80634f1ef286116101085780634f1ef2861461022957806352d1902d1461023c578063587cde1e146102515780635c975abb146102915780636036cba3146102a9578063715018a6146102d957600080fd5b80630873c6ec1461015b5780631819ecc9146101855780633659cfe6146101a55780633f4ba83a146101c75780633fc8cef3146101dc5780634e71e0c81461021457600080fd5b3661015657005b600080fd5b34801561016757600080fd5b50610172620f424081565b6040519081526020015b60405180910390f35b34801561019157600080fd5b506101726101a036600461318a565b61045b565b3480156101b157600080fd5b506101c56101c03660046131fe565b6104c6565b005b3480156101d357600080fd5b506101c56105a5565b3480156101e857600080fd5b506002546101fc906001600160a01b031681565b6040516001600160a01b03909116815260200161017c565b34801561022057600080fd5b506101c56105d9565b6101c561023736600461321b565b61063b565b34801561024857600080fd5b5061017261070b565b34801561025d57600080fd5b5061028161026c3660046131fe565b60326020526000908152604090205460ff1681565b604051901515815260200161017c565b34801561029d57600080fd5b5060cc5460ff16610281565b3480156102b557600080fd5b506102816102c43660046131fe565b60336020526000908152604090205460ff1681565b3480156102e557600080fd5b506101c56107bf565b3480156102fa57600080fd5b506101c56107f3565b34801561030f57600080fd5b506101c561031e3660046132e4565b610825565b34801561032f57600080fd5b50609a546001600160a01b03166101fc565b34801561034d57600080fd5b5061037161035c36600461333d565b60346020526000908152604090205460ff1681565b60405161017c919061336c565b34801561038a57600080fd5b506101c561039936600461333d565b610a08565b3480156103aa57600080fd5b5061017260005481565b6101c56103c2366004613410565b610a6d565b3480156103d357600080fd5b506101c56103e236600461352e565b610e2e565b3480156103f357600080fd5b506101c5610402366004613567565b610edc565b34801561041357600080fd5b50609b546001600160a01b03166101fc565b34801561043157600080fd5b506101c56104403660046135d7565b6110ae565b34801561045157600080fd5b5061017260015481565b60003330146104b15760405162461bcd60e51b815260206004820152601760248201527f53656372657453686f703a20756e736166652063616c6c00000000000000000060448201526064015b60405180910390fd5b6104bc84848461128d565b90505b9392505050565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016300361050e5760405162461bcd60e51b81526004016104a890613642565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610557600080516020613d6d833981519152546001600160a01b031690565b6001600160a01b03161461057d5760405162461bcd60e51b81526004016104a89061368e565b61058681611a73565b604080516000808252602082019092526105a291839190611a9d565b50565b609a546001600160a01b031633146105cf5760405162461bcd60e51b81526004016104a8906136da565b6105d7611c08565b565b609b546001600160a01b031633146106335760405162461bcd60e51b815260206004820152601e60248201527f536166654f776e61626c653a2063616c6c657220213d2070656e64696e67000060448201526064016104a8565b6105d7611c9b565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036106835760405162461bcd60e51b81526004016104a890613642565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166106cc600080516020613d6d833981519152546001600160a01b031690565b6001600160a01b0316146106f25760405162461bcd60e51b81526004016104a89061368e565b6106fb82611a73565b61070782826001611a9d565b5050565b6000306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146107ab5760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c000000000000000060648201526084016104a8565b50600080516020613d6d8339815191525b90565b609a546001600160a01b031633146107e95760405162461bcd60e51b81526004016104a8906136da565b6105d76000611d04565b609a546001600160a01b0316331461081d5760405162461bcd60e51b81526004016104a8906136da565b6105d7611d56565b609a546001600160a01b0316331461084f5760405162461bcd60e51b81526004016104a8906136da565b60005b825181101561092d5760016033600085848151811061087357610873613711565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff0219169083151502179055507f394e2e27feefcc03344b82ebb5995989b1d85a589c0cba6643f4e87f774a89ee8382815181106108e5576108e5613711565b602002602001015160006040516109139291906001600160a01b039290921682521515602082015260400190565b60405180910390a1806109258161373d565b915050610852565b5060005b8151811015610a03576033600083838151811061095057610950613711565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81549060ff02191690557f394e2e27feefcc03344b82ebb5995989b1d85a589c0cba6643f4e87f774a89ee8282815181106109bb576109bb613711565b602002602001015160016040516109e99291906001600160a01b039290921682521515602082015260400190565b60405180910390a1806109fb8161373d565b915050610931565b505050565b609a546001600160a01b03163314610a325760405162461bcd60e51b81526004016104a8906136da565b60008190556040518181527f19fc3beddeea399f0966d5f8664ad94006f16a10fb28c4e2fe6fae62626b71289060200160405180910390a150565b600260365403610abf5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016104a8565b600260365560cc5460ff1615610b0a5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016104a8565b4281604001516020015111610b315760405162461bcd60e51b81526004016104a890613756565b8060400151604001516001600160a01b0316336001600160a01b031614610b9a5760405162461bcd60e51b815260206004820152601c60248201527f53656372657453686f703a2073656e646572206e6f74206d617463680000000060448201526064016104a8565b3460005b825151811015610be057610bce83600001518281518110610bc157610bc1613711565b6020026020010151611dd1565b80610bd88161373d565b915050610b9e565b5060005b826020015151811015610dbc57600083602001518281518110610c0957610c09613711565b6020026020010151905060008460000151826020015181518110610c2f57610c2f613711565b6020026020010151905084604001516060015115610d8b576040808601519051631819ecc960e01b81523091631819ecc991610c719185918790600401613916565b6020604051808303816000875af1925050508015610cac575060408051601f3d908101601f19168201909252610ca991810190613a38565b60015b610d7957610cb8613a51565b806308c379a003610d165750610ccc613a6c565b80610cd75750610d18565b7f97c789f43a3e7ac27906b5fbdac832f54441771021fba06f71207d9be6d4b6238482604051610d08929190613af5565b60405180910390a150610da7565b505b3d808015610d42576040519150601f19603f3d011682016040523d82523d6000602084013e610d47565b606091505b507f97c789f43a3e7ac27906b5fbdac832f54441771021fba06f71207d9be6d4b6238482604051610d08929190613af5565b610d838186613b0e565b945050610da7565b610d9a8186604001518461128d565b610da49085613b0e565b93505b50508080610db49061373d565b915050610be4565b50604051339082156108fc029083906000818181858888f19350505050610e255760405162461bcd60e51b815260206004820152601d60248201527f53656372657453686f703a20726566756e6420746f6b656e206661696c00000060448201526064016104a8565b50506001603655565b609a546001600160a01b03163314610e585760405162461bcd60e51b81526004016104a8906136da565b6001600160a01b038216610eae5760405162461bcd60e51b815260206004820152601b60248201527f536166654f776e61626c653a206e6577206f776e65722069732030000000000060448201526064016104a8565b8015610ebd5761070782611d04565b609b80546001600160a01b0319166001600160a01b0384161790555050565b603554610100900460ff16610ef75760355460ff1615610efb565b303b155b610f5e5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016104a8565b603554610100900460ff16158015610f80576035805461ffff19166101011790555b6000839055600280546001600160a01b0319166001600160a01b038416179055604080518082018252600e81526d05031322053656372657453686f760941b6020918201528151808301835260058152640312e302e360dc1b9082015281517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f9181018290527f33c9c717ac4f1d9042c21834c184a1e067e7806976206baad1ec9a5cc5aba1d0928101929092527f06c015bd22b4c69690933c1058878ebdfef31f9aaae40bbe86d8a09fe1b2972c60608301524660808301523060a08301529060c00160408051601f198184030181529190528051602090910120600155611087611ece565b61108f611efc565b611097611f2f565b508015610a03576035805461ff0019169055505050565b609a546001600160a01b031633146110d85760405162461bcd60e51b81526004016104a8906136da565b60005b838110156111b3576001603260008787858181106110fb576110fb613711565b905060200201602081019061111091906131fe565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790557f4a31a64b928a0e8aff42ef84d144ffe82d08cb41c8027060593135e2026899b285858381811061116b5761116b613711565b905060200201602081019061118091906131fe565b604080516001600160a01b039092168252600060208301520160405180910390a1806111ab8161373d565b9150506110db565b5060005b8181101561128657603260008484848181106111d5576111d5613711565b90506020020160208101906111ea91906131fe565b6001600160a01b031681526020810191909152604001600020805460ff191690557f4a31a64b928a0e8aff42ef84d144ffe82d08cb41c8027060593135e2026899b283838381811061123e5761123e613711565b905060200201602081019061125391906131fe565b604080516001600160a01b039092168252600160208301520160405180910390a18061127e8161373d565b9150506111b7565b5050505050565b6000806000905060008560e001518460400151815181106112b0576112b0613711565b6020026020010151905060006112c68783611f5f565b90508460800151811461131b5760405162461bcd60e51b815260206004820152601a60248201527f53656372657453686f703a2068617368206e6f74206d6174636800000000000060448201526064016104a8565b4687604001511461136e5760405162461bcd60e51b815260206004820152601960248201527f53656372657453686f703a2077726f6e67206e6574776f726b0000000000000060448201526064016104a8565b60a08501516001600160a01b0316158015906113a6575060a08501516001600160a01b031660009081526032602052604090205460ff165b6113f25760405162461bcd60e51b815260206004820152601c60248201527f53656372657453686f703a20756e6b6e6f776e2064656c65676174650000000060448201526064016104a8565b60c08701516001600160a01b031660009081526033602052604090205460ff1661145e5760405162461bcd60e51b815260206004820152601a60248201527f53656372657453686f703a2077726f6e672063757272656e637900000000000060448201526064016104a8565b602082015160018651600381111561147857611478613356565b036116a65760008281526034602052604081205460ff1660028111156114a0576114a0613356565b146114ed5760405162461bcd60e51b815260206004820152601c60248201527f53656372657453686f703a20736f6c64206f722063616e63656c65640000000060448201526064016104a8565b60018860600151146115415760405162461bcd60e51b815260206004820152601a60248201527f53656372657453686f703a20696e74656e7420213d2073656c6c00000000000060448201526064016104a8565b61154b8887611fb4565b428860a001511161156e5760405162461bcd60e51b81526004016104a890613756565b8251606087015110156115bb5760405162461bcd60e51b815260206004820152601560248201527414d958dc995d14da1bdc0e881d5b99195c9c185a59605a1b60448201526064016104a8565b6115d28860c001518860400151886060015161203c565b93508560a001516001600160a01b031663bc553f0f89602001518960400151846040518463ffffffff1660e01b815260040161161093929190613b25565b6020604051808303816000875af115801561162f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116539190613b51565b61166f5760405162461bcd60e51b81526004016104a890613b6e565b6116888289602001518a60c00151898a60600151612078565b6000828152603460205260409020805460ff19166001179055611a5a565b6002865160038111156116bb576116bb613356565b036118cb5760008281526034602052604081205460ff1660028111156116e3576116e3613356565b146117305760405162461bcd60e51b815260206004820152601c60248201527f53656372657453686f703a20736f6c64206f722063616e63656c65640000000060448201526064016104a8565b60028860600151146117845760405162461bcd60e51b815260206004820152601a60248201527f53656372657453686f703a20696e74656e7420213d2073656c6c00000000000060448201526064016104a8565b61178e8887611fb4565b428860a00151116117b15760405162461bcd60e51b81526004016104a890613756565b8251606087015110156117fe5760405162461bcd60e51b815260206004820152601560248201527414d958dc995d14da1bdc0e881d5b99195c9c185a59605a1b60448201526064016104a8565b6118158860c001518960200151886060015161203c565b93508560a001516001600160a01b031663bc553f0f88604001518a60200151846040518463ffffffff1660e01b815260040161185393929190613b25565b6020604051808303816000875af1158015611872573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118969190613b51565b6118b25760405162461bcd60e51b81526004016104a890613b6e565b6116888288604001518a60c00151898a60600151612078565b6003865160038111156118e0576118e0613356565b03611a195760008281526034602052604081205460ff16600281111561190857611908613356565b146119555760405162461bcd60e51b815260206004820152601c60248201527f53656372657453686f703a20756e61626c6520746f2063616e63656c0000000060448201526064016104a8565b60208801516001600160a01b031633146119b15760405162461bcd60e51b815260206004820152601c60248201527f53656372657453686f703a206e6f207065726d69742063616e63656c0000000060448201526064016104a8565b428860a00151116119d45760405162461bcd60e51b81526004016104a890613756565b600082815260346020526040808220805460ff191660021790555183917f5b0b06d07e20243724d90e17a20034972f339eb28bd1c9437a71999bd15a1e7a91a2611a5a565b60405162461bcd60e51b8152602060048201526016602482015275053656372657453686f703a20756e6b6e6f776e206f760541b60448201526064016104a8565b611a678289858a8a6121c0565b50919695505050505050565b609a546001600160a01b031633146105a25760405162461bcd60e51b81526004016104a8906136da565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff1615611ad057610a0383612231565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611b2a575060408051601f3d908101601f19168201909252611b2791810190613a38565b60015b611b8d5760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b60648201526084016104a8565b600080516020613d6d8339815191528114611bfc5760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b60648201526084016104a8565b50610a038383836122cd565b60cc5460ff16611c515760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016104a8565b60cc805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b609a54609b546040516001600160a01b03928316929091169082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a350609b8054609a80546001600160a01b03199081166001600160a01b03841617909155169055565b609a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60cc5460ff1615611d9c5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016104a8565b60cc805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611c7e3390565b6000600160ff1682610160015160ff1603611e21576000611dfc600154611df7856122f8565b6123c7565b9050611e19818461014001518561010001518661012001516123ee565b915050611e69565b60405162461bcd60e51b815260206004820152601d60248201527f53656372657453686f703a2077726f6e67207369672076657273696f6e00000060448201526064016104a8565b81602001516001600160a01b0316816001600160a01b0316146107075760405162461bcd60e51b815260206004820152601960248201527f53656372657453686f703a20736967206e6f74206d617463680000000000000060448201526064016104a8565b603554610100900460ff16611ef55760405162461bcd60e51b81526004016104a890613ba5565b6001603655565b603554610100900460ff16611f235760405162461bcd60e51b81526004016104a890613ba5565b60cc805460ff19169055565b603554610100900460ff16611f565760405162461bcd60e51b81526004016104a890613ba5565b6105d733611d04565b81516020808401516040808601516060870151608088015160a089015160c08a01519451600098611f9698909796918b9101613bf0565b60405160208183030381529060405280519060200120905092915050565b81608001518160a001516001600160a01b0316632c436e5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611ffb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061201f9190613a38565b146107075760405162461bcd60e51b81526004016104a890613b6e565b6000811561206e576001600160a01b0384166120595750806104bf565b61206e6001600160a01b038516843085612416565b5060009392505050565b806000805b8460c00151518110156121105760008560c0015182815181106120a2576120a2613711565b602002602001015190508060000151836120bc9190613c49565b92506000620f42408260000151876120d49190613c61565b6120de9190613c80565b90506120ea8186613b0e565b94506120fb88836020015183612481565b505080806121089061373d565b91505061207d565b5080600054101561215c5760405162461bcd60e51b81526020600482015260166024820152751d1bdd185b081999594818d85c08195e18d95959195960521b60448201526064016104a8565b612167858784612481565b604080518881526001600160a01b0387811660208301528816818301526060810184905290517fe2c49856b032c255ae7e325d18109bc4e22a2804e2e49a017ec0f59f19cd447b9181900360800190a150505050505050565b847fbc7faddfa2d67a527d007c7779c5ce64b8a108c2fcbfe4b13a0b1d3551a1a175856020015184604001518760000151866000015189606001518a608001518b60a001518c60c001518c8b6040516122229a99989796959493929190613ca2565b60405180910390a25050505050565b6001600160a01b0381163b61229e5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084016104a8565b600080516020613d6d83398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b6122d6836124b3565b6000825111806122e35750805b15610a03576122f283836124f3565b50505050565b60007f1897435d74cd983f2d094af2a83a02fd7acae45cbbee767ee4538a4c31bc79d6826000015183602001518460400151856060015186608001518760a001518860c001518960e00151516123518b60e001516125e7565b60408051602081019b909b528a01989098526001600160a01b0396871660608a0152608089019590955260a088019390935260c087019190915260e0860152909116610100840152610120830152610140820152610160015b604051602081830303815290604052805190602001209050919050565b60405161190160f01b60208201526022810183905260428101829052600090606201611f96565b60008060006123ff8787878761265e565b9150915061240c8161274b565b5095945050505050565b6040516001600160a01b03808516602483015283166044820152606481018290526122f29085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152612901565b8015610a03576001600160a01b03831661249f57610a0382826129d3565b610a036001600160a01b0384168383612aec565b6124bc81612231565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606001600160a01b0383163b61255b5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084016104a8565b600080846001600160a01b0316846040516125769190613d1b565b600060405180830381855af49150503d80600081146125b1576040519150601f19603f3d011682016040523d82523d6000602084013e6125b6565b606091505b50915091506125de8282604051806060016040528060278152602001613d8d60279139612b1c565b95945050505050565b6000606060005b835181101561264f578161261a85838151811061260d5761260d613711565b6020026020010151612b55565b60405160200161262b929190613d37565b604051602081830303815290604052915080806126479061373d565b9150506125ee565b50805160209091012092915050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156126955750600090506003612742565b8460ff16601b141580156126ad57508460ff16601c14155b156126be5750600090506004612742565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612712573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661273b57600060019250925050612742565b9150600090505b94509492505050565b600081600481111561275f5761275f613356565b036127675750565b600181600481111561277b5761277b613356565b036127c85760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016104a8565b60028160048111156127dc576127dc613356565b036128295760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016104a8565b600381600481111561283d5761283d613356565b036128955760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016104a8565b60048160048111156128a9576128a9613356565b036105a25760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016104a8565b6000612956826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612ba89092919063ffffffff16565b805190915015610a0357808060200190518101906129749190613b51565b610a035760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016104a8565b80471015612a235760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016104a8565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612a70576040519150601f19603f3d011682016040523d82523d6000602084013e612a75565b606091505b5050905080610a035760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016104a8565b6040516001600160a01b038316602482015260448101829052610a0390849063a9059cbb60e01b9060640161244a565b60608315612b2b5750816104bf565b825115612b3b5782518084602001fd5b8160405162461bcd60e51b81526004016104a89190613d59565b80516020808301518051908201206040516000936123aa937fc3a0c300c66ade339734c0629cf933940eaccc55b682952080d263a95c718462939192019283526020830191909152604082015260600190565b60606104bc8484600085856001600160a01b0385163b612c0a5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016104a8565b600080866001600160a01b03168587604051612c269190613d1b565b60006040518083038185875af1925050503d8060008114612c63576040519150601f19603f3d011682016040523d82523d6000602084013e612c68565b606091505b5091509150612c78828286612b1c565b979650505050505050565b634e487b7160e01b600052604160045260246000fd5b604081018181106001600160401b0382111715612cb857612cb8612c83565b60405250565b606081018181106001600160401b0382111715612cb857612cb8612c83565b601f8201601f191681016001600160401b0381118282101715612d0257612d02612c83565b6040525050565b60405161018081016001600160401b0381118282101715612d2c57612d2c612c83565b60405290565b60405160e081016001600160401b0381118282101715612d2c57612d2c612c83565b6001600160a01b03811681146105a257600080fd5b8035612d7481612d54565b919050565b60006001600160401b03821115612d9257612d92612c83565b5060051b60200190565b600082601f830112612dad57600080fd5b81356001600160401b03811115612dc657612dc6612c83565b604051612ddd601f8301601f191660200182612cdd565b818152846020838601011115612df257600080fd5b816020850160208301376000918101602001919091529392505050565b600082601f830112612e2057600080fd5b81356020612e2d82612d79565b60408051612e3b8382612cdd565b84815260059490941b8601830193838101925087851115612e5b57600080fd5b8387015b85811015612edc5780356001600160401b0380821115612e7f5760008081fd5b90890190818b03601f1901851315612e975760008081fd5b8451612ea281612c99565b8783013581528583013582811115612eba5760008081fd5b612ec88d8a83870101612d9c565b828a01525086525050928401928401612e5f565b50979650505050505050565b803560ff81168114612d7457600080fd5b60006101808284031215612f0c57600080fd5b612f14612d09565b905081358152612f2660208301612d69565b602082015260408201356040820152606082013560608201526080820135608082015260a082013560a0820152612f5f60c08301612d69565b60c082015260e08201356001600160401b03811115612f7d57600080fd5b612f8984828501612e0f565b60e08301525061010082810135908201526101208083013590820152610140612fb3818401612ee8565b90820152610160612fc5838201612ee8565b9082015292915050565b80151581146105a257600080fd5b600060808284031215612fef57600080fd5b604051608081018181106001600160401b038211171561301157613011612c83565b80604052508091508235815260208301356020820152604083013561303581612d54565b6040820152606083013561304881612fcf565b6060919091015292915050565b803560048110612d7457600080fd5b600082601f83011261307557600080fd5b8135602061308282612d79565b604080516130908382612cdd565b84815260069490941b86018301938381019250878511156130b057600080fd5b8387015b85811015612edc5782818a0312156130cc5760008081fd5b82516130d781612c99565b81358152858201356130e881612d54565b8187015284529284019282016130b4565b600060e0828403121561310b57600080fd5b613113612d32565b905061311e82613055565b81526020820135602082015260408201356040820152606082013560608201526080820135608082015261315460a08301612d69565b60a082015260c08201356001600160401b0381111561317257600080fd5b61317e84828501613064565b60c08301525092915050565b600080600060c0848603121561319f57600080fd5b83356001600160401b03808211156131b657600080fd5b6131c287838801612ef9565b94506131d18760208801612fdd565b935060a08601359150808211156131e757600080fd5b506131f4868287016130f9565b9150509250925092565b60006020828403121561321057600080fd5b81356104bf81612d54565b6000806040838503121561322e57600080fd5b823561323981612d54565b915060208301356001600160401b0381111561325457600080fd5b61326085828601612d9c565b9150509250929050565b600082601f83011261327b57600080fd5b8135602061328882612d79565b6040516132958282612cdd565b83815260059390931b85018201928281019150868411156132b557600080fd5b8286015b848110156132d95780356132cc81612d54565b83529183019183016132b9565b509695505050505050565b600080604083850312156132f757600080fd5b82356001600160401b038082111561330e57600080fd5b61331a8683870161326a565b9350602085013591508082111561333057600080fd5b506132608582860161326a565b60006020828403121561334f57600080fd5b5035919050565b634e487b7160e01b600052602160045260246000fd5b602081016003831061338057613380613356565b91905290565b600082601f83011261339757600080fd5b813560206133a482612d79565b6040516133b18282612cdd565b83815260059390931b85018201928281019150868411156133d157600080fd5b8286015b848110156132d95780356001600160401b038111156133f45760008081fd5b6134028986838b01016130f9565b8452509183019183016133d5565b6000602080838503121561342357600080fd5b82356001600160401b038082111561343a57600080fd5b9084019060c0828703121561344e57600080fd5b60405161345a81612cbe565b82358281111561346957600080fd5b8301601f8101881361347a57600080fd5b803561348581612d79565b6040516134928282612cdd565b82815260059290921b830187019187810191508a8311156134b257600080fd5b8784015b838110156134ea578035878111156134ce5760008081fd5b6134dc8d8b83890101612ef9565b8452509188019188016134b6565b508452505050828401358281111561350157600080fd5b61350d88828601613386565b858301525061351f8760408501612fdd565b60408201529695505050505050565b6000806040838503121561354157600080fd5b823561354c81612d54565b9150602083013561355c81612fcf565b809150509250929050565b6000806040838503121561357a57600080fd5b82359150602083013561355c81612d54565b60008083601f84011261359e57600080fd5b5081356001600160401b038111156135b557600080fd5b6020830191508360208260051b85010111156135d057600080fd5b9250929050565b600080600080604085870312156135ed57600080fd5b84356001600160401b038082111561360457600080fd5b6136108883890161358c565b9096509450602087013591508082111561362957600080fd5b506136368782880161358c565b95989497509550505050565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b6020808252601d908201527f536166654f776e61626c653a2063616c6c6572206e6f74206f776e6572000000604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006001820161374f5761374f613727565b5060010190565b6020808252601c908201527f53656372657453686f703a20646561646c696e65207265616368656400000000604082015260600190565b60005b838110156137a8578181015183820152602001613790565b838111156122f25750506000910152565b600081518084526137d181602086016020860161378d565b601f01601f19169290920160200192915050565b80518252600060208201516040602085015261380460408501826137b9565b949350505050565b600081518084526020808501808196508360051b8101915082860160005b858110156138545782840389526138428483516137e5565b9885019893509084019060010161382a565b5091979650505050505050565b600060e0830182516004811061387957613879613356565b84526020838101518186015260408085015181870152606080860151908701526080808601519087015260a0808601516001600160a01b039081169188019190915260c08087015160e091890191909152805194859052830193600091906101008901905b80841015613909578651805183528601518316868301529585019560019390930192908401906138de565b5098975050505050505050565b60c08152835160c08201526000602085015161393d60e08401826001600160a01b03169052565b506040850151610100818185015260608701519150610120828186015260808801519250610140838187015260a08901519350610160848188015260c08a01519450610180613996818901876001600160a01b03169052565b60e08b01519550806101a0890152506139b361024088018661380c565b938a01516101c0880152918901516101e087015288015160ff9081166102008701529088015190811661022086015290915050613a1c602084018680518252602080820151908301526040808201516001600160a01b0316908301526060908101511515910152565b82810360a0840152613a2e8185613861565b9695505050505050565b600060208284031215613a4a57600080fd5b5051919050565b600060033d11156107bc5760046000803e5060005160e01c90565b600060443d1015613a7a5790565b6040516003193d81016004833e81513d6001600160401b038160248401118184111715613aa957505050505090565b8285019150815181811115613ac15750505050505090565b843d8701016020828501011115613adb5750505050505090565b613aea60208286010187612cdd565b509095945050505050565b8281526040602082015260006104bc60408301846137b9565b600082821015613b2057613b20613727565b500390565b6001600160a01b038481168252831660208201526060604082018190526000906125de908301846137b9565b600060208284031215613b6357600080fd5b81516104bf81612fcf565b6020808252601c908201527f53656372657453686f703a2064656c65676174696f6e206572726f7200000000604082015260600190565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60006101008a835260018060a01b03808b1660208501528960408501528860608501528760808501528660a085015280861660c0850152508060e0840152613c3a818401856137e5565b9b9a5050505050505050505050565b60008219821115613c5c57613c5c613727565b500190565b6000816000190483118215151615613c7b57613c7b613727565b500290565b600082613c9d57634e487b7160e01b600052601260045260246000fd5b500490565b600061014060018060a01b03808e168452808d1660208501528b60408501528a60608501528960808501528860a08501528760c085015280871660e08501525080610100840152613cf5818401866137e5565b9050828103610120840152613d0a8185613861565b9d9c50505050505050505050505050565b60008251613d2d81846020870161378d565b9190910192915050565b60008351613d4981846020880161378d565b9190910191825250602001919050565b6020815260006104bf60208301846137b956fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212208a975ecd58f8e7ef7e511ac1218f9ef3bf0e40a24c276ca42bae8fa6adcd578a64736f6c634300080f0033", + "deployedBytecode": "0x60806040526004361061014f5760003560e01c80638456cb59116100b6578063a90419121161006f578063a9041912146103b4578063b242e534146103c7578063da35a26f146103e7578063e30c397814610407578063e59f739a14610425578063f698da251461044557600080fd5b80638456cb59146102ee5780638c7c8f84146103035780638da5cb5b14610323578063912c860c1461034157806395835fea1461037e5780639fb514671461039e57600080fd5b80634f1ef286116101085780634f1ef2861461022957806352d1902d1461023c578063587cde1e146102515780635c975abb146102915780636036cba3146102a9578063715018a6146102d957600080fd5b80630873c6ec1461015b5780631819ecc9146101855780633659cfe6146101a55780633f4ba83a146101c75780633fc8cef3146101dc5780634e71e0c81461021457600080fd5b3661015657005b600080fd5b34801561016757600080fd5b50610172620f424081565b6040519081526020015b60405180910390f35b34801561019157600080fd5b506101726101a036600461318a565b61045b565b3480156101b157600080fd5b506101c56101c03660046131fe565b6104c6565b005b3480156101d357600080fd5b506101c56105a5565b3480156101e857600080fd5b506002546101fc906001600160a01b031681565b6040516001600160a01b03909116815260200161017c565b34801561022057600080fd5b506101c56105d9565b6101c561023736600461321b565b61063b565b34801561024857600080fd5b5061017261070b565b34801561025d57600080fd5b5061028161026c3660046131fe565b60326020526000908152604090205460ff1681565b604051901515815260200161017c565b34801561029d57600080fd5b5060cc5460ff16610281565b3480156102b557600080fd5b506102816102c43660046131fe565b60336020526000908152604090205460ff1681565b3480156102e557600080fd5b506101c56107bf565b3480156102fa57600080fd5b506101c56107f3565b34801561030f57600080fd5b506101c561031e3660046132e4565b610825565b34801561032f57600080fd5b50609a546001600160a01b03166101fc565b34801561034d57600080fd5b5061037161035c36600461333d565b60346020526000908152604090205460ff1681565b60405161017c919061336c565b34801561038a57600080fd5b506101c561039936600461333d565b610a08565b3480156103aa57600080fd5b5061017260005481565b6101c56103c2366004613410565b610a6d565b3480156103d357600080fd5b506101c56103e236600461352e565b610e2e565b3480156103f357600080fd5b506101c5610402366004613567565b610edc565b34801561041357600080fd5b50609b546001600160a01b03166101fc565b34801561043157600080fd5b506101c56104403660046135d7565b6110ae565b34801561045157600080fd5b5061017260015481565b60003330146104b15760405162461bcd60e51b815260206004820152601760248201527f53656372657453686f703a20756e736166652063616c6c00000000000000000060448201526064015b60405180910390fd5b6104bc84848461128d565b90505b9392505050565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016300361050e5760405162461bcd60e51b81526004016104a890613642565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610557600080516020613d6d833981519152546001600160a01b031690565b6001600160a01b03161461057d5760405162461bcd60e51b81526004016104a89061368e565b61058681611a73565b604080516000808252602082019092526105a291839190611a9d565b50565b609a546001600160a01b031633146105cf5760405162461bcd60e51b81526004016104a8906136da565b6105d7611c08565b565b609b546001600160a01b031633146106335760405162461bcd60e51b815260206004820152601e60248201527f536166654f776e61626c653a2063616c6c657220213d2070656e64696e67000060448201526064016104a8565b6105d7611c9b565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036106835760405162461bcd60e51b81526004016104a890613642565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166106cc600080516020613d6d833981519152546001600160a01b031690565b6001600160a01b0316146106f25760405162461bcd60e51b81526004016104a89061368e565b6106fb82611a73565b61070782826001611a9d565b5050565b6000306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146107ab5760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c000000000000000060648201526084016104a8565b50600080516020613d6d8339815191525b90565b609a546001600160a01b031633146107e95760405162461bcd60e51b81526004016104a8906136da565b6105d76000611d04565b609a546001600160a01b0316331461081d5760405162461bcd60e51b81526004016104a8906136da565b6105d7611d56565b609a546001600160a01b0316331461084f5760405162461bcd60e51b81526004016104a8906136da565b60005b825181101561092d5760016033600085848151811061087357610873613711565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff0219169083151502179055507f394e2e27feefcc03344b82ebb5995989b1d85a589c0cba6643f4e87f774a89ee8382815181106108e5576108e5613711565b602002602001015160006040516109139291906001600160a01b039290921682521515602082015260400190565b60405180910390a1806109258161373d565b915050610852565b5060005b8151811015610a03576033600083838151811061095057610950613711565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81549060ff02191690557f394e2e27feefcc03344b82ebb5995989b1d85a589c0cba6643f4e87f774a89ee8282815181106109bb576109bb613711565b602002602001015160016040516109e99291906001600160a01b039290921682521515602082015260400190565b60405180910390a1806109fb8161373d565b915050610931565b505050565b609a546001600160a01b03163314610a325760405162461bcd60e51b81526004016104a8906136da565b60008190556040518181527f19fc3beddeea399f0966d5f8664ad94006f16a10fb28c4e2fe6fae62626b71289060200160405180910390a150565b600260365403610abf5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016104a8565b600260365560cc5460ff1615610b0a5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016104a8565b4281604001516020015111610b315760405162461bcd60e51b81526004016104a890613756565b8060400151604001516001600160a01b0316336001600160a01b031614610b9a5760405162461bcd60e51b815260206004820152601c60248201527f53656372657453686f703a2073656e646572206e6f74206d617463680000000060448201526064016104a8565b3460005b825151811015610be057610bce83600001518281518110610bc157610bc1613711565b6020026020010151611dd1565b80610bd88161373d565b915050610b9e565b5060005b826020015151811015610dbc57600083602001518281518110610c0957610c09613711565b6020026020010151905060008460000151826020015181518110610c2f57610c2f613711565b6020026020010151905084604001516060015115610d8b576040808601519051631819ecc960e01b81523091631819ecc991610c719185918790600401613916565b6020604051808303816000875af1925050508015610cac575060408051601f3d908101601f19168201909252610ca991810190613a38565b60015b610d7957610cb8613a51565b806308c379a003610d165750610ccc613a6c565b80610cd75750610d18565b7f97c789f43a3e7ac27906b5fbdac832f54441771021fba06f71207d9be6d4b6238482604051610d08929190613af5565b60405180910390a150610da7565b505b3d808015610d42576040519150601f19603f3d011682016040523d82523d6000602084013e610d47565b606091505b507f97c789f43a3e7ac27906b5fbdac832f54441771021fba06f71207d9be6d4b6238482604051610d08929190613af5565b610d838186613b0e565b945050610da7565b610d9a8186604001518461128d565b610da49085613b0e565b93505b50508080610db49061373d565b915050610be4565b50604051339082156108fc029083906000818181858888f19350505050610e255760405162461bcd60e51b815260206004820152601d60248201527f53656372657453686f703a20726566756e6420746f6b656e206661696c00000060448201526064016104a8565b50506001603655565b609a546001600160a01b03163314610e585760405162461bcd60e51b81526004016104a8906136da565b6001600160a01b038216610eae5760405162461bcd60e51b815260206004820152601b60248201527f536166654f776e61626c653a206e6577206f776e65722069732030000000000060448201526064016104a8565b8015610ebd5761070782611d04565b609b80546001600160a01b0319166001600160a01b0384161790555050565b603554610100900460ff16610ef75760355460ff1615610efb565b303b155b610f5e5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016104a8565b603554610100900460ff16158015610f80576035805461ffff19166101011790555b6000839055600280546001600160a01b0319166001600160a01b038416179055604080518082018252600e81526d05031322053656372657453686f760941b6020918201528151808301835260058152640312e302e360dc1b9082015281517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f9181018290527f33c9c717ac4f1d9042c21834c184a1e067e7806976206baad1ec9a5cc5aba1d0928101929092527f06c015bd22b4c69690933c1058878ebdfef31f9aaae40bbe86d8a09fe1b2972c60608301524660808301523060a08301529060c00160408051601f198184030181529190528051602090910120600155611087611ece565b61108f611efc565b611097611f2f565b508015610a03576035805461ff0019169055505050565b609a546001600160a01b031633146110d85760405162461bcd60e51b81526004016104a8906136da565b60005b838110156111b3576001603260008787858181106110fb576110fb613711565b905060200201602081019061111091906131fe565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790557f4a31a64b928a0e8aff42ef84d144ffe82d08cb41c8027060593135e2026899b285858381811061116b5761116b613711565b905060200201602081019061118091906131fe565b604080516001600160a01b039092168252600060208301520160405180910390a1806111ab8161373d565b9150506110db565b5060005b8181101561128657603260008484848181106111d5576111d5613711565b90506020020160208101906111ea91906131fe565b6001600160a01b031681526020810191909152604001600020805460ff191690557f4a31a64b928a0e8aff42ef84d144ffe82d08cb41c8027060593135e2026899b283838381811061123e5761123e613711565b905060200201602081019061125391906131fe565b604080516001600160a01b039092168252600160208301520160405180910390a18061127e8161373d565b9150506111b7565b5050505050565b6000806000905060008560e001518460400151815181106112b0576112b0613711565b6020026020010151905060006112c68783611f5f565b90508460800151811461131b5760405162461bcd60e51b815260206004820152601a60248201527f53656372657453686f703a2068617368206e6f74206d6174636800000000000060448201526064016104a8565b4687604001511461136e5760405162461bcd60e51b815260206004820152601960248201527f53656372657453686f703a2077726f6e67206e6574776f726b0000000000000060448201526064016104a8565b60a08501516001600160a01b0316158015906113a6575060a08501516001600160a01b031660009081526032602052604090205460ff165b6113f25760405162461bcd60e51b815260206004820152601c60248201527f53656372657453686f703a20756e6b6e6f776e2064656c65676174650000000060448201526064016104a8565b60c08701516001600160a01b031660009081526033602052604090205460ff1661145e5760405162461bcd60e51b815260206004820152601a60248201527f53656372657453686f703a2077726f6e672063757272656e637900000000000060448201526064016104a8565b602082015160018651600381111561147857611478613356565b036116a65760008281526034602052604081205460ff1660028111156114a0576114a0613356565b146114ed5760405162461bcd60e51b815260206004820152601c60248201527f53656372657453686f703a20736f6c64206f722063616e63656c65640000000060448201526064016104a8565b60018860600151146115415760405162461bcd60e51b815260206004820152601a60248201527f53656372657453686f703a20696e74656e7420213d2073656c6c00000000000060448201526064016104a8565b61154b8887611fb4565b428860a001511161156e5760405162461bcd60e51b81526004016104a890613756565b8251606087015110156115bb5760405162461bcd60e51b815260206004820152601560248201527414d958dc995d14da1bdc0e881d5b99195c9c185a59605a1b60448201526064016104a8565b6115d28860c001518860400151886060015161203c565b93508560a001516001600160a01b031663bc553f0f89602001518960400151846040518463ffffffff1660e01b815260040161161093929190613b25565b6020604051808303816000875af115801561162f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116539190613b51565b61166f5760405162461bcd60e51b81526004016104a890613b6e565b6116888289602001518a60c00151898a60600151612078565b6000828152603460205260409020805460ff19166001179055611a5a565b6002865160038111156116bb576116bb613356565b036118cb5760008281526034602052604081205460ff1660028111156116e3576116e3613356565b146117305760405162461bcd60e51b815260206004820152601c60248201527f53656372657453686f703a20736f6c64206f722063616e63656c65640000000060448201526064016104a8565b60028860600151146117845760405162461bcd60e51b815260206004820152601a60248201527f53656372657453686f703a20696e74656e7420213d2073656c6c00000000000060448201526064016104a8565b61178e8887611fb4565b428860a00151116117b15760405162461bcd60e51b81526004016104a890613756565b8251606087015110156117fe5760405162461bcd60e51b815260206004820152601560248201527414d958dc995d14da1bdc0e881d5b99195c9c185a59605a1b60448201526064016104a8565b6118158860c001518960200151886060015161203c565b93508560a001516001600160a01b031663bc553f0f88604001518a60200151846040518463ffffffff1660e01b815260040161185393929190613b25565b6020604051808303816000875af1158015611872573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118969190613b51565b6118b25760405162461bcd60e51b81526004016104a890613b6e565b6116888288604001518a60c00151898a60600151612078565b6003865160038111156118e0576118e0613356565b03611a195760008281526034602052604081205460ff16600281111561190857611908613356565b146119555760405162461bcd60e51b815260206004820152601c60248201527f53656372657453686f703a20756e61626c6520746f2063616e63656c0000000060448201526064016104a8565b60208801516001600160a01b031633146119b15760405162461bcd60e51b815260206004820152601c60248201527f53656372657453686f703a206e6f207065726d69742063616e63656c0000000060448201526064016104a8565b428860a00151116119d45760405162461bcd60e51b81526004016104a890613756565b600082815260346020526040808220805460ff191660021790555183917f5b0b06d07e20243724d90e17a20034972f339eb28bd1c9437a71999bd15a1e7a91a2611a5a565b60405162461bcd60e51b8152602060048201526016602482015275053656372657453686f703a20756e6b6e6f776e206f760541b60448201526064016104a8565b611a678289858a8a6121c0565b50919695505050505050565b609a546001600160a01b031633146105a25760405162461bcd60e51b81526004016104a8906136da565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff1615611ad057610a0383612231565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015611b2a575060408051601f3d908101601f19168201909252611b2791810190613a38565b60015b611b8d5760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b60648201526084016104a8565b600080516020613d6d8339815191528114611bfc5760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b60648201526084016104a8565b50610a038383836122cd565b60cc5460ff16611c515760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016104a8565b60cc805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b609a54609b546040516001600160a01b03928316929091169082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a350609b8054609a80546001600160a01b03199081166001600160a01b03841617909155169055565b609a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60cc5460ff1615611d9c5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016104a8565b60cc805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611c7e3390565b6000600160ff1682610160015160ff1603611e21576000611dfc600154611df7856122f8565b6123c7565b9050611e19818461014001518561010001518661012001516123ee565b915050611e69565b60405162461bcd60e51b815260206004820152601d60248201527f53656372657453686f703a2077726f6e67207369672076657273696f6e00000060448201526064016104a8565b81602001516001600160a01b0316816001600160a01b0316146107075760405162461bcd60e51b815260206004820152601960248201527f53656372657453686f703a20736967206e6f74206d617463680000000000000060448201526064016104a8565b603554610100900460ff16611ef55760405162461bcd60e51b81526004016104a890613ba5565b6001603655565b603554610100900460ff16611f235760405162461bcd60e51b81526004016104a890613ba5565b60cc805460ff19169055565b603554610100900460ff16611f565760405162461bcd60e51b81526004016104a890613ba5565b6105d733611d04565b81516020808401516040808601516060870151608088015160a089015160c08a01519451600098611f9698909796918b9101613bf0565b60405160208183030381529060405280519060200120905092915050565b81608001518160a001516001600160a01b0316632c436e5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611ffb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061201f9190613a38565b146107075760405162461bcd60e51b81526004016104a890613b6e565b6000811561206e576001600160a01b0384166120595750806104bf565b61206e6001600160a01b038516843085612416565b5060009392505050565b806000805b8460c00151518110156121105760008560c0015182815181106120a2576120a2613711565b602002602001015190508060000151836120bc9190613c49565b92506000620f42408260000151876120d49190613c61565b6120de9190613c80565b90506120ea8186613b0e565b94506120fb88836020015183612481565b505080806121089061373d565b91505061207d565b5080600054101561215c5760405162461bcd60e51b81526020600482015260166024820152751d1bdd185b081999594818d85c08195e18d95959195960521b60448201526064016104a8565b612167858784612481565b604080518881526001600160a01b0387811660208301528816818301526060810184905290517fe2c49856b032c255ae7e325d18109bc4e22a2804e2e49a017ec0f59f19cd447b9181900360800190a150505050505050565b847fbc7faddfa2d67a527d007c7779c5ce64b8a108c2fcbfe4b13a0b1d3551a1a175856020015184604001518760000151866000015189606001518a608001518b60a001518c60c001518c8b6040516122229a99989796959493929190613ca2565b60405180910390a25050505050565b6001600160a01b0381163b61229e5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084016104a8565b600080516020613d6d83398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b6122d6836124b3565b6000825111806122e35750805b15610a03576122f283836124f3565b50505050565b60007f1897435d74cd983f2d094af2a83a02fd7acae45cbbee767ee4538a4c31bc79d6826000015183602001518460400151856060015186608001518760a001518860c001518960e00151516123518b60e001516125e7565b60408051602081019b909b528a01989098526001600160a01b0396871660608a0152608089019590955260a088019390935260c087019190915260e0860152909116610100840152610120830152610140820152610160015b604051602081830303815290604052805190602001209050919050565b60405161190160f01b60208201526022810183905260428101829052600090606201611f96565b60008060006123ff8787878761265e565b9150915061240c8161274b565b5095945050505050565b6040516001600160a01b03808516602483015283166044820152606481018290526122f29085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152612901565b8015610a03576001600160a01b03831661249f57610a0382826129d3565b610a036001600160a01b0384168383612aec565b6124bc81612231565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606001600160a01b0383163b61255b5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084016104a8565b600080846001600160a01b0316846040516125769190613d1b565b600060405180830381855af49150503d80600081146125b1576040519150601f19603f3d011682016040523d82523d6000602084013e6125b6565b606091505b50915091506125de8282604051806060016040528060278152602001613d8d60279139612b1c565b95945050505050565b6000606060005b835181101561264f578161261a85838151811061260d5761260d613711565b6020026020010151612b55565b60405160200161262b929190613d37565b604051602081830303815290604052915080806126479061373d565b9150506125ee565b50805160209091012092915050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156126955750600090506003612742565b8460ff16601b141580156126ad57508460ff16601c14155b156126be5750600090506004612742565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612712573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661273b57600060019250925050612742565b9150600090505b94509492505050565b600081600481111561275f5761275f613356565b036127675750565b600181600481111561277b5761277b613356565b036127c85760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016104a8565b60028160048111156127dc576127dc613356565b036128295760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016104a8565b600381600481111561283d5761283d613356565b036128955760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016104a8565b60048160048111156128a9576128a9613356565b036105a25760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016104a8565b6000612956826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612ba89092919063ffffffff16565b805190915015610a0357808060200190518101906129749190613b51565b610a035760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016104a8565b80471015612a235760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016104a8565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612a70576040519150601f19603f3d011682016040523d82523d6000602084013e612a75565b606091505b5050905080610a035760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016104a8565b6040516001600160a01b038316602482015260448101829052610a0390849063a9059cbb60e01b9060640161244a565b60608315612b2b5750816104bf565b825115612b3b5782518084602001fd5b8160405162461bcd60e51b81526004016104a89190613d59565b80516020808301518051908201206040516000936123aa937fc3a0c300c66ade339734c0629cf933940eaccc55b682952080d263a95c718462939192019283526020830191909152604082015260600190565b60606104bc8484600085856001600160a01b0385163b612c0a5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016104a8565b600080866001600160a01b03168587604051612c269190613d1b565b60006040518083038185875af1925050503d8060008114612c63576040519150601f19603f3d011682016040523d82523d6000602084013e612c68565b606091505b5091509150612c78828286612b1c565b979650505050505050565b634e487b7160e01b600052604160045260246000fd5b604081018181106001600160401b0382111715612cb857612cb8612c83565b60405250565b606081018181106001600160401b0382111715612cb857612cb8612c83565b601f8201601f191681016001600160401b0381118282101715612d0257612d02612c83565b6040525050565b60405161018081016001600160401b0381118282101715612d2c57612d2c612c83565b60405290565b60405160e081016001600160401b0381118282101715612d2c57612d2c612c83565b6001600160a01b03811681146105a257600080fd5b8035612d7481612d54565b919050565b60006001600160401b03821115612d9257612d92612c83565b5060051b60200190565b600082601f830112612dad57600080fd5b81356001600160401b03811115612dc657612dc6612c83565b604051612ddd601f8301601f191660200182612cdd565b818152846020838601011115612df257600080fd5b816020850160208301376000918101602001919091529392505050565b600082601f830112612e2057600080fd5b81356020612e2d82612d79565b60408051612e3b8382612cdd565b84815260059490941b8601830193838101925087851115612e5b57600080fd5b8387015b85811015612edc5780356001600160401b0380821115612e7f5760008081fd5b90890190818b03601f1901851315612e975760008081fd5b8451612ea281612c99565b8783013581528583013582811115612eba5760008081fd5b612ec88d8a83870101612d9c565b828a01525086525050928401928401612e5f565b50979650505050505050565b803560ff81168114612d7457600080fd5b60006101808284031215612f0c57600080fd5b612f14612d09565b905081358152612f2660208301612d69565b602082015260408201356040820152606082013560608201526080820135608082015260a082013560a0820152612f5f60c08301612d69565b60c082015260e08201356001600160401b03811115612f7d57600080fd5b612f8984828501612e0f565b60e08301525061010082810135908201526101208083013590820152610140612fb3818401612ee8565b90820152610160612fc5838201612ee8565b9082015292915050565b80151581146105a257600080fd5b600060808284031215612fef57600080fd5b604051608081018181106001600160401b038211171561301157613011612c83565b80604052508091508235815260208301356020820152604083013561303581612d54565b6040820152606083013561304881612fcf565b6060919091015292915050565b803560048110612d7457600080fd5b600082601f83011261307557600080fd5b8135602061308282612d79565b604080516130908382612cdd565b84815260069490941b86018301938381019250878511156130b057600080fd5b8387015b85811015612edc5782818a0312156130cc5760008081fd5b82516130d781612c99565b81358152858201356130e881612d54565b8187015284529284019282016130b4565b600060e0828403121561310b57600080fd5b613113612d32565b905061311e82613055565b81526020820135602082015260408201356040820152606082013560608201526080820135608082015261315460a08301612d69565b60a082015260c08201356001600160401b0381111561317257600080fd5b61317e84828501613064565b60c08301525092915050565b600080600060c0848603121561319f57600080fd5b83356001600160401b03808211156131b657600080fd5b6131c287838801612ef9565b94506131d18760208801612fdd565b935060a08601359150808211156131e757600080fd5b506131f4868287016130f9565b9150509250925092565b60006020828403121561321057600080fd5b81356104bf81612d54565b6000806040838503121561322e57600080fd5b823561323981612d54565b915060208301356001600160401b0381111561325457600080fd5b61326085828601612d9c565b9150509250929050565b600082601f83011261327b57600080fd5b8135602061328882612d79565b6040516132958282612cdd565b83815260059390931b85018201928281019150868411156132b557600080fd5b8286015b848110156132d95780356132cc81612d54565b83529183019183016132b9565b509695505050505050565b600080604083850312156132f757600080fd5b82356001600160401b038082111561330e57600080fd5b61331a8683870161326a565b9350602085013591508082111561333057600080fd5b506132608582860161326a565b60006020828403121561334f57600080fd5b5035919050565b634e487b7160e01b600052602160045260246000fd5b602081016003831061338057613380613356565b91905290565b600082601f83011261339757600080fd5b813560206133a482612d79565b6040516133b18282612cdd565b83815260059390931b85018201928281019150868411156133d157600080fd5b8286015b848110156132d95780356001600160401b038111156133f45760008081fd5b6134028986838b01016130f9565b8452509183019183016133d5565b6000602080838503121561342357600080fd5b82356001600160401b038082111561343a57600080fd5b9084019060c0828703121561344e57600080fd5b60405161345a81612cbe565b82358281111561346957600080fd5b8301601f8101881361347a57600080fd5b803561348581612d79565b6040516134928282612cdd565b82815260059290921b830187019187810191508a8311156134b257600080fd5b8784015b838110156134ea578035878111156134ce5760008081fd5b6134dc8d8b83890101612ef9565b8452509188019188016134b6565b508452505050828401358281111561350157600080fd5b61350d88828601613386565b858301525061351f8760408501612fdd565b60408201529695505050505050565b6000806040838503121561354157600080fd5b823561354c81612d54565b9150602083013561355c81612fcf565b809150509250929050565b6000806040838503121561357a57600080fd5b82359150602083013561355c81612d54565b60008083601f84011261359e57600080fd5b5081356001600160401b038111156135b557600080fd5b6020830191508360208260051b85010111156135d057600080fd5b9250929050565b600080600080604085870312156135ed57600080fd5b84356001600160401b038082111561360457600080fd5b6136108883890161358c565b9096509450602087013591508082111561362957600080fd5b506136368782880161358c565b95989497509550505050565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b6020808252601d908201527f536166654f776e61626c653a2063616c6c6572206e6f74206f776e6572000000604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006001820161374f5761374f613727565b5060010190565b6020808252601c908201527f53656372657453686f703a20646561646c696e65207265616368656400000000604082015260600190565b60005b838110156137a8578181015183820152602001613790565b838111156122f25750506000910152565b600081518084526137d181602086016020860161378d565b601f01601f19169290920160200192915050565b80518252600060208201516040602085015261380460408501826137b9565b949350505050565b600081518084526020808501808196508360051b8101915082860160005b858110156138545782840389526138428483516137e5565b9885019893509084019060010161382a565b5091979650505050505050565b600060e0830182516004811061387957613879613356565b84526020838101518186015260408085015181870152606080860151908701526080808601519087015260a0808601516001600160a01b039081169188019190915260c08087015160e091890191909152805194859052830193600091906101008901905b80841015613909578651805183528601518316868301529585019560019390930192908401906138de565b5098975050505050505050565b60c08152835160c08201526000602085015161393d60e08401826001600160a01b03169052565b506040850151610100818185015260608701519150610120828186015260808801519250610140838187015260a08901519350610160848188015260c08a01519450610180613996818901876001600160a01b03169052565b60e08b01519550806101a0890152506139b361024088018661380c565b938a01516101c0880152918901516101e087015288015160ff9081166102008701529088015190811661022086015290915050613a1c602084018680518252602080820151908301526040808201516001600160a01b0316908301526060908101511515910152565b82810360a0840152613a2e8185613861565b9695505050505050565b600060208284031215613a4a57600080fd5b5051919050565b600060033d11156107bc5760046000803e5060005160e01c90565b600060443d1015613a7a5790565b6040516003193d81016004833e81513d6001600160401b038160248401118184111715613aa957505050505090565b8285019150815181811115613ac15750505050505090565b843d8701016020828501011115613adb5750505050505090565b613aea60208286010187612cdd565b509095945050505050565b8281526040602082015260006104bc60408301846137b9565b600082821015613b2057613b20613727565b500390565b6001600160a01b038481168252831660208201526060604082018190526000906125de908301846137b9565b600060208284031215613b6357600080fd5b81516104bf81612fcf565b6020808252601c908201527f53656372657453686f703a2064656c65676174696f6e206572726f7200000000604082015260600190565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60006101008a835260018060a01b03808b1660208501528960408501528860608501528760808501528660a085015280861660c0850152508060e0840152613c3a818401856137e5565b9b9a5050505050505050505050565b60008219821115613c5c57613c5c613727565b500190565b6000816000190483118215151615613c7b57613c7b613727565b500290565b600082613c9d57634e487b7160e01b600052601260045260246000fd5b500490565b600061014060018060a01b03808e168452808d1660208501528b60408501528a60608501528960808501528860a08501528760c085015280871660e08501525080610100840152613cf5818401866137e5565b9050828103610120840152613d0a8185613861565b9d9c50505050505050505050505050565b60008251613d2d81846020870161378d565b9190910192915050565b60008351613d4981846020880161378d565b9190910191825250602001919050565b6020815260006104bf60208301846137b956fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212208a975ecd58f8e7ef7e511ac1218f9ef3bf0e40a24c276ca42bae8fa6adcd578a64736f6c634300080f0033", + "devdoc": { + "kind": "dev", + "methods": { + "claimOwnership()": { + "details": "pending owner call this function to claim ownership" + }, + "initialize(uint256,address)": { + "details": "initialize", + "params": { + "feeCapPct_": "max fee percentage", + "weth_": "address of wrapped eth" + } + }, + "owner()": { + "details": "Returns the address of the current owner." + }, + "paused()": { + "details": "Returns true if the contract is paused, and false otherwise." + }, + "pendingOwner()": { + "details": "Return the address of the pending owner" + }, + "proxiableUUID()": { + "details": "Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the implementation. It is used to validate that the this implementation remains valid after an upgrade. IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier." + }, + "renounceOwnership()": { + "details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner." + }, + "run(((uint256,address,uint256,uint256,uint256,uint256,address,(uint256,bytes)[],bytes32,bytes32,uint8,uint8)[],(uint8,uint256,uint256,uint256,bytes32,address,(uint256,address)[])[],(uint256,uint256,address,bool)))": { + "details": "Entry of a contract call", + "params": { + "input": "a struct that contains all data" + } + }, + "runSingle((uint256,address,uint256,uint256,uint256,uint256,address,(uint256,bytes)[],bytes32,bytes32,uint8,uint8),(uint256,uint256,address,bool),(uint8,uint256,uint256,uint256,bytes32,address,(uint256,address)[]))": { + "details": "run a single order", + "params": { + "detail": "detail by the taker", + "order": "order by the maker", + "shared": "some option of the taker" + } + }, + "transferOwnership(address,bool)": { + "details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner. Note If direct is false, it will set an pending owner and the OwnerShipTransferring only happens when the pending owner claim the ownership" + }, + "updateCurrencies(address[],address[])": { + "details": "update Currencies address", + "params": { + "toAdd": "the array of currency address that want to add", + "toRemove": "the array to currency address that want to remove" + } + }, + "updateDelegates(address[],address[])": { + "details": "update Delegates address", + "params": { + "toAdd": "the array of delegate address that want to add", + "toRemove": "the array to delegate address that want to remove" + } + }, + "updateFeeCap(uint256)": { + "params": { + "val": "new Fee Cap" + } + }, + "upgradeTo(address)": { + "details": "Upgrade the implementation of the proxy to `newImplementation`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event." + }, + "upgradeToAndCall(address,bytes)": { + "details": "Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call encoded in `data`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event." + } + }, + "stateVariables": { + "RATE_BASE": { + "details": "precision of the parameters " + } + }, + "version": 1 + }, + "userdoc": { + "kind": "user", + "methods": {}, + "version": 1 + }, + "storageLayout": { + "storage": [ + { + "astId": 10430, + "contract": "contracts/secretShop/SecretShopUpgradable.sol:SecretShopUpgradable", + "label": "feeCapPct", + "offset": 0, + "slot": "0", + "type": "t_uint256" + }, + { + "astId": 10433, + "contract": "contracts/secretShop/SecretShopUpgradable.sol:SecretShopUpgradable", + "label": "domainSeparator", + "offset": 0, + "slot": "1", + "type": "t_bytes32" + }, + { + "astId": 10436, + "contract": "contracts/secretShop/SecretShopUpgradable.sol:SecretShopUpgradable", + "label": "weth", + "offset": 0, + "slot": "2", + "type": "t_contract(IWETHUpgradable)11898" + }, + { + "astId": 10440, + "contract": "contracts/secretShop/SecretShopUpgradable.sol:SecretShopUpgradable", + "label": "__gap", + "offset": 0, + "slot": "3", + "type": "t_array(t_uint256)47_storage" + }, + { + "astId": 10445, + "contract": "contracts/secretShop/SecretShopUpgradable.sol:SecretShopUpgradable", + "label": "delegates", + "offset": 0, + "slot": "50", + "type": "t_mapping(t_address,t_bool)" + }, + { + "astId": 10451, + "contract": "contracts/secretShop/SecretShopUpgradable.sol:SecretShopUpgradable", + "label": "currencies", + "offset": 0, + "slot": "51", + "type": "t_mapping(t_contract(IERC20Upgradeable)846,t_bool)" + }, + { + "astId": 10457, + "contract": "contracts/secretShop/SecretShopUpgradable.sol:SecretShopUpgradable", + "label": "inventoryStatus", + "offset": 0, + "slot": "52", + "type": "t_mapping(t_bytes32,t_enum(InvStatus)10413)" + }, + { + "astId": 395, + "contract": "contracts/secretShop/SecretShopUpgradable.sol:SecretShopUpgradable", + "label": "_initialized", + "offset": 0, + "slot": "53", + "type": "t_bool" + }, + { + "astId": 398, + "contract": "contracts/secretShop/SecretShopUpgradable.sol:SecretShopUpgradable", + "label": "_initializing", + "offset": 1, + "slot": "53", + "type": "t_bool" + }, + { + "astId": 723, + "contract": "contracts/secretShop/SecretShopUpgradable.sol:SecretShopUpgradable", + "label": "_status", + "offset": 0, + "slot": "54", + "type": "t_uint256" + }, + { + "astId": 767, + "contract": "contracts/secretShop/SecretShopUpgradable.sol:SecretShopUpgradable", + "label": "__gap", + "offset": 0, + "slot": "55", + "type": "t_array(t_uint256)49_storage" + }, + { + "astId": 1354, + "contract": "contracts/secretShop/SecretShopUpgradable.sol:SecretShopUpgradable", + "label": "__gap", + "offset": 0, + "slot": "104", + "type": "t_array(t_uint256)50_storage" + }, + { + "astId": 7440, + "contract": "contracts/secretShop/SecretShopUpgradable.sol:SecretShopUpgradable", + "label": "_owner", + "offset": 0, + "slot": "154", + "type": "t_address" + }, + { + "astId": 7442, + "contract": "contracts/secretShop/SecretShopUpgradable.sol:SecretShopUpgradable", + "label": "_pendingOwner", + "offset": 0, + "slot": "155", + "type": "t_address" + }, + { + "astId": 7625, + "contract": "contracts/secretShop/SecretShopUpgradable.sol:SecretShopUpgradable", + "label": "__gap", + "offset": 0, + "slot": "156", + "type": "t_array(t_uint256)48_storage" + }, + { + "astId": 619, + "contract": "contracts/secretShop/SecretShopUpgradable.sol:SecretShopUpgradable", + "label": "_paused", + "offset": 0, + "slot": "204", + "type": "t_bool" + }, + { + "astId": 708, + "contract": "contracts/secretShop/SecretShopUpgradable.sol:SecretShopUpgradable", + "label": "__gap", + "offset": 0, + "slot": "205", + "type": "t_array(t_uint256)49_storage" + }, + { + "astId": 377, + "contract": "contracts/secretShop/SecretShopUpgradable.sol:SecretShopUpgradable", + "label": "__gap", + "offset": 0, + "slot": "254", + "type": "t_array(t_uint256)50_storage" + }, + { + "astId": 597, + "contract": "contracts/secretShop/SecretShopUpgradable.sol:SecretShopUpgradable", + "label": "__gap", + "offset": 0, + "slot": "304", + "type": "t_array(t_uint256)50_storage" + } + ], + "types": { + "t_address": { + "encoding": "inplace", + "label": "address", + "numberOfBytes": "20" + }, + "t_array(t_uint256)47_storage": { + "base": "t_uint256", + "encoding": "inplace", + "label": "uint256[47]", + "numberOfBytes": "1504" + }, + "t_array(t_uint256)48_storage": { + "base": "t_uint256", + "encoding": "inplace", + "label": "uint256[48]", + "numberOfBytes": "1536" + }, + "t_array(t_uint256)49_storage": { + "base": "t_uint256", + "encoding": "inplace", + "label": "uint256[49]", + "numberOfBytes": "1568" + }, + "t_array(t_uint256)50_storage": { + "base": "t_uint256", + "encoding": "inplace", + "label": "uint256[50]", + "numberOfBytes": "1600" + }, + "t_bool": { + "encoding": "inplace", + "label": "bool", + "numberOfBytes": "1" + }, + "t_bytes32": { + "encoding": "inplace", + "label": "bytes32", + "numberOfBytes": "32" + }, + "t_contract(IERC20Upgradeable)846": { + "encoding": "inplace", + "label": "contract IERC20Upgradeable", + "numberOfBytes": "20" + }, + "t_contract(IWETHUpgradable)11898": { + "encoding": "inplace", + "label": "contract IWETHUpgradable", + "numberOfBytes": "20" + }, + "t_enum(InvStatus)10413": { + "encoding": "inplace", + "label": "enum Market.InvStatus", + "numberOfBytes": "1" + }, + "t_mapping(t_address,t_bool)": { + "encoding": "mapping", + "key": "t_address", + "label": "mapping(address => bool)", + "numberOfBytes": "32", + "value": "t_bool" + }, + "t_mapping(t_bytes32,t_enum(InvStatus)10413)": { + "encoding": "mapping", + "key": "t_bytes32", + "label": "mapping(bytes32 => enum Market.InvStatus)", + "numberOfBytes": "32", + "value": "t_enum(InvStatus)10413" + }, + "t_mapping(t_contract(IERC20Upgradeable)846,t_bool)": { + "encoding": "mapping", + "key": "t_contract(IERC20Upgradeable)846", + "label": "mapping(contract IERC20Upgradeable => bool)", + "numberOfBytes": "32", + "value": "t_bool" + }, + "t_uint256": { + "encoding": "inplace", + "label": "uint256", + "numberOfBytes": "32" + } + } + } +} \ No newline at end of file diff --git a/deployments/p12TestNet/SecretShopUpgradable_Proxy.json b/deployments/p12TestNet/SecretShopUpgradable_Proxy.json new file mode 100644 index 0000000..195ee30 --- /dev/null +++ b/deployments/p12TestNet/SecretShopUpgradable_Proxy.json @@ -0,0 +1,125 @@ +{ + "address": "0x76eDf742106828B2aDd50829142B84d3B337Fdd5", + "abi": [ + { + "inputs": [ + { + "internalType": "address", + "name": "_logic", + "type": "address" + }, + { + "internalType": "bytes", + "name": "_data", + "type": "bytes" + } + ], + "stateMutability": "payable", + "type": "constructor" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "previousAdmin", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "newAdmin", + "type": "address" + } + ], + "name": "AdminChanged", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "beacon", + "type": "address" + } + ], + "name": "BeaconUpgraded", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "implementation", + "type": "address" + } + ], + "name": "Upgraded", + "type": "event" + }, + { + "stateMutability": "payable", + "type": "fallback" + }, + { + "stateMutability": "payable", + "type": "receive" + } + ], + "transactionHash": "0xc860fe599f63e0f1e8b5aaf79b878b1d1a824dc26ce9d6916ed0c184f1e55404", + "receipt": { + "to": null, + "from": "0xfeD03676c595DD1F1c6716a446cD44B4C90AD290", + "contractAddress": "0x76eDf742106828B2aDd50829142B84d3B337Fdd5", + "transactionIndex": 0, + "gasUsed": "379551", + "logsBloom": "0x00000000000000000000000000000000400000000000000000800010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000001000000000000000000000000000000000000020020000000000000000800000002000000000000000000000000400000000000000000000000000000000000000000000004008000000000000000000000000000000000000000000000000002000000000000000000000000000000000020000000000000000000000000000000000000000000000000000020000000000100000000000040000000000000000000000000000000000010000000", + "blockHash": "0x8ed01304122d581745e91fa1791490d162f7c50905bae48bc3e896bc20e91dea", + "transactionHash": "0xc860fe599f63e0f1e8b5aaf79b878b1d1a824dc26ce9d6916ed0c184f1e55404", + "logs": [ + { + "transactionIndex": 0, + "blockNumber": 1206194, + "transactionHash": "0xc860fe599f63e0f1e8b5aaf79b878b1d1a824dc26ce9d6916ed0c184f1e55404", + "address": "0x76eDf742106828B2aDd50829142B84d3B337Fdd5", + "topics": [ + "0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b", + "0x00000000000000000000000059d7cab3aedd66a47b242752e599f5d557bdbc12" + ], + "data": "0x", + "logIndex": 0, + "blockHash": "0x8ed01304122d581745e91fa1791490d162f7c50905bae48bc3e896bc20e91dea" + }, + { + "transactionIndex": 0, + "blockNumber": 1206194, + "transactionHash": "0xc860fe599f63e0f1e8b5aaf79b878b1d1a824dc26ce9d6916ed0c184f1e55404", + "address": "0x76eDf742106828B2aDd50829142B84d3B337Fdd5", + "topics": [ + "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", + "0x0000000000000000000000000000000000000000000000000000000000000000", + "0x000000000000000000000000fed03676c595dd1f1c6716a446cd44b4c90ad290" + ], + "data": "0x", + "logIndex": 1, + "blockHash": "0x8ed01304122d581745e91fa1791490d162f7c50905bae48bc3e896bc20e91dea" + } + ], + "blockNumber": 1206194, + "cumulativeGasUsed": "379551", + "status": 1, + "byzantium": true + }, + "args": [ + "0x59d7Cab3aedD66A47B242752E599F5D557bdbc12", + "0xda35a26f00000000000000000000000000000000000000000000000000000000000186a00000000000000000000000000ee3f0848ca07e6342390c34fcc7ea9d0217a47d" + ], + "numDeployments": 1, + "bytecode": "0x6080604052604051610772380380610772833981016040819052610022916102f7565b61004d60017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd61040f565b60008051602061072b8339815191521461007757634e487b7160e01b600052600160045260246000fd5b6100838282600061008a565b5050610474565b610093836100f4565b6040516001600160a01b038416907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a26000825111806100d45750805b156100ef576100ed83836101b460201b6100291760201c565b505b505050565b610107816101e060201b6100551760201c565b61016e5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084015b60405180910390fd5b8061019360008051602061072b83398151915260001b6101e660201b61005b1760201c565b80546001600160a01b0319166001600160a01b039290921691909117905550565b60606101d9838360405180606001604052806027815260200161074b602791396101e9565b9392505050565b3b151590565b90565b6060833b6102485760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b6064820152608401610165565b600080856001600160a01b03168560405161026391906103c0565b600060405180830381855af49150503d806000811461029e576040519150601f19603f3d011682016040523d82523d6000602084013e6102a3565b606091505b5090925090506102b48282866102be565b9695505050505050565b606083156102cd5750816101d9565b8251156102dd5782518084602001fd5b8160405162461bcd60e51b815260040161016591906103dc565b60008060408385031215610309578182fd5b82516001600160a01b038116811461031f578283fd5b60208401519092506001600160401b038082111561033b578283fd5b818501915085601f83011261034e578283fd5b8151818111156103605761036061045e565b604051601f8201601f19908116603f011681019083821181831017156103885761038861045e565b816040528281528860208487010111156103a0578586fd5b6103b1836020830160208801610432565b80955050505050509250929050565b600082516103d2818460208701610432565b9190910192915050565b60006020825282518060208401526103fb816040850160208701610432565b601f01601f19169190910160400192915050565b60008282101561042d57634e487b7160e01b81526011600452602481fd5b500390565b60005b8381101561044d578181015183820152602001610435565b838111156100ed5750506000910152565b634e487b7160e01b600052604160045260246000fd5b6102a8806104836000396000f3fe60806040523661001357610011610017565b005b6100115b61002761002261005e565b610096565b565b606061004e838360405180606001604052806027815260200161024c602791396100ba565b9392505050565b3b151590565b90565b60006100917f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b3660008037600080366000845af43d6000803e8080156100b5573d6000f35b3d6000fd5b6060833b61011e5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084015b60405180910390fd5b600080856001600160a01b03168560405161013991906101cc565b600060405180830381855af49150503d8060008114610174576040519150601f19603f3d011682016040523d82523d6000602084013e610179565b606091505b5091509150610189828286610193565b9695505050505050565b606083156101a257508161004e565b8251156101b25782518084602001fd5b8160405162461bcd60e51b815260040161011591906101e8565b600082516101de81846020870161021b565b9190910192915050565b600060208252825180602084015261020781604085016020870161021b565b601f01601f19169190910160400192915050565b60005b8381101561023657818101518382015260200161021e565b83811115610245576000848401525b5050505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212209b8470f06e8a3960c912103fc2be177edaad69584ee3c7d2809ee737e79408e764736f6c63430008020033360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564", + "deployedBytecode": "0x60806040523661001357610011610017565b005b6100115b61002761002261005e565b610096565b565b606061004e838360405180606001604052806027815260200161024c602791396100ba565b9392505050565b3b151590565b90565b60006100917f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b3660008037600080366000845af43d6000803e8080156100b5573d6000f35b3d6000fd5b6060833b61011e5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084015b60405180910390fd5b600080856001600160a01b03168560405161013991906101cc565b600060405180830381855af49150503d8060008114610174576040519150601f19603f3d011682016040523d82523d6000602084013e610179565b606091505b5091509150610189828286610193565b9695505050505050565b606083156101a257508161004e565b8251156101b25782518084602001fd5b8160405162461bcd60e51b815260040161011591906101e8565b600082516101de81846020870161021b565b9190910192915050565b600060208252825180602084015261020781604085016020870161021b565b601f01601f19169190910160400192915050565b60005b8381101561023657818101518382015260200161021e565b83811115610245576000848401525b5050505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212209b8470f06e8a3960c912103fc2be177edaad69584ee3c7d2809ee737e79408e764736f6c63430008020033" +} \ No newline at end of file diff --git a/deployments/p12TestNet/VotingEscrow.json b/deployments/p12TestNet/VotingEscrow.json new file mode 100644 index 0000000..d7f2517 --- /dev/null +++ b/deployments/p12TestNet/VotingEscrow.json @@ -0,0 +1,1190 @@ +{ + "address": "0xA7f7dee4E7a86b96dB09DAcBBbB13Da911462B20", + "abi": [ + { + "inputs": [ + { + "internalType": "address", + "name": "p12TokenAddr_", + "type": "address" + }, + { + "internalType": "string", + "name": "name_", + "type": "string" + }, + { + "internalType": "string", + "name": "symbol_", + "type": "string" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "value", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "lockTime", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "enum VotingEscrow.OperationType", + "name": "t", + "type": "uint8" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "ts", + "type": "uint256" + } + ], + "name": "Deposit", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "addr", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "timestamp", + "type": "uint256" + } + ], + "name": "Expired", + "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": [ + { + "indexed": false, + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "Paused", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "prevTotalLockedP12", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "totalLockedP12", + "type": "uint256" + } + ], + "name": "TotalLocked", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "Unpaused", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "provider", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "value", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "ts", + "type": "uint256" + } + ], + "name": "Withdraw", + "type": "event" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "addr", + "type": "address" + } + ], + "name": "balanceOf", + "outputs": [ + { + "internalType": "int256", + "name": "", + "type": "int256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "addr", + "type": "address" + }, + { + "internalType": "uint256", + "name": "blk", + "type": "uint256" + } + ], + "name": "balanceOfAt", + "outputs": [ + { + "internalType": "int256", + "name": "", + "type": "int256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "checkPoint", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "claimOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "value", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "unlockTime", + "type": "uint256" + } + ], + "name": "createLock", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "decimals", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "addr", + "type": "address" + }, + { + "internalType": "uint256", + "name": "value", + "type": "uint256" + } + ], + "name": "depositFor", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "epoch", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "expire", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "expired", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "blk", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "maxEpoch", + "type": "uint256" + } + ], + "name": "findBlockEpoch", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "addr", + "type": "address" + } + ], + "name": "getLastUserSlope", + "outputs": [ + { + "internalType": "int256", + "name": "", + "type": "int256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "value", + "type": "uint256" + } + ], + "name": "increaseAmount", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "unlockTime", + "type": "uint256" + } + ], + "name": "increaseUnlockTime", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "name": "locked", + "outputs": [ + { + "internalType": "int256", + "name": "amount", + "type": "int256" + }, + { + "internalType": "uint256", + "name": "end", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "addr", + "type": "address" + } + ], + "name": "lockedEnd", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "name", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "owner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "p12Token", + "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": "pendingOwner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "name": "pointHistory", + "outputs": [ + { + "internalType": "int256", + "name": "bias", + "type": "int256" + }, + { + "internalType": "int256", + "name": "slope", + "type": "int256" + }, + { + "internalType": "uint256", + "name": "ts", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "blk", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "renounceOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "name": "slopeChanges", + "outputs": [ + { + "internalType": "int256", + "name": "", + "type": "int256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "symbol", + "outputs": [ + { + "internalType": "string", + "name": "", + "type": "string" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "totalLockedP12", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "totalSupply", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint256", + "name": "blk", + "type": "uint256" + } + ], + "name": "totalSupplyAt", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "newOwner", + "type": "address" + }, + { + "internalType": "bool", + "name": "direct", + "type": "bool" + } + ], + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "unpause", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "name": "userPointEpoch", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + }, + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "name": "userPointHistory", + "outputs": [ + { + "internalType": "int256", + "name": "bias", + "type": "int256" + }, + { + "internalType": "int256", + "name": "slope", + "type": "int256" + }, + { + "internalType": "uint256", + "name": "ts", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "blk", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "addr", + "type": "address" + }, + { + "internalType": "uint256", + "name": "idx", + "type": "uint256" + } + ], + "name": "userPointHistoryTs", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "withdraw", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + } + ], + "transactionHash": "0xd87c4122933fed77047da265d77b7f22c71daac35bc55af79dcf18d3aea4d953", + "receipt": { + "to": null, + "from": "0xfeD03676c595DD1F1c6716a446cD44B4C90AD290", + "contractAddress": "0xA7f7dee4E7a86b96dB09DAcBBbB13Da911462B20", + "transactionIndex": 0, + "gasUsed": "2550660", + "logsBloom": "0x00000000000002000000000000000000000000000000000000808000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000001000000000000000000000000000000000000020000000000000000000800000002000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000100000000000000000000000000000000000000000000000010000000", + "blockHash": "0x2daa09c77675c3e5fd4884a7b15d5e52b643b90c84b358a9bcfc9215ab656b67", + "transactionHash": "0xd87c4122933fed77047da265d77b7f22c71daac35bc55af79dcf18d3aea4d953", + "logs": [ + { + "transactionIndex": 0, + "blockNumber": 1206195, + "transactionHash": "0xd87c4122933fed77047da265d77b7f22c71daac35bc55af79dcf18d3aea4d953", + "address": "0xA7f7dee4E7a86b96dB09DAcBBbB13Da911462B20", + "topics": [ + "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", + "0x0000000000000000000000000000000000000000000000000000000000000000", + "0x000000000000000000000000fed03676c595dd1f1c6716a446cd44b4c90ad290" + ], + "data": "0x", + "logIndex": 0, + "blockHash": "0x2daa09c77675c3e5fd4884a7b15d5e52b643b90c84b358a9bcfc9215ab656b67" + } + ], + "blockNumber": 1206195, + "cumulativeGasUsed": "2550660", + "status": 1, + "byzantium": true + }, + "args": [ + "0xeAc1F044C4b9B7069eF9F3eC05AC60Df76Fe6Cd0", + "Vote-escrowed P12", + "veP12" + ], + "numDeployments": 1, + "solcInputHash": "1f7f80fb95b6efcc6f464d7df403eaaa", + "metadata": "{\"compiler\":{\"version\":\"0.8.15+commit.e14f2714\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"p12TokenAddr_\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"name_\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"symbol_\",\"type\":\"string\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"lockTime\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"enum VotingEscrow.OperationType\",\"name\":\"t\",\"type\":\"uint8\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"ts\",\"type\":\"uint256\"}],\"name\":\"Deposit\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"name\":\"Expired\",\"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\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Paused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"prevTotalLockedP12\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"totalLockedP12\",\"type\":\"uint256\"}],\"name\":\"TotalLocked\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Unpaused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"ts\",\"type\":\"uint256\"}],\"name\":\"Withdraw\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"blk\",\"type\":\"uint256\"}],\"name\":\"balanceOfAt\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"checkPoint\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"claimOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"unlockTime\",\"type\":\"uint256\"}],\"name\":\"createLock\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"depositFor\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"epoch\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"expire\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"expired\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"blk\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"maxEpoch\",\"type\":\"uint256\"}],\"name\":\"findBlockEpoch\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"}],\"name\":\"getLastUserSlope\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"increaseAmount\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"unlockTime\",\"type\":\"uint256\"}],\"name\":\"increaseUnlockTime\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"locked\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"amount\",\"type\":\"int256\"},{\"internalType\":\"uint256\",\"name\":\"end\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"}],\"name\":\"lockedEnd\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"p12Token\",\"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\":\"pendingOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"pointHistory\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"bias\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"slope\",\"type\":\"int256\"},{\"internalType\":\"uint256\",\"name\":\"ts\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"blk\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"slopeChanges\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalLockedP12\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"blk\",\"type\":\"uint256\"}],\"name\":\"totalSupplyAt\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"direct\",\"type\":\"bool\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"unpause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"userPointEpoch\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"userPointHistory\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"bias\",\"type\":\"int256\"},{\"internalType\":\"int256\",\"name\":\"slope\",\"type\":\"int256\"},{\"internalType\":\"uint256\",\"name\":\"ts\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"blk\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"idx\",\"type\":\"uint256\"}],\"name\":\"userPointHistoryTs\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"balanceOf(address)\":{\"details\":\"Adheres to the ERC20 `balanceOf` interface for Aragon compatibility\",\"params\":{\"addr\":\"User wallet address\"},\"returns\":{\"_0\":\"User voting power\"}},\"balanceOfAt(address,uint256)\":{\"details\":\"Adheres to MiniMe `balanceOfAt` interface: https://github.com/Giveth/minime\",\"params\":{\"addr\":\"User's wallet address\",\"blk\":\"Block to calculate the voting power at\"},\"returns\":{\"_0\":\"Voting power\"}},\"claimOwnership()\":{\"details\":\"pending owner call this function to claim ownership\"},\"constructor\":{\"params\":{\"name_\":\"Token name\",\"p12TokenAddr_\":\"`ERC20P12` token address\",\"symbol_\":\"Token symbol\"}},\"createLock(uint256,uint256)\":{\"params\":{\"unlockTime\":\"Epoch time when tokens unlock, rounded down to whole weeks\",\"value\":\"Amount to deposit\"}},\"depositFor(address,uint256)\":{\"details\":\"Anyone (even a smart contract) can deposit for someone else, but cannot extend their lockTime and deposit for a brand new user\",\"params\":{\"addr\":\"User's wallet address\",\"value\":\"Amount to add to user's lock \"}},\"findBlockEpoch(uint256,uint256)\":{\"params\":{\"blk\":\"Block to find\",\"maxEpoch\":\"Don't go beyond this epoch\"},\"returns\":{\"_0\":\"Approximate timestamp for block\"}},\"getLastUserSlope(address)\":{\"params\":{\"addr\":\"Address of the user wallet\"},\"returns\":{\"_0\":\"Value of the slope\"}},\"increaseAmount(uint256)\":{\"params\":{\"value\":\"Amount of tokens to deposit and add to the lock\"}},\"increaseUnlockTime(uint256)\":{\"params\":{\"unlockTime\":\"New epoch time for unlocking\"}},\"lockedEnd(address)\":{\"params\":{\"addr\":\"User wallet \"},\"returns\":{\"_0\":\"Epoch time of the lock end\"}},\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"paused()\":{\"details\":\"Returns true if the contract is paused, and false otherwise.\"},\"pendingOwner()\":{\"details\":\"Return the address of the pending owner\"},\"renounceOwnership()\":{\"details\":\"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.\"},\"totalSupply()\":{\"details\":\"Adheres to the ERC20 `totalSupply` interface for Aragon compatibility\",\"returns\":{\"_0\":\"Total voting power\"}},\"totalSupplyAt(uint256)\":{\"params\":{\"blk\":\"Block to calculate the total voting power at\"},\"returns\":{\"_0\":\"Total voting power at `_block`\"}},\"transferOwnership(address,bool)\":{\"details\":\"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner. Note If direct is false, it will set an pending owner and the OwnerShipTransferring only happens when the pending owner claim the ownership\"},\"userPointHistoryTs(address,uint256)\":{\"params\":{\"addr\":\"User wallet address\",\"idx\":\"User epoch number\"},\"returns\":{\"_0\":\"Epoch time of the checkpoint\"}},\"withdraw()\":{\"details\":\"Only possible if the lock has expired or contract expired\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"balanceOf(address)\":{\"notice\":\"Get the current voting power for `msg.sender`\"},\"balanceOfAt(address,uint256)\":{\"notice\":\"Measure voting power of `addr` at block height `_block`\"},\"checkPoint()\":{\"notice\":\"Record global data to checkpoint\"},\"constructor\":{\"notice\":\"Contract constructor\"},\"createLock(uint256,uint256)\":{\"notice\":\"Deposit `value` tokens for `msg.sender` and lock until `unlock_time`\"},\"depositFor(address,uint256)\":{\"notice\":\"Deposit `value` tokens for `addr` and add to the lock\"},\"findBlockEpoch(uint256,uint256)\":{\"notice\":\"Binary search to estimate timestamp for block number\"},\"getLastUserSlope(address)\":{\"notice\":\"Get the most recently recorded rate of voting power decrease for `addr`\"},\"increaseAmount(uint256)\":{\"notice\":\"Deposit `value` additional tokens for `msg.sender` without modifying the unlock time\"},\"increaseUnlockTime(uint256)\":{\"notice\":\"Extend the unlock time for `msg.sender` to `unlock_time`\"},\"lockedEnd(address)\":{\"notice\":\"Get timestamp when `addr`'s lock finishes\"},\"totalSupply()\":{\"notice\":\"Calculate total voting power\"},\"totalSupplyAt(uint256)\":{\"notice\":\"Calculate total voting power at some point in the past\"},\"userPointHistoryTs(address,uint256)\":{\"notice\":\"Get the timestamp for checkpoint `idx` for `addr`\"},\"withdraw()\":{\"notice\":\"Withdraw all tokens for `msg.sender`\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/token/VotingEscrow.sol\":\"VotingEscrow\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts/security/Pausable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../utils/Context.sol\\\";\\n\\n/**\\n * @dev Contract module which allows children to implement an emergency stop\\n * mechanism that can be triggered by an authorized account.\\n *\\n * This module is used through inheritance. It will make available the\\n * modifiers `whenNotPaused` and `whenPaused`, which can be applied to\\n * the functions of your contract. Note that they will not be pausable by\\n * simply including this module, only once the modifiers are put in place.\\n */\\nabstract contract Pausable is Context {\\n /**\\n * @dev Emitted when the pause is triggered by `account`.\\n */\\n event Paused(address account);\\n\\n /**\\n * @dev Emitted when the pause is lifted by `account`.\\n */\\n event Unpaused(address account);\\n\\n bool private _paused;\\n\\n /**\\n * @dev Initializes the contract in unpaused state.\\n */\\n constructor() {\\n _paused = false;\\n }\\n\\n /**\\n * @dev Returns true if the contract is paused, and false otherwise.\\n */\\n function paused() public view virtual returns (bool) {\\n return _paused;\\n }\\n\\n /**\\n * @dev Modifier to make a function callable only when the contract is not paused.\\n *\\n * Requirements:\\n *\\n * - The contract must not be paused.\\n */\\n modifier whenNotPaused() {\\n require(!paused(), \\\"Pausable: paused\\\");\\n _;\\n }\\n\\n /**\\n * @dev Modifier to make a function callable only when the contract is paused.\\n *\\n * Requirements:\\n *\\n * - The contract must be paused.\\n */\\n modifier whenPaused() {\\n require(paused(), \\\"Pausable: not paused\\\");\\n _;\\n }\\n\\n /**\\n * @dev Triggers stopped state.\\n *\\n * Requirements:\\n *\\n * - The contract must not be paused.\\n */\\n function _pause() internal virtual whenNotPaused {\\n _paused = true;\\n emit Paused(_msgSender());\\n }\\n\\n /**\\n * @dev Returns to normal state.\\n *\\n * Requirements:\\n *\\n * - The contract must be paused.\\n */\\n function _unpause() internal virtual whenPaused {\\n _paused = false;\\n emit Unpaused(_msgSender());\\n }\\n}\\n\",\"keccak256\":\"0xe68ed7fb8766ed1e888291f881e36b616037f852b37d96877045319ad298ba87\",\"license\":\"MIT\"},\"@openzeppelin/contracts/security/ReentrancyGuard.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Contract module that helps prevent reentrant calls to a function.\\n *\\n * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier\\n * available, which can be applied to functions to make sure there are no nested\\n * (reentrant) calls to them.\\n *\\n * Note that because there is a single `nonReentrant` guard, functions marked as\\n * `nonReentrant` may not call one another. This can be worked around by making\\n * those functions `private`, and then adding `external` `nonReentrant` entry\\n * points to them.\\n *\\n * TIP: If you would like to learn more about reentrancy and alternative ways\\n * to protect against it, check out our blog post\\n * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].\\n */\\nabstract contract ReentrancyGuard {\\n // Booleans are more expensive than uint256 or any type that takes up a full\\n // word because each write operation emits an extra SLOAD to first read the\\n // slot's contents, replace the bits taken up by the boolean, and then write\\n // back. This is the compiler's defense against contract upgrades and\\n // pointer aliasing, and it cannot be disabled.\\n\\n // The values being non-zero value makes deployment a bit more expensive,\\n // but in exchange the refund on every call to nonReentrant will be lower in\\n // amount. Since refunds are capped to a percentage of the total\\n // transaction's gas, it is best to keep them low in cases like this one, to\\n // increase the likelihood of the full refund coming into effect.\\n uint256 private constant _NOT_ENTERED = 1;\\n uint256 private constant _ENTERED = 2;\\n\\n uint256 private _status;\\n\\n constructor() {\\n _status = _NOT_ENTERED;\\n }\\n\\n /**\\n * @dev Prevents a contract from calling itself, directly or indirectly.\\n * Calling a `nonReentrant` function from another `nonReentrant`\\n * function is not supported. It is possible to prevent this from happening\\n * by making the `nonReentrant` function external, and making it call a\\n * `private` function that does the actual work.\\n */\\n modifier nonReentrant() {\\n // On the first call to nonReentrant, _notEntered will be true\\n require(_status != _ENTERED, \\\"ReentrancyGuard: reentrant call\\\");\\n\\n // Any calls to nonReentrant after this point will fail\\n _status = _ENTERED;\\n\\n _;\\n\\n // By storing the original value once again, a refund is triggered (see\\n // https://eips.ethereum.org/EIPS/eip-2200)\\n _status = _NOT_ENTERED;\\n }\\n}\\n\",\"keccak256\":\"0x0e9621f60b2faabe65549f7ed0f24e8853a45c1b7990d47e8160e523683f3935\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/IERC20.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)\\n\\npragma solidity ^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 `to`.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transfer(address to, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Returns the remaining number of tokens that `spender` will be\\n * allowed to spend on behalf of `owner` through {transferFrom}. This is\\n * zero by default.\\n *\\n * This value changes when {approve} or {transferFrom} are called.\\n */\\n function allowance(address owner, address spender) external view returns (uint256);\\n\\n /**\\n * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * IMPORTANT: Beware that changing an allowance with this method brings the risk\\n * that someone may use both the old and the new allowance by unfortunate\\n * transaction ordering. One possible solution to mitigate this race\\n * condition is to first reduce the spender's allowance to 0 and set the\\n * desired value afterwards:\\n * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\\n *\\n * Emits an {Approval} event.\\n */\\n function approve(address spender, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Moves `amount` tokens from `from` to `to` 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(\\n address from,\\n address to,\\n uint256 amount\\n ) external returns (bool);\\n\\n /**\\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\\n * another (`to`).\\n *\\n * Note that `value` may be zero.\\n */\\n event Transfer(address indexed from, address indexed to, uint256 value);\\n\\n /**\\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\\n * a call to {approve}. `value` is the new allowance.\\n */\\n event Approval(address indexed owner, address indexed spender, uint256 value);\\n}\\n\",\"keccak256\":\"0xbbc8ac883ac3c0078ce5ad3e288fbb3ffcc8a30c3a98c0fda0114d64fc44fca2\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../IERC20.sol\\\";\\nimport \\\"../../../utils/Address.sol\\\";\\n\\n/**\\n * @title SafeERC20\\n * @dev Wrappers around ERC20 operations that throw on failure (when the token\\n * contract returns false). Tokens that return no value (and instead revert or\\n * throw on failure) are also supported, non-reverting calls are assumed to be\\n * successful.\\n * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,\\n * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.\\n */\\nlibrary SafeERC20 {\\n using Address for address;\\n\\n function safeTransfer(\\n IERC20 token,\\n address to,\\n uint256 value\\n ) internal {\\n _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));\\n }\\n\\n function safeTransferFrom(\\n IERC20 token,\\n address from,\\n address to,\\n uint256 value\\n ) internal {\\n _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));\\n }\\n\\n /**\\n * @dev Deprecated. This function has issues similar to the ones found in\\n * {IERC20-approve}, and its usage is discouraged.\\n *\\n * Whenever possible, use {safeIncreaseAllowance} and\\n * {safeDecreaseAllowance} instead.\\n */\\n function safeApprove(\\n IERC20 token,\\n address spender,\\n uint256 value\\n ) internal {\\n // safeApprove should only be called when setting an initial allowance,\\n // or when resetting it to zero. To increase and decrease it, use\\n // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'\\n require(\\n (value == 0) || (token.allowance(address(this), spender) == 0),\\n \\\"SafeERC20: approve from non-zero to non-zero allowance\\\"\\n );\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));\\n }\\n\\n function safeIncreaseAllowance(\\n IERC20 token,\\n address spender,\\n uint256 value\\n ) internal {\\n uint256 newAllowance = token.allowance(address(this), spender) + value;\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));\\n }\\n\\n function safeDecreaseAllowance(\\n IERC20 token,\\n address spender,\\n uint256 value\\n ) internal {\\n unchecked {\\n uint256 oldAllowance = token.allowance(address(this), spender);\\n require(oldAllowance >= value, \\\"SafeERC20: decreased allowance below zero\\\");\\n uint256 newAllowance = oldAllowance - value;\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));\\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).functionCall(data, \\\"SafeERC20: low-level call failed\\\");\\n if (returndata.length > 0) {\\n // Return data is optional\\n require(abi.decode(returndata, (bool)), \\\"SafeERC20: ERC20 operation did not succeed\\\");\\n }\\n }\\n}\\n\",\"keccak256\":\"0xc3d946432c0ddbb1f846a0d3985be71299df331b91d06732152117f62f0be2b5\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/Address.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\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 * [IMPORTANT]\\n * ====\\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\\n *\\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n * constructor.\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize/address.code.length, which returns 0\\n // for contracts in construction, since the code is only stored at the end\\n // of the constructor execution.\\n\\n return account.code.length > 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 (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(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) 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(\\n address target,\\n bytes memory data,\\n uint256 value\\n ) 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(\\n address target,\\n bytes memory data,\\n uint256 value,\\n string memory errorMessage\\n ) 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 (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(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n require(isContract(target), \\\"Address: static call to non-contract\\\");\\n\\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(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(isContract(target), \\\"Address: delegate call to non-contract\\\");\\n\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResult(success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the\\n * revert reason using the provided one.\\n *\\n * _Available since v4.3._\\n */\\n function verifyCallResult(\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal 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 assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0x2ccf9d2313a313d41a791505f2b5abfdc62191b5d4334f7f7a82691c088a1c87\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n}\\n\",\"keccak256\":\"0xe2e337e6dde9ef6b680e07338c493ebea1b5fd09b43424112868e9cc1706bca7\",\"license\":\"MIT\"},\"contracts/access/SafeOwnable.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\n// Refer to https://github.com/boringcrypto/BoringSolidity/blob/master/contracts/BoringOwnable.sol and https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol\\n\\npragma solidity 0.8.15;\\n\\nimport '@openzeppelin/contracts/utils/Context.sol';\\n\\ncontract SafeOwnable is Context {\\n address private _owner;\\n address private _pendingOwner;\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the deployer as the initial owner.\\n */\\n constructor() {\\n _transferOwnership(_msgSender());\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Return the address of the pending owner\\n */\\n function pendingOwner() public view virtual returns (address) {\\n return _pendingOwner;\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n require(owner() == _msgSender(), 'SafeOwnable: caller not owner');\\n _;\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions anymore. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby removing any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n * Note If direct is false, it will set an pending owner and the OwnerShipTransferring\\n * only happens when the pending owner claim the ownership\\n */\\n function transferOwnership(address newOwner, bool direct) public virtual onlyOwner {\\n require(newOwner != address(0), 'SafeOwnable: new owner is 0');\\n\\n if (direct) {\\n _transferOwnership(newOwner);\\n } else {\\n _transferPendingOwnership(newOwner);\\n }\\n }\\n\\n /**\\n * @dev pending owner call this function to claim ownership\\n */\\n function claimOwnership() public {\\n require(msg.sender == _pendingOwner, 'SafeOwnable: caller != pending');\\n\\n _claimOwnership();\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n address oldOwner = _owner;\\n _owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n\\n /**\\n * @dev set the pending owner address\\n * Internal function without access restriction.\\n */\\n function _transferPendingOwnership(address newOwner) internal virtual {\\n _pendingOwner = newOwner;\\n }\\n\\n /**\\n * @dev claim ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _claimOwnership() internal virtual {\\n address oldOwner = _owner;\\n emit OwnershipTransferred(oldOwner, _pendingOwner);\\n\\n _owner = _pendingOwner;\\n _pendingOwner = address(0);\\n }\\n}\\n\",\"keccak256\":\"0x79a077ba2b45d1a3b01f1b5b4537b1885deb03515c10dab1fe4d16536d4bf91b\",\"license\":\"GPL-3.0-only\"},\"contracts/token/VotingEscrow.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\npragma solidity 0.8.15;\\n\\nimport '@openzeppelin/contracts/security/ReentrancyGuard.sol';\\nimport '@openzeppelin/contracts/token/ERC20/IERC20.sol';\\nimport '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol';\\nimport '@openzeppelin/contracts/security/Pausable.sol';\\n\\nimport '../access/SafeOwnable.sol';\\nimport './interfaces/IVotingEscrow.sol';\\n\\ncontract VotingEscrow is ReentrancyGuard, SafeOwnable, Pausable, IVotingEscrow {\\n using SafeERC20 for IERC20;\\n // all future times are rounded by week\\n uint256 constant WEEK = 7 * 86400;\\n // 4 years\\n uint256 constant MAXTIME = 4 * 365 * 86400;\\n uint256 constant MULTIPLIER = 10**18;\\n\\n address public p12Token;\\n // total amount of locked P12token\\n uint256 public totalLockedP12;\\n mapping(address => LockedBalance) public locked;\\n uint256 public epoch;\\n bool public expired; // true if the contract end\\n\\n mapping(uint256 => Point) public pointHistory;\\n mapping(address => mapping(uint256 => Point)) public userPointHistory;\\n mapping(address => uint256) public userPointEpoch;\\n mapping(uint256 => int256) public slopeChanges;\\n\\n string public name;\\n string public symbol;\\n uint256 public constant decimals = 18;\\n\\n enum OperationType {\\n DEPOSIT_FOR_TYPE,\\n CREATE_LOCK_TYPE,\\n INCREASE_LOCK_AMOUNT,\\n INCREASE_UNLOCK_TIME\\n }\\n\\n event Expired(address addr, uint256 timestamp);\\n event Deposit(address indexed provider, uint256 value, uint256 indexed lockTime, OperationType t, uint256 ts);\\n event Withdraw(address indexed provider, uint256 value, uint256 ts);\\n event TotalLocked(uint256 prevTotalLockedP12, uint256 totalLockedP12);\\n\\n struct Point {\\n int256 bias;\\n int256 slope;\\n uint256 ts;\\n uint256 blk;\\n }\\n\\n struct LockedBalance {\\n int256 amount;\\n uint256 end;\\n }\\n\\n struct CheckPointState {\\n int256 oldDslope;\\n int256 newDslope;\\n uint256 _epoch;\\n }\\n\\n /** \\n @notice Contract constructor\\n @param p12TokenAddr_ `ERC20P12` token address\\n @param name_ Token name\\n @param symbol_ Token symbol\\n */\\n constructor(\\n address p12TokenAddr_,\\n string memory name_,\\n string memory symbol_\\n ) {\\n require(p12TokenAddr_ != address(0), 'VotingEscrow: token cannot be 0');\\n name = name_;\\n symbol = symbol_;\\n p12Token = p12TokenAddr_;\\n pointHistory[0].blk = block.number;\\n pointHistory[0].ts = block.timestamp;\\n }\\n\\n function expire() external onlyOwner contractNotExpired {\\n expired = true;\\n emit Expired(msg.sender, block.timestamp);\\n }\\n\\n /** \\n @notice Get the most recently recorded rate of voting power decrease for `addr`\\n @param addr Address of the user wallet\\n @return Value of the slope\\n */\\n\\n function getLastUserSlope(address addr) external view returns (int256) {\\n uint256 uEpoch = userPointEpoch[addr];\\n return userPointHistory[addr][uEpoch].slope;\\n }\\n\\n /** \\n @notice Get the timestamp for checkpoint `idx` for `addr`\\n @param addr User wallet address\\n @param idx User epoch number\\n @return Epoch time of the checkpoint\\n */\\n function userPointHistoryTs(address addr, uint256 idx) external view returns (uint256) {\\n return userPointHistory[addr][idx].ts;\\n }\\n\\n /**\\n @notice Get timestamp when `addr`'s lock finishes\\n @param addr User wallet \\n @return Epoch time of the lock end\\n */\\n function lockedEnd(address addr) external view returns (uint256) {\\n return locked[addr].end;\\n }\\n\\n /**\\n @notice Record global data to checkpoint\\n */\\n function checkPoint() external {\\n _checkPoint(address(0), LockedBalance({ amount: 0, end: 0 }), LockedBalance({ amount: 0, end: 0 }));\\n }\\n\\n /**\\n @notice Deposit `value` tokens for `addr` and add to the lock\\n @dev Anyone (even a smart contract) can deposit for someone else, but\\n cannot extend their lockTime and deposit for a brand new user\\n @param addr User's wallet address\\n @param value Amount to add to user's lock \\n */\\n function depositFor(address addr, uint256 value) external nonReentrant whenNotPaused contractNotExpired {\\n LockedBalance memory _locked = locked[addr];\\n require(value > 0, 'VotingEscrow: invalid value');\\n require(_locked.amount > 0, 'VotingEscrow: no existing lock');\\n require(_locked.end > block.timestamp, 'VotingEscrow: lock expired');\\n _depositFor(addr, value, 0, locked[addr], OperationType.DEPOSIT_FOR_TYPE);\\n }\\n\\n /** \\n @notice Deposit `value` tokens for `msg.sender` and lock until `unlock_time`\\n @param value Amount to deposit\\n @param unlockTime Epoch time when tokens unlock, rounded down to whole weeks\\n */\\n function createLock(uint256 value, uint256 unlockTime) external nonReentrant whenNotPaused contractNotExpired {\\n //lockTime is rounded down to weeks\\n uint256 _unlockTime = (unlockTime / WEEK) * WEEK;\\n LockedBalance memory _locked = locked[msg.sender];\\n require(value > 0, 'VotingEscrow: invalid value');\\n require(_locked.amount == 0, 'VotingEscrow: old tokens locked');\\n require(_unlockTime > block.timestamp, 'VotingEscrow: lock later');\\n require(_unlockTime <= block.timestamp + MAXTIME, 'VotingEscrow: exceed cap period');\\n _depositFor(msg.sender, value, _unlockTime, _locked, OperationType.CREATE_LOCK_TYPE);\\n }\\n\\n /**\\n @notice Deposit `value` additional tokens for `msg.sender`\\n without modifying the unlock time\\n @param value Amount of tokens to deposit and add to the lock\\n */\\n function increaseAmount(uint256 value) external nonReentrant whenNotPaused contractNotExpired {\\n LockedBalance memory _locked = locked[msg.sender];\\n require(value > 0, 'VotingEscrow: invalid value');\\n require(_locked.amount > 0, 'VotingEscrow: no existing lock');\\n require(_locked.end > block.timestamp, 'VotingEscrow: lock expired');\\n _depositFor(msg.sender, value, 0, _locked, OperationType.INCREASE_LOCK_AMOUNT);\\n }\\n\\n /** \\n @notice Extend the unlock time for `msg.sender` to `unlock_time`\\n @param unlockTime New epoch time for unlocking\\n */\\n function increaseUnlockTime(uint256 unlockTime) external nonReentrant whenNotPaused contractNotExpired {\\n LockedBalance memory _locked = locked[msg.sender];\\n uint256 _unlockTime = (unlockTime / WEEK) * WEEK;\\n require(_locked.end > block.timestamp, 'VotingEscrow: Lock expired');\\n require(_locked.amount > 0, 'VotingEscrow: Nothing is locked');\\n require(_unlockTime > _locked.end, 'VotingEscrow: invalid unlockTime');\\n require(_unlockTime <= block.timestamp + MAXTIME, 'VotingEscrow: exceed cap period');\\n _depositFor(msg.sender, 0, _unlockTime, _locked, OperationType.INCREASE_LOCK_AMOUNT);\\n }\\n\\n /** \\n @notice Withdraw all tokens for `msg.sender`\\n @dev Only possible if the lock has expired or contract expired\\n */\\n function withdraw() external nonReentrant whenNotPaused {\\n LockedBalance memory _locked = locked[msg.sender];\\n require(_locked.amount > 0, 'VotingEscrow: no locked token');\\n // Check if the contract is expired or unlocked\\n require(block.timestamp >= _locked.end || expired, 'VotingEscrow: condition not met');\\n uint256 value = uint256(_locked.amount);\\n LockedBalance memory oldLocked = _locked;\\n _locked.end = 0;\\n _locked.amount = 0;\\n locked[msg.sender] = _locked;\\n uint256 totalLockedP12Before = totalLockedP12;\\n totalLockedP12 = totalLockedP12Before - value;\\n\\n // old_locked can have either expired <= timestamp or zero end\\n // _locked has only 0 end\\n // Both can have >= 0 amount\\n\\n _checkPoint(msg.sender, oldLocked, _locked);\\n IERC20(p12Token).safeTransfer(msg.sender, value);\\n\\n emit Withdraw(msg.sender, value, block.timestamp);\\n emit TotalLocked(totalLockedP12Before, totalLockedP12Before - value);\\n }\\n\\n /** \\n @notice Get the current voting power for `msg.sender`\\n @dev Adheres to the ERC20 `balanceOf` interface for Aragon compatibility\\n @param addr User wallet address\\n @return User voting power\\n */\\n function balanceOf(address addr) external view returns (int256) {\\n uint256 _epoch = userPointEpoch[addr];\\n if (_epoch == 0) {\\n return 0;\\n } else {\\n Point memory lastPoint = userPointHistory[addr][_epoch];\\n lastPoint.bias -= lastPoint.slope * int256(block.timestamp - lastPoint.ts);\\n if (lastPoint.bias < 0) {\\n lastPoint.bias = 0;\\n }\\n return lastPoint.bias;\\n }\\n }\\n\\n /** \\n @notice Measure voting power of `addr` at block height `_block`\\n @dev Adheres to MiniMe `balanceOfAt` interface: https://github.com/Giveth/minime\\n @param addr User's wallet address\\n @param blk Block to calculate the voting power at\\n @return Voting power\\n */\\n function balanceOfAt(address addr, uint256 blk) external view returns (int256) {\\n require(blk <= block.number, 'VotingEscrow: invalid block');\\n // Binary search\\n uint256 _min = 0;\\n uint256 _max = userPointEpoch[addr];\\n for (uint256 i = 1; i <= 128; i++) {\\n if (_min >= _max) {\\n break;\\n }\\n uint256 _mid = (_min + _max + 1) / 2;\\n if (userPointHistory[addr][_mid].blk <= blk) {\\n _min = _mid;\\n } else {\\n _max = _mid - 1;\\n }\\n }\\n Point memory uPoint = userPointHistory[addr][_min];\\n uint256 maxEpoch = epoch;\\n uint256 _epoch = findBlockEpoch(blk, maxEpoch);\\n Point memory point0 = pointHistory[_epoch];\\n uint256 dBlock = 0;\\n uint256 dt = 0;\\n if (_epoch < maxEpoch) {\\n Point memory point1 = pointHistory[_epoch + 1];\\n dBlock = point1.blk - point0.blk;\\n dt = point1.ts - point0.ts;\\n } else {\\n dBlock = block.number - point0.blk;\\n dt = block.timestamp - point0.ts;\\n }\\n uint256 blockTime = point0.ts;\\n if (dBlock != 0) {\\n blockTime += (dt * (blk - point0.blk)) / dBlock;\\n }\\n uPoint.bias -= uPoint.slope * int256(blockTime - uPoint.ts);\\n if (uPoint.bias >= 0) {\\n return uPoint.bias;\\n } else {\\n return 0;\\n }\\n }\\n\\n /**\\n \\n @notice Calculate total voting power\\n @dev Adheres to the ERC20 `totalSupply` interface for Aragon compatibility\\n @return Total voting power\\n \\n */\\n\\n function totalSupply() external view returns (uint256) {\\n uint256 _epoch = epoch;\\n Point memory lastPoint = pointHistory[_epoch];\\n return supplyAt(lastPoint, block.timestamp);\\n }\\n\\n /** \\n @notice Calculate total voting power at some point in the past\\n @param blk Block to calculate the total voting power at\\n @return Total voting power at `_block`\\n */\\n function totalSupplyAt(uint256 blk) external view returns (uint256) {\\n require(blk <= block.number, 'VotingEscrow: invalid block');\\n uint256 _epoch = epoch;\\n uint256 targetEpoch = findBlockEpoch(blk, _epoch);\\n\\n Point memory point = pointHistory[targetEpoch];\\n uint256 dt = 0;\\n if (targetEpoch < _epoch) {\\n Point memory pointNext = pointHistory[targetEpoch + 1];\\n if (point.blk != pointNext.blk) {\\n dt = ((blk - point.blk) * (pointNext.ts - point.ts)) / (pointNext.blk - point.blk);\\n }\\n } else {\\n if (point.blk != block.number) {\\n dt = ((blk - point.blk) * (block.timestamp - point.ts)) / (block.number - point.blk);\\n }\\n }\\n // Now dt contains info on how far are we beyond point\\n return supplyAt(point, point.ts + dt);\\n }\\n\\n //------------------public---------------\\n\\n function pause() public onlyOwner {\\n _pause();\\n }\\n\\n function unpause() public onlyOwner {\\n _unpause();\\n }\\n\\n /** \\n @notice Binary search to estimate timestamp for block number\\n @param blk Block to find\\n @param maxEpoch Don't go beyond this epoch\\n @return Approximate timestamp for block\\n */\\n\\n function findBlockEpoch(uint256 blk, uint256 maxEpoch) public view returns (uint256) {\\n uint256 _min = 0;\\n uint256 _max = maxEpoch;\\n for (uint256 i = 0; i <= 128; i++) {\\n if (_min >= _max) {\\n break;\\n }\\n uint256 _mid = (_min + _max + 1) / 2;\\n if (pointHistory[_mid].blk <= blk) {\\n _min = _mid;\\n } else {\\n _max = _mid - 1;\\n }\\n }\\n return _min;\\n }\\n\\n // -------------internal------------------\\n\\n /**\\n @notice Record global and per-user data to checkpoint\\n @param addr User's wallet address. No user checkpoint if 0x0\\n @param oldLocked Previous locked amount / end lock time for the user\\n @param newLocked New locked amount / end lock time for the user\\n */\\n\\n function _checkPoint(\\n address addr,\\n LockedBalance memory oldLocked,\\n LockedBalance memory newLocked\\n ) internal {\\n Point memory uOld;\\n Point memory uNew;\\n\\n CheckPointState memory cpState;\\n cpState.oldDslope = 0;\\n cpState.newDslope = 0;\\n cpState._epoch = epoch;\\n if (addr != address(0)) {\\n // Calculate slopes and biases\\n // Kept at zero when they have to\\n if (oldLocked.end > block.timestamp && oldLocked.amount > 0) {\\n uOld.slope = oldLocked.amount / int256(MAXTIME);\\n uOld.bias = uOld.slope * int256(oldLocked.end - block.timestamp);\\n }\\n if (newLocked.end > block.timestamp && newLocked.amount > 0) {\\n uNew.slope = newLocked.amount / int256(MAXTIME);\\n uNew.bias = uNew.slope * int256(newLocked.end - block.timestamp);\\n }\\n // Read values of scheduled changes in the slope\\n // old_locked.end can be in the past and in the future\\n // new_locked.end can ONLY by in the FUTURE unless everything expired: than zeros\\n\\n cpState.oldDslope = slopeChanges[oldLocked.end];\\n if (newLocked.end != 0) {\\n if (newLocked.end == oldLocked.end) {\\n cpState.newDslope = cpState.oldDslope;\\n } else {\\n cpState.newDslope = slopeChanges[newLocked.end];\\n }\\n }\\n }\\n Point memory lastPoint = Point(0, 0, block.timestamp, block.number);\\n if (cpState._epoch > 0) {\\n lastPoint = pointHistory[cpState._epoch];\\n }\\n uint256 lastCheckPoint = lastPoint.ts;\\n // initial_last_point is used for extrapolation to calculate block number\\n // (approximately, for *At methods) and save them\\n // as we cannot figure that out exactly from inside the contract\\n\\n Point memory initialLastPoint = lastPoint;\\n uint256 blockSlope = 0;\\n if (block.timestamp > lastPoint.ts) {\\n blockSlope = (MULTIPLIER * (block.number - lastPoint.blk)) / (block.timestamp - lastPoint.ts);\\n }\\n // If last point is already recorded in this block, slope=0\\n // But that's ok b/c we know the block in such case\\n\\n // Go over weeks to fill history and calculate what the current point is\\n uint256 ti = (lastCheckPoint / WEEK) * WEEK;\\n\\n for (uint24 i = 0; i < 255; i++) {\\n ti += WEEK;\\n int256 dSlope = 0;\\n if (ti > block.timestamp) {\\n ti = block.timestamp;\\n } else {\\n dSlope = slopeChanges[ti];\\n }\\n\\n lastPoint.bias -= lastPoint.slope * int256(ti - lastCheckPoint);\\n lastPoint.slope += dSlope;\\n if (lastPoint.bias < 0) {\\n lastPoint.bias = 0;\\n }\\n if (lastPoint.slope < 0) {\\n lastPoint.slope = 0;\\n }\\n lastCheckPoint = ti;\\n lastPoint.ts = ti;\\n lastPoint.blk = initialLastPoint.blk + (blockSlope * (ti - initialLastPoint.ts)) / MULTIPLIER;\\n cpState._epoch += 1;\\n if (ti == block.timestamp) {\\n lastPoint.blk = block.number;\\n break;\\n } else {\\n pointHistory[cpState._epoch] = lastPoint;\\n }\\n }\\n epoch = cpState._epoch;\\n // Now point_history is filled until t=now\\n if (addr != address(0)) {\\n // CalculateIf last point was in this block, the slope change has been applied already\\n // But in such case we have 0 slope(s)\\n\\n lastPoint.slope += (uNew.slope - uOld.slope);\\n lastPoint.bias += (uNew.bias - uOld.bias);\\n if (lastPoint.slope < 0) {\\n lastPoint.slope = 0;\\n }\\n if (lastPoint.bias < 0) {\\n lastPoint.bias = 0;\\n }\\n }\\n // Record the changed point into history\\n pointHistory[cpState._epoch] = lastPoint;\\n if (addr != address(0)) {\\n // Schedule the slope changes (slope is going down)\\n // We subtract new_user_slope from [new_locked.end]\\n // and add old_user_slope to [old_locked.end]\\n if (oldLocked.end > block.timestamp) {\\n cpState.oldDslope += uOld.slope;\\n if (newLocked.end == oldLocked.end) {\\n cpState.oldDslope -= uNew.slope;\\n }\\n slopeChanges[oldLocked.end] = cpState.oldDslope;\\n }\\n if (newLocked.end > block.timestamp) {\\n if (newLocked.end > oldLocked.end) {\\n cpState.newDslope -= uNew.slope;\\n slopeChanges[newLocked.end] = cpState.newDslope;\\n }\\n }\\n\\n // Now handle user history\\n uint256 userEpoch = userPointEpoch[addr] + 1;\\n userPointEpoch[addr] = userEpoch;\\n uNew.ts = block.timestamp;\\n uNew.blk = block.number;\\n userPointHistory[addr][userEpoch] = uNew;\\n }\\n }\\n\\n /**\\n @notice Deposit and lock tokens for a user\\n @param addr User's wallet address\\n @param value Amount to deposit\\n @param unlockTime New time when to unlock the tokens, or 0 if unchanged\\n @param lockedBalance Previous locked amount / timestamp\\n @param t Operation type \\n */\\n\\n function _depositFor(\\n address addr,\\n uint256 value,\\n uint256 unlockTime,\\n LockedBalance memory lockedBalance,\\n OperationType t\\n ) internal {\\n LockedBalance memory _locked = lockedBalance;\\n uint256 totalLockedP12Before = totalLockedP12;\\n totalLockedP12 = totalLockedP12Before + value;\\n LockedBalance memory oldLocked = LockedBalance({ amount: _locked.amount, end: _locked.end });\\n // Adding to existing lock, or if a lock is expired - creating a new one\\n _locked.amount += int256(value);\\n if (unlockTime != 0) {\\n _locked.end = unlockTime;\\n }\\n locked[addr] = _locked;\\n // Possibilities:\\n // Both old_locked.end could be current or expired (>/< block.timestamp)\\n // value == 0 (extend lock) or value > 0 (add to lock or extend lock)\\n // _locked.end > block.timestamp (always)\\n\\n _checkPoint(addr, oldLocked, _locked);\\n if (value != 0) {\\n IERC20(p12Token).transferFrom(addr, address(this), value);\\n }\\n emit Deposit(addr, value, _locked.end, t, block.timestamp);\\n emit TotalLocked(totalLockedP12Before, totalLockedP12Before + value);\\n }\\n\\n /** \\n @notice Calculate total voting power at some point in the past\\n @param point The point (bias/slope) to start search from\\n @param t Time to calculate the total voting power at\\n @return Total voting power at that time\\n */\\n function supplyAt(Point memory point, uint256 t) internal view returns (uint256) {\\n Point memory lastPoint = point;\\n uint256 ti = (lastPoint.ts / WEEK) * WEEK;\\n for (uint24 i = 0; i < 255; i++) {\\n ti += WEEK;\\n int256 dSlope = 0;\\n if (ti > t) {\\n ti = t;\\n } else {\\n dSlope = slopeChanges[ti];\\n }\\n lastPoint.bias -= lastPoint.slope * int256(ti - lastPoint.ts);\\n if (ti == t) {\\n break;\\n }\\n lastPoint.slope += dSlope;\\n lastPoint.ts = ti;\\n }\\n if (lastPoint.bias < 0) {\\n lastPoint.bias = 0;\\n }\\n return uint256(lastPoint.bias);\\n }\\n\\n //------------modifier-------------\\n\\n modifier contractNotExpired() {\\n require(!expired, 'VotingEscrow: contract stopped');\\n _;\\n }\\n}\\n\",\"keccak256\":\"0x4826dfe480159b909dab8d2b0de35a25ab85fe7ed49d258f13431005c5cb6d3e\",\"license\":\"GPL-3.0-only\"},\"contracts/token/interfaces/IVotingEscrow.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\n\\npragma solidity 0.8.15;\\n\\ninterface IVotingEscrow {\\n function getLastUserSlope(address addr) external returns (int256);\\n\\n function lockedEnd(address addr) external returns (uint256);\\n}\\n\",\"keccak256\":\"0x5b86f26484c0360029da65eb81b461fb0ec612c4ff3290dc82f5396b5733c6b9\",\"license\":\"GPL-3.0-only\"}},\"version\":1}", + "bytecode": "0x60806040523480156200001157600080fd5b5060405162002e8138038062002e81833981016040819052620000349162000261565b6001600055620000443362000142565b6002805460ff60a01b191690556001600160a01b038316620000ac5760405162461bcd60e51b815260206004820152601f60248201527f566f74696e67457363726f773a20746f6b656e2063616e6e6f74206265203000604482015260640160405180910390fd5b600c620000ba83826200037a565b50600d620000c982826200037a565b5050600380546001600160a01b0319166001600160a01b03939093169290921790915550600080526008602052437f5eff886ea0ce6ca488a3d6e336d6c0f75f46d19b42c06ce5ee98e42c96d256ca55427f5eff886ea0ce6ca488a3d6e336d6c0f75f46d19b42c06ce5ee98e42c96d256c95562000446565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620001bc57600080fd5b81516001600160401b0380821115620001d957620001d962000194565b604051601f8301601f19908116603f0116810190828211818310171562000204576200020462000194565b816040528381526020925086838588010111156200022157600080fd5b600091505b8382101562000245578582018301518183018401529082019062000226565b83821115620002575760008385830101525b9695505050505050565b6000806000606084860312156200027757600080fd5b83516001600160a01b03811681146200028f57600080fd5b60208501519093506001600160401b0380821115620002ad57600080fd5b620002bb87838801620001aa565b93506040860151915080821115620002d257600080fd5b50620002e186828701620001aa565b9150509250925092565b600181811c908216806200030057607f821691505b6020821081036200032157634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200037557600081815260208120601f850160051c81016020861015620003505750805b601f850160051c820191505b8181101562000371578281556001016200035c565b5050505b505050565b81516001600160401b0381111562000396576200039662000194565b620003ae81620003a78454620002eb565b8462000327565b602080601f831160018114620003e65760008415620003cd5750858301515b600019600386901b1c1916600185901b17855562000371565b600085815260208120601f198616915b828110156200041757888601518255948401946001909101908401620003f6565b5085821015620004365787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b612a2b80620004566000396000f3fe608060405234801561001057600080fd5b50600436106102115760003560e01c806379599f9611610125578063981b24d0116100ad578063cff805ab1161007c578063cff805ab146104d1578063e30c3978146104d9578063eac6a667146104ea578063f3a6d60814610523578063f52a36f71461056257600080fd5b8063981b24d01461045c578063b242e5341461046f578063b52c05fe14610482578063cbf9fe5f1461049557600080fd5b80638ad4c447116100f45780638ad4c447146103da5780638b7c37a31461040f5780638da5cb5b1461043a578063900cf0cf1461044b57806395d89b411461045457600080fd5b806379599f96146103975780637c616fe61461039f57806381fc83bb146103b25780638456cb59146103d257600080fd5b80633ccfd60b116101a85780634e71e0c8116101775780634e71e0c81461034f5780634ee2cd7e146103575780635c975abb1461036a57806370a082311461037c578063715018a61461038f57600080fd5b80633ccfd60b146102f65780633f4ba83a146102fe5780634c2067c7146103065780634deafcae1461032357600080fd5b8063313ce567116101e4578063313ce567146102725780633323bac91461027a57806334d901a41461028357806338dbff66146102e357600080fd5b806306fdde031461021657806315456eba1461023457806318160ddd146102495780632f4f21e21461025f575b600080fd5b61021e610582565b60405161022b9190612539565b60405180910390f35b61024761024236600461256c565b610610565b005b61025161078d565b60405190815260200161022b565b61024761026d3660046125a1565b6107e2565b610251601281565b61025160045481565b6102c36102913660046125a1565b600960209081526000928352604080842090915290825290208054600182015460028301546003909301549192909184565b60408051948552602085019390935291830152606082015260800161022b565b6102516102f13660046125cb565b610992565b610247610a1b565b610247610c2c565b6007546103139060ff1681565b604051901515815260200161022b565b6102516103313660046125ed565b6001600160a01b031660009081526005602052604090206001015490565b610247610c60565b6102516103653660046125a1565b610cc2565b600254600160a01b900460ff16610313565b61025161038a3660046125ed565b610fa9565b61024761106b565b61024761109f565b6102476103ad36600461256c565b611134565b6102516103c03660046125ed565b600a6020526000908152604090205481565b61024761134f565b6102c36103e836600461256c565b60086020526000908152604090208054600182015460028301546003909301549192909184565b600354610422906001600160a01b031681565b6040516001600160a01b03909116815260200161022b565b6001546001600160a01b0316610422565b61025160065481565b61021e611381565b61025161046a36600461256c565b61138e565b61024761047d366004612619565b611560565b6102476104903660046125cb565b611612565b6104bc6104a33660046125ed565b6005602052600090815260409020805460019091015482565b6040805192835260208301919091520161022b565b6102476117fb565b6002546001600160a01b0316610422565b6102516104f83660046125a1565b6001600160a01b03919091166000908152600960209081526040808320938352929052206002015490565b6102516105313660046125ed565b6001600160a01b03166000908152600a60209081526040808320546009835281842090845290915290206001015490565b61025161057036600461256c565b600b6020526000908152604090205481565b600c805461058f90612650565b80601f01602080910402602001604051908101604052809291908181526020018280546105bb90612650565b80156106085780601f106105dd57610100808354040283529160200191610608565b820191906000526020600020905b8154815290600101906020018083116105eb57829003601f168201915b505050505081565b60026000540361063b5760405162461bcd60e51b815260040161063290612684565b60405180910390fd5b6002600081905554600160a01b900460ff161561066a5760405162461bcd60e51b8152600401610632906126bb565b60075460ff161561068d5760405162461bcd60e51b8152600401610632906126e5565b336000908152600560209081526040918290208251808401909352805483526001015490820152816106d15760405162461bcd60e51b81526004016106329061271c565b80516000126107225760405162461bcd60e51b815260206004820152601e60248201527f566f74696e67457363726f773a206e6f206578697374696e67206c6f636b00006044820152606401610632565b428160200151116107755760405162461bcd60e51b815260206004820152601a60248201527f566f74696e67457363726f773a206c6f636b20657870697265640000000000006044820152606401610632565b61078433836000846002611833565b50506001600055565b60065460008181526008602090815260408083208151608081018352815481526001820154938101939093526002810154918301919091526003015460608201529091906107db81426119d0565b9250505090565b6002600054036108045760405162461bcd60e51b815260040161063290612684565b6002600081905554600160a01b900460ff16156108335760405162461bcd60e51b8152600401610632906126bb565b60075460ff16156108565760405162461bcd60e51b8152600401610632906126e5565b6001600160a01b0382166000908152600560209081526040918290208251808401909352805483526001015490820152816108a35760405162461bcd60e51b81526004016106329061271c565b80516000126108f45760405162461bcd60e51b815260206004820152601e60248201527f566f74696e67457363726f773a206e6f206578697374696e67206c6f636b00006044820152606401610632565b428160200151116109475760405162461bcd60e51b815260206004820152601a60248201527f566f74696e67457363726f773a206c6f636b20657870697265640000000000006044820152606401610632565b6001600160a01b0383166000908152600560209081526040808320815180830190925280548252600101549181019190915261098891859185919081611833565b5050600160005550565b60008082815b60808111610a0f5781831015610a0f57600060026109b68486612769565b6109c1906001612769565b6109cb9190612797565b60008181526008602052604090206003015490915087106109ee578093506109fc565b6109f96001826127ab565b92505b5080610a07816127c2565b915050610998565b50909150505b92915050565b600260005403610a3d5760405162461bcd60e51b815260040161063290612684565b6002600081905554600160a01b900460ff1615610a6c5760405162461bcd60e51b8152600401610632906126bb565b33600090815260056020908152604080832081518083019092528054808352600190910154928201929092529112610ae65760405162461bcd60e51b815260206004820152601d60248201527f566f74696e67457363726f773a206e6f206c6f636b656420746f6b656e0000006044820152606401610632565b806020015142101580610afb575060075460ff165b610b475760405162461bcd60e51b815260206004820152601f60248201527f566f74696e67457363726f773a20636f6e646974696f6e206e6f74206d6574006044820152606401610632565b805160006020808401828152828552338352600590915260409091208351815590516001909101556004548290610b7e83826127ab565b600455610b8c338386611ac0565b600354610ba3906001600160a01b031633856120a5565b6040805184815242602082015233917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568910160405180910390a27f20afdd8f420a231acd54c47385623d5f04cacd142f4792d73dd98a454ad6cc1381610c0985826127ab565b6040805192835260208301919091520160405180910390a1505060016000555050565b6001546001600160a01b03163314610c565760405162461bcd60e51b8152600401610632906127db565b610c5e6120fc565b565b6002546001600160a01b03163314610cba5760405162461bcd60e51b815260206004820152601e60248201527f536166654f776e61626c653a2063616c6c657220213d2070656e64696e6700006044820152606401610632565b610c5e612194565b600043821115610d145760405162461bcd60e51b815260206004820152601b60248201527f566f74696e67457363726f773a20696e76616c696420626c6f636b00000000006044820152606401610632565b6001600160a01b0383166000908152600a602052604081205460015b60808111610dbc5781831015610dbc5760006002610d4e8486612769565b610d59906001612769565b610d639190612797565b6001600160a01b03881660009081526009602090815260408083208484529091529020600301549091508610610d9b57809350610da9565b610da66001826127ab565b92505b5080610db4816127c2565b915050610d30565b506001600160a01b038516600090815260096020908152604080832085845282528083208151608081018352815481526001820154938101939093526002810154918301919091526003015460608201526006549091610e1c8783610992565b60008181526008602090815260408083208151608081018352815481526001820154938101939093526002810154918301919091526003015460608201529192508084841015610eeb576000600881610e76876001612769565b8152602001908152602001600020604051806080016040529081600082015481526020016001820154815260200160028201548152602001600382015481525050905083606001518160600151610ecd91906127ab565b925083604001518160400151610ee391906127ab565b915050610f0f565b6060830151610efa90436127ab565b9150826040015142610f0c91906127ab565b90505b60408301518215610f4c578284606001518c610f2b91906127ab565b610f359084612812565b610f3f9190612797565b610f499082612769565b90505b6040870151610f5b90826127ab565b8760200151610f6a9190612831565b87518890610f799083906128b6565b9052508651600013610f9757505093519650610a1595505050505050565b60009950505050505050505050610a15565b6001600160a01b0381166000908152600a6020526040812054808203610fd25750600092915050565b6001600160a01b038316600090815260096020908152604080832084845282529182902082516080810184528154815260018201549281019290925260028101549282018390526003015460608201529061102d90426127ab565b816020015161103c9190612831565b8151829061104b9083906128b6565b90525080516000131561105d57600081525b519392505050565b50919050565b6001546001600160a01b031633146110955760405162461bcd60e51b8152600401610632906127db565b610c5e60006121fd565b6001546001600160a01b031633146110c95760405162461bcd60e51b8152600401610632906127db565b60075460ff16156110ec5760405162461bcd60e51b8152600401610632906126e5565b6007805460ff19166001179055604080513381524260208201527f751a0eb66c3cc9aa48957d09bd3cc81db888f5bcac6689def5fb9e18ec3cf20191015b60405180910390a1565b6002600054036111565760405162461bcd60e51b815260040161063290612684565b6002600081905554600160a01b900460ff16156111855760405162461bcd60e51b8152600401610632906126bb565b60075460ff16156111a85760405162461bcd60e51b8152600401610632906126e5565b33600090815260056020908152604080832081518083019092528054825260010154918101919091529062093a806111e08185612797565b6111ea9190612812565b90504282602001511161123f5760405162461bcd60e51b815260206004820152601a60248201527f566f74696e67457363726f773a204c6f636b20657870697265640000000000006044820152606401610632565b81516000126112905760405162461bcd60e51b815260206004820152601f60248201527f566f74696e67457363726f773a204e6f7468696e67206973206c6f636b6564006044820152606401610632565b816020015181116112e35760405162461bcd60e51b815260206004820181905260248201527f566f74696e67457363726f773a20696e76616c696420756e6c6f636b54696d656044820152606401610632565b6112f1630784ce0042612769565b8111156113405760405162461bcd60e51b815260206004820152601f60248201527f566f74696e67457363726f773a206578636565642063617020706572696f64006044820152606401610632565b61098833600083856002611833565b6001546001600160a01b031633146113795760405162461bcd60e51b8152600401610632906127db565b610c5e61224f565b600d805461058f90612650565b6000438211156113e05760405162461bcd60e51b815260206004820152601b60248201527f566f74696e67457363726f773a20696e76616c696420626c6f636b00000000006044820152606401610632565b60065460006113ef8483610992565b6000818152600860209081526040808320815160808101835281548152600182015493810193909352600281015491830191909152600301546060820152919250838310156114ee576000600881611448866001612769565b8152602001908152602001600020604051806080016040529081600082015481526020016001820154815260200160028201548152602001600382015481525050905080606001518360600151146114e857826060015181606001516114ae91906127ab565b836040015182604001516114c291906127ab565b60608501516114d1908a6127ab565b6114db9190612812565b6114e59190612797565b91505b5061153d565b4382606001511461153d57606082015161150890436127ab565b604083015161151790426127ab565b606084015161152690896127ab565b6115309190612812565b61153a9190612797565b90505b611556828284604001516115519190612769565b6119d0565b9695505050505050565b6001546001600160a01b0316331461158a5760405162461bcd60e51b8152600401610632906127db565b6001600160a01b0382166115e05760405162461bcd60e51b815260206004820152601b60248201527f536166654f776e61626c653a206e6577206f776e6572206973203000000000006044820152606401610632565b80156115f3576115ef826121fd565b5050565b600280546001600160a01b0319166001600160a01b0384161790555050565b6002600054036116345760405162461bcd60e51b815260040161063290612684565b6002600081905554600160a01b900460ff16156116635760405162461bcd60e51b8152600401610632906126bb565b60075460ff16156116865760405162461bcd60e51b8152600401610632906126e5565b600062093a806116968184612797565b6116a09190612812565b336000908152600560209081526040918290208251808401909352805483526001015490820152909150836116e75760405162461bcd60e51b81526004016106329061271c565b8051156117365760405162461bcd60e51b815260206004820152601f60248201527f566f74696e67457363726f773a206f6c6420746f6b656e73206c6f636b6564006044820152606401610632565b4282116117855760405162461bcd60e51b815260206004820152601860248201527f566f74696e67457363726f773a206c6f636b206c6174657200000000000000006044820152606401610632565b611793630784ce0042612769565b8211156117e25760405162461bcd60e51b815260206004820152601f60248201527f566f74696e67457363726f773a206578636565642063617020706572696f64006044820152606401610632565b6117f0338584846001611833565b505060016000555050565b610c5e600060405180604001604052806000815260200160008152506040518060400160405280600081526020016000815250611ac0565b60045482906118428682612769565b60045560408051808201909152825181526020808401519082015282518790849061186e9083906128f5565b905250851561187f57602083018690525b6001600160a01b038816600090815260056020908152604090912084518155908401516001909101556118b3888285611ac0565b8615611938576003546040516323b872dd60e01b81526001600160a01b038a81166004830152306024830152604482018a9052909116906323b872dd906064016020604051808303816000875af1158015611912573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119369190612936565b505b8260200151886001600160a01b03167fbe9cf0e939c614fad640a623a53ba0a807c8cb503c4c4c8dacabe27b86ff2dd589874260405161197a93929190612953565b60405180910390a37f20afdd8f420a231acd54c47385623d5f04cacd142f4792d73dd98a454ad6cc13826119ae8982612769565b6040805192835260208301919091520160405180910390a15050505050505050565b600080839050600062093a808083604001516119ec9190612797565b6119f69190612812565b905060005b60ff8162ffffff161015611aa757611a1662093a8083612769565b9150600085831115611a2a57859250611a3b565b506000828152600b60205260409020545b6040840151611a4a90846127ab565b8460200151611a599190612831565b84518590611a689083906128b6565b905250858303611a785750611aa7565b8084602001818151611a8a91906128f5565b905250506040830182905280611a9f81612989565b9150506119fb565b50815160001315611ab757600082525b50519392505050565b611aeb6040518060800160405280600081526020016000815260200160008152602001600081525090565b611b166040518060800160405280600081526020016000815260200160008152602001600081525090565b611b3a60405180606001604052806000815260200160008152602001600081525090565b6000808252602082015260065460408201526001600160a01b03861615611c5357428560200151118015611b6f575084516000125b15611bae578451611b8590630784ce00906129ab565b602080850191909152850151611b9c9042906127ab565b8360200151611bab9190612831565b83525b428460200151118015611bc2575083516000125b15611c01578351611bd890630784ce00906129ab565b602080840191909152840151611bef9042906127ab565b8260200151611bfe9190612831565b82525b6020808601516000908152600b82526040902054825284015115611c53578460200151846020015103611c3a5780516020820152611c53565b6020808501516000908152600b82526040902054908201525b604080516080810182526000808252602082015242818301524360608201529082015115611cc857600860008360400151815260200190815260200160002060405180608001604052908160008201548152602001600182015481526020016002820154815260200160038201548152505090505b604081015181600042831015611d15576040840151611ce790426127ab565b6060850151611cf690436127ab565b611d0890670de0b6b3a7640000612812565b611d129190612797565b90505b600062093a80611d258186612797565b611d2f9190612812565b905060005b60ff8162ffffff161015611e9b57611d4f62093a8083612769565b9150600042831115611d6357429250611d74565b506000828152600b60205260409020545b611d7e86846127ab565b8760200151611d8d9190612831565b87518890611d9c9083906128b6565b905250602087018051829190611db39083906128f5565b905250865160001315611dc557600087525b600087602001511215611dda57600060208801525b60408088018490528501519295508592670de0b6b3a764000090611dfe90856127ab565b611e089086612812565b611e129190612797565b8560600151611e219190612769565b606088015260408801805160019190611e3b908390612769565b905250428303611e515750436060870152611e9b565b604080890151600090815260086020908152908290208951815590890151600182015590880151600282015560608801516003909101555080611e9381612989565b915050611d34565b5060408601516006556001600160a01b038b1615611f1f5787602001518760200151611ec791906128b6565b85602001818151611ed891906128f5565b90525087518751611ee991906128b6565b85518690611ef89083906128f5565b905250602085015160001315611f1057600060208601525b845160001315611f1f57600085525b604080870151600090815260086020908152908290208751815590870151600182015590860151600282015560608601516003909101556001600160a01b038b161561209857428a602001511115611fc757602088015186518790611f859083906128f5565b9052506020808b0151908a015103611faf57602087015186518790611fab9083906128b6565b9052505b85516020808c01516000908152600b90915260409020555b42896020015111156120175789602001518960200151111561201757866020015186602001818151611ff991906128b6565b9052506020808701518a8201516000908152600b9092526040909120555b6001600160a01b038b166000908152600a602052604081205461203b906001612769565b6001600160a01b038d166000818152600a60209081526040808320859055428d82019081524360608f01908152948452600983528184209584529482529091208b518155908b015160018201559151600283015551600390910155505b5050505050505050505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526120f79084906122b4565b505050565b600254600160a01b900460ff1661214c5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610632565b6002805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200161112a565b6001546002546040516001600160a01b03928316929091169082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35060028054600180546001600160a01b03199081166001600160a01b03841617909155169055565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600254600160a01b900460ff16156122795760405162461bcd60e51b8152600401610632906126bb565b6002805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861217c3390565b6000612309826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166123869092919063ffffffff16565b8051909150156120f757808060200190518101906123279190612936565b6120f75760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610632565b6060612395848460008561239f565b90505b9392505050565b6060824710156124005760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610632565b6001600160a01b0385163b6124575760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610632565b600080866001600160a01b0316858760405161247391906129d9565b60006040518083038185875af1925050503d80600081146124b0576040519150601f19603f3d011682016040523d82523d6000602084013e6124b5565b606091505b50915091506124c58282866124d0565b979650505050505050565b606083156124df575081612398565b8251156124ef5782518084602001fd5b8160405162461bcd60e51b81526004016106329190612539565b60005b8381101561252457818101518382015260200161250c565b83811115612533576000848401525b50505050565b6020815260008251806020840152612558816040850160208701612509565b601f01601f19169190910160400192915050565b60006020828403121561257e57600080fd5b5035919050565b80356001600160a01b038116811461259c57600080fd5b919050565b600080604083850312156125b457600080fd5b6125bd83612585565b946020939093013593505050565b600080604083850312156125de57600080fd5b50508035926020909101359150565b6000602082840312156125ff57600080fd5b61239882612585565b801515811461261657600080fd5b50565b6000806040838503121561262c57600080fd5b61263583612585565b9150602083013561264581612608565b809150509250929050565b600181811c9082168061266457607f821691505b60208210810361106557634e487b7160e01b600052602260045260246000fd5b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6020808252601e908201527f566f74696e67457363726f773a20636f6e74726163742073746f707065640000604082015260600190565b6020808252601b908201527f566f74696e67457363726f773a20696e76616c69642076616c75650000000000604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000821982111561277c5761277c612753565b500190565b634e487b7160e01b600052601260045260246000fd5b6000826127a6576127a6612781565b500490565b6000828210156127bd576127bd612753565b500390565b6000600182016127d4576127d4612753565b5060010190565b6020808252601d908201527f536166654f776e61626c653a2063616c6c6572206e6f74206f776e6572000000604082015260600190565b600081600019048311821515161561282c5761282c612753565b500290565b60006001600160ff1b038184138284138082168684048611161561285757612857612753565b600160ff1b600087128281168783058912161561287657612876612753565b6000871292508782058712848416161561289257612892612753565b878505871281841616156128a8576128a8612753565b505050929093029392505050565b60008083128015600160ff1b8501841216156128d4576128d4612753565b6001600160ff1b03840183138116156128ef576128ef612753565b50500390565b600080821280156001600160ff1b038490038513161561291757612917612753565b600160ff1b839003841281161561293057612930612753565b50500190565b60006020828403121561294857600080fd5b815161239881612608565b838152606081016004841061297857634e487b7160e01b600052602160045260246000fd5b602082019390935260400152919050565b600062ffffff8083168181036129a1576129a1612753565b6001019392505050565b6000826129ba576129ba612781565b600160ff1b8214600019841416156129d4576129d4612753565b500590565b600082516129eb818460208701612509565b919091019291505056fea264697066735822122043564b934faa529add368d232b268b2181942da059d394ec6878b57cea9af97564736f6c634300080f0033", + "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106102115760003560e01c806379599f9611610125578063981b24d0116100ad578063cff805ab1161007c578063cff805ab146104d1578063e30c3978146104d9578063eac6a667146104ea578063f3a6d60814610523578063f52a36f71461056257600080fd5b8063981b24d01461045c578063b242e5341461046f578063b52c05fe14610482578063cbf9fe5f1461049557600080fd5b80638ad4c447116100f45780638ad4c447146103da5780638b7c37a31461040f5780638da5cb5b1461043a578063900cf0cf1461044b57806395d89b411461045457600080fd5b806379599f96146103975780637c616fe61461039f57806381fc83bb146103b25780638456cb59146103d257600080fd5b80633ccfd60b116101a85780634e71e0c8116101775780634e71e0c81461034f5780634ee2cd7e146103575780635c975abb1461036a57806370a082311461037c578063715018a61461038f57600080fd5b80633ccfd60b146102f65780633f4ba83a146102fe5780634c2067c7146103065780634deafcae1461032357600080fd5b8063313ce567116101e4578063313ce567146102725780633323bac91461027a57806334d901a41461028357806338dbff66146102e357600080fd5b806306fdde031461021657806315456eba1461023457806318160ddd146102495780632f4f21e21461025f575b600080fd5b61021e610582565b60405161022b9190612539565b60405180910390f35b61024761024236600461256c565b610610565b005b61025161078d565b60405190815260200161022b565b61024761026d3660046125a1565b6107e2565b610251601281565b61025160045481565b6102c36102913660046125a1565b600960209081526000928352604080842090915290825290208054600182015460028301546003909301549192909184565b60408051948552602085019390935291830152606082015260800161022b565b6102516102f13660046125cb565b610992565b610247610a1b565b610247610c2c565b6007546103139060ff1681565b604051901515815260200161022b565b6102516103313660046125ed565b6001600160a01b031660009081526005602052604090206001015490565b610247610c60565b6102516103653660046125a1565b610cc2565b600254600160a01b900460ff16610313565b61025161038a3660046125ed565b610fa9565b61024761106b565b61024761109f565b6102476103ad36600461256c565b611134565b6102516103c03660046125ed565b600a6020526000908152604090205481565b61024761134f565b6102c36103e836600461256c565b60086020526000908152604090208054600182015460028301546003909301549192909184565b600354610422906001600160a01b031681565b6040516001600160a01b03909116815260200161022b565b6001546001600160a01b0316610422565b61025160065481565b61021e611381565b61025161046a36600461256c565b61138e565b61024761047d366004612619565b611560565b6102476104903660046125cb565b611612565b6104bc6104a33660046125ed565b6005602052600090815260409020805460019091015482565b6040805192835260208301919091520161022b565b6102476117fb565b6002546001600160a01b0316610422565b6102516104f83660046125a1565b6001600160a01b03919091166000908152600960209081526040808320938352929052206002015490565b6102516105313660046125ed565b6001600160a01b03166000908152600a60209081526040808320546009835281842090845290915290206001015490565b61025161057036600461256c565b600b6020526000908152604090205481565b600c805461058f90612650565b80601f01602080910402602001604051908101604052809291908181526020018280546105bb90612650565b80156106085780601f106105dd57610100808354040283529160200191610608565b820191906000526020600020905b8154815290600101906020018083116105eb57829003601f168201915b505050505081565b60026000540361063b5760405162461bcd60e51b815260040161063290612684565b60405180910390fd5b6002600081905554600160a01b900460ff161561066a5760405162461bcd60e51b8152600401610632906126bb565b60075460ff161561068d5760405162461bcd60e51b8152600401610632906126e5565b336000908152600560209081526040918290208251808401909352805483526001015490820152816106d15760405162461bcd60e51b81526004016106329061271c565b80516000126107225760405162461bcd60e51b815260206004820152601e60248201527f566f74696e67457363726f773a206e6f206578697374696e67206c6f636b00006044820152606401610632565b428160200151116107755760405162461bcd60e51b815260206004820152601a60248201527f566f74696e67457363726f773a206c6f636b20657870697265640000000000006044820152606401610632565b61078433836000846002611833565b50506001600055565b60065460008181526008602090815260408083208151608081018352815481526001820154938101939093526002810154918301919091526003015460608201529091906107db81426119d0565b9250505090565b6002600054036108045760405162461bcd60e51b815260040161063290612684565b6002600081905554600160a01b900460ff16156108335760405162461bcd60e51b8152600401610632906126bb565b60075460ff16156108565760405162461bcd60e51b8152600401610632906126e5565b6001600160a01b0382166000908152600560209081526040918290208251808401909352805483526001015490820152816108a35760405162461bcd60e51b81526004016106329061271c565b80516000126108f45760405162461bcd60e51b815260206004820152601e60248201527f566f74696e67457363726f773a206e6f206578697374696e67206c6f636b00006044820152606401610632565b428160200151116109475760405162461bcd60e51b815260206004820152601a60248201527f566f74696e67457363726f773a206c6f636b20657870697265640000000000006044820152606401610632565b6001600160a01b0383166000908152600560209081526040808320815180830190925280548252600101549181019190915261098891859185919081611833565b5050600160005550565b60008082815b60808111610a0f5781831015610a0f57600060026109b68486612769565b6109c1906001612769565b6109cb9190612797565b60008181526008602052604090206003015490915087106109ee578093506109fc565b6109f96001826127ab565b92505b5080610a07816127c2565b915050610998565b50909150505b92915050565b600260005403610a3d5760405162461bcd60e51b815260040161063290612684565b6002600081905554600160a01b900460ff1615610a6c5760405162461bcd60e51b8152600401610632906126bb565b33600090815260056020908152604080832081518083019092528054808352600190910154928201929092529112610ae65760405162461bcd60e51b815260206004820152601d60248201527f566f74696e67457363726f773a206e6f206c6f636b656420746f6b656e0000006044820152606401610632565b806020015142101580610afb575060075460ff165b610b475760405162461bcd60e51b815260206004820152601f60248201527f566f74696e67457363726f773a20636f6e646974696f6e206e6f74206d6574006044820152606401610632565b805160006020808401828152828552338352600590915260409091208351815590516001909101556004548290610b7e83826127ab565b600455610b8c338386611ac0565b600354610ba3906001600160a01b031633856120a5565b6040805184815242602082015233917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568910160405180910390a27f20afdd8f420a231acd54c47385623d5f04cacd142f4792d73dd98a454ad6cc1381610c0985826127ab565b6040805192835260208301919091520160405180910390a1505060016000555050565b6001546001600160a01b03163314610c565760405162461bcd60e51b8152600401610632906127db565b610c5e6120fc565b565b6002546001600160a01b03163314610cba5760405162461bcd60e51b815260206004820152601e60248201527f536166654f776e61626c653a2063616c6c657220213d2070656e64696e6700006044820152606401610632565b610c5e612194565b600043821115610d145760405162461bcd60e51b815260206004820152601b60248201527f566f74696e67457363726f773a20696e76616c696420626c6f636b00000000006044820152606401610632565b6001600160a01b0383166000908152600a602052604081205460015b60808111610dbc5781831015610dbc5760006002610d4e8486612769565b610d59906001612769565b610d639190612797565b6001600160a01b03881660009081526009602090815260408083208484529091529020600301549091508610610d9b57809350610da9565b610da66001826127ab565b92505b5080610db4816127c2565b915050610d30565b506001600160a01b038516600090815260096020908152604080832085845282528083208151608081018352815481526001820154938101939093526002810154918301919091526003015460608201526006549091610e1c8783610992565b60008181526008602090815260408083208151608081018352815481526001820154938101939093526002810154918301919091526003015460608201529192508084841015610eeb576000600881610e76876001612769565b8152602001908152602001600020604051806080016040529081600082015481526020016001820154815260200160028201548152602001600382015481525050905083606001518160600151610ecd91906127ab565b925083604001518160400151610ee391906127ab565b915050610f0f565b6060830151610efa90436127ab565b9150826040015142610f0c91906127ab565b90505b60408301518215610f4c578284606001518c610f2b91906127ab565b610f359084612812565b610f3f9190612797565b610f499082612769565b90505b6040870151610f5b90826127ab565b8760200151610f6a9190612831565b87518890610f799083906128b6565b9052508651600013610f9757505093519650610a1595505050505050565b60009950505050505050505050610a15565b6001600160a01b0381166000908152600a6020526040812054808203610fd25750600092915050565b6001600160a01b038316600090815260096020908152604080832084845282529182902082516080810184528154815260018201549281019290925260028101549282018390526003015460608201529061102d90426127ab565b816020015161103c9190612831565b8151829061104b9083906128b6565b90525080516000131561105d57600081525b519392505050565b50919050565b6001546001600160a01b031633146110955760405162461bcd60e51b8152600401610632906127db565b610c5e60006121fd565b6001546001600160a01b031633146110c95760405162461bcd60e51b8152600401610632906127db565b60075460ff16156110ec5760405162461bcd60e51b8152600401610632906126e5565b6007805460ff19166001179055604080513381524260208201527f751a0eb66c3cc9aa48957d09bd3cc81db888f5bcac6689def5fb9e18ec3cf20191015b60405180910390a1565b6002600054036111565760405162461bcd60e51b815260040161063290612684565b6002600081905554600160a01b900460ff16156111855760405162461bcd60e51b8152600401610632906126bb565b60075460ff16156111a85760405162461bcd60e51b8152600401610632906126e5565b33600090815260056020908152604080832081518083019092528054825260010154918101919091529062093a806111e08185612797565b6111ea9190612812565b90504282602001511161123f5760405162461bcd60e51b815260206004820152601a60248201527f566f74696e67457363726f773a204c6f636b20657870697265640000000000006044820152606401610632565b81516000126112905760405162461bcd60e51b815260206004820152601f60248201527f566f74696e67457363726f773a204e6f7468696e67206973206c6f636b6564006044820152606401610632565b816020015181116112e35760405162461bcd60e51b815260206004820181905260248201527f566f74696e67457363726f773a20696e76616c696420756e6c6f636b54696d656044820152606401610632565b6112f1630784ce0042612769565b8111156113405760405162461bcd60e51b815260206004820152601f60248201527f566f74696e67457363726f773a206578636565642063617020706572696f64006044820152606401610632565b61098833600083856002611833565b6001546001600160a01b031633146113795760405162461bcd60e51b8152600401610632906127db565b610c5e61224f565b600d805461058f90612650565b6000438211156113e05760405162461bcd60e51b815260206004820152601b60248201527f566f74696e67457363726f773a20696e76616c696420626c6f636b00000000006044820152606401610632565b60065460006113ef8483610992565b6000818152600860209081526040808320815160808101835281548152600182015493810193909352600281015491830191909152600301546060820152919250838310156114ee576000600881611448866001612769565b8152602001908152602001600020604051806080016040529081600082015481526020016001820154815260200160028201548152602001600382015481525050905080606001518360600151146114e857826060015181606001516114ae91906127ab565b836040015182604001516114c291906127ab565b60608501516114d1908a6127ab565b6114db9190612812565b6114e59190612797565b91505b5061153d565b4382606001511461153d57606082015161150890436127ab565b604083015161151790426127ab565b606084015161152690896127ab565b6115309190612812565b61153a9190612797565b90505b611556828284604001516115519190612769565b6119d0565b9695505050505050565b6001546001600160a01b0316331461158a5760405162461bcd60e51b8152600401610632906127db565b6001600160a01b0382166115e05760405162461bcd60e51b815260206004820152601b60248201527f536166654f776e61626c653a206e6577206f776e6572206973203000000000006044820152606401610632565b80156115f3576115ef826121fd565b5050565b600280546001600160a01b0319166001600160a01b0384161790555050565b6002600054036116345760405162461bcd60e51b815260040161063290612684565b6002600081905554600160a01b900460ff16156116635760405162461bcd60e51b8152600401610632906126bb565b60075460ff16156116865760405162461bcd60e51b8152600401610632906126e5565b600062093a806116968184612797565b6116a09190612812565b336000908152600560209081526040918290208251808401909352805483526001015490820152909150836116e75760405162461bcd60e51b81526004016106329061271c565b8051156117365760405162461bcd60e51b815260206004820152601f60248201527f566f74696e67457363726f773a206f6c6420746f6b656e73206c6f636b6564006044820152606401610632565b4282116117855760405162461bcd60e51b815260206004820152601860248201527f566f74696e67457363726f773a206c6f636b206c6174657200000000000000006044820152606401610632565b611793630784ce0042612769565b8211156117e25760405162461bcd60e51b815260206004820152601f60248201527f566f74696e67457363726f773a206578636565642063617020706572696f64006044820152606401610632565b6117f0338584846001611833565b505060016000555050565b610c5e600060405180604001604052806000815260200160008152506040518060400160405280600081526020016000815250611ac0565b60045482906118428682612769565b60045560408051808201909152825181526020808401519082015282518790849061186e9083906128f5565b905250851561187f57602083018690525b6001600160a01b038816600090815260056020908152604090912084518155908401516001909101556118b3888285611ac0565b8615611938576003546040516323b872dd60e01b81526001600160a01b038a81166004830152306024830152604482018a9052909116906323b872dd906064016020604051808303816000875af1158015611912573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119369190612936565b505b8260200151886001600160a01b03167fbe9cf0e939c614fad640a623a53ba0a807c8cb503c4c4c8dacabe27b86ff2dd589874260405161197a93929190612953565b60405180910390a37f20afdd8f420a231acd54c47385623d5f04cacd142f4792d73dd98a454ad6cc13826119ae8982612769565b6040805192835260208301919091520160405180910390a15050505050505050565b600080839050600062093a808083604001516119ec9190612797565b6119f69190612812565b905060005b60ff8162ffffff161015611aa757611a1662093a8083612769565b9150600085831115611a2a57859250611a3b565b506000828152600b60205260409020545b6040840151611a4a90846127ab565b8460200151611a599190612831565b84518590611a689083906128b6565b905250858303611a785750611aa7565b8084602001818151611a8a91906128f5565b905250506040830182905280611a9f81612989565b9150506119fb565b50815160001315611ab757600082525b50519392505050565b611aeb6040518060800160405280600081526020016000815260200160008152602001600081525090565b611b166040518060800160405280600081526020016000815260200160008152602001600081525090565b611b3a60405180606001604052806000815260200160008152602001600081525090565b6000808252602082015260065460408201526001600160a01b03861615611c5357428560200151118015611b6f575084516000125b15611bae578451611b8590630784ce00906129ab565b602080850191909152850151611b9c9042906127ab565b8360200151611bab9190612831565b83525b428460200151118015611bc2575083516000125b15611c01578351611bd890630784ce00906129ab565b602080840191909152840151611bef9042906127ab565b8260200151611bfe9190612831565b82525b6020808601516000908152600b82526040902054825284015115611c53578460200151846020015103611c3a5780516020820152611c53565b6020808501516000908152600b82526040902054908201525b604080516080810182526000808252602082015242818301524360608201529082015115611cc857600860008360400151815260200190815260200160002060405180608001604052908160008201548152602001600182015481526020016002820154815260200160038201548152505090505b604081015181600042831015611d15576040840151611ce790426127ab565b6060850151611cf690436127ab565b611d0890670de0b6b3a7640000612812565b611d129190612797565b90505b600062093a80611d258186612797565b611d2f9190612812565b905060005b60ff8162ffffff161015611e9b57611d4f62093a8083612769565b9150600042831115611d6357429250611d74565b506000828152600b60205260409020545b611d7e86846127ab565b8760200151611d8d9190612831565b87518890611d9c9083906128b6565b905250602087018051829190611db39083906128f5565b905250865160001315611dc557600087525b600087602001511215611dda57600060208801525b60408088018490528501519295508592670de0b6b3a764000090611dfe90856127ab565b611e089086612812565b611e129190612797565b8560600151611e219190612769565b606088015260408801805160019190611e3b908390612769565b905250428303611e515750436060870152611e9b565b604080890151600090815260086020908152908290208951815590890151600182015590880151600282015560608801516003909101555080611e9381612989565b915050611d34565b5060408601516006556001600160a01b038b1615611f1f5787602001518760200151611ec791906128b6565b85602001818151611ed891906128f5565b90525087518751611ee991906128b6565b85518690611ef89083906128f5565b905250602085015160001315611f1057600060208601525b845160001315611f1f57600085525b604080870151600090815260086020908152908290208751815590870151600182015590860151600282015560608601516003909101556001600160a01b038b161561209857428a602001511115611fc757602088015186518790611f859083906128f5565b9052506020808b0151908a015103611faf57602087015186518790611fab9083906128b6565b9052505b85516020808c01516000908152600b90915260409020555b42896020015111156120175789602001518960200151111561201757866020015186602001818151611ff991906128b6565b9052506020808701518a8201516000908152600b9092526040909120555b6001600160a01b038b166000908152600a602052604081205461203b906001612769565b6001600160a01b038d166000818152600a60209081526040808320859055428d82019081524360608f01908152948452600983528184209584529482529091208b518155908b015160018201559151600283015551600390910155505b5050505050505050505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526120f79084906122b4565b505050565b600254600160a01b900460ff1661214c5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610632565b6002805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200161112a565b6001546002546040516001600160a01b03928316929091169082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35060028054600180546001600160a01b03199081166001600160a01b03841617909155169055565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600254600160a01b900460ff16156122795760405162461bcd60e51b8152600401610632906126bb565b6002805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861217c3390565b6000612309826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166123869092919063ffffffff16565b8051909150156120f757808060200190518101906123279190612936565b6120f75760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610632565b6060612395848460008561239f565b90505b9392505050565b6060824710156124005760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610632565b6001600160a01b0385163b6124575760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610632565b600080866001600160a01b0316858760405161247391906129d9565b60006040518083038185875af1925050503d80600081146124b0576040519150601f19603f3d011682016040523d82523d6000602084013e6124b5565b606091505b50915091506124c58282866124d0565b979650505050505050565b606083156124df575081612398565b8251156124ef5782518084602001fd5b8160405162461bcd60e51b81526004016106329190612539565b60005b8381101561252457818101518382015260200161250c565b83811115612533576000848401525b50505050565b6020815260008251806020840152612558816040850160208701612509565b601f01601f19169190910160400192915050565b60006020828403121561257e57600080fd5b5035919050565b80356001600160a01b038116811461259c57600080fd5b919050565b600080604083850312156125b457600080fd5b6125bd83612585565b946020939093013593505050565b600080604083850312156125de57600080fd5b50508035926020909101359150565b6000602082840312156125ff57600080fd5b61239882612585565b801515811461261657600080fd5b50565b6000806040838503121561262c57600080fd5b61263583612585565b9150602083013561264581612608565b809150509250929050565b600181811c9082168061266457607f821691505b60208210810361106557634e487b7160e01b600052602260045260246000fd5b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6020808252601e908201527f566f74696e67457363726f773a20636f6e74726163742073746f707065640000604082015260600190565b6020808252601b908201527f566f74696e67457363726f773a20696e76616c69642076616c75650000000000604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000821982111561277c5761277c612753565b500190565b634e487b7160e01b600052601260045260246000fd5b6000826127a6576127a6612781565b500490565b6000828210156127bd576127bd612753565b500390565b6000600182016127d4576127d4612753565b5060010190565b6020808252601d908201527f536166654f776e61626c653a2063616c6c6572206e6f74206f776e6572000000604082015260600190565b600081600019048311821515161561282c5761282c612753565b500290565b60006001600160ff1b038184138284138082168684048611161561285757612857612753565b600160ff1b600087128281168783058912161561287657612876612753565b6000871292508782058712848416161561289257612892612753565b878505871281841616156128a8576128a8612753565b505050929093029392505050565b60008083128015600160ff1b8501841216156128d4576128d4612753565b6001600160ff1b03840183138116156128ef576128ef612753565b50500390565b600080821280156001600160ff1b038490038513161561291757612917612753565b600160ff1b839003841281161561293057612930612753565b50500190565b60006020828403121561294857600080fd5b815161239881612608565b838152606081016004841061297857634e487b7160e01b600052602160045260246000fd5b602082019390935260400152919050565b600062ffffff8083168181036129a1576129a1612753565b6001019392505050565b6000826129ba576129ba612781565b600160ff1b8214600019841416156129d4576129d4612753565b500590565b600082516129eb818460208701612509565b919091019291505056fea264697066735822122043564b934faa529add368d232b268b2181942da059d394ec6878b57cea9af97564736f6c634300080f0033", + "devdoc": { + "kind": "dev", + "methods": { + "balanceOf(address)": { + "details": "Adheres to the ERC20 `balanceOf` interface for Aragon compatibility", + "params": { + "addr": "User wallet address" + }, + "returns": { + "_0": "User voting power" + } + }, + "balanceOfAt(address,uint256)": { + "details": "Adheres to MiniMe `balanceOfAt` interface: https://github.com/Giveth/minime", + "params": { + "addr": "User's wallet address", + "blk": "Block to calculate the voting power at" + }, + "returns": { + "_0": "Voting power" + } + }, + "claimOwnership()": { + "details": "pending owner call this function to claim ownership" + }, + "constructor": { + "params": { + "name_": "Token name", + "p12TokenAddr_": "`ERC20P12` token address", + "symbol_": "Token symbol" + } + }, + "createLock(uint256,uint256)": { + "params": { + "unlockTime": "Epoch time when tokens unlock, rounded down to whole weeks", + "value": "Amount to deposit" + } + }, + "depositFor(address,uint256)": { + "details": "Anyone (even a smart contract) can deposit for someone else, but cannot extend their lockTime and deposit for a brand new user", + "params": { + "addr": "User's wallet address", + "value": "Amount to add to user's lock " + } + }, + "findBlockEpoch(uint256,uint256)": { + "params": { + "blk": "Block to find", + "maxEpoch": "Don't go beyond this epoch" + }, + "returns": { + "_0": "Approximate timestamp for block" + } + }, + "getLastUserSlope(address)": { + "params": { + "addr": "Address of the user wallet" + }, + "returns": { + "_0": "Value of the slope" + } + }, + "increaseAmount(uint256)": { + "params": { + "value": "Amount of tokens to deposit and add to the lock" + } + }, + "increaseUnlockTime(uint256)": { + "params": { + "unlockTime": "New epoch time for unlocking" + } + }, + "lockedEnd(address)": { + "params": { + "addr": "User wallet " + }, + "returns": { + "_0": "Epoch time of the lock end" + } + }, + "owner()": { + "details": "Returns the address of the current owner." + }, + "paused()": { + "details": "Returns true if the contract is paused, and false otherwise." + }, + "pendingOwner()": { + "details": "Return the address of the pending owner" + }, + "renounceOwnership()": { + "details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner." + }, + "totalSupply()": { + "details": "Adheres to the ERC20 `totalSupply` interface for Aragon compatibility", + "returns": { + "_0": "Total voting power" + } + }, + "totalSupplyAt(uint256)": { + "params": { + "blk": "Block to calculate the total voting power at" + }, + "returns": { + "_0": "Total voting power at `_block`" + } + }, + "transferOwnership(address,bool)": { + "details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner. Note If direct is false, it will set an pending owner and the OwnerShipTransferring only happens when the pending owner claim the ownership" + }, + "userPointHistoryTs(address,uint256)": { + "params": { + "addr": "User wallet address", + "idx": "User epoch number" + }, + "returns": { + "_0": "Epoch time of the checkpoint" + } + }, + "withdraw()": { + "details": "Only possible if the lock has expired or contract expired" + } + }, + "version": 1 + }, + "userdoc": { + "kind": "user", + "methods": { + "balanceOf(address)": { + "notice": "Get the current voting power for `msg.sender`" + }, + "balanceOfAt(address,uint256)": { + "notice": "Measure voting power of `addr` at block height `_block`" + }, + "checkPoint()": { + "notice": "Record global data to checkpoint" + }, + "constructor": { + "notice": "Contract constructor" + }, + "createLock(uint256,uint256)": { + "notice": "Deposit `value` tokens for `msg.sender` and lock until `unlock_time`" + }, + "depositFor(address,uint256)": { + "notice": "Deposit `value` tokens for `addr` and add to the lock" + }, + "findBlockEpoch(uint256,uint256)": { + "notice": "Binary search to estimate timestamp for block number" + }, + "getLastUserSlope(address)": { + "notice": "Get the most recently recorded rate of voting power decrease for `addr`" + }, + "increaseAmount(uint256)": { + "notice": "Deposit `value` additional tokens for `msg.sender` without modifying the unlock time" + }, + "increaseUnlockTime(uint256)": { + "notice": "Extend the unlock time for `msg.sender` to `unlock_time`" + }, + "lockedEnd(address)": { + "notice": "Get timestamp when `addr`'s lock finishes" + }, + "totalSupply()": { + "notice": "Calculate total voting power" + }, + "totalSupplyAt(uint256)": { + "notice": "Calculate total voting power at some point in the past" + }, + "userPointHistoryTs(address,uint256)": { + "notice": "Get the timestamp for checkpoint `idx` for `addr`" + }, + "withdraw()": { + "notice": "Withdraw all tokens for `msg.sender`" + } + }, + "version": 1 + }, + "storageLayout": { + "storage": [ + { + "astId": 1900, + "contract": "contracts/token/VotingEscrow.sol:VotingEscrow", + "label": "_status", + "offset": 0, + "slot": "0", + "type": "t_uint256" + }, + { + "astId": 7260, + "contract": "contracts/token/VotingEscrow.sol:VotingEscrow", + "label": "_owner", + "offset": 0, + "slot": "1", + "type": "t_address" + }, + { + "astId": 7262, + "contract": "contracts/token/VotingEscrow.sol:VotingEscrow", + "label": "_pendingOwner", + "offset": 0, + "slot": "2", + "type": "t_address" + }, + { + "astId": 1815, + "contract": "contracts/token/VotingEscrow.sol:VotingEscrow", + "label": "_paused", + "offset": 20, + "slot": "2", + "type": "t_bool" + }, + { + "astId": 16530, + "contract": "contracts/token/VotingEscrow.sol:VotingEscrow", + "label": "p12Token", + "offset": 0, + "slot": "3", + "type": "t_address" + }, + { + "astId": 16532, + "contract": "contracts/token/VotingEscrow.sol:VotingEscrow", + "label": "totalLockedP12", + "offset": 0, + "slot": "4", + "type": "t_uint256" + }, + { + "astId": 16537, + "contract": "contracts/token/VotingEscrow.sol:VotingEscrow", + "label": "locked", + "offset": 0, + "slot": "5", + "type": "t_mapping(t_address,t_struct(LockedBalance)16620_storage)" + }, + { + "astId": 16539, + "contract": "contracts/token/VotingEscrow.sol:VotingEscrow", + "label": "epoch", + "offset": 0, + "slot": "6", + "type": "t_uint256" + }, + { + "astId": 16541, + "contract": "contracts/token/VotingEscrow.sol:VotingEscrow", + "label": "expired", + "offset": 0, + "slot": "7", + "type": "t_bool" + }, + { + "astId": 16546, + "contract": "contracts/token/VotingEscrow.sol:VotingEscrow", + "label": "pointHistory", + "offset": 0, + "slot": "8", + "type": "t_mapping(t_uint256,t_struct(Point)16615_storage)" + }, + { + "astId": 16553, + "contract": "contracts/token/VotingEscrow.sol:VotingEscrow", + "label": "userPointHistory", + "offset": 0, + "slot": "9", + "type": "t_mapping(t_address,t_mapping(t_uint256,t_struct(Point)16615_storage))" + }, + { + "astId": 16557, + "contract": "contracts/token/VotingEscrow.sol:VotingEscrow", + "label": "userPointEpoch", + "offset": 0, + "slot": "10", + "type": "t_mapping(t_address,t_uint256)" + }, + { + "astId": 16561, + "contract": "contracts/token/VotingEscrow.sol:VotingEscrow", + "label": "slopeChanges", + "offset": 0, + "slot": "11", + "type": "t_mapping(t_uint256,t_int256)" + }, + { + "astId": 16563, + "contract": "contracts/token/VotingEscrow.sol:VotingEscrow", + "label": "name", + "offset": 0, + "slot": "12", + "type": "t_string_storage" + }, + { + "astId": 16565, + "contract": "contracts/token/VotingEscrow.sol:VotingEscrow", + "label": "symbol", + "offset": 0, + "slot": "13", + "type": "t_string_storage" + } + ], + "types": { + "t_address": { + "encoding": "inplace", + "label": "address", + "numberOfBytes": "20" + }, + "t_bool": { + "encoding": "inplace", + "label": "bool", + "numberOfBytes": "1" + }, + "t_int256": { + "encoding": "inplace", + "label": "int256", + "numberOfBytes": "32" + }, + "t_mapping(t_address,t_mapping(t_uint256,t_struct(Point)16615_storage))": { + "encoding": "mapping", + "key": "t_address", + "label": "mapping(address => mapping(uint256 => struct VotingEscrow.Point))", + "numberOfBytes": "32", + "value": "t_mapping(t_uint256,t_struct(Point)16615_storage)" + }, + "t_mapping(t_address,t_struct(LockedBalance)16620_storage)": { + "encoding": "mapping", + "key": "t_address", + "label": "mapping(address => struct VotingEscrow.LockedBalance)", + "numberOfBytes": "32", + "value": "t_struct(LockedBalance)16620_storage" + }, + "t_mapping(t_address,t_uint256)": { + "encoding": "mapping", + "key": "t_address", + "label": "mapping(address => uint256)", + "numberOfBytes": "32", + "value": "t_uint256" + }, + "t_mapping(t_uint256,t_int256)": { + "encoding": "mapping", + "key": "t_uint256", + "label": "mapping(uint256 => int256)", + "numberOfBytes": "32", + "value": "t_int256" + }, + "t_mapping(t_uint256,t_struct(Point)16615_storage)": { + "encoding": "mapping", + "key": "t_uint256", + "label": "mapping(uint256 => struct VotingEscrow.Point)", + "numberOfBytes": "32", + "value": "t_struct(Point)16615_storage" + }, + "t_string_storage": { + "encoding": "bytes", + "label": "string", + "numberOfBytes": "32" + }, + "t_struct(LockedBalance)16620_storage": { + "encoding": "inplace", + "label": "struct VotingEscrow.LockedBalance", + "members": [ + { + "astId": 16617, + "contract": "contracts/token/VotingEscrow.sol:VotingEscrow", + "label": "amount", + "offset": 0, + "slot": "0", + "type": "t_int256" + }, + { + "astId": 16619, + "contract": "contracts/token/VotingEscrow.sol:VotingEscrow", + "label": "end", + "offset": 0, + "slot": "1", + "type": "t_uint256" + } + ], + "numberOfBytes": "64" + }, + "t_struct(Point)16615_storage": { + "encoding": "inplace", + "label": "struct VotingEscrow.Point", + "members": [ + { + "astId": 16608, + "contract": "contracts/token/VotingEscrow.sol:VotingEscrow", + "label": "bias", + "offset": 0, + "slot": "0", + "type": "t_int256" + }, + { + "astId": 16610, + "contract": "contracts/token/VotingEscrow.sol:VotingEscrow", + "label": "slope", + "offset": 0, + "slot": "1", + "type": "t_int256" + }, + { + "astId": 16612, + "contract": "contracts/token/VotingEscrow.sol:VotingEscrow", + "label": "ts", + "offset": 0, + "slot": "2", + "type": "t_uint256" + }, + { + "astId": 16614, + "contract": "contracts/token/VotingEscrow.sol:VotingEscrow", + "label": "blk", + "offset": 0, + "slot": "3", + "type": "t_uint256" + } + ], + "numberOfBytes": "128" + }, + "t_uint256": { + "encoding": "inplace", + "label": "uint256", + "numberOfBytes": "32" + } + } + } +} \ No newline at end of file From d6bca1be23570f56ae63bfc9ff2ca70a662446c9 Mon Sep 17 00:00:00 2001 From: Jerry Date: Fri, 19 Aug 2022 16:51:23 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=8C=88=20style:=20format?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .prettierignore | 1 + contracts/staking/P12MineUpgradeable.sol | 6 +++--- contracts/staking/interfaces/IP12MineUpgradeable.sol | 11 +++++++++-- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/.prettierignore b/.prettierignore index dfd3a09..3614775 100644 --- a/.prettierignore +++ b/.prettierignore @@ -4,3 +4,4 @@ cache coverage* gasReporterOutput.json typechain +deployments diff --git a/contracts/staking/P12MineUpgradeable.sol b/contracts/staking/P12MineUpgradeable.sol index d2926eb..b71b0d2 100644 --- a/contracts/staking/P12MineUpgradeable.sol +++ b/contracts/staking/P12MineUpgradeable.sol @@ -303,7 +303,7 @@ contract P12MineUpgradeable is @notice Get pending rewards @param lpToken Address of lpToken */ - function claim(address lpToken) public virtual override nonReentrant whenNotPaused returns (uint256){ + function claim(address lpToken) public virtual override nonReentrant whenNotPaused returns (uint256) { uint256 pid = getPid(lpToken); require(userInfo[pid][msg.sender].amount > 0, 'P12Mine: no staked token'); PoolInfo storage pool = poolInfos[pid]; @@ -318,7 +318,7 @@ contract P12MineUpgradeable is /** @notice Get all pending rewards */ - function claimAll() public virtual override nonReentrant whenNotPaused returns (uint256){ + function claimAll() public virtual override nonReentrant whenNotPaused returns (uint256) { uint256 length = poolInfos.length; uint256 pending = 0; for (uint256 pid = 0; pid < length; pid++) { @@ -358,7 +358,7 @@ contract P12MineUpgradeable is pool.amount -= amount; user.rewardDebt = (user.amount * pool.accP12PerShare) / ONE; IERC20Upgradeable(pool.lpToken).safeTransfer(address(_who), amount); - emit ExecuteWithdraw(_who, pid,id, amount, user.amount, pool.amount); + emit ExecuteWithdraw(_who, pid, id, amount, user.amount, pool.amount); } /** diff --git a/contracts/staking/interfaces/IP12MineUpgradeable.sol b/contracts/staking/interfaces/IP12MineUpgradeable.sol index 0b34978..f8a4756 100644 --- a/contracts/staking/interfaces/IP12MineUpgradeable.sol +++ b/contracts/staking/interfaces/IP12MineUpgradeable.sol @@ -7,7 +7,14 @@ import './IGaugeController.sol'; interface IP12MineUpgradeable { event Deposit(address indexed user, uint256 indexed pid, uint256 amount, uint256 userAmount, uint256 poolAmount); // deposit lpToken log - event ExecuteWithdraw(address indexed user, uint256 indexed pid,bytes32 indexed withdrawId, uint256 amount, uint256 userAmount, uint256 poolAmount); // withdraw lpToken log + event ExecuteWithdraw( + address indexed user, + uint256 indexed pid, + bytes32 indexed withdrawId, + uint256 amount, + uint256 userAmount, + uint256 poolAmount + ); // withdraw lpToken log event QueueWithdraw( address indexed user, uint256 pid, @@ -72,5 +79,5 @@ interface IP12MineUpgradeable { function claimAll() external returns (uint256); // get all pending rewards - function checkpoint(address lpToken) external ; + function checkpoint(address lpToken) external; }