ERC-721
Overview
Max Total Supply
114 COORDINATE
Holders
38
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
3 COORDINATELoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
Coordinate
Compiler Version
v0.8.9+commit.e5eed63a
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 "erc721a/contracts/ERC721A.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; contract Coordinate is ERC721A, Ownable, Pausable, ReentrancyGuard { using Strings for uint256; uint256 public constant maxSupply = 9393; uint256 public freeSupply = 393; uint256 public mocaSupply = 1000; uint256 public constant ethPrice = 0.06 ether; uint256 public constant mocaPrice = 330 * 10 ** 18; uint256 public freeMinted = 0; uint256 public mocaMinted = 0; bool public freeMintOpen = true; string private baseTokenURI; IERC20 public mocaToken; mapping(address => bool) private freeMinter; mapping(address => uint256) private freeMinterQuota; mapping(address => uint256) private freeClaimed; mapping(address => uint256) private mocaClaimed; constructor(IERC20 _mocaAddress) ERC721A("Project Coordinate", "COORDINATE") { mocaToken = _mocaAddress; } function pause() external onlyOwner { _pause(); } function unpause() external onlyOwner { _unpause(); } function _startTokenId() internal view virtual override(ERC721A) returns (uint256) { return 1; } function publicMint(uint256 _qty) external payable whenNotPaused { require(_totalMinted() + _qty <= maxSupply, "Would exceed maxSupply"); require(msg.value == ethPrice * _qty, "Not enough ETH"); _safeMint(msg.sender, _qty); } function publicMocaMint(uint256 _qty) external payable whenNotPaused { require(_totalMinted() + _qty <= maxSupply, "Would exceed maxSupply"); require(mocaMinted + _qty <= mocaSupply, "Would exceed mocaSupply"); mocaToken.transferFrom(msg.sender, address(this), mocaPrice * _qty); mocaClaimed[msg.sender] += _qty; mocaMinted += _qty; _safeMint(msg.sender, _qty); } function freeMint(uint256 _qty) external whenNotPaused { require(freeMintOpen, "Free mint is closed"); require(_totalMinted() + _qty <= maxSupply, "Would exceed maxSupply"); require(freeMinted + _qty <= freeSupply, "Would exceed freeSupply"); require(freeMinterQuota[msg.sender] >= _qty, "Not enough quota"); freeMinterQuota[msg.sender] -= _qty; freeClaimed[msg.sender] += _qty; freeMinted += _qty; _safeMint(msg.sender, _qty); } function freeMinterAdd( address[] calldata _addresses, uint256[] calldata _qtys ) external onlyOwner { require(_addresses.length == _qtys.length, "Mismatch data length"); for (uint256 i = 0; i < _addresses.length; i++) { require(_addresses[i] != address(0), "Can't set zero address"); freeMinterQuota[_addresses[i]] = _qtys[i]; } } function freeMinterRemove(address[] calldata _addresses) external onlyOwner { for (uint256 i = 0; i < _addresses.length; i++) { require(_addresses[i] != address(0), "Can't set zero address"); freeMinterQuota[_addresses[i]] = 0; } } function delegateFreeMintTo( address[] calldata _addresses, uint256[] calldata _qtys ) external whenNotPaused { require(freeMinterQuota[msg.sender] > 0, "Zero quota"); require(_addresses.length == _qtys.length, "Mismatch data length"); // Get total delegate quantities uint256 totalDelegates = 0; for (uint256 i = 0; i < _qtys.length; i++) { totalDelegates += _qtys[i]; } require(freeMinterQuota[msg.sender] >= totalDelegates, "Not enough quota"); // Reduce msg.sender free mint quota freeMinterQuota[msg.sender] -= totalDelegates; for (uint256 i = 0; i < _addresses.length; i++) { /** * Add delegated quota to address without * resetting quota if address already exists */ freeMinterQuota[_addresses[i]] = freeMinterQuota[_addresses[i]] > 0 ? freeMinterQuota[_addresses[i]] + _qtys[i] : _qtys[i]; } } function freeMintQuotaOf(address _address) external view returns (uint256) { require(_address != address(0), "Zero address not found"); return freeMinterQuota[_address]; } function freeClaimedBy(address _address) external view returns (uint256) { require(_address != address(0), "Zero address not found"); return freeClaimed[_address]; } function setFreeSupply(uint256 _supply) external onlyOwner { freeSupply = _supply; } function setFreeMintOpen(bool _open) external onlyOwner { freeMintOpen = _open; } function mocaClaimedBy(address _address) external view returns (uint256) { require(_address != address(0), "Zero address not found"); return mocaClaimed[_address]; } function setMocaAddress(IERC20 _mocaAddress) external onlyOwner { mocaToken = _mocaAddress; } function setMocaSupply(uint256 _supply) external onlyOwner { mocaSupply = _supply; } function _baseURI() internal view virtual override returns (string memory) { return baseTokenURI; } function setBaseURI(string calldata baseURI) external onlyOwner { baseTokenURI = baseURI; } function totalMinted() external view returns (uint256) { return _totalMinted(); } function withdraw() external onlyOwner nonReentrant { uint256 balance = address(this).balance; payable(msg.sender).transfer(balance); } function withdrawMoca() external onlyOwner nonReentrant { mocaToken.transfer(msg.sender, mocaToken.balanceOf(address(this))); } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.1.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @dev ERC721 token receiver interface. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, * including the Metadata extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at `_startTokenId()` * (defaults to 0, e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // 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 tokenId of the next token 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 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } /** * @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 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 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 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 returns (uint256) { return _burnCounter; } /** * @dev See {IERC165-supportsInterface}. */ 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: 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. } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view 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 { 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; } /** * 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 ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. // // We can directly compare the packed value. // If the address is zero, packed is zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * 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); } /** * Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @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 See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { 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 ''; } /** * @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)) } } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSenderERC721A()) revert ApproveToCaller(); _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & BITMASK_BURNED == 0; // and not burned. } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal { _safeMint(to, 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 { _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 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 { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); 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 tokenId = startTokenId; uint256 end = startTokenId + quantity; do { emit Transfer(address(0), to, tokenId++); } while (tokenId < end); _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 { 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 Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { mapping(uint256 => address) storage tokenApprovalsPtr = _tokenApprovals; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId]`. assembly { // Compute the slot. mstore(0x00, tokenId) mstore(0x20, tokenApprovalsPtr.slot) approvedAddressSlot := keccak256(0x00, 0x40) // Load the slot's value from storage. approvedAddress := sload(approvedAddressSlot) } } /** * @dev Returns whether the `approvedAddress` is equals to `from` or `msgSender`. */ function _isOwnerOrApproved( address approvedAddress, address from, address msgSender ) private pure returns (bool result) { assembly { // Mask `from` to the lower 160 bits, in case the upper bits somehow aren't clean. from := and(from, BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, BITMASK_ADDRESS) // `msgSender == from || msgSender == approvedAddress`. result := or(eq(msgSender, from), eq(msgSender, approvedAddress)) } } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isOwnerOrApproved(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 `_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) = _getApprovedAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isOwnerOrApproved(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++; } } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool 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)) } } } } /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal { 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 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; } /** * @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 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 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 returns (string memory ptr) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), // but we allocate 128 bytes to keep the free memory pointer 32-byte word aliged. // We will need 1 32-byte word to store the length, // and 3 32-byte words to store a maximum of 78 digits. Total: 32 + 3 * 32 = 128. ptr := add(mload(0x40), 128) // Update the free memory pointer to allocate. mstore(0x40, ptr) // Cache the end of the memory to calculate the length later. let end := ptr // We write the string from the rightmost digit to the leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // Costs a bit more than early returning for the zero case, // but cheaper in terms of deployment and overall runtime costs. for { // Initialize and perform the first pass without check. let temp := value // Move the pointer 1 byte leftwards to point to an empty character slot. ptr := sub(ptr, 1) // Write the character to the pointer. 48 is the ASCII index of '0'. mstore8(ptr, add(48, mod(temp, 10))) temp := div(temp, 10) } temp { // Keep dividing `temp` until zero. temp := div(temp, 10) } { // Body of the for loop. ptr := sub(ptr, 1) mstore8(ptr, add(48, mod(temp, 10))) } let length := sub(end, ptr) // Move the pointer 32 bytes leftwards to make room for the length. ptr := sub(ptr, 32) // Store the length. mstore(ptr, length) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.1.0 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of an ERC721A compliant contract. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * The caller cannot approve to their own address. */ error ApproveToCaller(); /** * 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(); struct TokenOwnership { // The address of the owner. address addr; // Keeps track of 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 through `_extraData`. uint24 extraData; } /** * @dev Returns the total amount of tokens stored by the contract. * * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens. */ function totalSupply() external view returns (uint256); // ============================== // IERC165 // ============================== /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================== // 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`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must 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 ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================== // IERC721Metadata // ============================== /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); // ============================== // IERC2309 // ============================== /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` (inclusive) is transferred from `from` to `to`, * as defined in the ERC2309 standard. See `_mintERC2309` for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract IERC20","name":"_mocaAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"},{"internalType":"uint256[]","name":"_qtys","type":"uint256[]"}],"name":"delegateFreeMintTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"ethPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"freeClaimedBy","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_qty","type":"uint256"}],"name":"freeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"freeMintOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"freeMintQuotaOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freeMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"},{"internalType":"uint256[]","name":"_qtys","type":"uint256[]"}],"name":"freeMinterAdd","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"}],"name":"freeMinterRemove","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"freeSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"mocaClaimedBy","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mocaMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mocaPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mocaSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mocaToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_qty","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_qty","type":"uint256"}],"name":"publicMocaMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_open","type":"bool"}],"name":"setFreeMintOpen","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_supply","type":"uint256"}],"name":"setFreeSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_mocaAddress","type":"address"}],"name":"setMocaAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_supply","type":"uint256"}],"name":"setMocaSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawMoca","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052610189600a556103e8600b556000600c556000600d556001600e60006101000a81548160ff0219169083151502179055503480156200004257600080fd5b5060405162004984380380620049848339818101604052810190620000689190620003ae565b6040518060400160405280601281526020017f50726f6a65637420436f6f7264696e61746500000000000000000000000000008152506040518060400160405280600a81526020017f434f4f5244494e415445000000000000000000000000000000000000000000008152508160029080519060200190620000ec92919062000280565b5080600390805190602001906200010592919062000280565b5062000116620001a960201b60201c565b60008190555050506200013e62000132620001b260201b60201c565b620001ba60201b60201c565b6000600860146101000a81548160ff021916908315150217905550600160098190555080601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505062000445565b60006001905090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8280546200028e906200040f565b90600052602060002090601f016020900481019282620002b25760008555620002fe565b82601f10620002cd57805160ff1916838001178555620002fe565b82800160010185558215620002fe579182015b82811115620002fd578251825591602001919060010190620002e0565b5b5090506200030d919062000311565b5090565b5b808211156200032c57600081600090555060010162000312565b5090565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620003628262000335565b9050919050565b6000620003768262000355565b9050919050565b620003888162000369565b81146200039457600080fd5b50565b600081519050620003a8816200037d565b92915050565b600060208284031215620003c757620003c662000330565b5b6000620003d78482850162000397565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200042857607f821691505b602082108114156200043f576200043e620003e0565b5b50919050565b61452f80620004556000396000f3fe60806040526004361061027d5760003560e01c80636352211e1161014f578063b88d4fde116100c1578063daaae4d81161007a578063daaae4d81461091e578063e0c6e3481461095b578063e985e9c514610984578063f2fde38b146109c1578063f676308a146109ea578063ff186b2e14610a135761027d565b8063b88d4fde14610809578063c0ab222014610832578063c83afa401461086f578063c87b56dd1461088b578063d10a1a2b146108c8578063d5abeb01146108f35761027d565b80638456cb59116101135780638456cb591461070b57806384640ed1146107225780638da5cb5b1461075f57806395d89b411461078a578063a22cb465146107b5578063a2309ff8146107de5761027d565b80636352211e1461062657806370a0823114610663578063715018a6146106a0578063777fa9ab146106b75780637c928fe9146106e25761027d565b8063241c2525116101f357806342842e0e116101ac57806342842e0e1461052c578063472554f1146105555780635307f2831461058057806355f804b3146105a95780635c975abb146105d2578063620d055d146105fd5761027d565b8063241c25251461046557806324a6ab0c1461048e57806324f879cb146104b95780632db11544146104e25780633ccfd60b146104fe5780633f4ba83a146105155761027d565b8063081812fc11610245578063081812fc14610357578063095ea7b3146103945780630f8421dc146103bd57806318160ddd146103e6578063187dbf331461041157806323b872dd1461043c5761027d565b806301ffc9a71461028257806302b6609e146102bf57806304689cce146102d657806306fdde03146103015780630785ec401461032c575b600080fd5b34801561028e57600080fd5b506102a960048036038101906102a491906131dc565b610a3e565b6040516102b69190613224565b60405180910390f35b3480156102cb57600080fd5b506102d4610ad0565b005b3480156102e257600080fd5b506102eb610c8a565b6040516102f89190613258565b60405180910390f35b34801561030d57600080fd5b50610316610c97565b604051610323919061330c565b60405180910390f35b34801561033857600080fd5b50610341610d29565b60405161034e9190613258565b60405180910390f35b34801561036357600080fd5b5061037e6004803603810190610379919061335a565b610d2f565b60405161038b91906133c8565b60405180910390f35b3480156103a057600080fd5b506103bb60048036038101906103b6919061340f565b610dab565b005b3480156103c957600080fd5b506103e460048036038101906103df919061347b565b610eec565b005b3480156103f257600080fd5b506103fb610f11565b6040516104089190613258565b60405180910390f35b34801561041d57600080fd5b50610426610f28565b6040516104339190613258565b60405180910390f35b34801561044857600080fd5b50610463600480360381019061045e91906134a8565b610f2e565b005b34801561047157600080fd5b5061048c60048036038101906104879190613560565b611253565b005b34801561049a57600080fd5b506104a3611384565b6040516104b09190613258565b60405180910390f35b3480156104c557600080fd5b506104e060048036038101906104db919061335a565b61138a565b005b6104fc60048036038101906104f7919061335a565b61139c565b005b34801561050a57600080fd5b5061051361145c565b005b34801561052157600080fd5b5061052a611509565b005b34801561053857600080fd5b50610553600480360381019061054e91906134a8565b61151b565b005b34801561056157600080fd5b5061056a61153b565b604051610577919061360c565b60405180910390f35b34801561058c57600080fd5b506105a760048036038101906105a2919061367d565b611561565b005b3480156105b557600080fd5b506105d060048036038101906105cb9190613754565b611901565b005b3480156105de57600080fd5b506105e761191f565b6040516105f49190613224565b60405180910390f35b34801561060957600080fd5b50610624600480360381019061061f919061367d565b611936565b005b34801561063257600080fd5b5061064d6004803603810190610648919061335a565b611ac9565b60405161065a91906133c8565b60405180910390f35b34801561066f57600080fd5b5061068a600480360381019061068591906137a1565b611adb565b6040516106979190613258565b60405180910390f35b3480156106ac57600080fd5b506106b5611b94565b005b3480156106c357600080fd5b506106cc611ba8565b6040516106d99190613224565b60405180910390f35b3480156106ee57600080fd5b506107096004803603810190610704919061335a565b611bbb565b005b34801561071757600080fd5b50610720611e0f565b005b34801561072e57600080fd5b50610749600480360381019061074491906137a1565b611e21565b6040516107569190613258565b60405180910390f35b34801561076b57600080fd5b50610774611ed9565b60405161078191906133c8565b60405180910390f35b34801561079657600080fd5b5061079f611f03565b6040516107ac919061330c565b60405180910390f35b3480156107c157600080fd5b506107dc60048036038101906107d791906137ce565b611f95565b005b3480156107ea57600080fd5b506107f361210d565b6040516108009190613258565b60405180910390f35b34801561081557600080fd5b50610830600480360381019061082b919061393e565b61211c565b005b34801561083e57600080fd5b50610859600480360381019061085491906137a1565b61218f565b6040516108669190613258565b60405180910390f35b6108896004803603810190610884919061335a565b612247565b005b34801561089757600080fd5b506108b260048036038101906108ad919061335a565b61243a565b6040516108bf919061330c565b60405180910390f35b3480156108d457600080fd5b506108dd6124d9565b6040516108ea9190613258565b60405180910390f35b3480156108ff57600080fd5b506109086124df565b6040516109159190613258565b60405180910390f35b34801561092a57600080fd5b50610945600480360381019061094091906137a1565b6124e5565b6040516109529190613258565b60405180910390f35b34801561096757600080fd5b50610982600480360381019061097d91906139ff565b61259d565b005b34801561099057600080fd5b506109ab60048036038101906109a69190613a2c565b6125e9565b6040516109b89190613224565b60405180910390f35b3480156109cd57600080fd5b506109e860048036038101906109e391906137a1565b61267d565b005b3480156109f657600080fd5b50610a116004803603810190610a0c919061335a565b612701565b005b348015610a1f57600080fd5b50610a28612713565b604051610a359190613258565b60405180910390f35b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610a9957506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610ac95750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b610ad861271e565b60026009541415610b1e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b1590613ab8565b60405180910390fd5b6002600981905550601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610bc091906133c8565b60206040518083038186803b158015610bd857600080fd5b505afa158015610bec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c109190613aed565b6040518363ffffffff1660e01b8152600401610c2d929190613b1a565b602060405180830381600087803b158015610c4757600080fd5b505af1158015610c5b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c7f9190613b58565b506001600981905550565b6811e3ab8395c6e8000081565b606060028054610ca690613bb4565b80601f0160208091040260200160405190810160405280929190818152602001828054610cd290613bb4565b8015610d1f5780601f10610cf457610100808354040283529160200191610d1f565b820191906000526020600020905b815481529060010190602001808311610d0257829003601f168201915b5050505050905090565b600d5481565b6000610d3a8261279c565b610d70576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610db682611ac9565b90508073ffffffffffffffffffffffffffffffffffffffff16610dd76127fb565b73ffffffffffffffffffffffffffffffffffffffff1614610e3a57610e0381610dfe6127fb565b6125e9565b610e39576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b610ef461271e565b80600e60006101000a81548160ff02191690831515021790555050565b6000610f1b612803565b6001546000540303905090565b600b5481565b6000610f398261280c565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610fa0576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610fac846128da565b91509150610fc28187610fbd6127fb565b6128fc565b61100e57610fd786610fd26127fb565b6125e9565b61100d576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415611075576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6110828686866001612940565b801561108d57600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001019190508190555061115b85611137888887612946565b7c02000000000000000000000000000000000000000000000000000000001761296e565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841614156111e35760006001850190506000600460008381526020019081526020016000205414156111e15760005481146111e0578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461124b8686866001612999565b505050505050565b61125b61271e565b60005b8282905081101561137f57600073ffffffffffffffffffffffffffffffffffffffff1683838381811061129457611293613be6565b5b90506020020160208101906112a991906137a1565b73ffffffffffffffffffffffffffffffffffffffff161415611300576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112f790613c61565b60405180910390fd5b60006012600085858581811061131957611318613be6565b5b905060200201602081019061132e91906137a1565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550808061137790613cb0565b91505061125e565b505050565b600a5481565b61139261271e565b80600b8190555050565b6113a461299f565b6124b1816113b06129e9565b6113ba9190613cf9565b11156113fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113f290613d9b565b60405180910390fd5b8066d529ae9e86000061140e9190613dbb565b341461144f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161144690613e61565b60405180910390fd5b61145933826129fc565b50565b61146461271e565b600260095414156114aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114a190613ab8565b60405180910390fd5b600260098190555060004790503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501580156114fd573d6000803e3d6000fd5b50506001600981905550565b61151161271e565b611519612a1a565b565b6115368383836040518060200160405280600081525061211c565b505050565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61156961299f565b6000601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054116115eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115e290613ecd565b60405180910390fd5b818190508484905014611633576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161162a90613f39565b60405180910390fd5b6000805b8383905081101561167c5783838281811061165557611654613be6565b5b90506020020135826116679190613cf9565b9150808061167490613cb0565b915050611637565b5080601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205410156116ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116f690613fa5565b60405180910390fd5b80601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461174e9190613fc5565b9250508190555060005b858590508110156118f95760006012600088888581811061177c5761177b613be6565b5b905060200201602081019061179191906137a1565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054116117f0578383828181106117e4576117e3613be6565b5b9050602002013561187c565b83838281811061180357611802613be6565b5b905060200201356012600088888581811061182157611820613be6565b5b905060200201602081019061183691906137a1565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461187b9190613cf9565b5b6012600088888581811061189357611892613be6565b5b90506020020160208101906118a891906137a1565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555080806118f190613cb0565b915050611758565b505050505050565b61190961271e565b8181600f919061191a9291906130cd565b505050565b6000600860149054906101000a900460ff16905090565b61193e61271e565b818190508484905014611986576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161197d90613f39565b60405180910390fd5b60005b84849050811015611ac257600073ffffffffffffffffffffffffffffffffffffffff168585838181106119bf576119be613be6565b5b90506020020160208101906119d491906137a1565b73ffffffffffffffffffffffffffffffffffffffff161415611a2b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a2290613c61565b60405180910390fd5b828282818110611a3e57611a3d613be6565b5b9050602002013560126000878785818110611a5c57611a5b613be6565b5b9050602002016020810190611a7191906137a1565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508080611aba90613cb0565b915050611989565b5050505050565b6000611ad48261280c565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611b43576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611b9c61271e565b611ba66000612a7d565b565b600e60009054906101000a900460ff1681565b611bc361299f565b600e60009054906101000a900460ff16611c12576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c0990614045565b60405180910390fd5b6124b181611c1e6129e9565b611c289190613cf9565b1115611c69576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c6090613d9b565b60405180910390fd5b600a5481600c54611c7a9190613cf9565b1115611cbb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cb2906140b1565b60405180910390fd5b80601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541015611d3d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d3490613fa5565b60405180910390fd5b80601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611d8c9190613fc5565b9250508190555080601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611de29190613cf9565b9250508190555080600c6000828254611dfb9190613cf9565b92505081905550611e0c33826129fc565b50565b611e1761271e565b611e1f612b43565b565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611e92576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e899061411d565b60405180910390fd5b601460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060038054611f1290613bb4565b80601f0160208091040260200160405190810160405280929190818152602001828054611f3e90613bb4565b8015611f8b5780601f10611f6057610100808354040283529160200191611f8b565b820191906000526020600020905b815481529060010190602001808311611f6e57829003601f168201915b5050505050905090565b611f9d6127fb565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612002576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806007600061200f6127fb565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166120bc6127fb565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516121019190613224565b60405180910390a35050565b60006121176129e9565b905090565b612127848484610f2e565b60008373ffffffffffffffffffffffffffffffffffffffff163b146121895761215284848484612ba6565b612188576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612200576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121f79061411d565b60405180910390fd5b601260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61224f61299f565b6124b18161225b6129e9565b6122659190613cf9565b11156122a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161229d90613d9b565b60405180910390fd5b600b5481600d546122b79190613cf9565b11156122f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122ef90614189565b60405180910390fd5b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330846811e3ab8395c6e8000061234d9190613dbb565b6040518463ffffffff1660e01b815260040161236b939291906141a9565b602060405180830381600087803b15801561238557600080fd5b505af1158015612399573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123bd9190613b58565b5080601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461240d9190613cf9565b9250508190555080600d60008282546124269190613cf9565b9250508190555061243733826129fc565b50565b60606124458261279c565b61247b576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000612485612d06565b90506000815114156124a657604051806020016040528060008152506124d1565b806124b084612d98565b6040516020016124c192919061421c565b6040516020818303038152906040525b915050919050565b600c5481565b6124b181565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612556576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161254d9061411d565b60405180910390fd5b601360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6125a561271e565b80601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61268561271e565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156126f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126ec906142b2565b60405180910390fd5b6126fe81612a7d565b50565b61270961271e565b80600a8190555050565b66d529ae9e86000081565b612726612df2565b73ffffffffffffffffffffffffffffffffffffffff16612744611ed9565b73ffffffffffffffffffffffffffffffffffffffff161461279a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127919061431e565b60405180910390fd5b565b6000816127a7612803565b111580156127b6575060005482105b80156127f4575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b60006001905090565b6000808290508061281b612803565b116128a3576000548110156128a25760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821614156128a0575b600081141561289657600460008360019003935083815260200190815260200160002054905061286b565b80925050506128d5565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000806000600690508360005280602052604060002092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e861295d868684612dfa565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6129a761191f565b156129e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129de9061438a565b60405180910390fd5b565b60006129f3612803565b60005403905090565b612a16828260405180602001604052806000815250612e03565b5050565b612a22612ea0565b6000600860146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa612a66612df2565b604051612a7391906133c8565b60405180910390a1565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612b4b61299f565b6001600860146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612b8f612df2565b604051612b9c91906133c8565b60405180910390a1565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612bcc6127fb565b8786866040518563ffffffff1660e01b8152600401612bee94939291906143ff565b602060405180830381600087803b158015612c0857600080fd5b505af1925050508015612c3957506040513d601f19601f82011682018060405250810190612c369190614460565b60015b612cb3573d8060008114612c69576040519150601f19603f3d011682016040523d82523d6000602084013e612c6e565b606091505b50600081511415612cab576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060600f8054612d1590613bb4565b80601f0160208091040260200160405190810160405280929190818152602001828054612d4190613bb4565b8015612d8e5780601f10612d6357610100808354040283529160200191612d8e565b820191906000526020600020905b815481529060010190602001808311612d7157829003601f168201915b5050505050905090565b60606080604051019050806040528082600183039250600a81066030018353600a810490505b8015612dde57600183039250600a81066030018353600a81049050612dbe565b508181036020830392508083525050919050565b600033905090565b60009392505050565b612e0d8383612ee9565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612e9b57600080549050600083820390505b612e4d6000868380600101945086612ba6565b612e83576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818110612e3a578160005414612e9857600080fd5b50505b505050565b612ea861191f565b612ee7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ede906144d9565b60405180910390fd5b565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612f56576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000821415612f91576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612f9e6000848385612940565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550613015836130066000866000612946565b61300f856130bd565b1761296e565b60046000838152602001908152602001600020819055506000819050600083830190505b818060010192508573ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4808210613039578060008190555050506130b86000848385612999565b505050565b60006001821460e11b9050919050565b8280546130d990613bb4565b90600052602060002090601f0160209004810192826130fb5760008555613142565b82601f1061311457803560ff1916838001178555613142565b82800160010185558215613142579182015b82811115613141578235825591602001919060010190613126565b5b50905061314f9190613153565b5090565b5b8082111561316c576000816000905550600101613154565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6131b981613184565b81146131c457600080fd5b50565b6000813590506131d6816131b0565b92915050565b6000602082840312156131f2576131f161317a565b5b6000613200848285016131c7565b91505092915050565b60008115159050919050565b61321e81613209565b82525050565b60006020820190506132396000830184613215565b92915050565b6000819050919050565b6132528161323f565b82525050565b600060208201905061326d6000830184613249565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156132ad578082015181840152602081019050613292565b838111156132bc576000848401525b50505050565b6000601f19601f8301169050919050565b60006132de82613273565b6132e8818561327e565b93506132f881856020860161328f565b613301816132c2565b840191505092915050565b6000602082019050818103600083015261332681846132d3565b905092915050565b6133378161323f565b811461334257600080fd5b50565b6000813590506133548161332e565b92915050565b6000602082840312156133705761336f61317a565b5b600061337e84828501613345565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006133b282613387565b9050919050565b6133c2816133a7565b82525050565b60006020820190506133dd60008301846133b9565b92915050565b6133ec816133a7565b81146133f757600080fd5b50565b600081359050613409816133e3565b92915050565b600080604083850312156134265761342561317a565b5b6000613434858286016133fa565b925050602061344585828601613345565b9150509250929050565b61345881613209565b811461346357600080fd5b50565b6000813590506134758161344f565b92915050565b6000602082840312156134915761349061317a565b5b600061349f84828501613466565b91505092915050565b6000806000606084860312156134c1576134c061317a565b5b60006134cf868287016133fa565b93505060206134e0868287016133fa565b92505060406134f186828701613345565b9150509250925092565b600080fd5b600080fd5b600080fd5b60008083601f8401126135205761351f6134fb565b5b8235905067ffffffffffffffff81111561353d5761353c613500565b5b60208301915083602082028301111561355957613558613505565b5b9250929050565b600080602083850312156135775761357661317a565b5b600083013567ffffffffffffffff8111156135955761359461317f565b5b6135a18582860161350a565b92509250509250929050565b6000819050919050565b60006135d26135cd6135c884613387565b6135ad565b613387565b9050919050565b60006135e4826135b7565b9050919050565b60006135f6826135d9565b9050919050565b613606816135eb565b82525050565b600060208201905061362160008301846135fd565b92915050565b60008083601f84011261363d5761363c6134fb565b5b8235905067ffffffffffffffff81111561365a57613659613500565b5b60208301915083602082028301111561367657613675613505565b5b9250929050565b600080600080604085870312156136975761369661317a565b5b600085013567ffffffffffffffff8111156136b5576136b461317f565b5b6136c18782880161350a565b9450945050602085013567ffffffffffffffff8111156136e4576136e361317f565b5b6136f087828801613627565b925092505092959194509250565b60008083601f840112613714576137136134fb565b5b8235905067ffffffffffffffff81111561373157613730613500565b5b60208301915083600182028301111561374d5761374c613505565b5b9250929050565b6000806020838503121561376b5761376a61317a565b5b600083013567ffffffffffffffff8111156137895761378861317f565b5b613795858286016136fe565b92509250509250929050565b6000602082840312156137b7576137b661317a565b5b60006137c5848285016133fa565b91505092915050565b600080604083850312156137e5576137e461317a565b5b60006137f3858286016133fa565b925050602061380485828601613466565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61384b826132c2565b810181811067ffffffffffffffff8211171561386a57613869613813565b5b80604052505050565b600061387d613170565b90506138898282613842565b919050565b600067ffffffffffffffff8211156138a9576138a8613813565b5b6138b2826132c2565b9050602081019050919050565b82818337600083830152505050565b60006138e16138dc8461388e565b613873565b9050828152602081018484840111156138fd576138fc61380e565b5b6139088482856138bf565b509392505050565b600082601f830112613925576139246134fb565b5b81356139358482602086016138ce565b91505092915050565b600080600080608085870312156139585761395761317a565b5b6000613966878288016133fa565b9450506020613977878288016133fa565b935050604061398887828801613345565b925050606085013567ffffffffffffffff8111156139a9576139a861317f565b5b6139b587828801613910565b91505092959194509250565b60006139cc826133a7565b9050919050565b6139dc816139c1565b81146139e757600080fd5b50565b6000813590506139f9816139d3565b92915050565b600060208284031215613a1557613a1461317a565b5b6000613a23848285016139ea565b91505092915050565b60008060408385031215613a4357613a4261317a565b5b6000613a51858286016133fa565b9250506020613a62858286016133fa565b9150509250929050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000613aa2601f8361327e565b9150613aad82613a6c565b602082019050919050565b60006020820190508181036000830152613ad181613a95565b9050919050565b600081519050613ae78161332e565b92915050565b600060208284031215613b0357613b0261317a565b5b6000613b1184828501613ad8565b91505092915050565b6000604082019050613b2f60008301856133b9565b613b3c6020830184613249565b9392505050565b600081519050613b528161344f565b92915050565b600060208284031215613b6e57613b6d61317a565b5b6000613b7c84828501613b43565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613bcc57607f821691505b60208210811415613be057613bdf613b85565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f43616e277420736574207a65726f206164647265737300000000000000000000600082015250565b6000613c4b60168361327e565b9150613c5682613c15565b602082019050919050565b60006020820190508181036000830152613c7a81613c3e565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613cbb8261323f565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613cee57613ced613c81565b5b600182019050919050565b6000613d048261323f565b9150613d0f8361323f565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613d4457613d43613c81565b5b828201905092915050565b7f576f756c6420657863656564206d6178537570706c7900000000000000000000600082015250565b6000613d8560168361327e565b9150613d9082613d4f565b602082019050919050565b60006020820190508181036000830152613db481613d78565b9050919050565b6000613dc68261323f565b9150613dd18361323f565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613e0a57613e09613c81565b5b828202905092915050565b7f4e6f7420656e6f75676820455448000000000000000000000000000000000000600082015250565b6000613e4b600e8361327e565b9150613e5682613e15565b602082019050919050565b60006020820190508181036000830152613e7a81613e3e565b9050919050565b7f5a65726f2071756f746100000000000000000000000000000000000000000000600082015250565b6000613eb7600a8361327e565b9150613ec282613e81565b602082019050919050565b60006020820190508181036000830152613ee681613eaa565b9050919050565b7f4d69736d617463682064617461206c656e677468000000000000000000000000600082015250565b6000613f2360148361327e565b9150613f2e82613eed565b602082019050919050565b60006020820190508181036000830152613f5281613f16565b9050919050565b7f4e6f7420656e6f7567682071756f746100000000000000000000000000000000600082015250565b6000613f8f60108361327e565b9150613f9a82613f59565b602082019050919050565b60006020820190508181036000830152613fbe81613f82565b9050919050565b6000613fd08261323f565b9150613fdb8361323f565b925082821015613fee57613fed613c81565b5b828203905092915050565b7f46726565206d696e7420697320636c6f73656400000000000000000000000000600082015250565b600061402f60138361327e565b915061403a82613ff9565b602082019050919050565b6000602082019050818103600083015261405e81614022565b9050919050565b7f576f756c64206578636565642066726565537570706c79000000000000000000600082015250565b600061409b60178361327e565b91506140a682614065565b602082019050919050565b600060208201905081810360008301526140ca8161408e565b9050919050565b7f5a65726f2061646472657373206e6f7420666f756e6400000000000000000000600082015250565b600061410760168361327e565b9150614112826140d1565b602082019050919050565b60006020820190508181036000830152614136816140fa565b9050919050565b7f576f756c6420657863656564206d6f6361537570706c79000000000000000000600082015250565b600061417360178361327e565b915061417e8261413d565b602082019050919050565b600060208201905081810360008301526141a281614166565b9050919050565b60006060820190506141be60008301866133b9565b6141cb60208301856133b9565b6141d86040830184613249565b949350505050565b600081905092915050565b60006141f682613273565b61420081856141e0565b935061421081856020860161328f565b80840191505092915050565b600061422882856141eb565b915061423482846141eb565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061429c60268361327e565b91506142a782614240565b604082019050919050565b600060208201905081810360008301526142cb8161428f565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061430860208361327e565b9150614313826142d2565b602082019050919050565b60006020820190508181036000830152614337816142fb565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b600061437460108361327e565b915061437f8261433e565b602082019050919050565b600060208201905081810360008301526143a381614367565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006143d1826143aa565b6143db81856143b5565b93506143eb81856020860161328f565b6143f4816132c2565b840191505092915050565b600060808201905061441460008301876133b9565b61442160208301866133b9565b61442e6040830185613249565b818103606083015261444081846143c6565b905095945050505050565b60008151905061445a816131b0565b92915050565b6000602082840312156144765761447561317a565b5b60006144848482850161444b565b91505092915050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b60006144c360148361327e565b91506144ce8261448d565b602082019050919050565b600060208201905081810360008301526144f2816144b6565b905091905056fea2646970667358221220b775ae4481015abc87f4d85d0cf732c11fbd9050f780ded9223f4a2b021c8e0c64736f6c634300080900330000000000000000000000009ac07635ddbde5db18648c360defb00f5f22537e
Deployed Bytecode
0x60806040526004361061027d5760003560e01c80636352211e1161014f578063b88d4fde116100c1578063daaae4d81161007a578063daaae4d81461091e578063e0c6e3481461095b578063e985e9c514610984578063f2fde38b146109c1578063f676308a146109ea578063ff186b2e14610a135761027d565b8063b88d4fde14610809578063c0ab222014610832578063c83afa401461086f578063c87b56dd1461088b578063d10a1a2b146108c8578063d5abeb01146108f35761027d565b80638456cb59116101135780638456cb591461070b57806384640ed1146107225780638da5cb5b1461075f57806395d89b411461078a578063a22cb465146107b5578063a2309ff8146107de5761027d565b80636352211e1461062657806370a0823114610663578063715018a6146106a0578063777fa9ab146106b75780637c928fe9146106e25761027d565b8063241c2525116101f357806342842e0e116101ac57806342842e0e1461052c578063472554f1146105555780635307f2831461058057806355f804b3146105a95780635c975abb146105d2578063620d055d146105fd5761027d565b8063241c25251461046557806324a6ab0c1461048e57806324f879cb146104b95780632db11544146104e25780633ccfd60b146104fe5780633f4ba83a146105155761027d565b8063081812fc11610245578063081812fc14610357578063095ea7b3146103945780630f8421dc146103bd57806318160ddd146103e6578063187dbf331461041157806323b872dd1461043c5761027d565b806301ffc9a71461028257806302b6609e146102bf57806304689cce146102d657806306fdde03146103015780630785ec401461032c575b600080fd5b34801561028e57600080fd5b506102a960048036038101906102a491906131dc565b610a3e565b6040516102b69190613224565b60405180910390f35b3480156102cb57600080fd5b506102d4610ad0565b005b3480156102e257600080fd5b506102eb610c8a565b6040516102f89190613258565b60405180910390f35b34801561030d57600080fd5b50610316610c97565b604051610323919061330c565b60405180910390f35b34801561033857600080fd5b50610341610d29565b60405161034e9190613258565b60405180910390f35b34801561036357600080fd5b5061037e6004803603810190610379919061335a565b610d2f565b60405161038b91906133c8565b60405180910390f35b3480156103a057600080fd5b506103bb60048036038101906103b6919061340f565b610dab565b005b3480156103c957600080fd5b506103e460048036038101906103df919061347b565b610eec565b005b3480156103f257600080fd5b506103fb610f11565b6040516104089190613258565b60405180910390f35b34801561041d57600080fd5b50610426610f28565b6040516104339190613258565b60405180910390f35b34801561044857600080fd5b50610463600480360381019061045e91906134a8565b610f2e565b005b34801561047157600080fd5b5061048c60048036038101906104879190613560565b611253565b005b34801561049a57600080fd5b506104a3611384565b6040516104b09190613258565b60405180910390f35b3480156104c557600080fd5b506104e060048036038101906104db919061335a565b61138a565b005b6104fc60048036038101906104f7919061335a565b61139c565b005b34801561050a57600080fd5b5061051361145c565b005b34801561052157600080fd5b5061052a611509565b005b34801561053857600080fd5b50610553600480360381019061054e91906134a8565b61151b565b005b34801561056157600080fd5b5061056a61153b565b604051610577919061360c565b60405180910390f35b34801561058c57600080fd5b506105a760048036038101906105a2919061367d565b611561565b005b3480156105b557600080fd5b506105d060048036038101906105cb9190613754565b611901565b005b3480156105de57600080fd5b506105e761191f565b6040516105f49190613224565b60405180910390f35b34801561060957600080fd5b50610624600480360381019061061f919061367d565b611936565b005b34801561063257600080fd5b5061064d6004803603810190610648919061335a565b611ac9565b60405161065a91906133c8565b60405180910390f35b34801561066f57600080fd5b5061068a600480360381019061068591906137a1565b611adb565b6040516106979190613258565b60405180910390f35b3480156106ac57600080fd5b506106b5611b94565b005b3480156106c357600080fd5b506106cc611ba8565b6040516106d99190613224565b60405180910390f35b3480156106ee57600080fd5b506107096004803603810190610704919061335a565b611bbb565b005b34801561071757600080fd5b50610720611e0f565b005b34801561072e57600080fd5b50610749600480360381019061074491906137a1565b611e21565b6040516107569190613258565b60405180910390f35b34801561076b57600080fd5b50610774611ed9565b60405161078191906133c8565b60405180910390f35b34801561079657600080fd5b5061079f611f03565b6040516107ac919061330c565b60405180910390f35b3480156107c157600080fd5b506107dc60048036038101906107d791906137ce565b611f95565b005b3480156107ea57600080fd5b506107f361210d565b6040516108009190613258565b60405180910390f35b34801561081557600080fd5b50610830600480360381019061082b919061393e565b61211c565b005b34801561083e57600080fd5b50610859600480360381019061085491906137a1565b61218f565b6040516108669190613258565b60405180910390f35b6108896004803603810190610884919061335a565b612247565b005b34801561089757600080fd5b506108b260048036038101906108ad919061335a565b61243a565b6040516108bf919061330c565b60405180910390f35b3480156108d457600080fd5b506108dd6124d9565b6040516108ea9190613258565b60405180910390f35b3480156108ff57600080fd5b506109086124df565b6040516109159190613258565b60405180910390f35b34801561092a57600080fd5b50610945600480360381019061094091906137a1565b6124e5565b6040516109529190613258565b60405180910390f35b34801561096757600080fd5b50610982600480360381019061097d91906139ff565b61259d565b005b34801561099057600080fd5b506109ab60048036038101906109a69190613a2c565b6125e9565b6040516109b89190613224565b60405180910390f35b3480156109cd57600080fd5b506109e860048036038101906109e391906137a1565b61267d565b005b3480156109f657600080fd5b50610a116004803603810190610a0c919061335a565b612701565b005b348015610a1f57600080fd5b50610a28612713565b604051610a359190613258565b60405180910390f35b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610a9957506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610ac95750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b610ad861271e565b60026009541415610b1e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b1590613ab8565b60405180910390fd5b6002600981905550601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610bc091906133c8565b60206040518083038186803b158015610bd857600080fd5b505afa158015610bec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c109190613aed565b6040518363ffffffff1660e01b8152600401610c2d929190613b1a565b602060405180830381600087803b158015610c4757600080fd5b505af1158015610c5b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c7f9190613b58565b506001600981905550565b6811e3ab8395c6e8000081565b606060028054610ca690613bb4565b80601f0160208091040260200160405190810160405280929190818152602001828054610cd290613bb4565b8015610d1f5780601f10610cf457610100808354040283529160200191610d1f565b820191906000526020600020905b815481529060010190602001808311610d0257829003601f168201915b5050505050905090565b600d5481565b6000610d3a8261279c565b610d70576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610db682611ac9565b90508073ffffffffffffffffffffffffffffffffffffffff16610dd76127fb565b73ffffffffffffffffffffffffffffffffffffffff1614610e3a57610e0381610dfe6127fb565b6125e9565b610e39576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b610ef461271e565b80600e60006101000a81548160ff02191690831515021790555050565b6000610f1b612803565b6001546000540303905090565b600b5481565b6000610f398261280c565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610fa0576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610fac846128da565b91509150610fc28187610fbd6127fb565b6128fc565b61100e57610fd786610fd26127fb565b6125e9565b61100d576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415611075576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6110828686866001612940565b801561108d57600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001019190508190555061115b85611137888887612946565b7c02000000000000000000000000000000000000000000000000000000001761296e565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841614156111e35760006001850190506000600460008381526020019081526020016000205414156111e15760005481146111e0578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461124b8686866001612999565b505050505050565b61125b61271e565b60005b8282905081101561137f57600073ffffffffffffffffffffffffffffffffffffffff1683838381811061129457611293613be6565b5b90506020020160208101906112a991906137a1565b73ffffffffffffffffffffffffffffffffffffffff161415611300576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112f790613c61565b60405180910390fd5b60006012600085858581811061131957611318613be6565b5b905060200201602081019061132e91906137a1565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550808061137790613cb0565b91505061125e565b505050565b600a5481565b61139261271e565b80600b8190555050565b6113a461299f565b6124b1816113b06129e9565b6113ba9190613cf9565b11156113fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113f290613d9b565b60405180910390fd5b8066d529ae9e86000061140e9190613dbb565b341461144f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161144690613e61565b60405180910390fd5b61145933826129fc565b50565b61146461271e565b600260095414156114aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114a190613ab8565b60405180910390fd5b600260098190555060004790503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501580156114fd573d6000803e3d6000fd5b50506001600981905550565b61151161271e565b611519612a1a565b565b6115368383836040518060200160405280600081525061211c565b505050565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61156961299f565b6000601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054116115eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115e290613ecd565b60405180910390fd5b818190508484905014611633576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161162a90613f39565b60405180910390fd5b6000805b8383905081101561167c5783838281811061165557611654613be6565b5b90506020020135826116679190613cf9565b9150808061167490613cb0565b915050611637565b5080601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205410156116ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116f690613fa5565b60405180910390fd5b80601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461174e9190613fc5565b9250508190555060005b858590508110156118f95760006012600088888581811061177c5761177b613be6565b5b905060200201602081019061179191906137a1565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054116117f0578383828181106117e4576117e3613be6565b5b9050602002013561187c565b83838281811061180357611802613be6565b5b905060200201356012600088888581811061182157611820613be6565b5b905060200201602081019061183691906137a1565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461187b9190613cf9565b5b6012600088888581811061189357611892613be6565b5b90506020020160208101906118a891906137a1565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555080806118f190613cb0565b915050611758565b505050505050565b61190961271e565b8181600f919061191a9291906130cd565b505050565b6000600860149054906101000a900460ff16905090565b61193e61271e565b818190508484905014611986576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161197d90613f39565b60405180910390fd5b60005b84849050811015611ac257600073ffffffffffffffffffffffffffffffffffffffff168585838181106119bf576119be613be6565b5b90506020020160208101906119d491906137a1565b73ffffffffffffffffffffffffffffffffffffffff161415611a2b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a2290613c61565b60405180910390fd5b828282818110611a3e57611a3d613be6565b5b9050602002013560126000878785818110611a5c57611a5b613be6565b5b9050602002016020810190611a7191906137a1565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508080611aba90613cb0565b915050611989565b5050505050565b6000611ad48261280c565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611b43576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611b9c61271e565b611ba66000612a7d565b565b600e60009054906101000a900460ff1681565b611bc361299f565b600e60009054906101000a900460ff16611c12576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c0990614045565b60405180910390fd5b6124b181611c1e6129e9565b611c289190613cf9565b1115611c69576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c6090613d9b565b60405180910390fd5b600a5481600c54611c7a9190613cf9565b1115611cbb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cb2906140b1565b60405180910390fd5b80601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541015611d3d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d3490613fa5565b60405180910390fd5b80601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611d8c9190613fc5565b9250508190555080601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611de29190613cf9565b9250508190555080600c6000828254611dfb9190613cf9565b92505081905550611e0c33826129fc565b50565b611e1761271e565b611e1f612b43565b565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611e92576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e899061411d565b60405180910390fd5b601460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060038054611f1290613bb4565b80601f0160208091040260200160405190810160405280929190818152602001828054611f3e90613bb4565b8015611f8b5780601f10611f6057610100808354040283529160200191611f8b565b820191906000526020600020905b815481529060010190602001808311611f6e57829003601f168201915b5050505050905090565b611f9d6127fb565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612002576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806007600061200f6127fb565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166120bc6127fb565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516121019190613224565b60405180910390a35050565b60006121176129e9565b905090565b612127848484610f2e565b60008373ffffffffffffffffffffffffffffffffffffffff163b146121895761215284848484612ba6565b612188576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612200576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121f79061411d565b60405180910390fd5b601260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61224f61299f565b6124b18161225b6129e9565b6122659190613cf9565b11156122a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161229d90613d9b565b60405180910390fd5b600b5481600d546122b79190613cf9565b11156122f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122ef90614189565b60405180910390fd5b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330846811e3ab8395c6e8000061234d9190613dbb565b6040518463ffffffff1660e01b815260040161236b939291906141a9565b602060405180830381600087803b15801561238557600080fd5b505af1158015612399573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123bd9190613b58565b5080601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461240d9190613cf9565b9250508190555080600d60008282546124269190613cf9565b9250508190555061243733826129fc565b50565b60606124458261279c565b61247b576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000612485612d06565b90506000815114156124a657604051806020016040528060008152506124d1565b806124b084612d98565b6040516020016124c192919061421c565b6040516020818303038152906040525b915050919050565b600c5481565b6124b181565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612556576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161254d9061411d565b60405180910390fd5b601360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6125a561271e565b80601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61268561271e565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156126f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126ec906142b2565b60405180910390fd5b6126fe81612a7d565b50565b61270961271e565b80600a8190555050565b66d529ae9e86000081565b612726612df2565b73ffffffffffffffffffffffffffffffffffffffff16612744611ed9565b73ffffffffffffffffffffffffffffffffffffffff161461279a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127919061431e565b60405180910390fd5b565b6000816127a7612803565b111580156127b6575060005482105b80156127f4575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b60006001905090565b6000808290508061281b612803565b116128a3576000548110156128a25760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821614156128a0575b600081141561289657600460008360019003935083815260200190815260200160002054905061286b565b80925050506128d5565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000806000600690508360005280602052604060002092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e861295d868684612dfa565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6129a761191f565b156129e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129de9061438a565b60405180910390fd5b565b60006129f3612803565b60005403905090565b612a16828260405180602001604052806000815250612e03565b5050565b612a22612ea0565b6000600860146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa612a66612df2565b604051612a7391906133c8565b60405180910390a1565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612b4b61299f565b6001600860146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612b8f612df2565b604051612b9c91906133c8565b60405180910390a1565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612bcc6127fb565b8786866040518563ffffffff1660e01b8152600401612bee94939291906143ff565b602060405180830381600087803b158015612c0857600080fd5b505af1925050508015612c3957506040513d601f19601f82011682018060405250810190612c369190614460565b60015b612cb3573d8060008114612c69576040519150601f19603f3d011682016040523d82523d6000602084013e612c6e565b606091505b50600081511415612cab576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060600f8054612d1590613bb4565b80601f0160208091040260200160405190810160405280929190818152602001828054612d4190613bb4565b8015612d8e5780601f10612d6357610100808354040283529160200191612d8e565b820191906000526020600020905b815481529060010190602001808311612d7157829003601f168201915b5050505050905090565b60606080604051019050806040528082600183039250600a81066030018353600a810490505b8015612dde57600183039250600a81066030018353600a81049050612dbe565b508181036020830392508083525050919050565b600033905090565b60009392505050565b612e0d8383612ee9565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612e9b57600080549050600083820390505b612e4d6000868380600101945086612ba6565b612e83576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818110612e3a578160005414612e9857600080fd5b50505b505050565b612ea861191f565b612ee7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ede906144d9565b60405180910390fd5b565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612f56576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000821415612f91576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612f9e6000848385612940565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550613015836130066000866000612946565b61300f856130bd565b1761296e565b60046000838152602001908152602001600020819055506000819050600083830190505b818060010192508573ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4808210613039578060008190555050506130b86000848385612999565b505050565b60006001821460e11b9050919050565b8280546130d990613bb4565b90600052602060002090601f0160209004810192826130fb5760008555613142565b82601f1061311457803560ff1916838001178555613142565b82800160010185558215613142579182015b82811115613141578235825591602001919060010190613126565b5b50905061314f9190613153565b5090565b5b8082111561316c576000816000905550600101613154565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6131b981613184565b81146131c457600080fd5b50565b6000813590506131d6816131b0565b92915050565b6000602082840312156131f2576131f161317a565b5b6000613200848285016131c7565b91505092915050565b60008115159050919050565b61321e81613209565b82525050565b60006020820190506132396000830184613215565b92915050565b6000819050919050565b6132528161323f565b82525050565b600060208201905061326d6000830184613249565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156132ad578082015181840152602081019050613292565b838111156132bc576000848401525b50505050565b6000601f19601f8301169050919050565b60006132de82613273565b6132e8818561327e565b93506132f881856020860161328f565b613301816132c2565b840191505092915050565b6000602082019050818103600083015261332681846132d3565b905092915050565b6133378161323f565b811461334257600080fd5b50565b6000813590506133548161332e565b92915050565b6000602082840312156133705761336f61317a565b5b600061337e84828501613345565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006133b282613387565b9050919050565b6133c2816133a7565b82525050565b60006020820190506133dd60008301846133b9565b92915050565b6133ec816133a7565b81146133f757600080fd5b50565b600081359050613409816133e3565b92915050565b600080604083850312156134265761342561317a565b5b6000613434858286016133fa565b925050602061344585828601613345565b9150509250929050565b61345881613209565b811461346357600080fd5b50565b6000813590506134758161344f565b92915050565b6000602082840312156134915761349061317a565b5b600061349f84828501613466565b91505092915050565b6000806000606084860312156134c1576134c061317a565b5b60006134cf868287016133fa565b93505060206134e0868287016133fa565b92505060406134f186828701613345565b9150509250925092565b600080fd5b600080fd5b600080fd5b60008083601f8401126135205761351f6134fb565b5b8235905067ffffffffffffffff81111561353d5761353c613500565b5b60208301915083602082028301111561355957613558613505565b5b9250929050565b600080602083850312156135775761357661317a565b5b600083013567ffffffffffffffff8111156135955761359461317f565b5b6135a18582860161350a565b92509250509250929050565b6000819050919050565b60006135d26135cd6135c884613387565b6135ad565b613387565b9050919050565b60006135e4826135b7565b9050919050565b60006135f6826135d9565b9050919050565b613606816135eb565b82525050565b600060208201905061362160008301846135fd565b92915050565b60008083601f84011261363d5761363c6134fb565b5b8235905067ffffffffffffffff81111561365a57613659613500565b5b60208301915083602082028301111561367657613675613505565b5b9250929050565b600080600080604085870312156136975761369661317a565b5b600085013567ffffffffffffffff8111156136b5576136b461317f565b5b6136c18782880161350a565b9450945050602085013567ffffffffffffffff8111156136e4576136e361317f565b5b6136f087828801613627565b925092505092959194509250565b60008083601f840112613714576137136134fb565b5b8235905067ffffffffffffffff81111561373157613730613500565b5b60208301915083600182028301111561374d5761374c613505565b5b9250929050565b6000806020838503121561376b5761376a61317a565b5b600083013567ffffffffffffffff8111156137895761378861317f565b5b613795858286016136fe565b92509250509250929050565b6000602082840312156137b7576137b661317a565b5b60006137c5848285016133fa565b91505092915050565b600080604083850312156137e5576137e461317a565b5b60006137f3858286016133fa565b925050602061380485828601613466565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61384b826132c2565b810181811067ffffffffffffffff8211171561386a57613869613813565b5b80604052505050565b600061387d613170565b90506138898282613842565b919050565b600067ffffffffffffffff8211156138a9576138a8613813565b5b6138b2826132c2565b9050602081019050919050565b82818337600083830152505050565b60006138e16138dc8461388e565b613873565b9050828152602081018484840111156138fd576138fc61380e565b5b6139088482856138bf565b509392505050565b600082601f830112613925576139246134fb565b5b81356139358482602086016138ce565b91505092915050565b600080600080608085870312156139585761395761317a565b5b6000613966878288016133fa565b9450506020613977878288016133fa565b935050604061398887828801613345565b925050606085013567ffffffffffffffff8111156139a9576139a861317f565b5b6139b587828801613910565b91505092959194509250565b60006139cc826133a7565b9050919050565b6139dc816139c1565b81146139e757600080fd5b50565b6000813590506139f9816139d3565b92915050565b600060208284031215613a1557613a1461317a565b5b6000613a23848285016139ea565b91505092915050565b60008060408385031215613a4357613a4261317a565b5b6000613a51858286016133fa565b9250506020613a62858286016133fa565b9150509250929050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000613aa2601f8361327e565b9150613aad82613a6c565b602082019050919050565b60006020820190508181036000830152613ad181613a95565b9050919050565b600081519050613ae78161332e565b92915050565b600060208284031215613b0357613b0261317a565b5b6000613b1184828501613ad8565b91505092915050565b6000604082019050613b2f60008301856133b9565b613b3c6020830184613249565b9392505050565b600081519050613b528161344f565b92915050565b600060208284031215613b6e57613b6d61317a565b5b6000613b7c84828501613b43565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613bcc57607f821691505b60208210811415613be057613bdf613b85565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f43616e277420736574207a65726f206164647265737300000000000000000000600082015250565b6000613c4b60168361327e565b9150613c5682613c15565b602082019050919050565b60006020820190508181036000830152613c7a81613c3e565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613cbb8261323f565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613cee57613ced613c81565b5b600182019050919050565b6000613d048261323f565b9150613d0f8361323f565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613d4457613d43613c81565b5b828201905092915050565b7f576f756c6420657863656564206d6178537570706c7900000000000000000000600082015250565b6000613d8560168361327e565b9150613d9082613d4f565b602082019050919050565b60006020820190508181036000830152613db481613d78565b9050919050565b6000613dc68261323f565b9150613dd18361323f565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613e0a57613e09613c81565b5b828202905092915050565b7f4e6f7420656e6f75676820455448000000000000000000000000000000000000600082015250565b6000613e4b600e8361327e565b9150613e5682613e15565b602082019050919050565b60006020820190508181036000830152613e7a81613e3e565b9050919050565b7f5a65726f2071756f746100000000000000000000000000000000000000000000600082015250565b6000613eb7600a8361327e565b9150613ec282613e81565b602082019050919050565b60006020820190508181036000830152613ee681613eaa565b9050919050565b7f4d69736d617463682064617461206c656e677468000000000000000000000000600082015250565b6000613f2360148361327e565b9150613f2e82613eed565b602082019050919050565b60006020820190508181036000830152613f5281613f16565b9050919050565b7f4e6f7420656e6f7567682071756f746100000000000000000000000000000000600082015250565b6000613f8f60108361327e565b9150613f9a82613f59565b602082019050919050565b60006020820190508181036000830152613fbe81613f82565b9050919050565b6000613fd08261323f565b9150613fdb8361323f565b925082821015613fee57613fed613c81565b5b828203905092915050565b7f46726565206d696e7420697320636c6f73656400000000000000000000000000600082015250565b600061402f60138361327e565b915061403a82613ff9565b602082019050919050565b6000602082019050818103600083015261405e81614022565b9050919050565b7f576f756c64206578636565642066726565537570706c79000000000000000000600082015250565b600061409b60178361327e565b91506140a682614065565b602082019050919050565b600060208201905081810360008301526140ca8161408e565b9050919050565b7f5a65726f2061646472657373206e6f7420666f756e6400000000000000000000600082015250565b600061410760168361327e565b9150614112826140d1565b602082019050919050565b60006020820190508181036000830152614136816140fa565b9050919050565b7f576f756c6420657863656564206d6f6361537570706c79000000000000000000600082015250565b600061417360178361327e565b915061417e8261413d565b602082019050919050565b600060208201905081810360008301526141a281614166565b9050919050565b60006060820190506141be60008301866133b9565b6141cb60208301856133b9565b6141d86040830184613249565b949350505050565b600081905092915050565b60006141f682613273565b61420081856141e0565b935061421081856020860161328f565b80840191505092915050565b600061422882856141eb565b915061423482846141eb565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061429c60268361327e565b91506142a782614240565b604082019050919050565b600060208201905081810360008301526142cb8161428f565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061430860208361327e565b9150614313826142d2565b602082019050919050565b60006020820190508181036000830152614337816142fb565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b600061437460108361327e565b915061437f8261433e565b602082019050919050565b600060208201905081810360008301526143a381614367565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006143d1826143aa565b6143db81856143b5565b93506143eb81856020860161328f565b6143f4816132c2565b840191505092915050565b600060808201905061441460008301876133b9565b61442160208301866133b9565b61442e6040830185613249565b818103606083015261444081846143c6565b905095945050505050565b60008151905061445a816131b0565b92915050565b6000602082840312156144765761447561317a565b5b60006144848482850161444b565b91505092915050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b60006144c360148361327e565b91506144ce8261448d565b602082019050919050565b600060208201905081810360008301526144f2816144b6565b905091905056fea2646970667358221220b775ae4481015abc87f4d85d0cf732c11fbd9050f780ded9223f4a2b021c8e0c64736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000009ac07635ddbde5db18648c360defb00f5f22537e
-----Decoded View---------------
Arg [0] : _mocaAddress (address): 0x9Ac07635DDBDE5db18648c360DEFb00F5f22537e
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000009ac07635ddbde5db18648c360defb00f5f22537e
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.