ERC-721
Overview
Max Total Supply
3,364 ZR48
Holders
667
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 ZR48Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
ZRX48
Compiler Version
v0.8.13+commit.abaa5c0e
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; // import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/cryptography/EIP712.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "erc721a/contracts/ERC721A.sol"; import "operator-filter-registry/src/DefaultOperatorFilterer.sol"; // import './VouchContract.sol'; // import "hardhat/console.sol"; contract ZRX48 is ERC721A, EIP712, ReentrancyGuard, Ownable, DefaultOperatorFilterer { using SafeMath for uint256; using Strings for uint256; uint256 public mintPrice = 48000000 gwei; // 0Whitelist 1Allowlist 2PublicSale 3FreeMint uint256 public saleStage = 0; // uint256 curTokenID = 1; uint256 public cap; uint256 public freeMintNum; PartnerParam[] public partners; struct PartnerParam { address account; uint256 totalAmount; uint256 soldAmount; bool direct; bool onlyPublic; bool voucher; } string ipfsAddr1 = ""; string ipfsAddr2 = ""; address payable public vaultAddress1; address payable public vaultAddress2; bool isBlindBox = true; struct AccountParam { uint256 claimCnt; // uint256 freemint; uint256[] tokenList; } // Whitelist,Allowlist mapping(address => AccountParam) mapAccount; // PublicSale mapping(address => AccountParam) mapAccountPublic; // freeMint mapping(address => AccountParam) mapAccountFreemint; Counters.Counter private _tokenIdCounter; struct MintVoucher { address signer; address minter; uint256 expiration; uint256 count; bytes signature; } address[] _accounts; uint256[] _freemint; bytes32 internal constant MINTVOUCHER_HASH = keccak256("MintVoucher(address signer,address minter,uint256 expiration,uint256 count)"); address[] public signers; constructor(uint256 cap_, uint256 freeMintNum_) ERC721A("zero to 48", "ZR48") EIP712("ZR48", "1"){ vaultAddress1 = payable(msg.sender); vaultAddress2 = payable(msg.sender); cap = cap_; freeMintNum = freeMintNum_; } function setApprovalForAll(address operator, bool approved) public override onlyAllowedOperatorApproval(operator) { super.setApprovalForAll(operator, approved); } function approve(address operator, uint256 tokenId) public payable override onlyAllowedOperatorApproval(operator) { super.approve(operator, tokenId); } function transferFrom(address from, address to, uint256 tokenId) public payable override onlyAllowedOperator(from) { super.transferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId) public payable override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public payable override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId, data); } function tokenURI(uint256 _tokenId) public view override returns (string memory) { require(_exists(_tokenId), "tokenURI: URI query for nonexistent token"); string memory _tokenIdStr = Strings.toString(_tokenId); if(isBlindBox == true){ return string(abi.encodePacked(ipfsAddr1, _tokenIdStr, ".json")); } else{ return string(abi.encodePacked(ipfsAddr2, _tokenIdStr, ".json")); } } function getCurrentTokenId() public view onlyOwner returns(uint256){ return _nextTokenId(); } function preSaleAvailableQuantity(address account) public view returns(uint256){ return 2-mapAccount[account].claimCnt; } function publicSaleAvailableQuantity(address account) public view returns(uint256){ return 5-mapAccountPublic[account].claimCnt; } // function getFreeMint(address account) public view onlyOwner returns(AccountParam memory){ // return mapAccountFreemint[account]; // } function updateMintPric(uint256 amount) public onlyOwner { mintPrice = amount; } function mint(uint256 amount, MintVoucher calldata voucher) public nonReentrant payable { AccountParam storage _accountParam = mapAccount[msg.sender]; uint256 curTokenID = _nextTokenId(); if(saleStage < 2 ){ // Whitelist Allowlist _accountParam = mapAccount[msg.sender]; require(_accountParam.claimCnt.add(amount.sub(1)) < 2, "claim count > 2"); } else if (saleStage == 2){ // PublicSale _accountParam = mapAccountPublic[msg.sender]; require(_accountParam.claimCnt.add(amount.sub(1)) < 5, "claim count > 5"); } if (saleStage < 3){ // Whitelist,Allowlist,PublicSale require(curTokenID.add(amount.sub(1)) < cap.sub(freeMintNum), "All nfts have been minted"); require(msg.value >= mintPrice.mul(amount), string(abi.encodePacked("claim ",Strings.toString(amount)," nft require ", Strings.toString(mintPrice.mul(amount)), " wei"))); }else{ // FreeMint _accountParam = mapAccountFreemint[msg.sender]; // require(_accountParam.claimCnt.add(amount.sub(1)) < _accountParam.freemint , "The num of freemint is invalid"); require(_accountParam.claimCnt.add(amount.sub(1)) < voucher.count , "The num of freemint is invalid"); require(curTokenID.add(amount.sub(1)) < cap , "All freemint nfts have been minted"); } bool _allowMint = false; if(saleStage == 2) // PublicSale _allowMint = true; else{ require(verifyVoucher(voucher, msg.sender) , "The voucher is invalid"); _allowMint = true; } require(_allowMint == true, "allowMint = false"); for (uint i = 0; i < amount; i++) { curTokenID = _nextTokenId(); _mint(_msgSender(), 1); // if(saleStage < 3 ){ ++_accountParam.claimCnt; _accountParam.tokenList.push(curTokenID); // } // _tokenIdCounter.increment(); } } function partnerMint(address minter, MintVoucher calldata voucher) external nonReentrant payable { bool isExist; uint256 index; (isExist, index) = _isExistPartner(_msgSender()); require(isExist , "The Partner is invalid"); require(partners[index].totalAmount > partners[index].soldAmount , "The partner exceeding the sales quota"); AccountParam storage _accountParam = mapAccount[minter]; uint256 curTokenID = _nextTokenId(); require(curTokenID < cap.sub(freeMintNum), "All nfts have been minted"); require(saleStage < 3,"invalid sale stage"); if(partners[index].onlyPublic){ require(saleStage==2,"invalid sale stage"); } if(!partners[index].direct){ require(msg.value == mintPrice, string(abi.encodePacked("claim nft require ", Strings.toString(mintPrice), " wei"))); } if(saleStage < 2 ){ // Whitelist Allowlist _accountParam = mapAccount[minter]; require(_accountParam.claimCnt < 2, "claim count > 2"); } else if (saleStage == 2){ // PublicSale _accountParam = mapAccountPublic[minter]; require(_accountParam.claimCnt < 5, "claim count > 5"); } if(partners[index].voucher && saleStage < 2){ require(verifyVoucher(voucher, minter) , "The voucher is invalid"); } _mint(minter, 1); ++partners[index].soldAmount; ++_accountParam.claimCnt; _accountParam.tokenList.push(curTokenID); // _tokenIdCounter.increment(); } function balanceOfContract() public view onlyOwner returns (uint) { return address(this).balance; } function withdraw() public nonReentrant onlyOwner{ uint256 _amount = address(this).balance; uint256 _div = SafeMath.div(_amount, 100); uint256 _amount1 = SafeMath.mul(_div, 15); uint256 _amount2 = _amount - _amount1; (bool success1, ) = vaultAddress1.call{value: _amount1}(""); require(success1, "Failed to send Ether to vaultAdrress1"); (bool success2, ) = vaultAddress2.call{value: _amount2}(""); require(success2, "Failed to send Ether to vaultAdrress2"); } function setSaleStage(uint256 stage) public onlyOwner{ saleStage = stage; } function startPublicSale() public onlyOwner{ setSaleStage(2); } function setVaultAddress(address _vaultAddr1, address _vaultAddr2) public nonReentrant onlyOwner{ vaultAddress1 = payable(_vaultAddr1); vaultAddress2 = payable(_vaultAddr2); } function setMintPrice(uint256 _mintPrice) public nonReentrant onlyOwner{ mintPrice = _mintPrice; } function toggleDisplayMode() public onlyOwner{ isBlindBox = !isBlindBox; } function setMetaAddress(string memory _url1, string memory _url2) public onlyOwner{ ipfsAddr1 = _url1; ipfsAddr2 = _url2; } function reserve(uint _count) public onlyOwner{ uint256 curTokenID = _nextTokenId(); if(_count>cap.sub(curTokenID)){ _mint(_msgSender(), cap.sub(curTokenID)); }else{ _mint(_msgSender(), _count); } } function addSigner(address _address) external onlyOwner { bool isExist; (isExist ,) = _isExistSigner(_address); if(!isExist){ signers.push(_address); } } // function removeSigner(address _address) external onlyOwner { // bool isExist; // uint256 index; // (isExist , index) = _isExistSigner(_address); // if(isExist){ // signers[index] = signers[signers.length - 1]; // signers.pop(); // } // } function _isExistSigner(address _address) internal view returns(bool , uint256) { bool exist; uint256 index; for(uint256 i ; i < signers.length ; i++){ if(signers[i] == _address){ exist = true; index = i; } } return (exist , index); } function isMintVoucher(MintVoucher calldata voucher) public view returns (bool) { bytes32 _hash = _hashTypedDataV4(keccak256(abi.encode( MINTVOUCHER_HASH, voucher.signer, voucher.minter, voucher.expiration, voucher.count ))); return ECDSA.recover(_hash, voucher.signature) == voucher.signer; } function verifyVoucher(MintVoucher calldata voucher, address minter) public view returns (bool) { require(isMintVoucher(voucher) , "Failed to verify the signature"); bool isExist; (isExist , ) = _isExistSigner(voucher.signer); require(isExist , "The signer is invalid"); // require(msg.sender == voucher.minter , "Minter is not the current caller"); require(minter == voucher.minter , "Minter is not right"); require(voucher.expiration > block.timestamp , "The voucher has expired"); return true; } function addPartner( address _address, uint256 totalAmount, bool direct, bool onlyPublic, bool voucher ) external onlyOwner { bool isExist; (isExist, ) = _isExistPartner(_address); if (!isExist) { partners.push(PartnerParam(_address,totalAmount,0,direct,onlyPublic,voucher)); } } // partner contracts Manager function updatePartner( address _address, uint256 totalAmount, bool direct, bool onlyPublic, bool voucher ) external onlyOwner { bool isExist; uint256 index; (isExist, index) = _isExistPartner(_address); require(isExist,'partner is not exist.'); partners[index].totalAmount = totalAmount; partners[index].direct = direct; partners[index].onlyPublic = onlyPublic; partners[index].voucher = voucher; } function getPartner() external view onlyOwner returns(PartnerParam[] memory){ return partners; } function _isExistPartner(address _address) internal view returns (bool, uint256) { bool exist; uint256 index; for (uint256 i; i < partners.length; i++) { if (partners[i].account == _address) { exist = true; index = i; } } return (exist, index); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import {OperatorFilterer} from "./OperatorFilterer.sol"; /** * @title DefaultOperatorFilterer * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription. */ abstract contract DefaultOperatorFilterer is OperatorFilterer { address constant DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6); constructor() OperatorFilterer(DEFAULT_SUBSCRIPTION, true) {} }
// 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.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./math/Math.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/EIP712.sol) pragma solidity ^0.8.0; import "./ECDSA.sol"; /** * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data. * * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible, * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding * they need in their contracts using a combination of `abi.encode` and `keccak256`. * * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA * ({_hashTypedDataV4}). * * The implementation of the domain separator was designed to be as efficient as possible while still properly updating * the chain id to protect against replay attacks on an eventual fork of the chain. * * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask]. * * _Available since v3.4._ */ abstract contract EIP712 { /* solhint-disable var-name-mixedcase */ // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to // invalidate the cached domain separator if the chain id changes. bytes32 private immutable _CACHED_DOMAIN_SEPARATOR; uint256 private immutable _CACHED_CHAIN_ID; address private immutable _CACHED_THIS; bytes32 private immutable _HASHED_NAME; bytes32 private immutable _HASHED_VERSION; bytes32 private immutable _TYPE_HASH; /* solhint-enable var-name-mixedcase */ /** * @dev Initializes the domain separator and parameter caches. * * The meaning of `name` and `version` is specified in * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]: * * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol. * - `version`: the current major version of the signing domain. * * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart * contract upgrade]. */ constructor(string memory name, string memory version) { bytes32 hashedName = keccak256(bytes(name)); bytes32 hashedVersion = keccak256(bytes(version)); bytes32 typeHash = keccak256( "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)" ); _HASHED_NAME = hashedName; _HASHED_VERSION = hashedVersion; _CACHED_CHAIN_ID = block.chainid; _CACHED_DOMAIN_SEPARATOR = _buildDomainSeparator(typeHash, hashedName, hashedVersion); _CACHED_THIS = address(this); _TYPE_HASH = typeHash; } /** * @dev Returns the domain separator for the current chain. */ function _domainSeparatorV4() internal view returns (bytes32) { if (address(this) == _CACHED_THIS && block.chainid == _CACHED_CHAIN_ID) { return _CACHED_DOMAIN_SEPARATOR; } else { return _buildDomainSeparator(_TYPE_HASH, _HASHED_NAME, _HASHED_VERSION); } } function _buildDomainSeparator( bytes32 typeHash, bytes32 nameHash, bytes32 versionHash ) private view returns (bytes32) { return keccak256(abi.encode(typeHash, nameHash, versionHash, block.chainid, address(this))); } /** * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this * function returns the hash of the fully encoded EIP712 message for this domain. * * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example: * * ```solidity * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode( * keccak256("Mail(address to,string contents)"), * mailTo, * keccak256(bytes(mailContents)) * ))); * address signer = ECDSA.recover(digest, signature); * ``` */ function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) { return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (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 pragma solidity ^0.8.13; import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol"; /** * @title OperatorFilterer * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another * registrant's entries in the OperatorFilterRegistry. * @dev This smart contract is meant to be inherited by token contracts so they can use the following: * - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods. * - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods. */ abstract contract OperatorFilterer { error OperatorNotAllowed(address operator); IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY = IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E); constructor(address subscriptionOrRegistrantToCopy, bool subscribe) { // If an inheriting token contract is deployed to a network without the registry deployed, the modifier // will not revert, but the contract will need to be registered with the registry once it is deployed in // order for the modifier to filter addresses. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { if (subscribe) { OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy); } else { if (subscriptionOrRegistrantToCopy != address(0)) { OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy); } else { OPERATOR_FILTER_REGISTRY.register(address(this)); } } } } modifier onlyAllowedOperator(address from) virtual { // Allow spending tokens from addresses with balance // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred // from an EOA. if (from != msg.sender) { _checkFilterOperator(msg.sender); } _; } modifier onlyAllowedOperatorApproval(address operator) virtual { _checkFilterOperator(operator); _; } function _checkFilterOperator(address operator) internal view virtual { // Check registry code length to facilitate testing in environments without a deployed registry. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) { revert OperatorNotAllowed(operator); } } } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables * (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, * checking first that contract recipients are aware of the ERC721 protocol * to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move * this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external payable; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Transfers `tokenId` from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} * whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external payable; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "../Strings.sol"; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV // Deprecated in v4.8 } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. /// @solidity memory-safe-assembly assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 27); return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; interface IOperatorFilterRegistry { function isOperatorAllowed(address registrant, address operator) external view returns (bool); function register(address registrant) external; function registerAndSubscribe(address registrant, address subscription) external; function registerAndCopyEntries(address registrant, address registrantToCopy) external; function unregister(address addr) external; function updateOperator(address registrant, address operator, bool filtered) external; function updateOperators(address registrant, address[] calldata operators, bool filtered) external; function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external; function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external; function subscribe(address registrant, address registrantToSubscribe) external; function unsubscribe(address registrant, bool copyExistingEntries) external; function subscriptionOf(address addr) external returns (address registrant); function subscribers(address registrant) external returns (address[] memory); function subscriberAt(address registrant, uint256 index) external returns (address); function copyEntriesOf(address registrant, address registrantToCopy) external; function isOperatorFiltered(address registrant, address operator) external returns (bool); function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool); function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool); function filteredOperators(address addr) external returns (address[] memory); function filteredCodeHashes(address addr) external returns (bytes32[] memory); function filteredOperatorAt(address registrant, uint256 index) external returns (address); function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32); function isRegistered(address addr) external returns (bool); function codeHashOf(address addr) external returns (bytes32); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"uint256","name":"cap_","type":"uint256"},{"internalType":"uint256","name":"freeMintNum_","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"totalAmount","type":"uint256"},{"internalType":"bool","name":"direct","type":"bool"},{"internalType":"bool","name":"onlyPublic","type":"bool"},{"internalType":"bool","name":"voucher","type":"bool"}],"name":"addPartner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"addSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"balanceOfContract","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freeMintNum","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPartner","outputs":[{"components":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"totalAmount","type":"uint256"},{"internalType":"uint256","name":"soldAmount","type":"uint256"},{"internalType":"bool","name":"direct","type":"bool"},{"internalType":"bool","name":"onlyPublic","type":"bool"},{"internalType":"bool","name":"voucher","type":"bool"}],"internalType":"struct ZRX48.PartnerParam[]","name":"","type":"tuple[]"}],"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":[{"components":[{"internalType":"address","name":"signer","type":"address"},{"internalType":"address","name":"minter","type":"address"},{"internalType":"uint256","name":"expiration","type":"uint256"},{"internalType":"uint256","name":"count","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"internalType":"struct ZRX48.MintVoucher","name":"voucher","type":"tuple"}],"name":"isMintVoucher","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"components":[{"internalType":"address","name":"signer","type":"address"},{"internalType":"address","name":"minter","type":"address"},{"internalType":"uint256","name":"expiration","type":"uint256"},{"internalType":"uint256","name":"count","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"internalType":"struct ZRX48.MintVoucher","name":"voucher","type":"tuple"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"minter","type":"address"},{"components":[{"internalType":"address","name":"signer","type":"address"},{"internalType":"address","name":"minter","type":"address"},{"internalType":"uint256","name":"expiration","type":"uint256"},{"internalType":"uint256","name":"count","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"internalType":"struct ZRX48.MintVoucher","name":"voucher","type":"tuple"}],"name":"partnerMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"partners","outputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"totalAmount","type":"uint256"},{"internalType":"uint256","name":"soldAmount","type":"uint256"},{"internalType":"bool","name":"direct","type":"bool"},{"internalType":"bool","name":"onlyPublic","type":"bool"},{"internalType":"bool","name":"voucher","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"preSaleAvailableQuantity","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"publicSaleAvailableQuantity","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"reserve","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":"saleStage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_url1","type":"string"},{"internalType":"string","name":"_url2","type":"string"}],"name":"setMetaAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintPrice","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"stage","type":"uint256"}],"name":"setSaleStage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_vaultAddr1","type":"address"},{"internalType":"address","name":"_vaultAddr2","type":"address"}],"name":"setVaultAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"signers","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startPublicSale","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":[],"name":"toggleDisplayMode","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"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":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"updateMintPric","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"totalAmount","type":"uint256"},{"internalType":"bool","name":"direct","type":"bool"},{"internalType":"bool","name":"onlyPublic","type":"bool"},{"internalType":"bool","name":"voucher","type":"bool"}],"name":"updatePartner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vaultAddress1","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vaultAddress2","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"signer","type":"address"},{"internalType":"address","name":"minter","type":"address"},{"internalType":"uint256","name":"expiration","type":"uint256"},{"internalType":"uint256","name":"count","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"internalType":"struct ZRX48.MintVoucher","name":"voucher","type":"tuple"},{"internalType":"address","name":"minter","type":"address"}],"name":"verifyVoucher","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
61014060405266aa87bee5380000600a556000600b5560405180602001604052806000815250600f90805190602001906200003c92919062000664565b5060405180602001604052806000815250601090805190602001906200006492919062000664565b506001601260146101000a81548160ff0219169083151502179055503480156200008d57600080fd5b506040516200686e3803806200686e8339818101604052810190620000b3919062000754565b733cc6cdda760b79bafa08df41ecfa224f810dceb660016040518060400160405280600481526020017f5a523438000000000000000000000000000000000000000000000000000000008152506040518060400160405280600181526020017f31000000000000000000000000000000000000000000000000000000000000008152506040518060400160405280600a81526020017f7a65726f20746f203438000000000000000000000000000000000000000000008152506040518060400160405280600481526020017f5a523438000000000000000000000000000000000000000000000000000000008152508160029080519060200190620001ba92919062000664565b508060039080519060200190620001d392919062000664565b50620001e46200055560201b60201c565b600081905550505060008280519060200120905060008280519060200120905060007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f90508260e081815250508161010081815250504660a08181525050620002558184846200055a60201b60201c565b608081815250503073ffffffffffffffffffffffffffffffffffffffff1660c08173ffffffffffffffffffffffffffffffffffffffff168152505080610120818152505050505050506001600881905550620002c6620002ba6200059660201b60201c565b6200059e60201b60201c565b60006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115620004bb57801562000381576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16637d3e3dbe30846040518363ffffffff1660e01b815260040162000347929190620007e0565b600060405180830381600087803b1580156200036257600080fd5b505af115801562000377573d6000803e3d6000fd5b50505050620004ba565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146200043b576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663a0af290330846040518363ffffffff1660e01b815260040162000401929190620007e0565b600060405180830381600087803b1580156200041c57600080fd5b505af115801562000431573d6000803e3d6000fd5b50505050620004b9565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16634420e486306040518263ffffffff1660e01b81526004016200048491906200080d565b600060405180830381600087803b1580156200049f57600080fd5b505af1158015620004b4573d6000803e3d6000fd5b505050505b5b5b505033601160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555033601260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600c8190555080600d81905550505062000917565b600090565b600083838346306040516020016200057795949392919062000856565b6040516020818303038152906040528051906020012090509392505050565b600033905090565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8280546200067290620008e2565b90600052602060002090601f016020900481019282620006965760008555620006e2565b82601f10620006b157805160ff1916838001178555620006e2565b82800160010185558215620006e2579182015b82811115620006e1578251825591602001919060010190620006c4565b5b509050620006f19190620006f5565b5090565b5b8082111562000710576000816000905550600101620006f6565b5090565b600080fd5b6000819050919050565b6200072e8162000719565b81146200073a57600080fd5b50565b6000815190506200074e8162000723565b92915050565b600080604083850312156200076e576200076d62000714565b5b60006200077e858286016200073d565b925050602062000791858286016200073d565b9150509250929050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620007c8826200079b565b9050919050565b620007da81620007bb565b82525050565b6000604082019050620007f76000830185620007cf565b620008066020830184620007cf565b9392505050565b6000602082019050620008246000830184620007cf565b92915050565b6000819050919050565b6200083f816200082a565b82525050565b620008508162000719565b82525050565b600060a0820190506200086d600083018862000834565b6200087c602083018762000834565b6200088b604083018662000834565b6200089a606083018562000845565b620008a96080830184620007cf565b9695505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620008fb57607f821691505b602082108103620009115762000910620008b3565b5b50919050565b60805160a05160c05160e0516101005161012051615f07620009676000396000613af101526000613b3301526000613b1201526000613a4701526000613a9d01526000613ac60152615f076000f3fe6080604052600436106102885760003560e01c80636817c76c1161015a578063b88d4fde116100c1578063e6c7c4561161007a578063e6c7c45614610981578063e985e9c5146109ac578063e99c4a8f146109e9578063eb12d61e14610a14578063f2fde38b14610a3d578063f4a0a52814610a6657610288565b8063b88d4fde14610841578063c11bb0881461085d578063c3b49d0414610888578063c87b56dd146108ca578063d52e91e914610907578063d91320e81461094457610288565b8063819b25ba11610113578063819b25ba146107545780638da5cb5b1461077d578063947b667b146107a857806395d89b41146107c4578063a22cb465146107ef578063a6582c401461081857610288565b80636817c76c146106585780636abb4a501461068357806370a08231146106ae578063715018a6146106eb57806378f16d97146107025780637fd664ee1461072b57610288565b80632079fb9a116101fe57806342842e0e116101b757806342842e0e146105415780634aaca86d1461055d5780635618923614610588578063626344ef146105b35780636352211e146105f0578063650db04e1461062d57610288565b80632079fb9a1461046457806320f6ea9f146104a157806323b872dd146104b8578063355274ea146104d45780633ccfd60b146104ff57806341f434341461051657610288565b8063094b7d2d11610250578063094b7d2d14610377578063095ea7b3146103b45780630c1c972a146103d057806311f8e678146103e757806318160ddd1461041057806318fb56a51461043b57610288565b806301ffc9a71461028d57806302bc4ee8146102ca57806302cdbe08146102f357806306fdde031461030f578063081812fc1461033a575b600080fd5b34801561029957600080fd5b506102b460048036038101906102af9190613f7b565b610a8f565b6040516102c19190613fc3565b60405180910390f35b3480156102d657600080fd5b506102f160048036038101906102ec919061409e565b610b21565b005b61030d6004803603810190610308919061413d565b610c79565b005b34801561031b57600080fd5b506103246111ce565b6040516103319190614232565b60405180910390f35b34801561034657600080fd5b50610361600480360381019061035c9190614254565b611260565b60405161036e9190614290565b60405180910390f35b34801561038357600080fd5b5061039e600480360381019061039991906142ab565b6112df565b6040516103ab9190613fc3565b60405180910390f35b6103ce60048036038101906103c99190614307565b61145c565b005b3480156103dc57600080fd5b506103e5611475565b005b3480156103f357600080fd5b5061040e60048036038101906104099190614254565b611489565b005b34801561041c57600080fd5b5061042561149b565b6040516104329190614356565b60405180910390f35b34801561044757600080fd5b50610462600480360381019061045d9190614371565b6114b2565b005b34801561047057600080fd5b5061048b60048036038101906104869190614254565b611550565b6040516104989190614290565b60405180910390f35b3480156104ad57600080fd5b506104b661158f565b005b6104d260048036038101906104cd91906143b1565b6115c3565b005b3480156104e057600080fd5b506104e9611612565b6040516104f69190614356565b60405180910390f35b34801561050b57600080fd5b50610514611618565b005b34801561052257600080fd5b5061052b611807565b6040516105389190614463565b60405180910390f35b61055b600480360381019061055691906143b1565b611819565b005b34801561056957600080fd5b50610572611868565b60405161057f9190614356565b60405180910390f35b34801561059457600080fd5b5061059d61186e565b6040516105aa9190614356565b60405180910390f35b3480156105bf57600080fd5b506105da60048036038101906105d5919061447e565b611885565b6040516105e79190614356565b60405180910390f35b3480156105fc57600080fd5b5061061760048036038101906106129190614254565b6118dd565b6040516106249190614290565b60405180910390f35b34801561063957600080fd5b506106426118ef565b60405161064f91906144cc565b60405180910390f35b34801561066457600080fd5b5061066d611915565b60405161067a9190614356565b60405180910390f35b34801561068f57600080fd5b5061069861191b565b6040516106a5919061463e565b60405180910390f35b3480156106ba57600080fd5b506106d560048036038101906106d0919061447e565b611a3d565b6040516106e29190614356565b60405180910390f35b3480156106f757600080fd5b50610700611af5565b005b34801561070e57600080fd5b5061072960048036038101906107249190614795565b611b09565b005b34801561073757600080fd5b50610752600480360381019061074d919061409e565b611b43565b005b34801561076057600080fd5b5061077b60048036038101906107769190614254565b611c89565b005b34801561078957600080fd5b50610792611cf9565b60405161079f9190614290565b60405180910390f35b6107c260048036038101906107bd919061480d565b611d23565b005b3480156107d057600080fd5b506107d961226e565b6040516107e69190614232565b60405180910390f35b3480156107fb57600080fd5b5061081660048036038101906108119190614869565b612300565b005b34801561082457600080fd5b5061083f600480360381019061083a9190614254565b612319565b005b61085b6004803603810190610856919061494a565b61232b565b005b34801561086957600080fd5b5061087261237c565b60405161087f91906144cc565b60405180910390f35b34801561089457600080fd5b506108af60048036038101906108aa9190614254565b6123a2565b6040516108c1969594939291906149cd565b60405180910390f35b3480156108d657600080fd5b506108f160048036038101906108ec9190614254565b612435565b6040516108fe9190614232565b60405180910390f35b34801561091357600080fd5b5061092e60048036038101906109299190614a2e565b6124fe565b60405161093b9190613fc3565b60405180910390f35b34801561095057600080fd5b5061096b6004803603810190610966919061447e565b61262a565b6040516109789190614356565b60405180910390f35b34801561098d57600080fd5b50610996612682565b6040516109a39190614356565b60405180910390f35b3480156109b857600080fd5b506109d360048036038101906109ce9190614371565b612692565b6040516109e09190613fc3565b60405180910390f35b3480156109f557600080fd5b506109fe612726565b604051610a0b9190614356565b60405180910390f35b348015610a2057600080fd5b50610a3b6004803603810190610a36919061447e565b61272c565b005b348015610a4957600080fd5b50610a646004803603810190610a5f919061447e565b6127b1565b005b348015610a7257600080fd5b50610a8d6004803603810190610a889190614254565b612834565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610aea57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610b1a5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b610b29612856565b6000610b34866128d4565b508091505080610c7157600e6040518060c001604052808873ffffffffffffffffffffffffffffffffffffffff1681526020018781526020016000815260200186151581526020018515158152602001841515815250908060018154018082558091505060019003906000526020600020906004020160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550602082015181600101556040820151816002015560608201518160030160006101000a81548160ff02191690831515021790555060808201518160030160016101000a81548160ff02191690831515021790555060a08201518160030160026101000a81548160ff02191690831515021790555050505b505050505050565b610c8161298b565b600080610c94610c8f6129da565b6128d4565b809250819350505081610cdc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cd390614ac3565b60405180910390fd5b600e8181548110610cf057610cef614ae3565b5b906000526020600020906004020160020154600e8281548110610d1657610d15614ae3565b5b90600052602060002090600402016001015411610d68576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d5f90614b84565b60405180910390fd5b6000601360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000610db56129e2565b9050610dce600d54600c546129eb90919063ffffffff16565b8110610e0f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e0690614bf0565b60405180910390fd5b6003600b5410610e54576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e4b90614c5c565b60405180910390fd5b600e8381548110610e6857610e67614ae3565b5b906000526020600020906004020160030160019054906101000a900460ff1615610ed2576002600b5414610ed1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ec890614c5c565b60405180910390fd5b5b600e8381548110610ee657610ee5614ae3565b5b906000526020600020906004020160030160009054906101000a900460ff16610f7b57600a543414610f19600a54612a01565b604051602001610f299190614d50565b60405160208183030381529060405290610f79576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f709190614232565b60405180910390fd5b505b6002600b54101561101357601360008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209150600282600001541061100e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100590614dc9565b60405180910390fd5b6110a7565b6002600b54036110a657601460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020915060058260000154106110a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161109c90614e35565b60405180910390fd5b5b5b600e83815481106110bb576110ba614ae3565b5b906000526020600020906004020160030160029054906101000a900460ff1680156110e857506002600b54105b15611137576110f785876112df565b611136576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161112d90614ea1565b60405180910390fd5b5b611142866001612acf565b600e838154811061115657611155614ae3565b5b90600052602060002090600402016002016000815461117490614ef0565b91905081905550816000016000815461118c90614ef0565b9190508190555081600101819080600181540180825580915050600190039060005260206000200160009091909190915055505050506111ca612c8a565b5050565b6060600280546111dd90614f67565b80601f016020809104026020016040519081016040528092919081815260200182805461120990614f67565b80156112565780601f1061122b57610100808354040283529160200191611256565b820191906000526020600020905b81548152906001019060200180831161123957829003601f168201915b5050505050905090565b600061126b82612c94565b6112a1576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006112ea836124fe565b611329576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161132090614fe4565b60405180910390fd5b6000611346846000016020810190611341919061447e565b612cf3565b50809150508061138b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161138290615050565b60405180910390fd5b83602001602081019061139e919061447e565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461140b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611402906150bc565b60405180910390fd5b42846040013511611451576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161144890615128565b60405180910390fd5b600191505092915050565b8161146681612da3565b6114708383612ea0565b505050565b61147d612856565b6114876002611489565b565b611491612856565b80600b8190555050565b60006114a5612fe4565b6001546000540303905090565b6114ba61298b565b6114c2612856565b81601160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080601260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555061154c612c8a565b5050565b6019818154811061156057600080fd5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611597612856565b601260149054906101000a900460ff1615601260146101000a81548160ff021916908315150217905550565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146116015761160033612da3565b5b61160c848484612fe9565b50505050565b600c5481565b61162061298b565b611628612856565b6000479050600061163a82606461330b565b9050600061164982600f613321565b9050600081846116599190615148565b90506000601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16836040516116a3906151ad565b60006040518083038185875af1925050503d80600081146116e0576040519150601f19603f3d011682016040523d82523d6000602084013e6116e5565b606091505b5050905080611729576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161172090615234565b60405180910390fd5b6000601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1683604051611771906151ad565b60006040518083038185875af1925050503d80600081146117ae576040519150601f19603f3d011682016040523d82523d6000602084013e6117b3565b606091505b50509050806117f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117ee906152c6565b60405180910390fd5b505050505050611805612c8a565b565b6daaeb6d7670e522a718067333cd4e81565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146118575761185633612da3565b5b611862848484613337565b50505050565b600b5481565b6000611878612856565b6118806129e2565b905090565b6000601460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000015460056118d69190615148565b9050919050565b60006118e882613357565b9050919050565b601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600a5481565b6060611925612856565b600e805480602002602001604051908101604052809291908181526020016000905b82821015611a3457838290600052602060002090600402016040518060c00160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200160018201548152602001600282015481526020016003820160009054906101000a900460ff161515151581526020016003820160019054906101000a900460ff161515151581526020016003820160029054906101000a900460ff16151515158152505081526020019060010190611947565b50505050905090565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611aa4576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611afd612856565b611b076000613423565b565b611b11612856565b81600f9080519060200190611b27929190613e6c565b508060109080519060200190611b3e929190613e6c565b505050565b611b4b612856565b600080611b57876128d4565b809250819350505081611b9f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b9690615332565b60405180910390fd5b85600e8281548110611bb457611bb3614ae3565b5b90600052602060002090600402016001018190555084600e8281548110611bde57611bdd614ae3565b5b906000526020600020906004020160030160006101000a81548160ff02191690831515021790555083600e8281548110611c1b57611c1a614ae3565b5b906000526020600020906004020160030160016101000a81548160ff02191690831515021790555082600e8281548110611c5857611c57614ae3565b5b906000526020600020906004020160030160026101000a81548160ff02191690831515021790555050505050505050565b611c91612856565b6000611c9b6129e2565b9050611cb281600c546129eb90919063ffffffff16565b821115611ce357611cde611cc46129da565b611cd983600c546129eb90919063ffffffff16565b612acf565b611cf5565b611cf4611cee6129da565b83612acf565b5b5050565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611d2b61298b565b6000601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000611d786129e2565b90506002600b541015611e3757601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002091506002611df2611ddf6001876129eb90919063ffffffff16565b84600001546134e990919063ffffffff16565b10611e32576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e2990614dc9565b60405180910390fd5b611ef0565b6002600b5403611eef57601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002091506005611eae611e9b6001876129eb90919063ffffffff16565b84600001546134e990919063ffffffff16565b10611eee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ee590614e35565b60405180910390fd5b5b5b6003600b54101561201d57611f12600d54600c546129eb90919063ffffffff16565b611f38611f296001876129eb90919063ffffffff16565b836134e990919063ffffffff16565b10611f78576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f6f90614bf0565b60405180910390fd5b611f8d84600a5461332190919063ffffffff16565b341015611f9985612a01565b611fb6611fb187600a5461332190919063ffffffff16565b612a01565b604051602001611fc79291906153ea565b60405160208183030381529060405290612017576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161200e9190614232565b60405180910390fd5b50612137565b601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209150826060013561208d61207a6001876129eb90919063ffffffff16565b84600001546134e990919063ffffffff16565b106120cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120c49061547b565b60405180910390fd5b600c546120f66120e76001876129eb90919063ffffffff16565b836134e990919063ffffffff16565b10612136576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161212d9061550d565b60405180910390fd5b5b60006002600b540361214c576001905061219a565b61215684336112df565b612195576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161218c90614ea1565b60405180910390fd5b600190505b60011515811515146121e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121d890615579565b60405180910390fd5b60005b8581101561225e576121f46129e2565b92506122086122016129da565b6001612acf565b836000016000815461221990614ef0565b9190508190555083600101839080600181540180825580915050600190039060005260206000200160009091909190915055808061225690614ef0565b9150506121e4565b5050505061226a612c8a565b5050565b60606003805461227d90614f67565b80601f01602080910402602001604051908101604052809291908181526020018280546122a990614f67565b80156122f65780601f106122cb576101008083540402835291602001916122f6565b820191906000526020600020905b8154815290600101906020018083116122d957829003601f168201915b5050505050905090565b8161230a81612da3565b61231483836134ff565b505050565b612321612856565b80600a8190555050565b833373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146123695761236833612da3565b5b6123758585858561360a565b5050505050565b601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600e81815481106123b257600080fd5b90600052602060002090600402016000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154908060020154908060030160009054906101000a900460ff16908060030160019054906101000a900460ff16908060030160029054906101000a900460ff16905086565b606061244082612c94565b61247f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124769061560b565b60405180910390fd5b600061248a83612a01565b905060011515601260149054906101000a900460ff161515036124d257600f816040516020016124bb92919061570b565b6040516020818303038152906040529150506124f9565b6010816040516020016124e692919061570b565b6040516020818303038152906040529150505b919050565b6000806125847fdac9a7a24fa9babcebb16a2416bbe175addd266c40068e0263838c37217d7b10846000016020810190612538919061447e565b85602001602081019061254b919061447e565b86604001358760600135604051602001612569959493929190615753565b6040516020818303038152906040528051906020012061367d565b9050826000016020810190612599919061447e565b73ffffffffffffffffffffffffffffffffffffffff1661260b828580608001906125c391906157b5565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050613697565b73ffffffffffffffffffffffffffffffffffffffff1614915050919050565b6000601360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000154600261267b9190615148565b9050919050565b600061268c612856565b47905090565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600d5481565b612734612856565b600061273f82612cf3565b5080915050806127ad576019829080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b5050565b6127b9612856565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612828576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161281f9061588a565b60405180910390fd5b61283181613423565b50565b61283c61298b565b612844612856565b80600a81905550612853612c8a565b50565b61285e6129da565b73ffffffffffffffffffffffffffffffffffffffff1661287c611cf9565b73ffffffffffffffffffffffffffffffffffffffff16146128d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128c9906158f6565b60405180910390fd5b565b60008060008060005b600e8054905081101561297d578573ffffffffffffffffffffffffffffffffffffffff16600e828154811061291557612914614ae3565b5b906000526020600020906004020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff160361296a57600192508091505b808061297590614ef0565b9150506128dd565b508181935093505050915091565b6002600854036129d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129c790615962565b60405180910390fd5b6002600881905550565b600033905090565b60008054905090565b600081836129f99190615148565b905092915050565b606060006001612a10846136be565b01905060008167ffffffffffffffff811115612a2f57612a2e61466a565b5b6040519080825280601f01601f191660200182016040528015612a615781602001600182028036833780820191505090505b509050600082602001820190505b600115612ac4578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8581612ab857612ab7615982565b5b04945060008503612a6f575b819350505050919050565b60008054905060008203612b0f576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612b1c6000848385613811565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612b9383612b846000866000613817565b612b8d8561383f565b1761384f565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b818114612c3457808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050612bf9565b5060008203612c6f576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806000819055505050612c85600084838561387a565b505050565b6001600881905550565b600081612c9f612fe4565b11158015612cae575060005482105b8015612cec575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b60008060008060005b601980549050811015612d95578573ffffffffffffffffffffffffffffffffffffffff1660198281548110612d3457612d33614ae3565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603612d8257600192508091505b8080612d8d90614ef0565b915050612cfc565b508181935093505050915091565b60006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115612e9d576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b8152600401612e1a9291906159b1565b602060405180830381865afa158015612e37573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e5b91906159ef565b612e9c57806040517fede71dcc000000000000000000000000000000000000000000000000000000008152600401612e939190614290565b60405180910390fd5b5b50565b6000612eab826118dd565b90508073ffffffffffffffffffffffffffffffffffffffff16612ecc613880565b73ffffffffffffffffffffffffffffffffffffffff1614612f2f57612ef881612ef3613880565b612692565b612f2e576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600090565b6000612ff482613357565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461305b576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008061306784613888565b9150915061307d8187613078613880565b6138af565b6130c9576130928661308d613880565b612692565b6130c8576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff160361312f576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61313c8686866001613811565b801561314757600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550613215856131f1888887613817565b7c02000000000000000000000000000000000000000000000000000000001761384f565b600460008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084160361329b5760006001850190506000600460008381526020019081526020016000205403613299576000548114613298578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613303868686600161387a565b505050505050565b600081836133199190615a1c565b905092915050565b6000818361332f9190615a4d565b905092915050565b6133528383836040518060200160405280600081525061232b565b505050565b60008082905080613366612fe4565b116133ec576000548110156133eb5760006004600083815260200190815260200160002054905060007c01000000000000000000000000000000000000000000000000000000008216036133e9575b600081036133df5760046000836001900393508381526020019081526020016000205490506133b5565b809250505061341e565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600081836134f79190615aa7565b905092915050565b806007600061350c613880565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166135b9613880565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516135fe9190613fc3565b60405180910390a35050565b6136158484846115c3565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461367757613640848484846138f3565b613676576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b600061369061368a613a43565b83613b5d565b9050919050565b60008060006136a68585613b90565b915091506136b381613be1565b819250505092915050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000831061371c577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000838161371257613711615982565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310613759576d04ee2d6d415b85acef8100000000838161374f5761374e615982565b5b0492506020810190505b662386f26fc10000831061378857662386f26fc10000838161377e5761377d615982565b5b0492506010810190505b6305f5e10083106137b1576305f5e10083816137a7576137a6615982565b5b0492506008810190505b61271083106137d65761271083816137cc576137cb615982565b5b0492506004810190505b606483106137f957606483816137ef576137ee615982565b5b0492506002810190505b600a8310613808576001810190505b80915050919050565b50505050565b60008060e883901c905060e861382e868684613d47565b62ffffff16901b9150509392505050565b60006001821460e11b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b600033905090565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613919613880565b8786866040518563ffffffff1660e01b815260040161393b9493929190615b52565b6020604051808303816000875af192505050801561397757506040513d601f19601f820116820180604052508101906139749190615bb3565b60015b6139f0573d80600081146139a7576040519150601f19603f3d011682016040523d82523d6000602084013e6139ac565b606091505b5060008151036139e8576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff16148015613abf57507f000000000000000000000000000000000000000000000000000000000000000046145b15613aec577f00000000000000000000000000000000000000000000000000000000000000009050613b5a565b613b577f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000613d50565b90505b90565b60008282604051602001613b72929190615c4d565b60405160208183030381529060405280519060200120905092915050565b6000806041835103613bd15760008060006020860151925060408601519150606086015160001a9050613bc587828585613d8a565b94509450505050613bda565b60006002915091505b9250929050565b60006004811115613bf557613bf4615c84565b5b816004811115613c0857613c07615c84565b5b0315613d445760016004811115613c2257613c21615c84565b5b816004811115613c3557613c34615c84565b5b03613c75576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613c6c90615cff565b60405180910390fd5b60026004811115613c8957613c88615c84565b5b816004811115613c9c57613c9b615c84565b5b03613cdc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613cd390615d6b565b60405180910390fd5b60036004811115613cf057613cef615c84565b5b816004811115613d0357613d02615c84565b5b03613d43576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613d3a90615dfd565b60405180910390fd5b5b50565b60009392505050565b60008383834630604051602001613d6b959493929190615e1d565b6040516020818303038152906040528051906020012090509392505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c1115613dc5576000600391509150613e63565b600060018787878760405160008152602001604052604051613dea9493929190615e8c565b6020604051602081039080840390855afa158015613e0c573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603613e5a57600060019250925050613e63565b80600092509250505b94509492505050565b828054613e7890614f67565b90600052602060002090601f016020900481019282613e9a5760008555613ee1565b82601f10613eb357805160ff1916838001178555613ee1565b82800160010185558215613ee1579182015b82811115613ee0578251825591602001919060010190613ec5565b5b509050613eee9190613ef2565b5090565b5b80821115613f0b576000816000905550600101613ef3565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613f5881613f23565b8114613f6357600080fd5b50565b600081359050613f7581613f4f565b92915050565b600060208284031215613f9157613f90613f19565b5b6000613f9f84828501613f66565b91505092915050565b60008115159050919050565b613fbd81613fa8565b82525050565b6000602082019050613fd86000830184613fb4565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061400982613fde565b9050919050565b61401981613ffe565b811461402457600080fd5b50565b60008135905061403681614010565b92915050565b6000819050919050565b61404f8161403c565b811461405a57600080fd5b50565b60008135905061406c81614046565b92915050565b61407b81613fa8565b811461408657600080fd5b50565b60008135905061409881614072565b92915050565b600080600080600060a086880312156140ba576140b9613f19565b5b60006140c888828901614027565b95505060206140d98882890161405d565b94505060406140ea88828901614089565b93505060606140fb88828901614089565b925050608061410c88828901614089565b9150509295509295909350565b600080fd5b600060a0828403121561413457614133614119565b5b81905092915050565b6000806040838503121561415457614153613f19565b5b600061416285828601614027565b925050602083013567ffffffffffffffff81111561418357614182613f1e565b5b61418f8582860161411e565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b60005b838110156141d35780820151818401526020810190506141b8565b838111156141e2576000848401525b50505050565b6000601f19601f8301169050919050565b600061420482614199565b61420e81856141a4565b935061421e8185602086016141b5565b614227816141e8565b840191505092915050565b6000602082019050818103600083015261424c81846141f9565b905092915050565b60006020828403121561426a57614269613f19565b5b60006142788482850161405d565b91505092915050565b61428a81613ffe565b82525050565b60006020820190506142a56000830184614281565b92915050565b600080604083850312156142c2576142c1613f19565b5b600083013567ffffffffffffffff8111156142e0576142df613f1e565b5b6142ec8582860161411e565b92505060206142fd85828601614027565b9150509250929050565b6000806040838503121561431e5761431d613f19565b5b600061432c85828601614027565b925050602061433d8582860161405d565b9150509250929050565b6143508161403c565b82525050565b600060208201905061436b6000830184614347565b92915050565b6000806040838503121561438857614387613f19565b5b600061439685828601614027565b92505060206143a785828601614027565b9150509250929050565b6000806000606084860312156143ca576143c9613f19565b5b60006143d886828701614027565b93505060206143e986828701614027565b92505060406143fa8682870161405d565b9150509250925092565b6000819050919050565b600061442961442461441f84613fde565b614404565b613fde565b9050919050565b600061443b8261440e565b9050919050565b600061444d82614430565b9050919050565b61445d81614442565b82525050565b60006020820190506144786000830184614454565b92915050565b60006020828403121561449457614493613f19565b5b60006144a284828501614027565b91505092915050565b60006144b682613fde565b9050919050565b6144c6816144ab565b82525050565b60006020820190506144e160008301846144bd565b92915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61451c81613ffe565b82525050565b61452b8161403c565b82525050565b61453a81613fa8565b82525050565b60c0820160008201516145566000850182614513565b5060208201516145696020850182614522565b50604082015161457c6040850182614522565b50606082015161458f6060850182614531565b5060808201516145a26080850182614531565b5060a08201516145b560a0850182614531565b50505050565b60006145c78383614540565b60c08301905092915050565b6000602082019050919050565b60006145eb826144e7565b6145f581856144f2565b935061460083614503565b8060005b8381101561463157815161461888826145bb565b9750614623836145d3565b925050600181019050614604565b5085935050505092915050565b6000602082019050818103600083015261465881846145e0565b905092915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6146a2826141e8565b810181811067ffffffffffffffff821117156146c1576146c061466a565b5b80604052505050565b60006146d4613f0f565b90506146e08282614699565b919050565b600067ffffffffffffffff821115614700576146ff61466a565b5b614709826141e8565b9050602081019050919050565b82818337600083830152505050565b6000614738614733846146e5565b6146ca565b90508281526020810184848401111561475457614753614665565b5b61475f848285614716565b509392505050565b600082601f83011261477c5761477b614660565b5b813561478c848260208601614725565b91505092915050565b600080604083850312156147ac576147ab613f19565b5b600083013567ffffffffffffffff8111156147ca576147c9613f1e565b5b6147d685828601614767565b925050602083013567ffffffffffffffff8111156147f7576147f6613f1e565b5b61480385828601614767565b9150509250929050565b6000806040838503121561482457614823613f19565b5b60006148328582860161405d565b925050602083013567ffffffffffffffff81111561485357614852613f1e565b5b61485f8582860161411e565b9150509250929050565b600080604083850312156148805761487f613f19565b5b600061488e85828601614027565b925050602061489f85828601614089565b9150509250929050565b600067ffffffffffffffff8211156148c4576148c361466a565b5b6148cd826141e8565b9050602081019050919050565b60006148ed6148e8846148a9565b6146ca565b90508281526020810184848401111561490957614908614665565b5b614914848285614716565b509392505050565b600082601f83011261493157614930614660565b5b81356149418482602086016148da565b91505092915050565b6000806000806080858703121561496457614963613f19565b5b600061497287828801614027565b945050602061498387828801614027565b93505060406149948782880161405d565b925050606085013567ffffffffffffffff8111156149b5576149b4613f1e565b5b6149c18782880161491c565b91505092959194509250565b600060c0820190506149e26000830189614281565b6149ef6020830188614347565b6149fc6040830187614347565b614a096060830186613fb4565b614a166080830185613fb4565b614a2360a0830184613fb4565b979650505050505050565b600060208284031215614a4457614a43613f19565b5b600082013567ffffffffffffffff811115614a6257614a61613f1e565b5b614a6e8482850161411e565b91505092915050565b7f54686520506172746e657220697320696e76616c696400000000000000000000600082015250565b6000614aad6016836141a4565b9150614ab882614a77565b602082019050919050565b60006020820190508181036000830152614adc81614aa0565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f54686520706172746e657220657863656564696e67207468652073616c65732060008201527f71756f7461000000000000000000000000000000000000000000000000000000602082015250565b6000614b6e6025836141a4565b9150614b7982614b12565b604082019050919050565b60006020820190508181036000830152614b9d81614b61565b9050919050565b7f416c6c206e6674732068617665206265656e206d696e74656400000000000000600082015250565b6000614bda6019836141a4565b9150614be582614ba4565b602082019050919050565b60006020820190508181036000830152614c0981614bcd565b9050919050565b7f696e76616c69642073616c652073746167650000000000000000000000000000600082015250565b6000614c466012836141a4565b9150614c5182614c10565b602082019050919050565b60006020820190508181036000830152614c7581614c39565b9050919050565b600081905092915050565b7f636c61696d206e66742072657175697265200000000000000000000000000000600082015250565b6000614cbd601283614c7c565b9150614cc882614c87565b601282019050919050565b6000614cde82614199565b614ce88185614c7c565b9350614cf88185602086016141b5565b80840191505092915050565b7f2077656900000000000000000000000000000000000000000000000000000000600082015250565b6000614d3a600483614c7c565b9150614d4582614d04565b600482019050919050565b6000614d5b82614cb0565b9150614d678284614cd3565b9150614d7282614d2d565b915081905092915050565b7f636c61696d20636f756e74203e20320000000000000000000000000000000000600082015250565b6000614db3600f836141a4565b9150614dbe82614d7d565b602082019050919050565b60006020820190508181036000830152614de281614da6565b9050919050565b7f636c61696d20636f756e74203e20350000000000000000000000000000000000600082015250565b6000614e1f600f836141a4565b9150614e2a82614de9565b602082019050919050565b60006020820190508181036000830152614e4e81614e12565b9050919050565b7f54686520766f756368657220697320696e76616c696400000000000000000000600082015250565b6000614e8b6016836141a4565b9150614e9682614e55565b602082019050919050565b60006020820190508181036000830152614eba81614e7e565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614efb8261403c565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614f2d57614f2c614ec1565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680614f7f57607f821691505b602082108103614f9257614f91614f38565b5b50919050565b7f4661696c656420746f2076657269667920746865207369676e61747572650000600082015250565b6000614fce601e836141a4565b9150614fd982614f98565b602082019050919050565b60006020820190508181036000830152614ffd81614fc1565b9050919050565b7f546865207369676e657220697320696e76616c69640000000000000000000000600082015250565b600061503a6015836141a4565b915061504582615004565b602082019050919050565b600060208201905081810360008301526150698161502d565b9050919050565b7f4d696e746572206973206e6f7420726967687400000000000000000000000000600082015250565b60006150a66013836141a4565b91506150b182615070565b602082019050919050565b600060208201905081810360008301526150d581615099565b9050919050565b7f54686520766f7563686572206861732065787069726564000000000000000000600082015250565b60006151126017836141a4565b915061511d826150dc565b602082019050919050565b6000602082019050818103600083015261514181615105565b9050919050565b60006151538261403c565b915061515e8361403c565b92508282101561517157615170614ec1565b5b828203905092915050565b600081905092915050565b50565b600061519760008361517c565b91506151a282615187565b600082019050919050565b60006151b88261518a565b9150819050919050565b7f4661696c656420746f2073656e6420457468657220746f207661756c7441647260008201527f7265737331000000000000000000000000000000000000000000000000000000602082015250565b600061521e6025836141a4565b9150615229826151c2565b604082019050919050565b6000602082019050818103600083015261524d81615211565b9050919050565b7f4661696c656420746f2073656e6420457468657220746f207661756c7441647260008201527f7265737332000000000000000000000000000000000000000000000000000000602082015250565b60006152b06025836141a4565b91506152bb82615254565b604082019050919050565b600060208201905081810360008301526152df816152a3565b9050919050565b7f706172746e6572206973206e6f742065786973742e0000000000000000000000600082015250565b600061531c6015836141a4565b9150615327826152e6565b602082019050919050565b6000602082019050818103600083015261534b8161530f565b9050919050565b7f636c61696d200000000000000000000000000000000000000000000000000000600082015250565b6000615388600683614c7c565b915061539382615352565b600682019050919050565b7f206e667420726571756972652000000000000000000000000000000000000000600082015250565b60006153d4600d83614c7c565b91506153df8261539e565b600d82019050919050565b60006153f58261537b565b91506154018285614cd3565b915061540c826153c7565b91506154188284614cd3565b915061542382614d2d565b91508190509392505050565b7f546865206e756d206f6620667265656d696e7420697320696e76616c69640000600082015250565b6000615465601e836141a4565b91506154708261542f565b602082019050919050565b6000602082019050818103600083015261549481615458565b9050919050565b7f416c6c20667265656d696e74206e6674732068617665206265656e206d696e7460008201527f6564000000000000000000000000000000000000000000000000000000000000602082015250565b60006154f76022836141a4565b91506155028261549b565b604082019050919050565b60006020820190508181036000830152615526816154ea565b9050919050565b7f616c6c6f774d696e74203d2066616c7365000000000000000000000000000000600082015250565b60006155636011836141a4565b915061556e8261552d565b602082019050919050565b6000602082019050818103600083015261559281615556565b9050919050565b7f746f6b656e5552493a2055524920717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b60006155f56029836141a4565b915061560082615599565b604082019050919050565b60006020820190508181036000830152615624816155e8565b9050919050565b60008190508160005260206000209050919050565b6000815461564d81614f67565b6156578186614c7c565b945060018216600081146156725760018114615683576156b6565b60ff198316865281860193506156b6565b61568c8561562b565b60005b838110156156ae5781548189015260018201915060208101905061568f565b838801955050505b50505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b60006156f5600583614c7c565b9150615700826156bf565b600582019050919050565b60006157178285615640565b91506157238284614cd3565b915061572e826156e8565b91508190509392505050565b6000819050919050565b61574d8161573a565b82525050565b600060a0820190506157686000830188615744565b6157756020830187614281565b6157826040830186614281565b61578f6060830185614347565b61579c6080830184614347565b9695505050505050565b600080fd5b600080fd5b600080fd5b600080833560016020038436030381126157d2576157d16157a6565b5b80840192508235915067ffffffffffffffff8211156157f4576157f36157ab565b5b6020830192506001820236038313156158105761580f6157b0565b5b509250929050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006158746026836141a4565b915061587f82615818565b604082019050919050565b600060208201905081810360008301526158a381615867565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006158e06020836141a4565b91506158eb826158aa565b602082019050919050565b6000602082019050818103600083015261590f816158d3565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b600061594c601f836141a4565b915061595782615916565b602082019050919050565b6000602082019050818103600083015261597b8161593f565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006040820190506159c66000830185614281565b6159d36020830184614281565b9392505050565b6000815190506159e981614072565b92915050565b600060208284031215615a0557615a04613f19565b5b6000615a13848285016159da565b91505092915050565b6000615a278261403c565b9150615a328361403c565b925082615a4257615a41615982565b5b828204905092915050565b6000615a588261403c565b9150615a638361403c565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615615a9c57615a9b614ec1565b5b828202905092915050565b6000615ab28261403c565b9150615abd8361403c565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115615af257615af1614ec1565b5b828201905092915050565b600081519050919050565b600082825260208201905092915050565b6000615b2482615afd565b615b2e8185615b08565b9350615b3e8185602086016141b5565b615b47816141e8565b840191505092915050565b6000608082019050615b676000830187614281565b615b746020830186614281565b615b816040830185614347565b8181036060830152615b938184615b19565b905095945050505050565b600081519050615bad81613f4f565b92915050565b600060208284031215615bc957615bc8613f19565b5b6000615bd784828501615b9e565b91505092915050565b7f1901000000000000000000000000000000000000000000000000000000000000600082015250565b6000615c16600283614c7c565b9150615c2182615be0565b600282019050919050565b6000819050919050565b615c47615c428261573a565b615c2c565b82525050565b6000615c5882615c09565b9150615c648285615c36565b602082019150615c748284615c36565b6020820191508190509392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b6000615ce96018836141a4565b9150615cf482615cb3565b602082019050919050565b60006020820190508181036000830152615d1881615cdc565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b6000615d55601f836141a4565b9150615d6082615d1f565b602082019050919050565b60006020820190508181036000830152615d8481615d48565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b6000615de76022836141a4565b9150615df282615d8b565b604082019050919050565b60006020820190508181036000830152615e1681615dda565b9050919050565b600060a082019050615e326000830188615744565b615e3f6020830187615744565b615e4c6040830186615744565b615e596060830185614347565b615e666080830184614281565b9695505050505050565b600060ff82169050919050565b615e8681615e70565b82525050565b6000608082019050615ea16000830187615744565b615eae6020830186615e7d565b615ebb6040830185615744565b615ec86060830184615744565b9594505050505056fea26469706673582212200ea82bc69fe49a38219d0ac7d4ca4509ad4ddbcfac3d560d1ae19f8506dc2deb64736f6c634300080d003300000000000000000000000000000000000000000000000000000000000022900000000000000000000000000000000000000000000000000000000000000800
Deployed Bytecode
0x6080604052600436106102885760003560e01c80636817c76c1161015a578063b88d4fde116100c1578063e6c7c4561161007a578063e6c7c45614610981578063e985e9c5146109ac578063e99c4a8f146109e9578063eb12d61e14610a14578063f2fde38b14610a3d578063f4a0a52814610a6657610288565b8063b88d4fde14610841578063c11bb0881461085d578063c3b49d0414610888578063c87b56dd146108ca578063d52e91e914610907578063d91320e81461094457610288565b8063819b25ba11610113578063819b25ba146107545780638da5cb5b1461077d578063947b667b146107a857806395d89b41146107c4578063a22cb465146107ef578063a6582c401461081857610288565b80636817c76c146106585780636abb4a501461068357806370a08231146106ae578063715018a6146106eb57806378f16d97146107025780637fd664ee1461072b57610288565b80632079fb9a116101fe57806342842e0e116101b757806342842e0e146105415780634aaca86d1461055d5780635618923614610588578063626344ef146105b35780636352211e146105f0578063650db04e1461062d57610288565b80632079fb9a1461046457806320f6ea9f146104a157806323b872dd146104b8578063355274ea146104d45780633ccfd60b146104ff57806341f434341461051657610288565b8063094b7d2d11610250578063094b7d2d14610377578063095ea7b3146103b45780630c1c972a146103d057806311f8e678146103e757806318160ddd1461041057806318fb56a51461043b57610288565b806301ffc9a71461028d57806302bc4ee8146102ca57806302cdbe08146102f357806306fdde031461030f578063081812fc1461033a575b600080fd5b34801561029957600080fd5b506102b460048036038101906102af9190613f7b565b610a8f565b6040516102c19190613fc3565b60405180910390f35b3480156102d657600080fd5b506102f160048036038101906102ec919061409e565b610b21565b005b61030d6004803603810190610308919061413d565b610c79565b005b34801561031b57600080fd5b506103246111ce565b6040516103319190614232565b60405180910390f35b34801561034657600080fd5b50610361600480360381019061035c9190614254565b611260565b60405161036e9190614290565b60405180910390f35b34801561038357600080fd5b5061039e600480360381019061039991906142ab565b6112df565b6040516103ab9190613fc3565b60405180910390f35b6103ce60048036038101906103c99190614307565b61145c565b005b3480156103dc57600080fd5b506103e5611475565b005b3480156103f357600080fd5b5061040e60048036038101906104099190614254565b611489565b005b34801561041c57600080fd5b5061042561149b565b6040516104329190614356565b60405180910390f35b34801561044757600080fd5b50610462600480360381019061045d9190614371565b6114b2565b005b34801561047057600080fd5b5061048b60048036038101906104869190614254565b611550565b6040516104989190614290565b60405180910390f35b3480156104ad57600080fd5b506104b661158f565b005b6104d260048036038101906104cd91906143b1565b6115c3565b005b3480156104e057600080fd5b506104e9611612565b6040516104f69190614356565b60405180910390f35b34801561050b57600080fd5b50610514611618565b005b34801561052257600080fd5b5061052b611807565b6040516105389190614463565b60405180910390f35b61055b600480360381019061055691906143b1565b611819565b005b34801561056957600080fd5b50610572611868565b60405161057f9190614356565b60405180910390f35b34801561059457600080fd5b5061059d61186e565b6040516105aa9190614356565b60405180910390f35b3480156105bf57600080fd5b506105da60048036038101906105d5919061447e565b611885565b6040516105e79190614356565b60405180910390f35b3480156105fc57600080fd5b5061061760048036038101906106129190614254565b6118dd565b6040516106249190614290565b60405180910390f35b34801561063957600080fd5b506106426118ef565b60405161064f91906144cc565b60405180910390f35b34801561066457600080fd5b5061066d611915565b60405161067a9190614356565b60405180910390f35b34801561068f57600080fd5b5061069861191b565b6040516106a5919061463e565b60405180910390f35b3480156106ba57600080fd5b506106d560048036038101906106d0919061447e565b611a3d565b6040516106e29190614356565b60405180910390f35b3480156106f757600080fd5b50610700611af5565b005b34801561070e57600080fd5b5061072960048036038101906107249190614795565b611b09565b005b34801561073757600080fd5b50610752600480360381019061074d919061409e565b611b43565b005b34801561076057600080fd5b5061077b60048036038101906107769190614254565b611c89565b005b34801561078957600080fd5b50610792611cf9565b60405161079f9190614290565b60405180910390f35b6107c260048036038101906107bd919061480d565b611d23565b005b3480156107d057600080fd5b506107d961226e565b6040516107e69190614232565b60405180910390f35b3480156107fb57600080fd5b5061081660048036038101906108119190614869565b612300565b005b34801561082457600080fd5b5061083f600480360381019061083a9190614254565b612319565b005b61085b6004803603810190610856919061494a565b61232b565b005b34801561086957600080fd5b5061087261237c565b60405161087f91906144cc565b60405180910390f35b34801561089457600080fd5b506108af60048036038101906108aa9190614254565b6123a2565b6040516108c1969594939291906149cd565b60405180910390f35b3480156108d657600080fd5b506108f160048036038101906108ec9190614254565b612435565b6040516108fe9190614232565b60405180910390f35b34801561091357600080fd5b5061092e60048036038101906109299190614a2e565b6124fe565b60405161093b9190613fc3565b60405180910390f35b34801561095057600080fd5b5061096b6004803603810190610966919061447e565b61262a565b6040516109789190614356565b60405180910390f35b34801561098d57600080fd5b50610996612682565b6040516109a39190614356565b60405180910390f35b3480156109b857600080fd5b506109d360048036038101906109ce9190614371565b612692565b6040516109e09190613fc3565b60405180910390f35b3480156109f557600080fd5b506109fe612726565b604051610a0b9190614356565b60405180910390f35b348015610a2057600080fd5b50610a3b6004803603810190610a36919061447e565b61272c565b005b348015610a4957600080fd5b50610a646004803603810190610a5f919061447e565b6127b1565b005b348015610a7257600080fd5b50610a8d6004803603810190610a889190614254565b612834565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610aea57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610b1a5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b610b29612856565b6000610b34866128d4565b508091505080610c7157600e6040518060c001604052808873ffffffffffffffffffffffffffffffffffffffff1681526020018781526020016000815260200186151581526020018515158152602001841515815250908060018154018082558091505060019003906000526020600020906004020160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550602082015181600101556040820151816002015560608201518160030160006101000a81548160ff02191690831515021790555060808201518160030160016101000a81548160ff02191690831515021790555060a08201518160030160026101000a81548160ff02191690831515021790555050505b505050505050565b610c8161298b565b600080610c94610c8f6129da565b6128d4565b809250819350505081610cdc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cd390614ac3565b60405180910390fd5b600e8181548110610cf057610cef614ae3565b5b906000526020600020906004020160020154600e8281548110610d1657610d15614ae3565b5b90600052602060002090600402016001015411610d68576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d5f90614b84565b60405180910390fd5b6000601360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000610db56129e2565b9050610dce600d54600c546129eb90919063ffffffff16565b8110610e0f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e0690614bf0565b60405180910390fd5b6003600b5410610e54576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e4b90614c5c565b60405180910390fd5b600e8381548110610e6857610e67614ae3565b5b906000526020600020906004020160030160019054906101000a900460ff1615610ed2576002600b5414610ed1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ec890614c5c565b60405180910390fd5b5b600e8381548110610ee657610ee5614ae3565b5b906000526020600020906004020160030160009054906101000a900460ff16610f7b57600a543414610f19600a54612a01565b604051602001610f299190614d50565b60405160208183030381529060405290610f79576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f709190614232565b60405180910390fd5b505b6002600b54101561101357601360008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209150600282600001541061100e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100590614dc9565b60405180910390fd5b6110a7565b6002600b54036110a657601460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020915060058260000154106110a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161109c90614e35565b60405180910390fd5b5b5b600e83815481106110bb576110ba614ae3565b5b906000526020600020906004020160030160029054906101000a900460ff1680156110e857506002600b54105b15611137576110f785876112df565b611136576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161112d90614ea1565b60405180910390fd5b5b611142866001612acf565b600e838154811061115657611155614ae3565b5b90600052602060002090600402016002016000815461117490614ef0565b91905081905550816000016000815461118c90614ef0565b9190508190555081600101819080600181540180825580915050600190039060005260206000200160009091909190915055505050506111ca612c8a565b5050565b6060600280546111dd90614f67565b80601f016020809104026020016040519081016040528092919081815260200182805461120990614f67565b80156112565780601f1061122b57610100808354040283529160200191611256565b820191906000526020600020905b81548152906001019060200180831161123957829003601f168201915b5050505050905090565b600061126b82612c94565b6112a1576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006112ea836124fe565b611329576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161132090614fe4565b60405180910390fd5b6000611346846000016020810190611341919061447e565b612cf3565b50809150508061138b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161138290615050565b60405180910390fd5b83602001602081019061139e919061447e565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461140b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611402906150bc565b60405180910390fd5b42846040013511611451576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161144890615128565b60405180910390fd5b600191505092915050565b8161146681612da3565b6114708383612ea0565b505050565b61147d612856565b6114876002611489565b565b611491612856565b80600b8190555050565b60006114a5612fe4565b6001546000540303905090565b6114ba61298b565b6114c2612856565b81601160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080601260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555061154c612c8a565b5050565b6019818154811061156057600080fd5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611597612856565b601260149054906101000a900460ff1615601260146101000a81548160ff021916908315150217905550565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146116015761160033612da3565b5b61160c848484612fe9565b50505050565b600c5481565b61162061298b565b611628612856565b6000479050600061163a82606461330b565b9050600061164982600f613321565b9050600081846116599190615148565b90506000601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16836040516116a3906151ad565b60006040518083038185875af1925050503d80600081146116e0576040519150601f19603f3d011682016040523d82523d6000602084013e6116e5565b606091505b5050905080611729576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161172090615234565b60405180910390fd5b6000601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1683604051611771906151ad565b60006040518083038185875af1925050503d80600081146117ae576040519150601f19603f3d011682016040523d82523d6000602084013e6117b3565b606091505b50509050806117f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117ee906152c6565b60405180910390fd5b505050505050611805612c8a565b565b6daaeb6d7670e522a718067333cd4e81565b823373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146118575761185633612da3565b5b611862848484613337565b50505050565b600b5481565b6000611878612856565b6118806129e2565b905090565b6000601460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000015460056118d69190615148565b9050919050565b60006118e882613357565b9050919050565b601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600a5481565b6060611925612856565b600e805480602002602001604051908101604052809291908181526020016000905b82821015611a3457838290600052602060002090600402016040518060c00160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200160018201548152602001600282015481526020016003820160009054906101000a900460ff161515151581526020016003820160019054906101000a900460ff161515151581526020016003820160029054906101000a900460ff16151515158152505081526020019060010190611947565b50505050905090565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611aa4576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611afd612856565b611b076000613423565b565b611b11612856565b81600f9080519060200190611b27929190613e6c565b508060109080519060200190611b3e929190613e6c565b505050565b611b4b612856565b600080611b57876128d4565b809250819350505081611b9f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b9690615332565b60405180910390fd5b85600e8281548110611bb457611bb3614ae3565b5b90600052602060002090600402016001018190555084600e8281548110611bde57611bdd614ae3565b5b906000526020600020906004020160030160006101000a81548160ff02191690831515021790555083600e8281548110611c1b57611c1a614ae3565b5b906000526020600020906004020160030160016101000a81548160ff02191690831515021790555082600e8281548110611c5857611c57614ae3565b5b906000526020600020906004020160030160026101000a81548160ff02191690831515021790555050505050505050565b611c91612856565b6000611c9b6129e2565b9050611cb281600c546129eb90919063ffffffff16565b821115611ce357611cde611cc46129da565b611cd983600c546129eb90919063ffffffff16565b612acf565b611cf5565b611cf4611cee6129da565b83612acf565b5b5050565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611d2b61298b565b6000601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506000611d786129e2565b90506002600b541015611e3757601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002091506002611df2611ddf6001876129eb90919063ffffffff16565b84600001546134e990919063ffffffff16565b10611e32576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e2990614dc9565b60405180910390fd5b611ef0565b6002600b5403611eef57601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002091506005611eae611e9b6001876129eb90919063ffffffff16565b84600001546134e990919063ffffffff16565b10611eee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ee590614e35565b60405180910390fd5b5b5b6003600b54101561201d57611f12600d54600c546129eb90919063ffffffff16565b611f38611f296001876129eb90919063ffffffff16565b836134e990919063ffffffff16565b10611f78576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f6f90614bf0565b60405180910390fd5b611f8d84600a5461332190919063ffffffff16565b341015611f9985612a01565b611fb6611fb187600a5461332190919063ffffffff16565b612a01565b604051602001611fc79291906153ea565b60405160208183030381529060405290612017576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161200e9190614232565b60405180910390fd5b50612137565b601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209150826060013561208d61207a6001876129eb90919063ffffffff16565b84600001546134e990919063ffffffff16565b106120cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120c49061547b565b60405180910390fd5b600c546120f66120e76001876129eb90919063ffffffff16565b836134e990919063ffffffff16565b10612136576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161212d9061550d565b60405180910390fd5b5b60006002600b540361214c576001905061219a565b61215684336112df565b612195576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161218c90614ea1565b60405180910390fd5b600190505b60011515811515146121e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121d890615579565b60405180910390fd5b60005b8581101561225e576121f46129e2565b92506122086122016129da565b6001612acf565b836000016000815461221990614ef0565b9190508190555083600101839080600181540180825580915050600190039060005260206000200160009091909190915055808061225690614ef0565b9150506121e4565b5050505061226a612c8a565b5050565b60606003805461227d90614f67565b80601f01602080910402602001604051908101604052809291908181526020018280546122a990614f67565b80156122f65780601f106122cb576101008083540402835291602001916122f6565b820191906000526020600020905b8154815290600101906020018083116122d957829003601f168201915b5050505050905090565b8161230a81612da3565b61231483836134ff565b505050565b612321612856565b80600a8190555050565b833373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146123695761236833612da3565b5b6123758585858561360a565b5050505050565b601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600e81815481106123b257600080fd5b90600052602060002090600402016000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154908060020154908060030160009054906101000a900460ff16908060030160019054906101000a900460ff16908060030160029054906101000a900460ff16905086565b606061244082612c94565b61247f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124769061560b565b60405180910390fd5b600061248a83612a01565b905060011515601260149054906101000a900460ff161515036124d257600f816040516020016124bb92919061570b565b6040516020818303038152906040529150506124f9565b6010816040516020016124e692919061570b565b6040516020818303038152906040529150505b919050565b6000806125847fdac9a7a24fa9babcebb16a2416bbe175addd266c40068e0263838c37217d7b10846000016020810190612538919061447e565b85602001602081019061254b919061447e565b86604001358760600135604051602001612569959493929190615753565b6040516020818303038152906040528051906020012061367d565b9050826000016020810190612599919061447e565b73ffffffffffffffffffffffffffffffffffffffff1661260b828580608001906125c391906157b5565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050613697565b73ffffffffffffffffffffffffffffffffffffffff1614915050919050565b6000601360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000154600261267b9190615148565b9050919050565b600061268c612856565b47905090565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600d5481565b612734612856565b600061273f82612cf3565b5080915050806127ad576019829080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b5050565b6127b9612856565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612828576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161281f9061588a565b60405180910390fd5b61283181613423565b50565b61283c61298b565b612844612856565b80600a81905550612853612c8a565b50565b61285e6129da565b73ffffffffffffffffffffffffffffffffffffffff1661287c611cf9565b73ffffffffffffffffffffffffffffffffffffffff16146128d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128c9906158f6565b60405180910390fd5b565b60008060008060005b600e8054905081101561297d578573ffffffffffffffffffffffffffffffffffffffff16600e828154811061291557612914614ae3565b5b906000526020600020906004020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff160361296a57600192508091505b808061297590614ef0565b9150506128dd565b508181935093505050915091565b6002600854036129d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129c790615962565b60405180910390fd5b6002600881905550565b600033905090565b60008054905090565b600081836129f99190615148565b905092915050565b606060006001612a10846136be565b01905060008167ffffffffffffffff811115612a2f57612a2e61466a565b5b6040519080825280601f01601f191660200182016040528015612a615781602001600182028036833780820191505090505b509050600082602001820190505b600115612ac4578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8581612ab857612ab7615982565b5b04945060008503612a6f575b819350505050919050565b60008054905060008203612b0f576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612b1c6000848385613811565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612b9383612b846000866000613817565b612b8d8561383f565b1761384f565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b818114612c3457808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050612bf9565b5060008203612c6f576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806000819055505050612c85600084838561387a565b505050565b6001600881905550565b600081612c9f612fe4565b11158015612cae575060005482105b8015612cec575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b60008060008060005b601980549050811015612d95578573ffffffffffffffffffffffffffffffffffffffff1660198281548110612d3457612d33614ae3565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1603612d8257600192508091505b8080612d8d90614ef0565b915050612cfc565b508181935093505050915091565b60006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115612e9d576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b8152600401612e1a9291906159b1565b602060405180830381865afa158015612e37573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e5b91906159ef565b612e9c57806040517fede71dcc000000000000000000000000000000000000000000000000000000008152600401612e939190614290565b60405180910390fd5b5b50565b6000612eab826118dd565b90508073ffffffffffffffffffffffffffffffffffffffff16612ecc613880565b73ffffffffffffffffffffffffffffffffffffffff1614612f2f57612ef881612ef3613880565b612692565b612f2e576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600090565b6000612ff482613357565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461305b576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008061306784613888565b9150915061307d8187613078613880565b6138af565b6130c9576130928661308d613880565b612692565b6130c8576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff160361312f576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61313c8686866001613811565b801561314757600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550613215856131f1888887613817565b7c02000000000000000000000000000000000000000000000000000000001761384f565b600460008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084160361329b5760006001850190506000600460008381526020019081526020016000205403613299576000548114613298578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4613303868686600161387a565b505050505050565b600081836133199190615a1c565b905092915050565b6000818361332f9190615a4d565b905092915050565b6133528383836040518060200160405280600081525061232b565b505050565b60008082905080613366612fe4565b116133ec576000548110156133eb5760006004600083815260200190815260200160002054905060007c01000000000000000000000000000000000000000000000000000000008216036133e9575b600081036133df5760046000836001900393508381526020019081526020016000205490506133b5565b809250505061341e565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600081836134f79190615aa7565b905092915050565b806007600061350c613880565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166135b9613880565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516135fe9190613fc3565b60405180910390a35050565b6136158484846115c3565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461367757613640848484846138f3565b613676576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b600061369061368a613a43565b83613b5d565b9050919050565b60008060006136a68585613b90565b915091506136b381613be1565b819250505092915050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000831061371c577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000838161371257613711615982565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310613759576d04ee2d6d415b85acef8100000000838161374f5761374e615982565b5b0492506020810190505b662386f26fc10000831061378857662386f26fc10000838161377e5761377d615982565b5b0492506010810190505b6305f5e10083106137b1576305f5e10083816137a7576137a6615982565b5b0492506008810190505b61271083106137d65761271083816137cc576137cb615982565b5b0492506004810190505b606483106137f957606483816137ef576137ee615982565b5b0492506002810190505b600a8310613808576001810190505b80915050919050565b50505050565b60008060e883901c905060e861382e868684613d47565b62ffffff16901b9150509392505050565b60006001821460e11b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b600033905090565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613919613880565b8786866040518563ffffffff1660e01b815260040161393b9493929190615b52565b6020604051808303816000875af192505050801561397757506040513d601f19601f820116820180604052508101906139749190615bb3565b60015b6139f0573d80600081146139a7576040519150601f19603f3d011682016040523d82523d6000602084013e6139ac565b606091505b5060008151036139e8576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b60007f000000000000000000000000014d9cb39c5ff9c26c034fb1d7baab139870709373ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff16148015613abf57507f000000000000000000000000000000000000000000000000000000000000000146145b15613aec577f2087b1aa3978dd2ce4e5ce2d93cbd8890ae2a2fc0df99eae4c87215b79e3f9829050613b5a565b613b577f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f7f4ea69b33eac27b300df93732176fd50fe92fa4f6dbfa35da18d49e58f62473117fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6613d50565b90505b90565b60008282604051602001613b72929190615c4d565b60405160208183030381529060405280519060200120905092915050565b6000806041835103613bd15760008060006020860151925060408601519150606086015160001a9050613bc587828585613d8a565b94509450505050613bda565b60006002915091505b9250929050565b60006004811115613bf557613bf4615c84565b5b816004811115613c0857613c07615c84565b5b0315613d445760016004811115613c2257613c21615c84565b5b816004811115613c3557613c34615c84565b5b03613c75576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613c6c90615cff565b60405180910390fd5b60026004811115613c8957613c88615c84565b5b816004811115613c9c57613c9b615c84565b5b03613cdc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613cd390615d6b565b60405180910390fd5b60036004811115613cf057613cef615c84565b5b816004811115613d0357613d02615c84565b5b03613d43576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613d3a90615dfd565b60405180910390fd5b5b50565b60009392505050565b60008383834630604051602001613d6b959493929190615e1d565b6040516020818303038152906040528051906020012090509392505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c1115613dc5576000600391509150613e63565b600060018787878760405160008152602001604052604051613dea9493929190615e8c565b6020604051602081039080840390855afa158015613e0c573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603613e5a57600060019250925050613e63565b80600092509250505b94509492505050565b828054613e7890614f67565b90600052602060002090601f016020900481019282613e9a5760008555613ee1565b82601f10613eb357805160ff1916838001178555613ee1565b82800160010185558215613ee1579182015b82811115613ee0578251825591602001919060010190613ec5565b5b509050613eee9190613ef2565b5090565b5b80821115613f0b576000816000905550600101613ef3565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613f5881613f23565b8114613f6357600080fd5b50565b600081359050613f7581613f4f565b92915050565b600060208284031215613f9157613f90613f19565b5b6000613f9f84828501613f66565b91505092915050565b60008115159050919050565b613fbd81613fa8565b82525050565b6000602082019050613fd86000830184613fb4565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061400982613fde565b9050919050565b61401981613ffe565b811461402457600080fd5b50565b60008135905061403681614010565b92915050565b6000819050919050565b61404f8161403c565b811461405a57600080fd5b50565b60008135905061406c81614046565b92915050565b61407b81613fa8565b811461408657600080fd5b50565b60008135905061409881614072565b92915050565b600080600080600060a086880312156140ba576140b9613f19565b5b60006140c888828901614027565b95505060206140d98882890161405d565b94505060406140ea88828901614089565b93505060606140fb88828901614089565b925050608061410c88828901614089565b9150509295509295909350565b600080fd5b600060a0828403121561413457614133614119565b5b81905092915050565b6000806040838503121561415457614153613f19565b5b600061416285828601614027565b925050602083013567ffffffffffffffff81111561418357614182613f1e565b5b61418f8582860161411e565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b60005b838110156141d35780820151818401526020810190506141b8565b838111156141e2576000848401525b50505050565b6000601f19601f8301169050919050565b600061420482614199565b61420e81856141a4565b935061421e8185602086016141b5565b614227816141e8565b840191505092915050565b6000602082019050818103600083015261424c81846141f9565b905092915050565b60006020828403121561426a57614269613f19565b5b60006142788482850161405d565b91505092915050565b61428a81613ffe565b82525050565b60006020820190506142a56000830184614281565b92915050565b600080604083850312156142c2576142c1613f19565b5b600083013567ffffffffffffffff8111156142e0576142df613f1e565b5b6142ec8582860161411e565b92505060206142fd85828601614027565b9150509250929050565b6000806040838503121561431e5761431d613f19565b5b600061432c85828601614027565b925050602061433d8582860161405d565b9150509250929050565b6143508161403c565b82525050565b600060208201905061436b6000830184614347565b92915050565b6000806040838503121561438857614387613f19565b5b600061439685828601614027565b92505060206143a785828601614027565b9150509250929050565b6000806000606084860312156143ca576143c9613f19565b5b60006143d886828701614027565b93505060206143e986828701614027565b92505060406143fa8682870161405d565b9150509250925092565b6000819050919050565b600061442961442461441f84613fde565b614404565b613fde565b9050919050565b600061443b8261440e565b9050919050565b600061444d82614430565b9050919050565b61445d81614442565b82525050565b60006020820190506144786000830184614454565b92915050565b60006020828403121561449457614493613f19565b5b60006144a284828501614027565b91505092915050565b60006144b682613fde565b9050919050565b6144c6816144ab565b82525050565b60006020820190506144e160008301846144bd565b92915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61451c81613ffe565b82525050565b61452b8161403c565b82525050565b61453a81613fa8565b82525050565b60c0820160008201516145566000850182614513565b5060208201516145696020850182614522565b50604082015161457c6040850182614522565b50606082015161458f6060850182614531565b5060808201516145a26080850182614531565b5060a08201516145b560a0850182614531565b50505050565b60006145c78383614540565b60c08301905092915050565b6000602082019050919050565b60006145eb826144e7565b6145f581856144f2565b935061460083614503565b8060005b8381101561463157815161461888826145bb565b9750614623836145d3565b925050600181019050614604565b5085935050505092915050565b6000602082019050818103600083015261465881846145e0565b905092915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6146a2826141e8565b810181811067ffffffffffffffff821117156146c1576146c061466a565b5b80604052505050565b60006146d4613f0f565b90506146e08282614699565b919050565b600067ffffffffffffffff821115614700576146ff61466a565b5b614709826141e8565b9050602081019050919050565b82818337600083830152505050565b6000614738614733846146e5565b6146ca565b90508281526020810184848401111561475457614753614665565b5b61475f848285614716565b509392505050565b600082601f83011261477c5761477b614660565b5b813561478c848260208601614725565b91505092915050565b600080604083850312156147ac576147ab613f19565b5b600083013567ffffffffffffffff8111156147ca576147c9613f1e565b5b6147d685828601614767565b925050602083013567ffffffffffffffff8111156147f7576147f6613f1e565b5b61480385828601614767565b9150509250929050565b6000806040838503121561482457614823613f19565b5b60006148328582860161405d565b925050602083013567ffffffffffffffff81111561485357614852613f1e565b5b61485f8582860161411e565b9150509250929050565b600080604083850312156148805761487f613f19565b5b600061488e85828601614027565b925050602061489f85828601614089565b9150509250929050565b600067ffffffffffffffff8211156148c4576148c361466a565b5b6148cd826141e8565b9050602081019050919050565b60006148ed6148e8846148a9565b6146ca565b90508281526020810184848401111561490957614908614665565b5b614914848285614716565b509392505050565b600082601f83011261493157614930614660565b5b81356149418482602086016148da565b91505092915050565b6000806000806080858703121561496457614963613f19565b5b600061497287828801614027565b945050602061498387828801614027565b93505060406149948782880161405d565b925050606085013567ffffffffffffffff8111156149b5576149b4613f1e565b5b6149c18782880161491c565b91505092959194509250565b600060c0820190506149e26000830189614281565b6149ef6020830188614347565b6149fc6040830187614347565b614a096060830186613fb4565b614a166080830185613fb4565b614a2360a0830184613fb4565b979650505050505050565b600060208284031215614a4457614a43613f19565b5b600082013567ffffffffffffffff811115614a6257614a61613f1e565b5b614a6e8482850161411e565b91505092915050565b7f54686520506172746e657220697320696e76616c696400000000000000000000600082015250565b6000614aad6016836141a4565b9150614ab882614a77565b602082019050919050565b60006020820190508181036000830152614adc81614aa0565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f54686520706172746e657220657863656564696e67207468652073616c65732060008201527f71756f7461000000000000000000000000000000000000000000000000000000602082015250565b6000614b6e6025836141a4565b9150614b7982614b12565b604082019050919050565b60006020820190508181036000830152614b9d81614b61565b9050919050565b7f416c6c206e6674732068617665206265656e206d696e74656400000000000000600082015250565b6000614bda6019836141a4565b9150614be582614ba4565b602082019050919050565b60006020820190508181036000830152614c0981614bcd565b9050919050565b7f696e76616c69642073616c652073746167650000000000000000000000000000600082015250565b6000614c466012836141a4565b9150614c5182614c10565b602082019050919050565b60006020820190508181036000830152614c7581614c39565b9050919050565b600081905092915050565b7f636c61696d206e66742072657175697265200000000000000000000000000000600082015250565b6000614cbd601283614c7c565b9150614cc882614c87565b601282019050919050565b6000614cde82614199565b614ce88185614c7c565b9350614cf88185602086016141b5565b80840191505092915050565b7f2077656900000000000000000000000000000000000000000000000000000000600082015250565b6000614d3a600483614c7c565b9150614d4582614d04565b600482019050919050565b6000614d5b82614cb0565b9150614d678284614cd3565b9150614d7282614d2d565b915081905092915050565b7f636c61696d20636f756e74203e20320000000000000000000000000000000000600082015250565b6000614db3600f836141a4565b9150614dbe82614d7d565b602082019050919050565b60006020820190508181036000830152614de281614da6565b9050919050565b7f636c61696d20636f756e74203e20350000000000000000000000000000000000600082015250565b6000614e1f600f836141a4565b9150614e2a82614de9565b602082019050919050565b60006020820190508181036000830152614e4e81614e12565b9050919050565b7f54686520766f756368657220697320696e76616c696400000000000000000000600082015250565b6000614e8b6016836141a4565b9150614e9682614e55565b602082019050919050565b60006020820190508181036000830152614eba81614e7e565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614efb8261403c565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614f2d57614f2c614ec1565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680614f7f57607f821691505b602082108103614f9257614f91614f38565b5b50919050565b7f4661696c656420746f2076657269667920746865207369676e61747572650000600082015250565b6000614fce601e836141a4565b9150614fd982614f98565b602082019050919050565b60006020820190508181036000830152614ffd81614fc1565b9050919050565b7f546865207369676e657220697320696e76616c69640000000000000000000000600082015250565b600061503a6015836141a4565b915061504582615004565b602082019050919050565b600060208201905081810360008301526150698161502d565b9050919050565b7f4d696e746572206973206e6f7420726967687400000000000000000000000000600082015250565b60006150a66013836141a4565b91506150b182615070565b602082019050919050565b600060208201905081810360008301526150d581615099565b9050919050565b7f54686520766f7563686572206861732065787069726564000000000000000000600082015250565b60006151126017836141a4565b915061511d826150dc565b602082019050919050565b6000602082019050818103600083015261514181615105565b9050919050565b60006151538261403c565b915061515e8361403c565b92508282101561517157615170614ec1565b5b828203905092915050565b600081905092915050565b50565b600061519760008361517c565b91506151a282615187565b600082019050919050565b60006151b88261518a565b9150819050919050565b7f4661696c656420746f2073656e6420457468657220746f207661756c7441647260008201527f7265737331000000000000000000000000000000000000000000000000000000602082015250565b600061521e6025836141a4565b9150615229826151c2565b604082019050919050565b6000602082019050818103600083015261524d81615211565b9050919050565b7f4661696c656420746f2073656e6420457468657220746f207661756c7441647260008201527f7265737332000000000000000000000000000000000000000000000000000000602082015250565b60006152b06025836141a4565b91506152bb82615254565b604082019050919050565b600060208201905081810360008301526152df816152a3565b9050919050565b7f706172746e6572206973206e6f742065786973742e0000000000000000000000600082015250565b600061531c6015836141a4565b9150615327826152e6565b602082019050919050565b6000602082019050818103600083015261534b8161530f565b9050919050565b7f636c61696d200000000000000000000000000000000000000000000000000000600082015250565b6000615388600683614c7c565b915061539382615352565b600682019050919050565b7f206e667420726571756972652000000000000000000000000000000000000000600082015250565b60006153d4600d83614c7c565b91506153df8261539e565b600d82019050919050565b60006153f58261537b565b91506154018285614cd3565b915061540c826153c7565b91506154188284614cd3565b915061542382614d2d565b91508190509392505050565b7f546865206e756d206f6620667265656d696e7420697320696e76616c69640000600082015250565b6000615465601e836141a4565b91506154708261542f565b602082019050919050565b6000602082019050818103600083015261549481615458565b9050919050565b7f416c6c20667265656d696e74206e6674732068617665206265656e206d696e7460008201527f6564000000000000000000000000000000000000000000000000000000000000602082015250565b60006154f76022836141a4565b91506155028261549b565b604082019050919050565b60006020820190508181036000830152615526816154ea565b9050919050565b7f616c6c6f774d696e74203d2066616c7365000000000000000000000000000000600082015250565b60006155636011836141a4565b915061556e8261552d565b602082019050919050565b6000602082019050818103600083015261559281615556565b9050919050565b7f746f6b656e5552493a2055524920717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b60006155f56029836141a4565b915061560082615599565b604082019050919050565b60006020820190508181036000830152615624816155e8565b9050919050565b60008190508160005260206000209050919050565b6000815461564d81614f67565b6156578186614c7c565b945060018216600081146156725760018114615683576156b6565b60ff198316865281860193506156b6565b61568c8561562b565b60005b838110156156ae5781548189015260018201915060208101905061568f565b838801955050505b50505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b60006156f5600583614c7c565b9150615700826156bf565b600582019050919050565b60006157178285615640565b91506157238284614cd3565b915061572e826156e8565b91508190509392505050565b6000819050919050565b61574d8161573a565b82525050565b600060a0820190506157686000830188615744565b6157756020830187614281565b6157826040830186614281565b61578f6060830185614347565b61579c6080830184614347565b9695505050505050565b600080fd5b600080fd5b600080fd5b600080833560016020038436030381126157d2576157d16157a6565b5b80840192508235915067ffffffffffffffff8211156157f4576157f36157ab565b5b6020830192506001820236038313156158105761580f6157b0565b5b509250929050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006158746026836141a4565b915061587f82615818565b604082019050919050565b600060208201905081810360008301526158a381615867565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006158e06020836141a4565b91506158eb826158aa565b602082019050919050565b6000602082019050818103600083015261590f816158d3565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b600061594c601f836141a4565b915061595782615916565b602082019050919050565b6000602082019050818103600083015261597b8161593f565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006040820190506159c66000830185614281565b6159d36020830184614281565b9392505050565b6000815190506159e981614072565b92915050565b600060208284031215615a0557615a04613f19565b5b6000615a13848285016159da565b91505092915050565b6000615a278261403c565b9150615a328361403c565b925082615a4257615a41615982565b5b828204905092915050565b6000615a588261403c565b9150615a638361403c565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615615a9c57615a9b614ec1565b5b828202905092915050565b6000615ab28261403c565b9150615abd8361403c565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115615af257615af1614ec1565b5b828201905092915050565b600081519050919050565b600082825260208201905092915050565b6000615b2482615afd565b615b2e8185615b08565b9350615b3e8185602086016141b5565b615b47816141e8565b840191505092915050565b6000608082019050615b676000830187614281565b615b746020830186614281565b615b816040830185614347565b8181036060830152615b938184615b19565b905095945050505050565b600081519050615bad81613f4f565b92915050565b600060208284031215615bc957615bc8613f19565b5b6000615bd784828501615b9e565b91505092915050565b7f1901000000000000000000000000000000000000000000000000000000000000600082015250565b6000615c16600283614c7c565b9150615c2182615be0565b600282019050919050565b6000819050919050565b615c47615c428261573a565b615c2c565b82525050565b6000615c5882615c09565b9150615c648285615c36565b602082019150615c748284615c36565b6020820191508190509392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b6000615ce96018836141a4565b9150615cf482615cb3565b602082019050919050565b60006020820190508181036000830152615d1881615cdc565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b6000615d55601f836141a4565b9150615d6082615d1f565b602082019050919050565b60006020820190508181036000830152615d8481615d48565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b6000615de76022836141a4565b9150615df282615d8b565b604082019050919050565b60006020820190508181036000830152615e1681615dda565b9050919050565b600060a082019050615e326000830188615744565b615e3f6020830187615744565b615e4c6040830186615744565b615e596060830185614347565b615e666080830184614281565b9695505050505050565b600060ff82169050919050565b615e8681615e70565b82525050565b6000608082019050615ea16000830187615744565b615eae6020830186615e7d565b615ebb6040830185615744565b615ec86060830184615744565b9594505050505056fea26469706673582212200ea82bc69fe49a38219d0ac7d4ca4509ad4ddbcfac3d560d1ae19f8506dc2deb64736f6c634300080d0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000022900000000000000000000000000000000000000000000000000000000000000800
-----Decoded View---------------
Arg [0] : cap_ (uint256): 8848
Arg [1] : freeMintNum_ (uint256): 2048
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000002290
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000800
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.