ERC-721
Overview
Max Total Supply
5,836 ZMBPENGS
Holders
934
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
2 ZMBPENGSLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
ZombiePenguins
Compiler Version
v0.8.0+commit.c7dfd78e
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.0; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import '@openzeppelin/contracts/token/ERC721/IERC721.sol'; import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol'; import '@openzeppelin/contracts/utils/math/Math.sol'; import '@openzeppelin/contracts/utils/structs/EnumerableSet.sol'; import '@openzeppelin/contracts/token/ERC20/IERC20.sol'; contract ZombiePenguins is ERC721Enumerable, IERC721Receiver, Ownable{ using EnumerableSet for EnumerableSet.UintSet; ZombiePenguins public OLDZOMBIE = ZombiePenguins(0x77C76BFB6C2D2fC064a175f325Bb5eCf90789b6e); IERC721 public CONTROL = IERC721(address(this)); IERC20 public TOKEN = IERC20(0x654af6e4fd2d17C475E385750825FBf0a9123509); mapping(address => EnumerableSet.UintSet) private _deposits; mapping(uint256 => uint256) public _deposit_blocks; string public baseTokenURI; uint256 numTokens = 3298; bool public onSale = false; bool public canStake = false; uint256 public price = 0.04 ether; uint256 public maxTokensPurchase = 10; uint public MAX_TOKEN_SUPPLY = 10000; uint256 public RATE = 1562500000000000; uint256 public EXPIRATION; constructor() ERC721("Zombie Penguins", "ZMBPENGS") { baseTokenURI = "ipfs://QmUhuRSaPA8nbgqbeAfagoqSGSGCM1ct9RAsLjEFLGmqZ8/"; EXPIRATION = block.number + 100000000; } function _baseURI() internal view virtual override returns (string memory) { return baseTokenURI; } function mint(uint numberOfTokens) external payable { require(onSale || msg.sender == owner(), "Not on Sale!"); require(numberOfTokens <= maxTokensPurchase, "Exceed Max Per"); require(numTokens + numberOfTokens <= MAX_TOKEN_SUPPLY, "Exceed Max Supply"); require(msg.value >= (price * numberOfTokens), "Ether value sent is not correct"); for(uint i = 0; i < numberOfTokens; i++){ if (numTokens <= MAX_TOKEN_SUPPLY) { _safeMint(msg.sender, numTokens + 1); numTokens = numTokens + 1; } } } //Staking Functions function deposit(uint256[] calldata tokenIds) external { require(canStake || msg.sender == owner(), "Can not Stake yet!"); for (uint256 i; i < tokenIds.length; i++) { safeTransferFrom( msg.sender, address(this), tokenIds[i], '' ); _deposits[msg.sender].add(tokenIds[i]); _deposit_blocks[tokenIds[i]] = block.number; } } function withdraw(uint256[] calldata tokenIds) external { require(canStake || msg.sender == owner(), "Can not Stake yet!"); claimRewards(); for (uint256 i; i < tokenIds.length; i++) { require( _deposits[msg.sender].contains(tokenIds[i]), 'Token not deposited' ); _deposits[msg.sender].remove(tokenIds[i]); CONTROL.safeTransferFrom( address(this), msg.sender, tokenIds[i], '' ); } } //Read Functions function tokensOfOwner(address owner) public view returns (uint256[] memory) { uint256 count = balanceOf(owner); uint256[] memory ids = new uint256[](count); for (uint256 i = 0; i < count; i++) { ids[i] = tokenOfOwnerByIndex(owner, i); } return ids; } function depositsOf(address account) external view returns (uint256[] memory) { EnumerableSet.UintSet storage depositSet = _deposits[account]; uint256[] memory tokenIds = new uint256[](depositSet.length()); for (uint256 i; i < depositSet.length(); i++) { tokenIds[i] = depositSet.at(i); } return tokenIds; } function calculateRewards(address account) public view returns (uint256) { uint256 rewards = 0; EnumerableSet.UintSet storage depositSet = _deposits[account]; uint256[] memory tokenIds = new uint256[](depositSet.length()); for (uint256 i; i < depositSet.length(); i++) { uint256 tokenId = _deposits[account].at(i); rewards = rewards + ( RATE * (Math.min(block.number, EXPIRATION) - _deposit_blocks[tokenId]) ); } return rewards; } function claimRewards() public { uint256 blockNum = Math.min(block.number, EXPIRATION); uint256 rewards = calculateRewards(msg.sender); uint256 numOfDepositedTokens = _deposits[msg.sender].length(); for (uint256 i; i < numOfDepositedTokens; i++) { uint256 tokenId = _deposits[msg.sender].at(i); _deposit_blocks[tokenId] = blockNum; } if (rewards > 0) { try TOKEN.transfer(msg.sender, rewards) returns (bool v) { } catch Error(string memory) {} } } function claimNewZombiePenguins(uint256[] calldata tokenIds) public { require(canStake || msg.sender == owner(), "Can not Stake yet!"); require(tokenIds.length > 0, "Must have some tokens to claim"); require(OLDZOMBIE.isApprovedForAll(msg.sender, address(this)), "Not Approved Yet"); for(uint256 i = 0; i < tokenIds.length; i++) { require(OLDZOMBIE.ownerOf(tokenIds[i]) == msg.sender, "You do not own this Penguin"); OLDZOMBIE.safeTransferFrom( msg.sender, address(this), tokenIds[i], '' ); _safeMint(msg.sender, tokenIds[i]); _safeMint(msg.sender, tokenIds[i] + 1649); } uint256 rewards = OLDZOMBIE.calculateRewards(msg.sender); try TOKEN.transfer(msg.sender, rewards) returns (bool v) { } catch Error(string memory) {} } //Setter Functions function changeOnSale() external onlyOwner(){ onSale = !onSale; } function changeCanStake() external onlyOwner(){ canStake = !canStake; } function setToken(address _token) external onlyOwner(){ TOKEN = IERC20(_token); } function setZombie(address _oldZombie) external onlyOwner(){ OLDZOMBIE = ZombiePenguins(_oldZombie); } function setExpiration(uint256 _expiration) external onlyOwner(){ EXPIRATION = _expiration; } function setRate(uint256 _rate) external onlyOwner(){ RATE = _rate; } //Utilities function withdrawAll() external onlyOwner() { require(payable(msg.sender).send(address(this).balance)); } function onERC721Received( address, address, uint256, bytes calldata ) external pure override returns (bytes4) { return IERC721Receiver.onERC721Received.selector; } }
// 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; 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 "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a >= b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a / b + (a % b == 0 ? 0 : 1); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping(bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; if (lastIndex != toDeleteIndex) { bytes32 lastvalue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastvalue; // Update the index for the moved value set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex } // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { return set._values[index]; } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function _values(Set storage set) private view returns (bytes32[] memory) { return set._values; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(Bytes32Set storage set) internal view returns (bytes32[] memory) { return _values(set._inner); } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(AddressSet storage set) internal view returns (address[] memory) { bytes32[] memory store = _values(set._inner); address[] memory result; assembly { result := store } return result; } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(UintSet storage set) internal view returns (uint256[] memory) { bytes32[] memory store = _values(set._inner); uint256[] memory result; assembly { result := store } return result; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"CONTROL","outputs":[{"internalType":"contract IERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"EXPIRATION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TOKEN_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OLDZOMBIE","outputs":[{"internalType":"contract ZombiePenguins","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RATE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOKEN","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"_deposit_blocks","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":[{"internalType":"address","name":"account","type":"address"}],"name":"calculateRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"canStake","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"changeCanStake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"changeOnSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"claimNewZombiePenguins","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"depositsOf","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"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":"maxTokensPurchase","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"onSale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[],"name":"price","outputs":[{"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":"uint256","name":"_expiration","type":"uint256"}],"name":"setExpiration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_rate","type":"uint256"}],"name":"setRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"setToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_oldZombie","type":"address"}],"name":"setZombie","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":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","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":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040527377c76bfb6c2d2fc064a175f325bb5ecf90789b6e600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555030600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073654af6e4fd2d17c475e385750825fbf0a9123509600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550610ce26011556000601260006101000a81548160ff0219169083151502179055506000601260016101000a81548160ff021916908315150217905550668e1bc9bf040000601355600a60145561271060155566058d15e17628006016553480156200015957600080fd5b506040518060400160405280600f81526020017f5a6f6d6269652050656e6775696e7300000000000000000000000000000000008152506040518060400160405280600881526020017f5a4d4250454e47530000000000000000000000000000000000000000000000008152508160009080519060200190620001de92919062000338565b508060019080519060200190620001f792919062000338565b5050506200021a6200020e6200026a60201b60201c565b6200027260201b60201c565b6040518060600160405280603681526020016200630660369139601090805190602001906200024b92919062000338565b506305f5e100436200025e9190620003e8565b601781905550620004e3565b600033905090565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b82805462000346906200044f565b90600052602060002090601f0160209004810192826200036a5760008555620003b6565b82601f106200038557805160ff1916838001178555620003b6565b82800160010185558215620003b6579182015b82811115620003b557825182559160200191906001019062000398565b5b509050620003c59190620003c9565b5090565b5b80821115620003e4576000816000905550600101620003ca565b5090565b6000620003f58262000445565b9150620004028362000445565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156200043a576200043962000485565b5b828201905092915050565b6000819050919050565b600060028204905060018216806200046857607f821691505b602082108114156200047f576200047e620004b4565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b615e1380620004f36000396000f3fe6080604052600436106102885760003560e01c8063758b01ed1161015a578063a22cb465116100c1578063d547cfb71161007a578063d547cfb7146109bf578063e3a9db1a146109ea578063e489d51014610a27578063e985e9c514610a52578063f2fde38b14610a8f578063fc8bce5114610ab857610288565b8063a22cb465146108b3578063b45392ca146108dc578063b88d4fde14610905578063bb4b57341461092e578063c87b56dd14610959578063cdb5ef001461099657610288565b806395d89b411161011357806395d89b41146107b0578063983d95ce146107db57806399f3732c146108045780639ed2780914610841578063a035b1fe1461086c578063a0712d681461089757610288565b8063758b01ed146106c457806382bfefc8146106db5780638462151c14610706578063853828b6146107435780638da5cb5b1461075a5780639551cc281461078557610288565b8063372500ab116101fe578063598b8e71116101b7578063598b8e71146105a25780636352211e146105cb57806364ab867514610608578063664e97041461064557806370a0823114610670578063715018a6146106ad57610288565b8063372500ab146104a657806342842e0e146104bd5780634953ecc7146104e65780634be56bdc146105115780634f6ccce71461053c578063515a20ba1461057957610288565b8063150b7a0211610250578063150b7a021461038457806318160ddd146103c157806323b872dd146103ec5780632f745c5914610415578063326687b91461045257806334fcf4371461047d57610288565b806301ffc9a71461028d57806306fdde03146102ca578063081812fc146102f5578063095ea7b314610332578063144fa6d71461035b575b600080fd5b34801561029957600080fd5b506102b460048036038101906102af91906147a1565b610acf565b6040516102c1919061540d565b60405180910390f35b3480156102d657600080fd5b506102df610b49565b6040516102ec9190615494565b60405180910390f35b34801561030157600080fd5b5061031c600480360381019061031791906147f3565b610bdb565b60405161032991906152e8565b60405180910390f35b34801561033e57600080fd5b50610359600480360381019061035491906146f7565b610c60565b005b34801561036757600080fd5b50610382600480360381019061037d91906144e3565b610d78565b005b34801561039057600080fd5b506103ab60048036038101906103a691906145c0565b610e38565b6040516103b89190615428565b60405180910390f35b3480156103cd57600080fd5b506103d6610e4d565b6040516103e39190615816565b60405180910390f35b3480156103f857600080fd5b50610413600480360381019061040e9190614571565b610e5a565b005b34801561042157600080fd5b5061043c600480360381019061043791906146f7565b610eba565b6040516104499190615816565b60405180910390f35b34801561045e57600080fd5b50610467610f5f565b604051610474919061540d565b60405180910390f35b34801561048957600080fd5b506104a4600480360381019061049f91906147f3565b610f72565b005b3480156104b257600080fd5b506104bb610ff8565b005b3480156104c957600080fd5b506104e460048036038101906104df9190614571565b6111d2565b005b3480156104f257600080fd5b506104fb6111f2565b604051610508919061545e565b60405180910390f35b34801561051d57600080fd5b50610526611218565b6040516105339190615479565b60405180910390f35b34801561054857600080fd5b50610563600480360381019061055e91906147f3565b61123e565b6040516105709190615816565b60405180910390f35b34801561058557600080fd5b506105a0600480360381019061059b91906147f3565b6112d5565b005b3480156105ae57600080fd5b506105c960048036038101906105c49190614733565b61135b565b005b3480156105d757600080fd5b506105f260048036038101906105ed91906147f3565b61154f565b6040516105ff91906152e8565b60405180910390f35b34801561061457600080fd5b5061062f600480360381019061062a91906144e3565b611601565b60405161063c9190615816565b60405180910390f35b34801561065157600080fd5b5061065a611792565b6040516106679190615816565b60405180910390f35b34801561067c57600080fd5b50610697600480360381019061069291906144e3565b611798565b6040516106a49190615816565b60405180910390f35b3480156106b957600080fd5b506106c2611850565b005b3480156106d057600080fd5b506106d96118d8565b005b3480156106e757600080fd5b506106f0611980565b6040516106fd9190615443565b60405180910390f35b34801561071257600080fd5b5061072d600480360381019061072891906144e3565b6119a6565b60405161073a91906153eb565b60405180910390f35b34801561074f57600080fd5b50610758611aa0565b005b34801561076657600080fd5b5061076f611b5c565b60405161077c91906152e8565b60405180910390f35b34801561079157600080fd5b5061079a611b86565b6040516107a79190615816565b60405180910390f35b3480156107bc57600080fd5b506107c5611b8c565b6040516107d29190615494565b60405180910390f35b3480156107e757600080fd5b5061080260048036038101906107fd9190614733565b611c1e565b005b34801561081057600080fd5b5061082b600480360381019061082691906147f3565b611f08565b6040516108389190615816565b60405180910390f35b34801561084d57600080fd5b50610856611f20565b604051610863919061540d565b60405180910390f35b34801561087857600080fd5b50610881611f33565b60405161088e9190615816565b60405180910390f35b6108b160048036038101906108ac91906147f3565b611f39565b005b3480156108bf57600080fd5b506108da60048036038101906108d591906146bb565b612107565b005b3480156108e857600080fd5b5061090360048036038101906108fe91906144e3565b612288565b005b34801561091157600080fd5b5061092c60048036038101906109279190614640565b612348565b005b34801561093a57600080fd5b506109436123aa565b6040516109509190615816565b60405180910390f35b34801561096557600080fd5b50610980600480360381019061097b91906147f3565b6123b0565b60405161098d9190615494565b60405180910390f35b3480156109a257600080fd5b506109bd60048036038101906109b89190614733565b612457565b005b3480156109cb57600080fd5b506109d4612a87565b6040516109e19190615494565b60405180910390f35b3480156109f657600080fd5b50610a116004803603810190610a0c91906144e3565b612b15565b604051610a1e91906153eb565b60405180910390f35b348015610a3357600080fd5b50610a3c612c5e565b604051610a499190615816565b60405180910390f35b348015610a5e57600080fd5b50610a796004803603810190610a749190614535565b612c64565b604051610a86919061540d565b60405180910390f35b348015610a9b57600080fd5b50610ab66004803603810190610ab191906144e3565b612cf8565b005b348015610ac457600080fd5b50610acd612df0565b005b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610b425750610b4182612e98565b5b9050919050565b606060008054610b5890615b45565b80601f0160208091040260200160405190810160405280929190818152602001828054610b8490615b45565b8015610bd15780601f10610ba657610100808354040283529160200191610bd1565b820191906000526020600020905b815481529060010190602001808311610bb457829003601f168201915b5050505050905090565b6000610be682612f7a565b610c25576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c1c906156b6565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610c6b8261154f565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610cdc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cd390615756565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610cfb612fe6565b73ffffffffffffffffffffffffffffffffffffffff161480610d2a5750610d2981610d24612fe6565b612c64565b5b610d69576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d60906155f6565b60405180910390fd5b610d738383612fee565b505050565b610d80612fe6565b73ffffffffffffffffffffffffffffffffffffffff16610d9e611b5c565b73ffffffffffffffffffffffffffffffffffffffff1614610df4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610deb906156f6565b60405180910390fd5b80600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600063150b7a0260e01b905095945050505050565b6000600880549050905090565b610e6b610e65612fe6565b826130a7565b610eaa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ea190615776565b60405180910390fd5b610eb5838383613185565b505050565b6000610ec583611798565b8210610f06576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610efd906154b6565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b601260009054906101000a900460ff1681565b610f7a612fe6565b73ffffffffffffffffffffffffffffffffffffffff16610f98611b5c565b73ffffffffffffffffffffffffffffffffffffffff1614610fee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fe5906156f6565b60405180910390fd5b8060168190555050565b6000611006436017546133e1565b9050600061101333611601565b9050600061105e600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206133fa565b905060005b818110156110ec5760006110be82600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002061340f90919063ffffffff16565b905084600f6000838152602001908152602001600020819055505080806110e490615b77565b915050611063565b5060008211156111cd57600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33846040518363ffffffff1660e01b81526004016111539291906153c2565b602060405180830381600087803b15801561116d57600080fd5b505af192505050801561119e57506040513d601f19601f8201168201806040525081019061119b9190614778565b60015b6111ca576111aa615ccb565b806111b557506111bb565b506111c5565b3d6000803e3d6000fd5b6111cc565b505b5b505050565b6111ed83838360405180602001604052806000815250612348565b505050565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000611248610e4d565b8210611289576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611280906157b6565b60405180910390fd5b600882815481106112c3577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b6112dd612fe6565b73ffffffffffffffffffffffffffffffffffffffff166112fb611b5c565b73ffffffffffffffffffffffffffffffffffffffff1614611351576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611348906156f6565b60405180910390fd5b8060178190555050565b601260019054906101000a900460ff16806113a85750611379611b5c565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b6113e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113de90615576565b60405180910390fd5b60005b8282905081101561154a5761144f3330858585818110611433577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9050602002013560405180602001604052806000815250612348565b6114df83838381811061148b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020020135600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002061342990919063ffffffff16565b5043600f600085858581811061151e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020020135815260200190815260200160002081905550808061154290615b77565b9150506113ea565b505050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156115f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115ef90615636565b60405180910390fd5b80915050919050565b600080600090506000600e60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000611656826133fa565b67ffffffffffffffff811115611695577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280602002602001820160405280156116c35781602001602082028036833780820191505090505b50905060005b6116d2836133fa565b81101561178657600061172c82600e60008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002061340f90919063ffffffff16565b9050600f60008281526020019081526020016000205461174e436017546133e1565b61175891906159ef565b6016546117659190615995565b85611770919061590e565b945050808061177e90615b77565b9150506116c9565b50829350505050919050565b60165481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611809576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161180090615616565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611858612fe6565b73ffffffffffffffffffffffffffffffffffffffff16611876611b5c565b73ffffffffffffffffffffffffffffffffffffffff16146118cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118c3906156f6565b60405180910390fd5b6118d66000613443565b565b6118e0612fe6565b73ffffffffffffffffffffffffffffffffffffffff166118fe611b5c565b73ffffffffffffffffffffffffffffffffffffffff1614611954576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161194b906156f6565b60405180910390fd5b601260019054906101000a900460ff1615601260016101000a81548160ff021916908315150217905550565b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b606060006119b383611798565b905060008167ffffffffffffffff8111156119f7577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051908082528060200260200182016040528015611a255781602001602082028036833780820191505090505b50905060005b82811015611a9557611a3d8582610eba565b828281518110611a76577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181815250508080611a8d90615b77565b915050611a2b565b508092505050919050565b611aa8612fe6565b73ffffffffffffffffffffffffffffffffffffffff16611ac6611b5c565b73ffffffffffffffffffffffffffffffffffffffff1614611b1c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b13906156f6565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050611b5a57600080fd5b565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60145481565b606060018054611b9b90615b45565b80601f0160208091040260200160405190810160405280929190818152602001828054611bc790615b45565b8015611c145780601f10611be957610100808354040283529160200191611c14565b820191906000526020600020905b815481529060010190602001808311611bf757829003601f168201915b5050505050905090565b601260019054906101000a900460ff1680611c6b5750611c3c611b5c565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b611caa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ca190615576565b60405180910390fd5b611cb2610ff8565b60005b82829050811015611f0357611d50838383818110611cfc577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020020135600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002061350990919063ffffffff16565b611d8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d8690615656565b60405180910390fd5b611e1f838383818110611dcb577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020020135600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002061352390919063ffffffff16565b50600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b88d4fde3033868686818110611e99577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b905060200201356040518463ffffffff1660e01b8152600401611ebe93929190615378565b600060405180830381600087803b158015611ed857600080fd5b505af1158015611eec573d6000803e3d6000fd5b505050508080611efb90615b77565b915050611cb5565b505050565b600f6020528060005260406000206000915090505481565b601260019054906101000a900460ff1681565b60135481565b601260009054906101000a900460ff1680611f865750611f57611b5c565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b611fc5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fbc906156d6565b60405180910390fd5b60145481111561200a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161200190615796565b60405180910390fd5b6015548160115461201b919061590e565b111561205c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612053906155d6565b60405180910390fd5b8060135461206a9190615995565b3410156120ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120a390615596565b60405180910390fd5b60005b8181101561210357601554601154116120f0576120da3360016011546120d5919061590e565b61353d565b60016011546120e9919061590e565b6011819055505b80806120fb90615b77565b9150506120af565b5050565b61210f612fe6565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561217d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161217490615556565b60405180910390fd5b806005600061218a612fe6565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16612237612fe6565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161227c919061540d565b60405180910390a35050565b612290612fe6565b73ffffffffffffffffffffffffffffffffffffffff166122ae611b5c565b73ffffffffffffffffffffffffffffffffffffffff1614612304576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122fb906156f6565b60405180910390fd5b80600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b612359612353612fe6565b836130a7565b612398576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161238f90615776565b60405180910390fd5b6123a48484848461355b565b50505050565b60175481565b60606123bb82612f7a565b6123fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123f190615736565b60405180910390fd5b60006124046135b7565b90506000815111612424576040518060200160405280600081525061244f565b8061242e84613649565b60405160200161243f9291906152c4565b6040516020818303038152906040525b915050919050565b601260019054906101000a900460ff16806124a45750612475611b5c565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b6124e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124da90615576565b60405180910390fd5b60008282905011612529576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612520906157f6565b60405180910390fd5b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e985e9c533306040518363ffffffff1660e01b8152600401612586929190615303565b60206040518083038186803b15801561259e57600080fd5b505afa1580156125b2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125d69190614778565b612615576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161260c906157d6565b60405180910390fd5b60005b828290508110156128fc573373ffffffffffffffffffffffffffffffffffffffff16600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e8585858181106126b1577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b905060200201356040518263ffffffff1660e01b81526004016126d49190615816565b60206040518083038186803b1580156126ec57600080fd5b505afa158015612700573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612724919061450c565b73ffffffffffffffffffffffffffffffffffffffff161461277a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161277190615676565b60405180910390fd5b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b88d4fde33308686868181106127f3577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b905060200201356040518463ffffffff1660e01b815260040161281893929190615378565b600060405180830381600087803b15801561283257600080fd5b505af1158015612846573d6000803e3d6000fd5b5050505061289333848484818110612887577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9050602002013561353d565b6128e9336106718585858181106128d3577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b905060200201356128e4919061590e565b61353d565b80806128f490615b77565b915050612618565b506000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166364ab8675336040518263ffffffff1660e01b815260040161295a91906152e8565b60206040518083038186803b15801561297257600080fd5b505afa158015612986573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129aa919061481c565b9050600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b8152600401612a099291906153c2565b602060405180830381600087803b158015612a2357600080fd5b505af1925050508015612a5457506040513d601f19601f82011682018060405250810190612a519190614778565b60015b612a8057612a60615ccb565b80612a6b5750612a71565b50612a7b565b3d6000803e3d6000fd5b612a82565b505b505050565b60108054612a9490615b45565b80601f0160208091040260200160405190810160405280929190818152602001828054612ac090615b45565b8015612b0d5780601f10612ae257610100808354040283529160200191612b0d565b820191906000526020600020905b815481529060010190602001808311612af057829003601f168201915b505050505081565b60606000600e60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000612b65826133fa565b67ffffffffffffffff811115612ba4577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051908082528060200260200182016040528015612bd25781602001602082028036833780820191505090505b50905060005b612be1836133fa565b811015612c5357612bfb818461340f90919063ffffffff16565b828281518110612c34577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181815250508080612c4b90615b77565b915050612bd8565b508092505050919050565b60155481565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b612d00612fe6565b73ffffffffffffffffffffffffffffffffffffffff16612d1e611b5c565b73ffffffffffffffffffffffffffffffffffffffff1614612d74576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d6b906156f6565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612de4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ddb906154f6565b60405180910390fd5b612ded81613443565b50565b612df8612fe6565b73ffffffffffffffffffffffffffffffffffffffff16612e16611b5c565b73ffffffffffffffffffffffffffffffffffffffff1614612e6c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e63906156f6565b60405180910390fd5b601260009054906101000a900460ff1615601260006101000a81548160ff021916908315150217905550565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612f6357507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612f735750612f72826137f6565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166130618361154f565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006130b282612f7a565b6130f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130e8906155b6565b60405180910390fd5b60006130fc8361154f565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061316b57508373ffffffffffffffffffffffffffffffffffffffff1661315384610bdb565b73ffffffffffffffffffffffffffffffffffffffff16145b8061317c575061317b8185612c64565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166131a58261154f565b73ffffffffffffffffffffffffffffffffffffffff16146131fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131f290615716565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561326b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161326290615536565b60405180910390fd5b613276838383613860565b613281600082612fee565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546132d191906159ef565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254613328919061590e565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b60008183106133f057816133f2565b825b905092915050565b600061340882600001613974565b9050919050565b600061341e8360000183613985565b60001c905092915050565b600061343b836000018360001b6139d6565b905092915050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600061351b836000018360001b613a46565b905092915050565b6000613535836000018360001b613a69565b905092915050565b613557828260405180602001604052806000815250613bef565b5050565b613566848484613185565b61357284848484613c4a565b6135b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135a8906154d6565b60405180910390fd5b50505050565b6060601080546135c690615b45565b80601f01602080910402602001604051908101604052809291908181526020018280546135f290615b45565b801561363f5780601f106136145761010080835404028352916020019161363f565b820191906000526020600020905b81548152906001019060200180831161362257829003601f168201915b5050505050905090565b60606000821415613691576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506137f1565b600082905060005b600082146136c35780806136ac90615b77565b915050600a826136bc9190615964565b9150613699565b60008167ffffffffffffffff811115613705577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156137375781602001600182028036833780820191505090505b5090505b600085146137ea5760018261375091906159ef565b9150600a8561375f9190615bc0565b603061376b919061590e565b60f81b8183815181106137a7577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856137e39190615964565b945061373b565b8093505050505b919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b61386b838383613de1565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156138ae576138a981613de6565b6138ed565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146138ec576138eb8382613e2f565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156139305761392b81613f9c565b61396f565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161461396e5761396d82826140df565b5b5b505050565b600081600001805490509050919050565b60008260000182815481106139c3577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154905092915050565b60006139e28383613a46565b613a3b578260000182908060018154018082558091505060019003906000526020600020016000909190919091505582600001805490508360010160008481526020019081526020016000208190555060019050613a40565b600090505b92915050565b600080836001016000848152602001908152602001600020541415905092915050565b60008083600101600084815260200190815260200160002054905060008114613be3576000600182613a9b91906159ef565b9050600060018660000180549050613ab391906159ef565b9050818114613b6e576000866000018281548110613afa577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154905080876000018481548110613b44577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001819055508387600101600083815260200190815260200160002081905550505b85600001805480613ba8577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050613be9565b60009150505b92915050565b613bf9838361415e565b613c066000848484613c4a565b613c45576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613c3c906154d6565b60405180910390fd5b505050565b6000613c6b8473ffffffffffffffffffffffffffffffffffffffff1661432c565b15613dd4578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613c94612fe6565b8786866040518563ffffffff1660e01b8152600401613cb6949392919061532c565b602060405180830381600087803b158015613cd057600080fd5b505af1925050508015613d0157506040513d601f19601f82011682018060405250810190613cfe91906147ca565b60015b613d84573d8060008114613d31576040519150601f19603f3d011682016040523d82523d6000602084013e613d36565b606091505b50600081511415613d7c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613d73906154d6565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613dd9565b600190505b949350505050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b60006001613e3c84611798565b613e4691906159ef565b9050600060076000848152602001908152602001600020549050818114613f2b576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600880549050613fb091906159ef565b9050600060096000848152602001908152602001600020549050600060088381548110614006577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050806008838154811061404e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200181905550816009600083815260200190815260200160002081905550600960008581526020019081526020016000206000905560088054806140c3577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b60006140ea83611798565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156141ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016141c590615696565b60405180910390fd5b6141d781612f7a565b15614217576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161420e90615516565b60405180910390fd5b61422360008383613860565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254614273919061590e565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600080823b905060008111915050919050565b600061435261434d84615862565b615831565b90508281526020810184848401111561436a57600080fd5b614375848285615b03565b509392505050565b60008135905061438c81615d81565b92915050565b6000815190506143a181615d81565b92915050565b60008083601f8401126143b957600080fd5b8235905067ffffffffffffffff8111156143d257600080fd5b6020830191508360208202830111156143ea57600080fd5b9250929050565b60008135905061440081615d98565b92915050565b60008151905061441581615d98565b92915050565b60008135905061442a81615daf565b92915050565b60008151905061443f81615daf565b92915050565b60008083601f84011261445757600080fd5b8235905067ffffffffffffffff81111561447057600080fd5b60208301915083600182028301111561448857600080fd5b9250929050565b600082601f8301126144a057600080fd5b81356144b084826020860161433f565b91505092915050565b6000813590506144c881615dc6565b92915050565b6000815190506144dd81615dc6565b92915050565b6000602082840312156144f557600080fd5b60006145038482850161437d565b91505092915050565b60006020828403121561451e57600080fd5b600061452c84828501614392565b91505092915050565b6000806040838503121561454857600080fd5b60006145568582860161437d565b92505060206145678582860161437d565b9150509250929050565b60008060006060848603121561458657600080fd5b60006145948682870161437d565b93505060206145a58682870161437d565b92505060406145b6868287016144b9565b9150509250925092565b6000806000806000608086880312156145d857600080fd5b60006145e68882890161437d565b95505060206145f78882890161437d565b9450506040614608888289016144b9565b935050606086013567ffffffffffffffff81111561462557600080fd5b61463188828901614445565b92509250509295509295909350565b6000806000806080858703121561465657600080fd5b60006146648782880161437d565b94505060206146758782880161437d565b9350506040614686878288016144b9565b925050606085013567ffffffffffffffff8111156146a357600080fd5b6146af8782880161448f565b91505092959194509250565b600080604083850312156146ce57600080fd5b60006146dc8582860161437d565b92505060206146ed858286016143f1565b9150509250929050565b6000806040838503121561470a57600080fd5b60006147188582860161437d565b9250506020614729858286016144b9565b9150509250929050565b6000806020838503121561474657600080fd5b600083013567ffffffffffffffff81111561476057600080fd5b61476c858286016143a7565b92509250509250929050565b60006020828403121561478a57600080fd5b600061479884828501614406565b91505092915050565b6000602082840312156147b357600080fd5b60006147c18482850161441b565b91505092915050565b6000602082840312156147dc57600080fd5b60006147ea84828501614430565b91505092915050565b60006020828403121561480557600080fd5b6000614813848285016144b9565b91505092915050565b60006020828403121561482e57600080fd5b600061483c848285016144ce565b91505092915050565b600061485183836152a6565b60208301905092915050565b61486681615a23565b82525050565b6000614877826158a2565b61488181856158d0565b935061488c83615892565b8060005b838110156148bd5781516148a48882614845565b97506148af836158c3565b925050600181019050614890565b5085935050505092915050565b6148d381615a35565b82525050565b6148e281615a41565b82525050565b60006148f3826158ad565b6148fd81856158e1565b935061490d818560208601615b12565b61491681615cad565b840191505092915050565b61492a81615a97565b82525050565b61493981615abb565b82525050565b61494881615adf565b82525050565b6000614959826158b8565b61496381856158f2565b9350614973818560208601615b12565b61497c81615cad565b840191505092915050565b6000614992826158b8565b61499c8185615903565b93506149ac818560208601615b12565b80840191505092915050565b60006149c5602b836158f2565b91507f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008301527f74206f6620626f756e64730000000000000000000000000000000000000000006020830152604082019050919050565b6000614a2b6032836158f2565b91507f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008301527f63656976657220696d706c656d656e74657200000000000000000000000000006020830152604082019050919050565b6000614a916026836158f2565b91507f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008301527f64647265737300000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614af7601c836158f2565b91507f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006000830152602082019050919050565b6000614b376024836158f2565b91507f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008301527f72657373000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614b9d6019836158f2565b91507f4552433732313a20617070726f766520746f2063616c6c6572000000000000006000830152602082019050919050565b6000614bdd6012836158f2565b91507f43616e206e6f74205374616b65207965742100000000000000000000000000006000830152602082019050919050565b6000614c1d601f836158f2565b91507f45746865722076616c75652073656e74206973206e6f7420636f7272656374006000830152602082019050919050565b6000614c5d602c836158f2565b91507f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b6000614cc36011836158f2565b91507f457863656564204d617820537570706c790000000000000000000000000000006000830152602082019050919050565b6000614d036038836158f2565b91507f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008301527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006020830152604082019050919050565b6000614d69602a836158f2565b91507f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008301527f726f2061646472657373000000000000000000000000000000000000000000006020830152604082019050919050565b6000614dcf6029836158f2565b91507f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008301527f656e7420746f6b656e00000000000000000000000000000000000000000000006020830152604082019050919050565b6000614e356013836158f2565b91507f546f6b656e206e6f74206465706f7369746564000000000000000000000000006000830152602082019050919050565b6000614e75601b836158f2565b91507f596f7520646f206e6f74206f776e20746869732050656e6775696e00000000006000830152602082019050919050565b6000614eb56020836158f2565b91507f4552433732313a206d696e7420746f20746865207a65726f20616464726573736000830152602082019050919050565b6000614ef5602c836158f2565b91507f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b6000614f5b600c836158f2565b91507f4e6f74206f6e2053616c652100000000000000000000000000000000000000006000830152602082019050919050565b6000614f9b6020836158f2565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b6000614fdb6029836158f2565b91507f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008301527f73206e6f74206f776e00000000000000000000000000000000000000000000006020830152604082019050919050565b6000615041602f836158f2565b91507f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008301527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006020830152604082019050919050565b60006150a76021836158f2565b91507f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008301527f72000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b600061510d6000836158e1565b9150600082019050919050565b60006151276031836158f2565b91507f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008301527f776e6572206e6f7220617070726f7665640000000000000000000000000000006020830152604082019050919050565b600061518d600e836158f2565b91507f457863656564204d6178205065720000000000000000000000000000000000006000830152602082019050919050565b60006151cd602c836158f2565b91507f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008301527f7574206f6620626f756e647300000000000000000000000000000000000000006020830152604082019050919050565b60006152336010836158f2565b91507f4e6f7420417070726f76656420596574000000000000000000000000000000006000830152602082019050919050565b6000615273601e836158f2565b91507f4d757374206861766520736f6d6520746f6b656e7320746f20636c61696d00006000830152602082019050919050565b6152af81615a8d565b82525050565b6152be81615a8d565b82525050565b60006152d08285614987565b91506152dc8284614987565b91508190509392505050565b60006020820190506152fd600083018461485d565b92915050565b6000604082019050615318600083018561485d565b615325602083018461485d565b9392505050565b6000608082019050615341600083018761485d565b61534e602083018661485d565b61535b60408301856152b5565b818103606083015261536d81846148e8565b905095945050505050565b600060808201905061538d600083018661485d565b61539a602083018561485d565b6153a760408301846152b5565b81810360608301526153b881615100565b9050949350505050565b60006040820190506153d7600083018561485d565b6153e460208301846152b5565b9392505050565b60006020820190508181036000830152615405818461486c565b905092915050565b600060208201905061542260008301846148ca565b92915050565b600060208201905061543d60008301846148d9565b92915050565b60006020820190506154586000830184614921565b92915050565b60006020820190506154736000830184614930565b92915050565b600060208201905061548e600083018461493f565b92915050565b600060208201905081810360008301526154ae818461494e565b905092915050565b600060208201905081810360008301526154cf816149b8565b9050919050565b600060208201905081810360008301526154ef81614a1e565b9050919050565b6000602082019050818103600083015261550f81614a84565b9050919050565b6000602082019050818103600083015261552f81614aea565b9050919050565b6000602082019050818103600083015261554f81614b2a565b9050919050565b6000602082019050818103600083015261556f81614b90565b9050919050565b6000602082019050818103600083015261558f81614bd0565b9050919050565b600060208201905081810360008301526155af81614c10565b9050919050565b600060208201905081810360008301526155cf81614c50565b9050919050565b600060208201905081810360008301526155ef81614cb6565b9050919050565b6000602082019050818103600083015261560f81614cf6565b9050919050565b6000602082019050818103600083015261562f81614d5c565b9050919050565b6000602082019050818103600083015261564f81614dc2565b9050919050565b6000602082019050818103600083015261566f81614e28565b9050919050565b6000602082019050818103600083015261568f81614e68565b9050919050565b600060208201905081810360008301526156af81614ea8565b9050919050565b600060208201905081810360008301526156cf81614ee8565b9050919050565b600060208201905081810360008301526156ef81614f4e565b9050919050565b6000602082019050818103600083015261570f81614f8e565b9050919050565b6000602082019050818103600083015261572f81614fce565b9050919050565b6000602082019050818103600083015261574f81615034565b9050919050565b6000602082019050818103600083015261576f8161509a565b9050919050565b6000602082019050818103600083015261578f8161511a565b9050919050565b600060208201905081810360008301526157af81615180565b9050919050565b600060208201905081810360008301526157cf816151c0565b9050919050565b600060208201905081810360008301526157ef81615226565b9050919050565b6000602082019050818103600083015261580f81615266565b9050919050565b600060208201905061582b60008301846152b5565b92915050565b6000604051905081810181811067ffffffffffffffff8211171561585857615857615c7e565b5b8060405250919050565b600067ffffffffffffffff82111561587d5761587c615c7e565b5b601f19601f8301169050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600061591982615a8d565b915061592483615a8d565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561595957615958615bf1565b5b828201905092915050565b600061596f82615a8d565b915061597a83615a8d565b92508261598a57615989615c20565b5b828204905092915050565b60006159a082615a8d565b91506159ab83615a8d565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156159e4576159e3615bf1565b5b828202905092915050565b60006159fa82615a8d565b9150615a0583615a8d565b925082821015615a1857615a17615bf1565b5b828203905092915050565b6000615a2e82615a6d565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000615aa282615aa9565b9050919050565b6000615ab482615a6d565b9050919050565b6000615ac682615acd565b9050919050565b6000615ad882615a6d565b9050919050565b6000615aea82615af1565b9050919050565b6000615afc82615a6d565b9050919050565b82818337600083830152505050565b60005b83811015615b30578082015181840152602081019050615b15565b83811115615b3f576000848401525b50505050565b60006002820490506001821680615b5d57607f821691505b60208210811415615b7157615b70615c4f565b5b50919050565b6000615b8282615a8d565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415615bb557615bb4615bf1565b5b600182019050919050565b6000615bcb82615a8d565b9150615bd683615a8d565b925082615be657615be5615c20565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160e01c9050919050565b600060443d1015615cdb57615d7e565b60046000803e615cec600051615cbe565b6308c379a08114615cfd5750615d7e565b60405160043d036004823e80513d602482011167ffffffffffffffff82111715615d2957505050615d7e565b808201805167ffffffffffffffff811115615d48575050505050615d7e565b8060208301013d8501811115615d6357505050505050615d7e565b615d6c82615cad565b60208401016040528296505050505050505b90565b615d8a81615a23565b8114615d9557600080fd5b50565b615da181615a35565b8114615dac57600080fd5b50565b615db881615a41565b8114615dc357600080fd5b50565b615dcf81615a8d565b8114615dda57600080fd5b5056fea2646970667358221220097a1a476e78f7f06a751919a3363f24f151ffbd660882adbc79f5ac8e85884564736f6c63430008000033697066733a2f2f516d5568755253615041386e6267716265416661676f7153475347434d316374395241734c6a45464c476d715a382f
Deployed Bytecode
0x6080604052600436106102885760003560e01c8063758b01ed1161015a578063a22cb465116100c1578063d547cfb71161007a578063d547cfb7146109bf578063e3a9db1a146109ea578063e489d51014610a27578063e985e9c514610a52578063f2fde38b14610a8f578063fc8bce5114610ab857610288565b8063a22cb465146108b3578063b45392ca146108dc578063b88d4fde14610905578063bb4b57341461092e578063c87b56dd14610959578063cdb5ef001461099657610288565b806395d89b411161011357806395d89b41146107b0578063983d95ce146107db57806399f3732c146108045780639ed2780914610841578063a035b1fe1461086c578063a0712d681461089757610288565b8063758b01ed146106c457806382bfefc8146106db5780638462151c14610706578063853828b6146107435780638da5cb5b1461075a5780639551cc281461078557610288565b8063372500ab116101fe578063598b8e71116101b7578063598b8e71146105a25780636352211e146105cb57806364ab867514610608578063664e97041461064557806370a0823114610670578063715018a6146106ad57610288565b8063372500ab146104a657806342842e0e146104bd5780634953ecc7146104e65780634be56bdc146105115780634f6ccce71461053c578063515a20ba1461057957610288565b8063150b7a0211610250578063150b7a021461038457806318160ddd146103c157806323b872dd146103ec5780632f745c5914610415578063326687b91461045257806334fcf4371461047d57610288565b806301ffc9a71461028d57806306fdde03146102ca578063081812fc146102f5578063095ea7b314610332578063144fa6d71461035b575b600080fd5b34801561029957600080fd5b506102b460048036038101906102af91906147a1565b610acf565b6040516102c1919061540d565b60405180910390f35b3480156102d657600080fd5b506102df610b49565b6040516102ec9190615494565b60405180910390f35b34801561030157600080fd5b5061031c600480360381019061031791906147f3565b610bdb565b60405161032991906152e8565b60405180910390f35b34801561033e57600080fd5b50610359600480360381019061035491906146f7565b610c60565b005b34801561036757600080fd5b50610382600480360381019061037d91906144e3565b610d78565b005b34801561039057600080fd5b506103ab60048036038101906103a691906145c0565b610e38565b6040516103b89190615428565b60405180910390f35b3480156103cd57600080fd5b506103d6610e4d565b6040516103e39190615816565b60405180910390f35b3480156103f857600080fd5b50610413600480360381019061040e9190614571565b610e5a565b005b34801561042157600080fd5b5061043c600480360381019061043791906146f7565b610eba565b6040516104499190615816565b60405180910390f35b34801561045e57600080fd5b50610467610f5f565b604051610474919061540d565b60405180910390f35b34801561048957600080fd5b506104a4600480360381019061049f91906147f3565b610f72565b005b3480156104b257600080fd5b506104bb610ff8565b005b3480156104c957600080fd5b506104e460048036038101906104df9190614571565b6111d2565b005b3480156104f257600080fd5b506104fb6111f2565b604051610508919061545e565b60405180910390f35b34801561051d57600080fd5b50610526611218565b6040516105339190615479565b60405180910390f35b34801561054857600080fd5b50610563600480360381019061055e91906147f3565b61123e565b6040516105709190615816565b60405180910390f35b34801561058557600080fd5b506105a0600480360381019061059b91906147f3565b6112d5565b005b3480156105ae57600080fd5b506105c960048036038101906105c49190614733565b61135b565b005b3480156105d757600080fd5b506105f260048036038101906105ed91906147f3565b61154f565b6040516105ff91906152e8565b60405180910390f35b34801561061457600080fd5b5061062f600480360381019061062a91906144e3565b611601565b60405161063c9190615816565b60405180910390f35b34801561065157600080fd5b5061065a611792565b6040516106679190615816565b60405180910390f35b34801561067c57600080fd5b50610697600480360381019061069291906144e3565b611798565b6040516106a49190615816565b60405180910390f35b3480156106b957600080fd5b506106c2611850565b005b3480156106d057600080fd5b506106d96118d8565b005b3480156106e757600080fd5b506106f0611980565b6040516106fd9190615443565b60405180910390f35b34801561071257600080fd5b5061072d600480360381019061072891906144e3565b6119a6565b60405161073a91906153eb565b60405180910390f35b34801561074f57600080fd5b50610758611aa0565b005b34801561076657600080fd5b5061076f611b5c565b60405161077c91906152e8565b60405180910390f35b34801561079157600080fd5b5061079a611b86565b6040516107a79190615816565b60405180910390f35b3480156107bc57600080fd5b506107c5611b8c565b6040516107d29190615494565b60405180910390f35b3480156107e757600080fd5b5061080260048036038101906107fd9190614733565b611c1e565b005b34801561081057600080fd5b5061082b600480360381019061082691906147f3565b611f08565b6040516108389190615816565b60405180910390f35b34801561084d57600080fd5b50610856611f20565b604051610863919061540d565b60405180910390f35b34801561087857600080fd5b50610881611f33565b60405161088e9190615816565b60405180910390f35b6108b160048036038101906108ac91906147f3565b611f39565b005b3480156108bf57600080fd5b506108da60048036038101906108d591906146bb565b612107565b005b3480156108e857600080fd5b5061090360048036038101906108fe91906144e3565b612288565b005b34801561091157600080fd5b5061092c60048036038101906109279190614640565b612348565b005b34801561093a57600080fd5b506109436123aa565b6040516109509190615816565b60405180910390f35b34801561096557600080fd5b50610980600480360381019061097b91906147f3565b6123b0565b60405161098d9190615494565b60405180910390f35b3480156109a257600080fd5b506109bd60048036038101906109b89190614733565b612457565b005b3480156109cb57600080fd5b506109d4612a87565b6040516109e19190615494565b60405180910390f35b3480156109f657600080fd5b50610a116004803603810190610a0c91906144e3565b612b15565b604051610a1e91906153eb565b60405180910390f35b348015610a3357600080fd5b50610a3c612c5e565b604051610a499190615816565b60405180910390f35b348015610a5e57600080fd5b50610a796004803603810190610a749190614535565b612c64565b604051610a86919061540d565b60405180910390f35b348015610a9b57600080fd5b50610ab66004803603810190610ab191906144e3565b612cf8565b005b348015610ac457600080fd5b50610acd612df0565b005b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610b425750610b4182612e98565b5b9050919050565b606060008054610b5890615b45565b80601f0160208091040260200160405190810160405280929190818152602001828054610b8490615b45565b8015610bd15780601f10610ba657610100808354040283529160200191610bd1565b820191906000526020600020905b815481529060010190602001808311610bb457829003601f168201915b5050505050905090565b6000610be682612f7a565b610c25576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c1c906156b6565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610c6b8261154f565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610cdc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cd390615756565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610cfb612fe6565b73ffffffffffffffffffffffffffffffffffffffff161480610d2a5750610d2981610d24612fe6565b612c64565b5b610d69576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d60906155f6565b60405180910390fd5b610d738383612fee565b505050565b610d80612fe6565b73ffffffffffffffffffffffffffffffffffffffff16610d9e611b5c565b73ffffffffffffffffffffffffffffffffffffffff1614610df4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610deb906156f6565b60405180910390fd5b80600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600063150b7a0260e01b905095945050505050565b6000600880549050905090565b610e6b610e65612fe6565b826130a7565b610eaa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ea190615776565b60405180910390fd5b610eb5838383613185565b505050565b6000610ec583611798565b8210610f06576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610efd906154b6565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b601260009054906101000a900460ff1681565b610f7a612fe6565b73ffffffffffffffffffffffffffffffffffffffff16610f98611b5c565b73ffffffffffffffffffffffffffffffffffffffff1614610fee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fe5906156f6565b60405180910390fd5b8060168190555050565b6000611006436017546133e1565b9050600061101333611601565b9050600061105e600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206133fa565b905060005b818110156110ec5760006110be82600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002061340f90919063ffffffff16565b905084600f6000838152602001908152602001600020819055505080806110e490615b77565b915050611063565b5060008211156111cd57600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33846040518363ffffffff1660e01b81526004016111539291906153c2565b602060405180830381600087803b15801561116d57600080fd5b505af192505050801561119e57506040513d601f19601f8201168201806040525081019061119b9190614778565b60015b6111ca576111aa615ccb565b806111b557506111bb565b506111c5565b3d6000803e3d6000fd5b6111cc565b505b5b505050565b6111ed83838360405180602001604052806000815250612348565b505050565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000611248610e4d565b8210611289576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611280906157b6565b60405180910390fd5b600882815481106112c3577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b6112dd612fe6565b73ffffffffffffffffffffffffffffffffffffffff166112fb611b5c565b73ffffffffffffffffffffffffffffffffffffffff1614611351576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611348906156f6565b60405180910390fd5b8060178190555050565b601260019054906101000a900460ff16806113a85750611379611b5c565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b6113e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113de90615576565b60405180910390fd5b60005b8282905081101561154a5761144f3330858585818110611433577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9050602002013560405180602001604052806000815250612348565b6114df83838381811061148b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020020135600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002061342990919063ffffffff16565b5043600f600085858581811061151e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020020135815260200190815260200160002081905550808061154290615b77565b9150506113ea565b505050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156115f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115ef90615636565b60405180910390fd5b80915050919050565b600080600090506000600e60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000611656826133fa565b67ffffffffffffffff811115611695577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280602002602001820160405280156116c35781602001602082028036833780820191505090505b50905060005b6116d2836133fa565b81101561178657600061172c82600e60008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002061340f90919063ffffffff16565b9050600f60008281526020019081526020016000205461174e436017546133e1565b61175891906159ef565b6016546117659190615995565b85611770919061590e565b945050808061177e90615b77565b9150506116c9565b50829350505050919050565b60165481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611809576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161180090615616565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611858612fe6565b73ffffffffffffffffffffffffffffffffffffffff16611876611b5c565b73ffffffffffffffffffffffffffffffffffffffff16146118cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118c3906156f6565b60405180910390fd5b6118d66000613443565b565b6118e0612fe6565b73ffffffffffffffffffffffffffffffffffffffff166118fe611b5c565b73ffffffffffffffffffffffffffffffffffffffff1614611954576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161194b906156f6565b60405180910390fd5b601260019054906101000a900460ff1615601260016101000a81548160ff021916908315150217905550565b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b606060006119b383611798565b905060008167ffffffffffffffff8111156119f7577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051908082528060200260200182016040528015611a255781602001602082028036833780820191505090505b50905060005b82811015611a9557611a3d8582610eba565b828281518110611a76577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181815250508080611a8d90615b77565b915050611a2b565b508092505050919050565b611aa8612fe6565b73ffffffffffffffffffffffffffffffffffffffff16611ac6611b5c565b73ffffffffffffffffffffffffffffffffffffffff1614611b1c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b13906156f6565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050611b5a57600080fd5b565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60145481565b606060018054611b9b90615b45565b80601f0160208091040260200160405190810160405280929190818152602001828054611bc790615b45565b8015611c145780601f10611be957610100808354040283529160200191611c14565b820191906000526020600020905b815481529060010190602001808311611bf757829003601f168201915b5050505050905090565b601260019054906101000a900460ff1680611c6b5750611c3c611b5c565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b611caa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ca190615576565b60405180910390fd5b611cb2610ff8565b60005b82829050811015611f0357611d50838383818110611cfc577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020020135600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002061350990919063ffffffff16565b611d8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d8690615656565b60405180910390fd5b611e1f838383818110611dcb577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020020135600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002061352390919063ffffffff16565b50600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b88d4fde3033868686818110611e99577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b905060200201356040518463ffffffff1660e01b8152600401611ebe93929190615378565b600060405180830381600087803b158015611ed857600080fd5b505af1158015611eec573d6000803e3d6000fd5b505050508080611efb90615b77565b915050611cb5565b505050565b600f6020528060005260406000206000915090505481565b601260019054906101000a900460ff1681565b60135481565b601260009054906101000a900460ff1680611f865750611f57611b5c565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b611fc5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fbc906156d6565b60405180910390fd5b60145481111561200a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161200190615796565b60405180910390fd5b6015548160115461201b919061590e565b111561205c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612053906155d6565b60405180910390fd5b8060135461206a9190615995565b3410156120ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120a390615596565b60405180910390fd5b60005b8181101561210357601554601154116120f0576120da3360016011546120d5919061590e565b61353d565b60016011546120e9919061590e565b6011819055505b80806120fb90615b77565b9150506120af565b5050565b61210f612fe6565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561217d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161217490615556565b60405180910390fd5b806005600061218a612fe6565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16612237612fe6565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161227c919061540d565b60405180910390a35050565b612290612fe6565b73ffffffffffffffffffffffffffffffffffffffff166122ae611b5c565b73ffffffffffffffffffffffffffffffffffffffff1614612304576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122fb906156f6565b60405180910390fd5b80600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b612359612353612fe6565b836130a7565b612398576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161238f90615776565b60405180910390fd5b6123a48484848461355b565b50505050565b60175481565b60606123bb82612f7a565b6123fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123f190615736565b60405180910390fd5b60006124046135b7565b90506000815111612424576040518060200160405280600081525061244f565b8061242e84613649565b60405160200161243f9291906152c4565b6040516020818303038152906040525b915050919050565b601260019054906101000a900460ff16806124a45750612475611b5c565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b6124e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124da90615576565b60405180910390fd5b60008282905011612529576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612520906157f6565b60405180910390fd5b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e985e9c533306040518363ffffffff1660e01b8152600401612586929190615303565b60206040518083038186803b15801561259e57600080fd5b505afa1580156125b2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125d69190614778565b612615576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161260c906157d6565b60405180910390fd5b60005b828290508110156128fc573373ffffffffffffffffffffffffffffffffffffffff16600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e8585858181106126b1577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b905060200201356040518263ffffffff1660e01b81526004016126d49190615816565b60206040518083038186803b1580156126ec57600080fd5b505afa158015612700573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612724919061450c565b73ffffffffffffffffffffffffffffffffffffffff161461277a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161277190615676565b60405180910390fd5b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b88d4fde33308686868181106127f3577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b905060200201356040518463ffffffff1660e01b815260040161281893929190615378565b600060405180830381600087803b15801561283257600080fd5b505af1158015612846573d6000803e3d6000fd5b5050505061289333848484818110612887577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9050602002013561353d565b6128e9336106718585858181106128d3577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b905060200201356128e4919061590e565b61353d565b80806128f490615b77565b915050612618565b506000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166364ab8675336040518263ffffffff1660e01b815260040161295a91906152e8565b60206040518083038186803b15801561297257600080fd5b505afa158015612986573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129aa919061481c565b9050600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b8152600401612a099291906153c2565b602060405180830381600087803b158015612a2357600080fd5b505af1925050508015612a5457506040513d601f19601f82011682018060405250810190612a519190614778565b60015b612a8057612a60615ccb565b80612a6b5750612a71565b50612a7b565b3d6000803e3d6000fd5b612a82565b505b505050565b60108054612a9490615b45565b80601f0160208091040260200160405190810160405280929190818152602001828054612ac090615b45565b8015612b0d5780601f10612ae257610100808354040283529160200191612b0d565b820191906000526020600020905b815481529060010190602001808311612af057829003601f168201915b505050505081565b60606000600e60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000612b65826133fa565b67ffffffffffffffff811115612ba4577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051908082528060200260200182016040528015612bd25781602001602082028036833780820191505090505b50905060005b612be1836133fa565b811015612c5357612bfb818461340f90919063ffffffff16565b828281518110612c34577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181815250508080612c4b90615b77565b915050612bd8565b508092505050919050565b60155481565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b612d00612fe6565b73ffffffffffffffffffffffffffffffffffffffff16612d1e611b5c565b73ffffffffffffffffffffffffffffffffffffffff1614612d74576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d6b906156f6565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612de4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ddb906154f6565b60405180910390fd5b612ded81613443565b50565b612df8612fe6565b73ffffffffffffffffffffffffffffffffffffffff16612e16611b5c565b73ffffffffffffffffffffffffffffffffffffffff1614612e6c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e63906156f6565b60405180910390fd5b601260009054906101000a900460ff1615601260006101000a81548160ff021916908315150217905550565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612f6357507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612f735750612f72826137f6565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166130618361154f565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006130b282612f7a565b6130f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130e8906155b6565b60405180910390fd5b60006130fc8361154f565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061316b57508373ffffffffffffffffffffffffffffffffffffffff1661315384610bdb565b73ffffffffffffffffffffffffffffffffffffffff16145b8061317c575061317b8185612c64565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166131a58261154f565b73ffffffffffffffffffffffffffffffffffffffff16146131fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131f290615716565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561326b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161326290615536565b60405180910390fd5b613276838383613860565b613281600082612fee565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546132d191906159ef565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254613328919061590e565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b60008183106133f057816133f2565b825b905092915050565b600061340882600001613974565b9050919050565b600061341e8360000183613985565b60001c905092915050565b600061343b836000018360001b6139d6565b905092915050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600061351b836000018360001b613a46565b905092915050565b6000613535836000018360001b613a69565b905092915050565b613557828260405180602001604052806000815250613bef565b5050565b613566848484613185565b61357284848484613c4a565b6135b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135a8906154d6565b60405180910390fd5b50505050565b6060601080546135c690615b45565b80601f01602080910402602001604051908101604052809291908181526020018280546135f290615b45565b801561363f5780601f106136145761010080835404028352916020019161363f565b820191906000526020600020905b81548152906001019060200180831161362257829003601f168201915b5050505050905090565b60606000821415613691576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506137f1565b600082905060005b600082146136c35780806136ac90615b77565b915050600a826136bc9190615964565b9150613699565b60008167ffffffffffffffff811115613705577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156137375781602001600182028036833780820191505090505b5090505b600085146137ea5760018261375091906159ef565b9150600a8561375f9190615bc0565b603061376b919061590e565b60f81b8183815181106137a7577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856137e39190615964565b945061373b565b8093505050505b919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b61386b838383613de1565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156138ae576138a981613de6565b6138ed565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146138ec576138eb8382613e2f565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156139305761392b81613f9c565b61396f565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161461396e5761396d82826140df565b5b5b505050565b600081600001805490509050919050565b60008260000182815481106139c3577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154905092915050565b60006139e28383613a46565b613a3b578260000182908060018154018082558091505060019003906000526020600020016000909190919091505582600001805490508360010160008481526020019081526020016000208190555060019050613a40565b600090505b92915050565b600080836001016000848152602001908152602001600020541415905092915050565b60008083600101600084815260200190815260200160002054905060008114613be3576000600182613a9b91906159ef565b9050600060018660000180549050613ab391906159ef565b9050818114613b6e576000866000018281548110613afa577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154905080876000018481548110613b44577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001819055508387600101600083815260200190815260200160002081905550505b85600001805480613ba8577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050613be9565b60009150505b92915050565b613bf9838361415e565b613c066000848484613c4a565b613c45576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613c3c906154d6565b60405180910390fd5b505050565b6000613c6b8473ffffffffffffffffffffffffffffffffffffffff1661432c565b15613dd4578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613c94612fe6565b8786866040518563ffffffff1660e01b8152600401613cb6949392919061532c565b602060405180830381600087803b158015613cd057600080fd5b505af1925050508015613d0157506040513d601f19601f82011682018060405250810190613cfe91906147ca565b60015b613d84573d8060008114613d31576040519150601f19603f3d011682016040523d82523d6000602084013e613d36565b606091505b50600081511415613d7c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613d73906154d6565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613dd9565b600190505b949350505050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b60006001613e3c84611798565b613e4691906159ef565b9050600060076000848152602001908152602001600020549050818114613f2b576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600880549050613fb091906159ef565b9050600060096000848152602001908152602001600020549050600060088381548110614006577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050806008838154811061404e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200181905550816009600083815260200190815260200160002081905550600960008581526020019081526020016000206000905560088054806140c3577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b60006140ea83611798565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156141ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016141c590615696565b60405180910390fd5b6141d781612f7a565b15614217576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161420e90615516565b60405180910390fd5b61422360008383613860565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254614273919061590e565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600080823b905060008111915050919050565b600061435261434d84615862565b615831565b90508281526020810184848401111561436a57600080fd5b614375848285615b03565b509392505050565b60008135905061438c81615d81565b92915050565b6000815190506143a181615d81565b92915050565b60008083601f8401126143b957600080fd5b8235905067ffffffffffffffff8111156143d257600080fd5b6020830191508360208202830111156143ea57600080fd5b9250929050565b60008135905061440081615d98565b92915050565b60008151905061441581615d98565b92915050565b60008135905061442a81615daf565b92915050565b60008151905061443f81615daf565b92915050565b60008083601f84011261445757600080fd5b8235905067ffffffffffffffff81111561447057600080fd5b60208301915083600182028301111561448857600080fd5b9250929050565b600082601f8301126144a057600080fd5b81356144b084826020860161433f565b91505092915050565b6000813590506144c881615dc6565b92915050565b6000815190506144dd81615dc6565b92915050565b6000602082840312156144f557600080fd5b60006145038482850161437d565b91505092915050565b60006020828403121561451e57600080fd5b600061452c84828501614392565b91505092915050565b6000806040838503121561454857600080fd5b60006145568582860161437d565b92505060206145678582860161437d565b9150509250929050565b60008060006060848603121561458657600080fd5b60006145948682870161437d565b93505060206145a58682870161437d565b92505060406145b6868287016144b9565b9150509250925092565b6000806000806000608086880312156145d857600080fd5b60006145e68882890161437d565b95505060206145f78882890161437d565b9450506040614608888289016144b9565b935050606086013567ffffffffffffffff81111561462557600080fd5b61463188828901614445565b92509250509295509295909350565b6000806000806080858703121561465657600080fd5b60006146648782880161437d565b94505060206146758782880161437d565b9350506040614686878288016144b9565b925050606085013567ffffffffffffffff8111156146a357600080fd5b6146af8782880161448f565b91505092959194509250565b600080604083850312156146ce57600080fd5b60006146dc8582860161437d565b92505060206146ed858286016143f1565b9150509250929050565b6000806040838503121561470a57600080fd5b60006147188582860161437d565b9250506020614729858286016144b9565b9150509250929050565b6000806020838503121561474657600080fd5b600083013567ffffffffffffffff81111561476057600080fd5b61476c858286016143a7565b92509250509250929050565b60006020828403121561478a57600080fd5b600061479884828501614406565b91505092915050565b6000602082840312156147b357600080fd5b60006147c18482850161441b565b91505092915050565b6000602082840312156147dc57600080fd5b60006147ea84828501614430565b91505092915050565b60006020828403121561480557600080fd5b6000614813848285016144b9565b91505092915050565b60006020828403121561482e57600080fd5b600061483c848285016144ce565b91505092915050565b600061485183836152a6565b60208301905092915050565b61486681615a23565b82525050565b6000614877826158a2565b61488181856158d0565b935061488c83615892565b8060005b838110156148bd5781516148a48882614845565b97506148af836158c3565b925050600181019050614890565b5085935050505092915050565b6148d381615a35565b82525050565b6148e281615a41565b82525050565b60006148f3826158ad565b6148fd81856158e1565b935061490d818560208601615b12565b61491681615cad565b840191505092915050565b61492a81615a97565b82525050565b61493981615abb565b82525050565b61494881615adf565b82525050565b6000614959826158b8565b61496381856158f2565b9350614973818560208601615b12565b61497c81615cad565b840191505092915050565b6000614992826158b8565b61499c8185615903565b93506149ac818560208601615b12565b80840191505092915050565b60006149c5602b836158f2565b91507f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008301527f74206f6620626f756e64730000000000000000000000000000000000000000006020830152604082019050919050565b6000614a2b6032836158f2565b91507f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008301527f63656976657220696d706c656d656e74657200000000000000000000000000006020830152604082019050919050565b6000614a916026836158f2565b91507f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008301527f64647265737300000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614af7601c836158f2565b91507f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006000830152602082019050919050565b6000614b376024836158f2565b91507f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008301527f72657373000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614b9d6019836158f2565b91507f4552433732313a20617070726f766520746f2063616c6c6572000000000000006000830152602082019050919050565b6000614bdd6012836158f2565b91507f43616e206e6f74205374616b65207965742100000000000000000000000000006000830152602082019050919050565b6000614c1d601f836158f2565b91507f45746865722076616c75652073656e74206973206e6f7420636f7272656374006000830152602082019050919050565b6000614c5d602c836158f2565b91507f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b6000614cc36011836158f2565b91507f457863656564204d617820537570706c790000000000000000000000000000006000830152602082019050919050565b6000614d036038836158f2565b91507f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008301527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006020830152604082019050919050565b6000614d69602a836158f2565b91507f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008301527f726f2061646472657373000000000000000000000000000000000000000000006020830152604082019050919050565b6000614dcf6029836158f2565b91507f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008301527f656e7420746f6b656e00000000000000000000000000000000000000000000006020830152604082019050919050565b6000614e356013836158f2565b91507f546f6b656e206e6f74206465706f7369746564000000000000000000000000006000830152602082019050919050565b6000614e75601b836158f2565b91507f596f7520646f206e6f74206f776e20746869732050656e6775696e00000000006000830152602082019050919050565b6000614eb56020836158f2565b91507f4552433732313a206d696e7420746f20746865207a65726f20616464726573736000830152602082019050919050565b6000614ef5602c836158f2565b91507f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b6000614f5b600c836158f2565b91507f4e6f74206f6e2053616c652100000000000000000000000000000000000000006000830152602082019050919050565b6000614f9b6020836158f2565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b6000614fdb6029836158f2565b91507f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008301527f73206e6f74206f776e00000000000000000000000000000000000000000000006020830152604082019050919050565b6000615041602f836158f2565b91507f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008301527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006020830152604082019050919050565b60006150a76021836158f2565b91507f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008301527f72000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b600061510d6000836158e1565b9150600082019050919050565b60006151276031836158f2565b91507f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008301527f776e6572206e6f7220617070726f7665640000000000000000000000000000006020830152604082019050919050565b600061518d600e836158f2565b91507f457863656564204d6178205065720000000000000000000000000000000000006000830152602082019050919050565b60006151cd602c836158f2565b91507f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008301527f7574206f6620626f756e647300000000000000000000000000000000000000006020830152604082019050919050565b60006152336010836158f2565b91507f4e6f7420417070726f76656420596574000000000000000000000000000000006000830152602082019050919050565b6000615273601e836158f2565b91507f4d757374206861766520736f6d6520746f6b656e7320746f20636c61696d00006000830152602082019050919050565b6152af81615a8d565b82525050565b6152be81615a8d565b82525050565b60006152d08285614987565b91506152dc8284614987565b91508190509392505050565b60006020820190506152fd600083018461485d565b92915050565b6000604082019050615318600083018561485d565b615325602083018461485d565b9392505050565b6000608082019050615341600083018761485d565b61534e602083018661485d565b61535b60408301856152b5565b818103606083015261536d81846148e8565b905095945050505050565b600060808201905061538d600083018661485d565b61539a602083018561485d565b6153a760408301846152b5565b81810360608301526153b881615100565b9050949350505050565b60006040820190506153d7600083018561485d565b6153e460208301846152b5565b9392505050565b60006020820190508181036000830152615405818461486c565b905092915050565b600060208201905061542260008301846148ca565b92915050565b600060208201905061543d60008301846148d9565b92915050565b60006020820190506154586000830184614921565b92915050565b60006020820190506154736000830184614930565b92915050565b600060208201905061548e600083018461493f565b92915050565b600060208201905081810360008301526154ae818461494e565b905092915050565b600060208201905081810360008301526154cf816149b8565b9050919050565b600060208201905081810360008301526154ef81614a1e565b9050919050565b6000602082019050818103600083015261550f81614a84565b9050919050565b6000602082019050818103600083015261552f81614aea565b9050919050565b6000602082019050818103600083015261554f81614b2a565b9050919050565b6000602082019050818103600083015261556f81614b90565b9050919050565b6000602082019050818103600083015261558f81614bd0565b9050919050565b600060208201905081810360008301526155af81614c10565b9050919050565b600060208201905081810360008301526155cf81614c50565b9050919050565b600060208201905081810360008301526155ef81614cb6565b9050919050565b6000602082019050818103600083015261560f81614cf6565b9050919050565b6000602082019050818103600083015261562f81614d5c565b9050919050565b6000602082019050818103600083015261564f81614dc2565b9050919050565b6000602082019050818103600083015261566f81614e28565b9050919050565b6000602082019050818103600083015261568f81614e68565b9050919050565b600060208201905081810360008301526156af81614ea8565b9050919050565b600060208201905081810360008301526156cf81614ee8565b9050919050565b600060208201905081810360008301526156ef81614f4e565b9050919050565b6000602082019050818103600083015261570f81614f8e565b9050919050565b6000602082019050818103600083015261572f81614fce565b9050919050565b6000602082019050818103600083015261574f81615034565b9050919050565b6000602082019050818103600083015261576f8161509a565b9050919050565b6000602082019050818103600083015261578f8161511a565b9050919050565b600060208201905081810360008301526157af81615180565b9050919050565b600060208201905081810360008301526157cf816151c0565b9050919050565b600060208201905081810360008301526157ef81615226565b9050919050565b6000602082019050818103600083015261580f81615266565b9050919050565b600060208201905061582b60008301846152b5565b92915050565b6000604051905081810181811067ffffffffffffffff8211171561585857615857615c7e565b5b8060405250919050565b600067ffffffffffffffff82111561587d5761587c615c7e565b5b601f19601f8301169050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600061591982615a8d565b915061592483615a8d565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561595957615958615bf1565b5b828201905092915050565b600061596f82615a8d565b915061597a83615a8d565b92508261598a57615989615c20565b5b828204905092915050565b60006159a082615a8d565b91506159ab83615a8d565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156159e4576159e3615bf1565b5b828202905092915050565b60006159fa82615a8d565b9150615a0583615a8d565b925082821015615a1857615a17615bf1565b5b828203905092915050565b6000615a2e82615a6d565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000615aa282615aa9565b9050919050565b6000615ab482615a6d565b9050919050565b6000615ac682615acd565b9050919050565b6000615ad882615a6d565b9050919050565b6000615aea82615af1565b9050919050565b6000615afc82615a6d565b9050919050565b82818337600083830152505050565b60005b83811015615b30578082015181840152602081019050615b15565b83811115615b3f576000848401525b50505050565b60006002820490506001821680615b5d57607f821691505b60208210811415615b7157615b70615c4f565b5b50919050565b6000615b8282615a8d565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415615bb557615bb4615bf1565b5b600182019050919050565b6000615bcb82615a8d565b9150615bd683615a8d565b925082615be657615be5615c20565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160e01c9050919050565b600060443d1015615cdb57615d7e565b60046000803e615cec600051615cbe565b6308c379a08114615cfd5750615d7e565b60405160043d036004823e80513d602482011167ffffffffffffffff82111715615d2957505050615d7e565b808201805167ffffffffffffffff811115615d48575050505050615d7e565b8060208301013d8501811115615d6357505050505050615d7e565b615d6c82615cad565b60208401016040528296505050505050505b90565b615d8a81615a23565b8114615d9557600080fd5b50565b615da181615a35565b8114615dac57600080fd5b50565b615db881615a41565b8114615dc357600080fd5b50565b615dcf81615a8d565b8114615dda57600080fd5b5056fea2646970667358221220097a1a476e78f7f06a751919a3363f24f151ffbd660882adbc79f5ac8e85884564736f6c63430008000033
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.