Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 665 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Approval For... | 17602140 | 418 days ago | IN | 0 ETH | 0.00034117 | ||||
Transfer From | 17558294 | 425 days ago | IN | 0 ETH | 0.00062606 | ||||
Transfer From | 17558292 | 425 days ago | IN | 0 ETH | 0.00090605 | ||||
Transfer From | 17558290 | 425 days ago | IN | 0 ETH | 0.0011935 | ||||
Set Approval For... | 17558033 | 425 days ago | IN | 0 ETH | 0.00063567 | ||||
Set Approval For... | 16604047 | 559 days ago | IN | 0 ETH | 0.00071989 | ||||
Set Approval For... | 16604045 | 559 days ago | IN | 0 ETH | 0.00076332 | ||||
Set Approval For... | 16234288 | 611 days ago | IN | 0 ETH | 0.00055203 | ||||
Set Approval For... | 16088531 | 631 days ago | IN | 0 ETH | 0.00054595 | ||||
Set Approval For... | 15960353 | 649 days ago | IN | 0 ETH | 0.00061862 | ||||
Set Approval For... | 15905948 | 657 days ago | IN | 0 ETH | 0.00061746 | ||||
Set Approval For... | 15874144 | 661 days ago | IN | 0 ETH | 0.00047584 | ||||
Set Approval For... | 15736895 | 680 days ago | IN | 0 ETH | 0.00068714 | ||||
Set Approval For... | 15726465 | 682 days ago | IN | 0 ETH | 0.00113105 | ||||
Set Approval For... | 15705644 | 685 days ago | IN | 0 ETH | 0.00206768 | ||||
Safe Transfer Fr... | 15705479 | 685 days ago | IN | 0 ETH | 0.003152 | ||||
Safe Transfer Fr... | 15705479 | 685 days ago | IN | 0 ETH | 0.003152 | ||||
Safe Transfer Fr... | 15705478 | 685 days ago | IN | 0 ETH | 0.00538383 | ||||
Safe Transfer Fr... | 15705478 | 685 days ago | IN | 0 ETH | 0.00394464 | ||||
Set Approval For... | 15703419 | 685 days ago | IN | 0 ETH | 0.00038861 | ||||
Set Approval For... | 15699242 | 685 days ago | IN | 0 ETH | 0.00038378 | ||||
Set Approval For... | 15692892 | 686 days ago | IN | 0 ETH | 0.00027082 | ||||
Set Approval For... | 15687799 | 687 days ago | IN | 0 ETH | 0.00026 | ||||
Set Approval For... | 15687451 | 687 days ago | IN | 0 ETH | 0.00023215 | ||||
Set Approval For... | 15677194 | 689 days ago | IN | 0 ETH | 0.00045615 |
Latest 18 internal transactions
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
15580936 | 702 days ago | 0.0006 ETH | ||||
15580936 | 702 days ago | 0.003 ETH | ||||
15580936 | 702 days ago | 0.006 ETH | ||||
15580936 | 702 days ago | 0.0066 ETH | ||||
15580936 | 702 days ago | 0.0066 ETH | ||||
15580936 | 702 days ago | 0.0072 ETH | ||||
15555002 | 706 days ago | 0.0126 ETH | ||||
15555002 | 706 days ago | 0.063 ETH | ||||
15555002 | 706 days ago | 0.126 ETH | ||||
15555002 | 706 days ago | 0.1386 ETH | ||||
15555002 | 706 days ago | 0.1386 ETH | ||||
15555002 | 706 days ago | 0.1512 ETH | ||||
15529374 | 710 days ago | 0.0334 ETH | ||||
15529374 | 710 days ago | 0.167 ETH | ||||
15529374 | 710 days ago | 0.334 ETH | ||||
15529374 | 710 days ago | 0.3674 ETH | ||||
15529374 | 710 days ago | 0.3674 ETH | ||||
15529374 | 710 days ago | 0.4008 ETH |
Loading...
Loading
Contract Name:
StickyFaces
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: MIT pragma solidity ^0.8.16; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "./ERC721A.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; /*@@@@@@@@@@@@@@@@@@@@@# @@@@@# /@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@ &@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@& #.@@@@@@@@@@@@( (@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@ ,.@@@@@@@@@@@@@@, @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ *@@@@ @@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@& @@@@@@@@@@@@@@@@@ ,@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@% @@@@@@@# @@@@& #@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@, @@@@@@@@@@@@@@@@@@@@@%%%%@@@@@@@@#. &@@@@@@@ @@@@@@@@@@ @@@@@@@ &@@@@@@@@@@@@@@@@@@@@@@%%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%&@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ (@@@@@@@@@@@@@@ @@@@@@@ @@@@@@@@@@@@@@ @@@ @@ @@@@@ /@@@ @@@& %@@@ @@@@@ @@@@@@ @@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@ @@@. @@@@@@@@@@@@ @@@@@@@@@@@@@@@ @@@@@@@@ @@@ @@@@@@@@@@@@ & #@@@@@@@ @@ @@@@@@@@ @@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ #@@@@@# @@@ @@@@@@@@@@@@ *@@@@@@@@@ @@@@@@@ @@@ &@@@@@@@@@@@@ (@@@@@@@@@@@& @@@@@@@@@@ @@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@(/@@@@@@ &@@ @@@@@@@@@@@@@@@@@@ @@@@@@@ @@@@@@@@ @@@ @@@@@@@@@@@@@ @@@@@@@@@@@ @@@@@@@@@@@@ @@@@@@@@@@@@@ .@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*@@@@@@@ @ (@@ @@@@@@ %@@@@@@ @@@@@@@ @@@@@@@ @@@@* #@@@@@, @@@ @@@ @@@@@@@@@ @@@@@@@@@@@@@ @@@@@@@@@@, @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@&(@@@@@@@@@@@@@@@@@@@@@@@@@@@@@* @@@@@@@@@ @@@@@@@@ @@@@@@@@ @@@@@@% @@@@ @@@@@. @@@@@@. &@@@@@@@@@@@@ @@@@@@@@( @@@@@@@@@@@ .@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@ @@@@@@@@@@@@ ,@@(.&@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ &@@.@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@% @@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@, @@@@@@@@@@@@@@@@@@@@@@@@@@@@ &@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@* @@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@% @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@( @@@@@@@@@@@@@@@ @@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@. ,@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@ @@@@ @@@@@@@@ @@@@ @@@% %@@@@@@@@@@@@@@@@@@@ @@@ @@@@@@@@@@@@@@@ @@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@ &@@@@@ %@@@@@@@@@@@@@@@@@@@@@@@@@@# @@@@@@@@@ @@@@@@@@@@@ * @@@@@ @@@@@@@@@@@@ @@@@@@@@@@& @@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@ @@@@@@@@@@@@@@@@ @@@@. @ @@@@@@@@@@@@@@@@@@@@@@@@ @@@@@ @* @@@@@@@@@@@@@@@@@@@@@@@@@@@ &@@@@@@@@ @@@ @@, @@@@ @@@@@@@@@@@@@ @@@@@ @@@@@@@@@@@@@@@@@@@@@@ @ @@@@@@@@@@@@@@@@@ /@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@* %@@@@@@@@ @@@@ ,@@@ @@@@@@@@@@@@ @@@@@@@@@@@@@@@@@. @@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@* @@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@ #@@@@@@ @@@@@@@, @@@ @@@@@@,&@@@ @@@@@@@@@@ *@@@@@@( @@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@* @@& @@@@@@@@@@@@@@@@@@@@@@@ @@@ @@@@@@@@@@@@@@@@@@@@@@@@% @@ /@@@@@, %@@@@@@ @@@@@@@@ %@@@@ @@@ #@@@ @@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@# @@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@( @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@ (@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@( @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@* %@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*/ contract StickyFaces is Ownable, ERC721A, ReentrancyGuard { using Strings for uint; enum Step { Before, PublicSale, //1 SoldOut } //State Variables string public baseURI; Step public sellingStep; //Constant variables uint16 private constant MAX_SUPPLY = 5000; uint16 private constant MAX_WHITELIST = 1500; uint16 private constant MAX_PUBLIC = 3500; uint16 public whitelistMinted; uint16 public publicMinted; uint8 private maxMintPerWhitelist = 3; uint8 private maxMintPerPublic = 20; bytes32 public merkleRoot; address founder = 0xC28f498b990DC256E6F04875c204d87a3d81FC33; address cm = 0xa6505933F4B6cbB3E71124Cf5Be9c5D6c04460A7; address dev = 0xb140fC484fA263da038ac24354e639F97A21Fc8e; address jamex = 0xdA00A06Ab3BbD3544B79C1350C463CAb9f196880; address pedro = 0xc9E620f61187813A7BeB4f174A6697004A065282; address nftfam = 0xdfAC3142F75e9E83eE17865eeD5bc7482e574F1c; uint256 founderCut; uint256 cmCut; uint256 devCut; uint256 jamexCut; uint256 pedroCut; uint256 nftfamCut; uint256 transactionGas = 50000; uint256 founderPercentage = 240; uint256 cmPercentage = 220; uint256 devPercentage = 220; uint256 jamexPercentage = 200; uint256 pedroPercentage = 100; uint256 nftfamPercentage = 20; uint128 public wlSalePrice = 0 ether; uint128 public publicSalePrice = 0.01 ether; mapping(address => uint) public amountNFTsperWalletWhitelistSale; mapping(address => uint) public amountNFTsperWalletPublicSale; constructor(bytes32 _merkleRoot, string memory _baseURI) ERC721A("STICKY FACES", "STICKY") { merkleRoot = _merkleRoot; baseURI = _baseURI; } modifier callerIsUser() { require(tx.origin == msg.sender, "The caller is another contract."); _; } function isValid(bytes32[] memory merkleproof, bytes32 leaf)public view returns (bool){ return MerkleProof.verify(merkleproof, merkleRoot, leaf); } function updateGas(uint256 _newGas) public onlyOwner{ transactionGas = _newGas; } function whitelistMint(uint16 _quantity, bytes32[] calldata merkleproof) external payable callerIsUser{ require(sellingStep == Step.PublicSale, "Sale is not activated"); require(isValid(merkleproof, keccak256(abi.encodePacked(msg.sender))),"Not in whitelist List"); require(amountNFTsperWalletWhitelistSale[msg.sender] + _quantity <= maxMintPerWhitelist, "You can only get 3 NFT on the Whitelist Sale"); require(whitelistMinted + _quantity <= MAX_WHITELIST, "Max whitelist supply exceeded"); //this allow us to still mint the Diamond pass anytime even totalsupply reach 3.000 require(whitelistMinted + _quantity <= MAX_SUPPLY, "Max supply exceeded"); require(msg.value >= wlSalePrice * _quantity, "Not enought funds"); amountNFTsperWalletWhitelistSale[msg.sender] += _quantity; _safeMint(msg.sender, _quantity); whitelistMinted = whitelistMinted + _quantity; } function updatePrice() internal returns (uint256) { return publicSalePrice = publicMinted < 1000 ? 0.01 ether : 0.02 ether; } function publicSaleMint(uint16 _quantity) external payable callerIsUser { require(sellingStep == Step.PublicSale, "Public sale is not activated"); require(amountNFTsperWalletPublicSale[msg.sender] + _quantity <= maxMintPerPublic,"You can only get 20 NFT on the Public Sale"); require(publicMinted + _quantity <= MAX_PUBLIC, "Max public supply exceeded"); require(totalSupply() + _quantity <= MAX_SUPPLY, "Max supply exceeded"); require(msg.value >= updatePrice() * _quantity, "Not enought funds"); _safeMint(msg.sender, _quantity); publicMinted = publicMinted + _quantity; } function gift(address _to, uint _quantity) external onlyOwner { require(totalSupply() + _quantity <= MAX_SUPPLY, "Reached max Supply for the team"); _safeMint(_to, _quantity); } function setBaseUri(string memory _baseURI) external onlyOwner { baseURI = _baseURI; } function setStep(uint _step) external onlyOwner { sellingStep = Step(_step); } function tokenURI(uint _tokenId) public view virtual override returns (string memory) { require(_exists(_tokenId), "URI query for nonexistent token"); return string(abi.encodePacked(baseURI, _tokenId.toString(), ".json")); } function setMerkleRoot(bytes32 _merkleRoot) external onlyOwner { merkleRoot = _merkleRoot; } function withdraw() public onlyOwner nonReentrant { founderCut = address(this).balance * founderPercentage /1000; cmCut = address(this).balance * cmPercentage /1000; devCut = address(this).balance * devPercentage /1000; jamexCut = address(this).balance * jamexPercentage /1000; pedroCut = address(this).balance * pedroPercentage /1000; nftfamCut = address(this).balance * nftfamPercentage /1000; (bool sentFounder, ) = payable(founder).call{gas: transactionGas, value: founderCut}(""); require(sentFounder, "eth not sent to Founder, not good"); (bool sentCM, ) = payable(cm).call{gas: transactionGas, value: cmCut}(""); require(sentCM, "eth not sent to CM, not good"); (bool sentDev, ) = payable(dev).call{gas: transactionGas, value: devCut}(""); require(sentDev, "eth not sent to Dev, not good"); (bool sentJamex, ) = payable(jamex).call{gas: transactionGas, value: jamexCut}(""); require(sentJamex, "eth not sent to Jamex, not good"); (bool sentPedro, ) = payable(pedro).call{gas: transactionGas, value: pedroCut}(""); require(sentPedro, "eth not sent to Pedro, not good"); (bool sentNFTFam, ) = payable(nftfam).call{gas: transactionGas, value: nftfamCut}(""); require(sentNFTFam, "eth not sent to NFT Fam, not good"); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.2 // 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 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 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 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 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`. ) 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 // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. * * 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. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`, * consuming from one or the other at each step according to the instructions given by * `proofFlags`. * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof} * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.2 // 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; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @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; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================================================= // 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 v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
{ "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":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"},{"internalType":"string","name":"_baseURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","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":[{"internalType":"address","name":"","type":"address"}],"name":"amountNFTsperWalletPublicSale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"amountNFTsperWalletWhitelistSale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"gift","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"merkleproof","type":"bytes32[]"},{"internalType":"bytes32","name":"leaf","type":"bytes32"}],"name":"isValid","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMinted","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_quantity","type":"uint16"}],"name":"publicSaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicSalePrice","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sellingStep","outputs":[{"internalType":"enum StickyFaces.Step","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"}],"name":"setBaseUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_step","type":"uint256"}],"name":"setStep","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newGas","type":"uint256"}],"name":"updateGas","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_quantity","type":"uint16"},{"internalType":"bytes32[]","name":"merkleproof","type":"bytes32[]"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"whitelistMinted","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"wlSalePrice","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040526003600b60056101000a81548160ff021916908360ff1602179055506014600b60066101000a81548160ff021916908360ff16021790555073c28f498b990dc256e6f04875c204d87a3d81fc33600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073a6505933f4b6cbb3e71124cf5be9c5d6c04460a7600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073b140fc484fa263da038ac24354e639f97a21fc8e600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073da00a06ab3bbd3544b79c1350c463cab9f196880601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073c9e620f61187813a7beb4f174a6697004a065282601160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073dfac3142f75e9e83ee17865eed5bc7482e574f1c601260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555061c35060195560f0601a5560dc601b5560dc601c5560c8601d556064601e556014601f556000602060006101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff160217905550662386f26fc10000602060106101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff160217905550348015620002e557600080fd5b50604051620052f8380380620052f883398181016040528101906200030b91906200069b565b6040518060400160405280600c81526020017f535449434b5920464143455300000000000000000000000000000000000000008152506040518060400160405280600681526020017f535449434b590000000000000000000000000000000000000000000000000000815250620003976200038b620003fc60201b60201c565b6200040460201b60201c565b8160039081620003a891906200094c565b508060049081620003ba91906200094c565b50620003cb620004c860201b60201c565b6001819055505050600160098190555081600c8190555080600a9081620003f391906200094c565b50505062000a33565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600090565b6000604051905090565b600080fd5b600080fd5b6000819050919050565b620004f681620004e1565b81146200050257600080fd5b50565b6000815190506200051681620004eb565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620005718262000526565b810181811067ffffffffffffffff8211171562000593576200059262000537565b5b80604052505050565b6000620005a8620004cd565b9050620005b6828262000566565b919050565b600067ffffffffffffffff821115620005d957620005d862000537565b5b620005e48262000526565b9050602081019050919050565b60005b8381101562000611578082015181840152602081019050620005f4565b60008484015250505050565b6000620006346200062e84620005bb565b6200059c565b90508281526020810184848401111562000653576200065262000521565b5b62000660848285620005f1565b509392505050565b600082601f83011262000680576200067f6200051c565b5b8151620006928482602086016200061d565b91505092915050565b60008060408385031215620006b557620006b4620004d7565b5b6000620006c58582860162000505565b925050602083015167ffffffffffffffff811115620006e957620006e8620004dc565b5b620006f78582860162000668565b9150509250929050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200075457607f821691505b6020821081036200076a57620007696200070c565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620007d47fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262000795565b620007e0868362000795565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b60006200082d620008276200082184620007f8565b62000802565b620007f8565b9050919050565b6000819050919050565b62000849836200080c565b62000861620008588262000834565b848454620007a2565b825550505050565b600090565b6200087862000869565b620008858184846200083e565b505050565b5b81811015620008ad57620008a16000826200086e565b6001810190506200088b565b5050565b601f821115620008fc57620008c68162000770565b620008d18462000785565b81016020851015620008e1578190505b620008f9620008f08562000785565b8301826200088a565b50505b505050565b600082821c905092915050565b6000620009216000198460080262000901565b1980831691505092915050565b60006200093c83836200090e565b9150826002028217905092915050565b620009578262000701565b67ffffffffffffffff81111562000973576200097262000537565b5b6200097f82546200073b565b6200098c828285620008b1565b600060209050601f831160018114620009c45760008415620009af578287015190505b620009bb85826200092e565b86555062000a2b565b601f198416620009d48662000770565b60005b82811015620009fe57848901518255600182019150602085019450602081019050620009d7565b8683101562000a1e578489015162000a1a601f8916826200090e565b8355505b6001600288020188555050505b505050505050565b6148b58062000a436000396000f3fe6080604052600436106102045760003560e01c80638da5cb5b11610118578063b88d4fde116100a0578063cbccefb21161006f578063cbccefb21461074d578063cbce4c9714610778578063e985e9c5146107a1578063f2fde38b146107de578063f8dcbddb1461080757610204565b8063b88d4fde14610681578063b8a20ed0146106aa578063c020df48146106e7578063c87b56dd1461071057610204565b8063a0bcfc7f116100e7578063a0bcfc7f146105ab578063a22cb465146105d4578063a4f4f8af146105fd578063b182e81814610628578063b3c542151461064457610204565b80638da5cb5b146104ed57806395d89b411461051857806399d13800146105435780639b6860c81461058057610204565b8063405138961161019b57806370a082311161016a57806370a082311461041a578063715018a614610457578063734c66bd1461046e5780637cb64759146104995780638990694f146104c257610204565b8063405138961461036d57806342842e0e146103895780636352211e146103b25780636c0360eb146103ef57610204565b806318160ddd116101d757806318160ddd146102d757806323b872dd146103025780632eb4a7ab1461032b5780633ccfd60b1461035657610204565b806301ffc9a71461020957806306fdde0314610246578063081812fc14610271578063095ea7b3146102ae575b600080fd5b34801561021557600080fd5b50610230600480360381019061022b9190612ce0565b610830565b60405161023d9190612d28565b60405180910390f35b34801561025257600080fd5b5061025b6108c2565b6040516102689190612dd3565b60405180910390f35b34801561027d57600080fd5b5061029860048036038101906102939190612e2b565b610954565b6040516102a59190612e99565b60405180910390f35b3480156102ba57600080fd5b506102d560048036038101906102d09190612ee0565b6109d3565b005b3480156102e357600080fd5b506102ec610b17565b6040516102f99190612f2f565b60405180910390f35b34801561030e57600080fd5b5061032960048036038101906103249190612f4a565b610b2e565b005b34801561033757600080fd5b50610340610e50565b60405161034d9190612fb6565b60405180910390f35b34801561036257600080fd5b5061036b610e56565b005b6103876004803603810190610382919061300b565b611479565b005b34801561039557600080fd5b506103b060048036038101906103ab9190612f4a565b611769565b005b3480156103be57600080fd5b506103d960048036038101906103d49190612e2b565b611789565b6040516103e69190612e99565b60405180910390f35b3480156103fb57600080fd5b5061040461179b565b6040516104119190612dd3565b60405180910390f35b34801561042657600080fd5b50610441600480360381019061043c9190613038565b611829565b60405161044e9190612f2f565b60405180910390f35b34801561046357600080fd5b5061046c6118e1565b005b34801561047a57600080fd5b506104836118f5565b6040516104909190613090565b60405180910390f35b3480156104a557600080fd5b506104c060048036038101906104bb91906130d7565b611917565b005b3480156104ce57600080fd5b506104d7611929565b6040516104e49190613113565b60405180910390f35b3480156104f957600080fd5b5061050261193d565b60405161050f9190612e99565b60405180910390f35b34801561052457600080fd5b5061052d611966565b60405161053a9190612dd3565b60405180910390f35b34801561054f57600080fd5b5061056a60048036038101906105659190613038565b6119f8565b6040516105779190612f2f565b60405180910390f35b34801561058c57600080fd5b50610595611a10565b6040516105a29190613090565b60405180910390f35b3480156105b757600080fd5b506105d260048036038101906105cd9190613263565b611a32565b005b3480156105e057600080fd5b506105fb60048036038101906105f691906132d8565b611a4d565b005b34801561060957600080fd5b50610612611b58565b60405161061f9190613113565b60405180910390f35b610642600480360381019061063d9190613378565b611b6c565b005b34801561065057600080fd5b5061066b60048036038101906106669190613038565b611f9a565b6040516106789190612f2f565b60405180910390f35b34801561068d57600080fd5b506106a860048036038101906106a39190613479565b611fb2565b005b3480156106b657600080fd5b506106d160048036038101906106cc91906135bf565b612025565b6040516106de9190612d28565b60405180910390f35b3480156106f357600080fd5b5061070e60048036038101906107099190612e2b565b61203c565b005b34801561071c57600080fd5b5061073760048036038101906107329190612e2b565b61204e565b6040516107449190612dd3565b60405180910390f35b34801561075957600080fd5b506107626120ca565b60405161076f9190613692565b60405180910390f35b34801561078457600080fd5b5061079f600480360381019061079a9190612ee0565b6120dd565b005b3480156107ad57600080fd5b506107c860048036038101906107c391906136ad565b61214e565b6040516107d59190612d28565b60405180910390f35b3480156107ea57600080fd5b5061080560048036038101906108009190613038565b6121e2565b005b34801561081357600080fd5b5061082e60048036038101906108299190612e2b565b612265565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061088b57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806108bb5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b6060600380546108d19061371c565b80601f01602080910402602001604051908101604052809291908181526020018280546108fd9061371c565b801561094a5780601f1061091f5761010080835404028352916020019161094a565b820191906000526020600020905b81548152906001019060200180831161092d57829003601f168201915b5050505050905090565b600061095f826122ac565b610995576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6007600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006109de82611789565b90508073ffffffffffffffffffffffffffffffffffffffff166109ff61230b565b73ffffffffffffffffffffffffffffffffffffffff1614610a6257610a2b81610a2661230b565b61214e565b610a61576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826007600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000610b21612313565b6002546001540303905090565b6000610b3982612318565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610ba0576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610bac846123e4565b91509150610bc28187610bbd61230b565b61240b565b610c0e57610bd786610bd261230b565b61214e565b610c0d576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603610c74576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610c81868686600161244f565b8015610c8c57600082555b600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610d5a85610d36888887612455565b7c02000000000000000000000000000000000000000000000000000000001761247d565b600560008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603610de05760006001850190506000600560008381526020019081526020016000205403610dde576001548114610ddd578360056000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610e4886868660016124a8565b505050505050565b600c5481565b610e5e6124ae565b600260095403610ea3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e9a90613799565b60405180910390fd5b60026009819055506103e8601a5447610ebc91906137e8565b610ec69190613859565b6013819055506103e8601b5447610edd91906137e8565b610ee79190613859565b6014819055506103e8601c5447610efe91906137e8565b610f089190613859565b6015819055506103e8601d5447610f1f91906137e8565b610f299190613859565b6016819055506103e8601e5447610f4091906137e8565b610f4a9190613859565b6017819055506103e8601f5447610f6191906137e8565b610f6b9190613859565b6018819055506000600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16601954601354604051610fbe906138bb565b600060405180830381858888f193505050503d8060008114610ffc576040519150601f19603f3d011682016040523d82523d6000602084013e611001565b606091505b5050905080611045576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161103c90613942565b60405180910390fd5b6000600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16601954601454604051611092906138bb565b600060405180830381858888f193505050503d80600081146110d0576040519150601f19603f3d011682016040523d82523d6000602084013e6110d5565b606091505b5050905080611119576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611110906139ae565b60405180910390fd5b6000600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16601954601554604051611166906138bb565b600060405180830381858888f193505050503d80600081146111a4576040519150601f19603f3d011682016040523d82523d6000602084013e6111a9565b606091505b50509050806111ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111e490613a1a565b60405180910390fd5b6000601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1660195460165460405161123a906138bb565b600060405180830381858888f193505050503d8060008114611278576040519150601f19603f3d011682016040523d82523d6000602084013e61127d565b606091505b50509050806112c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112b890613a86565b60405180910390fd5b6000601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1660195460175460405161130e906138bb565b600060405180830381858888f193505050503d806000811461134c576040519150601f19603f3d011682016040523d82523d6000602084013e611351565b606091505b5050905080611395576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161138c90613af2565b60405180910390fd5b6000601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166019546018546040516113e2906138bb565b600060405180830381858888f193505050503d8060008114611420576040519150601f19603f3d011682016040523d82523d6000602084013e611425565b606091505b5050905080611469576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161146090613b84565b60405180910390fd5b5050505050506001600981905550565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff16146114e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114de90613bf0565b60405180910390fd5b600160028111156114fb576114fa61361b565b5b600b60009054906101000a900460ff16600281111561151d5761151c61361b565b5b1461155d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161155490613c5c565b60405180910390fd5b600b60069054906101000a900460ff1660ff168161ffff16602260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546115bf9190613c7c565b1115611600576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115f790613d22565b60405180910390fd5b610dac61ffff1681600b60039054906101000a900461ffff166116239190613d42565b61ffff161115611668576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161165f90613dc4565b60405180910390fd5b61138861ffff168161ffff1661167c610b17565b6116869190613c7c565b11156116c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116be90613e30565b60405180910390fd5b8061ffff166116d461252c565b6116de91906137e8565b341015611720576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161171790613e9c565b60405180910390fd5b61172e338261ffff166125b8565b80600b60039054906101000a900461ffff1661174a9190613d42565b600b60036101000a81548161ffff021916908361ffff16021790555050565b61178483838360405180602001604052806000815250611fb2565b505050565b600061179482612318565b9050919050565b600a80546117a89061371c565b80601f01602080910402602001604051908101604052809291908181526020018280546117d49061371c565b80156118215780601f106117f657610100808354040283529160200191611821565b820191906000526020600020905b81548152906001019060200180831161180457829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611890576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b6118e96124ae565b6118f360006125d6565b565b602060009054906101000a90046fffffffffffffffffffffffffffffffff1681565b61191f6124ae565b80600c8190555050565b600b60019054906101000a900461ffff1681565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600480546119759061371c565b80601f01602080910402602001604051908101604052809291908181526020018280546119a19061371c565b80156119ee5780601f106119c3576101008083540402835291602001916119ee565b820191906000526020600020905b8154815290600101906020018083116119d157829003601f168201915b5050505050905090565b60216020528060005260406000206000915090505481565b602060109054906101000a90046fffffffffffffffffffffffffffffffff1681565b611a3a6124ae565b80600a9081611a499190614068565b5050565b8060086000611a5a61230b565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611b0761230b565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611b4c9190612d28565b60405180910390a35050565b600b60039054906101000a900461ffff1681565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614611bda576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bd190613bf0565b60405180910390fd5b60016002811115611bee57611bed61361b565b5b600b60009054906101000a900460ff166002811115611c1057611c0f61361b565b5b14611c50576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c4790614186565b60405180910390fd5b611cc1828280806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505033604051602001611ca691906141ee565b60405160208183030381529060405280519060200120612025565b611d00576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cf790614255565b60405180910390fd5b600b60059054906101000a900460ff1660ff168361ffff16602160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611d629190613c7c565b1115611da3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d9a906142e7565b60405180910390fd5b6105dc61ffff1683600b60019054906101000a900461ffff16611dc69190613d42565b61ffff161115611e0b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e0290614353565b60405180910390fd5b61138861ffff1683600b60019054906101000a900461ffff16611e2e9190613d42565b61ffff161115611e73576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e6a90613e30565b60405180910390fd5b8261ffff16602060009054906101000a90046fffffffffffffffffffffffffffffffff16611ea19190614373565b6fffffffffffffffffffffffffffffffff16341015611ef5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611eec90613e9c565b60405180910390fd5b8261ffff16602160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611f489190613c7c565b92505081905550611f5d338461ffff166125b8565b82600b60019054906101000a900461ffff16611f799190613d42565b600b60016101000a81548161ffff021916908361ffff160217905550505050565b60226020528060005260406000206000915090505481565b611fbd848484610b2e565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461201f57611fe88484848461269a565b61201e576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b600061203483600c54846127ea565b905092915050565b6120446124ae565b8060198190555050565b6060612059826122ac565b612098576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161208f906143fc565b60405180910390fd5b600a6120a383612801565b6040516020016120b4929190614527565b6040516020818303038152906040529050919050565b600b60009054906101000a900460ff1681565b6120e56124ae565b61138861ffff16816120f5610b17565b6120ff9190613c7c565b1115612140576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612137906145a2565b60405180910390fd5b61214a82826125b8565b5050565b6000600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6121ea6124ae565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612259576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161225090614634565b60405180910390fd5b612262816125d6565b50565b61226d6124ae565b8060028111156122805761227f61361b565b5b600b60006101000a81548160ff021916908360028111156122a4576122a361361b565b5b021790555050565b6000816122b7612313565b111580156122c6575060015482105b8015612304575060007c0100000000000000000000000000000000000000000000000000000000600560008581526020019081526020016000205416145b9050919050565b600033905090565b600090565b60008082905080612327612313565b116123ad576001548110156123ac5760006005600083815260200190815260200160002054905060007c01000000000000000000000000000000000000000000000000000000008216036123aa575b600081036123a0576005600083600190039350838152602001908152602001600020549050612376565b80925050506123df565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006007600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e861246c868684612961565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6124b661296a565b73ffffffffffffffffffffffffffffffffffffffff166124d461193d565b73ffffffffffffffffffffffffffffffffffffffff161461252a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612521906146a0565b60405180910390fd5b565b60006103e8600b60039054906101000a900461ffff1661ffff16106125585766470de4df820000612561565b662386f26fc100005b66ffffffffffffff16602060106101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790556fffffffffffffffffffffffffffffffff16905090565b6125d2828260405180602001604052806000815250612972565b5050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026126c061230b565b8786866040518563ffffffff1660e01b81526004016126e29493929190614715565b6020604051808303816000875af192505050801561271e57506040513d601f19601f8201168201806040525081019061271b9190614776565b60015b612797573d806000811461274e576040519150601f19603f3d011682016040523d82523d6000602084013e612753565b606091505b50600081510361278f576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6000826127f78584612a10565b1490509392505050565b606060008203612848576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061295c565b600082905060005b6000821461287a578080612863906147a3565b915050600a826128739190613859565b9150612850565b60008167ffffffffffffffff81111561289657612895613138565b5b6040519080825280601f01601f1916602001820160405280156128c85781602001600182028036833780820191505090505b5090505b60008514612955576001826128e191906147eb565b9150600a856128f0919061481f565b60306128fc9190613c7c565b60f81b81838151811061291257612911614850565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561294e9190613859565b94506128cc565b8093505050505b919050565b60009392505050565b600033905090565b61297c8383612a66565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612a0b5760006001549050600083820390505b6129bd600086838060010194508661269a565b6129f3576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181106129aa578160015414612a0857600080fd5b50505b505050565b60008082905060005b8451811015612a5b57612a4682868381518110612a3957612a38614850565b5b6020026020010151612c22565b91508080612a53906147a3565b915050612a19565b508091505092915050565b6000600154905060008203612aa7576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612ab4600084838561244f565b600160406001901b178202600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612b2b83612b1c6000866000612455565b612b2585612c4d565b1761247d565b6005600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b818114612bcc57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050612b91565b5060008203612c07576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806001819055505050612c1d60008483856124a8565b505050565b6000818310612c3a57612c358284612c5d565b612c45565b612c448383612c5d565b5b905092915050565b60006001821460e11b9050919050565b600082600052816020526040600020905092915050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612cbd81612c88565b8114612cc857600080fd5b50565b600081359050612cda81612cb4565b92915050565b600060208284031215612cf657612cf5612c7e565b5b6000612d0484828501612ccb565b91505092915050565b60008115159050919050565b612d2281612d0d565b82525050565b6000602082019050612d3d6000830184612d19565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612d7d578082015181840152602081019050612d62565b60008484015250505050565b6000601f19601f8301169050919050565b6000612da582612d43565b612daf8185612d4e565b9350612dbf818560208601612d5f565b612dc881612d89565b840191505092915050565b60006020820190508181036000830152612ded8184612d9a565b905092915050565b6000819050919050565b612e0881612df5565b8114612e1357600080fd5b50565b600081359050612e2581612dff565b92915050565b600060208284031215612e4157612e40612c7e565b5b6000612e4f84828501612e16565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612e8382612e58565b9050919050565b612e9381612e78565b82525050565b6000602082019050612eae6000830184612e8a565b92915050565b612ebd81612e78565b8114612ec857600080fd5b50565b600081359050612eda81612eb4565b92915050565b60008060408385031215612ef757612ef6612c7e565b5b6000612f0585828601612ecb565b9250506020612f1685828601612e16565b9150509250929050565b612f2981612df5565b82525050565b6000602082019050612f446000830184612f20565b92915050565b600080600060608486031215612f6357612f62612c7e565b5b6000612f7186828701612ecb565b9350506020612f8286828701612ecb565b9250506040612f9386828701612e16565b9150509250925092565b6000819050919050565b612fb081612f9d565b82525050565b6000602082019050612fcb6000830184612fa7565b92915050565b600061ffff82169050919050565b612fe881612fd1565b8114612ff357600080fd5b50565b60008135905061300581612fdf565b92915050565b60006020828403121561302157613020612c7e565b5b600061302f84828501612ff6565b91505092915050565b60006020828403121561304e5761304d612c7e565b5b600061305c84828501612ecb565b91505092915050565b60006fffffffffffffffffffffffffffffffff82169050919050565b61308a81613065565b82525050565b60006020820190506130a56000830184613081565b92915050565b6130b481612f9d565b81146130bf57600080fd5b50565b6000813590506130d1816130ab565b92915050565b6000602082840312156130ed576130ec612c7e565b5b60006130fb848285016130c2565b91505092915050565b61310d81612fd1565b82525050565b60006020820190506131286000830184613104565b92915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61317082612d89565b810181811067ffffffffffffffff8211171561318f5761318e613138565b5b80604052505050565b60006131a2612c74565b90506131ae8282613167565b919050565b600067ffffffffffffffff8211156131ce576131cd613138565b5b6131d782612d89565b9050602081019050919050565b82818337600083830152505050565b6000613206613201846131b3565b613198565b90508281526020810184848401111561322257613221613133565b5b61322d8482856131e4565b509392505050565b600082601f83011261324a5761324961312e565b5b813561325a8482602086016131f3565b91505092915050565b60006020828403121561327957613278612c7e565b5b600082013567ffffffffffffffff81111561329757613296612c83565b5b6132a384828501613235565b91505092915050565b6132b581612d0d565b81146132c057600080fd5b50565b6000813590506132d2816132ac565b92915050565b600080604083850312156132ef576132ee612c7e565b5b60006132fd85828601612ecb565b925050602061330e858286016132c3565b9150509250929050565b600080fd5b600080fd5b60008083601f8401126133385761333761312e565b5b8235905067ffffffffffffffff81111561335557613354613318565b5b6020830191508360208202830111156133715761337061331d565b5b9250929050565b60008060006040848603121561339157613390612c7e565b5b600061339f86828701612ff6565b935050602084013567ffffffffffffffff8111156133c0576133bf612c83565b5b6133cc86828701613322565b92509250509250925092565b600067ffffffffffffffff8211156133f3576133f2613138565b5b6133fc82612d89565b9050602081019050919050565b600061341c613417846133d8565b613198565b90508281526020810184848401111561343857613437613133565b5b6134438482856131e4565b509392505050565b600082601f8301126134605761345f61312e565b5b8135613470848260208601613409565b91505092915050565b6000806000806080858703121561349357613492612c7e565b5b60006134a187828801612ecb565b94505060206134b287828801612ecb565b93505060406134c387828801612e16565b925050606085013567ffffffffffffffff8111156134e4576134e3612c83565b5b6134f08782880161344b565b91505092959194509250565b600067ffffffffffffffff82111561351757613516613138565b5b602082029050602081019050919050565b600061353b613536846134fc565b613198565b9050808382526020820190506020840283018581111561355e5761355d61331d565b5b835b81811015613587578061357388826130c2565b845260208401935050602081019050613560565b5050509392505050565b600082601f8301126135a6576135a561312e565b5b81356135b6848260208601613528565b91505092915050565b600080604083850312156135d6576135d5612c7e565b5b600083013567ffffffffffffffff8111156135f4576135f3612c83565b5b61360085828601613591565b9250506020613611858286016130c2565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6003811061365b5761365a61361b565b5b50565b600081905061366c8261364a565b919050565b600061367c8261365e565b9050919050565b61368c81613671565b82525050565b60006020820190506136a76000830184613683565b92915050565b600080604083850312156136c4576136c3612c7e565b5b60006136d285828601612ecb565b92505060206136e385828601612ecb565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061373457607f821691505b602082108103613747576137466136ed565b5b50919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000613783601f83612d4e565b915061378e8261374d565b602082019050919050565b600060208201905081810360008301526137b281613776565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006137f382612df5565b91506137fe83612df5565b925082820261380c81612df5565b91508282048414831517613823576138226137b9565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061386482612df5565b915061386f83612df5565b92508261387f5761387e61382a565b5b828204905092915050565b600081905092915050565b50565b60006138a560008361388a565b91506138b082613895565b600082019050919050565b60006138c682613898565b9150819050919050565b7f657468206e6f742073656e7420746f20466f756e6465722c206e6f7420676f6f60008201527f6400000000000000000000000000000000000000000000000000000000000000602082015250565b600061392c602183612d4e565b9150613937826138d0565b604082019050919050565b6000602082019050818103600083015261395b8161391f565b9050919050565b7f657468206e6f742073656e7420746f20434d2c206e6f7420676f6f6400000000600082015250565b6000613998601c83612d4e565b91506139a382613962565b602082019050919050565b600060208201905081810360008301526139c78161398b565b9050919050565b7f657468206e6f742073656e7420746f204465762c206e6f7420676f6f64000000600082015250565b6000613a04601d83612d4e565b9150613a0f826139ce565b602082019050919050565b60006020820190508181036000830152613a33816139f7565b9050919050565b7f657468206e6f742073656e7420746f204a616d65782c206e6f7420676f6f6400600082015250565b6000613a70601f83612d4e565b9150613a7b82613a3a565b602082019050919050565b60006020820190508181036000830152613a9f81613a63565b9050919050565b7f657468206e6f742073656e7420746f20506564726f2c206e6f7420676f6f6400600082015250565b6000613adc601f83612d4e565b9150613ae782613aa6565b602082019050919050565b60006020820190508181036000830152613b0b81613acf565b9050919050565b7f657468206e6f742073656e7420746f204e46542046616d2c206e6f7420676f6f60008201527f6400000000000000000000000000000000000000000000000000000000000000602082015250565b6000613b6e602183612d4e565b9150613b7982613b12565b604082019050919050565b60006020820190508181036000830152613b9d81613b61565b9050919050565b7f5468652063616c6c657220697320616e6f7468657220636f6e74726163742e00600082015250565b6000613bda601f83612d4e565b9150613be582613ba4565b602082019050919050565b60006020820190508181036000830152613c0981613bcd565b9050919050565b7f5075626c69632073616c65206973206e6f742020616374697661746564000000600082015250565b6000613c46601d83612d4e565b9150613c5182613c10565b602082019050919050565b60006020820190508181036000830152613c7581613c39565b9050919050565b6000613c8782612df5565b9150613c9283612df5565b9250828201905080821115613caa57613ca96137b9565b5b92915050565b7f596f752063616e206f6e6c7920676574203230204e4654206f6e20746865205060008201527f75626c69632053616c6500000000000000000000000000000000000000000000602082015250565b6000613d0c602a83612d4e565b9150613d1782613cb0565b604082019050919050565b60006020820190508181036000830152613d3b81613cff565b9050919050565b6000613d4d82612fd1565b9150613d5883612fd1565b9250828201905061ffff811115613d7257613d716137b9565b5b92915050565b7f4d6178207075626c696320737570706c79206578636565646564000000000000600082015250565b6000613dae601a83612d4e565b9150613db982613d78565b602082019050919050565b60006020820190508181036000830152613ddd81613da1565b9050919050565b7f4d617820737570706c7920657863656564656400000000000000000000000000600082015250565b6000613e1a601383612d4e565b9150613e2582613de4565b602082019050919050565b60006020820190508181036000830152613e4981613e0d565b9050919050565b7f4e6f7420656e6f756768742066756e6473000000000000000000000000000000600082015250565b6000613e86601183612d4e565b9150613e9182613e50565b602082019050919050565b60006020820190508181036000830152613eb581613e79565b9050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302613f1e7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613ee1565b613f288683613ee1565b95508019841693508086168417925050509392505050565b6000819050919050565b6000613f65613f60613f5b84612df5565b613f40565b612df5565b9050919050565b6000819050919050565b613f7f83613f4a565b613f93613f8b82613f6c565b848454613eee565b825550505050565b600090565b613fa8613f9b565b613fb3818484613f76565b505050565b5b81811015613fd757613fcc600082613fa0565b600181019050613fb9565b5050565b601f82111561401c57613fed81613ebc565b613ff684613ed1565b81016020851015614005578190505b61401961401185613ed1565b830182613fb8565b50505b505050565b600082821c905092915050565b600061403f60001984600802614021565b1980831691505092915050565b6000614058838361402e565b9150826002028217905092915050565b61407182612d43565b67ffffffffffffffff81111561408a57614089613138565b5b614094825461371c565b61409f828285613fdb565b600060209050601f8311600181146140d257600084156140c0578287015190505b6140ca858261404c565b865550614132565b601f1984166140e086613ebc565b60005b82811015614108578489015182556001820191506020850194506020810190506140e3565b868310156141255784890151614121601f89168261402e565b8355505b6001600288020188555050505b505050505050565b7f53616c65206973206e6f74206163746976617465640000000000000000000000600082015250565b6000614170601583612d4e565b915061417b8261413a565b602082019050919050565b6000602082019050818103600083015261419f81614163565b9050919050565b60008160601b9050919050565b60006141be826141a6565b9050919050565b60006141d0826141b3565b9050919050565b6141e86141e382612e78565b6141c5565b82525050565b60006141fa82846141d7565b60148201915081905092915050565b7f4e6f7420696e2077686974656c697374204c6973740000000000000000000000600082015250565b600061423f601583612d4e565b915061424a82614209565b602082019050919050565b6000602082019050818103600083015261426e81614232565b9050919050565b7f596f752063616e206f6e6c79206765742033204e4654206f6e2074686520576860008201527f6974656c6973742053616c650000000000000000000000000000000000000000602082015250565b60006142d1602c83612d4e565b91506142dc82614275565b604082019050919050565b60006020820190508181036000830152614300816142c4565b9050919050565b7f4d61782077686974656c69737420737570706c79206578636565646564000000600082015250565b600061433d601d83612d4e565b915061434882614307565b602082019050919050565b6000602082019050818103600083015261436c81614330565b9050919050565b600061437e82613065565b915061438983613065565b925082820261439781613065565b91508082146143a9576143a86137b9565b5b5092915050565b7f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e00600082015250565b60006143e6601f83612d4e565b91506143f1826143b0565b602082019050919050565b60006020820190508181036000830152614415816143d9565b9050919050565b600081905092915050565b600081546144348161371c565b61443e818661441c565b94506001821660008114614459576001811461446e576144a1565b60ff19831686528115158202860193506144a1565b61447785613ebc565b60005b838110156144995781548189015260018201915060208101905061447a565b838801955050505b50505092915050565b60006144b582612d43565b6144bf818561441c565b93506144cf818560208601612d5f565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b600061451160058361441c565b915061451c826144db565b600582019050919050565b60006145338285614427565b915061453f82846144aa565b915061454a82614504565b91508190509392505050565b7f52656163686564206d617820537570706c7920666f7220746865207465616d00600082015250565b600061458c601f83612d4e565b915061459782614556565b602082019050919050565b600060208201905081810360008301526145bb8161457f565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061461e602683612d4e565b9150614629826145c2565b604082019050919050565b6000602082019050818103600083015261464d81614611565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061468a602083612d4e565b915061469582614654565b602082019050919050565b600060208201905081810360008301526146b98161467d565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006146e7826146c0565b6146f181856146cb565b9350614701818560208601612d5f565b61470a81612d89565b840191505092915050565b600060808201905061472a6000830187612e8a565b6147376020830186612e8a565b6147446040830185612f20565b818103606083015261475681846146dc565b905095945050505050565b60008151905061477081612cb4565b92915050565b60006020828403121561478c5761478b612c7e565b5b600061479a84828501614761565b91505092915050565b60006147ae82612df5565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036147e0576147df6137b9565b5b600182019050919050565b60006147f682612df5565b915061480183612df5565b9250828203905081811115614819576148186137b9565b5b92915050565b600061482a82612df5565b915061483583612df5565b9250826148455761484461382a565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fdfea2646970667358221220833994413c36ca88c926631d12f7bb37b10a23d43e92d86921d62ea8562aa9ae64736f6c6343000811003355f09d245f2f48ce0ee6bc9af3b46bf79f5bf8090ed81074dca0151e3982e0fd00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000007697066733a2f2f00000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106102045760003560e01c80638da5cb5b11610118578063b88d4fde116100a0578063cbccefb21161006f578063cbccefb21461074d578063cbce4c9714610778578063e985e9c5146107a1578063f2fde38b146107de578063f8dcbddb1461080757610204565b8063b88d4fde14610681578063b8a20ed0146106aa578063c020df48146106e7578063c87b56dd1461071057610204565b8063a0bcfc7f116100e7578063a0bcfc7f146105ab578063a22cb465146105d4578063a4f4f8af146105fd578063b182e81814610628578063b3c542151461064457610204565b80638da5cb5b146104ed57806395d89b411461051857806399d13800146105435780639b6860c81461058057610204565b8063405138961161019b57806370a082311161016a57806370a082311461041a578063715018a614610457578063734c66bd1461046e5780637cb64759146104995780638990694f146104c257610204565b8063405138961461036d57806342842e0e146103895780636352211e146103b25780636c0360eb146103ef57610204565b806318160ddd116101d757806318160ddd146102d757806323b872dd146103025780632eb4a7ab1461032b5780633ccfd60b1461035657610204565b806301ffc9a71461020957806306fdde0314610246578063081812fc14610271578063095ea7b3146102ae575b600080fd5b34801561021557600080fd5b50610230600480360381019061022b9190612ce0565b610830565b60405161023d9190612d28565b60405180910390f35b34801561025257600080fd5b5061025b6108c2565b6040516102689190612dd3565b60405180910390f35b34801561027d57600080fd5b5061029860048036038101906102939190612e2b565b610954565b6040516102a59190612e99565b60405180910390f35b3480156102ba57600080fd5b506102d560048036038101906102d09190612ee0565b6109d3565b005b3480156102e357600080fd5b506102ec610b17565b6040516102f99190612f2f565b60405180910390f35b34801561030e57600080fd5b5061032960048036038101906103249190612f4a565b610b2e565b005b34801561033757600080fd5b50610340610e50565b60405161034d9190612fb6565b60405180910390f35b34801561036257600080fd5b5061036b610e56565b005b6103876004803603810190610382919061300b565b611479565b005b34801561039557600080fd5b506103b060048036038101906103ab9190612f4a565b611769565b005b3480156103be57600080fd5b506103d960048036038101906103d49190612e2b565b611789565b6040516103e69190612e99565b60405180910390f35b3480156103fb57600080fd5b5061040461179b565b6040516104119190612dd3565b60405180910390f35b34801561042657600080fd5b50610441600480360381019061043c9190613038565b611829565b60405161044e9190612f2f565b60405180910390f35b34801561046357600080fd5b5061046c6118e1565b005b34801561047a57600080fd5b506104836118f5565b6040516104909190613090565b60405180910390f35b3480156104a557600080fd5b506104c060048036038101906104bb91906130d7565b611917565b005b3480156104ce57600080fd5b506104d7611929565b6040516104e49190613113565b60405180910390f35b3480156104f957600080fd5b5061050261193d565b60405161050f9190612e99565b60405180910390f35b34801561052457600080fd5b5061052d611966565b60405161053a9190612dd3565b60405180910390f35b34801561054f57600080fd5b5061056a60048036038101906105659190613038565b6119f8565b6040516105779190612f2f565b60405180910390f35b34801561058c57600080fd5b50610595611a10565b6040516105a29190613090565b60405180910390f35b3480156105b757600080fd5b506105d260048036038101906105cd9190613263565b611a32565b005b3480156105e057600080fd5b506105fb60048036038101906105f691906132d8565b611a4d565b005b34801561060957600080fd5b50610612611b58565b60405161061f9190613113565b60405180910390f35b610642600480360381019061063d9190613378565b611b6c565b005b34801561065057600080fd5b5061066b60048036038101906106669190613038565b611f9a565b6040516106789190612f2f565b60405180910390f35b34801561068d57600080fd5b506106a860048036038101906106a39190613479565b611fb2565b005b3480156106b657600080fd5b506106d160048036038101906106cc91906135bf565b612025565b6040516106de9190612d28565b60405180910390f35b3480156106f357600080fd5b5061070e60048036038101906107099190612e2b565b61203c565b005b34801561071c57600080fd5b5061073760048036038101906107329190612e2b565b61204e565b6040516107449190612dd3565b60405180910390f35b34801561075957600080fd5b506107626120ca565b60405161076f9190613692565b60405180910390f35b34801561078457600080fd5b5061079f600480360381019061079a9190612ee0565b6120dd565b005b3480156107ad57600080fd5b506107c860048036038101906107c391906136ad565b61214e565b6040516107d59190612d28565b60405180910390f35b3480156107ea57600080fd5b5061080560048036038101906108009190613038565b6121e2565b005b34801561081357600080fd5b5061082e60048036038101906108299190612e2b565b612265565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061088b57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806108bb5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b6060600380546108d19061371c565b80601f01602080910402602001604051908101604052809291908181526020018280546108fd9061371c565b801561094a5780601f1061091f5761010080835404028352916020019161094a565b820191906000526020600020905b81548152906001019060200180831161092d57829003601f168201915b5050505050905090565b600061095f826122ac565b610995576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6007600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006109de82611789565b90508073ffffffffffffffffffffffffffffffffffffffff166109ff61230b565b73ffffffffffffffffffffffffffffffffffffffff1614610a6257610a2b81610a2661230b565b61214e565b610a61576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826007600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000610b21612313565b6002546001540303905090565b6000610b3982612318565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610ba0576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610bac846123e4565b91509150610bc28187610bbd61230b565b61240b565b610c0e57610bd786610bd261230b565b61214e565b610c0d576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603610c74576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610c81868686600161244f565b8015610c8c57600082555b600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610d5a85610d36888887612455565b7c02000000000000000000000000000000000000000000000000000000001761247d565b600560008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603610de05760006001850190506000600560008381526020019081526020016000205403610dde576001548114610ddd578360056000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610e4886868660016124a8565b505050505050565b600c5481565b610e5e6124ae565b600260095403610ea3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e9a90613799565b60405180910390fd5b60026009819055506103e8601a5447610ebc91906137e8565b610ec69190613859565b6013819055506103e8601b5447610edd91906137e8565b610ee79190613859565b6014819055506103e8601c5447610efe91906137e8565b610f089190613859565b6015819055506103e8601d5447610f1f91906137e8565b610f299190613859565b6016819055506103e8601e5447610f4091906137e8565b610f4a9190613859565b6017819055506103e8601f5447610f6191906137e8565b610f6b9190613859565b6018819055506000600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16601954601354604051610fbe906138bb565b600060405180830381858888f193505050503d8060008114610ffc576040519150601f19603f3d011682016040523d82523d6000602084013e611001565b606091505b5050905080611045576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161103c90613942565b60405180910390fd5b6000600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16601954601454604051611092906138bb565b600060405180830381858888f193505050503d80600081146110d0576040519150601f19603f3d011682016040523d82523d6000602084013e6110d5565b606091505b5050905080611119576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611110906139ae565b60405180910390fd5b6000600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16601954601554604051611166906138bb565b600060405180830381858888f193505050503d80600081146111a4576040519150601f19603f3d011682016040523d82523d6000602084013e6111a9565b606091505b50509050806111ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111e490613a1a565b60405180910390fd5b6000601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1660195460165460405161123a906138bb565b600060405180830381858888f193505050503d8060008114611278576040519150601f19603f3d011682016040523d82523d6000602084013e61127d565b606091505b50509050806112c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112b890613a86565b60405180910390fd5b6000601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1660195460175460405161130e906138bb565b600060405180830381858888f193505050503d806000811461134c576040519150601f19603f3d011682016040523d82523d6000602084013e611351565b606091505b5050905080611395576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161138c90613af2565b60405180910390fd5b6000601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166019546018546040516113e2906138bb565b600060405180830381858888f193505050503d8060008114611420576040519150601f19603f3d011682016040523d82523d6000602084013e611425565b606091505b5050905080611469576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161146090613b84565b60405180910390fd5b5050505050506001600981905550565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff16146114e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114de90613bf0565b60405180910390fd5b600160028111156114fb576114fa61361b565b5b600b60009054906101000a900460ff16600281111561151d5761151c61361b565b5b1461155d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161155490613c5c565b60405180910390fd5b600b60069054906101000a900460ff1660ff168161ffff16602260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546115bf9190613c7c565b1115611600576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115f790613d22565b60405180910390fd5b610dac61ffff1681600b60039054906101000a900461ffff166116239190613d42565b61ffff161115611668576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161165f90613dc4565b60405180910390fd5b61138861ffff168161ffff1661167c610b17565b6116869190613c7c565b11156116c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116be90613e30565b60405180910390fd5b8061ffff166116d461252c565b6116de91906137e8565b341015611720576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161171790613e9c565b60405180910390fd5b61172e338261ffff166125b8565b80600b60039054906101000a900461ffff1661174a9190613d42565b600b60036101000a81548161ffff021916908361ffff16021790555050565b61178483838360405180602001604052806000815250611fb2565b505050565b600061179482612318565b9050919050565b600a80546117a89061371c565b80601f01602080910402602001604051908101604052809291908181526020018280546117d49061371c565b80156118215780601f106117f657610100808354040283529160200191611821565b820191906000526020600020905b81548152906001019060200180831161180457829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611890576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b6118e96124ae565b6118f360006125d6565b565b602060009054906101000a90046fffffffffffffffffffffffffffffffff1681565b61191f6124ae565b80600c8190555050565b600b60019054906101000a900461ffff1681565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600480546119759061371c565b80601f01602080910402602001604051908101604052809291908181526020018280546119a19061371c565b80156119ee5780601f106119c3576101008083540402835291602001916119ee565b820191906000526020600020905b8154815290600101906020018083116119d157829003601f168201915b5050505050905090565b60216020528060005260406000206000915090505481565b602060109054906101000a90046fffffffffffffffffffffffffffffffff1681565b611a3a6124ae565b80600a9081611a499190614068565b5050565b8060086000611a5a61230b565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611b0761230b565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611b4c9190612d28565b60405180910390a35050565b600b60039054906101000a900461ffff1681565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614611bda576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bd190613bf0565b60405180910390fd5b60016002811115611bee57611bed61361b565b5b600b60009054906101000a900460ff166002811115611c1057611c0f61361b565b5b14611c50576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c4790614186565b60405180910390fd5b611cc1828280806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505033604051602001611ca691906141ee565b60405160208183030381529060405280519060200120612025565b611d00576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cf790614255565b60405180910390fd5b600b60059054906101000a900460ff1660ff168361ffff16602160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611d629190613c7c565b1115611da3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d9a906142e7565b60405180910390fd5b6105dc61ffff1683600b60019054906101000a900461ffff16611dc69190613d42565b61ffff161115611e0b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e0290614353565b60405180910390fd5b61138861ffff1683600b60019054906101000a900461ffff16611e2e9190613d42565b61ffff161115611e73576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e6a90613e30565b60405180910390fd5b8261ffff16602060009054906101000a90046fffffffffffffffffffffffffffffffff16611ea19190614373565b6fffffffffffffffffffffffffffffffff16341015611ef5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611eec90613e9c565b60405180910390fd5b8261ffff16602160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611f489190613c7c565b92505081905550611f5d338461ffff166125b8565b82600b60019054906101000a900461ffff16611f799190613d42565b600b60016101000a81548161ffff021916908361ffff160217905550505050565b60226020528060005260406000206000915090505481565b611fbd848484610b2e565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461201f57611fe88484848461269a565b61201e576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b600061203483600c54846127ea565b905092915050565b6120446124ae565b8060198190555050565b6060612059826122ac565b612098576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161208f906143fc565b60405180910390fd5b600a6120a383612801565b6040516020016120b4929190614527565b6040516020818303038152906040529050919050565b600b60009054906101000a900460ff1681565b6120e56124ae565b61138861ffff16816120f5610b17565b6120ff9190613c7c565b1115612140576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612137906145a2565b60405180910390fd5b61214a82826125b8565b5050565b6000600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6121ea6124ae565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612259576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161225090614634565b60405180910390fd5b612262816125d6565b50565b61226d6124ae565b8060028111156122805761227f61361b565b5b600b60006101000a81548160ff021916908360028111156122a4576122a361361b565b5b021790555050565b6000816122b7612313565b111580156122c6575060015482105b8015612304575060007c0100000000000000000000000000000000000000000000000000000000600560008581526020019081526020016000205416145b9050919050565b600033905090565b600090565b60008082905080612327612313565b116123ad576001548110156123ac5760006005600083815260200190815260200160002054905060007c01000000000000000000000000000000000000000000000000000000008216036123aa575b600081036123a0576005600083600190039350838152602001908152602001600020549050612376565b80925050506123df565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006007600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e861246c868684612961565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6124b661296a565b73ffffffffffffffffffffffffffffffffffffffff166124d461193d565b73ffffffffffffffffffffffffffffffffffffffff161461252a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612521906146a0565b60405180910390fd5b565b60006103e8600b60039054906101000a900461ffff1661ffff16106125585766470de4df820000612561565b662386f26fc100005b66ffffffffffffff16602060106101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790556fffffffffffffffffffffffffffffffff16905090565b6125d2828260405180602001604052806000815250612972565b5050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026126c061230b565b8786866040518563ffffffff1660e01b81526004016126e29493929190614715565b6020604051808303816000875af192505050801561271e57506040513d601f19601f8201168201806040525081019061271b9190614776565b60015b612797573d806000811461274e576040519150601f19603f3d011682016040523d82523d6000602084013e612753565b606091505b50600081510361278f576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6000826127f78584612a10565b1490509392505050565b606060008203612848576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061295c565b600082905060005b6000821461287a578080612863906147a3565b915050600a826128739190613859565b9150612850565b60008167ffffffffffffffff81111561289657612895613138565b5b6040519080825280601f01601f1916602001820160405280156128c85781602001600182028036833780820191505090505b5090505b60008514612955576001826128e191906147eb565b9150600a856128f0919061481f565b60306128fc9190613c7c565b60f81b81838151811061291257612911614850565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561294e9190613859565b94506128cc565b8093505050505b919050565b60009392505050565b600033905090565b61297c8383612a66565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612a0b5760006001549050600083820390505b6129bd600086838060010194508661269a565b6129f3576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181106129aa578160015414612a0857600080fd5b50505b505050565b60008082905060005b8451811015612a5b57612a4682868381518110612a3957612a38614850565b5b6020026020010151612c22565b91508080612a53906147a3565b915050612a19565b508091505092915050565b6000600154905060008203612aa7576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612ab4600084838561244f565b600160406001901b178202600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612b2b83612b1c6000866000612455565b612b2585612c4d565b1761247d565b6005600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b818114612bcc57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050612b91565b5060008203612c07576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806001819055505050612c1d60008483856124a8565b505050565b6000818310612c3a57612c358284612c5d565b612c45565b612c448383612c5d565b5b905092915050565b60006001821460e11b9050919050565b600082600052816020526040600020905092915050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612cbd81612c88565b8114612cc857600080fd5b50565b600081359050612cda81612cb4565b92915050565b600060208284031215612cf657612cf5612c7e565b5b6000612d0484828501612ccb565b91505092915050565b60008115159050919050565b612d2281612d0d565b82525050565b6000602082019050612d3d6000830184612d19565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612d7d578082015181840152602081019050612d62565b60008484015250505050565b6000601f19601f8301169050919050565b6000612da582612d43565b612daf8185612d4e565b9350612dbf818560208601612d5f565b612dc881612d89565b840191505092915050565b60006020820190508181036000830152612ded8184612d9a565b905092915050565b6000819050919050565b612e0881612df5565b8114612e1357600080fd5b50565b600081359050612e2581612dff565b92915050565b600060208284031215612e4157612e40612c7e565b5b6000612e4f84828501612e16565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612e8382612e58565b9050919050565b612e9381612e78565b82525050565b6000602082019050612eae6000830184612e8a565b92915050565b612ebd81612e78565b8114612ec857600080fd5b50565b600081359050612eda81612eb4565b92915050565b60008060408385031215612ef757612ef6612c7e565b5b6000612f0585828601612ecb565b9250506020612f1685828601612e16565b9150509250929050565b612f2981612df5565b82525050565b6000602082019050612f446000830184612f20565b92915050565b600080600060608486031215612f6357612f62612c7e565b5b6000612f7186828701612ecb565b9350506020612f8286828701612ecb565b9250506040612f9386828701612e16565b9150509250925092565b6000819050919050565b612fb081612f9d565b82525050565b6000602082019050612fcb6000830184612fa7565b92915050565b600061ffff82169050919050565b612fe881612fd1565b8114612ff357600080fd5b50565b60008135905061300581612fdf565b92915050565b60006020828403121561302157613020612c7e565b5b600061302f84828501612ff6565b91505092915050565b60006020828403121561304e5761304d612c7e565b5b600061305c84828501612ecb565b91505092915050565b60006fffffffffffffffffffffffffffffffff82169050919050565b61308a81613065565b82525050565b60006020820190506130a56000830184613081565b92915050565b6130b481612f9d565b81146130bf57600080fd5b50565b6000813590506130d1816130ab565b92915050565b6000602082840312156130ed576130ec612c7e565b5b60006130fb848285016130c2565b91505092915050565b61310d81612fd1565b82525050565b60006020820190506131286000830184613104565b92915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61317082612d89565b810181811067ffffffffffffffff8211171561318f5761318e613138565b5b80604052505050565b60006131a2612c74565b90506131ae8282613167565b919050565b600067ffffffffffffffff8211156131ce576131cd613138565b5b6131d782612d89565b9050602081019050919050565b82818337600083830152505050565b6000613206613201846131b3565b613198565b90508281526020810184848401111561322257613221613133565b5b61322d8482856131e4565b509392505050565b600082601f83011261324a5761324961312e565b5b813561325a8482602086016131f3565b91505092915050565b60006020828403121561327957613278612c7e565b5b600082013567ffffffffffffffff81111561329757613296612c83565b5b6132a384828501613235565b91505092915050565b6132b581612d0d565b81146132c057600080fd5b50565b6000813590506132d2816132ac565b92915050565b600080604083850312156132ef576132ee612c7e565b5b60006132fd85828601612ecb565b925050602061330e858286016132c3565b9150509250929050565b600080fd5b600080fd5b60008083601f8401126133385761333761312e565b5b8235905067ffffffffffffffff81111561335557613354613318565b5b6020830191508360208202830111156133715761337061331d565b5b9250929050565b60008060006040848603121561339157613390612c7e565b5b600061339f86828701612ff6565b935050602084013567ffffffffffffffff8111156133c0576133bf612c83565b5b6133cc86828701613322565b92509250509250925092565b600067ffffffffffffffff8211156133f3576133f2613138565b5b6133fc82612d89565b9050602081019050919050565b600061341c613417846133d8565b613198565b90508281526020810184848401111561343857613437613133565b5b6134438482856131e4565b509392505050565b600082601f8301126134605761345f61312e565b5b8135613470848260208601613409565b91505092915050565b6000806000806080858703121561349357613492612c7e565b5b60006134a187828801612ecb565b94505060206134b287828801612ecb565b93505060406134c387828801612e16565b925050606085013567ffffffffffffffff8111156134e4576134e3612c83565b5b6134f08782880161344b565b91505092959194509250565b600067ffffffffffffffff82111561351757613516613138565b5b602082029050602081019050919050565b600061353b613536846134fc565b613198565b9050808382526020820190506020840283018581111561355e5761355d61331d565b5b835b81811015613587578061357388826130c2565b845260208401935050602081019050613560565b5050509392505050565b600082601f8301126135a6576135a561312e565b5b81356135b6848260208601613528565b91505092915050565b600080604083850312156135d6576135d5612c7e565b5b600083013567ffffffffffffffff8111156135f4576135f3612c83565b5b61360085828601613591565b9250506020613611858286016130c2565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6003811061365b5761365a61361b565b5b50565b600081905061366c8261364a565b919050565b600061367c8261365e565b9050919050565b61368c81613671565b82525050565b60006020820190506136a76000830184613683565b92915050565b600080604083850312156136c4576136c3612c7e565b5b60006136d285828601612ecb565b92505060206136e385828601612ecb565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061373457607f821691505b602082108103613747576137466136ed565b5b50919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000613783601f83612d4e565b915061378e8261374d565b602082019050919050565b600060208201905081810360008301526137b281613776565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006137f382612df5565b91506137fe83612df5565b925082820261380c81612df5565b91508282048414831517613823576138226137b9565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061386482612df5565b915061386f83612df5565b92508261387f5761387e61382a565b5b828204905092915050565b600081905092915050565b50565b60006138a560008361388a565b91506138b082613895565b600082019050919050565b60006138c682613898565b9150819050919050565b7f657468206e6f742073656e7420746f20466f756e6465722c206e6f7420676f6f60008201527f6400000000000000000000000000000000000000000000000000000000000000602082015250565b600061392c602183612d4e565b9150613937826138d0565b604082019050919050565b6000602082019050818103600083015261395b8161391f565b9050919050565b7f657468206e6f742073656e7420746f20434d2c206e6f7420676f6f6400000000600082015250565b6000613998601c83612d4e565b91506139a382613962565b602082019050919050565b600060208201905081810360008301526139c78161398b565b9050919050565b7f657468206e6f742073656e7420746f204465762c206e6f7420676f6f64000000600082015250565b6000613a04601d83612d4e565b9150613a0f826139ce565b602082019050919050565b60006020820190508181036000830152613a33816139f7565b9050919050565b7f657468206e6f742073656e7420746f204a616d65782c206e6f7420676f6f6400600082015250565b6000613a70601f83612d4e565b9150613a7b82613a3a565b602082019050919050565b60006020820190508181036000830152613a9f81613a63565b9050919050565b7f657468206e6f742073656e7420746f20506564726f2c206e6f7420676f6f6400600082015250565b6000613adc601f83612d4e565b9150613ae782613aa6565b602082019050919050565b60006020820190508181036000830152613b0b81613acf565b9050919050565b7f657468206e6f742073656e7420746f204e46542046616d2c206e6f7420676f6f60008201527f6400000000000000000000000000000000000000000000000000000000000000602082015250565b6000613b6e602183612d4e565b9150613b7982613b12565b604082019050919050565b60006020820190508181036000830152613b9d81613b61565b9050919050565b7f5468652063616c6c657220697320616e6f7468657220636f6e74726163742e00600082015250565b6000613bda601f83612d4e565b9150613be582613ba4565b602082019050919050565b60006020820190508181036000830152613c0981613bcd565b9050919050565b7f5075626c69632073616c65206973206e6f742020616374697661746564000000600082015250565b6000613c46601d83612d4e565b9150613c5182613c10565b602082019050919050565b60006020820190508181036000830152613c7581613c39565b9050919050565b6000613c8782612df5565b9150613c9283612df5565b9250828201905080821115613caa57613ca96137b9565b5b92915050565b7f596f752063616e206f6e6c7920676574203230204e4654206f6e20746865205060008201527f75626c69632053616c6500000000000000000000000000000000000000000000602082015250565b6000613d0c602a83612d4e565b9150613d1782613cb0565b604082019050919050565b60006020820190508181036000830152613d3b81613cff565b9050919050565b6000613d4d82612fd1565b9150613d5883612fd1565b9250828201905061ffff811115613d7257613d716137b9565b5b92915050565b7f4d6178207075626c696320737570706c79206578636565646564000000000000600082015250565b6000613dae601a83612d4e565b9150613db982613d78565b602082019050919050565b60006020820190508181036000830152613ddd81613da1565b9050919050565b7f4d617820737570706c7920657863656564656400000000000000000000000000600082015250565b6000613e1a601383612d4e565b9150613e2582613de4565b602082019050919050565b60006020820190508181036000830152613e4981613e0d565b9050919050565b7f4e6f7420656e6f756768742066756e6473000000000000000000000000000000600082015250565b6000613e86601183612d4e565b9150613e9182613e50565b602082019050919050565b60006020820190508181036000830152613eb581613e79565b9050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302613f1e7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613ee1565b613f288683613ee1565b95508019841693508086168417925050509392505050565b6000819050919050565b6000613f65613f60613f5b84612df5565b613f40565b612df5565b9050919050565b6000819050919050565b613f7f83613f4a565b613f93613f8b82613f6c565b848454613eee565b825550505050565b600090565b613fa8613f9b565b613fb3818484613f76565b505050565b5b81811015613fd757613fcc600082613fa0565b600181019050613fb9565b5050565b601f82111561401c57613fed81613ebc565b613ff684613ed1565b81016020851015614005578190505b61401961401185613ed1565b830182613fb8565b50505b505050565b600082821c905092915050565b600061403f60001984600802614021565b1980831691505092915050565b6000614058838361402e565b9150826002028217905092915050565b61407182612d43565b67ffffffffffffffff81111561408a57614089613138565b5b614094825461371c565b61409f828285613fdb565b600060209050601f8311600181146140d257600084156140c0578287015190505b6140ca858261404c565b865550614132565b601f1984166140e086613ebc565b60005b82811015614108578489015182556001820191506020850194506020810190506140e3565b868310156141255784890151614121601f89168261402e565b8355505b6001600288020188555050505b505050505050565b7f53616c65206973206e6f74206163746976617465640000000000000000000000600082015250565b6000614170601583612d4e565b915061417b8261413a565b602082019050919050565b6000602082019050818103600083015261419f81614163565b9050919050565b60008160601b9050919050565b60006141be826141a6565b9050919050565b60006141d0826141b3565b9050919050565b6141e86141e382612e78565b6141c5565b82525050565b60006141fa82846141d7565b60148201915081905092915050565b7f4e6f7420696e2077686974656c697374204c6973740000000000000000000000600082015250565b600061423f601583612d4e565b915061424a82614209565b602082019050919050565b6000602082019050818103600083015261426e81614232565b9050919050565b7f596f752063616e206f6e6c79206765742033204e4654206f6e2074686520576860008201527f6974656c6973742053616c650000000000000000000000000000000000000000602082015250565b60006142d1602c83612d4e565b91506142dc82614275565b604082019050919050565b60006020820190508181036000830152614300816142c4565b9050919050565b7f4d61782077686974656c69737420737570706c79206578636565646564000000600082015250565b600061433d601d83612d4e565b915061434882614307565b602082019050919050565b6000602082019050818103600083015261436c81614330565b9050919050565b600061437e82613065565b915061438983613065565b925082820261439781613065565b91508082146143a9576143a86137b9565b5b5092915050565b7f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e00600082015250565b60006143e6601f83612d4e565b91506143f1826143b0565b602082019050919050565b60006020820190508181036000830152614415816143d9565b9050919050565b600081905092915050565b600081546144348161371c565b61443e818661441c565b94506001821660008114614459576001811461446e576144a1565b60ff19831686528115158202860193506144a1565b61447785613ebc565b60005b838110156144995781548189015260018201915060208101905061447a565b838801955050505b50505092915050565b60006144b582612d43565b6144bf818561441c565b93506144cf818560208601612d5f565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b600061451160058361441c565b915061451c826144db565b600582019050919050565b60006145338285614427565b915061453f82846144aa565b915061454a82614504565b91508190509392505050565b7f52656163686564206d617820537570706c7920666f7220746865207465616d00600082015250565b600061458c601f83612d4e565b915061459782614556565b602082019050919050565b600060208201905081810360008301526145bb8161457f565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061461e602683612d4e565b9150614629826145c2565b604082019050919050565b6000602082019050818103600083015261464d81614611565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061468a602083612d4e565b915061469582614654565b602082019050919050565b600060208201905081810360008301526146b98161467d565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006146e7826146c0565b6146f181856146cb565b9350614701818560208601612d5f565b61470a81612d89565b840191505092915050565b600060808201905061472a6000830187612e8a565b6147376020830186612e8a565b6147446040830185612f20565b818103606083015261475681846146dc565b905095945050505050565b60008151905061477081612cb4565b92915050565b60006020828403121561478c5761478b612c7e565b5b600061479a84828501614761565b91505092915050565b60006147ae82612df5565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036147e0576147df6137b9565b5b600182019050919050565b60006147f682612df5565b915061480183612df5565b9250828203905081811115614819576148186137b9565b5b92915050565b600061482a82612df5565b915061483583612df5565b9250826148455761484461382a565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fdfea2646970667358221220833994413c36ca88c926631d12f7bb37b10a23d43e92d86921d62ea8562aa9ae64736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
55f09d245f2f48ce0ee6bc9af3b46bf79f5bf8090ed81074dca0151e3982e0fd00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000007697066733a2f2f00000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _merkleRoot (bytes32): 0x55f09d245f2f48ce0ee6bc9af3b46bf79f5bf8090ed81074dca0151e3982e0fd
Arg [1] : _baseURI (string): ipfs://
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 55f09d245f2f48ce0ee6bc9af3b46bf79f5bf8090ed81074dca0151e3982e0fd
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000007
Arg [3] : 697066733a2f2f00000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.