ERC-721
Overview
Max Total Supply
128 DOT
Holders
88
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 DOTLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
Dot
Compiler Version
v0.8.22+commit.4fc1097e
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.18; import './Base64.sol'; import "erc721a/contracts/ERC721A.sol"; import "erc721a/contracts/extensions/ERC721AQueryable.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; contract Dot is ERC721AQueryable, Pausable, Ownable { uint256 public constant MAX_SUPPLY = 128; uint256 public PRICE = 0.001 ether; uint public contractSeed; constructor () ERC721A("Dots", "DOT") Ownable(msg.sender) { contractSeed = block.timestamp % 1000; pause(); } function pause() public onlyOwner { _pause(); } function unpause() public onlyOwner { _unpause(); } function setMintPrice(uint _newPrice) public onlyOwner { PRICE = _newPrice; } modifier mintIsOpen { require(totalSupply() <= MAX_SUPPLY, "Mint has ended"); require(!paused(), "Mint is paused"); _; } function mint(uint256 quantity) public payable mintIsOpen { uint256 total = totalSupply(); require(total + quantity <= MAX_SUPPLY, "Max limit exceeded"); require(msg.value >= quantity * PRICE, "Insufficient funds"); _safeMint(msg.sender, quantity); } function ownerMint(uint256 quantity) public onlyOwner mintIsOpen { uint256 total = totalSupply(); require(total + quantity <= MAX_SUPPLY, "Max limit exceeded"); _safeMint(msg.sender, quantity); } function renderSvg(uint _tokenId) public view returns (string memory svg) { uint seed = prng(_tokenId + contractSeed); svg = '<svg width="100%" height="100%" viewBox="0 0 1000 1000" version="1.1" xmlns="http://www.w3.org/2000/svg">'; svg = string.concat(svg, '<rect x="0" y="0" width="1000" height="1000" style="', randomHSLFill(_tokenId, seed), '"/>'); seed = prng(_tokenId * seed); svg = string.concat(svg, '<circle cx="500" cy="500" r="400" style="', randomHSLFill(_tokenId, seed), '"/></svg>'); } function randomHSLFill(uint _tokenId, uint _seed) private pure returns (string memory fill) { uint seed = prng(_tokenId + _seed); uint h = randomUint(seed,0, 360 ); seed = prng(_tokenId + seed); uint s = randomUint(seed, 50, 100); seed = prng(_tokenId + seed); uint l = randomUint(seed, 50, 70); fill = string.concat("fill:hsl(", uint2str(h), ", ", uint2str(s), "%, ", uint2str(l), '%);'); } function tokenURI(uint _tokenId) override(IERC721A, ERC721A) public view returns (string memory uri) { require(_exists(_tokenId), "Nonexistent token"); uri = string.concat('{ "name": "Dot #', uint2str(_tokenId), '",', '"image":"data:image/svg+xml;base64,', Base64.encode(bytes(renderSvg(_tokenId))), '"}'); uri = string.concat('data:application/json;base64,', Base64.encode(bytes(uri))); } function _startTokenId() override(ERC721A) internal view virtual returns (uint256) { return 1; } function withdraw() public onlyOwner { (bool success, ) = msg.sender.call{ value: address(this).balance }(""); require(success, "fail"); } // Utils function prng (uint256 _seed) internal pure returns (uint256 seed) { seed = (16807 * _seed) % 2147483647; } function randomUint ( uint _seed, uint _min, uint _max ) internal pure returns (uint rnd) { rnd = uint(_min + _seed % (_max - _min)); } function uint2str(uint256 _i) internal pure returns (string memory _uintAsString) { if (_i == 0) { return "0"; } uint256 j = _i; uint256 len; while (j != 0) { len++; j /= 10; } bytes memory bstr = new bytes(len); uint256 k = len; while (_i != 0) { k = k - 1; uint8 temp = (48 + uint8(_i - (_i / 10) * 10)); bytes1 b1 = bytes1(temp); bstr[k] = b1; _i /= 10; } return string(bstr); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; import {Context} from "../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. * * The initial owner is set to the address provided by the deployer. 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; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @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 { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _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 // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721AQueryable.sol'; import '../ERC721A.sol'; /** * @title ERC721AQueryable. * * @dev ERC721A subclass with convenience query functions. */ abstract contract ERC721AQueryable is ERC721A, IERC721AQueryable { /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * * - `addr = address(0)` * - `startTimestamp = 0` * - `burned = false` * - `extraData = 0` * * If the `tokenId` is burned: * * - `addr = <Address of owner before token was burned>` * - `startTimestamp = <Timestamp when token was burned>` * - `burned = true` * - `extraData = <Extra data when token was burned>` * * Otherwise: * * - `addr = <Address of owner>` * - `startTimestamp = <Timestamp of start of ownership>` * - `burned = false` * - `extraData = <Extra data at start of ownership>` */ function explicitOwnershipOf(uint256 tokenId) public view virtual override returns (TokenOwnership memory) { TokenOwnership memory ownership; if (tokenId < _startTokenId() || tokenId >= _nextTokenId()) { return ownership; } ownership = _ownershipAt(tokenId); if (ownership.burned) { return ownership; } return _ownershipOf(tokenId); } /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] calldata tokenIds) external view virtual override returns (TokenOwnership[] memory) { unchecked { uint256 tokenIdsLength = tokenIds.length; TokenOwnership[] memory ownerships = new TokenOwnership[](tokenIdsLength); for (uint256 i; i != tokenIdsLength; ++i) { ownerships[i] = explicitOwnershipOf(tokenIds[i]); } return ownerships; } } /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start < stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view virtual override returns (uint256[] memory) { unchecked { if (start >= stop) revert InvalidQueryRange(); uint256 tokenIdsIdx; uint256 stopLimit = _nextTokenId(); // Set `start = max(start, _startTokenId())`. if (start < _startTokenId()) { start = _startTokenId(); } // Set `stop = min(stop, stopLimit)`. if (stop > stopLimit) { stop = stopLimit; } uint256 tokenIdsMaxLength = balanceOf(owner); // Set `tokenIdsMaxLength = min(balanceOf(owner), stop - start)`, // to cater for cases where `balanceOf(owner)` is too big. if (start < stop) { uint256 rangeLength = stop - start; if (rangeLength < tokenIdsMaxLength) { tokenIdsMaxLength = rangeLength; } } else { tokenIdsMaxLength = 0; } uint256[] memory tokenIds = new uint256[](tokenIdsMaxLength); if (tokenIdsMaxLength == 0) { return tokenIds; } // We need to call `explicitOwnershipOf(start)`, // because the slot at `start` may not be initialized. TokenOwnership memory ownership = explicitOwnershipOf(start); address currOwnershipAddr; // If the starting slot exists (i.e. not burned), initialize `currOwnershipAddr`. // `ownership.address` will not be zero, as `start` is clamped to the valid token ID range. if (!ownership.burned) { currOwnershipAddr = ownership.addr; } for (uint256 i = start; i != stop && tokenIdsIdx != tokenIdsMaxLength; ++i) { ownership = _ownershipAt(i); if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } // Downsize the array to fit. assembly { mstore(tokenIds, tokenIdsIdx) } return tokenIds; } } /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(`totalSupply`) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K collections should be fine). */ function tokensOfOwner(address owner) external view virtual override returns (uint256[] memory) { unchecked { uint256 tokenIdsIdx; address currOwnershipAddr; uint256 tokenIdsLength = balanceOf(owner); uint256[] memory tokenIds = new uint256[](tokenIdsLength); TokenOwnership memory ownership; for (uint256 i = _startTokenId(); tokenIdsIdx != tokenIdsLength; ++i) { ownership = _ownershipAt(i); if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } return tokenIds; } } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364). struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `curr` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) public payable virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId].value; } /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) public virtual override { _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) public payable virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public payable virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public payable virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Hook that is called before a set of serially-ordered token IDs * are about to be transferred. This includes minting. * And also called before burning one token. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token IDs * have been transferred. This includes minting. * And also called after one token has been burned. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. // The duplicated `log4` removes an extra check and reduces stack juggling. // The assembly, together with the surrounding Solidity code, have been // delicately arranged to nudge the compiler into producing optimized opcodes. assembly { // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. toMasked := and(to, _BITMASK_ADDRESS) // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. startTokenId // `tokenId`. ) // The `iszero(eq(,))` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. // The compiler will optimize the `iszero` away for performance. for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), but // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned. // We will need 1 word for the trailing zeros padding, 1 word for the length, // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0. let m := add(mload(0x40), 0xa0) // Update the free memory pointer to allocate. mstore(0x40, m) // Assign the `str` to the end. str := sub(m, 0x20) // Zeroize the slot after the string. mstore(str, 0) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.2; library Base64 { string internal constant TABLE_ENCODE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; bytes internal constant TABLE_DECODE = hex"0000000000000000000000000000000000000000000000000000000000000000" hex"00000000000000000000003e0000003f3435363738393a3b3c3d000000000000" hex"00000102030405060708090a0b0c0d0e0f101112131415161718190000000000" hex"001a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132330000000000"; function encode(bytes memory data) internal pure returns (string memory) { if (data.length == 0) return ''; // load the table into memory string memory table = TABLE_ENCODE; // multiply by 4/3 rounded up uint256 encodedLen = 4 * ((data.length + 2) / 3); // add some extra buffer at the end required for the writing string memory result = new string(encodedLen + 32); assembly { // set the actual output length mstore(result, encodedLen) // prepare the lookup table let tablePtr := add(table, 1) // input ptr let dataPtr := data let endPtr := add(dataPtr, mload(data)) // result ptr, jump over length let resultPtr := add(result, 32) // run over the input, 3 bytes at a time for {} lt(dataPtr, endPtr) {} { // read 3 bytes dataPtr := add(dataPtr, 3) let input := mload(dataPtr) // write 4 characters mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F)))) resultPtr := add(resultPtr, 1) mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F)))) resultPtr := add(resultPtr, 1) mstore8(resultPtr, mload(add(tablePtr, and(shr( 6, input), 0x3F)))) resultPtr := add(resultPtr, 1) mstore8(resultPtr, mload(add(tablePtr, and( input, 0x3F)))) resultPtr := add(resultPtr, 1) } // padding with '=' switch mod(mload(data), 3) case 1 { mstore(sub(resultPtr, 2), shl(240, 0x3d3d)) } case 2 { mstore(sub(resultPtr, 1), shl(248, 0x3d)) } } return result; } function decode(string memory _data) internal pure returns (bytes memory) { bytes memory data = bytes(_data); if (data.length == 0) return new bytes(0); require(data.length % 4 == 0, "invalid base64 decoder input"); // load the table into memory bytes memory table = TABLE_DECODE; // every 4 characters represent 3 bytes uint256 decodedLen = (data.length / 4) * 3; // add some extra buffer at the end required for the writing bytes memory result = new bytes(decodedLen + 32); assembly { // padding with '=' let lastBytes := mload(add(data, mload(data))) if eq(and(lastBytes, 0xFF), 0x3d) { decodedLen := sub(decodedLen, 1) if eq(and(lastBytes, 0xFFFF), 0x3d3d) { decodedLen := sub(decodedLen, 1) } } // set the actual output length mstore(result, decodedLen) // prepare the lookup table let tablePtr := add(table, 1) // input ptr let dataPtr := data let endPtr := add(dataPtr, mload(data)) // result ptr, jump over length let resultPtr := add(result, 32) // run over the input, 4 characters at a time for {} lt(dataPtr, endPtr) {} { // read 4 characters dataPtr := add(dataPtr, 4) let input := mload(dataPtr) // write 3 bytes let output := add( add( shl(18, and(mload(add(tablePtr, and(shr(24, input), 0xFF))), 0xFF)), shl(12, and(mload(add(tablePtr, and(shr(16, input), 0xFF))), 0xFF))), add( shl( 6, and(mload(add(tablePtr, and(shr( 8, input), 0xFF))), 0xFF)), and(mload(add(tablePtr, and( input , 0xFF))), 0xFF) ) ) mstore(resultPtr, shl(232, output)) resultPtr := add(resultPtr, 3) } } return result; } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import '../IERC721A.sol'; /** * @dev Interface of ERC721AQueryable. */ interface IERC721AQueryable is IERC721A { /** * Invalid query range (`start` >= `stop`). */ error InvalidQueryRange(); /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * * - `addr = address(0)` * - `startTimestamp = 0` * - `burned = false` * - `extraData = 0` * * If the `tokenId` is burned: * * - `addr = <Address of owner before token was burned>` * - `startTimestamp = <Timestamp when token was burned>` * - `burned = true` * - `extraData = <Extra data when token was burned>` * * Otherwise: * * - `addr = <Address of owner>` * - `startTimestamp = <Timestamp of start of ownership>` * - `burned = false` * - `extraData = <Extra data at start of ownership>` */ function explicitOwnershipOf(uint256 tokenId) external view returns (TokenOwnership memory); /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] memory tokenIds) external view returns (TokenOwnership[] memory); /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start < stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view returns (uint256[] memory); /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(`totalSupply`) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K collections should be fine). */ function tokensOfOwner(address owner) external view returns (uint256[] memory); }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables * (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, * checking first that contract recipients are aware of the ERC721 protocol * to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move * this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external payable; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Transfers `tokenId` from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} * whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external payable; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) pragma solidity ^0.8.20; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"InvalidQueryRange","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","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":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractSeed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"explicitOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"explicitOwnershipsOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership[]","name":"","type":"tuple[]"}],"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":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","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":"quantity","type":"uint256"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","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":"_tokenId","type":"uint256"}],"name":"renderSvg","outputs":[{"internalType":"string","name":"svg","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPrice","type":"uint256"}],"name":"setMintPrice","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":"uri","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405266038d7ea4c680006009553480156200001b575f80fd5b50336040518060400160405280600481526020017f446f7473000000000000000000000000000000000000000000000000000000008152506040518060400160405280600381526020017f444f54000000000000000000000000000000000000000000000000000000000081525081600290816200009a919062000691565b508060039081620000ac919062000691565b50620000bd6200018e60201b60201c565b5f8190555050505f60085f6101000a81548160ff0219169083151502179055505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160362000150575f6040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401620001479190620007b8565b60405180910390fd5b62000161816200019660201b60201c565b506103e84262000172919062000800565b600a81905550620001886200025b60201b60201c565b620008b5565b5f6001905090565b5f600860019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6200026b6200027d60201b60201c565b6200027b6200031f60201b60201c565b565b6200028d6200039360201b60201c565b73ffffffffffffffffffffffffffffffffffffffff16620002b36200039a60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff16146200031d57620002df6200039360201b60201c565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401620003149190620007b8565b60405180910390fd5b565b6200032f620003c360201b60201c565b600160085f6101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586200037a6200039360201b60201c565b604051620003899190620007b8565b60405180910390a1565b5f33905090565b5f600860019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b620003d36200041860201b60201c565b1562000416576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200040d9062000895565b60405180910390fd5b565b5f60085f9054906101000a900460ff16905090565b5f81519050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f6002820490506001821680620004a957607f821691505b602082108103620004bf57620004be62000464565b5b50919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f60088302620005237fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82620004e6565b6200052f8683620004e6565b95508019841693508086168417925050509392505050565b5f819050919050565b5f819050919050565b5f62000579620005736200056d8462000547565b62000550565b62000547565b9050919050565b5f819050919050565b620005948362000559565b620005ac620005a38262000580565b848454620004f2565b825550505050565b5f90565b620005c2620005b4565b620005cf81848462000589565b505050565b5b81811015620005f657620005ea5f82620005b8565b600181019050620005d5565b5050565b601f82111562000645576200060f81620004c5565b6200061a84620004d7565b810160208510156200062a578190505b620006426200063985620004d7565b830182620005d4565b50505b505050565b5f82821c905092915050565b5f620006675f19846008026200064a565b1980831691505092915050565b5f62000681838362000656565b9150826002028217905092915050565b6200069c826200042d565b67ffffffffffffffff811115620006b857620006b762000437565b5b620006c4825462000491565b620006d1828285620005fa565b5f60209050601f83116001811462000707575f8415620006f2578287015190505b620006fe858262000674565b8655506200076d565b601f1984166200071786620004c5565b5f5b82811015620007405784890151825560018201915060208501945060208101905062000719565b868310156200076057848901516200075c601f89168262000656565b8355505b6001600288020188555050505b505050505050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f620007a08262000775565b9050919050565b620007b28162000794565b82525050565b5f602082019050620007cd5f830184620007a7565b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f6200080c8262000547565b9150620008198362000547565b9250826200082c576200082b620007d3565b5b828206905092915050565b5f82825260208201905092915050565b7f5061757361626c653a20706175736564000000000000000000000000000000005f82015250565b5f6200087d60108362000837565b91506200088a8262000847565b602082019050919050565b5f6020820190508181035f830152620008ae816200086f565b9050919050565b613d9c80620008c35f395ff3fe6080604052600436106101e2575f3560e01c80638456cb5911610101578063b88d4fde11610094578063f19e75d411610063578063f19e75d41461069a578063f2fde38b146106c2578063f4a0a528146106ea578063fd5ad31914610712576101e2565b8063b88d4fde146105ca578063c23dc68f146105e6578063c87b56dd14610622578063e985e9c51461065e576101e2565b806395d89b41116100d057806395d89b411461052057806399a2557a1461054a578063a0712d6814610586578063a22cb465146105a2576101e2565b80638456cb591461047a5780638462151c146104905780638d859f3e146104cc5780638da5cb5b146104f6576101e2565b80633f4ba83a116101795780636352211e116101485780636352211e146103c257806370a08231146103fe578063715018a61461043a5780638446384414610450576101e2565b80633f4ba83a1461032a57806342842e0e146103405780635bbb21771461035c5780635c975abb14610398576101e2565b806318160ddd116101b557806318160ddd146102a457806323b872dd146102ce57806332cb6b0c146102ea5780633ccfd60b14610314576101e2565b806301ffc9a7146101e657806306fdde0314610222578063081812fc1461024c578063095ea7b314610288575b5f80fd5b3480156101f1575f80fd5b5061020c600480360381019061020791906128b5565b61074e565b60405161021991906128fa565b60405180910390f35b34801561022d575f80fd5b506102366107df565b604051610243919061299d565b60405180910390f35b348015610257575f80fd5b50610272600480360381019061026d91906129f0565b61086f565b60405161027f9190612a5a565b60405180910390f35b6102a2600480360381019061029d9190612a9d565b6108e9565b005b3480156102af575f80fd5b506102b8610a28565b6040516102c59190612aea565b60405180910390f35b6102e860048036038101906102e39190612b03565b610a3d565b005b3480156102f5575f80fd5b506102fe610d4b565b60405161030b9190612aea565b60405180910390f35b34801561031f575f80fd5b50610328610d50565b005b348015610335575f80fd5b5061033e610e03565b005b61035a60048036038101906103559190612b03565b610e15565b005b348015610367575f80fd5b50610382600480360381019061037d9190612bb4565b610e34565b60405161038f9190612d57565b60405180910390f35b3480156103a3575f80fd5b506103ac610ef4565b6040516103b991906128fa565b60405180910390f35b3480156103cd575f80fd5b506103e860048036038101906103e391906129f0565b610f09565b6040516103f59190612a5a565b60405180910390f35b348015610409575f80fd5b50610424600480360381019061041f9190612d77565b610f1a565b6040516104319190612aea565b60405180910390f35b348015610445575f80fd5b5061044e610fcf565b005b34801561045b575f80fd5b50610464610fe2565b6040516104719190612aea565b60405180910390f35b348015610485575f80fd5b5061048e610fe8565b005b34801561049b575f80fd5b506104b660048036038101906104b19190612d77565b610ffa565b6040516104c39190612e59565b60405180910390f35b3480156104d7575f80fd5b506104e0611136565b6040516104ed9190612aea565b60405180910390f35b348015610501575f80fd5b5061050a61113c565b6040516105179190612a5a565b60405180910390f35b34801561052b575f80fd5b50610534611165565b604051610541919061299d565b60405180910390f35b348015610555575f80fd5b50610570600480360381019061056b9190612e79565b6111f5565b60405161057d9190612e59565b60405180910390f35b6105a0600480360381019061059b91906129f0565b6113f4565b005b3480156105ad575f80fd5b506105c860048036038101906105c39190612ef3565b61153f565b005b6105e460048036038101906105df9190613059565b611645565b005b3480156105f1575f80fd5b5061060c600480360381019061060791906129f0565b6116b7565b604051610619919061312c565b60405180910390f35b34801561062d575f80fd5b50610648600480360381019061064391906129f0565b611721565b604051610655919061299d565b60405180910390f35b348015610669575f80fd5b50610684600480360381019061067f9190613145565b6117d6565b60405161069191906128fa565b60405180910390f35b3480156106a5575f80fd5b506106c060048036038101906106bb91906129f0565b611864565b005b3480156106cd575f80fd5b506106e860048036038101906106e39190612d77565b611967565b005b3480156106f5575f80fd5b50610710600480360381019061070b91906129f0565b6119eb565b005b34801561071d575f80fd5b50610738600480360381019061073391906129f0565b6119fd565b604051610745919061299d565b60405180910390f35b5f6301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806107a857506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806107d85750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b6060600280546107ee906131b0565b80601f016020809104026020016040519081016040528092919081815260200182805461081a906131b0565b80156108655780601f1061083c57610100808354040283529160200191610865565b820191905f5260205f20905b81548152906001019060200180831161084857829003601f168201915b5050505050905090565b5f61087982611aa9565b6108af576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60065f8381526020019081526020015f205f015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b5f6108f382610f09565b90508073ffffffffffffffffffffffffffffffffffffffff16610914611b03565b73ffffffffffffffffffffffffffffffffffffffff1614610977576109408161093b611b03565b6117d6565b610976576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b8260065f8481526020019081526020015f205f015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b5f610a31611b0a565b6001545f540303905090565b5f610a4782611b12565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610aae576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f80610ab984611bd5565b91509150610acf8187610aca611b03565b611bf8565b610b1b57610ae486610adf611b03565b6117d6565b610b1a576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b5f73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603610b80576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610b8d8686866001611c3b565b8015610b97575f82555b60055f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8154600190039190508190555060055f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f815460010191905081905550610c5f85610c3b888887611c41565b7c020000000000000000000000000000000000000000000000000000000017611c68565b60045f8681526020019081526020015f20819055505f7c0200000000000000000000000000000000000000000000000000000000841603610cdb575f6001850190505f60045f8381526020019081526020015f205403610cd9575f548114610cd8578360045f8381526020019081526020015f20819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610d438686866001611c92565b505050505050565b608081565b610d58611c98565b5f3373ffffffffffffffffffffffffffffffffffffffff1647604051610d7d9061320d565b5f6040518083038185875af1925050503d805f8114610db7576040519150601f19603f3d011682016040523d82523d5f602084013e610dbc565b606091505b5050905080610e00576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610df79061326b565b60405180910390fd5b50565b610e0b611c98565b610e13611d1f565b565b610e2f83838360405180602001604052805f815250611645565b505050565b60605f8383905090505f8167ffffffffffffffff811115610e5857610e57612f35565b5b604051908082528060200260200182016040528015610e9157816020015b610e7e612804565b815260200190600190039081610e765790505b5090505f5b828114610ee857610ebf868683818110610eb357610eb2613289565b5b905060200201356116b7565b828281518110610ed257610ed1613289565b5b6020026020010181905250806001019050610e96565b50809250505092915050565b5f60085f9054906101000a900460ff16905090565b5f610f1382611b12565b9050919050565b5f8073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610f80576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff60055f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054169050919050565b610fd7611c98565b610fe05f611d80565b565b600a5481565b610ff0611c98565b610ff8611e45565b565b60605f805f61100885610f1a565b90505f8167ffffffffffffffff81111561102557611024612f35565b5b6040519080825280602002602001820160405280156110535781602001602082028036833780820191505090505b50905061105e612804565b5f611067611b0a565b90505b8386146111285761107a81611ea7565b9150816040015161111d575f73ffffffffffffffffffffffffffffffffffffffff16825f015173ffffffffffffffffffffffffffffffffffffffff16146110c257815f015194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff160361111c578083878060010198508151811061110f5761110e613289565b5b6020026020010181815250505b5b80600101905061106a565b508195505050505050919050565b60095481565b5f600860019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060038054611174906131b0565b80601f01602080910402602001604051908101604052809291908181526020018280546111a0906131b0565b80156111eb5780601f106111c2576101008083540402835291602001916111eb565b820191905f5260205f20905b8154815290600101906020018083116111ce57829003601f168201915b5050505050905090565b6060818310611230576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f8061123a611ed0565b9050611244611b0a565b85101561125657611253611b0a565b94505b80841115611262578093505b5f61126c87610f1a565b90508486101561128e575f868603905081811015611288578091505b50611292565b5f90505b5f8167ffffffffffffffff8111156112ad576112ac612f35565b5b6040519080825280602002602001820160405280156112db5781602001602082028036833780820191505090505b5090505f82036112f157809450505050506113ed565b5f6112fb886116b7565b90505f816040015161130e57815f015190505b5f8990505b8881141580156113235750848714155b156113df5761133181611ea7565b925082604001516113d4575f73ffffffffffffffffffffffffffffffffffffffff16835f015173ffffffffffffffffffffffffffffffffffffffff161461137957825f015191505b8a73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036113d357808488806001019950815181106113c6576113c5613289565b5b6020026020010181815250505b5b806001019050611313565b508583528296505050505050505b9392505050565b60806113fe610a28565b111561143f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161143690613300565b60405180910390fd5b611447610ef4565b15611487576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161147e90613368565b60405180910390fd5b5f611490610a28565b9050608082826114a091906133b3565b11156114e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114d890613430565b60405180910390fd5b600954826114ef919061344e565b341015611531576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611528906134d9565b60405180910390fd5b61153b3383611ed8565b5050565b8060075f61154b611b03565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166115f4611b03565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161163991906128fa565b60405180910390a35050565b611650848484610a3d565b5f8373ffffffffffffffffffffffffffffffffffffffff163b146116b15761167a84848484611ef5565b6116b0576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b6116bf612804565b6116c7612804565b6116cf611b0a565b8310806116e357506116df611ed0565b8310155b156116f1578091505061171c565b6116fa83611ea7565b905080604001511561170f578091505061171c565b61171883612040565b9150505b919050565b606061172c82611aa9565b61176b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161176290613541565b60405180910390fd5b61177482612060565b611785611780846119fd565b6121de565b60405160200161179692919061367b565b60405160208183030381529060405290506117b0816121de565b6040516020016117c091906136fc565b6040516020818303038152906040529050919050565b5f60075f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16905092915050565b61186c611c98565b6080611876610a28565b11156118b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118ae90613300565b60405180910390fd5b6118bf610ef4565b156118ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118f690613368565b60405180910390fd5b5f611908610a28565b90506080828261191891906133b3565b1115611959576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161195090613430565b60405180910390fd5b6119633383611ed8565b5050565b61196f611c98565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036119df575f6040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016119d69190612a5a565b60405180910390fd5b6119e881611d80565b50565b6119f3611c98565b8060098190555050565b60605f611a16600a5484611a1191906133b3565b612351565b90506040518060a0016040528060698152602001613cbe60699139915081611a3e8483612376565b604051602001611a4f9291906137b7565b6040516020818303038152906040529150611a748184611a6f919061344e565b612351565b905081611a818483612376565b604051602001611a9292919061388a565b604051602081830303815290604052915050919050565b5f81611ab3611b0a565b11158015611ac157505f5482105b8015611afc57505f7c010000000000000000000000000000000000000000000000000000000060045f8581526020019081526020015f205416145b9050919050565b5f33905090565b5f6001905090565b5f8082905080611b20611b0a565b11611b9e575f54811015611b9d575f60045f8381526020019081526020015f205490505f7c0100000000000000000000000000000000000000000000000000000000821603611b9b575b5f8103611b915760045f836001900393508381526020019081526020015f20549050611b6a565b8092505050611bd0565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b5f805f60065f8581526020019081526020015f2090508092508254915050915091565b5f73ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b5f8060e883901c905060e8611c57868684612433565b62ffffff16901b9150509392505050565b5f73ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b611ca061243b565b73ffffffffffffffffffffffffffffffffffffffff16611cbe61113c565b73ffffffffffffffffffffffffffffffffffffffff1614611d1d57611ce161243b565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401611d149190612a5a565b60405180910390fd5b565b611d27612442565b5f60085f6101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611d6961243b565b604051611d769190612a5a565b60405180910390a1565b5f600860019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b611e4d61248b565b600160085f6101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611e9061243b565b604051611e9d9190612a5a565b60405180910390a1565b611eaf612804565b611ec960045f8481526020019081526020015f20546124d5565b9050919050565b5f8054905090565b611ef1828260405180602001604052805f815250612589565b5050565b5f8373ffffffffffffffffffffffffffffffffffffffff1663150b7a02611f1a611b03565b8786866040518563ffffffff1660e01b8152600401611f3c9493929190613919565b6020604051808303815f875af1925050508015611f7757506040513d601f19601f82011682018060405250810190611f749190613977565b60015b611fed573d805f8114611fa5576040519150601f19603f3d011682016040523d82523d5f602084013e611faa565b606091505b505f815103611fe5576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b612048612804565b61205961205483611b12565b6124d5565b9050919050565b60605f82036120a6576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506121d9565b5f8290505f5b5f82146120d55780806120be906139a2565b915050600a826120ce9190613a16565b91506120ac565b5f8167ffffffffffffffff8111156120f0576120ef612f35565b5b6040519080825280601f01601f1916602001820160405280156121225781602001600182028036833780820191505090505b5090505f8290505b5f86146121d15760018161213e9190613a46565b90505f600a808861214f9190613a16565b612159919061344e565b876121649190613a46565b60306121709190613a85565b90505f8160f81b90508084848151811061218d5761218c613289565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a905350600a886121c89190613a16565b9750505061212a565b819450505050505b919050565b60605f8251036121fe5760405180602001604052805f815250905061234c565b5f604051806060016040528060408152602001613d276040913990505f60036002855161222b91906133b3565b6122359190613a16565b6004612241919061344e565b90505f60208261225191906133b3565b67ffffffffffffffff81111561226a57612269612f35565b5b6040519080825280601f01601f19166020018201604052801561229c5781602001600182028036833780820191505090505b509050818152600183018586518101602084015b8183101561230b576003830192508251603f8160121c168501518253600182019150603f81600c1c168501518253600182019150603f8160061c168501518253600182019150603f81168501518253600182019150506122b0565b600389510660018114612325576002811461233557612340565b613d3d60f01b6002830352612340565b603d60f81b60018303525b50505050508093505050505b919050565b5f637fffffff826141a7612365919061344e565b61236f9190613ab9565b9050919050565b60605f61238d838561238891906133b3565b612351565b90505f61239d825f610168612620565b90506123b382866123ae91906133b3565b612351565b91505f6123c38360326064612620565b90506123d983876123d491906133b3565b612351565b92505f6123e98460326046612620565b90506123f483612060565b6123fd83612060565b61240683612060565b60405160200161241893929190613b81565b60405160208183030381529060405294505050505092915050565b5f9392505050565b5f33905090565b61244a610ef4565b612489576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161248090613c37565b60405180910390fd5b565b612493610ef4565b156124d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124ca90613c9f565b60405180910390fd5b565b6124dd612804565b81815f019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff16815250505f7c01000000000000000000000000000000000000000000000000000000008316141581604001901515908115158152505060e882901c816060019062ffffff16908162ffffff1681525050919050565b612593838361264c565b5f8373ffffffffffffffffffffffffffffffffffffffff163b1461261b575f805490505f83820390505b6125cf5f868380600101945086611ef5565b612605576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181106125bd57815f5414612618575f80fd5b50505b505050565b5f828261262d9190613a46565b846126389190613ab9565b8361264391906133b3565b90509392505050565b5f805490505f820361268a576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6126965f848385611c3b565b600160406001901b17820260055f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282540192505081905550612708836126f95f865f611c41565b612702856127f5565b17611c68565b60045f8381526020019081526020015f20819055505f80838301905073ffffffffffffffffffffffffffffffffffffffff8516915082825f7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a4600183015b8181146127a25780835f7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a4600181019050612769565b505f82036127dc576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805f8190555050506127f05f848385611c92565b505050565b5f6001821460e11b9050919050565b60405180608001604052805f73ffffffffffffffffffffffffffffffffffffffff1681526020015f67ffffffffffffffff1681526020015f151581526020015f62ffffff1681525090565b5f604051905090565b5f80fd5b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61289481612860565b811461289e575f80fd5b50565b5f813590506128af8161288b565b92915050565b5f602082840312156128ca576128c9612858565b5b5f6128d7848285016128a1565b91505092915050565b5f8115159050919050565b6128f4816128e0565b82525050565b5f60208201905061290d5f8301846128eb565b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f5b8381101561294a57808201518184015260208101905061292f565b5f8484015250505050565b5f601f19601f8301169050919050565b5f61296f82612913565b612979818561291d565b935061298981856020860161292d565b61299281612955565b840191505092915050565b5f6020820190508181035f8301526129b58184612965565b905092915050565b5f819050919050565b6129cf816129bd565b81146129d9575f80fd5b50565b5f813590506129ea816129c6565b92915050565b5f60208284031215612a0557612a04612858565b5b5f612a12848285016129dc565b91505092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f612a4482612a1b565b9050919050565b612a5481612a3a565b82525050565b5f602082019050612a6d5f830184612a4b565b92915050565b612a7c81612a3a565b8114612a86575f80fd5b50565b5f81359050612a9781612a73565b92915050565b5f8060408385031215612ab357612ab2612858565b5b5f612ac085828601612a89565b9250506020612ad1858286016129dc565b9150509250929050565b612ae4816129bd565b82525050565b5f602082019050612afd5f830184612adb565b92915050565b5f805f60608486031215612b1a57612b19612858565b5b5f612b2786828701612a89565b9350506020612b3886828701612a89565b9250506040612b49868287016129dc565b9150509250925092565b5f80fd5b5f80fd5b5f80fd5b5f8083601f840112612b7457612b73612b53565b5b8235905067ffffffffffffffff811115612b9157612b90612b57565b5b602083019150836020820283011115612bad57612bac612b5b565b5b9250929050565b5f8060208385031215612bca57612bc9612858565b5b5f83013567ffffffffffffffff811115612be757612be661285c565b5b612bf385828601612b5f565b92509250509250929050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b612c3181612a3a565b82525050565b5f67ffffffffffffffff82169050919050565b612c5381612c37565b82525050565b612c62816128e0565b82525050565b5f62ffffff82169050919050565b612c7f81612c68565b82525050565b608082015f820151612c995f850182612c28565b506020820151612cac6020850182612c4a565b506040820151612cbf6040850182612c59565b506060820151612cd26060850182612c76565b50505050565b5f612ce38383612c85565b60808301905092915050565b5f602082019050919050565b5f612d0582612bff565b612d0f8185612c09565b9350612d1a83612c19565b805f5b83811015612d4a578151612d318882612cd8565b9750612d3c83612cef565b925050600181019050612d1d565b5085935050505092915050565b5f6020820190508181035f830152612d6f8184612cfb565b905092915050565b5f60208284031215612d8c57612d8b612858565b5b5f612d9984828501612a89565b91505092915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b612dd4816129bd565b82525050565b5f612de58383612dcb565b60208301905092915050565b5f602082019050919050565b5f612e0782612da2565b612e118185612dac565b9350612e1c83612dbc565b805f5b83811015612e4c578151612e338882612dda565b9750612e3e83612df1565b925050600181019050612e1f565b5085935050505092915050565b5f6020820190508181035f830152612e718184612dfd565b905092915050565b5f805f60608486031215612e9057612e8f612858565b5b5f612e9d86828701612a89565b9350506020612eae868287016129dc565b9250506040612ebf868287016129dc565b9150509250925092565b612ed2816128e0565b8114612edc575f80fd5b50565b5f81359050612eed81612ec9565b92915050565b5f8060408385031215612f0957612f08612858565b5b5f612f1685828601612a89565b9250506020612f2785828601612edf565b9150509250929050565b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b612f6b82612955565b810181811067ffffffffffffffff82111715612f8a57612f89612f35565b5b80604052505050565b5f612f9c61284f565b9050612fa88282612f62565b919050565b5f67ffffffffffffffff821115612fc757612fc6612f35565b5b612fd082612955565b9050602081019050919050565b828183375f83830152505050565b5f612ffd612ff884612fad565b612f93565b90508281526020810184848401111561301957613018612f31565b5b613024848285612fdd565b509392505050565b5f82601f8301126130405761303f612b53565b5b8135613050848260208601612feb565b91505092915050565b5f805f806080858703121561307157613070612858565b5b5f61307e87828801612a89565b945050602061308f87828801612a89565b93505060406130a0878288016129dc565b925050606085013567ffffffffffffffff8111156130c1576130c061285c565b5b6130cd8782880161302c565b91505092959194509250565b608082015f8201516130ed5f850182612c28565b5060208201516131006020850182612c4a565b5060408201516131136040850182612c59565b5060608201516131266060850182612c76565b50505050565b5f60808201905061313f5f8301846130d9565b92915050565b5f806040838503121561315b5761315a612858565b5b5f61316885828601612a89565b925050602061317985828601612a89565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f60028204905060018216806131c757607f821691505b6020821081036131da576131d9613183565b5b50919050565b5f81905092915050565b50565b5f6131f85f836131e0565b9150613203826131ea565b5f82019050919050565b5f613217826131ed565b9150819050919050565b7f6661696c000000000000000000000000000000000000000000000000000000005f82015250565b5f61325560048361291d565b915061326082613221565b602082019050919050565b5f6020820190508181035f83015261328281613249565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b7f4d696e742068617320656e6465640000000000000000000000000000000000005f82015250565b5f6132ea600e8361291d565b91506132f5826132b6565b602082019050919050565b5f6020820190508181035f830152613317816132de565b9050919050565b7f4d696e74206973207061757365640000000000000000000000000000000000005f82015250565b5f613352600e8361291d565b915061335d8261331e565b602082019050919050565b5f6020820190508181035f83015261337f81613346565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f6133bd826129bd565b91506133c8836129bd565b92508282019050808211156133e0576133df613386565b5b92915050565b7f4d6178206c696d697420657863656564656400000000000000000000000000005f82015250565b5f61341a60128361291d565b9150613425826133e6565b602082019050919050565b5f6020820190508181035f8301526134478161340e565b9050919050565b5f613458826129bd565b9150613463836129bd565b9250828202613471816129bd565b9150828204841483151761348857613487613386565b5b5092915050565b7f496e73756666696369656e742066756e647300000000000000000000000000005f82015250565b5f6134c360128361291d565b91506134ce8261348f565b602082019050919050565b5f6020820190508181035f8301526134f0816134b7565b9050919050565b7f4e6f6e6578697374656e7420746f6b656e0000000000000000000000000000005f82015250565b5f61352b60118361291d565b9150613536826134f7565b602082019050919050565b5f6020820190508181035f8301526135588161351f565b9050919050565b7f7b20226e616d65223a2022446f74202300000000000000000000000000000000815250565b5f81905092915050565b5f61359982612913565b6135a38185613585565b93506135b381856020860161292d565b80840191505092915050565b7f222c000000000000000000000000000000000000000000000000000000000000815250565b7f22696d616765223a22646174613a696d6167652f7376672b786d6c3b626173655f8201527f36342c0000000000000000000000000000000000000000000000000000000000602082015250565b5f61363f602383613585565b915061364a826135e5565b602382019050919050565b7f227d000000000000000000000000000000000000000000000000000000000000815250565b5f6136858261355f565b601082019150613695828561358f565b91506136a0826135bf565b6002820191506136af82613633565b91506136bb828461358f565b91506136c682613655565b6002820191508190509392505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000815250565b5f613706826136d6565b601d82019150613716828461358f565b915081905092915050565b7f3c7265637420783d22302220793d2230222077696474683d22313030302220685f8201527f65696768743d223130303022207374796c653d22000000000000000000000000602082015250565b5f61377b603483613585565b915061378682613721565b603482019050919050565b7f222f3e0000000000000000000000000000000000000000000000000000000000815250565b5f6137c2828561358f565b91506137cd8261376f565b91506137d9828461358f565b91506137e482613791565b6003820191508190509392505050565b7f3c636972636c652063783d22353030222063793d223530302220723d223430305f8201527f22207374796c653d220000000000000000000000000000000000000000000000602082015250565b5f61384e602983613585565b9150613859826137f4565b602982019050919050565b7f222f3e3c2f7376673e0000000000000000000000000000000000000000000000815250565b5f613895828561358f565b91506138a082613842565b91506138ac828461358f565b91506138b782613864565b6009820191508190509392505050565b5f81519050919050565b5f82825260208201905092915050565b5f6138eb826138c7565b6138f581856138d1565b935061390581856020860161292d565b61390e81612955565b840191505092915050565b5f60808201905061392c5f830187612a4b565b6139396020830186612a4b565b6139466040830185612adb565b818103606083015261395881846138e1565b905095945050505050565b5f815190506139718161288b565b92915050565b5f6020828403121561398c5761398b612858565b5b5f61399984828501613963565b91505092915050565b5f6139ac826129bd565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036139de576139dd613386565b5b600182019050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f613a20826129bd565b9150613a2b836129bd565b925082613a3b57613a3a6139e9565b5b828204905092915050565b5f613a50826129bd565b9150613a5b836129bd565b9250828203905081811115613a7357613a72613386565b5b92915050565b5f60ff82169050919050565b5f613a8f82613a79565b9150613a9a83613a79565b9250828201905060ff811115613ab357613ab2613386565b5b92915050565b5f613ac3826129bd565b9150613ace836129bd565b925082613ade57613add6139e9565b5b828206905092915050565b7f66696c6c3a68736c280000000000000000000000000000000000000000000000815250565b7f2c20000000000000000000000000000000000000000000000000000000000000815250565b7f252c200000000000000000000000000000000000000000000000000000000000815250565b7f25293b0000000000000000000000000000000000000000000000000000000000815250565b5f613b8b82613ae9565b600982019150613b9b828661358f565b9150613ba682613b0f565b600282019150613bb6828561358f565b9150613bc182613b35565b600382019150613bd1828461358f565b9150613bdc82613b5b565b600382019150819050949350505050565b7f5061757361626c653a206e6f74207061757365640000000000000000000000005f82015250565b5f613c2160148361291d565b9150613c2c82613bed565b602082019050919050565b5f6020820190508181035f830152613c4e81613c15565b9050919050565b7f5061757361626c653a20706175736564000000000000000000000000000000005f82015250565b5f613c8960108361291d565b9150613c9482613c55565b602082019050919050565b5f6020820190508181035f830152613cb681613c7d565b905091905056fe3c7376672077696474683d223130302522206865696768743d2231303025222076696577426f783d2230203020313030302031303030222076657273696f6e3d22312e312220786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f737667223e4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa26469706673582212209fb1e4dcd61f048d240adfc44f7c58046a82a81a1d795490a1d9f10aea10583964736f6c63430008160033
Deployed Bytecode
0x6080604052600436106101e2575f3560e01c80638456cb5911610101578063b88d4fde11610094578063f19e75d411610063578063f19e75d41461069a578063f2fde38b146106c2578063f4a0a528146106ea578063fd5ad31914610712576101e2565b8063b88d4fde146105ca578063c23dc68f146105e6578063c87b56dd14610622578063e985e9c51461065e576101e2565b806395d89b41116100d057806395d89b411461052057806399a2557a1461054a578063a0712d6814610586578063a22cb465146105a2576101e2565b80638456cb591461047a5780638462151c146104905780638d859f3e146104cc5780638da5cb5b146104f6576101e2565b80633f4ba83a116101795780636352211e116101485780636352211e146103c257806370a08231146103fe578063715018a61461043a5780638446384414610450576101e2565b80633f4ba83a1461032a57806342842e0e146103405780635bbb21771461035c5780635c975abb14610398576101e2565b806318160ddd116101b557806318160ddd146102a457806323b872dd146102ce57806332cb6b0c146102ea5780633ccfd60b14610314576101e2565b806301ffc9a7146101e657806306fdde0314610222578063081812fc1461024c578063095ea7b314610288575b5f80fd5b3480156101f1575f80fd5b5061020c600480360381019061020791906128b5565b61074e565b60405161021991906128fa565b60405180910390f35b34801561022d575f80fd5b506102366107df565b604051610243919061299d565b60405180910390f35b348015610257575f80fd5b50610272600480360381019061026d91906129f0565b61086f565b60405161027f9190612a5a565b60405180910390f35b6102a2600480360381019061029d9190612a9d565b6108e9565b005b3480156102af575f80fd5b506102b8610a28565b6040516102c59190612aea565b60405180910390f35b6102e860048036038101906102e39190612b03565b610a3d565b005b3480156102f5575f80fd5b506102fe610d4b565b60405161030b9190612aea565b60405180910390f35b34801561031f575f80fd5b50610328610d50565b005b348015610335575f80fd5b5061033e610e03565b005b61035a60048036038101906103559190612b03565b610e15565b005b348015610367575f80fd5b50610382600480360381019061037d9190612bb4565b610e34565b60405161038f9190612d57565b60405180910390f35b3480156103a3575f80fd5b506103ac610ef4565b6040516103b991906128fa565b60405180910390f35b3480156103cd575f80fd5b506103e860048036038101906103e391906129f0565b610f09565b6040516103f59190612a5a565b60405180910390f35b348015610409575f80fd5b50610424600480360381019061041f9190612d77565b610f1a565b6040516104319190612aea565b60405180910390f35b348015610445575f80fd5b5061044e610fcf565b005b34801561045b575f80fd5b50610464610fe2565b6040516104719190612aea565b60405180910390f35b348015610485575f80fd5b5061048e610fe8565b005b34801561049b575f80fd5b506104b660048036038101906104b19190612d77565b610ffa565b6040516104c39190612e59565b60405180910390f35b3480156104d7575f80fd5b506104e0611136565b6040516104ed9190612aea565b60405180910390f35b348015610501575f80fd5b5061050a61113c565b6040516105179190612a5a565b60405180910390f35b34801561052b575f80fd5b50610534611165565b604051610541919061299d565b60405180910390f35b348015610555575f80fd5b50610570600480360381019061056b9190612e79565b6111f5565b60405161057d9190612e59565b60405180910390f35b6105a0600480360381019061059b91906129f0565b6113f4565b005b3480156105ad575f80fd5b506105c860048036038101906105c39190612ef3565b61153f565b005b6105e460048036038101906105df9190613059565b611645565b005b3480156105f1575f80fd5b5061060c600480360381019061060791906129f0565b6116b7565b604051610619919061312c565b60405180910390f35b34801561062d575f80fd5b50610648600480360381019061064391906129f0565b611721565b604051610655919061299d565b60405180910390f35b348015610669575f80fd5b50610684600480360381019061067f9190613145565b6117d6565b60405161069191906128fa565b60405180910390f35b3480156106a5575f80fd5b506106c060048036038101906106bb91906129f0565b611864565b005b3480156106cd575f80fd5b506106e860048036038101906106e39190612d77565b611967565b005b3480156106f5575f80fd5b50610710600480360381019061070b91906129f0565b6119eb565b005b34801561071d575f80fd5b50610738600480360381019061073391906129f0565b6119fd565b604051610745919061299d565b60405180910390f35b5f6301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806107a857506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806107d85750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b6060600280546107ee906131b0565b80601f016020809104026020016040519081016040528092919081815260200182805461081a906131b0565b80156108655780601f1061083c57610100808354040283529160200191610865565b820191905f5260205f20905b81548152906001019060200180831161084857829003601f168201915b5050505050905090565b5f61087982611aa9565b6108af576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60065f8381526020019081526020015f205f015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b5f6108f382610f09565b90508073ffffffffffffffffffffffffffffffffffffffff16610914611b03565b73ffffffffffffffffffffffffffffffffffffffff1614610977576109408161093b611b03565b6117d6565b610976576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b8260065f8481526020019081526020015f205f015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b5f610a31611b0a565b6001545f540303905090565b5f610a4782611b12565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610aae576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f80610ab984611bd5565b91509150610acf8187610aca611b03565b611bf8565b610b1b57610ae486610adf611b03565b6117d6565b610b1a576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b5f73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603610b80576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610b8d8686866001611c3b565b8015610b97575f82555b60055f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8154600190039190508190555060055f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f815460010191905081905550610c5f85610c3b888887611c41565b7c020000000000000000000000000000000000000000000000000000000017611c68565b60045f8681526020019081526020015f20819055505f7c0200000000000000000000000000000000000000000000000000000000841603610cdb575f6001850190505f60045f8381526020019081526020015f205403610cd9575f548114610cd8578360045f8381526020019081526020015f20819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610d438686866001611c92565b505050505050565b608081565b610d58611c98565b5f3373ffffffffffffffffffffffffffffffffffffffff1647604051610d7d9061320d565b5f6040518083038185875af1925050503d805f8114610db7576040519150601f19603f3d011682016040523d82523d5f602084013e610dbc565b606091505b5050905080610e00576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610df79061326b565b60405180910390fd5b50565b610e0b611c98565b610e13611d1f565b565b610e2f83838360405180602001604052805f815250611645565b505050565b60605f8383905090505f8167ffffffffffffffff811115610e5857610e57612f35565b5b604051908082528060200260200182016040528015610e9157816020015b610e7e612804565b815260200190600190039081610e765790505b5090505f5b828114610ee857610ebf868683818110610eb357610eb2613289565b5b905060200201356116b7565b828281518110610ed257610ed1613289565b5b6020026020010181905250806001019050610e96565b50809250505092915050565b5f60085f9054906101000a900460ff16905090565b5f610f1382611b12565b9050919050565b5f8073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610f80576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff60055f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054169050919050565b610fd7611c98565b610fe05f611d80565b565b600a5481565b610ff0611c98565b610ff8611e45565b565b60605f805f61100885610f1a565b90505f8167ffffffffffffffff81111561102557611024612f35565b5b6040519080825280602002602001820160405280156110535781602001602082028036833780820191505090505b50905061105e612804565b5f611067611b0a565b90505b8386146111285761107a81611ea7565b9150816040015161111d575f73ffffffffffffffffffffffffffffffffffffffff16825f015173ffffffffffffffffffffffffffffffffffffffff16146110c257815f015194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff160361111c578083878060010198508151811061110f5761110e613289565b5b6020026020010181815250505b5b80600101905061106a565b508195505050505050919050565b60095481565b5f600860019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060038054611174906131b0565b80601f01602080910402602001604051908101604052809291908181526020018280546111a0906131b0565b80156111eb5780601f106111c2576101008083540402835291602001916111eb565b820191905f5260205f20905b8154815290600101906020018083116111ce57829003601f168201915b5050505050905090565b6060818310611230576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f8061123a611ed0565b9050611244611b0a565b85101561125657611253611b0a565b94505b80841115611262578093505b5f61126c87610f1a565b90508486101561128e575f868603905081811015611288578091505b50611292565b5f90505b5f8167ffffffffffffffff8111156112ad576112ac612f35565b5b6040519080825280602002602001820160405280156112db5781602001602082028036833780820191505090505b5090505f82036112f157809450505050506113ed565b5f6112fb886116b7565b90505f816040015161130e57815f015190505b5f8990505b8881141580156113235750848714155b156113df5761133181611ea7565b925082604001516113d4575f73ffffffffffffffffffffffffffffffffffffffff16835f015173ffffffffffffffffffffffffffffffffffffffff161461137957825f015191505b8a73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036113d357808488806001019950815181106113c6576113c5613289565b5b6020026020010181815250505b5b806001019050611313565b508583528296505050505050505b9392505050565b60806113fe610a28565b111561143f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161143690613300565b60405180910390fd5b611447610ef4565b15611487576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161147e90613368565b60405180910390fd5b5f611490610a28565b9050608082826114a091906133b3565b11156114e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114d890613430565b60405180910390fd5b600954826114ef919061344e565b341015611531576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611528906134d9565b60405180910390fd5b61153b3383611ed8565b5050565b8060075f61154b611b03565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166115f4611b03565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161163991906128fa565b60405180910390a35050565b611650848484610a3d565b5f8373ffffffffffffffffffffffffffffffffffffffff163b146116b15761167a84848484611ef5565b6116b0576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b6116bf612804565b6116c7612804565b6116cf611b0a565b8310806116e357506116df611ed0565b8310155b156116f1578091505061171c565b6116fa83611ea7565b905080604001511561170f578091505061171c565b61171883612040565b9150505b919050565b606061172c82611aa9565b61176b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161176290613541565b60405180910390fd5b61177482612060565b611785611780846119fd565b6121de565b60405160200161179692919061367b565b60405160208183030381529060405290506117b0816121de565b6040516020016117c091906136fc565b6040516020818303038152906040529050919050565b5f60075f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16905092915050565b61186c611c98565b6080611876610a28565b11156118b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118ae90613300565b60405180910390fd5b6118bf610ef4565b156118ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118f690613368565b60405180910390fd5b5f611908610a28565b90506080828261191891906133b3565b1115611959576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161195090613430565b60405180910390fd5b6119633383611ed8565b5050565b61196f611c98565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036119df575f6040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016119d69190612a5a565b60405180910390fd5b6119e881611d80565b50565b6119f3611c98565b8060098190555050565b60605f611a16600a5484611a1191906133b3565b612351565b90506040518060a0016040528060698152602001613cbe60699139915081611a3e8483612376565b604051602001611a4f9291906137b7565b6040516020818303038152906040529150611a748184611a6f919061344e565b612351565b905081611a818483612376565b604051602001611a9292919061388a565b604051602081830303815290604052915050919050565b5f81611ab3611b0a565b11158015611ac157505f5482105b8015611afc57505f7c010000000000000000000000000000000000000000000000000000000060045f8581526020019081526020015f205416145b9050919050565b5f33905090565b5f6001905090565b5f8082905080611b20611b0a565b11611b9e575f54811015611b9d575f60045f8381526020019081526020015f205490505f7c0100000000000000000000000000000000000000000000000000000000821603611b9b575b5f8103611b915760045f836001900393508381526020019081526020015f20549050611b6a565b8092505050611bd0565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b5f805f60065f8581526020019081526020015f2090508092508254915050915091565b5f73ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b5f8060e883901c905060e8611c57868684612433565b62ffffff16901b9150509392505050565b5f73ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b611ca061243b565b73ffffffffffffffffffffffffffffffffffffffff16611cbe61113c565b73ffffffffffffffffffffffffffffffffffffffff1614611d1d57611ce161243b565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401611d149190612a5a565b60405180910390fd5b565b611d27612442565b5f60085f6101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa611d6961243b565b604051611d769190612a5a565b60405180910390a1565b5f600860019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b611e4d61248b565b600160085f6101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611e9061243b565b604051611e9d9190612a5a565b60405180910390a1565b611eaf612804565b611ec960045f8481526020019081526020015f20546124d5565b9050919050565b5f8054905090565b611ef1828260405180602001604052805f815250612589565b5050565b5f8373ffffffffffffffffffffffffffffffffffffffff1663150b7a02611f1a611b03565b8786866040518563ffffffff1660e01b8152600401611f3c9493929190613919565b6020604051808303815f875af1925050508015611f7757506040513d601f19601f82011682018060405250810190611f749190613977565b60015b611fed573d805f8114611fa5576040519150601f19603f3d011682016040523d82523d5f602084013e611faa565b606091505b505f815103611fe5576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b612048612804565b61205961205483611b12565b6124d5565b9050919050565b60605f82036120a6576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506121d9565b5f8290505f5b5f82146120d55780806120be906139a2565b915050600a826120ce9190613a16565b91506120ac565b5f8167ffffffffffffffff8111156120f0576120ef612f35565b5b6040519080825280601f01601f1916602001820160405280156121225781602001600182028036833780820191505090505b5090505f8290505b5f86146121d15760018161213e9190613a46565b90505f600a808861214f9190613a16565b612159919061344e565b876121649190613a46565b60306121709190613a85565b90505f8160f81b90508084848151811061218d5761218c613289565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a905350600a886121c89190613a16565b9750505061212a565b819450505050505b919050565b60605f8251036121fe5760405180602001604052805f815250905061234c565b5f604051806060016040528060408152602001613d276040913990505f60036002855161222b91906133b3565b6122359190613a16565b6004612241919061344e565b90505f60208261225191906133b3565b67ffffffffffffffff81111561226a57612269612f35565b5b6040519080825280601f01601f19166020018201604052801561229c5781602001600182028036833780820191505090505b509050818152600183018586518101602084015b8183101561230b576003830192508251603f8160121c168501518253600182019150603f81600c1c168501518253600182019150603f8160061c168501518253600182019150603f81168501518253600182019150506122b0565b600389510660018114612325576002811461233557612340565b613d3d60f01b6002830352612340565b603d60f81b60018303525b50505050508093505050505b919050565b5f637fffffff826141a7612365919061344e565b61236f9190613ab9565b9050919050565b60605f61238d838561238891906133b3565b612351565b90505f61239d825f610168612620565b90506123b382866123ae91906133b3565b612351565b91505f6123c38360326064612620565b90506123d983876123d491906133b3565b612351565b92505f6123e98460326046612620565b90506123f483612060565b6123fd83612060565b61240683612060565b60405160200161241893929190613b81565b60405160208183030381529060405294505050505092915050565b5f9392505050565b5f33905090565b61244a610ef4565b612489576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161248090613c37565b60405180910390fd5b565b612493610ef4565b156124d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124ca90613c9f565b60405180910390fd5b565b6124dd612804565b81815f019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff16815250505f7c01000000000000000000000000000000000000000000000000000000008316141581604001901515908115158152505060e882901c816060019062ffffff16908162ffffff1681525050919050565b612593838361264c565b5f8373ffffffffffffffffffffffffffffffffffffffff163b1461261b575f805490505f83820390505b6125cf5f868380600101945086611ef5565b612605576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181106125bd57815f5414612618575f80fd5b50505b505050565b5f828261262d9190613a46565b846126389190613ab9565b8361264391906133b3565b90509392505050565b5f805490505f820361268a576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6126965f848385611c3b565b600160406001901b17820260055f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282540192505081905550612708836126f95f865f611c41565b612702856127f5565b17611c68565b60045f8381526020019081526020015f20819055505f80838301905073ffffffffffffffffffffffffffffffffffffffff8516915082825f7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a4600183015b8181146127a25780835f7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a4600181019050612769565b505f82036127dc576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805f8190555050506127f05f848385611c92565b505050565b5f6001821460e11b9050919050565b60405180608001604052805f73ffffffffffffffffffffffffffffffffffffffff1681526020015f67ffffffffffffffff1681526020015f151581526020015f62ffffff1681525090565b5f604051905090565b5f80fd5b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61289481612860565b811461289e575f80fd5b50565b5f813590506128af8161288b565b92915050565b5f602082840312156128ca576128c9612858565b5b5f6128d7848285016128a1565b91505092915050565b5f8115159050919050565b6128f4816128e0565b82525050565b5f60208201905061290d5f8301846128eb565b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f5b8381101561294a57808201518184015260208101905061292f565b5f8484015250505050565b5f601f19601f8301169050919050565b5f61296f82612913565b612979818561291d565b935061298981856020860161292d565b61299281612955565b840191505092915050565b5f6020820190508181035f8301526129b58184612965565b905092915050565b5f819050919050565b6129cf816129bd565b81146129d9575f80fd5b50565b5f813590506129ea816129c6565b92915050565b5f60208284031215612a0557612a04612858565b5b5f612a12848285016129dc565b91505092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f612a4482612a1b565b9050919050565b612a5481612a3a565b82525050565b5f602082019050612a6d5f830184612a4b565b92915050565b612a7c81612a3a565b8114612a86575f80fd5b50565b5f81359050612a9781612a73565b92915050565b5f8060408385031215612ab357612ab2612858565b5b5f612ac085828601612a89565b9250506020612ad1858286016129dc565b9150509250929050565b612ae4816129bd565b82525050565b5f602082019050612afd5f830184612adb565b92915050565b5f805f60608486031215612b1a57612b19612858565b5b5f612b2786828701612a89565b9350506020612b3886828701612a89565b9250506040612b49868287016129dc565b9150509250925092565b5f80fd5b5f80fd5b5f80fd5b5f8083601f840112612b7457612b73612b53565b5b8235905067ffffffffffffffff811115612b9157612b90612b57565b5b602083019150836020820283011115612bad57612bac612b5b565b5b9250929050565b5f8060208385031215612bca57612bc9612858565b5b5f83013567ffffffffffffffff811115612be757612be661285c565b5b612bf385828601612b5f565b92509250509250929050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b612c3181612a3a565b82525050565b5f67ffffffffffffffff82169050919050565b612c5381612c37565b82525050565b612c62816128e0565b82525050565b5f62ffffff82169050919050565b612c7f81612c68565b82525050565b608082015f820151612c995f850182612c28565b506020820151612cac6020850182612c4a565b506040820151612cbf6040850182612c59565b506060820151612cd26060850182612c76565b50505050565b5f612ce38383612c85565b60808301905092915050565b5f602082019050919050565b5f612d0582612bff565b612d0f8185612c09565b9350612d1a83612c19565b805f5b83811015612d4a578151612d318882612cd8565b9750612d3c83612cef565b925050600181019050612d1d565b5085935050505092915050565b5f6020820190508181035f830152612d6f8184612cfb565b905092915050565b5f60208284031215612d8c57612d8b612858565b5b5f612d9984828501612a89565b91505092915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b612dd4816129bd565b82525050565b5f612de58383612dcb565b60208301905092915050565b5f602082019050919050565b5f612e0782612da2565b612e118185612dac565b9350612e1c83612dbc565b805f5b83811015612e4c578151612e338882612dda565b9750612e3e83612df1565b925050600181019050612e1f565b5085935050505092915050565b5f6020820190508181035f830152612e718184612dfd565b905092915050565b5f805f60608486031215612e9057612e8f612858565b5b5f612e9d86828701612a89565b9350506020612eae868287016129dc565b9250506040612ebf868287016129dc565b9150509250925092565b612ed2816128e0565b8114612edc575f80fd5b50565b5f81359050612eed81612ec9565b92915050565b5f8060408385031215612f0957612f08612858565b5b5f612f1685828601612a89565b9250506020612f2785828601612edf565b9150509250929050565b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b612f6b82612955565b810181811067ffffffffffffffff82111715612f8a57612f89612f35565b5b80604052505050565b5f612f9c61284f565b9050612fa88282612f62565b919050565b5f67ffffffffffffffff821115612fc757612fc6612f35565b5b612fd082612955565b9050602081019050919050565b828183375f83830152505050565b5f612ffd612ff884612fad565b612f93565b90508281526020810184848401111561301957613018612f31565b5b613024848285612fdd565b509392505050565b5f82601f8301126130405761303f612b53565b5b8135613050848260208601612feb565b91505092915050565b5f805f806080858703121561307157613070612858565b5b5f61307e87828801612a89565b945050602061308f87828801612a89565b93505060406130a0878288016129dc565b925050606085013567ffffffffffffffff8111156130c1576130c061285c565b5b6130cd8782880161302c565b91505092959194509250565b608082015f8201516130ed5f850182612c28565b5060208201516131006020850182612c4a565b5060408201516131136040850182612c59565b5060608201516131266060850182612c76565b50505050565b5f60808201905061313f5f8301846130d9565b92915050565b5f806040838503121561315b5761315a612858565b5b5f61316885828601612a89565b925050602061317985828601612a89565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f60028204905060018216806131c757607f821691505b6020821081036131da576131d9613183565b5b50919050565b5f81905092915050565b50565b5f6131f85f836131e0565b9150613203826131ea565b5f82019050919050565b5f613217826131ed565b9150819050919050565b7f6661696c000000000000000000000000000000000000000000000000000000005f82015250565b5f61325560048361291d565b915061326082613221565b602082019050919050565b5f6020820190508181035f83015261328281613249565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b7f4d696e742068617320656e6465640000000000000000000000000000000000005f82015250565b5f6132ea600e8361291d565b91506132f5826132b6565b602082019050919050565b5f6020820190508181035f830152613317816132de565b9050919050565b7f4d696e74206973207061757365640000000000000000000000000000000000005f82015250565b5f613352600e8361291d565b915061335d8261331e565b602082019050919050565b5f6020820190508181035f83015261337f81613346565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f6133bd826129bd565b91506133c8836129bd565b92508282019050808211156133e0576133df613386565b5b92915050565b7f4d6178206c696d697420657863656564656400000000000000000000000000005f82015250565b5f61341a60128361291d565b9150613425826133e6565b602082019050919050565b5f6020820190508181035f8301526134478161340e565b9050919050565b5f613458826129bd565b9150613463836129bd565b9250828202613471816129bd565b9150828204841483151761348857613487613386565b5b5092915050565b7f496e73756666696369656e742066756e647300000000000000000000000000005f82015250565b5f6134c360128361291d565b91506134ce8261348f565b602082019050919050565b5f6020820190508181035f8301526134f0816134b7565b9050919050565b7f4e6f6e6578697374656e7420746f6b656e0000000000000000000000000000005f82015250565b5f61352b60118361291d565b9150613536826134f7565b602082019050919050565b5f6020820190508181035f8301526135588161351f565b9050919050565b7f7b20226e616d65223a2022446f74202300000000000000000000000000000000815250565b5f81905092915050565b5f61359982612913565b6135a38185613585565b93506135b381856020860161292d565b80840191505092915050565b7f222c000000000000000000000000000000000000000000000000000000000000815250565b7f22696d616765223a22646174613a696d6167652f7376672b786d6c3b626173655f8201527f36342c0000000000000000000000000000000000000000000000000000000000602082015250565b5f61363f602383613585565b915061364a826135e5565b602382019050919050565b7f227d000000000000000000000000000000000000000000000000000000000000815250565b5f6136858261355f565b601082019150613695828561358f565b91506136a0826135bf565b6002820191506136af82613633565b91506136bb828461358f565b91506136c682613655565b6002820191508190509392505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000815250565b5f613706826136d6565b601d82019150613716828461358f565b915081905092915050565b7f3c7265637420783d22302220793d2230222077696474683d22313030302220685f8201527f65696768743d223130303022207374796c653d22000000000000000000000000602082015250565b5f61377b603483613585565b915061378682613721565b603482019050919050565b7f222f3e0000000000000000000000000000000000000000000000000000000000815250565b5f6137c2828561358f565b91506137cd8261376f565b91506137d9828461358f565b91506137e482613791565b6003820191508190509392505050565b7f3c636972636c652063783d22353030222063793d223530302220723d223430305f8201527f22207374796c653d220000000000000000000000000000000000000000000000602082015250565b5f61384e602983613585565b9150613859826137f4565b602982019050919050565b7f222f3e3c2f7376673e0000000000000000000000000000000000000000000000815250565b5f613895828561358f565b91506138a082613842565b91506138ac828461358f565b91506138b782613864565b6009820191508190509392505050565b5f81519050919050565b5f82825260208201905092915050565b5f6138eb826138c7565b6138f581856138d1565b935061390581856020860161292d565b61390e81612955565b840191505092915050565b5f60808201905061392c5f830187612a4b565b6139396020830186612a4b565b6139466040830185612adb565b818103606083015261395881846138e1565b905095945050505050565b5f815190506139718161288b565b92915050565b5f6020828403121561398c5761398b612858565b5b5f61399984828501613963565b91505092915050565b5f6139ac826129bd565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036139de576139dd613386565b5b600182019050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f613a20826129bd565b9150613a2b836129bd565b925082613a3b57613a3a6139e9565b5b828204905092915050565b5f613a50826129bd565b9150613a5b836129bd565b9250828203905081811115613a7357613a72613386565b5b92915050565b5f60ff82169050919050565b5f613a8f82613a79565b9150613a9a83613a79565b9250828201905060ff811115613ab357613ab2613386565b5b92915050565b5f613ac3826129bd565b9150613ace836129bd565b925082613ade57613add6139e9565b5b828206905092915050565b7f66696c6c3a68736c280000000000000000000000000000000000000000000000815250565b7f2c20000000000000000000000000000000000000000000000000000000000000815250565b7f252c200000000000000000000000000000000000000000000000000000000000815250565b7f25293b0000000000000000000000000000000000000000000000000000000000815250565b5f613b8b82613ae9565b600982019150613b9b828661358f565b9150613ba682613b0f565b600282019150613bb6828561358f565b9150613bc182613b35565b600382019150613bd1828461358f565b9150613bdc82613b5b565b600382019150819050949350505050565b7f5061757361626c653a206e6f74207061757365640000000000000000000000005f82015250565b5f613c2160148361291d565b9150613c2c82613bed565b602082019050919050565b5f6020820190508181035f830152613c4e81613c15565b9050919050565b7f5061757361626c653a20706175736564000000000000000000000000000000005f82015250565b5f613c8960108361291d565b9150613c9482613c55565b602082019050919050565b5f6020820190508181035f830152613cb681613c7d565b905091905056fe3c7376672077696474683d223130302522206865696768743d2231303025222076696577426f783d2230203020313030302031303030222076657273696f6e3d22312e312220786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f737667223e4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa26469706673582212209fb1e4dcd61f048d240adfc44f7c58046a82a81a1d795490a1d9f10aea10583964736f6c63430008160033
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.