Overview
ETH Balance
0.08 ETH
Eth Value
$232.31 (@ $2,903.85/ETH)More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 68 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Approval For... | 17451585 | 516 days ago | IN | 0 ETH | 0.00084566 | ||||
Set Approval For... | 15574326 | 779 days ago | IN | 0 ETH | 0.00021071 | ||||
Transfer From | 15573259 | 780 days ago | IN | 0 ETH | 0.00068156 | ||||
Set Approval For... | 15175390 | 842 days ago | IN | 0 ETH | 0.00094959 | ||||
Set Approval For... | 15083427 | 856 days ago | IN | 0 ETH | 0.00086994 | ||||
Set Approval For... | 14824205 | 900 days ago | IN | 0 ETH | 0.00149006 | ||||
Set Approval For... | 14797728 | 905 days ago | IN | 0 ETH | 0.00079396 | ||||
Set Approval For... | 14797472 | 905 days ago | IN | 0 ETH | 0.00047585 | ||||
Set Approval For... | 14797469 | 905 days ago | IN | 0 ETH | 0.000422 | ||||
Set Approval For... | 14735824 | 914 days ago | IN | 0 ETH | 0.00064748 | ||||
Set Approval For... | 14446452 | 960 days ago | IN | 0 ETH | 0.00169943 | ||||
Set Approval For... | 14228988 | 994 days ago | IN | 0 ETH | 0.00769097 | ||||
Set Approval For... | 14187357 | 1000 days ago | IN | 0 ETH | 0.00418129 | ||||
Set Approval For... | 13983076 | 1032 days ago | IN | 0 ETH | 0.01094842 | ||||
Herolist Mint | 13892463 | 1046 days ago | IN | 0 ETH | 0.01124985 | ||||
Herolist Mint | 13876479 | 1048 days ago | IN | 0 ETH | 0.01099301 | ||||
Mint Hero | 13870020 | 1049 days ago | IN | 0.02 ETH | 0.01205176 | ||||
Mint Hero | 13870020 | 1049 days ago | IN | 0.02 ETH | 0.01205176 | ||||
Mint Hero | 13870020 | 1049 days ago | IN | 0.02 ETH | 0.01205176 | ||||
Mint Hero | 13870020 | 1049 days ago | IN | 0.02 ETH | 0.01205176 | ||||
Mint Hero | 13857159 | 1051 days ago | IN | 0.02 ETH | 0.01148048 | ||||
Set Base URI | 13857012 | 1051 days ago | IN | 0 ETH | 0.00362814 | ||||
Herolist Mint | 13855635 | 1051 days ago | IN | 0 ETH | 0.0161567 | ||||
Herolist Mint | 13855589 | 1051 days ago | IN | 0 ETH | 0.01264567 | ||||
Herolist Mint | 13853947 | 1052 days ago | IN | 0 ETH | 0.00660663 |
Loading...
Loading
Contract Name:
HunkyHeroes
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; contract HunkyHeroes is ERC721Enumerable, ERC721Burnable { uint256 public constant MAX_HEROES = 6500; uint256 private constant MINT_MAX = 100; uint256 public currentSupply = 0; uint256 public mintPrice = 0.02 ether; address public msgSigner = address(0x6395d64d6dD3577107c990777e23fEa7D43FC7Df); string private baseURI; bool public saleLive = false; bool public presaleLive = false; //whitelist tracking mapping (address => uint256) public minted; //team members mapping(address => bool) public teamMap; address[3] public teamList; //events event MembershipTransferred( address indexed from, address indexed to ); /** * @param baseURI_ is the metadata root for the HunkyHero nfts */ constructor(string memory baseURI_) ERC721("HunkyHeroes", "HERO") { teamMap[msg.sender] = true; //Panda as deployer teamMap[0x63E600409F305eF517F6f341b69a24d09Fa26B97] = true; //Chief teamMap[0x28F5417f0B461cAF68259fFef48Bc098246F1E7c] = true; //Mayor teamList[0] = msg.sender; //Panda as deployer teamList[1] = 0x63E600409F305eF517F6f341b69a24d09Fa26B97; //Chief teamList[2] = 0x28F5417f0B461cAF68259fFef48Bc098246F1E7c; //Mayor setBaseURI(baseURI_); } modifier saleIsLive { require(saleLive == true, "Sale is not live"); _; } modifier presaleIsLive { require(presaleLive == true, "Presale is not live"); _; } modifier onlyTeam { require( teamMap[msg.sender] == true, "caller is not on the HunkyHeroes team" ); _; } /** * @notice allow contract to receive Ether */ receive() external payable {} //external /** * @notice list the ids of all the heroes in _owner's wallet * @param _owner is the wallet address of the hero owner * */ function listMyHeroes(address _owner) external view returns (uint256[] memory) { uint256 nHeroes = balanceOf(_owner); // if zero return an empty array if (nHeroes == 0) { return new uint256[](0); } else { uint256[] memory heroList = new uint256[](nHeroes); uint256 ii; for (ii = 0; ii < nHeroes; ii++) { heroList[ii] = tokenOfOwnerByIndex(_owner, ii); } return heroList; } } //public /** * @notice mint brand new HunkyHero nfts * @param numHeroes is the number of heroes to mint */ function mintHero(uint256 numHeroes) public payable saleIsLive { require( (numHeroes > 0) && (numHeroes <= MINT_MAX), "you can mint between 1 and 100 heroes at once" ); require( msg.value >= (numHeroes * mintPrice), "not enough Ether sent with tx" ); //mint dem heroes _mintHeroes(msg.sender, numHeroes); return; } /** * @notice mint heroes from the whitelist * @param _sig whitelist signature * @param _quota wl quota awarded * @param _num number of Heroes to mint! */ function herolistMint( bytes calldata _sig, uint256 _quota, uint256 _num ) public presaleIsLive { require(_num > 0); //overclaiming? already minted? require(_num + minted[msg.sender] <= _quota, "not enough WL mints left" ); // check msg.sender is on the whitelist require(legitSigner(_sig, _quota), "invalid signature"); //effects minted[msg.sender] += _num; //mint dem heroes _mintHeroes(msg.sender, _num); return; } /** * @notice burn a hero, perhaps save a civilian * @param _heroId the hero to burn */ function ultimateSacrifice(uint256 _heroId) external { require( _isApprovedOrOwner(msg.sender, _heroId), "you can't burn this hero" ); _burn(_heroId); //parent contract emits burn event } //onlyTeam functions /** * @param newBaseURI will be set as the new baseURI * for token metadata access */ function setBaseURI(string memory newBaseURI) public onlyTeam { baseURI = newBaseURI; } /** * @notice start or stop minting */ function toggleSale() public onlyTeam { saleLive = !saleLive; } /** * @notice start or stop presale minting */ function togglePresale() public onlyTeam { presaleLive = !presaleLive; } /** * @notice set a new sale mintPrice in WEI * @dev be sure to set the new mintPrice in WEI * @param newWeiPrice the new mint mintPrice in WEI */ function setMintPrice(uint256 newWeiPrice) public onlyTeam { mintPrice = newWeiPrice; } /** * @notice set a new msgSigner for whitelist validation * @param newSigner is the new signer address */ function setMsgSigner(address newSigner) public onlyTeam { msgSigner = newSigner; } /** * @notice airdrop heroes for prizes and community perks * @param to is the destination address * @param num is the number of heroes to airdrop */ function airdropHeroes(address to, uint256 num) public onlyTeam { require(num > 0 && num <= MINT_MAX); _mintHeroes(to, num); } /** * @notice transfer team membership to a different address * team members have admin rights with onlyTeam modifier * @param to is the address to transfer admin rights to */ function transferMembership(address to) public onlyTeam { teamMap[msg.sender] = false; teamMap[to] = true; for (uint256 i = 0; i < 3; i++) { if (teamList[i] == msg.sender) { teamList[i] = to; } } emit MembershipTransferred(msg.sender, to); } //withdraw to trusted addresses function withdraw() public onlyTeam { uint256 bal = address(this).balance; payable(teamList[0]).send(bal * 2000 / 10000); //Panda payable(teamList[1]).send(bal * 4000 / 10000); //Chief payable(teamList[2]).send(bal * 4000 / 10000); //Mayor } //internal ///@notice override the _baseURI function in ERC721 function _baseURI() internal view virtual override returns (string memory) { return baseURI; } //private /** * @notice mint function called by multiple other functions * @notice token IDs start at 1 (not 0) * @param _to address to mint to * @param _num number of heroes to mint */ function _mintHeroes(address _to, uint256 _num) private { require(currentSupply + _num <= MAX_HEROES, "not enough Heroes left"); for (uint256 h = 0; h < _num; h++) { currentSupply ++; _safeMint(_to, currentSupply); } } /** * @notice does signature _sig contain a legit hash and * was it signed by msgSigner? * @param _sig the signature to inspect * @dev the signer is recovered and compared to msgSigner */ function legitSigner(bytes memory _sig, uint256 _numHashed) private view returns (bool) { //hash the sender and this address bytes32 checkHash = keccak256(abi.encodePacked( msg.sender, address(this), _numHashed )); //the _sig should be a signed version of checkHash bytes32 ethHash = ECDSA.toEthSignedMessageHash(checkHash); address recoveredSigner = ECDSA.recover(ethHash, _sig); return (recoveredSigner == msgSigner); } /** * @notice override parent hooks */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override(ERC721, ERC721Enumerable) { super._beforeTokenTransfer(from, to, tokenId); } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721, ERC721Enumerable) returns (bool) { return super.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/ERC721Enumerable.sol) 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 // OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/ERC721Burnable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "../../../utils/Context.sol"; /** * @title ERC721 Burnable Token * @dev ERC721 Token that can be irreversibly burned (destroyed). */ abstract contract ERC721Burnable is Context, ERC721 { /** * @dev Burns `tokenId`. See {ERC721-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) public virtual { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved"); _burn(tokenId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "../Strings.sol"; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return tryRecover(hash, r, vs); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s; uint8 v; assembly { s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) v := add(shr(255, vs), 27) } return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC721/ERC721.sol) 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 { _setApprovalForAll(_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 Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @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 // OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/IERC721Enumerable.sol) 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 // OpenZeppelin Contracts v4.4.0 (token/ERC721/IERC721.sol) 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 // OpenZeppelin Contracts v4.4.0 (token/ERC721/IERC721Receiver.sol) 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 // OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/IERC721Metadata.sol) 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 // OpenZeppelin Contracts v4.4.0 (utils/Address.sol) 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 // OpenZeppelin Contracts v4.4.0 (utils/Context.sol) 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 // OpenZeppelin Contracts v4.4.0 (utils/Strings.sol) 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 // OpenZeppelin Contracts v4.4.0 (utils/introspection/ERC165.sol) 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 // OpenZeppelin Contracts v4.4.0 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"baseURI_","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"MembershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_HEROES","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"num","type":"uint256"}],"name":"airdropHeroes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currentSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"_sig","type":"bytes"},{"internalType":"uint256","name":"_quota","type":"uint256"},{"internalType":"uint256","name":"_num","type":"uint256"}],"name":"herolistMint","outputs":[],"stateMutability":"nonpayable","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":"address","name":"_owner","type":"address"}],"name":"listMyHeroes","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numHeroes","type":"uint256"}],"name":"mintHero","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"minted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"msgSigner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"presaleLive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":[],"name":"saleLive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newWeiPrice","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newSigner","type":"address"}],"name":"setMsgSigner","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":"","type":"uint256"}],"name":"teamList","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"teamMap","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"togglePresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"transferMembership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_heroId","type":"uint256"}],"name":"ultimateSacrifice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60806040526000600a5566470de4df820000600b55736395d64d6dd3577107c990777e23fea7d43fc7df600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000600e60006101000a81548160ff0219169083151502179055506000600e60016101000a81548160ff021916908315150217905550348015620000ac57600080fd5b50604051620060fb380380620060fb8339818101604052810190620000d291906200062a565b6040518060400160405280600b81526020017f48756e6b794865726f65730000000000000000000000000000000000000000008152506040518060400160405280600481526020017f4845524f0000000000000000000000000000000000000000000000000000000081525081600090805190602001906200015692919062000508565b5080600190805190602001906200016f92919062000508565b5050506001601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506001601060007363e600409f305ef517f6f341b69a24d09fa26b9773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506001601060007328f5417f0b461caf68259ffef48bc098246f1e7c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550336011600060038110620002df577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b0160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507363e600409f305ef517f6f341b69a24d09fa26b9760116001600381106200036f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b0160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507328f5417f0b461caf68259ffef48bc098246f1e7c6011600260038110620003ff577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b0160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506200044f816200045660201b60201c565b5062000888565b60011515601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151514620004ec576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620004e39062000696565b60405180910390fd5b80600d90805190602001906200050492919062000508565b5050565b82805462000516906200075e565b90600052602060002090601f0160209004810192826200053a576000855562000586565b82601f106200055557805160ff191683800117855562000586565b8280016001018555821562000586579182015b828111156200058557825182559160200191906001019062000568565b5b50905062000595919062000599565b5090565b5b80821115620005b45760008160009055506001016200059a565b5090565b6000620005cf620005c984620006e1565b620006b8565b905082815260208101848484011115620005e857600080fd5b620005f584828562000728565b509392505050565b600082601f8301126200060f57600080fd5b815162000621848260208601620005b8565b91505092915050565b6000602082840312156200063d57600080fd5b600082015167ffffffffffffffff8111156200065857600080fd5b6200066684828501620005fd565b91505092915050565b60006200067e60258362000717565b91506200068b8262000839565b604082019050919050565b60006020820190508181036000830152620006b1816200066f565b9050919050565b6000620006c4620006d7565b9050620006d2828262000794565b919050565b6000604051905090565b600067ffffffffffffffff821115620006ff57620006fe620007f9565b5b6200070a8262000828565b9050602081019050919050565b600082825260208201905092915050565b60005b83811015620007485780820151818401526020810190506200072b565b8381111562000758576000848401525b50505050565b600060028204905060018216806200077757607f821691505b602082108114156200078e576200078d620007ca565b5b50919050565b6200079f8262000828565b810181811067ffffffffffffffff82111715620007c157620007c0620007f9565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f63616c6c6572206973206e6f74206f6e207468652048756e6b794865726f657360008201527f207465616d000000000000000000000000000000000000000000000000000000602082015250565b61586380620008986000396000f3fe6080604052600436106102295760003560e01c8063612d19681161012357806383a9e049116100ab578063b88d4fde1161006f578063b88d4fde14610813578063c87b56dd1461083c578063e081b78114610879578063e985e9c5146108a4578063f4a0a528146108e157610230565b806383a9e04914610742578063861080ae1461076d57806395d89b4114610796578063a22cb465146107c1578063ac64df19146107ea57610230565b8063771282f6116100f2578063771282f61461066f5780637d8966e41461069a5780637dddd8f9146106b15780638028b285146106da578063824515b51461070557610230565b8063612d1968146105a15780636352211e146105ca5780636817c76c1461060757806370a082311461063257610230565b806323b872dd116101b157806342842e0e1161017557806342842e0e146104be57806342966c68146104e75780634f6ccce71461051057806355f804b31461054d57806359e87d171461057657610230565b806323b872dd146104015780632f745c591461042a57806334393743146104675780633ccfd60b1461047e5780633fc651861461049557610230565b8063095ea7b3116101f8578063095ea7b3146102f657806310be8d121461031f57806318160ddd1461035c57806319aa69b9146103875780631e7269c5146103c457610230565b806301ffc9a7146102355780630606cb291461027257806306fdde031461028e578063081812fc146102b957610230565b3661023057005b600080fd5b34801561024157600080fd5b5061025c60048036038101906102579190613ed0565b61090a565b60405161026991906146fd565b60405180910390f35b61028c60048036038101906102879190613fcf565b61091c565b005b34801561029a57600080fd5b506102a3610a1f565b6040516102b0919061475d565b60405180910390f35b3480156102c557600080fd5b506102e060048036038101906102db9190613fcf565b610ab1565b6040516102ed9190614674565b60405180910390f35b34801561030257600080fd5b5061031d60048036038101906103189190613e94565b610b36565b005b34801561032b57600080fd5b5061034660048036038101906103419190613d29565b610c4e565b60405161035391906146fd565b60405180910390f35b34801561036857600080fd5b50610371610c6e565b60405161037e9190614b3f565b60405180910390f35b34801561039357600080fd5b506103ae60048036038101906103a99190613fcf565b610c7b565b6040516103bb9190614674565b60405180910390f35b3480156103d057600080fd5b506103eb60048036038101906103e69190613d29565b610cb1565b6040516103f89190614b3f565b60405180910390f35b34801561040d57600080fd5b5061042860048036038101906104239190613d8e565b610cc9565b005b34801561043657600080fd5b50610451600480360381019061044c9190613e94565b610d29565b60405161045e9190614b3f565b60405180910390f35b34801561047357600080fd5b5061047c610dce565b005b34801561048a57600080fd5b50610493610e8d565b005b3480156104a157600080fd5b506104bc60048036038101906104b79190613f22565b61112c565b005b3480156104ca57600080fd5b506104e560048036038101906104e09190613d8e565b61130f565b005b3480156104f357600080fd5b5061050e60048036038101906105099190613fcf565b61132f565b005b34801561051c57600080fd5b5061053760048036038101906105329190613fcf565b61138b565b6040516105449190614b3f565b60405180910390f35b34801561055957600080fd5b50610574600480360381019061056f9190613f8e565b611422565b005b34801561058257600080fd5b5061058b6114cf565b6040516105989190614b3f565b60405180910390f35b3480156105ad57600080fd5b506105c860048036038101906105c39190613e94565b6114d5565b005b3480156105d657600080fd5b506105f160048036038101906105ec9190613fcf565b611590565b6040516105fe9190614674565b60405180910390f35b34801561061357600080fd5b5061061c611642565b6040516106299190614b3f565b60405180910390f35b34801561063e57600080fd5b5061065960048036038101906106549190613d29565b611648565b6040516106669190614b3f565b60405180910390f35b34801561067b57600080fd5b50610684611700565b6040516106919190614b3f565b60405180910390f35b3480156106a657600080fd5b506106af611706565b005b3480156106bd57600080fd5b506106d860048036038101906106d39190613d29565b6117c5565b005b3480156106e657600080fd5b506106ef61189c565b6040516106fc9190614674565b60405180910390f35b34801561071157600080fd5b5061072c60048036038101906107279190613d29565b6118c2565b60405161073991906146db565b60405180910390f35b34801561074e57600080fd5b50610757611a3e565b60405161076491906146fd565b60405180910390f35b34801561077957600080fd5b50610794600480360381019061078f9190613d29565b611a51565b005b3480156107a257600080fd5b506107ab611d1b565b6040516107b8919061475d565b60405180910390f35b3480156107cd57600080fd5b506107e860048036038101906107e39190613e58565b611dad565b005b3480156107f657600080fd5b50610811600480360381019061080c9190613fcf565b611dc3565b005b34801561081f57600080fd5b5061083a60048036038101906108359190613ddd565b611e18565b005b34801561084857600080fd5b50610863600480360381019061085e9190613fcf565b611e7a565b604051610870919061475d565b60405180910390f35b34801561088557600080fd5b5061088e611f21565b60405161089b91906146fd565b60405180910390f35b3480156108b057600080fd5b506108cb60048036038101906108c69190613d52565b611f34565b6040516108d891906146fd565b60405180910390f35b3480156108ed57600080fd5b5061090860048036038101906109039190613fcf565b611fc8565b005b600061091582612065565b9050919050565b60011515600e60009054906101000a900460ff16151514610972576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161096990614aff565b60405180910390fd5b600081118015610983575060648111155b6109c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109b9906147ff565b60405180910390fd5b600b54816109d09190614ce4565b341015610a12576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a09906149bf565b60405180910390fd5b610a1c33826120df565b50565b606060008054610a2e90614e3f565b80601f0160208091040260200160405190810160405280929190818152602001828054610a5a90614e3f565b8015610aa75780601f10610a7c57610100808354040283529160200191610aa7565b820191906000526020600020905b815481529060010190602001808311610a8a57829003601f168201915b5050505050905090565b6000610abc82612178565b610afb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610af290614a1f565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610b4182611590565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610bb2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ba990614a7f565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610bd16121e4565b73ffffffffffffffffffffffffffffffffffffffff161480610c005750610bff81610bfa6121e4565b611f34565b5b610c3f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c369061491f565b60405180910390fd5b610c4983836121ec565b505050565b60106020528060005260406000206000915054906101000a900460ff1681565b6000600880549050905090565b60118160038110610c8b57600080fd5b016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600f6020528060005260406000206000915090505481565b610cda610cd46121e4565b826122a5565b610d19576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d1090614a9f565b60405180910390fd5b610d24838383612383565b505050565b6000610d3483611648565b8210610d75576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d6c9061481f565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b60011515601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151514610e61576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e58906148bf565b60405180910390fd5b600e60019054906101000a900460ff1615600e60016101000a81548160ff021916908315150217905550565b60011515601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151514610f20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f17906148bf565b60405180910390fd5b60004790506011600060038110610f60577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b0160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc6127106107d084610fac9190614ce4565b610fb69190614cb3565b9081150290604051600060405180830381858888f1935050505050601160016003811061100c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b0160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc612710610fa0846110589190614ce4565b6110629190614cb3565b9081150290604051600060405180830381858888f193505050505060116002600381106110b8577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b0160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc612710610fa0846111049190614ce4565b61110e9190614cb3565b9081150290604051600060405180830381858888f193505050505050565b60011515600e60019054906101000a900460ff16151514611182576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161117990614adf565b60405180910390fd5b6000811161118f57600080fd5b81600f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054826111db9190614c5d565b111561121c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611213906147bf565b60405180910390fd5b61126a84848080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050836125df565b6112a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112a09061479f565b60405180910390fd5b80600f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546112f89190614c5d565b9250508190555061130933826120df565b50505050565b61132a83838360405180602001604052806000815250611e18565b505050565b61134061133a6121e4565b826122a5565b61137f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161137690614b1f565b60405180910390fd5b61138881612686565b50565b6000611395610c6e565b82106113d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113cd90614abf565b60405180910390fd5b60088281548110611410577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b60011515601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161515146114b5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114ac906148bf565b60405180910390fd5b80600d90805190602001906114cb929190613b03565b5050565b61196481565b60011515601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151514611568576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161155f906148bf565b60405180910390fd5b600081118015611579575060648111155b61158257600080fd5b61158c82826120df565b5050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611639576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116309061497f565b60405180910390fd5b80915050919050565b600b5481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156116b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116b09061495f565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600a5481565b60011515601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151514611799576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611790906148bf565b60405180910390fd5b600e60009054906101000a900460ff1615600e60006101000a81548160ff021916908315150217905550565b60011515601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151514611858576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161184f906148bf565b60405180910390fd5b80600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b606060006118cf83611648565b9050600081141561195257600067ffffffffffffffff81111561191b577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280602002602001820160405280156119495781602001602082028036833780820191505090505b50915050611a39565b60008167ffffffffffffffff811115611994577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280602002602001820160405280156119c25781602001602082028036833780820191505090505b50905060005b82811015611a32576119da8582610d29565b828281518110611a13577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181815250508080611a2a90614ea2565b9150506119c8565b8193505050505b919050565b600e60019054906101000a900460ff1681565b60011515601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151514611ae4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611adb906148bf565b60405180910390fd5b6000601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506001601060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555060005b6003811015611cbd573373ffffffffffffffffffffffffffffffffffffffff1660118260038110611bf1577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b0160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415611caa578160118260038110611c6a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b0160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b8080611cb590614ea2565b915050611b97565b508073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f42def53c640d280cc7672aaca991c725922e11929a8b126a478696ec00b284ff60405160405180910390a350565b606060018054611d2a90614e3f565b80601f0160208091040260200160405190810160405280929190818152602001828054611d5690614e3f565b8015611da35780601f10611d7857610100808354040283529160200191611da3565b820191906000526020600020905b815481529060010190602001808311611d8657829003601f168201915b5050505050905090565b611dbf611db86121e4565b8383612797565b5050565b611dcd33826122a5565b611e0c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e039061493f565b60405180910390fd5b611e1581612686565b50565b611e29611e236121e4565b836122a5565b611e68576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e5f90614a9f565b60405180910390fd5b611e7484848484612904565b50505050565b6060611e8582612178565b611ec4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ebb90614a5f565b60405180910390fd5b6000611ece612960565b90506000815111611eee5760405180602001604052806000815250611f19565b80611ef8846129f2565b604051602001611f0992919061462a565b6040516020818303038152906040525b915050919050565b600e60009054906101000a900460ff1681565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60011515601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615151461205b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612052906148bf565b60405180910390fd5b80600b8190555050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806120d857506120d782612b9f565b5b9050919050565b61196481600a546120f09190614c5d565b1115612131576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612128906149ff565b60405180910390fd5b60005b8181101561217357600a600081548092919061214f90614ea2565b919050555061216083600a54612c81565b808061216b90614ea2565b915050612134565b505050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661225f83611590565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006122b082612178565b6122ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122e6906148ff565b60405180910390fd5b60006122fa83611590565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061236957508373ffffffffffffffffffffffffffffffffffffffff1661235184610ab1565b73ffffffffffffffffffffffffffffffffffffffff16145b8061237a57506123798185611f34565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166123a382611590565b73ffffffffffffffffffffffffffffffffffffffff16146123f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123f090614a3f565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612469576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124609061487f565b60405180910390fd5b612474838383612c9f565b61247f6000826121ec565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546124cf9190614d3e565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546125269190614c5d565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000803330846040516020016125f7939291906145ed565b604051602081830303815290604052805190602001209050600061261a82612caf565b905060006126288287612cdf565b9050600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614935050505092915050565b600061269182611590565b905061269f81600084612c9f565b6126aa6000836121ec565b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546126fa9190614d3e565b925050819055506002600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612806576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127fd9061489f565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516128f791906146fd565b60405180910390a3505050565b61290f848484612383565b61291b84848484612d06565b61295a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129519061483f565b60405180910390fd5b50505050565b6060600d805461296f90614e3f565b80601f016020809104026020016040519081016040528092919081815260200182805461299b90614e3f565b80156129e85780601f106129bd576101008083540402835291602001916129e8565b820191906000526020600020905b8154815290600101906020018083116129cb57829003601f168201915b5050505050905090565b60606000821415612a3a576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612b9a565b600082905060005b60008214612a6c578080612a5590614ea2565b915050600a82612a659190614cb3565b9150612a42565b60008167ffffffffffffffff811115612aae577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612ae05781602001600182028036833780820191505090505b5090505b60008514612b9357600182612af99190614d3e565b9150600a85612b089190614f23565b6030612b149190614c5d565b60f81b818381518110612b50577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612b8c9190614cb3565b9450612ae4565b8093505050505b919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612c6a57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612c7a5750612c7982612e9d565b5b9050919050565b612c9b828260405180602001604052806000815250612f07565b5050565b612caa838383612f62565b505050565b600081604051602001612cc2919061464e565b604051602081830303815290604052805190602001209050919050565b6000806000612cee8585613076565b91509150612cfb816130f9565b819250505092915050565b6000612d278473ffffffffffffffffffffffffffffffffffffffff1661344a565b15612e90578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612d506121e4565b8786866040518563ffffffff1660e01b8152600401612d72949392919061468f565b602060405180830381600087803b158015612d8c57600080fd5b505af1925050508015612dbd57506040513d601f19601f82011682018060405250810190612dba9190613ef9565b60015b612e40573d8060008114612ded576040519150601f19603f3d011682016040523d82523d6000602084013e612df2565b606091505b50600081511415612e38576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e2f9061483f565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612e95565b600190505b949350505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b612f11838361345d565b612f1e6000848484612d06565b612f5d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f549061483f565b60405180910390fd5b505050565b612f6d83838361362b565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612fb057612fab81613630565b612fef565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612fee57612fed8382613679565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156130325761302d816137e6565b613071565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146130705761306f8282613929565b5b5b505050565b6000806041835114156130b85760008060006020860151925060408601519150606086015160001a90506130ac878285856139a8565b945094505050506130f2565b6040835114156130e95760008060208501519150604085015190506130de868383613ab5565b9350935050506130f2565b60006002915091505b9250929050565b60006004811115613133577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b81600481111561316c577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b141561317757613447565b600160048111156131b1577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b8160048111156131ea577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b141561322b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132229061477f565b60405180910390fd5b60026004811115613265577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b81600481111561329e577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14156132df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132d6906147df565b60405180910390fd5b60036004811115613319577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115613352577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415613393576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161338a906148df565b60405180910390fd5b6004808111156133cc577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115613405577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415613446576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161343d9061499f565b60405180910390fd5b5b50565b600080823b905060008111915050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156134cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134c4906149df565b60405180910390fd5b6134d681612178565b15613516576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161350d9061485f565b60405180910390fd5b61352260008383612c9f565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546135729190614c5d565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b6000600161368684611648565b6136909190614d3e565b9050600060076000848152602001908152602001600020549050818114613775576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016008805490506137fa9190614d3e565b9050600060096000848152602001908152602001600020549050600060088381548110613850577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020015490508060088381548110613898577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001819055508160096000838152602001908152602001600020819055506009600085815260200190815260200160002060009055600880548061390d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061393483611648565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c11156139e3576000600391509150613aac565b601b8560ff16141580156139fb5750601c8560ff1614155b15613a0d576000600491509150613aac565b600060018787878760405160008152602001604052604051613a329493929190614718565b6020604051602081039080840390855afa158015613a54573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415613aa357600060019250925050613aac565b80600092509250505b94509492505050565b6000806000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff85169150601b8560ff1c019050613af5878288856139a8565b935093505050935093915050565b828054613b0f90614e3f565b90600052602060002090601f016020900481019282613b315760008555613b78565b82601f10613b4a57805160ff1916838001178555613b78565b82800160010185558215613b78579182015b82811115613b77578251825591602001919060010190613b5c565b5b509050613b859190613b89565b5090565b5b80821115613ba2576000816000905550600101613b8a565b5090565b6000613bb9613bb484614b7f565b614b5a565b905082815260208101848484011115613bd157600080fd5b613bdc848285614dfd565b509392505050565b6000613bf7613bf284614bb0565b614b5a565b905082815260208101848484011115613c0f57600080fd5b613c1a848285614dfd565b509392505050565b600081359050613c31816157d1565b92915050565b600081359050613c46816157e8565b92915050565b600081359050613c5b816157ff565b92915050565b600081519050613c70816157ff565b92915050565b60008083601f840112613c8857600080fd5b8235905067ffffffffffffffff811115613ca157600080fd5b602083019150836001820283011115613cb957600080fd5b9250929050565b600082601f830112613cd157600080fd5b8135613ce1848260208601613ba6565b91505092915050565b600082601f830112613cfb57600080fd5b8135613d0b848260208601613be4565b91505092915050565b600081359050613d2381615816565b92915050565b600060208284031215613d3b57600080fd5b6000613d4984828501613c22565b91505092915050565b60008060408385031215613d6557600080fd5b6000613d7385828601613c22565b9250506020613d8485828601613c22565b9150509250929050565b600080600060608486031215613da357600080fd5b6000613db186828701613c22565b9350506020613dc286828701613c22565b9250506040613dd386828701613d14565b9150509250925092565b60008060008060808587031215613df357600080fd5b6000613e0187828801613c22565b9450506020613e1287828801613c22565b9350506040613e2387828801613d14565b925050606085013567ffffffffffffffff811115613e4057600080fd5b613e4c87828801613cc0565b91505092959194509250565b60008060408385031215613e6b57600080fd5b6000613e7985828601613c22565b9250506020613e8a85828601613c37565b9150509250929050565b60008060408385031215613ea757600080fd5b6000613eb585828601613c22565b9250506020613ec685828601613d14565b9150509250929050565b600060208284031215613ee257600080fd5b6000613ef084828501613c4c565b91505092915050565b600060208284031215613f0b57600080fd5b6000613f1984828501613c61565b91505092915050565b60008060008060608587031215613f3857600080fd5b600085013567ffffffffffffffff811115613f5257600080fd5b613f5e87828801613c76565b94509450506020613f7187828801613d14565b9250506040613f8287828801613d14565b91505092959194509250565b600060208284031215613fa057600080fd5b600082013567ffffffffffffffff811115613fba57600080fd5b613fc684828501613cea565b91505092915050565b600060208284031215613fe157600080fd5b6000613fef84828501613d14565b91505092915050565b600061400483836145a9565b60208301905092915050565b61401981614d72565b82525050565b61403061402b82614d72565b614eeb565b82525050565b600061404182614bf1565b61404b8185614c1f565b935061405683614be1565b8060005b8381101561408757815161406e8882613ff8565b975061407983614c12565b92505060018101905061405a565b5085935050505092915050565b61409d81614d84565b82525050565b6140ac81614d90565b82525050565b6140c36140be82614d90565b614efd565b82525050565b60006140d482614bfc565b6140de8185614c30565b93506140ee818560208601614e0c565b6140f781615010565b840191505092915050565b600061410d82614c07565b6141178185614c41565b9350614127818560208601614e0c565b61413081615010565b840191505092915050565b600061414682614c07565b6141508185614c52565b9350614160818560208601614e0c565b80840191505092915050565b6000614179601883614c41565b91506141848261502e565b602082019050919050565b600061419c601183614c41565b91506141a782615057565b602082019050919050565b60006141bf601883614c41565b91506141ca82615080565b602082019050919050565b60006141e2601f83614c41565b91506141ed826150a9565b602082019050919050565b6000614205601c83614c52565b9150614210826150d2565b601c82019050919050565b6000614228602d83614c41565b9150614233826150fb565b604082019050919050565b600061424b602b83614c41565b91506142568261514a565b604082019050919050565b600061426e603283614c41565b915061427982615199565b604082019050919050565b6000614291601c83614c41565b915061429c826151e8565b602082019050919050565b60006142b4602483614c41565b91506142bf82615211565b604082019050919050565b60006142d7601983614c41565b91506142e282615260565b602082019050919050565b60006142fa602583614c41565b915061430582615289565b604082019050919050565b600061431d602283614c41565b9150614328826152d8565b604082019050919050565b6000614340602c83614c41565b915061434b82615327565b604082019050919050565b6000614363603883614c41565b915061436e82615376565b604082019050919050565b6000614386601883614c41565b9150614391826153c5565b602082019050919050565b60006143a9602a83614c41565b91506143b4826153ee565b604082019050919050565b60006143cc602983614c41565b91506143d78261543d565b604082019050919050565b60006143ef602283614c41565b91506143fa8261548c565b604082019050919050565b6000614412601d83614c41565b915061441d826154db565b602082019050919050565b6000614435602083614c41565b915061444082615504565b602082019050919050565b6000614458601683614c41565b91506144638261552d565b602082019050919050565b600061447b602c83614c41565b915061448682615556565b604082019050919050565b600061449e602983614c41565b91506144a9826155a5565b604082019050919050565b60006144c1602f83614c41565b91506144cc826155f4565b604082019050919050565b60006144e4602183614c41565b91506144ef82615643565b604082019050919050565b6000614507603183614c41565b915061451282615692565b604082019050919050565b600061452a602c83614c41565b9150614535826156e1565b604082019050919050565b600061454d601383614c41565b915061455882615730565b602082019050919050565b6000614570601083614c41565b915061457b82615759565b602082019050919050565b6000614593603083614c41565b915061459e82615782565b604082019050919050565b6145b281614de6565b82525050565b6145c181614de6565b82525050565b6145d86145d382614de6565b614f19565b82525050565b6145e781614df0565b82525050565b60006145f9828661401f565b601482019150614609828561401f565b60148201915061461982846145c7565b602082019150819050949350505050565b6000614636828561413b565b9150614642828461413b565b91508190509392505050565b6000614659826141f8565b915061466582846140b2565b60208201915081905092915050565b60006020820190506146896000830184614010565b92915050565b60006080820190506146a46000830187614010565b6146b16020830186614010565b6146be60408301856145b8565b81810360608301526146d081846140c9565b905095945050505050565b600060208201905081810360008301526146f58184614036565b905092915050565b60006020820190506147126000830184614094565b92915050565b600060808201905061472d60008301876140a3565b61473a60208301866145de565b61474760408301856140a3565b61475460608301846140a3565b95945050505050565b600060208201905081810360008301526147778184614102565b905092915050565b600060208201905081810360008301526147988161416c565b9050919050565b600060208201905081810360008301526147b88161418f565b9050919050565b600060208201905081810360008301526147d8816141b2565b9050919050565b600060208201905081810360008301526147f8816141d5565b9050919050565b600060208201905081810360008301526148188161421b565b9050919050565b600060208201905081810360008301526148388161423e565b9050919050565b6000602082019050818103600083015261485881614261565b9050919050565b6000602082019050818103600083015261487881614284565b9050919050565b60006020820190508181036000830152614898816142a7565b9050919050565b600060208201905081810360008301526148b8816142ca565b9050919050565b600060208201905081810360008301526148d8816142ed565b9050919050565b600060208201905081810360008301526148f881614310565b9050919050565b6000602082019050818103600083015261491881614333565b9050919050565b6000602082019050818103600083015261493881614356565b9050919050565b6000602082019050818103600083015261495881614379565b9050919050565b600060208201905081810360008301526149788161439c565b9050919050565b60006020820190508181036000830152614998816143bf565b9050919050565b600060208201905081810360008301526149b8816143e2565b9050919050565b600060208201905081810360008301526149d881614405565b9050919050565b600060208201905081810360008301526149f881614428565b9050919050565b60006020820190508181036000830152614a188161444b565b9050919050565b60006020820190508181036000830152614a388161446e565b9050919050565b60006020820190508181036000830152614a5881614491565b9050919050565b60006020820190508181036000830152614a78816144b4565b9050919050565b60006020820190508181036000830152614a98816144d7565b9050919050565b60006020820190508181036000830152614ab8816144fa565b9050919050565b60006020820190508181036000830152614ad88161451d565b9050919050565b60006020820190508181036000830152614af881614540565b9050919050565b60006020820190508181036000830152614b1881614563565b9050919050565b60006020820190508181036000830152614b3881614586565b9050919050565b6000602082019050614b5460008301846145b8565b92915050565b6000614b64614b75565b9050614b708282614e71565b919050565b6000604051905090565b600067ffffffffffffffff821115614b9a57614b99614fe1565b5b614ba382615010565b9050602081019050919050565b600067ffffffffffffffff821115614bcb57614bca614fe1565b5b614bd482615010565b9050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b6000614c6882614de6565b9150614c7383614de6565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614ca857614ca7614f54565b5b828201905092915050565b6000614cbe82614de6565b9150614cc983614de6565b925082614cd957614cd8614f83565b5b828204905092915050565b6000614cef82614de6565b9150614cfa83614de6565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614d3357614d32614f54565b5b828202905092915050565b6000614d4982614de6565b9150614d5483614de6565b925082821015614d6757614d66614f54565b5b828203905092915050565b6000614d7d82614dc6565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b83811015614e2a578082015181840152602081019050614e0f565b83811115614e39576000848401525b50505050565b60006002820490506001821680614e5757607f821691505b60208210811415614e6b57614e6a614fb2565b5b50919050565b614e7a82615010565b810181811067ffffffffffffffff82111715614e9957614e98614fe1565b5b80604052505050565b6000614ead82614de6565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614ee057614edf614f54565b5b600182019050919050565b6000614ef682614f07565b9050919050565b6000819050919050565b6000614f1282615021565b9050919050565b6000819050919050565b6000614f2e82614de6565b9150614f3983614de6565b925082614f4957614f48614f83565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b7f696e76616c6964207369676e6174757265000000000000000000000000000000600082015250565b7f6e6f7420656e6f75676820574c206d696e7473206c6566740000000000000000600082015250565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b7f796f752063616e206d696e74206265747765656e203120616e6420313030206860008201527f65726f6573206174206f6e636500000000000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f63616c6c6572206973206e6f74206f6e207468652048756e6b794865726f657360008201527f207465616d000000000000000000000000000000000000000000000000000000602082015250565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f796f752063616e2774206275726e2074686973206865726f0000000000000000600082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f6e6f7420656e6f7567682045746865722073656e742077697468207478000000600082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f6e6f7420656e6f756768204865726f6573206c65667400000000000000000000600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f50726573616c65206973206e6f74206c69766500000000000000000000000000600082015250565b7f53616c65206973206e6f74206c69766500000000000000000000000000000000600082015250565b7f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656400000000000000000000000000000000602082015250565b6157da81614d72565b81146157e557600080fd5b50565b6157f181614d84565b81146157fc57600080fd5b50565b61580881614d9a565b811461581357600080fd5b50565b61581f81614de6565b811461582a57600080fd5b5056fea2646970667358221220bd0d60f584ff866fd47366844340fc27b36337622f63cbdb3b02305f678210fb64736f6c6343000804003300000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d544e48696d3843676b73555a6e4e55525754526e5364416e34356145635855385a726843675a384a415652552f00000000000000000000
Deployed Bytecode
0x6080604052600436106102295760003560e01c8063612d19681161012357806383a9e049116100ab578063b88d4fde1161006f578063b88d4fde14610813578063c87b56dd1461083c578063e081b78114610879578063e985e9c5146108a4578063f4a0a528146108e157610230565b806383a9e04914610742578063861080ae1461076d57806395d89b4114610796578063a22cb465146107c1578063ac64df19146107ea57610230565b8063771282f6116100f2578063771282f61461066f5780637d8966e41461069a5780637dddd8f9146106b15780638028b285146106da578063824515b51461070557610230565b8063612d1968146105a15780636352211e146105ca5780636817c76c1461060757806370a082311461063257610230565b806323b872dd116101b157806342842e0e1161017557806342842e0e146104be57806342966c68146104e75780634f6ccce71461051057806355f804b31461054d57806359e87d171461057657610230565b806323b872dd146104015780632f745c591461042a57806334393743146104675780633ccfd60b1461047e5780633fc651861461049557610230565b8063095ea7b3116101f8578063095ea7b3146102f657806310be8d121461031f57806318160ddd1461035c57806319aa69b9146103875780631e7269c5146103c457610230565b806301ffc9a7146102355780630606cb291461027257806306fdde031461028e578063081812fc146102b957610230565b3661023057005b600080fd5b34801561024157600080fd5b5061025c60048036038101906102579190613ed0565b61090a565b60405161026991906146fd565b60405180910390f35b61028c60048036038101906102879190613fcf565b61091c565b005b34801561029a57600080fd5b506102a3610a1f565b6040516102b0919061475d565b60405180910390f35b3480156102c557600080fd5b506102e060048036038101906102db9190613fcf565b610ab1565b6040516102ed9190614674565b60405180910390f35b34801561030257600080fd5b5061031d60048036038101906103189190613e94565b610b36565b005b34801561032b57600080fd5b5061034660048036038101906103419190613d29565b610c4e565b60405161035391906146fd565b60405180910390f35b34801561036857600080fd5b50610371610c6e565b60405161037e9190614b3f565b60405180910390f35b34801561039357600080fd5b506103ae60048036038101906103a99190613fcf565b610c7b565b6040516103bb9190614674565b60405180910390f35b3480156103d057600080fd5b506103eb60048036038101906103e69190613d29565b610cb1565b6040516103f89190614b3f565b60405180910390f35b34801561040d57600080fd5b5061042860048036038101906104239190613d8e565b610cc9565b005b34801561043657600080fd5b50610451600480360381019061044c9190613e94565b610d29565b60405161045e9190614b3f565b60405180910390f35b34801561047357600080fd5b5061047c610dce565b005b34801561048a57600080fd5b50610493610e8d565b005b3480156104a157600080fd5b506104bc60048036038101906104b79190613f22565b61112c565b005b3480156104ca57600080fd5b506104e560048036038101906104e09190613d8e565b61130f565b005b3480156104f357600080fd5b5061050e60048036038101906105099190613fcf565b61132f565b005b34801561051c57600080fd5b5061053760048036038101906105329190613fcf565b61138b565b6040516105449190614b3f565b60405180910390f35b34801561055957600080fd5b50610574600480360381019061056f9190613f8e565b611422565b005b34801561058257600080fd5b5061058b6114cf565b6040516105989190614b3f565b60405180910390f35b3480156105ad57600080fd5b506105c860048036038101906105c39190613e94565b6114d5565b005b3480156105d657600080fd5b506105f160048036038101906105ec9190613fcf565b611590565b6040516105fe9190614674565b60405180910390f35b34801561061357600080fd5b5061061c611642565b6040516106299190614b3f565b60405180910390f35b34801561063e57600080fd5b5061065960048036038101906106549190613d29565b611648565b6040516106669190614b3f565b60405180910390f35b34801561067b57600080fd5b50610684611700565b6040516106919190614b3f565b60405180910390f35b3480156106a657600080fd5b506106af611706565b005b3480156106bd57600080fd5b506106d860048036038101906106d39190613d29565b6117c5565b005b3480156106e657600080fd5b506106ef61189c565b6040516106fc9190614674565b60405180910390f35b34801561071157600080fd5b5061072c60048036038101906107279190613d29565b6118c2565b60405161073991906146db565b60405180910390f35b34801561074e57600080fd5b50610757611a3e565b60405161076491906146fd565b60405180910390f35b34801561077957600080fd5b50610794600480360381019061078f9190613d29565b611a51565b005b3480156107a257600080fd5b506107ab611d1b565b6040516107b8919061475d565b60405180910390f35b3480156107cd57600080fd5b506107e860048036038101906107e39190613e58565b611dad565b005b3480156107f657600080fd5b50610811600480360381019061080c9190613fcf565b611dc3565b005b34801561081f57600080fd5b5061083a60048036038101906108359190613ddd565b611e18565b005b34801561084857600080fd5b50610863600480360381019061085e9190613fcf565b611e7a565b604051610870919061475d565b60405180910390f35b34801561088557600080fd5b5061088e611f21565b60405161089b91906146fd565b60405180910390f35b3480156108b057600080fd5b506108cb60048036038101906108c69190613d52565b611f34565b6040516108d891906146fd565b60405180910390f35b3480156108ed57600080fd5b5061090860048036038101906109039190613fcf565b611fc8565b005b600061091582612065565b9050919050565b60011515600e60009054906101000a900460ff16151514610972576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161096990614aff565b60405180910390fd5b600081118015610983575060648111155b6109c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109b9906147ff565b60405180910390fd5b600b54816109d09190614ce4565b341015610a12576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a09906149bf565b60405180910390fd5b610a1c33826120df565b50565b606060008054610a2e90614e3f565b80601f0160208091040260200160405190810160405280929190818152602001828054610a5a90614e3f565b8015610aa75780601f10610a7c57610100808354040283529160200191610aa7565b820191906000526020600020905b815481529060010190602001808311610a8a57829003601f168201915b5050505050905090565b6000610abc82612178565b610afb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610af290614a1f565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610b4182611590565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610bb2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ba990614a7f565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610bd16121e4565b73ffffffffffffffffffffffffffffffffffffffff161480610c005750610bff81610bfa6121e4565b611f34565b5b610c3f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c369061491f565b60405180910390fd5b610c4983836121ec565b505050565b60106020528060005260406000206000915054906101000a900460ff1681565b6000600880549050905090565b60118160038110610c8b57600080fd5b016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600f6020528060005260406000206000915090505481565b610cda610cd46121e4565b826122a5565b610d19576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d1090614a9f565b60405180910390fd5b610d24838383612383565b505050565b6000610d3483611648565b8210610d75576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d6c9061481f565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b60011515601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151514610e61576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e58906148bf565b60405180910390fd5b600e60019054906101000a900460ff1615600e60016101000a81548160ff021916908315150217905550565b60011515601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151514610f20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f17906148bf565b60405180910390fd5b60004790506011600060038110610f60577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b0160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc6127106107d084610fac9190614ce4565b610fb69190614cb3565b9081150290604051600060405180830381858888f1935050505050601160016003811061100c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b0160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc612710610fa0846110589190614ce4565b6110629190614cb3565b9081150290604051600060405180830381858888f193505050505060116002600381106110b8577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b0160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc612710610fa0846111049190614ce4565b61110e9190614cb3565b9081150290604051600060405180830381858888f193505050505050565b60011515600e60019054906101000a900460ff16151514611182576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161117990614adf565b60405180910390fd5b6000811161118f57600080fd5b81600f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054826111db9190614c5d565b111561121c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611213906147bf565b60405180910390fd5b61126a84848080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050836125df565b6112a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112a09061479f565b60405180910390fd5b80600f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546112f89190614c5d565b9250508190555061130933826120df565b50505050565b61132a83838360405180602001604052806000815250611e18565b505050565b61134061133a6121e4565b826122a5565b61137f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161137690614b1f565b60405180910390fd5b61138881612686565b50565b6000611395610c6e565b82106113d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113cd90614abf565b60405180910390fd5b60088281548110611410577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b60011515601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161515146114b5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114ac906148bf565b60405180910390fd5b80600d90805190602001906114cb929190613b03565b5050565b61196481565b60011515601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151514611568576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161155f906148bf565b60405180910390fd5b600081118015611579575060648111155b61158257600080fd5b61158c82826120df565b5050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611639576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116309061497f565b60405180910390fd5b80915050919050565b600b5481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156116b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116b09061495f565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600a5481565b60011515601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151514611799576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611790906148bf565b60405180910390fd5b600e60009054906101000a900460ff1615600e60006101000a81548160ff021916908315150217905550565b60011515601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151514611858576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161184f906148bf565b60405180910390fd5b80600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b606060006118cf83611648565b9050600081141561195257600067ffffffffffffffff81111561191b577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280602002602001820160405280156119495781602001602082028036833780820191505090505b50915050611a39565b60008167ffffffffffffffff811115611994577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280602002602001820160405280156119c25781602001602082028036833780820191505090505b50905060005b82811015611a32576119da8582610d29565b828281518110611a13577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181815250508080611a2a90614ea2565b9150506119c8565b8193505050505b919050565b600e60019054906101000a900460ff1681565b60011515601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151514611ae4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611adb906148bf565b60405180910390fd5b6000601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506001601060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555060005b6003811015611cbd573373ffffffffffffffffffffffffffffffffffffffff1660118260038110611bf1577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b0160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415611caa578160118260038110611c6a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b0160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b8080611cb590614ea2565b915050611b97565b508073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f42def53c640d280cc7672aaca991c725922e11929a8b126a478696ec00b284ff60405160405180910390a350565b606060018054611d2a90614e3f565b80601f0160208091040260200160405190810160405280929190818152602001828054611d5690614e3f565b8015611da35780601f10611d7857610100808354040283529160200191611da3565b820191906000526020600020905b815481529060010190602001808311611d8657829003601f168201915b5050505050905090565b611dbf611db86121e4565b8383612797565b5050565b611dcd33826122a5565b611e0c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e039061493f565b60405180910390fd5b611e1581612686565b50565b611e29611e236121e4565b836122a5565b611e68576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e5f90614a9f565b60405180910390fd5b611e7484848484612904565b50505050565b6060611e8582612178565b611ec4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ebb90614a5f565b60405180910390fd5b6000611ece612960565b90506000815111611eee5760405180602001604052806000815250611f19565b80611ef8846129f2565b604051602001611f0992919061462a565b6040516020818303038152906040525b915050919050565b600e60009054906101000a900460ff1681565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60011515601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615151461205b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612052906148bf565b60405180910390fd5b80600b8190555050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806120d857506120d782612b9f565b5b9050919050565b61196481600a546120f09190614c5d565b1115612131576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612128906149ff565b60405180910390fd5b60005b8181101561217357600a600081548092919061214f90614ea2565b919050555061216083600a54612c81565b808061216b90614ea2565b915050612134565b505050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661225f83611590565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006122b082612178565b6122ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122e6906148ff565b60405180910390fd5b60006122fa83611590565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061236957508373ffffffffffffffffffffffffffffffffffffffff1661235184610ab1565b73ffffffffffffffffffffffffffffffffffffffff16145b8061237a57506123798185611f34565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166123a382611590565b73ffffffffffffffffffffffffffffffffffffffff16146123f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123f090614a3f565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612469576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124609061487f565b60405180910390fd5b612474838383612c9f565b61247f6000826121ec565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546124cf9190614d3e565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546125269190614c5d565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000803330846040516020016125f7939291906145ed565b604051602081830303815290604052805190602001209050600061261a82612caf565b905060006126288287612cdf565b9050600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614935050505092915050565b600061269182611590565b905061269f81600084612c9f565b6126aa6000836121ec565b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546126fa9190614d3e565b925050819055506002600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612806576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127fd9061489f565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516128f791906146fd565b60405180910390a3505050565b61290f848484612383565b61291b84848484612d06565b61295a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129519061483f565b60405180910390fd5b50505050565b6060600d805461296f90614e3f565b80601f016020809104026020016040519081016040528092919081815260200182805461299b90614e3f565b80156129e85780601f106129bd576101008083540402835291602001916129e8565b820191906000526020600020905b8154815290600101906020018083116129cb57829003601f168201915b5050505050905090565b60606000821415612a3a576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612b9a565b600082905060005b60008214612a6c578080612a5590614ea2565b915050600a82612a659190614cb3565b9150612a42565b60008167ffffffffffffffff811115612aae577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612ae05781602001600182028036833780820191505090505b5090505b60008514612b9357600182612af99190614d3e565b9150600a85612b089190614f23565b6030612b149190614c5d565b60f81b818381518110612b50577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612b8c9190614cb3565b9450612ae4565b8093505050505b919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612c6a57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612c7a5750612c7982612e9d565b5b9050919050565b612c9b828260405180602001604052806000815250612f07565b5050565b612caa838383612f62565b505050565b600081604051602001612cc2919061464e565b604051602081830303815290604052805190602001209050919050565b6000806000612cee8585613076565b91509150612cfb816130f9565b819250505092915050565b6000612d278473ffffffffffffffffffffffffffffffffffffffff1661344a565b15612e90578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612d506121e4565b8786866040518563ffffffff1660e01b8152600401612d72949392919061468f565b602060405180830381600087803b158015612d8c57600080fd5b505af1925050508015612dbd57506040513d601f19601f82011682018060405250810190612dba9190613ef9565b60015b612e40573d8060008114612ded576040519150601f19603f3d011682016040523d82523d6000602084013e612df2565b606091505b50600081511415612e38576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e2f9061483f565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612e95565b600190505b949350505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b612f11838361345d565b612f1e6000848484612d06565b612f5d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f549061483f565b60405180910390fd5b505050565b612f6d83838361362b565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612fb057612fab81613630565b612fef565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612fee57612fed8382613679565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156130325761302d816137e6565b613071565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146130705761306f8282613929565b5b5b505050565b6000806041835114156130b85760008060006020860151925060408601519150606086015160001a90506130ac878285856139a8565b945094505050506130f2565b6040835114156130e95760008060208501519150604085015190506130de868383613ab5565b9350935050506130f2565b60006002915091505b9250929050565b60006004811115613133577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b81600481111561316c577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b141561317757613447565b600160048111156131b1577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b8160048111156131ea577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b141561322b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132229061477f565b60405180910390fd5b60026004811115613265577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b81600481111561329e577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14156132df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132d6906147df565b60405180910390fd5b60036004811115613319577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115613352577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415613393576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161338a906148df565b60405180910390fd5b6004808111156133cc577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115613405577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415613446576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161343d9061499f565b60405180910390fd5b5b50565b600080823b905060008111915050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156134cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134c4906149df565b60405180910390fd5b6134d681612178565b15613516576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161350d9061485f565b60405180910390fd5b61352260008383612c9f565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546135729190614c5d565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b6000600161368684611648565b6136909190614d3e565b9050600060076000848152602001908152602001600020549050818114613775576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016008805490506137fa9190614d3e565b9050600060096000848152602001908152602001600020549050600060088381548110613850577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020015490508060088381548110613898577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001819055508160096000838152602001908152602001600020819055506009600085815260200190815260200160002060009055600880548061390d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061393483611648565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c11156139e3576000600391509150613aac565b601b8560ff16141580156139fb5750601c8560ff1614155b15613a0d576000600491509150613aac565b600060018787878760405160008152602001604052604051613a329493929190614718565b6020604051602081039080840390855afa158015613a54573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415613aa357600060019250925050613aac565b80600092509250505b94509492505050565b6000806000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff85169150601b8560ff1c019050613af5878288856139a8565b935093505050935093915050565b828054613b0f90614e3f565b90600052602060002090601f016020900481019282613b315760008555613b78565b82601f10613b4a57805160ff1916838001178555613b78565b82800160010185558215613b78579182015b82811115613b77578251825591602001919060010190613b5c565b5b509050613b859190613b89565b5090565b5b80821115613ba2576000816000905550600101613b8a565b5090565b6000613bb9613bb484614b7f565b614b5a565b905082815260208101848484011115613bd157600080fd5b613bdc848285614dfd565b509392505050565b6000613bf7613bf284614bb0565b614b5a565b905082815260208101848484011115613c0f57600080fd5b613c1a848285614dfd565b509392505050565b600081359050613c31816157d1565b92915050565b600081359050613c46816157e8565b92915050565b600081359050613c5b816157ff565b92915050565b600081519050613c70816157ff565b92915050565b60008083601f840112613c8857600080fd5b8235905067ffffffffffffffff811115613ca157600080fd5b602083019150836001820283011115613cb957600080fd5b9250929050565b600082601f830112613cd157600080fd5b8135613ce1848260208601613ba6565b91505092915050565b600082601f830112613cfb57600080fd5b8135613d0b848260208601613be4565b91505092915050565b600081359050613d2381615816565b92915050565b600060208284031215613d3b57600080fd5b6000613d4984828501613c22565b91505092915050565b60008060408385031215613d6557600080fd5b6000613d7385828601613c22565b9250506020613d8485828601613c22565b9150509250929050565b600080600060608486031215613da357600080fd5b6000613db186828701613c22565b9350506020613dc286828701613c22565b9250506040613dd386828701613d14565b9150509250925092565b60008060008060808587031215613df357600080fd5b6000613e0187828801613c22565b9450506020613e1287828801613c22565b9350506040613e2387828801613d14565b925050606085013567ffffffffffffffff811115613e4057600080fd5b613e4c87828801613cc0565b91505092959194509250565b60008060408385031215613e6b57600080fd5b6000613e7985828601613c22565b9250506020613e8a85828601613c37565b9150509250929050565b60008060408385031215613ea757600080fd5b6000613eb585828601613c22565b9250506020613ec685828601613d14565b9150509250929050565b600060208284031215613ee257600080fd5b6000613ef084828501613c4c565b91505092915050565b600060208284031215613f0b57600080fd5b6000613f1984828501613c61565b91505092915050565b60008060008060608587031215613f3857600080fd5b600085013567ffffffffffffffff811115613f5257600080fd5b613f5e87828801613c76565b94509450506020613f7187828801613d14565b9250506040613f8287828801613d14565b91505092959194509250565b600060208284031215613fa057600080fd5b600082013567ffffffffffffffff811115613fba57600080fd5b613fc684828501613cea565b91505092915050565b600060208284031215613fe157600080fd5b6000613fef84828501613d14565b91505092915050565b600061400483836145a9565b60208301905092915050565b61401981614d72565b82525050565b61403061402b82614d72565b614eeb565b82525050565b600061404182614bf1565b61404b8185614c1f565b935061405683614be1565b8060005b8381101561408757815161406e8882613ff8565b975061407983614c12565b92505060018101905061405a565b5085935050505092915050565b61409d81614d84565b82525050565b6140ac81614d90565b82525050565b6140c36140be82614d90565b614efd565b82525050565b60006140d482614bfc565b6140de8185614c30565b93506140ee818560208601614e0c565b6140f781615010565b840191505092915050565b600061410d82614c07565b6141178185614c41565b9350614127818560208601614e0c565b61413081615010565b840191505092915050565b600061414682614c07565b6141508185614c52565b9350614160818560208601614e0c565b80840191505092915050565b6000614179601883614c41565b91506141848261502e565b602082019050919050565b600061419c601183614c41565b91506141a782615057565b602082019050919050565b60006141bf601883614c41565b91506141ca82615080565b602082019050919050565b60006141e2601f83614c41565b91506141ed826150a9565b602082019050919050565b6000614205601c83614c52565b9150614210826150d2565b601c82019050919050565b6000614228602d83614c41565b9150614233826150fb565b604082019050919050565b600061424b602b83614c41565b91506142568261514a565b604082019050919050565b600061426e603283614c41565b915061427982615199565b604082019050919050565b6000614291601c83614c41565b915061429c826151e8565b602082019050919050565b60006142b4602483614c41565b91506142bf82615211565b604082019050919050565b60006142d7601983614c41565b91506142e282615260565b602082019050919050565b60006142fa602583614c41565b915061430582615289565b604082019050919050565b600061431d602283614c41565b9150614328826152d8565b604082019050919050565b6000614340602c83614c41565b915061434b82615327565b604082019050919050565b6000614363603883614c41565b915061436e82615376565b604082019050919050565b6000614386601883614c41565b9150614391826153c5565b602082019050919050565b60006143a9602a83614c41565b91506143b4826153ee565b604082019050919050565b60006143cc602983614c41565b91506143d78261543d565b604082019050919050565b60006143ef602283614c41565b91506143fa8261548c565b604082019050919050565b6000614412601d83614c41565b915061441d826154db565b602082019050919050565b6000614435602083614c41565b915061444082615504565b602082019050919050565b6000614458601683614c41565b91506144638261552d565b602082019050919050565b600061447b602c83614c41565b915061448682615556565b604082019050919050565b600061449e602983614c41565b91506144a9826155a5565b604082019050919050565b60006144c1602f83614c41565b91506144cc826155f4565b604082019050919050565b60006144e4602183614c41565b91506144ef82615643565b604082019050919050565b6000614507603183614c41565b915061451282615692565b604082019050919050565b600061452a602c83614c41565b9150614535826156e1565b604082019050919050565b600061454d601383614c41565b915061455882615730565b602082019050919050565b6000614570601083614c41565b915061457b82615759565b602082019050919050565b6000614593603083614c41565b915061459e82615782565b604082019050919050565b6145b281614de6565b82525050565b6145c181614de6565b82525050565b6145d86145d382614de6565b614f19565b82525050565b6145e781614df0565b82525050565b60006145f9828661401f565b601482019150614609828561401f565b60148201915061461982846145c7565b602082019150819050949350505050565b6000614636828561413b565b9150614642828461413b565b91508190509392505050565b6000614659826141f8565b915061466582846140b2565b60208201915081905092915050565b60006020820190506146896000830184614010565b92915050565b60006080820190506146a46000830187614010565b6146b16020830186614010565b6146be60408301856145b8565b81810360608301526146d081846140c9565b905095945050505050565b600060208201905081810360008301526146f58184614036565b905092915050565b60006020820190506147126000830184614094565b92915050565b600060808201905061472d60008301876140a3565b61473a60208301866145de565b61474760408301856140a3565b61475460608301846140a3565b95945050505050565b600060208201905081810360008301526147778184614102565b905092915050565b600060208201905081810360008301526147988161416c565b9050919050565b600060208201905081810360008301526147b88161418f565b9050919050565b600060208201905081810360008301526147d8816141b2565b9050919050565b600060208201905081810360008301526147f8816141d5565b9050919050565b600060208201905081810360008301526148188161421b565b9050919050565b600060208201905081810360008301526148388161423e565b9050919050565b6000602082019050818103600083015261485881614261565b9050919050565b6000602082019050818103600083015261487881614284565b9050919050565b60006020820190508181036000830152614898816142a7565b9050919050565b600060208201905081810360008301526148b8816142ca565b9050919050565b600060208201905081810360008301526148d8816142ed565b9050919050565b600060208201905081810360008301526148f881614310565b9050919050565b6000602082019050818103600083015261491881614333565b9050919050565b6000602082019050818103600083015261493881614356565b9050919050565b6000602082019050818103600083015261495881614379565b9050919050565b600060208201905081810360008301526149788161439c565b9050919050565b60006020820190508181036000830152614998816143bf565b9050919050565b600060208201905081810360008301526149b8816143e2565b9050919050565b600060208201905081810360008301526149d881614405565b9050919050565b600060208201905081810360008301526149f881614428565b9050919050565b60006020820190508181036000830152614a188161444b565b9050919050565b60006020820190508181036000830152614a388161446e565b9050919050565b60006020820190508181036000830152614a5881614491565b9050919050565b60006020820190508181036000830152614a78816144b4565b9050919050565b60006020820190508181036000830152614a98816144d7565b9050919050565b60006020820190508181036000830152614ab8816144fa565b9050919050565b60006020820190508181036000830152614ad88161451d565b9050919050565b60006020820190508181036000830152614af881614540565b9050919050565b60006020820190508181036000830152614b1881614563565b9050919050565b60006020820190508181036000830152614b3881614586565b9050919050565b6000602082019050614b5460008301846145b8565b92915050565b6000614b64614b75565b9050614b708282614e71565b919050565b6000604051905090565b600067ffffffffffffffff821115614b9a57614b99614fe1565b5b614ba382615010565b9050602081019050919050565b600067ffffffffffffffff821115614bcb57614bca614fe1565b5b614bd482615010565b9050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b6000614c6882614de6565b9150614c7383614de6565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614ca857614ca7614f54565b5b828201905092915050565b6000614cbe82614de6565b9150614cc983614de6565b925082614cd957614cd8614f83565b5b828204905092915050565b6000614cef82614de6565b9150614cfa83614de6565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614d3357614d32614f54565b5b828202905092915050565b6000614d4982614de6565b9150614d5483614de6565b925082821015614d6757614d66614f54565b5b828203905092915050565b6000614d7d82614dc6565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b83811015614e2a578082015181840152602081019050614e0f565b83811115614e39576000848401525b50505050565b60006002820490506001821680614e5757607f821691505b60208210811415614e6b57614e6a614fb2565b5b50919050565b614e7a82615010565b810181811067ffffffffffffffff82111715614e9957614e98614fe1565b5b80604052505050565b6000614ead82614de6565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614ee057614edf614f54565b5b600182019050919050565b6000614ef682614f07565b9050919050565b6000819050919050565b6000614f1282615021565b9050919050565b6000819050919050565b6000614f2e82614de6565b9150614f3983614de6565b925082614f4957614f48614f83565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b7f696e76616c6964207369676e6174757265000000000000000000000000000000600082015250565b7f6e6f7420656e6f75676820574c206d696e7473206c6566740000000000000000600082015250565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b7f796f752063616e206d696e74206265747765656e203120616e6420313030206860008201527f65726f6573206174206f6e636500000000000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f63616c6c6572206973206e6f74206f6e207468652048756e6b794865726f657360008201527f207465616d000000000000000000000000000000000000000000000000000000602082015250565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f796f752063616e2774206275726e2074686973206865726f0000000000000000600082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f6e6f7420656e6f7567682045746865722073656e742077697468207478000000600082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f6e6f7420656e6f756768204865726f6573206c65667400000000000000000000600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f50726573616c65206973206e6f74206c69766500000000000000000000000000600082015250565b7f53616c65206973206e6f74206c69766500000000000000000000000000000000600082015250565b7f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656400000000000000000000000000000000602082015250565b6157da81614d72565b81146157e557600080fd5b50565b6157f181614d84565b81146157fc57600080fd5b50565b61580881614d9a565b811461581357600080fd5b50565b61581f81614de6565b811461582a57600080fd5b5056fea2646970667358221220bd0d60f584ff866fd47366844340fc27b36337622f63cbdb3b02305f678210fb64736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d544e48696d3843676b73555a6e4e55525754526e5364416e34356145635855385a726843675a384a415652552f00000000000000000000
-----Decoded View---------------
Arg [0] : baseURI_ (string): ipfs://QmTNHim8CgksUZnNURWTRnSdAn45aEcXU8ZrhCgZ8JAVRU/
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [2] : 697066733a2f2f516d544e48696d3843676b73555a6e4e55525754526e536441
Arg [3] : 6e34356145635855385a726843675a384a415652552f00000000000000000000
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | Ether (ETH) | 100.00% | $2,906.03 | 0.08 | $232.48 |
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.