Polygon Sponsored slots available. Book your slot here!
More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 21,205 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Approve | 68231042 | 59 days ago | IN | 0 POL | 0.00279428 | ||||
Approve | 68230964 | 59 days ago | IN | 0 POL | 0.00257734 | ||||
Approve | 68230964 | 59 days ago | IN | 0 POL | 0.00257734 | ||||
Approve | 68230964 | 59 days ago | IN | 0 POL | 0.00257734 | ||||
Approve | 68230961 | 59 days ago | IN | 0 POL | 0.00259333 | ||||
Approve | 68230959 | 59 days ago | IN | 0 POL | 0.00252567 | ||||
Approve | 68230956 | 59 days ago | IN | 0 POL | 0.00265035 | ||||
Approve | 68230954 | 59 days ago | IN | 0 POL | 0.00259788 | ||||
Approve | 67359445 | 82 days ago | IN | 0 POL | 0.00073233 | ||||
Approve | 65621141 | 126 days ago | IN | 0 POL | 0.00073588 | ||||
Approve | 64757125 | 147 days ago | IN | 0 POL | 0.00434949 | ||||
Approve | 64757078 | 147 days ago | IN | 0 POL | 0.00207484 | ||||
Approve | 64757041 | 147 days ago | IN | 0 POL | 0.00224524 | ||||
Approve | 64756996 | 147 days ago | IN | 0 POL | 0.00265314 | ||||
Approve | 64756857 | 147 days ago | IN | 0 POL | 0.00262331 | ||||
Approve | 64708418 | 148 days ago | IN | 0 POL | 0.00096092 | ||||
Approve | 64679115 | 149 days ago | IN | 0 POL | 0.00217605 | ||||
Approve | 64679114 | 149 days ago | IN | 0 POL | 0.00220684 | ||||
Approve | 64679112 | 149 days ago | IN | 0 POL | 0.00223947 | ||||
Approve | 64099805 | 164 days ago | IN | 0 POL | 0.00139109 | ||||
Approve | 62323004 | 208 days ago | IN | 0 POL | 0.00080634 | ||||
Approve | 62322981 | 208 days ago | IN | 0 POL | 0.00075674 | ||||
Approve | 61524119 | 228 days ago | IN | 0 POL | 0.00141299 | ||||
Approve | 58837784 | 295 days ago | IN | 0 POL | 0.00140085 | ||||
Expansion Claim ... | 58525454 | 303 days ago | IN | 0 POL | 0.00254463 |
Loading...
Loading
Contract Name:
Hgh
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 20000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// contracts/Hgh.sol // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; import "./bridge/IMintableERC20.sol"; contract Hgh is ERC20Burnable, Ownable, IChildToken, AccessControlMixin, NativeMetaTransaction, ContextMixin { /* Rupees contract using Cheeth as a blueprint. We love Anonymice. Contract functions for staking heroes to earn rupees to use for boss fights, upgrades, and eventually Apprentice training, and upgrades. */ using SafeMath for uint256; bytes32 public constant DEPOSITOR_ROLE = keccak256("DEPOSITOR_ROLE"); uint256 public MAX_WALLET_STAKED = 10; uint256 public EMISSIONS_RATE = 11574070000000; uint256 public CLAIM_END_TIME = 1641013200; uint256 public MAX_RESERVE = 100000; address nullAddress = 0x0000000000000000000000000000000000000000; address public contractAddress; //Mapping of hero to timestamp mapping(uint256 => uint256) internal tokenIdToTimeStamp; //Mapping of hero to staker mapping(uint256 => address) internal tokenIdToStaker; //Mapping of staker to heroes mapping(address => uint256[]) internal stakerToTokenIds; // expansion maps mapping(address => uint256) internal emissionsRate; mapping(address => mapping(uint256 => uint256)) internal expansionTokenIdToTimestamp; mapping(address => mapping(uint256 => address)) internal expansionTokenIdToStaker; mapping(address => mapping(address => uint256[])) internal expansionStakerToTokenIds; // Proxy // Mainnet: 0xA6FA4fB5f76172d178d61B04b0ecd319C5d1C0aa constructor() ERC20("Matic Mike Juice", "HGH") { _setupContractId("HGHMintableERC20"); _setupRole(DEFAULT_ADMIN_ROLE, _msgSender()); _setupRole(DEPOSITOR_ROLE, 0xA6FA4fB5f76172d178d61B04b0ecd319C5d1C0aa); _initializeEIP712('Matic Mike Juice'); } /* Polygon PoS Bridge Functions */ function _msgSender() internal override view returns (address sender) { return ContextMixin.msgSender(); } function deposit(address user, bytes calldata depositData) external override only(DEPOSITOR_ROLE) { uint256 amount = abi.decode(depositData, (uint256)); _mint(user, amount); } function withdraw(uint256 amount) external { _burn(_msgSender(), amount); } /* End Polygon PoS Bridge Functions */ function setContractAddress(address _contractAddress) public onlyOwner { contractAddress = _contractAddress; return; } function setClaimEndTime(uint256 _endTime) public onlyOwner{ CLAIM_END_TIME = _endTime; } function setExpansionEmission(address _contractAddress, uint256 _emissionsRate) public onlyOwner{ emissionsRate[_contractAddress] = _emissionsRate; } function expansionGetTokensStaked(address _expansionAddress, address _staker) public view returns (uint256[] memory){ return expansionStakerToTokenIds[_expansionAddress][_staker]; } function getTokensStaked(address staker) public view returns (uint256[] memory) { return stakerToTokenIds[staker]; } function expansionRemove(address _expansionAddress, address staker, uint256 index) internal{ if (index >= expansionStakerToTokenIds[_expansionAddress][staker].length) return; for (uint256 i = index; i < expansionStakerToTokenIds[_expansionAddress][staker].length - 1; i++) { expansionStakerToTokenIds[_expansionAddress][staker][i] = expansionStakerToTokenIds[_expansionAddress][staker][i + 1]; } expansionStakerToTokenIds[_expansionAddress][staker].pop(); } function remove(address staker, uint256 index) internal { if (index >= stakerToTokenIds[staker].length) return; for (uint256 i = index; i < stakerToTokenIds[staker].length - 1; i++) { stakerToTokenIds[staker][i] = stakerToTokenIds[staker][i + 1]; } stakerToTokenIds[staker].pop(); } function expansionRemoveTokenIdFromStaker(address _expansionAddress, address staker, uint256 tokenId) internal { for (uint256 i = 0; i < expansionStakerToTokenIds[_expansionAddress][staker].length; i++) { if (expansionStakerToTokenIds[_expansionAddress][staker][i] == tokenId) { //This is the tokenId to remove; expansionRemove(_expansionAddress, staker, i); } } } function removeTokenIdFromStaker(address staker, uint256 tokenId) internal { for (uint256 i = 0; i < stakerToTokenIds[staker].length; i++) { if (stakerToTokenIds[staker][i] == tokenId) { //This is the tokenId to remove; remove(staker, i); } } } function expansionStakeByIds(address _expansionAddress, uint256[] memory tokenIds) public{ require(emissionsRate[_expansionAddress] > 0, "Not our contract"); require( expansionStakerToTokenIds[_expansionAddress][msg.sender].length + tokenIds.length <= MAX_WALLET_STAKED, "Must have less than 10 heroes from each contract staked!" ); for (uint256 i = 0; i < tokenIds.length; i++) { require( IERC721(_expansionAddress).ownerOf(tokenIds[i]) == msg.sender && expansionTokenIdToStaker[_expansionAddress][tokenIds[i]] == nullAddress, "Token must be stakable by you!" ); IERC721(_expansionAddress).transferFrom( msg.sender, address(this), tokenIds[i] ); expansionStakerToTokenIds[_expansionAddress][msg.sender].push(tokenIds[i]); expansionTokenIdToTimestamp[_expansionAddress][tokenIds[i]] = block.timestamp; expansionTokenIdToStaker[_expansionAddress][tokenIds[i]] = msg.sender; } } function stakeByIds(uint256[] memory tokenIds) public { require( stakerToTokenIds[msg.sender].length + tokenIds.length <= MAX_WALLET_STAKED, "Must have less than 10 heroes staked!" ); for (uint256 i = 0; i < tokenIds.length; i++) { require( IERC721(contractAddress).ownerOf(tokenIds[i]) == msg.sender && tokenIdToStaker[tokenIds[i]] == nullAddress, "Token must be stakable by you!" ); IERC721(contractAddress).transferFrom( msg.sender, address(this), tokenIds[i] ); stakerToTokenIds[msg.sender].push(tokenIds[i]); tokenIdToTimeStamp[tokenIds[i]] = block.timestamp; tokenIdToStaker[tokenIds[i]] = msg.sender; } } function unstakeAll() public { require( stakerToTokenIds[msg.sender].length > 0, "Must have at least one token staked!" ); uint256 totalRewards = 0; for (uint256 i = stakerToTokenIds[msg.sender].length; i > 0; i--) { uint256 tokenId = stakerToTokenIds[msg.sender][i - 1]; IERC721(contractAddress).transferFrom( address(this), msg.sender, tokenId ); totalRewards = totalRewards + ((block.timestamp - tokenIdToTimeStamp[tokenId]) * EMISSIONS_RATE); removeTokenIdFromStaker(msg.sender, tokenId); tokenIdToStaker[tokenId] = nullAddress; } _mint(msg.sender, totalRewards); } function expansionUnstakeByIds(address _expansionAddress, uint256[] memory tokenIds) public { require(emissionsRate[_expansionAddress] > 0, "Not our contract"); uint256 totalRewards = 0; for (uint256 i = 0; i < tokenIds.length; i++) { require( expansionTokenIdToStaker[_expansionAddress][tokenIds[i]] == msg.sender, "Message Sender was not original staker!" ); IERC721(_expansionAddress).transferFrom( address(this), msg.sender, tokenIds[i] ); totalRewards = totalRewards + ((block.timestamp - expansionTokenIdToTimestamp[_expansionAddress][tokenIds[i]]) * emissionsRate[_expansionAddress]); expansionRemoveTokenIdFromStaker(_expansionAddress, msg.sender, tokenIds[i]); expansionTokenIdToStaker[_expansionAddress][tokenIds[i]] = nullAddress; } _mint(msg.sender, totalRewards); } function unstakeByIds(uint256[] memory tokenIds) public { uint256 totalRewards = 0; for (uint256 i = 0; i < tokenIds.length; i++) { require( tokenIdToStaker[tokenIds[i]] == msg.sender, "Message Sender was not original staker!" ); IERC721(contractAddress).transferFrom( address(this), msg.sender, tokenIds[i] ); totalRewards = totalRewards + ((block.timestamp - tokenIdToTimeStamp[tokenIds[i]]) * EMISSIONS_RATE); removeTokenIdFromStaker(msg.sender, tokenIds[i]); tokenIdToStaker[tokenIds[i]] = nullAddress; } _mint(msg.sender, totalRewards); } function expansionClaimByTokenId(address _expansionAddress, uint256 tokenId) public { require(emissionsRate[_expansionAddress] > 0, "Not our contract"); require( expansionTokenIdToStaker[_expansionAddress][tokenId] == msg.sender, "Token is not claimable by you!" ); require(block.timestamp < CLAIM_END_TIME, "Claim period is over!"); _mint( msg.sender, ((block.timestamp - expansionTokenIdToTimestamp[_expansionAddress][tokenId]) * emissionsRate[_expansionAddress]) ); expansionTokenIdToTimestamp[_expansionAddress][tokenId] = block.timestamp; } function claimByTokenId(uint256 tokenId) public { require( tokenIdToStaker[tokenId] == msg.sender, "Token is not claimable by you!" ); require(block.timestamp < CLAIM_END_TIME, "Claim period is over!"); _mint( msg.sender, ((block.timestamp - tokenIdToTimeStamp[tokenId]) * EMISSIONS_RATE) ); tokenIdToTimeStamp[tokenId] = block.timestamp; } function expansionClaimAll(address _expansionAddress) public { require(emissionsRate[_expansionAddress] > 0, "Not our contract"); require(block.timestamp < CLAIM_END_TIME, "Claim period is over!"); uint256[] memory tokenIds = expansionStakerToTokenIds[_expansionAddress][msg.sender]; uint256 totalRewards = 0; for (uint256 i = 0; i < tokenIds.length; i++) { require( expansionTokenIdToStaker[_expansionAddress][tokenIds[i]] == msg.sender, "Token is not claimable by you!" ); totalRewards = totalRewards + ((block.timestamp - expansionTokenIdToTimestamp[_expansionAddress][tokenIds[i]]) * emissionsRate[_expansionAddress]); expansionTokenIdToTimestamp[_expansionAddress][tokenIds[i]] = block.timestamp; } _mint(msg.sender, totalRewards); } function claimAll() public { require(block.timestamp < CLAIM_END_TIME, "Claim period is over!"); uint256[] memory tokenIds = stakerToTokenIds[msg.sender]; uint256 totalRewards = 0; for (uint256 i = 0; i < tokenIds.length; i++) { require( tokenIdToStaker[tokenIds[i]] == msg.sender, "Token is not claimable by you!" ); totalRewards = totalRewards + ((block.timestamp - tokenIdToTimeStamp[tokenIds[i]]) * EMISSIONS_RATE); tokenIdToTimeStamp[tokenIds[i]] = block.timestamp; } _mint(msg.sender, totalRewards); } function expansionGetAllRewards(address _expansionAddress, address staker) public view returns (uint256) { require(emissionsRate[_expansionAddress] > 0, "Not our contract"); uint256[] memory tokenIds = expansionStakerToTokenIds[_expansionAddress][staker]; uint256 totalRewards = 0; for (uint256 i = 0; i < tokenIds.length; i++) { totalRewards = totalRewards + ((block.timestamp - expansionTokenIdToTimestamp[_expansionAddress][tokenIds[i]]) * emissionsRate[_expansionAddress]); } return totalRewards; } function getAllRewards(address staker) public view returns (uint256) { uint256[] memory tokenIds = stakerToTokenIds[staker]; uint256 totalRewards = 0; for (uint256 i = 0; i < tokenIds.length; i++) { totalRewards = totalRewards + ((block.timestamp - tokenIdToTimeStamp[tokenIds[i]]) * EMISSIONS_RATE); } return totalRewards; } function expansionGetRewardsByTokenId(address _expansionAddress, uint256 tokenId) public view returns (uint256) { require(emissionsRate[_expansionAddress] > 0, "Not our contract"); require( expansionTokenIdToStaker[_expansionAddress][tokenId] != nullAddress, "Token is not staked!" ); uint256 secondsStaked = block.timestamp - expansionTokenIdToTimestamp[_expansionAddress][tokenId]; return secondsStaked * emissionsRate[_expansionAddress]; } function getRewardsByTokenId(uint256 tokenId) public view returns (uint256) { require( tokenIdToStaker[tokenId] != nullAddress, "Token is not staked!" ); uint256 secondsStaked = block.timestamp - tokenIdToTimeStamp[tokenId]; return secondsStaked * EMISSIONS_RATE; } function expansionGetStaker(address _expansionAddress, uint256 tokenId) public view returns (address) { require(emissionsRate[_expansionAddress] > 0, "Not our contract"); return expansionTokenIdToStaker[_expansionAddress][tokenId]; } function getStaker(uint256 tokenId) public view returns (address) { return tokenIdToStaker[tokenId]; } }
// contracts/bridge/IMintableERC20.sol // SPDX-License-Identifier: MIT import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; pragma solidity ^0.8.0; // File: contracts/common/AccessControlMixin.sol contract AccessControlMixin is AccessControl { string private _revertMsg; function _setupContractId(string memory contractId) internal { _revertMsg = string(abi.encodePacked(contractId, ": INSUFFICIENT_PERMISSIONS")); } modifier only(bytes32 role) { require( hasRole(role, _msgSender()), _revertMsg ); _; } } // File: contracts/child/ChildToken/IChildToken.sol interface IChildToken { function deposit(address user, bytes calldata depositData) external; } // File: contracts/common/Initializable.sol contract Initializable { bool inited = false; modifier initializer() { require(!inited, "already inited"); _; inited = true; } } // File: contracts/common/EIP712Base.sol contract EIP712Base is Initializable { struct EIP712Domain { string name; string version; address verifyingContract; bytes32 salt; } string constant public ERC712_VERSION = "1"; bytes32 internal constant EIP712_DOMAIN_TYPEHASH = keccak256( bytes( "EIP712Domain(string name,string version,address verifyingContract,bytes32 salt)" ) ); bytes32 internal domainSeperator; // supposed to be called once while initializing. // one of the contractsa that inherits this contract follows proxy pattern // so it is not possible to do this in a constructor function _initializeEIP712( string memory name ) internal initializer { _setDomainSeperator(name); } function _setDomainSeperator(string memory name) internal { domainSeperator = keccak256( abi.encode( EIP712_DOMAIN_TYPEHASH, keccak256(bytes(name)), keccak256(bytes(ERC712_VERSION)), address(this), bytes32(getChainId()) ) ); } function getDomainSeperator() public view returns (bytes32) { return domainSeperator; } function getChainId() public view returns (uint256) { uint256 id; assembly { id := chainid() } return id; } /** * Accept message hash and returns hash message in EIP712 compatible form * So that it can be used to recover signer from signature signed using EIP712 formatted data * https://eips.ethereum.org/EIPS/eip-712 * "\\x19" makes the encoding deterministic * "\\x01" is the version byte to make it compatible to EIP-191 */ function toTypedMessageHash(bytes32 messageHash) internal view returns (bytes32) { return keccak256( abi.encodePacked("\x19\x01", getDomainSeperator(), messageHash) ); } } // File: contracts/common/NativeMetaTransaction.sol contract NativeMetaTransaction is EIP712Base { using SafeMath for uint256; bytes32 private constant META_TRANSACTION_TYPEHASH = keccak256( bytes( "MetaTransaction(uint256 nonce,address from,bytes functionSignature)" ) ); event MetaTransactionExecuted( address userAddress, address payable relayerAddress, bytes functionSignature ); mapping(address => uint256) nonces; /* * Meta transaction structure. * No point of including value field here as if user is doing value transfer then he has the funds to pay for gas * He should call the desired function directly in that case. */ struct MetaTransaction { uint256 nonce; address from; bytes functionSignature; } function executeMetaTransaction( address userAddress, bytes memory functionSignature, bytes32 sigR, bytes32 sigS, uint8 sigV ) public payable returns (bytes memory) { MetaTransaction memory metaTx = MetaTransaction({ nonce: nonces[userAddress], from: userAddress, functionSignature: functionSignature }); require( verify(userAddress, metaTx, sigR, sigS, sigV), "Signer and signature do not match" ); // increase nonce for user (to avoid re-use) nonces[userAddress] = nonces[userAddress].add(1); emit MetaTransactionExecuted( userAddress, payable(msg.sender), functionSignature ); // Append userAddress and relayer address at the end to extract it from calling context (bool success, bytes memory returnData) = address(this).call( abi.encodePacked(functionSignature, userAddress) ); require(success, "Function call not successful"); return returnData; } function hashMetaTransaction(MetaTransaction memory metaTx) internal pure returns (bytes32) { return keccak256( abi.encode( META_TRANSACTION_TYPEHASH, metaTx.nonce, metaTx.from, keccak256(metaTx.functionSignature) ) ); } function getNonce(address user) public view returns (uint256 nonce) { nonce = nonces[user]; } function verify( address signer, MetaTransaction memory metaTx, bytes32 sigR, bytes32 sigS, uint8 sigV ) internal view returns (bool) { require(signer != address(0), "NativeMetaTransaction: INVALID_SIGNER"); return signer == ecrecover( toTypedMessageHash(hashMetaTransaction(metaTx)), sigV, sigR, sigS ); } } // File: contracts/common/ContextMixin.sol abstract contract ContextMixin { function msgSender() internal view returns (address payable sender) { if (msg.sender == address(this)) { bytes memory array = msg.data; uint256 index = msg.data.length; assembly { // Load the 32 bytes word from memory with the address on the lower 20 bytes, and mask those. sender := and( mload(add(array, index)), 0xffffffffffffffffffffffffffffffffffffffff ) } } else { sender = payable(msg.sender); } return sender; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// 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; 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 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; /** * @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; 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; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC20.sol"; import "../../../utils/Context.sol"; /** * @dev Extension of {ERC20} that allows token holders to destroy both their own * tokens and those that they have an allowance for, in a way that can be * recognized off-chain (via event analysis). */ abstract contract ERC20Burnable is Context, ERC20 { /** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 amount) public virtual { _burn(_msgSender(), amount); } /** * @dev Destroys `amount` tokens from `account`, deducting from the caller's * allowance. * * See {ERC20-_burn} and {ERC20-allowance}. * * Requirements: * * - the caller must have allowance for ``accounts``'s tokens of at least * `amount`. */ function burnFrom(address account, uint256 amount) public virtual { uint256 currentAllowance = allowance(account, _msgSender()); require(currentAllowance >= amount, "ERC20: burn amount exceeds allowance"); unchecked { _approve(account, _msgSender(), currentAllowance - amount); } _burn(account, amount); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom( address sender, address recipient, uint256 amount ) public virtual override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); unchecked { _approve(sender, _msgSender(), currentAllowance - amount); } return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(_msgSender(), spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer( address sender, address recipient, uint256 amount ) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); uint256 senderBalance = _balances[sender]; require(senderBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[sender] = senderBalance - amount; } _balances[recipient] += amount; emit Transfer(sender, recipient, amount); _afterTokenTransfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens 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 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been 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 _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} }
// 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; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; }
// SPDX-License-Identifier: MIT 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()); } } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 20000 }, "evmVersion": "london", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"userAddress","type":"address"},{"indexed":false,"internalType":"address payable","name":"relayerAddress","type":"address"},{"indexed":false,"internalType":"bytes","name":"functionSignature","type":"bytes"}],"name":"MetaTransactionExecuted","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":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":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"CLAIM_END_TIME","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEPOSITOR_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"EMISSIONS_RATE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ERC712_VERSION","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_RESERVE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_WALLET_STAKED","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"claimByTokenId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"bytes","name":"depositData","type":"bytes"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"userAddress","type":"address"},{"internalType":"bytes","name":"functionSignature","type":"bytes"},{"internalType":"bytes32","name":"sigR","type":"bytes32"},{"internalType":"bytes32","name":"sigS","type":"bytes32"},{"internalType":"uint8","name":"sigV","type":"uint8"}],"name":"executeMetaTransaction","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_expansionAddress","type":"address"}],"name":"expansionClaimAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_expansionAddress","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"expansionClaimByTokenId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_expansionAddress","type":"address"},{"internalType":"address","name":"staker","type":"address"}],"name":"expansionGetAllRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_expansionAddress","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"expansionGetRewardsByTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_expansionAddress","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"expansionGetStaker","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_expansionAddress","type":"address"},{"internalType":"address","name":"_staker","type":"address"}],"name":"expansionGetTokensStaked","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_expansionAddress","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"expansionStakeByIds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_expansionAddress","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"expansionUnstakeByIds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"staker","type":"address"}],"name":"getAllRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getChainId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDomainSeperator","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getNonce","outputs":[{"internalType":"uint256","name":"nonce","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getRewardsByTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getStaker","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"staker","type":"address"}],"name":"getTokensStaked","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"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":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","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":"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":"uint256","name":"_endTime","type":"uint256"}],"name":"setClaimEndTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_contractAddress","type":"address"}],"name":"setContractAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_contractAddress","type":"address"},{"internalType":"uint256","name":"_emissionsRate","type":"uint256"}],"name":"setExpansionEmission","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"stakeByIds","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":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unstakeAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"unstakeByIds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526008805460ff19169055600a600b55650a86cc54b980600c556361cfdfd0600d55620186a0600e55600f80546001600160a01b03191690553480156200004957600080fd5b506040518060400160405280601081526020016f4d61746963204d696b65204a7569636560801b815250604051806040016040528060038152602001620908e960eb1b8152508160039080519060200190620000a79291906200045c565b508051620000bd9060049060208401906200045c565b505050620000da620000d46200019a60201b60201c565b620001b6565b60408051808201909152601081526f04847484d696e7461626c6545524332360841b60208201526200010c9062000208565b6200012260006200011c6200019a565b62000245565b620001627f8f4f2da22e8ac8f11e15f9fc141cddbb5deea8800186560abb6e68c5496619a973a6fa4fb5f76172d178d61b04b0ecd319c5d1c0aa62000245565b60408051808201909152601081526f4d61746963204d696b65204a7569636560801b6020820152620001949062000251565b620005a2565b6000620001b1620002b560201b620031bf1760201c565b905090565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b806040516020016200021b919062000502565b60405160208183030381529060405260079080519060200190620002419291906200045c565b5050565b62000241828262000314565b60085460ff16156200029a5760405162461bcd60e51b815260206004820152600e60248201526d185b1c9958591e481a5b9a5d195960921b604482015260640160405180910390fd5b620002a581620003ba565b506008805460ff19166001179055565b6000333014156200030e57600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b03169150620003119050565b50335b90565b60008281526006602090815260408083206001600160a01b038516845290915290205460ff16620002415760008281526006602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620003766200019a565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6040518060800160405280604f815260200162005151604f9139805160209182012082519282019290922060408051808201825260018152603160f81b90840152805180840194909452838101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608401523060808401524660a0808501919091528151808503909101815260c090930190528151910120600955565b8280546200046a9062000565565b90600052602060002090601f0160209004810192826200048e5760008555620004d9565b82601f10620004a957805160ff1916838001178555620004d9565b82800160010185558215620004d9579182015b82811115620004d9578251825591602001919060010190620004bc565b50620004e7929150620004eb565b5090565b5b80821115620004e75760008155600101620004ec565b6000825160005b8181101562000525576020818601810151858301520162000509565b8181111562000535576000828501525b507f3a20494e53554646494349454e545f5045524d495353494f4e53000000000000920191825250601a01919050565b600181811c908216806200057a57607f821691505b602082108114156200059c57634e487b7160e01b600052602260045260246000fd5b50919050565b614b9f80620005b26000396000f3fe60806040526004361061036a5760003560e01c8063715018a6116101c6578063a9059cbb116100f7578063dfb2109c11610095578063eff31e9e1161006f578063eff31e9e14610a67578063f2fde38b14610a7d578063f6b4dfb414610a9d578063f9cf595b14610abd57600080fd5b8063dfb2109c146109f1578063e1deb18114610a11578063e3c998fe14610a3157600080fd5b8063d1058e59116100d1578063d1058e5914610956578063d547741f1461096b578063d9ffad471461098b578063dd62ed3e146109ab57600080fd5b8063a9059cbb14610900578063ba7e766214610920578063cf2c52cb1461093657600080fd5b806397af612611610164578063a217fddf1161013e578063a217fddf14610877578063a31e41261461088c578063a3b0b5a3146108ac578063a457c2d7146108e057600080fd5b806397af6126146108175780639a3aa766146108375780639b0e4b261461085757600080fd5b80638ab8fab3116101a05780638ab8fab3146107745780638da5cb5b1461078a57806391d14854146107bc57806395d89b411461080257600080fd5b8063715018a61461071f57806379cc67901461073457806385599eb81461075457600080fd5b80632f2ff15d116102a057806342966c681161023e578063515ec10511610218578063515ec1051461067c57806352eb77961461069c5780635e1f1e2a146106c957806370a08231146106e957600080fd5b806342966c6814610556578063477bddaa1461063c57806348aa19361461065c57600080fd5b806335322f371161027a57806335322f37146105c7578063362a3fad146105dc57806336568abe146105fc578063395093511461061c57600080fd5b80632f2ff15d14610578578063313ce567146105985780633408e470146105b457600080fd5b8063201d0fed1161030d57806323b872dd116102e757806323b872dd146104d0578063248a9ca3146104f05780632d0335ab146105205780632e1a7d4d1461055657600080fd5b8063201d0fed1461048557806320379ee5146104a55780632209d38c146104ba57600080fd5b8063095ea7b311610349578063095ea7b3146103f45780630c53c51c146104145780630f7e59701461042757806318160ddd1461047057600080fd5b80622281b21461036f57806301ffc9a7146103a257806306fdde03146103d2575b600080fd5b34801561037b57600080fd5b5061038f61038a3660046142f6565b610add565b6040519081526020015b60405180910390f35b3480156103ae57600080fd5b506103c26103bd3660046145ce565b610c55565b6040519015158152602001610399565b3480156103de57600080fd5b506103e7610cee565b60405161039991906147ba565b34801561040057600080fd5b506103c261040f36600461452f565b610d80565b6103e7610422366004614445565b610d9d565b34801561043357600080fd5b506103e76040518060400160405280600181526020017f310000000000000000000000000000000000000000000000000000000000000081525081565b34801561047c57600080fd5b5060025461038f565b34801561049157600080fd5b5061038f6104a036600461452f565b610fc1565b3480156104b157600080fd5b5060095461038f565b3480156104c657600080fd5b5061038f600d5481565b3480156104dc57600080fd5b506103c26104eb36600461432f565b6110fc565b3480156104fc57600080fd5b5061038f61050b366004614590565b60009081526006602052604090206001015490565b34801561052c57600080fd5b5061038f61053b3660046142bc565b6001600160a01b03166000908152600a602052604090205490565b34801561056257600080fd5b50610576610571366004614590565b6111e2565b005b34801561058457600080fd5b506105766105933660046145a9565b6111f6565b3480156105a457600080fd5b5060405160128152602001610399565b3480156105c057600080fd5b504661038f565b3480156105d357600080fd5b50610576611228565b3480156105e857600080fd5b5061038f6105f73660046142bc565b61141c565b34801561060857600080fd5b506105766106173660046145a9565b6114f8565b34801561062857600080fd5b506103c261063736600461452f565b611594565b34801561064857600080fd5b506105766106573660046142bc565b6115e8565b34801561066857600080fd5b5061057661067736600461455b565b611699565b34801561068857600080fd5b5061038f610697366004614590565b61190c565b3480156106a857600080fd5b506106bc6106b73660046142bc565b6119ab565b6040516103999190614776565b3480156106d557600080fd5b506105766106e4366004614590565b611a17565b3480156106f557600080fd5b5061038f6107043660046142bc565b6001600160a01b031660009081526020819052604090205490565b34801561072b57600080fd5b50610576611b12565b34801561074057600080fd5b5061057661074f36600461452f565b611b97565b34801561076057600080fd5b5061057661076f36600461452f565b611c3a565b34801561078057600080fd5b5061038f600b5481565b34801561079657600080fd5b506005546001600160a01b03165b6040516001600160a01b039091168152602001610399565b3480156107c857600080fd5b506103c26107d73660046145a9565b60009182526006602090815260408084206001600160a01b0393909316845291905290205460ff1690565b34801561080e57600080fd5b506103e7611ccf565b34801561082357600080fd5b5061057661083236600461452f565b611cde565b34801561084357600080fd5b50610576610852366004614590565b611e6d565b34801561086357600080fd5b506106bc6108723660046142f6565b611eeb565b34801561088357600080fd5b5061038f600081565b34801561089857600080fd5b506105766108a73660046142bc565b611f64565b3480156108b857600080fd5b5061038f7f8f4f2da22e8ac8f11e15f9fc141cddbb5deea8800186560abb6e68c5496619a981565b3480156108ec57600080fd5b506103c26108fb36600461452f565b61221b565b34801561090c57600080fd5b506103c261091b36600461452f565b6122ea565b34801561092c57600080fd5b5061038f600c5481565b34801561094257600080fd5b506105766109513660046143c0565b6122fe565b34801561096257600080fd5b5061057661236d565b34801561097757600080fd5b506105766109863660046145a9565b61254f565b34801561099757600080fd5b506105766109a636600461455b565b612577565b3480156109b757600080fd5b5061038f6109c63660046142f6565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3480156109fd57600080fd5b50610576610a0c366004614370565b6128f4565b348015610a1d57600080fd5b506107a4610a2c36600461452f565b612bf3565b348015610a3d57600080fd5b506107a4610a4c366004614590565b6000908152601260205260409020546001600160a01b031690565b348015610a7357600080fd5b5061038f600e5481565b348015610a8957600080fd5b50610576610a983660046142bc565b612c81565b348015610aa957600080fd5b506010546107a4906001600160a01b031681565b348015610ac957600080fd5b50610576610ad8366004614370565b612d7f565b6001600160a01b038216600090815260146020526040812054610b475760405162461bcd60e51b815260206004820152601060248201527f4e6f74206f757220636f6e74726163740000000000000000000000000000000060448201526064015b60405180910390fd5b6001600160a01b038084166000908152601760209081526040808320938616835292815282822080548451818402810184019095528085529293929091830182828015610bb357602002820191906000526020600020905b815481526020019060010190808311610b9f575b505050505090506000805b8251811015610c4c576001600160a01b03861660009081526014602090815260408083205460159092528220855191929091869085908110610c0257610c02614ab3565b602002602001015181526020019081526020016000205442610c249190614950565b610c2e9190614913565b610c3890836148fb565b915080610c4481614a1c565b915050610bbe565b50949350505050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b000000000000000000000000000000000000000000000000000000001480610ce857507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b606060038054610cfd906149c8565b80601f0160208091040260200160405190810160405280929190818152602001828054610d29906149c8565b8015610d765780601f10610d4b57610100808354040283529160200191610d76565b820191906000526020600020905b815481529060010190602001808311610d5957829003601f168201915b5050505050905090565b6000610d94610d8d61321c565b848461322b565b50600192915050565b60408051606081810183526001600160a01b0388166000818152600a602090815290859020548452830152918101869052610ddb8782878787613383565b610e4d5760405162461bcd60e51b815260206004820152602160248201527f5369676e657220616e64207369676e617475726520646f206e6f74206d61746360448201527f68000000000000000000000000000000000000000000000000000000000000006064820152608401610b3e565b6001600160a01b0387166000908152600a6020526040902054610e7190600161348b565b6001600160a01b0388166000908152600a60205260409081902091909155517f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b90610ec190899033908a90614741565b60405180910390a1600080306001600160a01b0316888a604051602001610ee9929190614676565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815290829052610f219161465a565b6000604051808303816000865af19150503d8060008114610f5e576040519150601f19603f3d011682016040523d82523d6000602084013e610f63565b606091505b509150915081610fb55760405162461bcd60e51b815260206004820152601c60248201527f46756e6374696f6e2063616c6c206e6f74207375636365737366756c000000006044820152606401610b3e565b98975050505050505050565b6001600160a01b0382166000908152601460205260408120546110265760405162461bcd60e51b815260206004820152601060248201527f4e6f74206f757220636f6e7472616374000000000000000000000000000000006044820152606401610b3e565b600f546001600160a01b0384811660009081526016602090815260408083208784529091529020548116911614156110a05760405162461bcd60e51b815260206004820152601460248201527f546f6b656e206973206e6f74207374616b6564210000000000000000000000006044820152606401610b3e565b6001600160a01b03831660009081526015602090815260408083208584529091528120546110ce9042614950565b6001600160a01b0385166000908152601460205260409020549091506110f49082614913565b949350505050565b6000611109848484613497565b6001600160a01b03841660009081526001602052604081208161112a61321c565b6001600160a01b03166001600160a01b03168152602001908152602001600020549050828110156111c35760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206160448201527f6c6c6f77616e63650000000000000000000000000000000000000000000000006064820152608401610b3e565b6111d7856111cf61321c565b85840361322b565b506001949350505050565b6111f36111ed61321c565b826136b0565b50565b6000828152600660205260409020600101546112198161121461321c565b613835565b61122383836138d3565b505050565b336000908152601360205260409020546112a95760405162461bcd60e51b8152602060048201526024808201527f4d7573742068617665206174206c65617374206f6e6520746f6b656e2073746160448201527f6b656421000000000000000000000000000000000000000000000000000000006064820152608401610b3e565b336000908152601360205260408120545b8015611411573360009081526013602052604081206112da600184614950565b815481106112ea576112ea614ab3565b6000918252602090912001546010546040517f23b872dd000000000000000000000000000000000000000000000000000000008152306004820152336024820152604481018390529192506001600160a01b0316906323b872dd90606401600060405180830381600087803b15801561136257600080fd5b505af1158015611376573d6000803e3d6000fd5b5050600c54600084815260116020526040902054909250611398915042614950565b6113a29190614913565b6113ac90846148fb565b92506113b83382613994565b600f5460009182526012602052604090912080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b039092169190911790558061140981614993565b9150506112ba565b506111f33382613a11565b6001600160a01b03811660009081526013602090815260408083208054825181850281018501909352808352849383018282801561147957602002820191906000526020600020905b815481526020019060010190808311611465575b505050505090506000805b82518110156114f057600c54601160008584815181106114a6576114a6614ab3565b6020026020010151815260200190815260200160002054426114c89190614950565b6114d29190614913565b6114dc90836148fb565b9150806114e881614a1c565b915050611484565b509392505050565b61150061321c565b6001600160a01b0316816001600160a01b0316146115865760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608401610b3e565b6115908282613af0565b5050565b6000610d946115a161321c565b8484600160006115af61321c565b6001600160a01b03908116825260208083019390935260409182016000908120918b16815292529020546115e391906148fb565b61322b565b6115f061321c565b6001600160a01b031661160b6005546001600160a01b031690565b6001600160a01b0316146116615760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b3e565b601080546001600160a01b0383167fffffffffffffffffffffffff000000000000000000000000000000000000000090911617905550565b6000805b825181101561190157336001600160a01b0316601260008584815181106116c6576116c6614ab3565b6020908102919091018101518252810191909152604001600020546001600160a01b03161461175d5760405162461bcd60e51b815260206004820152602760248201527f4d6573736167652053656e64657220776173206e6f74206f726967696e616c2060448201527f7374616b657221000000000000000000000000000000000000000000000000006064820152608401610b3e565b60105483516001600160a01b03909116906323b872dd903090339087908690811061178a5761178a614ab3565b60209081029190910101516040517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b1580156117fc57600080fd5b505af1158015611810573d6000803e3d6000fd5b50505050600c546011600085848151811061182d5761182d614ab3565b60200260200101518152602001908152602001600020544261184f9190614950565b6118599190614913565b61186390836148fb565b91506118883384838151811061187b5761187b614ab3565b6020026020010151613994565b600f60009054906101000a90046001600160a01b0316601260008584815181106118b4576118b4614ab3565b6020026020010151815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b0316021790555080806118f990614a1c565b91505061169d565b506115903382613a11565b600f5460008281526012602052604081205490916001600160a01b039182169116141561197b5760405162461bcd60e51b815260206004820152601460248201527f546f6b656e206973206e6f74207374616b6564210000000000000000000000006044820152606401610b3e565b6000828152601160205260408120546119949042614950565b9050600c54816119a49190614913565b9392505050565b6001600160a01b038116600090815260136020908152604091829020805483518184028101840190945280845260609392830182828015611a0b57602002820191906000526020600020905b8154815260200190600101908083116119f7575b50505050509050919050565b6000818152601260205260409020546001600160a01b03163314611a7d5760405162461bcd60e51b815260206004820152601e60248201527f546f6b656e206973206e6f7420636c61696d61626c6520627920796f752100006044820152606401610b3e565b600d544210611ace5760405162461bcd60e51b815260206004820152601560248201527f436c61696d20706572696f64206973206f7665722100000000000000000000006044820152606401610b3e565b600c54600082815260116020526040902054611aff913391611af09042614950565b611afa9190614913565b613a11565b6000908152601160205260409020429055565b611b1a61321c565b6001600160a01b0316611b356005546001600160a01b031690565b6001600160a01b031614611b8b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b3e565b611b956000613baf565b565b6000611ba5836109c661321c565b905081811015611c1c5760405162461bcd60e51b8152602060048201526024808201527f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f7760448201527f616e6365000000000000000000000000000000000000000000000000000000006064820152608401610b3e565b611c3083611c2861321c565b84840361322b565b61122383836136b0565b611c4261321c565b6001600160a01b0316611c5d6005546001600160a01b031690565b6001600160a01b031614611cb35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b3e565b6001600160a01b03909116600090815260146020526040902055565b606060048054610cfd906149c8565b6001600160a01b038216600090815260146020526040902054611d435760405162461bcd60e51b815260206004820152601060248201527f4e6f74206f757220636f6e7472616374000000000000000000000000000000006044820152606401610b3e565b6001600160a01b038281166000908152601660209081526040808320858452909152902054163314611db75760405162461bcd60e51b815260206004820152601e60248201527f546f6b656e206973206e6f7420636c61696d61626c6520627920796f752100006044820152606401610b3e565b600d544210611e085760405162461bcd60e51b815260206004820152601560248201527f436c61696d20706572696f64206973206f7665722100000000000000000000006044820152606401610b3e565b6001600160a01b0382166000908152601460209081526040808320546015835281842085855290925290912054611e45913391611af09042614950565b6001600160a01b03909116600090815260156020908152604080832093835292905220429055565b611e7561321c565b6001600160a01b0316611e906005546001600160a01b031690565b6001600160a01b031614611ee65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b3e565b600d55565b6001600160a01b038083166000908152601760209081526040808320938516835292815290829020805483518184028101840190945280845260609392830182828015611f5757602002820191906000526020600020905b815481526020019060010190808311611f43575b5050505050905092915050565b6001600160a01b038116600090815260146020526040902054611fc95760405162461bcd60e51b815260206004820152601060248201527f4e6f74206f757220636f6e7472616374000000000000000000000000000000006044820152606401610b3e565b600d54421061201a5760405162461bcd60e51b815260206004820152601560248201527f436c61696d20706572696f64206973206f7665722100000000000000000000006044820152606401610b3e565b6001600160a01b038116600090815260176020908152604080832033845282528083208054825181850281018501909352808352919290919083018282801561208257602002820191906000526020600020905b81548152602001906001019080831161206e575b505050505090506000805b8251811015612210576001600160a01b038416600090815260166020526040812084513392908690859081106120c5576120c5614ab3565b6020908102919091018101518252810191909152604001600020546001600160a01b0316146121365760405162461bcd60e51b815260206004820152601e60248201527f546f6b656e206973206e6f7420636c61696d61626c6520627920796f752100006044820152606401610b3e565b6001600160a01b0384166000908152601460209081526040808320546015909252822085519192909186908590811061217157612171614ab3565b6020026020010151815260200190815260200160002054426121939190614950565b61219d9190614913565b6121a790836148fb565b91504260156000866001600160a01b03166001600160a01b0316815260200190815260200160002060008584815181106121e3576121e3614ab3565b6020026020010151815260200190815260200160002081905550808061220890614a1c565b91505061208d565b506112233382613a11565b6000806001600061222a61321c565b6001600160a01b03908116825260208083019390935260409182016000908120918816815292529020549050828110156122cc5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152608401610b3e565b6122e06122d761321c565b8585840361322b565b5060019392505050565b6000610d946122f761321c565b8484613497565b7f8f4f2da22e8ac8f11e15f9fc141cddbb5deea8800186560abb6e68c5496619a961232b816107d761321c565b60079061234b5760405162461bcd60e51b8152600401610b3e91906147cd565b50600061235a83850185614590565b90506123668582613a11565b5050505050565b600d5442106123be5760405162461bcd60e51b815260206004820152601560248201527f436c61696d20706572696f64206973206f7665722100000000000000000000006044820152606401610b3e565b3360009081526013602090815260408083208054825181850281018501909352808352919290919083018282801561241557602002820191906000526020600020905b815481526020019060010190808311612401575b505050505090506000805b825181101561190157336001600160a01b03166012600085848151811061244957612449614ab3565b6020908102919091018101518252810191909152604001600020546001600160a01b0316146124ba5760405162461bcd60e51b815260206004820152601e60248201527f546f6b656e206973206e6f7420636c61696d61626c6520627920796f752100006044820152606401610b3e565b600c54601160008584815181106124d3576124d3614ab3565b6020026020010151815260200190815260200160002054426124f59190614950565b6124ff9190614913565b61250990836148fb565b9150426011600085848151811061252257612522614ab3565b6020026020010151815260200190815260200160002081905550808061254790614a1c565b915050612420565b60008281526006602052604090206001015461256d8161121461321c565b6112238383613af0565b600b5481513360009081526013602052604090205461259691906148fb565b111561260a5760405162461bcd60e51b815260206004820152602560248201527f4d7573742068617665206c657373207468616e203130206865726f657320737460448201527f616b6564210000000000000000000000000000000000000000000000000000006064820152608401610b3e565b60005b815181101561159057601054825133916001600160a01b031690636352211e9085908590811061263f5761263f614ab3565b60200260200101516040518263ffffffff1660e01b815260040161266591815260200190565b60206040518083038186803b15801561267d57600080fd5b505afa158015612691573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126b591906142d9565b6001600160a01b03161480156127155750600f5482516001600160a01b03909116906012906000908590859081106126ef576126ef614ab3565b6020908102919091018101518252810191909152604001600020546001600160a01b0316145b6127615760405162461bcd60e51b815260206004820152601e60248201527f546f6b656e206d757374206265207374616b61626c6520627920796f752100006044820152606401610b3e565b60105482516001600160a01b03909116906323b872dd903390309086908690811061278e5761278e614ab3565b60209081029190910101516040517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b15801561280057600080fd5b505af1158015612814573d6000803e3d6000fd5b505033600090815260136020526040902084519092508491508390811061283d5761283d614ab3565b60209081029190910181015182546001810184556000938452918320909101558251429160119185908590811061287657612876614ab3565b602002602001015181526020019081526020016000208190555033601260008484815181106128a7576128a7614ab3565b6020026020010151815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b0316021790555080806128ec90614a1c565b91505061260d565b6001600160a01b0382166000908152601460205260409020546129595760405162461bcd60e51b815260206004820152601060248201527f4e6f74206f757220636f6e7472616374000000000000000000000000000000006044820152606401610b3e565b6000805b8251811015612210576001600160a01b0384166000908152601660205260408120845133929086908590811061299557612995614ab3565b6020908102919091018101518252810191909152604001600020546001600160a01b031614612a2c5760405162461bcd60e51b815260206004820152602760248201527f4d6573736167652053656e64657220776173206e6f74206f726967696e616c2060448201527f7374616b657221000000000000000000000000000000000000000000000000006064820152608401610b3e565b836001600160a01b03166323b872dd3033868581518110612a4f57612a4f614ab3565b60209081029190910101516040517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b158015612ac157600080fd5b505af1158015612ad5573d6000803e3d6000fd5b5050506001600160a01b0385166000908152601460209081526040808320546015909252822086519193509190869085908110612b1457612b14614ab3565b602002602001015181526020019081526020016000205442612b369190614950565b612b409190614913565b612b4a90836148fb565b9150612b708433858481518110612b6357612b63614ab3565b6020026020010151613c19565b600f546001600160a01b0385811660009081526016602052604081208651929093169291869085908110612ba657612ba6614ab3565b6020026020010151815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b031602179055508080612beb90614a1c565b91505061295d565b6001600160a01b038216600090815260146020526040812054612c585760405162461bcd60e51b815260206004820152601060248201527f4e6f74206f757220636f6e7472616374000000000000000000000000000000006044820152606401610b3e565b506001600160a01b03918216600090815260166020908152604080832093835292905220541690565b612c8961321c565b6001600160a01b0316612ca46005546001600160a01b031690565b6001600160a01b031614612cfa5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b3e565b6001600160a01b038116612d765760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610b3e565b6111f381613baf565b6001600160a01b038216600090815260146020526040902054612de45760405162461bcd60e51b815260206004820152601060248201527f4e6f74206f757220636f6e7472616374000000000000000000000000000000006044820152606401610b3e565b600b5481516001600160a01b0384166000908152601760209081526040808320338452909152902054612e1791906148fb565b1115612e8b5760405162461bcd60e51b815260206004820152603860248201527f4d7573742068617665206c657373207468616e203130206865726f657320667260448201527f6f6d206561636820636f6e7472616374207374616b65642100000000000000006064820152608401610b3e565b60005b815181101561122357336001600160a01b0316836001600160a01b0316636352211e848481518110612ec257612ec2614ab3565b60200260200101516040518263ffffffff1660e01b8152600401612ee891815260200190565b60206040518083038186803b158015612f0057600080fd5b505afa158015612f14573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f3891906142d9565b6001600160a01b0316148015612fa55750600f546001600160a01b0384811660009081526016602052604081208551929093169291859085908110612f7f57612f7f614ab3565b6020908102919091018101518252810191909152604001600020546001600160a01b0316145b612ff15760405162461bcd60e51b815260206004820152601e60248201527f546f6b656e206d757374206265207374616b61626c6520627920796f752100006044820152606401610b3e565b826001600160a01b03166323b872dd333085858151811061301457613014614ab3565b60209081029190910101516040517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b15801561308657600080fd5b505af115801561309a573d6000803e3d6000fd5b505050506001600160a01b0383166000908152601760209081526040808320338452909152902082518390839081106130d5576130d5614ab3565b6020908102919091018101518254600181018455600093845282842001556001600160a01b03851682526015905260408120835142929085908590811061311e5761311e614ab3565b60200260200101518152602001908152602001600020819055503360166000856001600160a01b03166001600160a01b03168152602001908152602001600020600084848151811061317257613172614ab3565b6020026020010151815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b0316021790555080806131b790614a1c565b915050612e8e565b60003330141561321657600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b031691506132199050565b50335b90565b60006132266131bf565b905090565b6001600160a01b0383166132a65760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610b3e565b6001600160a01b0382166133225760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152608401610b3e565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60006001600160a01b0386166134015760405162461bcd60e51b815260206004820152602560248201527f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360448201527f49474e45520000000000000000000000000000000000000000000000000000006064820152608401610b3e565b600161341461340f87613cb1565b613d2e565b6040805160008152602081018083529290925260ff851690820152606081018690526080810185905260a0016020604051602081039080840390855afa158015613462573d6000803e3d6000fd5b505050602060405103516001600160a01b0316866001600160a01b031614905095945050505050565b60006119a482846148fb565b6001600160a01b0383166135135760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610b3e565b6001600160a01b03821661358f5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610b3e565b6001600160a01b0383166000908152602081905260409020548181101561361e5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152608401610b3e565b6001600160a01b038085166000908152602081905260408082208585039055918516815290812080548492906136559084906148fb565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516136a191815260200190565b60405180910390a35b50505050565b6001600160a01b03821661372c5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610b3e565b6001600160a01b038216600090815260208190526040902054818110156137bb5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f63650000000000000000000000000000000000000000000000000000000000006064820152608401610b3e565b6001600160a01b03831660009081526020819052604081208383039055600280548492906137ea908490614950565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b60008281526006602090815260408083206001600160a01b038516845290915290205460ff1661159057613873816001600160a01b03166014613d79565b61387e836020613d79565b60405160200161388f9291906146c0565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529082905262461bcd60e51b8252610b3e916004016147ba565b60008281526006602090815260408083206001600160a01b038516845290915290205460ff166115905760008281526006602090815260408083206001600160a01b0385168452909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600117905561395061321c565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60005b6001600160a01b038316600090815260136020526040902054811015611223576001600160a01b03831660009081526013602052604090208054839190839081106139e4576139e4614ab3565b906000526020600020015414156139ff576139ff8382613fa2565b80613a0981614a1c565b915050613997565b6001600160a01b038216613a675760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610b3e565b8060026000828254613a7991906148fb565b90915550506001600160a01b03821660009081526020819052604081208054839290613aa69084906148fb565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b60008281526006602090815260408083206001600160a01b038516845290915290205460ff16156115905760008281526006602090815260408083206001600160a01b0385168452909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055613b6b61321c565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b600580546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60005b6001600160a01b038085166000908152601760209081526040808320938716835292905220548110156136aa576001600160a01b038085166000908152601760209081526040808320938716835292905220805483919083908110613c8357613c83614ab3565b90600052602060002001541415613c9f57613c9f8484836140c7565b80613ca981614a1c565b915050613c1c565b6000604051806080016040528060438152602001614b276043913980516020918201208351848301516040808701518051908601209051613d11950193845260208401929092526001600160a01b03166040830152606082015260800190565b604051602081830303815290604052805190602001209050919050565b6000613d3960095490565b6040517f19010000000000000000000000000000000000000000000000000000000000006020820152602281019190915260428101839052606201613d11565b60606000613d88836002614913565b613d939060026148fb565b67ffffffffffffffff811115613dab57613dab614ae2565b6040519080825280601f01601f191660200182016040528015613dd5576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110613e0c57613e0c614ab3565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110613e6f57613e6f614ab3565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000613eab846002614913565b613eb69060016148fb565b90505b6001811115613f53577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110613ef757613ef7614ab3565b1a60f81b828281518110613f0d57613f0d614ab3565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c93613f4c81614993565b9050613eb9565b5083156119a45760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610b3e565b6001600160a01b0382166000908152601360205260409020548110613fc5575050565b805b6001600160a01b038316600090815260136020526040902054613fec90600190614950565b811015614085576001600160a01b03831660009081526013602052604090206140168260016148fb565b8154811061402657614026614ab3565b906000526020600020015460136000856001600160a01b03166001600160a01b03168152602001908152602001600020828154811061406757614067614ab3565b6000918252602090912001558061407d81614a1c565b915050613fc7565b506001600160a01b03821660009081526013602052604090208054806140ad576140ad614a84565b600190038181906000526020600020016000905590555050565b6001600160a01b0380841660009081526017602090815260408083209386168352929052205481106140f857505050565b805b6001600160a01b0380851660009081526017602090815260408083209387168352929052205461412c90600190614950565b8110156141d0576001600160a01b0380851660009081526017602090815260408083209387168352929052206141638260016148fb565b8154811061417357614173614ab3565b60009182526020808320909101546001600160a01b0380881684526017835260408085209188168552925291208054839081106141b2576141b2614ab3565b600091825260209091200155806141c881614a1c565b9150506140fa565b506001600160a01b03808416600090815260176020908152604080832093861683529290522080548061420557614205614a84565b60019003818190600052602060002001600090559055505050565b600082601f83011261423157600080fd5b8135602067ffffffffffffffff82111561424d5761424d614ae2565b8160051b61425c8282016148ac565b83815282810190868401838801850189101561427757600080fd5b600093505b8584101561429a57803583526001939093019291840191840161427c565b50979650505050505050565b803560ff811681146142b757600080fd5b919050565b6000602082840312156142ce57600080fd5b81356119a481614b11565b6000602082840312156142eb57600080fd5b81516119a481614b11565b6000806040838503121561430957600080fd5b823561431481614b11565b9150602083013561432481614b11565b809150509250929050565b60008060006060848603121561434457600080fd5b833561434f81614b11565b9250602084013561435f81614b11565b929592945050506040919091013590565b6000806040838503121561438357600080fd5b823561438e81614b11565b9150602083013567ffffffffffffffff8111156143aa57600080fd5b6143b685828601614220565b9150509250929050565b6000806000604084860312156143d557600080fd5b83356143e081614b11565b9250602084013567ffffffffffffffff808211156143fd57600080fd5b818601915086601f83011261441157600080fd5b81358181111561442057600080fd5b87602082850101111561443257600080fd5b6020830194508093505050509250925092565b600080600080600060a0868803121561445d57600080fd5b853561446881614b11565b945060208681013567ffffffffffffffff8082111561448657600080fd5b818901915089601f83011261449a57600080fd5b8135818111156144ac576144ac614ae2565b6144dc847fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f840116016148ac565b91508082528a848285010111156144f257600080fd5b80848401858401376000848284010152508096505050506040860135925060608601359150614523608087016142a6565b90509295509295909350565b6000806040838503121561454257600080fd5b823561454d81614b11565b946020939093013593505050565b60006020828403121561456d57600080fd5b813567ffffffffffffffff81111561458457600080fd5b6110f484828501614220565b6000602082840312156145a257600080fd5b5035919050565b600080604083850312156145bc57600080fd5b82359150602083013561432481614b11565b6000602082840312156145e057600080fd5b81357fffffffff00000000000000000000000000000000000000000000000000000000811681146119a457600080fd5b60008151808452614628816020860160208601614967565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b6000825161466c818460208701614967565b9190910192915050565b60008351614688818460208801614967565b60609390931b7fffffffffffffffffffffffffffffffffffffffff000000000000000000000000169190920190815260140192915050565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516146f8816017850160208801614967565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351614735816028840160208801614967565b01602801949350505050565b60006001600160a01b0380861683528085166020840152506060604083015261476d6060830184614610565b95945050505050565b6020808252825182820181905260009190848201906040850190845b818110156147ae57835183529284019291840191600101614792565b50909695505050505050565b6020815260006119a46020830184614610565b600060208083526000845481600182811c9150808316806147ef57607f831692505b858310811415614826577f4e487b710000000000000000000000000000000000000000000000000000000085526022600452602485fd5b87860183815260200181801561484357600181146148725761489d565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0086168252878201965061489d565b60008b81526020902060005b868110156148975781548482015290850190890161487e565b83019750505b50949998505050505050505050565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff811182821017156148f3576148f3614ae2565b604052919050565b6000821982111561490e5761490e614a55565b500190565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561494b5761494b614a55565b500290565b60008282101561496257614962614a55565b500390565b60005b8381101561498257818101518382015260200161496a565b838111156136aa5750506000910152565b6000816149a2576149a2614a55565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b600181811c908216806149dc57607f821691505b60208210811415614a16577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614a4e57614a4e614a55565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6001600160a01b03811681146111f357600080fdfe4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e617475726529a2646970667358221220bf1e87e71089c921997ed4afdde69acd865fd5ecb2b16b6256df32351445828864736f6c63430008070033454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c6164647265737320766572696679696e67436f6e74726163742c627974657333322073616c7429
Deployed Bytecode
0x60806040526004361061036a5760003560e01c8063715018a6116101c6578063a9059cbb116100f7578063dfb2109c11610095578063eff31e9e1161006f578063eff31e9e14610a67578063f2fde38b14610a7d578063f6b4dfb414610a9d578063f9cf595b14610abd57600080fd5b8063dfb2109c146109f1578063e1deb18114610a11578063e3c998fe14610a3157600080fd5b8063d1058e59116100d1578063d1058e5914610956578063d547741f1461096b578063d9ffad471461098b578063dd62ed3e146109ab57600080fd5b8063a9059cbb14610900578063ba7e766214610920578063cf2c52cb1461093657600080fd5b806397af612611610164578063a217fddf1161013e578063a217fddf14610877578063a31e41261461088c578063a3b0b5a3146108ac578063a457c2d7146108e057600080fd5b806397af6126146108175780639a3aa766146108375780639b0e4b261461085757600080fd5b80638ab8fab3116101a05780638ab8fab3146107745780638da5cb5b1461078a57806391d14854146107bc57806395d89b411461080257600080fd5b8063715018a61461071f57806379cc67901461073457806385599eb81461075457600080fd5b80632f2ff15d116102a057806342966c681161023e578063515ec10511610218578063515ec1051461067c57806352eb77961461069c5780635e1f1e2a146106c957806370a08231146106e957600080fd5b806342966c6814610556578063477bddaa1461063c57806348aa19361461065c57600080fd5b806335322f371161027a57806335322f37146105c7578063362a3fad146105dc57806336568abe146105fc578063395093511461061c57600080fd5b80632f2ff15d14610578578063313ce567146105985780633408e470146105b457600080fd5b8063201d0fed1161030d57806323b872dd116102e757806323b872dd146104d0578063248a9ca3146104f05780632d0335ab146105205780632e1a7d4d1461055657600080fd5b8063201d0fed1461048557806320379ee5146104a55780632209d38c146104ba57600080fd5b8063095ea7b311610349578063095ea7b3146103f45780630c53c51c146104145780630f7e59701461042757806318160ddd1461047057600080fd5b80622281b21461036f57806301ffc9a7146103a257806306fdde03146103d2575b600080fd5b34801561037b57600080fd5b5061038f61038a3660046142f6565b610add565b6040519081526020015b60405180910390f35b3480156103ae57600080fd5b506103c26103bd3660046145ce565b610c55565b6040519015158152602001610399565b3480156103de57600080fd5b506103e7610cee565b60405161039991906147ba565b34801561040057600080fd5b506103c261040f36600461452f565b610d80565b6103e7610422366004614445565b610d9d565b34801561043357600080fd5b506103e76040518060400160405280600181526020017f310000000000000000000000000000000000000000000000000000000000000081525081565b34801561047c57600080fd5b5060025461038f565b34801561049157600080fd5b5061038f6104a036600461452f565b610fc1565b3480156104b157600080fd5b5060095461038f565b3480156104c657600080fd5b5061038f600d5481565b3480156104dc57600080fd5b506103c26104eb36600461432f565b6110fc565b3480156104fc57600080fd5b5061038f61050b366004614590565b60009081526006602052604090206001015490565b34801561052c57600080fd5b5061038f61053b3660046142bc565b6001600160a01b03166000908152600a602052604090205490565b34801561056257600080fd5b50610576610571366004614590565b6111e2565b005b34801561058457600080fd5b506105766105933660046145a9565b6111f6565b3480156105a457600080fd5b5060405160128152602001610399565b3480156105c057600080fd5b504661038f565b3480156105d357600080fd5b50610576611228565b3480156105e857600080fd5b5061038f6105f73660046142bc565b61141c565b34801561060857600080fd5b506105766106173660046145a9565b6114f8565b34801561062857600080fd5b506103c261063736600461452f565b611594565b34801561064857600080fd5b506105766106573660046142bc565b6115e8565b34801561066857600080fd5b5061057661067736600461455b565b611699565b34801561068857600080fd5b5061038f610697366004614590565b61190c565b3480156106a857600080fd5b506106bc6106b73660046142bc565b6119ab565b6040516103999190614776565b3480156106d557600080fd5b506105766106e4366004614590565b611a17565b3480156106f557600080fd5b5061038f6107043660046142bc565b6001600160a01b031660009081526020819052604090205490565b34801561072b57600080fd5b50610576611b12565b34801561074057600080fd5b5061057661074f36600461452f565b611b97565b34801561076057600080fd5b5061057661076f36600461452f565b611c3a565b34801561078057600080fd5b5061038f600b5481565b34801561079657600080fd5b506005546001600160a01b03165b6040516001600160a01b039091168152602001610399565b3480156107c857600080fd5b506103c26107d73660046145a9565b60009182526006602090815260408084206001600160a01b0393909316845291905290205460ff1690565b34801561080e57600080fd5b506103e7611ccf565b34801561082357600080fd5b5061057661083236600461452f565b611cde565b34801561084357600080fd5b50610576610852366004614590565b611e6d565b34801561086357600080fd5b506106bc6108723660046142f6565b611eeb565b34801561088357600080fd5b5061038f600081565b34801561089857600080fd5b506105766108a73660046142bc565b611f64565b3480156108b857600080fd5b5061038f7f8f4f2da22e8ac8f11e15f9fc141cddbb5deea8800186560abb6e68c5496619a981565b3480156108ec57600080fd5b506103c26108fb36600461452f565b61221b565b34801561090c57600080fd5b506103c261091b36600461452f565b6122ea565b34801561092c57600080fd5b5061038f600c5481565b34801561094257600080fd5b506105766109513660046143c0565b6122fe565b34801561096257600080fd5b5061057661236d565b34801561097757600080fd5b506105766109863660046145a9565b61254f565b34801561099757600080fd5b506105766109a636600461455b565b612577565b3480156109b757600080fd5b5061038f6109c63660046142f6565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3480156109fd57600080fd5b50610576610a0c366004614370565b6128f4565b348015610a1d57600080fd5b506107a4610a2c36600461452f565b612bf3565b348015610a3d57600080fd5b506107a4610a4c366004614590565b6000908152601260205260409020546001600160a01b031690565b348015610a7357600080fd5b5061038f600e5481565b348015610a8957600080fd5b50610576610a983660046142bc565b612c81565b348015610aa957600080fd5b506010546107a4906001600160a01b031681565b348015610ac957600080fd5b50610576610ad8366004614370565b612d7f565b6001600160a01b038216600090815260146020526040812054610b475760405162461bcd60e51b815260206004820152601060248201527f4e6f74206f757220636f6e74726163740000000000000000000000000000000060448201526064015b60405180910390fd5b6001600160a01b038084166000908152601760209081526040808320938616835292815282822080548451818402810184019095528085529293929091830182828015610bb357602002820191906000526020600020905b815481526020019060010190808311610b9f575b505050505090506000805b8251811015610c4c576001600160a01b03861660009081526014602090815260408083205460159092528220855191929091869085908110610c0257610c02614ab3565b602002602001015181526020019081526020016000205442610c249190614950565b610c2e9190614913565b610c3890836148fb565b915080610c4481614a1c565b915050610bbe565b50949350505050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b000000000000000000000000000000000000000000000000000000001480610ce857507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b606060038054610cfd906149c8565b80601f0160208091040260200160405190810160405280929190818152602001828054610d29906149c8565b8015610d765780601f10610d4b57610100808354040283529160200191610d76565b820191906000526020600020905b815481529060010190602001808311610d5957829003601f168201915b5050505050905090565b6000610d94610d8d61321c565b848461322b565b50600192915050565b60408051606081810183526001600160a01b0388166000818152600a602090815290859020548452830152918101869052610ddb8782878787613383565b610e4d5760405162461bcd60e51b815260206004820152602160248201527f5369676e657220616e64207369676e617475726520646f206e6f74206d61746360448201527f68000000000000000000000000000000000000000000000000000000000000006064820152608401610b3e565b6001600160a01b0387166000908152600a6020526040902054610e7190600161348b565b6001600160a01b0388166000908152600a60205260409081902091909155517f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b90610ec190899033908a90614741565b60405180910390a1600080306001600160a01b0316888a604051602001610ee9929190614676565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815290829052610f219161465a565b6000604051808303816000865af19150503d8060008114610f5e576040519150601f19603f3d011682016040523d82523d6000602084013e610f63565b606091505b509150915081610fb55760405162461bcd60e51b815260206004820152601c60248201527f46756e6374696f6e2063616c6c206e6f74207375636365737366756c000000006044820152606401610b3e565b98975050505050505050565b6001600160a01b0382166000908152601460205260408120546110265760405162461bcd60e51b815260206004820152601060248201527f4e6f74206f757220636f6e7472616374000000000000000000000000000000006044820152606401610b3e565b600f546001600160a01b0384811660009081526016602090815260408083208784529091529020548116911614156110a05760405162461bcd60e51b815260206004820152601460248201527f546f6b656e206973206e6f74207374616b6564210000000000000000000000006044820152606401610b3e565b6001600160a01b03831660009081526015602090815260408083208584529091528120546110ce9042614950565b6001600160a01b0385166000908152601460205260409020549091506110f49082614913565b949350505050565b6000611109848484613497565b6001600160a01b03841660009081526001602052604081208161112a61321c565b6001600160a01b03166001600160a01b03168152602001908152602001600020549050828110156111c35760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206160448201527f6c6c6f77616e63650000000000000000000000000000000000000000000000006064820152608401610b3e565b6111d7856111cf61321c565b85840361322b565b506001949350505050565b6111f36111ed61321c565b826136b0565b50565b6000828152600660205260409020600101546112198161121461321c565b613835565b61122383836138d3565b505050565b336000908152601360205260409020546112a95760405162461bcd60e51b8152602060048201526024808201527f4d7573742068617665206174206c65617374206f6e6520746f6b656e2073746160448201527f6b656421000000000000000000000000000000000000000000000000000000006064820152608401610b3e565b336000908152601360205260408120545b8015611411573360009081526013602052604081206112da600184614950565b815481106112ea576112ea614ab3565b6000918252602090912001546010546040517f23b872dd000000000000000000000000000000000000000000000000000000008152306004820152336024820152604481018390529192506001600160a01b0316906323b872dd90606401600060405180830381600087803b15801561136257600080fd5b505af1158015611376573d6000803e3d6000fd5b5050600c54600084815260116020526040902054909250611398915042614950565b6113a29190614913565b6113ac90846148fb565b92506113b83382613994565b600f5460009182526012602052604090912080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b039092169190911790558061140981614993565b9150506112ba565b506111f33382613a11565b6001600160a01b03811660009081526013602090815260408083208054825181850281018501909352808352849383018282801561147957602002820191906000526020600020905b815481526020019060010190808311611465575b505050505090506000805b82518110156114f057600c54601160008584815181106114a6576114a6614ab3565b6020026020010151815260200190815260200160002054426114c89190614950565b6114d29190614913565b6114dc90836148fb565b9150806114e881614a1c565b915050611484565b509392505050565b61150061321c565b6001600160a01b0316816001600160a01b0316146115865760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608401610b3e565b6115908282613af0565b5050565b6000610d946115a161321c565b8484600160006115af61321c565b6001600160a01b03908116825260208083019390935260409182016000908120918b16815292529020546115e391906148fb565b61322b565b6115f061321c565b6001600160a01b031661160b6005546001600160a01b031690565b6001600160a01b0316146116615760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b3e565b601080546001600160a01b0383167fffffffffffffffffffffffff000000000000000000000000000000000000000090911617905550565b6000805b825181101561190157336001600160a01b0316601260008584815181106116c6576116c6614ab3565b6020908102919091018101518252810191909152604001600020546001600160a01b03161461175d5760405162461bcd60e51b815260206004820152602760248201527f4d6573736167652053656e64657220776173206e6f74206f726967696e616c2060448201527f7374616b657221000000000000000000000000000000000000000000000000006064820152608401610b3e565b60105483516001600160a01b03909116906323b872dd903090339087908690811061178a5761178a614ab3565b60209081029190910101516040517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b1580156117fc57600080fd5b505af1158015611810573d6000803e3d6000fd5b50505050600c546011600085848151811061182d5761182d614ab3565b60200260200101518152602001908152602001600020544261184f9190614950565b6118599190614913565b61186390836148fb565b91506118883384838151811061187b5761187b614ab3565b6020026020010151613994565b600f60009054906101000a90046001600160a01b0316601260008584815181106118b4576118b4614ab3565b6020026020010151815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b0316021790555080806118f990614a1c565b91505061169d565b506115903382613a11565b600f5460008281526012602052604081205490916001600160a01b039182169116141561197b5760405162461bcd60e51b815260206004820152601460248201527f546f6b656e206973206e6f74207374616b6564210000000000000000000000006044820152606401610b3e565b6000828152601160205260408120546119949042614950565b9050600c54816119a49190614913565b9392505050565b6001600160a01b038116600090815260136020908152604091829020805483518184028101840190945280845260609392830182828015611a0b57602002820191906000526020600020905b8154815260200190600101908083116119f7575b50505050509050919050565b6000818152601260205260409020546001600160a01b03163314611a7d5760405162461bcd60e51b815260206004820152601e60248201527f546f6b656e206973206e6f7420636c61696d61626c6520627920796f752100006044820152606401610b3e565b600d544210611ace5760405162461bcd60e51b815260206004820152601560248201527f436c61696d20706572696f64206973206f7665722100000000000000000000006044820152606401610b3e565b600c54600082815260116020526040902054611aff913391611af09042614950565b611afa9190614913565b613a11565b6000908152601160205260409020429055565b611b1a61321c565b6001600160a01b0316611b356005546001600160a01b031690565b6001600160a01b031614611b8b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b3e565b611b956000613baf565b565b6000611ba5836109c661321c565b905081811015611c1c5760405162461bcd60e51b8152602060048201526024808201527f45524332303a206275726e20616d6f756e74206578636565647320616c6c6f7760448201527f616e6365000000000000000000000000000000000000000000000000000000006064820152608401610b3e565b611c3083611c2861321c565b84840361322b565b61122383836136b0565b611c4261321c565b6001600160a01b0316611c5d6005546001600160a01b031690565b6001600160a01b031614611cb35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b3e565b6001600160a01b03909116600090815260146020526040902055565b606060048054610cfd906149c8565b6001600160a01b038216600090815260146020526040902054611d435760405162461bcd60e51b815260206004820152601060248201527f4e6f74206f757220636f6e7472616374000000000000000000000000000000006044820152606401610b3e565b6001600160a01b038281166000908152601660209081526040808320858452909152902054163314611db75760405162461bcd60e51b815260206004820152601e60248201527f546f6b656e206973206e6f7420636c61696d61626c6520627920796f752100006044820152606401610b3e565b600d544210611e085760405162461bcd60e51b815260206004820152601560248201527f436c61696d20706572696f64206973206f7665722100000000000000000000006044820152606401610b3e565b6001600160a01b0382166000908152601460209081526040808320546015835281842085855290925290912054611e45913391611af09042614950565b6001600160a01b03909116600090815260156020908152604080832093835292905220429055565b611e7561321c565b6001600160a01b0316611e906005546001600160a01b031690565b6001600160a01b031614611ee65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b3e565b600d55565b6001600160a01b038083166000908152601760209081526040808320938516835292815290829020805483518184028101840190945280845260609392830182828015611f5757602002820191906000526020600020905b815481526020019060010190808311611f43575b5050505050905092915050565b6001600160a01b038116600090815260146020526040902054611fc95760405162461bcd60e51b815260206004820152601060248201527f4e6f74206f757220636f6e7472616374000000000000000000000000000000006044820152606401610b3e565b600d54421061201a5760405162461bcd60e51b815260206004820152601560248201527f436c61696d20706572696f64206973206f7665722100000000000000000000006044820152606401610b3e565b6001600160a01b038116600090815260176020908152604080832033845282528083208054825181850281018501909352808352919290919083018282801561208257602002820191906000526020600020905b81548152602001906001019080831161206e575b505050505090506000805b8251811015612210576001600160a01b038416600090815260166020526040812084513392908690859081106120c5576120c5614ab3565b6020908102919091018101518252810191909152604001600020546001600160a01b0316146121365760405162461bcd60e51b815260206004820152601e60248201527f546f6b656e206973206e6f7420636c61696d61626c6520627920796f752100006044820152606401610b3e565b6001600160a01b0384166000908152601460209081526040808320546015909252822085519192909186908590811061217157612171614ab3565b6020026020010151815260200190815260200160002054426121939190614950565b61219d9190614913565b6121a790836148fb565b91504260156000866001600160a01b03166001600160a01b0316815260200190815260200160002060008584815181106121e3576121e3614ab3565b6020026020010151815260200190815260200160002081905550808061220890614a1c565b91505061208d565b506112233382613a11565b6000806001600061222a61321c565b6001600160a01b03908116825260208083019390935260409182016000908120918816815292529020549050828110156122cc5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152608401610b3e565b6122e06122d761321c565b8585840361322b565b5060019392505050565b6000610d946122f761321c565b8484613497565b7f8f4f2da22e8ac8f11e15f9fc141cddbb5deea8800186560abb6e68c5496619a961232b816107d761321c565b60079061234b5760405162461bcd60e51b8152600401610b3e91906147cd565b50600061235a83850185614590565b90506123668582613a11565b5050505050565b600d5442106123be5760405162461bcd60e51b815260206004820152601560248201527f436c61696d20706572696f64206973206f7665722100000000000000000000006044820152606401610b3e565b3360009081526013602090815260408083208054825181850281018501909352808352919290919083018282801561241557602002820191906000526020600020905b815481526020019060010190808311612401575b505050505090506000805b825181101561190157336001600160a01b03166012600085848151811061244957612449614ab3565b6020908102919091018101518252810191909152604001600020546001600160a01b0316146124ba5760405162461bcd60e51b815260206004820152601e60248201527f546f6b656e206973206e6f7420636c61696d61626c6520627920796f752100006044820152606401610b3e565b600c54601160008584815181106124d3576124d3614ab3565b6020026020010151815260200190815260200160002054426124f59190614950565b6124ff9190614913565b61250990836148fb565b9150426011600085848151811061252257612522614ab3565b6020026020010151815260200190815260200160002081905550808061254790614a1c565b915050612420565b60008281526006602052604090206001015461256d8161121461321c565b6112238383613af0565b600b5481513360009081526013602052604090205461259691906148fb565b111561260a5760405162461bcd60e51b815260206004820152602560248201527f4d7573742068617665206c657373207468616e203130206865726f657320737460448201527f616b6564210000000000000000000000000000000000000000000000000000006064820152608401610b3e565b60005b815181101561159057601054825133916001600160a01b031690636352211e9085908590811061263f5761263f614ab3565b60200260200101516040518263ffffffff1660e01b815260040161266591815260200190565b60206040518083038186803b15801561267d57600080fd5b505afa158015612691573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126b591906142d9565b6001600160a01b03161480156127155750600f5482516001600160a01b03909116906012906000908590859081106126ef576126ef614ab3565b6020908102919091018101518252810191909152604001600020546001600160a01b0316145b6127615760405162461bcd60e51b815260206004820152601e60248201527f546f6b656e206d757374206265207374616b61626c6520627920796f752100006044820152606401610b3e565b60105482516001600160a01b03909116906323b872dd903390309086908690811061278e5761278e614ab3565b60209081029190910101516040517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b15801561280057600080fd5b505af1158015612814573d6000803e3d6000fd5b505033600090815260136020526040902084519092508491508390811061283d5761283d614ab3565b60209081029190910181015182546001810184556000938452918320909101558251429160119185908590811061287657612876614ab3565b602002602001015181526020019081526020016000208190555033601260008484815181106128a7576128a7614ab3565b6020026020010151815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b0316021790555080806128ec90614a1c565b91505061260d565b6001600160a01b0382166000908152601460205260409020546129595760405162461bcd60e51b815260206004820152601060248201527f4e6f74206f757220636f6e7472616374000000000000000000000000000000006044820152606401610b3e565b6000805b8251811015612210576001600160a01b0384166000908152601660205260408120845133929086908590811061299557612995614ab3565b6020908102919091018101518252810191909152604001600020546001600160a01b031614612a2c5760405162461bcd60e51b815260206004820152602760248201527f4d6573736167652053656e64657220776173206e6f74206f726967696e616c2060448201527f7374616b657221000000000000000000000000000000000000000000000000006064820152608401610b3e565b836001600160a01b03166323b872dd3033868581518110612a4f57612a4f614ab3565b60209081029190910101516040517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b158015612ac157600080fd5b505af1158015612ad5573d6000803e3d6000fd5b5050506001600160a01b0385166000908152601460209081526040808320546015909252822086519193509190869085908110612b1457612b14614ab3565b602002602001015181526020019081526020016000205442612b369190614950565b612b409190614913565b612b4a90836148fb565b9150612b708433858481518110612b6357612b63614ab3565b6020026020010151613c19565b600f546001600160a01b0385811660009081526016602052604081208651929093169291869085908110612ba657612ba6614ab3565b6020026020010151815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b031602179055508080612beb90614a1c565b91505061295d565b6001600160a01b038216600090815260146020526040812054612c585760405162461bcd60e51b815260206004820152601060248201527f4e6f74206f757220636f6e7472616374000000000000000000000000000000006044820152606401610b3e565b506001600160a01b03918216600090815260166020908152604080832093835292905220541690565b612c8961321c565b6001600160a01b0316612ca46005546001600160a01b031690565b6001600160a01b031614612cfa5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b3e565b6001600160a01b038116612d765760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610b3e565b6111f381613baf565b6001600160a01b038216600090815260146020526040902054612de45760405162461bcd60e51b815260206004820152601060248201527f4e6f74206f757220636f6e7472616374000000000000000000000000000000006044820152606401610b3e565b600b5481516001600160a01b0384166000908152601760209081526040808320338452909152902054612e1791906148fb565b1115612e8b5760405162461bcd60e51b815260206004820152603860248201527f4d7573742068617665206c657373207468616e203130206865726f657320667260448201527f6f6d206561636820636f6e7472616374207374616b65642100000000000000006064820152608401610b3e565b60005b815181101561122357336001600160a01b0316836001600160a01b0316636352211e848481518110612ec257612ec2614ab3565b60200260200101516040518263ffffffff1660e01b8152600401612ee891815260200190565b60206040518083038186803b158015612f0057600080fd5b505afa158015612f14573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f3891906142d9565b6001600160a01b0316148015612fa55750600f546001600160a01b0384811660009081526016602052604081208551929093169291859085908110612f7f57612f7f614ab3565b6020908102919091018101518252810191909152604001600020546001600160a01b0316145b612ff15760405162461bcd60e51b815260206004820152601e60248201527f546f6b656e206d757374206265207374616b61626c6520627920796f752100006044820152606401610b3e565b826001600160a01b03166323b872dd333085858151811061301457613014614ab3565b60209081029190910101516040517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b15801561308657600080fd5b505af115801561309a573d6000803e3d6000fd5b505050506001600160a01b0383166000908152601760209081526040808320338452909152902082518390839081106130d5576130d5614ab3565b6020908102919091018101518254600181018455600093845282842001556001600160a01b03851682526015905260408120835142929085908590811061311e5761311e614ab3565b60200260200101518152602001908152602001600020819055503360166000856001600160a01b03166001600160a01b03168152602001908152602001600020600084848151811061317257613172614ab3565b6020026020010151815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b0316021790555080806131b790614a1c565b915050612e8e565b60003330141561321657600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b031691506132199050565b50335b90565b60006132266131bf565b905090565b6001600160a01b0383166132a65760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610b3e565b6001600160a01b0382166133225760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152608401610b3e565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60006001600160a01b0386166134015760405162461bcd60e51b815260206004820152602560248201527f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360448201527f49474e45520000000000000000000000000000000000000000000000000000006064820152608401610b3e565b600161341461340f87613cb1565b613d2e565b6040805160008152602081018083529290925260ff851690820152606081018690526080810185905260a0016020604051602081039080840390855afa158015613462573d6000803e3d6000fd5b505050602060405103516001600160a01b0316866001600160a01b031614905095945050505050565b60006119a482846148fb565b6001600160a01b0383166135135760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610b3e565b6001600160a01b03821661358f5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610b3e565b6001600160a01b0383166000908152602081905260409020548181101561361e5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152608401610b3e565b6001600160a01b038085166000908152602081905260408082208585039055918516815290812080548492906136559084906148fb565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516136a191815260200190565b60405180910390a35b50505050565b6001600160a01b03821661372c5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610b3e565b6001600160a01b038216600090815260208190526040902054818110156137bb5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f63650000000000000000000000000000000000000000000000000000000000006064820152608401610b3e565b6001600160a01b03831660009081526020819052604081208383039055600280548492906137ea908490614950565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b60008281526006602090815260408083206001600160a01b038516845290915290205460ff1661159057613873816001600160a01b03166014613d79565b61387e836020613d79565b60405160200161388f9291906146c0565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529082905262461bcd60e51b8252610b3e916004016147ba565b60008281526006602090815260408083206001600160a01b038516845290915290205460ff166115905760008281526006602090815260408083206001600160a01b0385168452909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600117905561395061321c565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60005b6001600160a01b038316600090815260136020526040902054811015611223576001600160a01b03831660009081526013602052604090208054839190839081106139e4576139e4614ab3565b906000526020600020015414156139ff576139ff8382613fa2565b80613a0981614a1c565b915050613997565b6001600160a01b038216613a675760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610b3e565b8060026000828254613a7991906148fb565b90915550506001600160a01b03821660009081526020819052604081208054839290613aa69084906148fb565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b60008281526006602090815260408083206001600160a01b038516845290915290205460ff16156115905760008281526006602090815260408083206001600160a01b0385168452909152902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055613b6b61321c565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b600580546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60005b6001600160a01b038085166000908152601760209081526040808320938716835292905220548110156136aa576001600160a01b038085166000908152601760209081526040808320938716835292905220805483919083908110613c8357613c83614ab3565b90600052602060002001541415613c9f57613c9f8484836140c7565b80613ca981614a1c565b915050613c1c565b6000604051806080016040528060438152602001614b276043913980516020918201208351848301516040808701518051908601209051613d11950193845260208401929092526001600160a01b03166040830152606082015260800190565b604051602081830303815290604052805190602001209050919050565b6000613d3960095490565b6040517f19010000000000000000000000000000000000000000000000000000000000006020820152602281019190915260428101839052606201613d11565b60606000613d88836002614913565b613d939060026148fb565b67ffffffffffffffff811115613dab57613dab614ae2565b6040519080825280601f01601f191660200182016040528015613dd5576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110613e0c57613e0c614ab3565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110613e6f57613e6f614ab3565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000613eab846002614913565b613eb69060016148fb565b90505b6001811115613f53577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110613ef757613ef7614ab3565b1a60f81b828281518110613f0d57613f0d614ab3565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060049490941c93613f4c81614993565b9050613eb9565b5083156119a45760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610b3e565b6001600160a01b0382166000908152601360205260409020548110613fc5575050565b805b6001600160a01b038316600090815260136020526040902054613fec90600190614950565b811015614085576001600160a01b03831660009081526013602052604090206140168260016148fb565b8154811061402657614026614ab3565b906000526020600020015460136000856001600160a01b03166001600160a01b03168152602001908152602001600020828154811061406757614067614ab3565b6000918252602090912001558061407d81614a1c565b915050613fc7565b506001600160a01b03821660009081526013602052604090208054806140ad576140ad614a84565b600190038181906000526020600020016000905590555050565b6001600160a01b0380841660009081526017602090815260408083209386168352929052205481106140f857505050565b805b6001600160a01b0380851660009081526017602090815260408083209387168352929052205461412c90600190614950565b8110156141d0576001600160a01b0380851660009081526017602090815260408083209387168352929052206141638260016148fb565b8154811061417357614173614ab3565b60009182526020808320909101546001600160a01b0380881684526017835260408085209188168552925291208054839081106141b2576141b2614ab3565b600091825260209091200155806141c881614a1c565b9150506140fa565b506001600160a01b03808416600090815260176020908152604080832093861683529290522080548061420557614205614a84565b60019003818190600052602060002001600090559055505050565b600082601f83011261423157600080fd5b8135602067ffffffffffffffff82111561424d5761424d614ae2565b8160051b61425c8282016148ac565b83815282810190868401838801850189101561427757600080fd5b600093505b8584101561429a57803583526001939093019291840191840161427c565b50979650505050505050565b803560ff811681146142b757600080fd5b919050565b6000602082840312156142ce57600080fd5b81356119a481614b11565b6000602082840312156142eb57600080fd5b81516119a481614b11565b6000806040838503121561430957600080fd5b823561431481614b11565b9150602083013561432481614b11565b809150509250929050565b60008060006060848603121561434457600080fd5b833561434f81614b11565b9250602084013561435f81614b11565b929592945050506040919091013590565b6000806040838503121561438357600080fd5b823561438e81614b11565b9150602083013567ffffffffffffffff8111156143aa57600080fd5b6143b685828601614220565b9150509250929050565b6000806000604084860312156143d557600080fd5b83356143e081614b11565b9250602084013567ffffffffffffffff808211156143fd57600080fd5b818601915086601f83011261441157600080fd5b81358181111561442057600080fd5b87602082850101111561443257600080fd5b6020830194508093505050509250925092565b600080600080600060a0868803121561445d57600080fd5b853561446881614b11565b945060208681013567ffffffffffffffff8082111561448657600080fd5b818901915089601f83011261449a57600080fd5b8135818111156144ac576144ac614ae2565b6144dc847fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f840116016148ac565b91508082528a848285010111156144f257600080fd5b80848401858401376000848284010152508096505050506040860135925060608601359150614523608087016142a6565b90509295509295909350565b6000806040838503121561454257600080fd5b823561454d81614b11565b946020939093013593505050565b60006020828403121561456d57600080fd5b813567ffffffffffffffff81111561458457600080fd5b6110f484828501614220565b6000602082840312156145a257600080fd5b5035919050565b600080604083850312156145bc57600080fd5b82359150602083013561432481614b11565b6000602082840312156145e057600080fd5b81357fffffffff00000000000000000000000000000000000000000000000000000000811681146119a457600080fd5b60008151808452614628816020860160208601614967565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b6000825161466c818460208701614967565b9190910192915050565b60008351614688818460208801614967565b60609390931b7fffffffffffffffffffffffffffffffffffffffff000000000000000000000000169190920190815260140192915050565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516146f8816017850160208801614967565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351614735816028840160208801614967565b01602801949350505050565b60006001600160a01b0380861683528085166020840152506060604083015261476d6060830184614610565b95945050505050565b6020808252825182820181905260009190848201906040850190845b818110156147ae57835183529284019291840191600101614792565b50909695505050505050565b6020815260006119a46020830184614610565b600060208083526000845481600182811c9150808316806147ef57607f831692505b858310811415614826577f4e487b710000000000000000000000000000000000000000000000000000000085526022600452602485fd5b87860183815260200181801561484357600181146148725761489d565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0086168252878201965061489d565b60008b81526020902060005b868110156148975781548482015290850190890161487e565b83019750505b50949998505050505050505050565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff811182821017156148f3576148f3614ae2565b604052919050565b6000821982111561490e5761490e614a55565b500190565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561494b5761494b614a55565b500290565b60008282101561496257614962614a55565b500390565b60005b8381101561498257818101518382015260200161496a565b838111156136aa5750506000910152565b6000816149a2576149a2614a55565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b600181811c908216806149dc57607f821691505b60208210811415614a16577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614a4e57614a4e614a55565b5060010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6001600160a01b03811681146111f357600080fdfe4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e617475726529a2646970667358221220bf1e87e71089c921997ed4afdde69acd865fd5ecb2b16b6256df32351445828864736f6c63430008070033
Loading...
Loading
OVERVIEW
Matic Mike is a fully on-chain generated NFT game with its accompanied ERC20 token - $HGH. The unique feature of $HGH is its ability to inject into the ERC721 token to modify traits and graphics, burning $HGH in the process. $HGH is also used for all utility and minting.Loading...
Loading
Multichain Portfolio | 34 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.