ERC-721
Overview
Max Total Supply
225 CHIPS
Holders
118
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
2 CHIPSLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
ChipFactory
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)
// contracts/MyNFT.sol // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import './ERC721Tradable.sol'; import './MerkleProof.sol'; /** * - a contract for my non-fungible creatures. */ contract ChipFactory is ERC721Tradable, MerkleProof{ using SafeMath for uint256; constructor(address _proxyRegistryAddress) ERC721Tradable("CNK World", "CHIPS", _proxyRegistryAddress) public { } uint MINTMAX = 5000; uint CUSTOMMINTMAX = 50; uint256 DISCOUNT_FEE = 0.06 ether; uint256 MINT_FEE = 0.08 ether; string BASEURI = ""; mapping(address => uint8) public hasMinted; mapping(uint => bool) public isntMergable; bytes32 whitelistRoot; bytes32 discountRoot; bool whitelistRequired = true; bool mergingAllowed = false; event chipsMerged(uint _tokenID1, uint _tokenID2, address _owner); //Function modifier so that only the owner of a certain token can call the function. modifier onlyOwnerOf(uint _tokenID) { require(msg.sender == ownerOf(_tokenID)); _; } //Checks the merging is currently allowed. modifier mergingIsAllowed() { require(mergingAllowed); _; } //Checks that both tokens are mergable; modifier areMergable(uint _tokenID1, uint _tokenID2) { require(!isntMergable[_tokenID1]); require(!isntMergable[_tokenID2]); _; } //Checks that both tokens are unique. modifier areUnique(uint _tokenID1, uint _tokenID2) { require(_tokenID1 != _tokenID2); _; } //same thing as onlyOwnerOf but with two tokens. modifier onlyOwnerOfBoth(uint _tokenID1, uint _tokenID2) { require(msg.sender == ownerOf(_tokenID1)); require(msg.sender == ownerOf(_tokenID2)); _; } function baseTokenURI() public view override (ERC721Tradable) returns (string memory) { return BASEURI; } // Creates a randomly generated chip for people who are included in on the whitelist. function createChipFromWhitelist(uint8 numToMint, bytes32[] memory whitelistProof, bytes32[] memory discountProof) public payable { require(verifyProof(getWhitelistRoot(), msg.sender, whitelistProof)); require(totalSupply() + numToMint <= MINTMAX); require(numToMint == 1 || numToMint == 2); require(hasMinted[msg.sender] + numToMint <= 2); if (verifyProof(getDiscountRoot(), msg.sender, discountProof)) { require(msg.value == DISCOUNT_FEE * numToMint); } else { require(msg.value == MINT_FEE * numToMint); } hasMinted[msg.sender] += numToMint; for (uint i = 0; i < numToMint; i++) { if (1 == (_generateRandomRarity() % 255)) { isntMergable[_getNextTokenId()] = true; } _mint(msg.sender, _getNextTokenId()); _incrementTokenId(); } } // Creates a chip can only be called once the whitelist has been disabled. function createChip(uint8 numToMint) external payable { require(totalSupply() + numToMint <= MINTMAX); require(!whitelistRequired); require(numToMint == 1 || numToMint == 2); require(msg.value == MINT_FEE * numToMint); for (uint i = 0; i < numToMint; i++ ) { if (1 == (_generateRandomRarity() % 255)) { isntMergable[_getNextTokenId()] = true; } _mint(msg.sender, _getNextTokenId()); _incrementTokenId(); } } // Generates a rarity hash based on the last blocknumber. Returns the rarity hash modulo rarityModulo. function _generateRandomRarity() private view returns (uint) { uint rand = uint(keccak256(abi.encodePacked((blockhash(block.number - 1)), abi.encodePacked(totalSupply())))); return rand; } //creates a customChip and sends to the specified recipient. function createCustomChip(uint numToMint, address _recipient, bool _mergable) onlyOwner public { //NO more custom chips after the inital 50. require(totalSupply() + numToMint <= CUSTOMMINTMAX, "CUSTOMMINTMAX Reached"); for (uint i = 0; i < numToMint; i++ ) { isntMergable[ _getNextTokenId()] = _mergable; _mint(_recipient, _getNextTokenId()); _incrementTokenId(); } } //This takes two chips. Merges their characteristics. Creates a new chip based on that merge. //Burns their previous chip. function mergeChips(uint _tokenID1, uint _tokenID2) public onlyOwnerOfBoth(_tokenID1, _tokenID2) areMergable(_tokenID1, _tokenID2) areUnique(_tokenID1, _tokenID2) mergingIsAllowed { require(balanceOf(msg.sender) >= 2); _burn(_tokenID1); _burn(_tokenID2); _mint(msg.sender, _getNextTokenId()); _incrementTokenId(); emit chipsMerged(_tokenID1, _tokenID2, msg.sender); } //Transfer the ETH from bought Chips to owner of contract. function transferBalanceToOwner() onlyOwner public { address payable wallet = payable(owner()); wallet.transfer(address(this).balance); } // this will set the base URI for the chip once all the chips have been created and uploaded. function setBaseURI(string memory uri) onlyOwner public { BASEURI = uri; } //Turn off need for a mint pass. function whitelistNoLongerRequired() onlyOwner public { whitelistRequired = false; } //gets the whitelistRoot for the whitelist function. function getWhitelistRoot() view public returns (bytes32) { return whitelistRoot; } //gets the whitelistRoot for the whitelist function. function getDiscountRoot() view public returns (bytes32) { return discountRoot; } //Sets the whitelistRoot for the whitelist of the function. function setWhitelistRoot(bytes32 _whitelistRoot) onlyOwner public { whitelistRoot = _whitelistRoot; } //Sets the discountRoot for the whitelist of the function. function setDiscountRoot(bytes32 _discountRoot) onlyOwner public { discountRoot = _discountRoot; } //Set merges allowed. function allowMerging() onlyOwner public { mergingAllowed = true; } //Chips owned by _chipOwner. function viewChipsOwnedBy(address _chipOwner) view public returns (uint[] memory) { uint[] memory chipsOwned = new uint[](balanceOf(_chipOwner)); for (uint i = 0; i < balanceOf(_chipOwner); i++) { chipsOwned[i] = tokenOfOwnerByIndex(_chipOwner, i); } return chipsOwned; } //Check that a given Token is a mergable token. function viewTokenIsntMergable(uint256 tokenID) view public returns (bool) { require(_exists(tokenID), "token doesn't exist"); return (isntMergable[tokenID]); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; contract MerkleProof { // function verify( bytes32 root, bytes32 leaf, bytes32[] memory proof) function verifyProof( bytes32 root, address leaf, bytes32[] memory proof) public pure returns (bool) { bytes32 computedHash = keccak256(abi.encodePacked(leaf)); // bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash < proofElement) { // Hash(current computed hash + current element of the proof) computedHash = keccak256(abi.encodePacked(computedHash, proofElement)); } else { // Hash(current element of the proof + current computed hash) computedHash = keccak256(abi.encodePacked(proofElement, computedHash)); } } // Check if the computed hash (root) is equal to the provided root return computedHash == root; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "./common/meta-transactions/ContentMixin.sol"; import "./common/meta-transactions/NativeMetaTransaction.sol"; contract OwnableDelegateProxy {} contract ProxyRegistry { mapping(address => OwnableDelegateProxy) public proxies; } /** * @title ERC721Tradable * ERC721Tradable - ERC721 contract that whitelists a trading address, and has minting functionality. */ abstract contract ERC721Tradable is ContextMixin, ERC721Enumerable, NativeMetaTransaction, Ownable { using SafeMath for uint256; address proxyRegistryAddress; uint256 private _currentTokenId = 0; constructor( string memory _name, string memory _symbol, address _proxyRegistryAddress ) ERC721(_name, _symbol) { proxyRegistryAddress = _proxyRegistryAddress; _initializeEIP712(_name); } /** * @dev Mints a token to an address with a tokenURI. * @param _to address of the future owner of the token */ function mintTo(address _to) public onlyOwner { uint256 newTokenId = _getNextTokenId(); _mint(_to, newTokenId); _incrementTokenId(); } /** * @dev calculates the next token ID based on value of _currentTokenId * @return uint256 for the next token ID */ function _getNextTokenId() internal view returns (uint256) { return _currentTokenId.add(1); } /** * @dev increments the value of _currentTokenId */ function _incrementTokenId() internal { _currentTokenId++; } function baseTokenURI() virtual public view returns (string memory); function tokenURI(uint256 _tokenId) override public view returns (string memory) { return string(abi.encodePacked(baseTokenURI(), Strings.toString(_tokenId))); } /** * Override isApprovedForAll to whitelist user's OpenSea proxy accounts to enable gas-less listings. */ function isApprovedForAll(address owner, address operator) override public view returns (bool) { // Whitelist OpenSea proxy contract for easy trading. ProxyRegistry proxyRegistry = ProxyRegistry(proxyRegistryAddress); if (address(proxyRegistry.proxies(owner)) == operator) { return true; } return super.isApprovedForAll(owner, operator); } /** * This is used instead of msg.sender as transactions won't be sent by the original token owner, but by OpenSea. */ function _msgSender() internal override view returns (address sender) { return ContextMixin.msgSender(); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import {SafeMath} from "@openzeppelin/contracts/utils/math/SafeMath.sol"; import {EIP712Base} from "./EIP712Base.sol"; contract NativeMetaTransaction is EIP712Base { using SafeMath for uint256; bytes32 private constant META_TRANSACTION_TYPEHASH = keccak256( bytes( "MetaTransaction(uint256 nonce,address from,bytes functionSignature)" ) ); event MetaTransactionExecuted( address userAddress, address payable relayerAddress, bytes functionSignature ); mapping(address => uint256) nonces; /* * Meta transaction structure. * No point of including value field here as if user is doing value transfer then he has the funds to pay for gas * He should call the desired function directly in that case. */ struct MetaTransaction { uint256 nonce; address from; bytes functionSignature; } function executeMetaTransaction( address userAddress, bytes memory functionSignature, bytes32 sigR, bytes32 sigS, uint8 sigV ) public payable returns (bytes memory) { MetaTransaction memory metaTx = MetaTransaction({ nonce: nonces[userAddress], from: userAddress, functionSignature: functionSignature }); require( verify(userAddress, metaTx, sigR, sigS, sigV), "Signer and signature do not match" ); // increase nonce for user (to avoid re-use) nonces[userAddress] = nonces[userAddress].add(1); emit MetaTransactionExecuted( userAddress, payable(msg.sender), functionSignature ); // Append userAddress and relayer address at the end to extract it from calling context (bool success, bytes memory returnData) = address(this).call( abi.encodePacked(functionSignature, userAddress) ); require(success, "Function call not successful"); return returnData; } function hashMetaTransaction(MetaTransaction memory metaTx) internal pure returns (bytes32) { return keccak256( abi.encode( META_TRANSACTION_TYPEHASH, metaTx.nonce, metaTx.from, keccak256(metaTx.functionSignature) ) ); } function getNonce(address user) public view returns (uint256 nonce) { nonce = nonces[user]; } function verify( address signer, MetaTransaction memory metaTx, bytes32 sigR, bytes32 sigS, uint8 sigV ) internal view returns (bool) { require(signer != address(0), "NativeMetaTransaction: INVALID_SIGNER"); return signer == ecrecover( toTypedMessageHash(hashMetaTransaction(metaTx)), sigV, sigR, sigS ); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; abstract contract ContextMixin { function msgSender() internal view returns (address payable sender) { if (msg.sender == address(this)) { bytes memory array = msg.data; uint256 index = msg.data.length; assembly { // Load the 32 bytes word from memory with the address on the lower 20 bytes, and mask those. sender := and( mload(add(array, index)), 0xffffffffffffffffffffffffffffffffffffffff ) } } else { sender = payable(msg.sender); } return sender; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @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; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../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 "./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 {Initializable} from "./Initializable.sol"; contract EIP712Base is Initializable { struct EIP712Domain { string name; string version; address verifyingContract; bytes32 salt; } string constant public ERC712_VERSION = "1"; bytes32 internal constant EIP712_DOMAIN_TYPEHASH = keccak256( bytes( "EIP712Domain(string name,string version,address verifyingContract,bytes32 salt)" ) ); bytes32 internal domainSeperator; // supposed to be called once while initializing. // one of the contracts that inherits this contract follows proxy pattern // so it is not possible to do this in a constructor function _initializeEIP712( string memory name ) internal initializer { _setDomainSeperator(name); } function _setDomainSeperator(string memory name) internal { domainSeperator = keccak256( abi.encode( EIP712_DOMAIN_TYPEHASH, keccak256(bytes(name)), keccak256(bytes(ERC712_VERSION)), address(this), bytes32(getChainId()) ) ); } function getDomainSeperator() public view returns (bytes32) { return domainSeperator; } function getChainId() public view returns (uint256) { uint256 id; assembly { id := chainid() } return id; } /** * Accept message hash and returns hash message in EIP712 compatible form * So that it can be used to recover signer from signature signed using EIP712 formatted data * https://eips.ethereum.org/EIPS/eip-712 * "\\x19" makes the encoding deterministic * "\\x01" is the version byte to make it compatible to EIP-191 */ function toTypedMessageHash(bytes32 messageHash) internal view returns (bytes32) { return keccak256( abi.encodePacked("\x19\x01", getDomainSeperator(), messageHash) ); } }
// 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 "./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 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 Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; 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; contract Initializable { bool inited = false; modifier initializer() { require(!inited, "already inited"); _; inited = true; } }
// 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" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_proxyRegistryAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"userAddress","type":"address"},{"indexed":false,"internalType":"address payable","name":"relayerAddress","type":"address"},{"indexed":false,"internalType":"bytes","name":"functionSignature","type":"bytes"}],"name":"MetaTransactionExecuted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_tokenID1","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_tokenID2","type":"uint256"},{"indexed":false,"internalType":"address","name":"_owner","type":"address"}],"name":"chipsMerged","type":"event"},{"inputs":[],"name":"ERC712_VERSION","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allowMerging","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"numToMint","type":"uint8"}],"name":"createChip","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint8","name":"numToMint","type":"uint8"},{"internalType":"bytes32[]","name":"whitelistProof","type":"bytes32[]"},{"internalType":"bytes32[]","name":"discountProof","type":"bytes32[]"}],"name":"createChipFromWhitelist","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numToMint","type":"uint256"},{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"bool","name":"_mergable","type":"bool"}],"name":"createCustomChip","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"userAddress","type":"address"},{"internalType":"bytes","name":"functionSignature","type":"bytes"},{"internalType":"bytes32","name":"sigR","type":"bytes32"},{"internalType":"bytes32","name":"sigS","type":"bytes32"},{"internalType":"uint8","name":"sigV","type":"uint8"}],"name":"executeMetaTransaction","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getChainId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDiscountRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDomainSeperator","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getNonce","outputs":[{"internalType":"uint256","name":"nonce","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getWhitelistRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"hasMinted","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"isntMergable","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenID1","type":"uint256"},{"internalType":"uint256","name":"_tokenID2","type":"uint256"}],"name":"mergeChips","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"}],"name":"mintTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_discountRoot","type":"bytes32"}],"name":"setDiscountRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_whitelistRoot","type":"bytes32"}],"name":"setWhitelistRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"transferBalanceToOwner","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":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"root","type":"bytes32"},{"internalType":"address","name":"leaf","type":"address"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"verifyProof","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"_chipOwner","type":"address"}],"name":"viewChipsOwnedBy","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenID","type":"uint256"}],"name":"viewTokenIsntMergable","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistNoLongerRequired","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526000600a60006101000a81548160ff0219169083151502179055506000600f55611388601055603260115566d529ae9e86000060125567011c37937e08000060135560405180602001604052806000815250601490805190602001906200006d929190620004c9565b506001601960006101000a81548160ff0219169083151502179055506000601960016101000a81548160ff021916908315150217905550348015620000b157600080fd5b50604051620060eb380380620060eb8339818101604052810190620000d7919062000590565b6040518060400160405280600981526020017f434e4b20576f726c6400000000000000000000000000000000000000000000008152506040518060400160405280600581526020017f434849505300000000000000000000000000000000000000000000000000000081525082828281600090805190602001906200015e929190620004c9565b50806001908051906020019062000177929190620004c9565b5050506200019a6200018e620001f660201b60201c565b6200021260201b60201c565b80600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550620001ec83620002d860201b60201c565b505050506200076d565b60006200020d6200035a60201b620025df1760201c565b905090565b6000600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600a60009054906101000a900460ff16156200032b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000322906200067d565b60405180910390fd5b6200033c816200040d60201b60201c565b6001600a60006101000a81548160ff02191690831515021790555050565b60003073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156200040657600080368080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509050600080369050905073ffffffffffffffffffffffffffffffffffffffff8183015116925050506200040a565b3390505b90565b6040518060800160405280604f81526020016200609c604f91398051906020012081805190602001206040518060400160405280600181526020017f3100000000000000000000000000000000000000000000000000000000000000815250805190602001203062000484620004bc60201b60201c565b60001b6040516020016200049d95949392919062000620565b60405160208183030381529060405280519060200120600b8190555050565b6000804690508091505090565b828054620004d790620006ee565b90600052602060002090601f016020900481019282620004fb576000855562000547565b82601f106200051657805160ff191683800117855562000547565b8280016001018555821562000547579182015b828111156200054657825182559160200191906001019062000529565b5b5090506200055691906200055a565b5090565b5b80821115620005755760008160009055506001016200055b565b5090565b6000815190506200058a8162000753565b92915050565b600060208284031215620005a357600080fd5b6000620005b38482850162000579565b91505092915050565b620005c781620006b0565b82525050565b620005d881620006c4565b82525050565b6000620005ed600e836200069f565b91507f616c726561647920696e697465640000000000000000000000000000000000006000830152602082019050919050565b600060a082019050620006376000830188620005cd565b620006466020830187620005cd565b620006556040830186620005cd565b620006646060830185620005bc565b620006736080830184620005cd565b9695505050505050565b600060208201905081810360008301526200069881620005de565b9050919050565b600082825260208201905092915050565b6000620006bd82620006ce565b9050919050565b6000819050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600060028204905060018216806200070757607f821691505b602082108114156200071e576200071d62000724565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6200075e81620006b0565b81146200076a57600080fd5b50565b61591f806200077d6000396000f3fe60806040526004361061025c5760003560e01c80634db83cfb1161014457806395d89b41116100b6578063d547cfb71161007a578063d547cfb7146108f5578063e985e9c514610920578063f10fa3d81461095d578063f2fde38b14610986578063f5aa406d146109af578063f921fc4e146109d85761025c565b806395d89b4114610810578063a22cb4651461083b578063b742d9cb14610864578063b88d4fde1461088f578063c87b56dd146108b85761025c565b8063683cca1811610108578063683cca181461073557806370a082311461074c578063715018a614610789578063755edd17146107a05780637ba6ae94146107c95780638da5cb5b146107e55761025c565b80634db83cfb1461062c5780634f6ccce71461065557806355f804b31461069257806360628291146106bb5780636352211e146106f85761025c565b806323b872dd116101dd5780633408e470116101a15780633408e4701461052b57806338e21cce146105565780633c5b471b1461059357806342842e0e146105af578063435faa6e146105d857806347f07a8e146106155761025c565b806323b872dd1461044657806327aeb7031461046f57806327c37b0e1461049a5780632d0335ab146104b15780632f745c59146104ee5761025c565b80630e411fea116102245780630e411fea1461035f5780630f7e59701461038857806318160ddd146103b35780631cf0df77146103de57806320379ee51461041b5761025c565b806301ffc9a71461026157806306fdde031461029e578063081812fc146102c9578063095ea7b3146103065780630c53c51c1461032f575b600080fd5b34801561026d57600080fd5b50610288600480360381019061028391906140a0565b610a15565b6040516102959190614e95565b60405180910390f35b3480156102aa57600080fd5b506102b3610a8f565b6040516102c09190614f77565b60405180910390f35b3480156102d557600080fd5b506102f060048036038101906102eb919061415c565b610b21565b6040516102fd9190614dce565b60405180910390f35b34801561031257600080fd5b5061032d60048036038101906103289190613fd4565b610ba6565b005b61034960048036038101906103449190613f45565b610cbe565b6040516103569190614f55565b60405180910390f35b34801561036b57600080fd5b5061038660048036038101906103819190614185565b610f30565b005b34801561039457600080fd5b5061039d611072565b6040516103aa9190614f77565b60405180910390f35b3480156103bf57600080fd5b506103c86110ab565b6040516103d59190615259565b60405180910390f35b3480156103ea57600080fd5b506104056004803603810190610400919061415c565b6110b8565b6040516104129190614e95565b60405180910390f35b34801561042757600080fd5b506104306110d8565b60405161043d9190614eb0565b60405180910390f35b34801561045257600080fd5b5061046d60048036038101906104689190613e3f565b6110e2565b005b34801561047b57600080fd5b50610484611142565b6040516104919190614eb0565b60405180910390f35b3480156104a657600080fd5b506104af61114c565b005b3480156104bd57600080fd5b506104d860048036038101906104d39190613dda565b6111e5565b6040516104e59190615259565b60405180910390f35b3480156104fa57600080fd5b5061051560048036038101906105109190613fd4565b61122e565b6040516105229190615259565b60405180910390f35b34801561053757600080fd5b506105406112d3565b60405161054d9190615259565b60405180910390f35b34801561056257600080fd5b5061057d60048036038101906105789190613dda565b6112e0565b60405161058a91906152ab565b60405180910390f35b6105ad60048036038101906105a89190614239565b611300565b005b3480156105bb57600080fd5b506105d660048036038101906105d19190613e3f565b61151d565b005b3480156105e457600080fd5b506105ff60048036038101906105fa9190614039565b61153d565b60405161060c9190614e95565b60405180910390f35b34801561062157600080fd5b5061062a611640565b005b34801561063857600080fd5b50610653600480360381019061064e91906141d4565b611712565b005b34801561066157600080fd5b5061067c6004803603810190610677919061415c565b61189a565b6040516106899190615259565b60405180910390f35b34801561069e57600080fd5b506106b960048036038101906106b4919061411b565b611931565b005b3480156106c757600080fd5b506106e260048036038101906106dd919061415c565b6119c7565b6040516106ef9190614e95565b60405180910390f35b34801561070457600080fd5b5061071f600480360381019061071a919061415c565b611a39565b60405161072c9190614dce565b60405180910390f35b34801561074157600080fd5b5061074a611aeb565b005b34801561075857600080fd5b50610773600480360381019061076e9190613dda565b611b84565b6040516107809190615259565b60405180910390f35b34801561079557600080fd5b5061079e611c3c565b005b3480156107ac57600080fd5b506107c760048036038101906107c29190613dda565b611cc4565b005b6107e360048036038101906107de9190614210565b611d62565b005b3480156107f157600080fd5b506107fa611e68565b6040516108079190614dce565b60405180910390f35b34801561081c57600080fd5b50610825611e92565b6040516108329190614f77565b60405180910390f35b34801561084757600080fd5b50610862600480360381019061085d9190613f09565b611f24565b005b34801561087057600080fd5b506108796120a5565b6040516108869190614eb0565b60405180910390f35b34801561089b57600080fd5b506108b660048036038101906108b19190613e8e565b6120af565b005b3480156108c457600080fd5b506108df60048036038101906108da919061415c565b612111565b6040516108ec9190614f77565b60405180910390f35b34801561090157600080fd5b5061090a61214b565b6040516109179190614f77565b60405180910390f35b34801561092c57600080fd5b5061094760048036038101906109429190613e03565b6121dd565b6040516109549190614e95565b60405180910390f35b34801561096957600080fd5b50610984600480360381019061097f9190614010565b6122df565b005b34801561099257600080fd5b506109ad60048036038101906109a89190613dda565b612365565b005b3480156109bb57600080fd5b506109d660048036038101906109d19190614010565b61245d565b005b3480156109e457600080fd5b506109ff60048036038101906109fa9190613dda565b6124e3565b604051610a0c9190614e73565b60405180910390f35b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610a885750610a8782612690565b5b9050919050565b606060008054610a9e90615647565b80601f0160208091040260200160405190810160405280929190818152602001828054610aca90615647565b8015610b175780601f10610aec57610100808354040283529160200191610b17565b820191906000526020600020905b815481529060010190602001808311610afa57829003601f168201915b5050505050905090565b6000610b2c82612772565b610b6b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b6290615179565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610bb182611a39565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610c22576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c19906151f9565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610c416127de565b73ffffffffffffffffffffffffffffffffffffffff161480610c705750610c6f81610c6a6127de565b6121dd565b5b610caf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ca6906150d9565b60405180910390fd5b610cb983836127ed565b505050565b606060006040518060600160405280600c60008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205481526020018873ffffffffffffffffffffffffffffffffffffffff168152602001878152509050610d4187828787876128a6565b610d80576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d77906151d9565b60405180910390fd5b610dd36001600c60008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546129af90919063ffffffff16565b600c60008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055507f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b873388604051610e4993929190614de9565b60405180910390a16000803073ffffffffffffffffffffffffffffffffffffffff16888a604051602001610e7e929190614d30565b604051602081830303815290604052604051610e9a9190614d19565b6000604051808303816000865af19150503d8060008114610ed7576040519150601f19603f3d011682016040523d82523d6000602084013e610edc565b606091505b509150915081610f21576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f1890614ff9565b60405180910390fd5b80935050505095945050505050565b610f386127de565b73ffffffffffffffffffffffffffffffffffffffff16610f56611e68565b73ffffffffffffffffffffffffffffffffffffffff1614610fac576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fa390615199565b60405180910390fd5b60115483610fb86110ab565b610fc2919061540a565b1115611003576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ffa90615139565b60405180910390fd5b60005b8381101561106c57816016600061101b6129c5565b815260200190815260200160002060006101000a81548160ff0219169083151502179055506110518361104c6129c5565b6129e2565b611059612bb0565b808061106490615679565b915050611006565b50505050565b6040518060400160405280600181526020017f310000000000000000000000000000000000000000000000000000000000000081525081565b6000600880549050905090565b60166020528060005260406000206000915054906101000a900460ff1681565b6000600b54905090565b6110f36110ed6127de565b82612bca565b611132576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161112990615219565b60405180910390fd5b61113d838383612ca8565b505050565b6000601854905090565b6111546127de565b73ffffffffffffffffffffffffffffffffffffffff16611172611e68565b73ffffffffffffffffffffffffffffffffffffffff16146111c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111bf90615199565b60405180910390fd5b6000601960006101000a81548160ff021916908315150217905550565b6000600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600061123983611b84565b821061127a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161127190614f99565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b6000804690508091505090565b60156020528060005260406000206000915054906101000a900460ff1681565b61131261130b6120a5565b338461153d565b61131b57600080fd5b6010548360ff1661132a6110ab565b611334919061540a565b111561133f57600080fd5b60018360ff161480611354575060028360ff16145b61135d57600080fd5b600283601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166113b79190615460565b60ff1611156113c557600080fd5b6113d76113d0611142565b338361153d565b156113fd578260ff166012546113ed91906154c8565b34146113f857600080fd5b61141a565b8260ff1660135461140e91906154c8565b341461141957600080fd5b5b82601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282829054906101000a900460ff166114759190615460565b92506101000a81548160ff021916908360ff16021790555060005b8360ff168110156115175760ff6114a5612f04565b6114af91906156fa565b600114156114eb576001601660006114c56129c5565b815260200190815260200160002060006101000a81548160ff0219169083151502179055505b6114fc336114f76129c5565b6129e2565b611504612bb0565b808061150f90615679565b915050611490565b50505050565b611538838383604051806020016040528060008152506120af565b505050565b600080836040516020016115519190614caa565b60405160208183030381529060405280519060200120905060005b83518110156116325760008482815181106115b0577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101519050808310156115f25782816040516020016115d5929190614cc5565b60405160208183030381529060405280519060200120925061161e565b8083604051602001611605929190614cc5565b6040516020818303038152906040528051906020012092505b50808061162a90615679565b91505061156c565b508481149150509392505050565b6116486127de565b73ffffffffffffffffffffffffffffffffffffffff16611666611e68565b73ffffffffffffffffffffffffffffffffffffffff16146116bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116b390615199565b60405180910390fd5b60006116c6611e68565b90508073ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f1935050505015801561170e573d6000803e3d6000fd5b5050565b818161171d82611a39565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461175457600080fd5b61175d81611a39565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461179457600080fd5b83836016600083815260200190815260200160002060009054906101000a900460ff16156117c157600080fd5b6016600082815260200190815260200160002060009054906101000a900460ff16156117ec57600080fd5b8585808214156117fb57600080fd5b601960019054906101000a900460ff1661181457600080fd5b600261181f33611b84565b101561182a57600080fd5b61183388612f6f565b61183c87612f6f565b61184d336118486129c5565b6129e2565b611855612bb0565b7fb8e769fb8b0d8ca89c53a0e9684c5d264f33b2ea515f42a1f62b1eb8d2baba7388883360405161188893929190615274565b60405180910390a15050505050505050565b60006118a46110ab565b82106118e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118dc90615239565b60405180910390fd5b6008828154811061191f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b6119396127de565b73ffffffffffffffffffffffffffffffffffffffff16611957611e68565b73ffffffffffffffffffffffffffffffffffffffff16146119ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119a490615199565b60405180910390fd5b80601490805190602001906119c3929190613b29565b5050565b60006119d282612772565b611a11576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a08906150b9565b60405180910390fd5b6016600083815260200190815260200160002060009054906101000a900460ff169050919050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611ae2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ad990615119565b60405180910390fd5b80915050919050565b611af36127de565b73ffffffffffffffffffffffffffffffffffffffff16611b11611e68565b73ffffffffffffffffffffffffffffffffffffffff1614611b67576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b5e90615199565b60405180910390fd5b6001601960016101000a81548160ff021916908315150217905550565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611bf5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bec906150f9565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611c446127de565b73ffffffffffffffffffffffffffffffffffffffff16611c62611e68565b73ffffffffffffffffffffffffffffffffffffffff1614611cb8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611caf90615199565b60405180910390fd5b611cc26000613080565b565b611ccc6127de565b73ffffffffffffffffffffffffffffffffffffffff16611cea611e68565b73ffffffffffffffffffffffffffffffffffffffff1614611d40576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d3790615199565b60405180910390fd5b6000611d4a6129c5565b9050611d5682826129e2565b611d5e612bb0565b5050565b6010548160ff16611d716110ab565b611d7b919061540a565b1115611d8657600080fd5b601960009054906101000a900460ff1615611da057600080fd5b60018160ff161480611db5575060028160ff16145b611dbe57600080fd5b8060ff16601354611dcf91906154c8565b3414611dda57600080fd5b60005b8160ff16811015611e645760ff611df2612f04565b611dfc91906156fa565b60011415611e3857600160166000611e126129c5565b815260200190815260200160002060006101000a81548160ff0219169083151502179055505b611e4933611e446129c5565b6129e2565b611e51612bb0565b8080611e5c90615679565b915050611ddd565b5050565b6000600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060018054611ea190615647565b80601f0160208091040260200160405190810160405280929190818152602001828054611ecd90615647565b8015611f1a5780601f10611eef57610100808354040283529160200191611f1a565b820191906000526020600020905b815481529060010190602001808311611efd57829003601f168201915b5050505050905090565b611f2c6127de565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611f9a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f9190615059565b60405180910390fd5b8060056000611fa76127de565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166120546127de565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516120999190614e95565b60405180910390a35050565b6000601754905090565b6120c06120ba6127de565b83612bca565b6120ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120f690615219565b60405180910390fd5b61210b84848484613146565b50505050565b606061211b61214b565b612124836131a2565b604051602001612135929190614d58565b6040516020818303038152906040529050919050565b60606014805461215a90615647565b80601f016020809104026020016040519081016040528092919081815260200182805461218690615647565b80156121d35780601f106121a8576101008083540402835291602001916121d3565b820191906000526020600020905b8154815290600101906020018083116121b657829003601f168201915b5050505050905090565b600080600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1663c4552791866040518263ffffffff1660e01b81526004016122559190614dce565b60206040518083038186803b15801561226d57600080fd5b505afa158015612281573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122a591906140f2565b73ffffffffffffffffffffffffffffffffffffffff1614156122cb5760019150506122d9565b6122d5848461334f565b9150505b92915050565b6122e76127de565b73ffffffffffffffffffffffffffffffffffffffff16612305611e68565b73ffffffffffffffffffffffffffffffffffffffff161461235b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161235290615199565b60405180910390fd5b8060188190555050565b61236d6127de565b73ffffffffffffffffffffffffffffffffffffffff1661238b611e68565b73ffffffffffffffffffffffffffffffffffffffff16146123e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123d890615199565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612451576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161244890614fd9565b60405180910390fd5b61245a81613080565b50565b6124656127de565b73ffffffffffffffffffffffffffffffffffffffff16612483611e68565b73ffffffffffffffffffffffffffffffffffffffff16146124d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124d090615199565b60405180910390fd5b8060178190555050565b606060006124f083611b84565b67ffffffffffffffff81111561252f577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60405190808252806020026020018201604052801561255d5781602001602082028036833780820191505090505b50905060005b61256c84611b84565b8110156125d55761257d848261122e565b8282815181106125b6577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101818152505080806125cd90615679565b915050612563565b5080915050919050565b60003073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561268957600080368080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509050600080369050905073ffffffffffffffffffffffffffffffffffffffff81830151169250505061268d565b3390505b90565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061275b57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061276b575061276a826133e3565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b60006127e86125df565b905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661286083611a39565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff161415612917576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161290e90615099565b60405180910390fd5b600161292a6129258761344d565b6134b5565b8386866040516000815260200160405260405161294a9493929190614f10565b6020604051602081039080840390855afa15801561296c573d6000803e3d6000fd5b5050506020604051035173ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614905095945050505050565b600081836129bd919061540a565b905092915050565b60006129dd6001600f546129af90919063ffffffff16565b905090565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612a52576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a4990615159565b60405180910390fd5b612a5b81612772565b15612a9b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a9290615019565b60405180910390fd5b612aa7600083836134ee565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612af7919061540a565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600f6000815480929190612bc390615679565b9190505550565b6000612bd582612772565b612c14576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c0b90615079565b60405180910390fd5b6000612c1f83611a39565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612c8e57508373ffffffffffffffffffffffffffffffffffffffff16612c7684610b21565b73ffffffffffffffffffffffffffffffffffffffff16145b80612c9f5750612c9e81856121dd565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612cc882611a39565b73ffffffffffffffffffffffffffffffffffffffff1614612d1e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d15906151b9565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612d8e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d8590615039565b60405180910390fd5b612d998383836134ee565b612da46000826127ed565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612df49190615522565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612e4b919061540a565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b600080600143612f149190615522565b40612f1d6110ab565b604051602001612f2d9190614db3565b604051602081830303815290604052604051602001612f4d929190614cf1565b6040516020818303038152906040528051906020012060001c90508091505090565b6000612f7a82611a39565b9050612f88816000846134ee565b612f936000836127ed565b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612fe39190615522565b925050819055506002600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b6000600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b613151848484612ca8565b61315d84848484613602565b61319c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161319390614fb9565b60405180910390fd5b50505050565b606060008214156131ea576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061334a565b600082905060005b6000821461321c57808061320590615679565b915050600a826132159190615497565b91506131f2565b60008167ffffffffffffffff81111561325e577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156132905781602001600182028036833780820191505090505b5090505b60008514613343576001826132a99190615522565b9150600a856132b891906156fa565b60306132c4919061540a565b60f81b818381518110613300577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561333c9190615497565b9450613294565b8093505050505b919050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60006040518060800160405280604381526020016158a76043913980519060200120826000015183602001518460400151805190602001206040516020016134989493929190614ecb565b604051602081830303815290604052805190602001209050919050565b60006134bf6110d8565b826040516020016134d1929190614d7c565b604051602081830303815290604052805190602001209050919050565b6134f9838383613799565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561353c576135378161379e565b61357b565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461357a5761357983826137e7565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156135be576135b981613954565b6135fd565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146135fc576135fb8282613a97565b5b5b505050565b60006136238473ffffffffffffffffffffffffffffffffffffffff16613b16565b1561378c578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261364c6127de565b8786866040518563ffffffff1660e01b815260040161366e9493929190614e27565b602060405180830381600087803b15801561368857600080fd5b505af19250505080156136b957506040513d601f19601f820116820180604052508101906136b691906140c9565b60015b61373c573d80600081146136e9576040519150601f19603f3d011682016040523d82523d6000602084013e6136ee565b606091505b50600081511415613734576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161372b90614fb9565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613791565b600190505b949350505050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b600060016137f484611b84565b6137fe9190615522565b90506000600760008481526020019081526020016000205490508181146138e3576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016008805490506139689190615522565b90506000600960008481526020019081526020016000205490506000600883815481106139be577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020015490508060088381548110613a06577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020018190555081600960008381526020019081526020016000208190555060096000858152602001908152602001600020600090556008805480613a7b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000613aa283611b84565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600080823b905060008111915050919050565b828054613b3590615647565b90600052602060002090601f016020900481019282613b575760008555613b9e565b82601f10613b7057805160ff1916838001178555613b9e565b82800160010185558215613b9e579182015b82811115613b9d578251825591602001919060010190613b82565b5b509050613bab9190613baf565b5090565b5b80821115613bc8576000816000905550600101613bb0565b5090565b6000613bdf613bda846152f7565b6152c6565b90508083825260208201905082856020860282011115613bfe57600080fd5b60005b85811015613c2e5781613c148882613d08565b845260208401935060208301925050600181019050613c01565b5050509392505050565b6000613c4b613c4684615323565b6152c6565b905082815260208101848484011115613c6357600080fd5b613c6e848285615605565b509392505050565b6000613c89613c8484615353565b6152c6565b905082815260208101848484011115613ca157600080fd5b613cac848285615605565b509392505050565b600081359050613cc381615805565b92915050565b600082601f830112613cda57600080fd5b8135613cea848260208601613bcc565b91505092915050565b600081359050613d028161581c565b92915050565b600081359050613d1781615833565b92915050565b600081359050613d2c8161584a565b92915050565b600081519050613d418161584a565b92915050565b600082601f830112613d5857600080fd5b8135613d68848260208601613c38565b91505092915050565b600081519050613d8081615861565b92915050565b600082601f830112613d9757600080fd5b8135613da7848260208601613c76565b91505092915050565b600081359050613dbf81615878565b92915050565b600081359050613dd48161588f565b92915050565b600060208284031215613dec57600080fd5b6000613dfa84828501613cb4565b91505092915050565b60008060408385031215613e1657600080fd5b6000613e2485828601613cb4565b9250506020613e3585828601613cb4565b9150509250929050565b600080600060608486031215613e5457600080fd5b6000613e6286828701613cb4565b9350506020613e7386828701613cb4565b9250506040613e8486828701613db0565b9150509250925092565b60008060008060808587031215613ea457600080fd5b6000613eb287828801613cb4565b9450506020613ec387828801613cb4565b9350506040613ed487828801613db0565b925050606085013567ffffffffffffffff811115613ef157600080fd5b613efd87828801613d47565b91505092959194509250565b60008060408385031215613f1c57600080fd5b6000613f2a85828601613cb4565b9250506020613f3b85828601613cf3565b9150509250929050565b600080600080600060a08688031215613f5d57600080fd5b6000613f6b88828901613cb4565b955050602086013567ffffffffffffffff811115613f8857600080fd5b613f9488828901613d47565b9450506040613fa588828901613d08565b9350506060613fb688828901613d08565b9250506080613fc788828901613dc5565b9150509295509295909350565b60008060408385031215613fe757600080fd5b6000613ff585828601613cb4565b925050602061400685828601613db0565b9150509250929050565b60006020828403121561402257600080fd5b600061403084828501613d08565b91505092915050565b60008060006060848603121561404e57600080fd5b600061405c86828701613d08565b935050602061406d86828701613cb4565b925050604084013567ffffffffffffffff81111561408a57600080fd5b61409686828701613cc9565b9150509250925092565b6000602082840312156140b257600080fd5b60006140c084828501613d1d565b91505092915050565b6000602082840312156140db57600080fd5b60006140e984828501613d32565b91505092915050565b60006020828403121561410457600080fd5b600061411284828501613d71565b91505092915050565b60006020828403121561412d57600080fd5b600082013567ffffffffffffffff81111561414757600080fd5b61415384828501613d86565b91505092915050565b60006020828403121561416e57600080fd5b600061417c84828501613db0565b91505092915050565b60008060006060848603121561419a57600080fd5b60006141a886828701613db0565b93505060206141b986828701613cb4565b92505060406141ca86828701613cf3565b9150509250925092565b600080604083850312156141e757600080fd5b60006141f585828601613db0565b925050602061420685828601613db0565b9150509250929050565b60006020828403121561422257600080fd5b600061423084828501613dc5565b91505092915050565b60008060006060848603121561424e57600080fd5b600061425c86828701613dc5565b935050602084013567ffffffffffffffff81111561427957600080fd5b61428586828701613cc9565b925050604084013567ffffffffffffffff8111156142a257600080fd5b6142ae86828701613cc9565b9150509250925092565b60006142c48383614c66565b60208301905092915050565b6142d981615568565b82525050565b6142e881615556565b82525050565b6142ff6142fa82615556565b6156c2565b82525050565b600061431082615393565b61431a81856153c1565b935061432583615383565b8060005b8381101561435657815161433d88826142b8565b9750614348836153b4565b925050600181019050614329565b5085935050505092915050565b61436c8161557a565b82525050565b61437b81615586565b82525050565b61439261438d82615586565b6156d4565b82525050565b60006143a38261539e565b6143ad81856153d2565b93506143bd818560208601615614565b6143c6816157e7565b840191505092915050565b60006143dc8261539e565b6143e681856153e3565b93506143f6818560208601615614565b80840191505092915050565b600061440d826153a9565b61441781856153ee565b9350614427818560208601615614565b614430816157e7565b840191505092915050565b6000614446826153a9565b61445081856153ff565b9350614460818560208601615614565b80840191505092915050565b6000614479602b836153ee565b91507f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008301527f74206f6620626f756e64730000000000000000000000000000000000000000006020830152604082019050919050565b60006144df6032836153ee565b91507f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008301527f63656976657220696d706c656d656e74657200000000000000000000000000006020830152604082019050919050565b60006145456026836153ee565b91507f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008301527f64647265737300000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006145ab601c836153ee565b91507f46756e6374696f6e2063616c6c206e6f74207375636365737366756c000000006000830152602082019050919050565b60006145eb601c836153ee565b91507f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006000830152602082019050919050565b600061462b6002836153ff565b91507f19010000000000000000000000000000000000000000000000000000000000006000830152600282019050919050565b600061466b6024836153ee565b91507f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008301527f72657373000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006146d16019836153ee565b91507f4552433732313a20617070726f766520746f2063616c6c6572000000000000006000830152602082019050919050565b6000614711602c836153ee565b91507f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b60006147776025836153ee565b91507f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360008301527f49474e45520000000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006147dd6013836153ee565b91507f746f6b656e20646f65736e2774206578697374000000000000000000000000006000830152602082019050919050565b600061481d6038836153ee565b91507f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008301527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006020830152604082019050919050565b6000614883602a836153ee565b91507f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008301527f726f2061646472657373000000000000000000000000000000000000000000006020830152604082019050919050565b60006148e96029836153ee565b91507f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008301527f656e7420746f6b656e00000000000000000000000000000000000000000000006020830152604082019050919050565b600061494f6015836153ee565b91507f435553544f4d4d494e544d4158205265616368656400000000000000000000006000830152602082019050919050565b600061498f6020836153ee565b91507f4552433732313a206d696e7420746f20746865207a65726f20616464726573736000830152602082019050919050565b60006149cf602c836153ee565b91507f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b6000614a356020836153ee565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b6000614a756029836153ee565b91507f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008301527f73206e6f74206f776e00000000000000000000000000000000000000000000006020830152604082019050919050565b6000614adb6021836153ee565b91507f5369676e657220616e64207369676e617475726520646f206e6f74206d61746360008301527f68000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614b416021836153ee565b91507f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008301527f72000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614ba76031836153ee565b91507f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008301527f776e6572206e6f7220617070726f7665640000000000000000000000000000006020830152604082019050919050565b6000614c0d602c836153ee565b91507f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008301527f7574206f6620626f756e647300000000000000000000000000000000000000006020830152604082019050919050565b614c6f816155ee565b82525050565b614c7e816155ee565b82525050565b614c95614c90826155ee565b6156f0565b82525050565b614ca4816155f8565b82525050565b6000614cb682846142ee565b60148201915081905092915050565b6000614cd18285614381565b602082019150614ce18284614381565b6020820191508190509392505050565b6000614cfd8285614381565b602082019150614d0d82846143d1565b91508190509392505050565b6000614d2582846143d1565b915081905092915050565b6000614d3c82856143d1565b9150614d4882846142ee565b6014820191508190509392505050565b6000614d64828561443b565b9150614d70828461443b565b91508190509392505050565b6000614d878261461e565b9150614d938285614381565b602082019150614da38284614381565b6020820191508190509392505050565b6000614dbf8284614c84565b60208201915081905092915050565b6000602082019050614de360008301846142df565b92915050565b6000606082019050614dfe60008301866142df565b614e0b60208301856142d0565b8181036040830152614e1d8184614398565b9050949350505050565b6000608082019050614e3c60008301876142df565b614e4960208301866142df565b614e566040830185614c75565b8181036060830152614e688184614398565b905095945050505050565b60006020820190508181036000830152614e8d8184614305565b905092915050565b6000602082019050614eaa6000830184614363565b92915050565b6000602082019050614ec56000830184614372565b92915050565b6000608082019050614ee06000830187614372565b614eed6020830186614c75565b614efa60408301856142df565b614f076060830184614372565b95945050505050565b6000608082019050614f256000830187614372565b614f326020830186614c9b565b614f3f6040830185614372565b614f4c6060830184614372565b95945050505050565b60006020820190508181036000830152614f6f8184614398565b905092915050565b60006020820190508181036000830152614f918184614402565b905092915050565b60006020820190508181036000830152614fb28161446c565b9050919050565b60006020820190508181036000830152614fd2816144d2565b9050919050565b60006020820190508181036000830152614ff281614538565b9050919050565b600060208201905081810360008301526150128161459e565b9050919050565b60006020820190508181036000830152615032816145de565b9050919050565b600060208201905081810360008301526150528161465e565b9050919050565b60006020820190508181036000830152615072816146c4565b9050919050565b6000602082019050818103600083015261509281614704565b9050919050565b600060208201905081810360008301526150b28161476a565b9050919050565b600060208201905081810360008301526150d2816147d0565b9050919050565b600060208201905081810360008301526150f281614810565b9050919050565b6000602082019050818103600083015261511281614876565b9050919050565b60006020820190508181036000830152615132816148dc565b9050919050565b6000602082019050818103600083015261515281614942565b9050919050565b6000602082019050818103600083015261517281614982565b9050919050565b60006020820190508181036000830152615192816149c2565b9050919050565b600060208201905081810360008301526151b281614a28565b9050919050565b600060208201905081810360008301526151d281614a68565b9050919050565b600060208201905081810360008301526151f281614ace565b9050919050565b6000602082019050818103600083015261521281614b34565b9050919050565b6000602082019050818103600083015261523281614b9a565b9050919050565b6000602082019050818103600083015261525281614c00565b9050919050565b600060208201905061526e6000830184614c75565b92915050565b60006060820190506152896000830186614c75565b6152966020830185614c75565b6152a360408301846142df565b949350505050565b60006020820190506152c06000830184614c9b565b92915050565b6000604051905081810181811067ffffffffffffffff821117156152ed576152ec6157b8565b5b8060405250919050565b600067ffffffffffffffff821115615312576153116157b8565b5b602082029050602081019050919050565b600067ffffffffffffffff82111561533e5761533d6157b8565b5b601f19601f8301169050602081019050919050565b600067ffffffffffffffff82111561536e5761536d6157b8565b5b601f19601f8301169050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000615415826155ee565b9150615420836155ee565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156154555761545461572b565b5b828201905092915050565b600061546b826155f8565b9150615476836155f8565b92508260ff0382111561548c5761548b61572b565b5b828201905092915050565b60006154a2826155ee565b91506154ad836155ee565b9250826154bd576154bc61575a565b5b828204905092915050565b60006154d3826155ee565b91506154de836155ee565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156155175761551661572b565b5b828202905092915050565b600061552d826155ee565b9150615538836155ee565b92508282101561554b5761554a61572b565b5b828203905092915050565b6000615561826155ce565b9050919050565b6000615573826155ce565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b60006155c782615556565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b83811015615632578082015181840152602081019050615617565b83811115615641576000848401525b50505050565b6000600282049050600182168061565f57607f821691505b6020821081141561567357615672615789565b5b50919050565b6000615684826155ee565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156156b7576156b661572b565b5b600182019050919050565b60006156cd826156de565b9050919050565b6000819050919050565b60006156e9826157f8565b9050919050565b6000819050919050565b6000615705826155ee565b9150615710836155ee565b9250826157205761571f61575a565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b61580e81615556565b811461581957600080fd5b50565b6158258161557a565b811461583057600080fd5b50565b61583c81615586565b811461584757600080fd5b50565b61585381615590565b811461585e57600080fd5b50565b61586a816155bc565b811461587557600080fd5b50565b615881816155ee565b811461588c57600080fd5b50565b615898816155f8565b81146158a357600080fd5b5056fe4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e617475726529a2646970667358221220e4619a9b8f23e608dd138ea219f238cd7177df330d81be7acbe32214fef07f8064736f6c63430008000033454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c6164647265737320766572696679696e67436f6e74726163742c627974657333322073616c7429000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Deployed Bytecode
0x60806040526004361061025c5760003560e01c80634db83cfb1161014457806395d89b41116100b6578063d547cfb71161007a578063d547cfb7146108f5578063e985e9c514610920578063f10fa3d81461095d578063f2fde38b14610986578063f5aa406d146109af578063f921fc4e146109d85761025c565b806395d89b4114610810578063a22cb4651461083b578063b742d9cb14610864578063b88d4fde1461088f578063c87b56dd146108b85761025c565b8063683cca1811610108578063683cca181461073557806370a082311461074c578063715018a614610789578063755edd17146107a05780637ba6ae94146107c95780638da5cb5b146107e55761025c565b80634db83cfb1461062c5780634f6ccce71461065557806355f804b31461069257806360628291146106bb5780636352211e146106f85761025c565b806323b872dd116101dd5780633408e470116101a15780633408e4701461052b57806338e21cce146105565780633c5b471b1461059357806342842e0e146105af578063435faa6e146105d857806347f07a8e146106155761025c565b806323b872dd1461044657806327aeb7031461046f57806327c37b0e1461049a5780632d0335ab146104b15780632f745c59146104ee5761025c565b80630e411fea116102245780630e411fea1461035f5780630f7e59701461038857806318160ddd146103b35780631cf0df77146103de57806320379ee51461041b5761025c565b806301ffc9a71461026157806306fdde031461029e578063081812fc146102c9578063095ea7b3146103065780630c53c51c1461032f575b600080fd5b34801561026d57600080fd5b50610288600480360381019061028391906140a0565b610a15565b6040516102959190614e95565b60405180910390f35b3480156102aa57600080fd5b506102b3610a8f565b6040516102c09190614f77565b60405180910390f35b3480156102d557600080fd5b506102f060048036038101906102eb919061415c565b610b21565b6040516102fd9190614dce565b60405180910390f35b34801561031257600080fd5b5061032d60048036038101906103289190613fd4565b610ba6565b005b61034960048036038101906103449190613f45565b610cbe565b6040516103569190614f55565b60405180910390f35b34801561036b57600080fd5b5061038660048036038101906103819190614185565b610f30565b005b34801561039457600080fd5b5061039d611072565b6040516103aa9190614f77565b60405180910390f35b3480156103bf57600080fd5b506103c86110ab565b6040516103d59190615259565b60405180910390f35b3480156103ea57600080fd5b506104056004803603810190610400919061415c565b6110b8565b6040516104129190614e95565b60405180910390f35b34801561042757600080fd5b506104306110d8565b60405161043d9190614eb0565b60405180910390f35b34801561045257600080fd5b5061046d60048036038101906104689190613e3f565b6110e2565b005b34801561047b57600080fd5b50610484611142565b6040516104919190614eb0565b60405180910390f35b3480156104a657600080fd5b506104af61114c565b005b3480156104bd57600080fd5b506104d860048036038101906104d39190613dda565b6111e5565b6040516104e59190615259565b60405180910390f35b3480156104fa57600080fd5b5061051560048036038101906105109190613fd4565b61122e565b6040516105229190615259565b60405180910390f35b34801561053757600080fd5b506105406112d3565b60405161054d9190615259565b60405180910390f35b34801561056257600080fd5b5061057d60048036038101906105789190613dda565b6112e0565b60405161058a91906152ab565b60405180910390f35b6105ad60048036038101906105a89190614239565b611300565b005b3480156105bb57600080fd5b506105d660048036038101906105d19190613e3f565b61151d565b005b3480156105e457600080fd5b506105ff60048036038101906105fa9190614039565b61153d565b60405161060c9190614e95565b60405180910390f35b34801561062157600080fd5b5061062a611640565b005b34801561063857600080fd5b50610653600480360381019061064e91906141d4565b611712565b005b34801561066157600080fd5b5061067c6004803603810190610677919061415c565b61189a565b6040516106899190615259565b60405180910390f35b34801561069e57600080fd5b506106b960048036038101906106b4919061411b565b611931565b005b3480156106c757600080fd5b506106e260048036038101906106dd919061415c565b6119c7565b6040516106ef9190614e95565b60405180910390f35b34801561070457600080fd5b5061071f600480360381019061071a919061415c565b611a39565b60405161072c9190614dce565b60405180910390f35b34801561074157600080fd5b5061074a611aeb565b005b34801561075857600080fd5b50610773600480360381019061076e9190613dda565b611b84565b6040516107809190615259565b60405180910390f35b34801561079557600080fd5b5061079e611c3c565b005b3480156107ac57600080fd5b506107c760048036038101906107c29190613dda565b611cc4565b005b6107e360048036038101906107de9190614210565b611d62565b005b3480156107f157600080fd5b506107fa611e68565b6040516108079190614dce565b60405180910390f35b34801561081c57600080fd5b50610825611e92565b6040516108329190614f77565b60405180910390f35b34801561084757600080fd5b50610862600480360381019061085d9190613f09565b611f24565b005b34801561087057600080fd5b506108796120a5565b6040516108869190614eb0565b60405180910390f35b34801561089b57600080fd5b506108b660048036038101906108b19190613e8e565b6120af565b005b3480156108c457600080fd5b506108df60048036038101906108da919061415c565b612111565b6040516108ec9190614f77565b60405180910390f35b34801561090157600080fd5b5061090a61214b565b6040516109179190614f77565b60405180910390f35b34801561092c57600080fd5b5061094760048036038101906109429190613e03565b6121dd565b6040516109549190614e95565b60405180910390f35b34801561096957600080fd5b50610984600480360381019061097f9190614010565b6122df565b005b34801561099257600080fd5b506109ad60048036038101906109a89190613dda565b612365565b005b3480156109bb57600080fd5b506109d660048036038101906109d19190614010565b61245d565b005b3480156109e457600080fd5b506109ff60048036038101906109fa9190613dda565b6124e3565b604051610a0c9190614e73565b60405180910390f35b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610a885750610a8782612690565b5b9050919050565b606060008054610a9e90615647565b80601f0160208091040260200160405190810160405280929190818152602001828054610aca90615647565b8015610b175780601f10610aec57610100808354040283529160200191610b17565b820191906000526020600020905b815481529060010190602001808311610afa57829003601f168201915b5050505050905090565b6000610b2c82612772565b610b6b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b6290615179565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610bb182611a39565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610c22576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c19906151f9565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610c416127de565b73ffffffffffffffffffffffffffffffffffffffff161480610c705750610c6f81610c6a6127de565b6121dd565b5b610caf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ca6906150d9565b60405180910390fd5b610cb983836127ed565b505050565b606060006040518060600160405280600c60008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205481526020018873ffffffffffffffffffffffffffffffffffffffff168152602001878152509050610d4187828787876128a6565b610d80576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d77906151d9565b60405180910390fd5b610dd36001600c60008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546129af90919063ffffffff16565b600c60008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055507f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b873388604051610e4993929190614de9565b60405180910390a16000803073ffffffffffffffffffffffffffffffffffffffff16888a604051602001610e7e929190614d30565b604051602081830303815290604052604051610e9a9190614d19565b6000604051808303816000865af19150503d8060008114610ed7576040519150601f19603f3d011682016040523d82523d6000602084013e610edc565b606091505b509150915081610f21576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f1890614ff9565b60405180910390fd5b80935050505095945050505050565b610f386127de565b73ffffffffffffffffffffffffffffffffffffffff16610f56611e68565b73ffffffffffffffffffffffffffffffffffffffff1614610fac576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fa390615199565b60405180910390fd5b60115483610fb86110ab565b610fc2919061540a565b1115611003576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ffa90615139565b60405180910390fd5b60005b8381101561106c57816016600061101b6129c5565b815260200190815260200160002060006101000a81548160ff0219169083151502179055506110518361104c6129c5565b6129e2565b611059612bb0565b808061106490615679565b915050611006565b50505050565b6040518060400160405280600181526020017f310000000000000000000000000000000000000000000000000000000000000081525081565b6000600880549050905090565b60166020528060005260406000206000915054906101000a900460ff1681565b6000600b54905090565b6110f36110ed6127de565b82612bca565b611132576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161112990615219565b60405180910390fd5b61113d838383612ca8565b505050565b6000601854905090565b6111546127de565b73ffffffffffffffffffffffffffffffffffffffff16611172611e68565b73ffffffffffffffffffffffffffffffffffffffff16146111c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111bf90615199565b60405180910390fd5b6000601960006101000a81548160ff021916908315150217905550565b6000600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600061123983611b84565b821061127a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161127190614f99565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b6000804690508091505090565b60156020528060005260406000206000915054906101000a900460ff1681565b61131261130b6120a5565b338461153d565b61131b57600080fd5b6010548360ff1661132a6110ab565b611334919061540a565b111561133f57600080fd5b60018360ff161480611354575060028360ff16145b61135d57600080fd5b600283601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166113b79190615460565b60ff1611156113c557600080fd5b6113d76113d0611142565b338361153d565b156113fd578260ff166012546113ed91906154c8565b34146113f857600080fd5b61141a565b8260ff1660135461140e91906154c8565b341461141957600080fd5b5b82601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282829054906101000a900460ff166114759190615460565b92506101000a81548160ff021916908360ff16021790555060005b8360ff168110156115175760ff6114a5612f04565b6114af91906156fa565b600114156114eb576001601660006114c56129c5565b815260200190815260200160002060006101000a81548160ff0219169083151502179055505b6114fc336114f76129c5565b6129e2565b611504612bb0565b808061150f90615679565b915050611490565b50505050565b611538838383604051806020016040528060008152506120af565b505050565b600080836040516020016115519190614caa565b60405160208183030381529060405280519060200120905060005b83518110156116325760008482815181106115b0577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101519050808310156115f25782816040516020016115d5929190614cc5565b60405160208183030381529060405280519060200120925061161e565b8083604051602001611605929190614cc5565b6040516020818303038152906040528051906020012092505b50808061162a90615679565b91505061156c565b508481149150509392505050565b6116486127de565b73ffffffffffffffffffffffffffffffffffffffff16611666611e68565b73ffffffffffffffffffffffffffffffffffffffff16146116bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116b390615199565b60405180910390fd5b60006116c6611e68565b90508073ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f1935050505015801561170e573d6000803e3d6000fd5b5050565b818161171d82611a39565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461175457600080fd5b61175d81611a39565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461179457600080fd5b83836016600083815260200190815260200160002060009054906101000a900460ff16156117c157600080fd5b6016600082815260200190815260200160002060009054906101000a900460ff16156117ec57600080fd5b8585808214156117fb57600080fd5b601960019054906101000a900460ff1661181457600080fd5b600261181f33611b84565b101561182a57600080fd5b61183388612f6f565b61183c87612f6f565b61184d336118486129c5565b6129e2565b611855612bb0565b7fb8e769fb8b0d8ca89c53a0e9684c5d264f33b2ea515f42a1f62b1eb8d2baba7388883360405161188893929190615274565b60405180910390a15050505050505050565b60006118a46110ab565b82106118e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118dc90615239565b60405180910390fd5b6008828154811061191f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b6119396127de565b73ffffffffffffffffffffffffffffffffffffffff16611957611e68565b73ffffffffffffffffffffffffffffffffffffffff16146119ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119a490615199565b60405180910390fd5b80601490805190602001906119c3929190613b29565b5050565b60006119d282612772565b611a11576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a08906150b9565b60405180910390fd5b6016600083815260200190815260200160002060009054906101000a900460ff169050919050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611ae2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ad990615119565b60405180910390fd5b80915050919050565b611af36127de565b73ffffffffffffffffffffffffffffffffffffffff16611b11611e68565b73ffffffffffffffffffffffffffffffffffffffff1614611b67576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b5e90615199565b60405180910390fd5b6001601960016101000a81548160ff021916908315150217905550565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611bf5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bec906150f9565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611c446127de565b73ffffffffffffffffffffffffffffffffffffffff16611c62611e68565b73ffffffffffffffffffffffffffffffffffffffff1614611cb8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611caf90615199565b60405180910390fd5b611cc26000613080565b565b611ccc6127de565b73ffffffffffffffffffffffffffffffffffffffff16611cea611e68565b73ffffffffffffffffffffffffffffffffffffffff1614611d40576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d3790615199565b60405180910390fd5b6000611d4a6129c5565b9050611d5682826129e2565b611d5e612bb0565b5050565b6010548160ff16611d716110ab565b611d7b919061540a565b1115611d8657600080fd5b601960009054906101000a900460ff1615611da057600080fd5b60018160ff161480611db5575060028160ff16145b611dbe57600080fd5b8060ff16601354611dcf91906154c8565b3414611dda57600080fd5b60005b8160ff16811015611e645760ff611df2612f04565b611dfc91906156fa565b60011415611e3857600160166000611e126129c5565b815260200190815260200160002060006101000a81548160ff0219169083151502179055505b611e4933611e446129c5565b6129e2565b611e51612bb0565b8080611e5c90615679565b915050611ddd565b5050565b6000600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060018054611ea190615647565b80601f0160208091040260200160405190810160405280929190818152602001828054611ecd90615647565b8015611f1a5780601f10611eef57610100808354040283529160200191611f1a565b820191906000526020600020905b815481529060010190602001808311611efd57829003601f168201915b5050505050905090565b611f2c6127de565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611f9a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f9190615059565b60405180910390fd5b8060056000611fa76127de565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166120546127de565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516120999190614e95565b60405180910390a35050565b6000601754905090565b6120c06120ba6127de565b83612bca565b6120ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120f690615219565b60405180910390fd5b61210b84848484613146565b50505050565b606061211b61214b565b612124836131a2565b604051602001612135929190614d58565b6040516020818303038152906040529050919050565b60606014805461215a90615647565b80601f016020809104026020016040519081016040528092919081815260200182805461218690615647565b80156121d35780601f106121a8576101008083540402835291602001916121d3565b820191906000526020600020905b8154815290600101906020018083116121b657829003601f168201915b5050505050905090565b600080600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1663c4552791866040518263ffffffff1660e01b81526004016122559190614dce565b60206040518083038186803b15801561226d57600080fd5b505afa158015612281573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122a591906140f2565b73ffffffffffffffffffffffffffffffffffffffff1614156122cb5760019150506122d9565b6122d5848461334f565b9150505b92915050565b6122e76127de565b73ffffffffffffffffffffffffffffffffffffffff16612305611e68565b73ffffffffffffffffffffffffffffffffffffffff161461235b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161235290615199565b60405180910390fd5b8060188190555050565b61236d6127de565b73ffffffffffffffffffffffffffffffffffffffff1661238b611e68565b73ffffffffffffffffffffffffffffffffffffffff16146123e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123d890615199565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612451576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161244890614fd9565b60405180910390fd5b61245a81613080565b50565b6124656127de565b73ffffffffffffffffffffffffffffffffffffffff16612483611e68565b73ffffffffffffffffffffffffffffffffffffffff16146124d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124d090615199565b60405180910390fd5b8060178190555050565b606060006124f083611b84565b67ffffffffffffffff81111561252f577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60405190808252806020026020018201604052801561255d5781602001602082028036833780820191505090505b50905060005b61256c84611b84565b8110156125d55761257d848261122e565b8282815181106125b6577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101818152505080806125cd90615679565b915050612563565b5080915050919050565b60003073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561268957600080368080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509050600080369050905073ffffffffffffffffffffffffffffffffffffffff81830151169250505061268d565b3390505b90565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061275b57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061276b575061276a826133e3565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b60006127e86125df565b905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661286083611a39565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff161415612917576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161290e90615099565b60405180910390fd5b600161292a6129258761344d565b6134b5565b8386866040516000815260200160405260405161294a9493929190614f10565b6020604051602081039080840390855afa15801561296c573d6000803e3d6000fd5b5050506020604051035173ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614905095945050505050565b600081836129bd919061540a565b905092915050565b60006129dd6001600f546129af90919063ffffffff16565b905090565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612a52576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a4990615159565b60405180910390fd5b612a5b81612772565b15612a9b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a9290615019565b60405180910390fd5b612aa7600083836134ee565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612af7919061540a565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600f6000815480929190612bc390615679565b9190505550565b6000612bd582612772565b612c14576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c0b90615079565b60405180910390fd5b6000612c1f83611a39565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612c8e57508373ffffffffffffffffffffffffffffffffffffffff16612c7684610b21565b73ffffffffffffffffffffffffffffffffffffffff16145b80612c9f5750612c9e81856121dd565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612cc882611a39565b73ffffffffffffffffffffffffffffffffffffffff1614612d1e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d15906151b9565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612d8e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d8590615039565b60405180910390fd5b612d998383836134ee565b612da46000826127ed565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612df49190615522565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612e4b919061540a565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b600080600143612f149190615522565b40612f1d6110ab565b604051602001612f2d9190614db3565b604051602081830303815290604052604051602001612f4d929190614cf1565b6040516020818303038152906040528051906020012060001c90508091505090565b6000612f7a82611a39565b9050612f88816000846134ee565b612f936000836127ed565b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612fe39190615522565b925050819055506002600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b6000600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b613151848484612ca8565b61315d84848484613602565b61319c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161319390614fb9565b60405180910390fd5b50505050565b606060008214156131ea576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061334a565b600082905060005b6000821461321c57808061320590615679565b915050600a826132159190615497565b91506131f2565b60008167ffffffffffffffff81111561325e577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156132905781602001600182028036833780820191505090505b5090505b60008514613343576001826132a99190615522565b9150600a856132b891906156fa565b60306132c4919061540a565b60f81b818381518110613300577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561333c9190615497565b9450613294565b8093505050505b919050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60006040518060800160405280604381526020016158a76043913980519060200120826000015183602001518460400151805190602001206040516020016134989493929190614ecb565b604051602081830303815290604052805190602001209050919050565b60006134bf6110d8565b826040516020016134d1929190614d7c565b604051602081830303815290604052805190602001209050919050565b6134f9838383613799565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561353c576135378161379e565b61357b565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461357a5761357983826137e7565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156135be576135b981613954565b6135fd565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146135fc576135fb8282613a97565b5b5b505050565b60006136238473ffffffffffffffffffffffffffffffffffffffff16613b16565b1561378c578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261364c6127de565b8786866040518563ffffffff1660e01b815260040161366e9493929190614e27565b602060405180830381600087803b15801561368857600080fd5b505af19250505080156136b957506040513d601f19601f820116820180604052508101906136b691906140c9565b60015b61373c573d80600081146136e9576040519150601f19603f3d011682016040523d82523d6000602084013e6136ee565b606091505b50600081511415613734576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161372b90614fb9565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613791565b600190505b949350505050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b600060016137f484611b84565b6137fe9190615522565b90506000600760008481526020019081526020016000205490508181146138e3576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016008805490506139689190615522565b90506000600960008481526020019081526020016000205490506000600883815481106139be577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020015490508060088381548110613a06577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020018190555081600960008381526020019081526020016000208190555060096000858152602001908152602001600020600090556008805480613a7b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000613aa283611b84565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600080823b905060008111915050919050565b828054613b3590615647565b90600052602060002090601f016020900481019282613b575760008555613b9e565b82601f10613b7057805160ff1916838001178555613b9e565b82800160010185558215613b9e579182015b82811115613b9d578251825591602001919060010190613b82565b5b509050613bab9190613baf565b5090565b5b80821115613bc8576000816000905550600101613bb0565b5090565b6000613bdf613bda846152f7565b6152c6565b90508083825260208201905082856020860282011115613bfe57600080fd5b60005b85811015613c2e5781613c148882613d08565b845260208401935060208301925050600181019050613c01565b5050509392505050565b6000613c4b613c4684615323565b6152c6565b905082815260208101848484011115613c6357600080fd5b613c6e848285615605565b509392505050565b6000613c89613c8484615353565b6152c6565b905082815260208101848484011115613ca157600080fd5b613cac848285615605565b509392505050565b600081359050613cc381615805565b92915050565b600082601f830112613cda57600080fd5b8135613cea848260208601613bcc565b91505092915050565b600081359050613d028161581c565b92915050565b600081359050613d1781615833565b92915050565b600081359050613d2c8161584a565b92915050565b600081519050613d418161584a565b92915050565b600082601f830112613d5857600080fd5b8135613d68848260208601613c38565b91505092915050565b600081519050613d8081615861565b92915050565b600082601f830112613d9757600080fd5b8135613da7848260208601613c76565b91505092915050565b600081359050613dbf81615878565b92915050565b600081359050613dd48161588f565b92915050565b600060208284031215613dec57600080fd5b6000613dfa84828501613cb4565b91505092915050565b60008060408385031215613e1657600080fd5b6000613e2485828601613cb4565b9250506020613e3585828601613cb4565b9150509250929050565b600080600060608486031215613e5457600080fd5b6000613e6286828701613cb4565b9350506020613e7386828701613cb4565b9250506040613e8486828701613db0565b9150509250925092565b60008060008060808587031215613ea457600080fd5b6000613eb287828801613cb4565b9450506020613ec387828801613cb4565b9350506040613ed487828801613db0565b925050606085013567ffffffffffffffff811115613ef157600080fd5b613efd87828801613d47565b91505092959194509250565b60008060408385031215613f1c57600080fd5b6000613f2a85828601613cb4565b9250506020613f3b85828601613cf3565b9150509250929050565b600080600080600060a08688031215613f5d57600080fd5b6000613f6b88828901613cb4565b955050602086013567ffffffffffffffff811115613f8857600080fd5b613f9488828901613d47565b9450506040613fa588828901613d08565b9350506060613fb688828901613d08565b9250506080613fc788828901613dc5565b9150509295509295909350565b60008060408385031215613fe757600080fd5b6000613ff585828601613cb4565b925050602061400685828601613db0565b9150509250929050565b60006020828403121561402257600080fd5b600061403084828501613d08565b91505092915050565b60008060006060848603121561404e57600080fd5b600061405c86828701613d08565b935050602061406d86828701613cb4565b925050604084013567ffffffffffffffff81111561408a57600080fd5b61409686828701613cc9565b9150509250925092565b6000602082840312156140b257600080fd5b60006140c084828501613d1d565b91505092915050565b6000602082840312156140db57600080fd5b60006140e984828501613d32565b91505092915050565b60006020828403121561410457600080fd5b600061411284828501613d71565b91505092915050565b60006020828403121561412d57600080fd5b600082013567ffffffffffffffff81111561414757600080fd5b61415384828501613d86565b91505092915050565b60006020828403121561416e57600080fd5b600061417c84828501613db0565b91505092915050565b60008060006060848603121561419a57600080fd5b60006141a886828701613db0565b93505060206141b986828701613cb4565b92505060406141ca86828701613cf3565b9150509250925092565b600080604083850312156141e757600080fd5b60006141f585828601613db0565b925050602061420685828601613db0565b9150509250929050565b60006020828403121561422257600080fd5b600061423084828501613dc5565b91505092915050565b60008060006060848603121561424e57600080fd5b600061425c86828701613dc5565b935050602084013567ffffffffffffffff81111561427957600080fd5b61428586828701613cc9565b925050604084013567ffffffffffffffff8111156142a257600080fd5b6142ae86828701613cc9565b9150509250925092565b60006142c48383614c66565b60208301905092915050565b6142d981615568565b82525050565b6142e881615556565b82525050565b6142ff6142fa82615556565b6156c2565b82525050565b600061431082615393565b61431a81856153c1565b935061432583615383565b8060005b8381101561435657815161433d88826142b8565b9750614348836153b4565b925050600181019050614329565b5085935050505092915050565b61436c8161557a565b82525050565b61437b81615586565b82525050565b61439261438d82615586565b6156d4565b82525050565b60006143a38261539e565b6143ad81856153d2565b93506143bd818560208601615614565b6143c6816157e7565b840191505092915050565b60006143dc8261539e565b6143e681856153e3565b93506143f6818560208601615614565b80840191505092915050565b600061440d826153a9565b61441781856153ee565b9350614427818560208601615614565b614430816157e7565b840191505092915050565b6000614446826153a9565b61445081856153ff565b9350614460818560208601615614565b80840191505092915050565b6000614479602b836153ee565b91507f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008301527f74206f6620626f756e64730000000000000000000000000000000000000000006020830152604082019050919050565b60006144df6032836153ee565b91507f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008301527f63656976657220696d706c656d656e74657200000000000000000000000000006020830152604082019050919050565b60006145456026836153ee565b91507f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008301527f64647265737300000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006145ab601c836153ee565b91507f46756e6374696f6e2063616c6c206e6f74207375636365737366756c000000006000830152602082019050919050565b60006145eb601c836153ee565b91507f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006000830152602082019050919050565b600061462b6002836153ff565b91507f19010000000000000000000000000000000000000000000000000000000000006000830152600282019050919050565b600061466b6024836153ee565b91507f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008301527f72657373000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006146d16019836153ee565b91507f4552433732313a20617070726f766520746f2063616c6c6572000000000000006000830152602082019050919050565b6000614711602c836153ee565b91507f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b60006147776025836153ee565b91507f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360008301527f49474e45520000000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006147dd6013836153ee565b91507f746f6b656e20646f65736e2774206578697374000000000000000000000000006000830152602082019050919050565b600061481d6038836153ee565b91507f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008301527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006020830152604082019050919050565b6000614883602a836153ee565b91507f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008301527f726f2061646472657373000000000000000000000000000000000000000000006020830152604082019050919050565b60006148e96029836153ee565b91507f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008301527f656e7420746f6b656e00000000000000000000000000000000000000000000006020830152604082019050919050565b600061494f6015836153ee565b91507f435553544f4d4d494e544d4158205265616368656400000000000000000000006000830152602082019050919050565b600061498f6020836153ee565b91507f4552433732313a206d696e7420746f20746865207a65726f20616464726573736000830152602082019050919050565b60006149cf602c836153ee565b91507f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b6000614a356020836153ee565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b6000614a756029836153ee565b91507f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008301527f73206e6f74206f776e00000000000000000000000000000000000000000000006020830152604082019050919050565b6000614adb6021836153ee565b91507f5369676e657220616e64207369676e617475726520646f206e6f74206d61746360008301527f68000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614b416021836153ee565b91507f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008301527f72000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614ba76031836153ee565b91507f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008301527f776e6572206e6f7220617070726f7665640000000000000000000000000000006020830152604082019050919050565b6000614c0d602c836153ee565b91507f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008301527f7574206f6620626f756e647300000000000000000000000000000000000000006020830152604082019050919050565b614c6f816155ee565b82525050565b614c7e816155ee565b82525050565b614c95614c90826155ee565b6156f0565b82525050565b614ca4816155f8565b82525050565b6000614cb682846142ee565b60148201915081905092915050565b6000614cd18285614381565b602082019150614ce18284614381565b6020820191508190509392505050565b6000614cfd8285614381565b602082019150614d0d82846143d1565b91508190509392505050565b6000614d2582846143d1565b915081905092915050565b6000614d3c82856143d1565b9150614d4882846142ee565b6014820191508190509392505050565b6000614d64828561443b565b9150614d70828461443b565b91508190509392505050565b6000614d878261461e565b9150614d938285614381565b602082019150614da38284614381565b6020820191508190509392505050565b6000614dbf8284614c84565b60208201915081905092915050565b6000602082019050614de360008301846142df565b92915050565b6000606082019050614dfe60008301866142df565b614e0b60208301856142d0565b8181036040830152614e1d8184614398565b9050949350505050565b6000608082019050614e3c60008301876142df565b614e4960208301866142df565b614e566040830185614c75565b8181036060830152614e688184614398565b905095945050505050565b60006020820190508181036000830152614e8d8184614305565b905092915050565b6000602082019050614eaa6000830184614363565b92915050565b6000602082019050614ec56000830184614372565b92915050565b6000608082019050614ee06000830187614372565b614eed6020830186614c75565b614efa60408301856142df565b614f076060830184614372565b95945050505050565b6000608082019050614f256000830187614372565b614f326020830186614c9b565b614f3f6040830185614372565b614f4c6060830184614372565b95945050505050565b60006020820190508181036000830152614f6f8184614398565b905092915050565b60006020820190508181036000830152614f918184614402565b905092915050565b60006020820190508181036000830152614fb28161446c565b9050919050565b60006020820190508181036000830152614fd2816144d2565b9050919050565b60006020820190508181036000830152614ff281614538565b9050919050565b600060208201905081810360008301526150128161459e565b9050919050565b60006020820190508181036000830152615032816145de565b9050919050565b600060208201905081810360008301526150528161465e565b9050919050565b60006020820190508181036000830152615072816146c4565b9050919050565b6000602082019050818103600083015261509281614704565b9050919050565b600060208201905081810360008301526150b28161476a565b9050919050565b600060208201905081810360008301526150d2816147d0565b9050919050565b600060208201905081810360008301526150f281614810565b9050919050565b6000602082019050818103600083015261511281614876565b9050919050565b60006020820190508181036000830152615132816148dc565b9050919050565b6000602082019050818103600083015261515281614942565b9050919050565b6000602082019050818103600083015261517281614982565b9050919050565b60006020820190508181036000830152615192816149c2565b9050919050565b600060208201905081810360008301526151b281614a28565b9050919050565b600060208201905081810360008301526151d281614a68565b9050919050565b600060208201905081810360008301526151f281614ace565b9050919050565b6000602082019050818103600083015261521281614b34565b9050919050565b6000602082019050818103600083015261523281614b9a565b9050919050565b6000602082019050818103600083015261525281614c00565b9050919050565b600060208201905061526e6000830184614c75565b92915050565b60006060820190506152896000830186614c75565b6152966020830185614c75565b6152a360408301846142df565b949350505050565b60006020820190506152c06000830184614c9b565b92915050565b6000604051905081810181811067ffffffffffffffff821117156152ed576152ec6157b8565b5b8060405250919050565b600067ffffffffffffffff821115615312576153116157b8565b5b602082029050602081019050919050565b600067ffffffffffffffff82111561533e5761533d6157b8565b5b601f19601f8301169050602081019050919050565b600067ffffffffffffffff82111561536e5761536d6157b8565b5b601f19601f8301169050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000615415826155ee565b9150615420836155ee565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156154555761545461572b565b5b828201905092915050565b600061546b826155f8565b9150615476836155f8565b92508260ff0382111561548c5761548b61572b565b5b828201905092915050565b60006154a2826155ee565b91506154ad836155ee565b9250826154bd576154bc61575a565b5b828204905092915050565b60006154d3826155ee565b91506154de836155ee565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156155175761551661572b565b5b828202905092915050565b600061552d826155ee565b9150615538836155ee565b92508282101561554b5761554a61572b565b5b828203905092915050565b6000615561826155ce565b9050919050565b6000615573826155ce565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b60006155c782615556565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b83811015615632578082015181840152602081019050615617565b83811115615641576000848401525b50505050565b6000600282049050600182168061565f57607f821691505b6020821081141561567357615672615789565b5b50919050565b6000615684826155ee565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156156b7576156b661572b565b5b600182019050919050565b60006156cd826156de565b9050919050565b6000819050919050565b60006156e9826157f8565b9050919050565b6000819050919050565b6000615705826155ee565b9150615710836155ee565b9250826157205761571f61575a565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b61580e81615556565b811461581957600080fd5b50565b6158258161557a565b811461583057600080fd5b50565b61583c81615586565b811461584757600080fd5b50565b61585381615590565b811461585e57600080fd5b50565b61586a816155bc565b811461587557600080fd5b50565b615881816155ee565b811461588c57600080fd5b50565b615898816155f8565b81146158a357600080fd5b5056fe4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e617475726529a2646970667358221220e4619a9b8f23e608dd138ea219f238cd7177df330d81be7acbe32214fef07f8064736f6c63430008000033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
-----Decoded View---------------
Arg [0] : _proxyRegistryAddress (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
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.