Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
0 JOBS
Holders
1,193
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 JOBSLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Jobs
Compiler Version
v0.8.12+commit.f00d7308
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.12; /* _ _ * (_) | | * _ ___ | |__ ___ * | |/ _ \| '_ \/ __| * | | (_) | |_) \__ \ * | |\___/|_.__/|___/ * _/ | * |__/ */ import "./JobTransferFunction.sol"; import "./Companies.sol"; import "./Seniority.sol"; import "./Titles.sol"; import "./FinanceDept.sol"; import "./Salaries.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Royalty.sol"; import "@openzeppelin/contracts/utils/math/Math.sol"; contract Jobs is ERC721, ERC721Royalty, AccessControl { using Strings for uint256; bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); string private baseURI = "https://jobs.regular.world/cards/id/"; bool public mintOpen = false; mapping(uint => bool) public minted; // Regular Ids that have already claimed mapping(uint => uint) public timestamps; // timestamps for claiming salary mapping(uint => uint) public companyIds; // companyIds mapping(uint => uint) public regIds; // Each job NFT has an assigned RegId mapping(uint => uint) public jobByRegId; // JobID by RegID JobTransferFunction jobTransferFunction; Companies companies; FinanceDept financeDept; Salaries salaries; Seniority seniority; Titles titles; ERC721Enumerable regularsNFT; event Mint(uint jobId, uint indexed companyId, uint regularId); event Update(uint jobId, uint indexed companyId, uint regularId, string name); event RegularIdChange (uint256 indexed jobId, uint regId); event ResetJob (uint256 indexed jobId); constructor() ERC721("Regular Jobs", "JOBS") { _setDefaultRoyalty(msg.sender, 500); regularsNFT = ERC721Enumerable(0x6d0de90CDc47047982238fcF69944555D27Ecb25); salaries = new Salaries(address(this)); financeDept = new FinanceDept(); jobTransferFunction = new JobTransferFunction(); companies = new Companies(); seniority = new Seniority(); titles = new Titles(address(seniority)); financeDept.setJobsByAddr(address(this)); financeDept.setSalariesByAddr(address(salaries)); _grantRole(DEFAULT_ADMIN_ROLE, msg.sender); _grantRole(MINTER_ROLE, msg.sender); _grantRole(MINTER_ROLE, address(financeDept)); _grantRole(MINTER_ROLE, address(jobTransferFunction)); } // Primary Functions function safeMint(address _to, uint _regId) public { require(regularsNFT.ownerOf(_regId) == _to, "Not your Regular"); require(!minted[_regId], "Already claimed"); require(mintOpen, "Not minting"); require(!hasJob(_regId),"Reg is working another job"); minted[_regId] = true; (uint _jobId, uint _companyId) = companies.makeNewJob(_regId); timestamps[_jobId] = block.timestamp; companyIds[_jobId] = _companyId; regIds[_jobId] = _regId; jobByRegId[_regId] = _jobId; if (companies.isManager(_regId)){ // set Managers as seniority 2 if (seniority.level(_jobId) == 0) seniority.setLevel(_jobId,2); else seniority.incrementLevel(_jobId); } _safeMint(_to, _jobId); emit Mint(_jobId, _companyId, _regId); } function setRegularId(uint _jobId, uint _regId) public { require(ownerOf(_jobId) == msg.sender, "Not owner of this job."); require(regularsNFT.ownerOf(_regId) == msg.sender, "Not owner of Regular"); require(regIds[_jobId] != _regId, "This reg already assigned to this job"); require(hasJob(_regId) == false, "This reg already assigned to another job"); uint _prevRegId = regIds[_jobId]; regIds[_jobId] = _regId; jobByRegId[_prevRegId] = 0; jobByRegId[_regId] = _jobId; timestamps[_jobId] = block.timestamp; emit RegularIdChange(_jobId, _regId); } function unassignRegularId(uint _jobId) public { require(ownerOf(_jobId) == msg.sender, "Not owner of this job."); uint _oldRegId = regIds[_jobId]; regIds[_jobId] = 10000; jobByRegId[_oldRegId] = 0; // SAVE REG -> JOB timestamps[_jobId] = block.timestamp; emit ResetJob(_jobId); } function safeMintMany(address _to, uint[] memory _regIds) public { for (uint i; i< _regIds.length;i++){ safeMint(_to, _regIds[i]); } } // Admin Functions function toggleMinting() public onlyRole(MINTER_ROLE) { mintOpen = !mintOpen; } function setBaseURI(string memory _newPath) public onlyRole(MINTER_ROLE) { baseURI = _newPath; } // Other MINTER_ROLE Functions function resetJob(uint _jobId) public onlyRole(MINTER_ROLE) { uint _oldRegId = regIds[_jobId]; regIds[_jobId] = 10000; // There is no #10,000 jobByRegId[_oldRegId] = 0; timestamps[_jobId] = block.timestamp; // Reset timestamp emit ResetJob(_jobId); } function setTimestamp(uint _jobId, uint _timestamp) public onlyRole(MINTER_ROLE) { timestamps[_jobId] = _timestamp; } function setCompany(uint _jobId, uint _companyId) external onlyRole(MINTER_ROLE){ companyIds[_jobId] = _companyId; } function setRegId(uint _jobId, uint _regId) external onlyRole(MINTER_ROLE){ regIds[_jobId] = _regId; } function setJobByRegId(uint _regId, uint _jobId) public onlyRole(MINTER_ROLE) { jobByRegId[_regId] = _jobId; } // View Functions function sameOwner(uint _jobId) public view returns (bool) { return ownerOf(_jobId) == ownerOfReg(regIds[_jobId]); } function getTimestamp(uint _jobId) public view returns (uint) { require(_exists(_jobId), "Query for nonexistent token"); return timestamps[_jobId]; } function getCompanyId(uint _jobId) public view returns (uint) { require(_exists(_jobId), "Query for nonexistent token"); return companyIds[_jobId]; } function getRegId(uint _jobId) public view returns (uint) { require(_exists(_jobId), "Query for nonexistent token"); return regIds[_jobId]; } function isUnassigned(uint _jobId) public view returns (bool) { require(_exists(_jobId), "Query for nonexistent token"); return regIds[_jobId] == 10000; } function getJobByRegId(uint _regId) public view returns (uint) { return jobByRegId[_regId]; } function hasJob(uint _regId) public view returns (bool) { return jobByRegId[_regId] != 0; } function getJobFullDetails(uint _jobId) public view returns (uint, uint, uint, string memory, uint, string memory){ require(_exists(_jobId), "Query for nonexistent token"); uint _salary = salaries.salary(_jobId); uint _regId = regIds[_jobId]; uint _companyId = companyIds[_jobId]; string memory _companyName = companies.getName(_companyId); uint _seniority = seniority.level(_jobId); string memory _title = titles.title(_jobId); return (_salary, _regId, _companyId, _companyName, _seniority, _title); } // function with external calls function getBaseSalary(uint _companyId) public view returns (uint) { return companies.getBaseSalary(_companyId); } function getCompanyName(uint _companyId) public view returns (string memory) { return companies.getName(_companyId); } function getSpread(uint _companyId) public view returns (uint) { return companies.getSpread(_companyId); } function getCapacity(uint _companyId) public view returns (uint) { return companies.getCapacity(_companyId); } function getSalary(uint _jobId) public view returns (uint) { require(_exists(_jobId), "Query for nonexistent token"); return salaries.salary(_jobId); } function getSeniorityLevel(uint _jobId) public view returns (uint) { // require(_exists(_jobId), "Query for nonexistent token"); return seniority.level(_jobId); } function title(uint _jobId) public view returns (string memory) { require(_exists(_jobId), "Query for nonexistent token"); return titles.title(_jobId); } function ownerOfReg(uint _regId) public view returns (address) { return regularsNFT.ownerOf(_regId); } // Setting and getting contract addresses // setting function setContractAddr(string memory _contractName, address _addr) public onlyRole(MINTER_ROLE){ bytes memory _contract = bytes(_contractName); if (keccak256(_contract) == keccak256(bytes("JobTransferFunction"))) { jobTransferFunction = JobTransferFunction(_addr); } else if (keccak256(_contract) == keccak256(bytes("Companies"))) { companies = Companies(_addr); } else if (keccak256(_contract) == keccak256(bytes("FinanceDept"))) { financeDept = FinanceDept(_addr); } else if (keccak256(_contract) == keccak256(bytes("Seniority"))) { seniority = Seniority(_addr); } else if (keccak256(_contract) == keccak256(bytes("Titles"))) { titles = Titles(_addr); } else if (keccak256(_contract) == keccak256(bytes("Salaries"))) { salaries = Salaries(_addr); } else revert("No match found"); } // getting function getContractAddr(string memory _contractName) public view returns (address) { bytes memory _contract = bytes(_contractName); if (keccak256(_contract) == keccak256(bytes("JobTransferFunction"))) { return address(jobTransferFunction); } else if (keccak256(_contract) == keccak256(bytes("Companies"))) { return address(companies); } else if (keccak256(_contract) == keccak256(bytes("FinanceDept"))) { return address(financeDept); } else if (keccak256(_contract) == keccak256(bytes("Seniority"))) { return address(seniority); } else if (keccak256(_contract) == keccak256(bytes("Titles"))) { return address(titles); } else if (keccak256(_contract) == keccak256(bytes("Salaries"))) { return address(salaries); } else revert("None found"); } function setDefaultRoyalty(address _receiver, uint96 feeNumerator) public onlyRole(MINTER_ROLE){ super._setDefaultRoyalty(_receiver, feeNumerator); } // Overrides function tokenURI(uint256 tokenId) public view override(ERC721) returns (string memory) { require(_exists(tokenId), "Query for nonexistent token"); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal override(ERC721) { if (from != address(0)){ // if not minting, then reset on transfer jobTransferFunction.jobTransfer(from,to,tokenId); } super._beforeTokenTransfer(from, to, tokenId); } function supportsInterface(bytes4 interfaceId) public view override(ERC721, AccessControl, ERC721Royalty) returns (bool) { return super.supportsInterface(interfaceId); } function _burn(uint256 tokenId) internal override(ERC721, ERC721Royalty) { super._burn(tokenId); } // Proxy Methods function allRegularsByAddress(address _wallet) public view returns(uint[] memory){ uint[] memory nfts = new uint[](regularsNFT.balanceOf(_wallet)); for (uint i = 0; i < nfts.length;i++){ nfts[i] = regularsNFT.tokenOfOwnerByIndex(_wallet, i); } return nfts; } // Should we set a limit here? function unmintedByAddress(address _wallet) public view returns(uint[] memory){ uint unmintedCount = 0; // scan through all regs and count the unminted ones for (uint i = 0; i < regularsNFT.balanceOf(_wallet);i++){ uint _regId = regularsNFT.tokenOfOwnerByIndex(_wallet, i); if (!minted[_regId]) unmintedCount++; } // add unminted to the array uint[] memory nfts = new uint[](unmintedCount); for (uint i = 0; i < nfts.length;i++){ uint _regId = regularsNFT.tokenOfOwnerByIndex(_wallet, i); if (!minted[_regId]) nfts[i] = _regId; } return nfts; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.2; /** * @title Transfer Function v1.0 */ import "@openzeppelin/contracts/access/AccessControl.sol"; // This function is called when a Job NFT is transferred interface JobsInterface { function resetJob(uint _jobId) external; } contract JobTransferFunction is AccessControl { bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); address jobsAddress; constructor() { _grantRole(DEFAULT_ADMIN_ROLE, tx.origin); _grantRole(MINTER_ROLE, tx.origin); _grantRole(MINTER_ROLE, msg.sender); jobsAddress = msg.sender; } function jobTransfer(address from, address to, uint256 tokenId) public onlyRole(MINTER_ROLE) { JobsInterface(jobsAddress).resetJob(tokenId); } }
pragma solidity ^0.8.12; // SPDX-License-Identifier: MIT /** * @title Regular Companies v1.0 */ import "./Random.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; // "special" companies are for a set of Regular IDs that share a trait, like McD's workers // "not-special" companies get assigned to regular IDs randomly. contract Companies is AccessControl { using Random for Random.Manifest; bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); uint public constant SALARY_DECIMALS = 2; uint public SALARY_MULTIPLIER = 100; // basis points struct Company { uint128 baseSalary; uint128 capacity; } Company[60] companies; // Companies by ID uint16[60] indexes; // the starting index of the company in array of job IDs uint16[60] counts; Random.Manifest private mainDeck; // Card deck for non-special companies mapping(uint => Random.Manifest) private specialDecks; // Card decks for special companies mapping(uint => uint) private specialCompanyIds; // Company ID by special reg ID uint specialCompanyIdFlag; // Company ID for the first special company in the array uint[] _tempArray; // used for parsing special IDs mapping(uint => bool) managerIds; // IDs of all McD's manager regs mapping(uint => string) names; // Company Names event jobIDCreated (uint256 regularId, uint newJobId, uint companyId, address sender); constructor() { _grantRole(DEFAULT_ADMIN_ROLE, tx.origin); _grantRole(MINTER_ROLE, tx.origin); _grantRole(MINTER_ROLE, msg.sender); // Save Names names[0] = "RNN News"; names[1] = "AAAARP"; names[2] = "Petstore"; names[3] = "Foodtime"; names[4] = "Hats"; names[5] = "Bed Bath & Bodyworks"; names[6] = "Bugs Inc."; names[7] = "Autoz"; names[8] = "Office Dept."; names[9] = "Express"; names[10] = "Totally Wine"; names[11] = "Y'all"; names[12] = "5 O'clockville"; names[13] = "Nrfthrup Grrmng"; names[14] = "Mall Corp."; names[15] = "Ice Creams"; names[16] = "Thanky Candles"; names[17] = "Hotella"; names[18] = "Berkshire Thataway"; names[19] = "Kopies"; names[20] = "Sprayers"; names[21] = "'Onuts"; names[22] = "Tax Inc."; names[23] = "Khols"; names[24] = "Black Pebble"; names[25] = "Haircuts Inc."; names[26] = "Global Gas"; names[27] = "Block"; names[28] = "Eyeglasses"; names[29] = "Books & Mags"; names[30] = "Meme"; names[31] = "Coin"; names[32] = "Wonder"; names[33] = "iSecurity"; names[34] = "Dairy Lady"; names[35] = "Big Deal MGMT"; names[36] = "Spotlight Talent"; names[37] = "Rock Solid Insurance"; names[38] = "Safe Shield Insurance"; names[39] = "Bit"; names[40] = "Whoppy Jrs."; names[41] = "WGMI Inc."; names[42] = "Global International"; names[43] = "N.E.X.T. Rugs"; names[44] = "Alpha Limited"; names[45] = "Best Shack"; names[46] = "Partners & Partners"; names[47] = "Boss E-systems"; names[48] = "Blockbusters"; names[49] = "Hexagon Research Group"; names[50] = "Crabby Shack"; names[51] = "Dollar Store"; names[52] = "UP Only"; names[53] = "Frito Pay"; names[54] = "Hot Pockets"; names[55] = "Spooky"; names[56] = "GM"; names[57] = "McDanny's"; names[58] = "Wendy's"; names[59] = "Party Place"; // Init companies companies[0] = Company({ capacity : 212, baseSalary : 1950 }); companies[1] = Company({ capacity : 350, baseSalary : 1300 }); companies[2] = Company({ capacity : 120, baseSalary : 3725 }); companies[3] = Company({ capacity : 144, baseSalary : 3175 }); companies[4] = Company({ capacity : 168, baseSalary : 2375 }); companies[5] = Company({ capacity : 160, baseSalary : 2475 }); companies[6] = Company({ capacity : 100, baseSalary : 4400 }); companies[7] = Company({ capacity : 184, baseSalary : 2200 }); companies[8] = Company({ capacity : 500, baseSalary : 1025 }); companies[9] = Company({ capacity : 188, baseSalary : 2150 }); companies[10] = Company({ capacity : 140, baseSalary : 3250 }); companies[11] = Company({ capacity : 96, baseSalary : 4575 }); companies[12] = Company({ capacity : 50, baseSalary : 7550 }); companies[13] = Company({ capacity : 192, baseSalary : 2100 }); companies[14] = Company({ capacity : 92, baseSalary : 4750 }); companies[15] = Company({ capacity : 156, baseSalary : 2525 }); companies[16] = Company({ capacity : 176, baseSalary : 2275 }); companies[17] = Company({ capacity : 148, baseSalary : 3100 }); companies[18] = Company({ capacity : 200, baseSalary : 2050 }); companies[19] = Company({ capacity : 136, baseSalary : 3350 }); companies[20] = Company({ capacity : 204, baseSalary : 2000 }); companies[21] = Company({ capacity : 104, baseSalary : 4250 }); companies[22] = Company({ capacity : 218, baseSalary : 1900 }); companies[23] = Company({ capacity : 57, baseSalary : 6675 }); companies[24] = Company({ capacity : 196, baseSalary : 2075 }); companies[25] = Company({ capacity : 206, baseSalary : 2000 }); companies[26] = Company({ capacity : 210, baseSalary : 1950 }); companies[27] = Company({ capacity : 88, baseSalary : 4950 }); companies[28] = Company({ capacity : 214, baseSalary : 1925 }); companies[29] = Company({ capacity : 242, baseSalary : 1750 }); companies[30] = Company({ capacity : 124, baseSalary : 3625 }); companies[31] = Company({ capacity : 164, baseSalary : 2425 }); companies[32] = Company({ capacity : 116, baseSalary : 3850 }); companies[33] = Company({ capacity : 180, baseSalary : 2225 }); companies[34] = Company({ capacity : 172, baseSalary : 2325 }); companies[35] = Company({ capacity : 132, baseSalary : 3425 }); companies[36] = Company({ capacity : 152, baseSalary : 3025 }); companies[37] = Company({ capacity : 450, baseSalary : 1100 }); companies[38] = Company({ capacity : 600, baseSalary : 900 }); companies[39] = Company({ capacity : 112, baseSalary : 3975 }); companies[40] = Company({ capacity : 65, baseSalary : 5900 }); companies[41] = Company({ capacity : 76, baseSalary : 5500 }); companies[42] = Company({ capacity : 80, baseSalary : 5400 }); companies[43] = Company({ capacity : 84, baseSalary : 5150 }); companies[44] = Company({ capacity : 290, baseSalary : 1500 }); companies[45] = Company({ capacity : 108, baseSalary : 4100 }); companies[46] = Company({ capacity : 276, baseSalary : 1575 }); companies[47] = Company({ capacity : 400, baseSalary : 1200 }); companies[48] = Company({ capacity : 53, baseSalary : 7150 }); companies[49] = Company({ capacity : 300, baseSalary : 1475 }); companies[50] = Company({ capacity : 69, baseSalary : 5875 }); companies[51] = Company({ capacity : 72, baseSalary : 5650 }); companies[52] = Company({ capacity : 208, baseSalary : 1975 }); companies[53] = Company({ capacity : 128, baseSalary : 3525 }); companies[54] = Company({ capacity : 73, baseSalary : 5575 }); // Specials companies // 55 Spooky _tempArray = [ 379, 391, 874, 1004, 1245, 1258, 1398, 1584, 1869, 1940, 1952, 2269, 2525, 2772, 3055, 3455, 3472, 3541, // 30 Clowns 3544, 3607, 3617, 4103, 4117, 4149, 4195, 4230, 4425, 5065, 5101, 5188, 4, 27, 48, 101, 136, 143, 157, 165, 172, 175, 226, 277, 388, 389, 418, 420, 444, 457, 493, 516, 518, // 31 Heavy Makeup 610, 638, 679, 681, 703, 743, 784, 867, 917, 959 ]; parseSpecialRegIDs(55,_tempArray, 6250); // 56 GM _tempArray = [ 4466, 4684, 5342, 5437, 5932, 6838, 8043, 1175, 1274, 2005, 2497, 2592, 3063, 3285, 3300, 3316, // 32 Devils 3454, 3983, 4541, 4856, 5171, 5219, 5265, 6643, 6719, 6982, 7147, 7303, 8012, 8944, 9644, 9822, 1013, 1032, 1042, 1084, 1127, 1142, 1196, 1234, 1279, 1295, 1296, 1297, 1310, 1323, 1356, 1390, 1405 // 17 Heavy makeup ]; parseSpecialRegIDs(56,_tempArray, 7700); // 57 McDanny's _tempArray = [ 1617, 1808, 2149, 2632, 2833, 2847, 3301, 3524, 4822, 5139, 5735, 5906, 5946, 6451, 6663, 6762, 6831, // McD's Workers + Managers 7278, 7519, 8365, 9434, 64, 488, 642, 946, 1014, 1650, 1823, 1949, 2178, 2593, 2992, 3070, 3331, 3745, 3944, 3961, 4030, 4070, 4090, 4197, 4244, 4719, 5551, 5761, 5779, 5895, 6044, 6048, 6276, 6599, 6681, 6832, 6873, 6889, 7124, 7550, 7975, 8130, 8579, 8599, 8689, 8784, 8794, 8903, 9053, 9205, 9254, 9407, 9994 ]; parseSpecialRegIDs(57,_tempArray, 8250); // 58 Wendy's _tempArray = [ 317, 456, 878, 1588, 2702, 2974, 3047, 3224, 3308, 3441, 4082, 4107, 5490, 5574, 5622, 6232, 6317, // Wendys Workers 6350, 6404, 6539, 7654, 7947, 7961, 8248, 8400, 8437, 8643, 8667, 8728, 9221, 9611, 9709, 9754, 9950 ]; parseSpecialRegIDs(58,_tempArray, 7900); // 59 Party Place - 25 Clowns + 26 heavy makeup _tempArray = [ 5494, 5845, 6016, 6042, 6073, 6109, 6436, 6649, 7092, 7574, 7863, 8077, 8110, 8326, 8359, 8480, 8629, // 25 Clowns 8825, 9303, 9319, 9339, 9770, 9800, 9858, 9870, 1440, 1482, 1566, 1596, 1598, 1660, 1663, 1695, 1700, // 26 heavy makeup 1708, 1905, 1929, 1986, 2018, 2026, 2037, 2067, 2097, 2125, 2148, 2176, 2207, 2247, 2262, 2347, 2494 ]; parseSpecialRegIDs(59,_tempArray, 7425); // McD's managers // These Ids are only used for seniority level bonus, on mint _tempArray = [1617, 1808, 2149, 2632, 2833, 2847, 3301, 3524, 4822, 5139, 5735, 5906, 5946, 6451, 6663, // 21 Managers 6762, 6831, 7278, 7519, 8365, 9434 ]; for (uint i = 0;i < _tempArray.length;i++){ managerIds[_tempArray[i]] = true; } // specialCompanyIdFlag = 55; uint jobCountNotSpecial = 0; for (uint i = 0; i < specialCompanyIdFlag; i++) { jobCountNotSpecial += companies[i].capacity; } mainDeck.setup(jobCountNotSpecial); uint jobCountSpecial = 0; for (uint i = specialCompanyIdFlag; i < numCompanies(); i++) { jobCountSpecial += companies[i].capacity; } uint _startIndex = 0; for (uint i = 0; i < numCompanies(); i++) { indexes[i] = uint16(_startIndex); _startIndex += companies[i].capacity; } } // Admin Functions function makeNewJob(uint _regularId) public onlyRole(MINTER_ROLE) returns (uint, uint) { uint _pull; uint _specialCompanyId = specialCompanyIds[_regularId]; uint _newJobId; if (_specialCompanyId == 0) { // If Regular id is NOT special _pull = mainDeck.draw(); uint _companyId = getCompanyId(_pull); counts[_companyId]++; emit jobIDCreated(_regularId, add1(_pull), _companyId, msg.sender); return (add1(_pull), _companyId); } else { // If Regular id IS special _pull = specialDecks[_specialCompanyId].draw(); _newJobId = _pull + indexes[_specialCompanyId]; counts[_specialCompanyId]++; emit jobIDCreated(_regularId, add1(_newJobId), _specialCompanyId, msg.sender); return (add1(_newJobId), _specialCompanyId); } } function updateCompany(uint _companyId, uint128 _baseSalary, string memory _name) public onlyRole(MINTER_ROLE) { companies[_companyId].baseSalary = _baseSalary; names[_companyId] = _name; } function setSalaryMultiplier(uint _basispoints) public onlyRole(MINTER_ROLE) { SALARY_MULTIPLIER = _basispoints; } // View Functions function getCount(uint _companyId) public view returns (uint) { return counts[_companyId]; } function getBaseSalary(uint _companyId) public view returns (uint) { return companies[_companyId].baseSalary * SALARY_MULTIPLIER / 100; } function getSpread(uint _companyId) public pure returns (uint) { uint _nothing = 12345; return uint(keccak256(abi.encodePacked(_companyId + _nothing))) % 40; } function getCapacity(uint _companyId) public view returns (uint) { return companies[_companyId].capacity; } function numCompanies() public view returns (uint) { return companies.length; } function isManager(uint _regId) public view returns (bool) { return managerIds[_regId]; } function maxJobIds() public view returns (uint) { uint _total = 0; for (uint i = 0; i < numCompanies(); i++) { _total += companies[i].capacity; } return _total; } function getName(uint _companyId) public view returns (string memory) { return names[_companyId]; } // Internal function getCompanyId(uint _jobId) internal view returns (uint) { uint _numCompanies = companies.length; uint i; for (i = 0; i < _numCompanies -1; i++) { if (_jobId >= indexes[i] && _jobId < indexes[i+1]) break; } return i; } function parseSpecialRegIDs(uint _companyId, uint[] memory _ids, uint _baseSalary) internal { for (uint i = 0;i < _ids.length; i++) { specialCompanyIds[_ids[i]] = _companyId; } companies[_companyId] = Company({ capacity : uint128(_ids.length), baseSalary : uint128(_baseSalary) }); specialDecks[_companyId].setup(_ids.length); } function add1(uint _x) internal pure returns (uint) { return _x + 1; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.12; /** * @title Regular Seniority v1.0 */ import "@openzeppelin/contracts/access/AccessControl.sol"; contract Seniority is AccessControl { bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); uint public MAX_LEVELS = 5; mapping(uint => uint) private levels; event LevelUpdate (uint _tokenId, uint _newLevel); constructor() { _grantRole(DEFAULT_ADMIN_ROLE, msg.sender); _grantRole(MINTER_ROLE, msg.sender); _grantRole(DEFAULT_ADMIN_ROLE, tx.origin); _grantRole(MINTER_ROLE, tx.origin); } function level(uint _jobID) public view returns (uint) { // jobs start with level 0 or 1, based on a cointoss; return levels[_jobID] + cointoss(_jobID); } // Admin function incrementLevel(uint _jobID) public onlyRole(MINTER_ROLE) { require(level(_jobID) < MAX_LEVELS, "At max level"); levels[_jobID] += 1; emit LevelUpdate(_jobID, level(_jobID)); } function setLevel(uint _jobID, uint _newLevel) public onlyRole(MINTER_ROLE) { require(_newLevel <= MAX_LEVELS, "Level too high"); levels[_jobID] = _newLevel; emit LevelUpdate(_jobID, level(_jobID)); } function setMaxLevels(uint _newMax) public onlyRole(MINTER_ROLE) { MAX_LEVELS = _newMax; } // Internal function cointoss(uint _num) internal pure returns (uint){ return (uint(keccak256(abi.encodePacked(_num))) % 2); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.12; /** * @title Regular Titles v1.0 */ import "./Seniority.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; // TO-DO: Titles still exceed the max chars contract Titles is AccessControl { bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); uint public constant MAX_LEVELS = 5; uint public MAX_CHARS = 28; mapping(uint => string) private customs; mapping(uint => bool) public customExists; Seniority seniority; event SeniorityUpdate (uint _tokenId, uint _newLevel, string _newPrefix); event TitleUpdate (uint _tokenId, string _newTitle); // define values string[] private entryLevelTitles = [ "Asst.", "Asst. to", "Jr." ]; string[] private PRE = [ "Entry Level", "", "Lead", "Sr.", "VP", "Chief" ]; string[] private A = [ // "Night-shift", "Office", "Account", "Program", "Project", "Regional", "Branch" ]; string[] private B = [ "Department", "Team", "Facilities", "Compliance", "Mailroom", "Finance", "Sales", "Marketing", "IT", "HR", "Operations", "Community", "Business", "Technical", "Helpdesk", "Custodial", "Data-Entry" ]; string[] private C = [ "Officer", "Accountant", "Associate", "Leader", "Clerk", "Administrator", "Consultant", "Coordinator", "Inspector", "Rep.", "Support", "Auditor", "Specialist", "Analyst", "Executive", "Controller", "Programmer", "Developer", "Support", "Professional", "Salesperson", "Receptionist" ]; // constructor(address _addr) { _grantRole(DEFAULT_ADMIN_ROLE, msg.sender); _grantRole(DEFAULT_ADMIN_ROLE, tx.origin); _grantRole(MINTER_ROLE, msg.sender); _grantRole(MINTER_ROLE, tx.origin); seniority = Seniority(_addr); } // Public View function title(uint _jobID) public view returns (string memory) { if (customExists[_jobID]) return (customs[_jobID]); string memory _prefix = titlePrefix(_jobID); string memory _a; string memory _b; string memory _c; (_a,_b,_c) = titleSeperated(_jobID); bool _isAssistant = keccak256(abi.encodePacked((_prefix))) == keccak256(abi.encodePacked((entryLevelTitles[0]))); bool _makeSuffix = (_isAssistant && cointoss(_jobID + 10000)); // move "assistant" to end, half the time // shorten job if it's bigger than max characters uint _jobLength = bytes(_prefix).length + bytes(_a).length + bytes(_b).length + bytes(_c).length + 3; // add 3 characters for spaces if (_jobLength > MAX_CHARS) { // reduce number of words if (cointoss(_jobID)){ if (_makeSuffix) return myConcat(_b,_c,_prefix,""); else return myConcat(_prefix,_b,_c,""); } else { if (_makeSuffix) return myConcat(_a, _c, _prefix, ""); else return myConcat(_prefix,_a, _c, ""); } } else { if (_makeSuffix) return myConcat(_a, _b, _c, titlePrefix(_jobID)); else return myConcat(titlePrefix(_jobID),_a, _b, _c); } } function level(uint _jobID) public view returns (uint) { return seniority.level(_jobID); } // Admin function setCustomTitle(uint _jobID, string memory _newTitle) public onlyRole(MINTER_ROLE) { customs[_jobID] = _newTitle; customExists[_jobID] = true; emit TitleUpdate(_jobID,_newTitle); } function setMaxChars(uint _newMax) public onlyRole(MINTER_ROLE) { MAX_CHARS = _newMax; } // Contract Management function seniorityContractAddress() public view returns (address) { return address(seniority); } function setSeniorityContractAddr(address _addr) public onlyRole(MINTER_ROLE) { seniority = Seniority(_addr); } // internal function titleSeperated(uint _jobID) internal view returns (string memory,string memory,string memory) { uint _a = uint(keccak256(abi.encodePacked(_jobID))) % A.length; uint _b = uint(keccak256(abi.encodePacked(_jobID,"abc"))) % B.length; uint _c = uint(keccak256(abi.encodePacked(_jobID,"def"))) % C.length; return (A[_a],B[_b],C[_c]); } function myConcat(string memory s1, string memory s2, string memory s3, string memory s4) internal pure returns (string memory) { string memory result; if (bytes(s1).length > 0) result = string.concat(s1, " ", s2," ", s3); else result = string.concat(s2," ", s3); if (bytes(s4).length > 0) result = string.concat(result, " ", s4); return result; } function titlePrefix(uint _jobID) internal view returns (string memory) { if (level(_jobID) == 0) { uint _x = uint(keccak256(abi.encodePacked(_jobID))) % entryLevelTitles.length; return entryLevelTitles[_x]; } else if (level(_jobID) == 1) { return ""; } else { return PRE[level(_jobID)]; } } function cointoss(uint _num) internal pure returns (bool){ return (uint(keccak256(abi.encodePacked(_num))) % 2 == 0); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.12; /** * @title SalaryDept v1.0 * * This contract determines salaries + pay schedule * * @dev * - Upon deployment * - constructor requires address of Jobs contract * - Set minter role to Jobs contract for FinanceDept address * - Set minter role to RegularToken ERC20 contract for FinaceDept address */ import "./Salaries.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/utils/math/Math.sol"; interface JobsI { function setTimestamp(uint _jobId, uint _timestamp) external; function sameOwner(uint _jobId) external view returns (bool); function getTimestamp(uint _jobId) external view returns (uint); function getCompanyId(uint _jobId) external view returns (uint); function getRegId(uint _jobId) external view returns (uint); function isUnassigned(uint _jobId) external view returns (bool); function getCapacity(uint _companyId) external view returns (uint); function ownerOfReg(uint _regId) external view returns (address); function ownerOf(uint _jobId) external view returns (address); } contract FinanceDept is AccessControl, Pausable { bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); uint public payDuration = 1 weeks; uint public maxClaimTime = 10 weeks; IERC20 regularsToken; JobsI jobs; Salaries salaries; event ClaimedSalary (address wallet, uint amount); event ClaimedSalaries (address wallet, uint amount); constructor() { _grantRole(DEFAULT_ADMIN_ROLE, tx.origin); _grantRole(MINTER_ROLE, msg.sender); _grantRole(MINTER_ROLE, tx.origin); regularsToken = IERC20(0x78b5C6149C87c82EDCffC73C230395abbc56DdD5); } // GET SALARIES function unclaimedDuration(uint _jobId) public view returns (uint) { uint _duration = block.timestamp - jobs.getTimestamp(_jobId); return Math.min(_duration, maxClaimTime); } function unclaimedByJob(uint _jobId) public view returns (uint) { return salaries.salary(_jobId) * unclaimedDuration(_jobId) / payDuration; } function unclaimedByCompany(uint[] memory _jobIds) public view returns (uint) { uint _companyId = jobs.getCompanyId(_jobIds[0]); uint _combinedSalaries = 0; uint i; for (i = 0; i < _jobIds.length;i++){ uint _jobId = _jobIds[i]; require(jobs.getCompanyId(_jobId) == _companyId, "Not all same company id"); _combinedSalaries += unclaimedByJob(_jobId); } return salaries.teamworkBonus(_combinedSalaries, _jobIds.length, jobs.getCapacity(_companyId)); } function unclaimedAll(uint[] memory _jobIds) public view returns (uint) { return 100; } // CLAIM // function claimByJob(uint _jobId) public whenNotPaused { // require(jobs.ownerOf(_jobId) == msg.sender, "Not the owner of this job"); // require(!jobs.isUnassigned(_jobId),"No reg working the job"); // require(jobs.ownerOfReg(jobs.getRegId(_jobId)) == msg.sender,"You don't own assigned reg"); // uint _amount = unclaimedByJob(_jobId); // jobs.setTimestamp(_jobId, block.timestamp); // regularsToken.mint(msg.sender,_amount); // SEND THE TOKENS! // emit ClaimedSalary(msg.sender, _amount); // } // function claimByCompany(uint[] memory _jobIds) public whenNotPaused { // must be in same company // uint _companyId = jobs.getCompanyId(_jobIds[0]); // uint _combinedSalaries = 0; // for (uint i = 0; i < _jobIds.length;i++){ // uint _jobId = _jobIds[i]; // require(jobs.getCompanyId(_jobId) == _companyId, "Not all same company id"); // require(jobs.ownerOf(_jobId) == msg.sender, "Not the owner of this job"); // require(!jobs.isUnassigned(_jobId),"No reg working the job"); // require(jobs.ownerOfReg(jobs.getRegId(_jobId)) == msg.sender,"You don't own assigned reg"); // _combinedSalaries += unclaimedByJob(_jobId); // jobs.setTimestamp(_jobId, block.timestamp); // } // // for every 1% of the company that you own, you get 10% bonus // uint _grandTotal = salaries.teamworkBonus(_combinedSalaries, _jobIds.length, jobs.getCapacity(_companyId)); // regularsToken.mint(msg.sender,_grandTotal); // SEND THE TOKENS! // emit ClaimedSalaries(msg.sender, _grandTotal); // } // function claimAll(uint[][] memory _jobIdsByCompany) public whenNotPaused { // // to-do // } // ADMIN function setMaxClaimTime(uint _maxClaimTime) public onlyRole(MINTER_ROLE) { maxClaimTime = _maxClaimTime; } function setPayDuration(uint _payDuration) public onlyRole(MINTER_ROLE) { payDuration = _payDuration; } function pause() public onlyRole(MINTER_ROLE) { _pause(); } function unpause() public onlyRole(MINTER_ROLE) { _unpause(); } // CONTRACT MANAGEMENT // set function setJobsByAddr(address _addr) public onlyRole(MINTER_ROLE){ jobs = JobsI(_addr); } function setSalariesByAddr(address _addr) public onlyRole(MINTER_ROLE){ salaries = Salaries(_addr); } function setRegularsToken(address _addr) public onlyRole(MINTER_ROLE) { regularsToken = IERC20(_addr); } // get function getRegularsTokenAddress() public view returns (address) { return address(regularsToken); } function getSalariesTokenAddress() public view returns (address) { return address(salaries); } function getJobsTokenAddress() public view returns (address) { return address(jobs); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.12; /** * @title Regular Salaries */ import "./Jobs.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/utils/math/Math.sol"; contract Salaries is AccessControl { uint public constant RANDOM_SEED = 69; uint public constant SALARY_DECIMALS = 2; uint public constant MAX_TEAMWORK_BONUS = 300; uint public SALARY_MULTIPLIER = 100; // basis points bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); Jobs jobs; constructor(address _addr) { _grantRole(DEFAULT_ADMIN_ROLE, tx.origin); _grantRole(MINTER_ROLE, msg.sender); _grantRole(MINTER_ROLE, tx.origin); jobs = Jobs(_addr); } function basepay(uint _jobId, uint _companyBase, uint _companySpread) public view returns (uint) { uint _baseSalary = _companyBase * 10 ** 18 * SALARY_MULTIPLIER / 100; uint _spread = _baseSalary * _companySpread / 100; // Spread value before randomization uint _r = uint(keccak256(abi.encodePacked(_jobId, RANDOM_SEED))) % 100; // Random integer 0-100 uint _result = _baseSalary + (_r * _spread / 100) - (_spread / 2); // return (_result / 10 ** SALARY_DECIMALS); // NOT ROUNDED return (_result * 4 / 10 ** 20) * 100 / 4 * 10 ** 16; // ROUNDED } function basepay(uint _jobId) public view returns (uint) { uint _companyId = jobs.getCompanyId(_jobId); return basepay(_jobId, companyBase(_companyId), companySpread(_companyId)); } function seniorityBonus(uint _level, uint _basePay) public pure returns (uint) { uint _bonusPercent = 0; if (_level > 0) _bonusPercent = (2 ** (_level - 1) * 10); return _bonusPercent * _basePay / 100; } function seniorityBonus(uint _jobId) public view returns (uint) { uint _seniorityLevel = jobs.getSeniorityLevel(_jobId); uint _basepay = basepay(_jobId); return seniorityBonus(_seniorityLevel, _basepay); } function salary(uint _jobId) public view returns (uint) { uint _basepay = basepay(_jobId); uint _seniorityLevel = jobs.getSeniorityLevel(_jobId); uint _seniorityBonus = seniorityBonus(_seniorityLevel, _basepay); uint _result = _basepay + _seniorityBonus; return _result; } function teamworkBonus(uint _numOwned, uint _capacity) public pure returns (uint) { // 10% bonus for every 1% of the company that you own .. total jobs owned must be > 1 // returns a percent uint _result = 0; if (_numOwned > 1) _result = (_numOwned * 100 / _capacity) * 10; return Math.min(_result,MAX_TEAMWORK_BONUS); } function teamworkBonus(uint _totalSalaries, uint _numOwned, uint _capacity) public pure returns (uint) { return _totalSalaries + (_totalSalaries * teamworkBonus(_numOwned, _capacity) / 100); } function teamworkBonus(uint[] memory _jobIds) public view returns (uint) { uint _companyId = jobs.getCompanyId(_jobIds[0]); // company IDs must match uint _totalSalaries = 0; for (uint i = 0; i < _jobIds.length;i++){ uint _jobId = _jobIds[i]; require(jobs.getCompanyId(_jobId) == _companyId, "Not all same company id"); _totalSalaries += salary(_jobId); } return teamworkBonus(_totalSalaries , _jobIds.length, jobs.getCapacity(_companyId)); } // from Jobs contract function companyBase(uint _companyId) public view returns (uint) { return jobs.getBaseSalary(_companyId); } function companySpread(uint _companyId) public view returns (uint) { return jobs.getSpread(_companyId); } // Admin function setJobsAddr(address _addr) public onlyRole(MINTER_ROLE) { jobs = Jobs(_addr); } function setSalaryMultiplier(uint _basispoints) public onlyRole(MINTER_ROLE) { SALARY_MULTIPLIER = _basispoints; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControl.sol) pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role, _msgSender()); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view virtual override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view virtual { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) { return _roles[role].adminRole; } /** * @dev 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. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev 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`. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/ERC721Royalty.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "../../common/ERC2981.sol"; import "../../../utils/introspection/ERC165.sol"; /** * @dev Extension of ERC721 with the ERC2981 NFT Royalty Standard, a standardized way to retrieve royalty payment * information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC721Royalty is ERC2981, ERC721 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721, ERC2981) returns (bool) { return super.supportsInterface(interfaceId); } /** * @dev See {ERC721-_burn}. This override additionally clears the royalty information for the token. */ function _burn(uint256 tokenId) internal virtual override { super._burn(tokenId); _resetTokenRoyalty(tokenId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a >= b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a / b + (a % b == 0 ? 0 : 1); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev 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. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev 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 granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; library Random { function random() internal view returns (bytes32) { return keccak256(abi.encodePacked(blockhash(block.number - 1), block.timestamp, msg.sender)) ; } struct Manifest { uint256[] _data; } function setup(Manifest storage self, uint256 length) internal { uint256[] storage data = self._data; require(data.length == 0, "cannot-setup-during-active-draw"); assembly { sstore(data.slot, length) } } function draw(Manifest storage self) internal returns (uint256) { return draw(self, random()); } function draw(Manifest storage self, bytes32 seed) internal returns (uint256) { uint256[] storage data = self._data; uint256 l = data.length; uint256 i = uint256(seed) % l; uint256 x = data[i]; uint256 y = data[--l]; if (x == 0) { x = i + 1; } if (y == 0) { y = l + 1; } if (i != l) { data[i] = y; } data.pop(); return x - 1; } function put(Manifest storage self, uint256 i) internal { self._data.push(i + 1); } function remaining(Manifest storage self) internal view returns (uint256) { return self._data.length; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/common/ERC2981.sol) pragma solidity ^0.8.0; import "../../interfaces/IERC2981.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC2981 is IERC2981, ERC165 { struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981 */ function royaltyInfo(uint256 _tokenId, uint256 _salePrice) external view virtual override returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: invalid receiver"); _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `tokenId` must be already minted. * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: Invalid parameters"); _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Resets royalty information for the token id back to the global default. */ function _resetTokenRoyalty(uint256 tokenId) internal virtual { delete _tokenRoyaltyInfo[tokenId]; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be payed in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC165.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol";
{ "optimizer": { "enabled": true, "runs": 1000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"jobId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"companyId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"regularId","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"jobId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"regId","type":"uint256"}],"name":"RegularIdChange","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"jobId","type":"uint256"}],"name":"ResetJob","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":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"jobId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"companyId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"regularId","type":"uint256"},{"indexed":false,"internalType":"string","name":"name","type":"string"}],"name":"Update","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_wallet","type":"address"}],"name":"allRegularsByAddress","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"companyIds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_companyId","type":"uint256"}],"name":"getBaseSalary","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_companyId","type":"uint256"}],"name":"getCapacity","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_jobId","type":"uint256"}],"name":"getCompanyId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_companyId","type":"uint256"}],"name":"getCompanyName","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_contractName","type":"string"}],"name":"getContractAddr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_regId","type":"uint256"}],"name":"getJobByRegId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_jobId","type":"uint256"}],"name":"getJobFullDetails","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"string","name":"","type":"string"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_jobId","type":"uint256"}],"name":"getRegId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_jobId","type":"uint256"}],"name":"getSalary","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_jobId","type":"uint256"}],"name":"getSeniorityLevel","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_companyId","type":"uint256"}],"name":"getSpread","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_jobId","type":"uint256"}],"name":"getTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"uint256","name":"_regId","type":"uint256"}],"name":"hasJob","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_jobId","type":"uint256"}],"name":"isUnassigned","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"jobByRegId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"minted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_regId","type":"uint256"}],"name":"ownerOfReg","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"regIds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"uint256","name":"_jobId","type":"uint256"}],"name":"resetJob","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":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_regId","type":"uint256"}],"name":"safeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256[]","name":"_regIds","type":"uint256[]"}],"name":"safeMintMany","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_jobId","type":"uint256"}],"name":"sameOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newPath","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_jobId","type":"uint256"},{"internalType":"uint256","name":"_companyId","type":"uint256"}],"name":"setCompany","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_contractName","type":"string"},{"internalType":"address","name":"_addr","type":"address"}],"name":"setContractAddr","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_regId","type":"uint256"},{"internalType":"uint256","name":"_jobId","type":"uint256"}],"name":"setJobByRegId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_jobId","type":"uint256"},{"internalType":"uint256","name":"_regId","type":"uint256"}],"name":"setRegId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_jobId","type":"uint256"},{"internalType":"uint256","name":"_regId","type":"uint256"}],"name":"setRegularId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_jobId","type":"uint256"},{"internalType":"uint256","name":"_timestamp","type":"uint256"}],"name":"setTimestamp","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":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"timestamps","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_jobId","type":"uint256"}],"name":"title","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggleMinting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_jobId","type":"uint256"}],"name":"unassignRegularId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_wallet","type":"address"}],"name":"unmintedByAddress","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60e060405260246080818152906200f79d60a03980516200002991600991602090910190620005ae565b50600a805460ff191690553480156200004157600080fd5b50604080518082018252600c81526b526567756c6172204a6f627360a01b6020808301918252835180850190945260048452634a4f425360e01b9084015281519192916200009291600291620005ae565b508051620000a8906003906020840190620005ae565b505050620000bf336101f46200040460201b60201c565b601680546001600160a01b031916736d0de90cdc47047982238fcf69944555d27ecb251790556040513090620000f5906200063d565b6001600160a01b039091168152602001604051809103906000f08015801562000122573d6000803e3d6000fd5b50601380546001600160a01b0319166001600160a01b039290921691909117905560405162000151906200064b565b604051809103906000f0801580156200016e573d6000803e3d6000fd5b50601280546001600160a01b0319166001600160a01b03929092169190911790556040516200019d9062000659565b604051809103906000f080158015620001ba573d6000803e3d6000fd5b50601080546001600160a01b0319166001600160a01b0392909216919091179055604051620001e99062000667565b604051809103906000f08015801562000206573d6000803e3d6000fd5b50601180546001600160a01b0319166001600160a01b0392909216919091179055604051620002359062000675565b604051809103906000f08015801562000252573d6000803e3d6000fd5b50601480546001600160a01b0319166001600160a01b03929092169182179055604051620002809062000683565b6001600160a01b039091168152602001604051809103906000f080158015620002ad573d6000803e3d6000fd5b50601580546001600160a01b0319166001600160a01b0392831617905560125460405163c618a87760e01b815230600482015291169063c618a87790602401600060405180830381600087803b1580156200030757600080fd5b505af11580156200031c573d6000803e3d6000fd5b505060125460135460405163030e1ed960e21b81526001600160a01b03918216600482015291169250630c387b649150602401600060405180830381600087803b1580156200036a57600080fd5b505af11580156200037f573d6000803e3d6000fd5b506200039392506000915033905062000509565b620003ae6000805160206200f7c18339815191523362000509565b601254620003d6906000805160206200f7c1833981519152906001600160a01b031662000509565b601054620003fe906000805160206200f7c1833981519152906001600160a01b031662000509565b620006e5565b6127106001600160601b0382161115620004785760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084015b60405180910390fd5b6001600160a01b038216620004d05760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c69642072656365697665720000000000000060448201526064016200046f565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600055565b60008281526008602090815260408083206001600160a01b038516845290915290205460ff16620005aa5760008281526008602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620005693390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b828054620005bc90620006a8565b90600052602060002090601f016020900481019282620005e057600085556200062b565b82601f10620005fb57805160ff19168380011785556200062b565b828001600101855582156200062b579182015b828111156200062b5782518255916020019190600101906200060e565b506200063992915062000691565b5090565b6116658062004c5683390190565b61149a80620062bb83390190565b610b15806200775583390190565b61458b806200826a83390190565b610d3a806200c7f583390190565b61226e806200d52f83390190565b5b8082111562000639576000815560010162000692565b600181811c90821680620006bd57607f821691505b60208210811415620006df57634e487b7160e01b600052602260045260246000fd5b50919050565b61456180620006f56000396000f3fe608060405234801561001057600080fd5b50600436106103995760003560e01c806380bfacc2116101e9578063bcc51dee1161010f578063d547741f116100ad578063e985e9c51161007c578063e985e9c514610899578063ea8c6bc0146108d5578063f07d1f00146108f5578063fc1244911461090857600080fd5b8063d547741f14610840578063dbc851aa14610853578063dc5ac48614610873578063e8ef3dd61461088657600080fd5b8063c87b56dd116100e9578063c87b56dd146107e0578063ce212be1146107f3578063d160c7a914610806578063d53913931461081957600080fd5b8063bcc51dee14610798578063bcd5349f146107ba578063c2c06100146107cd57600080fd5b8063981d120c11610187578063a708900711610156578063a70890071461074c578063b4707b5c1461075f578063b633620c14610772578063b88d4fde1461078557600080fd5b8063981d120c1461070b578063a14481941461071e578063a217fddf14610731578063a22cb4651461073957600080fd5b80638dd78ddb116101c35780638dd78ddb1461069257806391d14854146106b757806395d89b41146106f0578063978163e0146106f857600080fd5b806380bfacc21461064c5780638b0b98851461065f5780638bc33af31461067257600080fd5b806336568abe116102ce5780636352211e1161026c578063749a29151161023b578063749a2915146105fb5780637cc5db651461060e5780637d55094d146106215780637dc0bf3f1461062957600080fd5b80636352211e146105a25780636779658c146105b55780636f129d1e146105d557806370a08231146105e857600080fd5b806342842e0e116102a857806342842e0e14610549578063546e833f1461055c57806355f804b31461057c5780635a21ab8f1461058f57600080fd5b806336568abe1461051057806336ed4429146105235780633b68a2e21461053657600080fd5b8063242bdcde1161033b5780632a55205a116103155780632a55205a146104a55780632f2ff15d146104d757806334279062146104ea57806335a1223a146104fd57600080fd5b8063242bdcde14610454578063248a9ca31461046757806324bbd0491461049857600080fd5b8063081812fc11610377578063081812fc146103f0578063095ea7b31461041b5780631bed626b1461042e57806323b872dd1461044157600080fd5b806301ffc9a71461039e57806304634d8d146103c657806306fdde03146103db575b600080fd5b6103b16103ac366004613c3d565b610928565b60405190151581526020015b60405180910390f35b6103d96103d4366004613c6f565b610939565b005b6103e3610973565b6040516103bd9190613d11565b6104036103fe366004613d24565b610a05565b6040516001600160a01b0390911681526020016103bd565b6103d9610429366004613d3d565b610a9f565b6103d961043c366004613d24565b610bcc565b6103d961044f366004613d69565b610c59565b6103d9610462366004613daa565b610ce0565b61048a610475366004613d24565b60009081526008602052604090206001015490565b6040519081526020016103bd565b600a546103b19060ff1681565b6104b86104b3366004613daa565b610d1e565b604080516001600160a01b0390931683526020830191909152016103bd565b6103d96104e5366004613dcc565b610dd9565b6103b16104f8366004613d24565b610dff565b6103e361050b366004613d24565b610e39565b6103d961051e366004613dcc565b610f12565b6103b1610531366004613d24565b610f9e565b61048a610544366004613d24565b611019565b6103d9610557366004613d69565b6110a1565b61056f61056a366004613df1565b6110bc565b6040516103bd9190613e0e565b6103d961058a366004613f1f565b61122a565b6103d961059d366004613daa565b611268565b6104036105b0366004613d24565b6112a6565b61048a6105c3366004613d24565b6000908152600f602052604090205490565b6103d96105e3366004613daa565b611331565b61048a6105f6366004613df1565b6115cb565b6103d9610609366004613daa565b611665565b6103e361061c366004613d24565b6116a3565b6103d96116d5565b6103b1610637366004613d24565b600b6020526000908152604090205460ff1681565b61048a61065a366004613d24565b611715565b61040361066d366004613f1f565b6117aa565b61048a610680366004613d24565b600c6020526000908152604090205481565b6106a56106a0366004613d24565b611a55565b6040516103bd96959493929190613f54565b6103b16106c5366004613dcc565b60009182526008602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6103e3611cce565b61048a610706366004613d24565b611cdd565b6103d9610719366004613d24565b611d54565b6103d961072c366004613d3d565b611e15565b61048a600081565b6103d9610747366004613fac565b612303565b61048a61075a366004613d24565b61230e565b61048a61076d366004613d24565b612385565b61048a610780366004613d24565b6123b7565b6103d9610793366004613fda565b61242e565b6103b16107a6366004613d24565b6000908152600f6020526040902054151590565b61048a6107c8366004613d24565b6124bc565b6103d96107db36600461405a565b612507565b6103e36107ee366004613d24565b612822565b6103d96108013660046140a1565b6128e5565b6103d9610814366004613daa565b612926565b61048a7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b6103d961084e366004613dcc565b612964565b61048a610861366004613d24565b600e6020526000908152604090205481565b61048a610881366004613d24565b61298a565b61056f610894366004613df1565b6129d5565b6103b16108a736600461415c565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b61048a6108e3366004613d24565b600d6020526000908152604090205481565b610403610903366004613d24565b612c1e565b61048a610916366004613d24565b600f6020526000908152604090205481565b600061093382612c8c565b92915050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a66109648133612cca565b61096e8383612d4a565b505050565b6060600280546109829061418a565b80601f01602080910402602001604051908101604052809291908181526020018280546109ae9061418a565b80156109fb5780601f106109d0576101008083540402835291602001916109fb565b820191906000526020600020905b8154815290600101906020018083116109de57829003601f168201915b5050505050905090565b6000818152600460205260408120546001600160a01b0316610a835760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610aaa826112a6565b9050806001600160a01b0316836001600160a01b03161415610b345760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610a7a565b336001600160a01b0382161480610b505750610b5081336108a7565b610bc25760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610a7a565b61096e8383612e64565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610bf78133612cca565b6000828152600e602090815260408083208054612710909155808452600f8352818420849055858452600c90925280832042905551909184917f646ab6c9d803c92796837b8917e7cc2d210b06c74948e5f477b1e1e8a053d1979190a2505050565b610c633382612ed2565b610cd55760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610a7a565b61096e838383612fc9565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610d0b8133612cca565b506000918252600e602052604090912055565b60008281526001602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046bffffffffffffffffffffffff16928201929092528291610d9d5750604080518082019091526000546001600160a01b0381168252600160a01b90046bffffffffffffffffffffffff1660208201525b602081015160009061271090610dc1906bffffffffffffffffffffffff16876141d5565b610dcb919061420a565b915196919550909350505050565b600082815260086020526040902060010154610df58133612cca565b61096e83836131a1565b6000818152600e6020526040812054610e1790612c1e565b6001600160a01b0316610e29836112a6565b6001600160a01b03161492915050565b6000818152600460205260409020546060906001600160a01b0316610ea05760405162461bcd60e51b815260206004820152601b60248201527f517565727920666f72206e6f6e6578697374656e7420746f6b656e00000000006044820152606401610a7a565b601554604051631ad0911d60e11b8152600481018490526001600160a01b03909116906335a1223a906024015b600060405180830381865afa158015610eea573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610933919081019061421e565b6001600160a01b0381163314610f905760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608401610a7a565b610f9a8282613243565b5050565b6000818152600460205260408120546001600160a01b03166110025760405162461bcd60e51b815260206004820152601b60248201527f517565727920666f72206e6f6e6578697374656e7420746f6b656e00000000006044820152606401610a7a565b506000908152600e60205260409020546127101490565b6011546040517f3b68a2e2000000000000000000000000000000000000000000000000000000008152600481018390526000916001600160a01b031690633b68a2e2906024015b602060405180830381865afa15801561107d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109339190614295565b61096e8383836040518060200160405280600081525061242e565b6016546040516370a0823160e01b81526001600160a01b0383811660048301526060926000929116906370a0823190602401602060405180830381865afa15801561110b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061112f9190614295565b67ffffffffffffffff81111561114757611147613e52565b604051908082528060200260200182016040528015611170578160200160208202803683370190505b50905060005b815181101561122357601654604051632f745c5960e01b81526001600160a01b0386811660048301526024820184905290911690632f745c5990604401602060405180830381865afa1580156111d0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111f49190614295565b828281518110611206576112066142ae565b60209081029190910101528061121b816142c4565b915050611176565b5092915050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a66112558133612cca565b815161096e906009906020850190613b8b565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a66112938133612cca565b506000918252600f602052604090912055565b6000818152600460205260408120546001600160a01b0316806109335760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610a7a565b3361133b836112a6565b6001600160a01b0316146113915760405162461bcd60e51b815260206004820152601660248201527f4e6f74206f776e6572206f662074686973206a6f622e000000000000000000006044820152606401610a7a565b6016546040516331a9108f60e11b81526004810183905233916001600160a01b031690636352211e90602401602060405180830381865afa1580156113da573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113fe91906142df565b6001600160a01b0316146114545760405162461bcd60e51b815260206004820152601460248201527f4e6f74206f776e6572206f6620526567756c61720000000000000000000000006044820152606401610a7a565b6000828152600e60205260409020548114156114d85760405162461bcd60e51b815260206004820152602560248201527f546869732072656720616c72656164792061737369676e656420746f2074686960448201527f73206a6f620000000000000000000000000000000000000000000000000000006064820152608401610a7a565b6000818152600f60205260409020541561155a5760405162461bcd60e51b815260206004820152602860248201527f546869732072656720616c72656164792061737369676e656420746f20616e6f60448201527f74686572206a6f620000000000000000000000000000000000000000000000006064820152608401610a7a565b6000828152600e60209081526040808320805490859055808452600f8352818420849055848452818420869055858452600c8352928190204290555183815284917f558ee8c356e278828c9c7dd91a0e476272a0ef069ee872a5cd342acc9999896e910160405180910390a2505050565b60006001600160a01b0382166116495760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610a7a565b506001600160a01b031660009081526005602052604090205490565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a66116908133612cca565b506000918252600d602052604090912055565b601154604051631ae3fd5d60e21b8152600481018390526060916001600160a01b031690636b8ff57490602401610ecd565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a66117008133612cca565b50600a805460ff19811660ff90911615179055565b6000818152600460205260408120546001600160a01b03166117795760405162461bcd60e51b815260206004820152601b60248201527f517565727920666f72206e6f6e6578697374656e7420746f6b656e00000000006044820152606401610a7a565b60135460405163a9b6c43560e01b8152600481018490526001600160a01b039091169063a9b6c43590602401611060565b60408051808201909152601381527f4a6f625472616e7366657246756e6374696f6e0000000000000000000000000060209182015281519082012060009082907ff1d25eff255a7c967c82b7f98db88c1ec268c20a137bf1269b85b0d90befb1ba14156118245750506010546001600160a01b0316919050565b604080518082019091526009815268436f6d70616e69657360b81b6020918201528151908201207f556d8fb226267b78d084022e69cb36ce65bda0dbeee7b79550e320b9c9dd027914156118855750506011546001600160a01b0316919050565b60408051808201909152600b81526a119a5b985b98d951195c1d60aa1b6020918201528151908201207fc83456f8d98ff5795b822637ac5fc3a24e7b9118c7f241dc63c8658144e0341f14156118e85750506012546001600160a01b0316919050565b60408051808201909152600981526853656e696f7269747960b81b6020918201528151908201207f53c9dc810139d0d6979f05eb54603247f3d7cc0642602a9b40a0c45782b2b54114156119495750506014546001600160a01b0316919050565b6040805180820190915260068152655469746c657360d01b6020918201528151908201207f99bc194f29325deb6046ff7867a28f01fa037794f1eb1238b3e91f2693f83c6414156119a75750506015546001600160a01b0316919050565b60408051808201909152600881526753616c617269657360c01b6020918201528151908201207f3b72a54b553fe5d8be3eeaa471491441de0adcceaf82707c16889d84d803ff921415611a075750506013546001600160a01b0316919050565b60405162461bcd60e51b815260206004820152600a60248201527f4e6f6e6520666f756e64000000000000000000000000000000000000000000006044820152606401610a7a565b50919050565b6000806000606060006060611a81876000908152600460205260409020546001600160a01b0316151590565b611acd5760405162461bcd60e51b815260206004820152601b60248201527f517565727920666f72206e6f6e6578697374656e7420746f6b656e00000000006044820152606401610a7a565b60135460405163a9b6c43560e01b8152600481018990526000916001600160a01b03169063a9b6c43590602401602060405180830381865afa158015611b17573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b3b9190614295565b6000898152600e6020908152604080832054600d909252808320546011549151631ae3fd5d60e21b81526004810182905294955091939192916001600160a01b0390911690636b8ff57490602401600060405180830381865afa158015611ba6573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611bce919081019061421e565b6014546040516302e2c6f960e11b8152600481018e90529192506000916001600160a01b03909116906305c58df290602401602060405180830381865afa158015611c1d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c419190614295565b601554604051631ad0911d60e11b8152600481018f90529192506000916001600160a01b03909116906335a1223a90602401600060405180830381865afa158015611c90573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611cb8919081019061421e565b959d949c50929a50909850965091945092505050565b6060600380546109829061418a565b6000818152600460205260408120546001600160a01b0316611d415760405162461bcd60e51b815260206004820152601b60248201527f517565727920666f72206e6f6e6578697374656e7420746f6b656e00000000006044820152606401610a7a565b506000908152600e602052604090205490565b33611d5e826112a6565b6001600160a01b031614611db45760405162461bcd60e51b815260206004820152601660248201527f4e6f74206f776e6572206f662074686973206a6f622e000000000000000000006044820152606401610a7a565b6000818152600e602090815260408083208054612710909155808452600f8352818420849055848452600c90925280832042905551909183917f646ab6c9d803c92796837b8917e7cc2d210b06c74948e5f477b1e1e8a053d1979190a25050565b6016546040516331a9108f60e11b8152600481018390526001600160a01b03848116921690636352211e90602401602060405180830381865afa158015611e60573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e8491906142df565b6001600160a01b031614611eda5760405162461bcd60e51b815260206004820152601060248201527f4e6f7420796f757220526567756c6172000000000000000000000000000000006044820152606401610a7a565b6000818152600b602052604090205460ff1615611f395760405162461bcd60e51b815260206004820152600f60248201527f416c726561647920636c61696d656400000000000000000000000000000000006044820152606401610a7a565b600a5460ff16611f8b5760405162461bcd60e51b815260206004820152600b60248201527f4e6f74206d696e74696e670000000000000000000000000000000000000000006044820152606401610a7a565b6000818152600f602052604090205415611fe75760405162461bcd60e51b815260206004820152601a60248201527f52656720697320776f726b696e6720616e6f74686572206a6f620000000000006044820152606401610a7a565b6000818152600b6020526040808220805460ff1916600117905560115490517fd3f10c8f0000000000000000000000000000000000000000000000000000000081526004810184905282916001600160a01b03169063d3f10c8f9060240160408051808303816000875af1158015612063573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061208791906142fc565b6000828152600c60209081526040808320429055600d8252808320849055600e8252808320889055878352600f9091529081902083905560115490517fc708ed82000000000000000000000000000000000000000000000000000000008152600481018790529294509092506001600160a01b03169063c708ed8290602401602060405180830381865afa158015612123573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121479190614320565b156122b8576014546040516302e2c6f960e11b8152600481018490526001600160a01b03909116906305c58df290602401602060405180830381865afa158015612195573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121b99190614295565b612240576014546040517f70a93b3600000000000000000000000000000000000000000000000000000000815260048101849052600260248201526001600160a01b03909116906370a93b3690604401600060405180830381600087803b15801561222357600080fd5b505af1158015612237573d6000803e3d6000fd5b505050506122b8565b6014546040517fc6450a3b000000000000000000000000000000000000000000000000000000008152600481018490526001600160a01b039091169063c6450a3b90602401600060405180830381600087803b15801561229f57600080fd5b505af11580156122b3573d6000803e3d6000fd5b505050505b6122c284836132c6565b604080518381526020810185905282917f070aa035fe0a09f0d9305bdc2d7a5d93cd4733db3b1ff869b4a7033c9501909a910160405180910390a250505050565b610f9a3383836132e0565b6000818152600460205260408120546001600160a01b03166123725760405162461bcd60e51b815260206004820152601b60248201527f517565727920666f72206e6f6e6578697374656e7420746f6b656e00000000006044820152606401610a7a565b506000908152600d602052604090205490565b6014546040516302e2c6f960e11b8152600481018390526000916001600160a01b0316906305c58df290602401611060565b6000818152600460205260408120546001600160a01b031661241b5760405162461bcd60e51b815260206004820152601b60248201527f517565727920666f72206e6f6e6578697374656e7420746f6b656e00000000006044820152606401610a7a565b506000908152600c602052604090205490565b6124383383612ed2565b6124aa5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610a7a565b6124b6848484846133af565b50505050565b6011546040517fbcd5349f000000000000000000000000000000000000000000000000000000008152600481018390526000916001600160a01b03169063bcd5349f90602401611060565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a66125328133612cca565b60408051808201909152601381527f4a6f625472616e7366657246756e6374696f6e0000000000000000000000000060209182015283519084012083907ff1d25eff255a7c967c82b7f98db88c1ec268c20a137bf1269b85b0d90befb1ba14156125b657601080546001600160a01b0319166001600160a01b0385161790556124b6565b604080518082019091526009815268436f6d70616e69657360b81b6020918201528151908201207f556d8fb226267b78d084022e69cb36ce65bda0dbeee7b79550e320b9c9dd0279141561262457601180546001600160a01b0319166001600160a01b0385161790556124b6565b60408051808201909152600b81526a119a5b985b98d951195c1d60aa1b6020918201528151908201207fc83456f8d98ff5795b822637ac5fc3a24e7b9118c7f241dc63c8658144e0341f141561269457601280546001600160a01b0319166001600160a01b0385161790556124b6565b60408051808201909152600981526853656e696f7269747960b81b6020918201528151908201207f53c9dc810139d0d6979f05eb54603247f3d7cc0642602a9b40a0c45782b2b541141561270257601480546001600160a01b0319166001600160a01b0385161790556124b6565b6040805180820190915260068152655469746c657360d01b6020918201528151908201207f99bc194f29325deb6046ff7867a28f01fa037794f1eb1238b3e91f2693f83c64141561276d57601580546001600160a01b0319166001600160a01b0385161790556124b6565b60408051808201909152600881526753616c617269657360c01b6020918201528151908201207f3b72a54b553fe5d8be3eeaa471491441de0adcceaf82707c16889d84d803ff9214156127da57601380546001600160a01b0319166001600160a01b0385161790556124b6565b60405162461bcd60e51b815260206004820152600e60248201527f4e6f206d6174636820666f756e640000000000000000000000000000000000006044820152606401610a7a565b6000818152600460205260409020546060906001600160a01b03166128895760405162461bcd60e51b815260206004820152601b60248201527f517565727920666f72206e6f6e6578697374656e7420746f6b656e00000000006044820152606401610a7a565b6000600980546128989061418a565b9050116128b45760405180602001604052806000815250610933565b60096128bf8361342d565b6040516020016128d0929190614359565b60405160208183030381529060405292915050565b60005b815181101561096e5761291483838381518110612907576129076142ae565b6020026020010151611e15565b8061291e816142c4565b9150506128e8565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a66129518133612cca565b506000918252600c602052604090912055565b6000828152600860205260409020600101546129808133612cca565b61096e8383613243565b6011546040517fdc5ac486000000000000000000000000000000000000000000000000000000008152600481018390526000916001600160a01b03169063dc5ac48690602401611060565b60606000805b6016546040516370a0823160e01b81526001600160a01b038681166004830152909116906370a0823190602401602060405180830381865afa158015612a25573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a499190614295565b811015612b0057601654604051632f745c5960e01b81526001600160a01b038681166004830152602482018490526000921690632f745c5990604401602060405180830381865afa158015612aa2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ac69190614295565b6000818152600b602052604090205490915060ff16612aed5782612ae9816142c4565b9350505b5080612af8816142c4565b9150506129db565b5060008167ffffffffffffffff811115612b1c57612b1c613e52565b604051908082528060200260200182016040528015612b45578160200160208202803683370190505b50905060005b8151811015612c1657601654604051632f745c5960e01b81526001600160a01b038781166004830152602482018490526000921690632f745c5990604401602060405180830381865afa158015612ba6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612bca9190614295565b6000818152600b602052604090205490915060ff16612c035780838381518110612bf657612bf66142ae565b6020026020010181815250505b5080612c0e816142c4565b915050612b4b565b509392505050565b6016546040516331a9108f60e11b8152600481018390526000916001600160a01b031690636352211e90602401602060405180830381865afa158015612c68573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061093391906142df565b60006001600160e01b031982167f7965db0b00000000000000000000000000000000000000000000000000000000148061093357506109338261352b565b60008281526008602090815260408083206001600160a01b038516845290915290205460ff16610f9a57612d08816001600160a01b03166014613536565b612d13836020613536565b604051602001612d249291906143f7565b60408051601f198184030181529082905262461bcd60e51b8252610a7a91600401613d11565b6127106bffffffffffffffffffffffff82161115612dd05760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c2065786365656460448201527f2073616c655072696365000000000000000000000000000000000000000000006064820152608401610a7a565b6001600160a01b038216612e265760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610a7a565b604080518082019091526001600160a01b039092168083526bffffffffffffffffffffffff9091166020909201829052600160a01b90910217600055565b600081815260066020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612e99826112a6565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600460205260408120546001600160a01b0316612f4b5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a7a565b6000612f56836112a6565b9050806001600160a01b0316846001600160a01b03161480612f915750836001600160a01b0316612f8684610a05565b6001600160a01b0316145b80612fc157506001600160a01b0380821660009081526007602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316612fdc826112a6565b6001600160a01b0316146130585760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610a7a565b6001600160a01b0382166130d35760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610a7a565b6130de838383613702565b6130e9600082612e64565b6001600160a01b0383166000908152600560205260408120805460019290613112908490614478565b90915550506001600160a01b038216600090815260056020526040812080546001929061314090849061448f565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60008281526008602090815260408083206001600160a01b038516845290915290205460ff16610f9a5760008281526008602090815260408083206001600160a01b03851684529091529020805460ff191660011790556131ff3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008281526008602090815260408083206001600160a01b038516845290915290205460ff1615610f9a5760008281526008602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b610f9a82826040518060200160405280600081525061379d565b816001600160a01b0316836001600160a01b031614156133425760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610a7a565b6001600160a01b03838116600081815260076020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6133ba848484612fc9565b6133c68484848461381b565b6124b65760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610a7a565b6060816134515750506040805180820190915260018152600360fc1b602082015290565b8160005b811561347b5780613465816142c4565b91506134749050600a8361420a565b9150613455565b60008167ffffffffffffffff81111561349657613496613e52565b6040519080825280601f01601f1916602001820160405280156134c0576020820181803683370190505b5090505b8415612fc1576134d5600183614478565b91506134e2600a866144a7565b6134ed90603061448f565b60f81b818381518110613502576135026142ae565b60200101906001600160f81b031916908160001a905350613524600a8661420a565b94506134c4565b600061093382613964565b606060006135458360026141d5565b61355090600261448f565b67ffffffffffffffff81111561356857613568613e52565b6040519080825280601f01601f191660200182016040528015613592576020820181803683370190505b509050600360fc1b816000815181106135ad576135ad6142ae565b60200101906001600160f81b031916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106135f8576135f86142ae565b60200101906001600160f81b031916908160001a905350600061361c8460026141d5565b61362790600161448f565b90505b60018111156136ac577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110613668576136686142ae565b1a60f81b82828151811061367e5761367e6142ae565b60200101906001600160f81b031916908160001a90535060049490941c936136a5816144bb565b905061362a565b5083156136fb5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610a7a565b9392505050565b6001600160a01b0383161561096e576010546040517f12f96e530000000000000000000000000000000000000000000000000000000081526001600160a01b038581166004830152848116602483015260448201849052909116906312f96e5390606401600060405180830381600087803b15801561378057600080fd5b505af1158015613794573d6000803e3d6000fd5b50505050505050565b6137a783836139d6565b6137b4600084848461381b565b61096e5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610a7a565b60006001600160a01b0384163b1561395957604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061385f9033908990889088906004016144d2565b6020604051808303816000875af192505050801561389a575060408051601f3d908101601f191682019092526138979181019061450e565b60015b61393f573d8080156138c8576040519150601f19603f3d011682016040523d82523d6000602084013e6138cd565b606091505b5080516139375760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610a7a565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612fc1565b506001949350505050565b60006001600160e01b031982167f80ac58cd0000000000000000000000000000000000000000000000000000000014806139c757506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610933575061093382613b24565b6001600160a01b038216613a2c5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610a7a565b6000818152600460205260409020546001600160a01b031615613a915760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610a7a565b613a9d60008383613702565b6001600160a01b0382166000908152600560205260408120805460019290613ac690849061448f565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160e01b031982167f2a55205a00000000000000000000000000000000000000000000000000000000148061093357507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610933565b828054613b979061418a565b90600052602060002090601f016020900481019282613bb95760008555613bff565b82601f10613bd257805160ff1916838001178555613bff565b82800160010185558215613bff579182015b82811115613bff578251825591602001919060010190613be4565b50613c0b929150613c0f565b5090565b5b80821115613c0b5760008155600101613c10565b6001600160e01b031981168114613c3a57600080fd5b50565b600060208284031215613c4f57600080fd5b81356136fb81613c24565b6001600160a01b0381168114613c3a57600080fd5b60008060408385031215613c8257600080fd5b8235613c8d81613c5a565b915060208301356bffffffffffffffffffffffff81168114613cae57600080fd5b809150509250929050565b60005b83811015613cd4578181015183820152602001613cbc565b838111156124b65750506000910152565b60008151808452613cfd816020860160208601613cb9565b601f01601f19169290920160200192915050565b6020815260006136fb6020830184613ce5565b600060208284031215613d3657600080fd5b5035919050565b60008060408385031215613d5057600080fd5b8235613d5b81613c5a565b946020939093013593505050565b600080600060608486031215613d7e57600080fd5b8335613d8981613c5a565b92506020840135613d9981613c5a565b929592945050506040919091013590565b60008060408385031215613dbd57600080fd5b50508035926020909101359150565b60008060408385031215613ddf57600080fd5b823591506020830135613cae81613c5a565b600060208284031215613e0357600080fd5b81356136fb81613c5a565b6020808252825182820181905260009190848201906040850190845b81811015613e4657835183529284019291840191600101613e2a565b50909695505050505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715613e9157613e91613e52565b604052919050565b600067ffffffffffffffff821115613eb357613eb3613e52565b50601f01601f191660200190565b6000613ed4613ecf84613e99565b613e68565b9050828152838383011115613ee857600080fd5b828260208301376000602084830101529392505050565b600082601f830112613f1057600080fd5b6136fb83833560208501613ec1565b600060208284031215613f3157600080fd5b813567ffffffffffffffff811115613f4857600080fd5b612fc184828501613eff565b86815285602082015284604082015260c060608201526000613f7960c0830186613ce5565b84608084015282810360a0840152613f918185613ce5565b9998505050505050505050565b8015158114613c3a57600080fd5b60008060408385031215613fbf57600080fd5b8235613fca81613c5a565b91506020830135613cae81613f9e565b60008060008060808587031215613ff057600080fd5b8435613ffb81613c5a565b9350602085013561400b81613c5a565b925060408501359150606085013567ffffffffffffffff81111561402e57600080fd5b8501601f8101871361403f57600080fd5b61404e87823560208401613ec1565b91505092959194509250565b6000806040838503121561406d57600080fd5b823567ffffffffffffffff81111561408457600080fd5b61409085828601613eff565b9250506020830135613cae81613c5a565b600080604083850312156140b457600080fd5b82356140bf81613c5a565b915060208381013567ffffffffffffffff808211156140dd57600080fd5b818601915086601f8301126140f157600080fd5b81358181111561410357614103613e52565b8060051b9150614114848301613e68565b818152918301840191848101908984111561412e57600080fd5b938501935b8385101561414c57843582529385019390850190614133565b8096505050505050509250929050565b6000806040838503121561416f57600080fd5b823561417a81613c5a565b91506020830135613cae81613c5a565b600181811c9082168061419e57607f821691505b60208210811415611a4f57634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60008160001904831182151516156141ef576141ef6141bf565b500290565b634e487b7160e01b600052601260045260246000fd5b600082614219576142196141f4565b500490565b60006020828403121561423057600080fd5b815167ffffffffffffffff81111561424757600080fd5b8201601f8101841361425857600080fd5b8051614266613ecf82613e99565b81815285602083850101111561427b57600080fd5b61428c826020830160208601613cb9565b95945050505050565b6000602082840312156142a757600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b60006000198214156142d8576142d86141bf565b5060010190565b6000602082840312156142f157600080fd5b81516136fb81613c5a565b6000806040838503121561430f57600080fd5b505080516020909101519092909150565b60006020828403121561433257600080fd5b81516136fb81613f9e565b6000815161434f818560208601613cb9565b9290920192915050565b600080845481600182811c91508083168061437557607f831692505b602080841082141561439557634e487b7160e01b86526022600452602486fd5b8180156143a957600181146143ba576143e7565b60ff198616895284890196506143e7565b60008b81526020902060005b868110156143df5781548b8201529085019083016143c6565b505084890196505b50505050505061428c818561433d565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161442f816017850160208801613cb9565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000601791840191820152835161446c816028840160208801613cb9565b01602801949350505050565b60008282101561448a5761448a6141bf565b500390565b600082198211156144a2576144a26141bf565b500190565b6000826144b6576144b66141f4565b500690565b6000816144ca576144ca6141bf565b506000190190565b60006001600160a01b038087168352808616602084015250836040830152608060608301526145046080830184613ce5565b9695505050505050565b60006020828403121561452057600080fd5b81516136fb81613c2456fea2646970667358221220f0f8f34c3ca7a7ca509dd85872d8ecbb054885b90a3ad73be6b94fd8e1d989e764736f6c634300080c0033608060405260646001553480156200001657600080fd5b506040516200166538038062001665833981016040819052620000399162000143565b62000046600032620000a2565b620000616000805160206200164583398151915233620000a2565b6200007c6000805160206200164583398151915232620000a2565b600280546001600160a01b0319166001600160a01b039290921691909117905562000175565b6000828152602081815260408083206001600160a01b038516845290915290205460ff166200013f576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055620000fe3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6000602082840312156200015657600080fd5b81516001600160a01b03811681146200016e57600080fd5b9392505050565b6114c080620001856000396000f3fe608060405234801561001057600080fd5b50600436106101985760003560e01c80639acc1e4f116100e3578063b02312b71161008c578063d547741f11610066578063d547741f14610364578063d56af6e814610377578063f6f014611461038a57600080fd5b8063b02312b714610321578063b9ff16be14610334578063d53913931461033d57600080fd5b8063a217fddf116100bd578063a217fddf146102f3578063a9b6c435146102fb578063af68e4091461030e57600080fd5b80639acc1e4f146102ba5780639bd5790c146102cd5780639fd156af146102e057600080fd5b8063592799021161014557806373e3f4361161011f57806373e3f4361461026757806391d148541461027a57806396c47089146102b157600080fd5b806359279902146102395780636b8d01c61461024c578063738f1d961461025f57600080fd5b8063363220ae11610176578063363220ae1461020b57806336568abe1461021e57806348b739841461023157600080fd5b806301ffc9a71461019d578063248a9ca3146101c55780632f2ff15d146101f6575b600080fd5b6101b06101ab366004610fdf565b61039d565b60405190151581526020015b60405180910390f35b6101e86101d3366004611021565b60009081526020819052604090206001015490565b6040519081526020016101bc565b610209610204366004611056565b610436565b005b610209610219366004611082565b610461565b61020961022c366004611056565b6104c7565b6101e8600281565b6101e861024736600461109d565b610558565b6101e861025a3660046110c9565b61058c565b6101e8604581565b6101e8610275366004611021565b6105cf565b6101b0610288366004611056565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b6101e860015481565b6102096102c8366004611021565b610657565b6101e86102db366004611021565b610688565b6101e86102ee366004611101565b6106d3565b6101e8600081565b6101e8610309366004611021565b61090d565b6101e861031c366004611021565b6109b2565b6101e861032f36600461109d565b610a43565b6101e861012c81565b6101e87f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b610209610372366004611056565b610b60565b6101e86103853660046110c9565b610b86565b6101e8610398366004611021565b610bc2565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b00000000000000000000000000000000000000000000000000000000148061043057507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6000828152602081905260409020600101546104528133610c4d565b61045c8383610ccb565b505050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a661048c8133610c4d565b50600280547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6001600160a01b038116331461054a5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c66000000000000000000000000000000000060648201526084015b60405180910390fd5b6105548282610d69565b5050565b600060646105668484610b86565b61057090866111c9565b61057a91906111fe565b6105849085611212565b949350505050565b60008083156105b9576105a060018561122a565b6105ab906002611325565b6105b690600a6111c9565b90505b60646105c584836111c9565b61058491906111fe565b6002546040517f3b68a2e2000000000000000000000000000000000000000000000000000000008152600481018390526000916001600160a01b031690633b68a2e2906024015b602060405180830381865afa158015610633573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104309190611331565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a66106828133610c4d565b50600155565b6002546040517fdc5ac486000000000000000000000000000000000000000000000000000000008152600481018390526000916001600160a01b03169063dc5ac48690602401610616565b600254815160009182916001600160a01b039091169063a708900790859084906106ff576106ff61134a565b60200260200101516040518263ffffffff1660e01b815260040161072591815260200190565b602060405180830381865afa158015610742573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107669190611331565b90506000805b845181101561087c5760008582815181106107895761078961134a565b602090810291909101015160025460405163a708900760e01b81526004810183905291925085916001600160a01b039091169063a708900790602401602060405180830381865afa1580156107e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108069190611331565b146108535760405162461bcd60e51b815260206004820152601760248201527f4e6f7420616c6c2073616d6520636f6d70616e792069640000000000000000006044820152606401610541565b61085c8161090d565b6108669084611212565b925050808061087490611360565b91505061076c565b5083516002546040517fbcd5349f0000000000000000000000000000000000000000000000000000000081526004810185905261058492849290916001600160a01b039091169063bcd5349f90602401602060405180830381865afa1580156108e9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102479190611331565b600080610919836109b2565b600254604051632d1c1ed760e21b8152600481018690529192506000916001600160a01b039091169063b4707b5c90602401602060405180830381865afa158015610968573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061098c9190611331565b9050600061099a828461058c565b905060006109a88285611212565b9695505050505050565b60025460405163a708900760e01b81526004810183905260009182916001600160a01b039091169063a708900790602401602060405180830381865afa158015610a00573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a249190611331565b9050610a3c83610a3383610688565b61032f846105cf565b9392505050565b600080606460015485670de0b6b3a7640000610a5f91906111c9565b610a6991906111c9565b610a7391906111fe565b905060006064610a8385846111c9565b610a8d91906111fe565b905060006064876045604051602001610ab0929190918252602082015260400190565b6040516020818303038152906040528051906020012060001c610ad3919061137b565b90506000610ae26002846111fe565b6064610aee85856111c9565b610af891906111fe565b610b029086611212565b610b0c919061122a565b9050600468056bc75e2d63100000610b2483836111c9565b610b2e91906111fe565b610b399060646111c9565b610b4391906111fe565b610b5490662386f26fc100006111c9565b98975050505050505050565b600082815260208190526040902060010154610b7c8133610c4d565b61045c8383610d69565b6000806001841115610bb65782610b9e8560646111c9565b610ba891906111fe565b610bb390600a6111c9565b90505b6105848161012c610de8565b600254604051632d1c1ed760e21b81526004810183905260009182916001600160a01b039091169063b4707b5c90602401602060405180830381865afa158015610c10573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c349190611331565b90506000610c41846109b2565b9050610584828261058c565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1661055457610c89816001600160a01b03166014610dfe565b610c94836020610dfe565b604051602001610ca59291906113bf565b60408051601f198184030181529082905262461bcd60e51b825261054191600401611440565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16610554576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055610d253390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1615610554576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000818310610df75781610a3c565b5090919050565b60606000610e0d8360026111c9565b610e18906002611212565b67ffffffffffffffff811115610e3057610e306110eb565b6040519080825280601f01601f191660200182016040528015610e5a576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110610e9157610e9161134a565b60200101906001600160f81b031916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110610edc57610edc61134a565b60200101906001600160f81b031916908160001a9053506000610f008460026111c9565b610f0b906001611212565b90505b6001811115610f90577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110610f4c57610f4c61134a565b1a60f81b828281518110610f6257610f6261134a565b60200101906001600160f81b031916908160001a90535060049490941c93610f8981611473565b9050610f0e565b508315610a3c5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610541565b600060208284031215610ff157600080fd5b81357fffffffff0000000000000000000000000000000000000000000000000000000081168114610a3c57600080fd5b60006020828403121561103357600080fd5b5035919050565b80356001600160a01b038116811461105157600080fd5b919050565b6000806040838503121561106957600080fd5b823591506110796020840161103a565b90509250929050565b60006020828403121561109457600080fd5b610a3c8261103a565b6000806000606084860312156110b257600080fd5b505081359360208301359350604090920135919050565b600080604083850312156110dc57600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b6000602080838503121561111457600080fd5b823567ffffffffffffffff8082111561112c57600080fd5b818501915085601f83011261114057600080fd5b813581811115611152576111526110eb565b8060051b604051601f19603f83011681018181108582111715611177576111776110eb565b60405291825284820192508381018501918883111561119557600080fd5b938501935b82851015610b545784358452938501939285019261119a565b634e487b7160e01b600052601160045260246000fd5b60008160001904831182151516156111e3576111e36111b3565b500290565b634e487b7160e01b600052601260045260246000fd5b60008261120d5761120d6111e8565b500490565b60008219821115611225576112256111b3565b500190565b60008282101561123c5761123c6111b3565b500390565b600181815b8085111561127c578160001904821115611262576112626111b3565b8085161561126f57918102915b93841c9390800290611246565b509250929050565b60008261129357506001610430565b816112a057506000610430565b81600181146112b657600281146112c0576112dc565b6001915050610430565b60ff8411156112d1576112d16111b3565b50506001821b610430565b5060208310610133831016604e8410600b84101617156112ff575081810a610430565b6113098383611241565b806000190482111561131d5761131d6111b3565b029392505050565b6000610a3c8383611284565b60006020828403121561134357600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b6000600019821415611374576113746111b3565b5060010190565b60008261138a5761138a6111e8565b500690565b60005b838110156113aa578181015183820152602001611392565b838111156113b9576000848401525b50505050565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516113f781601785016020880161138f565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000601791840191820152835161143481602884016020880161138f565b01602801949350505050565b602081526000825180602084015261145f81604085016020870161138f565b601f01601f19169190910160400192915050565b600081611482576114826111b3565b50600019019056fea2646970667358221220ca9c85bcc021b05d3faccab58463cd8608626b730e0692fa96963ceaffa0603064736f6c634300080c00339f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6608060405262093a80600255625c490060035534801561001e57600080fd5b506001805460ff19169055610034600032610091565b61004d6000805160206200147a83398151915233610091565b6100666000805160206200147a83398151915232610091565b600480546001600160a01b0319167378b5c6149c87c82edcffc73c230395abbc56ddd5179055610130565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1661012c576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556100eb3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b61133a80620001406000396000f3fe608060405234801561001057600080fd5b50600436106101a35760003560e01c8063792421f7116100ee578063c81c6b6311610097578063daa27e9a11610071578063daa27e9a14610378578063df0661fe1461038b578063f0e2cc9e1461039e578063fb118611146103af57600080fd5b8063c81c6b631461032a578063d53913931461033e578063d547741f1461036557600080fd5b8063a217fddf116100c8578063a217fddf14610306578063b7db63821461030e578063c618a8771461031757600080fd5b8063792421f7146102b65780638456cb59146102c757806391d14854146102cf57600080fd5b80633f4ba83a11610150578063529660141161012a57806352966014146102855780635c975abb146102985780636a37e0f3146102a357600080fd5b80633f4ba83a14610261578063452fd160146102695780634779fd7b1461027257600080fd5b80632f2ff15d116101815780632f2ff15d1461021657806334530cc61461022957806336568abe1461024e57600080fd5b806301ffc9a7146101a85780630c387b64146101d0578063248a9ca3146101e5575b600080fd5b6101bb6101b6366004610fbf565b6103c2565b60405190151581526020015b60405180910390f35b6101e36101de366004611005565b61042b565b005b6102086101f3366004611020565b60009081526020819052604090206001015490565b6040519081526020016101c7565b6101e3610224366004611039565b610486565b6004546001600160a01b03165b6040516001600160a01b0390911681526020016101c7565b6101e361025c366004611039565b6104b1565b6101e3610542565b61020860025481565b6101e3610280366004611020565b610578565b6101e3610293366004611020565b6105a9565b60015460ff166101bb565b6102086102b136600461107b565b6105da565b6006546001600160a01b0316610236565b6101e36108aa565b6101bb6102dd366004611039565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b610208600081565b61020860035481565b6101e3610325366004611005565b6108dd565b61020861033836600461107b565b50606490565b6102087f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b6101e3610373366004611039565b610938565b6101e3610386366004611005565b61095e565b610208610399366004611020565b6109b9565b6005546001600160a01b0316610236565b6102086103bd366004611020565b610a61565b60006001600160e01b031982167f7965db0b00000000000000000000000000000000000000000000000000000000148061042557507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a66104568133610b0b565b506006805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6000828152602081905260409020600101546104a28133610b0b565b6104ac8383610b89565b505050565b6001600160a01b03811633146105345760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c66000000000000000000000000000000000060648201526084015b60405180910390fd5b61053e8282610c27565b5050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a661056d8133610b0b565b610575610ca6565b50565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a66105a38133610b0b565b50600255565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a66105d48133610b0b565b50600355565b600554815160009182916001600160a01b039091169063a7089007908590849061060657610606611139565b60200260200101516040518263ffffffff1660e01b815260040161062c91815260200190565b602060405180830381865afa158015610649573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061066d919061114f565b90506000805b845181101561079c57600085828151811061069057610690611139565b60209081029190910101516005546040517fa70890070000000000000000000000000000000000000000000000000000000081526004810183905291925085916001600160a01b039091169063a708900790602401602060405180830381865afa158015610702573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610726919061114f565b146107735760405162461bcd60e51b815260206004820152601760248201527f4e6f7420616c6c2073616d6520636f6d70616e79206964000000000000000000604482015260640161052b565b61077c816109b9565b610786908461117e565b925050808061079490611196565b915050610673565b60065485516005546040517fbcd5349f000000000000000000000000000000000000000000000000000000008152600481018790526001600160a01b03938416936359279902938793909291169063bcd5349f90602401602060405180830381865afa158015610810573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610834919061114f565b6040516001600160e01b031960e086901b168152600481019390935260248301919091526044820152606401602060405180830381865afa15801561087d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108a1919061114f565b95945050505050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a66108d58133610b0b565b610575610d42565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a66109088133610b0b565b506005805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6000828152602081905260409020600101546109548133610b0b565b6104ac8383610c27565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a66109898133610b0b565b506004805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b60006002546109c783610a61565b6006546040517fa9b6c435000000000000000000000000000000000000000000000000000000008152600481018690526001600160a01b039091169063a9b6c43590602401602060405180830381865afa158015610a29573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a4d919061114f565b610a5791906111b1565b61042591906111d0565b6005546040517fb633620c0000000000000000000000000000000000000000000000000000000081526004810183905260009182916001600160a01b039091169063b633620c90602401602060405180830381865afa158015610ac8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aec919061114f565b610af690426111f2565b9050610b0481600354610dc8565b9392505050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1661053e57610b47816001600160a01b03166014610dde565b610b52836020610dde565b604051602001610b63929190611239565b60408051601f198184030181529082905262461bcd60e51b825261052b916004016112ba565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1661053e576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055610be33390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff161561053e576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60015460ff16610cf85760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f7420706175736564000000000000000000000000604482015260640161052b565b6001805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60015460ff1615610d955760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015260640161052b565b6001805460ff1916811790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25833610d25565b6000818310610dd75781610b04565b5090919050565b60606000610ded8360026111b1565b610df890600261117e565b67ffffffffffffffff811115610e1057610e10611065565b6040519080825280601f01601f191660200182016040528015610e3a576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110610e7157610e71611139565b60200101906001600160f81b031916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110610ebc57610ebc611139565b60200101906001600160f81b031916908160001a9053506000610ee08460026111b1565b610eeb90600161117e565b90505b6001811115610f70577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110610f2c57610f2c611139565b1a60f81b828281518110610f4257610f42611139565b60200101906001600160f81b031916908160001a90535060049490941c93610f69816112ed565b9050610eee565b508315610b045760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161052b565b600060208284031215610fd157600080fd5b81356001600160e01b031981168114610b0457600080fd5b80356001600160a01b038116811461100057600080fd5b919050565b60006020828403121561101757600080fd5b610b0482610fe9565b60006020828403121561103257600080fd5b5035919050565b6000806040838503121561104c57600080fd5b8235915061105c60208401610fe9565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b6000602080838503121561108e57600080fd5b823567ffffffffffffffff808211156110a657600080fd5b818501915085601f8301126110ba57600080fd5b8135818111156110cc576110cc611065565b8060051b604051601f19603f830116810181811085821117156110f1576110f1611065565b60405291825284820192508381018501918883111561110f57600080fd5b938501935b8285101561112d57843584529385019392850192611114565b98975050505050505050565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561116157600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b6000821982111561119157611191611168565b500190565b60006000198214156111aa576111aa611168565b5060010190565b60008160001904831182151516156111cb576111cb611168565b500290565b6000826111ed57634e487b7160e01b600052601260045260246000fd5b500490565b60008282101561120457611204611168565b500390565b60005b8381101561122457818101518382015260200161120c565b83811115611233576000848401525b50505050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351611271816017850160208801611209565b7f206973206d697373696e6720726f6c652000000000000000000000000000000060179184019182015283516112ae816028840160208801611209565b01602801949350505050565b60208152600082518060208401526112d9816040850160208701611209565b601f01601f19169190910160400192915050565b6000816112fc576112fc611168565b50600019019056fea26469706673582212208b2ad44546b976d3c2bf19d43ec027091db6329bd79fb315884a6ace72531bee64736f6c634300080c00339f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6608060405234801561001057600080fd5b5061001c600032610063565b610034600080516020610af583398151915232610063565b61004c600080516020610af583398151915233610063565b600180546001600160a01b03191633179055610102565b6000828152602081815260408083206001600160a01b038516845290915290205460ff166100fe576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556100bd3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6109e4806101116000396000f3fe608060405234801561001057600080fd5b50600436106100a35760003560e01c806336568abe11610076578063a217fddf1161005b578063a217fddf14610173578063d53913931461017b578063d547741f146101a257600080fd5b806336568abe1461012957806391d148541461013c57600080fd5b806301ffc9a7146100a857806312f96e53146100d0578063248a9ca3146100e55780632f2ff15d14610116575b600080fd5b6100bb6100b636600461075b565b6101b5565b60405190151581526020015b60405180910390f35b6100e36100de3660046107b9565b61024e565b005b6101086100f33660046107f5565b60009081526020819052604090206001015490565b6040519081526020016100c7565b6100e361012436600461080e565b6102f6565b6100e361013736600461080e565b610321565b6100bb61014a36600461080e565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b610108600081565b6101087f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b6100e36101b036600461080e565b6103b2565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b00000000000000000000000000000000000000000000000000000000148061024857507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a661027981336103d8565b6001546040517f1bed626b000000000000000000000000000000000000000000000000000000008152600481018490526001600160a01b0390911690631bed626b90602401600060405180830381600087803b1580156102d857600080fd5b505af11580156102ec573d6000803e3d6000fd5b5050505050505050565b60008281526020819052604090206001015461031281336103d8565b61031c8383610456565b505050565b6001600160a01b03811633146103a45760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c66000000000000000000000000000000000060648201526084015b60405180910390fd5b6103ae82826104f4565b5050565b6000828152602081905260409020600101546103ce81336103d8565b61031c83836104f4565b6000828152602081815260408083206001600160a01b038516845290915290205460ff166103ae57610414816001600160a01b03166014610573565b61041f836020610573565b60405160200161043092919061086a565b60408051601f198184030181529082905262461bcd60e51b825261039b916004016108eb565b6000828152602081815260408083206001600160a01b038516845290915290205460ff166103ae576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556104b03390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16156103ae576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60606000610582836002610934565b61058d906002610953565b67ffffffffffffffff8111156105a5576105a561096b565b6040519080825280601f01601f1916602001820160405280156105cf576020820181803683370190505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061060657610606610981565b60200101906001600160f81b031916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061065157610651610981565b60200101906001600160f81b031916908160001a9053506000610675846002610934565b610680906001610953565b90505b6001811115610705577f303132333435363738396162636465660000000000000000000000000000000085600f16601081106106c1576106c1610981565b1a60f81b8282815181106106d7576106d7610981565b60200101906001600160f81b031916908160001a90535060049490941c936106fe81610997565b9050610683565b5083156107545760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161039b565b9392505050565b60006020828403121561076d57600080fd5b81357fffffffff000000000000000000000000000000000000000000000000000000008116811461075457600080fd5b80356001600160a01b03811681146107b457600080fd5b919050565b6000806000606084860312156107ce57600080fd5b6107d78461079d565b92506107e56020850161079d565b9150604084013590509250925092565b60006020828403121561080757600080fd5b5035919050565b6000806040838503121561082157600080fd5b823591506108316020840161079d565b90509250929050565b60005b8381101561085557818101518382015260200161083d565b83811115610864576000848401525b50505050565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516108a281601785016020880161083a565b7f206973206d697373696e6720726f6c652000000000000000000000000000000060179184019182015283516108df81602884016020880161083a565b01602801949350505050565b602081526000825180602084015261090a81604085016020870161083a565b601f01601f19169190910160400192915050565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561094e5761094e61091e565b500290565b600082198211156109665761096661091e565b500190565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6000816109a6576109a661091e565b50600019019056fea2646970667358221220a8931f4b1d03ccd7a3b715c85cf15d559845a55eb723fbfdd32db3e95130a2fa64736f6c634300080c00339f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6608060405260646001553480156200001657600080fd5b506200002460003262002d71565b6200003f6000805160206200456b8339815191523262002d71565b6200005a6000805160206200456b8339815191523362002d71565b604080518082019091526008815267524e4e204e65777360c01b602080830191825260008052604c90529051620000b3917f551595b9d59b165bf9ad72f0480c55576c5dae704d350b901d5e76a5a3a448cf9162002f4c565b5060408051808201909152600681526504141414152560d41b60208083019182526001600052604c905290516200010c917f6e89c183824ab41c0f038ee229bd279207f4ee2e884ec8ac5f44a660e4145b079162002f4c565b5060408051808201909152600881526750657473746f726560c01b60208083019182526002600052604c9052905162000167917fbe0a9ef19cf103d3e0d87721bea78ea56b691e98bb078c8ff366d95074a9eda89162002f4c565b50604080518082019091526008815267466f6f6474696d6560c01b60208083019182526003600052604c90529051620001c2917f0cef4fb486e98f65be24036833a0947b172e3dbc533dfde9d1d1636d6bbb80ed9162002f4c565b50604080518082019091526004808252634861747360e01b6020808401918252600092909252604c90915290516200021c917ff9e34d901dcfabdaa79a50bd7f2a6836002b21de2cf0a74e8cab057021c93f739162002f4c565b5060408051808201909152601481527f4265642042617468202620426f6479776f726b7300000000000000000000000060208083019182526005600052604c905290516200028c917f5f1fb41e9e044ed3bc9e6da14543a0ab71c4f0794efd6f67908665f7daf461699162002f4c565b50604080518082019091526009815268213ab3b99024b7319760b91b60208083019182526006600052604c90529051620002e8917f4677ccbf4687cc4cdcd7a65321f6401d693ecc78ae006bf17f47d92c526d27189162002f4c565b5060408051808201909152600581526420baba37bd60d91b60208083019182526007600052604c9052905162000340917fb5b48db6b4eaf2d63a35861d4b8f17185f0867d21b785a56b7ef6171fd8420069162002f4c565b5060408051808201909152600c81526b27b33334b1b2902232b83a1760a11b60208083019182526008600052604c905290516200039f917f2051d7f78c821fc81e36d7030d4c6ee7f7a44a8c1680b4b42f441524ae794c449162002f4c565b506040805180820190915260078152664578707265737360c81b60208083019182526009600052604c90529051620003f9917fc2625f3d92305469d0085dcfca140f0a2b7a7d80738a9dbb16cc80e9b3df96d29162002f4c565b5060408051808201909152600c81526b546f74616c6c792057696e6560a01b6020808301918252600a600052604c9052905162000458917f7735243dd4c86c83ec6086f71a3d19985fb4638a9797553e1b31f1d06e813c589162002f4c565b506040805180820190915260058152641649d85b1b60da1b6020808301918252600b600052604c90529051620004b0917f27590389e3abb2f10dbb0b1355dd23ea734ad3af0c3bac697de8fe0e2c39f0e29162002f4c565b5060408051808201909152600e81526d35204f27636c6f636b76696c6c6560901b6020808301918252600c600052604c9052905162000511917ffe8f707c53671c50bfcdc6b0a10a279750a701bb286cf5a339cb4f8ffe45c5e99162002f4c565b5060408051808201909152600f81526e4e72667468727570204772726d6e6760881b6020808301918252600d600052604c9052905162000573917fd191a98f2022da17de259e45f3a0666c3a5b290faa254c5a81a011e20b28db8c9162002f4c565b5060408051808201909152600a81526926b0b6361021b7b9381760b11b6020808301918252600e600052604c90529051620005d0917ff317e9b740d5080a3ec68eb8e180c0674398234b26720a1c2a11dd18ef234eac9162002f4c565b5060408051808201909152600a81526949636520437265616d7360b01b6020808301918252600f600052604c905290516200062d917ff5578240c7217676a56a2f4810e7fca98380aee17c3daf89deee882db98db9359162002f4c565b5060408051808201909152600e81526d5468616e6b792043616e646c657360901b60208083019182526010600052604c905290516200068e917f8b7e317034fb7fe1aba8344655c93ace7bba75ca0f76d4f18b414920d4fc23ed9162002f4c565b50604080518082019091526007815266486f74656c6c6160c81b60208083019182526011600052604c90529051620006e8917f1488f861b0b403ac6883c73df69ab1b9bc48df02b3b2759e772240e3588c92f79162002f4c565b50604080518082019091526012808252714265726b736869726520546861746177617960701b6020808401918252600092909252604c909152905162000750917fa8f3f4c9adb5cb5d4d9ff4beccdd310ae40abf3c40fe92387c5d0b16ac8175f89162002f4c565b506040805180820190915260068152654b6f7069657360d01b60208083019182526013600052604c90529051620007a9917f6cbb4ba1fd770753907527b6a05c813d6817a9e8fefd94b920afe4926e7c5ea59162002f4c565b50604080518082019091526008815267537072617965727360c01b60208083019182526014600052604c9052905162000804917f6b2119ea89b4c1ed597bc1333cb1683404a7281b2e10a1f0b679ed1a24b373979162002f4c565b50604080518082019091526006815265274f6e75747360d01b60208083019182526015600052604c905290516200085d917f6dd509fbece1aa8d1bb5138aba4366a914d933238df503763a6162913d5ce7aa9162002f4c565b506040805180820190915260088152672a30bc1024b7319760c11b60208083019182526016600052604c90529051620008b8917f41c7f1a6e529aea650534dfa54a93f02fddc63c038f26664e54b68f6792c7b999162002f4c565b506040805180820190915260058152644b686f6c7360d81b60208083019182526017600052604c9052905162000910917fe0006d2583973c33475a0881a041fba3611b65a5feff4ad36b5abd33bcb15e209162002f4c565b5060408051808201909152600c81526b426c61636b20506562626c6560a01b60208083019182526018600052604c905290516200096f917f83103570920a91b58f49012902140beeff67305647f9cab698b3370e0bac78e99162002f4c565b5060408051808201909152600d81526c2430b4b931baba399024b7319760991b60208083019182526019600052604c90529051620009cf917f3f6c425143045b68f15375c26c7c89e431917f8a8a164f5046733e5f6c7e94679162002f4c565b5060408051808201909152600a815269476c6f62616c2047617360b01b6020808301918252601a600052604c9052905162000a2c917f9f3fa821d265204686b419a6c6ada467d5594a7b5f976638ebccc958f8aa00d99162002f4c565b50604080518082019091526005815264426c6f636b60d81b6020808301918252601b600052604c9052905162000a84917ff56d52629a97436c768abb1e110dc6aa7455e286e2d8815a79fa9b135601a5339162002f4c565b5060408051808201909152600a815269457965676c617373657360b01b6020808301918252601c600052604c9052905162000ae1917f255f4fcdb6b6f57c213a99b02e2c1747a6d7337bb57b9b9fc9b66c04eb5890f39162002f4c565b5060408051808201909152600c81526b426f6f6b732026204d61677360a01b6020808301918252601d600052604c9052905162000b40917f6f52c56c78f70cce22a3616519ae63a5da664aedb97a88b455891f95802fc4b79162002f4c565b506040805180820190915260048152634d656d6560e01b6020808301918252601e600052604c9052905162000b97917f7e7859962f12edff9cc6b85a48297ed7597c4ced3ad5e524445ac4d65f825a859162002f4c565b5060408051808201909152600481526321b7b4b760e11b6020808301918252601f600052604c9052905162000bee917fe9829211ecb63848008eb0ef026319bfce65c96c07a9f215ee007b96dec988959162002f4c565b506040805180820190915260068152652bb7b73232b960d11b60208083019182526000819052604c9052905162000c47917f33eb6a5889afd72230fd1373188fae280197d5446cf8b7ebada60c1ecaada3219162002f4c565b5060408051808201909152600981526869536563757269747960b81b60208083019182526021600052604c9052905162000ca3917fe3e5d7cd8f667816a0c176ed742a657f0f5d0f5263040946d4940510094344339162002f4c565b5060408051808201909152600a8152694461697279204c61647960b01b60208083019182526022600052604c9052905162000d00917fdf1a397caeeac31646c8a8b6999c06a5907cca15ef0f1374ed03feba53cededc9162002f4c565b5060408051808201909152600d81526c109a59c81119585b081351d355609a1b60208083019182526023600052604c9052905162000d60917f50ea53999d529451231abdbb84ed35c81505f7a93074272ed51e579add2123b49162002f4c565b5060408051808201909152601081526f14dc1bdd1b1a59da1d0815185b195b9d60821b60208083019182526024600052604c9052905162000dc3917f03156703d8f134ce8744d60e0bb7043930542eb3775f681c937fdfb35d1dfd649162002f4c565b5060408051808201909152601481527f526f636b20536f6c696420496e737572616e636500000000000000000000000060208083019182526025600052604c9052905162000e33917f433ffc5d7903aaa411fbbf06e0f99e88a30436ea66ac7ed57bc93e46bcb65d659162002f4c565b5060408051808201909152601581527f5361666520536869656c6420496e737572616e6365000000000000000000000060208083019182526026600052604c9052905162000ea3917f8e7cb89486bf1a065068a36d9f89638077852ad34f1af791be2f964459ad35bd9162002f4c565b50604080518082019091526003815262109a5d60ea1b60208083019182526027600052604c9052905162000ef9917f262412cc75da288e96a53001c2c96ec190daf47b17a0af6358efd0d91ed18e6b9162002f4c565b5060408051808201909152600b81526a2bb437b8383c902539399760a91b60208083019182526028600052604c9052905162000f57917f3b5b92f0082ed20de1d818a1b9b00c4b0810e7ec1331a4f80e7fb0e8eb541a379162002f4c565b506040805180820190915260098152682ba3a6a49024b7319760b91b60208083019182526029600052604c9052905162000fb3917f57707ae1810e6dd3ed413690ea72fe13bbf0b18b33bef794bf786c08d4fa00c49162002f4c565b5060408051808201909152601481527f476c6f62616c20496e7465726e6174696f6e616c0000000000000000000000006020808301918252602a600052604c9052905162001023917f9080959e6793a981acd60dbee1b654f7faeb1431f5168db07cd16238453ed5629162002f4c565b5060408051808201909152600d81526c4e2e452e582e542e205275677360981b6020808301918252602b600052604c9052905162001083917fe852df34f40ecec944d9bd92142c2afb99da0a9e0f24e366dc452b6a271b46fe9162002f4c565b5060408051808201909152600d81526c105b1c1a1848131a5b5a5d1959609a1b6020808301918252602c600052604c90529051620010e3917ff6dd3f987c824f39bc4391602c4cb60881b20fc60fc885467821350413d291769162002f4c565b5060408051808201909152600a8152694265737420536861636b60b01b6020808301918252602d600052604c9052905162001140917fd319222427d583720d3d9b8a30b45a65433a7d315c6297b4d77464ab1d7eee299162002f4c565b5060408051808201909152601381527f506172746e657273202620506172746e657273000000000000000000000000006020808301918252602e600052604c90529051620011b0917f40471e440773e98088f502bc68a03fa40333cacc95d3c63477c13c186cac88eb9162002f4c565b5060408051808201909152600e81526d426f737320452d73797374656d7360901b6020808301918252602f600052604c9052905162001211917f18e64f91c88efa8f5514760b7bb7ae571c1cd0895090b9f6e4217b23123237359162002f4c565b5060408051808201909152600c81526b426c6f636b6275737465727360a01b60208083019182526030600052604c9052905162001270917f249a8f9cefe66dfc9c7de07a7316bc60f7fd27c47911a33cdb0b58d77c2187869162002f4c565b5060408051808201909152601681527f48657861676f6e2052657365617263682047726f75700000000000000000000060208083019182526031600052604c90529051620012e0917f546de68eb5e5bbe90bc7ca66f166af4bb5660cb7a29ef7e55f0b1b464877ab4a9162002f4c565b5060408051808201909152600c81526b43726162627920536861636b60a01b60208083019182526032600052604c905290516200133f917f751f5e7171d078c5aca1fd11172a1f528075587076b0bea760b6665efe6a89119162002f4c565b5060408051808201909152600c81526b446f6c6c61722053746f726560a01b60208083019182526033600052604c905290516200139e917f793eda46fac54af33b025a4c7838a04f74c9912fef82db133ac41de31b58c0ac9162002f4c565b506040805180820190915260078152665550204f6e6c7960c81b60208083019182526034600052604c90529051620013f8917f598ee93f3e09a2b3d1e76dd9749439f07212d0423ba3d28d2a3f83c2b2346fb89162002f4c565b50604080518082019091526009815268467269746f2050617960b81b60208083019182526035600052604c9052905162001454917f2b9b78a76f1ca01ee4ffa94b7a12c715b8c13dd7ab4fa312e9a081bd1871a3799162002f4c565b5060408051808201909152600b81526a486f7420506f636b65747360a81b60208083019182526036600052604c90529051620014b2917f037f4b2ad7c168d405e1c07d5c3a0db500e90df1faee7da2582095306ed1f8879162002f4c565b5060408051808201909152600681526553706f6f6b7960d01b60208083019182526037600052604c905290516200150b917f8d22cb0afff2cfad26741e69fbfd99d336ea39d30a64e80fe88b358132bcce769162002f4c565b50604080518082019091526002815261474d60f01b60208083019182526038600052604c9052905162001560917fc57478193c13de3c7b761e48a46d18a1bd7fe21ee3d7b25b53a0f8e75da280629162002f4c565b506040805180820190915260098152684d6344616e6e79277360b81b60208083019182526039600052604c90529051620015bc917f4bb40208ced8b592cf41f1e3da58fdb1fda4f138ed949e1c1fba12536ac3143f9162002f4c565b5060408051808201909152600781526657656e6479277360c81b6020808301918252603a600052604c9052905162001616917fc96760b7b117cdf03d3849e4f46ef0c509d8f06178649cb625baf263396d7e109162002f4c565b5060408051808201909152600b81526a506172747920506c61636560a81b6020808301918252603b600052604c9052905162001674917fc2e691fb1b307f46a03d3846e926850c3cd9668aea6f3c34e61ffc642e169a5a9162002f4c565b5060408051808201825261079e80825260d460209283015270d40000000000000000000000000000079e60025582518084018452610514815261015e9083015271015e0000000000000000000000000000051460035582518084018452610e8d8152607890830152707800000000000000000000000000000e8d600490815583518085018552610c678152609090840152709000000000000000000000000000000c6760055583518085018552610947815260a89084015270a800000000000000000000000000000947600655835180850185526109ab815260a090840181905270a0000000000000000000000000000009ab60075584518086018652611130815260649085015270640000000000000000000000000000113060085584518086018652610898815260b89085015270b8000000000000000000000000000008986009558451808601865261040181526101f4908501527101f400000000000000000000000000000401600a5584518086018652610866815260bc9085015270bc00000000000000000000000000000866600b5584518086018652610cb28152608c90850152708c00000000000000000000000000000cb2600c55845180860186526111df815260609085018190527060000000000000000000000000000011df600d5585518087018752611d7e81526032908601819052703200000000000000000000000000001d7e600e5586518088018852610834815260c090870181905270c000000000000000000000000000000834600f558751808901895261128e8152605c90880152705c0000000000000000000000000000128e601055875180890189526109dd808252609c91890191909152709c000000000000000000000000000009dd6011558851808a018a526108e3815260b09089015270b0000000000000000000000000000008e36012558851808a018a52610c1c8152609490890152709400000000000000000000000000000c1c6013558851808a018a52610802815260c89089015270c8000000000000000000000000000008026014558851808a018a52610d1681526088908901819052708800000000000000000000000000000d166015558951808b018b526107d080825260cc918b019190915270cc000000000000000000000000000007d06016558a51808c018c5261109a81526068908b015270680000000000000000000000000000109a6017558a51808c018c5261076c815260da908b015270da0000000000000000000000000000076c6018558a51808c018c52611a1381526039908b0152703900000000000000000000000000001a136019558a51808c018c5261081b815260c4908b015270c40000000000000000000000000000081b601a558a51808c018c5290815260ce908a015270ce000000000000000000000000000007d0601b9081558a51808c018c5298895260d2988a019890985270d20000000000000000000000000000079e601c558951808b018b5261135681526058908a0152705800000000000000000000000000001356601d558951808b018b52610785815260d6908a015270d600000000000000000000000000000785601e558951808b018b526106d6815260f2908a015270f2000000000000000000000000000006d6601f558951808b018b52610e298152607c908a0152707c00000000000000000000000000000e2989558951808b018b52610979815260a4908a015270a4000000000000000000000000000009796021558951808b018b52610f0a81526074908a0152707400000000000000000000000000000f0a6022558951808b018b526108b1815260b4908a015270b4000000000000000000000000000008b16023558951808b018b52610915815260ac908a0181905270ac000000000000000000000000000009156024558a51808c018c52610d6181526084908b0152708400000000000000000000000000000d616025558a51808c018c52610bd181526098908b0152709800000000000000000000000000000bd16026558a51808c018c5261044c81526101c2908b01527101c20000000000000000000000000000044c6027558a51808c018c526103848152610258908b0152710258000000000000000000000000000003846028558a51808c018c52610f8781526070908b0152707000000000000000000000000000000f876029558a51808c018c5261170c81526041908b015270410000000000000000000000000000170c602a558a51808c018c5261157c8152604c908b0152704c0000000000000000000000000000157c602b558a51808c018c5261151881526050908b0152705000000000000000000000000000001518602c558a51808c018c5261141e81526054908b015270540000000000000000000000000000141e602d558a51808c018c526105dc8152610122908b0152710122000000000000000000000000000005dc602e558a51808c018c526110048152606c908b0152706c00000000000000000000000000001004602f558a51808c018c526106278152610114908b01527101140000000000000000000000000000062760309081558b51808d018d526104b08152610190908c0152710190000000000000000000000000000004b06031558b51808d018d52611bee81526035908c01819052703500000000000000000000000000001bee9096558b51808d018d526105c3815261012c908c015271012c000000000000000000000000000005c36033558b51808d018d526116f381526045908c01527045000000000000000000000000000016f36034558b51808d018d5261161281526048908c01527048000000000000000000000000000016129095558a51808c018c526107b7815260d0908b015270d0000000000000000000000000000007b76036558a51808c018c52610dc581526080908b01819052708000000000000000000000000000000dc56037558b51808d018d526115c781526049908c01527049000000000000000000000000000015c76038558b516107a08082018e5261017b82526101879c82019c909c5261036a9c81019c909c526103ec968c01969096526104dd958b01959095526104ea958a01959095526105769189019190915261063060e089015261074d6101008901526107946101208901526101408801969096526108dd610160880152610180870195909552610ad46101a0870152610bef6101c0870152610d7f6101e0870152610d90610200870152610dd5610220870152610dd8610240870152610e17610260870152610e216102808701526110076102a08701526110156102c08701526110356102e08701526110636103008701526110866103208701526111496103408701526113c96103608701526113ed6103808701526114446103a08701526103c08601929092526103e08501929092526104008401929092526065610420840152610440830152608f610460830152609d61048083015260a56104a08301526104c082015260af6104e082015260e26105008201526101156105208201526101846105408201526101856105608201526101a26105808201526101a46105a08201526101bc6105c08201526101c96105e08201526101ed61060082015261020461062082015261020661064082015261026261066082015261027e6106808201526102a76106a08201526102a96106c08201526102bf6106e08201526102e76107008201526103106107208201526103636107408201526103956107608201526103bf6107808201526200213b90604a90603d62002fdb565b50620021a46037604a8054806020026020016040519081016040528092919081815260200182805480156200219057602002820191906000526020600020905b8154815260200190600101908083116200217b575b505050505061186a62002e1260201b60201c565b6040805161062081018252611172815261124c60208201526114de9181019190915261153d606082015261172c6080820152611ab660a0820152611f6b60c082015261049760e08201526104fa6101008201526107d56101208201526109c1610140820152610a20610160820152610bf7610180820152610cd56101a0820152610ce46101c0820152610cf46101e0820152610d7e610200820152610f8f6102208201526111bd6102408201526112f86102608201526114336102808201526114636102a08201526114916102c08201526119f36102e0820152611a3f610300820152611b46610320820152611beb610340820152611c87610360820152611f4c6103808201526122f06103a08201526125ac6103c082015261265e6103e08201526103f561040082015261040861042082015261041261044082015261043c6104608201526104676104808201526104766104a08201526104ac6104c08201526104d26104e08201526104ff61050082015261050f61052082015261051061054082015261051161056082015261051e61058082015261052b6105a082015261054c6105c082015261056e6105e082015261057d6106008201526200236f90604a90603162002fdb565b50620023d86038604a805480602002602001604051908101604052809291908181526020018280548015620023c457602002820191906000526020600020905b815481526020019060010190808311620023af575b5050505050611e1462002e1260201b60201c565b604080516108c0810182526106518152610710602082015261086581830152610a486060820152610b116080820152610b1f60a0820152610ce560c0820152610dc460e08201526112d661010082015261141361012082015261166761014082015261171261016082015261173a6101808201526119336101a0820152611a076101c0820152611a6a6101e0820152611aaf610200820152611c6e610220820152611d5f6102408201526120ad6102608201526124da6102808201526102a08101919091526101e86102c08201526102826102e08201526103b26103008201526103f661032082015261067261034082015261071f61036082015261079d6103808201526108826103a0820152610a216103c0820152610bb06103e0820152610bfe610400820152610d03610420820152610ea1610440820152610f68610460820152610f79610480820152610fbe6104a0820152610fe66104c0820152610ffa6104e082015261106561050082015261109461052082015261126f6105408201526115af6105608201526116816105808201526116936105a08201526117076105c082015261179c6105e08201526117a06106008201526118846106208201526119c7610640820152611a19610660820152611ab0610680820152611ad96106a0820152611ae96106c0820152611bd46106e0820152611d7e610700820152611f27610720820152611fc26107408201526121836107608201526121976107808201526121f16107a08201526122506107c082015261225a6107e08201526122c761080082015261235d6108208201526123f56108408201526124266108608201526124bf61088082015261270a6108a08201526200265d90604a90604662002fdb565b50620026c66039604a805480602002602001604051908101604052809291908181526020018280548015620026b257602002820191906000526020600020905b8154815260200190600101908083116200269d575b505050505061203a62002e1260201b60201c565b604080516104408101825261013d81526101c8602082015261036e918101919091526106346060820152610a8e6080820152610b9e60a0820152610be760c0820152610c9860e0820152610cec610100820152610d71610120820152610ff261014082015261100b6101608201526115726101808201526115c66101a08201526115f66101c08201526118586101e08201526118ad6102008201526118ce61022082015261190461024082015261198b610260820152611de6610280820152611f0b6102a0820152611f196102c08201526120386102e08201526120d06103008201526120f56103208201526121c36103408201526121db6103608201526122186103808201526124056103a082015261258b6103c08201526125ed6103e082015261261a6104008201526126de6104208201526200280a90604a90602262002fdb565b5062002873603a604a8054806020026020016040519081016040528092919081815260200182805480156200285f57602002820191906000526020600020905b8154815260200190600101908083116200284a575b5050505050611edc62002e1260201b60201c565b604080516106608101825261157681526116d560208201526117809181019190915261179a60608201526117b960808201526117dd60a082015261192460c08201526119f960e0820152611bb4610100820152611d96610120820152611eb7610140820152611f8d610160820152611fae6101808201526120866101a08201526120a76101c08201526121206101e08201526121b561020082015261227961022082015261245761024082015261246761026082015261247b61028082015261262a6102a08201526126486102c08201526126826102e082015261268e6103008201526105a061032082018190526105ca61034083015261061e61036083015261063c61038083015261063e6103a083015261067c6103c083015261067f6103e083015261069f6104008301526106a46104208301526106ac6104408301526107716104608301526107896104808301526107c26104a08301526107e26104c08301526107ea6104e08301526107f561050083015261081361052083015261083161054083015261084d6105608301526108646105808301526108809082015261089f6105c08201526108c76105e08201526108d661060082015261092b6106208201526109be61064082015262002a5090604a90603362002fdb565b5062002ab9603b604a80548060200260200160405190810160405280929190818152602001828054801562002aa557602002820191906000526020600020905b81548152602001906001019080831162002a90575b5050505050611d0162002e1260201b60201c565b604080516102a0810182526106518152610710602082015261086591810191909152610a486060820152610b116080820152610b1f60a0820152610ce560c0820152610dc460e08201526112d661010082015261141361012082015261166761014082015261171261016082015261173a6101808201526119336101a0820152611a076101c0820152611a6a6101e0820152611aaf610200820152611c6e610220820152611d5f6102408201526120ad6102608201526124da61028082015262002b8890604a90601562002fdb565b5060005b604a5481101562002bf9576001604b6000604a848154811062002bb35762002bb362003036565b9060005260206000200154815260200190815260200160002060006101000a81548160ff021916908315150217905550808062002bf09062003062565b91505062002b8c565b5060376049556000805b60495481101562002c5957600281603c811062002c245762002c2462003036565b015462002c4290600160801b90046001600160801b03168362003080565b91508062002c508162003062565b91505062002c03565b5062002c7581604662002ef260201b62000a091790919060201c565b6049546000905b603c81101562002cd157600281603c811062002c9c5762002c9c62003036565b015462002cba90600160801b90046001600160801b03168362003080565b91508062002cc88162003062565b91505062002c7c565b506000805b603c81101562002d675781603e82603c811062002cf75762002cf762003036565b601091828204019190066002026101000a81548161ffff021916908361ffff160217905550600281603c811062002d325762002d3262003036565b015462002d5090600160801b90046001600160801b03168362003080565b91508062002d5e8162003062565b91505062002cd6565b50505050620030d8565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1662002e0e576000828152602081815260408083206001600160a01b03851684529091529020805460ff1916600117905562002dcd3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b60005b825181101562002e6957836048600085848151811062002e395762002e3962003036565b6020026020010151815260200190815260200160002081905550808062002e609062003062565b91505062002e15565b506040518060400160405280826001600160801b0316815260200183516001600160801b0316815250600284603c811062002ea85762002ea862003036565b82516020938401516001600160801b03908116600160801b0291161791015582516000858152604783526040902062002eed9290919062000a0962002ef2821b17901c565b505050565b815482901562002f485760405162461bcd60e51b815260206004820152601f60248201527f63616e6e6f742d73657475702d647572696e672d6163746976652d6472617700604482015260640160405180910390fd5b5550565b82805462002f5a906200309b565b90600052602060002090601f01602090048101928262002f7e576000855562002fc9565b82601f1062002f9957805160ff191683800117855562002fc9565b8280016001018555821562002fc9579182015b8281111562002fc957825182559160200191906001019062002fac565b5062002fd79291506200301f565b5090565b82805482825590600052602060002090810192821562002fc9579160200282015b8281111562002fc9578251829061ffff1690559160200191906001019062002ffc565b5b8082111562002fd7576000815560010162003020565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006000198214156200307957620030796200304c565b5060010190565b600082198211156200309657620030966200304c565b500190565b600181811c90821680620030b057607f821691505b60208210811415620030d257634e487b7160e01b600052602260045260246000fd5b50919050565b61148380620030e86000396000f3fe608060405234801561001057600080fd5b50600436106101775760003560e01c806396c47089116100d8578063c708ed821161008c578063d547741f11610066578063d547741f1461033a578063dc5ac4861461034d578063e356a5631461036057600080fd5b8063c708ed82146102c8578063d3f10c8f146102eb578063d53913931461031357600080fd5b8063a217fddf116100bd578063a217fddf1461029a578063bcd5349f146102a2578063c2353918146102b557600080fd5b806396c470891461027e5780639acc1e4f1461028757600080fd5b806348b739841161012f578063874fdf2d11610114578063874fdf2d146102385780638ebf73711461023f57806391d148541461024757600080fd5b806348b73984146102105780636b8ff5741461021857600080fd5b80632f2ff15d116101605780632f2ff15d146101d557806336568abe146101ea5780633b68a2e2146101fd57600080fd5b806301ffc9a71461017c578063248a9ca3146101a4575b600080fd5b61018f61018a366004611083565b610373565b60405190151581526020015b60405180910390f35b6101c76101b23660046110c5565b60009081526020819052604090206001015490565b60405190815260200161019b565b6101e86101e33660046110de565b61040c565b005b6101e86101f83660046110de565b610437565b6101c761020b3660046110c5565b6104c8565b6101c7600281565b61022b6102263660046110c5565b610515565b60405161019b919061114a565b603c6101c7565b6101c76105b7565b61018f6102553660046110de565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b6101c760015481565b6101e86102953660046110c5565b610624565b6101c7600081565b6101c76102b03660046110c5565b610655565b6101c76102c33660046110c5565b610698565b61018f6102d63660046110c5565b6000908152604b602052604090205460ff1690565b6102fe6102f93660046110c5565b6106ce565b6040805192835260208301919091520161019b565b6101c77f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b6101e86103483660046110de565b6108fc565b6101c761035b3660046110c5565b610922565b6101e861036e366004611193565b610964565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b00000000000000000000000000000000000000000000000000000000148061040657507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6000828152602081905260409020600101546104288133610a5e565b6104328383610adc565b505050565b6001600160a01b03811633146104ba5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c66000000000000000000000000000000000060648201526084015b60405180910390fd5b6104c48282610b7a565b5050565b600061303960286104d9828561128b565b6040516020016104eb91815260200190565b6040516020818303038152906040528051906020012060001c61050e91906112b9565b9392505050565b6000818152604c60205260409020805460609190610532906112cd565b80601f016020809104026020016040519081016040528092919081815260200182805461055e906112cd565b80156105ab5780601f10610580576101008083540402835291602001916105ab565b820191906000526020600020905b81548152906001019060200180831161058e57829003601f168201915b50505050509050919050565b600080805b603c81101561061e57600281603c81106105d8576105d8611302565b015461060a9070010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff168361128b565b91508061061681611318565b9150506105bc565b50919050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a661064f8133610a5e565b50600155565b6000600282603c811061066a5761066a611302565b015470010000000000000000000000000000000090046fffffffffffffffffffffffffffffffff1692915050565b6000604282603c81106106ad576106ad611302565b601081049190910154600f9091166002026101000a900461ffff1692915050565b6000807f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a66106fc8133610a5e565b60008481526048602052604081205481816107e75761071b6046610bf9565b9250600061072884610c0c565b9050604281603c811061073d5761073d611302565b6010918282040191900660020281819054906101000a900461ffff168092919061076690611333565b91906101000a81548161ffff021916908361ffff160217905550507f622cf859c2ef7402aee27c1eca0c1317f411cbf9f16897ff17b5339d7b48887b886107ac86610cb9565b604080519283526020830191909152810183905233606082015260800160405180910390a16107da84610cb9565b965094506108f692505050565b60008281526047602052604090206107fe90610bf9565b9250603e82603c811061081357610813611302565b601091828204019190066002029054906101000a900461ffff1661ffff168361083c919061128b565b9050604282603c811061085157610851611302565b6010918282040191900660020281819054906101000a900461ffff168092919061087a90611333565b91906101000a81548161ffff021916908361ffff160217905550507f622cf859c2ef7402aee27c1eca0c1317f411cbf9f16897ff17b5339d7b48887b876108c083610cb9565b604080519283526020830191909152810184905233606082015260800160405180910390a16108ee81610cb9565b955090935050505b50915091565b6000828152602081905260409020600101546109188133610a5e565b6104328383610b7a565b60006064600154600284603c811061093c5761093c611302565b015461095a91906fffffffffffffffffffffffffffffffff16611355565b6104069190611374565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a661098f8133610a5e565b82600285603c81106109a3576109a3611302565b0180547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166fffffffffffffffffffffffffffffffff929092169190911790556000848152604c602090815260409091208351610a0292850190610fea565b5050505050565b8154829015610a5a5760405162461bcd60e51b815260206004820152601f60248201527f63616e6e6f742d73657475702d647572696e672d6163746976652d647261770060448201526064016104b1565b5550565b6000828152602081815260408083206001600160a01b038516845290915290205460ff166104c457610a9a816001600160a01b03166014610cc6565b610aa5836020610cc6565b604051602001610ab6929190611388565b60408051601f198184030181529082905262461bcd60e51b82526104b19160040161114a565b6000828152602081815260408083206001600160a01b038516845290915290205460ff166104c4576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055610b363390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16156104c4576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600061040682610c07610ea7565b610efb565b6000603c815b610c1d600183611409565b81101561050e57603e81603c8110610c3757610c37611302565b601091828204019190066002029054906101000a900461ffff1661ffff168410158015610c9d5750603e610c6c82600161128b565b603c8110610c7c57610c7c611302565b601091828204019190066002029054906101000a900461ffff1661ffff1684105b15610ca75761050e565b80610cb181611318565b915050610c12565b600061040682600161128b565b60606000610cd5836002611355565b610ce090600261128b565b67ffffffffffffffff811115610cf857610cf861117d565b6040519080825280601f01601f191660200182016040528015610d22576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110610d5957610d59611302565b60200101906001600160f81b031916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110610da457610da4611302565b60200101906001600160f81b031916908160001a9053506000610dc8846002611355565b610dd390600161128b565b90505b6001811115610e58577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110610e1457610e14611302565b1a60f81b828281518110610e2a57610e2a611302565b60200101906001600160f81b031916908160001a90535060049490941c93610e5181611420565b9050610dd6565b50831561050e5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016104b1565b6000610eb4600143611409565b6040805191406020830152429082015233606090811b6bffffffffffffffffffffffff19169082015260740160405160208183030381529060405280519060200120905090565b8154600090839082610f0d82866112b9565b90506000838281548110610f2357610f23611302565b6000918252602082200154915084610f3a85611420565b94508481548110610f4d57610f4d611302565b906000526020600020015490508160001415610f7157610f6e83600161128b565b91505b80610f8457610f8184600161128b565b90505b838314610fab5780858481548110610f9e57610f9e611302565b6000918252602090912001555b84805480610fbb57610fbb611437565b60019003818190600052602060002001600090559055600182610fde9190611409565b98975050505050505050565b828054610ff6906112cd565b90600052602060002090601f016020900481019282611018576000855561105e565b82601f1061103157805160ff191683800117855561105e565b8280016001018555821561105e579182015b8281111561105e578251825591602001919060010190611043565b5061106a92915061106e565b5090565b5b8082111561106a576000815560010161106f565b60006020828403121561109557600080fd5b81357fffffffff000000000000000000000000000000000000000000000000000000008116811461050e57600080fd5b6000602082840312156110d757600080fd5b5035919050565b600080604083850312156110f157600080fd5b8235915060208301356001600160a01b038116811461110f57600080fd5b809150509250929050565b60005b8381101561113557818101518382015260200161111d565b83811115611144576000848401525b50505050565b602081526000825180602084015261116981604085016020870161111a565b601f01601f19169190910160400192915050565b634e487b7160e01b600052604160045260246000fd5b6000806000606084860312156111a857600080fd5b8335925060208401356fffffffffffffffffffffffffffffffff811681146111cf57600080fd5b9150604084013567ffffffffffffffff808211156111ec57600080fd5b818601915086601f83011261120057600080fd5b8135818111156112125761121261117d565b604051601f8201601f19908116603f0116810190838211818310171561123a5761123a61117d565b8160405282815289602084870101111561125357600080fd5b8260208601602083013760006020848301015280955050505050509250925092565b634e487b7160e01b600052601160045260246000fd5b6000821982111561129e5761129e611275565b500190565b634e487b7160e01b600052601260045260246000fd5b6000826112c8576112c86112a3565b500690565b600181811c908216806112e157607f821691505b6020821081141561061e57634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b600060001982141561132c5761132c611275565b5060010190565b600061ffff8083168181141561134b5761134b611275565b6001019392505050565b600081600019048311821515161561136f5761136f611275565b500290565b600082611383576113836112a3565b500490565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516113c081601785016020880161111a565b7f206973206d697373696e6720726f6c652000000000000000000000000000000060179184019182015283516113fd81602884016020880161111a565b01602801949350505050565b60008282101561141b5761141b611275565b500390565b60008161142f5761142f611275565b506000190190565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220aba83254124baff062a257bf0ce22a93f4333ebb5fd868e43c0df0e332b416c064736f6c634300080c00339f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a66080604052600560015534801561001557600080fd5b50610021600033610061565b610039600080516020610d1a83398151915233610061565b610044600032610061565b61005c600080516020610d1a83398151915232610061565b610100565b6000828152602081815260408083206001600160a01b038516845290915290205460ff166100fc576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556100bb3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b610c0b8061010f6000396000f3fe608060405234801561001057600080fd5b50600436106100df5760003560e01c806370a93b361161008c578063a217fddf11610066578063a217fddf146101de578063c6450a3b146101e6578063d5391393146101f9578063d547741f1461022057600080fd5b806370a93b361461018157806376ef6ac71461019457806391d14854146101a757600080fd5b80632f2ff15d116100bd5780632f2ff15d1461015057806336568abe146101655780636702c7bf1461017857600080fd5b806301ffc9a7146100e457806305c58df21461010c578063248a9ca31461012d575b600080fd5b6100f76100f2366004610986565b610233565b60405190151581526020015b60405180910390f35b61011f61011a3660046109c8565b6102cc565b604051908152602001610103565b61011f61013b3660046109c8565b60009081526020819052604090206001015490565b61016361015e3660046109e1565b6102f0565b005b6101636101733660046109e1565b61031b565b61011f60015481565b61016361018f366004610a1d565b6103ac565b6101636101a23660046109c8565b610482565b6100f76101b53660046109e1565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b61011f600081565b6101636101f43660046109c8565b6104b3565b61011f7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b61016361022e3660046109e1565b6105a3565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b0000000000000000000000000000000000000000000000000000000014806102c657507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b60006102d7826105c9565b6000838152600260205260409020546102c69190610a55565b60008281526020819052604090206001015461030c8133610603565b6103168383610681565b505050565b6001600160a01b038116331461039e5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c66000000000000000000000000000000000060648201526084015b60405180910390fd5b6103a8828261071f565b5050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a66103d78133610603565b6001548211156104295760405162461bcd60e51b815260206004820152600e60248201527f4c6576656c20746f6f20686967680000000000000000000000000000000000006044820152606401610395565b60008381526002602052604090208290557ff82acab9131f7bd1ae8cce2d607988212d58134a11851473eee325d1787341b583610465816102cc565b6040805192835260208301919091520160405180910390a1505050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a66104ad8133610603565b50600155565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a66104de8133610603565b6001546104ea836102cc565b106105375760405162461bcd60e51b815260206004820152600c60248201527f4174206d6178206c6576656c00000000000000000000000000000000000000006044820152606401610395565b6000828152600260205260408120805460019290610556908490610a55565b909155507ff82acab9131f7bd1ae8cce2d607988212d58134a11851473eee325d1787341b5905082610587816102cc565b6040805192835260208301919091520160405180910390a15050565b6000828152602081905260409020600101546105bf8133610603565b610316838361071f565b60006002826040516020016105e091815260200190565b6040516020818303038152906040528051906020012060001c6102c69190610a6d565b6000828152602081815260408083206001600160a01b038516845290915290205460ff166103a85761063f816001600160a01b0316601461079e565b61064a83602061079e565b60405160200161065b929190610abf565b60408051601f198184030181529082905262461bcd60e51b825261039591600401610b40565b6000828152602081815260408083206001600160a01b038516845290915290205460ff166103a8576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556106db3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16156103a8576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b606060006107ad836002610b73565b6107b8906002610a55565b67ffffffffffffffff8111156107d0576107d0610b92565b6040519080825280601f01601f1916602001820160405280156107fa576020820181803683370190505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061083157610831610ba8565b60200101906001600160f81b031916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061087c5761087c610ba8565b60200101906001600160f81b031916908160001a90535060006108a0846002610b73565b6108ab906001610a55565b90505b6001811115610930577f303132333435363738396162636465660000000000000000000000000000000085600f16601081106108ec576108ec610ba8565b1a60f81b82828151811061090257610902610ba8565b60200101906001600160f81b031916908160001a90535060049490941c9361092981610bbe565b90506108ae565b50831561097f5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610395565b9392505050565b60006020828403121561099857600080fd5b81357fffffffff000000000000000000000000000000000000000000000000000000008116811461097f57600080fd5b6000602082840312156109da57600080fd5b5035919050565b600080604083850312156109f457600080fd5b8235915060208301356001600160a01b0381168114610a1257600080fd5b809150509250929050565b60008060408385031215610a3057600080fd5b50508035926020909101359150565b634e487b7160e01b600052601160045260246000fd5b60008219821115610a6857610a68610a3f565b500190565b600082610a8a57634e487b7160e01b600052601260045260246000fd5b500690565b60005b83811015610aaa578181015183820152602001610a92565b83811115610ab9576000848401525b50505050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351610af7816017850160208801610a8f565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351610b34816028840160208801610a8f565b01602801949350505050565b6020815260008251806020840152610b5f816040850160208701610a8f565b601f01601f19169190910160400192915050565b6000816000190483118215151615610b8d57610b8d610a3f565b500290565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b600081610bcd57610bcd610a3f565b50600019019056fea26469706673582212209fdfd7a30b2dfcdb629834be9109c79c0c33e4ed26fd94636f358f8d0270e6fa64736f6c634300080c00339f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6601c600155600560e08181526420b9b9ba1760d91b610100526080908152600861012090815267417373742e20746f60c01b6101405260a0526101a060405260036101608181526225391760e91b6101805260c0526200006192919062000890565b506040805161010081018252600b60c082019081526a115b9d1c9e4813195d995b60aa1b60e0830152815281516020818101845260008252808301919091528251808401845260048152631319585960e21b818301528284015282518084018452600381526229b91760e91b818301526060830152825180840184526002815261056560f41b8183015260808301528251808401909352600583526421b434b2b360d91b9083015260a0810191909152620001209060069081620008f4565b506040805161010081018252600660c08201818152654f666669636560d01b60e08401528252825180840184526007808252661058d8dbdd5b9d60ca1b60208381019190915280850192909252845180860186528181526650726f6772616d60c81b81840152848601528451808601865281815266141c9bda9958dd60ca1b818401526060850152845180860186526008815267149959da5bdb985b60c21b818401526080850152845180860190955282855265084e4c2dcc6d60d31b9185019190915260a0830193909352620001f9929190620008f4565b506040805161026081018252600a61022082018181526911195c185c9d1b595b9d60b21b61024084015282528251808401845260048152635465616d60e01b602082810191909152808401919091528351808501855282815269466163696c697469657360b01b81830152838501528351808501855282815269436f6d706c69616e636560b01b818301526060840152835180850185526008808252674d61696c726f6f6d60c01b82840152608085019190915284518086018652600781526646696e616e636560c81b8184015260a085015284518086018652600581526453616c657360d81b8184015260c0850152845180860186526009808252684d61726b6574696e6760b81b8285015260e086019190915285518087018752600280825261125560f21b828601526101008701919091528651808801885290815261242960f11b8185015261012086015285518087018752848152694f7065726174696f6e7360b01b818501526101408601528551808701875281815268436f6d6d756e69747960b81b818501526101608601528551808701875282815267427573696e65737360c01b818501526101808601528551808701875281815268151958da1b9a58d85b60ba1b818501526101a0860152855180870187528281526748656c706465736b60c01b818501526101c0860152855180870187529081526810dd5cdd1bd91a585b60ba1b818401526101e0850152845180860190955291845269446174612d456e74727960b01b90840152610200820192909252620004409190601162000946565b50604080516103008101825260076102c082018181526627b33334b1b2b960c91b6102e0840152825282518084018452600a808252691058d8dbdd5b9d185b9d60b21b60208381019190915280850192909252845180860186526009808252684173736f636961746560b81b82850152858701919091528551808701875260068152652632b0b232b960d11b818501526060860152855180870187526005815264436c65726b60d81b81850152608086015285518087018752600d81526c20b236b4b734b9ba3930ba37b960991b8185015260a0860152855180870187528281526910dbdb9cdd5b1d185b9d60b21b8185015260c086015285518087018752600b8082526a21b7b7b93234b730ba37b960a91b8286015260e0870191909152865180880188528281526824b739b832b1ba37b960b91b818601526101008701528651808801885260048152632932b81760e11b81860152610120870152865180880188528581526614dd5c1c1bdc9d60ca1b818601819052610140880191909152875180890189528681526620bab234ba37b960c91b81870152610160880152875180890189528481526914dc1958da585b1a5cdd60b21b818701526101808801528751808901895286815266105b985b1e5cdd60ca1b818701526101a0880152875180890189528381526845786563757469766560b81b818701526101c0880152875180890189528481526921b7b73a3937b63632b960b11b818701526101e08801528751808901895293845269283937b3b930b6b6b2b960b11b8486015261020087019390935286518088018852828152682232bb32b637b832b960b91b81860152610220870152865180880188529485528484019290925261024085019390935284518086018652600c8082526b141c9bd9995cdcda5bdb985b60a21b82850152610260860191909152855180870187529182526a29b0b632b9b832b939b7b760a91b82840152610280850191909152845180860190955284526b149958d95c1d1a5bdb9a5cdd60a21b908401526102a0820192909252620007489190601662000998565b503480156200075657600080fd5b506040516200226e3803806200226e833981016040819052620007799162000aef565b62000786600033620007ef565b62000793600032620007ef565b620007ae6000805160206200224e83398151915233620007ef565b620007c96000805160206200224e83398151915232620007ef565b600480546001600160a01b0319166001600160a01b039290921691909117905562000b5e565b6000828152602081815260408083206001600160a01b038516845290915290205460ff166200088c576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556200084b3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b828054828255906000526020600020908101928215620008e2579160200282015b82811115620008e25782518051620008d1918491602090910190620009ea565b5091602001919060010190620008b1565b50620008f092915062000a75565b5090565b828054828255906000526020600020908101928215620008e2579160200282015b82811115620008e2578251805162000935918491602090910190620009ea565b509160200191906001019062000915565b828054828255906000526020600020908101928215620008e2579160200282015b82811115620008e2578251805162000987918491602090910190620009ea565b509160200191906001019062000967565b828054828255906000526020600020908101928215620008e2579160200282015b82811115620008e25782518051620009d9918491602090910190620009ea565b5091602001919060010190620009b9565b828054620009f89062000b21565b90600052602060002090601f01602090048101928262000a1c576000855562000a67565b82601f1062000a3757805160ff191683800117855562000a67565b8280016001018555821562000a67579182015b8281111562000a6757825182559160200191906001019062000a4a565b50620008f092915062000a96565b80821115620008f057600062000a8c828262000aad565b5060010162000a75565b5b80821115620008f0576000815560010162000a97565b50805462000abb9062000b21565b6000825580601f1062000acc575050565b601f01602090049060005260206000209081019062000aec919062000a96565b50565b60006020828403121562000b0257600080fd5b81516001600160a01b038116811462000b1a57600080fd5b9392505050565b600181811c9082168062000b3657607f821691505b6020821081141562000b5857634e487b7160e01b600052602260045260246000fd5b50919050565b6116e08062000b6e6000396000f3fe608060405234801561001057600080fd5b506004361061011a5760003560e01c806355a74638116100b2578063a217fddf11610081578063d539139311610066578063d539139314610277578063d547741f1461029e578063e05c6d37146102b157600080fd5b8063a217fddf1461025c578063c785ca251461026457600080fd5b806355a74638146101ef5780636702c7bf146102025780637251dc4a1461020a57806391d148541461022557600080fd5b8063248a9ca3116100ee578063248a9ca3146101865780632f2ff15d146101a957806335a1223a146101bc57806336568abe146101dc57600080fd5b80628f6c3a1461011f57806301ffc9a71461013b57806305c58df21461015e5780631a8d8d1814610171575b600080fd5b61012860015481565b6040519081526020015b60405180910390f35b61014e6101493660046111d1565b6102d4565b6040519015158152602001610132565b61012861016c366004611213565b61036d565b61018461017f366004611213565b6103f6565b005b610128610194366004611213565b60009081526020819052604090206001015490565b6101846101b7366004611243565b610427565b6101cf6101ca366004611213565b610452565b60405161013291906112cb565b6101846101ea366004611243565b6106bc565b6101846101fd3660046112f4565b61074d565b610128600581565b6004546040516001600160a01b039091168152602001610132565b61014e610233366004611243565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b610128600081565b6101846102723660046113af565b6107f0565b6101287f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b6101846102ac366004611243565b610856565b61014e6102bf366004611213565b60036020526000908152604090205460ff1681565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b00000000000000000000000000000000000000000000000000000000148061036757507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b600480546040517f05c58df20000000000000000000000000000000000000000000000000000000081529182018390526000916001600160a01b03909116906305c58df290602401602060405180830381865afa1580156103d2573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061036791906113ca565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610421813361087c565b50600155565b600082815260208190526040902060010154610443813361087c565b61044d83836108fa565b505050565b60008181526003602052604090205460609060ff161561050a5760008281526002602052604090208054610485906113e3565b80601f01602080910402602001604051908101604052809291908181526020018280546104b1906113e3565b80156104fe5780601f106104d3576101008083540402835291602001916104fe565b820191906000526020600020905b8154815290600101906020018083116104e157829003601f168201915b50505050509050919050565b600061051583610998565b9050606080606061052586610ae0565b60058054939650919450925060009182906105425761054261141e565b9060005260206000200160405160200161055c9190611434565b604051602081830303815290604052805190602001208560405160200161058391906114d0565b6040516020818303038152906040528051906020012014905060008180156105ba57506105ba6105b589612710611502565b610dfe565b9050600083518551875189516105d09190611502565b6105da9190611502565b6105e49190611502565b6105ef906003611502565b905060015481111561068e5761060489610dfe565b156106525781156106375761062a85858960405180602001604052806000815250610e3f565b9998505050505050505050565b61062a87868660405180602001604052806000815250610e3f565b81156106735761062a86858960405180602001604052806000815250610e3f565b61062a87878660405180602001604052806000815250610e3f565b81156106a85761062a8686866106a38d610998565b610e3f565b61062a6106b48a610998565b878787610e3f565b6001600160a01b038116331461073f5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c66000000000000000000000000000000000060648201526084015b60405180910390fd5b6107498282610ed1565b5050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610778813361087c565b6000838152600260209081526040909120835161079792850190611138565b5060008381526003602052604090819020805460ff19166001179055517f8ed0be647de5306d727fba3e4430e34b451f5158f81c62434b6dffbcd90729c5906107e3908590859061151a565b60405180910390a1505050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a661081b813361087c565b50600480547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b600082815260208190526040902060010154610872813361087c565b61044d8383610ed1565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16610749576108b8816001600160a01b03166014610f50565b6108c3836020610f50565b6040516020016108d492919061153b565b60408051601f198184030181529082905262461bcd60e51b8252610736916004016112cb565b6000828152602081815260408083206001600160a01b038516845290915290205460ff16610749576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556109543390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60606109a38261036d565b610a865760055460408051602080820186905282518083038201815291830190925280519101206000916109d6916115bc565b9050600581815481106109eb576109eb61141e565b906000526020600020018054610a00906113e3565b80601f0160208091040260200160405190810160405280929190818152602001828054610a2c906113e3565b8015610a795780601f10610a4e57610100808354040283529160200191610a79565b820191906000526020600020905b815481529060010190602001808311610a5c57829003601f168201915b5050505050915050919050565b610a8f8261036d565b60011415610aab57505060408051602081019091526000815290565b6006610ab68361036d565b81548110610ac657610ac661141e565b906000526020600020018054610485906113e3565b919050565b6060806060600060078054905085604051602001610b0091815260200190565b6040516020818303038152906040528051906020012060001c610b2391906115bc565b600854604051919250600091610b679088906020019081527f6162630000000000000000000000000000000000000000000000000000000000602082015260230190565b6040516020818303038152906040528051906020012060001c610b8a91906115bc565b600954604051919250600091610bce9089906020019081527f6465660000000000000000000000000000000000000000000000000000000000602082015260230190565b6040516020818303038152906040528051906020012060001c610bf191906115bc565b905060078381548110610c0657610c0661141e565b9060005260206000200160088381548110610c2357610c2361141e565b9060005260206000200160098381548110610c4057610c4061141e565b90600052602060002001828054610c56906113e3565b80601f0160208091040260200160405190810160405280929190818152602001828054610c82906113e3565b8015610ccf5780601f10610ca457610100808354040283529160200191610ccf565b820191906000526020600020905b815481529060010190602001808311610cb257829003601f168201915b50505050509250818054610ce2906113e3565b80601f0160208091040260200160405190810160405280929190818152602001828054610d0e906113e3565b8015610d5b5780601f10610d3057610100808354040283529160200191610d5b565b820191906000526020600020905b815481529060010190602001808311610d3e57829003601f168201915b50505050509150808054610d6e906113e3565b80601f0160208091040260200160405190810160405280929190818152602001828054610d9a906113e3565b8015610de75780601f10610dbc57610100808354040283529160200191610de7565b820191906000526020600020905b815481529060010190602001808311610dca57829003601f168201915b505050505090509550955095505050509193909250565b6000600282604051602001610e1591815260200190565b6040516020818303038152906040528051906020012060001c610e3891906115bc565b1592915050565b606080600086511115610e7757858585604051602001610e61939291906115de565b6040516020818303038152906040529050610e9c565b8484604051602001610e8a929190611638565b60405160208183030381529060405290505b825115610ec8578083604051602001610eb6929190611638565b60405160208183030381529060405290505b95945050505050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1615610749576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60606000610f5f836002611674565b610f6a906002611502565b67ffffffffffffffff811115610f8257610f826112de565b6040519080825280601f01601f191660200182016040528015610fac576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110610fe357610fe361141e565b60200101906001600160f81b031916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061102e5761102e61141e565b60200101906001600160f81b031916908160001a9053506000611052846002611674565b61105d906001611502565b90505b60018111156110e2577f303132333435363738396162636465660000000000000000000000000000000085600f166010811061109e5761109e61141e565b1a60f81b8282815181106110b4576110b461141e565b60200101906001600160f81b031916908160001a90535060049490941c936110db81611693565b9050611060565b5083156111315760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610736565b9392505050565b828054611144906113e3565b90600052602060002090601f01602090048101928261116657600085556111ac565b82601f1061117f57805160ff19168380011785556111ac565b828001600101855582156111ac579182015b828111156111ac578251825591602001919060010190611191565b506111b89291506111bc565b5090565b5b808211156111b857600081556001016111bd565b6000602082840312156111e357600080fd5b81357fffffffff000000000000000000000000000000000000000000000000000000008116811461113157600080fd5b60006020828403121561122557600080fd5b5035919050565b80356001600160a01b0381168114610adb57600080fd5b6000806040838503121561125657600080fd5b823591506112666020840161122c565b90509250929050565b60005b8381101561128a578181015183820152602001611272565b83811115611299576000848401525b50505050565b600081518084526112b781602086016020860161126f565b601f01601f19169290920160200192915050565b602081526000611131602083018461129f565b634e487b7160e01b600052604160045260246000fd5b6000806040838503121561130757600080fd5b82359150602083013567ffffffffffffffff8082111561132657600080fd5b818501915085601f83011261133a57600080fd5b81358181111561134c5761134c6112de565b604051601f8201601f19908116603f01168101908382118183101715611374576113746112de565b8160405282815288602084870101111561138d57600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b6000602082840312156113c157600080fd5b6111318261122c565b6000602082840312156113dc57600080fd5b5051919050565b600181811c908216806113f757607f821691505b6020821081141561141857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b600080835481600182811c91508083168061145057607f831692505b602080841082141561147057634e487b7160e01b86526022600452602486fd5b8180156114845760018114611495576114c2565b60ff198616895284890196506114c2565b60008a81526020902060005b868110156114ba5781548b8201529085019083016114a1565b505084890196505b509498975050505050505050565b600082516114e281846020870161126f565b9190910192915050565b634e487b7160e01b600052601160045260246000fd5b60008219821115611515576115156114ec565b500190565b828152604060208201526000611533604083018461129f565b949350505050565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161157381601785016020880161126f565b7f206973206d697373696e6720726f6c652000000000000000000000000000000060179184019182015283516115b081602884016020880161126f565b01602801949350505050565b6000826115d957634e487b7160e01b600052601260045260246000fd5b500690565b600084516115f081846020890161126f565b8083019050600160fd1b8082528551611610816001850160208a0161126f565b6001920191820152835161162b81600284016020880161126f565b0160020195945050505050565b6000835161164a81846020880161126f565b600160fd1b908301908152835161166881600184016020880161126f565b01600101949350505050565b600081600019048311821515161561168e5761168e6114ec565b500290565b6000816116a2576116a26114ec565b50600019019056fea2646970667358221220a147e064e40a2fe07585e13f6ba907d56cca47c81ac79c1c89b41aff3230465e64736f6c634300080c00339f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a668747470733a2f2f6a6f62732e726567756c61722e776f726c642f63617264732f69642f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106103995760003560e01c806380bfacc2116101e9578063bcc51dee1161010f578063d547741f116100ad578063e985e9c51161007c578063e985e9c514610899578063ea8c6bc0146108d5578063f07d1f00146108f5578063fc1244911461090857600080fd5b8063d547741f14610840578063dbc851aa14610853578063dc5ac48614610873578063e8ef3dd61461088657600080fd5b8063c87b56dd116100e9578063c87b56dd146107e0578063ce212be1146107f3578063d160c7a914610806578063d53913931461081957600080fd5b8063bcc51dee14610798578063bcd5349f146107ba578063c2c06100146107cd57600080fd5b8063981d120c11610187578063a708900711610156578063a70890071461074c578063b4707b5c1461075f578063b633620c14610772578063b88d4fde1461078557600080fd5b8063981d120c1461070b578063a14481941461071e578063a217fddf14610731578063a22cb4651461073957600080fd5b80638dd78ddb116101c35780638dd78ddb1461069257806391d14854146106b757806395d89b41146106f0578063978163e0146106f857600080fd5b806380bfacc21461064c5780638b0b98851461065f5780638bc33af31461067257600080fd5b806336568abe116102ce5780636352211e1161026c578063749a29151161023b578063749a2915146105fb5780637cc5db651461060e5780637d55094d146106215780637dc0bf3f1461062957600080fd5b80636352211e146105a25780636779658c146105b55780636f129d1e146105d557806370a08231146105e857600080fd5b806342842e0e116102a857806342842e0e14610549578063546e833f1461055c57806355f804b31461057c5780635a21ab8f1461058f57600080fd5b806336568abe1461051057806336ed4429146105235780633b68a2e21461053657600080fd5b8063242bdcde1161033b5780632a55205a116103155780632a55205a146104a55780632f2ff15d146104d757806334279062146104ea57806335a1223a146104fd57600080fd5b8063242bdcde14610454578063248a9ca31461046757806324bbd0491461049857600080fd5b8063081812fc11610377578063081812fc146103f0578063095ea7b31461041b5780631bed626b1461042e57806323b872dd1461044157600080fd5b806301ffc9a71461039e57806304634d8d146103c657806306fdde03146103db575b600080fd5b6103b16103ac366004613c3d565b610928565b60405190151581526020015b60405180910390f35b6103d96103d4366004613c6f565b610939565b005b6103e3610973565b6040516103bd9190613d11565b6104036103fe366004613d24565b610a05565b6040516001600160a01b0390911681526020016103bd565b6103d9610429366004613d3d565b610a9f565b6103d961043c366004613d24565b610bcc565b6103d961044f366004613d69565b610c59565b6103d9610462366004613daa565b610ce0565b61048a610475366004613d24565b60009081526008602052604090206001015490565b6040519081526020016103bd565b600a546103b19060ff1681565b6104b86104b3366004613daa565b610d1e565b604080516001600160a01b0390931683526020830191909152016103bd565b6103d96104e5366004613dcc565b610dd9565b6103b16104f8366004613d24565b610dff565b6103e361050b366004613d24565b610e39565b6103d961051e366004613dcc565b610f12565b6103b1610531366004613d24565b610f9e565b61048a610544366004613d24565b611019565b6103d9610557366004613d69565b6110a1565b61056f61056a366004613df1565b6110bc565b6040516103bd9190613e0e565b6103d961058a366004613f1f565b61122a565b6103d961059d366004613daa565b611268565b6104036105b0366004613d24565b6112a6565b61048a6105c3366004613d24565b6000908152600f602052604090205490565b6103d96105e3366004613daa565b611331565b61048a6105f6366004613df1565b6115cb565b6103d9610609366004613daa565b611665565b6103e361061c366004613d24565b6116a3565b6103d96116d5565b6103b1610637366004613d24565b600b6020526000908152604090205460ff1681565b61048a61065a366004613d24565b611715565b61040361066d366004613f1f565b6117aa565b61048a610680366004613d24565b600c6020526000908152604090205481565b6106a56106a0366004613d24565b611a55565b6040516103bd96959493929190613f54565b6103b16106c5366004613dcc565b60009182526008602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6103e3611cce565b61048a610706366004613d24565b611cdd565b6103d9610719366004613d24565b611d54565b6103d961072c366004613d3d565b611e15565b61048a600081565b6103d9610747366004613fac565b612303565b61048a61075a366004613d24565b61230e565b61048a61076d366004613d24565b612385565b61048a610780366004613d24565b6123b7565b6103d9610793366004613fda565b61242e565b6103b16107a6366004613d24565b6000908152600f6020526040902054151590565b61048a6107c8366004613d24565b6124bc565b6103d96107db36600461405a565b612507565b6103e36107ee366004613d24565b612822565b6103d96108013660046140a1565b6128e5565b6103d9610814366004613daa565b612926565b61048a7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b6103d961084e366004613dcc565b612964565b61048a610861366004613d24565b600e6020526000908152604090205481565b61048a610881366004613d24565b61298a565b61056f610894366004613df1565b6129d5565b6103b16108a736600461415c565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b61048a6108e3366004613d24565b600d6020526000908152604090205481565b610403610903366004613d24565b612c1e565b61048a610916366004613d24565b600f6020526000908152604090205481565b600061093382612c8c565b92915050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a66109648133612cca565b61096e8383612d4a565b505050565b6060600280546109829061418a565b80601f01602080910402602001604051908101604052809291908181526020018280546109ae9061418a565b80156109fb5780601f106109d0576101008083540402835291602001916109fb565b820191906000526020600020905b8154815290600101906020018083116109de57829003601f168201915b5050505050905090565b6000818152600460205260408120546001600160a01b0316610a835760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610aaa826112a6565b9050806001600160a01b0316836001600160a01b03161415610b345760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610a7a565b336001600160a01b0382161480610b505750610b5081336108a7565b610bc25760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610a7a565b61096e8383612e64565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610bf78133612cca565b6000828152600e602090815260408083208054612710909155808452600f8352818420849055858452600c90925280832042905551909184917f646ab6c9d803c92796837b8917e7cc2d210b06c74948e5f477b1e1e8a053d1979190a2505050565b610c633382612ed2565b610cd55760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610a7a565b61096e838383612fc9565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6610d0b8133612cca565b506000918252600e602052604090912055565b60008281526001602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046bffffffffffffffffffffffff16928201929092528291610d9d5750604080518082019091526000546001600160a01b0381168252600160a01b90046bffffffffffffffffffffffff1660208201525b602081015160009061271090610dc1906bffffffffffffffffffffffff16876141d5565b610dcb919061420a565b915196919550909350505050565b600082815260086020526040902060010154610df58133612cca565b61096e83836131a1565b6000818152600e6020526040812054610e1790612c1e565b6001600160a01b0316610e29836112a6565b6001600160a01b03161492915050565b6000818152600460205260409020546060906001600160a01b0316610ea05760405162461bcd60e51b815260206004820152601b60248201527f517565727920666f72206e6f6e6578697374656e7420746f6b656e00000000006044820152606401610a7a565b601554604051631ad0911d60e11b8152600481018490526001600160a01b03909116906335a1223a906024015b600060405180830381865afa158015610eea573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610933919081019061421e565b6001600160a01b0381163314610f905760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608401610a7a565b610f9a8282613243565b5050565b6000818152600460205260408120546001600160a01b03166110025760405162461bcd60e51b815260206004820152601b60248201527f517565727920666f72206e6f6e6578697374656e7420746f6b656e00000000006044820152606401610a7a565b506000908152600e60205260409020546127101490565b6011546040517f3b68a2e2000000000000000000000000000000000000000000000000000000008152600481018390526000916001600160a01b031690633b68a2e2906024015b602060405180830381865afa15801561107d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109339190614295565b61096e8383836040518060200160405280600081525061242e565b6016546040516370a0823160e01b81526001600160a01b0383811660048301526060926000929116906370a0823190602401602060405180830381865afa15801561110b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061112f9190614295565b67ffffffffffffffff81111561114757611147613e52565b604051908082528060200260200182016040528015611170578160200160208202803683370190505b50905060005b815181101561122357601654604051632f745c5960e01b81526001600160a01b0386811660048301526024820184905290911690632f745c5990604401602060405180830381865afa1580156111d0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111f49190614295565b828281518110611206576112066142ae565b60209081029190910101528061121b816142c4565b915050611176565b5092915050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a66112558133612cca565b815161096e906009906020850190613b8b565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a66112938133612cca565b506000918252600f602052604090912055565b6000818152600460205260408120546001600160a01b0316806109335760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610a7a565b3361133b836112a6565b6001600160a01b0316146113915760405162461bcd60e51b815260206004820152601660248201527f4e6f74206f776e6572206f662074686973206a6f622e000000000000000000006044820152606401610a7a565b6016546040516331a9108f60e11b81526004810183905233916001600160a01b031690636352211e90602401602060405180830381865afa1580156113da573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113fe91906142df565b6001600160a01b0316146114545760405162461bcd60e51b815260206004820152601460248201527f4e6f74206f776e6572206f6620526567756c61720000000000000000000000006044820152606401610a7a565b6000828152600e60205260409020548114156114d85760405162461bcd60e51b815260206004820152602560248201527f546869732072656720616c72656164792061737369676e656420746f2074686960448201527f73206a6f620000000000000000000000000000000000000000000000000000006064820152608401610a7a565b6000818152600f60205260409020541561155a5760405162461bcd60e51b815260206004820152602860248201527f546869732072656720616c72656164792061737369676e656420746f20616e6f60448201527f74686572206a6f620000000000000000000000000000000000000000000000006064820152608401610a7a565b6000828152600e60209081526040808320805490859055808452600f8352818420849055848452818420869055858452600c8352928190204290555183815284917f558ee8c356e278828c9c7dd91a0e476272a0ef069ee872a5cd342acc9999896e910160405180910390a2505050565b60006001600160a01b0382166116495760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610a7a565b506001600160a01b031660009081526005602052604090205490565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a66116908133612cca565b506000918252600d602052604090912055565b601154604051631ae3fd5d60e21b8152600481018390526060916001600160a01b031690636b8ff57490602401610ecd565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a66117008133612cca565b50600a805460ff19811660ff90911615179055565b6000818152600460205260408120546001600160a01b03166117795760405162461bcd60e51b815260206004820152601b60248201527f517565727920666f72206e6f6e6578697374656e7420746f6b656e00000000006044820152606401610a7a565b60135460405163a9b6c43560e01b8152600481018490526001600160a01b039091169063a9b6c43590602401611060565b60408051808201909152601381527f4a6f625472616e7366657246756e6374696f6e0000000000000000000000000060209182015281519082012060009082907ff1d25eff255a7c967c82b7f98db88c1ec268c20a137bf1269b85b0d90befb1ba14156118245750506010546001600160a01b0316919050565b604080518082019091526009815268436f6d70616e69657360b81b6020918201528151908201207f556d8fb226267b78d084022e69cb36ce65bda0dbeee7b79550e320b9c9dd027914156118855750506011546001600160a01b0316919050565b60408051808201909152600b81526a119a5b985b98d951195c1d60aa1b6020918201528151908201207fc83456f8d98ff5795b822637ac5fc3a24e7b9118c7f241dc63c8658144e0341f14156118e85750506012546001600160a01b0316919050565b60408051808201909152600981526853656e696f7269747960b81b6020918201528151908201207f53c9dc810139d0d6979f05eb54603247f3d7cc0642602a9b40a0c45782b2b54114156119495750506014546001600160a01b0316919050565b6040805180820190915260068152655469746c657360d01b6020918201528151908201207f99bc194f29325deb6046ff7867a28f01fa037794f1eb1238b3e91f2693f83c6414156119a75750506015546001600160a01b0316919050565b60408051808201909152600881526753616c617269657360c01b6020918201528151908201207f3b72a54b553fe5d8be3eeaa471491441de0adcceaf82707c16889d84d803ff921415611a075750506013546001600160a01b0316919050565b60405162461bcd60e51b815260206004820152600a60248201527f4e6f6e6520666f756e64000000000000000000000000000000000000000000006044820152606401610a7a565b50919050565b6000806000606060006060611a81876000908152600460205260409020546001600160a01b0316151590565b611acd5760405162461bcd60e51b815260206004820152601b60248201527f517565727920666f72206e6f6e6578697374656e7420746f6b656e00000000006044820152606401610a7a565b60135460405163a9b6c43560e01b8152600481018990526000916001600160a01b03169063a9b6c43590602401602060405180830381865afa158015611b17573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b3b9190614295565b6000898152600e6020908152604080832054600d909252808320546011549151631ae3fd5d60e21b81526004810182905294955091939192916001600160a01b0390911690636b8ff57490602401600060405180830381865afa158015611ba6573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611bce919081019061421e565b6014546040516302e2c6f960e11b8152600481018e90529192506000916001600160a01b03909116906305c58df290602401602060405180830381865afa158015611c1d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c419190614295565b601554604051631ad0911d60e11b8152600481018f90529192506000916001600160a01b03909116906335a1223a90602401600060405180830381865afa158015611c90573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611cb8919081019061421e565b959d949c50929a50909850965091945092505050565b6060600380546109829061418a565b6000818152600460205260408120546001600160a01b0316611d415760405162461bcd60e51b815260206004820152601b60248201527f517565727920666f72206e6f6e6578697374656e7420746f6b656e00000000006044820152606401610a7a565b506000908152600e602052604090205490565b33611d5e826112a6565b6001600160a01b031614611db45760405162461bcd60e51b815260206004820152601660248201527f4e6f74206f776e6572206f662074686973206a6f622e000000000000000000006044820152606401610a7a565b6000818152600e602090815260408083208054612710909155808452600f8352818420849055848452600c90925280832042905551909183917f646ab6c9d803c92796837b8917e7cc2d210b06c74948e5f477b1e1e8a053d1979190a25050565b6016546040516331a9108f60e11b8152600481018390526001600160a01b03848116921690636352211e90602401602060405180830381865afa158015611e60573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e8491906142df565b6001600160a01b031614611eda5760405162461bcd60e51b815260206004820152601060248201527f4e6f7420796f757220526567756c6172000000000000000000000000000000006044820152606401610a7a565b6000818152600b602052604090205460ff1615611f395760405162461bcd60e51b815260206004820152600f60248201527f416c726561647920636c61696d656400000000000000000000000000000000006044820152606401610a7a565b600a5460ff16611f8b5760405162461bcd60e51b815260206004820152600b60248201527f4e6f74206d696e74696e670000000000000000000000000000000000000000006044820152606401610a7a565b6000818152600f602052604090205415611fe75760405162461bcd60e51b815260206004820152601a60248201527f52656720697320776f726b696e6720616e6f74686572206a6f620000000000006044820152606401610a7a565b6000818152600b6020526040808220805460ff1916600117905560115490517fd3f10c8f0000000000000000000000000000000000000000000000000000000081526004810184905282916001600160a01b03169063d3f10c8f9060240160408051808303816000875af1158015612063573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061208791906142fc565b6000828152600c60209081526040808320429055600d8252808320849055600e8252808320889055878352600f9091529081902083905560115490517fc708ed82000000000000000000000000000000000000000000000000000000008152600481018790529294509092506001600160a01b03169063c708ed8290602401602060405180830381865afa158015612123573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121479190614320565b156122b8576014546040516302e2c6f960e11b8152600481018490526001600160a01b03909116906305c58df290602401602060405180830381865afa158015612195573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121b99190614295565b612240576014546040517f70a93b3600000000000000000000000000000000000000000000000000000000815260048101849052600260248201526001600160a01b03909116906370a93b3690604401600060405180830381600087803b15801561222357600080fd5b505af1158015612237573d6000803e3d6000fd5b505050506122b8565b6014546040517fc6450a3b000000000000000000000000000000000000000000000000000000008152600481018490526001600160a01b039091169063c6450a3b90602401600060405180830381600087803b15801561229f57600080fd5b505af11580156122b3573d6000803e3d6000fd5b505050505b6122c284836132c6565b604080518381526020810185905282917f070aa035fe0a09f0d9305bdc2d7a5d93cd4733db3b1ff869b4a7033c9501909a910160405180910390a250505050565b610f9a3383836132e0565b6000818152600460205260408120546001600160a01b03166123725760405162461bcd60e51b815260206004820152601b60248201527f517565727920666f72206e6f6e6578697374656e7420746f6b656e00000000006044820152606401610a7a565b506000908152600d602052604090205490565b6014546040516302e2c6f960e11b8152600481018390526000916001600160a01b0316906305c58df290602401611060565b6000818152600460205260408120546001600160a01b031661241b5760405162461bcd60e51b815260206004820152601b60248201527f517565727920666f72206e6f6e6578697374656e7420746f6b656e00000000006044820152606401610a7a565b506000908152600c602052604090205490565b6124383383612ed2565b6124aa5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610a7a565b6124b6848484846133af565b50505050565b6011546040517fbcd5349f000000000000000000000000000000000000000000000000000000008152600481018390526000916001600160a01b03169063bcd5349f90602401611060565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a66125328133612cca565b60408051808201909152601381527f4a6f625472616e7366657246756e6374696f6e0000000000000000000000000060209182015283519084012083907ff1d25eff255a7c967c82b7f98db88c1ec268c20a137bf1269b85b0d90befb1ba14156125b657601080546001600160a01b0319166001600160a01b0385161790556124b6565b604080518082019091526009815268436f6d70616e69657360b81b6020918201528151908201207f556d8fb226267b78d084022e69cb36ce65bda0dbeee7b79550e320b9c9dd0279141561262457601180546001600160a01b0319166001600160a01b0385161790556124b6565b60408051808201909152600b81526a119a5b985b98d951195c1d60aa1b6020918201528151908201207fc83456f8d98ff5795b822637ac5fc3a24e7b9118c7f241dc63c8658144e0341f141561269457601280546001600160a01b0319166001600160a01b0385161790556124b6565b60408051808201909152600981526853656e696f7269747960b81b6020918201528151908201207f53c9dc810139d0d6979f05eb54603247f3d7cc0642602a9b40a0c45782b2b541141561270257601480546001600160a01b0319166001600160a01b0385161790556124b6565b6040805180820190915260068152655469746c657360d01b6020918201528151908201207f99bc194f29325deb6046ff7867a28f01fa037794f1eb1238b3e91f2693f83c64141561276d57601580546001600160a01b0319166001600160a01b0385161790556124b6565b60408051808201909152600881526753616c617269657360c01b6020918201528151908201207f3b72a54b553fe5d8be3eeaa471491441de0adcceaf82707c16889d84d803ff9214156127da57601380546001600160a01b0319166001600160a01b0385161790556124b6565b60405162461bcd60e51b815260206004820152600e60248201527f4e6f206d6174636820666f756e640000000000000000000000000000000000006044820152606401610a7a565b6000818152600460205260409020546060906001600160a01b03166128895760405162461bcd60e51b815260206004820152601b60248201527f517565727920666f72206e6f6e6578697374656e7420746f6b656e00000000006044820152606401610a7a565b6000600980546128989061418a565b9050116128b45760405180602001604052806000815250610933565b60096128bf8361342d565b6040516020016128d0929190614359565b60405160208183030381529060405292915050565b60005b815181101561096e5761291483838381518110612907576129076142ae565b6020026020010151611e15565b8061291e816142c4565b9150506128e8565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a66129518133612cca565b506000918252600c602052604090912055565b6000828152600860205260409020600101546129808133612cca565b61096e8383613243565b6011546040517fdc5ac486000000000000000000000000000000000000000000000000000000008152600481018390526000916001600160a01b03169063dc5ac48690602401611060565b60606000805b6016546040516370a0823160e01b81526001600160a01b038681166004830152909116906370a0823190602401602060405180830381865afa158015612a25573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a499190614295565b811015612b0057601654604051632f745c5960e01b81526001600160a01b038681166004830152602482018490526000921690632f745c5990604401602060405180830381865afa158015612aa2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ac69190614295565b6000818152600b602052604090205490915060ff16612aed5782612ae9816142c4565b9350505b5080612af8816142c4565b9150506129db565b5060008167ffffffffffffffff811115612b1c57612b1c613e52565b604051908082528060200260200182016040528015612b45578160200160208202803683370190505b50905060005b8151811015612c1657601654604051632f745c5960e01b81526001600160a01b038781166004830152602482018490526000921690632f745c5990604401602060405180830381865afa158015612ba6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612bca9190614295565b6000818152600b602052604090205490915060ff16612c035780838381518110612bf657612bf66142ae565b6020026020010181815250505b5080612c0e816142c4565b915050612b4b565b509392505050565b6016546040516331a9108f60e11b8152600481018390526000916001600160a01b031690636352211e90602401602060405180830381865afa158015612c68573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061093391906142df565b60006001600160e01b031982167f7965db0b00000000000000000000000000000000000000000000000000000000148061093357506109338261352b565b60008281526008602090815260408083206001600160a01b038516845290915290205460ff16610f9a57612d08816001600160a01b03166014613536565b612d13836020613536565b604051602001612d249291906143f7565b60408051601f198184030181529082905262461bcd60e51b8252610a7a91600401613d11565b6127106bffffffffffffffffffffffff82161115612dd05760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c2065786365656460448201527f2073616c655072696365000000000000000000000000000000000000000000006064820152608401610a7a565b6001600160a01b038216612e265760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610a7a565b604080518082019091526001600160a01b039092168083526bffffffffffffffffffffffff9091166020909201829052600160a01b90910217600055565b600081815260066020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612e99826112a6565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600460205260408120546001600160a01b0316612f4b5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a7a565b6000612f56836112a6565b9050806001600160a01b0316846001600160a01b03161480612f915750836001600160a01b0316612f8684610a05565b6001600160a01b0316145b80612fc157506001600160a01b0380821660009081526007602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316612fdc826112a6565b6001600160a01b0316146130585760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610a7a565b6001600160a01b0382166130d35760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610a7a565b6130de838383613702565b6130e9600082612e64565b6001600160a01b0383166000908152600560205260408120805460019290613112908490614478565b90915550506001600160a01b038216600090815260056020526040812080546001929061314090849061448f565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60008281526008602090815260408083206001600160a01b038516845290915290205460ff16610f9a5760008281526008602090815260408083206001600160a01b03851684529091529020805460ff191660011790556131ff3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60008281526008602090815260408083206001600160a01b038516845290915290205460ff1615610f9a5760008281526008602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b610f9a82826040518060200160405280600081525061379d565b816001600160a01b0316836001600160a01b031614156133425760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610a7a565b6001600160a01b03838116600081815260076020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6133ba848484612fc9565b6133c68484848461381b565b6124b65760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610a7a565b6060816134515750506040805180820190915260018152600360fc1b602082015290565b8160005b811561347b5780613465816142c4565b91506134749050600a8361420a565b9150613455565b60008167ffffffffffffffff81111561349657613496613e52565b6040519080825280601f01601f1916602001820160405280156134c0576020820181803683370190505b5090505b8415612fc1576134d5600183614478565b91506134e2600a866144a7565b6134ed90603061448f565b60f81b818381518110613502576135026142ae565b60200101906001600160f81b031916908160001a905350613524600a8661420a565b94506134c4565b600061093382613964565b606060006135458360026141d5565b61355090600261448f565b67ffffffffffffffff81111561356857613568613e52565b6040519080825280601f01601f191660200182016040528015613592576020820181803683370190505b509050600360fc1b816000815181106135ad576135ad6142ae565b60200101906001600160f81b031916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106135f8576135f86142ae565b60200101906001600160f81b031916908160001a905350600061361c8460026141d5565b61362790600161448f565b90505b60018111156136ac577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110613668576136686142ae565b1a60f81b82828151811061367e5761367e6142ae565b60200101906001600160f81b031916908160001a90535060049490941c936136a5816144bb565b905061362a565b5083156136fb5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610a7a565b9392505050565b6001600160a01b0383161561096e576010546040517f12f96e530000000000000000000000000000000000000000000000000000000081526001600160a01b038581166004830152848116602483015260448201849052909116906312f96e5390606401600060405180830381600087803b15801561378057600080fd5b505af1158015613794573d6000803e3d6000fd5b50505050505050565b6137a783836139d6565b6137b4600084848461381b565b61096e5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610a7a565b60006001600160a01b0384163b1561395957604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061385f9033908990889088906004016144d2565b6020604051808303816000875af192505050801561389a575060408051601f3d908101601f191682019092526138979181019061450e565b60015b61393f573d8080156138c8576040519150601f19603f3d011682016040523d82523d6000602084013e6138cd565b606091505b5080516139375760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610a7a565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612fc1565b506001949350505050565b60006001600160e01b031982167f80ac58cd0000000000000000000000000000000000000000000000000000000014806139c757506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610933575061093382613b24565b6001600160a01b038216613a2c5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610a7a565b6000818152600460205260409020546001600160a01b031615613a915760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610a7a565b613a9d60008383613702565b6001600160a01b0382166000908152600560205260408120805460019290613ac690849061448f565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160e01b031982167f2a55205a00000000000000000000000000000000000000000000000000000000148061093357507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610933565b828054613b979061418a565b90600052602060002090601f016020900481019282613bb95760008555613bff565b82601f10613bd257805160ff1916838001178555613bff565b82800160010185558215613bff579182015b82811115613bff578251825591602001919060010190613be4565b50613c0b929150613c0f565b5090565b5b80821115613c0b5760008155600101613c10565b6001600160e01b031981168114613c3a57600080fd5b50565b600060208284031215613c4f57600080fd5b81356136fb81613c24565b6001600160a01b0381168114613c3a57600080fd5b60008060408385031215613c8257600080fd5b8235613c8d81613c5a565b915060208301356bffffffffffffffffffffffff81168114613cae57600080fd5b809150509250929050565b60005b83811015613cd4578181015183820152602001613cbc565b838111156124b65750506000910152565b60008151808452613cfd816020860160208601613cb9565b601f01601f19169290920160200192915050565b6020815260006136fb6020830184613ce5565b600060208284031215613d3657600080fd5b5035919050565b60008060408385031215613d5057600080fd5b8235613d5b81613c5a565b946020939093013593505050565b600080600060608486031215613d7e57600080fd5b8335613d8981613c5a565b92506020840135613d9981613c5a565b929592945050506040919091013590565b60008060408385031215613dbd57600080fd5b50508035926020909101359150565b60008060408385031215613ddf57600080fd5b823591506020830135613cae81613c5a565b600060208284031215613e0357600080fd5b81356136fb81613c5a565b6020808252825182820181905260009190848201906040850190845b81811015613e4657835183529284019291840191600101613e2a565b50909695505050505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715613e9157613e91613e52565b604052919050565b600067ffffffffffffffff821115613eb357613eb3613e52565b50601f01601f191660200190565b6000613ed4613ecf84613e99565b613e68565b9050828152838383011115613ee857600080fd5b828260208301376000602084830101529392505050565b600082601f830112613f1057600080fd5b6136fb83833560208501613ec1565b600060208284031215613f3157600080fd5b813567ffffffffffffffff811115613f4857600080fd5b612fc184828501613eff565b86815285602082015284604082015260c060608201526000613f7960c0830186613ce5565b84608084015282810360a0840152613f918185613ce5565b9998505050505050505050565b8015158114613c3a57600080fd5b60008060408385031215613fbf57600080fd5b8235613fca81613c5a565b91506020830135613cae81613f9e565b60008060008060808587031215613ff057600080fd5b8435613ffb81613c5a565b9350602085013561400b81613c5a565b925060408501359150606085013567ffffffffffffffff81111561402e57600080fd5b8501601f8101871361403f57600080fd5b61404e87823560208401613ec1565b91505092959194509250565b6000806040838503121561406d57600080fd5b823567ffffffffffffffff81111561408457600080fd5b61409085828601613eff565b9250506020830135613cae81613c5a565b600080604083850312156140b457600080fd5b82356140bf81613c5a565b915060208381013567ffffffffffffffff808211156140dd57600080fd5b818601915086601f8301126140f157600080fd5b81358181111561410357614103613e52565b8060051b9150614114848301613e68565b818152918301840191848101908984111561412e57600080fd5b938501935b8385101561414c57843582529385019390850190614133565b8096505050505050509250929050565b6000806040838503121561416f57600080fd5b823561417a81613c5a565b91506020830135613cae81613c5a565b600181811c9082168061419e57607f821691505b60208210811415611a4f57634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60008160001904831182151516156141ef576141ef6141bf565b500290565b634e487b7160e01b600052601260045260246000fd5b600082614219576142196141f4565b500490565b60006020828403121561423057600080fd5b815167ffffffffffffffff81111561424757600080fd5b8201601f8101841361425857600080fd5b8051614266613ecf82613e99565b81815285602083850101111561427b57600080fd5b61428c826020830160208601613cb9565b95945050505050565b6000602082840312156142a757600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b60006000198214156142d8576142d86141bf565b5060010190565b6000602082840312156142f157600080fd5b81516136fb81613c5a565b6000806040838503121561430f57600080fd5b505080516020909101519092909150565b60006020828403121561433257600080fd5b81516136fb81613f9e565b6000815161434f818560208601613cb9565b9290920192915050565b600080845481600182811c91508083168061437557607f831692505b602080841082141561439557634e487b7160e01b86526022600452602486fd5b8180156143a957600181146143ba576143e7565b60ff198616895284890196506143e7565b60008b81526020902060005b868110156143df5781548b8201529085019083016143c6565b505084890196505b50505050505061428c818561433d565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161442f816017850160208801613cb9565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000601791840191820152835161446c816028840160208801613cb9565b01602801949350505050565b60008282101561448a5761448a6141bf565b500390565b600082198211156144a2576144a26141bf565b500190565b6000826144b6576144b66141f4565b500690565b6000816144ca576144ca6141bf565b506000190190565b60006001600160a01b038087168352808616602084015250836040830152608060608301526145046080830184613ce5565b9695505050505050565b60006020828403121561452057600080fd5b81516136fb81613c2456fea2646970667358221220f0f8f34c3ca7a7ca509dd85872d8ecbb054885b90a3ad73be6b94fd8e1d989e764736f6c634300080c0033
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.