Overview
ETH Balance
0.0009 ETH
Eth Value
$3.07 (@ $3,412.93/ETH)More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 480 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Approval For... | 20985929 | 37 days ago | IN | 0 ETH | 0.0012349 | ||||
Set Approval For... | 20591821 | 92 days ago | IN | 0 ETH | 0.00023091 | ||||
Set Approval For... | 20466368 | 109 days ago | IN | 0 ETH | 0.00010275 | ||||
Mint | 20433080 | 114 days ago | IN | 0.00045 ETH | 0.00037753 | ||||
Mint | 20433073 | 114 days ago | IN | 0.00045 ETH | 0.00050748 | ||||
Set Approval For... | 20384185 | 121 days ago | IN | 0 ETH | 0.00040247 | ||||
Set Approval For... | 19880214 | 191 days ago | IN | 0 ETH | 0.00015598 | ||||
Set Approval For... | 19818370 | 200 days ago | IN | 0 ETH | 0.00035343 | ||||
Set Approval For... | 19799784 | 202 days ago | IN | 0 ETH | 0.00019162 | ||||
Set Approval For... | 19770968 | 206 days ago | IN | 0 ETH | 0.00042329 | ||||
Set Approval For... | 19602810 | 230 days ago | IN | 0 ETH | 0.000658 | ||||
Set Approval For... | 19579536 | 233 days ago | IN | 0 ETH | 0.00106015 | ||||
Safe Transfer Fr... | 19474920 | 248 days ago | IN | 0 ETH | 0.00223664 | ||||
Withdraw | 19157060 | 292 days ago | IN | 0 ETH | 0.00049585 | ||||
Set Approval For... | 19153293 | 293 days ago | IN | 0 ETH | 0.00062424 | ||||
Mint | 19146849 | 294 days ago | IN | 0.0225 ETH | 0.0024683 | ||||
Ogmint | 19141412 | 295 days ago | IN | 0 ETH | 0.00371901 | ||||
Set Approval For... | 19140479 | 295 days ago | IN | 0 ETH | 0.0008431 | ||||
Withdraw | 19135837 | 295 days ago | IN | 0 ETH | 0.00116082 | ||||
Mint | 19130682 | 296 days ago | IN | 0.0009 ETH | 0.00275228 | ||||
Mint | 19129030 | 296 days ago | IN | 0.0045 ETH | 0.00302237 | ||||
Mint | 19128380 | 296 days ago | IN | 0.004 ETH | 0.00315993 | ||||
Ogmint | 19127889 | 297 days ago | IN | 0 ETH | 0.00344584 | ||||
Mint | 19127817 | 297 days ago | IN | 0.00045 ETH | 0.00075786 | ||||
Mint | 19127139 | 297 days ago | IN | 0.009 ETH | 0.00387437 |
Latest 8 internal transactions
Advanced mode:
Loading...
Loading
Contract Name:
MiraiNinja
Compiler Version
v0.8.22+commit.4fc1097e
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.7.0 <0.9.0; import "erc721a/contracts/ERC721A.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/token/common/ERC2981.sol"; contract MiraiNinja is ERC721A, Ownable, ReentrancyGuard, ERC2981 { string public baseURI; string public notRevealedUri; uint256 public cost = 0.012 ether; uint256 public wlcost = 0.01 ether; uint256 public ogcost = 0.011 ether; uint256 public maxSupply = 5555; uint256 public wlSupply = 3000; uint256 public ogSupply = 800; uint256 public MaxperWallet = 10; uint256 public MaxperWalletWl = 5; uint256 public MaxperWalletOG = 1; bool public paused = true; bool public revealed = false; bool public preSale = false; bool public publicSale = false; bool public ogSale = false; bytes32 public WLmerkleRoot; bytes32 public OGmerkleRoot; mapping(address => uint256) public PublicMintofUser; mapping(address => uint256) public WhitelistedMintofUser; mapping(address => uint256) public OGMintofUser; uint256 totalWLMint; uint256 totalOGMint; uint256 totalPublicMint; constructor() ERC721A("Mirai Ninja", "MIRAI") {} // internal function _baseURI() internal view virtual override returns (string memory) { return baseURI; } function _startTokenId() internal view virtual override returns (uint256) { return 1; } /// @dev Public mint function mint(uint256 tokens) public payable nonReentrant { require(!paused, "Sale is paused"); require(_msgSenderERC721A() == tx.origin, "BOTS Are not Allowed"); require(publicSale, "Public Sale Hasn't started yet"); require(tokens <= MaxperWallet, "max mint amount per tx exceeded"); require(totalSupply() + tokens <= maxSupply, "Soldout"); require( PublicMintofUser[_msgSenderERC721A()] + tokens <= MaxperWallet, "Max NFT Per Wallet exceeded" ); require(msg.value >= cost * tokens, "insufficient funds"); PublicMintofUser[_msgSenderERC721A()] += tokens; totalPublicMint += tokens; _safeMint(_msgSenderERC721A(), tokens); } /// @dev presale mint for whitelisted users function presalemint(uint256 tokens, bytes32[] calldata merkleProof) public payable nonReentrant { require(!paused, "Sale is paused"); require(preSale, "Presale Hasn't started yet"); require(_msgSenderERC721A() == tx.origin, "BOTS Are not Allowed"); require( MerkleProof.verify( merkleProof, WLmerkleRoot, keccak256(abi.encodePacked(msg.sender)) ), "You are not Whitelisted" ); require( WhitelistedMintofUser[_msgSenderERC721A()] + tokens <= MaxperWalletWl, "Max NFT Per Wallet exceeded" ); require(tokens <= MaxperWalletWl, "max mint per Tx exceeded"); require( totalSupply() + tokens <= wlSupply, "Whitelist MaxSupply exceeded" ); require(msg.value >= wlcost * tokens, "insufficient funds"); WhitelistedMintofUser[_msgSenderERC721A()] += tokens; totalWLMint += tokens; _safeMint(_msgSenderERC721A(), tokens); } /// @dev presale mint for whitelisted users function ogmint(uint256 tokens, bytes32[] calldata merkleProof) public payable nonReentrant { require(!paused, "Sale is paused"); require(ogSale, "OGsale Hasn't started yet"); require(_msgSenderERC721A() == tx.origin, "BOTS Are not Allowed"); require( MerkleProof.verify( merkleProof, OGmerkleRoot, keccak256(abi.encodePacked(msg.sender)) ), "You are not Whitelisted" ); require( OGMintofUser[_msgSenderERC721A()] + tokens <= MaxperWalletOG, "Max NFT Per Wallet exceeded" ); require(tokens <= MaxperWalletOG, "max mint per Tx exceeded"); require( totalSupply() + tokens <= ogSupply, "Whitelist MaxSupply exceeded" ); require(msg.value >= ogcost * tokens, "insufficient funds"); OGMintofUser[_msgSenderERC721A()] += tokens; totalOGMint += tokens; _safeMint(_msgSenderERC721A(), tokens); } function airdrop(uint256 _mintAmount, address[] calldata destination) public onlyOwner nonReentrant { uint256 totalnft = _mintAmount * destination.length; require( totalSupply() + totalnft <= maxSupply, "max NFT limit exceeded" ); for (uint256 i = 0; i < destination.length; i++) { _safeMint(destination[i], _mintAmount); } } /// @dev use it To Burn NFTs function burn(uint256[] calldata tokenID) public nonReentrant { for (uint256 id = 0; id < tokenID.length; id++) { require(_exists(tokenID[id]), "Burning for nonexistent token"); require( ownerOf(tokenID[id]) == _msgSenderERC721A(), "You are not owner of this NFT" ); _burn(tokenID[id]); } } /// @notice returns metadata link of tokenid function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require( _exists(tokenId), "ERC721AMetadata: URI query for nonexistent token" ); if (revealed == false) { return notRevealedUri; } string memory currentBaseURI = _baseURI(); return bytes(currentBaseURI).length > 0 ? string( abi.encodePacked( currentBaseURI, _toString(tokenId), ".json" ) ) : ""; } /// @notice return the total number minted by an address function numberMinted(address owner) public view returns (uint256) { return _numberMinted(owner); } /// @notice return all tokens owned by an address function tokensOfOwner(address owner) public view returns (uint256[] memory) { unchecked { uint256 tokenIdsIdx; address currOwnershipAddr; uint256 tokenIdsLength = balanceOf(owner); uint256[] memory tokenIds = new uint256[](tokenIdsLength); TokenOwnership memory ownership; for ( uint256 i = _startTokenId(); tokenIdsIdx != tokenIdsLength; ++i ) { ownership = _ownershipAt(i); if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } return tokenIds; } } /// @dev to reveal collection, true for reveal function reveal(bool _state) public onlyOwner { revealed = _state; } function setMerkleRoots(bytes32 _WLRoot, bytes32 _OGRoot) external onlyOwner { WLmerkleRoot = _WLRoot; OGmerkleRoot = _OGRoot; } function setMaxPerWallets(uint256 _publiclimit, uint256 _wllimit, uint256 _oglimit) public onlyOwner { MaxperWallet = _publiclimit; MaxperWalletWl = _wllimit; MaxperWalletOG = _oglimit; } /// @dev change the nft price(amount need to be in wei) function setCosts(uint256 _publicCost, uint256 _WLCost, uint256 _ogCost) public onlyOwner { cost = _publicCost; wlcost = _WLCost; ogcost = _ogCost; } function setMaxsupply(uint256 _newsupply) public onlyOwner { maxSupply = _newsupply; } function setWlsupply(uint256 _newsupply) public onlyOwner { wlSupply = _newsupply; } function setOGsupply(uint256 _newsupply) public onlyOwner { ogSupply = _newsupply; } function setBaseURI(string memory _newBaseURI) public onlyOwner { baseURI = _newBaseURI; } function setNotRevealedURI(string memory _notRevealedURI) public onlyOwner { notRevealedUri = _notRevealedURI; } /// @dev to pause and unpause your contract(use booleans true or false) function pause(bool _state) public onlyOwner { paused = _state; } /// @dev activate sales(use booleans true or false) function togglesalePhases(bool _public, bool _wl, bool _og) public onlyOwner { ogSale = _og; publicSale = _public; preSale = _wl; } function withdraw() public payable onlyOwner nonReentrant { uint256 balance = address(this).balance; payable(_msgSenderERC721A()).transfer(balance); } // ERC2981 functions function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721A, ERC2981) returns (bool) { return ERC721A.supportsInterface(interfaceId) || ERC2981.supportsInterface(interfaceId); } function setRoyaltyInfo(address _receiver, uint96 _feeNumerator) external onlyOwner { _setDefaultRoyalty(_receiver, _feeNumerator); } function deleteRoyalty() external onlyOwner { _deleteDefaultRoyalty(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/common/ERC2981.sol) pragma solidity ^0.8.20; import {IERC2981} from "../../interfaces/IERC2981.sol"; import {IERC165, ERC165} from "../../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. */ abstract contract ERC2981 is IERC2981, ERC165 { struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 tokenId => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev The default royalty set is invalid (eg. (numerator / denominator) >= 1). */ error ERC2981InvalidDefaultRoyalty(uint256 numerator, uint256 denominator); /** * @dev The default royalty receiver is invalid. */ error ERC2981InvalidDefaultRoyaltyReceiver(address receiver); /** * @dev The royalty set for an specific `tokenId` is invalid (eg. (numerator / denominator) >= 1). */ error ERC2981InvalidTokenRoyalty(uint256 tokenId, uint256 numerator, uint256 denominator); /** * @dev The royalty receiver for `tokenId` is invalid. */ error ERC2981InvalidTokenRoyaltyReceiver(uint256 tokenId, address receiver); /** * @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 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 { uint256 denominator = _feeDenominator(); if (feeNumerator > denominator) { // Royalty fee will exceed the sale price revert ERC2981InvalidDefaultRoyalty(feeNumerator, denominator); } if (receiver == address(0)) { revert ERC2981InvalidDefaultRoyaltyReceiver(address(0)); } _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 { uint256 denominator = _feeDenominator(); if (feeNumerator > denominator) { // Royalty fee will exceed the sale price revert ERC2981InvalidTokenRoyalty(tokenId, feeNumerator, denominator); } if (receiver == address(0)) { revert ERC2981InvalidTokenRoyaltyReceiver(tokenId, address(0)); } _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 v5.0.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.20; /** * @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 The multiproof provided is not valid. */ error MerkleProofInvalidMultiproof(); /** * @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} */ 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. */ 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} */ 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. */ 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. */ 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). */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuilds 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 proofLen = proof.length; uint256 totalHashes = proofFlags.length; // Check proof validity. if (leavesLen + proofLen != totalHashes + 1) { revert MerkleProofInvalidMultiproof(); } // 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 from 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) { if (proofPos != proofLen) { revert MerkleProofInvalidMultiproof(); } unchecked { 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. */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuilds 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 proofLen = proof.length; uint256 totalHashes = proofFlags.length; // Check proof validity. if (leavesLen + proofLen != totalHashes + 1) { revert MerkleProofInvalidMultiproof(); } // 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 from 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) { if (proofPos != proofLen) { revert MerkleProofInvalidMultiproof(); } unchecked { return hashes[totalHashes - 1]; } } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Sorts the pair (a, b) and hashes the result. */ function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } /** * @dev Implementation of keccak256(abi.encode(a, b)) that doesn't allocate or expand memory. */ 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 (last updated v4.9.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; } /** * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a * `nonReentrant` function in the call stack. */ function _reentrancyGuardEntered() internal view returns (bool) { return _status == _ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.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. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling 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 // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364). struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `curr` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @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) public payable virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId].value; } /** * @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) public virtual override { _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @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. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * 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 ) public payable virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public payable virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @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 memory _data ) public payable virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Hook that is called before a set of serially-ordered token IDs * are about to be transferred. This includes minting. * And also called before burning one token. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token IDs * have been transferred. This includes minting. * And also called after one token has been burned. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. // The duplicated `log4` removes an extra check and reduces stack juggling. // The assembly, together with the surrounding Solidity code, have been // delicately arranged to nudge the compiler into producing optimized opcodes. assembly { // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. toMasked := and(to, _BITMASK_ADDRESS) // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. startTokenId // `tokenId`. ) // The `iszero(eq(,))` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. // The compiler will optimize the `iszero` away for performance. for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), but // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned. // We will need 1 word for the trailing zeros padding, 1 word for the length, // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0. let m := add(mload(0x40), 0xa0) // Update the free memory pointer to allocate. mstore(0x40, m) // Assign the `str` to the end. str := sub(m, 0x20) // Zeroize the slot after the string. mstore(str, 0) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables * (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, * checking first that contract recipients are aware of the ERC721 protocol * to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move * this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external payable; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Transfers `tokenId` from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} * whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external payable; /** * @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 payable; /** * @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); // ============================================================= // IERC721Metadata // ============================================================= /** * @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); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/ERC165.sol) pragma solidity ^0.8.20; import {IERC165} from "./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); * } * ``` */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.20; import {IERC165} from "../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. */ 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 v5.0.1) (utils/Context.sol) pragma solidity ^0.8.20; /** * @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; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/IERC165.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[{"internalType":"uint256","name":"numerator","type":"uint256"},{"internalType":"uint256","name":"denominator","type":"uint256"}],"name":"ERC2981InvalidDefaultRoyalty","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC2981InvalidDefaultRoyaltyReceiver","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"numerator","type":"uint256"},{"internalType":"uint256","name":"denominator","type":"uint256"}],"name":"ERC2981InvalidTokenRoyalty","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC2981InvalidTokenRoyaltyReceiver","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","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":"MaxperWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MaxperWalletOG","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MaxperWalletWl","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"OGMintofUser","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OGmerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"PublicMintofUser","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WLmerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"WhitelistedMintofUser","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"address[]","name":"destination","type":"address[]"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenID","type":"uint256[]"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deleteRoyalty","outputs":[],"stateMutability":"nonpayable","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":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokens","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"notRevealedUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"numberMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ogSale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ogSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ogcost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokens","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"ogmint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"preSale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokens","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"presalemint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicSale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":"payable","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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_publicCost","type":"uint256"},{"internalType":"uint256","name":"_WLCost","type":"uint256"},{"internalType":"uint256","name":"_ogCost","type":"uint256"}],"name":"setCosts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_publiclimit","type":"uint256"},{"internalType":"uint256","name":"_wllimit","type":"uint256"},{"internalType":"uint256","name":"_oglimit","type":"uint256"}],"name":"setMaxPerWallets","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newsupply","type":"uint256"}],"name":"setMaxsupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_WLRoot","type":"bytes32"},{"internalType":"bytes32","name":"_OGRoot","type":"bytes32"}],"name":"setMerkleRoots","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_notRevealedURI","type":"string"}],"name":"setNotRevealedURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newsupply","type":"uint256"}],"name":"setOGsupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint96","name":"_feeNumerator","type":"uint96"}],"name":"setRoyaltyInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newsupply","type":"uint256"}],"name":"setWlsupply","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":"bool","name":"_public","type":"bool"},{"internalType":"bool","name":"_wl","type":"bool"},{"internalType":"bool","name":"_og","type":"bool"}],"name":"togglesalePhases","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"wlSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wlcost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
6080604052662aa1efb94e0000600e55662386f26fc10000600f5566271471148780006010556115b3601155610bb8601255610320601355600a60145560056015556001601655600160175f6101000a81548160ff0219169083151502179055505f601760016101000a81548160ff0219169083151502179055505f601760026101000a81548160ff0219169083151502179055505f601760036101000a81548160ff0219169083151502179055505f601760046101000a81548160ff021916908315150217905550348015620000d4575f80fd5b506040518060400160405280600b81526020017f4d69726169204e696e6a610000000000000000000000000000000000000000008152506040518060400160405280600581526020017f4d495241490000000000000000000000000000000000000000000000000000008152508160029081620001529190620004e0565b508060039081620001649190620004e0565b5062000175620001aa60201b60201c565b5f8190555050506200019c62000190620001b260201b60201c565b620001b960201b60201c565b6001600981905550620005c4565b5f6001905090565b5f33905090565b5f60085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160085f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f81519050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f6002820490506001821680620002f857607f821691505b6020821081036200030e576200030d620002b3565b5b50919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f60088302620003727fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262000335565b6200037e868362000335565b95508019841693508086168417925050509392505050565b5f819050919050565b5f819050919050565b5f620003c8620003c2620003bc8462000396565b6200039f565b62000396565b9050919050565b5f819050919050565b620003e383620003a8565b620003fb620003f282620003cf565b84845462000341565b825550505050565b5f90565b6200041162000403565b6200041e818484620003d8565b505050565b5b818110156200044557620004395f8262000407565b60018101905062000424565b5050565b601f82111562000494576200045e8162000314565b620004698462000326565b8101602085101562000479578190505b62000491620004888562000326565b83018262000423565b50505b505050565b5f82821c905092915050565b5f620004b65f198460080262000499565b1980831691505092915050565b5f620004d08383620004a5565b9150826002028217905092915050565b620004eb826200027c565b67ffffffffffffffff81111562000507576200050662000286565b5b620005138254620002e0565b6200052082828562000449565b5f60209050601f83116001811462000556575f841562000541578287015190505b6200054d8582620004c3565b865550620005bc565b601f198416620005668662000314565b5f5b828110156200058f5784890151825560018201915060208501945060208101905062000568565b86831015620005af5784890151620005ab601f891682620004a5565b8355505b6001600288020188555050505b505050505050565b6156aa80620005d25f395ff3fe608060405260043610610395575f3560e01c806382785214116101db578063b80f55c911610101578063dc33e6811161009f578063f2fde38b1161006e578063f2fde38b14610cb8578063fb6afe2414610ce0578063fd571e0914610d1c578063fff8d2fc14610d4457610395565b8063dc33e68114610bf0578063e05988d414610c2c578063e985e9c514610c54578063f2c4ce1e14610c9057610395565b8063bd8c5401116100db578063bd8c540114610b38578063bdf7a8e614610b62578063c87b56dd14610b8a578063d5abeb0114610bc657610395565b8063b80f55c914610aca578063b88d4fde14610af2578063bd7a199814610b0e57610395565b806395d89b4111610179578063a22cb46511610148578063a22cb46514610a34578063ac13411b14610a5c578063ae5b7a7d14610a84578063b750969014610aae57610395565b806395d89b411461099c5780639a48eb51146109c65780639e2ed811146109ee578063a0712d6814610a1857610395565b80638b14966b116101b55780638b14966b146108e65780638b1cb4cb146109225780638da5cb5b1461094a578063940cd05b1461097457610395565b8063827852141461086a5780638462151c1461088057806388b71fc0146108bc57610395565b80632a55205a116102c05780635c975abb1161025e5780636c0360eb1161022d5780636c0360eb146107c45780636c2d3c4f146107ee57806370a0823114610818578063715018a61461085457610395565b80635c975abb1461070c5780635ef3bd8b1461073657806363503905146107605780636352211e1461078857610395565b806342842e0e1161029a57806342842e0e14610674578063518302271461069057806355f804b3146106ba5780635a7adf7f146106e257610395565b80632a55205a1461060357806333bc1c5c146106405780633ccfd60b1461066a57610395565b8063081812fc1161033857806313faede61161030757806313faede61461056b578063149835a01461059557806318160ddd146105bd57806323b872dd146105e757610395565b8063081812fc146104bf578063081c8c44146104fb578063095ea7b3146105255780630fe8418b1461054157610395565b806302fa7c471161037457806302fa7c4714610427578063036e4cb51461044f57806306141bb11461046b57806306fdde031461049557610395565b806277ec051461039957806301ffc9a7146103c357806302329a29146103ff575b5f80fd5b3480156103a4575f80fd5b506103ad610d80565b6040516103ba9190613cc0565b60405180910390f35b3480156103ce575f80fd5b506103e960048036038101906103e49190613d3f565b610d86565b6040516103f69190613d84565b60405180910390f35b34801561040a575f80fd5b5061042560048036038101906104209190613dc7565b610da7565b005b348015610432575f80fd5b5061044d60048036038101906104489190613e8d565b610dcb565b005b61046960048036038101906104649190613f56565b610de1565b005b348015610476575f80fd5b5061047f6111be565b60405161048c9190613fcb565b60405180910390f35b3480156104a0575f80fd5b506104a96111c4565b6040516104b6919061406e565b60405180910390f35b3480156104ca575f80fd5b506104e560048036038101906104e0919061408e565b611254565b6040516104f291906140c8565b60405180910390f35b348015610506575f80fd5b5061050f6112ce565b60405161051c919061406e565b60405180910390f35b61053f600480360381019061053a91906140e1565b61135a565b005b34801561054c575f80fd5b50610555611499565b6040516105629190613cc0565b60405180910390f35b348015610576575f80fd5b5061057f61149f565b60405161058c9190613cc0565b60405180910390f35b3480156105a0575f80fd5b506105bb60048036038101906105b6919061408e565b6114a5565b005b3480156105c8575f80fd5b506105d16114b7565b6040516105de9190613cc0565b60405180910390f35b61060160048036038101906105fc919061411f565b6114cc565b005b34801561060e575f80fd5b506106296004803603810190610624919061416f565b6117da565b6040516106379291906141ad565b60405180910390f35b34801561064b575f80fd5b506106546119b6565b6040516106619190613d84565b60405180910390f35b6106726119c9565b005b61068e6004803603810190610689919061411f565b611a33565b005b34801561069b575f80fd5b506106a4611a52565b6040516106b19190613d84565b60405180910390f35b3480156106c5575f80fd5b506106e060048036038101906106db91906142fc565b611a65565b005b3480156106ed575f80fd5b506106f6611a80565b6040516107039190613d84565b60405180910390f35b348015610717575f80fd5b50610720611a93565b60405161072d9190613d84565b60405180910390f35b348015610741575f80fd5b5061074a611aa5565b6040516107579190613fcb565b60405180910390f35b34801561076b575f80fd5b5061078660048036038101906107819190614343565b611aab565b005b348015610793575f80fd5b506107ae60048036038101906107a9919061408e565b611acd565b6040516107bb91906140c8565b60405180910390f35b3480156107cf575f80fd5b506107d8611ade565b6040516107e5919061406e565b60405180910390f35b3480156107f9575f80fd5b50610802611b6a565b60405161080f9190613cc0565b60405180910390f35b348015610823575f80fd5b5061083e60048036038101906108399190614393565b611b70565b60405161084b9190613cc0565b60405180910390f35b34801561085f575f80fd5b50610868611c25565b005b348015610875575f80fd5b5061087e611c38565b005b34801561088b575f80fd5b506108a660048036038101906108a19190614393565b611c4a565b6040516108b39190614475565b60405180910390f35b3480156108c7575f80fd5b506108d0611d86565b6040516108dd9190613d84565b60405180910390f35b3480156108f1575f80fd5b5061090c60048036038101906109079190614393565b611d99565b6040516109199190613cc0565b60405180910390f35b34801561092d575f80fd5b5061094860048036038101906109439190614343565b611dae565b005b348015610955575f80fd5b5061095e611dd0565b60405161096b91906140c8565b60405180910390f35b34801561097f575f80fd5b5061099a60048036038101906109959190613dc7565b611df8565b005b3480156109a7575f80fd5b506109b0611e1d565b6040516109bd919061406e565b60405180910390f35b3480156109d1575f80fd5b506109ec60048036038101906109e791906144bf565b611ead565b005b3480156109f9575f80fd5b50610a02611ec7565b604051610a0f9190613cc0565b60405180910390f35b610a326004803603810190610a2d919061408e565b611ecd565b005b348015610a3f575f80fd5b50610a5a6004803603810190610a5591906144fd565b6121f6565b005b348015610a67575f80fd5b50610a826004803603810190610a7d919061408e565b6122fc565b005b348015610a8f575f80fd5b50610a9861230e565b604051610aa59190613cc0565b60405180910390f35b610ac86004803603810190610ac39190613f56565b612314565b005b348015610ad5575f80fd5b50610af06004803603810190610aeb9190614590565b6126f1565b005b610b0c6004803603810190610b079190614679565b612839565b005b348015610b19575f80fd5b50610b226128ab565b604051610b2f9190613cc0565b60405180910390f35b348015610b43575f80fd5b50610b4c6128b1565b604051610b599190613cc0565b60405180910390f35b348015610b6d575f80fd5b50610b886004803603810190610b83919061474e565b6128b7565b005b348015610b95575f80fd5b50610bb06004803603810190610bab919061408e565b61298a565b604051610bbd919061406e565b60405180910390f35b348015610bd1575f80fd5b50610bda612ad9565b604051610be79190613cc0565b60405180910390f35b348015610bfb575f80fd5b50610c166004803603810190610c119190614393565b612adf565b604051610c239190613cc0565b60405180910390f35b348015610c37575f80fd5b50610c526004803603810190610c4d91906147ab565b612af0565b005b348015610c5f575f80fd5b50610c7a6004803603810190610c7591906147fb565b612b4b565b604051610c879190613d84565b60405180910390f35b348015610c9b575f80fd5b50610cb66004803603810190610cb191906142fc565b612bd9565b005b348015610cc3575f80fd5b50610cde6004803603810190610cd99190614393565b612bf4565b005b348015610ceb575f80fd5b50610d066004803603810190610d019190614393565b612c76565b604051610d139190613cc0565b60405180910390f35b348015610d27575f80fd5b50610d426004803603810190610d3d919061408e565b612c8b565b005b348015610d4f575f80fd5b50610d6a6004803603810190610d659190614393565b612c9d565b604051610d779190613cc0565b60405180910390f35b60155481565b5f610d9082612cb2565b80610da05750610d9f82612d43565b5b9050919050565b610daf612dbc565b8060175f6101000a81548160ff02191690831515021790555050565b610dd3612dbc565b610ddd8282612e3a565b5050565b610de9612fd5565b60175f9054906101000a900460ff1615610e38576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e2f90614883565b60405180910390fd5b601760029054906101000a900460ff16610e87576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e7e906148eb565b60405180910390fd5b3273ffffffffffffffffffffffffffffffffffffffff16610ea6613024565b73ffffffffffffffffffffffffffffffffffffffff1614610efc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ef390614953565b60405180910390fd5b610f6f8282808060200260200160405190810160405280939291908181526020018383602002808284375f81840152601f19601f8201169050808301925050505050505060185433604051602001610f5491906149b6565b6040516020818303038152906040528051906020012061302b565b610fae576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fa590614a1a565b60405180910390fd5b60155483601b5f610fbd613024565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20546110019190614a65565b1115611042576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161103990614ae2565b60405180910390fd5b601554831115611087576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161107e90614b4a565b60405180910390fd5b601254836110936114b7565b61109d9190614a65565b11156110de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110d590614bb2565b60405180910390fd5b82600f546110ec9190614bd0565b34101561112e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161112590614c5b565b60405180910390fd5b82601b5f61113a613024565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282546111819190614a65565b9250508190555082601d5f8282546111999190614a65565b925050819055506111b16111ab613024565b84613041565b6111b961305e565b505050565b60185481565b6060600280546111d390614ca6565b80601f01602080910402602001604051908101604052809291908181526020018280546111ff90614ca6565b801561124a5780601f106112215761010080835404028352916020019161124a565b820191905f5260205f20905b81548152906001019060200180831161122d57829003601f168201915b5050505050905090565b5f61125e82613068565b611294576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60065f8381526020019081526020015f205f015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600d80546112db90614ca6565b80601f016020809104026020016040519081016040528092919081815260200182805461130790614ca6565b80156113525780601f1061132957610100808354040283529160200191611352565b820191905f5260205f20905b81548152906001019060200180831161133557829003601f168201915b505050505081565b5f61136482611acd565b90508073ffffffffffffffffffffffffffffffffffffffff16611385613024565b73ffffffffffffffffffffffffffffffffffffffff16146113e8576113b1816113ac613024565b612b4b565b6113e7576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b8260065f8481526020019081526020015f205f015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60125481565b600e5481565b6114ad612dbc565b8060118190555050565b5f6114c06130c2565b6001545f540303905090565b5f6114d6826130ca565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461153d576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f806115488461318d565b9150915061155e8187611559613024565b6131b0565b6115aa576115738661156e613024565b612b4b565b6115a9576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b5f73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff160361160f576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61161c86868660016131f3565b8015611626575f82555b60055f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8154600190039190508190555060055f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8154600101919050819055506116ee856116ca8888876131f9565b7c020000000000000000000000000000000000000000000000000000000017613220565b60045f8681526020019081526020015f20819055505f7c020000000000000000000000000000000000000000000000000000000084160361176a575f6001850190505f60045f8381526020019081526020015f205403611768575f548114611767578360045f8381526020019081526020015f20819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46117d2868686600161324a565b505050505050565b5f805f600b5f8681526020019081526020015f206040518060400160405290815f82015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020015f820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505f73ffffffffffffffffffffffffffffffffffffffff16815f015173ffffffffffffffffffffffffffffffffffffffff160361196357600a6040518060400160405290815f82015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020015f820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b5f61196c613250565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff16866119989190614bd0565b6119a29190614d03565b9050815f0151819350935050509250929050565b601760039054906101000a900460ff1681565b6119d1612dbc565b6119d9612fd5565b5f4790506119e5613024565b73ffffffffffffffffffffffffffffffffffffffff166108fc8290811502906040515f60405180830381858888f19350505050158015611a27573d5f803e3d5ffd5b5050611a3161305e565b565b611a4d83838360405180602001604052805f815250612839565b505050565b601760019054906101000a900460ff1681565b611a6d612dbc565b80600c9081611a7c9190614ed0565b5050565b601760029054906101000a900460ff1681565b60175f9054906101000a900460ff1681565b60195481565b611ab3612dbc565b826014819055508160158190555080601681905550505050565b5f611ad7826130ca565b9050919050565b600c8054611aeb90614ca6565b80601f0160208091040260200160405190810160405280929190818152602001828054611b1790614ca6565b8015611b625780601f10611b3957610100808354040283529160200191611b62565b820191905f5260205f20905b815481529060010190602001808311611b4557829003601f168201915b505050505081565b600f5481565b5f8073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611bd6576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff60055f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054169050919050565b611c2d612dbc565b611c365f613259565b565b611c40612dbc565b611c4861331c565b565b60605f805f611c5885611b70565b90505f8167ffffffffffffffff811115611c7557611c746141d8565b5b604051908082528060200260200182016040528015611ca35781602001602082028036833780820191505090505b509050611cae613c5d565b5f611cb76130c2565b90505b838614611d7857611cca81613366565b91508160400151611d6d575f73ffffffffffffffffffffffffffffffffffffffff16825f015173ffffffffffffffffffffffffffffffffffffffff1614611d1257815f015194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603611d6c5780838780600101985081518110611d5f57611d5e614f9f565b5b6020026020010181815250505b5b806001019050611cba565b508195505050505050919050565b601760049054906101000a900460ff1681565b601b602052805f5260405f205f915090505481565b611db6612dbc565b82600e8190555081600f8190555080601081905550505050565b5f60085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611e00612dbc565b80601760016101000a81548160ff02191690831515021790555050565b606060038054611e2c90614ca6565b80601f0160208091040260200160405190810160405280929190818152602001828054611e5890614ca6565b8015611ea35780601f10611e7a57610100808354040283529160200191611ea3565b820191905f5260205f20905b815481529060010190602001808311611e8657829003601f168201915b5050505050905090565b611eb5612dbc565b81601881905550806019819055505050565b60165481565b611ed5612fd5565b60175f9054906101000a900460ff1615611f24576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f1b90614883565b60405180910390fd5b3273ffffffffffffffffffffffffffffffffffffffff16611f43613024565b73ffffffffffffffffffffffffffffffffffffffff1614611f99576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f9090614953565b60405180910390fd5b601760039054906101000a900460ff16611fe8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fdf90615016565b60405180910390fd5b60145481111561202d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120249061507e565b60405180910390fd5b601154816120396114b7565b6120439190614a65565b1115612084576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161207b906150e6565b60405180910390fd5b60145481601a5f612093613024565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20546120d79190614a65565b1115612118576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161210f90614ae2565b60405180910390fd5b80600e546121269190614bd0565b341015612168576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161215f90614c5b565b60405180910390fd5b80601a5f612174613024565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282546121bb9190614a65565b9250508190555080601f5f8282546121d39190614a65565b925050819055506121eb6121e5613024565b82613041565b6121f361305e565b50565b8060075f612202613024565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166122ab613024565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516122f09190613d84565b60405180910390a35050565b612304612dbc565b8060138190555050565b60135481565b61231c612fd5565b60175f9054906101000a900460ff161561236b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161236290614883565b60405180910390fd5b601760049054906101000a900460ff166123ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123b19061514e565b60405180910390fd5b3273ffffffffffffffffffffffffffffffffffffffff166123d9613024565b73ffffffffffffffffffffffffffffffffffffffff161461242f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161242690614953565b60405180910390fd5b6124a28282808060200260200160405190810160405280939291908181526020018383602002808284375f81840152601f19601f820116905080830192505050505050506019543360405160200161248791906149b6565b6040516020818303038152906040528051906020012061302b565b6124e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124d890614a1a565b60405180910390fd5b60165483601c5f6124f0613024565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20546125349190614a65565b1115612575576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161256c90614ae2565b60405180910390fd5b6016548311156125ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125b190614b4a565b60405180910390fd5b601354836125c66114b7565b6125d09190614a65565b1115612611576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161260890614bb2565b60405180910390fd5b8260105461261f9190614bd0565b341015612661576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161265890614c5b565b60405180910390fd5b82601c5f61266d613024565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282546126b49190614a65565b9250508190555082601e5f8282546126cc9190614a65565b925050819055506126e46126de613024565b84613041565b6126ec61305e565b505050565b6126f9612fd5565b5f5b8282905081101561282c5761272883838381811061271c5761271b614f9f565b5b90506020020135613068565b612767576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161275e906151b6565b60405180910390fd5b61276f613024565b73ffffffffffffffffffffffffffffffffffffffff166127a784848481811061279b5761279a614f9f565b5b90506020020135611acd565b73ffffffffffffffffffffffffffffffffffffffff16146127fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127f49061521e565b60405180910390fd5b61281f83838381811061281357612812614f9f565b5b9050602002013561338f565b80806001019150506126fb565b5061283561305e565b5050565b6128448484846114cc565b5f8373ffffffffffffffffffffffffffffffffffffffff163b146128a55761286e8484848461339c565b6128a4576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b60145481565b60105481565b6128bf612dbc565b6128c7612fd5565b5f82829050846128d79190614bd0565b9050601154816128e56114b7565b6128ef9190614a65565b1115612930576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161292790615286565b60405180910390fd5b5f5b8383905081101561297b5761296e84848381811061295357612952614f9f565b5b90506020020160208101906129689190614393565b86613041565b8080600101915050612932565b505061298561305e565b505050565b606061299582613068565b6129d4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129cb90615314565b60405180910390fd5b5f1515601760019054906101000a900460ff16151503612a7e57600d80546129fb90614ca6565b80601f0160208091040260200160405190810160405280929190818152602001828054612a2790614ca6565b8015612a725780601f10612a4957610100808354040283529160200191612a72565b820191905f5260205f20905b815481529060010190602001808311612a5557829003601f168201915b50505050509050612ad4565b5f612a876134e7565b90505f815111612aa55760405180602001604052805f815250612ad0565b80612aaf84613577565b604051602001612ac09291906153b6565b6040516020818303038152906040525b9150505b919050565b60115481565b5f612ae9826135c6565b9050919050565b612af8612dbc565b80601760046101000a81548160ff02191690831515021790555082601760036101000a81548160ff02191690831515021790555081601760026101000a81548160ff021916908315150217905550505050565b5f60075f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16905092915050565b612be1612dbc565b80600d9081612bf09190614ed0565b5050565b612bfc612dbc565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612c6a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c6190615454565b60405180910390fd5b612c7381613259565b50565b601c602052805f5260405f205f915090505481565b612c93612dbc565b8060128190555050565b601a602052805f5260405f205f915090505481565b5f6301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612d0c57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612d3c5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b5f7f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612db55750612db48261361a565b5b9050919050565b612dc4613683565b73ffffffffffffffffffffffffffffffffffffffff16612de2611dd0565b73ffffffffffffffffffffffffffffffffffffffff1614612e38576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e2f906154bc565b60405180910390fd5b565b5f612e43613250565b6bffffffffffffffffffffffff16905080826bffffffffffffffffffffffff161115612ea85781816040517f6f483d09000000000000000000000000000000000000000000000000000000008152600401612e9f92919061550a565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612f18575f6040517fb6d9900a000000000000000000000000000000000000000000000000000000008152600401612f0f91906140c8565b60405180910390fd5b60405180604001604052808473ffffffffffffffffffffffffffffffffffffffff168152602001836bffffffffffffffffffffffff16815250600a5f820151815f015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506020820151815f0160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff160217905550905050505050565b60026009540361301a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130119061557b565b60405180910390fd5b6002600981905550565b5f33905090565b5f82613037858461368a565b1490509392505050565b61305a828260405180602001604052805f8152506136d8565b5050565b6001600981905550565b5f816130726130c2565b1115801561308057505f5482105b80156130bb57505f7c010000000000000000000000000000000000000000000000000000000060045f8581526020019081526020015f205416145b9050919050565b5f6001905090565b5f80829050806130d86130c2565b11613156575f54811015613155575f60045f8381526020019081526020015f205490505f7c0100000000000000000000000000000000000000000000000000000000821603613153575b5f81036131495760045f836001900393508381526020019081526020015f20549050613122565b8092505050613188565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b5f805f60065f8581526020019081526020015f2090508092508254915050915091565b5f73ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b5f8060e883901c905060e861320f86868461376f565b62ffffff16901b9150509392505050565b5f73ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b5f612710905090565b5f60085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160085f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600a5f8082015f6101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690555f820160146101000a8154906bffffffffffffffffffffffff02191690555050565b61336e613c5d565b61338860045f8481526020019081526020015f2054613777565b9050919050565b613399815f61382b565b50565b5f8373ffffffffffffffffffffffffffffffffffffffff1663150b7a026133c1613024565b8786866040518563ffffffff1660e01b81526004016133e394939291906155eb565b6020604051808303815f875af192505050801561341e57506040513d601f19601f8201168201806040525081019061341b9190615649565b60015b613494573d805f811461344c576040519150601f19603f3d011682016040523d82523d5f602084013e613451565b606091505b505f81510361348c576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060600c80546134f690614ca6565b80601f016020809104026020016040519081016040528092919081815260200182805461352290614ca6565b801561356d5780601f106135445761010080835404028352916020019161356d565b820191905f5260205f20905b81548152906001019060200180831161355057829003601f168201915b5050505050905090565b606060a060405101806040526020810391505f825281835b6001156135b157600184039350600a81066030018453600a810490508061358f575b50828103602084039350808452505050919050565b5f67ffffffffffffffff604060055f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054901c169050919050565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b5f33905090565b5f808290505f5b84518110156136cd576136be828683815181106136b1576136b0614f9f565b5b6020026020010151613a67565b91508080600101915050613691565b508091505092915050565b6136e28383613a91565b5f8373ffffffffffffffffffffffffffffffffffffffff163b1461376a575f805490505f83820390505b61371e5f86838060010194508661339c565b613754576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81811061370c57815f5414613767575f80fd5b50505b505050565b5f9392505050565b61377f613c5d565b81815f019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff16815250505f7c01000000000000000000000000000000000000000000000000000000008316141581604001901515908115158152505060e882901c816060019062ffffff16908162ffffff1681525050919050565b5f613835836130ca565b90505f8190505f806138468661318d565b9150915084156138af57613862818461385d613024565b6131b0565b6138ae5761387783613872613024565b612b4b565b6138ad576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b5b6138bc835f8860016131f3565b80156138c6575f82555b600160806001901b0360055f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f828254019250508190555061396a83613927855f886131f9565b7c02000000000000000000000000000000000000000000000000000000007c01000000000000000000000000000000000000000000000000000000001717613220565b60045f8881526020019081526020015f20819055505f7c02000000000000000000000000000000000000000000000000000000008516036139e6575f6001870190505f60045f8381526020019081526020015f2054036139e4575f5481146139e3578460045f8381526020019081526020015f20819055505b5b505b855f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613a4e835f88600161324a565b60015f8154809291906001019190505550505050505050565b5f818310613a7e57613a798284613c3a565b613a89565b613a888383613c3a565b5b905092915050565b5f805490505f8203613acf576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b613adb5f8483856131f3565b600160406001901b17820260055f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282540192505081905550613b4d83613b3e5f865f6131f9565b613b4785613c4e565b17613220565b60045f8381526020019081526020015f20819055505f80838301905073ffffffffffffffffffffffffffffffffffffffff8516915082825f7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a4600183015b818114613be75780835f7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a4600181019050613bae565b505f8203613c21576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805f819055505050613c355f84838561324a565b505050565b5f825f528160205260405f20905092915050565b5f6001821460e11b9050919050565b60405180608001604052805f73ffffffffffffffffffffffffffffffffffffffff1681526020015f67ffffffffffffffff1681526020015f151581526020015f62ffffff1681525090565b5f819050919050565b613cba81613ca8565b82525050565b5f602082019050613cd35f830184613cb1565b92915050565b5f604051905090565b5f80fd5b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613d1e81613cea565b8114613d28575f80fd5b50565b5f81359050613d3981613d15565b92915050565b5f60208284031215613d5457613d53613ce2565b5b5f613d6184828501613d2b565b91505092915050565b5f8115159050919050565b613d7e81613d6a565b82525050565b5f602082019050613d975f830184613d75565b92915050565b613da681613d6a565b8114613db0575f80fd5b50565b5f81359050613dc181613d9d565b92915050565b5f60208284031215613ddc57613ddb613ce2565b5b5f613de984828501613db3565b91505092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f613e1b82613df2565b9050919050565b613e2b81613e11565b8114613e35575f80fd5b50565b5f81359050613e4681613e22565b92915050565b5f6bffffffffffffffffffffffff82169050919050565b613e6c81613e4c565b8114613e76575f80fd5b50565b5f81359050613e8781613e63565b92915050565b5f8060408385031215613ea357613ea2613ce2565b5b5f613eb085828601613e38565b9250506020613ec185828601613e79565b9150509250929050565b613ed481613ca8565b8114613ede575f80fd5b50565b5f81359050613eef81613ecb565b92915050565b5f80fd5b5f80fd5b5f80fd5b5f8083601f840112613f1657613f15613ef5565b5b8235905067ffffffffffffffff811115613f3357613f32613ef9565b5b602083019150836020820283011115613f4f57613f4e613efd565b5b9250929050565b5f805f60408486031215613f6d57613f6c613ce2565b5b5f613f7a86828701613ee1565b935050602084013567ffffffffffffffff811115613f9b57613f9a613ce6565b5b613fa786828701613f01565b92509250509250925092565b5f819050919050565b613fc581613fb3565b82525050565b5f602082019050613fde5f830184613fbc565b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f5b8381101561401b578082015181840152602081019050614000565b5f8484015250505050565b5f601f19601f8301169050919050565b5f61404082613fe4565b61404a8185613fee565b935061405a818560208601613ffe565b61406381614026565b840191505092915050565b5f6020820190508181035f8301526140868184614036565b905092915050565b5f602082840312156140a3576140a2613ce2565b5b5f6140b084828501613ee1565b91505092915050565b6140c281613e11565b82525050565b5f6020820190506140db5f8301846140b9565b92915050565b5f80604083850312156140f7576140f6613ce2565b5b5f61410485828601613e38565b925050602061411585828601613ee1565b9150509250929050565b5f805f6060848603121561413657614135613ce2565b5b5f61414386828701613e38565b935050602061415486828701613e38565b925050604061416586828701613ee1565b9150509250925092565b5f806040838503121561418557614184613ce2565b5b5f61419285828601613ee1565b92505060206141a385828601613ee1565b9150509250929050565b5f6040820190506141c05f8301856140b9565b6141cd6020830184613cb1565b9392505050565b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b61420e82614026565b810181811067ffffffffffffffff8211171561422d5761422c6141d8565b5b80604052505050565b5f61423f613cd9565b905061424b8282614205565b919050565b5f67ffffffffffffffff82111561426a576142696141d8565b5b61427382614026565b9050602081019050919050565b828183375f83830152505050565b5f6142a061429b84614250565b614236565b9050828152602081018484840111156142bc576142bb6141d4565b5b6142c7848285614280565b509392505050565b5f82601f8301126142e3576142e2613ef5565b5b81356142f384826020860161428e565b91505092915050565b5f6020828403121561431157614310613ce2565b5b5f82013567ffffffffffffffff81111561432e5761432d613ce6565b5b61433a848285016142cf565b91505092915050565b5f805f6060848603121561435a57614359613ce2565b5b5f61436786828701613ee1565b935050602061437886828701613ee1565b925050604061438986828701613ee1565b9150509250925092565b5f602082840312156143a8576143a7613ce2565b5b5f6143b584828501613e38565b91505092915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b6143f081613ca8565b82525050565b5f61440183836143e7565b60208301905092915050565b5f602082019050919050565b5f614423826143be565b61442d81856143c8565b9350614438836143d8565b805f5b8381101561446857815161444f88826143f6565b975061445a8361440d565b92505060018101905061443b565b5085935050505092915050565b5f6020820190508181035f83015261448d8184614419565b905092915050565b61449e81613fb3565b81146144a8575f80fd5b50565b5f813590506144b981614495565b92915050565b5f80604083850312156144d5576144d4613ce2565b5b5f6144e2858286016144ab565b92505060206144f3858286016144ab565b9150509250929050565b5f806040838503121561451357614512613ce2565b5b5f61452085828601613e38565b925050602061453185828601613db3565b9150509250929050565b5f8083601f8401126145505761454f613ef5565b5b8235905067ffffffffffffffff81111561456d5761456c613ef9565b5b60208301915083602082028301111561458957614588613efd565b5b9250929050565b5f80602083850312156145a6576145a5613ce2565b5b5f83013567ffffffffffffffff8111156145c3576145c2613ce6565b5b6145cf8582860161453b565b92509250509250929050565b5f67ffffffffffffffff8211156145f5576145f46141d8565b5b6145fe82614026565b9050602081019050919050565b5f61461d614618846145db565b614236565b905082815260208101848484011115614639576146386141d4565b5b614644848285614280565b509392505050565b5f82601f8301126146605761465f613ef5565b5b813561467084826020860161460b565b91505092915050565b5f805f806080858703121561469157614690613ce2565b5b5f61469e87828801613e38565b94505060206146af87828801613e38565b93505060406146c087828801613ee1565b925050606085013567ffffffffffffffff8111156146e1576146e0613ce6565b5b6146ed8782880161464c565b91505092959194509250565b5f8083601f84011261470e5761470d613ef5565b5b8235905067ffffffffffffffff81111561472b5761472a613ef9565b5b60208301915083602082028301111561474757614746613efd565b5b9250929050565b5f805f6040848603121561476557614764613ce2565b5b5f61477286828701613ee1565b935050602084013567ffffffffffffffff81111561479357614792613ce6565b5b61479f868287016146f9565b92509250509250925092565b5f805f606084860312156147c2576147c1613ce2565b5b5f6147cf86828701613db3565b93505060206147e086828701613db3565b92505060406147f186828701613db3565b9150509250925092565b5f806040838503121561481157614810613ce2565b5b5f61481e85828601613e38565b925050602061482f85828601613e38565b9150509250929050565b7f53616c65206973207061757365640000000000000000000000000000000000005f82015250565b5f61486d600e83613fee565b915061487882614839565b602082019050919050565b5f6020820190508181035f83015261489a81614861565b9050919050565b7f50726573616c65204861736e27742073746172746564207965740000000000005f82015250565b5f6148d5601a83613fee565b91506148e0826148a1565b602082019050919050565b5f6020820190508181035f830152614902816148c9565b9050919050565b7f424f545320417265206e6f7420416c6c6f7765640000000000000000000000005f82015250565b5f61493d601483613fee565b915061494882614909565b602082019050919050565b5f6020820190508181035f83015261496a81614931565b9050919050565b5f8160601b9050919050565b5f61498782614971565b9050919050565b5f6149988261497d565b9050919050565b6149b06149ab82613e11565b61498e565b82525050565b5f6149c1828461499f565b60148201915081905092915050565b7f596f7520617265206e6f742057686974656c69737465640000000000000000005f82015250565b5f614a04601783613fee565b9150614a0f826149d0565b602082019050919050565b5f6020820190508181035f830152614a31816149f8565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f614a6f82613ca8565b9150614a7a83613ca8565b9250828201905080821115614a9257614a91614a38565b5b92915050565b7f4d6178204e4654205065722057616c6c657420657863656564656400000000005f82015250565b5f614acc601b83613fee565b9150614ad782614a98565b602082019050919050565b5f6020820190508181035f830152614af981614ac0565b9050919050565b7f6d6178206d696e742070657220547820657863656564656400000000000000005f82015250565b5f614b34601883613fee565b9150614b3f82614b00565b602082019050919050565b5f6020820190508181035f830152614b6181614b28565b9050919050565b7f57686974656c697374204d6178537570706c79206578636565646564000000005f82015250565b5f614b9c601c83613fee565b9150614ba782614b68565b602082019050919050565b5f6020820190508181035f830152614bc981614b90565b9050919050565b5f614bda82613ca8565b9150614be583613ca8565b9250828202614bf381613ca8565b91508282048414831517614c0a57614c09614a38565b5b5092915050565b7f696e73756666696369656e742066756e647300000000000000000000000000005f82015250565b5f614c45601283613fee565b9150614c5082614c11565b602082019050919050565b5f6020820190508181035f830152614c7281614c39565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f6002820490506001821680614cbd57607f821691505b602082108103614cd057614ccf614c79565b5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f614d0d82613ca8565b9150614d1883613ca8565b925082614d2857614d27614cd6565b5b828204905092915050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f60088302614d8f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614d54565b614d998683614d54565b95508019841693508086168417925050509392505050565b5f819050919050565b5f614dd4614dcf614dca84613ca8565b614db1565b613ca8565b9050919050565b5f819050919050565b614ded83614dba565b614e01614df982614ddb565b848454614d60565b825550505050565b5f90565b614e15614e09565b614e20818484614de4565b505050565b5b81811015614e4357614e385f82614e0d565b600181019050614e26565b5050565b601f821115614e8857614e5981614d33565b614e6284614d45565b81016020851015614e71578190505b614e85614e7d85614d45565b830182614e25565b50505b505050565b5f82821c905092915050565b5f614ea85f1984600802614e8d565b1980831691505092915050565b5f614ec08383614e99565b9150826002028217905092915050565b614ed982613fe4565b67ffffffffffffffff811115614ef257614ef16141d8565b5b614efc8254614ca6565b614f07828285614e47565b5f60209050601f831160018114614f38575f8415614f26578287015190505b614f308582614eb5565b865550614f97565b601f198416614f4686614d33565b5f5b82811015614f6d57848901518255600182019150602085019450602081019050614f48565b86831015614f8a5784890151614f86601f891682614e99565b8355505b6001600288020188555050505b505050505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b7f5075626c69632053616c65204861736e277420737461727465642079657400005f82015250565b5f615000601e83613fee565b915061500b82614fcc565b602082019050919050565b5f6020820190508181035f83015261502d81614ff4565b9050919050565b7f6d6178206d696e7420616d6f756e7420706572207478206578636565646564005f82015250565b5f615068601f83613fee565b915061507382615034565b602082019050919050565b5f6020820190508181035f8301526150958161505c565b9050919050565b7f536f6c646f7574000000000000000000000000000000000000000000000000005f82015250565b5f6150d0600783613fee565b91506150db8261509c565b602082019050919050565b5f6020820190508181035f8301526150fd816150c4565b9050919050565b7f4f4773616c65204861736e2774207374617274656420796574000000000000005f82015250565b5f615138601983613fee565b915061514382615104565b602082019050919050565b5f6020820190508181035f8301526151658161512c565b9050919050565b7f4275726e696e6720666f72206e6f6e6578697374656e7420746f6b656e0000005f82015250565b5f6151a0601d83613fee565b91506151ab8261516c565b602082019050919050565b5f6020820190508181035f8301526151cd81615194565b9050919050565b7f596f7520617265206e6f74206f776e6572206f662074686973204e46540000005f82015250565b5f615208601d83613fee565b9150615213826151d4565b602082019050919050565b5f6020820190508181035f830152615235816151fc565b9050919050565b7f6d6178204e4654206c696d6974206578636565646564000000000000000000005f82015250565b5f615270601683613fee565b915061527b8261523c565b602082019050919050565b5f6020820190508181035f83015261529d81615264565b9050919050565b7f455243373231414d657461646174613a2055524920717565727920666f72206e5f8201527f6f6e6578697374656e7420746f6b656e00000000000000000000000000000000602082015250565b5f6152fe603083613fee565b9150615309826152a4565b604082019050919050565b5f6020820190508181035f83015261532b816152f2565b9050919050565b5f81905092915050565b5f61534682613fe4565b6153508185615332565b9350615360818560208601613ffe565b80840191505092915050565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000005f82015250565b5f6153a0600583615332565b91506153ab8261536c565b600582019050919050565b5f6153c1828561533c565b91506153cd828461533c565b91506153d882615394565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f61543e602683613fee565b9150615449826153e4565b604082019050919050565b5f6020820190508181035f83015261546b81615432565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f6154a6602083613fee565b91506154b182615472565b602082019050919050565b5f6020820190508181035f8301526154d38161549a565b9050919050565b5f6154f46154ef6154ea84613e4c565b614db1565b613ca8565b9050919050565b615504816154da565b82525050565b5f60408201905061551d5f8301856154fb565b61552a6020830184613cb1565b9392505050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c005f82015250565b5f615565601f83613fee565b915061557082615531565b602082019050919050565b5f6020820190508181035f83015261559281615559565b9050919050565b5f81519050919050565b5f82825260208201905092915050565b5f6155bd82615599565b6155c781856155a3565b93506155d7818560208601613ffe565b6155e081614026565b840191505092915050565b5f6080820190506155fe5f8301876140b9565b61560b60208301866140b9565b6156186040830185613cb1565b818103606083015261562a81846155b3565b905095945050505050565b5f8151905061564381613d15565b92915050565b5f6020828403121561565e5761565d613ce2565b5b5f61566b84828501615635565b9150509291505056fea2646970667358221220e2c2ce007143263df9ad70275f7014db788c80010844fc59efebe45b3f1897dc64736f6c63430008160033
Deployed Bytecode
0x608060405260043610610395575f3560e01c806382785214116101db578063b80f55c911610101578063dc33e6811161009f578063f2fde38b1161006e578063f2fde38b14610cb8578063fb6afe2414610ce0578063fd571e0914610d1c578063fff8d2fc14610d4457610395565b8063dc33e68114610bf0578063e05988d414610c2c578063e985e9c514610c54578063f2c4ce1e14610c9057610395565b8063bd8c5401116100db578063bd8c540114610b38578063bdf7a8e614610b62578063c87b56dd14610b8a578063d5abeb0114610bc657610395565b8063b80f55c914610aca578063b88d4fde14610af2578063bd7a199814610b0e57610395565b806395d89b4111610179578063a22cb46511610148578063a22cb46514610a34578063ac13411b14610a5c578063ae5b7a7d14610a84578063b750969014610aae57610395565b806395d89b411461099c5780639a48eb51146109c65780639e2ed811146109ee578063a0712d6814610a1857610395565b80638b14966b116101b55780638b14966b146108e65780638b1cb4cb146109225780638da5cb5b1461094a578063940cd05b1461097457610395565b8063827852141461086a5780638462151c1461088057806388b71fc0146108bc57610395565b80632a55205a116102c05780635c975abb1161025e5780636c0360eb1161022d5780636c0360eb146107c45780636c2d3c4f146107ee57806370a0823114610818578063715018a61461085457610395565b80635c975abb1461070c5780635ef3bd8b1461073657806363503905146107605780636352211e1461078857610395565b806342842e0e1161029a57806342842e0e14610674578063518302271461069057806355f804b3146106ba5780635a7adf7f146106e257610395565b80632a55205a1461060357806333bc1c5c146106405780633ccfd60b1461066a57610395565b8063081812fc1161033857806313faede61161030757806313faede61461056b578063149835a01461059557806318160ddd146105bd57806323b872dd146105e757610395565b8063081812fc146104bf578063081c8c44146104fb578063095ea7b3146105255780630fe8418b1461054157610395565b806302fa7c471161037457806302fa7c4714610427578063036e4cb51461044f57806306141bb11461046b57806306fdde031461049557610395565b806277ec051461039957806301ffc9a7146103c357806302329a29146103ff575b5f80fd5b3480156103a4575f80fd5b506103ad610d80565b6040516103ba9190613cc0565b60405180910390f35b3480156103ce575f80fd5b506103e960048036038101906103e49190613d3f565b610d86565b6040516103f69190613d84565b60405180910390f35b34801561040a575f80fd5b5061042560048036038101906104209190613dc7565b610da7565b005b348015610432575f80fd5b5061044d60048036038101906104489190613e8d565b610dcb565b005b61046960048036038101906104649190613f56565b610de1565b005b348015610476575f80fd5b5061047f6111be565b60405161048c9190613fcb565b60405180910390f35b3480156104a0575f80fd5b506104a96111c4565b6040516104b6919061406e565b60405180910390f35b3480156104ca575f80fd5b506104e560048036038101906104e0919061408e565b611254565b6040516104f291906140c8565b60405180910390f35b348015610506575f80fd5b5061050f6112ce565b60405161051c919061406e565b60405180910390f35b61053f600480360381019061053a91906140e1565b61135a565b005b34801561054c575f80fd5b50610555611499565b6040516105629190613cc0565b60405180910390f35b348015610576575f80fd5b5061057f61149f565b60405161058c9190613cc0565b60405180910390f35b3480156105a0575f80fd5b506105bb60048036038101906105b6919061408e565b6114a5565b005b3480156105c8575f80fd5b506105d16114b7565b6040516105de9190613cc0565b60405180910390f35b61060160048036038101906105fc919061411f565b6114cc565b005b34801561060e575f80fd5b506106296004803603810190610624919061416f565b6117da565b6040516106379291906141ad565b60405180910390f35b34801561064b575f80fd5b506106546119b6565b6040516106619190613d84565b60405180910390f35b6106726119c9565b005b61068e6004803603810190610689919061411f565b611a33565b005b34801561069b575f80fd5b506106a4611a52565b6040516106b19190613d84565b60405180910390f35b3480156106c5575f80fd5b506106e060048036038101906106db91906142fc565b611a65565b005b3480156106ed575f80fd5b506106f6611a80565b6040516107039190613d84565b60405180910390f35b348015610717575f80fd5b50610720611a93565b60405161072d9190613d84565b60405180910390f35b348015610741575f80fd5b5061074a611aa5565b6040516107579190613fcb565b60405180910390f35b34801561076b575f80fd5b5061078660048036038101906107819190614343565b611aab565b005b348015610793575f80fd5b506107ae60048036038101906107a9919061408e565b611acd565b6040516107bb91906140c8565b60405180910390f35b3480156107cf575f80fd5b506107d8611ade565b6040516107e5919061406e565b60405180910390f35b3480156107f9575f80fd5b50610802611b6a565b60405161080f9190613cc0565b60405180910390f35b348015610823575f80fd5b5061083e60048036038101906108399190614393565b611b70565b60405161084b9190613cc0565b60405180910390f35b34801561085f575f80fd5b50610868611c25565b005b348015610875575f80fd5b5061087e611c38565b005b34801561088b575f80fd5b506108a660048036038101906108a19190614393565b611c4a565b6040516108b39190614475565b60405180910390f35b3480156108c7575f80fd5b506108d0611d86565b6040516108dd9190613d84565b60405180910390f35b3480156108f1575f80fd5b5061090c60048036038101906109079190614393565b611d99565b6040516109199190613cc0565b60405180910390f35b34801561092d575f80fd5b5061094860048036038101906109439190614343565b611dae565b005b348015610955575f80fd5b5061095e611dd0565b60405161096b91906140c8565b60405180910390f35b34801561097f575f80fd5b5061099a60048036038101906109959190613dc7565b611df8565b005b3480156109a7575f80fd5b506109b0611e1d565b6040516109bd919061406e565b60405180910390f35b3480156109d1575f80fd5b506109ec60048036038101906109e791906144bf565b611ead565b005b3480156109f9575f80fd5b50610a02611ec7565b604051610a0f9190613cc0565b60405180910390f35b610a326004803603810190610a2d919061408e565b611ecd565b005b348015610a3f575f80fd5b50610a5a6004803603810190610a5591906144fd565b6121f6565b005b348015610a67575f80fd5b50610a826004803603810190610a7d919061408e565b6122fc565b005b348015610a8f575f80fd5b50610a9861230e565b604051610aa59190613cc0565b60405180910390f35b610ac86004803603810190610ac39190613f56565b612314565b005b348015610ad5575f80fd5b50610af06004803603810190610aeb9190614590565b6126f1565b005b610b0c6004803603810190610b079190614679565b612839565b005b348015610b19575f80fd5b50610b226128ab565b604051610b2f9190613cc0565b60405180910390f35b348015610b43575f80fd5b50610b4c6128b1565b604051610b599190613cc0565b60405180910390f35b348015610b6d575f80fd5b50610b886004803603810190610b83919061474e565b6128b7565b005b348015610b95575f80fd5b50610bb06004803603810190610bab919061408e565b61298a565b604051610bbd919061406e565b60405180910390f35b348015610bd1575f80fd5b50610bda612ad9565b604051610be79190613cc0565b60405180910390f35b348015610bfb575f80fd5b50610c166004803603810190610c119190614393565b612adf565b604051610c239190613cc0565b60405180910390f35b348015610c37575f80fd5b50610c526004803603810190610c4d91906147ab565b612af0565b005b348015610c5f575f80fd5b50610c7a6004803603810190610c7591906147fb565b612b4b565b604051610c879190613d84565b60405180910390f35b348015610c9b575f80fd5b50610cb66004803603810190610cb191906142fc565b612bd9565b005b348015610cc3575f80fd5b50610cde6004803603810190610cd99190614393565b612bf4565b005b348015610ceb575f80fd5b50610d066004803603810190610d019190614393565b612c76565b604051610d139190613cc0565b60405180910390f35b348015610d27575f80fd5b50610d426004803603810190610d3d919061408e565b612c8b565b005b348015610d4f575f80fd5b50610d6a6004803603810190610d659190614393565b612c9d565b604051610d779190613cc0565b60405180910390f35b60155481565b5f610d9082612cb2565b80610da05750610d9f82612d43565b5b9050919050565b610daf612dbc565b8060175f6101000a81548160ff02191690831515021790555050565b610dd3612dbc565b610ddd8282612e3a565b5050565b610de9612fd5565b60175f9054906101000a900460ff1615610e38576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e2f90614883565b60405180910390fd5b601760029054906101000a900460ff16610e87576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e7e906148eb565b60405180910390fd5b3273ffffffffffffffffffffffffffffffffffffffff16610ea6613024565b73ffffffffffffffffffffffffffffffffffffffff1614610efc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ef390614953565b60405180910390fd5b610f6f8282808060200260200160405190810160405280939291908181526020018383602002808284375f81840152601f19601f8201169050808301925050505050505060185433604051602001610f5491906149b6565b6040516020818303038152906040528051906020012061302b565b610fae576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fa590614a1a565b60405180910390fd5b60155483601b5f610fbd613024565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20546110019190614a65565b1115611042576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161103990614ae2565b60405180910390fd5b601554831115611087576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161107e90614b4a565b60405180910390fd5b601254836110936114b7565b61109d9190614a65565b11156110de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110d590614bb2565b60405180910390fd5b82600f546110ec9190614bd0565b34101561112e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161112590614c5b565b60405180910390fd5b82601b5f61113a613024565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282546111819190614a65565b9250508190555082601d5f8282546111999190614a65565b925050819055506111b16111ab613024565b84613041565b6111b961305e565b505050565b60185481565b6060600280546111d390614ca6565b80601f01602080910402602001604051908101604052809291908181526020018280546111ff90614ca6565b801561124a5780601f106112215761010080835404028352916020019161124a565b820191905f5260205f20905b81548152906001019060200180831161122d57829003601f168201915b5050505050905090565b5f61125e82613068565b611294576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60065f8381526020019081526020015f205f015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600d80546112db90614ca6565b80601f016020809104026020016040519081016040528092919081815260200182805461130790614ca6565b80156113525780601f1061132957610100808354040283529160200191611352565b820191905f5260205f20905b81548152906001019060200180831161133557829003601f168201915b505050505081565b5f61136482611acd565b90508073ffffffffffffffffffffffffffffffffffffffff16611385613024565b73ffffffffffffffffffffffffffffffffffffffff16146113e8576113b1816113ac613024565b612b4b565b6113e7576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b8260065f8481526020019081526020015f205f015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60125481565b600e5481565b6114ad612dbc565b8060118190555050565b5f6114c06130c2565b6001545f540303905090565b5f6114d6826130ca565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461153d576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f806115488461318d565b9150915061155e8187611559613024565b6131b0565b6115aa576115738661156e613024565b612b4b565b6115a9576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b5f73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff160361160f576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61161c86868660016131f3565b8015611626575f82555b60055f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8154600190039190508190555060055f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8154600101919050819055506116ee856116ca8888876131f9565b7c020000000000000000000000000000000000000000000000000000000017613220565b60045f8681526020019081526020015f20819055505f7c020000000000000000000000000000000000000000000000000000000084160361176a575f6001850190505f60045f8381526020019081526020015f205403611768575f548114611767578360045f8381526020019081526020015f20819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46117d2868686600161324a565b505050505050565b5f805f600b5f8681526020019081526020015f206040518060400160405290815f82015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020015f820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505f73ffffffffffffffffffffffffffffffffffffffff16815f015173ffffffffffffffffffffffffffffffffffffffff160361196357600a6040518060400160405290815f82015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020015f820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b5f61196c613250565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff16866119989190614bd0565b6119a29190614d03565b9050815f0151819350935050509250929050565b601760039054906101000a900460ff1681565b6119d1612dbc565b6119d9612fd5565b5f4790506119e5613024565b73ffffffffffffffffffffffffffffffffffffffff166108fc8290811502906040515f60405180830381858888f19350505050158015611a27573d5f803e3d5ffd5b5050611a3161305e565b565b611a4d83838360405180602001604052805f815250612839565b505050565b601760019054906101000a900460ff1681565b611a6d612dbc565b80600c9081611a7c9190614ed0565b5050565b601760029054906101000a900460ff1681565b60175f9054906101000a900460ff1681565b60195481565b611ab3612dbc565b826014819055508160158190555080601681905550505050565b5f611ad7826130ca565b9050919050565b600c8054611aeb90614ca6565b80601f0160208091040260200160405190810160405280929190818152602001828054611b1790614ca6565b8015611b625780601f10611b3957610100808354040283529160200191611b62565b820191905f5260205f20905b815481529060010190602001808311611b4557829003601f168201915b505050505081565b600f5481565b5f8073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611bd6576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff60055f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054169050919050565b611c2d612dbc565b611c365f613259565b565b611c40612dbc565b611c4861331c565b565b60605f805f611c5885611b70565b90505f8167ffffffffffffffff811115611c7557611c746141d8565b5b604051908082528060200260200182016040528015611ca35781602001602082028036833780820191505090505b509050611cae613c5d565b5f611cb76130c2565b90505b838614611d7857611cca81613366565b91508160400151611d6d575f73ffffffffffffffffffffffffffffffffffffffff16825f015173ffffffffffffffffffffffffffffffffffffffff1614611d1257815f015194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603611d6c5780838780600101985081518110611d5f57611d5e614f9f565b5b6020026020010181815250505b5b806001019050611cba565b508195505050505050919050565b601760049054906101000a900460ff1681565b601b602052805f5260405f205f915090505481565b611db6612dbc565b82600e8190555081600f8190555080601081905550505050565b5f60085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611e00612dbc565b80601760016101000a81548160ff02191690831515021790555050565b606060038054611e2c90614ca6565b80601f0160208091040260200160405190810160405280929190818152602001828054611e5890614ca6565b8015611ea35780601f10611e7a57610100808354040283529160200191611ea3565b820191905f5260205f20905b815481529060010190602001808311611e8657829003601f168201915b5050505050905090565b611eb5612dbc565b81601881905550806019819055505050565b60165481565b611ed5612fd5565b60175f9054906101000a900460ff1615611f24576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f1b90614883565b60405180910390fd5b3273ffffffffffffffffffffffffffffffffffffffff16611f43613024565b73ffffffffffffffffffffffffffffffffffffffff1614611f99576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f9090614953565b60405180910390fd5b601760039054906101000a900460ff16611fe8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fdf90615016565b60405180910390fd5b60145481111561202d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120249061507e565b60405180910390fd5b601154816120396114b7565b6120439190614a65565b1115612084576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161207b906150e6565b60405180910390fd5b60145481601a5f612093613024565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20546120d79190614a65565b1115612118576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161210f90614ae2565b60405180910390fd5b80600e546121269190614bd0565b341015612168576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161215f90614c5b565b60405180910390fd5b80601a5f612174613024565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282546121bb9190614a65565b9250508190555080601f5f8282546121d39190614a65565b925050819055506121eb6121e5613024565b82613041565b6121f361305e565b50565b8060075f612202613024565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166122ab613024565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516122f09190613d84565b60405180910390a35050565b612304612dbc565b8060138190555050565b60135481565b61231c612fd5565b60175f9054906101000a900460ff161561236b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161236290614883565b60405180910390fd5b601760049054906101000a900460ff166123ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123b19061514e565b60405180910390fd5b3273ffffffffffffffffffffffffffffffffffffffff166123d9613024565b73ffffffffffffffffffffffffffffffffffffffff161461242f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161242690614953565b60405180910390fd5b6124a28282808060200260200160405190810160405280939291908181526020018383602002808284375f81840152601f19601f820116905080830192505050505050506019543360405160200161248791906149b6565b6040516020818303038152906040528051906020012061302b565b6124e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124d890614a1a565b60405180910390fd5b60165483601c5f6124f0613024565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20546125349190614a65565b1115612575576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161256c90614ae2565b60405180910390fd5b6016548311156125ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125b190614b4a565b60405180910390fd5b601354836125c66114b7565b6125d09190614a65565b1115612611576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161260890614bb2565b60405180910390fd5b8260105461261f9190614bd0565b341015612661576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161265890614c5b565b60405180910390fd5b82601c5f61266d613024565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282546126b49190614a65565b9250508190555082601e5f8282546126cc9190614a65565b925050819055506126e46126de613024565b84613041565b6126ec61305e565b505050565b6126f9612fd5565b5f5b8282905081101561282c5761272883838381811061271c5761271b614f9f565b5b90506020020135613068565b612767576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161275e906151b6565b60405180910390fd5b61276f613024565b73ffffffffffffffffffffffffffffffffffffffff166127a784848481811061279b5761279a614f9f565b5b90506020020135611acd565b73ffffffffffffffffffffffffffffffffffffffff16146127fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127f49061521e565b60405180910390fd5b61281f83838381811061281357612812614f9f565b5b9050602002013561338f565b80806001019150506126fb565b5061283561305e565b5050565b6128448484846114cc565b5f8373ffffffffffffffffffffffffffffffffffffffff163b146128a55761286e8484848461339c565b6128a4576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b60145481565b60105481565b6128bf612dbc565b6128c7612fd5565b5f82829050846128d79190614bd0565b9050601154816128e56114b7565b6128ef9190614a65565b1115612930576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161292790615286565b60405180910390fd5b5f5b8383905081101561297b5761296e84848381811061295357612952614f9f565b5b90506020020160208101906129689190614393565b86613041565b8080600101915050612932565b505061298561305e565b505050565b606061299582613068565b6129d4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129cb90615314565b60405180910390fd5b5f1515601760019054906101000a900460ff16151503612a7e57600d80546129fb90614ca6565b80601f0160208091040260200160405190810160405280929190818152602001828054612a2790614ca6565b8015612a725780601f10612a4957610100808354040283529160200191612a72565b820191905f5260205f20905b815481529060010190602001808311612a5557829003601f168201915b50505050509050612ad4565b5f612a876134e7565b90505f815111612aa55760405180602001604052805f815250612ad0565b80612aaf84613577565b604051602001612ac09291906153b6565b6040516020818303038152906040525b9150505b919050565b60115481565b5f612ae9826135c6565b9050919050565b612af8612dbc565b80601760046101000a81548160ff02191690831515021790555082601760036101000a81548160ff02191690831515021790555081601760026101000a81548160ff021916908315150217905550505050565b5f60075f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16905092915050565b612be1612dbc565b80600d9081612bf09190614ed0565b5050565b612bfc612dbc565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612c6a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c6190615454565b60405180910390fd5b612c7381613259565b50565b601c602052805f5260405f205f915090505481565b612c93612dbc565b8060128190555050565b601a602052805f5260405f205f915090505481565b5f6301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612d0c57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612d3c5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b5f7f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612db55750612db48261361a565b5b9050919050565b612dc4613683565b73ffffffffffffffffffffffffffffffffffffffff16612de2611dd0565b73ffffffffffffffffffffffffffffffffffffffff1614612e38576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e2f906154bc565b60405180910390fd5b565b5f612e43613250565b6bffffffffffffffffffffffff16905080826bffffffffffffffffffffffff161115612ea85781816040517f6f483d09000000000000000000000000000000000000000000000000000000008152600401612e9f92919061550a565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612f18575f6040517fb6d9900a000000000000000000000000000000000000000000000000000000008152600401612f0f91906140c8565b60405180910390fd5b60405180604001604052808473ffffffffffffffffffffffffffffffffffffffff168152602001836bffffffffffffffffffffffff16815250600a5f820151815f015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506020820151815f0160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff160217905550905050505050565b60026009540361301a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130119061557b565b60405180910390fd5b6002600981905550565b5f33905090565b5f82613037858461368a565b1490509392505050565b61305a828260405180602001604052805f8152506136d8565b5050565b6001600981905550565b5f816130726130c2565b1115801561308057505f5482105b80156130bb57505f7c010000000000000000000000000000000000000000000000000000000060045f8581526020019081526020015f205416145b9050919050565b5f6001905090565b5f80829050806130d86130c2565b11613156575f54811015613155575f60045f8381526020019081526020015f205490505f7c0100000000000000000000000000000000000000000000000000000000821603613153575b5f81036131495760045f836001900393508381526020019081526020015f20549050613122565b8092505050613188565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b5f805f60065f8581526020019081526020015f2090508092508254915050915091565b5f73ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b5f8060e883901c905060e861320f86868461376f565b62ffffff16901b9150509392505050565b5f73ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b5f612710905090565b5f60085f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160085f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600a5f8082015f6101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690555f820160146101000a8154906bffffffffffffffffffffffff02191690555050565b61336e613c5d565b61338860045f8481526020019081526020015f2054613777565b9050919050565b613399815f61382b565b50565b5f8373ffffffffffffffffffffffffffffffffffffffff1663150b7a026133c1613024565b8786866040518563ffffffff1660e01b81526004016133e394939291906155eb565b6020604051808303815f875af192505050801561341e57506040513d601f19601f8201168201806040525081019061341b9190615649565b60015b613494573d805f811461344c576040519150601f19603f3d011682016040523d82523d5f602084013e613451565b606091505b505f81510361348c576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060600c80546134f690614ca6565b80601f016020809104026020016040519081016040528092919081815260200182805461352290614ca6565b801561356d5780601f106135445761010080835404028352916020019161356d565b820191905f5260205f20905b81548152906001019060200180831161355057829003601f168201915b5050505050905090565b606060a060405101806040526020810391505f825281835b6001156135b157600184039350600a81066030018453600a810490508061358f575b50828103602084039350808452505050919050565b5f67ffffffffffffffff604060055f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054901c169050919050565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b5f33905090565b5f808290505f5b84518110156136cd576136be828683815181106136b1576136b0614f9f565b5b6020026020010151613a67565b91508080600101915050613691565b508091505092915050565b6136e28383613a91565b5f8373ffffffffffffffffffffffffffffffffffffffff163b1461376a575f805490505f83820390505b61371e5f86838060010194508661339c565b613754576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81811061370c57815f5414613767575f80fd5b50505b505050565b5f9392505050565b61377f613c5d565b81815f019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff16815250505f7c01000000000000000000000000000000000000000000000000000000008316141581604001901515908115158152505060e882901c816060019062ffffff16908162ffffff1681525050919050565b5f613835836130ca565b90505f8190505f806138468661318d565b9150915084156138af57613862818461385d613024565b6131b0565b6138ae5761387783613872613024565b612b4b565b6138ad576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b5b6138bc835f8860016131f3565b80156138c6575f82555b600160806001901b0360055f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f828254019250508190555061396a83613927855f886131f9565b7c02000000000000000000000000000000000000000000000000000000007c01000000000000000000000000000000000000000000000000000000001717613220565b60045f8881526020019081526020015f20819055505f7c02000000000000000000000000000000000000000000000000000000008516036139e6575f6001870190505f60045f8381526020019081526020015f2054036139e4575f5481146139e3578460045f8381526020019081526020015f20819055505b5b505b855f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613a4e835f88600161324a565b60015f8154809291906001019190505550505050505050565b5f818310613a7e57613a798284613c3a565b613a89565b613a888383613c3a565b5b905092915050565b5f805490505f8203613acf576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b613adb5f8483856131f3565b600160406001901b17820260055f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282540192505081905550613b4d83613b3e5f865f6131f9565b613b4785613c4e565b17613220565b60045f8381526020019081526020015f20819055505f80838301905073ffffffffffffffffffffffffffffffffffffffff8516915082825f7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a4600183015b818114613be75780835f7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a4600181019050613bae565b505f8203613c21576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805f819055505050613c355f84838561324a565b505050565b5f825f528160205260405f20905092915050565b5f6001821460e11b9050919050565b60405180608001604052805f73ffffffffffffffffffffffffffffffffffffffff1681526020015f67ffffffffffffffff1681526020015f151581526020015f62ffffff1681525090565b5f819050919050565b613cba81613ca8565b82525050565b5f602082019050613cd35f830184613cb1565b92915050565b5f604051905090565b5f80fd5b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613d1e81613cea565b8114613d28575f80fd5b50565b5f81359050613d3981613d15565b92915050565b5f60208284031215613d5457613d53613ce2565b5b5f613d6184828501613d2b565b91505092915050565b5f8115159050919050565b613d7e81613d6a565b82525050565b5f602082019050613d975f830184613d75565b92915050565b613da681613d6a565b8114613db0575f80fd5b50565b5f81359050613dc181613d9d565b92915050565b5f60208284031215613ddc57613ddb613ce2565b5b5f613de984828501613db3565b91505092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f613e1b82613df2565b9050919050565b613e2b81613e11565b8114613e35575f80fd5b50565b5f81359050613e4681613e22565b92915050565b5f6bffffffffffffffffffffffff82169050919050565b613e6c81613e4c565b8114613e76575f80fd5b50565b5f81359050613e8781613e63565b92915050565b5f8060408385031215613ea357613ea2613ce2565b5b5f613eb085828601613e38565b9250506020613ec185828601613e79565b9150509250929050565b613ed481613ca8565b8114613ede575f80fd5b50565b5f81359050613eef81613ecb565b92915050565b5f80fd5b5f80fd5b5f80fd5b5f8083601f840112613f1657613f15613ef5565b5b8235905067ffffffffffffffff811115613f3357613f32613ef9565b5b602083019150836020820283011115613f4f57613f4e613efd565b5b9250929050565b5f805f60408486031215613f6d57613f6c613ce2565b5b5f613f7a86828701613ee1565b935050602084013567ffffffffffffffff811115613f9b57613f9a613ce6565b5b613fa786828701613f01565b92509250509250925092565b5f819050919050565b613fc581613fb3565b82525050565b5f602082019050613fde5f830184613fbc565b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f5b8381101561401b578082015181840152602081019050614000565b5f8484015250505050565b5f601f19601f8301169050919050565b5f61404082613fe4565b61404a8185613fee565b935061405a818560208601613ffe565b61406381614026565b840191505092915050565b5f6020820190508181035f8301526140868184614036565b905092915050565b5f602082840312156140a3576140a2613ce2565b5b5f6140b084828501613ee1565b91505092915050565b6140c281613e11565b82525050565b5f6020820190506140db5f8301846140b9565b92915050565b5f80604083850312156140f7576140f6613ce2565b5b5f61410485828601613e38565b925050602061411585828601613ee1565b9150509250929050565b5f805f6060848603121561413657614135613ce2565b5b5f61414386828701613e38565b935050602061415486828701613e38565b925050604061416586828701613ee1565b9150509250925092565b5f806040838503121561418557614184613ce2565b5b5f61419285828601613ee1565b92505060206141a385828601613ee1565b9150509250929050565b5f6040820190506141c05f8301856140b9565b6141cd6020830184613cb1565b9392505050565b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b61420e82614026565b810181811067ffffffffffffffff8211171561422d5761422c6141d8565b5b80604052505050565b5f61423f613cd9565b905061424b8282614205565b919050565b5f67ffffffffffffffff82111561426a576142696141d8565b5b61427382614026565b9050602081019050919050565b828183375f83830152505050565b5f6142a061429b84614250565b614236565b9050828152602081018484840111156142bc576142bb6141d4565b5b6142c7848285614280565b509392505050565b5f82601f8301126142e3576142e2613ef5565b5b81356142f384826020860161428e565b91505092915050565b5f6020828403121561431157614310613ce2565b5b5f82013567ffffffffffffffff81111561432e5761432d613ce6565b5b61433a848285016142cf565b91505092915050565b5f805f6060848603121561435a57614359613ce2565b5b5f61436786828701613ee1565b935050602061437886828701613ee1565b925050604061438986828701613ee1565b9150509250925092565b5f602082840312156143a8576143a7613ce2565b5b5f6143b584828501613e38565b91505092915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b6143f081613ca8565b82525050565b5f61440183836143e7565b60208301905092915050565b5f602082019050919050565b5f614423826143be565b61442d81856143c8565b9350614438836143d8565b805f5b8381101561446857815161444f88826143f6565b975061445a8361440d565b92505060018101905061443b565b5085935050505092915050565b5f6020820190508181035f83015261448d8184614419565b905092915050565b61449e81613fb3565b81146144a8575f80fd5b50565b5f813590506144b981614495565b92915050565b5f80604083850312156144d5576144d4613ce2565b5b5f6144e2858286016144ab565b92505060206144f3858286016144ab565b9150509250929050565b5f806040838503121561451357614512613ce2565b5b5f61452085828601613e38565b925050602061453185828601613db3565b9150509250929050565b5f8083601f8401126145505761454f613ef5565b5b8235905067ffffffffffffffff81111561456d5761456c613ef9565b5b60208301915083602082028301111561458957614588613efd565b5b9250929050565b5f80602083850312156145a6576145a5613ce2565b5b5f83013567ffffffffffffffff8111156145c3576145c2613ce6565b5b6145cf8582860161453b565b92509250509250929050565b5f67ffffffffffffffff8211156145f5576145f46141d8565b5b6145fe82614026565b9050602081019050919050565b5f61461d614618846145db565b614236565b905082815260208101848484011115614639576146386141d4565b5b614644848285614280565b509392505050565b5f82601f8301126146605761465f613ef5565b5b813561467084826020860161460b565b91505092915050565b5f805f806080858703121561469157614690613ce2565b5b5f61469e87828801613e38565b94505060206146af87828801613e38565b93505060406146c087828801613ee1565b925050606085013567ffffffffffffffff8111156146e1576146e0613ce6565b5b6146ed8782880161464c565b91505092959194509250565b5f8083601f84011261470e5761470d613ef5565b5b8235905067ffffffffffffffff81111561472b5761472a613ef9565b5b60208301915083602082028301111561474757614746613efd565b5b9250929050565b5f805f6040848603121561476557614764613ce2565b5b5f61477286828701613ee1565b935050602084013567ffffffffffffffff81111561479357614792613ce6565b5b61479f868287016146f9565b92509250509250925092565b5f805f606084860312156147c2576147c1613ce2565b5b5f6147cf86828701613db3565b93505060206147e086828701613db3565b92505060406147f186828701613db3565b9150509250925092565b5f806040838503121561481157614810613ce2565b5b5f61481e85828601613e38565b925050602061482f85828601613e38565b9150509250929050565b7f53616c65206973207061757365640000000000000000000000000000000000005f82015250565b5f61486d600e83613fee565b915061487882614839565b602082019050919050565b5f6020820190508181035f83015261489a81614861565b9050919050565b7f50726573616c65204861736e27742073746172746564207965740000000000005f82015250565b5f6148d5601a83613fee565b91506148e0826148a1565b602082019050919050565b5f6020820190508181035f830152614902816148c9565b9050919050565b7f424f545320417265206e6f7420416c6c6f7765640000000000000000000000005f82015250565b5f61493d601483613fee565b915061494882614909565b602082019050919050565b5f6020820190508181035f83015261496a81614931565b9050919050565b5f8160601b9050919050565b5f61498782614971565b9050919050565b5f6149988261497d565b9050919050565b6149b06149ab82613e11565b61498e565b82525050565b5f6149c1828461499f565b60148201915081905092915050565b7f596f7520617265206e6f742057686974656c69737465640000000000000000005f82015250565b5f614a04601783613fee565b9150614a0f826149d0565b602082019050919050565b5f6020820190508181035f830152614a31816149f8565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f614a6f82613ca8565b9150614a7a83613ca8565b9250828201905080821115614a9257614a91614a38565b5b92915050565b7f4d6178204e4654205065722057616c6c657420657863656564656400000000005f82015250565b5f614acc601b83613fee565b9150614ad782614a98565b602082019050919050565b5f6020820190508181035f830152614af981614ac0565b9050919050565b7f6d6178206d696e742070657220547820657863656564656400000000000000005f82015250565b5f614b34601883613fee565b9150614b3f82614b00565b602082019050919050565b5f6020820190508181035f830152614b6181614b28565b9050919050565b7f57686974656c697374204d6178537570706c79206578636565646564000000005f82015250565b5f614b9c601c83613fee565b9150614ba782614b68565b602082019050919050565b5f6020820190508181035f830152614bc981614b90565b9050919050565b5f614bda82613ca8565b9150614be583613ca8565b9250828202614bf381613ca8565b91508282048414831517614c0a57614c09614a38565b5b5092915050565b7f696e73756666696369656e742066756e647300000000000000000000000000005f82015250565b5f614c45601283613fee565b9150614c5082614c11565b602082019050919050565b5f6020820190508181035f830152614c7281614c39565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f6002820490506001821680614cbd57607f821691505b602082108103614cd057614ccf614c79565b5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f614d0d82613ca8565b9150614d1883613ca8565b925082614d2857614d27614cd6565b5b828204905092915050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f60088302614d8f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614d54565b614d998683614d54565b95508019841693508086168417925050509392505050565b5f819050919050565b5f614dd4614dcf614dca84613ca8565b614db1565b613ca8565b9050919050565b5f819050919050565b614ded83614dba565b614e01614df982614ddb565b848454614d60565b825550505050565b5f90565b614e15614e09565b614e20818484614de4565b505050565b5b81811015614e4357614e385f82614e0d565b600181019050614e26565b5050565b601f821115614e8857614e5981614d33565b614e6284614d45565b81016020851015614e71578190505b614e85614e7d85614d45565b830182614e25565b50505b505050565b5f82821c905092915050565b5f614ea85f1984600802614e8d565b1980831691505092915050565b5f614ec08383614e99565b9150826002028217905092915050565b614ed982613fe4565b67ffffffffffffffff811115614ef257614ef16141d8565b5b614efc8254614ca6565b614f07828285614e47565b5f60209050601f831160018114614f38575f8415614f26578287015190505b614f308582614eb5565b865550614f97565b601f198416614f4686614d33565b5f5b82811015614f6d57848901518255600182019150602085019450602081019050614f48565b86831015614f8a5784890151614f86601f891682614e99565b8355505b6001600288020188555050505b505050505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b7f5075626c69632053616c65204861736e277420737461727465642079657400005f82015250565b5f615000601e83613fee565b915061500b82614fcc565b602082019050919050565b5f6020820190508181035f83015261502d81614ff4565b9050919050565b7f6d6178206d696e7420616d6f756e7420706572207478206578636565646564005f82015250565b5f615068601f83613fee565b915061507382615034565b602082019050919050565b5f6020820190508181035f8301526150958161505c565b9050919050565b7f536f6c646f7574000000000000000000000000000000000000000000000000005f82015250565b5f6150d0600783613fee565b91506150db8261509c565b602082019050919050565b5f6020820190508181035f8301526150fd816150c4565b9050919050565b7f4f4773616c65204861736e2774207374617274656420796574000000000000005f82015250565b5f615138601983613fee565b915061514382615104565b602082019050919050565b5f6020820190508181035f8301526151658161512c565b9050919050565b7f4275726e696e6720666f72206e6f6e6578697374656e7420746f6b656e0000005f82015250565b5f6151a0601d83613fee565b91506151ab8261516c565b602082019050919050565b5f6020820190508181035f8301526151cd81615194565b9050919050565b7f596f7520617265206e6f74206f776e6572206f662074686973204e46540000005f82015250565b5f615208601d83613fee565b9150615213826151d4565b602082019050919050565b5f6020820190508181035f830152615235816151fc565b9050919050565b7f6d6178204e4654206c696d6974206578636565646564000000000000000000005f82015250565b5f615270601683613fee565b915061527b8261523c565b602082019050919050565b5f6020820190508181035f83015261529d81615264565b9050919050565b7f455243373231414d657461646174613a2055524920717565727920666f72206e5f8201527f6f6e6578697374656e7420746f6b656e00000000000000000000000000000000602082015250565b5f6152fe603083613fee565b9150615309826152a4565b604082019050919050565b5f6020820190508181035f83015261532b816152f2565b9050919050565b5f81905092915050565b5f61534682613fe4565b6153508185615332565b9350615360818560208601613ffe565b80840191505092915050565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000005f82015250565b5f6153a0600583615332565b91506153ab8261536c565b600582019050919050565b5f6153c1828561533c565b91506153cd828461533c565b91506153d882615394565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f61543e602683613fee565b9150615449826153e4565b604082019050919050565b5f6020820190508181035f83015261546b81615432565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f6154a6602083613fee565b91506154b182615472565b602082019050919050565b5f6020820190508181035f8301526154d38161549a565b9050919050565b5f6154f46154ef6154ea84613e4c565b614db1565b613ca8565b9050919050565b615504816154da565b82525050565b5f60408201905061551d5f8301856154fb565b61552a6020830184613cb1565b9392505050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c005f82015250565b5f615565601f83613fee565b915061557082615531565b602082019050919050565b5f6020820190508181035f83015261559281615559565b9050919050565b5f81519050919050565b5f82825260208201905092915050565b5f6155bd82615599565b6155c781856155a3565b93506155d7818560208601613ffe565b6155e081614026565b840191505092915050565b5f6080820190506155fe5f8301876140b9565b61560b60208301866140b9565b6156186040830185613cb1565b818103606083015261562a81846155b3565b905095945050505050565b5f8151905061564381613d15565b92915050565b5f6020828403121561565e5761565d613ce2565b5b5f61566b84828501615635565b9150509291505056fea2646970667358221220e2c2ce007143263df9ad70275f7014db788c80010844fc59efebe45b3f1897dc64736f6c63430008160033
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.