Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 164 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Approval For... | 17308525 | 559 days ago | IN | 0 ETH | 0.00170754 | ||||
Set Approval For... | 15605360 | 798 days ago | IN | 0 ETH | 0.0018674 | ||||
Set Approval For... | 15164447 | 866 days ago | IN | 0 ETH | 0.00027514 | ||||
Set Approval For... | 15026955 | 888 days ago | IN | 0 ETH | 0.00166836 | ||||
Transfer From | 15025741 | 889 days ago | IN | 0 ETH | 0.00233625 | ||||
Safe Transfer Fr... | 15024458 | 889 days ago | IN | 0 ETH | 0.00483216 | ||||
Set Approval For... | 14998987 | 894 days ago | IN | 0 ETH | 0.0007955 | ||||
Set Approval For... | 14905925 | 909 days ago | IN | 0 ETH | 0.00276597 | ||||
Set Approval For... | 14568008 | 963 days ago | IN | 0 ETH | 0.00169146 | ||||
Transfer From | 14472112 | 978 days ago | IN | 0 ETH | 0.00241037 | ||||
Transfer From | 14469582 | 979 days ago | IN | 0 ETH | 0.00479785 | ||||
Set Approval For... | 14381455 | 992 days ago | IN | 0 ETH | 0.0014544 | ||||
Set Approval For... | 14272556 | 1009 days ago | IN | 0 ETH | 0.00220266 | ||||
Set Approval For... | 14238686 | 1015 days ago | IN | 0 ETH | 0.00285345 | ||||
Set Approval For... | 14232729 | 1016 days ago | IN | 0 ETH | 0.00320951 | ||||
Set Approval For... | 14219168 | 1018 days ago | IN | 0 ETH | 0.00356042 | ||||
Set Approval For... | 14218664 | 1018 days ago | IN | 0 ETH | 0.00340713 | ||||
Set Approval For... | 14214269 | 1018 days ago | IN | 0 ETH | 0.0049881 | ||||
Set Approval For... | 14190768 | 1022 days ago | IN | 0 ETH | 0.00213483 | ||||
Set Approval For... | 14078996 | 1039 days ago | IN | 0 ETH | 0.00570502 | ||||
Set Approval For... | 13981387 | 1054 days ago | IN | 0 ETH | 0.00692936 | ||||
Set Approval For... | 13980269 | 1055 days ago | IN | 0 ETH | 0.0101397 | ||||
Set Approval For... | 13979068 | 1055 days ago | IN | 0 ETH | 0.01623729 | ||||
Set Approval For... | 13969027 | 1056 days ago | IN | 0 ETH | 0.0041654 | ||||
Set Approval For... | 13831671 | 1078 days ago | IN | 0 ETH | 0.00242575 |
Latest 10 internal transactions
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
13794417 | 1083 days ago | 0.33198 ETH | ||||
13794417 | 1083 days ago | 0.32192 ETH | ||||
13794417 | 1083 days ago | 0.1006 ETH | ||||
13794417 | 1083 days ago | 0.12072 ETH | ||||
13794417 | 1083 days ago | 0.13078 ETH | ||||
13660673 | 1105 days ago | 3.21057 ETH | ||||
13660673 | 1105 days ago | 3.11328 ETH | ||||
13660673 | 1105 days ago | 0.9729 ETH | ||||
13660673 | 1105 days ago | 1.16748 ETH | ||||
13660673 | 1105 days ago | 1.26477 ETH |
Loading...
Loading
Contract Name:
LegionsOfLoud
Compiler Version
v0.8.8+commit.dddeac2f
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//Contract based on https://docs.openzeppelin.com/contracts/4.x/erc721 // SPDX-License-Identifier: MIT pragma solidity ^0.8.8 < 0.9.0; //OpenZeppelin contract/token imports import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; //Contract instantiation contract LegionsOfLoud is ERC721Enumerable, Ownable, ReentrancyGuard { using ECDSA for bytes32; mapping(string => bool) private _usedNonces; address private _signerAddress = 0xF5FF2CC2Ee8b4eA2C03F0cf0c93fd3a867Da9E8A; // Contract wallet uint public constant lolBadges = 7200; // Total number of token ID's uint256 private _priceOfToken = 69000000000000000; // Total cost per token minted is 0.069 ETH string private _tokenURIBaseURL = "https://api.legionsofloud.com/meta/"; //Base URL of token metadata bool public tokenSale = true; // True means sale is active, false means sale is not active. constructor() ERC721("Legions of Loud", "LOL") {} function hashTransaction(address sender, uint256 qty, string memory nonce) private pure returns(bytes32) { bytes32 hash = keccak256(abi.encodePacked( "\x19Ethereum Signed Message:\n32", keccak256(abi.encodePacked(sender, qty, nonce))) ); return hash; } function matchAddresSigner(bytes32 hash, bytes memory signature) private view returns(bool) { return _signerAddress == hash.recover(signature); } function setSignerAddress(address addr) external onlyOwner { _signerAddress = addr; } function reUp(bytes memory signature, string memory nonce, uint256 token_quantity) external payable nonReentrant { require(matchAddresSigner(hashTransaction(msg.sender, token_quantity, nonce), signature), "DIRECT MINT IS NOT ALLOWED please visit www.legionsofloud.com"); require(!_usedNonces[nonce], "HASH USED"); _usedNonces[nonce] = true; require(token_quantity + totalSupply() <= lolBadges, "The max amount of tokens has been reached, per contract."); require(tokenSale, "Tokens are not for sale."); require(token_quantity <= 20, "The token amount entered is above the allowable limit of 20 per transaction. Please enter a lesser amount."); require(msg.value >= tokenPrice(token_quantity), "You have insufficient funds."); for (uint i = 0; i < token_quantity; i++) { _safeMint(msg.sender, totalSupply() + 1); } } function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal override { super._beforeTokenTransfer(from, to, tokenId); } function walletOfOwner(address _owner) external view returns(uint256[] memory) { uint tokenCount = balanceOf(_owner); uint256[] memory tokensId = new uint256[](tokenCount); for(uint i = 0; i < tokenCount; i++){ tokensId[i] = tokenOfOwnerByIndex(_owner, i); } return tokensId; } function tokenOnSale(bool _isTokenSale) public onlyOwner { tokenSale = _isTokenSale; } function _baseURI() internal view virtual override returns (string memory) { return _tokenURIBaseURL; } function setBaseURI(string memory baseURI) public onlyOwner { _tokenURIBaseURL = baseURI; } function tokenPrice(uint token_quantity) public view returns (uint256) { return _priceOfToken * token_quantity; } // Just in case ETH does some crazy stuff function setPrice(uint256 _newPrice) public onlyOwner() { _priceOfToken = _newPrice; } function getPrice() public view returns (uint256){ return _priceOfToken; } // Contract Payout Structure address constant dev1Address = 0x9F90601582eD28922a81156a60aad0cf0fd69203; // Dev 1 address address constant dev2Address = 0xC7067F6Ed87F0fd8D5Cc47AD0F0C0b512a3CC275; // Dev 2 address address constant owner2Address = 0x70716Bd3E3E46e93E220E92045af42F2907Bbb9B; // Owner 2 address address constant artAddress = 0x80528F38843d19eCf558df2655354c99F05731a3; // Artist address uint constant dev1Fee = 13; uint constant dev2Fee = 12; uint constant artFee = 10; uint constant owner2Fee = 32; uint private constant sumShare = 100; function withdraw() public payable onlyOwner { uint256 balance = address(this).balance; uint dev1Transfer = (balance * dev1Fee)/sumShare; uint dev2Transfer = (balance * dev2Fee)/sumShare; uint artTransfer = (balance * artFee)/sumShare; uint owner2Transfer = (balance * owner2Fee)/sumShare; uint partnerTransfer = balance - (dev1Transfer + dev2Transfer + artTransfer + owner2Transfer); payable(dev1Address).transfer(dev1Transfer); payable(dev2Address).transfer(dev2Transfer); payable(artAddress).transfer(artTransfer); payable(owner2Address).transfer(owner2Transfer); payable(msg.sender).transfer(partnerTransfer); require(address(this).balance == 0); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional 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 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.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; 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; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lolBadges","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"string","name":"nonce","type":"string"},{"internalType":"uint256","name":"token_quantity","type":"uint256"}],"name":"reUp","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPrice","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"setSignerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_isTokenSale","type":"bool"}],"name":"tokenOnSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"token_quantity","type":"uint256"}],"name":"tokenPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenSale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[{"internalType":"address","name":"_owner","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"}]
Contract Creation Code
608060405273f5ff2cc2ee8b4ea2c03f0cf0c93fd3a867da9e8a600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555066f5232269808000600e55604051806060016040528060238152602001620052c160239139600f9080519060200190620000959291906200025b565b506001601060006101000a81548160ff021916908315150217905550348015620000be57600080fd5b506040518060400160405280600f81526020017f4c6567696f6e73206f66204c6f756400000000000000000000000000000000008152506040518060400160405280600381526020017f4c4f4c00000000000000000000000000000000000000000000000000000000008152508160009080519060200190620001439291906200025b565b5080600190805190602001906200015c9291906200025b565b5050506200017f620001736200018d60201b60201c565b6200019560201b60201c565b6001600b8190555062000370565b600033905090565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b82805462000269906200033a565b90600052602060002090601f0160209004810192826200028d5760008555620002d9565b82601f10620002a857805160ff1916838001178555620002d9565b82800160010185558215620002d9579182015b82811115620002d8578251825591602001919060010190620002bb565b5b509050620002e89190620002ec565b5090565b5b8082111562000307576000816000905550600101620002ed565b5090565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200035357607f821691505b602082108114156200036a57620003696200030b565b5b50919050565b614f4180620003806000396000f3fe6080604052600436106101cd5760003560e01c806370a08231116100f7578063b88d4fde11610095578063e275aaa011610064578063e275aaa01461068d578063e4907a20146106a9578063e985e9c5146106d2578063f2fde38b1461070f576101cd565b8063b88d4fde146105bf578063b9420310146105e8578063c87b56dd14610613578063d4ddce8a14610650576101cd565b806391b7f5ed116100d157806391b7f5ed1461051757806395d89b411461054057806398d5fdca1461056b578063a22cb46514610596576101cd565b806370a0823114610498578063715018a6146104d55780638da5cb5b146104ec576101cd565b80632450bfa71161016f578063438b63001161013e578063438b6300146103b85780634f6ccce7146103f557806355f804b3146104325780636352211e1461045b576101cd565b80632450bfa71461031d5780632f745c59146103485780633ccfd60b1461038557806342842e0e1461038f576101cd565b8063081812fc116101ab578063081812fc14610263578063095ea7b3146102a057806318160ddd146102c957806323b872dd146102f4576101cd565b806301ffc9a7146101d2578063046dc1661461020f57806306fdde0314610238575b600080fd5b3480156101de57600080fd5b506101f960048036038101906101f491906131f4565b610738565b604051610206919061323c565b60405180910390f35b34801561021b57600080fd5b50610236600480360381019061023191906132b5565b6107b2565b005b34801561024457600080fd5b5061024d610872565b60405161025a919061337b565b60405180910390f35b34801561026f57600080fd5b5061028a600480360381019061028591906133d3565b610904565b604051610297919061340f565b60405180910390f35b3480156102ac57600080fd5b506102c760048036038101906102c2919061342a565b610989565b005b3480156102d557600080fd5b506102de610aa1565b6040516102eb9190613479565b60405180910390f35b34801561030057600080fd5b5061031b60048036038101906103169190613494565b610aae565b005b34801561032957600080fd5b50610332610b0e565b60405161033f9190613479565b60405180910390f35b34801561035457600080fd5b5061036f600480360381019061036a919061342a565b610b14565b60405161037c9190613479565b60405180910390f35b61038d610bb9565b005b34801561039b57600080fd5b506103b660048036038101906103b19190613494565b610ea7565b005b3480156103c457600080fd5b506103df60048036038101906103da91906132b5565b610ec7565b6040516103ec91906135a5565b60405180910390f35b34801561040157600080fd5b5061041c600480360381019061041791906133d3565b610f75565b6040516104299190613479565b60405180910390f35b34801561043e57600080fd5b50610459600480360381019061045491906136fc565b610fe6565b005b34801561046757600080fd5b50610482600480360381019061047d91906133d3565b61107c565b60405161048f919061340f565b60405180910390f35b3480156104a457600080fd5b506104bf60048036038101906104ba91906132b5565b61112e565b6040516104cc9190613479565b60405180910390f35b3480156104e157600080fd5b506104ea6111e6565b005b3480156104f857600080fd5b5061050161126e565b60405161050e919061340f565b60405180910390f35b34801561052357600080fd5b5061053e600480360381019061053991906133d3565b611298565b005b34801561054c57600080fd5b5061055561131e565b604051610562919061337b565b60405180910390f35b34801561057757600080fd5b506105806113b0565b60405161058d9190613479565b60405180910390f35b3480156105a257600080fd5b506105bd60048036038101906105b89190613771565b6113ba565b005b3480156105cb57600080fd5b506105e660048036038101906105e19190613852565b61153b565b005b3480156105f457600080fd5b506105fd61159d565b60405161060a919061323c565b60405180910390f35b34801561061f57600080fd5b5061063a600480360381019061063591906133d3565b6115b0565b604051610647919061337b565b60405180910390f35b34801561065c57600080fd5b50610677600480360381019061067291906133d3565b611657565b6040516106849190613479565b60405180910390f35b6106a760048036038101906106a291906138d5565b61166e565b005b3480156106b557600080fd5b506106d060048036038101906106cb9190613960565b611930565b005b3480156106de57600080fd5b506106f960048036038101906106f4919061398d565b6119c9565b604051610706919061323c565b60405180910390f35b34801561071b57600080fd5b50610736600480360381019061073191906132b5565b611a5d565b005b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806107ab57506107aa82611b55565b5b9050919050565b6107ba611c37565b73ffffffffffffffffffffffffffffffffffffffff166107d861126e565b73ffffffffffffffffffffffffffffffffffffffff161461082e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161082590613a19565b60405180910390fd5b80600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60606000805461088190613a68565b80601f01602080910402602001604051908101604052809291908181526020018280546108ad90613a68565b80156108fa5780601f106108cf576101008083540402835291602001916108fa565b820191906000526020600020905b8154815290600101906020018083116108dd57829003601f168201915b5050505050905090565b600061090f82611c3f565b61094e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161094590613b0c565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006109948261107c565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610a05576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109fc90613b9e565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610a24611c37565b73ffffffffffffffffffffffffffffffffffffffff161480610a535750610a5281610a4d611c37565b6119c9565b5b610a92576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a8990613c30565b60405180910390fd5b610a9c8383611cab565b505050565b6000600880549050905090565b610abf610ab9611c37565b82611d64565b610afe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610af590613cc2565b60405180910390fd5b610b09838383611e42565b505050565b611c2081565b6000610b1f8361112e565b8210610b60576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b5790613d54565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610bc1611c37565b73ffffffffffffffffffffffffffffffffffffffff16610bdf61126e565b73ffffffffffffffffffffffffffffffffffffffff1614610c35576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c2c90613a19565b60405180910390fd5b600047905060006064600d83610c4b9190613da3565b610c559190613e2c565b905060006064600c84610c689190613da3565b610c729190613e2c565b905060006064600a85610c859190613da3565b610c8f9190613e2c565b905060006064602086610ca29190613da3565b610cac9190613e2c565b9050600081838587610cbe9190613e5d565b610cc89190613e5d565b610cd29190613e5d565b86610cdd9190613eb3565b9050739f90601582ed28922a81156a60aad0cf0fd6920373ffffffffffffffffffffffffffffffffffffffff166108fc869081150290604051600060405180830381858888f19350505050158015610d39573d6000803e3d6000fd5b5073c7067f6ed87f0fd8d5cc47ad0f0c0b512a3cc27573ffffffffffffffffffffffffffffffffffffffff166108fc859081150290604051600060405180830381858888f19350505050158015610d94573d6000803e3d6000fd5b507380528f38843d19ecf558df2655354c99f05731a373ffffffffffffffffffffffffffffffffffffffff166108fc849081150290604051600060405180830381858888f19350505050158015610def573d6000803e3d6000fd5b507370716bd3e3e46e93e220e92045af42f2907bbb9b73ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f19350505050158015610e4a573d6000803e3d6000fd5b503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610e91573d6000803e3d6000fd5b5060004714610e9f57600080fd5b505050505050565b610ec28383836040518060200160405280600081525061153b565b505050565b60606000610ed48361112e565b905060008167ffffffffffffffff811115610ef257610ef16135d1565b5b604051908082528060200260200182016040528015610f205781602001602082028036833780820191505090505b50905060005b82811015610f6a57610f388582610b14565b828281518110610f4b57610f4a613ee7565b5b6020026020010181815250508080610f6290613f16565b915050610f26565b508092505050919050565b6000610f7f610aa1565b8210610fc0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fb790613fd1565b60405180910390fd5b60088281548110610fd457610fd3613ee7565b5b90600052602060002001549050919050565b610fee611c37565b73ffffffffffffffffffffffffffffffffffffffff1661100c61126e565b73ffffffffffffffffffffffffffffffffffffffff1614611062576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161105990613a19565b60405180910390fd5b80600f90805190602001906110789291906130e5565b5050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611125576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161111c90614063565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561119f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611196906140f5565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6111ee611c37565b73ffffffffffffffffffffffffffffffffffffffff1661120c61126e565b73ffffffffffffffffffffffffffffffffffffffff1614611262576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161125990613a19565b60405180910390fd5b61126c600061209e565b565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6112a0611c37565b73ffffffffffffffffffffffffffffffffffffffff166112be61126e565b73ffffffffffffffffffffffffffffffffffffffff1614611314576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161130b90613a19565b60405180910390fd5b80600e8190555050565b60606001805461132d90613a68565b80601f016020809104026020016040519081016040528092919081815260200182805461135990613a68565b80156113a65780601f1061137b576101008083540402835291602001916113a6565b820191906000526020600020905b81548152906001019060200180831161138957829003601f168201915b5050505050905090565b6000600e54905090565b6113c2611c37565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611430576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161142790614161565b60405180910390fd5b806005600061143d611c37565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166114ea611c37565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161152f919061323c565b60405180910390a35050565b61154c611546611c37565b83611d64565b61158b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161158290613cc2565b60405180910390fd5b61159784848484612164565b50505050565b601060009054906101000a900460ff1681565b60606115bb82611c3f565b6115fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115f1906141f3565b60405180910390fd5b60006116046121c0565b90506000815111611624576040518060200160405280600081525061164f565b8061162e84612252565b60405160200161163f92919061424f565b6040516020818303038152906040525b915050919050565b600081600e546116679190613da3565b9050919050565b6002600b5414156116b4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116ab906142bf565b60405180910390fd5b6002600b819055506116d06116ca3383856123b3565b84612414565b61170f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161170690614351565b60405180910390fd5b600c8260405161171f9190614371565b908152602001604051809103902060009054906101000a900460ff161561177b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611772906143d4565b60405180910390fd5b6001600c8360405161178d9190614371565b908152602001604051809103902060006101000a81548160ff021916908315150217905550611c206117bd610aa1565b826117c89190613e5d565b1115611809576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161180090614466565b60405180910390fd5b601060009054906101000a900460ff16611858576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161184f906144d2565b60405180910390fd5b601481111561189c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611893906145b0565b60405180910390fd5b6118a581611657565b3410156118e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118de9061461c565b60405180910390fd5b60005b818110156119225761190f336001611900610aa1565b61190a9190613e5d565b612481565b808061191a90613f16565b9150506118ea565b506001600b81905550505050565b611938611c37565b73ffffffffffffffffffffffffffffffffffffffff1661195661126e565b73ffffffffffffffffffffffffffffffffffffffff16146119ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119a390613a19565b60405180910390fd5b80601060006101000a81548160ff02191690831515021790555050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611a65611c37565b73ffffffffffffffffffffffffffffffffffffffff16611a8361126e565b73ffffffffffffffffffffffffffffffffffffffff1614611ad9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ad090613a19565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611b49576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b40906146ae565b60405180910390fd5b611b528161209e565b50565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611c2057507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611c305750611c2f8261249f565b5b9050919050565b600033905090565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611d1e8361107c565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611d6f82611c3f565b611dae576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611da590614740565b60405180910390fd5b6000611db98361107c565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611e2857508373ffffffffffffffffffffffffffffffffffffffff16611e1084610904565b73ffffffffffffffffffffffffffffffffffffffff16145b80611e395750611e3881856119c9565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611e628261107c565b73ffffffffffffffffffffffffffffffffffffffff1614611eb8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611eaf906147d2565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611f28576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f1f90614864565b60405180910390fd5b611f33838383612509565b611f3e600082611cab565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611f8e9190613eb3565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611fe59190613e5d565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61216f848484611e42565b61217b84848484612519565b6121ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121b1906148f6565b60405180910390fd5b50505050565b6060600f80546121cf90613a68565b80601f01602080910402602001604051908101604052809291908181526020018280546121fb90613a68565b80156122485780601f1061221d57610100808354040283529160200191612248565b820191906000526020600020905b81548152906001019060200180831161222b57829003601f168201915b5050505050905090565b6060600082141561229a576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506123ae565b600082905060005b600082146122cc5780806122b590613f16565b915050600a826122c59190613e2c565b91506122a2565b60008167ffffffffffffffff8111156122e8576122e76135d1565b5b6040519080825280601f01601f19166020018201604052801561231a5781602001600182028036833780820191505090505b5090505b600085146123a7576001826123339190613eb3565b9150600a856123429190614916565b603061234e9190613e5d565b60f81b81838151811061236457612363613ee7565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856123a09190613e2c565b945061231e565b8093505050505b919050565b6000808484846040516020016123cb939291906149b0565b604051602081830303815290604052805190602001206040516020016123f19190614a60565b604051602081830303815290604052805190602001209050809150509392505050565b600061242982846126b090919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff16600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614905092915050565b61249b8282604051806020016040528060008152506126d7565b5050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b612514838383612732565b505050565b600061253a8473ffffffffffffffffffffffffffffffffffffffff16612846565b156126a3578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612563611c37565b8786866040518563ffffffff1660e01b81526004016125859493929190614adb565b602060405180830381600087803b15801561259f57600080fd5b505af19250505080156125d057506040513d601f19601f820116820180604052508101906125cd9190614b3c565b60015b612653573d8060008114612600576040519150601f19603f3d011682016040523d82523d6000602084013e612605565b606091505b5060008151141561264b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612642906148f6565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506126a8565b600190505b949350505050565b60008060006126bf8585612859565b915091506126cc816128dc565b819250505092915050565b6126e18383612ab1565b6126ee6000848484612519565b61272d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612724906148f6565b60405180910390fd5b505050565b61273d838383612c7f565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156127805761277b81612c84565b6127bf565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146127be576127bd8382612ccd565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612802576127fd81612e3a565b612841565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146128405761283f8282612f0b565b5b5b505050565b600080823b905060008111915050919050565b60008060418351141561289b5760008060006020860151925060408601519150606086015160001a905061288f87828585612f8a565b945094505050506128d5565b6040835114156128cc5760008060208501519150604085015190506128c1868383613097565b9350935050506128d5565b60006002915091505b9250929050565b600060048111156128f0576128ef614b69565b5b81600481111561290357612902614b69565b5b141561290e57612aae565b6001600481111561292257612921614b69565b5b81600481111561293557612934614b69565b5b1415612976576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161296d90614be4565b60405180910390fd5b6002600481111561298a57612989614b69565b5b81600481111561299d5761299c614b69565b5b14156129de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129d590614c50565b60405180910390fd5b600360048111156129f2576129f1614b69565b5b816004811115612a0557612a04614b69565b5b1415612a46576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a3d90614ce2565b60405180910390fd5b600480811115612a5957612a58614b69565b5b816004811115612a6c57612a6b614b69565b5b1415612aad576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612aa490614d74565b60405180910390fd5b5b50565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612b21576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b1890614de0565b60405180910390fd5b612b2a81611c3f565b15612b6a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b6190614e4c565b60405180910390fd5b612b7660008383612509565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612bc69190613e5d565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b60006001612cda8461112e565b612ce49190613eb3565b9050600060076000848152602001908152602001600020549050818114612dc9576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600880549050612e4e9190613eb3565b9050600060096000848152602001908152602001600020549050600060088381548110612e7e57612e7d613ee7565b5b906000526020600020015490508060088381548110612ea057612e9f613ee7565b5b906000526020600020018190555081600960008381526020019081526020016000208190555060096000858152602001908152602001600020600090556008805480612eef57612eee614e6c565b5b6001900381819060005260206000200160009055905550505050565b6000612f168361112e565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c1115612fc557600060039150915061308e565b601b8560ff1614158015612fdd5750601c8560ff1614155b15612fef57600060049150915061308e565b6000600187878787604051600081526020016040526040516130149493929190614ec6565b6020604051602081039080840390855afa158015613036573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156130855760006001925092505061308e565b80600092509250505b94509492505050565b6000806000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff85169150601b8560ff1c0190506130d787828885612f8a565b935093505050935093915050565b8280546130f190613a68565b90600052602060002090601f016020900481019282613113576000855561315a565b82601f1061312c57805160ff191683800117855561315a565b8280016001018555821561315a579182015b8281111561315957825182559160200191906001019061313e565b5b509050613167919061316b565b5090565b5b8082111561318457600081600090555060010161316c565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6131d18161319c565b81146131dc57600080fd5b50565b6000813590506131ee816131c8565b92915050565b60006020828403121561320a57613209613192565b5b6000613218848285016131df565b91505092915050565b60008115159050919050565b61323681613221565b82525050565b6000602082019050613251600083018461322d565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061328282613257565b9050919050565b61329281613277565b811461329d57600080fd5b50565b6000813590506132af81613289565b92915050565b6000602082840312156132cb576132ca613192565b5b60006132d9848285016132a0565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561331c578082015181840152602081019050613301565b8381111561332b576000848401525b50505050565b6000601f19601f8301169050919050565b600061334d826132e2565b61335781856132ed565b93506133678185602086016132fe565b61337081613331565b840191505092915050565b600060208201905081810360008301526133958184613342565b905092915050565b6000819050919050565b6133b08161339d565b81146133bb57600080fd5b50565b6000813590506133cd816133a7565b92915050565b6000602082840312156133e9576133e8613192565b5b60006133f7848285016133be565b91505092915050565b61340981613277565b82525050565b60006020820190506134246000830184613400565b92915050565b6000806040838503121561344157613440613192565b5b600061344f858286016132a0565b9250506020613460858286016133be565b9150509250929050565b6134738161339d565b82525050565b600060208201905061348e600083018461346a565b92915050565b6000806000606084860312156134ad576134ac613192565b5b60006134bb868287016132a0565b93505060206134cc868287016132a0565b92505060406134dd868287016133be565b9150509250925092565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61351c8161339d565b82525050565b600061352e8383613513565b60208301905092915050565b6000602082019050919050565b6000613552826134e7565b61355c81856134f2565b935061356783613503565b8060005b8381101561359857815161357f8882613522565b975061358a8361353a565b92505060018101905061356b565b5085935050505092915050565b600060208201905081810360008301526135bf8184613547565b905092915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61360982613331565b810181811067ffffffffffffffff82111715613628576136276135d1565b5b80604052505050565b600061363b613188565b90506136478282613600565b919050565b600067ffffffffffffffff821115613667576136666135d1565b5b61367082613331565b9050602081019050919050565b82818337600083830152505050565b600061369f61369a8461364c565b613631565b9050828152602081018484840111156136bb576136ba6135cc565b5b6136c684828561367d565b509392505050565b600082601f8301126136e3576136e26135c7565b5b81356136f384826020860161368c565b91505092915050565b60006020828403121561371257613711613192565b5b600082013567ffffffffffffffff8111156137305761372f613197565b5b61373c848285016136ce565b91505092915050565b61374e81613221565b811461375957600080fd5b50565b60008135905061376b81613745565b92915050565b6000806040838503121561378857613787613192565b5b6000613796858286016132a0565b92505060206137a78582860161375c565b9150509250929050565b600067ffffffffffffffff8211156137cc576137cb6135d1565b5b6137d582613331565b9050602081019050919050565b60006137f56137f0846137b1565b613631565b905082815260208101848484011115613811576138106135cc565b5b61381c84828561367d565b509392505050565b600082601f830112613839576138386135c7565b5b81356138498482602086016137e2565b91505092915050565b6000806000806080858703121561386c5761386b613192565b5b600061387a878288016132a0565b945050602061388b878288016132a0565b935050604061389c878288016133be565b925050606085013567ffffffffffffffff8111156138bd576138bc613197565b5b6138c987828801613824565b91505092959194509250565b6000806000606084860312156138ee576138ed613192565b5b600084013567ffffffffffffffff81111561390c5761390b613197565b5b61391886828701613824565b935050602084013567ffffffffffffffff81111561393957613938613197565b5b613945868287016136ce565b9250506040613956868287016133be565b9150509250925092565b60006020828403121561397657613975613192565b5b60006139848482850161375c565b91505092915050565b600080604083850312156139a4576139a3613192565b5b60006139b2858286016132a0565b92505060206139c3858286016132a0565b9150509250929050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613a036020836132ed565b9150613a0e826139cd565b602082019050919050565b60006020820190508181036000830152613a32816139f6565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613a8057607f821691505b60208210811415613a9457613a93613a39565b5b50919050565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b6000613af6602c836132ed565b9150613b0182613a9a565b604082019050919050565b60006020820190508181036000830152613b2581613ae9565b9050919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b6000613b886021836132ed565b9150613b9382613b2c565b604082019050919050565b60006020820190508181036000830152613bb781613b7b565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b6000613c1a6038836132ed565b9150613c2582613bbe565b604082019050919050565b60006020820190508181036000830152613c4981613c0d565b9050919050565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b6000613cac6031836132ed565b9150613cb782613c50565b604082019050919050565b60006020820190508181036000830152613cdb81613c9f565b9050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b6000613d3e602b836132ed565b9150613d4982613ce2565b604082019050919050565b60006020820190508181036000830152613d6d81613d31565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613dae8261339d565b9150613db98361339d565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613df257613df1613d74565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613e378261339d565b9150613e428361339d565b925082613e5257613e51613dfd565b5b828204905092915050565b6000613e688261339d565b9150613e738361339d565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613ea857613ea7613d74565b5b828201905092915050565b6000613ebe8261339d565b9150613ec98361339d565b925082821015613edc57613edb613d74565b5b828203905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000613f218261339d565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613f5457613f53613d74565b5b600182019050919050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b6000613fbb602c836132ed565b9150613fc682613f5f565b604082019050919050565b60006020820190508181036000830152613fea81613fae565b9050919050565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b600061404d6029836132ed565b915061405882613ff1565b604082019050919050565b6000602082019050818103600083015261407c81614040565b9050919050565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b60006140df602a836132ed565b91506140ea82614083565b604082019050919050565b6000602082019050818103600083015261410e816140d2565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b600061414b6019836132ed565b915061415682614115565b602082019050919050565b6000602082019050818103600083015261417a8161413e565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b60006141dd602f836132ed565b91506141e882614181565b604082019050919050565b6000602082019050818103600083015261420c816141d0565b9050919050565b600081905092915050565b6000614229826132e2565b6142338185614213565b93506142438185602086016132fe565b80840191505092915050565b600061425b828561421e565b9150614267828461421e565b91508190509392505050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b60006142a9601f836132ed565b91506142b482614273565b602082019050919050565b600060208201905081810360008301526142d88161429c565b9050919050565b7f444952454354204d494e54204953204e4f5420414c4c4f57454420706c65617360008201527f65207669736974207777772e6c6567696f6e736f666c6f75642e636f6d000000602082015250565b600061433b603d836132ed565b9150614346826142df565b604082019050919050565b6000602082019050818103600083015261436a8161432e565b9050919050565b600061437d828461421e565b915081905092915050565b7f4841534820555345440000000000000000000000000000000000000000000000600082015250565b60006143be6009836132ed565b91506143c982614388565b602082019050919050565b600060208201905081810360008301526143ed816143b1565b9050919050565b7f546865206d617820616d6f756e74206f6620746f6b656e73206861732062656560008201527f6e20726561636865642c2070657220636f6e74726163742e0000000000000000602082015250565b60006144506038836132ed565b915061445b826143f4565b604082019050919050565b6000602082019050818103600083015261447f81614443565b9050919050565b7f546f6b656e7320617265206e6f7420666f722073616c652e0000000000000000600082015250565b60006144bc6018836132ed565b91506144c782614486565b602082019050919050565b600060208201905081810360008301526144eb816144af565b9050919050565b7f54686520746f6b656e20616d6f756e7420656e74657265642069732061626f7660008201527f652074686520616c6c6f7761626c65206c696d6974206f66203230207065722060208201527f7472616e73616374696f6e2e2020506c6561736520656e7465722061206c657360408201527f73657220616d6f756e742e000000000000000000000000000000000000000000606082015250565b600061459a606b836132ed565b91506145a5826144f2565b608082019050919050565b600060208201905081810360008301526145c98161458d565b9050919050565b7f596f75206861766520696e73756666696369656e742066756e64732e00000000600082015250565b6000614606601c836132ed565b9150614611826145d0565b602082019050919050565b60006020820190508181036000830152614635816145f9565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006146986026836132ed565b91506146a38261463c565b604082019050919050565b600060208201905081810360008301526146c78161468b565b9050919050565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b600061472a602c836132ed565b9150614735826146ce565b604082019050919050565b600060208201905081810360008301526147598161471d565b9050919050565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b60006147bc6029836132ed565b91506147c782614760565b604082019050919050565b600060208201905081810360008301526147eb816147af565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b600061484e6024836132ed565b9150614859826147f2565b604082019050919050565b6000602082019050818103600083015261487d81614841565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b60006148e06032836132ed565b91506148eb82614884565b604082019050919050565b6000602082019050818103600083015261490f816148d3565b9050919050565b60006149218261339d565b915061492c8361339d565b92508261493c5761493b613dfd565b5b828206905092915050565b60008160601b9050919050565b600061495f82614947565b9050919050565b600061497182614954565b9050919050565b61498961498482613277565b614966565b82525050565b6000819050919050565b6149aa6149a58261339d565b61498f565b82525050565b60006149bc8286614978565b6014820191506149cc8285614999565b6020820191506149dc828461421e565b9150819050949350505050565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b6000614a1f601c83614213565b9150614a2a826149e9565b601c82019050919050565b6000819050919050565b6000819050919050565b614a5a614a5582614a35565b614a3f565b82525050565b6000614a6b82614a12565b9150614a778284614a49565b60208201915081905092915050565b600081519050919050565b600082825260208201905092915050565b6000614aad82614a86565b614ab78185614a91565b9350614ac78185602086016132fe565b614ad081613331565b840191505092915050565b6000608082019050614af06000830187613400565b614afd6020830186613400565b614b0a604083018561346a565b8181036060830152614b1c8184614aa2565b905095945050505050565b600081519050614b36816131c8565b92915050565b600060208284031215614b5257614b51613192565b5b6000614b6084828501614b27565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b6000614bce6018836132ed565b9150614bd982614b98565b602082019050919050565b60006020820190508181036000830152614bfd81614bc1565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b6000614c3a601f836132ed565b9150614c4582614c04565b602082019050919050565b60006020820190508181036000830152614c6981614c2d565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b6000614ccc6022836132ed565b9150614cd782614c70565b604082019050919050565b60006020820190508181036000830152614cfb81614cbf565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b6000614d5e6022836132ed565b9150614d6982614d02565b604082019050919050565b60006020820190508181036000830152614d8d81614d51565b9050919050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000614dca6020836132ed565b9150614dd582614d94565b602082019050919050565b60006020820190508181036000830152614df981614dbd565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000614e36601c836132ed565b9150614e4182614e00565b602082019050919050565b60006020820190508181036000830152614e6581614e29565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b614ea481614a35565b82525050565b600060ff82169050919050565b614ec081614eaa565b82525050565b6000608082019050614edb6000830187614e9b565b614ee86020830186614eb7565b614ef56040830185614e9b565b614f026060830184614e9b565b9594505050505056fea26469706673582212205a304d1cf347109cde9e4362a23ff8f1e18218e773c11d1b7506db23ae97861264736f6c6343000808003368747470733a2f2f6170692e6c6567696f6e736f666c6f75642e636f6d2f6d6574612f
Deployed Bytecode
0x6080604052600436106101cd5760003560e01c806370a08231116100f7578063b88d4fde11610095578063e275aaa011610064578063e275aaa01461068d578063e4907a20146106a9578063e985e9c5146106d2578063f2fde38b1461070f576101cd565b8063b88d4fde146105bf578063b9420310146105e8578063c87b56dd14610613578063d4ddce8a14610650576101cd565b806391b7f5ed116100d157806391b7f5ed1461051757806395d89b411461054057806398d5fdca1461056b578063a22cb46514610596576101cd565b806370a0823114610498578063715018a6146104d55780638da5cb5b146104ec576101cd565b80632450bfa71161016f578063438b63001161013e578063438b6300146103b85780634f6ccce7146103f557806355f804b3146104325780636352211e1461045b576101cd565b80632450bfa71461031d5780632f745c59146103485780633ccfd60b1461038557806342842e0e1461038f576101cd565b8063081812fc116101ab578063081812fc14610263578063095ea7b3146102a057806318160ddd146102c957806323b872dd146102f4576101cd565b806301ffc9a7146101d2578063046dc1661461020f57806306fdde0314610238575b600080fd5b3480156101de57600080fd5b506101f960048036038101906101f491906131f4565b610738565b604051610206919061323c565b60405180910390f35b34801561021b57600080fd5b50610236600480360381019061023191906132b5565b6107b2565b005b34801561024457600080fd5b5061024d610872565b60405161025a919061337b565b60405180910390f35b34801561026f57600080fd5b5061028a600480360381019061028591906133d3565b610904565b604051610297919061340f565b60405180910390f35b3480156102ac57600080fd5b506102c760048036038101906102c2919061342a565b610989565b005b3480156102d557600080fd5b506102de610aa1565b6040516102eb9190613479565b60405180910390f35b34801561030057600080fd5b5061031b60048036038101906103169190613494565b610aae565b005b34801561032957600080fd5b50610332610b0e565b60405161033f9190613479565b60405180910390f35b34801561035457600080fd5b5061036f600480360381019061036a919061342a565b610b14565b60405161037c9190613479565b60405180910390f35b61038d610bb9565b005b34801561039b57600080fd5b506103b660048036038101906103b19190613494565b610ea7565b005b3480156103c457600080fd5b506103df60048036038101906103da91906132b5565b610ec7565b6040516103ec91906135a5565b60405180910390f35b34801561040157600080fd5b5061041c600480360381019061041791906133d3565b610f75565b6040516104299190613479565b60405180910390f35b34801561043e57600080fd5b50610459600480360381019061045491906136fc565b610fe6565b005b34801561046757600080fd5b50610482600480360381019061047d91906133d3565b61107c565b60405161048f919061340f565b60405180910390f35b3480156104a457600080fd5b506104bf60048036038101906104ba91906132b5565b61112e565b6040516104cc9190613479565b60405180910390f35b3480156104e157600080fd5b506104ea6111e6565b005b3480156104f857600080fd5b5061050161126e565b60405161050e919061340f565b60405180910390f35b34801561052357600080fd5b5061053e600480360381019061053991906133d3565b611298565b005b34801561054c57600080fd5b5061055561131e565b604051610562919061337b565b60405180910390f35b34801561057757600080fd5b506105806113b0565b60405161058d9190613479565b60405180910390f35b3480156105a257600080fd5b506105bd60048036038101906105b89190613771565b6113ba565b005b3480156105cb57600080fd5b506105e660048036038101906105e19190613852565b61153b565b005b3480156105f457600080fd5b506105fd61159d565b60405161060a919061323c565b60405180910390f35b34801561061f57600080fd5b5061063a600480360381019061063591906133d3565b6115b0565b604051610647919061337b565b60405180910390f35b34801561065c57600080fd5b50610677600480360381019061067291906133d3565b611657565b6040516106849190613479565b60405180910390f35b6106a760048036038101906106a291906138d5565b61166e565b005b3480156106b557600080fd5b506106d060048036038101906106cb9190613960565b611930565b005b3480156106de57600080fd5b506106f960048036038101906106f4919061398d565b6119c9565b604051610706919061323c565b60405180910390f35b34801561071b57600080fd5b50610736600480360381019061073191906132b5565b611a5d565b005b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806107ab57506107aa82611b55565b5b9050919050565b6107ba611c37565b73ffffffffffffffffffffffffffffffffffffffff166107d861126e565b73ffffffffffffffffffffffffffffffffffffffff161461082e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161082590613a19565b60405180910390fd5b80600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60606000805461088190613a68565b80601f01602080910402602001604051908101604052809291908181526020018280546108ad90613a68565b80156108fa5780601f106108cf576101008083540402835291602001916108fa565b820191906000526020600020905b8154815290600101906020018083116108dd57829003601f168201915b5050505050905090565b600061090f82611c3f565b61094e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161094590613b0c565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006109948261107c565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610a05576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109fc90613b9e565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610a24611c37565b73ffffffffffffffffffffffffffffffffffffffff161480610a535750610a5281610a4d611c37565b6119c9565b5b610a92576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a8990613c30565b60405180910390fd5b610a9c8383611cab565b505050565b6000600880549050905090565b610abf610ab9611c37565b82611d64565b610afe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610af590613cc2565b60405180910390fd5b610b09838383611e42565b505050565b611c2081565b6000610b1f8361112e565b8210610b60576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b5790613d54565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610bc1611c37565b73ffffffffffffffffffffffffffffffffffffffff16610bdf61126e565b73ffffffffffffffffffffffffffffffffffffffff1614610c35576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c2c90613a19565b60405180910390fd5b600047905060006064600d83610c4b9190613da3565b610c559190613e2c565b905060006064600c84610c689190613da3565b610c729190613e2c565b905060006064600a85610c859190613da3565b610c8f9190613e2c565b905060006064602086610ca29190613da3565b610cac9190613e2c565b9050600081838587610cbe9190613e5d565b610cc89190613e5d565b610cd29190613e5d565b86610cdd9190613eb3565b9050739f90601582ed28922a81156a60aad0cf0fd6920373ffffffffffffffffffffffffffffffffffffffff166108fc869081150290604051600060405180830381858888f19350505050158015610d39573d6000803e3d6000fd5b5073c7067f6ed87f0fd8d5cc47ad0f0c0b512a3cc27573ffffffffffffffffffffffffffffffffffffffff166108fc859081150290604051600060405180830381858888f19350505050158015610d94573d6000803e3d6000fd5b507380528f38843d19ecf558df2655354c99f05731a373ffffffffffffffffffffffffffffffffffffffff166108fc849081150290604051600060405180830381858888f19350505050158015610def573d6000803e3d6000fd5b507370716bd3e3e46e93e220e92045af42f2907bbb9b73ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f19350505050158015610e4a573d6000803e3d6000fd5b503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610e91573d6000803e3d6000fd5b5060004714610e9f57600080fd5b505050505050565b610ec28383836040518060200160405280600081525061153b565b505050565b60606000610ed48361112e565b905060008167ffffffffffffffff811115610ef257610ef16135d1565b5b604051908082528060200260200182016040528015610f205781602001602082028036833780820191505090505b50905060005b82811015610f6a57610f388582610b14565b828281518110610f4b57610f4a613ee7565b5b6020026020010181815250508080610f6290613f16565b915050610f26565b508092505050919050565b6000610f7f610aa1565b8210610fc0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fb790613fd1565b60405180910390fd5b60088281548110610fd457610fd3613ee7565b5b90600052602060002001549050919050565b610fee611c37565b73ffffffffffffffffffffffffffffffffffffffff1661100c61126e565b73ffffffffffffffffffffffffffffffffffffffff1614611062576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161105990613a19565b60405180910390fd5b80600f90805190602001906110789291906130e5565b5050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611125576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161111c90614063565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561119f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611196906140f5565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6111ee611c37565b73ffffffffffffffffffffffffffffffffffffffff1661120c61126e565b73ffffffffffffffffffffffffffffffffffffffff1614611262576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161125990613a19565b60405180910390fd5b61126c600061209e565b565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6112a0611c37565b73ffffffffffffffffffffffffffffffffffffffff166112be61126e565b73ffffffffffffffffffffffffffffffffffffffff1614611314576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161130b90613a19565b60405180910390fd5b80600e8190555050565b60606001805461132d90613a68565b80601f016020809104026020016040519081016040528092919081815260200182805461135990613a68565b80156113a65780601f1061137b576101008083540402835291602001916113a6565b820191906000526020600020905b81548152906001019060200180831161138957829003601f168201915b5050505050905090565b6000600e54905090565b6113c2611c37565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611430576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161142790614161565b60405180910390fd5b806005600061143d611c37565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166114ea611c37565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161152f919061323c565b60405180910390a35050565b61154c611546611c37565b83611d64565b61158b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161158290613cc2565b60405180910390fd5b61159784848484612164565b50505050565b601060009054906101000a900460ff1681565b60606115bb82611c3f565b6115fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115f1906141f3565b60405180910390fd5b60006116046121c0565b90506000815111611624576040518060200160405280600081525061164f565b8061162e84612252565b60405160200161163f92919061424f565b6040516020818303038152906040525b915050919050565b600081600e546116679190613da3565b9050919050565b6002600b5414156116b4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116ab906142bf565b60405180910390fd5b6002600b819055506116d06116ca3383856123b3565b84612414565b61170f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161170690614351565b60405180910390fd5b600c8260405161171f9190614371565b908152602001604051809103902060009054906101000a900460ff161561177b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611772906143d4565b60405180910390fd5b6001600c8360405161178d9190614371565b908152602001604051809103902060006101000a81548160ff021916908315150217905550611c206117bd610aa1565b826117c89190613e5d565b1115611809576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161180090614466565b60405180910390fd5b601060009054906101000a900460ff16611858576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161184f906144d2565b60405180910390fd5b601481111561189c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611893906145b0565b60405180910390fd5b6118a581611657565b3410156118e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118de9061461c565b60405180910390fd5b60005b818110156119225761190f336001611900610aa1565b61190a9190613e5d565b612481565b808061191a90613f16565b9150506118ea565b506001600b81905550505050565b611938611c37565b73ffffffffffffffffffffffffffffffffffffffff1661195661126e565b73ffffffffffffffffffffffffffffffffffffffff16146119ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119a390613a19565b60405180910390fd5b80601060006101000a81548160ff02191690831515021790555050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611a65611c37565b73ffffffffffffffffffffffffffffffffffffffff16611a8361126e565b73ffffffffffffffffffffffffffffffffffffffff1614611ad9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ad090613a19565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611b49576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b40906146ae565b60405180910390fd5b611b528161209e565b50565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611c2057507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611c305750611c2f8261249f565b5b9050919050565b600033905090565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611d1e8361107c565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611d6f82611c3f565b611dae576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611da590614740565b60405180910390fd5b6000611db98361107c565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611e2857508373ffffffffffffffffffffffffffffffffffffffff16611e1084610904565b73ffffffffffffffffffffffffffffffffffffffff16145b80611e395750611e3881856119c9565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611e628261107c565b73ffffffffffffffffffffffffffffffffffffffff1614611eb8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611eaf906147d2565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611f28576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f1f90614864565b60405180910390fd5b611f33838383612509565b611f3e600082611cab565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611f8e9190613eb3565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611fe59190613e5d565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61216f848484611e42565b61217b84848484612519565b6121ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121b1906148f6565b60405180910390fd5b50505050565b6060600f80546121cf90613a68565b80601f01602080910402602001604051908101604052809291908181526020018280546121fb90613a68565b80156122485780601f1061221d57610100808354040283529160200191612248565b820191906000526020600020905b81548152906001019060200180831161222b57829003601f168201915b5050505050905090565b6060600082141561229a576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506123ae565b600082905060005b600082146122cc5780806122b590613f16565b915050600a826122c59190613e2c565b91506122a2565b60008167ffffffffffffffff8111156122e8576122e76135d1565b5b6040519080825280601f01601f19166020018201604052801561231a5781602001600182028036833780820191505090505b5090505b600085146123a7576001826123339190613eb3565b9150600a856123429190614916565b603061234e9190613e5d565b60f81b81838151811061236457612363613ee7565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856123a09190613e2c565b945061231e565b8093505050505b919050565b6000808484846040516020016123cb939291906149b0565b604051602081830303815290604052805190602001206040516020016123f19190614a60565b604051602081830303815290604052805190602001209050809150509392505050565b600061242982846126b090919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff16600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614905092915050565b61249b8282604051806020016040528060008152506126d7565b5050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b612514838383612732565b505050565b600061253a8473ffffffffffffffffffffffffffffffffffffffff16612846565b156126a3578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612563611c37565b8786866040518563ffffffff1660e01b81526004016125859493929190614adb565b602060405180830381600087803b15801561259f57600080fd5b505af19250505080156125d057506040513d601f19601f820116820180604052508101906125cd9190614b3c565b60015b612653573d8060008114612600576040519150601f19603f3d011682016040523d82523d6000602084013e612605565b606091505b5060008151141561264b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612642906148f6565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506126a8565b600190505b949350505050565b60008060006126bf8585612859565b915091506126cc816128dc565b819250505092915050565b6126e18383612ab1565b6126ee6000848484612519565b61272d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612724906148f6565b60405180910390fd5b505050565b61273d838383612c7f565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156127805761277b81612c84565b6127bf565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146127be576127bd8382612ccd565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612802576127fd81612e3a565b612841565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146128405761283f8282612f0b565b5b5b505050565b600080823b905060008111915050919050565b60008060418351141561289b5760008060006020860151925060408601519150606086015160001a905061288f87828585612f8a565b945094505050506128d5565b6040835114156128cc5760008060208501519150604085015190506128c1868383613097565b9350935050506128d5565b60006002915091505b9250929050565b600060048111156128f0576128ef614b69565b5b81600481111561290357612902614b69565b5b141561290e57612aae565b6001600481111561292257612921614b69565b5b81600481111561293557612934614b69565b5b1415612976576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161296d90614be4565b60405180910390fd5b6002600481111561298a57612989614b69565b5b81600481111561299d5761299c614b69565b5b14156129de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129d590614c50565b60405180910390fd5b600360048111156129f2576129f1614b69565b5b816004811115612a0557612a04614b69565b5b1415612a46576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a3d90614ce2565b60405180910390fd5b600480811115612a5957612a58614b69565b5b816004811115612a6c57612a6b614b69565b5b1415612aad576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612aa490614d74565b60405180910390fd5b5b50565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612b21576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b1890614de0565b60405180910390fd5b612b2a81611c3f565b15612b6a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b6190614e4c565b60405180910390fd5b612b7660008383612509565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612bc69190613e5d565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b60006001612cda8461112e565b612ce49190613eb3565b9050600060076000848152602001908152602001600020549050818114612dc9576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600880549050612e4e9190613eb3565b9050600060096000848152602001908152602001600020549050600060088381548110612e7e57612e7d613ee7565b5b906000526020600020015490508060088381548110612ea057612e9f613ee7565b5b906000526020600020018190555081600960008381526020019081526020016000208190555060096000858152602001908152602001600020600090556008805480612eef57612eee614e6c565b5b6001900381819060005260206000200160009055905550505050565b6000612f168361112e565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c1115612fc557600060039150915061308e565b601b8560ff1614158015612fdd5750601c8560ff1614155b15612fef57600060049150915061308e565b6000600187878787604051600081526020016040526040516130149493929190614ec6565b6020604051602081039080840390855afa158015613036573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156130855760006001925092505061308e565b80600092509250505b94509492505050565b6000806000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff85169150601b8560ff1c0190506130d787828885612f8a565b935093505050935093915050565b8280546130f190613a68565b90600052602060002090601f016020900481019282613113576000855561315a565b82601f1061312c57805160ff191683800117855561315a565b8280016001018555821561315a579182015b8281111561315957825182559160200191906001019061313e565b5b509050613167919061316b565b5090565b5b8082111561318457600081600090555060010161316c565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6131d18161319c565b81146131dc57600080fd5b50565b6000813590506131ee816131c8565b92915050565b60006020828403121561320a57613209613192565b5b6000613218848285016131df565b91505092915050565b60008115159050919050565b61323681613221565b82525050565b6000602082019050613251600083018461322d565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061328282613257565b9050919050565b61329281613277565b811461329d57600080fd5b50565b6000813590506132af81613289565b92915050565b6000602082840312156132cb576132ca613192565b5b60006132d9848285016132a0565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561331c578082015181840152602081019050613301565b8381111561332b576000848401525b50505050565b6000601f19601f8301169050919050565b600061334d826132e2565b61335781856132ed565b93506133678185602086016132fe565b61337081613331565b840191505092915050565b600060208201905081810360008301526133958184613342565b905092915050565b6000819050919050565b6133b08161339d565b81146133bb57600080fd5b50565b6000813590506133cd816133a7565b92915050565b6000602082840312156133e9576133e8613192565b5b60006133f7848285016133be565b91505092915050565b61340981613277565b82525050565b60006020820190506134246000830184613400565b92915050565b6000806040838503121561344157613440613192565b5b600061344f858286016132a0565b9250506020613460858286016133be565b9150509250929050565b6134738161339d565b82525050565b600060208201905061348e600083018461346a565b92915050565b6000806000606084860312156134ad576134ac613192565b5b60006134bb868287016132a0565b93505060206134cc868287016132a0565b92505060406134dd868287016133be565b9150509250925092565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61351c8161339d565b82525050565b600061352e8383613513565b60208301905092915050565b6000602082019050919050565b6000613552826134e7565b61355c81856134f2565b935061356783613503565b8060005b8381101561359857815161357f8882613522565b975061358a8361353a565b92505060018101905061356b565b5085935050505092915050565b600060208201905081810360008301526135bf8184613547565b905092915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61360982613331565b810181811067ffffffffffffffff82111715613628576136276135d1565b5b80604052505050565b600061363b613188565b90506136478282613600565b919050565b600067ffffffffffffffff821115613667576136666135d1565b5b61367082613331565b9050602081019050919050565b82818337600083830152505050565b600061369f61369a8461364c565b613631565b9050828152602081018484840111156136bb576136ba6135cc565b5b6136c684828561367d565b509392505050565b600082601f8301126136e3576136e26135c7565b5b81356136f384826020860161368c565b91505092915050565b60006020828403121561371257613711613192565b5b600082013567ffffffffffffffff8111156137305761372f613197565b5b61373c848285016136ce565b91505092915050565b61374e81613221565b811461375957600080fd5b50565b60008135905061376b81613745565b92915050565b6000806040838503121561378857613787613192565b5b6000613796858286016132a0565b92505060206137a78582860161375c565b9150509250929050565b600067ffffffffffffffff8211156137cc576137cb6135d1565b5b6137d582613331565b9050602081019050919050565b60006137f56137f0846137b1565b613631565b905082815260208101848484011115613811576138106135cc565b5b61381c84828561367d565b509392505050565b600082601f830112613839576138386135c7565b5b81356138498482602086016137e2565b91505092915050565b6000806000806080858703121561386c5761386b613192565b5b600061387a878288016132a0565b945050602061388b878288016132a0565b935050604061389c878288016133be565b925050606085013567ffffffffffffffff8111156138bd576138bc613197565b5b6138c987828801613824565b91505092959194509250565b6000806000606084860312156138ee576138ed613192565b5b600084013567ffffffffffffffff81111561390c5761390b613197565b5b61391886828701613824565b935050602084013567ffffffffffffffff81111561393957613938613197565b5b613945868287016136ce565b9250506040613956868287016133be565b9150509250925092565b60006020828403121561397657613975613192565b5b60006139848482850161375c565b91505092915050565b600080604083850312156139a4576139a3613192565b5b60006139b2858286016132a0565b92505060206139c3858286016132a0565b9150509250929050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613a036020836132ed565b9150613a0e826139cd565b602082019050919050565b60006020820190508181036000830152613a32816139f6565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613a8057607f821691505b60208210811415613a9457613a93613a39565b5b50919050565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b6000613af6602c836132ed565b9150613b0182613a9a565b604082019050919050565b60006020820190508181036000830152613b2581613ae9565b9050919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b6000613b886021836132ed565b9150613b9382613b2c565b604082019050919050565b60006020820190508181036000830152613bb781613b7b565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b6000613c1a6038836132ed565b9150613c2582613bbe565b604082019050919050565b60006020820190508181036000830152613c4981613c0d565b9050919050565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b6000613cac6031836132ed565b9150613cb782613c50565b604082019050919050565b60006020820190508181036000830152613cdb81613c9f565b9050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b6000613d3e602b836132ed565b9150613d4982613ce2565b604082019050919050565b60006020820190508181036000830152613d6d81613d31565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613dae8261339d565b9150613db98361339d565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613df257613df1613d74565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613e378261339d565b9150613e428361339d565b925082613e5257613e51613dfd565b5b828204905092915050565b6000613e688261339d565b9150613e738361339d565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613ea857613ea7613d74565b5b828201905092915050565b6000613ebe8261339d565b9150613ec98361339d565b925082821015613edc57613edb613d74565b5b828203905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000613f218261339d565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613f5457613f53613d74565b5b600182019050919050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b6000613fbb602c836132ed565b9150613fc682613f5f565b604082019050919050565b60006020820190508181036000830152613fea81613fae565b9050919050565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b600061404d6029836132ed565b915061405882613ff1565b604082019050919050565b6000602082019050818103600083015261407c81614040565b9050919050565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b60006140df602a836132ed565b91506140ea82614083565b604082019050919050565b6000602082019050818103600083015261410e816140d2565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b600061414b6019836132ed565b915061415682614115565b602082019050919050565b6000602082019050818103600083015261417a8161413e565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b60006141dd602f836132ed565b91506141e882614181565b604082019050919050565b6000602082019050818103600083015261420c816141d0565b9050919050565b600081905092915050565b6000614229826132e2565b6142338185614213565b93506142438185602086016132fe565b80840191505092915050565b600061425b828561421e565b9150614267828461421e565b91508190509392505050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b60006142a9601f836132ed565b91506142b482614273565b602082019050919050565b600060208201905081810360008301526142d88161429c565b9050919050565b7f444952454354204d494e54204953204e4f5420414c4c4f57454420706c65617360008201527f65207669736974207777772e6c6567696f6e736f666c6f75642e636f6d000000602082015250565b600061433b603d836132ed565b9150614346826142df565b604082019050919050565b6000602082019050818103600083015261436a8161432e565b9050919050565b600061437d828461421e565b915081905092915050565b7f4841534820555345440000000000000000000000000000000000000000000000600082015250565b60006143be6009836132ed565b91506143c982614388565b602082019050919050565b600060208201905081810360008301526143ed816143b1565b9050919050565b7f546865206d617820616d6f756e74206f6620746f6b656e73206861732062656560008201527f6e20726561636865642c2070657220636f6e74726163742e0000000000000000602082015250565b60006144506038836132ed565b915061445b826143f4565b604082019050919050565b6000602082019050818103600083015261447f81614443565b9050919050565b7f546f6b656e7320617265206e6f7420666f722073616c652e0000000000000000600082015250565b60006144bc6018836132ed565b91506144c782614486565b602082019050919050565b600060208201905081810360008301526144eb816144af565b9050919050565b7f54686520746f6b656e20616d6f756e7420656e74657265642069732061626f7660008201527f652074686520616c6c6f7761626c65206c696d6974206f66203230207065722060208201527f7472616e73616374696f6e2e2020506c6561736520656e7465722061206c657360408201527f73657220616d6f756e742e000000000000000000000000000000000000000000606082015250565b600061459a606b836132ed565b91506145a5826144f2565b608082019050919050565b600060208201905081810360008301526145c98161458d565b9050919050565b7f596f75206861766520696e73756666696369656e742066756e64732e00000000600082015250565b6000614606601c836132ed565b9150614611826145d0565b602082019050919050565b60006020820190508181036000830152614635816145f9565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006146986026836132ed565b91506146a38261463c565b604082019050919050565b600060208201905081810360008301526146c78161468b565b9050919050565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b600061472a602c836132ed565b9150614735826146ce565b604082019050919050565b600060208201905081810360008301526147598161471d565b9050919050565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b60006147bc6029836132ed565b91506147c782614760565b604082019050919050565b600060208201905081810360008301526147eb816147af565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b600061484e6024836132ed565b9150614859826147f2565b604082019050919050565b6000602082019050818103600083015261487d81614841565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b60006148e06032836132ed565b91506148eb82614884565b604082019050919050565b6000602082019050818103600083015261490f816148d3565b9050919050565b60006149218261339d565b915061492c8361339d565b92508261493c5761493b613dfd565b5b828206905092915050565b60008160601b9050919050565b600061495f82614947565b9050919050565b600061497182614954565b9050919050565b61498961498482613277565b614966565b82525050565b6000819050919050565b6149aa6149a58261339d565b61498f565b82525050565b60006149bc8286614978565b6014820191506149cc8285614999565b6020820191506149dc828461421e565b9150819050949350505050565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b6000614a1f601c83614213565b9150614a2a826149e9565b601c82019050919050565b6000819050919050565b6000819050919050565b614a5a614a5582614a35565b614a3f565b82525050565b6000614a6b82614a12565b9150614a778284614a49565b60208201915081905092915050565b600081519050919050565b600082825260208201905092915050565b6000614aad82614a86565b614ab78185614a91565b9350614ac78185602086016132fe565b614ad081613331565b840191505092915050565b6000608082019050614af06000830187613400565b614afd6020830186613400565b614b0a604083018561346a565b8181036060830152614b1c8184614aa2565b905095945050505050565b600081519050614b36816131c8565b92915050565b600060208284031215614b5257614b51613192565b5b6000614b6084828501614b27565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b6000614bce6018836132ed565b9150614bd982614b98565b602082019050919050565b60006020820190508181036000830152614bfd81614bc1565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b6000614c3a601f836132ed565b9150614c4582614c04565b602082019050919050565b60006020820190508181036000830152614c6981614c2d565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b6000614ccc6022836132ed565b9150614cd782614c70565b604082019050919050565b60006020820190508181036000830152614cfb81614cbf565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b6000614d5e6022836132ed565b9150614d6982614d02565b604082019050919050565b60006020820190508181036000830152614d8d81614d51565b9050919050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000614dca6020836132ed565b9150614dd582614d94565b602082019050919050565b60006020820190508181036000830152614df981614dbd565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000614e36601c836132ed565b9150614e4182614e00565b602082019050919050565b60006020820190508181036000830152614e6581614e29565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b614ea481614a35565b82525050565b600060ff82169050919050565b614ec081614eaa565b82525050565b6000608082019050614edb6000830187614e9b565b614ee86020830186614eb7565b614ef56040830185614e9b565b614f026060830184614e9b565b9594505050505056fea26469706673582212205a304d1cf347109cde9e4362a23ff8f1e18218e773c11d1b7506db23ae97861264736f6c63430008080033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ 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.