Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Gaming
Overview
Max Total Supply
3,333 MERGE
Holders
1,158
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
3 MERGELoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
TheMerge
Compiler Version
v0.8.16+commit.07a7930e
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.16; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol"; import "@openzeppelin/contracts/token/common/ERC2981.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "./IDeck.sol"; contract TheMerge is IDeck, ERC721Enumerable, ERC721Burnable, ERC2981, Ownable, Pausable { using Strings for uint256; using Counters for Counters.Counter; Counters.Counter private _tokenIds; uint256 private _maxCount; uint256 private _maxCountPerWallet; uint256 public mintFee; string private _preReleaseURI; uint16 public currentCohort = 1; mapping(uint16 => Cohort) public cohorts; /// @dev map NFT ID to the cohort mapping(uint256 => uint16) private _nftCohorts; mapping(uint256 => string) private _cohortBaseURIs; /** * @param treasury_ The address that will receive all funds for resales * @param maxCount_ Max allowed NFTs. e.g. 3333 * @param maxCountPerWallet_ e.g. 3 * @param royalties value (between 0 and 10_000). e.g. 10% is 1_000 * @param tokenName The name of the deck series. e.g. "Awakened Kingdom" * @param tokenSymbol The symbol of the deck series. e.g. "AWAKE" * @param startingBaseURI The base URI for metadata before the decks are revealed. * @param earlyRecipients An array of addresses to receive NFTs (e.g. Just in case!) * @param tokenCounts An array of token counts for early recipients */ constructor( address payable treasury_, uint256 maxCount_, uint256 maxCountPerWallet_, uint96 royalties, string memory tokenName, string memory tokenSymbol, string memory startingBaseURI, address[] memory earlyRecipients, uint256[] memory tokenCounts ) ERC721(tokenName, tokenSymbol) { require(earlyRecipients.length == tokenCounts.length, "Early Recipient arrays mismatch"); _maxCount = maxCount_; _maxCountPerWallet = maxCountPerWallet_; _setDefaultRoyalty(treasury_, royalties); _preReleaseURI = startingBaseURI; for (uint256 i = 0; i < earlyRecipients.length; i++) { _mintDeck(tokenCounts[i], earlyRecipients[i]); } pause(); } /** * @dev Step One: Increment cohort so new minters go into the next one and * a random value can be set for the previous one. **/ function incrementCohort() public onlyOwner { currentCohort += 1; emit CohortNumberIncremented(currentCohort); } /// @inheritdoc IDeck function canMint() external view returns (bool) { return !paused(); } /// @inheritdoc IDeck function setCohortRandomValue(uint16 cohortNumber, bytes32 randomHash) external onlyOwner { require(cohortNumber < currentCohort, "Can only call for a previous cohort"); require(bytes32(0) != randomHash, "Random hash cannot be 0"); Cohort storage cohort = cohorts[cohortNumber]; require(bytes32(0) == cohort.randomHash, "DECK: Cohort random value has already been set"); cohort.randomHash = randomHash; emit CohortRandomHashSet(cohortNumber, randomHash); } /// @inheritdoc IDeck function cohortLength(uint16 cohortNumber) external view returns (uint256) { return cohorts[cohortNumber].ids.length; } /// @inheritdoc IDeck function cohortId(uint16 cohortNum, uint256 index) external view returns (uint256) { return cohorts[cohortNum].ids[index]; } /// @inheritdoc IDeck function mintDeck(uint256 count) external payable whenNotPaused returns (bool) { require(balanceOf(msg.sender) + count <= _maxCountPerWallet, "DECK: Max mint for wallet reached"); require(_tokenIds.current() + count <= _maxCount, "DECK: Max mint count reached"); _mintDeck(count, msg.sender); return true; } /// @inheritdoc IDeck function genesisSeed(uint256 tokenId) external view returns (bytes32) { require(_exists(tokenId), "DECK: nonexistent token"); uint16 cid = _nftCohorts[tokenId]; Cohort memory c = cohorts[cid]; require(c.randomHash != bytes32(0), "DECK: Cohort has not been initialized yet"); return keccak256(abi.encodePacked(c.randomHash, tokenId)); } function _mintDeck(uint256 count, address recipient) private returns (bool) { Cohort storage cohort = cohorts[currentCohort]; for (uint256 i; i < count; i++) { _tokenIds.increment(); uint256 nextId = _tokenIds.current(); _safeMint(recipient, nextId); _nftCohorts[nextId] = currentCohort; cohort.ids.push(nextId); } return true; } /// @inheritdoc IDeck function maxCount() external view returns (uint256) { return _maxCount; } /// @inheritdoc IDeck function maxCountPerWallet() external view returns (uint256) { return _maxCountPerWallet; } function pause() public onlyOwner { _pause(); } function unpause() public onlyOwner { _unpause(); } /// @inheritdoc ERC165 function supportsInterface(bytes4 interfaceId) public view virtual override(ERC2981, ERC721, ERC721Enumerable) returns (bool) { return super.supportsInterface(interfaceId); } /// @inheritdoc IDeck function setBaseURI(string memory newBaseURI, uint256 cohortId_) external onlyOwner { _setBaseURI(newBaseURI, cohortId_); } function _setBaseURI(string memory newBaseURI, uint256 cohortId_) private { _cohortBaseURIs[cohortId_] = newBaseURI; } function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "DECK: URI query for nonexistent token"); uint256 nftCohort = _nftCohorts[tokenId]; string memory baseURI = _cohortBaseURIs[nftCohort]; return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : _preReleaseURI; } function _beforeTokenTransfer( address from, address to, uint256 id ) internal override(ERC721, ERC721Enumerable) { ERC721Enumerable._beforeTokenTransfer(from, to, id); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.16; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol"; import "@openzeppelin/contracts/token/common/ERC2981.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; interface IDeck { struct Cohort { uint256[] ids; bytes32 randomHash; } event CohortNumberIncremented(uint256 indexed cohortNumber); event CohortRandomHashSet(uint256 indexed cohortNumber, bytes32 indexed randomHash); /** * @return bool If the mint is open or not **/ function canMint() external view returns (bool); /** * @return uint256 The price of each NFT **/ function mintFee() external view returns (uint256); /** * @return uint16 The current cohort **/ function currentCohort() external view returns (uint16); /** * @param newBaseURI a cohort-shared base URI **/ function setBaseURI(string memory newBaseURI, uint256 cohortId_) external; /// @dev this will increment the cohort so all new minters go into the next cohort. function incrementCohort() external; /** * @param cohortNumber the ID of a previous cohort. Can only be set once, and cannot be set on the active cohort. * @param randomHash A bytes32 hash that should be psuedo random, or at least difficult to manipulate to affect the outcome of the NFT randomization **/ function setCohortRandomValue(uint16 cohortNumber, bytes32 randomHash) external; /** * @dev The ID length for a cohort number **/ function cohortLength(uint16 cohortNumber) external view returns (uint256); /** * @return uint256 The max supply **/ function maxCount() external view returns (uint256); /** * @return uint256 The max per wallet **/ function maxCountPerWallet() external view returns (uint256); /** * @param cohortNum - Cohort number * @param index - The index of the ID in a cohort * @return uint **/ function cohortId(uint16 cohortNum, uint256 index) external view returns (uint256); /** * @param count How many decks would you like? * @return bool - If the mint was successful **/ function mintDeck(uint256 count) external payable returns (bool); /** * @param tokenId the NFT ID * @return bytes32 - the DNA of the deck **/ function genesisSeed(uint256 tokenId) external view returns (bytes32); }
// 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 // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/extensions/ERC721Burnable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "../../../utils/Context.sol"; /** * @title ERC721 Burnable Token * @dev ERC721 Token that can be burned (destroyed). */ abstract contract ERC721Burnable is Context, ERC721 { /** * @dev Burns `tokenId`. See {ERC721-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) public virtual { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _burn(tokenId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_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) (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 (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 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: address zero is not a valid owner"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: invalid token ID"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { _requireMinted(tokenId); 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 overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not token owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _safeTransfer(from, to, tokenId, data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/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 (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 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.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); } } } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address payable","name":"treasury_","type":"address"},{"internalType":"uint256","name":"maxCount_","type":"uint256"},{"internalType":"uint256","name":"maxCountPerWallet_","type":"uint256"},{"internalType":"uint96","name":"royalties","type":"uint96"},{"internalType":"string","name":"tokenName","type":"string"},{"internalType":"string","name":"tokenSymbol","type":"string"},{"internalType":"string","name":"startingBaseURI","type":"string"},{"internalType":"address[]","name":"earlyRecipients","type":"address[]"},{"internalType":"uint256[]","name":"tokenCounts","type":"uint256[]"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"cohortNumber","type":"uint256"}],"name":"CohortNumberIncremented","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"cohortNumber","type":"uint256"},{"indexed":true,"internalType":"bytes32","name":"randomHash","type":"bytes32"}],"name":"CohortRandomHashSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"canMint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"cohortNum","type":"uint16"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"cohortId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"cohortNumber","type":"uint16"}],"name":"cohortLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"}],"name":"cohorts","outputs":[{"internalType":"bytes32","name":"randomHash","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentCohort","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"genesisSeed","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"incrementCohort","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxCountPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"count","type":"uint256"}],"name":"mintDeck","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newBaseURI","type":"string"},{"internalType":"uint256","name":"cohortId_","type":"uint256"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"cohortNumber","type":"uint16"},{"internalType":"bytes32","name":"randomHash","type":"bytes32"}],"name":"setCohortRandomValue","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":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526001601260006101000a81548161ffff021916908361ffff1602179055503480156200002f57600080fd5b5060405162006ee138038062006ee18339818101604052810190620000559190620015b5565b8484816000908162000068919062001970565b5080600190816200007a919062001970565b5050506200009d62000091620001c160201b60201c565b620001c960201b60201c565b6000600c60146101000a81548160ff0219169083151502179055508051825114620000ff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620000f69062001ab8565b60405180910390fd5b87600e8190555086600f819055506200011f89876200028f60201b60201c565b826011908162000130919062001970565b5060005b8251811015620001a1576200018a82828151811062000158576200015762001ada565b5b602002602001015184838151811062000176576200017562001ada565b5b60200260200101516200043260201b60201c565b508080620001989062001b38565b91505062000134565b50620001b26200053e60201b60201c565b505050505050505050620021ab565b600033905090565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6200029f6200056060201b60201c565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff16111562000300576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620002f79062001bfb565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160362000372576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620003699062001c6d565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600a60008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b60008060136000601260009054906101000a900461ffff1661ffff1661ffff168152602001908152602001600020905060005b84811015620005325762000485600d6200056a60201b620019b01760201c565b60006200049e600d6200058060201b620019c61760201c565b9050620004b285826200058e60201b60201c565b601260009054906101000a900461ffff166014600083815260200190815260200160002060006101000a81548161ffff021916908361ffff16021790555082600001819080600181540180825580915050600190039060005260206000200160009091909190915055508080620005299062001b38565b91505062000465565b50600191505092915050565b6200054e620005b460201b60201c565b6200055e6200064560201b60201c565b565b6000612710905090565b6001816000016000828254019250508190555050565b600081600001549050919050565b620005b0828260405180602001604052806000815250620006ba60201b60201c565b5050565b620005c4620001c160201b60201c565b73ffffffffffffffffffffffffffffffffffffffff16620005ea6200072860201b60201c565b73ffffffffffffffffffffffffffffffffffffffff161462000643576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200063a9062001cdf565b60405180910390fd5b565b620006556200075260201b60201c565b6001600c60146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258620006a1620001c160201b60201c565b604051620006b0919062001d12565b60405180910390a1565b620006cc8383620007a760201b60201c565b620006e16000848484620009a060201b60201c565b62000723576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200071a9062001da5565b60405180910390fd5b505050565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6200076262000b4960201b60201c565b15620007a5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200079c9062001e17565b60405180910390fd5b565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160362000819576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620008109062001e89565b60405180910390fd5b6200082a8162000b6060201b60201c565b156200086d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620008649062001efb565b60405180910390fd5b620008816000838362000bcc60201b60201c565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254620008d3919062001f1d565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46200099c6000838362000be960201b60201c565b5050565b6000620009ce8473ffffffffffffffffffffffffffffffffffffffff1662000bee60201b620019d41760201c565b1562000b3c578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0262000a00620001c160201b60201c565b8786866040518563ffffffff1660e01b815260040162000a24949392919062001fc6565b6020604051808303816000875af192505050801562000a6357506040513d601f19601f8201168201806040525081019062000a60919062002077565b60015b62000aeb573d806000811462000a96576040519150601f19603f3d011682016040523d82523d6000602084013e62000a9b565b606091505b50600081510362000ae3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000ada9062001da5565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505062000b41565b600190505b949350505050565b6000600c60149054906101000a900460ff16905090565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b62000be483838362000c1160201b620019f71760201c565b505050565b505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b62000c2983838362000d5660201b62001b091760201c565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160362000c755762000c6f8162000d5b60201b60201c565b62000cbd565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161462000cbc5762000cbb838262000da460201b60201c565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160362000d095762000d038162000f2160201b60201c565b62000d51565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161462000d505762000d4f828262000ffd60201b60201c565b5b5b505050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b6000600162000dbe846200108960201b620011cd1760201c565b62000dca9190620020a9565b905060006007600084815260200190815260200160002054905081811462000eb0576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b6000600160088054905062000f379190620020a9565b905060006009600084815260200190815260200160002054905060006008838154811062000f6a5762000f6962001ada565b5b90600052602060002001549050806008838154811062000f8f5762000f8e62001ada565b5b90600052602060002001819055508160096000838152602001908152602001600020819055506009600085815260200190815260200160002060009055600880548062000fe15762000fe0620020e4565b5b6001900381819060005260206000200160009055905550505050565b600062001015836200108960201b620011cd1760201c565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603620010fc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620010f39062002189565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620011848262001157565b9050919050565b620011968162001177565b8114620011a257600080fd5b50565b600081519050620011b6816200118b565b92915050565b6000819050919050565b620011d181620011bc565b8114620011dd57600080fd5b50565b600081519050620011f181620011c6565b92915050565b60006bffffffffffffffffffffffff82169050919050565b6200121a81620011f7565b81146200122657600080fd5b50565b6000815190506200123a816200120f565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b62001295826200124a565b810181811067ffffffffffffffff82111715620012b757620012b66200125b565b5b80604052505050565b6000620012cc62001143565b9050620012da82826200128a565b919050565b600067ffffffffffffffff821115620012fd57620012fc6200125b565b5b62001308826200124a565b9050602081019050919050565b60005b838110156200133557808201518184015260208101905062001318565b60008484015250505050565b6000620013586200135284620012df565b620012c0565b90508281526020810184848401111562001377576200137662001245565b5b6200138484828562001315565b509392505050565b600082601f830112620013a457620013a362001240565b5b8151620013b684826020860162001341565b91505092915050565b600067ffffffffffffffff821115620013dd57620013dc6200125b565b5b602082029050602081019050919050565b600080fd5b6000620014008262001157565b9050919050565b6200141281620013f3565b81146200141e57600080fd5b50565b600081519050620014328162001407565b92915050565b60006200144f6200144984620013bf565b620012c0565b90508083825260208201905060208402830185811115620014755762001474620013ee565b5b835b81811015620014a257806200148d888262001421565b84526020840193505060208101905062001477565b5050509392505050565b600082601f830112620014c457620014c362001240565b5b8151620014d684826020860162001438565b91505092915050565b600067ffffffffffffffff821115620014fd57620014fc6200125b565b5b602082029050602081019050919050565b6000620015256200151f84620014df565b620012c0565b905080838252602082019050602084028301858111156200154b576200154a620013ee565b5b835b81811015620015785780620015638882620011e0565b8452602084019350506020810190506200154d565b5050509392505050565b600082601f8301126200159a576200159962001240565b5b8151620015ac8482602086016200150e565b91505092915050565b60008060008060008060008060006101208a8c031215620015db57620015da6200114d565b5b6000620015eb8c828d01620011a5565b9950506020620015fe8c828d01620011e0565b9850506040620016118c828d01620011e0565b9750506060620016248c828d0162001229565b96505060808a015167ffffffffffffffff81111562001648576200164762001152565b5b620016568c828d016200138c565b95505060a08a015167ffffffffffffffff8111156200167a576200167962001152565b5b620016888c828d016200138c565b94505060c08a015167ffffffffffffffff811115620016ac57620016ab62001152565b5b620016ba8c828d016200138c565b93505060e08a015167ffffffffffffffff811115620016de57620016dd62001152565b5b620016ec8c828d01620014ac565b9250506101008a015167ffffffffffffffff81111562001711576200171062001152565b5b6200171f8c828d0162001582565b9150509295985092959850929598565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200178257607f821691505b6020821081036200179857620017976200173a565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620018027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82620017c3565b6200180e8683620017c3565b95508019841693508086168417925050509392505050565b6000819050919050565b6000620018516200184b6200184584620011bc565b62001826565b620011bc565b9050919050565b6000819050919050565b6200186d8362001830565b620018856200187c8262001858565b848454620017d0565b825550505050565b600090565b6200189c6200188d565b620018a981848462001862565b505050565b5b81811015620018d157620018c560008262001892565b600181019050620018af565b5050565b601f8211156200192057620018ea816200179e565b620018f584620017b3565b8101602085101562001905578190505b6200191d6200191485620017b3565b830182620018ae565b50505b505050565b600082821c905092915050565b6000620019456000198460080262001925565b1980831691505092915050565b600062001960838362001932565b9150826002028217905092915050565b6200197b826200172f565b67ffffffffffffffff8111156200199757620019966200125b565b5b620019a3825462001769565b620019b0828285620018d5565b600060209050601f831160018114620019e85760008415620019d3578287015190505b620019df858262001952565b86555062001a4f565b601f198416620019f8866200179e565b60005b8281101562001a2257848901518255600182019150602085019450602081019050620019fb565b8683101562001a42578489015162001a3e601f89168262001932565b8355505b6001600288020188555050505b505050505050565b600082825260208201905092915050565b7f4561726c7920526563697069656e7420617272617973206d69736d6174636800600082015250565b600062001aa0601f8362001a57565b915062001aad8262001a68565b602082019050919050565b6000602082019050818103600083015262001ad38162001a91565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600062001b4582620011bc565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820362001b7a5762001b7962001b09565b5b600182019050919050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b600062001be3602a8362001a57565b915062001bf08262001b85565b604082019050919050565b6000602082019050818103600083015262001c168162001bd4565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b600062001c5560198362001a57565b915062001c628262001c1d565b602082019050919050565b6000602082019050818103600083015262001c888162001c46565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600062001cc760208362001a57565b915062001cd48262001c8f565b602082019050919050565b6000602082019050818103600083015262001cfa8162001cb8565b9050919050565b62001d0c81620013f3565b82525050565b600060208201905062001d29600083018462001d01565b92915050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b600062001d8d60328362001a57565b915062001d9a8262001d2f565b604082019050919050565b6000602082019050818103600083015262001dc08162001d7e565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b600062001dff60108362001a57565b915062001e0c8262001dc7565b602082019050919050565b6000602082019050818103600083015262001e328162001df0565b9050919050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b600062001e7160208362001a57565b915062001e7e8262001e39565b602082019050919050565b6000602082019050818103600083015262001ea48162001e62565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b600062001ee3601c8362001a57565b915062001ef08262001eab565b602082019050919050565b6000602082019050818103600083015262001f168162001ed4565b9050919050565b600062001f2a82620011bc565b915062001f3783620011bc565b925082820190508082111562001f525762001f5162001b09565b5b92915050565b62001f6381620011bc565b82525050565b600081519050919050565b600082825260208201905092915050565b600062001f928262001f69565b62001f9e818562001f74565b935062001fb081856020860162001315565b62001fbb816200124a565b840191505092915050565b600060808201905062001fdd600083018762001d01565b62001fec602083018662001d01565b62001ffb604083018562001f58565b81810360608301526200200f818462001f85565b905095945050505050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b62002051816200201a565b81146200205d57600080fd5b50565b600081519050620020718162002046565b92915050565b60006020828403121562002090576200208f6200114d565b5b6000620020a08482850162002060565b91505092915050565b6000620020b682620011bc565b9150620020c383620011bc565b9250828203905081811115620020de57620020dd62001b09565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b60006200217160298362001a57565b91506200217e8262002113565b604082019050919050565b60006020820190508181036000830152620021a48162002162565b9050919050565b614d2680620021bb6000396000f3fe6080604052600436106102195760003560e01c80636352211e11610123578063a22cb465116100ab578063e0f9c9701161006f578063e0f9c970146107e5578063e7a0edad14610810578063e985e9c51461084d578063ee28b4a01461088a578063f2fde38b146108ba57610219565b8063a22cb465146106ee578063b297d81114610717578063b88d4fde14610754578063beb9716d1461077d578063c87b56dd146107a857610219565b806388840918116100f257806388840918146106075780638da5cb5b14610630578063936b4d011461065b57806395d89b41146106985780639ef2d87a146106c357610219565b80636352211e1461055f57806370a082311461059c578063715018a6146105d95780638456cb59146105f057610219565b8063278d92d7116101a65780633f4ba83a116101755780633f4ba83a1461048e57806342842e0e146104a557806342966c68146104ce5780634f6ccce7146104f75780635c975abb1461053457610219565b8063278d92d7146103bf5780632a55205a146103fc5780632f745c591461043a5780633ac151c01461047757610219565b8063081812fc116101ed578063081812fc146102da578063095ea7b31461031757806313966db51461034057806318160ddd1461036b57806323b872dd1461039657610219565b80629f25ff1461021e57806301ffc9a71461024757806303a028181461028457806306fdde03146102af575b600080fd5b34801561022a57600080fd5b506102456004803603810190610240919061323c565b6108e3565b005b34801561025357600080fd5b5061026e600480360381019061026991906132f0565b6108f9565b60405161027b9190613338565b60405180910390f35b34801561029057600080fd5b5061029961090b565b6040516102a69190613362565b60405180910390f35b3480156102bb57600080fd5b506102c4610915565b6040516102d191906133fc565b60405180910390f35b3480156102e657600080fd5b5061030160048036038101906102fc919061341e565b6109a7565b60405161030e919061348c565b60405180910390f35b34801561032357600080fd5b5061033e600480360381019061033991906134d3565b6109ed565b005b34801561034c57600080fd5b50610355610b04565b6040516103629190613362565b60405180910390f35b34801561037757600080fd5b50610380610b0a565b60405161038d9190613362565b60405180910390f35b3480156103a257600080fd5b506103bd60048036038101906103b89190613513565b610b17565b005b3480156103cb57600080fd5b506103e660048036038101906103e1919061341e565b610b77565b6040516103f3919061357f565b60405180910390f35b34801561040857600080fd5b50610423600480360381019061041e919061359a565b610cf2565b6040516104319291906135da565b60405180910390f35b34801561044657600080fd5b50610461600480360381019061045c91906134d3565b610edc565b60405161046e9190613362565b60405180910390f35b34801561048357600080fd5b5061048c610f81565b005b34801561049a57600080fd5b506104a3611006565b005b3480156104b157600080fd5b506104cc60048036038101906104c79190613513565b611018565b005b3480156104da57600080fd5b506104f560048036038101906104f0919061341e565b611038565b005b34801561050357600080fd5b5061051e6004803603810190610519919061341e565b611094565b60405161052b9190613362565b60405180910390f35b34801561054057600080fd5b50610549611105565b6040516105569190613338565b60405180910390f35b34801561056b57600080fd5b506105866004803603810190610581919061341e565b61111c565b604051610593919061348c565b60405180910390f35b3480156105a857600080fd5b506105c360048036038101906105be9190613603565b6111cd565b6040516105d09190613362565b60405180910390f35b3480156105e557600080fd5b506105ee611284565b005b3480156105fc57600080fd5b50610605611298565b005b34801561061357600080fd5b5061062e60048036038101906106299190613696565b6112aa565b005b34801561063c57600080fd5b506106456113f9565b604051610652919061348c565b60405180910390f35b34801561066757600080fd5b50610682600480360381019061067d91906136d6565b611423565b60405161068f919061357f565b60405180910390f35b3480156106a457600080fd5b506106ad611441565b6040516106ba91906133fc565b60405180910390f35b3480156106cf57600080fd5b506106d86114d3565b6040516106e59190613362565b60405180910390f35b3480156106fa57600080fd5b506107156004803603810190610710919061372f565b6114dd565b005b34801561072357600080fd5b5061073e600480360381019061073991906136d6565b6114f3565b60405161074b9190613362565b60405180910390f35b34801561076057600080fd5b5061077b60048036038101906107769190613810565b61151e565b005b34801561078957600080fd5b50610792611580565b60405161079f9190613338565b60405180910390f35b3480156107b457600080fd5b506107cf60048036038101906107ca919061341e565b611590565b6040516107dc91906133fc565b60405180910390f35b3480156107f157600080fd5b506107fa611771565b60405161080791906138a2565b60405180910390f35b34801561081c57600080fd5b50610837600480360381019061083291906138bd565b611785565b6040516108449190613362565b60405180910390f35b34801561085957600080fd5b50610874600480360381019061086f91906138fd565b6117ca565b6040516108819190613338565b60405180910390f35b6108a4600480360381019061089f919061341e565b61185e565b6040516108b19190613338565b60405180910390f35b3480156108c657600080fd5b506108e160048036038101906108dc9190613603565b61192d565b005b6108eb611b0e565b6108f58282611b8c565b5050565b600061090482611bb1565b9050919050565b6000600f54905090565b6060600080546109249061396c565b80601f01602080910402602001604051908101604052809291908181526020018280546109509061396c565b801561099d5780601f106109725761010080835404028352916020019161099d565b820191906000526020600020905b81548152906001019060200180831161098057829003601f168201915b5050505050905090565b60006109b282611c2b565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006109f88261111c565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610a68576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a5f90613a0f565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610a87611c76565b73ffffffffffffffffffffffffffffffffffffffff161480610ab65750610ab581610ab0611c76565b6117ca565b5b610af5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aec90613aa1565b60405180910390fd5b610aff8383611c7e565b505050565b60105481565b6000600880549050905090565b610b28610b22611c76565b82611d37565b610b67576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b5e90613b33565b60405180910390fd5b610b72838383611dcc565b505050565b6000610b8282612032565b610bc1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bb890613b9f565b60405180910390fd5b60006014600084815260200190815260200160002060009054906101000a900461ffff1690506000601360008361ffff1661ffff16815260200190815260200160002060405180604001604052908160008201805480602002602001604051908101604052809291908181526020018280548015610c5e57602002820191906000526020600020905b815481526020019060010190808311610c4a575b5050505050815260200160018201548152505090506000801b816020015103610cbc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cb390613c31565b60405180910390fd5b806020015184604051602001610cd3929190613c93565b6040516020818303038152906040528051906020012092505050919050565b6000806000600b60008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1603610e8757600a6040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b6000610e9161209e565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff1686610ebd9190613cee565b610ec79190613d77565b90508160000151819350935050509250929050565b6000610ee7836111cd565b8210610f28576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f1f90613e1a565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610f89611b0e565b6001601260008282829054906101000a900461ffff16610fa99190613e3a565b92506101000a81548161ffff021916908361ffff160217905550601260009054906101000a900461ffff1661ffff167f9ecd567ba5cb1b563bec12d69b2cc57fa5f85e9acdcfe19a064ac199ec53cf9b60405160405180910390a2565b61100e611b0e565b6110166120a8565b565b6110338383836040518060200160405280600081525061151e565b505050565b611049611043611c76565b82611d37565b611088576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161107f90613b33565b60405180910390fd5b6110918161210b565b50565b600061109e610b0a565b82106110df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110d690613ee2565b60405180910390fd5b600882815481106110f3576110f2613f02565b5b90600052602060002001549050919050565b6000600c60149054906101000a900460ff16905090565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036111c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111bb90613f7d565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361123d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112349061400f565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61128c611b0e565b6112966000612228565b565b6112a0611b0e565b6112a86122ee565b565b6112b2611b0e565b601260009054906101000a900461ffff1661ffff168261ffff161061130c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611303906140a1565b60405180910390fd5b806000801b03611351576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113489061410d565b60405180910390fd5b6000601360008461ffff1661ffff168152602001908152602001600020905080600101546000801b146113b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113b09061419f565b60405180910390fd5b818160010181905550818361ffff167f75347625cc940d3f2ad85c1f9a968b15605e292abeaa89150a90d3c6f23b3e1260405160405180910390a3505050565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60136020528060005260406000206000915090508060010154905081565b6060600180546114509061396c565b80601f016020809104026020016040519081016040528092919081815260200182805461147c9061396c565b80156114c95780601f1061149e576101008083540402835291602001916114c9565b820191906000526020600020905b8154815290600101906020018083116114ac57829003601f168201915b5050505050905090565b6000600e54905090565b6114ef6114e8611c76565b8383612351565b5050565b6000601360008361ffff1661ffff168152602001908152602001600020600001805490509050919050565b61152f611529611c76565b83611d37565b61156e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161156590613b33565b60405180910390fd5b61157a848484846124bd565b50505050565b600061158a611105565b15905090565b606061159b82612032565b6115da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115d190614231565b60405180910390fd5b60006014600084815260200190815260200160002060009054906101000a900461ffff1661ffff16905060006015600083815260200190815260200160002080546116249061396c565b80601f01602080910402602001604051908101604052809291908181526020018280546116509061396c565b801561169d5780601f106116725761010080835404028352916020019161169d565b820191906000526020600020905b81548152906001019060200180831161168057829003601f168201915b50505050509050600081511161173d57601180546116ba9061396c565b80601f01602080910402602001604051908101604052809291908181526020018280546116e69061396c565b80156117335780601f1061170857610100808354040283529160200191611733565b820191906000526020600020905b81548152906001019060200180831161171657829003601f168201915b5050505050611768565b8061174785612519565b60405160200161175892919061428d565b6040516020818303038152906040525b92505050919050565b601260009054906101000a900461ffff1681565b6000601360008461ffff1661ffff16815260200190815260200160002060000182815481106117b7576117b6613f02565b5b9060005260206000200154905092915050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000611868612679565b600f5482611875336111cd565b61187f91906142b1565b11156118c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118b790614357565b60405180910390fd5b600e54826118ce600d6119c6565b6118d891906142b1565b1115611919576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611910906143c3565b60405180910390fd5b61192382336126c3565b5060019050919050565b611935611b0e565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036119a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161199b90614455565b60405180910390fd5b6119ad81612228565b50565b6001816000016000828254019250508190555050565b600081600001549050919050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b611a02838383611b09565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611a4457611a3f816127a9565b611a83565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614611a8257611a8183826127f2565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611ac557611ac08161295f565b611b04565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614611b0357611b028282612a30565b5b5b505050565b505050565b611b16611c76565b73ffffffffffffffffffffffffffffffffffffffff16611b346113f9565b73ffffffffffffffffffffffffffffffffffffffff1614611b8a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b81906144c1565b60405180910390fd5b565b81601560008381526020019081526020016000209081611bac919061468d565b505050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611c245750611c2382612aaf565b5b9050919050565b611c3481612032565b611c73576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c6a90613f7d565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611cf18361111c565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080611d438361111c565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611d855750611d8481856117ca565b5b80611dc357508373ffffffffffffffffffffffffffffffffffffffff16611dab846109a7565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611dec8261111c565b73ffffffffffffffffffffffffffffffffffffffff1614611e42576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e39906147d1565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611eb1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ea890614863565b60405180910390fd5b611ebc838383612b29565b611ec7600082611c7e565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611f179190614883565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611f6e91906142b1565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461202d838383612b39565b505050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b6000612710905090565b6120b0612b3e565b6000600c60146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6120f4611c76565b604051612101919061348c565b60405180910390a1565b60006121168261111c565b905061212481600084612b29565b61212f600083611c7e565b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461217f9190614883565b925050819055506002600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461222481600084612b39565b5050565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6122f6612679565b6001600c60146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861233a611c76565b604051612347919061348c565b60405180910390a1565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036123bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123b690614903565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516124b09190613338565b60405180910390a3505050565b6124c8848484611dcc565b6124d484848484612b87565b612513576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161250a90614995565b60405180910390fd5b50505050565b606060008203612560576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612674565b600082905060005b6000821461259257808061257b906149b5565b915050600a8261258b9190613d77565b9150612568565b60008167ffffffffffffffff8111156125ae576125ad6130db565b5b6040519080825280601f01601f1916602001820160405280156125e05781602001600182028036833780820191505090505b5090505b6000851461266d576001826125f99190614883565b9150600a8561260891906149fd565b603061261491906142b1565b60f81b81838151811061262a57612629613f02565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856126669190613d77565b94506125e4565b8093505050505b919050565b612681611105565b156126c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126b890614a7a565b60405180910390fd5b565b60008060136000601260009054906101000a900461ffff1661ffff1661ffff168152602001908152602001600020905060005b8481101561279d57612708600d6119b0565b6000612714600d6119c6565b90506127208582612d0e565b601260009054906101000a900461ffff166014600083815260200190815260200160002060006101000a81548161ffff021916908361ffff16021790555082600001819080600181540180825580915050600190039060005260206000200160009091909190915055508080612795906149b5565b9150506126f6565b50600191505092915050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b600060016127ff846111cd565b6128099190614883565b90506000600760008481526020019081526020016000205490508181146128ee576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016008805490506129739190614883565b90506000600960008481526020019081526020016000205490506000600883815481106129a3576129a2613f02565b5b9060005260206000200154905080600883815481106129c5576129c4613f02565b5b906000526020600020018190555081600960008381526020019081526020016000208190555060096000858152602001908152602001600020600090556008805480612a1457612a13614a9a565b5b6001900381819060005260206000200160009055905550505050565b6000612a3b836111cd565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612b225750612b2182612d2c565b5b9050919050565b612b348383836119f7565b505050565b505050565b612b46611105565b612b85576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b7c90614b15565b60405180910390fd5b565b6000612ba88473ffffffffffffffffffffffffffffffffffffffff166119d4565b15612d01578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612bd1611c76565b8786866040518563ffffffff1660e01b8152600401612bf39493929190614b8a565b6020604051808303816000875af1925050508015612c2f57506040513d601f19601f82011682018060405250810190612c2c9190614beb565b60015b612cb1573d8060008114612c5f576040519150601f19603f3d011682016040523d82523d6000602084013e612c64565b606091505b506000815103612ca9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ca090614995565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612d06565b600190505b949350505050565b612d28828260405180602001604052806000815250612e0e565b5050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612df757507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612e075750612e0682612e69565b5b9050919050565b612e188383612ed3565b612e256000848484612b87565b612e64576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e5b90614995565b60405180910390fd5b505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612f42576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f3990614c64565b60405180910390fd5b612f4b81612032565b15612f8b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f8290614cd0565b60405180910390fd5b612f9760008383612b29565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612fe791906142b1565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46130a860008383612b39565b5050565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613113826130ca565b810181811067ffffffffffffffff82111715613132576131316130db565b5b80604052505050565b60006131456130ac565b9050613151828261310a565b919050565b600067ffffffffffffffff821115613171576131706130db565b5b61317a826130ca565b9050602081019050919050565b82818337600083830152505050565b60006131a96131a484613156565b61313b565b9050828152602081018484840111156131c5576131c46130c5565b5b6131d0848285613187565b509392505050565b600082601f8301126131ed576131ec6130c0565b5b81356131fd848260208601613196565b91505092915050565b6000819050919050565b61321981613206565b811461322457600080fd5b50565b60008135905061323681613210565b92915050565b60008060408385031215613253576132526130b6565b5b600083013567ffffffffffffffff811115613271576132706130bb565b5b61327d858286016131d8565b925050602061328e85828601613227565b9150509250929050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6132cd81613298565b81146132d857600080fd5b50565b6000813590506132ea816132c4565b92915050565b600060208284031215613306576133056130b6565b5b6000613314848285016132db565b91505092915050565b60008115159050919050565b6133328161331d565b82525050565b600060208201905061334d6000830184613329565b92915050565b61335c81613206565b82525050565b60006020820190506133776000830184613353565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156133b757808201518184015260208101905061339c565b60008484015250505050565b60006133ce8261337d565b6133d88185613388565b93506133e8818560208601613399565b6133f1816130ca565b840191505092915050565b6000602082019050818103600083015261341681846133c3565b905092915050565b600060208284031215613434576134336130b6565b5b600061344284828501613227565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006134768261344b565b9050919050565b6134868161346b565b82525050565b60006020820190506134a1600083018461347d565b92915050565b6134b08161346b565b81146134bb57600080fd5b50565b6000813590506134cd816134a7565b92915050565b600080604083850312156134ea576134e96130b6565b5b60006134f8858286016134be565b925050602061350985828601613227565b9150509250929050565b60008060006060848603121561352c5761352b6130b6565b5b600061353a868287016134be565b935050602061354b868287016134be565b925050604061355c86828701613227565b9150509250925092565b6000819050919050565b61357981613566565b82525050565b60006020820190506135946000830184613570565b92915050565b600080604083850312156135b1576135b06130b6565b5b60006135bf85828601613227565b92505060206135d085828601613227565b9150509250929050565b60006040820190506135ef600083018561347d565b6135fc6020830184613353565b9392505050565b600060208284031215613619576136186130b6565b5b6000613627848285016134be565b91505092915050565b600061ffff82169050919050565b61364781613630565b811461365257600080fd5b50565b6000813590506136648161363e565b92915050565b61367381613566565b811461367e57600080fd5b50565b6000813590506136908161366a565b92915050565b600080604083850312156136ad576136ac6130b6565b5b60006136bb85828601613655565b92505060206136cc85828601613681565b9150509250929050565b6000602082840312156136ec576136eb6130b6565b5b60006136fa84828501613655565b91505092915050565b61370c8161331d565b811461371757600080fd5b50565b60008135905061372981613703565b92915050565b60008060408385031215613746576137456130b6565b5b6000613754858286016134be565b92505060206137658582860161371a565b9150509250929050565b600067ffffffffffffffff82111561378a576137896130db565b5b613793826130ca565b9050602081019050919050565b60006137b36137ae8461376f565b61313b565b9050828152602081018484840111156137cf576137ce6130c5565b5b6137da848285613187565b509392505050565b600082601f8301126137f7576137f66130c0565b5b81356138078482602086016137a0565b91505092915050565b6000806000806080858703121561382a576138296130b6565b5b6000613838878288016134be565b9450506020613849878288016134be565b935050604061385a87828801613227565b925050606085013567ffffffffffffffff81111561387b5761387a6130bb565b5b613887878288016137e2565b91505092959194509250565b61389c81613630565b82525050565b60006020820190506138b76000830184613893565b92915050565b600080604083850312156138d4576138d36130b6565b5b60006138e285828601613655565b92505060206138f385828601613227565b9150509250929050565b60008060408385031215613914576139136130b6565b5b6000613922858286016134be565b9250506020613933858286016134be565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061398457607f821691505b6020821081036139975761399661393d565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b60006139f9602183613388565b9150613a048261399d565b604082019050919050565b60006020820190508181036000830152613a28816139ec565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015250565b6000613a8b603e83613388565b9150613a9682613a2f565b604082019050919050565b60006020820190508181036000830152613aba81613a7e565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b6000613b1d602e83613388565b9150613b2882613ac1565b604082019050919050565b60006020820190508181036000830152613b4c81613b10565b9050919050565b7f4445434b3a206e6f6e6578697374656e7420746f6b656e000000000000000000600082015250565b6000613b89601783613388565b9150613b9482613b53565b602082019050919050565b60006020820190508181036000830152613bb881613b7c565b9050919050565b7f4445434b3a20436f686f727420686173206e6f74206265656e20696e6974696160008201527f6c697a6564207965740000000000000000000000000000000000000000000000602082015250565b6000613c1b602983613388565b9150613c2682613bbf565b604082019050919050565b60006020820190508181036000830152613c4a81613c0e565b9050919050565b6000819050919050565b613c6c613c6782613566565b613c51565b82525050565b6000819050919050565b613c8d613c8882613206565b613c72565b82525050565b6000613c9f8285613c5b565b602082019150613caf8284613c7c565b6020820191508190509392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613cf982613206565b9150613d0483613206565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613d3d57613d3c613cbf565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613d8282613206565b9150613d8d83613206565b925082613d9d57613d9c613d48565b5b828204905092915050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b6000613e04602b83613388565b9150613e0f82613da8565b604082019050919050565b60006020820190508181036000830152613e3381613df7565b9050919050565b6000613e4582613630565b9150613e5083613630565b9250828201905061ffff811115613e6a57613e69613cbf565b5b92915050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b6000613ecc602c83613388565b9150613ed782613e70565b604082019050919050565b60006020820190508181036000830152613efb81613ebf565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b6000613f67601883613388565b9150613f7282613f31565b602082019050919050565b60006020820190508181036000830152613f9681613f5a565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b6000613ff9602983613388565b915061400482613f9d565b604082019050919050565b6000602082019050818103600083015261402881613fec565b9050919050565b7f43616e206f6e6c792063616c6c20666f7220612070726576696f757320636f6860008201527f6f72740000000000000000000000000000000000000000000000000000000000602082015250565b600061408b602383613388565b91506140968261402f565b604082019050919050565b600060208201905081810360008301526140ba8161407e565b9050919050565b7f52616e646f6d20686173682063616e6e6f742062652030000000000000000000600082015250565b60006140f7601783613388565b9150614102826140c1565b602082019050919050565b60006020820190508181036000830152614126816140ea565b9050919050565b7f4445434b3a20436f686f72742072616e646f6d2076616c75652068617320616c60008201527f7265616479206265656e20736574000000000000000000000000000000000000602082015250565b6000614189602e83613388565b91506141948261412d565b604082019050919050565b600060208201905081810360008301526141b88161417c565b9050919050565b7f4445434b3a2055524920717565727920666f72206e6f6e6578697374656e742060008201527f746f6b656e000000000000000000000000000000000000000000000000000000602082015250565b600061421b602583613388565b9150614226826141bf565b604082019050919050565b6000602082019050818103600083015261424a8161420e565b9050919050565b600081905092915050565b60006142678261337d565b6142718185614251565b9350614281818560208601613399565b80840191505092915050565b6000614299828561425c565b91506142a5828461425c565b91508190509392505050565b60006142bc82613206565b91506142c783613206565b92508282019050808211156142df576142de613cbf565b5b92915050565b7f4445434b3a204d6178206d696e7420666f722077616c6c65742072656163686560008201527f6400000000000000000000000000000000000000000000000000000000000000602082015250565b6000614341602183613388565b915061434c826142e5565b604082019050919050565b6000602082019050818103600083015261437081614334565b9050919050565b7f4445434b3a204d6178206d696e7420636f756e74207265616368656400000000600082015250565b60006143ad601c83613388565b91506143b882614377565b602082019050919050565b600060208201905081810360008301526143dc816143a0565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061443f602683613388565b915061444a826143e3565b604082019050919050565b6000602082019050818103600083015261446e81614432565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006144ab602083613388565b91506144b682614475565b602082019050919050565b600060208201905081810360008301526144da8161449e565b9050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026145437fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614506565b61454d8683614506565b95508019841693508086168417925050509392505050565b6000819050919050565b600061458a61458561458084613206565b614565565b613206565b9050919050565b6000819050919050565b6145a48361456f565b6145b86145b082614591565b848454614513565b825550505050565b600090565b6145cd6145c0565b6145d881848461459b565b505050565b5b818110156145fc576145f16000826145c5565b6001810190506145de565b5050565b601f82111561464157614612816144e1565b61461b846144f6565b8101602085101561462a578190505b61463e614636856144f6565b8301826145dd565b50505b505050565b600082821c905092915050565b600061466460001984600802614646565b1980831691505092915050565b600061467d8383614653565b9150826002028217905092915050565b6146968261337d565b67ffffffffffffffff8111156146af576146ae6130db565b5b6146b9825461396c565b6146c4828285614600565b600060209050601f8311600181146146f757600084156146e5578287015190505b6146ef8582614671565b865550614757565b601f198416614705866144e1565b60005b8281101561472d57848901518255600182019150602085019450602081019050614708565b8683101561474a5784890151614746601f891682614653565b8355505b6001600288020188555050505b505050505050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b60006147bb602583613388565b91506147c68261475f565b604082019050919050565b600060208201905081810360008301526147ea816147ae565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b600061484d602483613388565b9150614858826147f1565b604082019050919050565b6000602082019050818103600083015261487c81614840565b9050919050565b600061488e82613206565b915061489983613206565b92508282039050818111156148b1576148b0613cbf565b5b92915050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b60006148ed601983613388565b91506148f8826148b7565b602082019050919050565b6000602082019050818103600083015261491c816148e0565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b600061497f603283613388565b915061498a82614923565b604082019050919050565b600060208201905081810360008301526149ae81614972565b9050919050565b60006149c082613206565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036149f2576149f1613cbf565b5b600182019050919050565b6000614a0882613206565b9150614a1383613206565b925082614a2357614a22613d48565b5b828206905092915050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000614a64601083613388565b9150614a6f82614a2e565b602082019050919050565b60006020820190508181036000830152614a9381614a57565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b6000614aff601483613388565b9150614b0a82614ac9565b602082019050919050565b60006020820190508181036000830152614b2e81614af2565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000614b5c82614b35565b614b668185614b40565b9350614b76818560208601613399565b614b7f816130ca565b840191505092915050565b6000608082019050614b9f600083018761347d565b614bac602083018661347d565b614bb96040830185613353565b8181036060830152614bcb8184614b51565b905095945050505050565b600081519050614be5816132c4565b92915050565b600060208284031215614c0157614c006130b6565b5b6000614c0f84828501614bd6565b91505092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000614c4e602083613388565b9150614c5982614c18565b602082019050919050565b60006020820190508181036000830152614c7d81614c41565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000614cba601c83613388565b9150614cc582614c84565b602082019050919050565b60006020820190508181036000830152614ce981614cad565b905091905056fea2646970667358221220ad5c1019d1a4897969c5f69f4583776dc1f0887042d5f645519b12224cbc977d64736f6c634300081000330000000000000000000000009263b7e438d2323d648cb87535d541367b359a720000000000000000000000000000000000000000000000000000000000000d05000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000003e80000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001a0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002c00000000000000000000000000000000000000000000000000000000000000009546865204d45524745000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000054d455247450000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d626a4244397635556b615266354c61414a4d714e75644c6e47666855736544654e626859374a67747a514b43000000000000000000000000000000000000000000000000000000000000000000000000000000000000050000000000000000000000008af47a5515f57b16c9b97619d510af233342e59800000000000000000000000010844760fa4d52a853d906b5843b57f184290e91000000000000000000000000f8d90af0d610bd46b4e2d387b5b7e52430a0737300000000000000000000000054c72f8d57f882d37006c14af9d37ff4d70b6a180000000000000000000000009263b7e438d2323d648cb87535d541367b359a72000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000010
Deployed Bytecode
0x6080604052600436106102195760003560e01c80636352211e11610123578063a22cb465116100ab578063e0f9c9701161006f578063e0f9c970146107e5578063e7a0edad14610810578063e985e9c51461084d578063ee28b4a01461088a578063f2fde38b146108ba57610219565b8063a22cb465146106ee578063b297d81114610717578063b88d4fde14610754578063beb9716d1461077d578063c87b56dd146107a857610219565b806388840918116100f257806388840918146106075780638da5cb5b14610630578063936b4d011461065b57806395d89b41146106985780639ef2d87a146106c357610219565b80636352211e1461055f57806370a082311461059c578063715018a6146105d95780638456cb59146105f057610219565b8063278d92d7116101a65780633f4ba83a116101755780633f4ba83a1461048e57806342842e0e146104a557806342966c68146104ce5780634f6ccce7146104f75780635c975abb1461053457610219565b8063278d92d7146103bf5780632a55205a146103fc5780632f745c591461043a5780633ac151c01461047757610219565b8063081812fc116101ed578063081812fc146102da578063095ea7b31461031757806313966db51461034057806318160ddd1461036b57806323b872dd1461039657610219565b80629f25ff1461021e57806301ffc9a71461024757806303a028181461028457806306fdde03146102af575b600080fd5b34801561022a57600080fd5b506102456004803603810190610240919061323c565b6108e3565b005b34801561025357600080fd5b5061026e600480360381019061026991906132f0565b6108f9565b60405161027b9190613338565b60405180910390f35b34801561029057600080fd5b5061029961090b565b6040516102a69190613362565b60405180910390f35b3480156102bb57600080fd5b506102c4610915565b6040516102d191906133fc565b60405180910390f35b3480156102e657600080fd5b5061030160048036038101906102fc919061341e565b6109a7565b60405161030e919061348c565b60405180910390f35b34801561032357600080fd5b5061033e600480360381019061033991906134d3565b6109ed565b005b34801561034c57600080fd5b50610355610b04565b6040516103629190613362565b60405180910390f35b34801561037757600080fd5b50610380610b0a565b60405161038d9190613362565b60405180910390f35b3480156103a257600080fd5b506103bd60048036038101906103b89190613513565b610b17565b005b3480156103cb57600080fd5b506103e660048036038101906103e1919061341e565b610b77565b6040516103f3919061357f565b60405180910390f35b34801561040857600080fd5b50610423600480360381019061041e919061359a565b610cf2565b6040516104319291906135da565b60405180910390f35b34801561044657600080fd5b50610461600480360381019061045c91906134d3565b610edc565b60405161046e9190613362565b60405180910390f35b34801561048357600080fd5b5061048c610f81565b005b34801561049a57600080fd5b506104a3611006565b005b3480156104b157600080fd5b506104cc60048036038101906104c79190613513565b611018565b005b3480156104da57600080fd5b506104f560048036038101906104f0919061341e565b611038565b005b34801561050357600080fd5b5061051e6004803603810190610519919061341e565b611094565b60405161052b9190613362565b60405180910390f35b34801561054057600080fd5b50610549611105565b6040516105569190613338565b60405180910390f35b34801561056b57600080fd5b506105866004803603810190610581919061341e565b61111c565b604051610593919061348c565b60405180910390f35b3480156105a857600080fd5b506105c360048036038101906105be9190613603565b6111cd565b6040516105d09190613362565b60405180910390f35b3480156105e557600080fd5b506105ee611284565b005b3480156105fc57600080fd5b50610605611298565b005b34801561061357600080fd5b5061062e60048036038101906106299190613696565b6112aa565b005b34801561063c57600080fd5b506106456113f9565b604051610652919061348c565b60405180910390f35b34801561066757600080fd5b50610682600480360381019061067d91906136d6565b611423565b60405161068f919061357f565b60405180910390f35b3480156106a457600080fd5b506106ad611441565b6040516106ba91906133fc565b60405180910390f35b3480156106cf57600080fd5b506106d86114d3565b6040516106e59190613362565b60405180910390f35b3480156106fa57600080fd5b506107156004803603810190610710919061372f565b6114dd565b005b34801561072357600080fd5b5061073e600480360381019061073991906136d6565b6114f3565b60405161074b9190613362565b60405180910390f35b34801561076057600080fd5b5061077b60048036038101906107769190613810565b61151e565b005b34801561078957600080fd5b50610792611580565b60405161079f9190613338565b60405180910390f35b3480156107b457600080fd5b506107cf60048036038101906107ca919061341e565b611590565b6040516107dc91906133fc565b60405180910390f35b3480156107f157600080fd5b506107fa611771565b60405161080791906138a2565b60405180910390f35b34801561081c57600080fd5b50610837600480360381019061083291906138bd565b611785565b6040516108449190613362565b60405180910390f35b34801561085957600080fd5b50610874600480360381019061086f91906138fd565b6117ca565b6040516108819190613338565b60405180910390f35b6108a4600480360381019061089f919061341e565b61185e565b6040516108b19190613338565b60405180910390f35b3480156108c657600080fd5b506108e160048036038101906108dc9190613603565b61192d565b005b6108eb611b0e565b6108f58282611b8c565b5050565b600061090482611bb1565b9050919050565b6000600f54905090565b6060600080546109249061396c565b80601f01602080910402602001604051908101604052809291908181526020018280546109509061396c565b801561099d5780601f106109725761010080835404028352916020019161099d565b820191906000526020600020905b81548152906001019060200180831161098057829003601f168201915b5050505050905090565b60006109b282611c2b565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006109f88261111c565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610a68576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a5f90613a0f565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610a87611c76565b73ffffffffffffffffffffffffffffffffffffffff161480610ab65750610ab581610ab0611c76565b6117ca565b5b610af5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aec90613aa1565b60405180910390fd5b610aff8383611c7e565b505050565b60105481565b6000600880549050905090565b610b28610b22611c76565b82611d37565b610b67576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b5e90613b33565b60405180910390fd5b610b72838383611dcc565b505050565b6000610b8282612032565b610bc1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bb890613b9f565b60405180910390fd5b60006014600084815260200190815260200160002060009054906101000a900461ffff1690506000601360008361ffff1661ffff16815260200190815260200160002060405180604001604052908160008201805480602002602001604051908101604052809291908181526020018280548015610c5e57602002820191906000526020600020905b815481526020019060010190808311610c4a575b5050505050815260200160018201548152505090506000801b816020015103610cbc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cb390613c31565b60405180910390fd5b806020015184604051602001610cd3929190613c93565b6040516020818303038152906040528051906020012092505050919050565b6000806000600b60008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1603610e8757600a6040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b6000610e9161209e565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff1686610ebd9190613cee565b610ec79190613d77565b90508160000151819350935050509250929050565b6000610ee7836111cd565b8210610f28576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f1f90613e1a565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610f89611b0e565b6001601260008282829054906101000a900461ffff16610fa99190613e3a565b92506101000a81548161ffff021916908361ffff160217905550601260009054906101000a900461ffff1661ffff167f9ecd567ba5cb1b563bec12d69b2cc57fa5f85e9acdcfe19a064ac199ec53cf9b60405160405180910390a2565b61100e611b0e565b6110166120a8565b565b6110338383836040518060200160405280600081525061151e565b505050565b611049611043611c76565b82611d37565b611088576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161107f90613b33565b60405180910390fd5b6110918161210b565b50565b600061109e610b0a565b82106110df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110d690613ee2565b60405180910390fd5b600882815481106110f3576110f2613f02565b5b90600052602060002001549050919050565b6000600c60149054906101000a900460ff16905090565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036111c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111bb90613f7d565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361123d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112349061400f565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61128c611b0e565b6112966000612228565b565b6112a0611b0e565b6112a86122ee565b565b6112b2611b0e565b601260009054906101000a900461ffff1661ffff168261ffff161061130c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611303906140a1565b60405180910390fd5b806000801b03611351576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113489061410d565b60405180910390fd5b6000601360008461ffff1661ffff168152602001908152602001600020905080600101546000801b146113b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113b09061419f565b60405180910390fd5b818160010181905550818361ffff167f75347625cc940d3f2ad85c1f9a968b15605e292abeaa89150a90d3c6f23b3e1260405160405180910390a3505050565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60136020528060005260406000206000915090508060010154905081565b6060600180546114509061396c565b80601f016020809104026020016040519081016040528092919081815260200182805461147c9061396c565b80156114c95780601f1061149e576101008083540402835291602001916114c9565b820191906000526020600020905b8154815290600101906020018083116114ac57829003601f168201915b5050505050905090565b6000600e54905090565b6114ef6114e8611c76565b8383612351565b5050565b6000601360008361ffff1661ffff168152602001908152602001600020600001805490509050919050565b61152f611529611c76565b83611d37565b61156e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161156590613b33565b60405180910390fd5b61157a848484846124bd565b50505050565b600061158a611105565b15905090565b606061159b82612032565b6115da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115d190614231565b60405180910390fd5b60006014600084815260200190815260200160002060009054906101000a900461ffff1661ffff16905060006015600083815260200190815260200160002080546116249061396c565b80601f01602080910402602001604051908101604052809291908181526020018280546116509061396c565b801561169d5780601f106116725761010080835404028352916020019161169d565b820191906000526020600020905b81548152906001019060200180831161168057829003601f168201915b50505050509050600081511161173d57601180546116ba9061396c565b80601f01602080910402602001604051908101604052809291908181526020018280546116e69061396c565b80156117335780601f1061170857610100808354040283529160200191611733565b820191906000526020600020905b81548152906001019060200180831161171657829003601f168201915b5050505050611768565b8061174785612519565b60405160200161175892919061428d565b6040516020818303038152906040525b92505050919050565b601260009054906101000a900461ffff1681565b6000601360008461ffff1661ffff16815260200190815260200160002060000182815481106117b7576117b6613f02565b5b9060005260206000200154905092915050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000611868612679565b600f5482611875336111cd565b61187f91906142b1565b11156118c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118b790614357565b60405180910390fd5b600e54826118ce600d6119c6565b6118d891906142b1565b1115611919576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611910906143c3565b60405180910390fd5b61192382336126c3565b5060019050919050565b611935611b0e565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036119a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161199b90614455565b60405180910390fd5b6119ad81612228565b50565b6001816000016000828254019250508190555050565b600081600001549050919050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b611a02838383611b09565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611a4457611a3f816127a9565b611a83565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614611a8257611a8183826127f2565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611ac557611ac08161295f565b611b04565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614611b0357611b028282612a30565b5b5b505050565b505050565b611b16611c76565b73ffffffffffffffffffffffffffffffffffffffff16611b346113f9565b73ffffffffffffffffffffffffffffffffffffffff1614611b8a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b81906144c1565b60405180910390fd5b565b81601560008381526020019081526020016000209081611bac919061468d565b505050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611c245750611c2382612aaf565b5b9050919050565b611c3481612032565b611c73576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c6a90613f7d565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611cf18361111c565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080611d438361111c565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611d855750611d8481856117ca565b5b80611dc357508373ffffffffffffffffffffffffffffffffffffffff16611dab846109a7565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611dec8261111c565b73ffffffffffffffffffffffffffffffffffffffff1614611e42576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e39906147d1565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611eb1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ea890614863565b60405180910390fd5b611ebc838383612b29565b611ec7600082611c7e565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611f179190614883565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611f6e91906142b1565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461202d838383612b39565b505050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b6000612710905090565b6120b0612b3e565b6000600c60146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6120f4611c76565b604051612101919061348c565b60405180910390a1565b60006121168261111c565b905061212481600084612b29565b61212f600083611c7e565b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461217f9190614883565b925050819055506002600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461222481600084612b39565b5050565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6122f6612679565b6001600c60146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861233a611c76565b604051612347919061348c565b60405180910390a1565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036123bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123b690614903565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516124b09190613338565b60405180910390a3505050565b6124c8848484611dcc565b6124d484848484612b87565b612513576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161250a90614995565b60405180910390fd5b50505050565b606060008203612560576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612674565b600082905060005b6000821461259257808061257b906149b5565b915050600a8261258b9190613d77565b9150612568565b60008167ffffffffffffffff8111156125ae576125ad6130db565b5b6040519080825280601f01601f1916602001820160405280156125e05781602001600182028036833780820191505090505b5090505b6000851461266d576001826125f99190614883565b9150600a8561260891906149fd565b603061261491906142b1565b60f81b81838151811061262a57612629613f02565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856126669190613d77565b94506125e4565b8093505050505b919050565b612681611105565b156126c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126b890614a7a565b60405180910390fd5b565b60008060136000601260009054906101000a900461ffff1661ffff1661ffff168152602001908152602001600020905060005b8481101561279d57612708600d6119b0565b6000612714600d6119c6565b90506127208582612d0e565b601260009054906101000a900461ffff166014600083815260200190815260200160002060006101000a81548161ffff021916908361ffff16021790555082600001819080600181540180825580915050600190039060005260206000200160009091909190915055508080612795906149b5565b9150506126f6565b50600191505092915050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b600060016127ff846111cd565b6128099190614883565b90506000600760008481526020019081526020016000205490508181146128ee576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016008805490506129739190614883565b90506000600960008481526020019081526020016000205490506000600883815481106129a3576129a2613f02565b5b9060005260206000200154905080600883815481106129c5576129c4613f02565b5b906000526020600020018190555081600960008381526020019081526020016000208190555060096000858152602001908152602001600020600090556008805480612a1457612a13614a9a565b5b6001900381819060005260206000200160009055905550505050565b6000612a3b836111cd565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612b225750612b2182612d2c565b5b9050919050565b612b348383836119f7565b505050565b505050565b612b46611105565b612b85576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b7c90614b15565b60405180910390fd5b565b6000612ba88473ffffffffffffffffffffffffffffffffffffffff166119d4565b15612d01578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612bd1611c76565b8786866040518563ffffffff1660e01b8152600401612bf39493929190614b8a565b6020604051808303816000875af1925050508015612c2f57506040513d601f19601f82011682018060405250810190612c2c9190614beb565b60015b612cb1573d8060008114612c5f576040519150601f19603f3d011682016040523d82523d6000602084013e612c64565b606091505b506000815103612ca9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ca090614995565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612d06565b600190505b949350505050565b612d28828260405180602001604052806000815250612e0e565b5050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612df757507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612e075750612e0682612e69565b5b9050919050565b612e188383612ed3565b612e256000848484612b87565b612e64576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e5b90614995565b60405180910390fd5b505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612f42576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f3990614c64565b60405180910390fd5b612f4b81612032565b15612f8b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f8290614cd0565b60405180910390fd5b612f9760008383612b29565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612fe791906142b1565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46130a860008383612b39565b5050565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613113826130ca565b810181811067ffffffffffffffff82111715613132576131316130db565b5b80604052505050565b60006131456130ac565b9050613151828261310a565b919050565b600067ffffffffffffffff821115613171576131706130db565b5b61317a826130ca565b9050602081019050919050565b82818337600083830152505050565b60006131a96131a484613156565b61313b565b9050828152602081018484840111156131c5576131c46130c5565b5b6131d0848285613187565b509392505050565b600082601f8301126131ed576131ec6130c0565b5b81356131fd848260208601613196565b91505092915050565b6000819050919050565b61321981613206565b811461322457600080fd5b50565b60008135905061323681613210565b92915050565b60008060408385031215613253576132526130b6565b5b600083013567ffffffffffffffff811115613271576132706130bb565b5b61327d858286016131d8565b925050602061328e85828601613227565b9150509250929050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6132cd81613298565b81146132d857600080fd5b50565b6000813590506132ea816132c4565b92915050565b600060208284031215613306576133056130b6565b5b6000613314848285016132db565b91505092915050565b60008115159050919050565b6133328161331d565b82525050565b600060208201905061334d6000830184613329565b92915050565b61335c81613206565b82525050565b60006020820190506133776000830184613353565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156133b757808201518184015260208101905061339c565b60008484015250505050565b60006133ce8261337d565b6133d88185613388565b93506133e8818560208601613399565b6133f1816130ca565b840191505092915050565b6000602082019050818103600083015261341681846133c3565b905092915050565b600060208284031215613434576134336130b6565b5b600061344284828501613227565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006134768261344b565b9050919050565b6134868161346b565b82525050565b60006020820190506134a1600083018461347d565b92915050565b6134b08161346b565b81146134bb57600080fd5b50565b6000813590506134cd816134a7565b92915050565b600080604083850312156134ea576134e96130b6565b5b60006134f8858286016134be565b925050602061350985828601613227565b9150509250929050565b60008060006060848603121561352c5761352b6130b6565b5b600061353a868287016134be565b935050602061354b868287016134be565b925050604061355c86828701613227565b9150509250925092565b6000819050919050565b61357981613566565b82525050565b60006020820190506135946000830184613570565b92915050565b600080604083850312156135b1576135b06130b6565b5b60006135bf85828601613227565b92505060206135d085828601613227565b9150509250929050565b60006040820190506135ef600083018561347d565b6135fc6020830184613353565b9392505050565b600060208284031215613619576136186130b6565b5b6000613627848285016134be565b91505092915050565b600061ffff82169050919050565b61364781613630565b811461365257600080fd5b50565b6000813590506136648161363e565b92915050565b61367381613566565b811461367e57600080fd5b50565b6000813590506136908161366a565b92915050565b600080604083850312156136ad576136ac6130b6565b5b60006136bb85828601613655565b92505060206136cc85828601613681565b9150509250929050565b6000602082840312156136ec576136eb6130b6565b5b60006136fa84828501613655565b91505092915050565b61370c8161331d565b811461371757600080fd5b50565b60008135905061372981613703565b92915050565b60008060408385031215613746576137456130b6565b5b6000613754858286016134be565b92505060206137658582860161371a565b9150509250929050565b600067ffffffffffffffff82111561378a576137896130db565b5b613793826130ca565b9050602081019050919050565b60006137b36137ae8461376f565b61313b565b9050828152602081018484840111156137cf576137ce6130c5565b5b6137da848285613187565b509392505050565b600082601f8301126137f7576137f66130c0565b5b81356138078482602086016137a0565b91505092915050565b6000806000806080858703121561382a576138296130b6565b5b6000613838878288016134be565b9450506020613849878288016134be565b935050604061385a87828801613227565b925050606085013567ffffffffffffffff81111561387b5761387a6130bb565b5b613887878288016137e2565b91505092959194509250565b61389c81613630565b82525050565b60006020820190506138b76000830184613893565b92915050565b600080604083850312156138d4576138d36130b6565b5b60006138e285828601613655565b92505060206138f385828601613227565b9150509250929050565b60008060408385031215613914576139136130b6565b5b6000613922858286016134be565b9250506020613933858286016134be565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061398457607f821691505b6020821081036139975761399661393d565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b60006139f9602183613388565b9150613a048261399d565b604082019050919050565b60006020820190508181036000830152613a28816139ec565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015250565b6000613a8b603e83613388565b9150613a9682613a2f565b604082019050919050565b60006020820190508181036000830152613aba81613a7e565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b6000613b1d602e83613388565b9150613b2882613ac1565b604082019050919050565b60006020820190508181036000830152613b4c81613b10565b9050919050565b7f4445434b3a206e6f6e6578697374656e7420746f6b656e000000000000000000600082015250565b6000613b89601783613388565b9150613b9482613b53565b602082019050919050565b60006020820190508181036000830152613bb881613b7c565b9050919050565b7f4445434b3a20436f686f727420686173206e6f74206265656e20696e6974696160008201527f6c697a6564207965740000000000000000000000000000000000000000000000602082015250565b6000613c1b602983613388565b9150613c2682613bbf565b604082019050919050565b60006020820190508181036000830152613c4a81613c0e565b9050919050565b6000819050919050565b613c6c613c6782613566565b613c51565b82525050565b6000819050919050565b613c8d613c8882613206565b613c72565b82525050565b6000613c9f8285613c5b565b602082019150613caf8284613c7c565b6020820191508190509392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613cf982613206565b9150613d0483613206565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613d3d57613d3c613cbf565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613d8282613206565b9150613d8d83613206565b925082613d9d57613d9c613d48565b5b828204905092915050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b6000613e04602b83613388565b9150613e0f82613da8565b604082019050919050565b60006020820190508181036000830152613e3381613df7565b9050919050565b6000613e4582613630565b9150613e5083613630565b9250828201905061ffff811115613e6a57613e69613cbf565b5b92915050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b6000613ecc602c83613388565b9150613ed782613e70565b604082019050919050565b60006020820190508181036000830152613efb81613ebf565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b6000613f67601883613388565b9150613f7282613f31565b602082019050919050565b60006020820190508181036000830152613f9681613f5a565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b6000613ff9602983613388565b915061400482613f9d565b604082019050919050565b6000602082019050818103600083015261402881613fec565b9050919050565b7f43616e206f6e6c792063616c6c20666f7220612070726576696f757320636f6860008201527f6f72740000000000000000000000000000000000000000000000000000000000602082015250565b600061408b602383613388565b91506140968261402f565b604082019050919050565b600060208201905081810360008301526140ba8161407e565b9050919050565b7f52616e646f6d20686173682063616e6e6f742062652030000000000000000000600082015250565b60006140f7601783613388565b9150614102826140c1565b602082019050919050565b60006020820190508181036000830152614126816140ea565b9050919050565b7f4445434b3a20436f686f72742072616e646f6d2076616c75652068617320616c60008201527f7265616479206265656e20736574000000000000000000000000000000000000602082015250565b6000614189602e83613388565b91506141948261412d565b604082019050919050565b600060208201905081810360008301526141b88161417c565b9050919050565b7f4445434b3a2055524920717565727920666f72206e6f6e6578697374656e742060008201527f746f6b656e000000000000000000000000000000000000000000000000000000602082015250565b600061421b602583613388565b9150614226826141bf565b604082019050919050565b6000602082019050818103600083015261424a8161420e565b9050919050565b600081905092915050565b60006142678261337d565b6142718185614251565b9350614281818560208601613399565b80840191505092915050565b6000614299828561425c565b91506142a5828461425c565b91508190509392505050565b60006142bc82613206565b91506142c783613206565b92508282019050808211156142df576142de613cbf565b5b92915050565b7f4445434b3a204d6178206d696e7420666f722077616c6c65742072656163686560008201527f6400000000000000000000000000000000000000000000000000000000000000602082015250565b6000614341602183613388565b915061434c826142e5565b604082019050919050565b6000602082019050818103600083015261437081614334565b9050919050565b7f4445434b3a204d6178206d696e7420636f756e74207265616368656400000000600082015250565b60006143ad601c83613388565b91506143b882614377565b602082019050919050565b600060208201905081810360008301526143dc816143a0565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061443f602683613388565b915061444a826143e3565b604082019050919050565b6000602082019050818103600083015261446e81614432565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006144ab602083613388565b91506144b682614475565b602082019050919050565b600060208201905081810360008301526144da8161449e565b9050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026145437fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614506565b61454d8683614506565b95508019841693508086168417925050509392505050565b6000819050919050565b600061458a61458561458084613206565b614565565b613206565b9050919050565b6000819050919050565b6145a48361456f565b6145b86145b082614591565b848454614513565b825550505050565b600090565b6145cd6145c0565b6145d881848461459b565b505050565b5b818110156145fc576145f16000826145c5565b6001810190506145de565b5050565b601f82111561464157614612816144e1565b61461b846144f6565b8101602085101561462a578190505b61463e614636856144f6565b8301826145dd565b50505b505050565b600082821c905092915050565b600061466460001984600802614646565b1980831691505092915050565b600061467d8383614653565b9150826002028217905092915050565b6146968261337d565b67ffffffffffffffff8111156146af576146ae6130db565b5b6146b9825461396c565b6146c4828285614600565b600060209050601f8311600181146146f757600084156146e5578287015190505b6146ef8582614671565b865550614757565b601f198416614705866144e1565b60005b8281101561472d57848901518255600182019150602085019450602081019050614708565b8683101561474a5784890151614746601f891682614653565b8355505b6001600288020188555050505b505050505050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b60006147bb602583613388565b91506147c68261475f565b604082019050919050565b600060208201905081810360008301526147ea816147ae565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b600061484d602483613388565b9150614858826147f1565b604082019050919050565b6000602082019050818103600083015261487c81614840565b9050919050565b600061488e82613206565b915061489983613206565b92508282039050818111156148b1576148b0613cbf565b5b92915050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b60006148ed601983613388565b91506148f8826148b7565b602082019050919050565b6000602082019050818103600083015261491c816148e0565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b600061497f603283613388565b915061498a82614923565b604082019050919050565b600060208201905081810360008301526149ae81614972565b9050919050565b60006149c082613206565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036149f2576149f1613cbf565b5b600182019050919050565b6000614a0882613206565b9150614a1383613206565b925082614a2357614a22613d48565b5b828206905092915050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000614a64601083613388565b9150614a6f82614a2e565b602082019050919050565b60006020820190508181036000830152614a9381614a57565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b6000614aff601483613388565b9150614b0a82614ac9565b602082019050919050565b60006020820190508181036000830152614b2e81614af2565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000614b5c82614b35565b614b668185614b40565b9350614b76818560208601613399565b614b7f816130ca565b840191505092915050565b6000608082019050614b9f600083018761347d565b614bac602083018661347d565b614bb96040830185613353565b8181036060830152614bcb8184614b51565b905095945050505050565b600081519050614be5816132c4565b92915050565b600060208284031215614c0157614c006130b6565b5b6000614c0f84828501614bd6565b91505092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000614c4e602083613388565b9150614c5982614c18565b602082019050919050565b60006020820190508181036000830152614c7d81614c41565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000614cba601c83613388565b9150614cc582614c84565b602082019050919050565b60006020820190508181036000830152614ce981614cad565b905091905056fea2646970667358221220ad5c1019d1a4897969c5f69f4583776dc1f0887042d5f645519b12224cbc977d64736f6c63430008100033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000009263b7e438d2323d648cb87535d541367b359a720000000000000000000000000000000000000000000000000000000000000d05000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000003e80000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001a0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002c00000000000000000000000000000000000000000000000000000000000000009546865204d45524745000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000054d455247450000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d626a4244397635556b615266354c61414a4d714e75644c6e47666855736544654e626859374a67747a514b43000000000000000000000000000000000000000000000000000000000000000000000000000000000000050000000000000000000000008af47a5515f57b16c9b97619d510af233342e59800000000000000000000000010844760fa4d52a853d906b5843b57f184290e91000000000000000000000000f8d90af0d610bd46b4e2d387b5b7e52430a0737300000000000000000000000054c72f8d57f882d37006c14af9d37ff4d70b6a180000000000000000000000009263b7e438d2323d648cb87535d541367b359a72000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000010
-----Decoded View---------------
Arg [0] : treasury_ (address): 0x9263b7e438d2323d648Cb87535D541367b359a72
Arg [1] : maxCount_ (uint256): 3333
Arg [2] : maxCountPerWallet_ (uint256): 3
Arg [3] : royalties (uint96): 1000
Arg [4] : tokenName (string): The MERGE
Arg [5] : tokenSymbol (string): MERGE
Arg [6] : startingBaseURI (string): ipfs://QmbjBD9v5UkaRf5LaAJMqNudLnGfhUseDeNbhY7JgtzQKC
Arg [7] : earlyRecipients (address[]): 0x8AF47A5515f57b16C9b97619d510af233342e598,0x10844760FA4D52a853D906b5843b57F184290e91,0xf8D90af0d610bD46b4e2d387B5b7E52430A07373,0x54C72F8d57f882d37006c14aF9d37ff4D70B6A18,0x9263b7e438d2323d648Cb87535D541367b359a72
Arg [8] : tokenCounts (uint256[]): 6,6,6,6,16
-----Encoded View---------------
28 Constructor Arguments found :
Arg [0] : 0000000000000000000000009263b7e438d2323d648cb87535d541367b359a72
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000d05
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [3] : 00000000000000000000000000000000000000000000000000000000000003e8
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [6] : 00000000000000000000000000000000000000000000000000000000000001a0
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000200
Arg [8] : 00000000000000000000000000000000000000000000000000000000000002c0
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [10] : 546865204d455247450000000000000000000000000000000000000000000000
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [12] : 4d45524745000000000000000000000000000000000000000000000000000000
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000035
Arg [14] : 697066733a2f2f516d626a4244397635556b615266354c61414a4d714e75644c
Arg [15] : 6e47666855736544654e626859374a67747a514b430000000000000000000000
Arg [16] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [17] : 0000000000000000000000008af47a5515f57b16c9b97619d510af233342e598
Arg [18] : 00000000000000000000000010844760fa4d52a853d906b5843b57f184290e91
Arg [19] : 000000000000000000000000f8d90af0d610bd46b4e2d387b5b7e52430a07373
Arg [20] : 00000000000000000000000054c72f8d57f882d37006c14af9d37ff4d70b6a18
Arg [21] : 0000000000000000000000009263b7e438d2323d648cb87535d541367b359a72
Arg [22] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [23] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [24] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [25] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [26] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [27] : 0000000000000000000000000000000000000000000000000000000000000010
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.