Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 441 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Approval For... | 20132939 | 74 days ago | IN | 0 ETH | 0.00060225 | ||||
Set Approval For... | 19098757 | 219 days ago | IN | 0 ETH | 0.00121756 | ||||
Transfer From | 19098688 | 219 days ago | IN | 0 ETH | 0.0012604 | ||||
Transfer From | 19098655 | 219 days ago | IN | 0 ETH | 0.00067253 | ||||
Transfer From | 19098601 | 219 days ago | IN | 0 ETH | 0.00107889 | ||||
Set Approval For... | 19015082 | 231 days ago | IN | 0 ETH | 0.00098811 | ||||
Set Approval For... | 18800017 | 261 days ago | IN | 0 ETH | 0.00126141 | ||||
Set Approval For... | 18635603 | 284 days ago | IN | 0 ETH | 0.0010487 | ||||
Set Approval For... | 18532513 | 299 days ago | IN | 0 ETH | 0.00069471 | ||||
Set Approval For... | 18403726 | 317 days ago | IN | 0 ETH | 0.00029228 | ||||
Set Approval For... | 18147886 | 352 days ago | IN | 0 ETH | 0.00027324 | ||||
Set Approval For... | 18058022 | 365 days ago | IN | 0 ETH | 0.00033317 | ||||
Set Approval For... | 18058021 | 365 days ago | IN | 0 ETH | 0.00058512 | ||||
Safe Transfer Fr... | 17869822 | 391 days ago | IN | 0 ETH | 0.0019472 | ||||
Set Approval For... | 17866953 | 392 days ago | IN | 0 ETH | 0.00037239 | ||||
Withdraw | 17835263 | 396 days ago | IN | 0 ETH | 0.00166438 | ||||
Set Sale State | 17827821 | 397 days ago | IN | 0 ETH | 0.00121273 | ||||
Public Mint | 17797793 | 401 days ago | IN | 0.26 ETH | 0.00116043 | ||||
Set Approval For... | 17656918 | 421 days ago | IN | 0 ETH | 0.00109886 | ||||
Set Approval For... | 17627499 | 425 days ago | IN | 0 ETH | 0.00250648 | ||||
Public Mint | 17625163 | 426 days ago | IN | 0.13 ETH | 0.00279343 | ||||
Set Approval For... | 17566080 | 434 days ago | IN | 0 ETH | 0.00033202 | ||||
Set Approval For... | 17556509 | 435 days ago | IN | 0 ETH | 0.00063246 | ||||
Set Approval For... | 17429617 | 453 days ago | IN | 0 ETH | 0.0014541 | ||||
Set Base URI | 17372665 | 461 days ago | IN | 0 ETH | 0.00290169 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
17835263 | 396 days ago | 0.3705 ETH | ||||
17835263 | 396 days ago | 0.0195 ETH | ||||
17045316 | 507 days ago | 0.3705 ETH | ||||
17045316 | 507 days ago | 0.0195 ETH | ||||
16884296 | 530 days ago | 0.3705 ETH | ||||
16884296 | 530 days ago | 0.0195 ETH | ||||
16512952 | 582 days ago | 0.741 ETH | ||||
16512952 | 582 days ago | 0.039 ETH | ||||
16462674 | 589 days ago | 2.223 ETH | ||||
16462674 | 589 days ago | 0.117 ETH | ||||
16406601 | 597 days ago | 0.6175 ETH | ||||
16406601 | 597 days ago | 0.0325 ETH | ||||
16344125 | 606 days ago | 0.247 ETH | ||||
16344125 | 606 days ago | 0.013 ETH | ||||
16322588 | 609 days ago | 0.8645 ETH | ||||
16322588 | 609 days ago | 0.0455 ETH | ||||
16299933 | 612 days ago | 1.235 ETH | ||||
16299933 | 612 days ago | 0.065 ETH | ||||
16221104 | 623 days ago | 0.741 ETH | ||||
16221104 | 623 days ago | 0.039 ETH | ||||
16147328 | 633 days ago | 0.741 ETH | ||||
16147328 | 633 days ago | 0.039 ETH | ||||
16133855 | 635 days ago | 1.482 ETH | ||||
16133855 | 635 days ago | 0.078 ETH | ||||
16086661 | 642 days ago | 2.0995 ETH |
Loading...
Loading
Contract Name:
VendettaSociety
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.7; import "erc721a/contracts/ERC721A.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; error InsufficientFunds(); error MintingTooMany(); error SaleNotStarted(); error InvalidProof(); error CannotBeCalledByContract(); /** * @title Vendetta Society Minting Contract * @notice This contract is intended to allow users to mint ERC-721A NFTs to the Vendetta Society Collection */ contract VendettaSociety is ERC721A, Ownable { using Strings for uint256; enum SaleState { CLOSED, ALLOWLIST, PUBLIC } /** * @dev Constant variables cannot be changed after deployment */ uint256 public constant COLLECTION_SIZE = 2222; uint256 public constant MAX_MINT_AMOUNT = 10; uint256 public constant MINT_PRICE = 0.13 ether; string public BASE_URI; string public UNREVEALED_URI = "ipfs://bafkreih53eg2hlh2mcn7i7tbjyercdndvgdwli7xoc3qenyfielxth63gu"; bool public isRevealed = false; address public constant COMMUNITY_WALLET = 0xe856D6837ac526Ad4497Ec3a980A4FE2c2Fb5391; bytes32 public allowlistMerkleRoot; SaleState public saleState; /** * @notice Mapping that returns the number of NFTs minted by an address * @return uint256 Number of NFTs minted */ mapping(address => uint256) public nftsMinted; /** * @notice Modifier that stops other contracts from interacting with this one */ modifier callerIsUser() { if (tx.origin != msg.sender) revert CannotBeCalledByContract(); _; } /** * @dev Initially sets up the sale as closed * @param _allowlistMerkleRoot bytes32 Allowlist Merkle Root */ constructor(bytes32 _allowlistMerkleRoot) ERC721A("Vendetta Society", "VD") { saleState = SaleState.CLOSED; allowlistMerkleRoot = _allowlistMerkleRoot; _safeMint(COMMUNITY_WALLET, 322); } /** * @notice Allows allowlisted users to mint NFTs * @dev saleState must be 1 * @param _merkleProof bytes32[] Merkle Proof * @param _mintAmount uint256 Mint Amount */ function allowlistMint(bytes32[] memory _merkleProof, uint256 _mintAmount) public payable callerIsUser { if (totalSupply() + _mintAmount > COLLECTION_SIZE) revert MintingTooMany(); if (saleState != SaleState.ALLOWLIST) revert SaleNotStarted(); if (nftsMinted[msg.sender] + _mintAmount > MAX_MINT_AMOUNT) revert MintingTooMany(); if (msg.value < _mintAmount * MINT_PRICE) revert InsufficientFunds(); bytes32 leaf = keccak256(abi.encodePacked(msg.sender)); if (!(MerkleProof.verify(_merkleProof, allowlistMerkleRoot, leaf))) revert InvalidProof(); nftsMinted[msg.sender] += _mintAmount; _safeMint(msg.sender, _mintAmount); } /** * @notice Allows any user to mint NFTs * @dev saleState must be 2 * @param _mintAmount uint256 Mint Amount */ function publicMint(uint256 _mintAmount) public payable callerIsUser { if (totalSupply() + _mintAmount > COLLECTION_SIZE) revert MintingTooMany(); if (saleState != SaleState.PUBLIC) revert SaleNotStarted(); if (nftsMinted[msg.sender] + _mintAmount > MAX_MINT_AMOUNT) revert MintingTooMany(); if (msg.value < _mintAmount * MINT_PRICE) revert InsufficientFunds(); nftsMinted[msg.sender] += _mintAmount; _safeMint(msg.sender, _mintAmount); } /** * @notice Mints community mint amount to community wallet */ function communityMint(uint256 _amount) public onlyOwner { _safeMint(COMMUNITY_WALLET, _amount); } /** * @notice Mints rest of collection to community wallet */ function mintRestOfCollection() public onlyOwner { uint256 mintAmount = COLLECTION_SIZE - totalSupply(); _safeMint(COMMUNITY_WALLET, mintAmount); } /** * @notice Sets a new allowlist merkle root * @param _allowlistMerkleRoot bytes32 Allowlist Merkle Root */ function setAllowlistMerkleRoot(bytes32 _allowlistMerkleRoot) public onlyOwner { allowlistMerkleRoot = _allowlistMerkleRoot; } /** * @notice Sets the sale state * @dev 0 = Closed, 1 = Allowlist Sale, 2 = Public Sale * @param _saleState uint256 Sale State number */ function setSaleState(uint256 _saleState) public onlyOwner { saleState = SaleState(_saleState); } /** * @notice Sets the baseURI * @param _baseURI uint256 Sale State number */ function setBaseURI(string memory _baseURI) public onlyOwner { BASE_URI = _baseURI; } function setUnrevealedURI(string memory _unrevealedURI) public onlyOwner { UNREVEALED_URI = _unrevealedURI; } function setIsRevealed(bool _isRevealed) public onlyOwner { isRevealed = _isRevealed; } /** * @notice Get tokenURI for a given token ID * @param _tokenId uint256 ID of the token to query * @return string token URI */ function tokenURI(uint256 _tokenId) public view override returns (string memory) { require( _exists(_tokenId), "ERC721URIStorage: URI query for nonexistent token" ); if (!isRevealed) { return UNREVEALED_URI; } return string(abi.encodePacked(BASE_URI, _tokenId.toString(), ".json")); } // /** // * @notice Withdraws all ETH from the contract to owner wallet // */ function withdraw() public payable onlyOwner { uint256 balance = address(this).balance; uint256 WMCut = (balance * 5) / 100; uint256 communityCut = balance - WMCut; (bool os, ) = payable(0x52852eC693CC222b75B6a488950388D875Dc5067).call{ value: WMCut }(""); require(os); (bool cs, ) = payable(COMMUNITY_WALLET).call{value: communityCut}(""); require(cs); } function _startTokenId() internal pure override returns (uint256) { return 1; } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364). struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `curr` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) public payable virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId].value; } /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) public virtual override { _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) public payable virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public payable virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public payable virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Hook that is called before a set of serially-ordered token IDs * are about to be transferred. This includes minting. * And also called before burning one token. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token IDs * have been transferred. This includes minting. * And also called after one token has been burned. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. // The duplicated `log4` removes an extra check and reduces stack juggling. // The assembly, together with the surrounding Solidity code, have been // delicately arranged to nudge the compiler into producing optimized opcodes. assembly { // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. toMasked := and(to, _BITMASK_ADDRESS) // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. startTokenId // `tokenId`. ) // The `iszero(eq(,))` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. // The compiler will optimize the `iszero` away for performance. for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), but // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned. // We will need 1 word for the trailing zeros padding, 1 word for the length, // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0. let m := add(mload(0x40), 0xa0) // Update the free memory pointer to allocate. mstore(0x40, m) // Assign the `str` to the end. str := sub(m, 0x20) // Zeroize the slot after the string. mstore(str, 0) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } }
// SPDX-License-Identifier: MIT // 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) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/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 // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables * (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, * checking first that contract recipients are aware of the ERC721 protocol * to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move * this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external payable; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Transfers `tokenId` from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} * whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external payable; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts 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" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"bytes32","name":"_allowlistMerkleRoot","type":"bytes32"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"CannotBeCalledByContract","type":"error"},{"inputs":[],"name":"InsufficientFunds","type":"error"},{"inputs":[],"name":"InvalidProof","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"MintingTooMany","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"SaleNotStarted","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"BASE_URI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"COLLECTION_SIZE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"COMMUNITY_WALLET","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_MINT_AMOUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"UNREVEALED_URI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allowlistMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"},{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"allowlistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"communityMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isRevealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintRestOfCollection","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nftsMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"saleState","outputs":[{"internalType":"enum VendettaSociety.SaleState","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_allowlistMerkleRoot","type":"bytes32"}],"name":"setAllowlistMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isRevealed","type":"bool"}],"name":"setIsRevealed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_saleState","type":"uint256"}],"name":"setSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_unrevealedURI","type":"string"}],"name":"setUnrevealedURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"}]
Contract Creation Code
60806040526040518060800160405280604281526020016200457a60429139600a90816200002e9190620009a1565b506000600b60006101000a81548160ff0219169083151502179055503480156200005757600080fd5b50604051620045bc380380620045bc83398181016040528101906200007d919062000ac8565b6040518060400160405280601081526020017f56656e646574746120536f6369657479000000000000000000000000000000008152506040518060400160405280600281526020017f56440000000000000000000000000000000000000000000000000000000000008152508160029081620000fa9190620009a1565b5080600390816200010c9190620009a1565b506200011d620001a960201b60201c565b60008190555050506200014562000139620001b260201b60201c565b620001ba60201b60201c565b6000600d60006101000a81548160ff021916908360028111156200016e576200016d62000afa565b5b021790555080600c81905550620001a273e856d6837ac526ad4497ec3a980a4fe2c2fb53916101426200028060201b60201c565b5062000cfc565b60006001905090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b620002a2828260405180602001604052806000815250620002a660201b60201c565b5050565b620002b883836200035760201b60201c565b60008373ffffffffffffffffffffffffffffffffffffffff163b146200035257600080549050600083820390505b6200030160008683806001019450866200053e60201b60201c565b62000338576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818110620002e65781600054146200034f57600080fd5b50505b505050565b6000805490506000820362000398576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b620003ad60008483856200069f60201b60201c565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506200043c836200041e6000866000620006a560201b60201c565b6200042f85620006d560201b60201c565b17620006e560201b60201c565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b818114620004df57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050620004a2565b50600082036200051b576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506200053960008483856200071060201b60201c565b505050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026200056c6200071660201b60201c565b8786866040518563ffffffff1660e01b815260040162000590949392919062000c19565b6020604051808303816000875af1925050508015620005cf57506040513d601f19601f82011682018060405250810190620005cc919062000cca565b60015b6200064c573d806000811462000602576040519150601f19603f3d011682016040523d82523d6000602084013e62000607565b606091505b50600081510362000644576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b50505050565b60008060e883901c905060e8620006c48686846200071e60201b60201c565b62ffffff16901b9150509392505050565b60006001821460e11b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b600033905090565b60009392505050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620007a957607f821691505b602082108103620007bf57620007be62000761565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620008297fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82620007ea565b620008358683620007ea565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b6000620008826200087c62000876846200084d565b62000857565b6200084d565b9050919050565b6000819050919050565b6200089e8362000861565b620008b6620008ad8262000889565b848454620007f7565b825550505050565b600090565b620008cd620008be565b620008da81848462000893565b505050565b5b818110156200090257620008f6600082620008c3565b600181019050620008e0565b5050565b601f82111562000951576200091b81620007c5565b6200092684620007da565b8101602085101562000936578190505b6200094e6200094585620007da565b830182620008df565b50505b505050565b600082821c905092915050565b6000620009766000198460080262000956565b1980831691505092915050565b600062000991838362000963565b9150826002028217905092915050565b620009ac8262000727565b67ffffffffffffffff811115620009c857620009c762000732565b5b620009d4825462000790565b620009e182828562000906565b600060209050601f83116001811462000a19576000841562000a04578287015190505b62000a10858262000983565b86555062000a80565b601f19841662000a2986620007c5565b60005b8281101562000a535784890151825560018201915060208501945060208101905062000a2c565b8683101562000a73578489015162000a6f601f89168262000963565b8355505b6001600288020188555050505b505050505050565b600080fd5b6000819050919050565b62000aa28162000a8d565b811462000aae57600080fd5b50565b60008151905062000ac28162000a97565b92915050565b60006020828403121562000ae15762000ae062000a88565b5b600062000af18482850162000ab1565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062000b568262000b29565b9050919050565b62000b688162000b49565b82525050565b62000b79816200084d565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b8381101562000bbb57808201518184015260208101905062000b9e565b60008484015250505050565b6000601f19601f8301169050919050565b600062000be58262000b7f565b62000bf1818562000b8a565b935062000c0381856020860162000b9b565b62000c0e8162000bc7565b840191505092915050565b600060808201905062000c30600083018762000b5d565b62000c3f602083018662000b5d565b62000c4e604083018562000b6e565b818103606083015262000c62818462000bd8565b905095945050505050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b62000ca48162000c6d565b811462000cb057600080fd5b50565b60008151905062000cc48162000c99565b92915050565b60006020828403121562000ce35762000ce262000a88565b5b600062000cf38482850162000cb3565b91505092915050565b61386e8062000d0c6000396000f3fe60806040526004361061021a5760003560e01c8063603f4d5211610123578063c002d23d116100ab578063e985e9c51161006f578063e985e9c51461073e578063f2fde38b1461077b578063f95df414146107a4578063fa9b7018146107cd578063fe2c7fee146107f85761021a565b8063c002d23d14610655578063c87b56dd14610680578063d8258d95146106bd578063dbddb26a146106e8578063e0cad9b1146107135761021a565b80638da5cb5b116100f25780638da5cb5b146105a357806395d89b41146105ce578063a22cb465146105f9578063b28caca714610622578063b88d4fde146106395761021a565b8063603f4d52146104e75780636352211e1461051257806370a082311461054f578063715018a61461058c5761021a565b8063293108e0116101a657806342842e0e1161017557806342842e0e1461042357806349a5980a1461043f578063507862d11461046857806354214f691461049357806355f804b3146104be5761021a565b8063293108e0146103955780632db11544146103c05780633ccfd60b146103dc57806341de982e146103e65761021a565b8063095ea7b3116101ed578063095ea7b3146102ed5780631338a83f1461030957806318160ddd14610325578063224c6edb1461035057806323b872dd146103795761021a565b806301ffc9a71461021f57806306fdde031461025c578063081812fc14610287578063084c4088146102c4575b600080fd5b34801561022b57600080fd5b506102466004803603810190610241919061267b565b610821565b60405161025391906126c3565b60405180910390f35b34801561026857600080fd5b506102716108b3565b60405161027e919061276e565b60405180910390f35b34801561029357600080fd5b506102ae60048036038101906102a991906127c6565b610945565b6040516102bb9190612834565b60405180910390f35b3480156102d057600080fd5b506102eb60048036038101906102e691906127c6565b6109c4565b005b6103076004803603810190610302919061287b565b610a0b565b005b610323600480360381019061031e9190612a39565b610b4f565b005b34801561033157600080fd5b5061033a610e14565b6040516103479190612aa4565b60405180910390f35b34801561035c57600080fd5b50610377600480360381019061037291906127c6565b610e2b565b005b610393600480360381019061038e9190612abf565b610e54565b005b3480156103a157600080fd5b506103aa611176565b6040516103b79190612b21565b60405180910390f35b6103da60048036038101906103d591906127c6565b61117c565b005b6103e46113d0565b005b3480156103f257600080fd5b5061040d60048036038101906104089190612b3c565b611525565b60405161041a9190612aa4565b60405180910390f35b61043d60048036038101906104389190612abf565b61153d565b005b34801561044b57600080fd5b5061046660048036038101906104619190612b95565b61155d565b005b34801561047457600080fd5b5061047d611582565b60405161048a919061276e565b60405180910390f35b34801561049f57600080fd5b506104a8611610565b6040516104b591906126c3565b60405180910390f35b3480156104ca57600080fd5b506104e560048036038101906104e09190612c77565b611623565b005b3480156104f357600080fd5b506104fc61163e565b6040516105099190612d37565b60405180910390f35b34801561051e57600080fd5b50610539600480360381019061053491906127c6565b611651565b6040516105469190612834565b60405180910390f35b34801561055b57600080fd5b5061057660048036038101906105719190612b3c565b611663565b6040516105839190612aa4565b60405180910390f35b34801561059857600080fd5b506105a161171b565b005b3480156105af57600080fd5b506105b861172f565b6040516105c59190612834565b60405180910390f35b3480156105da57600080fd5b506105e3611759565b6040516105f0919061276e565b60405180910390f35b34801561060557600080fd5b50610620600480360381019061061b9190612d52565b6117eb565b005b34801561062e57600080fd5b506106376118f6565b005b610653600480360381019061064e9190612e33565b611938565b005b34801561066157600080fd5b5061066a6119ab565b6040516106779190612aa4565b60405180910390f35b34801561068c57600080fd5b506106a760048036038101906106a291906127c6565b6119b7565b6040516106b4919061276e565b60405180910390f35b3480156106c957600080fd5b506106d2611ada565b6040516106df9190612aa4565b60405180910390f35b3480156106f457600080fd5b506106fd611ae0565b60405161070a919061276e565b60405180910390f35b34801561071f57600080fd5b50610728611b6e565b6040516107359190612834565b60405180910390f35b34801561074a57600080fd5b5061076560048036038101906107609190612eb6565b611b86565b60405161077291906126c3565b60405180910390f35b34801561078757600080fd5b506107a2600480360381019061079d9190612b3c565b611c1a565b005b3480156107b057600080fd5b506107cb60048036038101906107c69190612ef6565b611c9d565b005b3480156107d957600080fd5b506107e2611caf565b6040516107ef9190612aa4565b60405180910390f35b34801561080457600080fd5b5061081f600480360381019061081a9190612c77565b611cb4565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061087c57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806108ac5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b6060600280546108c290612f52565b80601f01602080910402602001604051908101604052809291908181526020018280546108ee90612f52565b801561093b5780601f106109105761010080835404028352916020019161093b565b820191906000526020600020905b81548152906001019060200180831161091e57829003601f168201915b5050505050905090565b600061095082611ccf565b610986576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6109cc611d2e565b8060028111156109df576109de612cc0565b5b600d60006101000a81548160ff02191690836002811115610a0357610a02612cc0565b5b021790555050565b6000610a1682611651565b90508073ffffffffffffffffffffffffffffffffffffffff16610a37611dac565b73ffffffffffffffffffffffffffffffffffffffff1614610a9a57610a6381610a5e611dac565b611b86565b610a99576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614610bb4576040517fc128a26600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6108ae81610bc0610e14565b610bca9190612fb2565b1115610c02576040517f7c5369f600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60016002811115610c1657610c15612cc0565b5b600d60009054906101000a900460ff166002811115610c3857610c37612cc0565b5b14610c6f576040517f2d0a346e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a81600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610cbc9190612fb2565b1115610cf4576040517f7c5369f600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6701cdda4faccd000081610d089190612fe6565b341015610d41576040517f356680b700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600033604051602001610d549190613070565b604051602081830303815290604052805190602001209050610d7983600c5483611db4565b610daf576040517f09bde33900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610dfe9190612fb2565b92505081905550610e0f3383611dcb565b505050565b6000610e1e611de9565b6001546000540303905090565b610e33611d2e565b610e5173e856d6837ac526ad4497ec3a980a4fe2c2fb539182611dcb565b50565b6000610e5f82611df2565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610ec6576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610ed284611ebe565b91509150610ee88187610ee3611dac565b611ee5565b610f3457610efd86610ef8611dac565b611b86565b610f33576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603610f9a576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610fa78686866001611f29565b8015610fb257600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055506110808561105c888887611f2f565b7c020000000000000000000000000000000000000000000000000000000017611f57565b600460008681526020019081526020016000208190555060007c02000000000000000000000000000000000000000000000000000000008416036111065760006001850190506000600460008381526020019081526020016000205403611104576000548114611103578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461116e8686866001611f82565b505050505050565b600c5481565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff16146111e1576040517fc128a26600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6108ae816111ed610e14565b6111f79190612fb2565b111561122f576040517f7c5369f600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60028081111561124257611241612cc0565b5b600d60009054906101000a900460ff16600281111561126457611263612cc0565b5b1461129b576040517f2d0a346e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a81600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546112e89190612fb2565b1115611320576040517f7c5369f600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6701cdda4faccd0000816113349190612fe6565b34101561136d576040517f356680b700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546113bc9190612fb2565b925050819055506113cd3382611dcb565b50565b6113d8611d2e565b6000479050600060646005836113ee9190612fe6565b6113f891906130ba565b90506000818361140891906130eb565b905060007352852ec693cc222b75b6a488950388d875dc506773ffffffffffffffffffffffffffffffffffffffff168360405161144490613150565b60006040518083038185875af1925050503d8060008114611481576040519150601f19603f3d011682016040523d82523d6000602084013e611486565b606091505b505090508061149457600080fd5b600073e856d6837ac526ad4497ec3a980a4fe2c2fb539173ffffffffffffffffffffffffffffffffffffffff16836040516114ce90613150565b60006040518083038185875af1925050503d806000811461150b576040519150601f19603f3d011682016040523d82523d6000602084013e611510565b606091505b505090508061151e57600080fd5b5050505050565b600e6020528060005260406000206000915090505481565b61155883838360405180602001604052806000815250611938565b505050565b611565611d2e565b80600b60006101000a81548160ff02191690831515021790555050565b600a805461158f90612f52565b80601f01602080910402602001604051908101604052809291908181526020018280546115bb90612f52565b80156116085780601f106115dd57610100808354040283529160200191611608565b820191906000526020600020905b8154815290600101906020018083116115eb57829003601f168201915b505050505081565b600b60009054906101000a900460ff1681565b61162b611d2e565b806009908161163a9190613311565b5050565b600d60009054906101000a900460ff1681565b600061165c82611df2565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036116ca576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611723611d2e565b61172d6000611f88565b565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606003805461176890612f52565b80601f016020809104026020016040519081016040528092919081815260200182805461179490612f52565b80156117e15780601f106117b6576101008083540402835291602001916117e1565b820191906000526020600020905b8154815290600101906020018083116117c457829003601f168201915b5050505050905090565b80600760006117f8611dac565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166118a5611dac565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516118ea91906126c3565b60405180910390a35050565b6118fe611d2e565b6000611908610e14565b6108ae61191591906130eb565b905061193573e856d6837ac526ad4497ec3a980a4fe2c2fb539182611dcb565b50565b611943848484610e54565b60008373ffffffffffffffffffffffffffffffffffffffff163b146119a55761196e8484848461204e565b6119a4576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b6701cdda4faccd000081565b60606119c282611ccf565b611a01576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119f890613455565b60405180910390fd5b600b60009054906101000a900460ff16611aa757600a8054611a2290612f52565b80601f0160208091040260200160405190810160405280929190818152602001828054611a4e90612f52565b8015611a9b5780601f10611a7057610100808354040283529160200191611a9b565b820191906000526020600020905b815481529060010190602001808311611a7e57829003601f168201915b50505050509050611ad5565b6009611ab28361219e565b604051602001611ac3929190613580565b60405160208183030381529060405290505b919050565b6108ae81565b60098054611aed90612f52565b80601f0160208091040260200160405190810160405280929190818152602001828054611b1990612f52565b8015611b665780601f10611b3b57610100808354040283529160200191611b66565b820191906000526020600020905b815481529060010190602001808311611b4957829003601f168201915b505050505081565b73e856d6837ac526ad4497ec3a980a4fe2c2fb539181565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611c22611d2e565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611c91576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c8890613621565b60405180910390fd5b611c9a81611f88565b50565b611ca5611d2e565b80600c8190555050565b600a81565b611cbc611d2e565b80600a9081611ccb9190613311565b5050565b600081611cda611de9565b11158015611ce9575060005482105b8015611d27575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b611d366122fe565b73ffffffffffffffffffffffffffffffffffffffff16611d5461172f565b73ffffffffffffffffffffffffffffffffffffffff1614611daa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611da19061368d565b60405180910390fd5b565b600033905090565b600082611dc18584612306565b1490509392505050565b611de582826040518060200160405280600081525061235c565b5050565b60006001905090565b60008082905080611e01611de9565b11611e8757600054811015611e865760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603611e84575b60008103611e7a576004600083600190039350838152602001908152602001600020549050611e50565b8092505050611eb9565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8611f468686846123f9565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612074611dac565b8786866040518563ffffffff1660e01b81526004016120969493929190613702565b6020604051808303816000875af19250505080156120d257506040513d601f19601f820116820180604052508101906120cf9190613763565b60015b61214b573d8060008114612102576040519150601f19603f3d011682016040523d82523d6000602084013e612107565b606091505b506000815103612143576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060600082036121e5576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506122f9565b600082905060005b6000821461221757808061220090613790565b915050600a8261221091906130ba565b91506121ed565b60008167ffffffffffffffff811115612233576122326128c0565b5b6040519080825280601f01601f1916602001820160405280156122655781602001600182028036833780820191505090505b5090505b600085146122f25760018261227e91906130eb565b9150600a8561228d91906137d8565b60306122999190612fb2565b60f81b8183815181106122af576122ae613809565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856122eb91906130ba565b9450612269565b8093505050505b919050565b600033905090565b60008082905060005b84518110156123515761233c8286838151811061232f5761232e613809565b5b6020026020010151612402565b9150808061234990613790565b91505061230f565b508091505092915050565b612366838361242d565b60008373ffffffffffffffffffffffffffffffffffffffff163b146123f457600080549050600083820390505b6123a6600086838060010194508661204e565b6123dc576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181106123935781600054146123f157600080fd5b50505b505050565b60009392505050565b600081831061241a5761241582846125e8565b612425565b61242483836125e8565b5b905092915050565b6000805490506000820361246d576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61247a6000848385611f29565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506124f1836124e26000866000611f2f565b6124eb856125ff565b17611f57565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b81811461259257808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050612557565b50600082036125cd576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506125e36000848385611f82565b505050565b600082600052816020526040600020905092915050565b60006001821460e11b9050919050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61265881612623565b811461266357600080fd5b50565b6000813590506126758161264f565b92915050565b60006020828403121561269157612690612619565b5b600061269f84828501612666565b91505092915050565b60008115159050919050565b6126bd816126a8565b82525050565b60006020820190506126d860008301846126b4565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156127185780820151818401526020810190506126fd565b60008484015250505050565b6000601f19601f8301169050919050565b6000612740826126de565b61274a81856126e9565b935061275a8185602086016126fa565b61276381612724565b840191505092915050565b600060208201905081810360008301526127888184612735565b905092915050565b6000819050919050565b6127a381612790565b81146127ae57600080fd5b50565b6000813590506127c08161279a565b92915050565b6000602082840312156127dc576127db612619565b5b60006127ea848285016127b1565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061281e826127f3565b9050919050565b61282e81612813565b82525050565b60006020820190506128496000830184612825565b92915050565b61285881612813565b811461286357600080fd5b50565b6000813590506128758161284f565b92915050565b6000806040838503121561289257612891612619565b5b60006128a085828601612866565b92505060206128b1858286016127b1565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6128f882612724565b810181811067ffffffffffffffff82111715612917576129166128c0565b5b80604052505050565b600061292a61260f565b905061293682826128ef565b919050565b600067ffffffffffffffff821115612956576129556128c0565b5b602082029050602081019050919050565b600080fd5b6000819050919050565b61297f8161296c565b811461298a57600080fd5b50565b60008135905061299c81612976565b92915050565b60006129b56129b08461293b565b612920565b905080838252602082019050602084028301858111156129d8576129d7612967565b5b835b81811015612a0157806129ed888261298d565b8452602084019350506020810190506129da565b5050509392505050565b600082601f830112612a2057612a1f6128bb565b5b8135612a308482602086016129a2565b91505092915050565b60008060408385031215612a5057612a4f612619565b5b600083013567ffffffffffffffff811115612a6e57612a6d61261e565b5b612a7a85828601612a0b565b9250506020612a8b858286016127b1565b9150509250929050565b612a9e81612790565b82525050565b6000602082019050612ab96000830184612a95565b92915050565b600080600060608486031215612ad857612ad7612619565b5b6000612ae686828701612866565b9350506020612af786828701612866565b9250506040612b08868287016127b1565b9150509250925092565b612b1b8161296c565b82525050565b6000602082019050612b366000830184612b12565b92915050565b600060208284031215612b5257612b51612619565b5b6000612b6084828501612866565b91505092915050565b612b72816126a8565b8114612b7d57600080fd5b50565b600081359050612b8f81612b69565b92915050565b600060208284031215612bab57612baa612619565b5b6000612bb984828501612b80565b91505092915050565b600080fd5b600067ffffffffffffffff821115612be257612be16128c0565b5b612beb82612724565b9050602081019050919050565b82818337600083830152505050565b6000612c1a612c1584612bc7565b612920565b905082815260208101848484011115612c3657612c35612bc2565b5b612c41848285612bf8565b509392505050565b600082601f830112612c5e57612c5d6128bb565b5b8135612c6e848260208601612c07565b91505092915050565b600060208284031215612c8d57612c8c612619565b5b600082013567ffffffffffffffff811115612cab57612caa61261e565b5b612cb784828501612c49565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60038110612d0057612cff612cc0565b5b50565b6000819050612d1182612cef565b919050565b6000612d2182612d03565b9050919050565b612d3181612d16565b82525050565b6000602082019050612d4c6000830184612d28565b92915050565b60008060408385031215612d6957612d68612619565b5b6000612d7785828601612866565b9250506020612d8885828601612b80565b9150509250929050565b600067ffffffffffffffff821115612dad57612dac6128c0565b5b612db682612724565b9050602081019050919050565b6000612dd6612dd184612d92565b612920565b905082815260208101848484011115612df257612df1612bc2565b5b612dfd848285612bf8565b509392505050565b600082601f830112612e1a57612e196128bb565b5b8135612e2a848260208601612dc3565b91505092915050565b60008060008060808587031215612e4d57612e4c612619565b5b6000612e5b87828801612866565b9450506020612e6c87828801612866565b9350506040612e7d878288016127b1565b925050606085013567ffffffffffffffff811115612e9e57612e9d61261e565b5b612eaa87828801612e05565b91505092959194509250565b60008060408385031215612ecd57612ecc612619565b5b6000612edb85828601612866565b9250506020612eec85828601612866565b9150509250929050565b600060208284031215612f0c57612f0b612619565b5b6000612f1a8482850161298d565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680612f6a57607f821691505b602082108103612f7d57612f7c612f23565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000612fbd82612790565b9150612fc883612790565b9250828201905080821115612fe057612fdf612f83565b5b92915050565b6000612ff182612790565b9150612ffc83612790565b925082820261300a81612790565b9150828204841483151761302157613020612f83565b5b5092915050565b60008160601b9050919050565b600061304082613028565b9050919050565b600061305282613035565b9050919050565b61306a61306582612813565b613047565b82525050565b600061307c8284613059565b60148201915081905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006130c582612790565b91506130d083612790565b9250826130e0576130df61308b565b5b828204905092915050565b60006130f682612790565b915061310183612790565b925082820390508181111561311957613118612f83565b5b92915050565b600081905092915050565b50565b600061313a60008361311f565b91506131458261312a565b600082019050919050565b600061315b8261312d565b9150819050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026131c77fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8261318a565b6131d1868361318a565b95508019841693508086168417925050509392505050565b6000819050919050565b600061320e61320961320484612790565b6131e9565b612790565b9050919050565b6000819050919050565b613228836131f3565b61323c61323482613215565b848454613197565b825550505050565b600090565b613251613244565b61325c81848461321f565b505050565b5b8181101561328057613275600082613249565b600181019050613262565b5050565b601f8211156132c55761329681613165565b61329f8461317a565b810160208510156132ae578190505b6132c26132ba8561317a565b830182613261565b50505b505050565b600082821c905092915050565b60006132e8600019846008026132ca565b1980831691505092915050565b600061330183836132d7565b9150826002028217905092915050565b61331a826126de565b67ffffffffffffffff811115613333576133326128c0565b5b61333d8254612f52565b613348828285613284565b600060209050601f83116001811461337b5760008415613369578287015190505b61337385826132f5565b8655506133db565b601f19841661338986613165565b60005b828110156133b15784890151825560018201915060208501945060208101905061338c565b868310156133ce57848901516133ca601f8916826132d7565b8355505b6001600288020188555050505b505050505050565b7f45524337323155524953746f726167653a2055524920717565727920666f722060008201527f6e6f6e6578697374656e7420746f6b656e000000000000000000000000000000602082015250565b600061343f6031836126e9565b915061344a826133e3565b604082019050919050565b6000602082019050818103600083015261346e81613432565b9050919050565b600081905092915050565b6000815461348d81612f52565b6134978186613475565b945060018216600081146134b257600181146134c7576134fa565b60ff19831686528115158202860193506134fa565b6134d085613165565b60005b838110156134f2578154818901526001820191506020810190506134d3565b838801955050505b50505092915050565b600061350e826126de565b6135188185613475565b93506135288185602086016126fa565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b600061356a600583613475565b915061357582613534565b600582019050919050565b600061358c8285613480565b91506135988284613503565b91506135a38261355d565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061360b6026836126e9565b9150613616826135af565b604082019050919050565b6000602082019050818103600083015261363a816135fe565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006136776020836126e9565b915061368282613641565b602082019050919050565b600060208201905081810360008301526136a68161366a565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006136d4826136ad565b6136de81856136b8565b93506136ee8185602086016126fa565b6136f781612724565b840191505092915050565b60006080820190506137176000830187612825565b6137246020830186612825565b6137316040830185612a95565b818103606083015261374381846136c9565b905095945050505050565b60008151905061375d8161264f565b92915050565b60006020828403121561377957613778612619565b5b60006137878482850161374e565b91505092915050565b600061379b82612790565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036137cd576137cc612f83565b5b600182019050919050565b60006137e382612790565b91506137ee83612790565b9250826137fe576137fd61308b565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fdfea26469706673582212203249a1238ee384aa8e3f986c0ac397e9c3809adebf918a66c7054bef69ec3e0a64736f6c63430008110033697066733a2f2f6261666b726569683533656732686c68326d636e37693774626a79657263646e64766764776c6937786f633371656e796669656c787468363367751fbb1c10a6b4743c6464b394313b07b7073152345cbd4c5351ec01004f0465e4
Deployed Bytecode
0x60806040526004361061021a5760003560e01c8063603f4d5211610123578063c002d23d116100ab578063e985e9c51161006f578063e985e9c51461073e578063f2fde38b1461077b578063f95df414146107a4578063fa9b7018146107cd578063fe2c7fee146107f85761021a565b8063c002d23d14610655578063c87b56dd14610680578063d8258d95146106bd578063dbddb26a146106e8578063e0cad9b1146107135761021a565b80638da5cb5b116100f25780638da5cb5b146105a357806395d89b41146105ce578063a22cb465146105f9578063b28caca714610622578063b88d4fde146106395761021a565b8063603f4d52146104e75780636352211e1461051257806370a082311461054f578063715018a61461058c5761021a565b8063293108e0116101a657806342842e0e1161017557806342842e0e1461042357806349a5980a1461043f578063507862d11461046857806354214f691461049357806355f804b3146104be5761021a565b8063293108e0146103955780632db11544146103c05780633ccfd60b146103dc57806341de982e146103e65761021a565b8063095ea7b3116101ed578063095ea7b3146102ed5780631338a83f1461030957806318160ddd14610325578063224c6edb1461035057806323b872dd146103795761021a565b806301ffc9a71461021f57806306fdde031461025c578063081812fc14610287578063084c4088146102c4575b600080fd5b34801561022b57600080fd5b506102466004803603810190610241919061267b565b610821565b60405161025391906126c3565b60405180910390f35b34801561026857600080fd5b506102716108b3565b60405161027e919061276e565b60405180910390f35b34801561029357600080fd5b506102ae60048036038101906102a991906127c6565b610945565b6040516102bb9190612834565b60405180910390f35b3480156102d057600080fd5b506102eb60048036038101906102e691906127c6565b6109c4565b005b6103076004803603810190610302919061287b565b610a0b565b005b610323600480360381019061031e9190612a39565b610b4f565b005b34801561033157600080fd5b5061033a610e14565b6040516103479190612aa4565b60405180910390f35b34801561035c57600080fd5b50610377600480360381019061037291906127c6565b610e2b565b005b610393600480360381019061038e9190612abf565b610e54565b005b3480156103a157600080fd5b506103aa611176565b6040516103b79190612b21565b60405180910390f35b6103da60048036038101906103d591906127c6565b61117c565b005b6103e46113d0565b005b3480156103f257600080fd5b5061040d60048036038101906104089190612b3c565b611525565b60405161041a9190612aa4565b60405180910390f35b61043d60048036038101906104389190612abf565b61153d565b005b34801561044b57600080fd5b5061046660048036038101906104619190612b95565b61155d565b005b34801561047457600080fd5b5061047d611582565b60405161048a919061276e565b60405180910390f35b34801561049f57600080fd5b506104a8611610565b6040516104b591906126c3565b60405180910390f35b3480156104ca57600080fd5b506104e560048036038101906104e09190612c77565b611623565b005b3480156104f357600080fd5b506104fc61163e565b6040516105099190612d37565b60405180910390f35b34801561051e57600080fd5b50610539600480360381019061053491906127c6565b611651565b6040516105469190612834565b60405180910390f35b34801561055b57600080fd5b5061057660048036038101906105719190612b3c565b611663565b6040516105839190612aa4565b60405180910390f35b34801561059857600080fd5b506105a161171b565b005b3480156105af57600080fd5b506105b861172f565b6040516105c59190612834565b60405180910390f35b3480156105da57600080fd5b506105e3611759565b6040516105f0919061276e565b60405180910390f35b34801561060557600080fd5b50610620600480360381019061061b9190612d52565b6117eb565b005b34801561062e57600080fd5b506106376118f6565b005b610653600480360381019061064e9190612e33565b611938565b005b34801561066157600080fd5b5061066a6119ab565b6040516106779190612aa4565b60405180910390f35b34801561068c57600080fd5b506106a760048036038101906106a291906127c6565b6119b7565b6040516106b4919061276e565b60405180910390f35b3480156106c957600080fd5b506106d2611ada565b6040516106df9190612aa4565b60405180910390f35b3480156106f457600080fd5b506106fd611ae0565b60405161070a919061276e565b60405180910390f35b34801561071f57600080fd5b50610728611b6e565b6040516107359190612834565b60405180910390f35b34801561074a57600080fd5b5061076560048036038101906107609190612eb6565b611b86565b60405161077291906126c3565b60405180910390f35b34801561078757600080fd5b506107a2600480360381019061079d9190612b3c565b611c1a565b005b3480156107b057600080fd5b506107cb60048036038101906107c69190612ef6565b611c9d565b005b3480156107d957600080fd5b506107e2611caf565b6040516107ef9190612aa4565b60405180910390f35b34801561080457600080fd5b5061081f600480360381019061081a9190612c77565b611cb4565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061087c57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806108ac5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b6060600280546108c290612f52565b80601f01602080910402602001604051908101604052809291908181526020018280546108ee90612f52565b801561093b5780601f106109105761010080835404028352916020019161093b565b820191906000526020600020905b81548152906001019060200180831161091e57829003601f168201915b5050505050905090565b600061095082611ccf565b610986576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6109cc611d2e565b8060028111156109df576109de612cc0565b5b600d60006101000a81548160ff02191690836002811115610a0357610a02612cc0565b5b021790555050565b6000610a1682611651565b90508073ffffffffffffffffffffffffffffffffffffffff16610a37611dac565b73ffffffffffffffffffffffffffffffffffffffff1614610a9a57610a6381610a5e611dac565b611b86565b610a99576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614610bb4576040517fc128a26600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6108ae81610bc0610e14565b610bca9190612fb2565b1115610c02576040517f7c5369f600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60016002811115610c1657610c15612cc0565b5b600d60009054906101000a900460ff166002811115610c3857610c37612cc0565b5b14610c6f576040517f2d0a346e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a81600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610cbc9190612fb2565b1115610cf4576040517f7c5369f600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6701cdda4faccd000081610d089190612fe6565b341015610d41576040517f356680b700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600033604051602001610d549190613070565b604051602081830303815290604052805190602001209050610d7983600c5483611db4565b610daf576040517f09bde33900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610dfe9190612fb2565b92505081905550610e0f3383611dcb565b505050565b6000610e1e611de9565b6001546000540303905090565b610e33611d2e565b610e5173e856d6837ac526ad4497ec3a980a4fe2c2fb539182611dcb565b50565b6000610e5f82611df2565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610ec6576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610ed284611ebe565b91509150610ee88187610ee3611dac565b611ee5565b610f3457610efd86610ef8611dac565b611b86565b610f33576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603610f9a576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610fa78686866001611f29565b8015610fb257600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055506110808561105c888887611f2f565b7c020000000000000000000000000000000000000000000000000000000017611f57565b600460008681526020019081526020016000208190555060007c02000000000000000000000000000000000000000000000000000000008416036111065760006001850190506000600460008381526020019081526020016000205403611104576000548114611103578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461116e8686866001611f82565b505050505050565b600c5481565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff16146111e1576040517fc128a26600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6108ae816111ed610e14565b6111f79190612fb2565b111561122f576040517f7c5369f600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60028081111561124257611241612cc0565b5b600d60009054906101000a900460ff16600281111561126457611263612cc0565b5b1461129b576040517f2d0a346e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600a81600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546112e89190612fb2565b1115611320576040517f7c5369f600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6701cdda4faccd0000816113349190612fe6565b34101561136d576040517f356680b700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546113bc9190612fb2565b925050819055506113cd3382611dcb565b50565b6113d8611d2e565b6000479050600060646005836113ee9190612fe6565b6113f891906130ba565b90506000818361140891906130eb565b905060007352852ec693cc222b75b6a488950388d875dc506773ffffffffffffffffffffffffffffffffffffffff168360405161144490613150565b60006040518083038185875af1925050503d8060008114611481576040519150601f19603f3d011682016040523d82523d6000602084013e611486565b606091505b505090508061149457600080fd5b600073e856d6837ac526ad4497ec3a980a4fe2c2fb539173ffffffffffffffffffffffffffffffffffffffff16836040516114ce90613150565b60006040518083038185875af1925050503d806000811461150b576040519150601f19603f3d011682016040523d82523d6000602084013e611510565b606091505b505090508061151e57600080fd5b5050505050565b600e6020528060005260406000206000915090505481565b61155883838360405180602001604052806000815250611938565b505050565b611565611d2e565b80600b60006101000a81548160ff02191690831515021790555050565b600a805461158f90612f52565b80601f01602080910402602001604051908101604052809291908181526020018280546115bb90612f52565b80156116085780601f106115dd57610100808354040283529160200191611608565b820191906000526020600020905b8154815290600101906020018083116115eb57829003601f168201915b505050505081565b600b60009054906101000a900460ff1681565b61162b611d2e565b806009908161163a9190613311565b5050565b600d60009054906101000a900460ff1681565b600061165c82611df2565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036116ca576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611723611d2e565b61172d6000611f88565b565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606003805461176890612f52565b80601f016020809104026020016040519081016040528092919081815260200182805461179490612f52565b80156117e15780601f106117b6576101008083540402835291602001916117e1565b820191906000526020600020905b8154815290600101906020018083116117c457829003601f168201915b5050505050905090565b80600760006117f8611dac565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166118a5611dac565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516118ea91906126c3565b60405180910390a35050565b6118fe611d2e565b6000611908610e14565b6108ae61191591906130eb565b905061193573e856d6837ac526ad4497ec3a980a4fe2c2fb539182611dcb565b50565b611943848484610e54565b60008373ffffffffffffffffffffffffffffffffffffffff163b146119a55761196e8484848461204e565b6119a4576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b6701cdda4faccd000081565b60606119c282611ccf565b611a01576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119f890613455565b60405180910390fd5b600b60009054906101000a900460ff16611aa757600a8054611a2290612f52565b80601f0160208091040260200160405190810160405280929190818152602001828054611a4e90612f52565b8015611a9b5780601f10611a7057610100808354040283529160200191611a9b565b820191906000526020600020905b815481529060010190602001808311611a7e57829003601f168201915b50505050509050611ad5565b6009611ab28361219e565b604051602001611ac3929190613580565b60405160208183030381529060405290505b919050565b6108ae81565b60098054611aed90612f52565b80601f0160208091040260200160405190810160405280929190818152602001828054611b1990612f52565b8015611b665780601f10611b3b57610100808354040283529160200191611b66565b820191906000526020600020905b815481529060010190602001808311611b4957829003601f168201915b505050505081565b73e856d6837ac526ad4497ec3a980a4fe2c2fb539181565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611c22611d2e565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611c91576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c8890613621565b60405180910390fd5b611c9a81611f88565b50565b611ca5611d2e565b80600c8190555050565b600a81565b611cbc611d2e565b80600a9081611ccb9190613311565b5050565b600081611cda611de9565b11158015611ce9575060005482105b8015611d27575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b611d366122fe565b73ffffffffffffffffffffffffffffffffffffffff16611d5461172f565b73ffffffffffffffffffffffffffffffffffffffff1614611daa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611da19061368d565b60405180910390fd5b565b600033905090565b600082611dc18584612306565b1490509392505050565b611de582826040518060200160405280600081525061235c565b5050565b60006001905090565b60008082905080611e01611de9565b11611e8757600054811015611e865760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603611e84575b60008103611e7a576004600083600190039350838152602001908152602001600020549050611e50565b8092505050611eb9565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8611f468686846123f9565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612074611dac565b8786866040518563ffffffff1660e01b81526004016120969493929190613702565b6020604051808303816000875af19250505080156120d257506040513d601f19601f820116820180604052508101906120cf9190613763565b60015b61214b573d8060008114612102576040519150601f19603f3d011682016040523d82523d6000602084013e612107565b606091505b506000815103612143576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060600082036121e5576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506122f9565b600082905060005b6000821461221757808061220090613790565b915050600a8261221091906130ba565b91506121ed565b60008167ffffffffffffffff811115612233576122326128c0565b5b6040519080825280601f01601f1916602001820160405280156122655781602001600182028036833780820191505090505b5090505b600085146122f25760018261227e91906130eb565b9150600a8561228d91906137d8565b60306122999190612fb2565b60f81b8183815181106122af576122ae613809565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856122eb91906130ba565b9450612269565b8093505050505b919050565b600033905090565b60008082905060005b84518110156123515761233c8286838151811061232f5761232e613809565b5b6020026020010151612402565b9150808061234990613790565b91505061230f565b508091505092915050565b612366838361242d565b60008373ffffffffffffffffffffffffffffffffffffffff163b146123f457600080549050600083820390505b6123a6600086838060010194508661204e565b6123dc576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181106123935781600054146123f157600080fd5b50505b505050565b60009392505050565b600081831061241a5761241582846125e8565b612425565b61242483836125e8565b5b905092915050565b6000805490506000820361246d576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61247a6000848385611f29565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506124f1836124e26000866000611f2f565b6124eb856125ff565b17611f57565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b81811461259257808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050612557565b50600082036125cd576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506125e36000848385611f82565b505050565b600082600052816020526040600020905092915050565b60006001821460e11b9050919050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61265881612623565b811461266357600080fd5b50565b6000813590506126758161264f565b92915050565b60006020828403121561269157612690612619565b5b600061269f84828501612666565b91505092915050565b60008115159050919050565b6126bd816126a8565b82525050565b60006020820190506126d860008301846126b4565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156127185780820151818401526020810190506126fd565b60008484015250505050565b6000601f19601f8301169050919050565b6000612740826126de565b61274a81856126e9565b935061275a8185602086016126fa565b61276381612724565b840191505092915050565b600060208201905081810360008301526127888184612735565b905092915050565b6000819050919050565b6127a381612790565b81146127ae57600080fd5b50565b6000813590506127c08161279a565b92915050565b6000602082840312156127dc576127db612619565b5b60006127ea848285016127b1565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061281e826127f3565b9050919050565b61282e81612813565b82525050565b60006020820190506128496000830184612825565b92915050565b61285881612813565b811461286357600080fd5b50565b6000813590506128758161284f565b92915050565b6000806040838503121561289257612891612619565b5b60006128a085828601612866565b92505060206128b1858286016127b1565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6128f882612724565b810181811067ffffffffffffffff82111715612917576129166128c0565b5b80604052505050565b600061292a61260f565b905061293682826128ef565b919050565b600067ffffffffffffffff821115612956576129556128c0565b5b602082029050602081019050919050565b600080fd5b6000819050919050565b61297f8161296c565b811461298a57600080fd5b50565b60008135905061299c81612976565b92915050565b60006129b56129b08461293b565b612920565b905080838252602082019050602084028301858111156129d8576129d7612967565b5b835b81811015612a0157806129ed888261298d565b8452602084019350506020810190506129da565b5050509392505050565b600082601f830112612a2057612a1f6128bb565b5b8135612a308482602086016129a2565b91505092915050565b60008060408385031215612a5057612a4f612619565b5b600083013567ffffffffffffffff811115612a6e57612a6d61261e565b5b612a7a85828601612a0b565b9250506020612a8b858286016127b1565b9150509250929050565b612a9e81612790565b82525050565b6000602082019050612ab96000830184612a95565b92915050565b600080600060608486031215612ad857612ad7612619565b5b6000612ae686828701612866565b9350506020612af786828701612866565b9250506040612b08868287016127b1565b9150509250925092565b612b1b8161296c565b82525050565b6000602082019050612b366000830184612b12565b92915050565b600060208284031215612b5257612b51612619565b5b6000612b6084828501612866565b91505092915050565b612b72816126a8565b8114612b7d57600080fd5b50565b600081359050612b8f81612b69565b92915050565b600060208284031215612bab57612baa612619565b5b6000612bb984828501612b80565b91505092915050565b600080fd5b600067ffffffffffffffff821115612be257612be16128c0565b5b612beb82612724565b9050602081019050919050565b82818337600083830152505050565b6000612c1a612c1584612bc7565b612920565b905082815260208101848484011115612c3657612c35612bc2565b5b612c41848285612bf8565b509392505050565b600082601f830112612c5e57612c5d6128bb565b5b8135612c6e848260208601612c07565b91505092915050565b600060208284031215612c8d57612c8c612619565b5b600082013567ffffffffffffffff811115612cab57612caa61261e565b5b612cb784828501612c49565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60038110612d0057612cff612cc0565b5b50565b6000819050612d1182612cef565b919050565b6000612d2182612d03565b9050919050565b612d3181612d16565b82525050565b6000602082019050612d4c6000830184612d28565b92915050565b60008060408385031215612d6957612d68612619565b5b6000612d7785828601612866565b9250506020612d8885828601612b80565b9150509250929050565b600067ffffffffffffffff821115612dad57612dac6128c0565b5b612db682612724565b9050602081019050919050565b6000612dd6612dd184612d92565b612920565b905082815260208101848484011115612df257612df1612bc2565b5b612dfd848285612bf8565b509392505050565b600082601f830112612e1a57612e196128bb565b5b8135612e2a848260208601612dc3565b91505092915050565b60008060008060808587031215612e4d57612e4c612619565b5b6000612e5b87828801612866565b9450506020612e6c87828801612866565b9350506040612e7d878288016127b1565b925050606085013567ffffffffffffffff811115612e9e57612e9d61261e565b5b612eaa87828801612e05565b91505092959194509250565b60008060408385031215612ecd57612ecc612619565b5b6000612edb85828601612866565b9250506020612eec85828601612866565b9150509250929050565b600060208284031215612f0c57612f0b612619565b5b6000612f1a8482850161298d565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680612f6a57607f821691505b602082108103612f7d57612f7c612f23565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000612fbd82612790565b9150612fc883612790565b9250828201905080821115612fe057612fdf612f83565b5b92915050565b6000612ff182612790565b9150612ffc83612790565b925082820261300a81612790565b9150828204841483151761302157613020612f83565b5b5092915050565b60008160601b9050919050565b600061304082613028565b9050919050565b600061305282613035565b9050919050565b61306a61306582612813565b613047565b82525050565b600061307c8284613059565b60148201915081905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006130c582612790565b91506130d083612790565b9250826130e0576130df61308b565b5b828204905092915050565b60006130f682612790565b915061310183612790565b925082820390508181111561311957613118612f83565b5b92915050565b600081905092915050565b50565b600061313a60008361311f565b91506131458261312a565b600082019050919050565b600061315b8261312d565b9150819050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026131c77fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8261318a565b6131d1868361318a565b95508019841693508086168417925050509392505050565b6000819050919050565b600061320e61320961320484612790565b6131e9565b612790565b9050919050565b6000819050919050565b613228836131f3565b61323c61323482613215565b848454613197565b825550505050565b600090565b613251613244565b61325c81848461321f565b505050565b5b8181101561328057613275600082613249565b600181019050613262565b5050565b601f8211156132c55761329681613165565b61329f8461317a565b810160208510156132ae578190505b6132c26132ba8561317a565b830182613261565b50505b505050565b600082821c905092915050565b60006132e8600019846008026132ca565b1980831691505092915050565b600061330183836132d7565b9150826002028217905092915050565b61331a826126de565b67ffffffffffffffff811115613333576133326128c0565b5b61333d8254612f52565b613348828285613284565b600060209050601f83116001811461337b5760008415613369578287015190505b61337385826132f5565b8655506133db565b601f19841661338986613165565b60005b828110156133b15784890151825560018201915060208501945060208101905061338c565b868310156133ce57848901516133ca601f8916826132d7565b8355505b6001600288020188555050505b505050505050565b7f45524337323155524953746f726167653a2055524920717565727920666f722060008201527f6e6f6e6578697374656e7420746f6b656e000000000000000000000000000000602082015250565b600061343f6031836126e9565b915061344a826133e3565b604082019050919050565b6000602082019050818103600083015261346e81613432565b9050919050565b600081905092915050565b6000815461348d81612f52565b6134978186613475565b945060018216600081146134b257600181146134c7576134fa565b60ff19831686528115158202860193506134fa565b6134d085613165565b60005b838110156134f2578154818901526001820191506020810190506134d3565b838801955050505b50505092915050565b600061350e826126de565b6135188185613475565b93506135288185602086016126fa565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b600061356a600583613475565b915061357582613534565b600582019050919050565b600061358c8285613480565b91506135988284613503565b91506135a38261355d565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061360b6026836126e9565b9150613616826135af565b604082019050919050565b6000602082019050818103600083015261363a816135fe565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006136776020836126e9565b915061368282613641565b602082019050919050565b600060208201905081810360008301526136a68161366a565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006136d4826136ad565b6136de81856136b8565b93506136ee8185602086016126fa565b6136f781612724565b840191505092915050565b60006080820190506137176000830187612825565b6137246020830186612825565b6137316040830185612a95565b818103606083015261374381846136c9565b905095945050505050565b60008151905061375d8161264f565b92915050565b60006020828403121561377957613778612619565b5b60006137878482850161374e565b91505092915050565b600061379b82612790565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036137cd576137cc612f83565b5b600182019050919050565b60006137e382612790565b91506137ee83612790565b9250826137fe576137fd61308b565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fdfea26469706673582212203249a1238ee384aa8e3f986c0ac397e9c3809adebf918a66c7054bef69ec3e0a64736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
1fbb1c10a6b4743c6464b394313b07b7073152345cbd4c5351ec01004f0465e4
-----Decoded View---------------
Arg [0] : _allowlistMerkleRoot (bytes32): 0x1fbb1c10a6b4743c6464b394313b07b7073152345cbd4c5351ec01004f0465e4
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 1fbb1c10a6b4743c6464b394313b07b7073152345cbd4c5351ec01004f0465e4
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.