Overview
ETH Balance
1.65000000000000004 ETH
Eth Value
$5,718.62 (@ $3,465.83/ETH)More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 27 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Base URI | 13778702 | 955 days ago | IN | 0 ETH | 0.0037186 | ||||
Toggle Sale | 13730473 | 963 days ago | IN | 0 ETH | 0.00227725 | ||||
Presale Mint | 13730207 | 963 days ago | IN | 0.05 ETH | 0.00636475 | ||||
Presale Mint | 13726256 | 964 days ago | IN | 0.05 ETH | 0.00908734 | ||||
Setup Batch | 13725329 | 964 days ago | IN | 0 ETH | 0.00265453 | ||||
Gift | 13725256 | 964 days ago | IN | 0 ETH | 0.00814372 | ||||
Presale Mint | 13724053 | 964 days ago | IN | 0.05 ETH | 0.00693531 | ||||
Presale Mint | 13723881 | 964 days ago | IN | 0.1 ETH | 0.010382 | ||||
Presale Mint | 13723857 | 964 days ago | IN | 0.2 ETH | 0.01311619 | ||||
Presale Mint | 13723854 | 964 days ago | IN | 0.05 ETH | 0.00982064 | ||||
Presale Mint | 13723854 | 964 days ago | IN | 0.1 ETH | 0.01002927 | ||||
Presale Mint | 13723843 | 964 days ago | IN | 0.2 ETH | 0.01077677 | ||||
Presale Mint | 13723843 | 964 days ago | IN | 0.2 ETH | 0.01077677 | ||||
Presale Mint | 13723837 | 964 days ago | IN | 0.05 ETH | 0.00913502 | ||||
Presale Mint | 13723836 | 964 days ago | IN | 0.15 ETH | 0.00847841 | ||||
Presale Mint | 13723832 | 964 days ago | IN | 0.15 ETH | 0.00951313 | ||||
Presale Mint | 13723832 | 964 days ago | IN | 0.1 ETH | 0.00932327 | ||||
Presale Mint | 13723831 | 964 days ago | IN | 0.05 ETH | 0.00813035 | ||||
Presale Mint | 13723831 | 964 days ago | IN | 0.1 ETH | 0.00830161 | ||||
Toggle Sale | 13723828 | 964 days ago | IN | 0 ETH | 0.00481314 | ||||
Setup Batch | 13722428 | 964 days ago | IN | 0 ETH | 0.00486941 | ||||
Toggle Sale | 13722424 | 964 days ago | IN | 0 ETH | 0.00359771 | ||||
Presale Mint | 13722415 | 964 days ago | IN | 0.05 ETH | 0.01703449 | ||||
Toggle Sale | 13722397 | 964 days ago | IN | 0 ETH | 0.00804637 | ||||
Set Base URI | 13720862 | 965 days ago | IN | 0 ETH | 0.00793547 |
Loading...
Loading
Contract Name:
ChosenOnes
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.3; /* █ █░ ▒█████ ██▀███ ██████ ██░ ██ ██▓ ██▓███ ▓█░ █ ░█░▒██▒ ██▒▓██ ▒ ██▒▒██ ▒ ▓██░ ██▒▓██▒▓██░ ██▒ ▒█░ █ ░█ ▒██░ ██▒▓██ ░▄█ ▒░ ▓██▄ ▒██▀▀██░▒██▒▓██░ ██▓▒ ░█░ █ ░█ ▒██ ██░▒██▀▀█▄ ▒ ██▒░▓█ ░██ ░██░▒██▄█▓▒ ▒ ░░██▒██▓ ░ ████▓▒░░██▓ ▒██▒▒██████▒▒░▓█▒░██▓░██░▒██▒ ░ ░ ░ ▓░▒ ▒ ░ ▒░▒░▒░ ░ ▒▓ ░▒▓░▒ ▒▓▒ ▒ ░ ▒ ░░▒░▒░▓ ▒▓▒░ ░ ░ ▒ ░ ░ ░ ▒ ▒░ ░▒ ░ ▒░░ ░▒ ░ ░ ▒ ░▒░ ░ ▒ ░░▒ ░ ░ ░ ░ ░ ░ ▒ ░░ ░ ░ ░ ░ ░ ░░ ░ ▒ ░░░ ░ ░ ░ ░ ░ ░ ░ ░ ░ by @nichosystem */ import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "./Mintable.sol"; contract ChosenOnes is ERC721Enumerable, Ownable, Mintable { using Strings for uint256; using ECDSA for bytes32; event Mint(address indexed _to, uint256 indexed _id); event ToggleSale(bool saleLive, bool presaleLive); address public constant SIGNER = 0x78dF3aC8Bb88eF068A5A0D709f53Dedbd9D1964d; address public constant VAULT = 0xDDA119Aa6Da912C62428a5A37Ed5541CB87e32a7; uint256 public constant MAX_SUPPLY = 11111; uint256 public constant TX_LIMIT = 20; uint256 public supply; uint256 public price; uint256 public batchSupply; uint256 public giftedAmount; bool public saleLive; bool public presaleLive; string public baseURI; mapping(address => uint256) public presaleTokensClaimed; mapping(address => mapping(uint256 => bool)) private _usedNonces; constructor(address _owner, address _imx) ERC721("ChosenOnes", "ONES") Mintable(_owner, _imx) {} // INTERNAL function _mintFor( address to, uint256 id, bytes memory blueprint ) internal override { _safeMint(to, id); } function _hashTransaction( address sender, uint256 qty, uint256 nonce ) private pure returns (bytes32) { return keccak256(abi.encodePacked(sender, qty, nonce)) .toEthSignedMessageHash(); } function _matchSigner(bytes32 hash, bytes memory signature) private pure returns (bool) { return SIGNER == hash.recover(signature); } // ONLY OWNER function toggleSale(bool _saleLive, bool _presaleLive) external onlyOwner { saleLive = _saleLive; presaleLive = _presaleLive; emit ToggleSale(_saleLive, _presaleLive); } function setupBatch(uint256 _price, uint256 _batchSupply) external onlyOwner { price = _price; batchSupply = _batchSupply; } function gift(address[] calldata recipients) external onlyOwner { require(supply + recipients.length <= MAX_SUPPLY, "Exceeds max supply"); uint256 _supply = supply; // Gas optimization giftedAmount += recipients.length; supply += recipients.length; // zero-index i for recipients array for (uint256 i = 0; i < recipients.length; i++) { emit Mint(recipients[i], _supply + i + 1); // increment by 1 for token IDs } } function withdraw() external onlyOwner { payable(VAULT).transfer(address(this).balance); } function setBaseURI(string calldata URI) external onlyOwner { baseURI = URI; } // PUBLIC function mint(uint256 tokenQuantity) external payable { require(saleLive, "Sale closed"); require( supply + tokenQuantity <= batchSupply && supply + tokenQuantity <= MAX_SUPPLY, "Exceeds max supply" ); require(tokenQuantity <= TX_LIMIT, "Exceeds transaction limit"); require(tokenQuantity > 0, "No tokens issued"); require(msg.value >= price * tokenQuantity, "Insufficient ETH"); uint256 _supply = supply; // Gas optimization supply += tokenQuantity; for (uint256 i = 1; i <= tokenQuantity; i++) { emit Mint(msg.sender, _supply + i); } } function presaleMint( bytes32 hash, bytes memory signature, uint256 nonce, uint256 tokenQuantity ) external payable { require(presaleLive, "Presale closed"); require( supply + tokenQuantity <= batchSupply && supply + tokenQuantity <= MAX_SUPPLY, "Exceeds presale supply" ); require(tokenQuantity > 0, "No tokens issued"); require(msg.value >= price * tokenQuantity, "Insufficient ETH"); require(_matchSigner(hash, signature), "No direct mint"); require(!_usedNonces[msg.sender][nonce], "Hash used"); require( _hashTransaction(msg.sender, tokenQuantity, nonce) == hash, "Hash fail" ); presaleTokensClaimed[msg.sender] += tokenQuantity; _usedNonces[msg.sender][nonce] = true; uint256 _supply = supply; // Gas optimization supply += tokenQuantity; for (uint256 i = 1; i <= tokenQuantity; i++) { emit Mint(msg.sender, _supply + i); } } function tokenURI(uint256 tokenId) public view override(ERC721) returns (string memory) { require(_exists(tokenId), "Token does not exist"); return string(abi.encodePacked(baseURI, tokenId.toString())); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @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 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 pragma solidity ^0.8.4; import "@openzeppelin/contracts/access/Ownable.sol"; import "./IMintable.sol"; import "./utils/Minting.sol"; abstract contract Mintable is Ownable, IMintable { address public imx; mapping(uint256 => bytes) public blueprints; event AssetMinted(address to, uint256 id, bytes blueprint); constructor(address _owner, address _imx) { imx = _imx; require(_owner != address(0), "Owner must not be empty"); transferOwnership(_owner); } modifier onlyIMX() { require(msg.sender == imx, "Function can only be called by IMX"); _; } function mintFor( address user, uint256 quantity, bytes calldata mintingBlob ) external override onlyIMX { require(quantity == 1, "Mintable: invalid quantity"); (uint256 id, bytes memory blueprint) = Minting.split(mintingBlob); _mintFor(user, id, blueprint); blueprints[id] = blueprint; emit AssetMinted(user, id, blueprint); } function _mintFor( address to, uint256 id, bytes memory blueprint ) internal virtual; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; interface IMintable { function mintFor( address to, uint256 quantity, bytes calldata mintingBlob ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "./Bytes.sol"; library Minting { // Split the minting blob into token_id and blueprint portions // {token_id}:{blueprint} function split(bytes calldata blob) internal pure returns (uint256, bytes memory) { int256 index = Bytes.indexOf(blob, ":", 0); require(index >= 0, "Separator must exist"); // Trim the { and } from the parameters uint256 tokenID = Bytes.toUint(blob[1:uint256(index) - 1]); uint256 blueprintLength = blob.length - uint256(index) - 3; if (blueprintLength == 0) { return (tokenID, bytes("")); } bytes calldata blueprint = blob[uint256(index) + 2:blob.length - 1]; return (tokenID, blueprint); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; library Bytes { /** * @dev Converts a `uint256` to a `string`. * via OraclizeAPI - MIT licence * https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol */ function fromUint(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); uint256 index = digits - 1; temp = value; while (temp != 0) { buffer[index--] = bytes1(uint8(48 + (temp % 10))); temp /= 10; } return string(buffer); } bytes constant alphabet = "0123456789abcdef"; /** * Index Of * * Locates and returns the position of a character within a string starting * from a defined offset * * @param _base When being used for a data type this is the extended object * otherwise this is the string acting as the haystack to be * searched * @param _value The needle to search for, at present this is currently * limited to one character * @param _offset The starting point to start searching from which can start * from 0, but must not exceed the length of the string * @return int The position of the needle starting from 0 and returning -1 * in the case of no matches found */ function indexOf( bytes memory _base, string memory _value, uint256 _offset ) internal pure returns (int256) { bytes memory _valueBytes = bytes(_value); assert(_valueBytes.length == 1); for (uint256 i = _offset; i < _base.length; i++) { if (_base[i] == _valueBytes[0]) { return int256(i); } } return -1; } function substring( bytes memory strBytes, uint256 startIndex, uint256 endIndex ) internal pure returns (string memory) { bytes memory result = new bytes(endIndex - startIndex); for (uint256 i = startIndex; i < endIndex; i++) { result[i - startIndex] = strBytes[i]; } return string(result); } function toUint(bytes memory b) internal pure returns (uint256) { uint256 result = 0; for (uint256 i = 0; i < b.length; i++) { uint256 val = uint256(uint8(b[i])); if (val >= 48 && val <= 57) { result = result * 10 + (val - 48); } } return result; } }
{ "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":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_imx","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"blueprint","type":"bytes"}],"name":"AssetMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_to","type":"address"},{"indexed":true,"internalType":"uint256","name":"_id","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"saleLive","type":"bool"},{"indexed":false,"internalType":"bool","name":"presaleLive","type":"bool"}],"name":"ToggleSale","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_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SIGNER","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TX_LIMIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VAULT","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"batchSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"blueprints","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"recipients","type":"address[]"}],"name":"gift","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"giftedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"imx","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenQuantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"bytes","name":"mintingBlob","type":"bytes"}],"name":"mintFor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleLive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"hash","type":"bytes32"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"tokenQuantity","type":"uint256"}],"name":"presaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"presaleTokensClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"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":"URI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"},{"internalType":"uint256","name":"_batchSupply","type":"uint256"}],"name":"setupBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"supply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"bool","name":"_saleLive","type":"bool"},{"internalType":"bool","name":"_presaleLive","type":"bool"}],"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":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b50604051620066bf380380620066bf83398181016040528101906200003791906200049d565b81816040518060400160405280600a81526020017f43686f73656e4f6e6573000000000000000000000000000000000000000000008152506040518060400160405280600481526020017f4f4e4553000000000000000000000000000000000000000000000000000000008152508160009080519060200190620000bd929190620003d6565b508060019080519060200190620000d6929190620003d6565b505050620000f9620000ed620001c860201b60201c565b620001d060201b60201c565b80600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415620001ad576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620001a49062000575565b60405180910390fd5b620001be826200029660201b60201c565b505050506200071e565b600033905090565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b620002a6620001c860201b60201c565b73ffffffffffffffffffffffffffffffffffffffff16620002cc620003ac60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff161462000325576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200031c9062000597565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141562000398576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200038f9062000553565b60405180910390fd5b620003a981620001d060201b60201c565b50565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b828054620003e490620005fe565b90600052602060002090601f01602090048101928262000408576000855562000454565b82601f106200042357805160ff191683800117855562000454565b8280016001018555821562000454579182015b828111156200045357825182559160200191906001019062000436565b5b50905062000463919062000467565b5090565b5b808211156200048257600081600090555060010162000468565b5090565b600081519050620004978162000704565b92915050565b60008060408385031215620004b157600080fd5b6000620004c18582860162000486565b9250506020620004d48582860162000486565b9150509250929050565b6000620004ed602683620005b9565b9150620004fa8262000663565b604082019050919050565b600062000514601783620005b9565b91506200052182620006b2565b602082019050919050565b60006200053b602083620005b9565b91506200054882620006db565b602082019050919050565b600060208201905081810360008301526200056e81620004de565b9050919050565b60006020820190508181036000830152620005908162000505565b9050919050565b60006020820190508181036000830152620005b2816200052c565b9050919050565b600082825260208201905092915050565b6000620005d782620005de565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600060028204905060018216806200061757607f821691505b602082108114156200062e576200062d62000634565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4f776e6572206d757374206e6f7420626520656d707479000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6200070f81620005ca565b81146200071b57600080fd5b50565b615f91806200072e6000396000f3fe6080604052600436106102465760003560e01c8063582abd1211610139578063a035b1fe116100b6578063afb5453f1161007a578063afb5453f14610864578063b88d4fde1461088f578063c87b56dd146108b8578063e081b781146108f5578063e985e9c514610920578063f2fde38b1461095d57610246565b8063a035b1fe146107a2578063a0712d68146107cd578063a22cb465146107e9578063a3f4b61b14610812578063aae7c57b1461083b57610246565b8063715018a6116100fd578063715018a6146106ee578063759990fb1461070557806383a9e049146107215780638da5cb5b1461074c57806395d89b411461077757610246565b8063582abd12146105e15780636352211e1461060c57806366bf33be146106495780636c0360eb1461068657806370a08231146106b157610246565b80631b57190e116101c75780633ccfd60b1161018b5780633ccfd60b14610510578063411557d11461052757806342842e0e146105525780634f6ccce71461057b57806355f804b3146105b857610246565b80631b57190e1461041757806323b872dd1461044257806323fdfa191461046b5780632f745c59146104a857806332cb6b0c146104e557610246565b8063095ea7b31161020e578063095ea7b3146103465780630f08025f1461036f578063163e1e611461039a57806318160ddd146103c357806319ee6e3f146103ee57610246565b806301ffc9a71461024b578063047fc9aa1461028857806306af692d146102b357806306fdde03146102de578063081812fc14610309575b600080fd5b34801561025757600080fd5b50610272600480360381019061026d9190614404565b610986565b60405161027f9190614cca565b60405180910390f35b34801561029457600080fd5b5061029d610a00565b6040516102aa91906151f7565b60405180910390f35b3480156102bf57600080fd5b506102c8610a06565b6040516102d591906151f7565b60405180910390f35b3480156102ea57600080fd5b506102f3610a0c565b6040516103009190614d75565b60405180910390f35b34801561031557600080fd5b50610330600480360381019061032b919061449b565b610a9e565b60405161033d9190614c25565b60405180910390f35b34801561035257600080fd5b5061036d60048036038101906103689190614260565b610b23565b005b34801561037b57600080fd5b50610384610c3b565b6040516103919190614c25565b60405180910390f35b3480156103a657600080fd5b506103c160048036038101906103bc9190614308565b610c61565b005b3480156103cf57600080fd5b506103d8610e40565b6040516103e591906151f7565b60405180910390f35b3480156103fa57600080fd5b506104156004803603810190610410919061429c565b610e4d565b005b34801561042357600080fd5b5061042c610fa7565b60405161043991906151f7565b60405180910390f35b34801561044e57600080fd5b506104696004803603810190610464919061415a565b610fad565b005b34801561047757600080fd5b50610492600480360381019061048d91906140f5565b61100d565b60405161049f91906151f7565b60405180910390f35b3480156104b457600080fd5b506104cf60048036038101906104ca9190614260565b611025565b6040516104dc91906151f7565b60405180910390f35b3480156104f157600080fd5b506104fa6110ca565b60405161050791906151f7565b60405180910390f35b34801561051c57600080fd5b506105256110d0565b005b34801561053357600080fd5b5061053c6111a9565b6040516105499190614c25565b60405180910390f35b34801561055e57600080fd5b506105796004803603810190610574919061415a565b6111c1565b005b34801561058757600080fd5b506105a2600480360381019061059d919061449b565b6111e1565b6040516105af91906151f7565b60405180910390f35b3480156105c457600080fd5b506105df60048036038101906105da9190614456565b611278565b005b3480156105ed57600080fd5b506105f661130a565b6040516106039190614c25565b60405180910390f35b34801561061857600080fd5b50610633600480360381019061062e919061449b565b611322565b6040516106409190614c25565b60405180910390f35b34801561065557600080fd5b50610670600480360381019061066b919061449b565b6113d4565b60405161067d9190614d53565b60405180910390f35b34801561069257600080fd5b5061069b611474565b6040516106a89190614d75565b60405180910390f35b3480156106bd57600080fd5b506106d860048036038101906106d391906140f5565b611502565b6040516106e591906151f7565b60405180910390f35b3480156106fa57600080fd5b506107036115ba565b005b61071f600480360381019061071a9190614389565b611642565b005b34801561072d57600080fd5b50610736611a1b565b6040516107439190614cca565b60405180910390f35b34801561075857600080fd5b50610761611a2e565b60405161076e9190614c25565b60405180910390f35b34801561078357600080fd5b5061078c611a58565b6040516107999190614d75565b60405180910390f35b3480156107ae57600080fd5b506107b7611aea565b6040516107c491906151f7565b60405180910390f35b6107e760048036038101906107e2919061449b565b611af0565b005b3480156107f557600080fd5b50610810600480360381019061080b9190614224565b611d18565b005b34801561081e57600080fd5b50610839600480360381019061083491906144c4565b611e99565b005b34801561084757600080fd5b50610862600480360381019061085d919061434d565b611f27565b005b34801561087057600080fd5b50610879612014565b60405161088691906151f7565b60405180910390f35b34801561089b57600080fd5b506108b660048036038101906108b191906141a9565b612019565b005b3480156108c457600080fd5b506108df60048036038101906108da919061449b565b61207b565b6040516108ec9190614d75565b60405180910390f35b34801561090157600080fd5b5061090a6120f7565b6040516109179190614cca565b60405180910390f35b34801561092c57600080fd5b506109476004803603810190610942919061411e565b61210a565b6040516109549190614cca565b60405180910390f35b34801561096957600080fd5b50610984600480360381019061097f91906140f5565b61219e565b005b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806109f957506109f882612296565b5b9050919050565b600d5481565b600f5481565b606060008054610a1b906154d5565b80601f0160208091040260200160405190810160405280929190818152602001828054610a47906154d5565b8015610a945780601f10610a6957610100808354040283529160200191610a94565b820191906000526020600020905b815481529060010190602001808311610a7757829003601f168201915b5050505050905090565b6000610aa982612378565b610ae8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610adf90615077565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610b2e82611322565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610b9f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b96906150d7565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610bbe6123e4565b73ffffffffffffffffffffffffffffffffffffffff161480610bed5750610bec81610be76123e4565b61210a565b5b610c2c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c2390614f77565b60405180910390fd5b610c3683836123ec565b505050565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610c696123e4565b73ffffffffffffffffffffffffffffffffffffffff16610c87611a2e565b73ffffffffffffffffffffffffffffffffffffffff1614610cdd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cd490615097565b60405180910390fd5b612b6782829050600d54610cf191906152f3565b1115610d32576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d2990614ff7565b60405180910390fd5b6000600d5490508282905060106000828254610d4e91906152f3565b9250508190555082829050600d6000828254610d6a91906152f3565b9250508190555060005b83839050811015610e3a5760018183610d8d91906152f3565b610d9791906152f3565b848483818110610dd0577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9050602002016020810190610de591906140f5565b73ffffffffffffffffffffffffffffffffffffffff167f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d412139688560405160405180910390a38080610e3290615538565b915050610d74565b50505050565b6000600880549050905090565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610edd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ed490614db7565b60405180910390fd5b60018314610f20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f1790614ef7565b60405180910390fd5b600080610f2d84846124a5565b91509150610f3c8683836126ba565b80600c60008481526020019081526020016000209080519060200190610f63929190613e08565b507f31e594f6b36b98ec520a91cbbba7b8724b1cec27393f86d8f0f6aa6084db0aaf868383604051610f9793929190614c8c565b60405180910390a1505050505050565b60105481565b610fbe610fb86123e4565b826126c9565b610ffd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ff490615137565b60405180910390fd5b6110088383836127a7565b505050565b60136020528060005260406000206000915090505481565b600061103083611502565b8210611071576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161106890614e17565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b612b6781565b6110d86123e4565b73ffffffffffffffffffffffffffffffffffffffff166110f6611a2e565b73ffffffffffffffffffffffffffffffffffffffff161461114c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161114390615097565b60405180910390fd5b73dda119aa6da912c62428a5a37ed5541cb87e32a773ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f193505050501580156111a6573d6000803e3d6000fd5b50565b73dda119aa6da912c62428a5a37ed5541cb87e32a781565b6111dc83838360405180602001604052806000815250612019565b505050565b60006111eb610e40565b821061122c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161122390615157565b60405180910390fd5b60088281548110611266577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b6112806123e4565b73ffffffffffffffffffffffffffffffffffffffff1661129e611a2e565b73ffffffffffffffffffffffffffffffffffffffff16146112f4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112eb90615097565b60405180910390fd5b818160129190611305929190613e8e565b505050565b7378df3ac8bb88ef068a5a0d709f53dedbd9d1964d81565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156113cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113c290614fb7565b60405180910390fd5b80915050919050565b600c60205280600052604060002060009150905080546113f3906154d5565b80601f016020809104026020016040519081016040528092919081815260200182805461141f906154d5565b801561146c5780601f106114415761010080835404028352916020019161146c565b820191906000526020600020905b81548152906001019060200180831161144f57829003601f168201915b505050505081565b60128054611481906154d5565b80601f01602080910402602001604051908101604052809291908181526020018280546114ad906154d5565b80156114fa5780601f106114cf576101008083540402835291602001916114fa565b820191906000526020600020905b8154815290600101906020018083116114dd57829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611573576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161156a90614f97565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6115c26123e4565b73ffffffffffffffffffffffffffffffffffffffff166115e0611a2e565b73ffffffffffffffffffffffffffffffffffffffff1614611636576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161162d90615097565b60405180910390fd5b6116406000612a03565b565b601160019054906101000a900460ff16611691576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161168890615177565b60405180910390fd5b600f5481600d546116a291906152f3565b111580156116bf5750612b6781600d546116bc91906152f3565b11155b6116fe576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116f590615197565b60405180910390fd5b60008111611741576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161173890615057565b60405180910390fd5b80600e5461174f919061537a565b341015611791576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161178890614dd7565b60405180910390fd5b61179b8484612ac9565b6117da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117d190614ed7565b60405180910390fd5b601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002060009054906101000a900460ff1615611878576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161186f906150f7565b60405180910390fd5b83611884338385612b28565b146118c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118bb906151d7565b60405180910390fd5b80601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461191391906152f3565b925050819055506001601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002060006101000a81548160ff0219169083151502179055506000600d54905081600d600082825461199c91906152f3565b925050819055506000600190505b828111611a135780826119bd91906152f3565b3373ffffffffffffffffffffffffffffffffffffffff167f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d412139688560405160405180910390a38080611a0b90615538565b9150506119aa565b505050505050565b601160019054906101000a900460ff1681565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060018054611a67906154d5565b80601f0160208091040260200160405190810160405280929190818152602001828054611a93906154d5565b8015611ae05780601f10611ab557610100808354040283529160200191611ae0565b820191906000526020600020905b815481529060010190602001808311611ac357829003601f168201915b5050505050905090565b600e5481565b601160009054906101000a900460ff16611b3f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b3690614fd7565b60405180910390fd5b600f5481600d54611b5091906152f3565b11158015611b6d5750612b6781600d54611b6a91906152f3565b11155b611bac576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ba390614ff7565b60405180910390fd5b6014811115611bf0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611be7906151b7565b60405180910390fd5b60008111611c33576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c2a90615057565b60405180910390fd5b80600e54611c41919061537a565b341015611c83576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c7a90614dd7565b60405180910390fd5b6000600d54905081600d6000828254611c9c91906152f3565b925050819055506000600190505b828111611d13578082611cbd91906152f3565b3373ffffffffffffffffffffffffffffffffffffffff167f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d412139688560405160405180910390a38080611d0b90615538565b915050611caa565b505050565b611d206123e4565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611d8e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d8590614eb7565b60405180910390fd5b8060056000611d9b6123e4565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611e486123e4565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611e8d9190614cca565b60405180910390a35050565b611ea16123e4565b73ffffffffffffffffffffffffffffffffffffffff16611ebf611a2e565b73ffffffffffffffffffffffffffffffffffffffff1614611f15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f0c90615097565b60405180910390fd5b81600e8190555080600f819055505050565b611f2f6123e4565b73ffffffffffffffffffffffffffffffffffffffff16611f4d611a2e565b73ffffffffffffffffffffffffffffffffffffffff1614611fa3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f9a90615097565b60405180910390fd5b81601160006101000a81548160ff02191690831515021790555080601160016101000a81548160ff0219169083151502179055507fbf9da71ae4dd6d5bff9bf1647885ce5de321e81c1018648a6f54e60b6b9761338282604051612008929190614ce5565b60405180910390a15050565b601481565b61202a6120246123e4565b836126c9565b612069576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161206090615137565b60405180910390fd5b61207584848484612b66565b50505050565b606061208682612378565b6120c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120bc90614f37565b60405180910390fd5b60126120d083612bc2565b6040516020016120e1929190614bdb565b6040516020818303038152906040529050919050565b601160009054906101000a900460ff1681565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6121a66123e4565b73ffffffffffffffffffffffffffffffffffffffff166121c4611a2e565b73ffffffffffffffffffffffffffffffffffffffff161461221a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161221190615097565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561228a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161228190614e57565b60405180910390fd5b61229381612a03565b50565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061236157507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612371575061237082612d6f565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661245f83611322565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006060600061253085858080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050506040518060400160405280600181526020017f3a000000000000000000000000000000000000000000000000000000000000008152506000612dd9565b90506000811215612576576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161256d90615117565b60405180910390fd5b60006125e2868660019060018661258d91906153d4565b9261259a939291906152c0565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050612f43565b90506000600383888890506125f791906153d4565b61260191906153d4565b90506000811415612629578160405180602001604052806000815250945094505050506126b3565b366000888860028761263b91906152f3565b9060018c8c905061264c91906153d4565b92612659939291906152c0565b9150915083828281818080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050905090509650965050505050505b9250929050565b6126c48383613000565b505050565b60006126d482612378565b612713576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161270a90614f57565b60405180910390fd5b600061271e83611322565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061278d57508373ffffffffffffffffffffffffffffffffffffffff1661277584610a9e565b73ffffffffffffffffffffffffffffffffffffffff16145b8061279e575061279d818561210a565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166127c782611322565b73ffffffffffffffffffffffffffffffffffffffff161461281d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612814906150b7565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561288d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161288490614e97565b60405180910390fd5b61289883838361301e565b6128a36000826123ec565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546128f391906153d4565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461294a91906152f3565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000612ade828461313290919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff167378df3ac8bb88ef068a5a0d709f53dedbd9d1964d73ffffffffffffffffffffffffffffffffffffffff1614905092915050565b6000612b5d848484604051602001612b4293929190614b9e565b60405160208183030381529060405280519060200120613159565b90509392505050565b612b718484846127a7565b612b7d84848484613189565b612bbc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bb390614e37565b60405180910390fd5b50505050565b60606000821415612c0a576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612d6a565b600082905060005b60008214612c3c578080612c2590615538565b915050600a82612c359190615349565b9150612c12565b60008167ffffffffffffffff811115612c7e577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612cb05781602001600182028036833780820191505090505b5090505b60008514612d6357600182612cc991906153d4565b9150600a85612cd891906155b9565b6030612ce491906152f3565b60f81b818381518110612d20577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612d5c9190615349565b9450612cb4565b8093505050505b919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6000808390506001815114612e17577f4e487b7100000000000000000000000000000000000000000000000000000000600052600160045260246000fd5b60008390505b8551811015612f165781600081518110612e60577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916868281518110612ec6577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161415612f03578092505050612f3c565b8080612f0e90615538565b915050612e1d565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9150505b9392505050565b6000806000905060005b8351811015612ff6576000848281518110612f91577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602001015160f81c60f81b60f81c60ff16905060308110158015612fb6575060398111155b15612fe257603081612fc891906153d4565b600a84612fd5919061537a565b612fdf91906152f3565b92505b508080612fee90615538565b915050612f4d565b5080915050919050565b61301a828260405180602001604052806000815250613320565b5050565b61302983838361337b565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561306c5761306781613380565b6130ab565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146130aa576130a983826133c9565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156130ee576130e981613536565b61312d565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161461312c5761312b8282613679565b5b5b505050565b600080600061314185856136f8565b9150915061314e8161377b565b819250505092915050565b60008160405160200161316c9190614bff565b604051602081830303815290604052805190602001209050919050565b60006131aa8473ffffffffffffffffffffffffffffffffffffffff16613acc565b15613313578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026131d36123e4565b8786866040518563ffffffff1660e01b81526004016131f59493929190614c40565b602060405180830381600087803b15801561320f57600080fd5b505af192505050801561324057506040513d601f19601f8201168201806040525081019061323d919061442d565b60015b6132c3573d8060008114613270576040519150601f19603f3d011682016040523d82523d6000602084013e613275565b606091505b506000815114156132bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132b290614e37565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613318565b600190505b949350505050565b61332a8383613adf565b6133376000848484613189565b613376576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161336d90614e37565b60405180910390fd5b505050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b600060016133d684611502565b6133e091906153d4565b90506000600760008481526020019081526020016000205490508181146134c5576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b6000600160088054905061354a91906153d4565b90506000600960008481526020019081526020016000205490506000600883815481106135a0577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154905080600883815481106135e8577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001819055508160096000838152602001908152602001600020819055506009600085815260200190815260200160002060009055600880548061365d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061368483611502565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b60008060418351141561373a5760008060006020860151925060408601519150606086015160001a905061372e87828585613cad565b94509450505050613774565b60408351141561376b576000806020850151915060408501519050613760868383613dba565b935093505050613774565b60006002915091505b9250929050565b600060048111156137b5577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b8160048111156137ee577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14156137f957613ac9565b60016004811115613833577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b81600481111561386c577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14156138ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016138a490614d97565b60405180910390fd5b600260048111156138e7577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115613920577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415613961576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161395890614df7565b60405180910390fd5b6003600481111561399b577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b8160048111156139d4577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415613a15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a0c90614f17565b60405180910390fd5b600480811115613a4e577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115613a87577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415613ac8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613abf90615017565b60405180910390fd5b5b50565b600080823b905060008111915050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613b4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b4690615037565b60405180910390fd5b613b5881612378565b15613b98576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b8f90614e77565b60405180910390fd5b613ba46000838361301e565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254613bf491906152f3565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c1115613ce8576000600391509150613db1565b601b8560ff1614158015613d005750601c8560ff1614155b15613d12576000600491509150613db1565b600060018787878760405160008152602001604052604051613d379493929190614d0e565b6020604051602081039080840390855afa158015613d59573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415613da857600060019250925050613db1565b80600092509250505b94509492505050565b6000806000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff85169150601b8560ff1c019050613dfa87828885613cad565b935093505050935093915050565b828054613e14906154d5565b90600052602060002090601f016020900481019282613e365760008555613e7d565b82601f10613e4f57805160ff1916838001178555613e7d565b82800160010185558215613e7d579182015b82811115613e7c578251825591602001919060010190613e61565b5b509050613e8a9190613f14565b5090565b828054613e9a906154d5565b90600052602060002090601f016020900481019282613ebc5760008555613f03565b82601f10613ed557803560ff1916838001178555613f03565b82800160010185558215613f03579182015b82811115613f02578235825591602001919060010190613ee7565b5b509050613f109190613f14565b5090565b5b80821115613f2d576000816000905550600101613f15565b5090565b6000613f44613f3f84615237565b615212565b905082815260208101848484011115613f5c57600080fd5b613f67848285615493565b509392505050565b600081359050613f7e81615ee8565b92915050565b60008083601f840112613f9657600080fd5b8235905067ffffffffffffffff811115613faf57600080fd5b602083019150836020820283011115613fc757600080fd5b9250929050565b600081359050613fdd81615eff565b92915050565b600081359050613ff281615f16565b92915050565b60008135905061400781615f2d565b92915050565b60008151905061401c81615f2d565b92915050565b60008083601f84011261403457600080fd5b8235905067ffffffffffffffff81111561404d57600080fd5b60208301915083600182028301111561406557600080fd5b9250929050565b600082601f83011261407d57600080fd5b813561408d848260208601613f31565b91505092915050565b60008083601f8401126140a857600080fd5b8235905067ffffffffffffffff8111156140c157600080fd5b6020830191508360018202830111156140d957600080fd5b9250929050565b6000813590506140ef81615f44565b92915050565b60006020828403121561410757600080fd5b600061411584828501613f6f565b91505092915050565b6000806040838503121561413157600080fd5b600061413f85828601613f6f565b925050602061415085828601613f6f565b9150509250929050565b60008060006060848603121561416f57600080fd5b600061417d86828701613f6f565b935050602061418e86828701613f6f565b925050604061419f868287016140e0565b9150509250925092565b600080600080608085870312156141bf57600080fd5b60006141cd87828801613f6f565b94505060206141de87828801613f6f565b93505060406141ef878288016140e0565b925050606085013567ffffffffffffffff81111561420c57600080fd5b6142188782880161406c565b91505092959194509250565b6000806040838503121561423757600080fd5b600061424585828601613f6f565b925050602061425685828601613fce565b9150509250929050565b6000806040838503121561427357600080fd5b600061428185828601613f6f565b9250506020614292858286016140e0565b9150509250929050565b600080600080606085870312156142b257600080fd5b60006142c087828801613f6f565b94505060206142d1878288016140e0565b935050604085013567ffffffffffffffff8111156142ee57600080fd5b6142fa87828801614022565b925092505092959194509250565b6000806020838503121561431b57600080fd5b600083013567ffffffffffffffff81111561433557600080fd5b61434185828601613f84565b92509250509250929050565b6000806040838503121561436057600080fd5b600061436e85828601613fce565b925050602061437f85828601613fce565b9150509250929050565b6000806000806080858703121561439f57600080fd5b60006143ad87828801613fe3565b945050602085013567ffffffffffffffff8111156143ca57600080fd5b6143d68782880161406c565b93505060406143e7878288016140e0565b92505060606143f8878288016140e0565b91505092959194509250565b60006020828403121561441657600080fd5b600061442484828501613ff8565b91505092915050565b60006020828403121561443f57600080fd5b600061444d8482850161400d565b91505092915050565b6000806020838503121561446957600080fd5b600083013567ffffffffffffffff81111561448357600080fd5b61448f85828601614096565b92509250509250929050565b6000602082840312156144ad57600080fd5b60006144bb848285016140e0565b91505092915050565b600080604083850312156144d757600080fd5b60006144e5858286016140e0565b92505060206144f6858286016140e0565b9150509250929050565b61450981615408565b82525050565b61452061451b82615408565b615581565b82525050565b61452f8161541a565b82525050565b61453e81615426565b82525050565b61455561455082615426565b615593565b82525050565b60006145668261527d565b6145708185615293565b93506145808185602086016154a2565b614589816156a6565b840191505092915050565b600061459f82615288565b6145a981856152a4565b93506145b98185602086016154a2565b6145c2816156a6565b840191505092915050565b60006145d882615288565b6145e281856152b5565b93506145f28185602086016154a2565b80840191505092915050565b6000815461460b816154d5565b61461581866152b5565b94506001821660008114614630576001811461464157614674565b60ff19831686528186019350614674565b61464a85615268565b60005b8381101561466c5781548189015260018201915060208101905061464d565b838801955050505b50505092915050565b600061468a6018836152a4565b9150614695826156c4565b602082019050919050565b60006146ad6022836152a4565b91506146b8826156ed565b604082019050919050565b60006146d06010836152a4565b91506146db8261573c565b602082019050919050565b60006146f3601f836152a4565b91506146fe82615765565b602082019050919050565b6000614716601c836152b5565b91506147218261578e565b601c82019050919050565b6000614739602b836152a4565b9150614744826157b7565b604082019050919050565b600061475c6032836152a4565b915061476782615806565b604082019050919050565b600061477f6026836152a4565b915061478a82615855565b604082019050919050565b60006147a2601c836152a4565b91506147ad826158a4565b602082019050919050565b60006147c56024836152a4565b91506147d0826158cd565b604082019050919050565b60006147e86019836152a4565b91506147f38261591c565b602082019050919050565b600061480b600e836152a4565b915061481682615945565b602082019050919050565b600061482e601a836152a4565b91506148398261596e565b602082019050919050565b60006148516022836152a4565b915061485c82615997565b604082019050919050565b60006148746014836152a4565b915061487f826159e6565b602082019050919050565b6000614897602c836152a4565b91506148a282615a0f565b604082019050919050565b60006148ba6038836152a4565b91506148c582615a5e565b604082019050919050565b60006148dd602a836152a4565b91506148e882615aad565b604082019050919050565b60006149006029836152a4565b915061490b82615afc565b604082019050919050565b6000614923600b836152a4565b915061492e82615b4b565b602082019050919050565b60006149466012836152a4565b915061495182615b74565b602082019050919050565b60006149696022836152a4565b915061497482615b9d565b604082019050919050565b600061498c6020836152a4565b915061499782615bec565b602082019050919050565b60006149af6010836152a4565b91506149ba82615c15565b602082019050919050565b60006149d2602c836152a4565b91506149dd82615c3e565b604082019050919050565b60006149f56020836152a4565b9150614a0082615c8d565b602082019050919050565b6000614a186029836152a4565b9150614a2382615cb6565b604082019050919050565b6000614a3b6021836152a4565b9150614a4682615d05565b604082019050919050565b6000614a5e6009836152a4565b9150614a6982615d54565b602082019050919050565b6000614a816014836152a4565b9150614a8c82615d7d565b602082019050919050565b6000614aa46031836152a4565b9150614aaf82615da6565b604082019050919050565b6000614ac7602c836152a4565b9150614ad282615df5565b604082019050919050565b6000614aea600e836152a4565b9150614af582615e44565b602082019050919050565b6000614b0d6016836152a4565b9150614b1882615e6d565b602082019050919050565b6000614b306019836152a4565b9150614b3b82615e96565b602082019050919050565b6000614b536009836152a4565b9150614b5e82615ebf565b602082019050919050565b614b728161547c565b82525050565b614b89614b848261547c565b6155af565b82525050565b614b9881615486565b82525050565b6000614baa828661450f565b601482019150614bba8285614b78565b602082019150614bca8284614b78565b602082019150819050949350505050565b6000614be782856145fe565b9150614bf382846145cd565b91508190509392505050565b6000614c0a82614709565b9150614c168284614544565b60208201915081905092915050565b6000602082019050614c3a6000830184614500565b92915050565b6000608082019050614c556000830187614500565b614c626020830186614500565b614c6f6040830185614b69565b8181036060830152614c81818461455b565b905095945050505050565b6000606082019050614ca16000830186614500565b614cae6020830185614b69565b8181036040830152614cc0818461455b565b9050949350505050565b6000602082019050614cdf6000830184614526565b92915050565b6000604082019050614cfa6000830185614526565b614d076020830184614526565b9392505050565b6000608082019050614d236000830187614535565b614d306020830186614b8f565b614d3d6040830185614535565b614d4a6060830184614535565b95945050505050565b60006020820190508181036000830152614d6d818461455b565b905092915050565b60006020820190508181036000830152614d8f8184614594565b905092915050565b60006020820190508181036000830152614db08161467d565b9050919050565b60006020820190508181036000830152614dd0816146a0565b9050919050565b60006020820190508181036000830152614df0816146c3565b9050919050565b60006020820190508181036000830152614e10816146e6565b9050919050565b60006020820190508181036000830152614e308161472c565b9050919050565b60006020820190508181036000830152614e508161474f565b9050919050565b60006020820190508181036000830152614e7081614772565b9050919050565b60006020820190508181036000830152614e9081614795565b9050919050565b60006020820190508181036000830152614eb0816147b8565b9050919050565b60006020820190508181036000830152614ed0816147db565b9050919050565b60006020820190508181036000830152614ef0816147fe565b9050919050565b60006020820190508181036000830152614f1081614821565b9050919050565b60006020820190508181036000830152614f3081614844565b9050919050565b60006020820190508181036000830152614f5081614867565b9050919050565b60006020820190508181036000830152614f708161488a565b9050919050565b60006020820190508181036000830152614f90816148ad565b9050919050565b60006020820190508181036000830152614fb0816148d0565b9050919050565b60006020820190508181036000830152614fd0816148f3565b9050919050565b60006020820190508181036000830152614ff081614916565b9050919050565b6000602082019050818103600083015261501081614939565b9050919050565b600060208201905081810360008301526150308161495c565b9050919050565b600060208201905081810360008301526150508161497f565b9050919050565b60006020820190508181036000830152615070816149a2565b9050919050565b60006020820190508181036000830152615090816149c5565b9050919050565b600060208201905081810360008301526150b0816149e8565b9050919050565b600060208201905081810360008301526150d081614a0b565b9050919050565b600060208201905081810360008301526150f081614a2e565b9050919050565b6000602082019050818103600083015261511081614a51565b9050919050565b6000602082019050818103600083015261513081614a74565b9050919050565b6000602082019050818103600083015261515081614a97565b9050919050565b6000602082019050818103600083015261517081614aba565b9050919050565b6000602082019050818103600083015261519081614add565b9050919050565b600060208201905081810360008301526151b081614b00565b9050919050565b600060208201905081810360008301526151d081614b23565b9050919050565b600060208201905081810360008301526151f081614b46565b9050919050565b600060208201905061520c6000830184614b69565b92915050565b600061521c61522d565b90506152288282615507565b919050565b6000604051905090565b600067ffffffffffffffff82111561525257615251615677565b5b61525b826156a6565b9050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600080858511156152d057600080fd5b838611156152dd57600080fd5b6001850283019150848603905094509492505050565b60006152fe8261547c565b91506153098361547c565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561533e5761533d6155ea565b5b828201905092915050565b60006153548261547c565b915061535f8361547c565b92508261536f5761536e615619565b5b828204905092915050565b60006153858261547c565b91506153908361547c565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156153c9576153c86155ea565b5b828202905092915050565b60006153df8261547c565b91506153ea8361547c565b9250828210156153fd576153fc6155ea565b5b828203905092915050565b60006154138261545c565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b838110156154c05780820151818401526020810190506154a5565b838111156154cf576000848401525b50505050565b600060028204905060018216806154ed57607f821691505b6020821081141561550157615500615648565b5b50919050565b615510826156a6565b810181811067ffffffffffffffff8211171561552f5761552e615677565b5b80604052505050565b60006155438261547c565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415615576576155756155ea565b5b600182019050919050565b600061558c8261559d565b9050919050565b6000819050919050565b60006155a8826156b7565b9050919050565b6000819050919050565b60006155c48261547c565b91506155cf8361547c565b9250826155df576155de615619565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b7f46756e6374696f6e2063616e206f6e6c792062652063616c6c6564206279204960008201527f4d58000000000000000000000000000000000000000000000000000000000000602082015250565b7f496e73756666696369656e742045544800000000000000000000000000000000600082015250565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4e6f20646972656374206d696e74000000000000000000000000000000000000600082015250565b7f4d696e7461626c653a20696e76616c6964207175616e74697479000000000000600082015250565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f546f6b656e20646f6573206e6f74206578697374000000000000000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f53616c6520636c6f736564000000000000000000000000000000000000000000600082015250565b7f45786365656473206d617820737570706c790000000000000000000000000000600082015250565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4e6f20746f6b656e732069737375656400000000000000000000000000000000600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f4861736820757365640000000000000000000000000000000000000000000000600082015250565b7f536570617261746f72206d757374206578697374000000000000000000000000600082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f50726573616c6520636c6f736564000000000000000000000000000000000000600082015250565b7f457863656564732070726573616c6520737570706c7900000000000000000000600082015250565b7f45786365656473207472616e73616374696f6e206c696d697400000000000000600082015250565b7f48617368206661696c0000000000000000000000000000000000000000000000600082015250565b615ef181615408565b8114615efc57600080fd5b50565b615f088161541a565b8114615f1357600080fd5b50565b615f1f81615426565b8114615f2a57600080fd5b50565b615f3681615430565b8114615f4157600080fd5b50565b615f4d8161547c565b8114615f5857600080fd5b5056fea2646970667358221220e41dd6ebc7b125539c05c5dfb2c3a0e42c691fbfaa8ef7b8c3a40be46532080164736f6c63430008040033000000000000000000000000646c9c404d2d575805ff4b8302a158bad86764120000000000000000000000005fdcca53617f4d2b9134b29090c87d01058e27e9
Deployed Bytecode
0x6080604052600436106102465760003560e01c8063582abd1211610139578063a035b1fe116100b6578063afb5453f1161007a578063afb5453f14610864578063b88d4fde1461088f578063c87b56dd146108b8578063e081b781146108f5578063e985e9c514610920578063f2fde38b1461095d57610246565b8063a035b1fe146107a2578063a0712d68146107cd578063a22cb465146107e9578063a3f4b61b14610812578063aae7c57b1461083b57610246565b8063715018a6116100fd578063715018a6146106ee578063759990fb1461070557806383a9e049146107215780638da5cb5b1461074c57806395d89b411461077757610246565b8063582abd12146105e15780636352211e1461060c57806366bf33be146106495780636c0360eb1461068657806370a08231146106b157610246565b80631b57190e116101c75780633ccfd60b1161018b5780633ccfd60b14610510578063411557d11461052757806342842e0e146105525780634f6ccce71461057b57806355f804b3146105b857610246565b80631b57190e1461041757806323b872dd1461044257806323fdfa191461046b5780632f745c59146104a857806332cb6b0c146104e557610246565b8063095ea7b31161020e578063095ea7b3146103465780630f08025f1461036f578063163e1e611461039a57806318160ddd146103c357806319ee6e3f146103ee57610246565b806301ffc9a71461024b578063047fc9aa1461028857806306af692d146102b357806306fdde03146102de578063081812fc14610309575b600080fd5b34801561025757600080fd5b50610272600480360381019061026d9190614404565b610986565b60405161027f9190614cca565b60405180910390f35b34801561029457600080fd5b5061029d610a00565b6040516102aa91906151f7565b60405180910390f35b3480156102bf57600080fd5b506102c8610a06565b6040516102d591906151f7565b60405180910390f35b3480156102ea57600080fd5b506102f3610a0c565b6040516103009190614d75565b60405180910390f35b34801561031557600080fd5b50610330600480360381019061032b919061449b565b610a9e565b60405161033d9190614c25565b60405180910390f35b34801561035257600080fd5b5061036d60048036038101906103689190614260565b610b23565b005b34801561037b57600080fd5b50610384610c3b565b6040516103919190614c25565b60405180910390f35b3480156103a657600080fd5b506103c160048036038101906103bc9190614308565b610c61565b005b3480156103cf57600080fd5b506103d8610e40565b6040516103e591906151f7565b60405180910390f35b3480156103fa57600080fd5b506104156004803603810190610410919061429c565b610e4d565b005b34801561042357600080fd5b5061042c610fa7565b60405161043991906151f7565b60405180910390f35b34801561044e57600080fd5b506104696004803603810190610464919061415a565b610fad565b005b34801561047757600080fd5b50610492600480360381019061048d91906140f5565b61100d565b60405161049f91906151f7565b60405180910390f35b3480156104b457600080fd5b506104cf60048036038101906104ca9190614260565b611025565b6040516104dc91906151f7565b60405180910390f35b3480156104f157600080fd5b506104fa6110ca565b60405161050791906151f7565b60405180910390f35b34801561051c57600080fd5b506105256110d0565b005b34801561053357600080fd5b5061053c6111a9565b6040516105499190614c25565b60405180910390f35b34801561055e57600080fd5b506105796004803603810190610574919061415a565b6111c1565b005b34801561058757600080fd5b506105a2600480360381019061059d919061449b565b6111e1565b6040516105af91906151f7565b60405180910390f35b3480156105c457600080fd5b506105df60048036038101906105da9190614456565b611278565b005b3480156105ed57600080fd5b506105f661130a565b6040516106039190614c25565b60405180910390f35b34801561061857600080fd5b50610633600480360381019061062e919061449b565b611322565b6040516106409190614c25565b60405180910390f35b34801561065557600080fd5b50610670600480360381019061066b919061449b565b6113d4565b60405161067d9190614d53565b60405180910390f35b34801561069257600080fd5b5061069b611474565b6040516106a89190614d75565b60405180910390f35b3480156106bd57600080fd5b506106d860048036038101906106d391906140f5565b611502565b6040516106e591906151f7565b60405180910390f35b3480156106fa57600080fd5b506107036115ba565b005b61071f600480360381019061071a9190614389565b611642565b005b34801561072d57600080fd5b50610736611a1b565b6040516107439190614cca565b60405180910390f35b34801561075857600080fd5b50610761611a2e565b60405161076e9190614c25565b60405180910390f35b34801561078357600080fd5b5061078c611a58565b6040516107999190614d75565b60405180910390f35b3480156107ae57600080fd5b506107b7611aea565b6040516107c491906151f7565b60405180910390f35b6107e760048036038101906107e2919061449b565b611af0565b005b3480156107f557600080fd5b50610810600480360381019061080b9190614224565b611d18565b005b34801561081e57600080fd5b50610839600480360381019061083491906144c4565b611e99565b005b34801561084757600080fd5b50610862600480360381019061085d919061434d565b611f27565b005b34801561087057600080fd5b50610879612014565b60405161088691906151f7565b60405180910390f35b34801561089b57600080fd5b506108b660048036038101906108b191906141a9565b612019565b005b3480156108c457600080fd5b506108df60048036038101906108da919061449b565b61207b565b6040516108ec9190614d75565b60405180910390f35b34801561090157600080fd5b5061090a6120f7565b6040516109179190614cca565b60405180910390f35b34801561092c57600080fd5b506109476004803603810190610942919061411e565b61210a565b6040516109549190614cca565b60405180910390f35b34801561096957600080fd5b50610984600480360381019061097f91906140f5565b61219e565b005b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806109f957506109f882612296565b5b9050919050565b600d5481565b600f5481565b606060008054610a1b906154d5565b80601f0160208091040260200160405190810160405280929190818152602001828054610a47906154d5565b8015610a945780601f10610a6957610100808354040283529160200191610a94565b820191906000526020600020905b815481529060010190602001808311610a7757829003601f168201915b5050505050905090565b6000610aa982612378565b610ae8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610adf90615077565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610b2e82611322565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610b9f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b96906150d7565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610bbe6123e4565b73ffffffffffffffffffffffffffffffffffffffff161480610bed5750610bec81610be76123e4565b61210a565b5b610c2c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c2390614f77565b60405180910390fd5b610c3683836123ec565b505050565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610c696123e4565b73ffffffffffffffffffffffffffffffffffffffff16610c87611a2e565b73ffffffffffffffffffffffffffffffffffffffff1614610cdd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cd490615097565b60405180910390fd5b612b6782829050600d54610cf191906152f3565b1115610d32576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d2990614ff7565b60405180910390fd5b6000600d5490508282905060106000828254610d4e91906152f3565b9250508190555082829050600d6000828254610d6a91906152f3565b9250508190555060005b83839050811015610e3a5760018183610d8d91906152f3565b610d9791906152f3565b848483818110610dd0577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9050602002016020810190610de591906140f5565b73ffffffffffffffffffffffffffffffffffffffff167f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d412139688560405160405180910390a38080610e3290615538565b915050610d74565b50505050565b6000600880549050905090565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610edd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ed490614db7565b60405180910390fd5b60018314610f20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f1790614ef7565b60405180910390fd5b600080610f2d84846124a5565b91509150610f3c8683836126ba565b80600c60008481526020019081526020016000209080519060200190610f63929190613e08565b507f31e594f6b36b98ec520a91cbbba7b8724b1cec27393f86d8f0f6aa6084db0aaf868383604051610f9793929190614c8c565b60405180910390a1505050505050565b60105481565b610fbe610fb86123e4565b826126c9565b610ffd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ff490615137565b60405180910390fd5b6110088383836127a7565b505050565b60136020528060005260406000206000915090505481565b600061103083611502565b8210611071576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161106890614e17565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b612b6781565b6110d86123e4565b73ffffffffffffffffffffffffffffffffffffffff166110f6611a2e565b73ffffffffffffffffffffffffffffffffffffffff161461114c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161114390615097565b60405180910390fd5b73dda119aa6da912c62428a5a37ed5541cb87e32a773ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f193505050501580156111a6573d6000803e3d6000fd5b50565b73dda119aa6da912c62428a5a37ed5541cb87e32a781565b6111dc83838360405180602001604052806000815250612019565b505050565b60006111eb610e40565b821061122c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161122390615157565b60405180910390fd5b60088281548110611266577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b6112806123e4565b73ffffffffffffffffffffffffffffffffffffffff1661129e611a2e565b73ffffffffffffffffffffffffffffffffffffffff16146112f4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112eb90615097565b60405180910390fd5b818160129190611305929190613e8e565b505050565b7378df3ac8bb88ef068a5a0d709f53dedbd9d1964d81565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156113cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113c290614fb7565b60405180910390fd5b80915050919050565b600c60205280600052604060002060009150905080546113f3906154d5565b80601f016020809104026020016040519081016040528092919081815260200182805461141f906154d5565b801561146c5780601f106114415761010080835404028352916020019161146c565b820191906000526020600020905b81548152906001019060200180831161144f57829003601f168201915b505050505081565b60128054611481906154d5565b80601f01602080910402602001604051908101604052809291908181526020018280546114ad906154d5565b80156114fa5780601f106114cf576101008083540402835291602001916114fa565b820191906000526020600020905b8154815290600101906020018083116114dd57829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611573576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161156a90614f97565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6115c26123e4565b73ffffffffffffffffffffffffffffffffffffffff166115e0611a2e565b73ffffffffffffffffffffffffffffffffffffffff1614611636576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161162d90615097565b60405180910390fd5b6116406000612a03565b565b601160019054906101000a900460ff16611691576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161168890615177565b60405180910390fd5b600f5481600d546116a291906152f3565b111580156116bf5750612b6781600d546116bc91906152f3565b11155b6116fe576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116f590615197565b60405180910390fd5b60008111611741576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161173890615057565b60405180910390fd5b80600e5461174f919061537a565b341015611791576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161178890614dd7565b60405180910390fd5b61179b8484612ac9565b6117da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117d190614ed7565b60405180910390fd5b601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002060009054906101000a900460ff1615611878576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161186f906150f7565b60405180910390fd5b83611884338385612b28565b146118c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118bb906151d7565b60405180910390fd5b80601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461191391906152f3565b925050819055506001601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002060006101000a81548160ff0219169083151502179055506000600d54905081600d600082825461199c91906152f3565b925050819055506000600190505b828111611a135780826119bd91906152f3565b3373ffffffffffffffffffffffffffffffffffffffff167f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d412139688560405160405180910390a38080611a0b90615538565b9150506119aa565b505050505050565b601160019054906101000a900460ff1681565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060018054611a67906154d5565b80601f0160208091040260200160405190810160405280929190818152602001828054611a93906154d5565b8015611ae05780601f10611ab557610100808354040283529160200191611ae0565b820191906000526020600020905b815481529060010190602001808311611ac357829003601f168201915b5050505050905090565b600e5481565b601160009054906101000a900460ff16611b3f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b3690614fd7565b60405180910390fd5b600f5481600d54611b5091906152f3565b11158015611b6d5750612b6781600d54611b6a91906152f3565b11155b611bac576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ba390614ff7565b60405180910390fd5b6014811115611bf0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611be7906151b7565b60405180910390fd5b60008111611c33576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c2a90615057565b60405180910390fd5b80600e54611c41919061537a565b341015611c83576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c7a90614dd7565b60405180910390fd5b6000600d54905081600d6000828254611c9c91906152f3565b925050819055506000600190505b828111611d13578082611cbd91906152f3565b3373ffffffffffffffffffffffffffffffffffffffff167f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d412139688560405160405180910390a38080611d0b90615538565b915050611caa565b505050565b611d206123e4565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611d8e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d8590614eb7565b60405180910390fd5b8060056000611d9b6123e4565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611e486123e4565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611e8d9190614cca565b60405180910390a35050565b611ea16123e4565b73ffffffffffffffffffffffffffffffffffffffff16611ebf611a2e565b73ffffffffffffffffffffffffffffffffffffffff1614611f15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f0c90615097565b60405180910390fd5b81600e8190555080600f819055505050565b611f2f6123e4565b73ffffffffffffffffffffffffffffffffffffffff16611f4d611a2e565b73ffffffffffffffffffffffffffffffffffffffff1614611fa3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f9a90615097565b60405180910390fd5b81601160006101000a81548160ff02191690831515021790555080601160016101000a81548160ff0219169083151502179055507fbf9da71ae4dd6d5bff9bf1647885ce5de321e81c1018648a6f54e60b6b9761338282604051612008929190614ce5565b60405180910390a15050565b601481565b61202a6120246123e4565b836126c9565b612069576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161206090615137565b60405180910390fd5b61207584848484612b66565b50505050565b606061208682612378565b6120c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120bc90614f37565b60405180910390fd5b60126120d083612bc2565b6040516020016120e1929190614bdb565b6040516020818303038152906040529050919050565b601160009054906101000a900460ff1681565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6121a66123e4565b73ffffffffffffffffffffffffffffffffffffffff166121c4611a2e565b73ffffffffffffffffffffffffffffffffffffffff161461221a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161221190615097565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561228a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161228190614e57565b60405180910390fd5b61229381612a03565b50565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061236157507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612371575061237082612d6f565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661245f83611322565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006060600061253085858080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050506040518060400160405280600181526020017f3a000000000000000000000000000000000000000000000000000000000000008152506000612dd9565b90506000811215612576576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161256d90615117565b60405180910390fd5b60006125e2868660019060018661258d91906153d4565b9261259a939291906152c0565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050612f43565b90506000600383888890506125f791906153d4565b61260191906153d4565b90506000811415612629578160405180602001604052806000815250945094505050506126b3565b366000888860028761263b91906152f3565b9060018c8c905061264c91906153d4565b92612659939291906152c0565b9150915083828281818080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050905090509650965050505050505b9250929050565b6126c48383613000565b505050565b60006126d482612378565b612713576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161270a90614f57565b60405180910390fd5b600061271e83611322565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061278d57508373ffffffffffffffffffffffffffffffffffffffff1661277584610a9e565b73ffffffffffffffffffffffffffffffffffffffff16145b8061279e575061279d818561210a565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166127c782611322565b73ffffffffffffffffffffffffffffffffffffffff161461281d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612814906150b7565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561288d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161288490614e97565b60405180910390fd5b61289883838361301e565b6128a36000826123ec565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546128f391906153d4565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461294a91906152f3565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000612ade828461313290919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff167378df3ac8bb88ef068a5a0d709f53dedbd9d1964d73ffffffffffffffffffffffffffffffffffffffff1614905092915050565b6000612b5d848484604051602001612b4293929190614b9e565b60405160208183030381529060405280519060200120613159565b90509392505050565b612b718484846127a7565b612b7d84848484613189565b612bbc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bb390614e37565b60405180910390fd5b50505050565b60606000821415612c0a576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612d6a565b600082905060005b60008214612c3c578080612c2590615538565b915050600a82612c359190615349565b9150612c12565b60008167ffffffffffffffff811115612c7e577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612cb05781602001600182028036833780820191505090505b5090505b60008514612d6357600182612cc991906153d4565b9150600a85612cd891906155b9565b6030612ce491906152f3565b60f81b818381518110612d20577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612d5c9190615349565b9450612cb4565b8093505050505b919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6000808390506001815114612e17577f4e487b7100000000000000000000000000000000000000000000000000000000600052600160045260246000fd5b60008390505b8551811015612f165781600081518110612e60577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916868281518110612ec6577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161415612f03578092505050612f3c565b8080612f0e90615538565b915050612e1d565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9150505b9392505050565b6000806000905060005b8351811015612ff6576000848281518110612f91577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602001015160f81c60f81b60f81c60ff16905060308110158015612fb6575060398111155b15612fe257603081612fc891906153d4565b600a84612fd5919061537a565b612fdf91906152f3565b92505b508080612fee90615538565b915050612f4d565b5080915050919050565b61301a828260405180602001604052806000815250613320565b5050565b61302983838361337b565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561306c5761306781613380565b6130ab565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146130aa576130a983826133c9565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156130ee576130e981613536565b61312d565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161461312c5761312b8282613679565b5b5b505050565b600080600061314185856136f8565b9150915061314e8161377b565b819250505092915050565b60008160405160200161316c9190614bff565b604051602081830303815290604052805190602001209050919050565b60006131aa8473ffffffffffffffffffffffffffffffffffffffff16613acc565b15613313578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026131d36123e4565b8786866040518563ffffffff1660e01b81526004016131f59493929190614c40565b602060405180830381600087803b15801561320f57600080fd5b505af192505050801561324057506040513d601f19601f8201168201806040525081019061323d919061442d565b60015b6132c3573d8060008114613270576040519150601f19603f3d011682016040523d82523d6000602084013e613275565b606091505b506000815114156132bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132b290614e37565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613318565b600190505b949350505050565b61332a8383613adf565b6133376000848484613189565b613376576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161336d90614e37565b60405180910390fd5b505050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b600060016133d684611502565b6133e091906153d4565b90506000600760008481526020019081526020016000205490508181146134c5576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b6000600160088054905061354a91906153d4565b90506000600960008481526020019081526020016000205490506000600883815481106135a0577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154905080600883815481106135e8577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001819055508160096000838152602001908152602001600020819055506009600085815260200190815260200160002060009055600880548061365d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b600061368483611502565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b60008060418351141561373a5760008060006020860151925060408601519150606086015160001a905061372e87828585613cad565b94509450505050613774565b60408351141561376b576000806020850151915060408501519050613760868383613dba565b935093505050613774565b60006002915091505b9250929050565b600060048111156137b5577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b8160048111156137ee577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14156137f957613ac9565b60016004811115613833577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b81600481111561386c577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14156138ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016138a490614d97565b60405180910390fd5b600260048111156138e7577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115613920577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415613961576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161395890614df7565b60405180910390fd5b6003600481111561399b577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b8160048111156139d4577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415613a15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a0c90614f17565b60405180910390fd5b600480811115613a4e577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115613a87577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415613ac8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613abf90615017565b60405180910390fd5b5b50565b600080823b905060008111915050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613b4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b4690615037565b60405180910390fd5b613b5881612378565b15613b98576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b8f90614e77565b60405180910390fd5b613ba46000838361301e565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254613bf491906152f3565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c1115613ce8576000600391509150613db1565b601b8560ff1614158015613d005750601c8560ff1614155b15613d12576000600491509150613db1565b600060018787878760405160008152602001604052604051613d379493929190614d0e565b6020604051602081039080840390855afa158015613d59573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415613da857600060019250925050613db1565b80600092509250505b94509492505050565b6000806000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff85169150601b8560ff1c019050613dfa87828885613cad565b935093505050935093915050565b828054613e14906154d5565b90600052602060002090601f016020900481019282613e365760008555613e7d565b82601f10613e4f57805160ff1916838001178555613e7d565b82800160010185558215613e7d579182015b82811115613e7c578251825591602001919060010190613e61565b5b509050613e8a9190613f14565b5090565b828054613e9a906154d5565b90600052602060002090601f016020900481019282613ebc5760008555613f03565b82601f10613ed557803560ff1916838001178555613f03565b82800160010185558215613f03579182015b82811115613f02578235825591602001919060010190613ee7565b5b509050613f109190613f14565b5090565b5b80821115613f2d576000816000905550600101613f15565b5090565b6000613f44613f3f84615237565b615212565b905082815260208101848484011115613f5c57600080fd5b613f67848285615493565b509392505050565b600081359050613f7e81615ee8565b92915050565b60008083601f840112613f9657600080fd5b8235905067ffffffffffffffff811115613faf57600080fd5b602083019150836020820283011115613fc757600080fd5b9250929050565b600081359050613fdd81615eff565b92915050565b600081359050613ff281615f16565b92915050565b60008135905061400781615f2d565b92915050565b60008151905061401c81615f2d565b92915050565b60008083601f84011261403457600080fd5b8235905067ffffffffffffffff81111561404d57600080fd5b60208301915083600182028301111561406557600080fd5b9250929050565b600082601f83011261407d57600080fd5b813561408d848260208601613f31565b91505092915050565b60008083601f8401126140a857600080fd5b8235905067ffffffffffffffff8111156140c157600080fd5b6020830191508360018202830111156140d957600080fd5b9250929050565b6000813590506140ef81615f44565b92915050565b60006020828403121561410757600080fd5b600061411584828501613f6f565b91505092915050565b6000806040838503121561413157600080fd5b600061413f85828601613f6f565b925050602061415085828601613f6f565b9150509250929050565b60008060006060848603121561416f57600080fd5b600061417d86828701613f6f565b935050602061418e86828701613f6f565b925050604061419f868287016140e0565b9150509250925092565b600080600080608085870312156141bf57600080fd5b60006141cd87828801613f6f565b94505060206141de87828801613f6f565b93505060406141ef878288016140e0565b925050606085013567ffffffffffffffff81111561420c57600080fd5b6142188782880161406c565b91505092959194509250565b6000806040838503121561423757600080fd5b600061424585828601613f6f565b925050602061425685828601613fce565b9150509250929050565b6000806040838503121561427357600080fd5b600061428185828601613f6f565b9250506020614292858286016140e0565b9150509250929050565b600080600080606085870312156142b257600080fd5b60006142c087828801613f6f565b94505060206142d1878288016140e0565b935050604085013567ffffffffffffffff8111156142ee57600080fd5b6142fa87828801614022565b925092505092959194509250565b6000806020838503121561431b57600080fd5b600083013567ffffffffffffffff81111561433557600080fd5b61434185828601613f84565b92509250509250929050565b6000806040838503121561436057600080fd5b600061436e85828601613fce565b925050602061437f85828601613fce565b9150509250929050565b6000806000806080858703121561439f57600080fd5b60006143ad87828801613fe3565b945050602085013567ffffffffffffffff8111156143ca57600080fd5b6143d68782880161406c565b93505060406143e7878288016140e0565b92505060606143f8878288016140e0565b91505092959194509250565b60006020828403121561441657600080fd5b600061442484828501613ff8565b91505092915050565b60006020828403121561443f57600080fd5b600061444d8482850161400d565b91505092915050565b6000806020838503121561446957600080fd5b600083013567ffffffffffffffff81111561448357600080fd5b61448f85828601614096565b92509250509250929050565b6000602082840312156144ad57600080fd5b60006144bb848285016140e0565b91505092915050565b600080604083850312156144d757600080fd5b60006144e5858286016140e0565b92505060206144f6858286016140e0565b9150509250929050565b61450981615408565b82525050565b61452061451b82615408565b615581565b82525050565b61452f8161541a565b82525050565b61453e81615426565b82525050565b61455561455082615426565b615593565b82525050565b60006145668261527d565b6145708185615293565b93506145808185602086016154a2565b614589816156a6565b840191505092915050565b600061459f82615288565b6145a981856152a4565b93506145b98185602086016154a2565b6145c2816156a6565b840191505092915050565b60006145d882615288565b6145e281856152b5565b93506145f28185602086016154a2565b80840191505092915050565b6000815461460b816154d5565b61461581866152b5565b94506001821660008114614630576001811461464157614674565b60ff19831686528186019350614674565b61464a85615268565b60005b8381101561466c5781548189015260018201915060208101905061464d565b838801955050505b50505092915050565b600061468a6018836152a4565b9150614695826156c4565b602082019050919050565b60006146ad6022836152a4565b91506146b8826156ed565b604082019050919050565b60006146d06010836152a4565b91506146db8261573c565b602082019050919050565b60006146f3601f836152a4565b91506146fe82615765565b602082019050919050565b6000614716601c836152b5565b91506147218261578e565b601c82019050919050565b6000614739602b836152a4565b9150614744826157b7565b604082019050919050565b600061475c6032836152a4565b915061476782615806565b604082019050919050565b600061477f6026836152a4565b915061478a82615855565b604082019050919050565b60006147a2601c836152a4565b91506147ad826158a4565b602082019050919050565b60006147c56024836152a4565b91506147d0826158cd565b604082019050919050565b60006147e86019836152a4565b91506147f38261591c565b602082019050919050565b600061480b600e836152a4565b915061481682615945565b602082019050919050565b600061482e601a836152a4565b91506148398261596e565b602082019050919050565b60006148516022836152a4565b915061485c82615997565b604082019050919050565b60006148746014836152a4565b915061487f826159e6565b602082019050919050565b6000614897602c836152a4565b91506148a282615a0f565b604082019050919050565b60006148ba6038836152a4565b91506148c582615a5e565b604082019050919050565b60006148dd602a836152a4565b91506148e882615aad565b604082019050919050565b60006149006029836152a4565b915061490b82615afc565b604082019050919050565b6000614923600b836152a4565b915061492e82615b4b565b602082019050919050565b60006149466012836152a4565b915061495182615b74565b602082019050919050565b60006149696022836152a4565b915061497482615b9d565b604082019050919050565b600061498c6020836152a4565b915061499782615bec565b602082019050919050565b60006149af6010836152a4565b91506149ba82615c15565b602082019050919050565b60006149d2602c836152a4565b91506149dd82615c3e565b604082019050919050565b60006149f56020836152a4565b9150614a0082615c8d565b602082019050919050565b6000614a186029836152a4565b9150614a2382615cb6565b604082019050919050565b6000614a3b6021836152a4565b9150614a4682615d05565b604082019050919050565b6000614a5e6009836152a4565b9150614a6982615d54565b602082019050919050565b6000614a816014836152a4565b9150614a8c82615d7d565b602082019050919050565b6000614aa46031836152a4565b9150614aaf82615da6565b604082019050919050565b6000614ac7602c836152a4565b9150614ad282615df5565b604082019050919050565b6000614aea600e836152a4565b9150614af582615e44565b602082019050919050565b6000614b0d6016836152a4565b9150614b1882615e6d565b602082019050919050565b6000614b306019836152a4565b9150614b3b82615e96565b602082019050919050565b6000614b536009836152a4565b9150614b5e82615ebf565b602082019050919050565b614b728161547c565b82525050565b614b89614b848261547c565b6155af565b82525050565b614b9881615486565b82525050565b6000614baa828661450f565b601482019150614bba8285614b78565b602082019150614bca8284614b78565b602082019150819050949350505050565b6000614be782856145fe565b9150614bf382846145cd565b91508190509392505050565b6000614c0a82614709565b9150614c168284614544565b60208201915081905092915050565b6000602082019050614c3a6000830184614500565b92915050565b6000608082019050614c556000830187614500565b614c626020830186614500565b614c6f6040830185614b69565b8181036060830152614c81818461455b565b905095945050505050565b6000606082019050614ca16000830186614500565b614cae6020830185614b69565b8181036040830152614cc0818461455b565b9050949350505050565b6000602082019050614cdf6000830184614526565b92915050565b6000604082019050614cfa6000830185614526565b614d076020830184614526565b9392505050565b6000608082019050614d236000830187614535565b614d306020830186614b8f565b614d3d6040830185614535565b614d4a6060830184614535565b95945050505050565b60006020820190508181036000830152614d6d818461455b565b905092915050565b60006020820190508181036000830152614d8f8184614594565b905092915050565b60006020820190508181036000830152614db08161467d565b9050919050565b60006020820190508181036000830152614dd0816146a0565b9050919050565b60006020820190508181036000830152614df0816146c3565b9050919050565b60006020820190508181036000830152614e10816146e6565b9050919050565b60006020820190508181036000830152614e308161472c565b9050919050565b60006020820190508181036000830152614e508161474f565b9050919050565b60006020820190508181036000830152614e7081614772565b9050919050565b60006020820190508181036000830152614e9081614795565b9050919050565b60006020820190508181036000830152614eb0816147b8565b9050919050565b60006020820190508181036000830152614ed0816147db565b9050919050565b60006020820190508181036000830152614ef0816147fe565b9050919050565b60006020820190508181036000830152614f1081614821565b9050919050565b60006020820190508181036000830152614f3081614844565b9050919050565b60006020820190508181036000830152614f5081614867565b9050919050565b60006020820190508181036000830152614f708161488a565b9050919050565b60006020820190508181036000830152614f90816148ad565b9050919050565b60006020820190508181036000830152614fb0816148d0565b9050919050565b60006020820190508181036000830152614fd0816148f3565b9050919050565b60006020820190508181036000830152614ff081614916565b9050919050565b6000602082019050818103600083015261501081614939565b9050919050565b600060208201905081810360008301526150308161495c565b9050919050565b600060208201905081810360008301526150508161497f565b9050919050565b60006020820190508181036000830152615070816149a2565b9050919050565b60006020820190508181036000830152615090816149c5565b9050919050565b600060208201905081810360008301526150b0816149e8565b9050919050565b600060208201905081810360008301526150d081614a0b565b9050919050565b600060208201905081810360008301526150f081614a2e565b9050919050565b6000602082019050818103600083015261511081614a51565b9050919050565b6000602082019050818103600083015261513081614a74565b9050919050565b6000602082019050818103600083015261515081614a97565b9050919050565b6000602082019050818103600083015261517081614aba565b9050919050565b6000602082019050818103600083015261519081614add565b9050919050565b600060208201905081810360008301526151b081614b00565b9050919050565b600060208201905081810360008301526151d081614b23565b9050919050565b600060208201905081810360008301526151f081614b46565b9050919050565b600060208201905061520c6000830184614b69565b92915050565b600061521c61522d565b90506152288282615507565b919050565b6000604051905090565b600067ffffffffffffffff82111561525257615251615677565b5b61525b826156a6565b9050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600080858511156152d057600080fd5b838611156152dd57600080fd5b6001850283019150848603905094509492505050565b60006152fe8261547c565b91506153098361547c565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561533e5761533d6155ea565b5b828201905092915050565b60006153548261547c565b915061535f8361547c565b92508261536f5761536e615619565b5b828204905092915050565b60006153858261547c565b91506153908361547c565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156153c9576153c86155ea565b5b828202905092915050565b60006153df8261547c565b91506153ea8361547c565b9250828210156153fd576153fc6155ea565b5b828203905092915050565b60006154138261545c565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b838110156154c05780820151818401526020810190506154a5565b838111156154cf576000848401525b50505050565b600060028204905060018216806154ed57607f821691505b6020821081141561550157615500615648565b5b50919050565b615510826156a6565b810181811067ffffffffffffffff8211171561552f5761552e615677565b5b80604052505050565b60006155438261547c565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415615576576155756155ea565b5b600182019050919050565b600061558c8261559d565b9050919050565b6000819050919050565b60006155a8826156b7565b9050919050565b6000819050919050565b60006155c48261547c565b91506155cf8361547c565b9250826155df576155de615619565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b7f46756e6374696f6e2063616e206f6e6c792062652063616c6c6564206279204960008201527f4d58000000000000000000000000000000000000000000000000000000000000602082015250565b7f496e73756666696369656e742045544800000000000000000000000000000000600082015250565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4e6f20646972656374206d696e74000000000000000000000000000000000000600082015250565b7f4d696e7461626c653a20696e76616c6964207175616e74697479000000000000600082015250565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f546f6b656e20646f6573206e6f74206578697374000000000000000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f53616c6520636c6f736564000000000000000000000000000000000000000000600082015250565b7f45786365656473206d617820737570706c790000000000000000000000000000600082015250565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4e6f20746f6b656e732069737375656400000000000000000000000000000000600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f4861736820757365640000000000000000000000000000000000000000000000600082015250565b7f536570617261746f72206d757374206578697374000000000000000000000000600082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f50726573616c6520636c6f736564000000000000000000000000000000000000600082015250565b7f457863656564732070726573616c6520737570706c7900000000000000000000600082015250565b7f45786365656473207472616e73616374696f6e206c696d697400000000000000600082015250565b7f48617368206661696c0000000000000000000000000000000000000000000000600082015250565b615ef181615408565b8114615efc57600080fd5b50565b615f088161541a565b8114615f1357600080fd5b50565b615f1f81615426565b8114615f2a57600080fd5b50565b615f3681615430565b8114615f4157600080fd5b50565b615f4d8161547c565b8114615f5857600080fd5b5056fea2646970667358221220e41dd6ebc7b125539c05c5dfb2c3a0e42c691fbfaa8ef7b8c3a40be46532080164736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000646c9c404d2d575805ff4b8302a158bad86764120000000000000000000000005fdcca53617f4d2b9134b29090c87d01058e27e9
-----Decoded View---------------
Arg [0] : _owner (address): 0x646C9C404d2d575805FF4b8302A158BAd8676412
Arg [1] : _imx (address): 0x5FDCCA53617f4d2b9134B29090C87D01058e27e9
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000646c9c404d2d575805ff4b8302a158bad8676412
Arg [1] : 0000000000000000000000005fdcca53617f4d2b9134b29090c87d01058e27e9
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $3,465.92 | 1.65 | $5,718.76 |
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.