Token CryptoGenerals
Overview ERC-721
Total Supply:
1,071 CRYPTOGENERALS
Holders:
574 addresses
Contract:
Balance
1 CRYPTOGENERALS
[ Download CSV Export ]
[ Download CSV Export ]
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
CryptoGenerals
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; interface IConnector { function ownerOf(uint256 tokenId) external view returns (address owner); } contract CryptoGenerals is ERC721Enumerable, ReentrancyGuard, Ownable, AccessControl { using Counters for Counters.Counter; Counters.Counter _tokenIds; // Create a new role identifier for the minter role bytes32 public constant GAME_ROLE = keccak256("GAME_ROLE"); // Castles contract address public castlesAddress = 0x71f5C328241fC3e03A8c79eDCD510037802D369c; IConnector public castlesContract = IConnector(castlesAddress); struct general { string name; uint256 defense; uint256 strength; uint256 intelligence; uint256 agility; uint256 abilityPower; uint256 magicResistance; uint256 constitution; uint256 speed; uint256 charisma; uint256 level; uint256 createdAt; } // Global constants uint256 public changeNamePrice = 10000000000000000; // 0.01 ETH uint256 public price = 50000000000000000; //0.05 ETH uint256 public castleOwnerPrice = 0; // 0 ETH bool public paused = false; // Enable disable uint256 public maxTokens = 12999; uint256 public xpPerQuest = 100; uint256 public xpPerNameChange = 250; uint256 public maxLevelGenerals = 10; uint constant DAY = 1 days; // Mappings mapping(uint256 => general) public generals; mapping(uint256 => string) public bios; mapping(uint256 => uint256) public experience; mapping(uint256 => uint256) public castle; mapping(uint => uint) public generalsQuestLog; mapping(uint256 => bool) public claimedWithCastle; // Events event GeneralCreated( string name, uint256 generalId, general generalCreated ); event LeveledUp( address indexed leveler, uint256 generalId, uint256 level ); event ExperienceSpent(uint256 generalId, uint256 xpSpent, uint256 xpRemaining); event ExperienceGained(uint256 generalId, uint256 xpGained, uint256 xpRemaining); event NameChanged(uint256 generalId, string name); event BioChanged(uint256 generalId, string bio); event Quest(uint256 generalId, uint256 xpGained, uint256 xpTotal); event AssignedCastle(uint256 generalId, uint256 castleId); constructor() ERC721("CryptoGenerals", "CRYPTOGENERALS") Ownable() { // Grant the contract deployer the default admin role: it will be able // to grant and revoke any roles _setupRole(DEFAULT_ADMIN_ROLE, msg.sender); } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721Enumerable, AccessControl) returns (bool) { return super.supportsInterface(interfaceId); } // Change constants // Pause or resume minting function flipPause() public onlyOwner { paused = !paused; } function setCastleContractAddress(address _castle) public onlyOwner { castlesAddress = _castle; } function setMaxLevels(uint256 _newMaxLevels) public onlyOwner { maxLevelGenerals = _newMaxLevels; } function setXPPerQuest(uint256 _newXPPerQuest) public onlyOwner { xpPerQuest = _newXPPerQuest; } function setXPPerNameChange(uint256 _newXpPerNameChange) public onlyOwner { xpPerNameChange = _newXpPerNameChange; } // Change the public price of the token function setPrice(uint256 _newPrice, uint256 _type) external onlyOwner { if (_type == 0) { price = _newPrice; } else if (_type == 1) { castleOwnerPrice = _newPrice; } else { changeNamePrice = _newPrice; } } // Change the maximum amount of tokens function setMaxtokens(uint256 newMaxtokens) public onlyOwner { maxTokens = newMaxtokens; } // Claim deposited eth function ownerWithdraw() external onlyOwner { payable(owner()).transfer(address(this).balance); } // Normal mint function mintWithName(string memory _name) public payable nonReentrant { require(!paused, "Minting is paused"); require(price <= msg.value, "Ether value sent is not correct"); _internalMint(_name); } // Mint without name function mint() public payable nonReentrant { require(!paused, "Minting is paused"); require(price <= msg.value, "Ether value sent is not correct"); _internalMint("Crypto General"); } // Mint with castle function mintWithCastle(uint256 _castleId, string memory _name) external payable nonReentrant { require(!paused, "Minting is paused"); require( castlesContract.ownerOf(_castleId) == msg.sender, "Not the owner of this castle" ); require(msg.value >= castleOwnerPrice, "Eth sent is not enough"); require(!claimedWithCastle[_castleId], "Castle already used for claiming a general"); uint256 tokenId = _internalMint(_name); // Update the list of claimed claimedWithCastle[_castleId] = true; castle[tokenId] = _castleId; emit AssignedCastle(tokenId, _castleId); } // Allow the owner to claim a nft function ownerClaim() public nonReentrant onlyOwner { _internalMint("Crypto General"); } // Called by every function after safe access checks function _internalMint(string memory _name) internal returns (uint256) { require(bytes(_name).length < 100 && bytes(_name).length > 3, "Name between 3 and 100 characters"); // minting logic uint256 current = _tokenIds.current(); require(current <= maxTokens, "Max token reached"); _tokenIds.increment(); uint256 tokenId = _tokenIds.current(); _createGeneral(tokenId, _name); _safeMint(_msgSender(), tokenId); return tokenId; } // Create general function _createGeneral(uint256 _tokenId, string memory _name) internal { generals[_tokenId].name = _name; generals[_tokenId].defense = _randomFromString("defense", 10) + 1; generals[_tokenId].strength = _randomFromString("strength", 10) + 1; generals[_tokenId].intelligence = _randomFromString("intelligence", 10) + 1; generals[_tokenId].agility = _randomFromString("agility", 10) + 1; generals[_tokenId].abilityPower = _randomFromString("abilityPower", 10) + 1; generals[_tokenId].magicResistance = _randomFromString( "magicResistance", 10 ) + 1; generals[_tokenId].constitution = _randomFromString("constitution", 10) + 1; generals[_tokenId].speed = _randomFromString("speed", 10) + 1; generals[_tokenId].charisma = _randomFromString("charisma", 10) + 1; generals[_tokenId].level = 1; generals[_tokenId].createdAt = block.timestamp; experience[_tokenId] = 0; emit GeneralCreated( generals[_tokenId].name, _tokenId, generals[_tokenId] ); } // General modifiers function spendExperience(uint256 _tokenId, uint256 _experience) public { require(_isApprovedOrOwner(msg.sender, _tokenId) || hasRole(GAME_ROLE, msg.sender), "Does not have permission"); require(_experience <= experience[_tokenId], "Not enough experience"); experience[_tokenId] -= _experience; emit ExperienceSpent(_tokenId, _experience, experience[_tokenId]); } function addExperience(uint256 _tokenId, uint256 _experience) public onlyOwner { require(hasRole(GAME_ROLE, msg.sender), "Does not have Game role"); experience[_tokenId] += _experience; emit ExperienceGained(_tokenId, _experience, experience[_tokenId]); } function quest(uint _tokenId) external { require(_isApprovedOrOwner(msg.sender, _tokenId)); require(block.timestamp > generalsQuestLog[_tokenId], "Too early to do a new quest"); uint256 xpGained = _random(_tokenId, xpPerQuest) + xpPerQuest; generalsQuestLog[_tokenId] = block.timestamp + DAY; experience[_tokenId] += xpGained; emit Quest(_tokenId, xpGained, experience[_tokenId]); emit ExperienceGained(_tokenId, xpGained, experience[_tokenId]); } function levelUp(uint _tokenId) external { require(_isApprovedOrOwner(msg.sender, _tokenId) || hasRole(GAME_ROLE, msg.sender), "Does not have permission"); uint _level = generals[_tokenId].level; require(_level <= maxLevelGenerals, "Max level reached"); uint _xpRequired = experienceRequired(_level, 100); spendExperience(_tokenId, _xpRequired); generals[_tokenId].level += 1; generals[_tokenId].defense += 1; generals[_tokenId].strength += 1; generals[_tokenId].intelligence += 1; generals[_tokenId].agility += 1; generals[_tokenId].abilityPower += 1; generals[_tokenId].magicResistance += 1; generals[_tokenId].constitution += 1; generals[_tokenId].speed += 1; generals[_tokenId].charisma += 1; emit LeveledUp(msg.sender, _tokenId, _level + 1); } // Increase the difficulty of leveling up // 100, 220, 360, 520, 700, 900 function experienceRequired(uint256 _level, uint256 _xpPerLevel) public pure returns (uint256 xp_to_next_level) { xp_to_next_level = _level * _xpPerLevel; for (uint256 i = 1; i < _level; i++) { xp_to_next_level += _level * (_xpPerLevel / 10); } } // Change the name of a general function changeName(uint256 _tokenId, string memory _name) external payable nonReentrant { require(msg.value >= changeNamePrice, "Eth sent is not enough"); require(_isApprovedOrOwner(msg.sender, _tokenId)); require(bytes(_name).length < 100 && bytes(_name).length > 3, "Name between 4 and 100 characters"); generals[_tokenId].name = _name; // Increase experience experience[_tokenId] += xpPerNameChange; emit NameChanged(_tokenId, _name); } function changeBio(uint256 _tokenId, string memory _bio) external payable nonReentrant { require(msg.value >= changeNamePrice, "Eth sent is not enough"); require(_isApprovedOrOwner(msg.sender, _tokenId)); require(bytes(_bio).length < 300 && bytes(_bio).length > 3, "Bio between 4 and 300 characters"); bios[_tokenId] = _bio; experience[_tokenId] += xpPerNameChange; emit BioChanged(_tokenId, _bio); } function changeCastle(uint256 _tokenId, uint256 _castleId) external nonReentrant { require( castlesContract.ownerOf(_castleId) == msg.sender, "Not the owner of this castle" ); require(_isApprovedOrOwner(msg.sender, _tokenId)); castle[_tokenId] = _castleId; emit AssignedCastle(_tokenId, _castleId); } function _random(uint256 _salt, uint256 _limit) internal view returns (uint256) { return uint256( keccak256( abi.encodePacked(block.number, block.timestamp, _salt) ) ) % _limit; } function _randomFromString(string memory _salt, uint256 _limit) internal view returns (uint256) { return uint256( keccak256( abi.encodePacked(block.number, block.timestamp, _salt) ) ) % _limit; } /** * @dev Base URI for computing {tokenURI}. Empty by default, can be overriden * in child contracts. */ string private baseURI = "ipfs://"; function _baseURI() internal view virtual override returns (string memory) { return baseURI; } function setBaseURI(string memory newBaseURI) public onlyOwner { baseURI = newBaseURI; } }
// SPDX-License-Identifier: MIT 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 pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT 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 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 { 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 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 granted `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}. * ==== */ 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); } function _grantRole(bytes32 role, address account) private { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } function _revokeRole(bytes32 role, address account) private { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT 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 { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_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); } /** * @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); } /** * @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 of token that is not own"); 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); } /** * @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 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 {} }
// SPDX-License-Identifier: MIT 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 tokenId); /** * @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 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 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 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 pragma solidity ^0.8.0; /** * @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 * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 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 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 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 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 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; /** * @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; }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "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":"generalId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"castleId","type":"uint256"}],"name":"AssignedCastle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"generalId","type":"uint256"},{"indexed":false,"internalType":"string","name":"bio","type":"string"}],"name":"BioChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"generalId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"xpGained","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"xpRemaining","type":"uint256"}],"name":"ExperienceGained","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"generalId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"xpSpent","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"xpRemaining","type":"uint256"}],"name":"ExperienceSpent","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"name","type":"string"},{"indexed":false,"internalType":"uint256","name":"generalId","type":"uint256"},{"components":[{"internalType":"string","name":"name","type":"string"},{"internalType":"uint256","name":"defense","type":"uint256"},{"internalType":"uint256","name":"strength","type":"uint256"},{"internalType":"uint256","name":"intelligence","type":"uint256"},{"internalType":"uint256","name":"agility","type":"uint256"},{"internalType":"uint256","name":"abilityPower","type":"uint256"},{"internalType":"uint256","name":"magicResistance","type":"uint256"},{"internalType":"uint256","name":"constitution","type":"uint256"},{"internalType":"uint256","name":"speed","type":"uint256"},{"internalType":"uint256","name":"charisma","type":"uint256"},{"internalType":"uint256","name":"level","type":"uint256"},{"internalType":"uint256","name":"createdAt","type":"uint256"}],"indexed":false,"internalType":"struct CryptoGenerals.general","name":"generalCreated","type":"tuple"}],"name":"GeneralCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"leveler","type":"address"},{"indexed":false,"internalType":"uint256","name":"generalId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"level","type":"uint256"}],"name":"LeveledUp","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"generalId","type":"uint256"},{"indexed":false,"internalType":"string","name":"name","type":"string"}],"name":"NameChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"generalId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"xpGained","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"xpTotal","type":"uint256"}],"name":"Quest","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"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"GAME_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_experience","type":"uint256"}],"name":"addExperience","outputs":[],"stateMutability":"nonpayable","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":"bios","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"castle","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"castleOwnerPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"castlesAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"castlesContract","outputs":[{"internalType":"contract IConnector","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"string","name":"_bio","type":"string"}],"name":"changeBio","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_castleId","type":"uint256"}],"name":"changeCastle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"string","name":"_name","type":"string"}],"name":"changeName","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"changeNamePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"claimedWithCastle","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"experience","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_level","type":"uint256"},{"internalType":"uint256","name":"_xpPerLevel","type":"uint256"}],"name":"experienceRequired","outputs":[{"internalType":"uint256","name":"xp_to_next_level","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"flipPause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"generals","outputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"uint256","name":"defense","type":"uint256"},{"internalType":"uint256","name":"strength","type":"uint256"},{"internalType":"uint256","name":"intelligence","type":"uint256"},{"internalType":"uint256","name":"agility","type":"uint256"},{"internalType":"uint256","name":"abilityPower","type":"uint256"},{"internalType":"uint256","name":"magicResistance","type":"uint256"},{"internalType":"uint256","name":"constitution","type":"uint256"},{"internalType":"uint256","name":"speed","type":"uint256"},{"internalType":"uint256","name":"charisma","type":"uint256"},{"internalType":"uint256","name":"level","type":"uint256"},{"internalType":"uint256","name":"createdAt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"generalsQuestLog","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":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"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":"_tokenId","type":"uint256"}],"name":"levelUp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxLevelGenerals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_castleId","type":"uint256"},{"internalType":"string","name":"_name","type":"string"}],"name":"mintWithCastle","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"string","name":"_name","type":"string"}],"name":"mintWithName","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ownerClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ownerWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"quest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"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":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_castle","type":"address"}],"name":"setCastleContractAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newMaxLevels","type":"uint256"}],"name":"setMaxLevels","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMaxtokens","type":"uint256"}],"name":"setMaxtokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPrice","type":"uint256"},{"internalType":"uint256","name":"_type","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newXpPerNameChange","type":"uint256"}],"name":"setXPPerNameChange","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newXPPerQuest","type":"uint256"}],"name":"setXPPerQuest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_experience","type":"uint256"}],"name":"spendExperience","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":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"xpPerNameChange","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"xpPerQuest","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
600e80547371f5c328241fc3e03a8c79edcd510037802d369c6001600160a01b03199182168117909255600f80549091169091179055662386f26fc1000060105566b1a2bc2ec5000060115560006012556013805460ff191690556132c7601455606460155560fa601655600a60175560c06040526007608081905266697066733a2f2f60c81b60a09081526200009a91601e919062000251565b50348015620000a857600080fd5b506040518060400160405280600e81526020016d43727970746f47656e6572616c7360901b8152506040518060400160405280600e81526020016d43525950544f47454e4552414c5360901b81525081600090805190602001906200010f92919062000251565b5080516200012590600190602084019062000251565b50506001600a555062000138336200014b565b620001456000336200019d565b62000334565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b620001a98282620001ad565b5050565b6000828152600c602090815260408083206001600160a01b038516845290915290205460ff16620001a9576000828152600c602090815260408083206001600160a01b03851684529091529020805460ff191660011790556200020d3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b8280546200025f90620002f7565b90600052602060002090601f016020900481019282620002835760008555620002ce565b82601f106200029e57805160ff1916838001178555620002ce565b82800160010185558215620002ce579182015b82811115620002ce578251825591602001919060010190620002b1565b50620002dc929150620002e0565b5090565b5b80821115620002dc5760008155600101620002e1565b600181811c908216806200030c57607f821691505b602082108114156200032e57634e487b7160e01b600052602260045260246000fd5b50919050565b6142c680620003446000396000f3fe6080604052600436106103b75760003560e01c8063715018a6116101f2578063c87b56dd1161010d578063e7720458116100a0578063f2fde38b1161006f578063f2fde38b14610ae0578063f73f462514610b00578063f7d9757714610b2d578063f8349c2f14610b4d57600080fd5b8063e772045814610a4b578063e831574214610a61578063e985e9c514610a77578063f18e196d14610ac057600080fd5b8063d3943898116100dc578063d3943898146109c8578063d3e97165146109de578063d547741f14610a0b578063e24b3cea14610a2b57600080fd5b8063c87b56dd14610942578063c9a0112d14610962578063ceb1d88214610978578063d1999aca146109a857600080fd5b8063a217fddf11610185578063b4e0908211610154578063b4e09082146108d9578063b88d4fde146108f9578063c32bed8f14610919578063c39cbef11461092f57600080fd5b8063a217fddf1461086f578063a22cb46514610884578063ab400706146108a4578063ad9d2324146108c657600080fd5b806394517995116101c1578063945179951461080457806395d89b4114610824578063a035b1fe14610839578063a1ff7e901461084f57600080fd5b8063715018a61461079157806376ef6ac7146107a65780638da5cb5b146107c657806391d14854146107e457600080fd5b80632f745c59116102e25780634dbe5889116102755780635d240c58116102445780635d240c58146107115780635e488746146107315780636352211e1461075157806370a082311461077157600080fd5b80634dbe5889146106a25780634f6ccce7146106b757806355f804b3146106d75780635c975abb146106f757600080fd5b80633f327275116102b15780633f3272751461064457806342842e0e1461065a5780634311de8f1461067a5780634d4265281461068f57600080fd5b80632f745c59146105cf57806336568abe146105ef578063385df6491461060f57806339e96c7b1461062457600080fd5b80631249c58b1161035a57806323b872dd1161032957806323b872dd14610527578063248a9ca31461054757806324ceadb0146105775780632f2ff15d146105af57600080fd5b80631249c58b146104c057806318160ddd146104c85780631c0d9a91146104e75780631eb899a31461050757600080fd5b8063081812fc11610396578063081812fc14610435578063095ea7b31461046d5780630ce90ec21461048d5780631092fa9d146104ad57600080fd5b8062aaea65146103bc57806301ffc9a7146103de57806306fdde0314610413575b600080fd5b3480156103c857600080fd5b506103dc6103d7366004613bff565b610b7a565b005b3480156103ea57600080fd5b506103fe6103f9366004613b4f565b610ce5565b60405190151581526020015b60405180910390f35b34801561041f57600080fd5b50610428610cf6565b60405161040a9190613e62565b34801561044157600080fd5b50610455610450366004613b13565b610d88565b6040516001600160a01b03909116815260200161040a565b34801561047957600080fd5b506103dc610488366004613ae8565b610e1d565b34801561049957600080fd5b506103dc6104a8366004613b13565b610f33565b6103dc6104bb366004613b87565b6111e7565b6103dc611296565b3480156104d457600080fd5b506008545b60405190815260200161040a565b3480156104f357600080fd5b506103dc610502366004613b13565b61136a565b34801561051357600080fd5b506103dc610522366004613bff565b611399565b34801561053357600080fd5b506103dc6105423660046139fa565b6114d8565b34801561055357600080fd5b506104d9610562366004613b13565b6000908152600c602052604090206001015490565b34801561058357600080fd5b50610597610592366004613b13565b611509565b60405161040a9c9b9a99989796959493929190613e75565b3480156105bb57600080fd5b506103dc6105ca366004613b2b565b6115e9565b3480156105db57600080fd5b506104d96105ea366004613ae8565b61160f565b3480156105fb57600080fd5b506103dc61060a366004613b2b565b6116a5565b34801561061b57600080fd5b506103dc611723565b34801561063057600080fd5b506103dc61063f366004613b13565b611761565b34801561065057600080fd5b506104d960105481565b34801561066657600080fd5b506103dc6106753660046139fa565b611790565b34801561068657600080fd5b506103dc6117ab565b6103dc61069d366004613bba565b611811565b3480156106ae57600080fd5b506103dc611945565b3480156106c357600080fd5b506104d96106d2366004613b13565b611997565b3480156106e357600080fd5b506103dc6106f2366004613b87565b611a38565b34801561070357600080fd5b506013546103fe9060ff1681565b34801561071d57600080fd5b506103dc61072c366004613bff565b611a75565b34801561073d57600080fd5b506104d961074c366004613bff565b611b75565b34801561075d57600080fd5b5061045561076c366004613b13565b611bc8565b34801561077d57600080fd5b506104d961078c36600461398a565b611c3f565b34801561079d57600080fd5b506103dc611cc6565b3480156107b257600080fd5b506103dc6107c1366004613b13565b611cfc565b3480156107d257600080fd5b50600b546001600160a01b0316610455565b3480156107f057600080fd5b506103fe6107ff366004613b2b565b611d2b565b34801561081057600080fd5b50600e54610455906001600160a01b031681565b34801561083057600080fd5b50610428611d56565b34801561084557600080fd5b506104d960115481565b34801561085b57600080fd5b506103dc61086a366004613b13565b611d65565b34801561087b57600080fd5b506104d9600081565b34801561089057600080fd5b506103dc61089f366004613ab7565b611d94565b3480156108b057600080fd5b506104d960008051602061427183398151915281565b6103dc6108d4366004613bba565b611e59565b3480156108e557600080fd5b506104286108f4366004613b13565b612082565b34801561090557600080fd5b506103dc610914366004613a3a565b61211c565b34801561092557600080fd5b506104d960175481565b6103dc61093d366004613bba565b612154565b34801561094e57600080fd5b5061042861095d366004613b13565b612291565b34801561096e57600080fd5b506104d960155481565b34801561098457600080fd5b506103fe610993366004613b13565b601d6020526000908152604090205460ff1681565b3480156109b457600080fd5b50600f54610455906001600160a01b031681565b3480156109d457600080fd5b506104d960125481565b3480156109ea57600080fd5b506104d96109f9366004613b13565b601a6020526000908152604090205481565b348015610a1757600080fd5b506103dc610a26366004613b2b565b61236c565b348015610a3757600080fd5b506103dc610a46366004613b13565b612392565b348015610a5757600080fd5b506104d960165481565b348015610a6d57600080fd5b506104d960145481565b348015610a8357600080fd5b506103fe610a923660046139c2565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610acc57600080fd5b506103dc610adb36600461398a565b6124fa565b348015610aec57600080fd5b506103dc610afb36600461398a565b612546565b348015610b0c57600080fd5b506104d9610b1b366004613b13565b601b6020526000908152604090205481565b348015610b3957600080fd5b506103dc610b48366004613bff565b6125de565b348015610b5957600080fd5b506104d9610b68366004613b13565b601c6020526000908152604090205481565b6002600a541415610ba65760405162461bcd60e51b8152600401610b9d906140a4565b60405180910390fd5b6002600a55600f546040516331a9108f60e11b81526004810183905233916001600160a01b031690636352211e9060240160206040518083038186803b158015610bef57600080fd5b505afa158015610c03573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c2791906139a6565b6001600160a01b031614610c7d5760405162461bcd60e51b815260206004820152601c60248201527f4e6f7420746865206f776e6572206f66207468697320636173746c65000000006044820152606401610b9d565b610c873383612628565b610c9057600080fd5b6000828152601b602090815260409182902083905581518481529081018390527f66743cb4eb124010781d5d4bbf76e99195784c0d8ad409f1638a302b6490ecba91015b60405180910390a150506001600a55565b6000610cf08261271f565b92915050565b606060008054610d0590614199565b80601f0160208091040260200160405190810160405280929190818152602001828054610d3190614199565b8015610d7e5780601f10610d5357610100808354040283529160200191610d7e565b820191906000526020600020905b815481529060010190602001808311610d6157829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610e015760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610b9d565b506000908152600460205260409020546001600160a01b031690565b6000610e2882611bc8565b9050806001600160a01b0316836001600160a01b03161415610e965760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610b9d565b336001600160a01b0382161480610eb25750610eb28133610a92565b610f245760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610b9d565b610f2e8383612744565b505050565b610f3d3382612628565b80610f5b5750610f5b60008051602061427183398151915233611d2b565b610fa25760405162461bcd60e51b81526020600482015260186024820152772237b2b9903737ba103430bb32903832b936b4b9b9b4b7b760411b6044820152606401610b9d565b6000818152601860205260409020600a0154601754811115610ffa5760405162461bcd60e51b815260206004820152601160248201527013585e081b195d995b081c995858da1959607a1b6044820152606401610b9d565b6000611007826064611b75565b90506110138382611399565b6000838152601860205260408120600a018054600192906110359084906140f4565b90915550506000838152601860205260408120600190810180549192909161105e9084906140f4565b909155505060008381526018602052604081206002018054600192906110859084906140f4565b909155505060008381526018602052604081206003018054600192906110ac9084906140f4565b909155505060008381526018602052604081206004018054600192906110d39084906140f4565b909155505060008381526018602052604081206005018054600192906110fa9084906140f4565b909155505060008381526018602052604081206006018054600192906111219084906140f4565b909155505060008381526018602052604081206007018054600192906111489084906140f4565b9091555050600083815260186020526040812060080180546001929061116f9084906140f4565b909155505060008381526018602052604081206009018054600192906111969084906140f4565b909155503390507f42d71c3c3506451c8a59971b26eef130138b9c48475f9856954ccf4b222a0c45846111ca8560016140f4565b6040805192835260208301919091520160405180910390a2505050565b6002600a54141561120a5760405162461bcd60e51b8152600401610b9d906140a4565b6002600a5560135460ff16156112325760405162461bcd60e51b8152600401610b9d90614079565b3460115411156112845760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610b9d565b61128d816127b2565b50506001600a55565b6002600a5414156112b95760405162461bcd60e51b8152600401610b9d906140a4565b6002600a5560135460ff16156112e15760405162461bcd60e51b8152600401610b9d90614079565b3460115411156113335760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610b9d565b6113626040518060400160405280600e81526020016d10dc9e5c1d1bc811d95b995c985b60921b8152506127b2565b506001600a55565b600b546001600160a01b031633146113945760405162461bcd60e51b8152600401610b9d90613fc3565b601655565b6113a33383612628565b806113c157506113c160008051602061427183398151915233611d2b565b6114085760405162461bcd60e51b81526020600482015260186024820152772237b2b9903737ba103430bb32903832b936b4b9b9b4b7b760411b6044820152606401610b9d565b6000828152601a602052604090205481111561145e5760405162461bcd60e51b81526020600482015260156024820152744e6f7420656e6f75676820657870657269656e636560581b6044820152606401610b9d565b6000828152601a60205260408120805483929061147c90849061413f565b90915550506000828152601a6020908152604091829020548251858152918201849052918101919091527f58a842f288c183ee29a4170fe1a30324d133624e7047f14ed989db42809966ce906060015b60405180910390a15050565b6114e23382612628565b6114fe5760405162461bcd60e51b8152600401610b9d90614028565b610f2e83838361289e565b60186020526000908152604090208054819061152490614199565b80601f016020809104026020016040519081016040528092919081815260200182805461155090614199565b801561159d5780601f106115725761010080835404028352916020019161159d565b820191906000526020600020905b81548152906001019060200180831161158057829003601f168201915b50505050509080600101549080600201549080600301549080600401549080600501549080600601549080600701549080600801549080600901549080600a01549080600b015490508c565b6000828152600c60205260409020600101546116058133612a49565b610f2e8383612aad565b600061161a83611c3f565b821061167c5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610b9d565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6001600160a01b03811633146117155760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610b9d565b61171f8282612b33565b5050565b600b546001600160a01b0316331461174d5760405162461bcd60e51b8152600401610b9d90613fc3565b6013805460ff19811660ff90911615179055565b600b546001600160a01b0316331461178b5760405162461bcd60e51b8152600401610b9d90613fc3565b601455565b610f2e8383836040518060200160405280600081525061211c565b600b546001600160a01b031633146117d55760405162461bcd60e51b8152600401610b9d90613fc3565b600b546040516001600160a01b03909116904780156108fc02916000818181858888f1935050505015801561180e573d6000803e3d6000fd5b50565b6002600a5414156118345760405162461bcd60e51b8152600401610b9d906140a4565b6002600a5560105434101561185b5760405162461bcd60e51b8152600401610b9d90613ff8565b6118653383612628565b61186e57600080fd5b61012c8151108015611881575060038151115b6118cd5760405162461bcd60e51b815260206004820181905260248201527f42696f206265747765656e203420616e642033303020636861726163746572736044820152606401610b9d565b600082815260196020908152604090912082516118ec9284019061385c565b506016546000838152601a60205260408120805490919061190e9084906140f4565b90915550506040517fb5d3e30019a90e2b35059d238ddbac8259a3d65d9a4f47395d713901d17cc11290610cd490849084906140db565b6002600a5414156119685760405162461bcd60e51b8152600401610b9d906140a4565b6002600a55600b546001600160a01b031633146113335760405162461bcd60e51b8152600401610b9d90613fc3565b60006119a260085490565b8210611a055760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610b9d565b60088281548110611a2657634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b600b546001600160a01b03163314611a625760405162461bcd60e51b8152600401610b9d90613fc3565b805161171f90601e90602084019061385c565b600b546001600160a01b03163314611a9f5760405162461bcd60e51b8152600401610b9d90613fc3565b611ab760008051602061427183398151915233611d2b565b611b035760405162461bcd60e51b815260206004820152601760248201527f446f6573206e6f7420686176652047616d6520726f6c650000000000000000006044820152606401610b9d565b6000828152601a602052604081208054839290611b219084906140f4565b90915550506000828152601a6020908152604091829020548251858152918201849052918101919091527fcaa434a316026b149e054a690120ac0358d069c9ffa5eda08124eb17c0f8dbdd906060016114cc565b6000611b818284614120565b905060015b83811015611bc157611b99600a8461410c565b611ba39085614120565b611bad90836140f4565b915080611bb9816141d4565b915050611b86565b5092915050565b6000818152600260205260408120546001600160a01b031680610cf05760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610b9d565b60006001600160a01b038216611caa5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610b9d565b506001600160a01b031660009081526003602052604090205490565b600b546001600160a01b03163314611cf05760405162461bcd60e51b8152600401610b9d90613fc3565b611cfa6000612b9a565b565b600b546001600160a01b03163314611d265760405162461bcd60e51b8152600401610b9d90613fc3565b601755565b6000918252600c602090815260408084206001600160a01b0393909316845291905290205460ff1690565b606060018054610d0590614199565b600b546001600160a01b03163314611d8f5760405162461bcd60e51b8152600401610b9d90613fc3565b601555565b6001600160a01b038216331415611ded5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610b9d565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6002600a541415611e7c5760405162461bcd60e51b8152600401610b9d906140a4565b6002600a5560135460ff1615611ea45760405162461bcd60e51b8152600401610b9d90614079565b600f546040516331a9108f60e11b81526004810184905233916001600160a01b031690636352211e9060240160206040518083038186803b158015611ee857600080fd5b505afa158015611efc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f2091906139a6565b6001600160a01b031614611f765760405162461bcd60e51b815260206004820152601c60248201527f4e6f7420746865206f776e6572206f66207468697320636173746c65000000006044820152606401610b9d565b601254341015611f985760405162461bcd60e51b8152600401610b9d90613ff8565b6000828152601d602052604090205460ff161561200a5760405162461bcd60e51b815260206004820152602a60248201527f436173746c6520616c7265616479207573656420666f7220636c61696d696e6760448201526908184819d95b995c985b60b21b6064820152608401610b9d565b6000612015826127b2565b6000848152601d60209081526040808320805460ff19166001179055838352601b82529182902086905581518381529081018690529192507f66743cb4eb124010781d5d4bbf76e99195784c0d8ad409f1638a302b6490ecba910160405180910390a150506001600a5550565b6019602052600090815260409020805461209b90614199565b80601f01602080910402602001604051908101604052809291908181526020018280546120c790614199565b80156121145780601f106120e957610100808354040283529160200191612114565b820191906000526020600020905b8154815290600101906020018083116120f757829003601f168201915b505050505081565b6121263383612628565b6121425760405162461bcd60e51b8152600401610b9d90614028565b61214e84848484612bec565b50505050565b6002600a5414156121775760405162461bcd60e51b8152600401610b9d906140a4565b6002600a5560105434101561219e5760405162461bcd60e51b8152600401610b9d90613ff8565b6121a83383612628565b6121b157600080fd5b606481511080156121c3575060038151115b6122195760405162461bcd60e51b815260206004820152602160248201527f4e616d65206265747765656e203420616e6420313030206368617261637465726044820152607360f81b6064820152608401610b9d565b600082815260186020908152604090912082516122389284019061385c565b506016546000838152601a60205260408120805490919061225a9084906140f4565b90915550506040517f8edfa912e70e283a8ef6d6f52cd1faef9690ff989eff2f11a134e8478ba7b28b90610cd490849084906140db565b6000818152600260205260409020546060906001600160a01b03166123105760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610b9d565b600061231a612c1f565b9050600081511161233a5760405180602001604052806000815250612365565b8061234484612c2e565b604051602001612355929190613d54565b6040516020818303038152906040525b9392505050565b6000828152600c60205260409020600101546123888133612a49565b610f2e8383612b33565b61239c3382612628565b6123a557600080fd5b6000818152601c602052604090205442116124025760405162461bcd60e51b815260206004820152601b60248201527f546f6f206561726c7920746f20646f2061206e657720717565737400000000006044820152606401610b9d565b600060155461241383601554612d48565b61241d91906140f4565b905061242c62015180426140f4565b6000838152601c6020908152604080832093909355601a905290812080548392906124589084906140f4565b90915550506000828152601a60209081526040918290205482518581529182018490528183015290517f6ef8e037dea69cb21b5f0d846daf55ea4d12a1d0569ec8117acd54b240bb384a9181900360600190a16000828152601a6020908152604091829020548251858152918201849052918101919091527fcaa434a316026b149e054a690120ac0358d069c9ffa5eda08124eb17c0f8dbdd906060016114cc565b600b546001600160a01b031633146125245760405162461bcd60e51b8152600401610b9d90613fc3565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b600b546001600160a01b031633146125705760405162461bcd60e51b8152600401610b9d90613fc3565b6001600160a01b0381166125d55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b9d565b61180e81612b9a565b600b546001600160a01b031633146126085760405162461bcd60e51b8152600401610b9d90613fc3565b806126135750601155565b80600114156126225750601255565b50601055565b6000818152600260205260408120546001600160a01b03166126a15760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610b9d565b60006126ac83611bc8565b9050806001600160a01b0316846001600160a01b031614806126e75750836001600160a01b03166126dc84610d88565b6001600160a01b0316145b8061271757506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b60006001600160e01b03198216637965db0b60e01b1480610cf05750610cf082612d8d565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061277982611bc8565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000606482511080156127c6575060038251115b61281c5760405162461bcd60e51b815260206004820152602160248201527f4e616d65206265747765656e203320616e6420313030206368617261637465726044820152607360f81b6064820152608401610b9d565b6000612827600d5490565b905060145481111561286f5760405162461bcd60e51b815260206004820152601160248201527013585e081d1bdad95b881c995858da1959607a1b6044820152606401610b9d565b61287d600d80546001019055565b6000612888600d5490565b90506128948185612db2565b61236533826130f8565b826001600160a01b03166128b182611bc8565b6001600160a01b0316146129195760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610b9d565b6001600160a01b03821661297b5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610b9d565b612986838383613112565b612991600082612744565b6001600160a01b03831660009081526003602052604081208054600192906129ba90849061413f565b90915550506001600160a01b03821660009081526003602052604081208054600192906129e89084906140f4565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b612a538282611d2b565b61171f57612a6b816001600160a01b031660146131ca565b612a768360206131ca565b604051602001612a87929190613d83565b60408051601f198184030181529082905262461bcd60e51b8252610b9d91600401613e62565b612ab78282611d2b565b61171f576000828152600c602090815260408083206001600160a01b03851684529091529020805460ff19166001179055612aef3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b612b3d8282611d2b565b1561171f576000828152600c602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b612bf784848461289e565b612c03848484846133ac565b61214e5760405162461bcd60e51b8152600401610b9d90613f71565b6060601e8054610d0590614199565b606081612c525750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612c7c5780612c66816141d4565b9150612c759050600a8361410c565b9150612c56565b60008167ffffffffffffffff811115612ca557634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612ccf576020820181803683370190505b5090505b841561271757612ce460018361413f565b9150612cf1600a866141ef565b612cfc9060306140f4565b60f81b818381518110612d1f57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612d41600a8661410c565b9450612cd3565b6040805143602082015242918101919091526060810183905260009082906080015b6040516020818303038152906040528051906020012060001c61236591906141ef565b60006001600160e01b0319821663780e9d6360e01b1480610cf05750610cf0826134b9565b60008281526018602090815260409091208251612dd19284019061385c565b50612dfc60405180604001604052806007815260200166646566656e736560c81b815250600a613509565b612e079060016140f4565b6018600084815260200190815260200160002060010181905550612e4c604051806040016040528060088152602001670e6e8e4cadccee8d60c31b815250600a613509565b612e579060016140f4565b6018600084815260200190815260200160002060020181905550612ea06040518060400160405280600c81526020016b696e74656c6c6967656e636560a01b815250600a613509565b612eab9060016140f4565b6018600084815260200190815260200160002060030181905550612eef604051806040016040528060078152602001666167696c69747960c81b815250600a613509565b612efa9060016140f4565b6018600084815260200190815260200160002060040181905550612f436040518060400160405280600c81526020016b30b134b634ba3ca837bbb2b960a11b815250600a613509565b612f4e9060016140f4565b6018600084815260200190815260200160002060050181905550612f9a6040518060400160405280600f81526020016e6d61676963526573697374616e636560881b815250600a613509565b612fa59060016140f4565b6018600084815260200190815260200160002060060181905550612fee6040518060400160405280600c81526020016b31b7b739ba34ba3aba34b7b760a11b815250600a613509565b612ff99060016140f4565b601860008481526020019081526020016000206007018190555061303b604051806040016040528060058152602001641cdc19595960da1b815250600a613509565b6130469060016140f4565b601860008481526020019081526020016000206008018190555061308b604051806040016040528060088152602001676368617269736d6160c01b815250600a613509565b6130969060016140f4565b600083815260186020818152604080842060098101959095556001600a86015542600b860155601a82528084209390935552517ff0ad64e3d925c4395303b2abf3e2663fcc57f5eb4f04ba05065b25d2354280a1916114cc9185908290613ede565b61171f828260405180602001604052806000815250613521565b6001600160a01b03831661316d5761316881600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b613190565b816001600160a01b0316836001600160a01b031614613190576131908382613554565b6001600160a01b0382166131a757610f2e816135f1565b826001600160a01b0316826001600160a01b031614610f2e57610f2e82826136ca565b606060006131d9836002614120565b6131e49060026140f4565b67ffffffffffffffff81111561320a57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015613234576020820181803683370190505b509050600360fc1b8160008151811061325d57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061329a57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060006132be846002614120565b6132c99060016140f4565b90505b600181111561335d576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061330b57634e487b7160e01b600052603260045260246000fd5b1a60f81b82828151811061332f57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c9361335681614182565b90506132cc565b5083156123655760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610b9d565b60006001600160a01b0384163b156134ae57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906133f0903390899088908890600401613e25565b602060405180830381600087803b15801561340a57600080fd5b505af192505050801561343a575060408051601f3d908101601f1916820190925261343791810190613b6b565b60015b613494573d808015613468576040519150601f19603f3d011682016040523d82523d6000602084013e61346d565b606091505b50805161348c5760405162461bcd60e51b8152600401610b9d90613f71565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612717565b506001949350505050565b60006001600160e01b031982166380ac58cd60e01b14806134ea57506001600160e01b03198216635b5e139f60e01b145b80610cf057506301ffc9a760e01b6001600160e01b0319831614610cf0565b600081434285604051602001612d6a93929190613df8565b61352b838361370e565b61353860008484846133ac565b610f2e5760405162461bcd60e51b8152600401610b9d90613f71565b6000600161356184611c3f565b61356b919061413f565b6000838152600760205260409020549091508082146135be576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906136039060019061413f565b6000838152600960205260408120546008805493945090928490811061363957634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050806008838154811061366857634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806136ae57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b60006136d583611c3f565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b0382166137645760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610b9d565b6000818152600260205260409020546001600160a01b0316156137c95760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610b9d565b6137d560008383613112565b6001600160a01b03821660009081526003602052604081208054600192906137fe9084906140f4565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461386890614199565b90600052602060002090601f01602090048101928261388a57600085556138d0565b82601f106138a357805160ff19168380011785556138d0565b828001600101855582156138d0579182015b828111156138d05782518255916020019190600101906138b5565b506138dc9291506138e0565b5090565b5b808211156138dc57600081556001016138e1565b600067ffffffffffffffff808411156139105761391061422f565b604051601f8501601f19908116603f011681019082821181831017156139385761393861422f565b8160405280935085815286868601111561395157600080fd5b858560208301376000602087830101525050509392505050565b600082601f83011261397b578081fd5b612365838335602085016138f5565b60006020828403121561399b578081fd5b813561236581614245565b6000602082840312156139b7578081fd5b815161236581614245565b600080604083850312156139d4578081fd5b82356139df81614245565b915060208301356139ef81614245565b809150509250929050565b600080600060608486031215613a0e578081fd5b8335613a1981614245565b92506020840135613a2981614245565b929592945050506040919091013590565b60008060008060808587031215613a4f578081fd5b8435613a5a81614245565b93506020850135613a6a81614245565b925060408501359150606085013567ffffffffffffffff811115613a8c578182fd5b8501601f81018713613a9c578182fd5b613aab878235602084016138f5565b91505092959194509250565b60008060408385031215613ac9578182fd5b8235613ad481614245565b9150602083013580151581146139ef578182fd5b60008060408385031215613afa578182fd5b8235613b0581614245565b946020939093013593505050565b600060208284031215613b24578081fd5b5035919050565b60008060408385031215613b3d578182fd5b8235915060208301356139ef81614245565b600060208284031215613b60578081fd5b81356123658161425a565b600060208284031215613b7c578081fd5b81516123658161425a565b600060208284031215613b98578081fd5b813567ffffffffffffffff811115613bae578182fd5b6127178482850161396b565b60008060408385031215613bcc578081fd5b82359150602083013567ffffffffffffffff811115613be9578182fd5b613bf58582860161396b565b9150509250929050565b60008060408385031215613c11578182fd5b50508035926020909101359150565b60008151808452613c38816020860160208601614156565b601f01601f19169290920160200192915050565b60008154613c5981614199565b808552602060018381168015613c765760018114613c8a57613cb8565b60ff19851688840152604088019550613cb8565b866000528260002060005b85811015613cb05781548a8201860152908301908401613c95565b890184019650505b505050505092915050565b6000610180808452613cd781850184613c4c565b60018401546020860152600284015460408601526003840154606086015260048401546080860152600584015460a0860152600684015460c0860152600784015460e086015260088401546101008601526009840154610120860152600a840154610140860152600b909301546101609094019390935250919050565b60008351613d66818460208801614156565b835190830190613d7a818360208801614156565b01949350505050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351613dbb816017850160208801614156565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351613dec816028840160208801614156565b01602801949350505050565b83815282602082015260008251613e16816040850160208701614156565b91909101604001949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613e5890830184613c20565b9695505050505050565b6020815260006123656020830184613c20565b61018081526000613e8a61018083018f613c20565b602083019d909d5250604081019a909a5260608a0198909852608089019690965260a088019490945260c087019290925260e086015261010085015261012084015261014083015261016090910152919050565b606081526000808554613ef081614199565b8060608601526080600180841660008114613f125760018114613f2657613f54565b60ff1985168884015260a088019550613f54565b8a87526020808820885b86811015613f4b5781548b8201870152908401908201613f30565b8a018501975050505b50505050508460208401528281036040840152613e588185613cc3565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526016908201527508ae8d040e6cadce840d2e640dcdee840cadcdeeaced60531b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b602080825260119082015270135a5b9d1a5b99c81a5cc81c185d5cd959607a1b604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b8281526040602082015260006127176040830184613c20565b6000821982111561410757614107614203565b500190565b60008261411b5761411b614219565b500490565b600081600019048311821515161561413a5761413a614203565b500290565b60008282101561415157614151614203565b500390565b60005b83811015614171578181015183820152602001614159565b8381111561214e5750506000910152565b60008161419157614191614203565b506000190190565b600181811c908216806141ad57607f821691505b602082108114156141ce57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156141e8576141e8614203565b5060010190565b6000826141fe576141fe614219565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461180e57600080fd5b6001600160e01b03198116811461180e57600080fdfe6a64baf327d646d1bca72653e2a075d15fd6ac6d8cbd7f6ee03fc55875e0fa88a26469706673582212204a95d7561365925aab0c6da22e0e3af1b7037d427346099d8659e812abff64d164736f6c63430008040033
Deployed Bytecode
0x6080604052600436106103b75760003560e01c8063715018a6116101f2578063c87b56dd1161010d578063e7720458116100a0578063f2fde38b1161006f578063f2fde38b14610ae0578063f73f462514610b00578063f7d9757714610b2d578063f8349c2f14610b4d57600080fd5b8063e772045814610a4b578063e831574214610a61578063e985e9c514610a77578063f18e196d14610ac057600080fd5b8063d3943898116100dc578063d3943898146109c8578063d3e97165146109de578063d547741f14610a0b578063e24b3cea14610a2b57600080fd5b8063c87b56dd14610942578063c9a0112d14610962578063ceb1d88214610978578063d1999aca146109a857600080fd5b8063a217fddf11610185578063b4e0908211610154578063b4e09082146108d9578063b88d4fde146108f9578063c32bed8f14610919578063c39cbef11461092f57600080fd5b8063a217fddf1461086f578063a22cb46514610884578063ab400706146108a4578063ad9d2324146108c657600080fd5b806394517995116101c1578063945179951461080457806395d89b4114610824578063a035b1fe14610839578063a1ff7e901461084f57600080fd5b8063715018a61461079157806376ef6ac7146107a65780638da5cb5b146107c657806391d14854146107e457600080fd5b80632f745c59116102e25780634dbe5889116102755780635d240c58116102445780635d240c58146107115780635e488746146107315780636352211e1461075157806370a082311461077157600080fd5b80634dbe5889146106a25780634f6ccce7146106b757806355f804b3146106d75780635c975abb146106f757600080fd5b80633f327275116102b15780633f3272751461064457806342842e0e1461065a5780634311de8f1461067a5780634d4265281461068f57600080fd5b80632f745c59146105cf57806336568abe146105ef578063385df6491461060f57806339e96c7b1461062457600080fd5b80631249c58b1161035a57806323b872dd1161032957806323b872dd14610527578063248a9ca31461054757806324ceadb0146105775780632f2ff15d146105af57600080fd5b80631249c58b146104c057806318160ddd146104c85780631c0d9a91146104e75780631eb899a31461050757600080fd5b8063081812fc11610396578063081812fc14610435578063095ea7b31461046d5780630ce90ec21461048d5780631092fa9d146104ad57600080fd5b8062aaea65146103bc57806301ffc9a7146103de57806306fdde0314610413575b600080fd5b3480156103c857600080fd5b506103dc6103d7366004613bff565b610b7a565b005b3480156103ea57600080fd5b506103fe6103f9366004613b4f565b610ce5565b60405190151581526020015b60405180910390f35b34801561041f57600080fd5b50610428610cf6565b60405161040a9190613e62565b34801561044157600080fd5b50610455610450366004613b13565b610d88565b6040516001600160a01b03909116815260200161040a565b34801561047957600080fd5b506103dc610488366004613ae8565b610e1d565b34801561049957600080fd5b506103dc6104a8366004613b13565b610f33565b6103dc6104bb366004613b87565b6111e7565b6103dc611296565b3480156104d457600080fd5b506008545b60405190815260200161040a565b3480156104f357600080fd5b506103dc610502366004613b13565b61136a565b34801561051357600080fd5b506103dc610522366004613bff565b611399565b34801561053357600080fd5b506103dc6105423660046139fa565b6114d8565b34801561055357600080fd5b506104d9610562366004613b13565b6000908152600c602052604090206001015490565b34801561058357600080fd5b50610597610592366004613b13565b611509565b60405161040a9c9b9a99989796959493929190613e75565b3480156105bb57600080fd5b506103dc6105ca366004613b2b565b6115e9565b3480156105db57600080fd5b506104d96105ea366004613ae8565b61160f565b3480156105fb57600080fd5b506103dc61060a366004613b2b565b6116a5565b34801561061b57600080fd5b506103dc611723565b34801561063057600080fd5b506103dc61063f366004613b13565b611761565b34801561065057600080fd5b506104d960105481565b34801561066657600080fd5b506103dc6106753660046139fa565b611790565b34801561068657600080fd5b506103dc6117ab565b6103dc61069d366004613bba565b611811565b3480156106ae57600080fd5b506103dc611945565b3480156106c357600080fd5b506104d96106d2366004613b13565b611997565b3480156106e357600080fd5b506103dc6106f2366004613b87565b611a38565b34801561070357600080fd5b506013546103fe9060ff1681565b34801561071d57600080fd5b506103dc61072c366004613bff565b611a75565b34801561073d57600080fd5b506104d961074c366004613bff565b611b75565b34801561075d57600080fd5b5061045561076c366004613b13565b611bc8565b34801561077d57600080fd5b506104d961078c36600461398a565b611c3f565b34801561079d57600080fd5b506103dc611cc6565b3480156107b257600080fd5b506103dc6107c1366004613b13565b611cfc565b3480156107d257600080fd5b50600b546001600160a01b0316610455565b3480156107f057600080fd5b506103fe6107ff366004613b2b565b611d2b565b34801561081057600080fd5b50600e54610455906001600160a01b031681565b34801561083057600080fd5b50610428611d56565b34801561084557600080fd5b506104d960115481565b34801561085b57600080fd5b506103dc61086a366004613b13565b611d65565b34801561087b57600080fd5b506104d9600081565b34801561089057600080fd5b506103dc61089f366004613ab7565b611d94565b3480156108b057600080fd5b506104d960008051602061427183398151915281565b6103dc6108d4366004613bba565b611e59565b3480156108e557600080fd5b506104286108f4366004613b13565b612082565b34801561090557600080fd5b506103dc610914366004613a3a565b61211c565b34801561092557600080fd5b506104d960175481565b6103dc61093d366004613bba565b612154565b34801561094e57600080fd5b5061042861095d366004613b13565b612291565b34801561096e57600080fd5b506104d960155481565b34801561098457600080fd5b506103fe610993366004613b13565b601d6020526000908152604090205460ff1681565b3480156109b457600080fd5b50600f54610455906001600160a01b031681565b3480156109d457600080fd5b506104d960125481565b3480156109ea57600080fd5b506104d96109f9366004613b13565b601a6020526000908152604090205481565b348015610a1757600080fd5b506103dc610a26366004613b2b565b61236c565b348015610a3757600080fd5b506103dc610a46366004613b13565b612392565b348015610a5757600080fd5b506104d960165481565b348015610a6d57600080fd5b506104d960145481565b348015610a8357600080fd5b506103fe610a923660046139c2565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610acc57600080fd5b506103dc610adb36600461398a565b6124fa565b348015610aec57600080fd5b506103dc610afb36600461398a565b612546565b348015610b0c57600080fd5b506104d9610b1b366004613b13565b601b6020526000908152604090205481565b348015610b3957600080fd5b506103dc610b48366004613bff565b6125de565b348015610b5957600080fd5b506104d9610b68366004613b13565b601c6020526000908152604090205481565b6002600a541415610ba65760405162461bcd60e51b8152600401610b9d906140a4565b60405180910390fd5b6002600a55600f546040516331a9108f60e11b81526004810183905233916001600160a01b031690636352211e9060240160206040518083038186803b158015610bef57600080fd5b505afa158015610c03573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c2791906139a6565b6001600160a01b031614610c7d5760405162461bcd60e51b815260206004820152601c60248201527f4e6f7420746865206f776e6572206f66207468697320636173746c65000000006044820152606401610b9d565b610c873383612628565b610c9057600080fd5b6000828152601b602090815260409182902083905581518481529081018390527f66743cb4eb124010781d5d4bbf76e99195784c0d8ad409f1638a302b6490ecba91015b60405180910390a150506001600a55565b6000610cf08261271f565b92915050565b606060008054610d0590614199565b80601f0160208091040260200160405190810160405280929190818152602001828054610d3190614199565b8015610d7e5780601f10610d5357610100808354040283529160200191610d7e565b820191906000526020600020905b815481529060010190602001808311610d6157829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610e015760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610b9d565b506000908152600460205260409020546001600160a01b031690565b6000610e2882611bc8565b9050806001600160a01b0316836001600160a01b03161415610e965760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610b9d565b336001600160a01b0382161480610eb25750610eb28133610a92565b610f245760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610b9d565b610f2e8383612744565b505050565b610f3d3382612628565b80610f5b5750610f5b60008051602061427183398151915233611d2b565b610fa25760405162461bcd60e51b81526020600482015260186024820152772237b2b9903737ba103430bb32903832b936b4b9b9b4b7b760411b6044820152606401610b9d565b6000818152601860205260409020600a0154601754811115610ffa5760405162461bcd60e51b815260206004820152601160248201527013585e081b195d995b081c995858da1959607a1b6044820152606401610b9d565b6000611007826064611b75565b90506110138382611399565b6000838152601860205260408120600a018054600192906110359084906140f4565b90915550506000838152601860205260408120600190810180549192909161105e9084906140f4565b909155505060008381526018602052604081206002018054600192906110859084906140f4565b909155505060008381526018602052604081206003018054600192906110ac9084906140f4565b909155505060008381526018602052604081206004018054600192906110d39084906140f4565b909155505060008381526018602052604081206005018054600192906110fa9084906140f4565b909155505060008381526018602052604081206006018054600192906111219084906140f4565b909155505060008381526018602052604081206007018054600192906111489084906140f4565b9091555050600083815260186020526040812060080180546001929061116f9084906140f4565b909155505060008381526018602052604081206009018054600192906111969084906140f4565b909155503390507f42d71c3c3506451c8a59971b26eef130138b9c48475f9856954ccf4b222a0c45846111ca8560016140f4565b6040805192835260208301919091520160405180910390a2505050565b6002600a54141561120a5760405162461bcd60e51b8152600401610b9d906140a4565b6002600a5560135460ff16156112325760405162461bcd60e51b8152600401610b9d90614079565b3460115411156112845760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610b9d565b61128d816127b2565b50506001600a55565b6002600a5414156112b95760405162461bcd60e51b8152600401610b9d906140a4565b6002600a5560135460ff16156112e15760405162461bcd60e51b8152600401610b9d90614079565b3460115411156113335760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610b9d565b6113626040518060400160405280600e81526020016d10dc9e5c1d1bc811d95b995c985b60921b8152506127b2565b506001600a55565b600b546001600160a01b031633146113945760405162461bcd60e51b8152600401610b9d90613fc3565b601655565b6113a33383612628565b806113c157506113c160008051602061427183398151915233611d2b565b6114085760405162461bcd60e51b81526020600482015260186024820152772237b2b9903737ba103430bb32903832b936b4b9b9b4b7b760411b6044820152606401610b9d565b6000828152601a602052604090205481111561145e5760405162461bcd60e51b81526020600482015260156024820152744e6f7420656e6f75676820657870657269656e636560581b6044820152606401610b9d565b6000828152601a60205260408120805483929061147c90849061413f565b90915550506000828152601a6020908152604091829020548251858152918201849052918101919091527f58a842f288c183ee29a4170fe1a30324d133624e7047f14ed989db42809966ce906060015b60405180910390a15050565b6114e23382612628565b6114fe5760405162461bcd60e51b8152600401610b9d90614028565b610f2e83838361289e565b60186020526000908152604090208054819061152490614199565b80601f016020809104026020016040519081016040528092919081815260200182805461155090614199565b801561159d5780601f106115725761010080835404028352916020019161159d565b820191906000526020600020905b81548152906001019060200180831161158057829003601f168201915b50505050509080600101549080600201549080600301549080600401549080600501549080600601549080600701549080600801549080600901549080600a01549080600b015490508c565b6000828152600c60205260409020600101546116058133612a49565b610f2e8383612aad565b600061161a83611c3f565b821061167c5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610b9d565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6001600160a01b03811633146117155760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610b9d565b61171f8282612b33565b5050565b600b546001600160a01b0316331461174d5760405162461bcd60e51b8152600401610b9d90613fc3565b6013805460ff19811660ff90911615179055565b600b546001600160a01b0316331461178b5760405162461bcd60e51b8152600401610b9d90613fc3565b601455565b610f2e8383836040518060200160405280600081525061211c565b600b546001600160a01b031633146117d55760405162461bcd60e51b8152600401610b9d90613fc3565b600b546040516001600160a01b03909116904780156108fc02916000818181858888f1935050505015801561180e573d6000803e3d6000fd5b50565b6002600a5414156118345760405162461bcd60e51b8152600401610b9d906140a4565b6002600a5560105434101561185b5760405162461bcd60e51b8152600401610b9d90613ff8565b6118653383612628565b61186e57600080fd5b61012c8151108015611881575060038151115b6118cd5760405162461bcd60e51b815260206004820181905260248201527f42696f206265747765656e203420616e642033303020636861726163746572736044820152606401610b9d565b600082815260196020908152604090912082516118ec9284019061385c565b506016546000838152601a60205260408120805490919061190e9084906140f4565b90915550506040517fb5d3e30019a90e2b35059d238ddbac8259a3d65d9a4f47395d713901d17cc11290610cd490849084906140db565b6002600a5414156119685760405162461bcd60e51b8152600401610b9d906140a4565b6002600a55600b546001600160a01b031633146113335760405162461bcd60e51b8152600401610b9d90613fc3565b60006119a260085490565b8210611a055760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610b9d565b60088281548110611a2657634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b600b546001600160a01b03163314611a625760405162461bcd60e51b8152600401610b9d90613fc3565b805161171f90601e90602084019061385c565b600b546001600160a01b03163314611a9f5760405162461bcd60e51b8152600401610b9d90613fc3565b611ab760008051602061427183398151915233611d2b565b611b035760405162461bcd60e51b815260206004820152601760248201527f446f6573206e6f7420686176652047616d6520726f6c650000000000000000006044820152606401610b9d565b6000828152601a602052604081208054839290611b219084906140f4565b90915550506000828152601a6020908152604091829020548251858152918201849052918101919091527fcaa434a316026b149e054a690120ac0358d069c9ffa5eda08124eb17c0f8dbdd906060016114cc565b6000611b818284614120565b905060015b83811015611bc157611b99600a8461410c565b611ba39085614120565b611bad90836140f4565b915080611bb9816141d4565b915050611b86565b5092915050565b6000818152600260205260408120546001600160a01b031680610cf05760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610b9d565b60006001600160a01b038216611caa5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610b9d565b506001600160a01b031660009081526003602052604090205490565b600b546001600160a01b03163314611cf05760405162461bcd60e51b8152600401610b9d90613fc3565b611cfa6000612b9a565b565b600b546001600160a01b03163314611d265760405162461bcd60e51b8152600401610b9d90613fc3565b601755565b6000918252600c602090815260408084206001600160a01b0393909316845291905290205460ff1690565b606060018054610d0590614199565b600b546001600160a01b03163314611d8f5760405162461bcd60e51b8152600401610b9d90613fc3565b601555565b6001600160a01b038216331415611ded5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610b9d565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6002600a541415611e7c5760405162461bcd60e51b8152600401610b9d906140a4565b6002600a5560135460ff1615611ea45760405162461bcd60e51b8152600401610b9d90614079565b600f546040516331a9108f60e11b81526004810184905233916001600160a01b031690636352211e9060240160206040518083038186803b158015611ee857600080fd5b505afa158015611efc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f2091906139a6565b6001600160a01b031614611f765760405162461bcd60e51b815260206004820152601c60248201527f4e6f7420746865206f776e6572206f66207468697320636173746c65000000006044820152606401610b9d565b601254341015611f985760405162461bcd60e51b8152600401610b9d90613ff8565b6000828152601d602052604090205460ff161561200a5760405162461bcd60e51b815260206004820152602a60248201527f436173746c6520616c7265616479207573656420666f7220636c61696d696e6760448201526908184819d95b995c985b60b21b6064820152608401610b9d565b6000612015826127b2565b6000848152601d60209081526040808320805460ff19166001179055838352601b82529182902086905581518381529081018690529192507f66743cb4eb124010781d5d4bbf76e99195784c0d8ad409f1638a302b6490ecba910160405180910390a150506001600a5550565b6019602052600090815260409020805461209b90614199565b80601f01602080910402602001604051908101604052809291908181526020018280546120c790614199565b80156121145780601f106120e957610100808354040283529160200191612114565b820191906000526020600020905b8154815290600101906020018083116120f757829003601f168201915b505050505081565b6121263383612628565b6121425760405162461bcd60e51b8152600401610b9d90614028565b61214e84848484612bec565b50505050565b6002600a5414156121775760405162461bcd60e51b8152600401610b9d906140a4565b6002600a5560105434101561219e5760405162461bcd60e51b8152600401610b9d90613ff8565b6121a83383612628565b6121b157600080fd5b606481511080156121c3575060038151115b6122195760405162461bcd60e51b815260206004820152602160248201527f4e616d65206265747765656e203420616e6420313030206368617261637465726044820152607360f81b6064820152608401610b9d565b600082815260186020908152604090912082516122389284019061385c565b506016546000838152601a60205260408120805490919061225a9084906140f4565b90915550506040517f8edfa912e70e283a8ef6d6f52cd1faef9690ff989eff2f11a134e8478ba7b28b90610cd490849084906140db565b6000818152600260205260409020546060906001600160a01b03166123105760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610b9d565b600061231a612c1f565b9050600081511161233a5760405180602001604052806000815250612365565b8061234484612c2e565b604051602001612355929190613d54565b6040516020818303038152906040525b9392505050565b6000828152600c60205260409020600101546123888133612a49565b610f2e8383612b33565b61239c3382612628565b6123a557600080fd5b6000818152601c602052604090205442116124025760405162461bcd60e51b815260206004820152601b60248201527f546f6f206561726c7920746f20646f2061206e657720717565737400000000006044820152606401610b9d565b600060155461241383601554612d48565b61241d91906140f4565b905061242c62015180426140f4565b6000838152601c6020908152604080832093909355601a905290812080548392906124589084906140f4565b90915550506000828152601a60209081526040918290205482518581529182018490528183015290517f6ef8e037dea69cb21b5f0d846daf55ea4d12a1d0569ec8117acd54b240bb384a9181900360600190a16000828152601a6020908152604091829020548251858152918201849052918101919091527fcaa434a316026b149e054a690120ac0358d069c9ffa5eda08124eb17c0f8dbdd906060016114cc565b600b546001600160a01b031633146125245760405162461bcd60e51b8152600401610b9d90613fc3565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b600b546001600160a01b031633146125705760405162461bcd60e51b8152600401610b9d90613fc3565b6001600160a01b0381166125d55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b9d565b61180e81612b9a565b600b546001600160a01b031633146126085760405162461bcd60e51b8152600401610b9d90613fc3565b806126135750601155565b80600114156126225750601255565b50601055565b6000818152600260205260408120546001600160a01b03166126a15760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610b9d565b60006126ac83611bc8565b9050806001600160a01b0316846001600160a01b031614806126e75750836001600160a01b03166126dc84610d88565b6001600160a01b0316145b8061271757506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b60006001600160e01b03198216637965db0b60e01b1480610cf05750610cf082612d8d565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061277982611bc8565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000606482511080156127c6575060038251115b61281c5760405162461bcd60e51b815260206004820152602160248201527f4e616d65206265747765656e203320616e6420313030206368617261637465726044820152607360f81b6064820152608401610b9d565b6000612827600d5490565b905060145481111561286f5760405162461bcd60e51b815260206004820152601160248201527013585e081d1bdad95b881c995858da1959607a1b6044820152606401610b9d565b61287d600d80546001019055565b6000612888600d5490565b90506128948185612db2565b61236533826130f8565b826001600160a01b03166128b182611bc8565b6001600160a01b0316146129195760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610b9d565b6001600160a01b03821661297b5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610b9d565b612986838383613112565b612991600082612744565b6001600160a01b03831660009081526003602052604081208054600192906129ba90849061413f565b90915550506001600160a01b03821660009081526003602052604081208054600192906129e89084906140f4565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b612a538282611d2b565b61171f57612a6b816001600160a01b031660146131ca565b612a768360206131ca565b604051602001612a87929190613d83565b60408051601f198184030181529082905262461bcd60e51b8252610b9d91600401613e62565b612ab78282611d2b565b61171f576000828152600c602090815260408083206001600160a01b03851684529091529020805460ff19166001179055612aef3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b612b3d8282611d2b565b1561171f576000828152600c602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b612bf784848461289e565b612c03848484846133ac565b61214e5760405162461bcd60e51b8152600401610b9d90613f71565b6060601e8054610d0590614199565b606081612c525750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612c7c5780612c66816141d4565b9150612c759050600a8361410c565b9150612c56565b60008167ffffffffffffffff811115612ca557634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612ccf576020820181803683370190505b5090505b841561271757612ce460018361413f565b9150612cf1600a866141ef565b612cfc9060306140f4565b60f81b818381518110612d1f57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612d41600a8661410c565b9450612cd3565b6040805143602082015242918101919091526060810183905260009082906080015b6040516020818303038152906040528051906020012060001c61236591906141ef565b60006001600160e01b0319821663780e9d6360e01b1480610cf05750610cf0826134b9565b60008281526018602090815260409091208251612dd19284019061385c565b50612dfc60405180604001604052806007815260200166646566656e736560c81b815250600a613509565b612e079060016140f4565b6018600084815260200190815260200160002060010181905550612e4c604051806040016040528060088152602001670e6e8e4cadccee8d60c31b815250600a613509565b612e579060016140f4565b6018600084815260200190815260200160002060020181905550612ea06040518060400160405280600c81526020016b696e74656c6c6967656e636560a01b815250600a613509565b612eab9060016140f4565b6018600084815260200190815260200160002060030181905550612eef604051806040016040528060078152602001666167696c69747960c81b815250600a613509565b612efa9060016140f4565b6018600084815260200190815260200160002060040181905550612f436040518060400160405280600c81526020016b30b134b634ba3ca837bbb2b960a11b815250600a613509565b612f4e9060016140f4565b6018600084815260200190815260200160002060050181905550612f9a6040518060400160405280600f81526020016e6d61676963526573697374616e636560881b815250600a613509565b612fa59060016140f4565b6018600084815260200190815260200160002060060181905550612fee6040518060400160405280600c81526020016b31b7b739ba34ba3aba34b7b760a11b815250600a613509565b612ff99060016140f4565b601860008481526020019081526020016000206007018190555061303b604051806040016040528060058152602001641cdc19595960da1b815250600a613509565b6130469060016140f4565b601860008481526020019081526020016000206008018190555061308b604051806040016040528060088152602001676368617269736d6160c01b815250600a613509565b6130969060016140f4565b600083815260186020818152604080842060098101959095556001600a86015542600b860155601a82528084209390935552517ff0ad64e3d925c4395303b2abf3e2663fcc57f5eb4f04ba05065b25d2354280a1916114cc9185908290613ede565b61171f828260405180602001604052806000815250613521565b6001600160a01b03831661316d5761316881600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b613190565b816001600160a01b0316836001600160a01b031614613190576131908382613554565b6001600160a01b0382166131a757610f2e816135f1565b826001600160a01b0316826001600160a01b031614610f2e57610f2e82826136ca565b606060006131d9836002614120565b6131e49060026140f4565b67ffffffffffffffff81111561320a57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015613234576020820181803683370190505b509050600360fc1b8160008151811061325d57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061329a57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060006132be846002614120565b6132c99060016140f4565b90505b600181111561335d576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061330b57634e487b7160e01b600052603260045260246000fd5b1a60f81b82828151811061332f57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535060049490941c9361335681614182565b90506132cc565b5083156123655760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610b9d565b60006001600160a01b0384163b156134ae57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906133f0903390899088908890600401613e25565b602060405180830381600087803b15801561340a57600080fd5b505af192505050801561343a575060408051601f3d908101601f1916820190925261343791810190613b6b565b60015b613494573d808015613468576040519150601f19603f3d011682016040523d82523d6000602084013e61346d565b606091505b50805161348c5760405162461bcd60e51b8152600401610b9d90613f71565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612717565b506001949350505050565b60006001600160e01b031982166380ac58cd60e01b14806134ea57506001600160e01b03198216635b5e139f60e01b145b80610cf057506301ffc9a760e01b6001600160e01b0319831614610cf0565b600081434285604051602001612d6a93929190613df8565b61352b838361370e565b61353860008484846133ac565b610f2e5760405162461bcd60e51b8152600401610b9d90613f71565b6000600161356184611c3f565b61356b919061413f565b6000838152600760205260409020549091508082146135be576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906136039060019061413f565b6000838152600960205260408120546008805493945090928490811061363957634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050806008838154811061366857634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806136ae57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b60006136d583611c3f565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6001600160a01b0382166137645760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610b9d565b6000818152600260205260409020546001600160a01b0316156137c95760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610b9d565b6137d560008383613112565b6001600160a01b03821660009081526003602052604081208054600192906137fe9084906140f4565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461386890614199565b90600052602060002090601f01602090048101928261388a57600085556138d0565b82601f106138a357805160ff19168380011785556138d0565b828001600101855582156138d0579182015b828111156138d05782518255916020019190600101906138b5565b506138dc9291506138e0565b5090565b5b808211156138dc57600081556001016138e1565b600067ffffffffffffffff808411156139105761391061422f565b604051601f8501601f19908116603f011681019082821181831017156139385761393861422f565b8160405280935085815286868601111561395157600080fd5b858560208301376000602087830101525050509392505050565b600082601f83011261397b578081fd5b612365838335602085016138f5565b60006020828403121561399b578081fd5b813561236581614245565b6000602082840312156139b7578081fd5b815161236581614245565b600080604083850312156139d4578081fd5b82356139df81614245565b915060208301356139ef81614245565b809150509250929050565b600080600060608486031215613a0e578081fd5b8335613a1981614245565b92506020840135613a2981614245565b929592945050506040919091013590565b60008060008060808587031215613a4f578081fd5b8435613a5a81614245565b93506020850135613a6a81614245565b925060408501359150606085013567ffffffffffffffff811115613a8c578182fd5b8501601f81018713613a9c578182fd5b613aab878235602084016138f5565b91505092959194509250565b60008060408385031215613ac9578182fd5b8235613ad481614245565b9150602083013580151581146139ef578182fd5b60008060408385031215613afa578182fd5b8235613b0581614245565b946020939093013593505050565b600060208284031215613b24578081fd5b5035919050565b60008060408385031215613b3d578182fd5b8235915060208301356139ef81614245565b600060208284031215613b60578081fd5b81356123658161425a565b600060208284031215613b7c578081fd5b81516123658161425a565b600060208284031215613b98578081fd5b813567ffffffffffffffff811115613bae578182fd5b6127178482850161396b565b60008060408385031215613bcc578081fd5b82359150602083013567ffffffffffffffff811115613be9578182fd5b613bf58582860161396b565b9150509250929050565b60008060408385031215613c11578182fd5b50508035926020909101359150565b60008151808452613c38816020860160208601614156565b601f01601f19169290920160200192915050565b60008154613c5981614199565b808552602060018381168015613c765760018114613c8a57613cb8565b60ff19851688840152604088019550613cb8565b866000528260002060005b85811015613cb05781548a8201860152908301908401613c95565b890184019650505b505050505092915050565b6000610180808452613cd781850184613c4c565b60018401546020860152600284015460408601526003840154606086015260048401546080860152600584015460a0860152600684015460c0860152600784015460e086015260088401546101008601526009840154610120860152600a840154610140860152600b909301546101609094019390935250919050565b60008351613d66818460208801614156565b835190830190613d7a818360208801614156565b01949350505050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351613dbb816017850160208801614156565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351613dec816028840160208801614156565b01602801949350505050565b83815282602082015260008251613e16816040850160208701614156565b91909101604001949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613e5890830184613c20565b9695505050505050565b6020815260006123656020830184613c20565b61018081526000613e8a61018083018f613c20565b602083019d909d5250604081019a909a5260608a0198909852608089019690965260a088019490945260c087019290925260e086015261010085015261012084015261014083015261016090910152919050565b606081526000808554613ef081614199565b8060608601526080600180841660008114613f125760018114613f2657613f54565b60ff1985168884015260a088019550613f54565b8a87526020808820885b86811015613f4b5781548b8201870152908401908201613f30565b8a018501975050505b50505050508460208401528281036040840152613e588185613cc3565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526016908201527508ae8d040e6cadce840d2e640dcdee840cadcdeeaced60531b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b602080825260119082015270135a5b9d1a5b99c81a5cc81c185d5cd959607a1b604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b8281526040602082015260006127176040830184613c20565b6000821982111561410757614107614203565b500190565b60008261411b5761411b614219565b500490565b600081600019048311821515161561413a5761413a614203565b500290565b60008282101561415157614151614203565b500390565b60005b83811015614171578181015183820152602001614159565b8381111561214e5750506000910152565b60008161419157614191614203565b506000190190565b600181811c908216806141ad57607f821691505b602082108114156141ce57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156141e8576141e8614203565b5060010190565b6000826141fe576141fe614219565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461180e57600080fd5b6001600160e01b03198116811461180e57600080fdfe6a64baf327d646d1bca72653e2a075d15fd6ac6d8cbd7f6ee03fc55875e0fa88a26469706673582212204a95d7561365925aab0c6da22e0e3af1b7037d427346099d8659e812abff64d164736f6c63430008040033