ERC-721
Overview
Max Total Supply
1,500 EK
Holders
217
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
11 EKLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
EMILY_KNIGHTS
Compiler Version
v0.8.13+commit.abaa5c0e
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/token/common/ERC2981.sol"; import "erc721psi/contracts/ERC721Psi.sol"; import "operator-filter-registry/src/DefaultOperatorFilterer.sol"; contract EMILY_KNIGHTS is ERC721Psi, ERC2981, Ownable, ReentrancyGuard, DefaultOperatorFilterer { using Strings for uint256; uint256 public constant MAX_SUPPLY = 1500; uint256 public constant PRICE_AL1 = 0; uint256 public constant PRICE_AL2 = 0.005 ether; uint256 public constant PRICE_AL3 = 0.007 ether; uint256 public constant PRICE_PUB = 0.009 ether; mapping (uint256 => bool) public saleStart; // 1: AL1, 2: AL2, 3: AL3, 4: Public mapping (uint256 => bytes32) public merkleRoot; // 1: AL1, 2: AL2, 3: AL3 bool private _revealed; string private _baseTokenURI; string private _unrevealedURI = "https://emily-nft-assets.s3.ap-northeast-1.amazonaws.com/unrevealed/metadata.json"; mapping(address => uint256) public claimed; // totalClaimed mapping(uint256 => mapping(address => uint256)) public claimedForSale; // saleType => (address => claimed) mapping(uint256 => string) public charName; // tokenId => name event Mint(address indexed _address, uint256 _quantity, uint256 _mintType); constructor() ERC721Psi("EmilyKnights", "EK") { _setDefaultRoyalty(address(0x5444F2D8a68bE0daFe38dEf6cDaa172C2D015A05), 1000); // 事前配布 _safeMint(0x5444F2D8a68bE0daFe38dEf6cDaa172C2D015A05, 10); _safeMint(0x253058B7F0fF2C6218dB7569cE1d399F7183E355, 10); _safeMint(0xBAa98fe972144EF1DE53b801045CEc5A291cB30E, 13); _safeMint(0xA3fD3586726C6B71B5925613909B40564aFf9F86, 13); _safeMint(0x3C2EBB7c2c4ee839c12708c123D6a54F5fbb1562, 5); _safeMint(0xd77989A5b8Ded89B74215845f245E35D932CD740, 5); _safeMint(0xfff66e751ec31Bc8757819d969b35071c32CE46e, 3); _safeMint(0x998DFdC33E7d529de31F9A213265f42E0b28E2f8, 3); _safeMint(0xb7653171De23982acaDc2aa3c40E662C929663dB, 2); _safeMint(0x35594B527422aAb97d0e3b5813D72BD6e9aE1717, 3); _safeMint(0x0383C0bDD89e915C1E2b4Ac3445a3158211056E9, 3); _safeMint(0x28B89726e06B5881bd5d4aAB35D6E3F84606Bb99, 3); _safeMint(0x00E21fa5FDE28DE9217a112D35b51452FdC726e9, 3); _safeMint(0x292E4d6aB815F410819b4472100F08423BE378B8, 3); _safeMint(0xdf1c6F94fe16337EA61e726Fa6F268de7268f787, 3); _safeMint(0x254c98BC580dAb615b84e144d377bC8AB168Bbe2, 1); _safeMint(0x60C1a53bD2c7D3a399C1dCE05c60A8CDa353640B, 1); _safeMint(0x65Aad16650AFf6B1c11e779EE3C9b361808C5F61, 1); _safeMint(0x5D0218806AD8045Ec085005ca6F119B6bcc21758, 1); _safeMint(0xC4cf182696E3810f654632bfF8770EC9AB826Db5, 1); _safeMint(0xeB93B1A498b858CA5Edc0f30eAE390463C754C93, 1); _safeMint(0xBE6e5a76D58F91A44620a0f7eedc80E22136860D, 1); _safeMint(0xebF8713E7565719A1bE6F2158d6Fb205e442Cac6, 1); _safeMint(0x0303D829D9B81D0939a974cB0C88ea27AB7129c9, 1); _safeMint(0x42A662B820e0C3a860faD43f34D92cDb4769CF8B, 1); } function _baseURI() internal view virtual override returns (string memory) { return _baseTokenURI; } function tokenURI(uint256 _tokenId) public view virtual override(ERC721Psi) returns (string memory) { if (_revealed) { return string(abi.encodePacked(ERC721Psi.tokenURI(_tokenId), ".json")); } else { return _unrevealedURI; } } function pubMint(uint256 _quantity, address _receiver) public payable nonReentrant { uint256 cost = PRICE_PUB * _quantity; require(saleStart[4], "Before sale begin."); require(_quantity > 0, 'Please set quantity.'); _mintCheck(4, _quantity, cost, 0); claimed[_receiver] += _quantity; claimedForSale[4][_receiver] += _quantity; _safeMint(_receiver, _quantity); emit Mint(_receiver, _quantity, 4); } function verifyAddressAndAmount( address _address, uint256 _amount, uint256 _mintType, bytes32[] calldata _merkleProof ) public view returns (bool) { bytes32 leaf = keccak256(abi.encodePacked(_address, _amount)); return MerkleProof.verifyCalldata(_merkleProof, merkleRoot[_mintType], leaf); } function preMint(uint256 _mintType, uint256 _quantity, bytes32[] calldata _merkleProof, uint256 _mintLimit) public payable nonReentrant { uint256 cost = 0; if (_mintType == 1) { cost = PRICE_AL1 * _quantity; } else if (_mintType == 2) { cost = PRICE_AL2 * _quantity; } else if (_mintType == 3) { cost = PRICE_AL3 * _quantity; } require(_quantity > 0, 'Please set quantity.'); require(saleStart[_mintType], "Before sale begin."); require(verifyAddressAndAmount(msg.sender, _mintLimit, _mintType, _merkleProof), "Invalid Merkle Proof"); _mintCheck(_mintType, _quantity, cost, _mintLimit); claimed[msg.sender] += _quantity; claimedForSale[_mintType][msg.sender] += _quantity; _safeMint(msg.sender, _quantity); emit Mint(msg.sender, _quantity, _mintType); } function _mintCheck( uint256 _mintType, uint256 _quantity, uint256 _cost, uint256 _mintLimit ) private view { uint256 supply = totalSupply(); require(supply + _quantity <= MAX_SUPPLY, "Max supply over"); require(msg.value == _cost, "Not enough funds"); if (_mintType != 4) { // Check mintLimit except Public require( claimedForSale[_mintType][msg.sender] + _quantity <= _mintLimit, "Mint quantity over" ); } } function ownerMint(address _address, uint256 _quantity) public onlyOwner { uint256 supply = totalSupply(); require(supply + _quantity <= MAX_SUPPLY, "Max supply over"); _safeMint(_address, _quantity); } // only owner function setUnrevealedURI(string calldata _uri) public onlyOwner { _unrevealedURI = _uri; } function setBaseURI(string calldata _uri) external onlyOwner { _baseTokenURI = _uri; } function setMerkleRoot(uint256 _mintType, bytes32 _merkleRoot) public onlyOwner { merkleRoot[_mintType] = _merkleRoot; } function setSaleStart(uint256 _mintType, bool _state) public onlyOwner { saleStart[_mintType] = _state; } function setName(uint256 _tokenId, string calldata _name) public { require(ownerOf(_tokenId) == msg.sender, "ERC721: caller is not the owner"); charName[_tokenId] = _name; } function setNameForce(uint256 _tokenId, string calldata _name) public onlyOwner { charName[_tokenId] = _name; } function reveal(bool _state) public onlyOwner { _revealed = _state; } // 報酬配分 function withdraw() external onlyOwner { uint256 balance = address(this).balance; // 10000 = 1% Address.sendValue(payable(0x5444F2D8a68bE0daFe38dEf6cDaa172C2D015A05), ((balance * 500000) / 1000000)); Address.sendValue(payable(0x7Abb65089055fB2bf5b247c89E3C11F7dB861213), ((balance * 300000) / 1000000)); Address.sendValue(payable(0xA3fD3586726C6B71B5925613909B40564aFf9F86), ((balance * 50000) / 1000000)); Address.sendValue(payable(0xBAa98fe972144EF1DE53b801045CEc5A291cB30E), ((balance * 50000) / 1000000)); Address.sendValue(payable(0x3C2EBB7c2c4ee839c12708c123D6a54F5fbb1562), ((balance * 50000) / 1000000)); Address.sendValue(payable(0xd77989A5b8Ded89B74215845f245E35D932CD740), ((balance * 50000) / 1000000)); } // OperatorFilterer function setApprovalForAll(address operator, bool approved) public override onlyAllowedOperatorApproval(operator) { super.setApprovalForAll(operator, approved); } function approve(address operator, uint256 tokenId) public override onlyAllowedOperatorApproval(operator) { super.approve(operator, tokenId); } function transferFrom( address from, address to, uint256 tokenId ) public override onlyAllowedOperator(from) { super.transferFrom(from, to, tokenId); } function safeTransferFrom( address from, address to, uint256 tokenId ) public override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId); } function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId, data); } // Royality function setRoyalty(address _royaltyAddress, uint96 _feeNumerator) external onlyOwner { _setDefaultRoyalty(_royaltyAddress, _feeNumerator); } function supportsInterface(bytes4 _interfaceId) public view virtual override(ERC721Psi, ERC2981) returns (bool) { return ERC721Psi.supportsInterface(_interfaceId) || ERC2981.supportsInterface(_interfaceId); } }
// 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.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 (last updated v4.8.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // 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.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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.8.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: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * 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 (last updated v4.8.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 functionCallWithValue(target, data, 0, "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"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or 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 { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The tree and the proofs can be generated using our * https://github.com/OpenZeppelin/merkle-tree[JavaScript library]. * You will find a quickstart guide in the readme. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. * OpenZeppelin's JavaScript library generates merkle trees that are safe * against this attack out of the box. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false * respectively. * * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer). * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// 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.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/StorageSlot.sol) pragma solidity ^0.8.0; /** * @dev Library for reading and writing primitive types to specific storage slots. * * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts. * This library helps with reading and writing to such slots without the need for inline assembly. * * The functions in this library return Slot structs that contain a `value` member that can be used to read or write. * * Example usage to set ERC1967 implementation slot: * ``` * contract ERC1967 { * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc; * * function _getImplementation() internal view returns (address) { * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value; * } * * function _setImplementation(address newImplementation) internal { * require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract"); * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation; * } * } * ``` * * _Available since v4.1 for `address`, `bool`, `bytes32`, and `uint256`._ */ library StorageSlot { struct AddressSlot { address value; } struct BooleanSlot { bool value; } struct Bytes32Slot { bytes32 value; } struct Uint256Slot { uint256 value; } /** * @dev Returns an `AddressSlot` with member `value` located at `slot`. */ function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `BooleanSlot` with member `value` located at `slot`. */ function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `Bytes32Slot` with member `value` located at `slot`. */ function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `Uint256Slot` with member `value` located at `slot`. */ function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./math/Math.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant _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) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @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] = _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 /** ______ _____ _____ ______ ___ __ _ _ _ | ____| __ \ / ____|____ |__ \/_ | || || | | |__ | |__) | | / / ) || | \| |/ | | __| | _ /| | / / / / | |\_ _/ | |____| | \ \| |____ / / / /_ | | | | |______|_| \_\\_____|/_/ |____||_| |_| */ pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/StorageSlot.sol"; import "solidity-bits/contracts/BitMaps.sol"; contract ERC721Psi is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable { using Address for address; using Strings for uint256; using BitMaps for BitMaps.BitMap; BitMaps.BitMap private _batchHead; string private _name; string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) internal _owners; uint256 internal _minted = 1; mapping(uint256 => address) private _tokenApprovals; 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 || interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint) { require(owner != address(0), "ERC721Psi: balance query for the zero address"); uint count; for( uint i = 1; i < _minted; ++i ){ if(_exists(i)){ if( owner == ownerOf(i)){ ++count; } } } return count; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { (address owner, ) = _ownerAndBatchHeadOf(tokenId); return owner; } function _ownerAndBatchHeadOf(uint256 tokenId) internal view returns (address owner, uint256 tokenIdBatchHead){ require(_exists(tokenId), "ERC721Psi: owner query for nonexistent token"); tokenIdBatchHead = _getBatchHead(tokenId); owner = _owners[tokenIdBatchHead]; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Psi: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ownerOf(tokenId); require(to != owner, "ERC721Psi: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721Psi: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require( _exists(tokenId), "ERC721Psi: approved query for nonexistent token" ); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721Psi: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require( _isApprovedOrOwner(_msgSender(), tokenId), "ERC721Psi: transfer caller is not owner nor approved" ); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require( _isApprovedOrOwner(_msgSender(), tokenId), "ERC721Psi: transfer caller is not owner nor approved" ); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require( _checkOnERC721Received(from, to, tokenId, 1,_data), "ERC721Psi: 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`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return tokenId < _minted; } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require( _exists(tokenId), "ERC721Psi: operator query for nonexistent token" ); address owner = ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ""); } function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { uint256 startTokenId = _minted; _mint(to, quantity); require( _checkOnERC721Received(address(0), to, startTokenId, quantity, _data), "ERC721Psi: transfer to non ERC721Receiver implementer" ); } function _mint( address to, uint256 quantity ) internal virtual { uint256 tokenIdBatchHead = _minted; require(quantity > 0, "ERC721Psi: quantity must be greater 0"); require(to != address(0), "ERC721Psi: mint to the zero address"); _beforeTokenTransfers(address(0), to, tokenIdBatchHead, quantity); _minted += quantity; _owners[tokenIdBatchHead] = to; _batchHead.set(tokenIdBatchHead); _afterTokenTransfers(address(0), to, tokenIdBatchHead, quantity); // Emit events for(uint256 tokenId=tokenIdBatchHead;tokenId < tokenIdBatchHead + quantity; tokenId++){ emit Transfer(address(0), to, 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 { (address owner, uint256 tokenIdBatchHead) = _ownerAndBatchHeadOf(tokenId); require( owner == from, "ERC721Psi: transfer of token that is not own" ); require(to != address(0), "ERC721Psi: transfer to the zero address"); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId); uint256 nextTokenId = tokenId + 1; if(!_batchHead.get(nextTokenId) && nextTokenId < _minted ) { _owners[nextTokenId] = from; _batchHead.set(nextTokenId); } _owners[tokenId] = to; if(tokenId != tokenIdBatchHead) { _batchHead.set(tokenId); } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ownerOf(tokenId), to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param startTokenId uint256 the first ID of the tokens to be transferred * @param quantity uint256 amount of the tokens to be transfered. * @param _data bytes optional data to send along with the call * @return r bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 startTokenId, uint256 quantity, bytes memory _data ) private returns (bool r) { if (to.isContract()) { r = true; for(uint256 tokenId = startTokenId; tokenId < startTokenId + quantity; tokenId++){ try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { r = r && retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721Psi: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } return r; } else { return true; } } function _getBatchHead(uint256 tokenId) internal view returns (uint256 tokenIdBatchHead) { tokenIdBatchHead = _batchHead.scanForward(tokenId); } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _minted - 1; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256 tokenId) { require(index < totalSupply(), "ERC721Psi: global index out of bounds"); uint count; for(uint i = 1; i < _minted; i++){ if(_exists(i)){ if(count == index) return i; else count++; } } } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256 tokenId) { uint count; for(uint i = 1; i < _minted; i++){ if(_exists(i) && owner == ownerOf(i)){ if(count == index) return i; else count++; } } revert("ERC721Psi: owner index out of bounds"); } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import {OperatorFilterer} from "./OperatorFilterer.sol"; import {CANONICAL_CORI_SUBSCRIPTION} from "./lib/Constants.sol"; /** * @title DefaultOperatorFilterer * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription. * @dev Please note that if your token contract does not provide an owner with EIP-173, it must provide * administration methods on the contract itself to interact with the registry otherwise the subscription * will be locked to the options set during construction. */ abstract contract DefaultOperatorFilterer is OperatorFilterer { /// @dev The constructor that is called when the contract is being deployed. constructor() OperatorFilterer(CANONICAL_CORI_SUBSCRIPTION, true) {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; interface IOperatorFilterRegistry { /** * @notice Returns true if operator is not filtered for a given token, either by address or codeHash. Also returns * true if supplied registrant address is not registered. */ function isOperatorAllowed(address registrant, address operator) external view returns (bool); /** * @notice Registers an address with the registry. May be called by address itself or by EIP-173 owner. */ function register(address registrant) external; /** * @notice Registers an address with the registry and "subscribes" to another address's filtered operators and codeHashes. */ function registerAndSubscribe(address registrant, address subscription) external; /** * @notice Registers an address with the registry and copies the filtered operators and codeHashes from another * address without subscribing. */ function registerAndCopyEntries(address registrant, address registrantToCopy) external; /** * @notice Unregisters an address with the registry and removes its subscription. May be called by address itself or by EIP-173 owner. * Note that this does not remove any filtered addresses or codeHashes. * Also note that any subscriptions to this registrant will still be active and follow the existing filtered addresses and codehashes. */ function unregister(address addr) external; /** * @notice Update an operator address for a registered address - when filtered is true, the operator is filtered. */ function updateOperator(address registrant, address operator, bool filtered) external; /** * @notice Update multiple operators for a registered address - when filtered is true, the operators will be filtered. Reverts on duplicates. */ function updateOperators(address registrant, address[] calldata operators, bool filtered) external; /** * @notice Update a codeHash for a registered address - when filtered is true, the codeHash is filtered. */ function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external; /** * @notice Update multiple codeHashes for a registered address - when filtered is true, the codeHashes will be filtered. Reverts on duplicates. */ function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external; /** * @notice Subscribe an address to another registrant's filtered operators and codeHashes. Will remove previous * subscription if present. * Note that accounts with subscriptions may go on to subscribe to other accounts - in this case, * subscriptions will not be forwarded. Instead the former subscription's existing entries will still be * used. */ function subscribe(address registrant, address registrantToSubscribe) external; /** * @notice Unsubscribe an address from its current subscribed registrant, and optionally copy its filtered operators and codeHashes. */ function unsubscribe(address registrant, bool copyExistingEntries) external; /** * @notice Get the subscription address of a given registrant, if any. */ function subscriptionOf(address addr) external returns (address registrant); /** * @notice Get the set of addresses subscribed to a given registrant. * Note that order is not guaranteed as updates are made. */ function subscribers(address registrant) external returns (address[] memory); /** * @notice Get the subscriber at a given index in the set of addresses subscribed to a given registrant. * Note that order is not guaranteed as updates are made. */ function subscriberAt(address registrant, uint256 index) external returns (address); /** * @notice Copy filtered operators and codeHashes from a different registrantToCopy to addr. */ function copyEntriesOf(address registrant, address registrantToCopy) external; /** * @notice Returns true if operator is filtered by a given address or its subscription. */ function isOperatorFiltered(address registrant, address operator) external returns (bool); /** * @notice Returns true if the hash of an address's code is filtered by a given address or its subscription. */ function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool); /** * @notice Returns true if a codeHash is filtered by a given address or its subscription. */ function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool); /** * @notice Returns a list of filtered operators for a given address or its subscription. */ function filteredOperators(address addr) external returns (address[] memory); /** * @notice Returns the set of filtered codeHashes for a given address or its subscription. * Note that order is not guaranteed as updates are made. */ function filteredCodeHashes(address addr) external returns (bytes32[] memory); /** * @notice Returns the filtered operator at the given index of the set of filtered operators for a given address or * its subscription. * Note that order is not guaranteed as updates are made. */ function filteredOperatorAt(address registrant, uint256 index) external returns (address); /** * @notice Returns the filtered codeHash at the given index of the list of filtered codeHashes for a given address or * its subscription. * Note that order is not guaranteed as updates are made. */ function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32); /** * @notice Returns true if an address has registered */ function isRegistered(address addr) external returns (bool); /** * @dev Convenience method to compute the code hash of an arbitrary contract */ function codeHashOf(address addr) external returns (bytes32); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; address constant CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS = 0x000000000000AAeB6D7670E522A718067333cd4E; address constant CANONICAL_CORI_SUBSCRIPTION = 0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6;
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol"; import {CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS} from "./lib/Constants.sol"; /** * @title OperatorFilterer * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another * registrant's entries in the OperatorFilterRegistry. * @dev This smart contract is meant to be inherited by token contracts so they can use the following: * - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods. * - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods. * Please note that if your token contract does not provide an owner with EIP-173, it must provide * administration methods on the contract itself to interact with the registry otherwise the subscription * will be locked to the options set during construction. */ abstract contract OperatorFilterer { /// @dev Emitted when an operator is not allowed. error OperatorNotAllowed(address operator); IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY = IOperatorFilterRegistry(CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS); /// @dev The constructor that is called when the contract is being deployed. constructor(address subscriptionOrRegistrantToCopy, bool subscribe) { // If an inheriting token contract is deployed to a network without the registry deployed, the modifier // will not revert, but the contract will need to be registered with the registry once it is deployed in // order for the modifier to filter addresses. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { if (subscribe) { OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy); } else { if (subscriptionOrRegistrantToCopy != address(0)) { OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy); } else { OPERATOR_FILTER_REGISTRY.register(address(this)); } } } } /** * @dev A helper function to check if an operator is allowed. */ modifier onlyAllowedOperator(address from) virtual { // Allow spending tokens from addresses with balance // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred // from an EOA. if (from != msg.sender) { _checkFilterOperator(msg.sender); } _; } /** * @dev A helper function to check if an operator approval is allowed. */ modifier onlyAllowedOperatorApproval(address operator) virtual { _checkFilterOperator(operator); _; } /** * @dev A helper function to check if an operator is allowed. */ function _checkFilterOperator(address operator) internal view virtual { // Check registry code length to facilitate testing in environments without a deployed registry. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { // under normal circumstances, this function will revert rather than return false, but inheriting contracts // may specify their own OperatorFilterRegistry implementations, which may behave differently if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) { revert OperatorNotAllowed(operator); } } } }
// SPDX-License-Identifier: MIT /** _____ ___ ___ __ ____ _ __ / ___/____ / (_)___/ (_) /___ __ / __ )(_) /______ \__ \/ __ \/ / / __ / / __/ / / / / __ / / __/ ___/ ___/ / /_/ / / / /_/ / / /_/ /_/ / / /_/ / / /_(__ ) /____/\____/_/_/\__,_/_/\__/\__, / /_____/_/\__/____/ /____/ - npm: https://www.npmjs.com/package/solidity-bits - github: https://github.com/estarriolvetch/solidity-bits */ pragma solidity ^0.8.0; import "./BitScan.sol"; /** * @dev This Library is a modified version of Openzeppelin's BitMaps library. * Functions of finding the index of the closest set bit from a given index are added. * The indexing of each bucket is modifed to count from the MSB to the LSB instead of from the LSB to the MSB. * The modification of indexing makes finding the closest previous set bit more efficient in gas usage. */ /** * @dev Library for managing uint256 to bool mapping in a compact and efficient way, providing the keys are sequential. * Largelly inspired by Uniswap's https://github.com/Uniswap/merkle-distributor/blob/master/contracts/MerkleDistributor.sol[merkle-distributor]. */ library BitMaps { using BitScan for uint256; uint256 private constant MASK_INDEX_ZERO = (1 << 255); uint256 private constant MASK_FULL = type(uint256).max; struct BitMap { mapping(uint256 => uint256) _data; } /** * @dev Returns whether the bit at `index` is set. */ function get(BitMap storage bitmap, uint256 index) internal view returns (bool) { uint256 bucket = index >> 8; uint256 mask = MASK_INDEX_ZERO >> (index & 0xff); return bitmap._data[bucket] & mask != 0; } /** * @dev Sets the bit at `index` to the boolean `value`. */ function setTo( BitMap storage bitmap, uint256 index, bool value ) internal { if (value) { set(bitmap, index); } else { unset(bitmap, index); } } /** * @dev Sets the bit at `index`. */ function set(BitMap storage bitmap, uint256 index) internal { uint256 bucket = index >> 8; uint256 mask = MASK_INDEX_ZERO >> (index & 0xff); bitmap._data[bucket] |= mask; } /** * @dev Unsets the bit at `index`. */ function unset(BitMap storage bitmap, uint256 index) internal { uint256 bucket = index >> 8; uint256 mask = MASK_INDEX_ZERO >> (index & 0xff); bitmap._data[bucket] &= ~mask; } /** * @dev Consecutively sets `amount` of bits starting from the bit at `startIndex`. */ function setBatch(BitMap storage bitmap, uint256 startIndex, uint256 amount) internal { uint256 bucket = startIndex >> 8; uint256 bucketStartIndex = (startIndex & 0xff); unchecked { if(bucketStartIndex + amount < 256) { bitmap._data[bucket] |= MASK_FULL << (256 - amount) >> bucketStartIndex; } else { bitmap._data[bucket] |= MASK_FULL >> bucketStartIndex; amount -= (256 - bucketStartIndex); bucket++; while(amount > 256) { bitmap._data[bucket] = MASK_FULL; amount -= 256; bucket++; } bitmap._data[bucket] |= MASK_FULL << (256 - amount); } } } /** * @dev Consecutively unsets `amount` of bits starting from the bit at `startIndex`. */ function unsetBatch(BitMap storage bitmap, uint256 startIndex, uint256 amount) internal { uint256 bucket = startIndex >> 8; uint256 bucketStartIndex = (startIndex & 0xff); unchecked { if(bucketStartIndex + amount < 256) { bitmap._data[bucket] &= ~(MASK_FULL << (256 - amount) >> bucketStartIndex); } else { bitmap._data[bucket] &= ~(MASK_FULL >> bucketStartIndex); amount -= (256 - bucketStartIndex); bucket++; while(amount > 256) { bitmap._data[bucket] = 0; amount -= 256; bucket++; } bitmap._data[bucket] &= ~(MASK_FULL << (256 - amount)); } } } /** * @dev Find the closest index of the set bit before `index`. */ function scanForward(BitMap storage bitmap, uint256 index) internal view returns (uint256 setBitIndex) { uint256 bucket = index >> 8; // index within the bucket uint256 bucketIndex = (index & 0xff); // load a bitboard from the bitmap. uint256 bb = bitmap._data[bucket]; // offset the bitboard to scan from `bucketIndex`. bb = bb >> (0xff ^ bucketIndex); // bb >> (255 - bucketIndex) if(bb > 0) { unchecked { setBitIndex = (bucket << 8) | (bucketIndex - bb.bitScanForward256()); } } else { while(true) { require(bucket > 0, "BitMaps: The set bit before the index doesn't exist."); unchecked { bucket--; } // No offset. Always scan from the least significiant bit now. bb = bitmap._data[bucket]; if(bb > 0) { unchecked { setBitIndex = (bucket << 8) | (255 - bb.bitScanForward256()); break; } } } } } function getBucket(BitMap storage bitmap, uint256 bucket) internal view returns (uint256) { return bitmap._data[bucket]; } }
// SPDX-License-Identifier: MIT /** _____ ___ ___ __ ____ _ __ / ___/____ / (_)___/ (_) /___ __ / __ )(_) /______ \__ \/ __ \/ / / __ / / __/ / / / / __ / / __/ ___/ ___/ / /_/ / / / /_/ / / /_/ /_/ / / /_/ / / /_(__ ) /____/\____/_/_/\__,_/_/\__/\__, / /_____/_/\__/____/ /____/ - npm: https://www.npmjs.com/package/solidity-bits - github: https://github.com/estarriolvetch/solidity-bits */ pragma solidity ^0.8.0; library BitScan { uint256 constant private DEBRUIJN_256 = 0x818283848586878898a8b8c8d8e8f929395969799a9b9d9e9faaeb6bedeeff; bytes constant private LOOKUP_TABLE_256 = hex"0001020903110a19042112290b311a3905412245134d2a550c5d32651b6d3a7506264262237d468514804e8d2b95569d0d495ea533a966b11c886eb93bc176c9071727374353637324837e9b47af86c7155181ad4fd18ed32c9096db57d59ee30e2e4a6a5f92a6be3498aae067ddb2eb1d5989b56fd7baf33ca0c2ee77e5caf7ff0810182028303840444c545c646c7425617c847f8c949c48a4a8b087b8c0c816365272829aaec650acd0d28fdad4e22d6991bd97dfdcea58b4d6f29fede4f6fe0f1f2f3f4b5b6b607b8b93a3a7b7bf357199c5abcfd9e168bcdee9b3f1ecf5fd1e3e5a7a8aa2b670c4ced8bbe8f0f4fc3d79a1c3cde7effb78cce6facbf9f8"; /** @dev Isolate the least significant set bit. */ function isolateLS1B256(uint256 bb) pure internal returns (uint256) { require(bb > 0); unchecked { return bb & (0 - bb); } } /** @dev Isolate the most significant set bit. */ function isolateMS1B256(uint256 bb) pure internal returns (uint256) { require(bb > 0); unchecked { bb |= bb >> 128; bb |= bb >> 64; bb |= bb >> 32; bb |= bb >> 16; bb |= bb >> 8; bb |= bb >> 4; bb |= bb >> 2; bb |= bb >> 1; return (bb >> 1) + 1; } } /** @dev Find the index of the lest significant set bit. (trailing zero count) */ function bitScanForward256(uint256 bb) pure internal returns (uint8) { unchecked { return uint8(LOOKUP_TABLE_256[(isolateLS1B256(bb) * DEBRUIJN_256) >> 248]); } } /** @dev Find the index of the most significant set bit. */ function bitScanReverse256(uint256 bb) pure internal returns (uint8) { unchecked { return 255 - uint8(LOOKUP_TABLE_256[((isolateMS1B256(bb) * DEBRUIJN_256) >> 248)]); } } function log2(uint256 bb) pure internal returns (uint8) { unchecked { return uint8(LOOKUP_TABLE_256[(isolateMS1B256(bb) * DEBRUIJN_256) >> 248]); } } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_address","type":"address"},{"indexed":false,"internalType":"uint256","name":"_quantity","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_mintType","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE_AL1","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE_AL2","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE_AL3","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE_PUB","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","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":"","type":"uint256"}],"name":"charName","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"claimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"claimedForSale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"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":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintType","type":"uint256"},{"internalType":"uint256","name":"_quantity","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"},{"internalType":"uint256","name":"_mintLimit","type":"uint256"}],"name":"preMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"},{"internalType":"address","name":"_receiver","type":"address"}],"name":"pubMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"reveal","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":"uint256","name":"","type":"uint256"}],"name":"saleStart","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintType","type":"uint256"},{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"string","name":"_name","type":"string"}],"name":"setName","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"string","name":"_name","type":"string"}],"name":"setNameForce","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_royaltyAddress","type":"address"},{"internalType":"uint96","name":"_feeNumerator","type":"uint96"}],"name":"setRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintType","type":"uint256"},{"internalType":"bool","name":"_state","type":"bool"}],"name":"setSaleStart","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setUnrevealedURI","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":"tokenId","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":"tokenId","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_mintType","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"verifyAddressAndAmount","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526001600455604051806080016040528060518152602001620071fa60519139600f90805190602001906200003a92919062000eaf565b503480156200004857600080fd5b50733cc6cdda760b79bafa08df41ecfa224f810dceb660016040518060400160405280600c81526020017f456d696c794b6e696768747300000000000000000000000000000000000000008152506040518060400160405280600281526020017f454b0000000000000000000000000000000000000000000000000000000000008152508160019080519060200190620000e492919062000eaf565b508060029080519060200190620000fd92919062000eaf565b50505062000120620001146200071b60201b60201c565b6200072360201b60201c565b6001600a8190555060006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b11156200031d578015620001e3576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16637d3e3dbe30846040518363ffffffff1660e01b8152600401620001a992919062000fa4565b600060405180830381600087803b158015620001c457600080fd5b505af1158015620001d9573d6000803e3d6000fd5b505050506200031c565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146200029d576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663a0af290330846040518363ffffffff1660e01b81526004016200026392919062000fa4565b600060405180830381600087803b1580156200027e57600080fd5b505af115801562000293573d6000803e3d6000fd5b505050506200031b565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16634420e486306040518263ffffffff1660e01b8152600401620002e6919062000fd1565b600060405180830381600087803b1580156200030157600080fd5b505af115801562000316573d6000803e3d6000fd5b505050505b5b5b505062000347735444f2d8a68be0dafe38def6cdaa172c2d015a056103e8620007e960201b60201c565b6200036e735444f2d8a68be0dafe38def6cdaa172c2d015a05600a6200098c60201b60201c565b6200039573253058b7f0ff2c6218db7569ce1d399f7183e355600a6200098c60201b60201c565b620003bc73baa98fe972144ef1de53b801045cec5a291cb30e600d6200098c60201b60201c565b620003e373a3fd3586726c6b71b5925613909b40564aff9f86600d6200098c60201b60201c565b6200040a733c2ebb7c2c4ee839c12708c123d6a54f5fbb156260056200098c60201b60201c565b6200043173d77989a5b8ded89b74215845f245e35d932cd74060056200098c60201b60201c565b6200045873fff66e751ec31bc8757819d969b35071c32ce46e60036200098c60201b60201c565b6200047f73998dfdc33e7d529de31f9a213265f42e0b28e2f860036200098c60201b60201c565b620004a673b7653171de23982acadc2aa3c40e662c929663db60026200098c60201b60201c565b620004cd7335594b527422aab97d0e3b5813d72bd6e9ae171760036200098c60201b60201c565b620004f4730383c0bdd89e915c1e2b4ac3445a3158211056e960036200098c60201b60201c565b6200051b7328b89726e06b5881bd5d4aab35d6e3f84606bb9960036200098c60201b60201c565b6200054172e21fa5fde28de9217a112d35b51452fdc726e960036200098c60201b60201c565b6200056873292e4d6ab815f410819b4472100f08423be378b860036200098c60201b60201c565b6200058f73df1c6f94fe16337ea61e726fa6f268de7268f78760036200098c60201b60201c565b620005b673254c98bc580dab615b84e144d377bc8ab168bbe260016200098c60201b60201c565b620005dd7360c1a53bd2c7d3a399c1dce05c60a8cda353640b60016200098c60201b60201c565b620006047365aad16650aff6b1c11e779ee3c9b361808c5f6160016200098c60201b60201c565b6200062b735d0218806ad8045ec085005ca6f119b6bcc2175860016200098c60201b60201c565b6200065273c4cf182696e3810f654632bff8770ec9ab826db560016200098c60201b60201c565b6200067973eb93b1a498b858ca5edc0f30eae390463c754c9360016200098c60201b60201c565b620006a073be6e5a76d58f91a44620a0f7eedc80e22136860d60016200098c60201b60201c565b620006c773ebf8713e7565719a1be6f2158d6fb205e442cac660016200098c60201b60201c565b620006ee730303d829d9b81d0939a974cb0c88ea27ab7129c960016200098c60201b60201c565b620007157342a662b820e0c3a860fad43f34d92cdb4769cf8b60016200098c60201b60201c565b620015b5565b600033905090565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b620007f9620009b260201b60201c565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff1611156200085a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620008519062001075565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603620008cc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620008c390620010e7565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600760008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b620009ae828260405180602001604052806000815250620009bc60201b60201c565b5050565b6000612710905090565b60006004549050620009d5848462000a3360201b60201c565b620009eb60008583868662000c3860201b60201c565b62000a2d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000a24906200117f565b60405180910390fd5b50505050565b600060045490506000821162000a80576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000a779062001217565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160362000af2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000ae990620012af565b60405180910390fd5b62000b07600084838562000e2360201b60201c565b816004600082825462000b1b91906200130a565b92505081905550826003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555062000b8f81600062000e2960201b62001dc51790919060201c565b62000ba4600084838562000e8660201b60201c565b60008190505b828262000bb891906200130a565b81101562000c3257808473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4808062000c299062001367565b91505062000baa565b50505050565b600062000c668573ffffffffffffffffffffffffffffffffffffffff1662000e8c60201b62001e221760201c565b1562000e15576001905060008490505b838562000c8491906200130a565b81101562000e0e578573ffffffffffffffffffffffffffffffffffffffff1663150b7a0262000cb86200071b60201b60201c565b8984876040518563ffffffff1660e01b815260040162000cdc949392919062001469565b6020604051808303816000875af192505050801562000d1b57506040513d601f19601f8201168201806040525081019062000d1891906200151f565b60015b62000da3573d806000811462000d4e576040519150601f19603f3d011682016040523d82523d6000602084013e62000d53565b606091505b50600081510362000d9b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000d92906200117f565b60405180910390fd5b805181602001fd5b82801562000df5575063150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b925050808062000e059062001367565b91505062000c76565b5062000e1a565b600190505b95945050505050565b50505050565b6000600882901c9050600060ff83167f8000000000000000000000000000000000000000000000000000000000000000901c9050808460000160008481526020019081526020016000206000828254179250508190555050505050565b50505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b82805462000ebd9062001580565b90600052602060002090601f01602090048101928262000ee1576000855562000f2d565b82601f1062000efc57805160ff191683800117855562000f2d565b8280016001018555821562000f2d579182015b8281111562000f2c57825182559160200191906001019062000f0f565b5b50905062000f3c919062000f40565b5090565b5b8082111562000f5b57600081600090555060010162000f41565b5090565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062000f8c8262000f5f565b9050919050565b62000f9e8162000f7f565b82525050565b600060408201905062000fbb600083018562000f93565b62000fca602083018462000f93565b9392505050565b600060208201905062000fe8600083018462000f93565b92915050565b600082825260208201905092915050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b60006200105d602a8362000fee565b91506200106a8262000fff565b604082019050919050565b6000602082019050818103600083015262001090816200104e565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b6000620010cf60198362000fee565b9150620010dc8262001097565b602082019050919050565b600060208201905081810360008301526200110281620010c0565b9050919050565b7f4552433732315073693a207472616e7366657220746f206e6f6e20455243373260008201527f31526563656976657220696d706c656d656e7465720000000000000000000000602082015250565b60006200116760358362000fee565b9150620011748262001109565b604082019050919050565b600060208201905081810360008301526200119a8162001158565b9050919050565b7f4552433732315073693a207175616e74697479206d757374206265206772656160008201527f7465722030000000000000000000000000000000000000000000000000000000602082015250565b6000620011ff60258362000fee565b91506200120c82620011a1565b604082019050919050565b600060208201905081810360008301526200123281620011f0565b9050919050565b7f4552433732315073693a206d696e7420746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b60006200129760238362000fee565b9150620012a48262001239565b604082019050919050565b60006020820190508181036000830152620012ca8162001288565b9050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006200131782620012d1565b91506200132483620012d1565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156200135c576200135b620012db565b5b828201905092915050565b60006200137482620012d1565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203620013a957620013a8620012db565b5b600182019050919050565b620013bf81620012d1565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b8381101562001401578082015181840152602081019050620013e4565b8381111562001411576000848401525b50505050565b6000601f19601f8301169050919050565b60006200143582620013c5565b620014418185620013d0565b935062001453818560208601620013e1565b6200145e8162001417565b840191505092915050565b600060808201905062001480600083018762000f93565b6200148f602083018662000f93565b6200149e6040830185620013b4565b8181036060830152620014b2818462001428565b905095945050505050565b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b620014f981620014c2565b81146200150557600080fd5b50565b6000815190506200151981620014ee565b92915050565b600060208284031215620015385762001537620014bd565b5b6000620015488482850162001508565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200159957607f821691505b602082108103620015af57620015ae62001551565b5b50919050565b615c3580620015c56000396000f3fe6080604052600436106102675760003560e01c8063715018a611610144578063b88d4fde116100b6578063c87b56dd1161007a578063c87b56dd14610949578063c884ef8314610986578063e985e9c5146109c3578063f2fde38b14610a00578063fe2c7fee14610a29578063fe55932a14610a5257610267565b8063b88d4fde14610873578063ba0440091461089c578063bcf38a79146108c7578063c30565fb14610904578063c67add3a1461092d57610267565b80638f2fc60b116101085780638f2fc60b146107865780638fa31109146107af578063940cd05b146107cb57806395d89b41146107f457806396678c851461081f578063a22cb4651461084a57610267565b8063715018a6146106c5578063776f1ecb146106dc5780637d21f51d14610707578063887a3fa2146107325780638da5cb5b1461075b57610267565b80633c70b357116101dd5780634f6ccce7116101a15780634f6ccce71461056b57806355f804b3146105a85780635b2c98cf146105d15780635c64ef661461060e5780636352211e1461064b57806370a082311461068857610267565b80633c70b3571461049a5780633ccfd60b146104d757806341f43434146104ee57806342842e0e14610519578063484b973c1461054257610267565b806318712c211161022f57806318712c211461036557806323b872dd1461038e5780632a55205a146103b75780632f745c59146103f557806332cb6b0c146104325780633bbaeef21461045d57610267565b806301ffc9a71461026c57806306fdde03146102a9578063081812fc146102d4578063095ea7b31461031157806318160ddd1461033a575b600080fd5b34801561027857600080fd5b50610293600480360381019061028e9190613acd565b610a7b565b6040516102a09190613b15565b60405180910390f35b3480156102b557600080fd5b506102be610a9d565b6040516102cb9190613bc9565b60405180910390f35b3480156102e057600080fd5b506102fb60048036038101906102f69190613c21565b610b2f565b6040516103089190613c8f565b60405180910390f35b34801561031d57600080fd5b5061033860048036038101906103339190613cd6565b610bb4565b005b34801561034657600080fd5b5061034f610bcd565b60405161035c9190613d25565b60405180910390f35b34801561037157600080fd5b5061038c60048036038101906103879190613d76565b610be3565b005b34801561039a57600080fd5b506103b560048036038101906103b09190613db6565b610c07565b005b3480156103c357600080fd5b506103de60048036038101906103d99190613e09565b610c56565b6040516103ec929190613e49565b60405180910390f35b34801561040157600080fd5b5061041c60048036038101906104179190613cd6565b610e40565b6040516104299190613d25565b60405180910390f35b34801561043e57600080fd5b50610447610f16565b6040516104549190613d25565b60405180910390f35b34801561046957600080fd5b50610484600480360381019061047f9190613ed7565b610f1c565b6040516104919190613b15565b60405180910390f35b3480156104a657600080fd5b506104c160048036038101906104bc9190613c21565b610f75565b6040516104ce9190613f6e565b60405180910390f35b3480156104e357600080fd5b506104ec610f8d565b005b3480156104fa57600080fd5b506105036110f5565b6040516105109190613fe8565b60405180910390f35b34801561052557600080fd5b50610540600480360381019061053b9190613db6565b611107565b005b34801561054e57600080fd5b5061056960048036038101906105649190613cd6565b611156565b005b34801561057757600080fd5b50610592600480360381019061058d9190613c21565b6111c9565b60405161059f9190613d25565b60405180910390f35b3480156105b457600080fd5b506105cf60048036038101906105ca9190614059565b61126f565b005b3480156105dd57600080fd5b506105f860048036038101906105f39190613c21565b61128d565b6040516106059190613bc9565b60405180910390f35b34801561061a57600080fd5b5061063560048036038101906106309190613c21565b61132d565b6040516106429190613b15565b60405180910390f35b34801561065757600080fd5b50610672600480360381019061066d9190613c21565b61134d565b60405161067f9190613c8f565b60405180910390f35b34801561069457600080fd5b506106af60048036038101906106aa91906140a6565b611365565b6040516106bc9190613d25565b60405180910390f35b3480156106d157600080fd5b506106da611459565b005b3480156106e857600080fd5b506106f161146d565b6040516106fe9190613d25565b60405180910390f35b34801561071357600080fd5b5061071c611472565b6040516107299190613d25565b60405180910390f35b34801561073e57600080fd5b50610759600480360381019061075491906140d3565b61147d565b005b34801561076757600080fd5b506107706114ad565b60405161077d9190613c8f565b60405180910390f35b34801561079257600080fd5b506107ad60048036038101906107a89190614177565b6114d7565b005b6107c960048036038101906107c491906141b7565b6114ed565b005b3480156107d757600080fd5b506107f260048036038101906107ed919061426b565b611777565b005b34801561080057600080fd5b5061080961179c565b6040516108169190613bc9565b60405180910390f35b34801561082b57600080fd5b5061083461182e565b6040516108419190613d25565b60405180910390f35b34801561085657600080fd5b50610871600480360381019061086c9190614298565b611839565b005b34801561087f57600080fd5b5061089a60048036038101906108959190614408565b611852565b005b3480156108a857600080fd5b506108b16118a3565b6040516108be9190613d25565b60405180910390f35b3480156108d357600080fd5b506108ee60048036038101906108e9919061448b565b6118ae565b6040516108fb9190613d25565b60405180910390f35b34801561091057600080fd5b5061092b600480360381019061092691906144cb565b6118d3565b005b6109476004803603810190610942919061448b565b61190a565b005b34801561095557600080fd5b50610970600480360381019061096b9190613c21565b611b01565b60405161097d9190613bc9565b60405180910390f35b34801561099257600080fd5b506109ad60048036038101906109a891906140a6565b611bda565b6040516109ba9190613d25565b60405180910390f35b3480156109cf57600080fd5b506109ea60048036038101906109e5919061450b565b611bf2565b6040516109f79190613b15565b60405180910390f35b348015610a0c57600080fd5b50610a276004803603810190610a2291906140a6565b611c86565b005b348015610a3557600080fd5b50610a506004803603810190610a4b9190614059565b611d09565b005b348015610a5e57600080fd5b50610a796004803603810190610a7491906140d3565b611d27565b005b6000610a8682611e45565b80610a965750610a9582611f8f565b5b9050919050565b606060018054610aac9061457a565b80601f0160208091040260200160405190810160405280929190818152602001828054610ad89061457a565b8015610b255780601f10610afa57610100808354040283529160200191610b25565b820191906000526020600020905b815481529060010190602001808311610b0857829003601f168201915b5050505050905090565b6000610b3a82612009565b610b79576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b709061461d565b60405180910390fd5b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b81610bbe81612017565b610bc88383612114565b505050565b60006001600454610bde919061466c565b905090565b610beb61222b565b80600c6000848152602001908152602001600020819055505050565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610c4557610c4433612017565b5b610c508484846122a9565b50505050565b6000806000600860008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1603610deb5760076040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b6000610df5612309565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff1686610e2191906146a0565b610e2b9190614729565b90508160000151819350935050509250929050565b6000806000600190505b600454811015610ed457610e5d81612009565b8015610e9c5750610e6d8161134d565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16145b15610ec157838203610eb2578092505050610f10565b8180610ebd9061475a565b9250505b8080610ecc9061475a565b915050610e4a565b506040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f0790614814565b60405180910390fd5b92915050565b6105dc81565b6000808686604051602001610f3292919061489d565b604051602081830303815290604052805190602001209050610f698484600c60008981526020019081526020016000205484612313565b91505095945050505050565b600c6020528060005260406000206000915090505481565b610f9561222b565b6000479050610fd4735444f2d8a68be0dafe38def6cdaa172c2d015a05620f42406207a12084610fc591906146a0565b610fcf9190614729565b61232c565b61100e737abb65089055fb2bf5b247c89e3c11f7db861213620f4240620493e084610fff91906146a0565b6110099190614729565b61232c565b61104773a3fd3586726c6b71b5925613909b40564aff9f86620f424061c3508461103891906146a0565b6110429190614729565b61232c565b61108073baa98fe972144ef1de53b801045cec5a291cb30e620f424061c3508461107191906146a0565b61107b9190614729565b61232c565b6110b9733c2ebb7c2c4ee839c12708c123d6a54f5fbb1562620f424061c350846110aa91906146a0565b6110b49190614729565b61232c565b6110f273d77989a5b8ded89b74215845f245e35d932cd740620f424061c350846110e391906146a0565b6110ed9190614729565b61232c565b50565b6daaeb6d7670e522a718067333cd4e81565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146111455761114433612017565b5b611150848484612420565b50505050565b61115e61222b565b6000611168610bcd565b90506105dc828261117991906148c9565b11156111ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111b19061496b565b60405180910390fd5b6111c48383612440565b505050565b60006111d3610bcd565b8210611214576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161120b906149fd565b60405180910390fd5b600080600190505b6004548110156112675761122f81612009565b156112545783820361124557809250505061126a565b81806112509061475a565b9250505b808061125f9061475a565b91505061121c565b50505b919050565b61127761222b565b8181600e91906112889291906139be565b505050565b601260205280600052604060002060009150905080546112ac9061457a565b80601f01602080910402602001604051908101604052809291908181526020018280546112d89061457a565b80156113255780601f106112fa57610100808354040283529160200191611325565b820191906000526020600020905b81548152906001019060200180831161130857829003601f168201915b505050505081565b600b6020528060005260406000206000915054906101000a900460ff1681565b6000806113598361245e565b50905080915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036113d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113cc90614a8f565b60405180910390fd5b600080600190505b60045481101561144f576113f081612009565b1561143e576113fe8161134d565b73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff160361143d578161143a9061475a565b91505b5b806114489061475a565b90506113dd565b5080915050919050565b61146161222b565b61146b60006124ef565b565b600081565b6611c37937e0800081565b61148561222b565b81816012600086815260200190815260200160002091906114a79291906139be565b50505050565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6114df61222b565b6114e982826125b5565b5050565b6114f561274a565b6000600186036115135784600061150c91906146a0565b9050611555565b6002860361153557846611c37937e0800061152e91906146a0565b9050611554565b6003860361155357846618de76816d800061155091906146a0565b90505b5b5b60008511611598576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161158f90614afb565b60405180910390fd5b600b600087815260200190815260200160002060009054906101000a900460ff166115f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115ef90614b67565b60405180910390fd5b6116053383888787610f1c565b611644576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161163b90614bd3565b60405180910390fd5b61165086868385612799565b84601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461169f91906148c9565b92505081905550846011600088815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461170691906148c9565b925050819055506117173386612440565b3373ffffffffffffffffffffffffffffffffffffffff167f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f868860405161175f929190614bf3565b60405180910390a2506117706128e5565b5050505050565b61177f61222b565b80600d60006101000a81548160ff02191690831515021790555050565b6060600280546117ab9061457a565b80601f01602080910402602001604051908101604052809291908181526020018280546117d79061457a565b80156118245780601f106117f957610100808354040283529160200191611824565b820191906000526020600020905b81548152906001019060200180831161180757829003601f168201915b5050505050905090565b6618de76816d800081565b8161184381612017565b61184d83836128ef565b505050565b833373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146118905761188f33612017565b5b61189c85858585612a6f565b5050505050565b661ff973cafa800081565b6011602052816000526040600020602052806000526040600020600091509150505481565b6118db61222b565b80600b600084815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b61191261274a565b600082661ff973cafa800061192791906146a0565b9050600b60006004815260200190815260200160002060009054906101000a900460ff1661198a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161198190614b67565b60405180910390fd5b600083116119cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119c490614afb565b60405180910390fd5b6119db600484836000612799565b82601060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611a2a91906148c9565b9250508190555082601160006004815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611a9291906148c9565b92505081905550611aa38284612440565b8173ffffffffffffffffffffffffffffffffffffffff167f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f846004604051611aec929190614c57565b60405180910390a250611afd6128e5565b5050565b6060600d60009054906101000a900460ff1615611b4757611b2182612ad1565b604051602001611b319190614d08565b6040516020818303038152906040529050611bd5565b600f8054611b549061457a565b80601f0160208091040260200160405190810160405280929190818152602001828054611b809061457a565b8015611bcd5780601f10611ba257610100808354040283529160200191611bcd565b820191906000526020600020905b815481529060010190602001808311611bb057829003601f168201915b505050505090505b919050565b60106020528060005260406000206000915090505481565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611c8e61222b565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611cfd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cf490614d9c565b60405180910390fd5b611d06816124ef565b50565b611d1161222b565b8181600f9190611d229291906139be565b505050565b3373ffffffffffffffffffffffffffffffffffffffff16611d478461134d565b73ffffffffffffffffffffffffffffffffffffffff1614611d9d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d9490614e08565b60405180910390fd5b8181601260008681526020019081526020016000209190611dbf9291906139be565b50505050565b6000600882901c9050600060ff83167f8000000000000000000000000000000000000000000000000000000000000000901c9050808460000160008481526020019081526020016000206000828254179250508190555050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611f1057507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611f7857507f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611f885750611f8782612b78565b5b9050919050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612002575061200182611e45565b5b9050919050565b600060045482109050919050565b60006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115612111576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b815260040161208e929190614e28565b602060405180830381865afa1580156120ab573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120cf9190614e66565b61211057806040517fede71dcc0000000000000000000000000000000000000000000000000000000081526004016121079190613c8f565b60405180910390fd5b5b50565b600061211f8261134d565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361218f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161218690614f05565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166121ae612be2565b73ffffffffffffffffffffffffffffffffffffffff1614806121dd57506121dc816121d7612be2565b611bf2565b5b61221c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161221390614f97565b60405180910390fd5b6122268383612bea565b505050565b612233612be2565b73ffffffffffffffffffffffffffffffffffffffff166122516114ad565b73ffffffffffffffffffffffffffffffffffffffff16146122a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161229e90615003565b60405180910390fd5b565b6122ba6122b4612be2565b82612ca3565b6122f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122f090615095565b60405180910390fd5b612304838383612d81565b505050565b6000612710905090565b600082612321868685613003565b149050949350505050565b8047101561236f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161236690615101565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff168260405161239590615152565b60006040518083038185875af1925050503d80600081146123d2576040519150601f19603f3d011682016040523d82523d6000602084013e6123d7565b606091505b505090508061241b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612412906151d9565b60405180910390fd5b505050565b61243b83838360405180602001604052806000815250611852565b505050565b61245a82826040518060200160405280600081525061305b565b5050565b60008061246a83612009565b6124a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124a09061526b565b60405180910390fd5b6124b2836130bf565b90506003600082815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169150915091565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6125bd612309565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff16111561261b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612612906152fd565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361268a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161268190615369565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600760008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b6002600a540361278f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612786906153d5565b60405180910390fd5b6002600a81905550565b60006127a3610bcd565b90506105dc84826127b491906148c9565b11156127f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127ec9061496b565b60405180910390fd5b823414612837576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161282e90615441565b60405180910390fd5b600485146128de5781846011600088815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461289c91906148c9565b11156128dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128d4906154ad565b60405180910390fd5b5b5050505050565b6001600a81905550565b6128f7612be2565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612964576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161295b90615519565b60405180910390fd5b8060066000612971612be2565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16612a1e612be2565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612a639190613b15565b60405180910390a35050565b612a80612a7a612be2565b83612ca3565b612abf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ab690615095565b60405180910390fd5b612acb848484846130dc565b50505050565b6060612adc82612009565b612b1b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b12906155ab565b60405180910390fd5b6000612b2561313a565b90506000815111612b455760405180602001604052806000815250612b70565b80612b4f846131cc565b604051602001612b609291906155cb565b6040516020818303038152906040525b915050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b816005600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16612c5d8361134d565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000612cae82612009565b612ced576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ce490615661565b60405180910390fd5b6000612cf88361134d565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612d6757508373ffffffffffffffffffffffffffffffffffffffff16612d4f84610b2f565b73ffffffffffffffffffffffffffffffffffffffff16145b80612d785750612d778185611bf2565b5b91505092915050565b600080612d8d8361245e565b915091508473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612dff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612df6906156f3565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612e6e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e6590615785565b60405180910390fd5b612e7b858585600161329a565b612e86600084612bea565b6000600184612e9591906148c9565b9050612eab8160006132a090919063ffffffff16565b158015612eb9575060045481105b15612f2557856003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550612f24816000611dc590919063ffffffff16565b5b846003600086815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818414612f9357612f92846000611dc590919063ffffffff16565b5b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612ffb86868660016132fb565b505050505050565b60008082905060005b8585905081101561304f5761303a8287878481811061302e5761302d6157a5565b5b90506020020135613301565b915080806130479061475a565b91505061300c565b50809150509392505050565b6000600454905061306c848461332c565b61307a60008583868661350c565b6130b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130b090615846565b60405180910390fd5b50505050565b60006130d58260006136ce90919063ffffffff16565b9050919050565b6130e7848484612d81565b6130f584848460018561350c565b613134576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161312b90615846565b60405180910390fd5b50505050565b6060600e80546131499061457a565b80601f01602080910402602001604051908101604052809291908181526020018280546131759061457a565b80156131c25780601f10613197576101008083540402835291602001916131c2565b820191906000526020600020905b8154815290600101906020018083116131a557829003601f168201915b5050505050905090565b6060600060016131db846137c7565b01905060008167ffffffffffffffff8111156131fa576131f96142dd565b5b6040519080825280601f01601f19166020018201604052801561322c5781602001600182028036833780820191505090505b509050600082602001820190505b60011561328f578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8581613283576132826146fa565b5b0494506000850361323a575b819350505050919050565b50505050565b600080600883901c9050600060ff84167f8000000000000000000000000000000000000000000000000000000000000000901c9050600081866000016000858152602001908152602001600020541614159250505092915050565b50505050565b600081831061331957613314828461391a565b613324565b613323838361391a565b5b905092915050565b6000600454905060008211613376576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161336d906158d8565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036133e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133dc9061596a565b60405180910390fd5b6133f2600084838561329a565b816004600082825461340491906148c9565b92505081905550826003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550613471816000611dc590919063ffffffff16565b61347e60008483856132fb565b60008190505b828261349091906148c9565b81101561350657808473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a480806134fe9061475a565b915050613484565b50505050565b600061352d8573ffffffffffffffffffffffffffffffffffffffff16611e22565b156136c0576001905060008490505b838561354891906148c9565b8110156136ba578573ffffffffffffffffffffffffffffffffffffffff1663150b7a02613573612be2565b8984876040518563ffffffff1660e01b815260040161359594939291906159df565b6020604051808303816000875af19250505080156135d157506040513d601f19601f820116820180604052508101906135ce9190615a40565b60015b613653573d8060008114613601576040519150601f19603f3d011682016040523d82523d6000602084013e613606565b606091505b50600081510361364b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161364290615846565b60405180910390fd5b805181602001fd5b8280156136a4575063150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b92505080806136b29061475a565b91505061353c565b506136c5565b600190505b95945050505050565b600080600883901c9050600060ff8416905060008560000160008481526020019081526020016000205490508160ff1881901c905060008111156137275761371581613931565b60ff168203600884901b1793506137be565b5b6001156137bd5760008311613772576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161376990615adf565b60405180910390fd5b82806001900393505085600001600084815260200190815260200160002054905060008111156137b8576137a581613931565b60ff0360ff16600884901b1793506137bd565b613728565b5b50505092915050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310613825577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000838161381b5761381a6146fa565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310613862576d04ee2d6d415b85acef81000000008381613858576138576146fa565b5b0492506020810190505b662386f26fc10000831061389157662386f26fc100008381613887576138866146fa565b5b0492506010810190505b6305f5e10083106138ba576305f5e10083816138b0576138af6146fa565b5b0492506008810190505b61271083106138df5761271083816138d5576138d46146fa565b5b0492506004810190505b6064831061390257606483816138f8576138f76146fa565b5b0492506002810190505b600a8310613911576001810190505b80915050919050565b600082600052816020526040600020905092915050565b60006040518061012001604052806101008152602001615b00610100913960f87e818283848586878898a8b8c8d8e8f929395969799a9b9d9e9faaeb6bedeeff61397a856139a3565b02901c8151811061398e5761398d6157a5565b5b602001015160f81c60f81b60f81c9050919050565b60008082116139b157600080fd5b8160000382169050919050565b8280546139ca9061457a565b90600052602060002090601f0160209004810192826139ec5760008555613a33565b82601f10613a0557803560ff1916838001178555613a33565b82800160010185558215613a33579182015b82811115613a32578235825591602001919060010190613a17565b5b509050613a409190613a44565b5090565b5b80821115613a5d576000816000905550600101613a45565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613aaa81613a75565b8114613ab557600080fd5b50565b600081359050613ac781613aa1565b92915050565b600060208284031215613ae357613ae2613a6b565b5b6000613af184828501613ab8565b91505092915050565b60008115159050919050565b613b0f81613afa565b82525050565b6000602082019050613b2a6000830184613b06565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613b6a578082015181840152602081019050613b4f565b83811115613b79576000848401525b50505050565b6000601f19601f8301169050919050565b6000613b9b82613b30565b613ba58185613b3b565b9350613bb5818560208601613b4c565b613bbe81613b7f565b840191505092915050565b60006020820190508181036000830152613be38184613b90565b905092915050565b6000819050919050565b613bfe81613beb565b8114613c0957600080fd5b50565b600081359050613c1b81613bf5565b92915050565b600060208284031215613c3757613c36613a6b565b5b6000613c4584828501613c0c565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613c7982613c4e565b9050919050565b613c8981613c6e565b82525050565b6000602082019050613ca46000830184613c80565b92915050565b613cb381613c6e565b8114613cbe57600080fd5b50565b600081359050613cd081613caa565b92915050565b60008060408385031215613ced57613cec613a6b565b5b6000613cfb85828601613cc1565b9250506020613d0c85828601613c0c565b9150509250929050565b613d1f81613beb565b82525050565b6000602082019050613d3a6000830184613d16565b92915050565b6000819050919050565b613d5381613d40565b8114613d5e57600080fd5b50565b600081359050613d7081613d4a565b92915050565b60008060408385031215613d8d57613d8c613a6b565b5b6000613d9b85828601613c0c565b9250506020613dac85828601613d61565b9150509250929050565b600080600060608486031215613dcf57613dce613a6b565b5b6000613ddd86828701613cc1565b9350506020613dee86828701613cc1565b9250506040613dff86828701613c0c565b9150509250925092565b60008060408385031215613e2057613e1f613a6b565b5b6000613e2e85828601613c0c565b9250506020613e3f85828601613c0c565b9150509250929050565b6000604082019050613e5e6000830185613c80565b613e6b6020830184613d16565b9392505050565b600080fd5b600080fd5b600080fd5b60008083601f840112613e9757613e96613e72565b5b8235905067ffffffffffffffff811115613eb457613eb3613e77565b5b602083019150836020820283011115613ed057613ecf613e7c565b5b9250929050565b600080600080600060808688031215613ef357613ef2613a6b565b5b6000613f0188828901613cc1565b9550506020613f1288828901613c0c565b9450506040613f2388828901613c0c565b935050606086013567ffffffffffffffff811115613f4457613f43613a70565b5b613f5088828901613e81565b92509250509295509295909350565b613f6881613d40565b82525050565b6000602082019050613f836000830184613f5f565b92915050565b6000819050919050565b6000613fae613fa9613fa484613c4e565b613f89565b613c4e565b9050919050565b6000613fc082613f93565b9050919050565b6000613fd282613fb5565b9050919050565b613fe281613fc7565b82525050565b6000602082019050613ffd6000830184613fd9565b92915050565b60008083601f84011261401957614018613e72565b5b8235905067ffffffffffffffff81111561403657614035613e77565b5b60208301915083600182028301111561405257614051613e7c565b5b9250929050565b600080602083850312156140705761406f613a6b565b5b600083013567ffffffffffffffff81111561408e5761408d613a70565b5b61409a85828601614003565b92509250509250929050565b6000602082840312156140bc576140bb613a6b565b5b60006140ca84828501613cc1565b91505092915050565b6000806000604084860312156140ec576140eb613a6b565b5b60006140fa86828701613c0c565b935050602084013567ffffffffffffffff81111561411b5761411a613a70565b5b61412786828701614003565b92509250509250925092565b60006bffffffffffffffffffffffff82169050919050565b61415481614133565b811461415f57600080fd5b50565b6000813590506141718161414b565b92915050565b6000806040838503121561418e5761418d613a6b565b5b600061419c85828601613cc1565b92505060206141ad85828601614162565b9150509250929050565b6000806000806000608086880312156141d3576141d2613a6b565b5b60006141e188828901613c0c565b95505060206141f288828901613c0c565b945050604086013567ffffffffffffffff81111561421357614212613a70565b5b61421f88828901613e81565b9350935050606061423288828901613c0c565b9150509295509295909350565b61424881613afa565b811461425357600080fd5b50565b6000813590506142658161423f565b92915050565b60006020828403121561428157614280613a6b565b5b600061428f84828501614256565b91505092915050565b600080604083850312156142af576142ae613a6b565b5b60006142bd85828601613cc1565b92505060206142ce85828601614256565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61431582613b7f565b810181811067ffffffffffffffff82111715614334576143336142dd565b5b80604052505050565b6000614347613a61565b9050614353828261430c565b919050565b600067ffffffffffffffff821115614373576143726142dd565b5b61437c82613b7f565b9050602081019050919050565b82818337600083830152505050565b60006143ab6143a684614358565b61433d565b9050828152602081018484840111156143c7576143c66142d8565b5b6143d2848285614389565b509392505050565b600082601f8301126143ef576143ee613e72565b5b81356143ff848260208601614398565b91505092915050565b6000806000806080858703121561442257614421613a6b565b5b600061443087828801613cc1565b945050602061444187828801613cc1565b935050604061445287828801613c0c565b925050606085013567ffffffffffffffff81111561447357614472613a70565b5b61447f878288016143da565b91505092959194509250565b600080604083850312156144a2576144a1613a6b565b5b60006144b085828601613c0c565b92505060206144c185828601613cc1565b9150509250929050565b600080604083850312156144e2576144e1613a6b565b5b60006144f085828601613c0c565b925050602061450185828601614256565b9150509250929050565b6000806040838503121561452257614521613a6b565b5b600061453085828601613cc1565b925050602061454185828601613cc1565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061459257607f821691505b6020821081036145a5576145a461454b565b5b50919050565b7f4552433732315073693a20617070726f76656420717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000614607602f83613b3b565b9150614612826145ab565b604082019050919050565b60006020820190508181036000830152614636816145fa565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061467782613beb565b915061468283613beb565b9250828210156146955761469461463d565b5b828203905092915050565b60006146ab82613beb565b91506146b683613beb565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156146ef576146ee61463d565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061473482613beb565b915061473f83613beb565b92508261474f5761474e6146fa565b5b828204905092915050565b600061476582613beb565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036147975761479661463d565b5b600182019050919050565b7f4552433732315073693a206f776e657220696e646578206f7574206f6620626f60008201527f756e647300000000000000000000000000000000000000000000000000000000602082015250565b60006147fe602483613b3b565b9150614809826147a2565b604082019050919050565b6000602082019050818103600083015261482d816147f1565b9050919050565b60008160601b9050919050565b600061484c82614834565b9050919050565b600061485e82614841565b9050919050565b61487661487182613c6e565b614853565b82525050565b6000819050919050565b61489761489282613beb565b61487c565b82525050565b60006148a98285614865565b6014820191506148b98284614886565b6020820191508190509392505050565b60006148d482613beb565b91506148df83613beb565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156149145761491361463d565b5b828201905092915050565b7f4d617820737570706c79206f7665720000000000000000000000000000000000600082015250565b6000614955600f83613b3b565b91506149608261491f565b602082019050919050565b6000602082019050818103600083015261498481614948565b9050919050565b7f4552433732315073693a20676c6f62616c20696e646578206f7574206f66206260008201527f6f756e6473000000000000000000000000000000000000000000000000000000602082015250565b60006149e7602583613b3b565b91506149f28261498b565b604082019050919050565b60006020820190508181036000830152614a16816149da565b9050919050565b7f4552433732315073693a2062616c616e636520717565727920666f722074686560008201527f207a65726f206164647265737300000000000000000000000000000000000000602082015250565b6000614a79602d83613b3b565b9150614a8482614a1d565b604082019050919050565b60006020820190508181036000830152614aa881614a6c565b9050919050565b7f506c6561736520736574207175616e746974792e000000000000000000000000600082015250565b6000614ae5601483613b3b565b9150614af082614aaf565b602082019050919050565b60006020820190508181036000830152614b1481614ad8565b9050919050565b7f4265666f72652073616c6520626567696e2e0000000000000000000000000000600082015250565b6000614b51601283613b3b565b9150614b5c82614b1b565b602082019050919050565b60006020820190508181036000830152614b8081614b44565b9050919050565b7f496e76616c6964204d65726b6c652050726f6f66000000000000000000000000600082015250565b6000614bbd601483613b3b565b9150614bc882614b87565b602082019050919050565b60006020820190508181036000830152614bec81614bb0565b9050919050565b6000604082019050614c086000830185613d16565b614c156020830184613d16565b9392505050565b6000819050919050565b6000614c41614c3c614c3784614c1c565b613f89565b613beb565b9050919050565b614c5181614c26565b82525050565b6000604082019050614c6c6000830185613d16565b614c796020830184614c48565b9392505050565b600081905092915050565b6000614c9682613b30565b614ca08185614c80565b9350614cb0818560208601613b4c565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b6000614cf2600583614c80565b9150614cfd82614cbc565b600582019050919050565b6000614d148284614c8b565b9150614d1f82614ce5565b915081905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614d86602683613b3b565b9150614d9182614d2a565b604082019050919050565b60006020820190508181036000830152614db581614d79565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746865206f776e657200600082015250565b6000614df2601f83613b3b565b9150614dfd82614dbc565b602082019050919050565b60006020820190508181036000830152614e2181614de5565b9050919050565b6000604082019050614e3d6000830185613c80565b614e4a6020830184613c80565b9392505050565b600081519050614e608161423f565b92915050565b600060208284031215614e7c57614e7b613a6b565b5b6000614e8a84828501614e51565b91505092915050565b7f4552433732315073693a20617070726f76616c20746f2063757272656e74206f60008201527f776e657200000000000000000000000000000000000000000000000000000000602082015250565b6000614eef602483613b3b565b9150614efa82614e93565b604082019050919050565b60006020820190508181036000830152614f1e81614ee2565b9050919050565b7f4552433732315073693a20617070726f76652063616c6c6572206973206e6f7460008201527f206f776e6572206e6f7220617070726f76656420666f7220616c6c0000000000602082015250565b6000614f81603b83613b3b565b9150614f8c82614f25565b604082019050919050565b60006020820190508181036000830152614fb081614f74565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614fed602083613b3b565b9150614ff882614fb7565b602082019050919050565b6000602082019050818103600083015261501c81614fe0565b9050919050565b7f4552433732315073693a207472616e736665722063616c6c6572206973206e6f60008201527f74206f776e6572206e6f7220617070726f766564000000000000000000000000602082015250565b600061507f603483613b3b565b915061508a82615023565b604082019050919050565b600060208201905081810360008301526150ae81615072565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b60006150eb601d83613b3b565b91506150f6826150b5565b602082019050919050565b6000602082019050818103600083015261511a816150de565b9050919050565b600081905092915050565b50565b600061513c600083615121565b91506151478261512c565b600082019050919050565b600061515d8261512f565b9150819050919050565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b60006151c3603a83613b3b565b91506151ce82615167565b604082019050919050565b600060208201905081810360008301526151f2816151b6565b9050919050565b7f4552433732315073693a206f776e657220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b6000615255602c83613b3b565b9150615260826151f9565b604082019050919050565b6000602082019050818103600083015261528481615248565b9050919050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b60006152e7602a83613b3b565b91506152f28261528b565b604082019050919050565b60006020820190508181036000830152615316816152da565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b6000615353601983613b3b565b915061535e8261531d565b602082019050919050565b6000602082019050818103600083015261538281615346565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b60006153bf601f83613b3b565b91506153ca82615389565b602082019050919050565b600060208201905081810360008301526153ee816153b2565b9050919050565b7f4e6f7420656e6f7567682066756e647300000000000000000000000000000000600082015250565b600061542b601083613b3b565b9150615436826153f5565b602082019050919050565b6000602082019050818103600083015261545a8161541e565b9050919050565b7f4d696e74207175616e74697479206f7665720000000000000000000000000000600082015250565b6000615497601283613b3b565b91506154a282615461565b602082019050919050565b600060208201905081810360008301526154c68161548a565b9050919050565b7f4552433732315073693a20617070726f766520746f2063616c6c657200000000600082015250565b6000615503601c83613b3b565b915061550e826154cd565b602082019050919050565b60006020820190508181036000830152615532816154f6565b9050919050565b7f4552433732315073693a2055524920717565727920666f72206e6f6e6578697360008201527f74656e7420746f6b656e00000000000000000000000000000000000000000000602082015250565b6000615595602a83613b3b565b91506155a082615539565b604082019050919050565b600060208201905081810360008301526155c481615588565b9050919050565b60006155d78285614c8b565b91506155e38284614c8b565b91508190509392505050565b7f4552433732315073693a206f70657261746f7220717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b600061564b602f83613b3b565b9150615656826155ef565b604082019050919050565b6000602082019050818103600083015261567a8161563e565b9050919050565b7f4552433732315073693a207472616e73666572206f6620746f6b656e2074686160008201527f74206973206e6f74206f776e0000000000000000000000000000000000000000602082015250565b60006156dd602c83613b3b565b91506156e882615681565b604082019050919050565b6000602082019050818103600083015261570c816156d0565b9050919050565b7f4552433732315073693a207472616e7366657220746f20746865207a65726f2060008201527f6164647265737300000000000000000000000000000000000000000000000000602082015250565b600061576f602783613b3b565b915061577a82615713565b604082019050919050565b6000602082019050818103600083015261579e81615762565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4552433732315073693a207472616e7366657220746f206e6f6e20455243373260008201527f31526563656976657220696d706c656d656e7465720000000000000000000000602082015250565b6000615830603583613b3b565b915061583b826157d4565b604082019050919050565b6000602082019050818103600083015261585f81615823565b9050919050565b7f4552433732315073693a207175616e74697479206d757374206265206772656160008201527f7465722030000000000000000000000000000000000000000000000000000000602082015250565b60006158c2602583613b3b565b91506158cd82615866565b604082019050919050565b600060208201905081810360008301526158f1816158b5565b9050919050565b7f4552433732315073693a206d696e7420746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b6000615954602383613b3b565b915061595f826158f8565b604082019050919050565b6000602082019050818103600083015261598381615947565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006159b18261598a565b6159bb8185615995565b93506159cb818560208601613b4c565b6159d481613b7f565b840191505092915050565b60006080820190506159f46000830187613c80565b615a016020830186613c80565b615a0e6040830185613d16565b8181036060830152615a2081846159a6565b905095945050505050565b600081519050615a3a81613aa1565b92915050565b600060208284031215615a5657615a55613a6b565b5b6000615a6484828501615a2b565b91505092915050565b7f4269744d6170733a205468652073657420626974206265666f7265207468652060008201527f696e64657820646f65736e27742065786973742e000000000000000000000000602082015250565b6000615ac9603483613b3b565b9150615ad482615a6d565b604082019050919050565b60006020820190508181036000830152615af881615abc565b905091905056fe0001020903110a19042112290b311a3905412245134d2a550c5d32651b6d3a7506264262237d468514804e8d2b95569d0d495ea533a966b11c886eb93bc176c9071727374353637324837e9b47af86c7155181ad4fd18ed32c9096db57d59ee30e2e4a6a5f92a6be3498aae067ddb2eb1d5989b56fd7baf33ca0c2ee77e5caf7ff0810182028303840444c545c646c7425617c847f8c949c48a4a8b087b8c0c816365272829aaec650acd0d28fdad4e22d6991bd97dfdcea58b4d6f29fede4f6fe0f1f2f3f4b5b6b607b8b93a3a7b7bf357199c5abcfd9e168bcdee9b3f1ecf5fd1e3e5a7a8aa2b670c4ced8bbe8f0f4fc3d79a1c3cde7effb78cce6facbf9f8a26469706673582212209c0f45cf84f389f24f8b9cd20959fe3f7cdbcc4db08b05680babb4a7742a4cec64736f6c634300080d003368747470733a2f2f656d696c792d6e66742d6173736574732e73332e61702d6e6f727468656173742d312e616d617a6f6e6177732e636f6d2f756e72657665616c65642f6d657461646174612e6a736f6e
Deployed Bytecode
0x6080604052600436106102675760003560e01c8063715018a611610144578063b88d4fde116100b6578063c87b56dd1161007a578063c87b56dd14610949578063c884ef8314610986578063e985e9c5146109c3578063f2fde38b14610a00578063fe2c7fee14610a29578063fe55932a14610a5257610267565b8063b88d4fde14610873578063ba0440091461089c578063bcf38a79146108c7578063c30565fb14610904578063c67add3a1461092d57610267565b80638f2fc60b116101085780638f2fc60b146107865780638fa31109146107af578063940cd05b146107cb57806395d89b41146107f457806396678c851461081f578063a22cb4651461084a57610267565b8063715018a6146106c5578063776f1ecb146106dc5780637d21f51d14610707578063887a3fa2146107325780638da5cb5b1461075b57610267565b80633c70b357116101dd5780634f6ccce7116101a15780634f6ccce71461056b57806355f804b3146105a85780635b2c98cf146105d15780635c64ef661461060e5780636352211e1461064b57806370a082311461068857610267565b80633c70b3571461049a5780633ccfd60b146104d757806341f43434146104ee57806342842e0e14610519578063484b973c1461054257610267565b806318712c211161022f57806318712c211461036557806323b872dd1461038e5780632a55205a146103b75780632f745c59146103f557806332cb6b0c146104325780633bbaeef21461045d57610267565b806301ffc9a71461026c57806306fdde03146102a9578063081812fc146102d4578063095ea7b31461031157806318160ddd1461033a575b600080fd5b34801561027857600080fd5b50610293600480360381019061028e9190613acd565b610a7b565b6040516102a09190613b15565b60405180910390f35b3480156102b557600080fd5b506102be610a9d565b6040516102cb9190613bc9565b60405180910390f35b3480156102e057600080fd5b506102fb60048036038101906102f69190613c21565b610b2f565b6040516103089190613c8f565b60405180910390f35b34801561031d57600080fd5b5061033860048036038101906103339190613cd6565b610bb4565b005b34801561034657600080fd5b5061034f610bcd565b60405161035c9190613d25565b60405180910390f35b34801561037157600080fd5b5061038c60048036038101906103879190613d76565b610be3565b005b34801561039a57600080fd5b506103b560048036038101906103b09190613db6565b610c07565b005b3480156103c357600080fd5b506103de60048036038101906103d99190613e09565b610c56565b6040516103ec929190613e49565b60405180910390f35b34801561040157600080fd5b5061041c60048036038101906104179190613cd6565b610e40565b6040516104299190613d25565b60405180910390f35b34801561043e57600080fd5b50610447610f16565b6040516104549190613d25565b60405180910390f35b34801561046957600080fd5b50610484600480360381019061047f9190613ed7565b610f1c565b6040516104919190613b15565b60405180910390f35b3480156104a657600080fd5b506104c160048036038101906104bc9190613c21565b610f75565b6040516104ce9190613f6e565b60405180910390f35b3480156104e357600080fd5b506104ec610f8d565b005b3480156104fa57600080fd5b506105036110f5565b6040516105109190613fe8565b60405180910390f35b34801561052557600080fd5b50610540600480360381019061053b9190613db6565b611107565b005b34801561054e57600080fd5b5061056960048036038101906105649190613cd6565b611156565b005b34801561057757600080fd5b50610592600480360381019061058d9190613c21565b6111c9565b60405161059f9190613d25565b60405180910390f35b3480156105b457600080fd5b506105cf60048036038101906105ca9190614059565b61126f565b005b3480156105dd57600080fd5b506105f860048036038101906105f39190613c21565b61128d565b6040516106059190613bc9565b60405180910390f35b34801561061a57600080fd5b5061063560048036038101906106309190613c21565b61132d565b6040516106429190613b15565b60405180910390f35b34801561065757600080fd5b50610672600480360381019061066d9190613c21565b61134d565b60405161067f9190613c8f565b60405180910390f35b34801561069457600080fd5b506106af60048036038101906106aa91906140a6565b611365565b6040516106bc9190613d25565b60405180910390f35b3480156106d157600080fd5b506106da611459565b005b3480156106e857600080fd5b506106f161146d565b6040516106fe9190613d25565b60405180910390f35b34801561071357600080fd5b5061071c611472565b6040516107299190613d25565b60405180910390f35b34801561073e57600080fd5b50610759600480360381019061075491906140d3565b61147d565b005b34801561076757600080fd5b506107706114ad565b60405161077d9190613c8f565b60405180910390f35b34801561079257600080fd5b506107ad60048036038101906107a89190614177565b6114d7565b005b6107c960048036038101906107c491906141b7565b6114ed565b005b3480156107d757600080fd5b506107f260048036038101906107ed919061426b565b611777565b005b34801561080057600080fd5b5061080961179c565b6040516108169190613bc9565b60405180910390f35b34801561082b57600080fd5b5061083461182e565b6040516108419190613d25565b60405180910390f35b34801561085657600080fd5b50610871600480360381019061086c9190614298565b611839565b005b34801561087f57600080fd5b5061089a60048036038101906108959190614408565b611852565b005b3480156108a857600080fd5b506108b16118a3565b6040516108be9190613d25565b60405180910390f35b3480156108d357600080fd5b506108ee60048036038101906108e9919061448b565b6118ae565b6040516108fb9190613d25565b60405180910390f35b34801561091057600080fd5b5061092b600480360381019061092691906144cb565b6118d3565b005b6109476004803603810190610942919061448b565b61190a565b005b34801561095557600080fd5b50610970600480360381019061096b9190613c21565b611b01565b60405161097d9190613bc9565b60405180910390f35b34801561099257600080fd5b506109ad60048036038101906109a891906140a6565b611bda565b6040516109ba9190613d25565b60405180910390f35b3480156109cf57600080fd5b506109ea60048036038101906109e5919061450b565b611bf2565b6040516109f79190613b15565b60405180910390f35b348015610a0c57600080fd5b50610a276004803603810190610a2291906140a6565b611c86565b005b348015610a3557600080fd5b50610a506004803603810190610a4b9190614059565b611d09565b005b348015610a5e57600080fd5b50610a796004803603810190610a7491906140d3565b611d27565b005b6000610a8682611e45565b80610a965750610a9582611f8f565b5b9050919050565b606060018054610aac9061457a565b80601f0160208091040260200160405190810160405280929190818152602001828054610ad89061457a565b8015610b255780601f10610afa57610100808354040283529160200191610b25565b820191906000526020600020905b815481529060010190602001808311610b0857829003601f168201915b5050505050905090565b6000610b3a82612009565b610b79576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b709061461d565b60405180910390fd5b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b81610bbe81612017565b610bc88383612114565b505050565b60006001600454610bde919061466c565b905090565b610beb61222b565b80600c6000848152602001908152602001600020819055505050565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610c4557610c4433612017565b5b610c508484846122a9565b50505050565b6000806000600860008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1603610deb5760076040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b6000610df5612309565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff1686610e2191906146a0565b610e2b9190614729565b90508160000151819350935050509250929050565b6000806000600190505b600454811015610ed457610e5d81612009565b8015610e9c5750610e6d8161134d565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16145b15610ec157838203610eb2578092505050610f10565b8180610ebd9061475a565b9250505b8080610ecc9061475a565b915050610e4a565b506040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f0790614814565b60405180910390fd5b92915050565b6105dc81565b6000808686604051602001610f3292919061489d565b604051602081830303815290604052805190602001209050610f698484600c60008981526020019081526020016000205484612313565b91505095945050505050565b600c6020528060005260406000206000915090505481565b610f9561222b565b6000479050610fd4735444f2d8a68be0dafe38def6cdaa172c2d015a05620f42406207a12084610fc591906146a0565b610fcf9190614729565b61232c565b61100e737abb65089055fb2bf5b247c89e3c11f7db861213620f4240620493e084610fff91906146a0565b6110099190614729565b61232c565b61104773a3fd3586726c6b71b5925613909b40564aff9f86620f424061c3508461103891906146a0565b6110429190614729565b61232c565b61108073baa98fe972144ef1de53b801045cec5a291cb30e620f424061c3508461107191906146a0565b61107b9190614729565b61232c565b6110b9733c2ebb7c2c4ee839c12708c123d6a54f5fbb1562620f424061c350846110aa91906146a0565b6110b49190614729565b61232c565b6110f273d77989a5b8ded89b74215845f245e35d932cd740620f424061c350846110e391906146a0565b6110ed9190614729565b61232c565b50565b6daaeb6d7670e522a718067333cd4e81565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146111455761114433612017565b5b611150848484612420565b50505050565b61115e61222b565b6000611168610bcd565b90506105dc828261117991906148c9565b11156111ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111b19061496b565b60405180910390fd5b6111c48383612440565b505050565b60006111d3610bcd565b8210611214576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161120b906149fd565b60405180910390fd5b600080600190505b6004548110156112675761122f81612009565b156112545783820361124557809250505061126a565b81806112509061475a565b9250505b808061125f9061475a565b91505061121c565b50505b919050565b61127761222b565b8181600e91906112889291906139be565b505050565b601260205280600052604060002060009150905080546112ac9061457a565b80601f01602080910402602001604051908101604052809291908181526020018280546112d89061457a565b80156113255780601f106112fa57610100808354040283529160200191611325565b820191906000526020600020905b81548152906001019060200180831161130857829003601f168201915b505050505081565b600b6020528060005260406000206000915054906101000a900460ff1681565b6000806113598361245e565b50905080915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036113d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113cc90614a8f565b60405180910390fd5b600080600190505b60045481101561144f576113f081612009565b1561143e576113fe8161134d565b73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff160361143d578161143a9061475a565b91505b5b806114489061475a565b90506113dd565b5080915050919050565b61146161222b565b61146b60006124ef565b565b600081565b6611c37937e0800081565b61148561222b565b81816012600086815260200190815260200160002091906114a79291906139be565b50505050565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6114df61222b565b6114e982826125b5565b5050565b6114f561274a565b6000600186036115135784600061150c91906146a0565b9050611555565b6002860361153557846611c37937e0800061152e91906146a0565b9050611554565b6003860361155357846618de76816d800061155091906146a0565b90505b5b5b60008511611598576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161158f90614afb565b60405180910390fd5b600b600087815260200190815260200160002060009054906101000a900460ff166115f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115ef90614b67565b60405180910390fd5b6116053383888787610f1c565b611644576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161163b90614bd3565b60405180910390fd5b61165086868385612799565b84601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461169f91906148c9565b92505081905550846011600088815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461170691906148c9565b925050819055506117173386612440565b3373ffffffffffffffffffffffffffffffffffffffff167f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f868860405161175f929190614bf3565b60405180910390a2506117706128e5565b5050505050565b61177f61222b565b80600d60006101000a81548160ff02191690831515021790555050565b6060600280546117ab9061457a565b80601f01602080910402602001604051908101604052809291908181526020018280546117d79061457a565b80156118245780601f106117f957610100808354040283529160200191611824565b820191906000526020600020905b81548152906001019060200180831161180757829003601f168201915b5050505050905090565b6618de76816d800081565b8161184381612017565b61184d83836128ef565b505050565b833373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146118905761188f33612017565b5b61189c85858585612a6f565b5050505050565b661ff973cafa800081565b6011602052816000526040600020602052806000526040600020600091509150505481565b6118db61222b565b80600b600084815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b61191261274a565b600082661ff973cafa800061192791906146a0565b9050600b60006004815260200190815260200160002060009054906101000a900460ff1661198a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161198190614b67565b60405180910390fd5b600083116119cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119c490614afb565b60405180910390fd5b6119db600484836000612799565b82601060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611a2a91906148c9565b9250508190555082601160006004815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611a9291906148c9565b92505081905550611aa38284612440565b8173ffffffffffffffffffffffffffffffffffffffff167f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f846004604051611aec929190614c57565b60405180910390a250611afd6128e5565b5050565b6060600d60009054906101000a900460ff1615611b4757611b2182612ad1565b604051602001611b319190614d08565b6040516020818303038152906040529050611bd5565b600f8054611b549061457a565b80601f0160208091040260200160405190810160405280929190818152602001828054611b809061457a565b8015611bcd5780601f10611ba257610100808354040283529160200191611bcd565b820191906000526020600020905b815481529060010190602001808311611bb057829003601f168201915b505050505090505b919050565b60106020528060005260406000206000915090505481565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611c8e61222b565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611cfd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cf490614d9c565b60405180910390fd5b611d06816124ef565b50565b611d1161222b565b8181600f9190611d229291906139be565b505050565b3373ffffffffffffffffffffffffffffffffffffffff16611d478461134d565b73ffffffffffffffffffffffffffffffffffffffff1614611d9d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d9490614e08565b60405180910390fd5b8181601260008681526020019081526020016000209190611dbf9291906139be565b50505050565b6000600882901c9050600060ff83167f8000000000000000000000000000000000000000000000000000000000000000901c9050808460000160008481526020019081526020016000206000828254179250508190555050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611f1057507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611f7857507f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611f885750611f8782612b78565b5b9050919050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612002575061200182611e45565b5b9050919050565b600060045482109050919050565b60006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115612111576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b815260040161208e929190614e28565b602060405180830381865afa1580156120ab573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120cf9190614e66565b61211057806040517fede71dcc0000000000000000000000000000000000000000000000000000000081526004016121079190613c8f565b60405180910390fd5b5b50565b600061211f8261134d565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361218f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161218690614f05565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166121ae612be2565b73ffffffffffffffffffffffffffffffffffffffff1614806121dd57506121dc816121d7612be2565b611bf2565b5b61221c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161221390614f97565b60405180910390fd5b6122268383612bea565b505050565b612233612be2565b73ffffffffffffffffffffffffffffffffffffffff166122516114ad565b73ffffffffffffffffffffffffffffffffffffffff16146122a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161229e90615003565b60405180910390fd5b565b6122ba6122b4612be2565b82612ca3565b6122f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122f090615095565b60405180910390fd5b612304838383612d81565b505050565b6000612710905090565b600082612321868685613003565b149050949350505050565b8047101561236f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161236690615101565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff168260405161239590615152565b60006040518083038185875af1925050503d80600081146123d2576040519150601f19603f3d011682016040523d82523d6000602084013e6123d7565b606091505b505090508061241b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612412906151d9565b60405180910390fd5b505050565b61243b83838360405180602001604052806000815250611852565b505050565b61245a82826040518060200160405280600081525061305b565b5050565b60008061246a83612009565b6124a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124a09061526b565b60405180910390fd5b6124b2836130bf565b90506003600082815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169150915091565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6125bd612309565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff16111561261b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612612906152fd565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361268a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161268190615369565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600760008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b6002600a540361278f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612786906153d5565b60405180910390fd5b6002600a81905550565b60006127a3610bcd565b90506105dc84826127b491906148c9565b11156127f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127ec9061496b565b60405180910390fd5b823414612837576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161282e90615441565b60405180910390fd5b600485146128de5781846011600088815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461289c91906148c9565b11156128dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128d4906154ad565b60405180910390fd5b5b5050505050565b6001600a81905550565b6128f7612be2565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612964576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161295b90615519565b60405180910390fd5b8060066000612971612be2565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16612a1e612be2565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612a639190613b15565b60405180910390a35050565b612a80612a7a612be2565b83612ca3565b612abf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ab690615095565b60405180910390fd5b612acb848484846130dc565b50505050565b6060612adc82612009565b612b1b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b12906155ab565b60405180910390fd5b6000612b2561313a565b90506000815111612b455760405180602001604052806000815250612b70565b80612b4f846131cc565b604051602001612b609291906155cb565b6040516020818303038152906040525b915050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b816005600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16612c5d8361134d565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000612cae82612009565b612ced576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ce490615661565b60405180910390fd5b6000612cf88361134d565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612d6757508373ffffffffffffffffffffffffffffffffffffffff16612d4f84610b2f565b73ffffffffffffffffffffffffffffffffffffffff16145b80612d785750612d778185611bf2565b5b91505092915050565b600080612d8d8361245e565b915091508473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612dff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612df6906156f3565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612e6e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e6590615785565b60405180910390fd5b612e7b858585600161329a565b612e86600084612bea565b6000600184612e9591906148c9565b9050612eab8160006132a090919063ffffffff16565b158015612eb9575060045481105b15612f2557856003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550612f24816000611dc590919063ffffffff16565b5b846003600086815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818414612f9357612f92846000611dc590919063ffffffff16565b5b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612ffb86868660016132fb565b505050505050565b60008082905060005b8585905081101561304f5761303a8287878481811061302e5761302d6157a5565b5b90506020020135613301565b915080806130479061475a565b91505061300c565b50809150509392505050565b6000600454905061306c848461332c565b61307a60008583868661350c565b6130b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130b090615846565b60405180910390fd5b50505050565b60006130d58260006136ce90919063ffffffff16565b9050919050565b6130e7848484612d81565b6130f584848460018561350c565b613134576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161312b90615846565b60405180910390fd5b50505050565b6060600e80546131499061457a565b80601f01602080910402602001604051908101604052809291908181526020018280546131759061457a565b80156131c25780601f10613197576101008083540402835291602001916131c2565b820191906000526020600020905b8154815290600101906020018083116131a557829003601f168201915b5050505050905090565b6060600060016131db846137c7565b01905060008167ffffffffffffffff8111156131fa576131f96142dd565b5b6040519080825280601f01601f19166020018201604052801561322c5781602001600182028036833780820191505090505b509050600082602001820190505b60011561328f578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8581613283576132826146fa565b5b0494506000850361323a575b819350505050919050565b50505050565b600080600883901c9050600060ff84167f8000000000000000000000000000000000000000000000000000000000000000901c9050600081866000016000858152602001908152602001600020541614159250505092915050565b50505050565b600081831061331957613314828461391a565b613324565b613323838361391a565b5b905092915050565b6000600454905060008211613376576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161336d906158d8565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036133e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133dc9061596a565b60405180910390fd5b6133f2600084838561329a565b816004600082825461340491906148c9565b92505081905550826003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550613471816000611dc590919063ffffffff16565b61347e60008483856132fb565b60008190505b828261349091906148c9565b81101561350657808473ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a480806134fe9061475a565b915050613484565b50505050565b600061352d8573ffffffffffffffffffffffffffffffffffffffff16611e22565b156136c0576001905060008490505b838561354891906148c9565b8110156136ba578573ffffffffffffffffffffffffffffffffffffffff1663150b7a02613573612be2565b8984876040518563ffffffff1660e01b815260040161359594939291906159df565b6020604051808303816000875af19250505080156135d157506040513d601f19601f820116820180604052508101906135ce9190615a40565b60015b613653573d8060008114613601576040519150601f19603f3d011682016040523d82523d6000602084013e613606565b606091505b50600081510361364b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161364290615846565b60405180910390fd5b805181602001fd5b8280156136a4575063150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b92505080806136b29061475a565b91505061353c565b506136c5565b600190505b95945050505050565b600080600883901c9050600060ff8416905060008560000160008481526020019081526020016000205490508160ff1881901c905060008111156137275761371581613931565b60ff168203600884901b1793506137be565b5b6001156137bd5760008311613772576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161376990615adf565b60405180910390fd5b82806001900393505085600001600084815260200190815260200160002054905060008111156137b8576137a581613931565b60ff0360ff16600884901b1793506137bd565b613728565b5b50505092915050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310613825577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000838161381b5761381a6146fa565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310613862576d04ee2d6d415b85acef81000000008381613858576138576146fa565b5b0492506020810190505b662386f26fc10000831061389157662386f26fc100008381613887576138866146fa565b5b0492506010810190505b6305f5e10083106138ba576305f5e10083816138b0576138af6146fa565b5b0492506008810190505b61271083106138df5761271083816138d5576138d46146fa565b5b0492506004810190505b6064831061390257606483816138f8576138f76146fa565b5b0492506002810190505b600a8310613911576001810190505b80915050919050565b600082600052816020526040600020905092915050565b60006040518061012001604052806101008152602001615b00610100913960f87e818283848586878898a8b8c8d8e8f929395969799a9b9d9e9faaeb6bedeeff61397a856139a3565b02901c8151811061398e5761398d6157a5565b5b602001015160f81c60f81b60f81c9050919050565b60008082116139b157600080fd5b8160000382169050919050565b8280546139ca9061457a565b90600052602060002090601f0160209004810192826139ec5760008555613a33565b82601f10613a0557803560ff1916838001178555613a33565b82800160010185558215613a33579182015b82811115613a32578235825591602001919060010190613a17565b5b509050613a409190613a44565b5090565b5b80821115613a5d576000816000905550600101613a45565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613aaa81613a75565b8114613ab557600080fd5b50565b600081359050613ac781613aa1565b92915050565b600060208284031215613ae357613ae2613a6b565b5b6000613af184828501613ab8565b91505092915050565b60008115159050919050565b613b0f81613afa565b82525050565b6000602082019050613b2a6000830184613b06565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613b6a578082015181840152602081019050613b4f565b83811115613b79576000848401525b50505050565b6000601f19601f8301169050919050565b6000613b9b82613b30565b613ba58185613b3b565b9350613bb5818560208601613b4c565b613bbe81613b7f565b840191505092915050565b60006020820190508181036000830152613be38184613b90565b905092915050565b6000819050919050565b613bfe81613beb565b8114613c0957600080fd5b50565b600081359050613c1b81613bf5565b92915050565b600060208284031215613c3757613c36613a6b565b5b6000613c4584828501613c0c565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613c7982613c4e565b9050919050565b613c8981613c6e565b82525050565b6000602082019050613ca46000830184613c80565b92915050565b613cb381613c6e565b8114613cbe57600080fd5b50565b600081359050613cd081613caa565b92915050565b60008060408385031215613ced57613cec613a6b565b5b6000613cfb85828601613cc1565b9250506020613d0c85828601613c0c565b9150509250929050565b613d1f81613beb565b82525050565b6000602082019050613d3a6000830184613d16565b92915050565b6000819050919050565b613d5381613d40565b8114613d5e57600080fd5b50565b600081359050613d7081613d4a565b92915050565b60008060408385031215613d8d57613d8c613a6b565b5b6000613d9b85828601613c0c565b9250506020613dac85828601613d61565b9150509250929050565b600080600060608486031215613dcf57613dce613a6b565b5b6000613ddd86828701613cc1565b9350506020613dee86828701613cc1565b9250506040613dff86828701613c0c565b9150509250925092565b60008060408385031215613e2057613e1f613a6b565b5b6000613e2e85828601613c0c565b9250506020613e3f85828601613c0c565b9150509250929050565b6000604082019050613e5e6000830185613c80565b613e6b6020830184613d16565b9392505050565b600080fd5b600080fd5b600080fd5b60008083601f840112613e9757613e96613e72565b5b8235905067ffffffffffffffff811115613eb457613eb3613e77565b5b602083019150836020820283011115613ed057613ecf613e7c565b5b9250929050565b600080600080600060808688031215613ef357613ef2613a6b565b5b6000613f0188828901613cc1565b9550506020613f1288828901613c0c565b9450506040613f2388828901613c0c565b935050606086013567ffffffffffffffff811115613f4457613f43613a70565b5b613f5088828901613e81565b92509250509295509295909350565b613f6881613d40565b82525050565b6000602082019050613f836000830184613f5f565b92915050565b6000819050919050565b6000613fae613fa9613fa484613c4e565b613f89565b613c4e565b9050919050565b6000613fc082613f93565b9050919050565b6000613fd282613fb5565b9050919050565b613fe281613fc7565b82525050565b6000602082019050613ffd6000830184613fd9565b92915050565b60008083601f84011261401957614018613e72565b5b8235905067ffffffffffffffff81111561403657614035613e77565b5b60208301915083600182028301111561405257614051613e7c565b5b9250929050565b600080602083850312156140705761406f613a6b565b5b600083013567ffffffffffffffff81111561408e5761408d613a70565b5b61409a85828601614003565b92509250509250929050565b6000602082840312156140bc576140bb613a6b565b5b60006140ca84828501613cc1565b91505092915050565b6000806000604084860312156140ec576140eb613a6b565b5b60006140fa86828701613c0c565b935050602084013567ffffffffffffffff81111561411b5761411a613a70565b5b61412786828701614003565b92509250509250925092565b60006bffffffffffffffffffffffff82169050919050565b61415481614133565b811461415f57600080fd5b50565b6000813590506141718161414b565b92915050565b6000806040838503121561418e5761418d613a6b565b5b600061419c85828601613cc1565b92505060206141ad85828601614162565b9150509250929050565b6000806000806000608086880312156141d3576141d2613a6b565b5b60006141e188828901613c0c565b95505060206141f288828901613c0c565b945050604086013567ffffffffffffffff81111561421357614212613a70565b5b61421f88828901613e81565b9350935050606061423288828901613c0c565b9150509295509295909350565b61424881613afa565b811461425357600080fd5b50565b6000813590506142658161423f565b92915050565b60006020828403121561428157614280613a6b565b5b600061428f84828501614256565b91505092915050565b600080604083850312156142af576142ae613a6b565b5b60006142bd85828601613cc1565b92505060206142ce85828601614256565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61431582613b7f565b810181811067ffffffffffffffff82111715614334576143336142dd565b5b80604052505050565b6000614347613a61565b9050614353828261430c565b919050565b600067ffffffffffffffff821115614373576143726142dd565b5b61437c82613b7f565b9050602081019050919050565b82818337600083830152505050565b60006143ab6143a684614358565b61433d565b9050828152602081018484840111156143c7576143c66142d8565b5b6143d2848285614389565b509392505050565b600082601f8301126143ef576143ee613e72565b5b81356143ff848260208601614398565b91505092915050565b6000806000806080858703121561442257614421613a6b565b5b600061443087828801613cc1565b945050602061444187828801613cc1565b935050604061445287828801613c0c565b925050606085013567ffffffffffffffff81111561447357614472613a70565b5b61447f878288016143da565b91505092959194509250565b600080604083850312156144a2576144a1613a6b565b5b60006144b085828601613c0c565b92505060206144c185828601613cc1565b9150509250929050565b600080604083850312156144e2576144e1613a6b565b5b60006144f085828601613c0c565b925050602061450185828601614256565b9150509250929050565b6000806040838503121561452257614521613a6b565b5b600061453085828601613cc1565b925050602061454185828601613cc1565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061459257607f821691505b6020821081036145a5576145a461454b565b5b50919050565b7f4552433732315073693a20617070726f76656420717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000614607602f83613b3b565b9150614612826145ab565b604082019050919050565b60006020820190508181036000830152614636816145fa565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061467782613beb565b915061468283613beb565b9250828210156146955761469461463d565b5b828203905092915050565b60006146ab82613beb565b91506146b683613beb565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156146ef576146ee61463d565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061473482613beb565b915061473f83613beb565b92508261474f5761474e6146fa565b5b828204905092915050565b600061476582613beb565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036147975761479661463d565b5b600182019050919050565b7f4552433732315073693a206f776e657220696e646578206f7574206f6620626f60008201527f756e647300000000000000000000000000000000000000000000000000000000602082015250565b60006147fe602483613b3b565b9150614809826147a2565b604082019050919050565b6000602082019050818103600083015261482d816147f1565b9050919050565b60008160601b9050919050565b600061484c82614834565b9050919050565b600061485e82614841565b9050919050565b61487661487182613c6e565b614853565b82525050565b6000819050919050565b61489761489282613beb565b61487c565b82525050565b60006148a98285614865565b6014820191506148b98284614886565b6020820191508190509392505050565b60006148d482613beb565b91506148df83613beb565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156149145761491361463d565b5b828201905092915050565b7f4d617820737570706c79206f7665720000000000000000000000000000000000600082015250565b6000614955600f83613b3b565b91506149608261491f565b602082019050919050565b6000602082019050818103600083015261498481614948565b9050919050565b7f4552433732315073693a20676c6f62616c20696e646578206f7574206f66206260008201527f6f756e6473000000000000000000000000000000000000000000000000000000602082015250565b60006149e7602583613b3b565b91506149f28261498b565b604082019050919050565b60006020820190508181036000830152614a16816149da565b9050919050565b7f4552433732315073693a2062616c616e636520717565727920666f722074686560008201527f207a65726f206164647265737300000000000000000000000000000000000000602082015250565b6000614a79602d83613b3b565b9150614a8482614a1d565b604082019050919050565b60006020820190508181036000830152614aa881614a6c565b9050919050565b7f506c6561736520736574207175616e746974792e000000000000000000000000600082015250565b6000614ae5601483613b3b565b9150614af082614aaf565b602082019050919050565b60006020820190508181036000830152614b1481614ad8565b9050919050565b7f4265666f72652073616c6520626567696e2e0000000000000000000000000000600082015250565b6000614b51601283613b3b565b9150614b5c82614b1b565b602082019050919050565b60006020820190508181036000830152614b8081614b44565b9050919050565b7f496e76616c6964204d65726b6c652050726f6f66000000000000000000000000600082015250565b6000614bbd601483613b3b565b9150614bc882614b87565b602082019050919050565b60006020820190508181036000830152614bec81614bb0565b9050919050565b6000604082019050614c086000830185613d16565b614c156020830184613d16565b9392505050565b6000819050919050565b6000614c41614c3c614c3784614c1c565b613f89565b613beb565b9050919050565b614c5181614c26565b82525050565b6000604082019050614c6c6000830185613d16565b614c796020830184614c48565b9392505050565b600081905092915050565b6000614c9682613b30565b614ca08185614c80565b9350614cb0818560208601613b4c565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b6000614cf2600583614c80565b9150614cfd82614cbc565b600582019050919050565b6000614d148284614c8b565b9150614d1f82614ce5565b915081905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614d86602683613b3b565b9150614d9182614d2a565b604082019050919050565b60006020820190508181036000830152614db581614d79565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746865206f776e657200600082015250565b6000614df2601f83613b3b565b9150614dfd82614dbc565b602082019050919050565b60006020820190508181036000830152614e2181614de5565b9050919050565b6000604082019050614e3d6000830185613c80565b614e4a6020830184613c80565b9392505050565b600081519050614e608161423f565b92915050565b600060208284031215614e7c57614e7b613a6b565b5b6000614e8a84828501614e51565b91505092915050565b7f4552433732315073693a20617070726f76616c20746f2063757272656e74206f60008201527f776e657200000000000000000000000000000000000000000000000000000000602082015250565b6000614eef602483613b3b565b9150614efa82614e93565b604082019050919050565b60006020820190508181036000830152614f1e81614ee2565b9050919050565b7f4552433732315073693a20617070726f76652063616c6c6572206973206e6f7460008201527f206f776e6572206e6f7220617070726f76656420666f7220616c6c0000000000602082015250565b6000614f81603b83613b3b565b9150614f8c82614f25565b604082019050919050565b60006020820190508181036000830152614fb081614f74565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614fed602083613b3b565b9150614ff882614fb7565b602082019050919050565b6000602082019050818103600083015261501c81614fe0565b9050919050565b7f4552433732315073693a207472616e736665722063616c6c6572206973206e6f60008201527f74206f776e6572206e6f7220617070726f766564000000000000000000000000602082015250565b600061507f603483613b3b565b915061508a82615023565b604082019050919050565b600060208201905081810360008301526150ae81615072565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b60006150eb601d83613b3b565b91506150f6826150b5565b602082019050919050565b6000602082019050818103600083015261511a816150de565b9050919050565b600081905092915050565b50565b600061513c600083615121565b91506151478261512c565b600082019050919050565b600061515d8261512f565b9150819050919050565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b60006151c3603a83613b3b565b91506151ce82615167565b604082019050919050565b600060208201905081810360008301526151f2816151b6565b9050919050565b7f4552433732315073693a206f776e657220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b6000615255602c83613b3b565b9150615260826151f9565b604082019050919050565b6000602082019050818103600083015261528481615248565b9050919050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b60006152e7602a83613b3b565b91506152f28261528b565b604082019050919050565b60006020820190508181036000830152615316816152da565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b6000615353601983613b3b565b915061535e8261531d565b602082019050919050565b6000602082019050818103600083015261538281615346565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b60006153bf601f83613b3b565b91506153ca82615389565b602082019050919050565b600060208201905081810360008301526153ee816153b2565b9050919050565b7f4e6f7420656e6f7567682066756e647300000000000000000000000000000000600082015250565b600061542b601083613b3b565b9150615436826153f5565b602082019050919050565b6000602082019050818103600083015261545a8161541e565b9050919050565b7f4d696e74207175616e74697479206f7665720000000000000000000000000000600082015250565b6000615497601283613b3b565b91506154a282615461565b602082019050919050565b600060208201905081810360008301526154c68161548a565b9050919050565b7f4552433732315073693a20617070726f766520746f2063616c6c657200000000600082015250565b6000615503601c83613b3b565b915061550e826154cd565b602082019050919050565b60006020820190508181036000830152615532816154f6565b9050919050565b7f4552433732315073693a2055524920717565727920666f72206e6f6e6578697360008201527f74656e7420746f6b656e00000000000000000000000000000000000000000000602082015250565b6000615595602a83613b3b565b91506155a082615539565b604082019050919050565b600060208201905081810360008301526155c481615588565b9050919050565b60006155d78285614c8b565b91506155e38284614c8b565b91508190509392505050565b7f4552433732315073693a206f70657261746f7220717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b600061564b602f83613b3b565b9150615656826155ef565b604082019050919050565b6000602082019050818103600083015261567a8161563e565b9050919050565b7f4552433732315073693a207472616e73666572206f6620746f6b656e2074686160008201527f74206973206e6f74206f776e0000000000000000000000000000000000000000602082015250565b60006156dd602c83613b3b565b91506156e882615681565b604082019050919050565b6000602082019050818103600083015261570c816156d0565b9050919050565b7f4552433732315073693a207472616e7366657220746f20746865207a65726f2060008201527f6164647265737300000000000000000000000000000000000000000000000000602082015250565b600061576f602783613b3b565b915061577a82615713565b604082019050919050565b6000602082019050818103600083015261579e81615762565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4552433732315073693a207472616e7366657220746f206e6f6e20455243373260008201527f31526563656976657220696d706c656d656e7465720000000000000000000000602082015250565b6000615830603583613b3b565b915061583b826157d4565b604082019050919050565b6000602082019050818103600083015261585f81615823565b9050919050565b7f4552433732315073693a207175616e74697479206d757374206265206772656160008201527f7465722030000000000000000000000000000000000000000000000000000000602082015250565b60006158c2602583613b3b565b91506158cd82615866565b604082019050919050565b600060208201905081810360008301526158f1816158b5565b9050919050565b7f4552433732315073693a206d696e7420746f20746865207a65726f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b6000615954602383613b3b565b915061595f826158f8565b604082019050919050565b6000602082019050818103600083015261598381615947565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006159b18261598a565b6159bb8185615995565b93506159cb818560208601613b4c565b6159d481613b7f565b840191505092915050565b60006080820190506159f46000830187613c80565b615a016020830186613c80565b615a0e6040830185613d16565b8181036060830152615a2081846159a6565b905095945050505050565b600081519050615a3a81613aa1565b92915050565b600060208284031215615a5657615a55613a6b565b5b6000615a6484828501615a2b565b91505092915050565b7f4269744d6170733a205468652073657420626974206265666f7265207468652060008201527f696e64657820646f65736e27742065786973742e000000000000000000000000602082015250565b6000615ac9603483613b3b565b9150615ad482615a6d565b604082019050919050565b60006020820190508181036000830152615af881615abc565b905091905056fe0001020903110a19042112290b311a3905412245134d2a550c5d32651b6d3a7506264262237d468514804e8d2b95569d0d495ea533a966b11c886eb93bc176c9071727374353637324837e9b47af86c7155181ad4fd18ed32c9096db57d59ee30e2e4a6a5f92a6be3498aae067ddb2eb1d5989b56fd7baf33ca0c2ee77e5caf7ff0810182028303840444c545c646c7425617c847f8c949c48a4a8b087b8c0c816365272829aaec650acd0d28fdad4e22d6991bd97dfdcea58b4d6f29fede4f6fe0f1f2f3f4b5b6b607b8b93a3a7b7bf357199c5abcfd9e168bcdee9b3f1ecf5fd1e3e5a7a8aa2b670c4ced8bbe8f0f4fc3d79a1c3cde7effb78cce6facbf9f8a26469706673582212209c0f45cf84f389f24f8b9cd20959fe3f7cdbcc4db08b05680babb4a7742a4cec64736f6c634300080d0033
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.