ERC-721
Overview
Max Total Supply
5,555 NBHZ
Holders
542
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
2 NBHZLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
NeighborheadzNFT
Compiler Version
v0.8.12+commit.f00d7308
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: Unlicense pragma solidity ^0.8.12; /// @creator: Dumbfoundead /// @author: op3n.world import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Royalty.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; contract NeighborheadzNFT is AccessControl, ERC721, ERC721Royalty { using ECDSA for bytes32; using Address for address; uint256 public constant UNIT_PRICE = 80000000000000000; // 0.08 ETH uint8 public constant MAX_PRESALE_PER_MINTER = 2; address private _owner; uint256 private _totalSupply; uint256 private _tokenIndex; address payable private _fundRecipient; uint256 private _startIndex; bytes32 private _preSaleRoot; string private _baseTokenURI; uint256 private _maxGiveaway; uint256 private _giveaway; mapping(address => uint8) private _preSaleMinted; mapping(address => bool) private _verifiers; mapping(bytes32 => bool) public finalized; constructor() ERC721("Neighborheadz", "NBHZ") { _owner = _msgSender(); _verifiers[_owner] = true; _grantRole(DEFAULT_ADMIN_ROLE, _owner); } /** * @dev See {IERC165-supportsInterface}, {IERC2981-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(AccessControl, ERC721, ERC721Royalty) returns (bool) { return super.supportsInterface(interfaceId); } /** * @dev Modifier that checks that an account has an admin role. */ modifier onlyAdmin() { _checkRole(DEFAULT_ADMIN_ROLE, _msgSender()); _; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == msg.sender, "Ownable: caller is not the owner"); _; } /** * @dev Returns the address of the current owner. */ function owner() public view returns (address) { return _owner; } /** * @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 { _owner = newOwner; } /** * @dev Set fundRecipient of this contract * Can only be called by the admin. */ function setFundRecipient(address fundRecipient_) external onlyAdmin { _fundRecipient = payable(fundRecipient_); } /** * @dev Set preSaleRoot of this contract * Can only be called by the admin. */ function setPreSaleRoot(bytes32 root_) external onlyAdmin { _preSaleRoot = root_; } /** * @dev Get preSaleRoot */ function preSaleRoot() external view returns(bytes32) { return _preSaleRoot; } /** * @dev Check address is verifier */ function isVerifier(address verifier_) public view returns (bool) { return _verifiers[verifier_]; } /** * @dev Set mint verifier of this contract * Can only be called by the admin. */ function setVerifier(address verifier_) external onlyAdmin { _verifiers[verifier_] = true; } /** * @dev Revoke mint verifier of this contract * Can only be called by the admin. */ function revokeVerifier(address verifier_) external onlyAdmin { _verifiers[verifier_] = false; } /** * @dev Set baseTokenURI * Can only be called by the admin. */ function setBaseTokenURI(string memory baseTokenURI_) external onlyAdmin { _baseTokenURI = baseTokenURI_; } /** * @dev Activate this contract * Can only be called by the admin. */ function activate(uint256 startIndex_, uint256 maxGiveaway_, uint256 totalSupply_, string memory baseTokenURI_, address fundRecipient_) external onlyAdmin { require(_tokenIndex == 0, "NBHZ: Already activated"); _startIndex = startIndex_; _maxGiveaway = maxGiveaway_; _totalSupply = totalSupply_; _baseTokenURI = baseTokenURI_; _fundRecipient = payable(fundRecipient_); _tokenIndex = _startIndex; _setDefaultRoyalty(_fundRecipient, 0); } /** * @dev Set royalty of this contract */ function setDefaultRoyalty(address receiver, uint96 feeNumerator) external onlyAdmin { _setDefaultRoyalty(receiver, feeNumerator); } /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256) { return _totalSupply; } /** * @dev Returns fundRecipient address. */ function fundRecipient() external view returns (address) { return _fundRecipient; } /** * @dev Returns tokens count. */ function tokenCount() external view returns (uint256) { return _tokenIndex; } /** * @dev See {ERC721-_burn}, {ERC721Royalty-_burn} */ function _burn(uint256 tokenId) internal virtual override(ERC721, ERC721Royalty) { super._burn(tokenId); } /** * @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 override returns (string memory) { return _baseTokenURI; } /** * @dev mint a NFT. */ function _mintNFT(uint256 salt, bytes memory sig) internal { require(UNIT_PRICE <= msg.value, "NBHZ: Invalid amount"); require(_tokenIndex < _totalSupply, "NBHZ: Reach total supply"); bytes32 _verifiedHash = keccak256(abi.encodePacked(msg.sender, salt)); require(!finalized[_verifiedHash], "NBHZ: Salt used"); require(_verifiers[_verifiedHash.toEthSignedMessageHash().recover(sig)], "NBHZ: Unauthorized"); finalized[_verifiedHash] = true; Address.sendValue(_fundRecipient, msg.value); _tokenIndex++; _mint(msg.sender, _tokenIndex); } /** * @dev validate a mint. */ function _validateMint(bytes32[] memory proof) internal returns (bool) { if (_preSaleRoot == 0x00) { return true; } if (MerkleProof.verify(proof, _preSaleRoot, keccak256(abi.encodePacked(_msgSender())))) { if (MAX_PRESALE_PER_MINTER <= _preSaleMinted[_msgSender()]) { return false; } _preSaleMinted[_msgSender()]++; return true; } return false; } /** * @dev mint a NFT. */ function mint(uint256 salt, bytes memory sig, bytes32[] memory proof) external payable { require(_validateMint(proof), "NBHZ: Can not mint"); _mintNFT(salt, sig); } /** * @dev mint tokenID from 1 - 30 for vips. * Can only be called by the admin. */ function mintVIP(address toAddress, uint256 tokenId) external onlyAdmin { require(0 < tokenId && tokenId <= _startIndex, "NBHZ: Invalid tokenId"); _mint(toAddress, tokenId); } /** * @dev giveaway token to receiver. * Can only be called by the admin. */ function giveaway(address toAddress) external onlyAdmin { require(_giveaway < _maxGiveaway, "NBHZ: Can not giveaway"); _giveaway++; _tokenIndex++; _mint(toAddress, _tokenIndex); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControl.sol) pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role, _msgSender()); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view virtual override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view virtual { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(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); _afterTokenTransfer(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 from incorrect owner"); 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); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/ERC721Royalty.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "../../common/ERC2981.sol"; import "../../../utils/introspection/ERC165.sol"; /** * @dev Extension of ERC721 with the ERC2981 NFT Royalty Standard, a standardized way to retrieve royalty payment * information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC721Royalty is ERC2981, ERC721 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721, ERC2981) returns (bool) { return super.supportsInterface(interfaceId); } /** * @dev See {ERC721-_burn}. This override additionally clears the royalty information for the token. */ function _burn(uint256 tokenId) internal virtual override { super._burn(tokenId); _resetTokenRoyalty(tokenId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @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 * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "../Strings.sol"; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return tryRecover(hash, r, vs); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 27); return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = _efficientHash(computedHash, proofElement); } else { // Hash(current element of the proof + current computed hash) computedHash = _efficientHash(proofElement, computedHash); } } return computedHash; } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/common/ERC2981.sol) pragma solidity ^0.8.0; import "../../interfaces/IERC2981.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC2981 is IERC2981, ERC165 { struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981 */ function royaltyInfo(uint256 _tokenId, uint256 _salePrice) external view virtual override returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: invalid receiver"); _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `tokenId` must be already minted. * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: Invalid parameters"); _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Resets royalty information for the token id back to the global default. */ function _resetTokenRoyalty(uint256 tokenId) internal virtual { delete _tokenRoyaltyInfo[tokenId]; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be payed in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC165.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol";
{ "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":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PRESALE_PER_MINTER","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"UNIT_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"startIndex_","type":"uint256"},{"internalType":"uint256","name":"maxGiveaway_","type":"uint256"},{"internalType":"uint256","name":"totalSupply_","type":"uint256"},{"internalType":"string","name":"baseTokenURI_","type":"string"},{"internalType":"address","name":"fundRecipient_","type":"address"}],"name":"activate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"finalized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fundRecipient","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"toAddress","type":"address"}],"name":"giveaway","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"verifier_","type":"address"}],"name":"isVerifier","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"salt","type":"uint256"},{"internalType":"bytes","name":"sig","type":"bytes"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"toAddress","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"mintVIP","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"preSaleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"verifier_","type":"address"}],"name":"revokeVerifier","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"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":"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":"baseTokenURI_","type":"string"}],"name":"setBaseTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"fundRecipient_","type":"address"}],"name":"setFundRecipient","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"root_","type":"bytes32"}],"name":"setPreSaleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"verifier_","type":"address"}],"name":"setVerifier","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":[],"name":"tokenCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040518060400160405280600d81526020017f4e65696768626f72686561647a000000000000000000000000000000000000008152506040518060400160405280600481526020017f4e42485a000000000000000000000000000000000000000000000000000000008152508160039080519060200190620000969291906200031c565b508060049080519060200190620000af9291906200031c565b505050620000c2620001b960201b60201c565b600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600160136000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550620001b36000801b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16620001c160201b60201c565b62000431565b600033905090565b620001d38282620002b260201b60201c565b620002ae57600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555062000253620001b960201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b8280546200032a90620003fb565b90600052602060002090601f0160209004810192826200034e57600085556200039a565b82601f106200036957805160ff19168380011785556200039a565b828001600101855582156200039a579182015b82811115620003995782518255916020019190600101906200037c565b5b509050620003a99190620003ad565b5090565b5b80821115620003c8576000816000905550600101620003ae565b5090565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200041457607f821691505b602082108114156200042b576200042a620003cc565b5b50919050565b61592980620004416000396000f3fe60806040526004361061023b5760003560e01c806370a082311161012e578063bd02a235116100ab578063d939c9601161006f578063d939c960146108a9578063dfd233dd146108d4578063e985e9c5146108fd578063f2fde38b1461093a578063fe042d49146109635761023b565b8063bd02a235146107c8578063bfb62028146107f1578063c70b5ae51461081a578063c87b56dd14610843578063d547741f146108805761023b565b8063a217fddf116100f2578063a217fddf14610704578063a22cb4651461072f578063afa40bbd14610758578063b843888114610783578063b88d4fde1461079f5761023b565b806370a08231146106095780638da5cb5b1461064657806391d148541461067157806395d89b41146106ae5780639f181b5e146106d95761023b565b80632a55205a116101bc57806336568abe1161018057806336568abe1461052657806342842e0e1461054f5780635437988d146105785780636352211e146105a15780636c20f00e146105de5761023b565b80632a55205a1461042e5780632f2ff15d1461046c57806330176e13146104955780633154b9c2146104be57806333105218146104e95761023b565b80630abea268116102035780630abea2681461033757806310b5a1ad1461037457806318160ddd1461039d57806323b872dd146103c8578063248a9ca3146103f15761023b565b806301ffc9a71461024057806304634d8d1461027d57806306fdde03146102a6578063081812fc146102d1578063095ea7b31461030e575b600080fd5b34801561024c57600080fd5b50610267600480360381019061026291906137a8565b61098c565b60405161027491906137f0565b60405180910390f35b34801561028957600080fd5b506102a4600480360381019061029f91906138ad565b61099e565b005b3480156102b257600080fd5b506102bb6109c0565b6040516102c89190613986565b60405180910390f35b3480156102dd57600080fd5b506102f860048036038101906102f391906139de565b610a52565b6040516103059190613a1a565b60405180910390f35b34801561031a57600080fd5b5061033560048036038101906103309190613a35565b610ad7565b005b34801561034357600080fd5b5061035e60048036038101906103599190613aab565b610bef565b60405161036b91906137f0565b60405180910390f35b34801561038057600080fd5b5061039b60048036038101906103969190613c0d565b610c0f565b005b3480156103a957600080fd5b506103b2610d12565b6040516103bf9190613cb3565b60405180910390f35b3480156103d457600080fd5b506103ef60048036038101906103ea9190613cce565b610d1c565b005b3480156103fd57600080fd5b5061041860048036038101906104139190613aab565b610d7c565b6040516104259190613d30565b60405180910390f35b34801561043a57600080fd5b5061045560048036038101906104509190613d4b565b610d9b565b604051610463929190613d8b565b60405180910390f35b34801561047857600080fd5b50610493600480360381019061048e9190613db4565b610f86565b005b3480156104a157600080fd5b506104bc60048036038101906104b79190613df4565b610faf565b005b3480156104ca57600080fd5b506104d3610fdd565b6040516104e09190613d30565b60405180910390f35b3480156104f557600080fd5b50610510600480360381019061050b9190613e3d565b610fe7565b60405161051d91906137f0565b60405180910390f35b34801561053257600080fd5b5061054d60048036038101906105489190613db4565b61103d565b005b34801561055b57600080fd5b5061057660048036038101906105719190613cce565b6110c0565b005b34801561058457600080fd5b5061059f600480360381019061059a9190613e3d565b6110e0565b005b3480156105ad57600080fd5b506105c860048036038101906105c391906139de565b61114f565b6040516105d59190613a1a565b60405180910390f35b3480156105ea57600080fd5b506105f3611201565b6040516106009190613e86565b60405180910390f35b34801561061557600080fd5b50610630600480360381019061062b9190613e3d565b611206565b60405161063d9190613cb3565b60405180910390f35b34801561065257600080fd5b5061065b6112be565b6040516106689190613a1a565b60405180910390f35b34801561067d57600080fd5b5061069860048036038101906106939190613db4565b6112e8565b6040516106a591906137f0565b60405180910390f35b3480156106ba57600080fd5b506106c3611352565b6040516106d09190613986565b60405180910390f35b3480156106e557600080fd5b506106ee6113e4565b6040516106fb9190613cb3565b60405180910390f35b34801561071057600080fd5b506107196113ee565b6040516107269190613d30565b60405180910390f35b34801561073b57600080fd5b5061075660048036038101906107519190613ecd565b6113f5565b005b34801561076457600080fd5b5061076d61140b565b60405161077a9190613cb3565b60405180910390f35b61079d60048036038101906107989190614076565b611417565b005b3480156107ab57600080fd5b506107c660048036038101906107c19190614101565b61146e565b005b3480156107d457600080fd5b506107ef60048036038101906107ea9190613e3d565b6114d0565b005b3480156107fd57600080fd5b5061081860048036038101906108139190613e3d565b61153f565b005b34801561082657600080fd5b50610841600480360381019061083c9190613a35565b611597565b005b34801561084f57600080fd5b5061086a600480360381019061086591906139de565b61160a565b6040516108779190613986565b60405180910390f35b34801561088c57600080fd5b506108a760048036038101906108a29190613db4565b6116b1565b005b3480156108b557600080fd5b506108be6116da565b6040516108cb9190613a1a565b60405180910390f35b3480156108e057600080fd5b506108fb60048036038101906108f69190613e3d565b611704565b005b34801561090957600080fd5b50610924600480360381019061091f9190614184565b61179d565b60405161093191906137f0565b60405180910390f35b34801561094657600080fd5b50610961600480360381019061095c9190613e3d565b611831565b005b34801561096f57600080fd5b5061098a60048036038101906109859190613aab565b6118ea565b005b600061099782611908565b9050919050565b6109b26000801b6109ad61191a565b611922565b6109bc82826119bf565b5050565b6060600380546109cf906141f3565b80601f01602080910402602001604051908101604052809291908181526020018280546109fb906141f3565b8015610a485780601f10610a1d57610100808354040283529160200191610a48565b820191906000526020600020905b815481529060010190602001808311610a2b57829003601f168201915b5050505050905090565b6000610a5d82611b55565b610a9c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a9390614297565b60405180910390fd5b6007600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610ae28261114f565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610b53576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b4a90614329565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610b7261191a565b73ffffffffffffffffffffffffffffffffffffffff161480610ba15750610ba081610b9b61191a565b61179d565b5b610be0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bd7906143bb565b60405180910390fd5b610bea8383611bc1565b505050565b60146020528060005260406000206000915054906101000a900460ff1681565b610c236000801b610c1e61191a565b611922565b6000600b5414610c68576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c5f90614427565b60405180910390fd5b84600d819055508360108190555082600a8190555081600f9080519060200190610c93929190613699565b5080600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600d54600b81905550610d0b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660006119bf565b5050505050565b6000600a54905090565b610d2d610d2761191a565b82611c7a565b610d6c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d63906144b9565b60405180910390fd5b610d77838383611d58565b505050565b6000806000838152602001908152602001600020600101549050919050565b6000806000600260008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161415610f315760016040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b6000610f3b611fbf565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff1686610f679190614508565b610f719190614591565b90508160000151819350935050509250929050565b610f8f82610d7c565b610fa081610f9b61191a565b611922565b610faa8383611fc9565b505050565b610fc36000801b610fbe61191a565b611922565b80600f9080519060200190610fd9929190613699565b5050565b6000600e54905090565b6000601360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b61104561191a565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146110b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110a990614634565b60405180910390fd5b6110bc82826120a9565b5050565b6110db8383836040518060200160405280600081525061146e565b505050565b6110f46000801b6110ef61191a565b611922565b6001601360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b6000806005600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156111f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111ef906146c6565b60405180910390fd5b80915050919050565b600281565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611277576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161126e90614758565b60405180910390fd5b600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b606060048054611361906141f3565b80601f016020809104026020016040519081016040528092919081815260200182805461138d906141f3565b80156113da5780601f106113af576101008083540402835291602001916113da565b820191906000526020600020905b8154815290600101906020018083116113bd57829003601f168201915b5050505050905090565b6000600b54905090565b6000801b81565b61140761140061191a565b838361218a565b5050565b67011c37937e08000081565b611420816122f7565b61145f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611456906147c4565b60405180910390fd5b6114698383612447565b505050565b61147f61147961191a565b83611c7a565b6114be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114b5906144b9565b60405180910390fd5b6114ca8484848461268d565b50505050565b6114e46000801b6114df61191a565b611922565b6000601360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b6115536000801b61154e61191a565b611922565b80600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6115ab6000801b6115a661191a565b611922565b8060001080156115bd5750600d548111155b6115fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115f390614830565b60405180910390fd5b61160682826126e9565b5050565b606061161582611b55565b611654576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161164b906148c2565b60405180910390fd5b600061165e6128c3565b9050600081511161167e57604051806020016040528060008152506116a9565b8061168884612955565b60405160200161169992919061491e565b6040516020818303038152906040525b915050919050565b6116ba82610d7c565b6116cb816116c661191a565b611922565b6116d583836120a9565b505050565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6117186000801b61171361191a565b611922565b6010546011541061175e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117559061498e565b60405180910390fd5b60116000815480929190611771906149ae565b9190505550600b6000815480929190611789906149ae565b919050555061179a81600b546126e9565b50565b6000600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b3373ffffffffffffffffffffffffffffffffffffffff166118506112be565b73ffffffffffffffffffffffffffffffffffffffff16146118a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161189d90614a43565b60405180910390fd5b80600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6118fe6000801b6118f961191a565b611922565b80600e8190555050565b600061191382612ab6565b9050919050565b600033905090565b61192c82826112e8565b6119bb576119518173ffffffffffffffffffffffffffffffffffffffff166014612b98565b61195f8360001c6020612b98565b604051602001611970929190614afb565b6040516020818303038152906040526040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119b29190613986565b60405180910390fd5b5050565b6119c7611fbf565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115611a25576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a1c90614ba7565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611a95576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a8c90614c13565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600160008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b60008073ffffffffffffffffffffffffffffffffffffffff166005600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b816007600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611c348361114f565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611c8582611b55565b611cc4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cbb90614ca5565b60405180910390fd5b6000611ccf8361114f565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611d3e57508373ffffffffffffffffffffffffffffffffffffffff16611d2684610a52565b73ffffffffffffffffffffffffffffffffffffffff16145b80611d4f5750611d4e818561179d565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611d788261114f565b73ffffffffffffffffffffffffffffffffffffffff1614611dce576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dc590614d37565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611e3e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e3590614dc9565b60405180910390fd5b611e49838383612dd4565b611e54600082611bc1565b6001600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611ea49190614de9565b925050819055506001600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611efb9190614e1d565b92505081905550816005600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611fba838383612dd9565b505050565b6000612710905090565b611fd382826112e8565b6120a557600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061204a61191a565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6120b382826112e8565b1561218657600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061212b61191a565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156121f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121f090614ebf565b60405180910390fd5b80600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516122ea91906137f0565b60405180910390a3505050565b60008060001b600e54141561230f5760019050612442565b61234982600e5461231e61191a565b60405160200161232e9190614f27565b60405160208183030381529060405280519060200120612dde565b1561243d576012600061235a61191a565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1660ff16600260ff16116123b85760009050612442565b601260006123c461191a565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081819054906101000a900460ff168092919061241b90614f42565b91906101000a81548160ff021916908360ff1602179055505060019050612442565b600090505b919050565b3467011c37937e0800001115612492576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161248990614fb8565b60405180910390fd5b600a54600b54106124d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124cf90615024565b60405180910390fd5b600033836040516020016124ed929190615065565b6040516020818303038152906040528051906020012090506014600082815260200190815260200160002060009054906101000a900460ff1615612566576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161255d906150dd565b60405180910390fd5b601360006125858461257785612df5565b612e2590919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1661260c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161260390615149565b60405180910390fd5b60016014600083815260200190815260200160002060006101000a81548160ff021916908315150217905550612664600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1634612e4c565b600b6000815480929190612677906149ae565b919050555061268833600b546126e9565b505050565b612698848484611d58565b6126a484848484612f40565b6126e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126da906151db565b60405180910390fd5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612759576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161275090615247565b60405180910390fd5b61276281611b55565b156127a2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612799906152b3565b60405180910390fd5b6127ae60008383612dd4565b6001600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546127fe9190614e1d565b92505081905550816005600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46128bf60008383612dd9565b5050565b6060600f80546128d2906141f3565b80601f01602080910402602001604051908101604052809291908181526020018280546128fe906141f3565b801561294b5780601f106129205761010080835404028352916020019161294b565b820191906000526020600020905b81548152906001019060200180831161292e57829003601f168201915b5050505050905090565b6060600082141561299d576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612ab1565b600082905060005b600082146129cf5780806129b8906149ae565b915050600a826129c89190614591565b91506129a5565b60008167ffffffffffffffff8111156129eb576129ea613ae2565b5b6040519080825280601f01601f191660200182016040528015612a1d5781602001600182028036833780820191505090505b5090505b60008514612aaa57600182612a369190614de9565b9150600a85612a4591906152d3565b6030612a519190614e1d565b60f81b818381518110612a6757612a66615304565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612aa39190614591565b9450612a21565b8093505050505b919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612b8157507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612b915750612b90826130c8565b5b9050919050565b606060006002836002612bab9190614508565b612bb59190614e1d565b67ffffffffffffffff811115612bce57612bcd613ae2565b5b6040519080825280601f01601f191660200182016040528015612c005781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110612c3857612c37615304565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110612c9c57612c9b615304565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006001846002612cdc9190614508565b612ce69190614e1d565b90505b6001811115612d86577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110612d2857612d27615304565b5b1a60f81b828281518110612d3f57612d3e615304565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080612d7f90615333565b9050612ce9565b5060008414612dca576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612dc1906153a9565b60405180910390fd5b8091505092915050565b505050565b505050565b600082612deb8584613142565b1490509392505050565b600081604051602001612e089190615436565b604051602081830303815290604052805190602001209050919050565b6000806000612e3485856131b7565b91509150612e418161323a565b819250505092915050565b80471015612e8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e86906154a8565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff1682604051612eb5906154f9565b60006040518083038185875af1925050503d8060008114612ef2576040519150601f19603f3d011682016040523d82523d6000602084013e612ef7565b606091505b5050905080612f3b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f3290615580565b60405180910390fd5b505050565b6000612f618473ffffffffffffffffffffffffffffffffffffffff1661340f565b156130bb578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612f8a61191a565b8786866040518563ffffffff1660e01b8152600401612fac94939291906155f5565b6020604051808303816000875af1925050508015612fe857506040513d601f19601f82011682018060405250810190612fe59190615656565b60015b61306b573d8060008114613018576040519150601f19603f3d011682016040523d82523d6000602084013e61301d565b606091505b50600081511415613063576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161305a906151db565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506130c0565b600190505b949350505050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061313b575061313a82613432565b5b9050919050565b60008082905060005b84518110156131ac57600085828151811061316957613168615304565b5b6020026020010151905080831161318b5761318483826134ac565b9250613198565b61319581846134ac565b92505b5080806131a4906149ae565b91505061314b565b508091505092915050565b6000806041835114156131f95760008060006020860151925060408601519150606086015160001a90506131ed878285856134c3565b94509450505050613233565b60408351141561322a57600080602085015191506040850151905061321f8683836135d0565b935093505050613233565b60006002915091505b9250929050565b6000600481111561324e5761324d615683565b5b81600481111561326157613260615683565b5b141561326c5761340c565b600160048111156132805761327f615683565b5b81600481111561329357613292615683565b5b14156132d4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132cb906156fe565b60405180910390fd5b600260048111156132e8576132e7615683565b5b8160048111156132fb576132fa615683565b5b141561333c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133339061576a565b60405180910390fd5b600360048111156133505761334f615683565b5b81600481111561336357613362615683565b5b14156133a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161339b906157fc565b60405180910390fd5b6004808111156133b7576133b6615683565b5b8160048111156133ca576133c9615683565b5b141561340b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134029061588e565b60405180910390fd5b5b50565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806134a557506134a48261362f565b5b9050919050565b600082600052816020526040600020905092915050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c11156134fe5760006003915091506135c7565b601b8560ff16141580156135165750601c8560ff1614155b156135285760006004915091506135c7565b60006001878787876040516000815260200160405260405161354d94939291906158ae565b6020604051602081039080840390855afa15801561356f573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156135be576000600192509250506135c7565b80600092509250505b94509492505050565b60008060007f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60001b841690506000601b60ff8660001c901c6136139190614e1d565b9050613621878288856134c3565b935093505050935093915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b8280546136a5906141f3565b90600052602060002090601f0160209004810192826136c7576000855561370e565b82601f106136e057805160ff191683800117855561370e565b8280016001018555821561370e579182015b8281111561370d5782518255916020019190600101906136f2565b5b50905061371b919061371f565b5090565b5b80821115613738576000816000905550600101613720565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61378581613750565b811461379057600080fd5b50565b6000813590506137a28161377c565b92915050565b6000602082840312156137be576137bd613746565b5b60006137cc84828501613793565b91505092915050565b60008115159050919050565b6137ea816137d5565b82525050565b600060208201905061380560008301846137e1565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006138368261380b565b9050919050565b6138468161382b565b811461385157600080fd5b50565b6000813590506138638161383d565b92915050565b60006bffffffffffffffffffffffff82169050919050565b61388a81613869565b811461389557600080fd5b50565b6000813590506138a781613881565b92915050565b600080604083850312156138c4576138c3613746565b5b60006138d285828601613854565b92505060206138e385828601613898565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561392757808201518184015260208101905061390c565b83811115613936576000848401525b50505050565b6000601f19601f8301169050919050565b6000613958826138ed565b61396281856138f8565b9350613972818560208601613909565b61397b8161393c565b840191505092915050565b600060208201905081810360008301526139a0818461394d565b905092915050565b6000819050919050565b6139bb816139a8565b81146139c657600080fd5b50565b6000813590506139d8816139b2565b92915050565b6000602082840312156139f4576139f3613746565b5b6000613a02848285016139c9565b91505092915050565b613a148161382b565b82525050565b6000602082019050613a2f6000830184613a0b565b92915050565b60008060408385031215613a4c57613a4b613746565b5b6000613a5a85828601613854565b9250506020613a6b858286016139c9565b9150509250929050565b6000819050919050565b613a8881613a75565b8114613a9357600080fd5b50565b600081359050613aa581613a7f565b92915050565b600060208284031215613ac157613ac0613746565b5b6000613acf84828501613a96565b91505092915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613b1a8261393c565b810181811067ffffffffffffffff82111715613b3957613b38613ae2565b5b80604052505050565b6000613b4c61373c565b9050613b588282613b11565b919050565b600067ffffffffffffffff821115613b7857613b77613ae2565b5b613b818261393c565b9050602081019050919050565b82818337600083830152505050565b6000613bb0613bab84613b5d565b613b42565b905082815260208101848484011115613bcc57613bcb613add565b5b613bd7848285613b8e565b509392505050565b600082601f830112613bf457613bf3613ad8565b5b8135613c04848260208601613b9d565b91505092915050565b600080600080600060a08688031215613c2957613c28613746565b5b6000613c37888289016139c9565b9550506020613c48888289016139c9565b9450506040613c59888289016139c9565b935050606086013567ffffffffffffffff811115613c7a57613c7961374b565b5b613c8688828901613bdf565b9250506080613c9788828901613854565b9150509295509295909350565b613cad816139a8565b82525050565b6000602082019050613cc86000830184613ca4565b92915050565b600080600060608486031215613ce757613ce6613746565b5b6000613cf586828701613854565b9350506020613d0686828701613854565b9250506040613d17868287016139c9565b9150509250925092565b613d2a81613a75565b82525050565b6000602082019050613d456000830184613d21565b92915050565b60008060408385031215613d6257613d61613746565b5b6000613d70858286016139c9565b9250506020613d81858286016139c9565b9150509250929050565b6000604082019050613da06000830185613a0b565b613dad6020830184613ca4565b9392505050565b60008060408385031215613dcb57613dca613746565b5b6000613dd985828601613a96565b9250506020613dea85828601613854565b9150509250929050565b600060208284031215613e0a57613e09613746565b5b600082013567ffffffffffffffff811115613e2857613e2761374b565b5b613e3484828501613bdf565b91505092915050565b600060208284031215613e5357613e52613746565b5b6000613e6184828501613854565b91505092915050565b600060ff82169050919050565b613e8081613e6a565b82525050565b6000602082019050613e9b6000830184613e77565b92915050565b613eaa816137d5565b8114613eb557600080fd5b50565b600081359050613ec781613ea1565b92915050565b60008060408385031215613ee457613ee3613746565b5b6000613ef285828601613854565b9250506020613f0385828601613eb8565b9150509250929050565b600067ffffffffffffffff821115613f2857613f27613ae2565b5b613f318261393c565b9050602081019050919050565b6000613f51613f4c84613f0d565b613b42565b905082815260208101848484011115613f6d57613f6c613add565b5b613f78848285613b8e565b509392505050565b600082601f830112613f9557613f94613ad8565b5b8135613fa5848260208601613f3e565b91505092915050565b600067ffffffffffffffff821115613fc957613fc8613ae2565b5b602082029050602081019050919050565b600080fd5b6000613ff2613fed84613fae565b613b42565b9050808382526020820190506020840283018581111561401557614014613fda565b5b835b8181101561403e578061402a8882613a96565b845260208401935050602081019050614017565b5050509392505050565b600082601f83011261405d5761405c613ad8565b5b813561406d848260208601613fdf565b91505092915050565b60008060006060848603121561408f5761408e613746565b5b600061409d868287016139c9565b935050602084013567ffffffffffffffff8111156140be576140bd61374b565b5b6140ca86828701613f80565b925050604084013567ffffffffffffffff8111156140eb576140ea61374b565b5b6140f786828701614048565b9150509250925092565b6000806000806080858703121561411b5761411a613746565b5b600061412987828801613854565b945050602061413a87828801613854565b935050604061414b878288016139c9565b925050606085013567ffffffffffffffff81111561416c5761416b61374b565b5b61417887828801613f80565b91505092959194509250565b6000806040838503121561419b5761419a613746565b5b60006141a985828601613854565b92505060206141ba85828601613854565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061420b57607f821691505b6020821081141561421f5761421e6141c4565b5b50919050565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b6000614281602c836138f8565b915061428c82614225565b604082019050919050565b600060208201905081810360008301526142b081614274565b9050919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b60006143136021836138f8565b915061431e826142b7565b604082019050919050565b6000602082019050818103600083015261434281614306565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b60006143a56038836138f8565b91506143b082614349565b604082019050919050565b600060208201905081810360008301526143d481614398565b9050919050565b7f4e42485a3a20416c726561647920616374697661746564000000000000000000600082015250565b60006144116017836138f8565b915061441c826143db565b602082019050919050565b6000602082019050818103600083015261444081614404565b9050919050565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b60006144a36031836138f8565b91506144ae82614447565b604082019050919050565b600060208201905081810360008301526144d281614496565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614513826139a8565b915061451e836139a8565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614557576145566144d9565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061459c826139a8565b91506145a7836139a8565b9250826145b7576145b6614562565b5b828204905092915050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b600061461e602f836138f8565b9150614629826145c2565b604082019050919050565b6000602082019050818103600083015261464d81614611565b9050919050565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b60006146b06029836138f8565b91506146bb82614654565b604082019050919050565b600060208201905081810360008301526146df816146a3565b9050919050565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b6000614742602a836138f8565b915061474d826146e6565b604082019050919050565b6000602082019050818103600083015261477181614735565b9050919050565b7f4e42485a3a2043616e206e6f74206d696e740000000000000000000000000000600082015250565b60006147ae6012836138f8565b91506147b982614778565b602082019050919050565b600060208201905081810360008301526147dd816147a1565b9050919050565b7f4e42485a3a20496e76616c696420746f6b656e49640000000000000000000000600082015250565b600061481a6015836138f8565b9150614825826147e4565b602082019050919050565b600060208201905081810360008301526148498161480d565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b60006148ac602f836138f8565b91506148b782614850565b604082019050919050565b600060208201905081810360008301526148db8161489f565b9050919050565b600081905092915050565b60006148f8826138ed565b61490281856148e2565b9350614912818560208601613909565b80840191505092915050565b600061492a82856148ed565b915061493682846148ed565b91508190509392505050565b7f4e42485a3a2043616e206e6f7420676976656177617900000000000000000000600082015250565b60006149786016836138f8565b915061498382614942565b602082019050919050565b600060208201905081810360008301526149a78161496b565b9050919050565b60006149b9826139a8565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156149ec576149eb6144d9565b5b600182019050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614a2d6020836138f8565b9150614a38826149f7565b602082019050919050565b60006020820190508181036000830152614a5c81614a20565b9050919050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b6000614a996017836148e2565b9150614aa482614a63565b601782019050919050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b6000614ae56011836148e2565b9150614af082614aaf565b601182019050919050565b6000614b0682614a8c565b9150614b1282856148ed565b9150614b1d82614ad8565b9150614b2982846148ed565b91508190509392505050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b6000614b91602a836138f8565b9150614b9c82614b35565b604082019050919050565b60006020820190508181036000830152614bc081614b84565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b6000614bfd6019836138f8565b9150614c0882614bc7565b602082019050919050565b60006020820190508181036000830152614c2c81614bf0565b9050919050565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b6000614c8f602c836138f8565b9150614c9a82614c33565b604082019050919050565b60006020820190508181036000830152614cbe81614c82565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b6000614d216025836138f8565b9150614d2c82614cc5565b604082019050919050565b60006020820190508181036000830152614d5081614d14565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000614db36024836138f8565b9150614dbe82614d57565b604082019050919050565b60006020820190508181036000830152614de281614da6565b9050919050565b6000614df4826139a8565b9150614dff836139a8565b925082821015614e1257614e116144d9565b5b828203905092915050565b6000614e28826139a8565b9150614e33836139a8565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614e6857614e676144d9565b5b828201905092915050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000614ea96019836138f8565b9150614eb482614e73565b602082019050919050565b60006020820190508181036000830152614ed881614e9c565b9050919050565b60008160601b9050919050565b6000614ef782614edf565b9050919050565b6000614f0982614eec565b9050919050565b614f21614f1c8261382b565b614efe565b82525050565b6000614f338284614f10565b60148201915081905092915050565b6000614f4d82613e6a565b915060ff821415614f6157614f606144d9565b5b600182019050919050565b7f4e42485a3a20496e76616c696420616d6f756e74000000000000000000000000600082015250565b6000614fa26014836138f8565b9150614fad82614f6c565b602082019050919050565b60006020820190508181036000830152614fd181614f95565b9050919050565b7f4e42485a3a20526561636820746f74616c20737570706c790000000000000000600082015250565b600061500e6018836138f8565b915061501982614fd8565b602082019050919050565b6000602082019050818103600083015261503d81615001565b9050919050565b6000819050919050565b61505f61505a826139a8565b615044565b82525050565b60006150718285614f10565b601482019150615081828461504e565b6020820191508190509392505050565b7f4e42485a3a2053616c7420757365640000000000000000000000000000000000600082015250565b60006150c7600f836138f8565b91506150d282615091565b602082019050919050565b600060208201905081810360008301526150f6816150ba565b9050919050565b7f4e42485a3a20556e617574686f72697a65640000000000000000000000000000600082015250565b60006151336012836138f8565b915061513e826150fd565b602082019050919050565b6000602082019050818103600083015261516281615126565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b60006151c56032836138f8565b91506151d082615169565b604082019050919050565b600060208201905081810360008301526151f4816151b8565b9050919050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b60006152316020836138f8565b915061523c826151fb565b602082019050919050565b6000602082019050818103600083015261526081615224565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b600061529d601c836138f8565b91506152a882615267565b602082019050919050565b600060208201905081810360008301526152cc81615290565b9050919050565b60006152de826139a8565b91506152e9836139a8565b9250826152f9576152f8614562565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600061533e826139a8565b91506000821415615352576153516144d9565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b60006153936020836138f8565b915061539e8261535d565b602082019050919050565b600060208201905081810360008301526153c281615386565b9050919050565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b60006153ff601c836148e2565b915061540a826153c9565b601c82019050919050565b6000819050919050565b61543061542b82613a75565b615415565b82525050565b6000615441826153f2565b915061544d828461541f565b60208201915081905092915050565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b6000615492601d836138f8565b915061549d8261545c565b602082019050919050565b600060208201905081810360008301526154c181615485565b9050919050565b600081905092915050565b50565b60006154e36000836154c8565b91506154ee826154d3565b600082019050919050565b6000615504826154d6565b9150819050919050565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b600061556a603a836138f8565b91506155758261550e565b604082019050919050565b600060208201905081810360008301526155998161555d565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006155c7826155a0565b6155d181856155ab565b93506155e1818560208601613909565b6155ea8161393c565b840191505092915050565b600060808201905061560a6000830187613a0b565b6156176020830186613a0b565b6156246040830185613ca4565b818103606083015261563681846155bc565b905095945050505050565b6000815190506156508161377c565b92915050565b60006020828403121561566c5761566b613746565b5b600061567a84828501615641565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b60006156e86018836138f8565b91506156f3826156b2565b602082019050919050565b60006020820190508181036000830152615717816156db565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b6000615754601f836138f8565b915061575f8261571e565b602082019050919050565b6000602082019050818103600083015261578381615747565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b60006157e66022836138f8565b91506157f18261578a565b604082019050919050565b60006020820190508181036000830152615815816157d9565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b60006158786022836138f8565b91506158838261581c565b604082019050919050565b600060208201905081810360008301526158a78161586b565b9050919050565b60006080820190506158c36000830187613d21565b6158d06020830186613e77565b6158dd6040830185613d21565b6158ea6060830184613d21565b9594505050505056fea2646970667358221220718997124c517190e1f6fc0450699f15027f34469affc071b1de3c46be39c03464736f6c634300080c0033
Deployed Bytecode
0x60806040526004361061023b5760003560e01c806370a082311161012e578063bd02a235116100ab578063d939c9601161006f578063d939c960146108a9578063dfd233dd146108d4578063e985e9c5146108fd578063f2fde38b1461093a578063fe042d49146109635761023b565b8063bd02a235146107c8578063bfb62028146107f1578063c70b5ae51461081a578063c87b56dd14610843578063d547741f146108805761023b565b8063a217fddf116100f2578063a217fddf14610704578063a22cb4651461072f578063afa40bbd14610758578063b843888114610783578063b88d4fde1461079f5761023b565b806370a08231146106095780638da5cb5b1461064657806391d148541461067157806395d89b41146106ae5780639f181b5e146106d95761023b565b80632a55205a116101bc57806336568abe1161018057806336568abe1461052657806342842e0e1461054f5780635437988d146105785780636352211e146105a15780636c20f00e146105de5761023b565b80632a55205a1461042e5780632f2ff15d1461046c57806330176e13146104955780633154b9c2146104be57806333105218146104e95761023b565b80630abea268116102035780630abea2681461033757806310b5a1ad1461037457806318160ddd1461039d57806323b872dd146103c8578063248a9ca3146103f15761023b565b806301ffc9a71461024057806304634d8d1461027d57806306fdde03146102a6578063081812fc146102d1578063095ea7b31461030e575b600080fd5b34801561024c57600080fd5b50610267600480360381019061026291906137a8565b61098c565b60405161027491906137f0565b60405180910390f35b34801561028957600080fd5b506102a4600480360381019061029f91906138ad565b61099e565b005b3480156102b257600080fd5b506102bb6109c0565b6040516102c89190613986565b60405180910390f35b3480156102dd57600080fd5b506102f860048036038101906102f391906139de565b610a52565b6040516103059190613a1a565b60405180910390f35b34801561031a57600080fd5b5061033560048036038101906103309190613a35565b610ad7565b005b34801561034357600080fd5b5061035e60048036038101906103599190613aab565b610bef565b60405161036b91906137f0565b60405180910390f35b34801561038057600080fd5b5061039b60048036038101906103969190613c0d565b610c0f565b005b3480156103a957600080fd5b506103b2610d12565b6040516103bf9190613cb3565b60405180910390f35b3480156103d457600080fd5b506103ef60048036038101906103ea9190613cce565b610d1c565b005b3480156103fd57600080fd5b5061041860048036038101906104139190613aab565b610d7c565b6040516104259190613d30565b60405180910390f35b34801561043a57600080fd5b5061045560048036038101906104509190613d4b565b610d9b565b604051610463929190613d8b565b60405180910390f35b34801561047857600080fd5b50610493600480360381019061048e9190613db4565b610f86565b005b3480156104a157600080fd5b506104bc60048036038101906104b79190613df4565b610faf565b005b3480156104ca57600080fd5b506104d3610fdd565b6040516104e09190613d30565b60405180910390f35b3480156104f557600080fd5b50610510600480360381019061050b9190613e3d565b610fe7565b60405161051d91906137f0565b60405180910390f35b34801561053257600080fd5b5061054d60048036038101906105489190613db4565b61103d565b005b34801561055b57600080fd5b5061057660048036038101906105719190613cce565b6110c0565b005b34801561058457600080fd5b5061059f600480360381019061059a9190613e3d565b6110e0565b005b3480156105ad57600080fd5b506105c860048036038101906105c391906139de565b61114f565b6040516105d59190613a1a565b60405180910390f35b3480156105ea57600080fd5b506105f3611201565b6040516106009190613e86565b60405180910390f35b34801561061557600080fd5b50610630600480360381019061062b9190613e3d565b611206565b60405161063d9190613cb3565b60405180910390f35b34801561065257600080fd5b5061065b6112be565b6040516106689190613a1a565b60405180910390f35b34801561067d57600080fd5b5061069860048036038101906106939190613db4565b6112e8565b6040516106a591906137f0565b60405180910390f35b3480156106ba57600080fd5b506106c3611352565b6040516106d09190613986565b60405180910390f35b3480156106e557600080fd5b506106ee6113e4565b6040516106fb9190613cb3565b60405180910390f35b34801561071057600080fd5b506107196113ee565b6040516107269190613d30565b60405180910390f35b34801561073b57600080fd5b5061075660048036038101906107519190613ecd565b6113f5565b005b34801561076457600080fd5b5061076d61140b565b60405161077a9190613cb3565b60405180910390f35b61079d60048036038101906107989190614076565b611417565b005b3480156107ab57600080fd5b506107c660048036038101906107c19190614101565b61146e565b005b3480156107d457600080fd5b506107ef60048036038101906107ea9190613e3d565b6114d0565b005b3480156107fd57600080fd5b5061081860048036038101906108139190613e3d565b61153f565b005b34801561082657600080fd5b50610841600480360381019061083c9190613a35565b611597565b005b34801561084f57600080fd5b5061086a600480360381019061086591906139de565b61160a565b6040516108779190613986565b60405180910390f35b34801561088c57600080fd5b506108a760048036038101906108a29190613db4565b6116b1565b005b3480156108b557600080fd5b506108be6116da565b6040516108cb9190613a1a565b60405180910390f35b3480156108e057600080fd5b506108fb60048036038101906108f69190613e3d565b611704565b005b34801561090957600080fd5b50610924600480360381019061091f9190614184565b61179d565b60405161093191906137f0565b60405180910390f35b34801561094657600080fd5b50610961600480360381019061095c9190613e3d565b611831565b005b34801561096f57600080fd5b5061098a60048036038101906109859190613aab565b6118ea565b005b600061099782611908565b9050919050565b6109b26000801b6109ad61191a565b611922565b6109bc82826119bf565b5050565b6060600380546109cf906141f3565b80601f01602080910402602001604051908101604052809291908181526020018280546109fb906141f3565b8015610a485780601f10610a1d57610100808354040283529160200191610a48565b820191906000526020600020905b815481529060010190602001808311610a2b57829003601f168201915b5050505050905090565b6000610a5d82611b55565b610a9c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a9390614297565b60405180910390fd5b6007600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610ae28261114f565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610b53576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b4a90614329565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610b7261191a565b73ffffffffffffffffffffffffffffffffffffffff161480610ba15750610ba081610b9b61191a565b61179d565b5b610be0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bd7906143bb565b60405180910390fd5b610bea8383611bc1565b505050565b60146020528060005260406000206000915054906101000a900460ff1681565b610c236000801b610c1e61191a565b611922565b6000600b5414610c68576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c5f90614427565b60405180910390fd5b84600d819055508360108190555082600a8190555081600f9080519060200190610c93929190613699565b5080600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600d54600b81905550610d0b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660006119bf565b5050505050565b6000600a54905090565b610d2d610d2761191a565b82611c7a565b610d6c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d63906144b9565b60405180910390fd5b610d77838383611d58565b505050565b6000806000838152602001908152602001600020600101549050919050565b6000806000600260008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161415610f315760016040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b6000610f3b611fbf565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff1686610f679190614508565b610f719190614591565b90508160000151819350935050509250929050565b610f8f82610d7c565b610fa081610f9b61191a565b611922565b610faa8383611fc9565b505050565b610fc36000801b610fbe61191a565b611922565b80600f9080519060200190610fd9929190613699565b5050565b6000600e54905090565b6000601360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b61104561191a565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146110b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110a990614634565b60405180910390fd5b6110bc82826120a9565b5050565b6110db8383836040518060200160405280600081525061146e565b505050565b6110f46000801b6110ef61191a565b611922565b6001601360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b6000806005600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156111f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111ef906146c6565b60405180910390fd5b80915050919050565b600281565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611277576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161126e90614758565b60405180910390fd5b600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b606060048054611361906141f3565b80601f016020809104026020016040519081016040528092919081815260200182805461138d906141f3565b80156113da5780601f106113af576101008083540402835291602001916113da565b820191906000526020600020905b8154815290600101906020018083116113bd57829003601f168201915b5050505050905090565b6000600b54905090565b6000801b81565b61140761140061191a565b838361218a565b5050565b67011c37937e08000081565b611420816122f7565b61145f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611456906147c4565b60405180910390fd5b6114698383612447565b505050565b61147f61147961191a565b83611c7a565b6114be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114b5906144b9565b60405180910390fd5b6114ca8484848461268d565b50505050565b6114e46000801b6114df61191a565b611922565b6000601360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b6115536000801b61154e61191a565b611922565b80600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6115ab6000801b6115a661191a565b611922565b8060001080156115bd5750600d548111155b6115fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115f390614830565b60405180910390fd5b61160682826126e9565b5050565b606061161582611b55565b611654576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161164b906148c2565b60405180910390fd5b600061165e6128c3565b9050600081511161167e57604051806020016040528060008152506116a9565b8061168884612955565b60405160200161169992919061491e565b6040516020818303038152906040525b915050919050565b6116ba82610d7c565b6116cb816116c661191a565b611922565b6116d583836120a9565b505050565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6117186000801b61171361191a565b611922565b6010546011541061175e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117559061498e565b60405180910390fd5b60116000815480929190611771906149ae565b9190505550600b6000815480929190611789906149ae565b919050555061179a81600b546126e9565b50565b6000600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b3373ffffffffffffffffffffffffffffffffffffffff166118506112be565b73ffffffffffffffffffffffffffffffffffffffff16146118a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161189d90614a43565b60405180910390fd5b80600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6118fe6000801b6118f961191a565b611922565b80600e8190555050565b600061191382612ab6565b9050919050565b600033905090565b61192c82826112e8565b6119bb576119518173ffffffffffffffffffffffffffffffffffffffff166014612b98565b61195f8360001c6020612b98565b604051602001611970929190614afb565b6040516020818303038152906040526040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119b29190613986565b60405180910390fd5b5050565b6119c7611fbf565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115611a25576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a1c90614ba7565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611a95576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a8c90614c13565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600160008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b60008073ffffffffffffffffffffffffffffffffffffffff166005600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b816007600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611c348361114f565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611c8582611b55565b611cc4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cbb90614ca5565b60405180910390fd5b6000611ccf8361114f565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611d3e57508373ffffffffffffffffffffffffffffffffffffffff16611d2684610a52565b73ffffffffffffffffffffffffffffffffffffffff16145b80611d4f5750611d4e818561179d565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611d788261114f565b73ffffffffffffffffffffffffffffffffffffffff1614611dce576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dc590614d37565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611e3e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e3590614dc9565b60405180910390fd5b611e49838383612dd4565b611e54600082611bc1565b6001600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611ea49190614de9565b925050819055506001600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611efb9190614e1d565b92505081905550816005600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611fba838383612dd9565b505050565b6000612710905090565b611fd382826112e8565b6120a557600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061204a61191a565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6120b382826112e8565b1561218657600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061212b61191a565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156121f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121f090614ebf565b60405180910390fd5b80600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516122ea91906137f0565b60405180910390a3505050565b60008060001b600e54141561230f5760019050612442565b61234982600e5461231e61191a565b60405160200161232e9190614f27565b60405160208183030381529060405280519060200120612dde565b1561243d576012600061235a61191a565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1660ff16600260ff16116123b85760009050612442565b601260006123c461191a565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081819054906101000a900460ff168092919061241b90614f42565b91906101000a81548160ff021916908360ff1602179055505060019050612442565b600090505b919050565b3467011c37937e0800001115612492576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161248990614fb8565b60405180910390fd5b600a54600b54106124d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124cf90615024565b60405180910390fd5b600033836040516020016124ed929190615065565b6040516020818303038152906040528051906020012090506014600082815260200190815260200160002060009054906101000a900460ff1615612566576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161255d906150dd565b60405180910390fd5b601360006125858461257785612df5565b612e2590919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1661260c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161260390615149565b60405180910390fd5b60016014600083815260200190815260200160002060006101000a81548160ff021916908315150217905550612664600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1634612e4c565b600b6000815480929190612677906149ae565b919050555061268833600b546126e9565b505050565b612698848484611d58565b6126a484848484612f40565b6126e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126da906151db565b60405180910390fd5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612759576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161275090615247565b60405180910390fd5b61276281611b55565b156127a2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612799906152b3565b60405180910390fd5b6127ae60008383612dd4565b6001600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546127fe9190614e1d565b92505081905550816005600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46128bf60008383612dd9565b5050565b6060600f80546128d2906141f3565b80601f01602080910402602001604051908101604052809291908181526020018280546128fe906141f3565b801561294b5780601f106129205761010080835404028352916020019161294b565b820191906000526020600020905b81548152906001019060200180831161292e57829003601f168201915b5050505050905090565b6060600082141561299d576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612ab1565b600082905060005b600082146129cf5780806129b8906149ae565b915050600a826129c89190614591565b91506129a5565b60008167ffffffffffffffff8111156129eb576129ea613ae2565b5b6040519080825280601f01601f191660200182016040528015612a1d5781602001600182028036833780820191505090505b5090505b60008514612aaa57600182612a369190614de9565b9150600a85612a4591906152d3565b6030612a519190614e1d565b60f81b818381518110612a6757612a66615304565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612aa39190614591565b9450612a21565b8093505050505b919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612b8157507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612b915750612b90826130c8565b5b9050919050565b606060006002836002612bab9190614508565b612bb59190614e1d565b67ffffffffffffffff811115612bce57612bcd613ae2565b5b6040519080825280601f01601f191660200182016040528015612c005781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110612c3857612c37615304565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110612c9c57612c9b615304565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006001846002612cdc9190614508565b612ce69190614e1d565b90505b6001811115612d86577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110612d2857612d27615304565b5b1a60f81b828281518110612d3f57612d3e615304565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080612d7f90615333565b9050612ce9565b5060008414612dca576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612dc1906153a9565b60405180910390fd5b8091505092915050565b505050565b505050565b600082612deb8584613142565b1490509392505050565b600081604051602001612e089190615436565b604051602081830303815290604052805190602001209050919050565b6000806000612e3485856131b7565b91509150612e418161323a565b819250505092915050565b80471015612e8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e86906154a8565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff1682604051612eb5906154f9565b60006040518083038185875af1925050503d8060008114612ef2576040519150601f19603f3d011682016040523d82523d6000602084013e612ef7565b606091505b5050905080612f3b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f3290615580565b60405180910390fd5b505050565b6000612f618473ffffffffffffffffffffffffffffffffffffffff1661340f565b156130bb578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612f8a61191a565b8786866040518563ffffffff1660e01b8152600401612fac94939291906155f5565b6020604051808303816000875af1925050508015612fe857506040513d601f19601f82011682018060405250810190612fe59190615656565b60015b61306b573d8060008114613018576040519150601f19603f3d011682016040523d82523d6000602084013e61301d565b606091505b50600081511415613063576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161305a906151db565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506130c0565b600190505b949350505050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061313b575061313a82613432565b5b9050919050565b60008082905060005b84518110156131ac57600085828151811061316957613168615304565b5b6020026020010151905080831161318b5761318483826134ac565b9250613198565b61319581846134ac565b92505b5080806131a4906149ae565b91505061314b565b508091505092915050565b6000806041835114156131f95760008060006020860151925060408601519150606086015160001a90506131ed878285856134c3565b94509450505050613233565b60408351141561322a57600080602085015191506040850151905061321f8683836135d0565b935093505050613233565b60006002915091505b9250929050565b6000600481111561324e5761324d615683565b5b81600481111561326157613260615683565b5b141561326c5761340c565b600160048111156132805761327f615683565b5b81600481111561329357613292615683565b5b14156132d4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132cb906156fe565b60405180910390fd5b600260048111156132e8576132e7615683565b5b8160048111156132fb576132fa615683565b5b141561333c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133339061576a565b60405180910390fd5b600360048111156133505761334f615683565b5b81600481111561336357613362615683565b5b14156133a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161339b906157fc565b60405180910390fd5b6004808111156133b7576133b6615683565b5b8160048111156133ca576133c9615683565b5b141561340b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134029061588e565b60405180910390fd5b5b50565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806134a557506134a48261362f565b5b9050919050565b600082600052816020526040600020905092915050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c11156134fe5760006003915091506135c7565b601b8560ff16141580156135165750601c8560ff1614155b156135285760006004915091506135c7565b60006001878787876040516000815260200160405260405161354d94939291906158ae565b6020604051602081039080840390855afa15801561356f573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156135be576000600192509250506135c7565b80600092509250505b94509492505050565b60008060007f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60001b841690506000601b60ff8660001c901c6136139190614e1d565b9050613621878288856134c3565b935093505050935093915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b8280546136a5906141f3565b90600052602060002090601f0160209004810192826136c7576000855561370e565b82601f106136e057805160ff191683800117855561370e565b8280016001018555821561370e579182015b8281111561370d5782518255916020019190600101906136f2565b5b50905061371b919061371f565b5090565b5b80821115613738576000816000905550600101613720565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61378581613750565b811461379057600080fd5b50565b6000813590506137a28161377c565b92915050565b6000602082840312156137be576137bd613746565b5b60006137cc84828501613793565b91505092915050565b60008115159050919050565b6137ea816137d5565b82525050565b600060208201905061380560008301846137e1565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006138368261380b565b9050919050565b6138468161382b565b811461385157600080fd5b50565b6000813590506138638161383d565b92915050565b60006bffffffffffffffffffffffff82169050919050565b61388a81613869565b811461389557600080fd5b50565b6000813590506138a781613881565b92915050565b600080604083850312156138c4576138c3613746565b5b60006138d285828601613854565b92505060206138e385828601613898565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561392757808201518184015260208101905061390c565b83811115613936576000848401525b50505050565b6000601f19601f8301169050919050565b6000613958826138ed565b61396281856138f8565b9350613972818560208601613909565b61397b8161393c565b840191505092915050565b600060208201905081810360008301526139a0818461394d565b905092915050565b6000819050919050565b6139bb816139a8565b81146139c657600080fd5b50565b6000813590506139d8816139b2565b92915050565b6000602082840312156139f4576139f3613746565b5b6000613a02848285016139c9565b91505092915050565b613a148161382b565b82525050565b6000602082019050613a2f6000830184613a0b565b92915050565b60008060408385031215613a4c57613a4b613746565b5b6000613a5a85828601613854565b9250506020613a6b858286016139c9565b9150509250929050565b6000819050919050565b613a8881613a75565b8114613a9357600080fd5b50565b600081359050613aa581613a7f565b92915050565b600060208284031215613ac157613ac0613746565b5b6000613acf84828501613a96565b91505092915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613b1a8261393c565b810181811067ffffffffffffffff82111715613b3957613b38613ae2565b5b80604052505050565b6000613b4c61373c565b9050613b588282613b11565b919050565b600067ffffffffffffffff821115613b7857613b77613ae2565b5b613b818261393c565b9050602081019050919050565b82818337600083830152505050565b6000613bb0613bab84613b5d565b613b42565b905082815260208101848484011115613bcc57613bcb613add565b5b613bd7848285613b8e565b509392505050565b600082601f830112613bf457613bf3613ad8565b5b8135613c04848260208601613b9d565b91505092915050565b600080600080600060a08688031215613c2957613c28613746565b5b6000613c37888289016139c9565b9550506020613c48888289016139c9565b9450506040613c59888289016139c9565b935050606086013567ffffffffffffffff811115613c7a57613c7961374b565b5b613c8688828901613bdf565b9250506080613c9788828901613854565b9150509295509295909350565b613cad816139a8565b82525050565b6000602082019050613cc86000830184613ca4565b92915050565b600080600060608486031215613ce757613ce6613746565b5b6000613cf586828701613854565b9350506020613d0686828701613854565b9250506040613d17868287016139c9565b9150509250925092565b613d2a81613a75565b82525050565b6000602082019050613d456000830184613d21565b92915050565b60008060408385031215613d6257613d61613746565b5b6000613d70858286016139c9565b9250506020613d81858286016139c9565b9150509250929050565b6000604082019050613da06000830185613a0b565b613dad6020830184613ca4565b9392505050565b60008060408385031215613dcb57613dca613746565b5b6000613dd985828601613a96565b9250506020613dea85828601613854565b9150509250929050565b600060208284031215613e0a57613e09613746565b5b600082013567ffffffffffffffff811115613e2857613e2761374b565b5b613e3484828501613bdf565b91505092915050565b600060208284031215613e5357613e52613746565b5b6000613e6184828501613854565b91505092915050565b600060ff82169050919050565b613e8081613e6a565b82525050565b6000602082019050613e9b6000830184613e77565b92915050565b613eaa816137d5565b8114613eb557600080fd5b50565b600081359050613ec781613ea1565b92915050565b60008060408385031215613ee457613ee3613746565b5b6000613ef285828601613854565b9250506020613f0385828601613eb8565b9150509250929050565b600067ffffffffffffffff821115613f2857613f27613ae2565b5b613f318261393c565b9050602081019050919050565b6000613f51613f4c84613f0d565b613b42565b905082815260208101848484011115613f6d57613f6c613add565b5b613f78848285613b8e565b509392505050565b600082601f830112613f9557613f94613ad8565b5b8135613fa5848260208601613f3e565b91505092915050565b600067ffffffffffffffff821115613fc957613fc8613ae2565b5b602082029050602081019050919050565b600080fd5b6000613ff2613fed84613fae565b613b42565b9050808382526020820190506020840283018581111561401557614014613fda565b5b835b8181101561403e578061402a8882613a96565b845260208401935050602081019050614017565b5050509392505050565b600082601f83011261405d5761405c613ad8565b5b813561406d848260208601613fdf565b91505092915050565b60008060006060848603121561408f5761408e613746565b5b600061409d868287016139c9565b935050602084013567ffffffffffffffff8111156140be576140bd61374b565b5b6140ca86828701613f80565b925050604084013567ffffffffffffffff8111156140eb576140ea61374b565b5b6140f786828701614048565b9150509250925092565b6000806000806080858703121561411b5761411a613746565b5b600061412987828801613854565b945050602061413a87828801613854565b935050604061414b878288016139c9565b925050606085013567ffffffffffffffff81111561416c5761416b61374b565b5b61417887828801613f80565b91505092959194509250565b6000806040838503121561419b5761419a613746565b5b60006141a985828601613854565b92505060206141ba85828601613854565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061420b57607f821691505b6020821081141561421f5761421e6141c4565b5b50919050565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b6000614281602c836138f8565b915061428c82614225565b604082019050919050565b600060208201905081810360008301526142b081614274565b9050919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b60006143136021836138f8565b915061431e826142b7565b604082019050919050565b6000602082019050818103600083015261434281614306565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b60006143a56038836138f8565b91506143b082614349565b604082019050919050565b600060208201905081810360008301526143d481614398565b9050919050565b7f4e42485a3a20416c726561647920616374697661746564000000000000000000600082015250565b60006144116017836138f8565b915061441c826143db565b602082019050919050565b6000602082019050818103600083015261444081614404565b9050919050565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b60006144a36031836138f8565b91506144ae82614447565b604082019050919050565b600060208201905081810360008301526144d281614496565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614513826139a8565b915061451e836139a8565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614557576145566144d9565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061459c826139a8565b91506145a7836139a8565b9250826145b7576145b6614562565b5b828204905092915050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b600061461e602f836138f8565b9150614629826145c2565b604082019050919050565b6000602082019050818103600083015261464d81614611565b9050919050565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b60006146b06029836138f8565b91506146bb82614654565b604082019050919050565b600060208201905081810360008301526146df816146a3565b9050919050565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b6000614742602a836138f8565b915061474d826146e6565b604082019050919050565b6000602082019050818103600083015261477181614735565b9050919050565b7f4e42485a3a2043616e206e6f74206d696e740000000000000000000000000000600082015250565b60006147ae6012836138f8565b91506147b982614778565b602082019050919050565b600060208201905081810360008301526147dd816147a1565b9050919050565b7f4e42485a3a20496e76616c696420746f6b656e49640000000000000000000000600082015250565b600061481a6015836138f8565b9150614825826147e4565b602082019050919050565b600060208201905081810360008301526148498161480d565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b60006148ac602f836138f8565b91506148b782614850565b604082019050919050565b600060208201905081810360008301526148db8161489f565b9050919050565b600081905092915050565b60006148f8826138ed565b61490281856148e2565b9350614912818560208601613909565b80840191505092915050565b600061492a82856148ed565b915061493682846148ed565b91508190509392505050565b7f4e42485a3a2043616e206e6f7420676976656177617900000000000000000000600082015250565b60006149786016836138f8565b915061498382614942565b602082019050919050565b600060208201905081810360008301526149a78161496b565b9050919050565b60006149b9826139a8565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156149ec576149eb6144d9565b5b600182019050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614a2d6020836138f8565b9150614a38826149f7565b602082019050919050565b60006020820190508181036000830152614a5c81614a20565b9050919050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b6000614a996017836148e2565b9150614aa482614a63565b601782019050919050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b6000614ae56011836148e2565b9150614af082614aaf565b601182019050919050565b6000614b0682614a8c565b9150614b1282856148ed565b9150614b1d82614ad8565b9150614b2982846148ed565b91508190509392505050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b6000614b91602a836138f8565b9150614b9c82614b35565b604082019050919050565b60006020820190508181036000830152614bc081614b84565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b6000614bfd6019836138f8565b9150614c0882614bc7565b602082019050919050565b60006020820190508181036000830152614c2c81614bf0565b9050919050565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b6000614c8f602c836138f8565b9150614c9a82614c33565b604082019050919050565b60006020820190508181036000830152614cbe81614c82565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b6000614d216025836138f8565b9150614d2c82614cc5565b604082019050919050565b60006020820190508181036000830152614d5081614d14565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000614db36024836138f8565b9150614dbe82614d57565b604082019050919050565b60006020820190508181036000830152614de281614da6565b9050919050565b6000614df4826139a8565b9150614dff836139a8565b925082821015614e1257614e116144d9565b5b828203905092915050565b6000614e28826139a8565b9150614e33836139a8565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614e6857614e676144d9565b5b828201905092915050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000614ea96019836138f8565b9150614eb482614e73565b602082019050919050565b60006020820190508181036000830152614ed881614e9c565b9050919050565b60008160601b9050919050565b6000614ef782614edf565b9050919050565b6000614f0982614eec565b9050919050565b614f21614f1c8261382b565b614efe565b82525050565b6000614f338284614f10565b60148201915081905092915050565b6000614f4d82613e6a565b915060ff821415614f6157614f606144d9565b5b600182019050919050565b7f4e42485a3a20496e76616c696420616d6f756e74000000000000000000000000600082015250565b6000614fa26014836138f8565b9150614fad82614f6c565b602082019050919050565b60006020820190508181036000830152614fd181614f95565b9050919050565b7f4e42485a3a20526561636820746f74616c20737570706c790000000000000000600082015250565b600061500e6018836138f8565b915061501982614fd8565b602082019050919050565b6000602082019050818103600083015261503d81615001565b9050919050565b6000819050919050565b61505f61505a826139a8565b615044565b82525050565b60006150718285614f10565b601482019150615081828461504e565b6020820191508190509392505050565b7f4e42485a3a2053616c7420757365640000000000000000000000000000000000600082015250565b60006150c7600f836138f8565b91506150d282615091565b602082019050919050565b600060208201905081810360008301526150f6816150ba565b9050919050565b7f4e42485a3a20556e617574686f72697a65640000000000000000000000000000600082015250565b60006151336012836138f8565b915061513e826150fd565b602082019050919050565b6000602082019050818103600083015261516281615126565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b60006151c56032836138f8565b91506151d082615169565b604082019050919050565b600060208201905081810360008301526151f4816151b8565b9050919050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b60006152316020836138f8565b915061523c826151fb565b602082019050919050565b6000602082019050818103600083015261526081615224565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b600061529d601c836138f8565b91506152a882615267565b602082019050919050565b600060208201905081810360008301526152cc81615290565b9050919050565b60006152de826139a8565b91506152e9836139a8565b9250826152f9576152f8614562565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600061533e826139a8565b91506000821415615352576153516144d9565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b60006153936020836138f8565b915061539e8261535d565b602082019050919050565b600060208201905081810360008301526153c281615386565b9050919050565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b60006153ff601c836148e2565b915061540a826153c9565b601c82019050919050565b6000819050919050565b61543061542b82613a75565b615415565b82525050565b6000615441826153f2565b915061544d828461541f565b60208201915081905092915050565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b6000615492601d836138f8565b915061549d8261545c565b602082019050919050565b600060208201905081810360008301526154c181615485565b9050919050565b600081905092915050565b50565b60006154e36000836154c8565b91506154ee826154d3565b600082019050919050565b6000615504826154d6565b9150819050919050565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b600061556a603a836138f8565b91506155758261550e565b604082019050919050565b600060208201905081810360008301526155998161555d565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006155c7826155a0565b6155d181856155ab565b93506155e1818560208601613909565b6155ea8161393c565b840191505092915050565b600060808201905061560a6000830187613a0b565b6156176020830186613a0b565b6156246040830185613ca4565b818103606083015261563681846155bc565b905095945050505050565b6000815190506156508161377c565b92915050565b60006020828403121561566c5761566b613746565b5b600061567a84828501615641565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b60006156e86018836138f8565b91506156f3826156b2565b602082019050919050565b60006020820190508181036000830152615717816156db565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b6000615754601f836138f8565b915061575f8261571e565b602082019050919050565b6000602082019050818103600083015261578381615747565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b60006157e66022836138f8565b91506157f18261578a565b604082019050919050565b60006020820190508181036000830152615815816157d9565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b60006158786022836138f8565b91506158838261581c565b604082019050919050565b600060208201905081810360008301526158a78161586b565b9050919050565b60006080820190506158c36000830187613d21565b6158d06020830186613e77565b6158dd6040830185613d21565b6158ea6060830184613d21565b9594505050505056fea2646970667358221220718997124c517190e1f6fc0450699f15027f34469affc071b1de3c46be39c03464736f6c634300080c0033
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.