ERC-721
Overview
Max Total Supply
1,832 RESIDENCE
Holders
394
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
2 RESIDENCELoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
MetaverseTicket
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "./Base64.sol"; interface LootInterface { function ownerOf(uint256 tokenId) external view returns (address owner); function tokenURI(address walletAddress) external view returns (string memory tokenURI); function balanceOf(address owner) external view returns (uint256 balance); } contract MetaverseTicket is ERC721Enumerable, ReentrancyGuard, Ownable, Pausable { using SafeMath for uint256; using Counters for Counters.Counter; uint256 public constant MAX_CYBERPUNK_ITEMS = 2000; uint256 public constant MAX_PARTNER_ITEMS = 800; uint256 public constant MAX_PUBLIC_ITEMS = 5500; uint256 public constant MAX_TOTAL_ITEMS = MAX_CYBERPUNK_ITEMS + MAX_PARTNER_ITEMS + MAX_PUBLIC_ITEMS; uint256 public constant MINT_LIMIT = 25; uint256 public constant PRICE = 50000000000000000; Counters.Counter private _cyberpunkItemsTracker; Counters.Counter private _partnerItemsTracker; Counters.Counter private _allItemsTracker; //Loot Contract address public lootAddress; LootInterface lootContract; //Cyberpunk address public cyberLootAddress; LootInterface cyberLootContract; //xLoot address public xLootAddress; LootInterface xLootContract; //Dope wars address public dopeWarsAddress; LootInterface dopeWarsContract; //Gear for Punks address public gearAddress; LootInterface gearContract; //Characters for Punks address public charactersAddress; LootInterface charactersContract; //More Loot address public moreLootAddress; LootInterface moreLootContract; address public multisigAddress; string public baseTokenURI; mapping(address => uint256) cyberDiscountsRedeemed; mapping(address => uint256) partnerDiscountsRedeemed; event CreateTicket(uint256 indexed id); event ErrorNotHandled(bytes reason); constructor(address moreLoot, address loot, address cyber, address xLoot, address dopeWars, address gear, address characters, address multisig, string memory baseURI) ERC721("Loot (a Residence Card)", "RESIDENCE") { moreLootAddress = moreLoot; cyberLootAddress = cyber; lootAddress = loot; xLootAddress = xLoot; dopeWarsAddress = dopeWars; gearAddress = gear; charactersAddress = characters; moreLootContract = LootInterface(moreLootAddress); gearContract = LootInterface(gearAddress); charactersContract = LootInterface(charactersAddress); dopeWarsContract = LootInterface(dopeWarsAddress); xLootContract = LootInterface(xLootAddress); cyberLootContract = LootInterface(cyber); lootContract = LootInterface(loot); setMultisig(multisig); setBaseURI(baseURI); pause(true); } modifier saleIsOpen { if (_msgSender() != owner()) { require(!paused(), "Pausable: paused"); } _; } function random(string memory input) internal pure returns (uint256) { return uint256(keccak256(abi.encodePacked(input))); } function getPower(uint256 tokenId) public pure returns (uint256) { uint256 rand = random(string(abi.encodePacked(toString(tokenId)))); uint256 value = rand % 100; return value; } function tokenURI(uint256 tokenId) override public view returns (string memory) { return string(abi.encodePacked(_baseURI(), toString(tokenId), "?power=", toString(getPower(tokenId)))); } function _baseURI() internal view virtual override returns (string memory) { return baseTokenURI; } function setBaseURI(string memory baseURI) public onlyOwner { baseTokenURI = baseURI; } function setMultisig(address multisig) public onlyOwner { multisigAddress = multisig; } function _totalCyberpunkSupply() internal view returns (uint) { return _cyberpunkItemsTracker.current(); } function totalCyberpunkSupply() public view returns (uint256) { return _totalCyberpunkSupply(); } function _totalPartnerSupply() internal view returns (uint) { return _partnerItemsTracker.current(); } function totalPartnerSupply() public view returns (uint256) { return _totalPartnerSupply(); } function _totalItemsSupply() internal view returns (uint) { return _allItemsTracker.current(); } function totalItemsSupply() public view returns (uint256) { return _totalItemsSupply(); } function prices(uint256 _count) public view returns (uint256, uint256, uint256, uint256) { uint256 cyberLootBalance = cyberLootContract.balanceOf(_msgSender()) - cyberDiscountsRedeemed[_msgSender()]; uint256 totalPartnerBalance = moreLootContract.balanceOf(_msgSender()) + gearContract.balanceOf(_msgSender()) + charactersContract.balanceOf(_msgSender()) + dopeWarsContract.balanceOf(_msgSender()) + xLootContract.balanceOf(_msgSender()) + lootContract.balanceOf(_msgSender()) - partnerDiscountsRedeemed[_msgSender()]; uint256 numberOfAvailableCyberDiscounts = 0; uint256 numberOfAvailablePartnerDiscounts = 0; uint256 numberOfCyberDiscountsToRedeem = 0; uint256 numberOfPartnerDiscountsToRedeem = 0; if (cyberLootBalance > 0) { uint256 discountsLeft = MAX_CYBERPUNK_ITEMS - _cyberpunkItemsTracker.current(); if (discountsLeft >= cyberLootBalance) { numberOfAvailableCyberDiscounts = cyberLootBalance; } else { numberOfAvailableCyberDiscounts = discountsLeft; } if (numberOfAvailableCyberDiscounts >= _count) { numberOfCyberDiscountsToRedeem = _count; } else { numberOfCyberDiscountsToRedeem = numberOfAvailableCyberDiscounts; } } if (totalPartnerBalance > 0) { uint256 discountsLeft = MAX_PARTNER_ITEMS - _partnerItemsTracker.current(); if (discountsLeft >= totalPartnerBalance) { numberOfAvailablePartnerDiscounts = totalPartnerBalance; } else { numberOfAvailablePartnerDiscounts = discountsLeft; } if (numberOfAvailablePartnerDiscounts >= _count) { numberOfPartnerDiscountsToRedeem = _count; } else { numberOfPartnerDiscountsToRedeem = numberOfAvailablePartnerDiscounts; } } uint256 countToPay = _count; // prevent negative numbers if (countToPay >= numberOfCyberDiscountsToRedeem) { countToPay -= numberOfCyberDiscountsToRedeem; } if (countToPay >= numberOfPartnerDiscountsToRedeem) { countToPay -= numberOfPartnerDiscountsToRedeem; } uint256 priceToPay; if (countToPay > 0) { priceToPay = (PRICE).mul(countToPay); } else { priceToPay = 0; } return (numberOfCyberDiscountsToRedeem, numberOfPartnerDiscountsToRedeem, countToPay, priceToPay); } function mint(uint256 _count) public payable nonReentrant saleIsOpen { uint total = _totalItemsSupply(); require(total + _count <= MAX_TOTAL_ITEMS, "Max sale limit reached"); require(total <= MAX_TOTAL_ITEMS, "Sale end"); require(_count <= MINT_LIMIT, "Exceeds single transaction mint limit"); (uint256 numberOfCyberDiscountsToRedeem, uint256 numberOfPartnerDiscountsToRedeem, uint256 countToPay, uint256 priceToPay) = prices(_count); if (_msgSender() != owner()) { require(msg.value >= priceToPay, "Value below required price"); } for (uint256 i = 0; i < numberOfCyberDiscountsToRedeem; i++) { _cyberpunkItemsTracker.increment(); _mintAnElement(); } cyberDiscountsRedeemed[_msgSender()] += numberOfCyberDiscountsToRedeem; for (uint256 i = 0; i < numberOfPartnerDiscountsToRedeem; i++) { _partnerItemsTracker.increment(); _mintAnElement(); } partnerDiscountsRedeemed[_msgSender()] += numberOfPartnerDiscountsToRedeem; for (uint256 i = 0; i < countToPay; i++) { _mintAnElement(); } } function _mintAnElement() private { uint id = _totalItemsSupply(); _allItemsTracker.increment(); _safeMint(_msgSender(), id); emit CreateTicket(id); } function pause(bool val) public onlyOwner { if (val == true) { _pause(); return; } _unpause(); } function withdrawAll() public payable onlyOwner { uint256 balance = address(this).balance; require(balance > 0); _widthdraw(multisigAddress, balance); } function _widthdraw(address _address, uint256 _amount) private { (bool success, ) = _address.call{value: _amount}(""); require(success, "Transfer failed."); } function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT license // 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); } function contains (string memory what, string memory where) internal pure returns (bool) { bytes memory whatBytes = bytes (what); bytes memory whereBytes = bytes (where); bool found = false; for (uint i = 0; i < whereBytes.length - whatBytes.length; i++) { bool flag = true; for (uint j = 0; j < whatBytes.length; j++) if (whereBytes [i + j] != whatBytes [j]) { flag = false; break; } if (flag) { found = true; break; } } return found; } }
/// [MIT License] /// @title Base64 /// @notice Provides a function for encoding some bytes in base64 /// @author Brecht Devos <[email protected]> pragma solidity ^0.8.4; library Base64 { bytes internal constant TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; /// @notice Encodes some bytes to the base64 representation function encode(bytes memory data) internal pure returns (string memory) { uint256 len = data.length; if (len == 0) return ""; // multiply by 4/3 rounded up uint256 encodedLen = 4 * ((len + 2) / 3); // Add some extra buffer at the end bytes memory result = new bytes(encodedLen + 32); bytes memory table = TABLE; assembly { let tablePtr := add(table, 1) let resultPtr := add(result, 32) for { let i := 0 } lt(i, len) { } { i := add(i, 3) let input := and(mload(add(data, i)), 0xffffff) let out := mload(add(tablePtr, and(shr(18, input), 0x3F))) out := shl(8, out) out := add(out, and(mload(add(tablePtr, and(shr(12, input), 0x3F))), 0xFF)) out := shl(8, out) out := add(out, and(mload(add(tablePtr, and(shr(6, input), 0x3F))), 0xFF)) out := shl(8, out) out := add(out, and(mload(add(tablePtr, and(input, 0x3F))), 0xFF)) out := shl(224, out) mstore(resultPtr, out) resultPtr := add(resultPtr, 4) } switch mod(len, 3) case 1 { mstore(sub(resultPtr, 2), shl(240, 0x3d3d)) } case 2 { mstore(sub(resultPtr, 1), shl(248, 0x3d)) } mstore(result, encodedLen) } return string(result); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; // 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; 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; 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 "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @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 "../../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 "./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 Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @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); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"moreLoot","type":"address"},{"internalType":"address","name":"loot","type":"address"},{"internalType":"address","name":"cyber","type":"address"},{"internalType":"address","name":"xLoot","type":"address"},{"internalType":"address","name":"dopeWars","type":"address"},{"internalType":"address","name":"gear","type":"address"},{"internalType":"address","name":"characters","type":"address"},{"internalType":"address","name":"multisig","type":"address"},{"internalType":"string","name":"baseURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"CreateTicket","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes","name":"reason","type":"bytes"}],"name":"ErrorNotHandled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"MAX_CYBERPUNK_ITEMS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PARTNER_ITEMS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PUBLIC_ITEMS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TOTAL_ITEMS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_LIMIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"charactersAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cyberLootAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dopeWarsAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"gearAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getPower","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lootAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"moreLootAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"multisigAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"val","type":"bool"}],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"prices","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"multisig","type":"address"}],"name":"setMultisig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalCyberpunkSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalItemsSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalPartnerSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"xLootAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040516200628038038062006280833981810160405281019062000037919062000b9d565b6040518060400160405280601781526020017f4c6f6f74202861205265736964656e63652043617264290000000000000000008152506040518060400160405280600981526020017f5245534944454e434500000000000000000000000000000000000000000000008152508160009080519060200190620000bb92919062000a58565b508060019080519060200190620000d492919062000a58565b5050506001600a81905550620000ff620000f36200059560201b60201c565b6200059d60201b60201c565b6000600b60146101000a81548160ff02191690831515021790555088601b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555086601160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555087600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555085601360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555084601560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555083601760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082601960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550601b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16601c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550601760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16601860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550601960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16601a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550601560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16601660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16601460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555086601260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555087601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555062000563826200066360201b60201c565b62000574816200073660201b60201c565b620005866001620007e160201b60201c565b50505050505050505062001002565b600033905090565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b620006736200059560201b60201c565b73ffffffffffffffffffffffffffffffffffffffff1662000699620008a860201b60201c565b73ffffffffffffffffffffffffffffffffffffffff1614620006f2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620006e99062000d82565b60405180910390fd5b80601d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b620007466200059560201b60201c565b73ffffffffffffffffffffffffffffffffffffffff166200076c620008a860201b60201c565b73ffffffffffffffffffffffffffffffffffffffff1614620007c5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620007bc9062000d82565b60405180910390fd5b80601e9080519060200190620007dd92919062000a58565b5050565b620007f16200059560201b60201c565b73ffffffffffffffffffffffffffffffffffffffff1662000817620008a860201b60201c565b73ffffffffffffffffffffffffffffffffffffffff161462000870576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620008679062000d82565b60405180910390fd5b60011515811515141562000894576200088e620008d260201b60201c565b620008a5565b620008a46200098a60201b60201c565b5b50565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b620008e262000a4160201b60201c565b1562000925576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200091c9062000d60565b60405180910390fd5b6001600b60146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258620009716200059560201b60201c565b60405162000980919062000d21565b60405180910390a1565b6200099a62000a4160201b60201c565b620009dc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620009d39062000d3e565b60405180910390fd5b6000600b60146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa62000a286200059560201b60201c565b60405162000a37919062000d21565b60405180910390a1565b6000600b60149054906101000a900460ff16905090565b82805462000a669062000e7e565b90600052602060002090601f01602090048101928262000a8a576000855562000ad6565b82601f1062000aa557805160ff191683800117855562000ad6565b8280016001018555821562000ad6579182015b8281111562000ad557825182559160200191906001019062000ab8565b5b50905062000ae5919062000ae9565b5090565b5b8082111562000b0457600081600090555060010162000aea565b5090565b600062000b1f62000b198462000dcd565b62000da4565b90508281526020810184848401111562000b3e5762000b3d62000f4d565b5b62000b4b84828562000e48565b509392505050565b60008151905062000b648162000fe8565b92915050565b600082601f83011262000b825762000b8162000f48565b5b815162000b9484826020860162000b08565b91505092915050565b60008060008060008060008060006101208a8c03121562000bc35762000bc262000f57565b5b600062000bd38c828d0162000b53565b995050602062000be68c828d0162000b53565b985050604062000bf98c828d0162000b53565b975050606062000c0c8c828d0162000b53565b965050608062000c1f8c828d0162000b53565b95505060a062000c328c828d0162000b53565b94505060c062000c458c828d0162000b53565b93505060e062000c588c828d0162000b53565b9250506101008a015167ffffffffffffffff81111562000c7d5762000c7c62000f52565b5b62000c8b8c828d0162000b6a565b9150509295985092959850929598565b62000ca68162000e14565b82525050565b600062000cbb60148362000e03565b915062000cc88262000f6d565b602082019050919050565b600062000ce260108362000e03565b915062000cef8262000f96565b602082019050919050565b600062000d0960208362000e03565b915062000d168262000fbf565b602082019050919050565b600060208201905062000d38600083018462000c9b565b92915050565b6000602082019050818103600083015262000d598162000cac565b9050919050565b6000602082019050818103600083015262000d7b8162000cd3565b9050919050565b6000602082019050818103600083015262000d9d8162000cfa565b9050919050565b600062000db062000dc3565b905062000dbe828262000eb4565b919050565b6000604051905090565b600067ffffffffffffffff82111562000deb5762000dea62000f19565b5b62000df68262000f5c565b9050602081019050919050565b600082825260208201905092915050565b600062000e218262000e28565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60005b8381101562000e6857808201518184015260208101905062000e4b565b8381111562000e78576000848401525b50505050565b6000600282049050600182168062000e9757607f821691505b6020821081141562000eae5762000ead62000eea565b5b50919050565b62000ebf8262000f5c565b810181811067ffffffffffffffff8211171562000ee15762000ee062000f19565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b62000ff38162000e14565b811462000fff57600080fd5b50565b61526e80620010126000396000f3fe6080604052600436106102725760003560e01c8063715018a61161014f578063bc31c1c1116100c1578063ef028cf01161007a578063ef028cf014610969578063f2fde38b14610994578063f3283fba146109bd578063f65b7ef9146109e6578063f7dc8d2814610a11578063fd0a70dd14610a3c57610272565b8063bc31c1c11461082e578063c87b56dd1461086e578063d29907e5146108ab578063d547cfb7146108d6578063d9e01bd414610901578063e985e9c51461092c57610272565b806395d89b411161011357806395d89b411461073f578063a0712d681461076a578063a22cb46514610786578063a2aeaf94146107af578063b07b9f8e146107da578063b88d4fde1461080557610272565b8063715018a61461069d5780637ae7ecfc146106b4578063853828b6146106df5780638d859f3e146106e95780638da5cb5b1461071457610272565b80631b0a5d4e116101e85780634f6ccce7116101ac5780634f6ccce7146105675780635462870d146105a457806355f804b3146105cf5780635c975abb146105f85780636352211e1461062357806370a082311461066057610272565b80631b0a5d4e1461048257806323b872dd146104ad5780632f745c59146104d657806342842e0e1461051357806343de76ec1461053c57610272565b8063081812fc1161023a578063081812fc14610370578063095ea7b3146103ad5780630e439326146103d657806312b1c1601461040157806314e1c4b11461042c57806318160ddd1461045757610272565b8063017fe8091461027757806301ffc9a7146102b457806302329a29146102f1578063027752401461031a57806306fdde0314610345575b600080fd5b34801561028357600080fd5b5061029e60048036038101906102999190613d78565b610a67565b6040516102ab919061467f565b60405180910390f35b3480156102c057600080fd5b506102db60048036038101906102d69190613cd5565b610ab7565b6040516102e89190614322565b60405180910390f35b3480156102fd57600080fd5b5061031860048036038101906103139190613ca8565b610b31565b005b34801561032657600080fd5b5061032f610bd3565b60405161033c919061467f565b60405180910390f35b34801561035157600080fd5b5061035a610bd8565b604051610367919061433d565b60405180910390f35b34801561037c57600080fd5b5061039760048036038101906103929190613d78565b610c6a565b6040516103a491906142bb565b60405180910390f35b3480156103b957600080fd5b506103d460048036038101906103cf9190613c68565b610cef565b005b3480156103e257600080fd5b506103eb610e07565b6040516103f891906142bb565b60405180910390f35b34801561040d57600080fd5b50610416610e2d565b60405161042391906142bb565b60405180910390f35b34801561043857600080fd5b50610441610e53565b60405161044e919061467f565b60405180910390f35b34801561046357600080fd5b5061046c610e62565b604051610479919061467f565b60405180910390f35b34801561048e57600080fd5b50610497610e6f565b6040516104a4919061467f565b60405180910390f35b3480156104b957600080fd5b506104d460048036038101906104cf9190613b52565b610e7e565b005b3480156104e257600080fd5b506104fd60048036038101906104f89190613c68565b610ede565b60405161050a919061467f565b60405180910390f35b34801561051f57600080fd5b5061053a60048036038101906105359190613b52565b610f83565b005b34801561054857600080fd5b50610551610fa3565b60405161055e91906142bb565b60405180910390f35b34801561057357600080fd5b5061058e60048036038101906105899190613d78565b610fc9565b60405161059b919061467f565b60405180910390f35b3480156105b057600080fd5b506105b961103a565b6040516105c691906142bb565b60405180910390f35b3480156105db57600080fd5b506105f660048036038101906105f19190613d2f565b611060565b005b34801561060457600080fd5b5061060d6110f6565b60405161061a9190614322565b60405180910390f35b34801561062f57600080fd5b5061064a60048036038101906106459190613d78565b61110d565b60405161065791906142bb565b60405180910390f35b34801561066c57600080fd5b5061068760048036038101906106829190613ae5565b6111bf565b604051610694919061467f565b60405180910390f35b3480156106a957600080fd5b506106b2611277565b005b3480156106c057600080fd5b506106c96112ff565b6040516106d6919061467f565b60405180910390f35b6106e7611305565b005b3480156106f557600080fd5b506106fe6113c2565b60405161070b919061467f565b60405180910390f35b34801561072057600080fd5b506107296113cd565b60405161073691906142bb565b60405180910390f35b34801561074b57600080fd5b506107546113f7565b604051610761919061433d565b60405180910390f35b610784600480360381019061077f9190613d78565b611489565b005b34801561079257600080fd5b506107ad60048036038101906107a89190613c28565b611869565b005b3480156107bb57600080fd5b506107c46119ea565b6040516107d1919061467f565b60405180910390f35b3480156107e657600080fd5b506107ef6119f0565b6040516107fc919061467f565b60405180910390f35b34801561081157600080fd5b5061082c60048036038101906108279190613ba5565b611a10565b005b34801561083a57600080fd5b5061085560048036038101906108509190613d78565b611a72565b604051610865949392919061469a565b60405180910390f35b34801561087a57600080fd5b5061089560048036038101906108909190613d78565b61214c565b6040516108a2919061433d565b60405180910390f35b3480156108b757600080fd5b506108c0612198565b6040516108cd91906142bb565b60405180910390f35b3480156108e257600080fd5b506108eb6121be565b6040516108f8919061433d565b60405180910390f35b34801561090d57600080fd5b5061091661224c565b604051610923919061467f565b60405180910390f35b34801561093857600080fd5b50610953600480360381019061094e9190613b12565b612252565b6040516109609190614322565b60405180910390f35b34801561097557600080fd5b5061097e6122e6565b60405161098b91906142bb565b60405180910390f35b3480156109a057600080fd5b506109bb60048036038101906109b69190613ae5565b61230c565b005b3480156109c957600080fd5b506109e460048036038101906109df9190613ae5565b612404565b005b3480156109f257600080fd5b506109fb6124c4565b604051610a0891906142bb565b60405180910390f35b348015610a1d57600080fd5b50610a266124ea565b604051610a3391906142bb565b60405180910390f35b348015610a4857600080fd5b50610a51612510565b604051610a5e919061467f565b60405180910390f35b600080610a9a610a768461251f565b604051602001610a869190614253565b604051602081830303815290604052612680565b90506000606482610aab9190614a2b565b90508092505050919050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610b2a5750610b29826126b3565b5b9050919050565b610b39612795565b73ffffffffffffffffffffffffffffffffffffffff16610b576113cd565b73ffffffffffffffffffffffffffffffffffffffff1614610bad576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ba49061455f565b60405180910390fd5b600115158115151415610bc757610bc261279d565b610bd0565b610bcf612840565b5b50565b601981565b606060008054610be79061497f565b80601f0160208091040260200160405190810160405280929190818152602001828054610c139061497f565b8015610c605780601f10610c3557610100808354040283529160200191610c60565b820191906000526020600020905b815481529060010190602001808311610c4357829003601f168201915b5050505050905090565b6000610c75826128e2565b610cb4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cab9061453f565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610cfa8261110d565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610d6b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d62906145bf565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610d8a612795565b73ffffffffffffffffffffffffffffffffffffffff161480610db95750610db881610db3612795565b612252565b5b610df8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610def9061447f565b60405180910390fd5b610e02838361294e565b505050565b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b601b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000610e5d612a07565b905090565b6000600880549050905090565b6000610e79612a18565b905090565b610e8f610e89612795565b82612a29565b610ece576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ec5906145ff565b60405180910390fd5b610ed9838383612b07565b505050565b6000610ee9836111bf565b8210610f2a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f219061437f565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610f9e83838360405180602001604052806000815250611a10565b505050565b601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000610fd3610e62565b8210611014576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100b9061463f565b60405180910390fd5b6008828154811061102857611027614b18565b5b90600052602060002001549050919050565b601d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611068612795565b73ffffffffffffffffffffffffffffffffffffffff166110866113cd565b73ffffffffffffffffffffffffffffffffffffffff16146110dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110d39061455f565b60405180910390fd5b80601e90805190602001906110f29291906138e4565b5050565b6000600b60149054906101000a900460ff16905090565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156111b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111ad906144bf565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611230576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112279061449f565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61127f612795565b73ffffffffffffffffffffffffffffffffffffffff1661129d6113cd565b73ffffffffffffffffffffffffffffffffffffffff16146112f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112ea9061455f565b60405180910390fd5b6112fd6000612d63565b565b6107d081565b61130d612795565b73ffffffffffffffffffffffffffffffffffffffff1661132b6113cd565b73ffffffffffffffffffffffffffffffffffffffff1614611381576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113789061455f565b60405180910390fd5b60004790506000811161139357600080fd5b6113bf601d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682612e29565b50565b66b1a2bc2ec5000081565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600180546114069061497f565b80601f01602080910402602001604051908101604052809291908181526020018280546114329061497f565b801561147f5780601f106114545761010080835404028352916020019161147f565b820191906000526020600020905b81548152906001019060200180831161146257829003601f168201915b5050505050905090565b6002600a5414156114cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114c69061465f565b60405180910390fd5b6002600a819055506114df6113cd565b73ffffffffffffffffffffffffffffffffffffffff166114fd612795565b73ffffffffffffffffffffffffffffffffffffffff1614611561576115206110f6565b15611560576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115579061445f565b60405180910390fd5b5b600061156b612eda565b905061157c6103206107d061158091906147b4565b61158a91906147b4565b828261159691906147b4565b11156115d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115ce9061461f565b60405180910390fd5b61157c6103206107d06115ea91906147b4565b6115f491906147b4565b811115611636576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161162d906144ff565b60405180910390fd5b601982111561167a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116719061451f565b60405180910390fd5b60008060008061168986611a72565b93509350935093506116996113cd565b73ffffffffffffffffffffffffffffffffffffffff166116b7612795565b73ffffffffffffffffffffffffffffffffffffffff16146117165780341015611715576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161170c9061459f565b60405180910390fd5b5b60005b848110156117465761172b600c612eeb565b611733612f01565b808061173e906149e2565b915050611719565b5083601f6000611754612795565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461179d91906147b4565b9250508190555060005b838110156117d4576117b9600d612eeb565b6117c1612f01565b80806117cc906149e2565b9150506117a7565b5082602060006117e2612795565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461182b91906147b4565b9250508190555060005b8281101561185857611845612f01565b8080611850906149e2565b915050611835565b5050505050506001600a8190555050565b611871612795565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156118df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118d69061441f565b60405180910390fd5b80600560006118ec612795565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611999612795565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516119de9190614322565b60405180910390a35050565b61032081565b61157c6103206107d0611a0391906147b4565b611a0d91906147b4565b81565b611a21611a1b612795565b83612a29565b611a60576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a57906145ff565b60405180910390fd5b611a6c84848484612f58565b50505050565b6000806000806000601f6000611a86612795565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231611b07612795565b6040518263ffffffff1660e01b8152600401611b2391906142bb565b60206040518083038186803b158015611b3b57600080fd5b505afa158015611b4f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b739190613da5565b611b7d9190614895565b9050600060206000611b8d612795565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231611c0e612795565b6040518263ffffffff1660e01b8152600401611c2a91906142bb565b60206040518083038186803b158015611c4257600080fd5b505afa158015611c56573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c7a9190613da5565b601460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231611cc0612795565b6040518263ffffffff1660e01b8152600401611cdc91906142bb565b60206040518083038186803b158015611cf457600080fd5b505afa158015611d08573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d2c9190613da5565b601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231611d72612795565b6040518263ffffffff1660e01b8152600401611d8e91906142bb565b60206040518083038186803b158015611da657600080fd5b505afa158015611dba573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611dde9190613da5565b601a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231611e24612795565b6040518263ffffffff1660e01b8152600401611e4091906142bb565b60206040518083038186803b158015611e5857600080fd5b505afa158015611e6c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e909190613da5565b601860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231611ed6612795565b6040518263ffffffff1660e01b8152600401611ef291906142bb565b60206040518083038186803b158015611f0a57600080fd5b505afa158015611f1e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f429190613da5565b601c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231611f88612795565b6040518263ffffffff1660e01b8152600401611fa491906142bb565b60206040518083038186803b158015611fbc57600080fd5b505afa158015611fd0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ff49190613da5565b611ffe91906147b4565b61200891906147b4565b61201291906147b4565b61201c91906147b4565b61202691906147b4565b6120309190614895565b9050600080600080600086111561208457600061204d600c612fb4565b6107d061205a9190614895565b905086811061206b5786945061206f565b8094505b8b851061207e578b9250612082565b8492505b505b60008511156120d0576000612099600d612fb4565b6103206120a69190614895565b90508581106120b7578593506120bb565b8093505b8b84106120ca578b91506120ce565b8391505b505b60008b90508281106120eb5782816120e89190614895565b90505b8181106121015781816120fe9190614895565b90505b60008082111561212c576121258266b1a2bc2ec50000612fc290919063ffffffff16565b9050612131565b600090505b838383839b509b509b509b5050505050505050509193509193565b6060612156612fd8565b61215f8361251f565b61217061216b85610a67565b61251f565b6040516020016121829392919061426a565b6040516020818303038152906040529050919050565b601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b601e80546121cb9061497f565b80601f01602080910402602001604051908101604052809291908181526020018280546121f79061497f565b80156122445780601f1061221957610100808354040283529160200191612244565b820191906000526020600020905b81548152906001019060200180831161222757829003601f168201915b505050505081565b61157c81565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b601560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b612314612795565b73ffffffffffffffffffffffffffffffffffffffff166123326113cd565b73ffffffffffffffffffffffffffffffffffffffff1614612388576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161237f9061455f565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156123f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123ef906143bf565b60405180910390fd5b61240181612d63565b50565b61240c612795565b73ffffffffffffffffffffffffffffffffffffffff1661242a6113cd565b73ffffffffffffffffffffffffffffffffffffffff1614612480576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124779061455f565b60405180910390fd5b80601d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b601760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b601960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600061251a612eda565b905090565b60606000821415612567576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061267b565b600082905060005b60008214612599578080612582906149e2565b915050600a82612592919061480a565b915061256f565b60008167ffffffffffffffff8111156125b5576125b4614b47565b5b6040519080825280601f01601f1916602001820160405280156125e75781602001600182028036833780820191505090505b5090505b60008514612674576001826126009190614895565b9150600a8561260f9190614a2b565b603061261b91906147b4565b60f81b81838151811061263157612630614b18565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561266d919061480a565b94506125eb565b8093505050505b919050565b6000816040516020016126939190614253565b6040516020818303038152906040528051906020012060001c9050919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061277e57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061278e575061278d8261306a565b5b9050919050565b600033905090565b6127a56110f6565b156127e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127dc9061445f565b60405180910390fd5b6001600b60146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612829612795565b60405161283691906142bb565b60405180910390a1565b6128486110f6565b612887576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161287e9061435f565b60405180910390fd5b6000600b60146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6128cb612795565b6040516128d891906142bb565b60405180910390a1565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166129c18361110d565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000612a13600c612fb4565b905090565b6000612a24600d612fb4565b905090565b6000612a34826128e2565b612a73576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a6a9061443f565b60405180910390fd5b6000612a7e8361110d565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612aed57508373ffffffffffffffffffffffffffffffffffffffff16612ad584610c6a565b73ffffffffffffffffffffffffffffffffffffffff16145b80612afe5750612afd8185612252565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612b278261110d565b73ffffffffffffffffffffffffffffffffffffffff1614612b7d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b749061457f565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612bed576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612be4906143ff565b60405180910390fd5b612bf88383836130d4565b612c0360008261294e565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612c539190614895565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612caa91906147b4565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008273ffffffffffffffffffffffffffffffffffffffff1682604051612e4f906142a6565b60006040518083038185875af1925050503d8060008114612e8c576040519150601f19603f3d011682016040523d82523d6000602084013e612e91565b606091505b5050905080612ed5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ecc906145df565b60405180910390fd5b505050565b6000612ee6600e612fb4565b905090565b6001816000016000828254019250508190555050565b6000612f0b612eda565b9050612f17600e612eeb565b612f28612f22612795565b826131e8565b807fc4580ebed1e4c2abecc4e2ddc905ce95d4a90c108ec3e7c0727bd75eebb4173560405160405180910390a250565b612f63848484612b07565b612f6f84848484613206565b612fae576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fa59061439f565b60405180910390fd5b50505050565b600081600001549050919050565b60008183612fd0919061483b565b905092915050565b6060601e8054612fe79061497f565b80601f01602080910402602001604051908101604052809291908181526020018280546130139061497f565b80156130605780601f1061303557610100808354040283529160200191613060565b820191906000526020600020905b81548152906001019060200180831161304357829003601f168201915b5050505050905090565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6130df83838361339d565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156131225761311d816133a2565b613161565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146131605761315f83826133eb565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156131a45761319f81613558565b6131e3565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146131e2576131e18282613629565b5b5b505050565b6132028282604051806020016040528060008152506136a8565b5050565b60006132278473ffffffffffffffffffffffffffffffffffffffff16613703565b15613390578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613250612795565b8786866040518563ffffffff1660e01b815260040161327294939291906142d6565b602060405180830381600087803b15801561328c57600080fd5b505af19250505080156132bd57506040513d601f19601f820116820180604052508101906132ba9190613d02565b60015b613340573d80600081146132ed576040519150601f19603f3d011682016040523d82523d6000602084013e6132f2565b606091505b50600081511415613338576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161332f9061439f565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613395565b600190505b949350505050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b600060016133f8846111bf565b6134029190614895565b90506000600760008481526020019081526020016000205490508181146134e7576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b6000600160088054905061356c9190614895565b905060006009600084815260200190815260200160002054905060006008838154811061359c5761359b614b18565b5b9060005260206000200154905080600883815481106135be576135bd614b18565b5b90600052602060002001819055508160096000838152602001908152602001600020819055506009600085815260200190815260200160002060009055600880548061360d5761360c614ae9565b5b6001900381819060005260206000200160009055905550505050565b6000613634836111bf565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b6136b28383613716565b6136bf6000848484613206565b6136fe576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016136f59061439f565b60405180910390fd5b505050565b600080823b905060008111915050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613786576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161377d906144df565b60405180910390fd5b61378f816128e2565b156137cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137c6906143df565b60405180910390fd5b6137db600083836130d4565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461382b91906147b4565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b8280546138f09061497f565b90600052602060002090601f0160209004810192826139125760008555613959565b82601f1061392b57805160ff1916838001178555613959565b82800160010185558215613959579182015b8281111561395857825182559160200191906001019061393d565b5b509050613966919061396a565b5090565b5b8082111561398357600081600090555060010161396b565b5090565b600061399a61399584614704565b6146df565b9050828152602081018484840111156139b6576139b5614b7b565b5b6139c184828561493d565b509392505050565b60006139dc6139d784614735565b6146df565b9050828152602081018484840111156139f8576139f7614b7b565b5b613a0384828561493d565b509392505050565b600081359050613a1a816151dc565b92915050565b600081359050613a2f816151f3565b92915050565b600081359050613a448161520a565b92915050565b600081519050613a598161520a565b92915050565b600082601f830112613a7457613a73614b76565b5b8135613a84848260208601613987565b91505092915050565b600082601f830112613aa257613aa1614b76565b5b8135613ab28482602086016139c9565b91505092915050565b600081359050613aca81615221565b92915050565b600081519050613adf81615221565b92915050565b600060208284031215613afb57613afa614b85565b5b6000613b0984828501613a0b565b91505092915050565b60008060408385031215613b2957613b28614b85565b5b6000613b3785828601613a0b565b9250506020613b4885828601613a0b565b9150509250929050565b600080600060608486031215613b6b57613b6a614b85565b5b6000613b7986828701613a0b565b9350506020613b8a86828701613a0b565b9250506040613b9b86828701613abb565b9150509250925092565b60008060008060808587031215613bbf57613bbe614b85565b5b6000613bcd87828801613a0b565b9450506020613bde87828801613a0b565b9350506040613bef87828801613abb565b925050606085013567ffffffffffffffff811115613c1057613c0f614b80565b5b613c1c87828801613a5f565b91505092959194509250565b60008060408385031215613c3f57613c3e614b85565b5b6000613c4d85828601613a0b565b9250506020613c5e85828601613a20565b9150509250929050565b60008060408385031215613c7f57613c7e614b85565b5b6000613c8d85828601613a0b565b9250506020613c9e85828601613abb565b9150509250929050565b600060208284031215613cbe57613cbd614b85565b5b6000613ccc84828501613a20565b91505092915050565b600060208284031215613ceb57613cea614b85565b5b6000613cf984828501613a35565b91505092915050565b600060208284031215613d1857613d17614b85565b5b6000613d2684828501613a4a565b91505092915050565b600060208284031215613d4557613d44614b85565b5b600082013567ffffffffffffffff811115613d6357613d62614b80565b5b613d6f84828501613a8d565b91505092915050565b600060208284031215613d8e57613d8d614b85565b5b6000613d9c84828501613abb565b91505092915050565b600060208284031215613dbb57613dba614b85565b5b6000613dc984828501613ad0565b91505092915050565b613ddb816148c9565b82525050565b613dea816148db565b82525050565b6000613dfb82614766565b613e05818561477c565b9350613e1581856020860161494c565b613e1e81614b8a565b840191505092915050565b6000613e3482614771565b613e3e8185614798565b9350613e4e81856020860161494c565b613e5781614b8a565b840191505092915050565b6000613e6d82614771565b613e7781856147a9565b9350613e8781856020860161494c565b80840191505092915050565b6000613ea0601483614798565b9150613eab82614b9b565b602082019050919050565b6000613ec36007836147a9565b9150613ece82614bc4565b600782019050919050565b6000613ee6602b83614798565b9150613ef182614bed565b604082019050919050565b6000613f09603283614798565b9150613f1482614c3c565b604082019050919050565b6000613f2c602683614798565b9150613f3782614c8b565b604082019050919050565b6000613f4f601c83614798565b9150613f5a82614cda565b602082019050919050565b6000613f72602483614798565b9150613f7d82614d03565b604082019050919050565b6000613f95601983614798565b9150613fa082614d52565b602082019050919050565b6000613fb8602c83614798565b9150613fc382614d7b565b604082019050919050565b6000613fdb601083614798565b9150613fe682614dca565b602082019050919050565b6000613ffe603883614798565b915061400982614df3565b604082019050919050565b6000614021602a83614798565b915061402c82614e42565b604082019050919050565b6000614044602983614798565b915061404f82614e91565b604082019050919050565b6000614067602083614798565b915061407282614ee0565b602082019050919050565b600061408a600883614798565b915061409582614f09565b602082019050919050565b60006140ad602583614798565b91506140b882614f32565b604082019050919050565b60006140d0602c83614798565b91506140db82614f81565b604082019050919050565b60006140f3602083614798565b91506140fe82614fd0565b602082019050919050565b6000614116602983614798565b915061412182614ff9565b604082019050919050565b6000614139601a83614798565b915061414482615048565b602082019050919050565b600061415c602183614798565b915061416782615071565b604082019050919050565b600061417f60008361478d565b915061418a826150c0565b600082019050919050565b60006141a2601083614798565b91506141ad826150c3565b602082019050919050565b60006141c5603183614798565b91506141d0826150ec565b604082019050919050565b60006141e8601683614798565b91506141f38261513b565b602082019050919050565b600061420b602c83614798565b915061421682615164565b604082019050919050565b600061422e601f83614798565b9150614239826151b3565b602082019050919050565b61424d81614933565b82525050565b600061425f8284613e62565b915081905092915050565b60006142768286613e62565b91506142828285613e62565b915061428d82613eb6565b91506142998284613e62565b9150819050949350505050565b60006142b182614172565b9150819050919050565b60006020820190506142d06000830184613dd2565b92915050565b60006080820190506142eb6000830187613dd2565b6142f86020830186613dd2565b6143056040830185614244565b81810360608301526143178184613df0565b905095945050505050565b60006020820190506143376000830184613de1565b92915050565b600060208201905081810360008301526143578184613e29565b905092915050565b6000602082019050818103600083015261437881613e93565b9050919050565b6000602082019050818103600083015261439881613ed9565b9050919050565b600060208201905081810360008301526143b881613efc565b9050919050565b600060208201905081810360008301526143d881613f1f565b9050919050565b600060208201905081810360008301526143f881613f42565b9050919050565b6000602082019050818103600083015261441881613f65565b9050919050565b6000602082019050818103600083015261443881613f88565b9050919050565b6000602082019050818103600083015261445881613fab565b9050919050565b6000602082019050818103600083015261447881613fce565b9050919050565b6000602082019050818103600083015261449881613ff1565b9050919050565b600060208201905081810360008301526144b881614014565b9050919050565b600060208201905081810360008301526144d881614037565b9050919050565b600060208201905081810360008301526144f88161405a565b9050919050565b600060208201905081810360008301526145188161407d565b9050919050565b60006020820190508181036000830152614538816140a0565b9050919050565b60006020820190508181036000830152614558816140c3565b9050919050565b60006020820190508181036000830152614578816140e6565b9050919050565b6000602082019050818103600083015261459881614109565b9050919050565b600060208201905081810360008301526145b88161412c565b9050919050565b600060208201905081810360008301526145d88161414f565b9050919050565b600060208201905081810360008301526145f881614195565b9050919050565b60006020820190508181036000830152614618816141b8565b9050919050565b60006020820190508181036000830152614638816141db565b9050919050565b60006020820190508181036000830152614658816141fe565b9050919050565b6000602082019050818103600083015261467881614221565b9050919050565b60006020820190506146946000830184614244565b92915050565b60006080820190506146af6000830187614244565b6146bc6020830186614244565b6146c96040830185614244565b6146d66060830184614244565b95945050505050565b60006146e96146fa565b90506146f582826149b1565b919050565b6000604051905090565b600067ffffffffffffffff82111561471f5761471e614b47565b5b61472882614b8a565b9050602081019050919050565b600067ffffffffffffffff8211156147505761474f614b47565b5b61475982614b8a565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b60006147bf82614933565b91506147ca83614933565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156147ff576147fe614a5c565b5b828201905092915050565b600061481582614933565b915061482083614933565b9250826148305761482f614a8b565b5b828204905092915050565b600061484682614933565b915061485183614933565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561488a57614889614a5c565b5b828202905092915050565b60006148a082614933565b91506148ab83614933565b9250828210156148be576148bd614a5c565b5b828203905092915050565b60006148d482614913565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b8381101561496a57808201518184015260208101905061494f565b83811115614979576000848401525b50505050565b6000600282049050600182168061499757607f821691505b602082108114156149ab576149aa614aba565b5b50919050565b6149ba82614b8a565b810181811067ffffffffffffffff821117156149d9576149d8614b47565b5b80604052505050565b60006149ed82614933565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614a2057614a1f614a5c565b5b600182019050919050565b6000614a3682614933565b9150614a4183614933565b925082614a5157614a50614a8b565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b7f3f706f7765723d00000000000000000000000000000000000000000000000000600082015250565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f53616c6520656e64000000000000000000000000000000000000000000000000600082015250565b7f457863656564732073696e676c65207472616e73616374696f6e206d696e742060008201527f6c696d6974000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f56616c75652062656c6f77207265717569726564207072696365000000000000600082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b50565b7f5472616e73666572206661696c65642e00000000000000000000000000000000600082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f4d61782073616c65206c696d6974207265616368656400000000000000000000600082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6151e5816148c9565b81146151f057600080fd5b50565b6151fc816148db565b811461520757600080fd5b50565b615213816148e7565b811461521e57600080fd5b50565b61522a81614933565b811461523557600080fd5b5056fea264697066735822122045a88217ffd38916a0d42826bba2b59fc1d5ea216c2e1f9639bd916243375ee264736f6c634300080700330000000000000000000000001dfe7ca09e99d10835bf73044a23b73fc20623df000000000000000000000000ff9c1b15b16263c61d017ee9f65c50e4ae0113d700000000000000000000000013a48f723f4ad29b6da6e7215fe53172c027d98f0000000000000000000000008bf2f876e2dcd2cae9c3d272f325776c82da366d0000000000000000000000008707276df042e89669d69a177d3da7dc78bd8723000000000000000000000000ff796cbbe32b2150a4585a3791cadb213d0f35a30000000000000000000000009929b3f3599edbae3a06e31fc64f75027c8a3e1d00000000000000000000000072e19fe8c0d4ae1cecc1e4f0fafc1cf2d9cd163b0000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000003168747470733a2f2f7777772e6c6f6f746d65746176657273652e636c75622f6170692f6d657461646174612f636172642f000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106102725760003560e01c8063715018a61161014f578063bc31c1c1116100c1578063ef028cf01161007a578063ef028cf014610969578063f2fde38b14610994578063f3283fba146109bd578063f65b7ef9146109e6578063f7dc8d2814610a11578063fd0a70dd14610a3c57610272565b8063bc31c1c11461082e578063c87b56dd1461086e578063d29907e5146108ab578063d547cfb7146108d6578063d9e01bd414610901578063e985e9c51461092c57610272565b806395d89b411161011357806395d89b411461073f578063a0712d681461076a578063a22cb46514610786578063a2aeaf94146107af578063b07b9f8e146107da578063b88d4fde1461080557610272565b8063715018a61461069d5780637ae7ecfc146106b4578063853828b6146106df5780638d859f3e146106e95780638da5cb5b1461071457610272565b80631b0a5d4e116101e85780634f6ccce7116101ac5780634f6ccce7146105675780635462870d146105a457806355f804b3146105cf5780635c975abb146105f85780636352211e1461062357806370a082311461066057610272565b80631b0a5d4e1461048257806323b872dd146104ad5780632f745c59146104d657806342842e0e1461051357806343de76ec1461053c57610272565b8063081812fc1161023a578063081812fc14610370578063095ea7b3146103ad5780630e439326146103d657806312b1c1601461040157806314e1c4b11461042c57806318160ddd1461045757610272565b8063017fe8091461027757806301ffc9a7146102b457806302329a29146102f1578063027752401461031a57806306fdde0314610345575b600080fd5b34801561028357600080fd5b5061029e60048036038101906102999190613d78565b610a67565b6040516102ab919061467f565b60405180910390f35b3480156102c057600080fd5b506102db60048036038101906102d69190613cd5565b610ab7565b6040516102e89190614322565b60405180910390f35b3480156102fd57600080fd5b5061031860048036038101906103139190613ca8565b610b31565b005b34801561032657600080fd5b5061032f610bd3565b60405161033c919061467f565b60405180910390f35b34801561035157600080fd5b5061035a610bd8565b604051610367919061433d565b60405180910390f35b34801561037c57600080fd5b5061039760048036038101906103929190613d78565b610c6a565b6040516103a491906142bb565b60405180910390f35b3480156103b957600080fd5b506103d460048036038101906103cf9190613c68565b610cef565b005b3480156103e257600080fd5b506103eb610e07565b6040516103f891906142bb565b60405180910390f35b34801561040d57600080fd5b50610416610e2d565b60405161042391906142bb565b60405180910390f35b34801561043857600080fd5b50610441610e53565b60405161044e919061467f565b60405180910390f35b34801561046357600080fd5b5061046c610e62565b604051610479919061467f565b60405180910390f35b34801561048e57600080fd5b50610497610e6f565b6040516104a4919061467f565b60405180910390f35b3480156104b957600080fd5b506104d460048036038101906104cf9190613b52565b610e7e565b005b3480156104e257600080fd5b506104fd60048036038101906104f89190613c68565b610ede565b60405161050a919061467f565b60405180910390f35b34801561051f57600080fd5b5061053a60048036038101906105359190613b52565b610f83565b005b34801561054857600080fd5b50610551610fa3565b60405161055e91906142bb565b60405180910390f35b34801561057357600080fd5b5061058e60048036038101906105899190613d78565b610fc9565b60405161059b919061467f565b60405180910390f35b3480156105b057600080fd5b506105b961103a565b6040516105c691906142bb565b60405180910390f35b3480156105db57600080fd5b506105f660048036038101906105f19190613d2f565b611060565b005b34801561060457600080fd5b5061060d6110f6565b60405161061a9190614322565b60405180910390f35b34801561062f57600080fd5b5061064a60048036038101906106459190613d78565b61110d565b60405161065791906142bb565b60405180910390f35b34801561066c57600080fd5b5061068760048036038101906106829190613ae5565b6111bf565b604051610694919061467f565b60405180910390f35b3480156106a957600080fd5b506106b2611277565b005b3480156106c057600080fd5b506106c96112ff565b6040516106d6919061467f565b60405180910390f35b6106e7611305565b005b3480156106f557600080fd5b506106fe6113c2565b60405161070b919061467f565b60405180910390f35b34801561072057600080fd5b506107296113cd565b60405161073691906142bb565b60405180910390f35b34801561074b57600080fd5b506107546113f7565b604051610761919061433d565b60405180910390f35b610784600480360381019061077f9190613d78565b611489565b005b34801561079257600080fd5b506107ad60048036038101906107a89190613c28565b611869565b005b3480156107bb57600080fd5b506107c46119ea565b6040516107d1919061467f565b60405180910390f35b3480156107e657600080fd5b506107ef6119f0565b6040516107fc919061467f565b60405180910390f35b34801561081157600080fd5b5061082c60048036038101906108279190613ba5565b611a10565b005b34801561083a57600080fd5b5061085560048036038101906108509190613d78565b611a72565b604051610865949392919061469a565b60405180910390f35b34801561087a57600080fd5b5061089560048036038101906108909190613d78565b61214c565b6040516108a2919061433d565b60405180910390f35b3480156108b757600080fd5b506108c0612198565b6040516108cd91906142bb565b60405180910390f35b3480156108e257600080fd5b506108eb6121be565b6040516108f8919061433d565b60405180910390f35b34801561090d57600080fd5b5061091661224c565b604051610923919061467f565b60405180910390f35b34801561093857600080fd5b50610953600480360381019061094e9190613b12565b612252565b6040516109609190614322565b60405180910390f35b34801561097557600080fd5b5061097e6122e6565b60405161098b91906142bb565b60405180910390f35b3480156109a057600080fd5b506109bb60048036038101906109b69190613ae5565b61230c565b005b3480156109c957600080fd5b506109e460048036038101906109df9190613ae5565b612404565b005b3480156109f257600080fd5b506109fb6124c4565b604051610a0891906142bb565b60405180910390f35b348015610a1d57600080fd5b50610a266124ea565b604051610a3391906142bb565b60405180910390f35b348015610a4857600080fd5b50610a51612510565b604051610a5e919061467f565b60405180910390f35b600080610a9a610a768461251f565b604051602001610a869190614253565b604051602081830303815290604052612680565b90506000606482610aab9190614a2b565b90508092505050919050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610b2a5750610b29826126b3565b5b9050919050565b610b39612795565b73ffffffffffffffffffffffffffffffffffffffff16610b576113cd565b73ffffffffffffffffffffffffffffffffffffffff1614610bad576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ba49061455f565b60405180910390fd5b600115158115151415610bc757610bc261279d565b610bd0565b610bcf612840565b5b50565b601981565b606060008054610be79061497f565b80601f0160208091040260200160405190810160405280929190818152602001828054610c139061497f565b8015610c605780601f10610c3557610100808354040283529160200191610c60565b820191906000526020600020905b815481529060010190602001808311610c4357829003601f168201915b5050505050905090565b6000610c75826128e2565b610cb4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cab9061453f565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610cfa8261110d565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610d6b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d62906145bf565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610d8a612795565b73ffffffffffffffffffffffffffffffffffffffff161480610db95750610db881610db3612795565b612252565b5b610df8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610def9061447f565b60405180910390fd5b610e02838361294e565b505050565b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b601b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000610e5d612a07565b905090565b6000600880549050905090565b6000610e79612a18565b905090565b610e8f610e89612795565b82612a29565b610ece576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ec5906145ff565b60405180910390fd5b610ed9838383612b07565b505050565b6000610ee9836111bf565b8210610f2a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f219061437f565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610f9e83838360405180602001604052806000815250611a10565b505050565b601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000610fd3610e62565b8210611014576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100b9061463f565b60405180910390fd5b6008828154811061102857611027614b18565b5b90600052602060002001549050919050565b601d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611068612795565b73ffffffffffffffffffffffffffffffffffffffff166110866113cd565b73ffffffffffffffffffffffffffffffffffffffff16146110dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110d39061455f565b60405180910390fd5b80601e90805190602001906110f29291906138e4565b5050565b6000600b60149054906101000a900460ff16905090565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156111b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111ad906144bf565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611230576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112279061449f565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61127f612795565b73ffffffffffffffffffffffffffffffffffffffff1661129d6113cd565b73ffffffffffffffffffffffffffffffffffffffff16146112f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112ea9061455f565b60405180910390fd5b6112fd6000612d63565b565b6107d081565b61130d612795565b73ffffffffffffffffffffffffffffffffffffffff1661132b6113cd565b73ffffffffffffffffffffffffffffffffffffffff1614611381576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113789061455f565b60405180910390fd5b60004790506000811161139357600080fd5b6113bf601d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682612e29565b50565b66b1a2bc2ec5000081565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600180546114069061497f565b80601f01602080910402602001604051908101604052809291908181526020018280546114329061497f565b801561147f5780601f106114545761010080835404028352916020019161147f565b820191906000526020600020905b81548152906001019060200180831161146257829003601f168201915b5050505050905090565b6002600a5414156114cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114c69061465f565b60405180910390fd5b6002600a819055506114df6113cd565b73ffffffffffffffffffffffffffffffffffffffff166114fd612795565b73ffffffffffffffffffffffffffffffffffffffff1614611561576115206110f6565b15611560576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115579061445f565b60405180910390fd5b5b600061156b612eda565b905061157c6103206107d061158091906147b4565b61158a91906147b4565b828261159691906147b4565b11156115d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115ce9061461f565b60405180910390fd5b61157c6103206107d06115ea91906147b4565b6115f491906147b4565b811115611636576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161162d906144ff565b60405180910390fd5b601982111561167a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116719061451f565b60405180910390fd5b60008060008061168986611a72565b93509350935093506116996113cd565b73ffffffffffffffffffffffffffffffffffffffff166116b7612795565b73ffffffffffffffffffffffffffffffffffffffff16146117165780341015611715576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161170c9061459f565b60405180910390fd5b5b60005b848110156117465761172b600c612eeb565b611733612f01565b808061173e906149e2565b915050611719565b5083601f6000611754612795565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461179d91906147b4565b9250508190555060005b838110156117d4576117b9600d612eeb565b6117c1612f01565b80806117cc906149e2565b9150506117a7565b5082602060006117e2612795565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461182b91906147b4565b9250508190555060005b8281101561185857611845612f01565b8080611850906149e2565b915050611835565b5050505050506001600a8190555050565b611871612795565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156118df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118d69061441f565b60405180910390fd5b80600560006118ec612795565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611999612795565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516119de9190614322565b60405180910390a35050565b61032081565b61157c6103206107d0611a0391906147b4565b611a0d91906147b4565b81565b611a21611a1b612795565b83612a29565b611a60576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a57906145ff565b60405180910390fd5b611a6c84848484612f58565b50505050565b6000806000806000601f6000611a86612795565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231611b07612795565b6040518263ffffffff1660e01b8152600401611b2391906142bb565b60206040518083038186803b158015611b3b57600080fd5b505afa158015611b4f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b739190613da5565b611b7d9190614895565b9050600060206000611b8d612795565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231611c0e612795565b6040518263ffffffff1660e01b8152600401611c2a91906142bb565b60206040518083038186803b158015611c4257600080fd5b505afa158015611c56573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c7a9190613da5565b601460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231611cc0612795565b6040518263ffffffff1660e01b8152600401611cdc91906142bb565b60206040518083038186803b158015611cf457600080fd5b505afa158015611d08573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d2c9190613da5565b601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231611d72612795565b6040518263ffffffff1660e01b8152600401611d8e91906142bb565b60206040518083038186803b158015611da657600080fd5b505afa158015611dba573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611dde9190613da5565b601a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231611e24612795565b6040518263ffffffff1660e01b8152600401611e4091906142bb565b60206040518083038186803b158015611e5857600080fd5b505afa158015611e6c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e909190613da5565b601860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231611ed6612795565b6040518263ffffffff1660e01b8152600401611ef291906142bb565b60206040518083038186803b158015611f0a57600080fd5b505afa158015611f1e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f429190613da5565b601c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231611f88612795565b6040518263ffffffff1660e01b8152600401611fa491906142bb565b60206040518083038186803b158015611fbc57600080fd5b505afa158015611fd0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ff49190613da5565b611ffe91906147b4565b61200891906147b4565b61201291906147b4565b61201c91906147b4565b61202691906147b4565b6120309190614895565b9050600080600080600086111561208457600061204d600c612fb4565b6107d061205a9190614895565b905086811061206b5786945061206f565b8094505b8b851061207e578b9250612082565b8492505b505b60008511156120d0576000612099600d612fb4565b6103206120a69190614895565b90508581106120b7578593506120bb565b8093505b8b84106120ca578b91506120ce565b8391505b505b60008b90508281106120eb5782816120e89190614895565b90505b8181106121015781816120fe9190614895565b90505b60008082111561212c576121258266b1a2bc2ec50000612fc290919063ffffffff16565b9050612131565b600090505b838383839b509b509b509b5050505050505050509193509193565b6060612156612fd8565b61215f8361251f565b61217061216b85610a67565b61251f565b6040516020016121829392919061426a565b6040516020818303038152906040529050919050565b601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b601e80546121cb9061497f565b80601f01602080910402602001604051908101604052809291908181526020018280546121f79061497f565b80156122445780601f1061221957610100808354040283529160200191612244565b820191906000526020600020905b81548152906001019060200180831161222757829003601f168201915b505050505081565b61157c81565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b601560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b612314612795565b73ffffffffffffffffffffffffffffffffffffffff166123326113cd565b73ffffffffffffffffffffffffffffffffffffffff1614612388576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161237f9061455f565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156123f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123ef906143bf565b60405180910390fd5b61240181612d63565b50565b61240c612795565b73ffffffffffffffffffffffffffffffffffffffff1661242a6113cd565b73ffffffffffffffffffffffffffffffffffffffff1614612480576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124779061455f565b60405180910390fd5b80601d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b601760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b601960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600061251a612eda565b905090565b60606000821415612567576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061267b565b600082905060005b60008214612599578080612582906149e2565b915050600a82612592919061480a565b915061256f565b60008167ffffffffffffffff8111156125b5576125b4614b47565b5b6040519080825280601f01601f1916602001820160405280156125e75781602001600182028036833780820191505090505b5090505b60008514612674576001826126009190614895565b9150600a8561260f9190614a2b565b603061261b91906147b4565b60f81b81838151811061263157612630614b18565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561266d919061480a565b94506125eb565b8093505050505b919050565b6000816040516020016126939190614253565b6040516020818303038152906040528051906020012060001c9050919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061277e57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061278e575061278d8261306a565b5b9050919050565b600033905090565b6127a56110f6565b156127e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127dc9061445f565b60405180910390fd5b6001600b60146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612829612795565b60405161283691906142bb565b60405180910390a1565b6128486110f6565b612887576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161287e9061435f565b60405180910390fd5b6000600b60146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6128cb612795565b6040516128d891906142bb565b60405180910390a1565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166129c18361110d565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000612a13600c612fb4565b905090565b6000612a24600d612fb4565b905090565b6000612a34826128e2565b612a73576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a6a9061443f565b60405180910390fd5b6000612a7e8361110d565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612aed57508373ffffffffffffffffffffffffffffffffffffffff16612ad584610c6a565b73ffffffffffffffffffffffffffffffffffffffff16145b80612afe5750612afd8185612252565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612b278261110d565b73ffffffffffffffffffffffffffffffffffffffff1614612b7d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b749061457f565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612bed576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612be4906143ff565b60405180910390fd5b612bf88383836130d4565b612c0360008261294e565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612c539190614895565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612caa91906147b4565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008273ffffffffffffffffffffffffffffffffffffffff1682604051612e4f906142a6565b60006040518083038185875af1925050503d8060008114612e8c576040519150601f19603f3d011682016040523d82523d6000602084013e612e91565b606091505b5050905080612ed5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ecc906145df565b60405180910390fd5b505050565b6000612ee6600e612fb4565b905090565b6001816000016000828254019250508190555050565b6000612f0b612eda565b9050612f17600e612eeb565b612f28612f22612795565b826131e8565b807fc4580ebed1e4c2abecc4e2ddc905ce95d4a90c108ec3e7c0727bd75eebb4173560405160405180910390a250565b612f63848484612b07565b612f6f84848484613206565b612fae576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fa59061439f565b60405180910390fd5b50505050565b600081600001549050919050565b60008183612fd0919061483b565b905092915050565b6060601e8054612fe79061497f565b80601f01602080910402602001604051908101604052809291908181526020018280546130139061497f565b80156130605780601f1061303557610100808354040283529160200191613060565b820191906000526020600020905b81548152906001019060200180831161304357829003601f168201915b5050505050905090565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6130df83838361339d565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156131225761311d816133a2565b613161565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146131605761315f83826133eb565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156131a45761319f81613558565b6131e3565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146131e2576131e18282613629565b5b5b505050565b6132028282604051806020016040528060008152506136a8565b5050565b60006132278473ffffffffffffffffffffffffffffffffffffffff16613703565b15613390578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613250612795565b8786866040518563ffffffff1660e01b815260040161327294939291906142d6565b602060405180830381600087803b15801561328c57600080fd5b505af19250505080156132bd57506040513d601f19601f820116820180604052508101906132ba9190613d02565b60015b613340573d80600081146132ed576040519150601f19603f3d011682016040523d82523d6000602084013e6132f2565b606091505b50600081511415613338576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161332f9061439f565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613395565b600190505b949350505050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b600060016133f8846111bf565b6134029190614895565b90506000600760008481526020019081526020016000205490508181146134e7576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b6000600160088054905061356c9190614895565b905060006009600084815260200190815260200160002054905060006008838154811061359c5761359b614b18565b5b9060005260206000200154905080600883815481106135be576135bd614b18565b5b90600052602060002001819055508160096000838152602001908152602001600020819055506009600085815260200190815260200160002060009055600880548061360d5761360c614ae9565b5b6001900381819060005260206000200160009055905550505050565b6000613634836111bf565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b6136b28383613716565b6136bf6000848484613206565b6136fe576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016136f59061439f565b60405180910390fd5b505050565b600080823b905060008111915050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613786576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161377d906144df565b60405180910390fd5b61378f816128e2565b156137cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137c6906143df565b60405180910390fd5b6137db600083836130d4565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461382b91906147b4565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b8280546138f09061497f565b90600052602060002090601f0160209004810192826139125760008555613959565b82601f1061392b57805160ff1916838001178555613959565b82800160010185558215613959579182015b8281111561395857825182559160200191906001019061393d565b5b509050613966919061396a565b5090565b5b8082111561398357600081600090555060010161396b565b5090565b600061399a61399584614704565b6146df565b9050828152602081018484840111156139b6576139b5614b7b565b5b6139c184828561493d565b509392505050565b60006139dc6139d784614735565b6146df565b9050828152602081018484840111156139f8576139f7614b7b565b5b613a0384828561493d565b509392505050565b600081359050613a1a816151dc565b92915050565b600081359050613a2f816151f3565b92915050565b600081359050613a448161520a565b92915050565b600081519050613a598161520a565b92915050565b600082601f830112613a7457613a73614b76565b5b8135613a84848260208601613987565b91505092915050565b600082601f830112613aa257613aa1614b76565b5b8135613ab28482602086016139c9565b91505092915050565b600081359050613aca81615221565b92915050565b600081519050613adf81615221565b92915050565b600060208284031215613afb57613afa614b85565b5b6000613b0984828501613a0b565b91505092915050565b60008060408385031215613b2957613b28614b85565b5b6000613b3785828601613a0b565b9250506020613b4885828601613a0b565b9150509250929050565b600080600060608486031215613b6b57613b6a614b85565b5b6000613b7986828701613a0b565b9350506020613b8a86828701613a0b565b9250506040613b9b86828701613abb565b9150509250925092565b60008060008060808587031215613bbf57613bbe614b85565b5b6000613bcd87828801613a0b565b9450506020613bde87828801613a0b565b9350506040613bef87828801613abb565b925050606085013567ffffffffffffffff811115613c1057613c0f614b80565b5b613c1c87828801613a5f565b91505092959194509250565b60008060408385031215613c3f57613c3e614b85565b5b6000613c4d85828601613a0b565b9250506020613c5e85828601613a20565b9150509250929050565b60008060408385031215613c7f57613c7e614b85565b5b6000613c8d85828601613a0b565b9250506020613c9e85828601613abb565b9150509250929050565b600060208284031215613cbe57613cbd614b85565b5b6000613ccc84828501613a20565b91505092915050565b600060208284031215613ceb57613cea614b85565b5b6000613cf984828501613a35565b91505092915050565b600060208284031215613d1857613d17614b85565b5b6000613d2684828501613a4a565b91505092915050565b600060208284031215613d4557613d44614b85565b5b600082013567ffffffffffffffff811115613d6357613d62614b80565b5b613d6f84828501613a8d565b91505092915050565b600060208284031215613d8e57613d8d614b85565b5b6000613d9c84828501613abb565b91505092915050565b600060208284031215613dbb57613dba614b85565b5b6000613dc984828501613ad0565b91505092915050565b613ddb816148c9565b82525050565b613dea816148db565b82525050565b6000613dfb82614766565b613e05818561477c565b9350613e1581856020860161494c565b613e1e81614b8a565b840191505092915050565b6000613e3482614771565b613e3e8185614798565b9350613e4e81856020860161494c565b613e5781614b8a565b840191505092915050565b6000613e6d82614771565b613e7781856147a9565b9350613e8781856020860161494c565b80840191505092915050565b6000613ea0601483614798565b9150613eab82614b9b565b602082019050919050565b6000613ec36007836147a9565b9150613ece82614bc4565b600782019050919050565b6000613ee6602b83614798565b9150613ef182614bed565b604082019050919050565b6000613f09603283614798565b9150613f1482614c3c565b604082019050919050565b6000613f2c602683614798565b9150613f3782614c8b565b604082019050919050565b6000613f4f601c83614798565b9150613f5a82614cda565b602082019050919050565b6000613f72602483614798565b9150613f7d82614d03565b604082019050919050565b6000613f95601983614798565b9150613fa082614d52565b602082019050919050565b6000613fb8602c83614798565b9150613fc382614d7b565b604082019050919050565b6000613fdb601083614798565b9150613fe682614dca565b602082019050919050565b6000613ffe603883614798565b915061400982614df3565b604082019050919050565b6000614021602a83614798565b915061402c82614e42565b604082019050919050565b6000614044602983614798565b915061404f82614e91565b604082019050919050565b6000614067602083614798565b915061407282614ee0565b602082019050919050565b600061408a600883614798565b915061409582614f09565b602082019050919050565b60006140ad602583614798565b91506140b882614f32565b604082019050919050565b60006140d0602c83614798565b91506140db82614f81565b604082019050919050565b60006140f3602083614798565b91506140fe82614fd0565b602082019050919050565b6000614116602983614798565b915061412182614ff9565b604082019050919050565b6000614139601a83614798565b915061414482615048565b602082019050919050565b600061415c602183614798565b915061416782615071565b604082019050919050565b600061417f60008361478d565b915061418a826150c0565b600082019050919050565b60006141a2601083614798565b91506141ad826150c3565b602082019050919050565b60006141c5603183614798565b91506141d0826150ec565b604082019050919050565b60006141e8601683614798565b91506141f38261513b565b602082019050919050565b600061420b602c83614798565b915061421682615164565b604082019050919050565b600061422e601f83614798565b9150614239826151b3565b602082019050919050565b61424d81614933565b82525050565b600061425f8284613e62565b915081905092915050565b60006142768286613e62565b91506142828285613e62565b915061428d82613eb6565b91506142998284613e62565b9150819050949350505050565b60006142b182614172565b9150819050919050565b60006020820190506142d06000830184613dd2565b92915050565b60006080820190506142eb6000830187613dd2565b6142f86020830186613dd2565b6143056040830185614244565b81810360608301526143178184613df0565b905095945050505050565b60006020820190506143376000830184613de1565b92915050565b600060208201905081810360008301526143578184613e29565b905092915050565b6000602082019050818103600083015261437881613e93565b9050919050565b6000602082019050818103600083015261439881613ed9565b9050919050565b600060208201905081810360008301526143b881613efc565b9050919050565b600060208201905081810360008301526143d881613f1f565b9050919050565b600060208201905081810360008301526143f881613f42565b9050919050565b6000602082019050818103600083015261441881613f65565b9050919050565b6000602082019050818103600083015261443881613f88565b9050919050565b6000602082019050818103600083015261445881613fab565b9050919050565b6000602082019050818103600083015261447881613fce565b9050919050565b6000602082019050818103600083015261449881613ff1565b9050919050565b600060208201905081810360008301526144b881614014565b9050919050565b600060208201905081810360008301526144d881614037565b9050919050565b600060208201905081810360008301526144f88161405a565b9050919050565b600060208201905081810360008301526145188161407d565b9050919050565b60006020820190508181036000830152614538816140a0565b9050919050565b60006020820190508181036000830152614558816140c3565b9050919050565b60006020820190508181036000830152614578816140e6565b9050919050565b6000602082019050818103600083015261459881614109565b9050919050565b600060208201905081810360008301526145b88161412c565b9050919050565b600060208201905081810360008301526145d88161414f565b9050919050565b600060208201905081810360008301526145f881614195565b9050919050565b60006020820190508181036000830152614618816141b8565b9050919050565b60006020820190508181036000830152614638816141db565b9050919050565b60006020820190508181036000830152614658816141fe565b9050919050565b6000602082019050818103600083015261467881614221565b9050919050565b60006020820190506146946000830184614244565b92915050565b60006080820190506146af6000830187614244565b6146bc6020830186614244565b6146c96040830185614244565b6146d66060830184614244565b95945050505050565b60006146e96146fa565b90506146f582826149b1565b919050565b6000604051905090565b600067ffffffffffffffff82111561471f5761471e614b47565b5b61472882614b8a565b9050602081019050919050565b600067ffffffffffffffff8211156147505761474f614b47565b5b61475982614b8a565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b60006147bf82614933565b91506147ca83614933565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156147ff576147fe614a5c565b5b828201905092915050565b600061481582614933565b915061482083614933565b9250826148305761482f614a8b565b5b828204905092915050565b600061484682614933565b915061485183614933565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561488a57614889614a5c565b5b828202905092915050565b60006148a082614933565b91506148ab83614933565b9250828210156148be576148bd614a5c565b5b828203905092915050565b60006148d482614913565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b8381101561496a57808201518184015260208101905061494f565b83811115614979576000848401525b50505050565b6000600282049050600182168061499757607f821691505b602082108114156149ab576149aa614aba565b5b50919050565b6149ba82614b8a565b810181811067ffffffffffffffff821117156149d9576149d8614b47565b5b80604052505050565b60006149ed82614933565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614a2057614a1f614a5c565b5b600182019050919050565b6000614a3682614933565b9150614a4183614933565b925082614a5157614a50614a8b565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b7f3f706f7765723d00000000000000000000000000000000000000000000000000600082015250565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f53616c6520656e64000000000000000000000000000000000000000000000000600082015250565b7f457863656564732073696e676c65207472616e73616374696f6e206d696e742060008201527f6c696d6974000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f56616c75652062656c6f77207265717569726564207072696365000000000000600082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b50565b7f5472616e73666572206661696c65642e00000000000000000000000000000000600082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f4d61782073616c65206c696d6974207265616368656400000000000000000000600082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6151e5816148c9565b81146151f057600080fd5b50565b6151fc816148db565b811461520757600080fd5b50565b615213816148e7565b811461521e57600080fd5b50565b61522a81614933565b811461523557600080fd5b5056fea264697066735822122045a88217ffd38916a0d42826bba2b59fc1d5ea216c2e1f9639bd916243375ee264736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000001dfe7ca09e99d10835bf73044a23b73fc20623df000000000000000000000000ff9c1b15b16263c61d017ee9f65c50e4ae0113d700000000000000000000000013a48f723f4ad29b6da6e7215fe53172c027d98f0000000000000000000000008bf2f876e2dcd2cae9c3d272f325776c82da366d0000000000000000000000008707276df042e89669d69a177d3da7dc78bd8723000000000000000000000000ff796cbbe32b2150a4585a3791cadb213d0f35a30000000000000000000000009929b3f3599edbae3a06e31fc64f75027c8a3e1d00000000000000000000000072e19fe8c0d4ae1cecc1e4f0fafc1cf2d9cd163b0000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000003168747470733a2f2f7777772e6c6f6f746d65746176657273652e636c75622f6170692f6d657461646174612f636172642f000000000000000000000000000000
-----Decoded View---------------
Arg [0] : moreLoot (address): 0x1dfe7Ca09e99d10835Bf73044a23B73Fc20623DF
Arg [1] : loot (address): 0xFF9C1b15B16263C61d017ee9F65C50e4AE0113D7
Arg [2] : cyber (address): 0x13a48f723f4AD29b6da6e7215Fe53172C027d98f
Arg [3] : xLoot (address): 0x8bf2f876E2dCD2CAe9C3d272f325776c82DA366d
Arg [4] : dopeWars (address): 0x8707276DF042E89669d69A177d3DA7dC78bd8723
Arg [5] : gear (address): 0xFf796cbbe32B2150A4585a3791CADb213D0F35A3
Arg [6] : characters (address): 0x9929b3F3599edBae3A06E31fc64F75027c8A3E1D
Arg [7] : multisig (address): 0x72E19fE8C0D4AE1cEcC1E4F0FAfc1CF2d9cd163b
Arg [8] : baseURI (string): https://www.lootmetaverse.club/api/metadata/card/
-----Encoded View---------------
12 Constructor Arguments found :
Arg [0] : 0000000000000000000000001dfe7ca09e99d10835bf73044a23b73fc20623df
Arg [1] : 000000000000000000000000ff9c1b15b16263c61d017ee9f65c50e4ae0113d7
Arg [2] : 00000000000000000000000013a48f723f4ad29b6da6e7215fe53172c027d98f
Arg [3] : 0000000000000000000000008bf2f876e2dcd2cae9c3d272f325776c82da366d
Arg [4] : 0000000000000000000000008707276df042e89669d69a177d3da7dc78bd8723
Arg [5] : 000000000000000000000000ff796cbbe32b2150a4585a3791cadb213d0f35a3
Arg [6] : 0000000000000000000000009929b3f3599edbae3a06e31fc64f75027c8a3e1d
Arg [7] : 00000000000000000000000072e19fe8c0d4ae1cecc1e4f0fafc1cf2d9cd163b
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000031
Arg [10] : 68747470733a2f2f7777772e6c6f6f746d65746176657273652e636c75622f61
Arg [11] : 70692f6d657461646174612f636172642f000000000000000000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.