Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
3,714 MBLZMG
Holders
432
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 MBLZMGLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
MetaBlazeMetaGoblins
Compiler Version
v0.8.13+commit.abaa5c0e
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
/* Crafted with love by Metablaze */ //SPDX-License-Identifier: MIT pragma solidity ^0.8.13; //200NFTs contract, receive the royalties from 10000NFTs contract import '@openzeppelin/contracts/access/Ownable.sol'; import "@openzeppelin/contracts/access/AccessControl.sol"; import '@openzeppelin/contracts/utils/Strings.sol'; import "./ERC721ARoyalty.sol"; contract MetaBlazeMetaGoblins is ERC721ARoyalty, Ownable, AccessControl { event NewPhase(uint8 phase); using Strings for uint256; // 10 phases of 1000 Nfts each uint256 private constant PHASE_SIZE = 1000; uint256 private constant AIRDROP_SIZE = 1000; uint256 private constant MAX_AIRDROP = 250; uint256 private _maxSupply = 10000; uint256 private _airdroppedTokens; bytes32 public constant AIRDROP_ROLE = keccak256("AIRDROP_ROLE"); uint8 public currentPhase; uint256 public salePrice = 0.2 ether; string private _baseUri; mapping(uint8 => uint256) public phaseMintedTokens; constructor( string memory name, string memory symbol, uint96 feeNumerator, address royaltyReceiver, address airdropRole ) ERC721A(name, symbol) { _setDefaultRoyalty(royaltyReceiver, feeNumerator); _setupRole(DEFAULT_ADMIN_ROLE, _msgSender()); _setupRole(AIRDROP_ROLE, airdropRole); } function setBaseURI(string memory baseUri) external onlyOwner { _baseUri = baseUri; } /// @dev override base uri. It will be combined with token ID function _baseURI() internal view override returns (string memory) { return _baseUri; } function setNextPhase() external onlyOwner { require(currentPhase < 8, "All phases done"); currentPhase += 1; emit NewPhase(currentPhase); } function setSalePrice(uint256 newSalePrice) external onlyOwner { require(newSalePrice > 0, "Wrong sale price"); salePrice = newSalePrice; } function reduceMaxSupply(uint256 newMaxSupply) external onlyOwner { require(newMaxSupply < _maxSupply, "New max supply exceeds max supply"); require(totalSupply() <= newMaxSupply, "Total supply exceeds new max supply"); _maxSupply = newMaxSupply; } function airdrop(address[] memory receivers) external onlyRole(AIRDROP_ROLE) { uint256 size = receivers.length; require(size <= MAX_AIRDROP, "Receiver array too long"); require(_airdroppedTokens + size <= AIRDROP_SIZE, "Exceeds airdrop size"); require(totalSupply() + size <= _maxSupply, "Exceeds max supply"); _airdroppedTokens += size; for(uint16 i; i < size; i++) { _safeMint(receivers[i], 1); } } function mint(uint256 quantity) external payable { uint8 phase = currentPhase; require(quantity > 0, "Wrong Quantity"); require(totalSupply() + quantity <= _maxSupply, "Exceeds max supply"); require(msg.value == salePrice*quantity, "Wrong mint price"); address sender = _msgSender(); phaseMintedTokens[phase] += quantity; require(phaseMintedTokens[phase] <= PHASE_SIZE, "Reached phase size"); _safeMint(sender, quantity); } /** Royalties */ function setDefaultRoyalty(address receiver, uint96 feeNumerator) external onlyOwner { _setDefaultRoyalty(receiver, feeNumerator); } function withdraw(address payable receiver) external onlyOwner { receiver.transfer(address(this).balance); } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721ARoyalty, AccessControl) returns (bool) { return super.supportsInterface(interfaceId); } function tokenURI(uint256 tokenId) override public view returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string( abi.encodePacked( baseURI, tokenId.toString(), ".json" )) : ''; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/ERC721Royalty.sol) pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/common/ERC2981.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; import "./ERC721A.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 ERC721ARoyalty is ERC2981, ERC721A { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721A, 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.7.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); _; } /** * @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 `_msgSender()` is missing `role`. * Overriding this function changes the behavior of the {onlyRole} modifier. * * Format of the revert message is described in {_checkRole}. * * _Available since v4.6._ */ function _checkRole(bytes32 role) internal view virtual { _checkRole(role, _msgSender()); } /** * @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. * * May emit a {RoleGranted} event. */ 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. * * May emit a {RoleRevoked} event. */ 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`. * * May emit a {RoleRevoked} event. */ 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. * * May emit a {RoleGranted} event. * * [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. * * May emit a {RoleGranted} event. */ 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. * * May emit a {RoleRevoked} event. */ 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.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @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); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // Creator: Chiru Labs // Fork of ERC721A.sol (it's not the same one as on npm package erc721a because this one has extension methods removed) pragma solidity ^0.8.4; import '@openzeppelin/contracts/token/ERC721/IERC721.sol'; import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol'; import '@openzeppelin/contracts/utils/Address.sol'; import '@openzeppelin/contracts/utils/Context.sol'; import '@openzeppelin/contracts/utils/Strings.sol'; import '@openzeppelin/contracts/utils/introspection/ERC165.sol'; error ApprovalCallerNotOwnerNorApproved(); error ApprovalQueryForNonexistentToken(); error ApproveToCaller(); error ApprovalToCurrentOwner(); error BalanceQueryForZeroAddress(); error MintedQueryForZeroAddress(); error BurnedQueryForZeroAddress(); error MintToZeroAddress(); error MintZeroQuantity(); error OwnerIndexOutOfBounds(); error OwnerQueryForNonexistentToken(); error TokenIndexOutOfBounds(); error TransferCallerNotOwnerNorApproved(); error TransferFromIncorrectOwner(); error TransferToNonERC721ReceiverImplementer(); error TransferToZeroAddress(); error URIQueryForNonexistentToken(); /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable { using Address for address; using Strings for uint256; // Compiler will pack this into a single 256bit word. struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; } // Compiler will pack this into a single 256bit word. struct AddressData { // Realistically, 2**64-1 is more than enough. uint64 balance; // Keeps track of mint count with minimal overhead for tokenomics. uint64 numberMinted; // Keeps track of burn count with minimal overhead for tokenomics. uint64 numberBurned; } // The tokenId of the next token to be minted. uint256 internal _currentIndex; // The number of tokens burned. uint256 internal _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. See ownershipOf implementation for details. mapping(uint256 => TokenOwnership) internal _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // 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; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than _currentIndex times unchecked { return _currentIndex - _burnCounter; } } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. * This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first. * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) { if (index >= balanceOf(owner)) revert OwnerIndexOutOfBounds(); uint256 numMintedSoFar = _currentIndex; uint256 tokenIdsIdx; address currOwnershipAddr; // Counter overflow is impossible as the loop breaks when // uint256 i is equal to another uint256 numMintedSoFar. unchecked { for (uint256 i; i < numMintedSoFar; i++) { TokenOwnership memory ownership = _ownerships[i]; if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { if (tokenIdsIdx == index) { return i; } tokenIdsIdx++; } } } // Execution should never reach this point. revert(); } /** * @dev See {IERC721Enumerable-tokenByIndex}. * This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first. * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case. */ function tokenByIndex(uint256 index) public view override returns (uint256) { uint256 numMintedSoFar = _currentIndex; uint256 tokenIdsIdx; // Counter overflow is impossible as the loop breaks when // uint256 i is equal to another uint256 numMintedSoFar. unchecked { for (uint256 i; i < numMintedSoFar; i++) { TokenOwnership memory ownership = _ownerships[i]; if (!ownership.burned) { if (tokenIdsIdx == index) { return i; } tokenIdsIdx++; } } } revert TokenIndexOutOfBounds(); } /** * @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 override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return uint256(_addressData[owner].balance); } function _numberMinted(address owner) internal view returns (uint256) { if (owner == address(0)) revert MintedQueryForZeroAddress(); return uint256(_addressData[owner].numberMinted); } function _numberBurned(address owner) internal view returns (uint256) { if (owner == address(0)) revert BurnedQueryForZeroAddress(); return uint256(_addressData[owner].numberBurned); } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { uint256 curr = tokenId; unchecked { if (curr < _currentIndex) { TokenOwnership memory ownership = _ownerships[curr]; if (!ownership.burned) { if (ownership.addr != address(0)) { return ownership; } // Invariant: // There will always be an ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. while (true) { curr--; ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } } } } revert OwnerQueryForNonexistentToken(); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return ownershipOf(tokenId).addr; } /** * @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) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); 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 override { address owner = ERC721A.ownerOf(tokenId); if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) { revert ApprovalCallerNotOwnerNorApproved(); } _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public override { if (operator == _msgSender()) revert ApproveToCaller(); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { _transfer(from, to, tokenId); if (!_checkOnERC721Received(from, to, tokenId, "")) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { _transfer(from, to, tokenId); if (!_checkOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @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`), */ function _exists(uint256 tokenId) internal view returns (bool) { return tokenId < _currentIndex && !_ownerships[tokenId].burned; } function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { _mint(to, quantity, _data, true); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _mint( address to, uint256 quantity, bytes memory _data, bool safe ) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; for (uint256 i; i < quantity; i++) { emit Transfer(address(0), to, updatedIndex); if (safe && !_checkOnERC721Received(address(0), to, updatedIndex, _data)) { revert TransferToNonERC721ReceiverImplementer(); } updatedIndex++; } _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * 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 ) private { TokenOwnership memory prevOwnership = ownershipOf(tokenId); bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr || isApprovedForAll(prevOwnership.addr, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (prevOwnership.addr != from) revert TransferFromIncorrectOwner(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { _addressData[from].balance -= 1; _addressData[to].balance += 1; _ownerships[tokenId].addr = to; _ownerships[tokenId].startTimestamp = uint64(block.timestamp); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; if (_ownerships[nextTokenId].addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId < _currentIndex) { _ownerships[nextTokenId].addr = prevOwnership.addr; _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @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 { TokenOwnership memory prevOwnership = ownershipOf(tokenId); _beforeTokenTransfers(prevOwnership.addr, address(0), tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { _addressData[prevOwnership.addr].balance -= 1; _addressData[prevOwnership.addr].numberBurned += 1; // Keep track of who burned the token, and the timestamp of burning. _ownerships[tokenId].addr = prevOwnership.addr; _ownerships[tokenId].startTimestamp = uint64(block.timestamp); _ownerships[tokenId].burned = true; // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; if (_ownerships[nextTokenId].addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId < _currentIndex) { _ownerships[nextTokenId].addr = prevOwnership.addr; _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(prevOwnership.addr, address(0), tokenId); _afterTokenTransfers(prevOwnership.addr, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * And also called before burning one token. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * 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, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * And also called after one token has been burned. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.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) public 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: * * - `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 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 (last updated v4.7.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 /// @solidity memory-safe-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.7.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * 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; /** * @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 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 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 the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.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 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 (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.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 (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "../utils/introspection/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 paid 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 (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; }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"},{"internalType":"address","name":"royaltyReceiver","type":"address"},{"internalType":"address","name":"airdropRole","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerIndexOutOfBounds","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TokenIndexOutOfBounds","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"phase","type":"uint8"}],"name":"NewPhase","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"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":"AIRDROP_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"receivers","type":"address[]"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentPhase","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"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":"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":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"","type":"uint8"}],"name":"phaseMintedTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMaxSupply","type":"uint256"}],"name":"reduceMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","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":"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":[],"name":"salePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseUri","type":"string"}],"name":"setBaseURI","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":[],"name":"setNextPhase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newSalePrice","type":"uint256"}],"name":"setSalePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"receiver","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052612710600c556702c68af0bb140000600f553480156200002357600080fd5b506040516200594b3803806200594b8339818101604052810190620000499190620007fa565b8484816004908051906020019062000063929190620004ff565b5080600590805190602001906200007c929190620004ff565b5050506200009f620000936200011260201b60201c565b6200011a60201b60201c565b620000b18284620001e060201b60201c565b620000d56000801b620000c96200011260201b60201c565b6200038260201b60201c565b620001077f3a2f235c9daaf33349d300aadff2f15078a89df81bcfdd45ba11c8f816bddc6f826200038260201b60201c565b505050505062000a3f565b600033905090565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b620001f06200039860201b60201c565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff16111562000251576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620002489062000947565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603620002c3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620002ba90620009b9565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff168152506000808201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b620003948282620003a260201b60201c565b5050565b6000612710905090565b620003b482826200049460201b60201c565b62000490576001600b600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550620004356200011260201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6000600b600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b8280546200050d9062000a0a565b90600052602060002090601f0160209004810192826200053157600085556200057d565b82601f106200054c57805160ff19168380011785556200057d565b828001600101855582156200057d579182015b828111156200057c5782518255916020019190600101906200055f565b5b5090506200058c919062000590565b5090565b5b80821115620005ab57600081600090555060010162000591565b5090565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6200061882620005cd565b810181811067ffffffffffffffff821117156200063a5762000639620005de565b5b80604052505050565b60006200064f620005af565b90506200065d82826200060d565b919050565b600067ffffffffffffffff82111562000680576200067f620005de565b5b6200068b82620005cd565b9050602081019050919050565b60005b83811015620006b85780820151818401526020810190506200069b565b83811115620006c8576000848401525b50505050565b6000620006e5620006df8462000662565b62000643565b905082815260208101848484011115620007045762000703620005c8565b5b6200071184828562000698565b509392505050565b600082601f830112620007315762000730620005c3565b5b815162000743848260208601620006ce565b91505092915050565b60006bffffffffffffffffffffffff82169050919050565b6200076f816200074c565b81146200077b57600080fd5b50565b6000815190506200078f8162000764565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620007c28262000795565b9050919050565b620007d481620007b5565b8114620007e057600080fd5b50565b600081519050620007f481620007c9565b92915050565b600080600080600060a08688031215620008195762000818620005b9565b5b600086015167ffffffffffffffff8111156200083a5762000839620005be565b5b620008488882890162000719565b955050602086015167ffffffffffffffff8111156200086c576200086b620005be565b5b6200087a8882890162000719565b94505060406200088d888289016200077e565b9350506060620008a088828901620007e3565b9250506080620008b388828901620007e3565b9150509295509295909350565b600082825260208201905092915050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b60006200092f602a83620008c0565b91506200093c82620008d1565b604082019050919050565b60006020820190508181036000830152620009628162000920565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b6000620009a1601983620008c0565b9150620009ae8262000969565b602082019050919050565b60006020820190508181036000830152620009d48162000992565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168062000a2357607f821691505b60208210810362000a395762000a38620009db565b5b50919050565b614efc8062000a4f6000396000f3fe6080604052600436106102255760003560e01c80636352211e11610123578063a217fddf116100ab578063d547741f1161006f578063d547741f14610819578063e985e9c514610842578063e988097e1461087f578063f2fde38b146108bc578063f51f96dd146108e557610225565b8063a217fddf14610748578063a22cb46514610773578063b88d4fde1461079c578063c65add85146107c5578063c87b56dd146107dc57610225565b806373532802116100f257806373532802146106705780638da5cb5b1461069957806391d14854146106c457806395d89b4114610701578063a0712d681461072c57610225565b80636352211e146105b657806370a08231146105f3578063715018a614610630578063729ad39e1461064757610225565b806323b872dd116101b157806336568abe1161017557806336568abe146104d557806342842e0e146104fe5780634f6ccce71461052757806351cff8d91461056457806355f804b31461058d57610225565b806323b872dd146103cb578063248a9ca3146103f45780632a55205a146104315780632f2ff15d1461046f5780632f745c591461049857610225565b8063081812fc116101f8578063081812fc146102e6578063095ea7b31461032357806318160ddd1461034c5780631919fed7146103775780631e0fbfa2146103a057610225565b806301ffc9a71461022a57806304634d8d14610267578063055ad42e1461029057806306fdde03146102bb575b600080fd5b34801561023657600080fd5b50610251600480360381019061024c91906137c2565b610910565b60405161025e919061380a565b60405180910390f35b34801561027357600080fd5b5061028e600480360381019061028991906138c7565b610922565b005b34801561029c57600080fd5b506102a5610938565b6040516102b29190613923565b60405180910390f35b3480156102c757600080fd5b506102d061094b565b6040516102dd91906139d7565b60405180910390f35b3480156102f257600080fd5b5061030d60048036038101906103089190613a2f565b6109dd565b60405161031a9190613a6b565b60405180910390f35b34801561032f57600080fd5b5061034a60048036038101906103459190613a86565b610a59565b005b34801561035857600080fd5b50610361610b63565b60405161036e9190613ad5565b60405180910390f35b34801561038357600080fd5b5061039e60048036038101906103999190613a2f565b610b71565b005b3480156103ac57600080fd5b506103b5610bc6565b6040516103c29190613b09565b60405180910390f35b3480156103d757600080fd5b506103f260048036038101906103ed9190613b24565b610bea565b005b34801561040057600080fd5b5061041b60048036038101906104169190613ba3565b610bfa565b6040516104289190613b09565b60405180910390f35b34801561043d57600080fd5b5061045860048036038101906104539190613bd0565b610c1a565b604051610466929190613c10565b60405180910390f35b34801561047b57600080fd5b5061049660048036038101906104919190613c39565b610e04565b005b3480156104a457600080fd5b506104bf60048036038101906104ba9190613a86565b610e25565b6040516104cc9190613ad5565b60405180910390f35b3480156104e157600080fd5b506104fc60048036038101906104f79190613c39565b610ffd565b005b34801561050a57600080fd5b5061052560048036038101906105209190613b24565b611080565b005b34801561053357600080fd5b5061054e60048036038101906105499190613a2f565b6110e1565b60405161055b9190613ad5565b60405180910390f35b34801561057057600080fd5b5061058b60048036038101906105869190613cb7565b611225565b005b34801561059957600080fd5b506105b460048036038101906105af9190613e19565b611277565b005b3480156105c257600080fd5b506105dd60048036038101906105d89190613a2f565b611299565b6040516105ea9190613a6b565b60405180910390f35b3480156105ff57600080fd5b5061061a60048036038101906106159190613e62565b6112af565b6040516106279190613ad5565b60405180910390f35b34801561063c57600080fd5b5061064561137e565b005b34801561065357600080fd5b5061066e60048036038101906106699190613f57565b611392565b005b34801561067c57600080fd5b5061069760048036038101906106929190613a2f565b611519565b005b3480156106a557600080fd5b506106ae6115b9565b6040516106bb9190613a6b565b60405180910390f35b3480156106d057600080fd5b506106eb60048036038101906106e69190613c39565b6115e3565b6040516106f8919061380a565b60405180910390f35b34801561070d57600080fd5b5061071661164e565b60405161072391906139d7565b60405180910390f35b61074660048036038101906107419190613a2f565b6116e0565b005b34801561075457600080fd5b5061075d611886565b60405161076a9190613b09565b60405180910390f35b34801561077f57600080fd5b5061079a60048036038101906107959190613fcc565b61188d565b005b3480156107a857600080fd5b506107c360048036038101906107be91906140ad565b611a04565b005b3480156107d157600080fd5b506107da611a57565b005b3480156107e857600080fd5b5061080360048036038101906107fe9190613a2f565b611b33565b60405161081091906139d7565b60405180910390f35b34801561082557600080fd5b50610840600480360381019061083b9190613c39565b611bd1565b005b34801561084e57600080fd5b5061086960048036038101906108649190614130565b611bf2565b604051610876919061380a565b60405180910390f35b34801561088b57600080fd5b506108a660048036038101906108a1919061419c565b611c86565b6040516108b39190613ad5565b60405180910390f35b3480156108c857600080fd5b506108e360048036038101906108de9190613e62565b611c9e565b005b3480156108f157600080fd5b506108fa611d21565b6040516109079190613ad5565b60405180910390f35b600061091b82611d27565b9050919050565b61092a611da1565b6109348282611e1f565b5050565b600e60009054906101000a900460ff1681565b60606004805461095a906141f8565b80601f0160208091040260200160405190810160405280929190818152602001828054610986906141f8565b80156109d35780601f106109a8576101008083540402835291602001916109d3565b820191906000526020600020905b8154815290600101906020018083116109b657829003601f168201915b5050505050905090565b60006109e882611fb3565b610a1e576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6008600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610a6482611299565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610acb576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610aea611fee565b73ffffffffffffffffffffffffffffffffffffffff1614158015610b1c5750610b1a81610b15611fee565b611bf2565b155b15610b53576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610b5e838383611ff6565b505050565b600060035460025403905090565b610b79611da1565b60008111610bbc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bb390614275565b60405180910390fd5b80600f8190555050565b7f3a2f235c9daaf33349d300aadff2f15078a89df81bcfdd45ba11c8f816bddc6f81565b610bf58383836120a8565b505050565b6000600b6000838152602001908152602001600020600101549050919050565b6000806000600160008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1603610daf5760006040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b6000610db9612597565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff1686610de591906142c4565b610def919061434d565b90508160000151819350935050509250929050565b610e0d82610bfa565b610e16816125a1565b610e2083836125b5565b505050565b6000610e30836112af565b8210610e68576040517f0ddac30e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600254905060008060005b83811015610ff1576000600660008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050806040015115610f525750610fe4565b600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614610f9257806000015192505b8773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610fe257868403610fd9578195505050505050610ff7565b83806001019450505b505b8080600101915050610e75565b50600080fd5b92915050565b611005611fee565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611072576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611069906143f0565b60405180910390fd5b61107c8282612696565b5050565b61108b8383836120a8565b6110a683838360405180602001604052806000815250612778565b6110dc576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505050565b60008060025490506000805b828110156111ed576000600660008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff161515151581525050905080604001516111df578583036111d65781945050505050611220565b82806001019350505b5080806001019150506110ed565b506040517fa723001c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b61122d611da1565b8073ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015611273573d6000803e3d6000fd5b5050565b61127f611da1565b8060109080519060200190611295929190613670565b5050565b60006112a4826128f6565b600001519050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611316576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b611386611da1565b6113906000612b72565b565b7f3a2f235c9daaf33349d300aadff2f15078a89df81bcfdd45ba11c8f816bddc6f6113bc816125a1565b60008251905060fa811115611406576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113fd9061445c565b60405180910390fd5b6103e881600d54611417919061447c565b1115611458576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161144f9061451e565b60405180910390fd5b600c5481611464610b63565b61146e919061447c565b11156114af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114a69061458a565b60405180910390fd5b80600d60008282546114c1919061447c565b9250508190555060005b818161ffff16101561151357611500848261ffff16815181106114f1576114f06145aa565b5b60200260200101516001612c38565b808061150b906145e7565b9150506114cb565b50505050565b611521611da1565b600c548110611565576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161155c90614683565b60405180910390fd5b8061156e610b63565b11156115af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115a690614715565b60405180910390fd5b80600c8190555050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000600b600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60606005805461165d906141f8565b80601f0160208091040260200160405190810160405280929190818152602001828054611689906141f8565b80156116d65780601f106116ab576101008083540402835291602001916116d6565b820191906000526020600020905b8154815290600101906020018083116116b957829003601f168201915b5050505050905090565b6000600e60009054906101000a900460ff16905060008211611737576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161172e90614781565b60405180910390fd5b600c5482611743610b63565b61174d919061447c565b111561178e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117859061458a565b60405180910390fd5b81600f5461179c91906142c4565b34146117dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117d4906147ed565b60405180910390fd5b60006117e7611fee565b905082601160008460ff1660ff1681526020019081526020016000206000828254611812919061447c565b925050819055506103e8601160008460ff1660ff168152602001908152602001600020541115611877576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161186e90614859565b60405180910390fd5b6118818184612c38565b505050565b6000801b81565b611895611fee565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036118f9576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060096000611906611fee565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166119b3611fee565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516119f8919061380a565b60405180910390a35050565b611a0f8484846120a8565b611a1b84848484612778565b611a51576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b611a5f611da1565b6008600e60009054906101000a900460ff1660ff1610611ab4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aab906148c5565b60405180910390fd5b6001600e60008282829054906101000a900460ff16611ad391906148e5565b92506101000a81548160ff021916908360ff1602179055507f31f72b44f546d9e7eaec13f65636997665e15f134a81c82924f568f5c0d07b93600e60009054906101000a900460ff16604051611b299190613923565b60405180910390a1565b6060611b3e82611fb3565b611b74576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611b7e612c56565b90506000815103611b9e5760405180602001604052806000815250611bc9565b80611ba884612ce8565b604051602001611bb99291906149a4565b6040516020818303038152906040525b915050919050565b611bda82610bfa565b611be3816125a1565b611bed8383612696565b505050565b6000600960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60116020528060005260406000206000915090505481565b611ca6611da1565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611d15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d0c90614a45565b60405180910390fd5b611d1e81612b72565b50565b600f5481565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611d9a5750611d9982612e48565b5b9050919050565b611da9611fee565b73ffffffffffffffffffffffffffffffffffffffff16611dc76115b9565b73ffffffffffffffffffffffffffffffffffffffff1614611e1d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e1490614ab1565b60405180910390fd5b565b611e27612597565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115611e85576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e7c90614b43565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611ef4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611eeb90614baf565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff168152506000808201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b600060025482108015611fe7575060066000838152602001908152602001600020600001601c9054906101000a900460ff16155b9050919050565b600033905090565b826008600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60006120b3826128f6565b90506000816000015173ffffffffffffffffffffffffffffffffffffffff166120da611fee565b73ffffffffffffffffffffffffffffffffffffffff16148061210d575061210c8260000151612107611fee565b611bf2565b5b80612152575061211b611fee565b73ffffffffffffffffffffffffffffffffffffffff1661213a846109dd565b73ffffffffffffffffffffffffffffffffffffffff16145b90508061218b576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff16146121f4576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff160361225a576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6122678585856001612e5a565b6122776000848460000151611ff6565b6001600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506001600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550836006600085815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426006600085815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600184019050600073ffffffffffffffffffffffffffffffffffffffff166006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603612527576002548110156125265782600001516006600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082602001516006600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b50828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46125908585856001612e60565b5050505050565b6000612710905090565b6125b2816125ad611fee565b612e66565b50565b6125bf82826115e3565b612692576001600b600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550612637611fee565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6126a082826115e3565b15612774576000600b600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550612719611fee565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b60006127998473ffffffffffffffffffffffffffffffffffffffff16612f03565b156128e9578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026127c2611fee565b8786866040518563ffffffff1660e01b81526004016127e49493929190614c24565b6020604051808303816000875af192505050801561282057506040513d601f19601f8201168201806040525081019061281d9190614c85565b60015b612899573d8060008114612850576040519150601f19603f3d011682016040523d82523d6000602084013e612855565b606091505b506000815103612891576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506128ee565b600190505b949350505050565b6128fe6136f6565b6000829050600254811015612b3b576000600660008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff16151515158152505090508060400151612b3957600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612a1d578092505050612b6d565b5b600115612b3857818060019003925050600660008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612b33578092505050612b6d565b612a1e565b5b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612c52828260405180602001604052806000815250612f26565b5050565b606060108054612c65906141f8565b80601f0160208091040260200160405190810160405280929190818152602001828054612c91906141f8565b8015612cde5780601f10612cb357610100808354040283529160200191612cde565b820191906000526020600020905b815481529060010190602001808311612cc157829003601f168201915b5050505050905090565b606060008203612d2f576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612e43565b600082905060005b60008214612d61578080612d4a90614cb2565b915050600a82612d5a919061434d565b9150612d37565b60008167ffffffffffffffff811115612d7d57612d7c613cee565b5b6040519080825280601f01601f191660200182016040528015612daf5781602001600182028036833780820191505090505b5090505b60008514612e3c57600182612dc89190614cfa565b9150600a85612dd79190614d2e565b6030612de3919061447c565b60f81b818381518110612df957612df86145aa565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612e35919061434d565b9450612db3565b8093505050505b919050565b6000612e5382612f38565b9050919050565b50505050565b50505050565b612e7082826115e3565b612eff57612e958173ffffffffffffffffffffffffffffffffffffffff16601461301a565b612ea38360001c602061301a565b604051602001612eb4929190614df7565b6040516020818303038152906040526040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ef691906139d7565b60405180910390fd5b5050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b612f338383836001613256565b505050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061300357507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061301357506130128261358c565b5b9050919050565b60606000600283600261302d91906142c4565b613037919061447c565b67ffffffffffffffff8111156130505761304f613cee565b5b6040519080825280601f01601f1916602001820160405280156130825781602001600182028036833780820191505090505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106130ba576130b96145aa565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061311e5761311d6145aa565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000600184600261315e91906142c4565b613168919061447c565b90505b6001811115613208577f3031323334353637383961626364656600000000000000000000000000000000600f8616601081106131aa576131a96145aa565b5b1a60f81b8282815181106131c1576131c06145aa565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c94508061320190614e31565b905061316b565b506000841461324c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161324390614ea6565b60405180910390fd5b8091505092915050565b60006002549050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16036132c3576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600084036132fd576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61330a6000868387612e5a565b83600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555083600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160088282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550846006600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426006600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600081905060005b8581101561356f57818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a483801561352357506135216000888488612778565b155b1561355a576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818060010192505080806001019150506134a8565b5080600281905550506135856000868387612e60565b5050505050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806135ff57506135fe82613606565b5b9050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b82805461367c906141f8565b90600052602060002090601f01602090048101928261369e57600085556136e5565b82601f106136b757805160ff19168380011785556136e5565b828001600101855582156136e5579182015b828111156136e45782518255916020019190600101906136c9565b5b5090506136f29190613739565b5090565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681526020016000151581525090565b5b8082111561375257600081600090555060010161373a565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61379f8161376a565b81146137aa57600080fd5b50565b6000813590506137bc81613796565b92915050565b6000602082840312156137d8576137d7613760565b5b60006137e6848285016137ad565b91505092915050565b60008115159050919050565b613804816137ef565b82525050565b600060208201905061381f60008301846137fb565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061385082613825565b9050919050565b61386081613845565b811461386b57600080fd5b50565b60008135905061387d81613857565b92915050565b60006bffffffffffffffffffffffff82169050919050565b6138a481613883565b81146138af57600080fd5b50565b6000813590506138c18161389b565b92915050565b600080604083850312156138de576138dd613760565b5b60006138ec8582860161386e565b92505060206138fd858286016138b2565b9150509250929050565b600060ff82169050919050565b61391d81613907565b82525050565b60006020820190506139386000830184613914565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561397857808201518184015260208101905061395d565b83811115613987576000848401525b50505050565b6000601f19601f8301169050919050565b60006139a98261393e565b6139b38185613949565b93506139c381856020860161395a565b6139cc8161398d565b840191505092915050565b600060208201905081810360008301526139f1818461399e565b905092915050565b6000819050919050565b613a0c816139f9565b8114613a1757600080fd5b50565b600081359050613a2981613a03565b92915050565b600060208284031215613a4557613a44613760565b5b6000613a5384828501613a1a565b91505092915050565b613a6581613845565b82525050565b6000602082019050613a806000830184613a5c565b92915050565b60008060408385031215613a9d57613a9c613760565b5b6000613aab8582860161386e565b9250506020613abc85828601613a1a565b9150509250929050565b613acf816139f9565b82525050565b6000602082019050613aea6000830184613ac6565b92915050565b6000819050919050565b613b0381613af0565b82525050565b6000602082019050613b1e6000830184613afa565b92915050565b600080600060608486031215613b3d57613b3c613760565b5b6000613b4b8682870161386e565b9350506020613b5c8682870161386e565b9250506040613b6d86828701613a1a565b9150509250925092565b613b8081613af0565b8114613b8b57600080fd5b50565b600081359050613b9d81613b77565b92915050565b600060208284031215613bb957613bb8613760565b5b6000613bc784828501613b8e565b91505092915050565b60008060408385031215613be757613be6613760565b5b6000613bf585828601613a1a565b9250506020613c0685828601613a1a565b9150509250929050565b6000604082019050613c256000830185613a5c565b613c326020830184613ac6565b9392505050565b60008060408385031215613c5057613c4f613760565b5b6000613c5e85828601613b8e565b9250506020613c6f8582860161386e565b9150509250929050565b6000613c8482613825565b9050919050565b613c9481613c79565b8114613c9f57600080fd5b50565b600081359050613cb181613c8b565b92915050565b600060208284031215613ccd57613ccc613760565b5b6000613cdb84828501613ca2565b91505092915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613d268261398d565b810181811067ffffffffffffffff82111715613d4557613d44613cee565b5b80604052505050565b6000613d58613756565b9050613d648282613d1d565b919050565b600067ffffffffffffffff821115613d8457613d83613cee565b5b613d8d8261398d565b9050602081019050919050565b82818337600083830152505050565b6000613dbc613db784613d69565b613d4e565b905082815260208101848484011115613dd857613dd7613ce9565b5b613de3848285613d9a565b509392505050565b600082601f830112613e0057613dff613ce4565b5b8135613e10848260208601613da9565b91505092915050565b600060208284031215613e2f57613e2e613760565b5b600082013567ffffffffffffffff811115613e4d57613e4c613765565b5b613e5984828501613deb565b91505092915050565b600060208284031215613e7857613e77613760565b5b6000613e868482850161386e565b91505092915050565b600067ffffffffffffffff821115613eaa57613ea9613cee565b5b602082029050602081019050919050565b600080fd5b6000613ed3613ece84613e8f565b613d4e565b90508083825260208201905060208402830185811115613ef657613ef5613ebb565b5b835b81811015613f1f5780613f0b888261386e565b845260208401935050602081019050613ef8565b5050509392505050565b600082601f830112613f3e57613f3d613ce4565b5b8135613f4e848260208601613ec0565b91505092915050565b600060208284031215613f6d57613f6c613760565b5b600082013567ffffffffffffffff811115613f8b57613f8a613765565b5b613f9784828501613f29565b91505092915050565b613fa9816137ef565b8114613fb457600080fd5b50565b600081359050613fc681613fa0565b92915050565b60008060408385031215613fe357613fe2613760565b5b6000613ff18582860161386e565b925050602061400285828601613fb7565b9150509250929050565b600067ffffffffffffffff82111561402757614026613cee565b5b6140308261398d565b9050602081019050919050565b600061405061404b8461400c565b613d4e565b90508281526020810184848401111561406c5761406b613ce9565b5b614077848285613d9a565b509392505050565b600082601f83011261409457614093613ce4565b5b81356140a484826020860161403d565b91505092915050565b600080600080608085870312156140c7576140c6613760565b5b60006140d58782880161386e565b94505060206140e68782880161386e565b93505060406140f787828801613a1a565b925050606085013567ffffffffffffffff81111561411857614117613765565b5b6141248782880161407f565b91505092959194509250565b6000806040838503121561414757614146613760565b5b60006141558582860161386e565b92505060206141668582860161386e565b9150509250929050565b61417981613907565b811461418457600080fd5b50565b60008135905061419681614170565b92915050565b6000602082840312156141b2576141b1613760565b5b60006141c084828501614187565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061421057607f821691505b602082108103614223576142226141c9565b5b50919050565b7f57726f6e672073616c6520707269636500000000000000000000000000000000600082015250565b600061425f601083613949565b915061426a82614229565b602082019050919050565b6000602082019050818103600083015261428e81614252565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006142cf826139f9565b91506142da836139f9565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561431357614312614295565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614358826139f9565b9150614363836139f9565b9250826143735761437261431e565b5b828204905092915050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b60006143da602f83613949565b91506143e58261437e565b604082019050919050565b60006020820190508181036000830152614409816143cd565b9050919050565b7f526563656976657220617272617920746f6f206c6f6e67000000000000000000600082015250565b6000614446601783613949565b915061445182614410565b602082019050919050565b6000602082019050818103600083015261447581614439565b9050919050565b6000614487826139f9565b9150614492836139f9565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156144c7576144c6614295565b5b828201905092915050565b7f457863656564732061697264726f702073697a65000000000000000000000000600082015250565b6000614508601483613949565b9150614513826144d2565b602082019050919050565b60006020820190508181036000830152614537816144fb565b9050919050565b7f45786365656473206d617820737570706c790000000000000000000000000000600082015250565b6000614574601283613949565b915061457f8261453e565b602082019050919050565b600060208201905081810360008301526145a381614567565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600061ffff82169050919050565b60006145f2826145d9565b915061ffff820361460657614605614295565b5b600182019050919050565b7f4e6577206d617820737570706c792065786365656473206d617820737570706c60008201527f7900000000000000000000000000000000000000000000000000000000000000602082015250565b600061466d602183613949565b915061467882614611565b604082019050919050565b6000602082019050818103600083015261469c81614660565b9050919050565b7f546f74616c20737570706c792065786365656473206e6577206d61782073757060008201527f706c790000000000000000000000000000000000000000000000000000000000602082015250565b60006146ff602383613949565b915061470a826146a3565b604082019050919050565b6000602082019050818103600083015261472e816146f2565b9050919050565b7f57726f6e67205175616e74697479000000000000000000000000000000000000600082015250565b600061476b600e83613949565b915061477682614735565b602082019050919050565b6000602082019050818103600083015261479a8161475e565b9050919050565b7f57726f6e67206d696e7420707269636500000000000000000000000000000000600082015250565b60006147d7601083613949565b91506147e2826147a1565b602082019050919050565b60006020820190508181036000830152614806816147ca565b9050919050565b7f526561636865642070686173652073697a650000000000000000000000000000600082015250565b6000614843601283613949565b915061484e8261480d565b602082019050919050565b6000602082019050818103600083015261487281614836565b9050919050565b7f416c6c2070686173657320646f6e650000000000000000000000000000000000600082015250565b60006148af600f83613949565b91506148ba82614879565b602082019050919050565b600060208201905081810360008301526148de816148a2565b9050919050565b60006148f082613907565b91506148fb83613907565b92508260ff0382111561491157614910614295565b5b828201905092915050565b600081905092915050565b60006149328261393e565b61493c818561491c565b935061494c81856020860161395a565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b600061498e60058361491c565b915061499982614958565b600582019050919050565b60006149b08285614927565b91506149bc8284614927565b91506149c782614981565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614a2f602683613949565b9150614a3a826149d3565b604082019050919050565b60006020820190508181036000830152614a5e81614a22565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614a9b602083613949565b9150614aa682614a65565b602082019050919050565b60006020820190508181036000830152614aca81614a8e565b9050919050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b6000614b2d602a83613949565b9150614b3882614ad1565b604082019050919050565b60006020820190508181036000830152614b5c81614b20565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b6000614b99601983613949565b9150614ba482614b63565b602082019050919050565b60006020820190508181036000830152614bc881614b8c565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000614bf682614bcf565b614c008185614bda565b9350614c1081856020860161395a565b614c198161398d565b840191505092915050565b6000608082019050614c396000830187613a5c565b614c466020830186613a5c565b614c536040830185613ac6565b8181036060830152614c658184614beb565b905095945050505050565b600081519050614c7f81613796565b92915050565b600060208284031215614c9b57614c9a613760565b5b6000614ca984828501614c70565b91505092915050565b6000614cbd826139f9565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614cef57614cee614295565b5b600182019050919050565b6000614d05826139f9565b9150614d10836139f9565b925082821015614d2357614d22614295565b5b828203905092915050565b6000614d39826139f9565b9150614d44836139f9565b925082614d5457614d5361431e565b5b828206905092915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b6000614d9560178361491c565b9150614da082614d5f565b601782019050919050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b6000614de160118361491c565b9150614dec82614dab565b601182019050919050565b6000614e0282614d88565b9150614e0e8285614927565b9150614e1982614dd4565b9150614e258284614927565b91508190509392505050565b6000614e3c826139f9565b915060008203614e4f57614e4e614295565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b6000614e90602083613949565b9150614e9b82614e5a565b602082019050919050565b60006020820190508181036000830152614ebf81614e83565b905091905056fea26469706673582212208baa29cff45485e2ed4ee93ce260fc3432005b92dbb04974ac979c04f26d685a64736f6c634300080d003300000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000c62317c8fc39a002568a8b50ef2699095e16f37c000000000000000000000000447f9582815fa182311a45cd832eacf8f7d6e1c700000000000000000000000000000000000000000000000000000000000000154d657461426c617a65204d657461476f626c696e73000000000000000000000000000000000000000000000000000000000000000000000000000000000000064d424c5a4d470000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106102255760003560e01c80636352211e11610123578063a217fddf116100ab578063d547741f1161006f578063d547741f14610819578063e985e9c514610842578063e988097e1461087f578063f2fde38b146108bc578063f51f96dd146108e557610225565b8063a217fddf14610748578063a22cb46514610773578063b88d4fde1461079c578063c65add85146107c5578063c87b56dd146107dc57610225565b806373532802116100f257806373532802146106705780638da5cb5b1461069957806391d14854146106c457806395d89b4114610701578063a0712d681461072c57610225565b80636352211e146105b657806370a08231146105f3578063715018a614610630578063729ad39e1461064757610225565b806323b872dd116101b157806336568abe1161017557806336568abe146104d557806342842e0e146104fe5780634f6ccce71461052757806351cff8d91461056457806355f804b31461058d57610225565b806323b872dd146103cb578063248a9ca3146103f45780632a55205a146104315780632f2ff15d1461046f5780632f745c591461049857610225565b8063081812fc116101f8578063081812fc146102e6578063095ea7b31461032357806318160ddd1461034c5780631919fed7146103775780631e0fbfa2146103a057610225565b806301ffc9a71461022a57806304634d8d14610267578063055ad42e1461029057806306fdde03146102bb575b600080fd5b34801561023657600080fd5b50610251600480360381019061024c91906137c2565b610910565b60405161025e919061380a565b60405180910390f35b34801561027357600080fd5b5061028e600480360381019061028991906138c7565b610922565b005b34801561029c57600080fd5b506102a5610938565b6040516102b29190613923565b60405180910390f35b3480156102c757600080fd5b506102d061094b565b6040516102dd91906139d7565b60405180910390f35b3480156102f257600080fd5b5061030d60048036038101906103089190613a2f565b6109dd565b60405161031a9190613a6b565b60405180910390f35b34801561032f57600080fd5b5061034a60048036038101906103459190613a86565b610a59565b005b34801561035857600080fd5b50610361610b63565b60405161036e9190613ad5565b60405180910390f35b34801561038357600080fd5b5061039e60048036038101906103999190613a2f565b610b71565b005b3480156103ac57600080fd5b506103b5610bc6565b6040516103c29190613b09565b60405180910390f35b3480156103d757600080fd5b506103f260048036038101906103ed9190613b24565b610bea565b005b34801561040057600080fd5b5061041b60048036038101906104169190613ba3565b610bfa565b6040516104289190613b09565b60405180910390f35b34801561043d57600080fd5b5061045860048036038101906104539190613bd0565b610c1a565b604051610466929190613c10565b60405180910390f35b34801561047b57600080fd5b5061049660048036038101906104919190613c39565b610e04565b005b3480156104a457600080fd5b506104bf60048036038101906104ba9190613a86565b610e25565b6040516104cc9190613ad5565b60405180910390f35b3480156104e157600080fd5b506104fc60048036038101906104f79190613c39565b610ffd565b005b34801561050a57600080fd5b5061052560048036038101906105209190613b24565b611080565b005b34801561053357600080fd5b5061054e60048036038101906105499190613a2f565b6110e1565b60405161055b9190613ad5565b60405180910390f35b34801561057057600080fd5b5061058b60048036038101906105869190613cb7565b611225565b005b34801561059957600080fd5b506105b460048036038101906105af9190613e19565b611277565b005b3480156105c257600080fd5b506105dd60048036038101906105d89190613a2f565b611299565b6040516105ea9190613a6b565b60405180910390f35b3480156105ff57600080fd5b5061061a60048036038101906106159190613e62565b6112af565b6040516106279190613ad5565b60405180910390f35b34801561063c57600080fd5b5061064561137e565b005b34801561065357600080fd5b5061066e60048036038101906106699190613f57565b611392565b005b34801561067c57600080fd5b5061069760048036038101906106929190613a2f565b611519565b005b3480156106a557600080fd5b506106ae6115b9565b6040516106bb9190613a6b565b60405180910390f35b3480156106d057600080fd5b506106eb60048036038101906106e69190613c39565b6115e3565b6040516106f8919061380a565b60405180910390f35b34801561070d57600080fd5b5061071661164e565b60405161072391906139d7565b60405180910390f35b61074660048036038101906107419190613a2f565b6116e0565b005b34801561075457600080fd5b5061075d611886565b60405161076a9190613b09565b60405180910390f35b34801561077f57600080fd5b5061079a60048036038101906107959190613fcc565b61188d565b005b3480156107a857600080fd5b506107c360048036038101906107be91906140ad565b611a04565b005b3480156107d157600080fd5b506107da611a57565b005b3480156107e857600080fd5b5061080360048036038101906107fe9190613a2f565b611b33565b60405161081091906139d7565b60405180910390f35b34801561082557600080fd5b50610840600480360381019061083b9190613c39565b611bd1565b005b34801561084e57600080fd5b5061086960048036038101906108649190614130565b611bf2565b604051610876919061380a565b60405180910390f35b34801561088b57600080fd5b506108a660048036038101906108a1919061419c565b611c86565b6040516108b39190613ad5565b60405180910390f35b3480156108c857600080fd5b506108e360048036038101906108de9190613e62565b611c9e565b005b3480156108f157600080fd5b506108fa611d21565b6040516109079190613ad5565b60405180910390f35b600061091b82611d27565b9050919050565b61092a611da1565b6109348282611e1f565b5050565b600e60009054906101000a900460ff1681565b60606004805461095a906141f8565b80601f0160208091040260200160405190810160405280929190818152602001828054610986906141f8565b80156109d35780601f106109a8576101008083540402835291602001916109d3565b820191906000526020600020905b8154815290600101906020018083116109b657829003601f168201915b5050505050905090565b60006109e882611fb3565b610a1e576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6008600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610a6482611299565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610acb576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610aea611fee565b73ffffffffffffffffffffffffffffffffffffffff1614158015610b1c5750610b1a81610b15611fee565b611bf2565b155b15610b53576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610b5e838383611ff6565b505050565b600060035460025403905090565b610b79611da1565b60008111610bbc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bb390614275565b60405180910390fd5b80600f8190555050565b7f3a2f235c9daaf33349d300aadff2f15078a89df81bcfdd45ba11c8f816bddc6f81565b610bf58383836120a8565b505050565b6000600b6000838152602001908152602001600020600101549050919050565b6000806000600160008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1603610daf5760006040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b6000610db9612597565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff1686610de591906142c4565b610def919061434d565b90508160000151819350935050509250929050565b610e0d82610bfa565b610e16816125a1565b610e2083836125b5565b505050565b6000610e30836112af565b8210610e68576040517f0ddac30e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600254905060008060005b83811015610ff1576000600660008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050806040015115610f525750610fe4565b600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614610f9257806000015192505b8773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610fe257868403610fd9578195505050505050610ff7565b83806001019450505b505b8080600101915050610e75565b50600080fd5b92915050565b611005611fee565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611072576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611069906143f0565b60405180910390fd5b61107c8282612696565b5050565b61108b8383836120a8565b6110a683838360405180602001604052806000815250612778565b6110dc576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505050565b60008060025490506000805b828110156111ed576000600660008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff161515151581525050905080604001516111df578583036111d65781945050505050611220565b82806001019350505b5080806001019150506110ed565b506040517fa723001c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b61122d611da1565b8073ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015611273573d6000803e3d6000fd5b5050565b61127f611da1565b8060109080519060200190611295929190613670565b5050565b60006112a4826128f6565b600001519050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611316576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b611386611da1565b6113906000612b72565b565b7f3a2f235c9daaf33349d300aadff2f15078a89df81bcfdd45ba11c8f816bddc6f6113bc816125a1565b60008251905060fa811115611406576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113fd9061445c565b60405180910390fd5b6103e881600d54611417919061447c565b1115611458576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161144f9061451e565b60405180910390fd5b600c5481611464610b63565b61146e919061447c565b11156114af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114a69061458a565b60405180910390fd5b80600d60008282546114c1919061447c565b9250508190555060005b818161ffff16101561151357611500848261ffff16815181106114f1576114f06145aa565b5b60200260200101516001612c38565b808061150b906145e7565b9150506114cb565b50505050565b611521611da1565b600c548110611565576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161155c90614683565b60405180910390fd5b8061156e610b63565b11156115af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115a690614715565b60405180910390fd5b80600c8190555050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000600b600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60606005805461165d906141f8565b80601f0160208091040260200160405190810160405280929190818152602001828054611689906141f8565b80156116d65780601f106116ab576101008083540402835291602001916116d6565b820191906000526020600020905b8154815290600101906020018083116116b957829003601f168201915b5050505050905090565b6000600e60009054906101000a900460ff16905060008211611737576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161172e90614781565b60405180910390fd5b600c5482611743610b63565b61174d919061447c565b111561178e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117859061458a565b60405180910390fd5b81600f5461179c91906142c4565b34146117dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117d4906147ed565b60405180910390fd5b60006117e7611fee565b905082601160008460ff1660ff1681526020019081526020016000206000828254611812919061447c565b925050819055506103e8601160008460ff1660ff168152602001908152602001600020541115611877576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161186e90614859565b60405180910390fd5b6118818184612c38565b505050565b6000801b81565b611895611fee565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036118f9576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060096000611906611fee565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166119b3611fee565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516119f8919061380a565b60405180910390a35050565b611a0f8484846120a8565b611a1b84848484612778565b611a51576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b611a5f611da1565b6008600e60009054906101000a900460ff1660ff1610611ab4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aab906148c5565b60405180910390fd5b6001600e60008282829054906101000a900460ff16611ad391906148e5565b92506101000a81548160ff021916908360ff1602179055507f31f72b44f546d9e7eaec13f65636997665e15f134a81c82924f568f5c0d07b93600e60009054906101000a900460ff16604051611b299190613923565b60405180910390a1565b6060611b3e82611fb3565b611b74576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611b7e612c56565b90506000815103611b9e5760405180602001604052806000815250611bc9565b80611ba884612ce8565b604051602001611bb99291906149a4565b6040516020818303038152906040525b915050919050565b611bda82610bfa565b611be3816125a1565b611bed8383612696565b505050565b6000600960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60116020528060005260406000206000915090505481565b611ca6611da1565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611d15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d0c90614a45565b60405180910390fd5b611d1e81612b72565b50565b600f5481565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611d9a5750611d9982612e48565b5b9050919050565b611da9611fee565b73ffffffffffffffffffffffffffffffffffffffff16611dc76115b9565b73ffffffffffffffffffffffffffffffffffffffff1614611e1d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e1490614ab1565b60405180910390fd5b565b611e27612597565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115611e85576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e7c90614b43565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611ef4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611eeb90614baf565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff168152506000808201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b600060025482108015611fe7575060066000838152602001908152602001600020600001601c9054906101000a900460ff16155b9050919050565b600033905090565b826008600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60006120b3826128f6565b90506000816000015173ffffffffffffffffffffffffffffffffffffffff166120da611fee565b73ffffffffffffffffffffffffffffffffffffffff16148061210d575061210c8260000151612107611fee565b611bf2565b5b80612152575061211b611fee565b73ffffffffffffffffffffffffffffffffffffffff1661213a846109dd565b73ffffffffffffffffffffffffffffffffffffffff16145b90508061218b576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff16146121f4576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff160361225a576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6122678585856001612e5a565b6122776000848460000151611ff6565b6001600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506001600760008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550836006600085815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426006600085815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600184019050600073ffffffffffffffffffffffffffffffffffffffff166006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603612527576002548110156125265782600001516006600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082602001516006600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b50828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46125908585856001612e60565b5050505050565b6000612710905090565b6125b2816125ad611fee565b612e66565b50565b6125bf82826115e3565b612692576001600b600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550612637611fee565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6126a082826115e3565b15612774576000600b600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550612719611fee565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b60006127998473ffffffffffffffffffffffffffffffffffffffff16612f03565b156128e9578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026127c2611fee565b8786866040518563ffffffff1660e01b81526004016127e49493929190614c24565b6020604051808303816000875af192505050801561282057506040513d601f19601f8201168201806040525081019061281d9190614c85565b60015b612899573d8060008114612850576040519150601f19603f3d011682016040523d82523d6000602084013e612855565b606091505b506000815103612891576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506128ee565b600190505b949350505050565b6128fe6136f6565b6000829050600254811015612b3b576000600660008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff16151515158152505090508060400151612b3957600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612a1d578092505050612b6d565b5b600115612b3857818060019003925050600660008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612b33578092505050612b6d565b612a1e565b5b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612c52828260405180602001604052806000815250612f26565b5050565b606060108054612c65906141f8565b80601f0160208091040260200160405190810160405280929190818152602001828054612c91906141f8565b8015612cde5780601f10612cb357610100808354040283529160200191612cde565b820191906000526020600020905b815481529060010190602001808311612cc157829003601f168201915b5050505050905090565b606060008203612d2f576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612e43565b600082905060005b60008214612d61578080612d4a90614cb2565b915050600a82612d5a919061434d565b9150612d37565b60008167ffffffffffffffff811115612d7d57612d7c613cee565b5b6040519080825280601f01601f191660200182016040528015612daf5781602001600182028036833780820191505090505b5090505b60008514612e3c57600182612dc89190614cfa565b9150600a85612dd79190614d2e565b6030612de3919061447c565b60f81b818381518110612df957612df86145aa565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612e35919061434d565b9450612db3565b8093505050505b919050565b6000612e5382612f38565b9050919050565b50505050565b50505050565b612e7082826115e3565b612eff57612e958173ffffffffffffffffffffffffffffffffffffffff16601461301a565b612ea38360001c602061301a565b604051602001612eb4929190614df7565b6040516020818303038152906040526040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ef691906139d7565b60405180910390fd5b5050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b612f338383836001613256565b505050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061300357507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061301357506130128261358c565b5b9050919050565b60606000600283600261302d91906142c4565b613037919061447c565b67ffffffffffffffff8111156130505761304f613cee565b5b6040519080825280601f01601f1916602001820160405280156130825781602001600182028036833780820191505090505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106130ba576130b96145aa565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061311e5761311d6145aa565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000600184600261315e91906142c4565b613168919061447c565b90505b6001811115613208577f3031323334353637383961626364656600000000000000000000000000000000600f8616601081106131aa576131a96145aa565b5b1a60f81b8282815181106131c1576131c06145aa565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c94508061320190614e31565b905061316b565b506000841461324c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161324390614ea6565b60405180910390fd5b8091505092915050565b60006002549050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16036132c3576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600084036132fd576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61330a6000868387612e5a565b83600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555083600760008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160088282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550846006600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426006600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600081905060005b8581101561356f57818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a483801561352357506135216000888488612778565b155b1561355a576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818060010192505080806001019150506134a8565b5080600281905550506135856000868387612e60565b5050505050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806135ff57506135fe82613606565b5b9050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b82805461367c906141f8565b90600052602060002090601f01602090048101928261369e57600085556136e5565b82601f106136b757805160ff19168380011785556136e5565b828001600101855582156136e5579182015b828111156136e45782518255916020019190600101906136c9565b5b5090506136f29190613739565b5090565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681526020016000151581525090565b5b8082111561375257600081600090555060010161373a565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61379f8161376a565b81146137aa57600080fd5b50565b6000813590506137bc81613796565b92915050565b6000602082840312156137d8576137d7613760565b5b60006137e6848285016137ad565b91505092915050565b60008115159050919050565b613804816137ef565b82525050565b600060208201905061381f60008301846137fb565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061385082613825565b9050919050565b61386081613845565b811461386b57600080fd5b50565b60008135905061387d81613857565b92915050565b60006bffffffffffffffffffffffff82169050919050565b6138a481613883565b81146138af57600080fd5b50565b6000813590506138c18161389b565b92915050565b600080604083850312156138de576138dd613760565b5b60006138ec8582860161386e565b92505060206138fd858286016138b2565b9150509250929050565b600060ff82169050919050565b61391d81613907565b82525050565b60006020820190506139386000830184613914565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561397857808201518184015260208101905061395d565b83811115613987576000848401525b50505050565b6000601f19601f8301169050919050565b60006139a98261393e565b6139b38185613949565b93506139c381856020860161395a565b6139cc8161398d565b840191505092915050565b600060208201905081810360008301526139f1818461399e565b905092915050565b6000819050919050565b613a0c816139f9565b8114613a1757600080fd5b50565b600081359050613a2981613a03565b92915050565b600060208284031215613a4557613a44613760565b5b6000613a5384828501613a1a565b91505092915050565b613a6581613845565b82525050565b6000602082019050613a806000830184613a5c565b92915050565b60008060408385031215613a9d57613a9c613760565b5b6000613aab8582860161386e565b9250506020613abc85828601613a1a565b9150509250929050565b613acf816139f9565b82525050565b6000602082019050613aea6000830184613ac6565b92915050565b6000819050919050565b613b0381613af0565b82525050565b6000602082019050613b1e6000830184613afa565b92915050565b600080600060608486031215613b3d57613b3c613760565b5b6000613b4b8682870161386e565b9350506020613b5c8682870161386e565b9250506040613b6d86828701613a1a565b9150509250925092565b613b8081613af0565b8114613b8b57600080fd5b50565b600081359050613b9d81613b77565b92915050565b600060208284031215613bb957613bb8613760565b5b6000613bc784828501613b8e565b91505092915050565b60008060408385031215613be757613be6613760565b5b6000613bf585828601613a1a565b9250506020613c0685828601613a1a565b9150509250929050565b6000604082019050613c256000830185613a5c565b613c326020830184613ac6565b9392505050565b60008060408385031215613c5057613c4f613760565b5b6000613c5e85828601613b8e565b9250506020613c6f8582860161386e565b9150509250929050565b6000613c8482613825565b9050919050565b613c9481613c79565b8114613c9f57600080fd5b50565b600081359050613cb181613c8b565b92915050565b600060208284031215613ccd57613ccc613760565b5b6000613cdb84828501613ca2565b91505092915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613d268261398d565b810181811067ffffffffffffffff82111715613d4557613d44613cee565b5b80604052505050565b6000613d58613756565b9050613d648282613d1d565b919050565b600067ffffffffffffffff821115613d8457613d83613cee565b5b613d8d8261398d565b9050602081019050919050565b82818337600083830152505050565b6000613dbc613db784613d69565b613d4e565b905082815260208101848484011115613dd857613dd7613ce9565b5b613de3848285613d9a565b509392505050565b600082601f830112613e0057613dff613ce4565b5b8135613e10848260208601613da9565b91505092915050565b600060208284031215613e2f57613e2e613760565b5b600082013567ffffffffffffffff811115613e4d57613e4c613765565b5b613e5984828501613deb565b91505092915050565b600060208284031215613e7857613e77613760565b5b6000613e868482850161386e565b91505092915050565b600067ffffffffffffffff821115613eaa57613ea9613cee565b5b602082029050602081019050919050565b600080fd5b6000613ed3613ece84613e8f565b613d4e565b90508083825260208201905060208402830185811115613ef657613ef5613ebb565b5b835b81811015613f1f5780613f0b888261386e565b845260208401935050602081019050613ef8565b5050509392505050565b600082601f830112613f3e57613f3d613ce4565b5b8135613f4e848260208601613ec0565b91505092915050565b600060208284031215613f6d57613f6c613760565b5b600082013567ffffffffffffffff811115613f8b57613f8a613765565b5b613f9784828501613f29565b91505092915050565b613fa9816137ef565b8114613fb457600080fd5b50565b600081359050613fc681613fa0565b92915050565b60008060408385031215613fe357613fe2613760565b5b6000613ff18582860161386e565b925050602061400285828601613fb7565b9150509250929050565b600067ffffffffffffffff82111561402757614026613cee565b5b6140308261398d565b9050602081019050919050565b600061405061404b8461400c565b613d4e565b90508281526020810184848401111561406c5761406b613ce9565b5b614077848285613d9a565b509392505050565b600082601f83011261409457614093613ce4565b5b81356140a484826020860161403d565b91505092915050565b600080600080608085870312156140c7576140c6613760565b5b60006140d58782880161386e565b94505060206140e68782880161386e565b93505060406140f787828801613a1a565b925050606085013567ffffffffffffffff81111561411857614117613765565b5b6141248782880161407f565b91505092959194509250565b6000806040838503121561414757614146613760565b5b60006141558582860161386e565b92505060206141668582860161386e565b9150509250929050565b61417981613907565b811461418457600080fd5b50565b60008135905061419681614170565b92915050565b6000602082840312156141b2576141b1613760565b5b60006141c084828501614187565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061421057607f821691505b602082108103614223576142226141c9565b5b50919050565b7f57726f6e672073616c6520707269636500000000000000000000000000000000600082015250565b600061425f601083613949565b915061426a82614229565b602082019050919050565b6000602082019050818103600083015261428e81614252565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006142cf826139f9565b91506142da836139f9565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561431357614312614295565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614358826139f9565b9150614363836139f9565b9250826143735761437261431e565b5b828204905092915050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b60006143da602f83613949565b91506143e58261437e565b604082019050919050565b60006020820190508181036000830152614409816143cd565b9050919050565b7f526563656976657220617272617920746f6f206c6f6e67000000000000000000600082015250565b6000614446601783613949565b915061445182614410565b602082019050919050565b6000602082019050818103600083015261447581614439565b9050919050565b6000614487826139f9565b9150614492836139f9565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156144c7576144c6614295565b5b828201905092915050565b7f457863656564732061697264726f702073697a65000000000000000000000000600082015250565b6000614508601483613949565b9150614513826144d2565b602082019050919050565b60006020820190508181036000830152614537816144fb565b9050919050565b7f45786365656473206d617820737570706c790000000000000000000000000000600082015250565b6000614574601283613949565b915061457f8261453e565b602082019050919050565b600060208201905081810360008301526145a381614567565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600061ffff82169050919050565b60006145f2826145d9565b915061ffff820361460657614605614295565b5b600182019050919050565b7f4e6577206d617820737570706c792065786365656473206d617820737570706c60008201527f7900000000000000000000000000000000000000000000000000000000000000602082015250565b600061466d602183613949565b915061467882614611565b604082019050919050565b6000602082019050818103600083015261469c81614660565b9050919050565b7f546f74616c20737570706c792065786365656473206e6577206d61782073757060008201527f706c790000000000000000000000000000000000000000000000000000000000602082015250565b60006146ff602383613949565b915061470a826146a3565b604082019050919050565b6000602082019050818103600083015261472e816146f2565b9050919050565b7f57726f6e67205175616e74697479000000000000000000000000000000000000600082015250565b600061476b600e83613949565b915061477682614735565b602082019050919050565b6000602082019050818103600083015261479a8161475e565b9050919050565b7f57726f6e67206d696e7420707269636500000000000000000000000000000000600082015250565b60006147d7601083613949565b91506147e2826147a1565b602082019050919050565b60006020820190508181036000830152614806816147ca565b9050919050565b7f526561636865642070686173652073697a650000000000000000000000000000600082015250565b6000614843601283613949565b915061484e8261480d565b602082019050919050565b6000602082019050818103600083015261487281614836565b9050919050565b7f416c6c2070686173657320646f6e650000000000000000000000000000000000600082015250565b60006148af600f83613949565b91506148ba82614879565b602082019050919050565b600060208201905081810360008301526148de816148a2565b9050919050565b60006148f082613907565b91506148fb83613907565b92508260ff0382111561491157614910614295565b5b828201905092915050565b600081905092915050565b60006149328261393e565b61493c818561491c565b935061494c81856020860161395a565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b600061498e60058361491c565b915061499982614958565b600582019050919050565b60006149b08285614927565b91506149bc8284614927565b91506149c782614981565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614a2f602683613949565b9150614a3a826149d3565b604082019050919050565b60006020820190508181036000830152614a5e81614a22565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614a9b602083613949565b9150614aa682614a65565b602082019050919050565b60006020820190508181036000830152614aca81614a8e565b9050919050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b6000614b2d602a83613949565b9150614b3882614ad1565b604082019050919050565b60006020820190508181036000830152614b5c81614b20565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b6000614b99601983613949565b9150614ba482614b63565b602082019050919050565b60006020820190508181036000830152614bc881614b8c565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000614bf682614bcf565b614c008185614bda565b9350614c1081856020860161395a565b614c198161398d565b840191505092915050565b6000608082019050614c396000830187613a5c565b614c466020830186613a5c565b614c536040830185613ac6565b8181036060830152614c658184614beb565b905095945050505050565b600081519050614c7f81613796565b92915050565b600060208284031215614c9b57614c9a613760565b5b6000614ca984828501614c70565b91505092915050565b6000614cbd826139f9565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614cef57614cee614295565b5b600182019050919050565b6000614d05826139f9565b9150614d10836139f9565b925082821015614d2357614d22614295565b5b828203905092915050565b6000614d39826139f9565b9150614d44836139f9565b925082614d5457614d5361431e565b5b828206905092915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b6000614d9560178361491c565b9150614da082614d5f565b601782019050919050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b6000614de160118361491c565b9150614dec82614dab565b601182019050919050565b6000614e0282614d88565b9150614e0e8285614927565b9150614e1982614dd4565b9150614e258284614927565b91508190509392505050565b6000614e3c826139f9565b915060008203614e4f57614e4e614295565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b6000614e90602083613949565b9150614e9b82614e5a565b602082019050919050565b60006020820190508181036000830152614ebf81614e83565b905091905056fea26469706673582212208baa29cff45485e2ed4ee93ce260fc3432005b92dbb04974ac979c04f26d685a64736f6c634300080d0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000c62317c8fc39a002568a8b50ef2699095e16f37c000000000000000000000000447f9582815fa182311a45cd832eacf8f7d6e1c700000000000000000000000000000000000000000000000000000000000000154d657461426c617a65204d657461476f626c696e73000000000000000000000000000000000000000000000000000000000000000000000000000000000000064d424c5a4d470000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name (string): MetaBlaze MetaGoblins
Arg [1] : symbol (string): MBLZMG
Arg [2] : feeNumerator (uint96): 1000
Arg [3] : royaltyReceiver (address): 0xc62317c8fc39A002568a8B50eF2699095E16f37C
Arg [4] : airdropRole (address): 0x447F9582815FA182311A45Cd832eACf8f7d6e1c7
-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 00000000000000000000000000000000000000000000000000000000000003e8
Arg [3] : 000000000000000000000000c62317c8fc39a002568a8b50ef2699095e16f37c
Arg [4] : 000000000000000000000000447f9582815fa182311a45cd832eacf8f7d6e1c7
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000015
Arg [6] : 4d657461426c617a65204d657461476f626c696e730000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [8] : 4d424c5a4d470000000000000000000000000000000000000000000000000000
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.