ERC-721
Overview
Max Total Supply
186 Laidback Lu
Holders
68
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 Laidback LuLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
LuToken
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT /* * Created by Isamu Arimoto (@isamua) */ pragma solidity ^0.8.6; import '@openzeppelin/contracts/utils/Strings.sol'; import './libs/ProviderTokenA1.sol'; contract LuToken is ProviderTokenA1 { using Strings for uint256; // lu committee address public committee; constructor( IAssetProvider _assetProvider, address _committee ) ProviderTokenA1(_assetProvider, 'Laidback Lu', 'Laidback Lu') { description = 'Laidback Lu.'; mintPrice = 1e16; mintLimit = 440; committee = _committee; _safeMint(address(0x1A474Bd77F8109078CCdEf5896f499642830f3CA), 20); _safeMint(address(0x4E4cD175f812f1Ba784a69C1f8AC8dAa52AD7e2B), 20); _safeMint(address(0x818Fb9d440968dB9fCB06EEF53C7734Ad70f6F0e), 20); _safeMint(address(0x56BB106d2Cc0a1209De6962a49634321AD0d9082), 10); _safeMint(address(0x49b7045B25d3F8B27F9b75E60484668327D96897), 5); _safeMint(address(0xedFEF30eaBef62C9Bf55121B407cA1B3Fde7F529), 5); } function tokenName(uint256 _tokenId) internal pure override returns (string memory) { return string(abi.encodePacked('Laidback Lu ', _tokenId.toString())); } function mint() public payable virtual override returns (uint256 tokenId) { require(msg.value >= mintPrice, 'Must send the mint price'); address payable payableTo = payable(committee); payableTo.transfer(address(this).balance); return super.mint(); } }
// SPDX-License-Identifier: MIT /** * This is a part of an effort to create a decentralized autonomous marketplace for digital assets, * which allows artists and developers to sell their arts and generative arts. * for ERC721AP2P * * Please see "https://fullyonchain.xyz/" for details. */ pragma solidity ^0.8.6; // import { Ownable } from '@openzeppelin/contracts/access/Ownable.sol'; // import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import '../packages/ERC721P2P/ERC721AP2P.sol'; import { Base64 } from 'base64-sol/base64.sol'; import '@openzeppelin/contracts/utils/Strings.sol'; import 'assetprovider.sol/IAssetProvider.sol'; /** * ProviderToken is an abstract implentation of ERC721, which is built on top of an asset provider. * The specified asset provider is responsible in providing images for NFTs in SVG format, * which turns them into fully on-chain NFTs. * * When implementing the mint method, and it should call processPayout method of the asset provider like this: * * provider.processPayout{value:msg.value}(assetId) * */ abstract contract ProviderTokenA1 is ERC721AP2P { using Strings for uint256; using Strings for uint16; // To be specified by the concrete contract string public description; uint public mintPrice; uint public mintLimit; IAssetProvider public assetProvider; constructor( IAssetProvider _assetProvider, string memory _title, string memory _shortTitle ) ERC721A(_title, _shortTitle) { assetProvider = _assetProvider; } function setAssetProvider(IAssetProvider _assetProvider) external onlyOwner { assetProvider = _assetProvider; // upgradable } function setDescription(string memory _description) external onlyOwner { description = _description; } function setMintPrice(uint256 _price) external onlyOwner { mintPrice = _price; } function setMintLimit(uint256 _limit) external onlyOwner { mintLimit = _limit; } string constant SVGHeader = '<svg viewBox="0 0 1024 1024' '" xmlns="http://www.w3.org/2000/svg">\n' '<defs>\n'; /* * A function of IAssetStoreToken interface. * It generates SVG with the specified style, using the given "SVG Part". */ function generateSVG(uint256 _assetId) internal view returns (string memory) { // Constants of non-value type not yet implemented by Solidity (string memory svgPart, string memory tag) = assetProvider.generateSVGPart(_assetId); return string( abi.encodePacked( SVGHeader, svgPart, '</defs>\n' '<use href="#', tag, '" />\n' '</svg>\n' ) ); } /** * @notice A distinct Uniform Resource Identifier (URI) for a given asset. * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 _tokenId) public view virtual override returns (string memory) { require(_exists(_tokenId), 'ProviderToken.tokenURI: nonexistent token'); bytes memory image = bytes(generateSVG(_tokenId)); return string( abi.encodePacked( 'data:application/json;base64,', Base64.encode( bytes( abi.encodePacked( '{"name":"', tokenName(_tokenId), '","description":"', description, '","attributes":[', generateTraits(_tokenId), '],"image":"data:image/svg+xml;base64,', Base64.encode(image), '"}' ) ) ) ) ); } function tokenName(uint256 _tokenId) internal view virtual returns (string memory) { return _tokenId.toString(); } /** * For non-free minting, * 1. Override this method * 2. Check for the required payment, by calling mintPriceFor() * 3. Call the processPayout method of the asset provider with appropriate value */ function mint() public payable virtual returns (uint256 tokenId) { require(_nextTokenId() < mintLimit, 'Sold out'); _safeMint(msg.sender, 1); return _nextTokenId() - 1; } /** * The concreate contract may override to offer custom pricing, * such as token-gated discount. */ function mintPriceFor(address) public view virtual returns (uint256) { return mintPrice; } function totalSupply() public view override returns (uint256) { return _nextTokenId(); } function generateTraits(uint256 _tokenId) internal view returns (bytes memory traits) { traits = bytes(assetProvider.generateTraits(_tokenId)); } function debugTokenURI(uint256 _tokenId) public view returns (string memory uri, uint256 gas) { gas = gasleft(); uri = tokenURI(_tokenId); gas -= gasleft(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT /** * Inherits ERC721 as an extension * Please see "https://hackmd.io/@snakajima/BJqG3fkSo" for details. */ pragma solidity ^0.8.6; import './IERC721P2P.sol'; import { Ownable } from '@openzeppelin/contracts/access/Ownable.sol'; import './erc721a/extensions/ERC721AQueryable.sol'; import './opensea/DefaultOperatorFilterer.sol'; // From https://github.com/ProjectOpenSea/operator-filter-registry/blob/main/src/example/ExampleERC721.sol abstract contract ERC721WithOperatorFilter is ERC721A, DefaultOperatorFilterer { function setApprovalForAll( address operator, bool approved ) public virtual override onlyAllowedOperatorApproval(operator) { super.setApprovalForAll(operator, approved); } function approve( address operator, uint256 tokenId ) public payable virtual override onlyAllowedOperatorApproval(operator) { super.approve(operator, tokenId); } function transferFrom( address from, address to, uint256 tokenId ) public payable virtual override onlyAllowedOperator(from) { super.transferFrom(from, to, tokenId); } function safeTransferFrom( address from, address to, uint256 tokenId ) public payable virtual override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId); } function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public payable virtual override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId, data); } } abstract contract ERC721AP2P is IERC721P2PCore, ERC721WithOperatorFilter, Ownable { mapping(uint256 => uint256) prices; function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC721P2PCore).interfaceId || super.supportsInterface(interfaceId); } function setPriceOf(uint256 _tokenId, uint256 _price) public override { require(ownerOf(_tokenId) == msg.sender, 'Only the onwer can set the price'); prices[_tokenId] = _price; } function getPriceOf(uint256 _tokenId) external view override returns (uint256) { return prices[_tokenId]; } function purchase(uint256 _tokenId, address _buyer, address _facilitator) external payable override { uint256 price = prices[_tokenId]; require(price > 0, 'Token is not on sale'); require(msg.value >= price, 'Not enough fund'); uint256 comission = _processSalesCommission(msg.value, _facilitator); uint256 royalty = _processRoyalty(msg.value, _tokenId); address tokenOwner = ownerOf(_tokenId); address payable payableTo = payable(tokenOwner); payableTo.transfer(msg.value - comission - royalty); prices[_tokenId] = 0; // not on sale any more _transfer(tokenOwner, _buyer, _tokenId); // transferFrom(tokenOwner, _buyer, _tokenId); } // 2.5% to the facilitator (marketplace) function _processSalesCommission( uint _salesPrice, address _facilitator ) internal virtual returns (uint256 comission) { if (_facilitator != address(0)) { comission = (_salesPrice * 25) / 1000; // 2.5% address payable payableTo = payable(_facilitator); payableTo.transfer(comission); } } // Subclass needs to override to pay royalties to creator(s) here function _processRoyalty(uint _salesPrice, uint _tokenId) internal virtual returns (uint256 royalty) { /* royalty = _salesPrice * 50 / 1000; // 5.0% address payable payableTo = payable(address(_creator)); payableTo.transfer(royalty); */ } function acceptOffer(uint256 _tokenId, IERC721Marketplace _dealer, uint256 _price) external override { setPriceOf(_tokenId, _price); _dealer.acceptOffer(this, _tokenId, _price); } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0; /// @title Base64 /// @author Brecht Devos - <[email protected]> /// @notice Provides functions for encoding/decoding base64 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 /** * This is a part of an effort to create a decentralized autonomous marketplace for digital assets, * which allows artists and developers to sell their arts and generative arts. * * Please see "https://fullyonchain.xyz/" for details. * * Created by Satoshi Nakajima (@snakajima) */ pragma solidity ^0.8.6; /** * IAssetProvider is the interface each asset provider implements. * We assume there are three types of asset providers. * 1. Static asset provider, which has a collection of assets (either in the storage or the code) and returns them. * 2. Generative provider, which dynamically (but deterministically from the seed) generates assets. * 3. Data visualizer, which generates assets based on various data on the blockchain. * * Note: Asset providers MUST implements IERC165 (supportsInterface method) as well. */ interface IAssetProvider { struct ProviderInfo { string key; // short and unique identifier of this provider (e.g., "asset") string name; // human readable display name (e.g., "Asset Store") IAssetProvider provider; } function getProviderInfo() external view returns(ProviderInfo memory); /** * This function returns SVGPart and the tag. The SVGPart consists of one or more SVG elements. * The tag specifies the identifier of the SVG element to be displayed (using <use> tag). * The tag is the combination of the provider key and assetId (e.e., "asset123") */ function generateSVGPart(uint256 _assetId) external view returns(string memory svgPart, string memory tag); /** * This is an optional function, which returns various traits of the image for ERC721 token. * Format: {"trait_type":"TRAIL_TYPE","value":"VALUE"},{...} */ function generateTraits(uint256 _assetId) external view returns (string memory); /** * This function returns the number of assets available from this provider. * If the total supply is 100, assetIds of available assets are 0,1,...99. * The generative providers may returns 0, which indicates the provider dynamically but * deterministically generates assets using the given assetId as the random seed. */ function totalSupply() external view returns(uint256); /** * Returns the onwer. The registration update is possible only if both contracts have the same owner. */ function getOwner() external view returns (address); /** * This function processes the royalty payment from the decentralized autonomous marketplace. */ function processPayout(uint256 _assetId) external payable; event Payout(string providerKey, uint256 assetId, address payable to, uint256 amount); } interface IAssetProviderEx is IAssetProvider { function generateSVGDocument(uint256 _assetId) external view returns(string memory document); }
// SPDX-License-Identifier: MIT /** * This is a part of an effort to update ERC271 so that the sales transaction * becomes decentralized and trustless, which makes it possible to enforce * royalities without relying on marketplaces. * * Please see "https://hackmd.io/@snakajima/BJqG3fkSo" for details. * * Created by Satoshi Nakajima (@snakajima) */ pragma solidity ^0.8.6; import '@openzeppelin/contracts/token/ERC721/IERC721.sol'; interface IERC721Marketplace { // Make an offer to a specific token function makeAnOffer(IERC721P2PCore _contract, uint256 _tokenId, uint256 _price) external payable; // Withdraw an offer to a specific token (onlyOfferMaker) function withdrawAnOffer(IERC721P2PCore _contract, uint256 _tokenId) external; // Get the current offer to the specifiedToken function getTheBestOffer(IERC721P2PCore _contract, uint256 _tokenId) external view returns (uint256, address); // It will call the purchase method of _contract with the specified amount of payment. function acceptOffer(IERC721P2PCore _contract, uint256 _tokenId, uint256 _price) external; } interface IERC721P2PCore { // Set the price of the specified token (onlyTokenOwner) function setPriceOf(uint256 _tokenId, uint256 _price) external; // Get the current price of the specified token function getPriceOf(uint256 _tokenId) external view returns (uint256); // It will transfer the token and distribute the money, including royalties function purchase(uint256 _tokenId, address _buyer, address _facilitator) external payable; // It sets the price and calls the acceptOffer method of _dealer (onlyTokenOwner) function acceptOffer(uint256 _tokenId, IERC721Marketplace _dealer, uint256 _price) external; // Fires when the owner sets the price event SetPrice(uint256 indexed tokenId, uint256 price); } // deprecated interface IERC721P2P is IERC721P2PCore, IERC721 { }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import { OperatorFilterer } from './OperatorFilterer.sol'; /** * @title DefaultOperatorFilterer * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription. */ abstract contract DefaultOperatorFilterer is OperatorFilterer { address constant DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6); constructor() OperatorFilterer(DEFAULT_SUBSCRIPTION, true) {} }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import './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 // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import { IOperatorFilterRegistry } from './IOperatorFilterRegistry.sol'; /** * @title OperatorFilterer * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another * registrant's entries in the OperatorFilterRegistry. * @dev This smart contract is meant to be inherited by token contracts so they can use the following: * - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods. * - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods. */ abstract contract OperatorFilterer { error OperatorNotAllowed(address operator); IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY = IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E); constructor(address subscriptionOrRegistrantToCopy, bool subscribe) { // If an inheriting token contract is deployed to a network without the registry deployed, the modifier // will not revert, but the contract will need to be registered with the registry once it is deployed in // order for the modifier to filter addresses. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { if (subscribe) { OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy); } else { if (subscriptionOrRegistrantToCopy != address(0)) { OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy); } else { OPERATOR_FILTER_REGISTRY.register(address(this)); } } } } modifier onlyAllowedOperator(address from) virtual { // Check registry code length to facilitate testing in environments without a deployed registry. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { // Allow spending tokens from addresses with balance // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred // from an EOA. if (from == msg.sender) { _; return; } if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), msg.sender)) { revert OperatorNotAllowed(msg.sender); } } _; } modifier onlyAllowedOperatorApproval(address operator) virtual { // Check registry code length to facilitate testing in environments without a deployed registry. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) { revert OperatorNotAllowed(operator); } } _; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; interface IOperatorFilterRegistry { function isOperatorAllowed(address registrant, address operator) external view returns (bool); function register(address registrant) external; function registerAndSubscribe(address registrant, address subscription) external; function registerAndCopyEntries(address registrant, address registrantToCopy) external; function unregister(address addr) external; function updateOperator(address registrant, address operator, bool filtered) external; function updateOperators(address registrant, address[] calldata operators, bool filtered) external; function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external; function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external; function subscribe(address registrant, address registrantToSubscribe) external; function unsubscribe(address registrant, bool copyExistingEntries) external; function subscriptionOf(address addr) external returns (address registrant); function subscribers(address registrant) external returns (address[] memory); function subscriberAt(address registrant, uint256 index) external returns (address); function copyEntriesOf(address registrant, address registrantToCopy) external; function isOperatorFiltered(address registrant, address operator) external returns (bool); function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool); function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool); function filteredOperators(address addr) external returns (address[] memory); function filteredCodeHashes(address addr) external returns (bytes32[] memory); function filteredOperatorAt(address registrant, uint256 index) external returns (address); function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32); function isRegistered(address addr) external returns (bool); function codeHashOf(address addr) external returns (bytes32); }
// 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); } function _transfer( address from, address to, uint256 tokenId ) internal virtual { 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 // 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 v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract IAssetProvider","name":"_assetProvider","type":"address"},{"internalType":"address","name":"_committee","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"}],"name":"SetPrice","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"contract IERC721Marketplace","name":"_dealer","type":"address"},{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"acceptOffer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"assetProvider","outputs":[{"internalType":"contract IAssetProvider","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"committee","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"debugTokenURI","outputs":[{"internalType":"string","name":"uri","type":"string"},{"internalType":"uint256","name":"gas","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"description","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getPriceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mint","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mintPriceFor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"address","name":"_buyer","type":"address"},{"internalType":"address","name":"_facilitator","type":"address"}],"name":"purchase","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IAssetProvider","name":"_assetProvider","type":"address"}],"name":"setAssetProvider","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_description","type":"string"}],"name":"setDescription","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_limit","type":"uint256"}],"name":"setMintLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPriceOf","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b50604051620058c9380380620058c9833981810160405281019062000037919062000b0e565b816040518060400160405280600b81526020017f4c6169646261636b204c750000000000000000000000000000000000000000008152506040518060400160405280600b81526020017f4c6169646261636b204c75000000000000000000000000000000000000000000815250733cc6cdda760b79bafa08df41ecfa224f810dceb6600183838160029081620000ce919062000dcf565b508060039081620000e0919062000dcf565b50620000f1620004e560201b60201c565b600081905550505060006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115620002ee578015620001b4576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16637d3e3dbe30846040518363ffffffff1660e01b81526004016200017a92919062000ec7565b600060405180830381600087803b1580156200019557600080fd5b505af1158015620001aa573d6000803e3d6000fd5b50505050620002ed565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146200026e576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663a0af290330846040518363ffffffff1660e01b81526004016200023492919062000ec7565b600060405180830381600087803b1580156200024f57600080fd5b505af115801562000264573d6000803e3d6000fd5b50505050620002ec565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16634420e486306040518263ffffffff1660e01b8152600401620002b7919062000ef4565b600060405180830381600087803b158015620002d257600080fd5b505af1158015620002e7573d6000803e3d6000fd5b505050505b5b5b50506200031062000304620004ea60201b60201c565b620004f260201b60201c565b82600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050506040518060400160405280600c81526020017f4c6169646261636b204c752e0000000000000000000000000000000000000000815250600a90816200039a919062000dcf565b50662386f26fc10000600b819055506101b8600c8190555080600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506200041a731a474bd77f8109078ccdef5896f499642830f3ca6014620005b860201b60201c565b62000441734e4cd175f812f1ba784a69c1f8ac8daa52ad7e2b6014620005b860201b60201c565b6200046873818fb9d440968db9fcb06eef53c7734ad70f6f0e6014620005b860201b60201c565b6200048f7356bb106d2cc0a1209de6962a49634321ad0d9082600a620005b860201b60201c565b620004b67349b7045b25d3f8b27f9b75e60484668327d968976005620005b860201b60201c565b620004dd73edfef30eabef62c9bf55121b407ca1b3fde7f5296005620005b860201b60201c565b50506200109f565b600090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b620005da828260405180602001604052806000815250620005de60201b60201c565b5050565b620005f083836200068f60201b60201c565b60008373ffffffffffffffffffffffffffffffffffffffff163b146200068a57600080549050600083820390505b6200063960008683806001019450866200087660201b60201c565b62000670576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181106200061e5781600054146200068757600080fd5b50505b505050565b60008054905060008203620006d0576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b620006e56000848385620009d760201b60201c565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506200077483620007566000866000620009dd60201b60201c565b620007678562000a0d60201b60201c565b1762000a1d60201b60201c565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b8181146200081757808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050620007da565b506000820362000853576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600081905550505062000871600084838562000a4860201b60201c565b505050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02620008a462000a4e60201b60201c565b8786866040518563ffffffff1660e01b8152600401620008c8949392919062000fbc565b6020604051808303816000875af19250505080156200090757506040513d601f19601f820116820180604052508101906200090491906200106d565b60015b62000984573d80600081146200093a576040519150601f19603f3d011682016040523d82523d6000602084013e6200093f565b606091505b5060008151036200097c576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b50505050565b60008060e883901c905060e8620009fc86868462000a5660201b60201c565b62ffffff16901b9150509392505050565b60006001821460e11b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b600033905090565b60009392505050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062000a918262000a64565b9050919050565b600062000aa58262000a84565b9050919050565b62000ab78162000a98565b811462000ac357600080fd5b50565b60008151905062000ad78162000aac565b92915050565b62000ae88162000a84565b811462000af457600080fd5b50565b60008151905062000b088162000add565b92915050565b6000806040838503121562000b285762000b2762000a5f565b5b600062000b388582860162000ac6565b925050602062000b4b8582860162000af7565b9150509250929050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168062000bd757607f821691505b60208210810362000bed5762000bec62000b8f565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b60006008830262000c577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262000c18565b62000c63868362000c18565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b600062000cb062000caa62000ca48462000c7b565b62000c85565b62000c7b565b9050919050565b6000819050919050565b62000ccc8362000c8f565b62000ce462000cdb8262000cb7565b84845462000c25565b825550505050565b600090565b62000cfb62000cec565b62000d0881848462000cc1565b505050565b5b8181101562000d305762000d2460008262000cf1565b60018101905062000d0e565b5050565b601f82111562000d7f5762000d498162000bf3565b62000d548462000c08565b8101602085101562000d64578190505b62000d7c62000d738562000c08565b83018262000d0d565b50505b505050565b600082821c905092915050565b600062000da46000198460080262000d84565b1980831691505092915050565b600062000dbf838362000d91565b9150826002028217905092915050565b62000dda8262000b55565b67ffffffffffffffff81111562000df65762000df562000b60565b5b62000e02825462000bbe565b62000e0f82828562000d34565b600060209050601f83116001811462000e47576000841562000e32578287015190505b62000e3e858262000db1565b86555062000eae565b601f19841662000e578662000bf3565b60005b8281101562000e815784890151825560018201915060208501945060208101905062000e5a565b8683101562000ea1578489015162000e9d601f89168262000d91565b8355505b6001600288020188555050505b505050505050565b62000ec18162000a84565b82525050565b600060408201905062000ede600083018562000eb6565b62000eed602083018462000eb6565b9392505050565b600060208201905062000f0b600083018462000eb6565b92915050565b62000f1c8162000c7b565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b8381101562000f5e57808201518184015260208101905062000f41565b60008484015250505050565b6000601f19601f8301169050919050565b600062000f888262000f22565b62000f94818562000f2d565b935062000fa681856020860162000f3e565b62000fb18162000f6a565b840191505092915050565b600060808201905062000fd3600083018762000eb6565b62000fe2602083018662000eb6565b62000ff1604083018562000f11565b818103606083015262001005818462000f7b565b905095945050505050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b620010478162001010565b81146200105357600080fd5b50565b60008151905062001067816200103c565b92915050565b60006020828403121562001086576200108562000a5f565b5b6000620010968482850162001056565b91505092915050565b61481a80620010af6000396000f3fe6080604052600436106101f95760003560e01c806390c3f38f1161010d578063b54b4fb9116100a0578063d864e7401161006f578063d864e740146106f8578063e985e9c514610723578063f2fde38b14610760578063f4a0a52814610789578063fba49e4f146107b2576101f9565b8063b54b4fb914610624578063b88d4fde14610661578063c87b56dd1461067d578063cc44ab41146106ba576101f9565b80639e6a1d7d116100dc5780639e6a1d7d1461057e578063a22cb465146105a7578063a370f7d7146105d0578063b212cfc7146105fb576101f9565b806390c3f38f146104d65780639589d7b9146104ff57806395d89b4114610528578063996517cf14610553576101f9565b80633b7f8f15116101905780636817c76c1161015f5780636817c76c1461040157806370a082311461042c578063715018a6146104695780637284e416146104805780638da5cb5b146104ab576101f9565b80633b7f8f151461036157806341f434341461037d57806342842e0e146103a85780636352211e146103c4576101f9565b80631249c58b116101cc5780631249c58b146102bf5780631346d8ea146102dd57806318160ddd1461031a57806323b872dd14610345576101f9565b806301ffc9a7146101fe57806306fdde031461023b578063081812fc14610266578063095ea7b3146102a3575b600080fd5b34801561020a57600080fd5b5061022560048036038101906102209190612ea9565b6107db565b6040516102329190612ef1565b60405180910390f35b34801561024757600080fd5b50610250610855565b60405161025d9190612f9c565b60405180910390f35b34801561027257600080fd5b5061028d60048036038101906102889190612ff4565b6108e7565b60405161029a9190613062565b60405180910390f35b6102bd60048036038101906102b891906130a9565b610966565b005b6102c7610a70565b6040516102d491906130f8565b60405180910390f35b3480156102e957600080fd5b5061030460048036038101906102ff9190613113565b610b33565b60405161031191906130f8565b60405180910390f35b34801561032657600080fd5b5061032f610b3f565b60405161033c91906130f8565b60405180910390f35b61035f600480360381019061035a9190613140565b610b4e565b005b61037b60048036038101906103769190613193565b610c9e565b005b34801561038957600080fd5b50610392610df5565b60405161039f9190613245565b60405180910390f35b6103c260048036038101906103bd9190613140565b610e07565b005b3480156103d057600080fd5b506103eb60048036038101906103e69190612ff4565b610f57565b6040516103f89190613062565b60405180910390f35b34801561040d57600080fd5b50610416610f69565b60405161042391906130f8565b60405180910390f35b34801561043857600080fd5b50610453600480360381019061044e9190613113565b610f6f565b60405161046091906130f8565b60405180910390f35b34801561047557600080fd5b5061047e611027565b005b34801561048c57600080fd5b5061049561103b565b6040516104a29190612f9c565b60405180910390f35b3480156104b757600080fd5b506104c06110c9565b6040516104cd9190613062565b60405180910390f35b3480156104e257600080fd5b506104fd60048036038101906104f89190613395565b6110f3565b005b34801561050b57600080fd5b506105266004803603810190610521919061341c565b61110e565b005b34801561053457600080fd5b5061053d61118c565b60405161054a9190612f9c565b60405180910390f35b34801561055f57600080fd5b5061056861121e565b60405161057591906130f8565b60405180910390f35b34801561058a57600080fd5b506105a560048036038101906105a09190612ff4565b611224565b005b3480156105b357600080fd5b506105ce60048036038101906105c9919061349b565b611236565b005b3480156105dc57600080fd5b506105e5611340565b6040516105f291906134fc565b60405180910390f35b34801561060757600080fd5b50610622600480360381019061061d9190613555565b611366565b005b34801561063057600080fd5b5061064b60048036038101906106469190612ff4565b6113b2565b60405161065891906130f8565b60405180910390f35b61067b60048036038101906106769190613623565b6113cf565b005b34801561068957600080fd5b506106a4600480360381019061069f9190612ff4565b611522565b6040516106b19190612f9c565b60405180910390f35b3480156106c657600080fd5b506106e160048036038101906106dc9190612ff4565b6115e7565b6040516106ef9291906136a6565b60405180910390f35b34801561070457600080fd5b5061070d61160c565b60405161071a9190613062565b60405180910390f35b34801561072f57600080fd5b5061074a600480360381019061074591906136d6565b611632565b6040516107579190612ef1565b60405180910390f35b34801561076c57600080fd5b5061078760048036038101906107829190613113565b6116c6565b005b34801561079557600080fd5b506107b060048036038101906107ab9190612ff4565b611749565b005b3480156107be57600080fd5b506107d960048036038101906107d49190613716565b61175b565b005b60007fe019895a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061084e575061084d826117ed565b5b9050919050565b60606002805461086490613785565b80601f016020809104026020016040519081016040528092919081815260200182805461089090613785565b80156108dd5780601f106108b2576101008083540402835291602001916108dd565b820191906000526020600020905b8154815290600101906020018083116108c057829003601f168201915b5050505050905090565b60006108f28261187f565b610928576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b8160006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115610a61576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b81526004016109de9291906137b6565b602060405180830381865afa1580156109fb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a1f91906137f4565b610a6057806040517fede71dcc000000000000000000000000000000000000000000000000000000008152600401610a579190613062565b60405180910390fd5b5b610a6b83836118de565b505050565b6000600b54341015610ab7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aae9061386d565b60405180910390fd5b6000600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508073ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015610b24573d6000803e3d6000fd5b50610b2d611a22565b91505090565b6000600b549050919050565b6000610b49611a93565b905090565b8260006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115610c8c573373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610bc057610bbb848484611a9c565b610c98565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430336040518363ffffffff1660e01b8152600401610c099291906137b6565b602060405180830381865afa158015610c26573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c4a91906137f4565b610c8b57336040517fede71dcc000000000000000000000000000000000000000000000000000000008152600401610c829190613062565b60405180910390fd5b5b610c97848484611a9c565b5b50505050565b60006009600085815260200190815260200160002054905060008111610cf9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cf0906138d9565b60405180910390fd5b80341015610d3c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d3390613945565b60405180910390fd5b6000610d483484611dbe565b90506000610d563487611e63565b90506000610d6387610f57565b905060008190508073ffffffffffffffffffffffffffffffffffffffff166108fc848634610d919190613994565b610d9b9190613994565b9081150290604051600060405180830381858888f19350505050158015610dc6573d6000803e3d6000fd5b506000600960008a815260200190815260200160002081905550610deb82888a611e6b565b5050505050505050565b6daaeb6d7670e522a718067333cd4e81565b8260006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115610f45573373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610e7957610e7484848461212f565b610f51565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430336040518363ffffffff1660e01b8152600401610ec29291906137b6565b602060405180830381865afa158015610edf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f0391906137f4565b610f4457336040517fede71dcc000000000000000000000000000000000000000000000000000000008152600401610f3b9190613062565b60405180910390fd5b5b610f5084848461212f565b5b50505050565b6000610f628261214f565b9050919050565b600b5481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610fd6576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b61102f61221b565b6110396000612299565b565b600a805461104890613785565b80601f016020809104026020016040519081016040528092919081815260200182805461107490613785565b80156110c15780601f10611096576101008083540402835291602001916110c1565b820191906000526020600020905b8154815290600101906020018083116110a457829003601f168201915b505050505081565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6110fb61221b565b80600a908161110a9190613b6a565b5050565b611118838261175b565b8173ffffffffffffffffffffffffffffffffffffffff16633c6fc8173085846040518463ffffffff1660e01b815260040161115593929190613c5d565b600060405180830381600087803b15801561116f57600080fd5b505af1158015611183573d6000803e3d6000fd5b50505050505050565b60606003805461119b90613785565b80601f01602080910402602001604051908101604052809291908181526020018280546111c790613785565b80156112145780601f106111e957610100808354040283529160200191611214565b820191906000526020600020905b8154815290600101906020018083116111f757829003601f168201915b5050505050905090565b600c5481565b61122c61221b565b80600c8190555050565b8160006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115611331576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b81526004016112ae9291906137b6565b602060405180830381865afa1580156112cb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112ef91906137f4565b61133057806040517fede71dcc0000000000000000000000000000000000000000000000000000000081526004016113279190613062565b60405180910390fd5b5b61133b838361235f565b505050565b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61136e61221b565b80600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600060096000838152602001908152602001600020549050919050565b8360006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b111561150e573373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036114425761143d8585858561246a565b61151b565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430336040518363ffffffff1660e01b815260040161148b9291906137b6565b602060405180830381865afa1580156114a8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114cc91906137f4565b61150d57336040517fede71dcc0000000000000000000000000000000000000000000000000000000081526004016115049190613062565b60405180910390fd5b5b61151a8585858561246a565b5b5050505050565b606061152d8261187f565b61156c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161156390613d06565b60405180910390fd5b6000611577836124dd565b90506115c0611585846125cc565b600a611590866125fd565b611599856126a7565b6040516020016115ac9493929190613fce565b6040516020818303038152906040526126a7565b6040516020016115d0919061408f565b604051602081830303815290604052915050919050565b606060005a90506115f783611522565b91505a816116059190613994565b9050915091565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6116ce61221b565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361173d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161173490614123565b60405180910390fd5b61174681612299565b50565b61175161221b565b80600b8190555050565b3373ffffffffffffffffffffffffffffffffffffffff1661177b83610f57565b73ffffffffffffffffffffffffffffffffffffffff16146117d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117c89061418f565b60405180910390fd5b8060096000848152602001908152602001600020819055505050565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061184857506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806118785750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60008161188a61281f565b11158015611899575060005482105b80156118d7575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b60006118e982610f57565b90508073ffffffffffffffffffffffffffffffffffffffff1661190a612824565b73ffffffffffffffffffffffffffffffffffffffff161461196d5761193681611931612824565b611632565b61196c576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000600c54611a2f611a93565b10611a6f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a66906141fb565b60405180910390fd5b611a7a33600161282c565b6001611a84611a93565b611a8e9190613994565b905090565b60008054905090565b6000611aa78261214f565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611b0e576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080611b1a8461284a565b91509150611b308187611b2b612824565b612871565b611b7c57611b4586611b40612824565b611632565b611b7b576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603611be2576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611bef86868660016128b5565b8015611bfa57600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550611cc885611ca48888876128bb565b7c0200000000000000000000000000000000000000000000000000000000176128e3565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603611d4e5760006001850190506000600460008381526020019081526020016000205403611d4c576000548114611d4b578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611db6868686600161290e565b505050505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614611e5d576103e8601984611e03919061421b565b611e0d919061428c565b905060008290508073ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f19350505050158015611e5a573d6000803e3d6000fd5b50505b92915050565b600092915050565b6000611e768261214f565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611edd576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080611ee98461284a565b91509150600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603611f53576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611f6086868660016128b5565b8015611f6b57600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550612039856120158888876128bb565b7c0200000000000000000000000000000000000000000000000000000000176128e3565b600460008681526020019081526020016000208190555060007c02000000000000000000000000000000000000000000000000000000008416036120bf57600060018501905060006004600083815260200190815260200160002054036120bd5760005481146120bc578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612127868686600161290e565b505050505050565b61214a838383604051806020016040528060008152506113cf565b505050565b6000808290508061215e61281f565b116121e4576000548110156121e35760006004600083815260200190815260200160002054905060007c01000000000000000000000000000000000000000000000000000000008216036121e1575b600081036121d75760046000836001900393508381526020019081526020016000205490506121ad565b8092505050612216565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b612223612914565b73ffffffffffffffffffffffffffffffffffffffff166122416110c9565b73ffffffffffffffffffffffffffffffffffffffff1614612297576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161228e90614309565b60405180910390fd5b565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b806007600061236c612824565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16612419612824565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161245e9190612ef1565b60405180910390a35050565b612475848484610b4e565b60008373ffffffffffffffffffffffffffffffffffffffff163b146124d7576124a08484848461291c565b6124d6576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b6060600080600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e3f24f02856040518263ffffffff1660e01b815260040161253d91906130f8565b600060405180830381865afa15801561255a573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906125839190614399565b9150915060405180608001604052806049815260200161479c6049913982826040516020016125b4939291906144a9565b60405160208183030381529060405292505050919050565b60606125d782612a6c565b6040516020016125e7919061453c565b6040516020818303038152906040529050919050565b6060600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166379b92f27836040518263ffffffff1660e01b815260040161265a91906130f8565b600060405180830381865afa158015612677573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906126a0919061455e565b9050919050565b606060008251036126c95760405180602001604052806000815250905061281a565b600060405180606001604052806040815260200161475c60409139905060006003600285516126f891906145a7565b612702919061428c565b600461270e919061421b565b9050600060208261271f91906145a7565b67ffffffffffffffff8111156127385761273761326a565b5b6040519080825280601f01601f19166020018201604052801561276a5781602001600182028036833780820191505090505b509050818152600183018586518101602084015b818310156127d9576003830192508251603f8160121c168501518253600182019150603f81600c1c168501518253600182019150603f8160061c168501518253600182019150603f811685015182536001820191505061277e565b6003895106600181146127f357600281146128035761280e565b613d3d60f01b600283035261280e565b603d60f81b60018303525b50505050508093505050505b919050565b600090565b600033905090565b612846828260405180602001604052806000815250612bcc565b5050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e86128d2868684612c69565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b600033905090565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612942612824565b8786866040518563ffffffff1660e01b81526004016129649493929190614625565b6020604051808303816000875af19250505080156129a057506040513d601f19601f8201168201806040525081019061299d9190614686565b60015b612a19573d80600081146129d0576040519150601f19603f3d011682016040523d82523d6000602084013e6129d5565b606091505b506000815103612a11576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b606060008203612ab3576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612bc7565b600082905060005b60008214612ae5578080612ace906146b3565b915050600a82612ade919061428c565b9150612abb565b60008167ffffffffffffffff811115612b0157612b0061326a565b5b6040519080825280601f01601f191660200182016040528015612b335781602001600182028036833780820191505090505b5090505b60008514612bc057600182612b4c9190613994565b9150600a85612b5b91906146fb565b6030612b6791906145a7565b60f81b818381518110612b7d57612b7c61472c565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612bb9919061428c565b9450612b37565b8093505050505b919050565b612bd68383612c72565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612c6457600080549050600083820390505b612c16600086838060010194508661291c565b612c4c576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818110612c03578160005414612c6157600080fd5b50505b505050565b60009392505050565b60008054905060008203612cb2576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612cbf60008483856128b5565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612d3683612d2760008660006128bb565b612d3085612e2d565b176128e3565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b818114612dd757808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050612d9c565b5060008203612e12576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806000819055505050612e28600084838561290e565b505050565b60006001821460e11b9050919050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612e8681612e51565b8114612e9157600080fd5b50565b600081359050612ea381612e7d565b92915050565b600060208284031215612ebf57612ebe612e47565b5b6000612ecd84828501612e94565b91505092915050565b60008115159050919050565b612eeb81612ed6565b82525050565b6000602082019050612f066000830184612ee2565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612f46578082015181840152602081019050612f2b565b60008484015250505050565b6000601f19601f8301169050919050565b6000612f6e82612f0c565b612f788185612f17565b9350612f88818560208601612f28565b612f9181612f52565b840191505092915050565b60006020820190508181036000830152612fb68184612f63565b905092915050565b6000819050919050565b612fd181612fbe565b8114612fdc57600080fd5b50565b600081359050612fee81612fc8565b92915050565b60006020828403121561300a57613009612e47565b5b600061301884828501612fdf565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061304c82613021565b9050919050565b61305c81613041565b82525050565b60006020820190506130776000830184613053565b92915050565b61308681613041565b811461309157600080fd5b50565b6000813590506130a38161307d565b92915050565b600080604083850312156130c0576130bf612e47565b5b60006130ce85828601613094565b92505060206130df85828601612fdf565b9150509250929050565b6130f281612fbe565b82525050565b600060208201905061310d60008301846130e9565b92915050565b60006020828403121561312957613128612e47565b5b600061313784828501613094565b91505092915050565b60008060006060848603121561315957613158612e47565b5b600061316786828701613094565b935050602061317886828701613094565b925050604061318986828701612fdf565b9150509250925092565b6000806000606084860312156131ac576131ab612e47565b5b60006131ba86828701612fdf565b93505060206131cb86828701613094565b92505060406131dc86828701613094565b9150509250925092565b6000819050919050565b600061320b61320661320184613021565b6131e6565b613021565b9050919050565b600061321d826131f0565b9050919050565b600061322f82613212565b9050919050565b61323f81613224565b82525050565b600060208201905061325a6000830184613236565b92915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6132a282612f52565b810181811067ffffffffffffffff821117156132c1576132c061326a565b5b80604052505050565b60006132d4612e3d565b90506132e08282613299565b919050565b600067ffffffffffffffff821115613300576132ff61326a565b5b61330982612f52565b9050602081019050919050565b82818337600083830152505050565b6000613338613333846132e5565b6132ca565b90508281526020810184848401111561335457613353613265565b5b61335f848285613316565b509392505050565b600082601f83011261337c5761337b613260565b5b813561338c848260208601613325565b91505092915050565b6000602082840312156133ab576133aa612e47565b5b600082013567ffffffffffffffff8111156133c9576133c8612e4c565b5b6133d584828501613367565b91505092915050565b60006133e982613041565b9050919050565b6133f9816133de565b811461340457600080fd5b50565b600081359050613416816133f0565b92915050565b60008060006060848603121561343557613434612e47565b5b600061344386828701612fdf565b935050602061345486828701613407565b925050604061346586828701612fdf565b9150509250925092565b61347881612ed6565b811461348357600080fd5b50565b6000813590506134958161346f565b92915050565b600080604083850312156134b2576134b1612e47565b5b60006134c085828601613094565b92505060206134d185828601613486565b9150509250929050565b60006134e682613212565b9050919050565b6134f6816134db565b82525050565b600060208201905061351160008301846134ed565b92915050565b600061352282613041565b9050919050565b61353281613517565b811461353d57600080fd5b50565b60008135905061354f81613529565b92915050565b60006020828403121561356b5761356a612e47565b5b600061357984828501613540565b91505092915050565b600067ffffffffffffffff82111561359d5761359c61326a565b5b6135a682612f52565b9050602081019050919050565b60006135c66135c184613582565b6132ca565b9050828152602081018484840111156135e2576135e1613265565b5b6135ed848285613316565b509392505050565b600082601f83011261360a57613609613260565b5b813561361a8482602086016135b3565b91505092915050565b6000806000806080858703121561363d5761363c612e47565b5b600061364b87828801613094565b945050602061365c87828801613094565b935050604061366d87828801612fdf565b925050606085013567ffffffffffffffff81111561368e5761368d612e4c565b5b61369a878288016135f5565b91505092959194509250565b600060408201905081810360008301526136c08185612f63565b90506136cf60208301846130e9565b9392505050565b600080604083850312156136ed576136ec612e47565b5b60006136fb85828601613094565b925050602061370c85828601613094565b9150509250929050565b6000806040838503121561372d5761372c612e47565b5b600061373b85828601612fdf565b925050602061374c85828601612fdf565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061379d57607f821691505b6020821081036137b0576137af613756565b5b50919050565b60006040820190506137cb6000830185613053565b6137d86020830184613053565b9392505050565b6000815190506137ee8161346f565b92915050565b60006020828403121561380a57613809612e47565b5b6000613818848285016137df565b91505092915050565b7f4d7573742073656e6420746865206d696e742070726963650000000000000000600082015250565b6000613857601883612f17565b915061386282613821565b602082019050919050565b600060208201905081810360008301526138868161384a565b9050919050565b7f546f6b656e206973206e6f74206f6e2073616c65000000000000000000000000600082015250565b60006138c3601483612f17565b91506138ce8261388d565b602082019050919050565b600060208201905081810360008301526138f2816138b6565b9050919050565b7f4e6f7420656e6f7567682066756e640000000000000000000000000000000000600082015250565b600061392f600f83612f17565b915061393a826138f9565b602082019050919050565b6000602082019050818103600083015261395e81613922565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061399f82612fbe565b91506139aa83612fbe565b92508282039050818111156139c2576139c1613965565b5b92915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302613a2a7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826139ed565b613a3486836139ed565b95508019841693508086168417925050509392505050565b6000613a67613a62613a5d84612fbe565b6131e6565b612fbe565b9050919050565b6000819050919050565b613a8183613a4c565b613a95613a8d82613a6e565b8484546139fa565b825550505050565b600090565b613aaa613a9d565b613ab5818484613a78565b505050565b5b81811015613ad957613ace600082613aa2565b600181019050613abb565b5050565b601f821115613b1e57613aef816139c8565b613af8846139dd565b81016020851015613b07578190505b613b1b613b13856139dd565b830182613aba565b50505b505050565b600082821c905092915050565b6000613b4160001984600802613b23565b1980831691505092915050565b6000613b5a8383613b30565b9150826002028217905092915050565b613b7382612f0c565b67ffffffffffffffff811115613b8c57613b8b61326a565b5b613b968254613785565b613ba1828285613add565b600060209050601f831160018114613bd45760008415613bc2578287015190505b613bcc8582613b4e565b865550613c34565b601f198416613be2866139c8565b60005b82811015613c0a57848901518255600182019150602085019450602081019050613be5565b86831015613c275784890151613c23601f891682613b30565b8355505b6001600288020188555050505b505050505050565b6000613c4782613212565b9050919050565b613c5781613c3c565b82525050565b6000606082019050613c726000830186613c4e565b613c7f60208301856130e9565b613c8c60408301846130e9565b949350505050565b7f50726f7669646572546f6b656e2e746f6b656e5552493a206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b6000613cf0602983612f17565b9150613cfb82613c94565b604082019050919050565b60006020820190508181036000830152613d1f81613ce3565b9050919050565b600081905092915050565b7f7b226e616d65223a220000000000000000000000000000000000000000000000600082015250565b6000613d67600983613d26565b9150613d7282613d31565b600982019050919050565b6000613d8882612f0c565b613d928185613d26565b9350613da2818560208601612f28565b80840191505092915050565b7f222c226465736372697074696f6e223a22000000000000000000000000000000600082015250565b6000613de4601183613d26565b9150613def82613dae565b601182019050919050565b60008154613e0781613785565b613e118186613d26565b94506001821660008114613e2c5760018114613e4157613e74565b60ff1983168652811515820286019350613e74565b613e4a856139c8565b60005b83811015613e6c57815481890152600182019150602081019050613e4d565b838801955050505b50505092915050565b7f222c2261747472696275746573223a5b00000000000000000000000000000000600082015250565b6000613eb3601083613d26565b9150613ebe82613e7d565b601082019050919050565b600081519050919050565b600081905092915050565b6000613eea82613ec9565b613ef48185613ed4565b9350613f04818560208601612f28565b80840191505092915050565b7f5d2c22696d616765223a22646174613a696d6167652f7376672b786d6c3b626160008201527f736536342c000000000000000000000000000000000000000000000000000000602082015250565b6000613f6c602583613d26565b9150613f7782613f10565b602582019050919050565b7f227d000000000000000000000000000000000000000000000000000000000000600082015250565b6000613fb8600283613d26565b9150613fc382613f82565b600282019050919050565b6000613fd982613d5a565b9150613fe58287613d7d565b9150613ff082613dd7565b9150613ffc8286613dfa565b915061400782613ea6565b91506140138285613edf565b915061401e82613f5f565b915061402a8284613d7d565b915061403582613fab565b915081905095945050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000600082015250565b6000614079601d83613d26565b915061408482614043565b601d82019050919050565b600061409a8261406c565b91506140a68284613d7d565b915081905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061410d602683612f17565b9150614118826140b1565b604082019050919050565b6000602082019050818103600083015261413c81614100565b9050919050565b7f4f6e6c7920746865206f6e7765722063616e2073657420746865207072696365600082015250565b6000614179602083612f17565b915061418482614143565b602082019050919050565b600060208201905081810360008301526141a88161416c565b9050919050565b7f536f6c64206f7574000000000000000000000000000000000000000000000000600082015250565b60006141e5600883612f17565b91506141f0826141af565b602082019050919050565b60006020820190508181036000830152614214816141d8565b9050919050565b600061422682612fbe565b915061423183612fbe565b925082820261423f81612fbe565b9150828204841483151761425657614255613965565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061429782612fbe565b91506142a283612fbe565b9250826142b2576142b161425d565b5b828204905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006142f3602083612f17565b91506142fe826142bd565b602082019050919050565b60006020820190508181036000830152614322816142e6565b9050919050565b600061433c614337846132e5565b6132ca565b90508281526020810184848401111561435857614357613265565b5b614363848285612f28565b509392505050565b600082601f8301126143805761437f613260565b5b8151614390848260208601614329565b91505092915050565b600080604083850312156143b0576143af612e47565b5b600083015167ffffffffffffffff8111156143ce576143cd612e4c565b5b6143da8582860161436b565b925050602083015167ffffffffffffffff8111156143fb576143fa612e4c565b5b6144078582860161436b565b9150509250929050565b7f3c2f646566733e0a3c75736520687265663d2223000000000000000000000000600082015250565b6000614447601483613d26565b915061445282614411565b601482019050919050565b7f22202f3e0a3c2f7376673e0a0000000000000000000000000000000000000000600082015250565b6000614493600c83613d26565b915061449e8261445d565b600c82019050919050565b60006144b58286613d7d565b91506144c18285613d7d565b91506144cc8261443a565b91506144d88284613d7d565b91506144e382614486565b9150819050949350505050565b7f4c6169646261636b204c75200000000000000000000000000000000000000000600082015250565b6000614526600c83613d26565b9150614531826144f0565b600c82019050919050565b600061454782614519565b91506145538284613d7d565b915081905092915050565b60006020828403121561457457614573612e47565b5b600082015167ffffffffffffffff81111561459257614591612e4c565b5b61459e8482850161436b565b91505092915050565b60006145b282612fbe565b91506145bd83612fbe565b92508282019050808211156145d5576145d4613965565b5b92915050565b600082825260208201905092915050565b60006145f782613ec9565b61460181856145db565b9350614611818560208601612f28565b61461a81612f52565b840191505092915050565b600060808201905061463a6000830187613053565b6146476020830186613053565b61465460408301856130e9565b818103606083015261466681846145ec565b905095945050505050565b60008151905061468081612e7d565b92915050565b60006020828403121561469c5761469b612e47565b5b60006146aa84828501614671565b91505092915050565b60006146be82612fbe565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036146f0576146ef613965565b5b600182019050919050565b600061470682612fbe565b915061471183612fbe565b9250826147215761472061425d565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f3c7376672076696577426f783d2230203020313032342031303234222020786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f737667223e0a3c646566733e0aa26469706673582212207f41ca0c1bcce3b17b6c0daec85089f3d09561adbbca1248423983f983e10b8764736f6c63430008110033000000000000000000000000763aea91d2a87f3826f93b7f44ec72fd7f7086ae00000000000000000000000056bb106d2cc0a1209de6962a49634321ad0d9082
Deployed Bytecode
0x6080604052600436106101f95760003560e01c806390c3f38f1161010d578063b54b4fb9116100a0578063d864e7401161006f578063d864e740146106f8578063e985e9c514610723578063f2fde38b14610760578063f4a0a52814610789578063fba49e4f146107b2576101f9565b8063b54b4fb914610624578063b88d4fde14610661578063c87b56dd1461067d578063cc44ab41146106ba576101f9565b80639e6a1d7d116100dc5780639e6a1d7d1461057e578063a22cb465146105a7578063a370f7d7146105d0578063b212cfc7146105fb576101f9565b806390c3f38f146104d65780639589d7b9146104ff57806395d89b4114610528578063996517cf14610553576101f9565b80633b7f8f15116101905780636817c76c1161015f5780636817c76c1461040157806370a082311461042c578063715018a6146104695780637284e416146104805780638da5cb5b146104ab576101f9565b80633b7f8f151461036157806341f434341461037d57806342842e0e146103a85780636352211e146103c4576101f9565b80631249c58b116101cc5780631249c58b146102bf5780631346d8ea146102dd57806318160ddd1461031a57806323b872dd14610345576101f9565b806301ffc9a7146101fe57806306fdde031461023b578063081812fc14610266578063095ea7b3146102a3575b600080fd5b34801561020a57600080fd5b5061022560048036038101906102209190612ea9565b6107db565b6040516102329190612ef1565b60405180910390f35b34801561024757600080fd5b50610250610855565b60405161025d9190612f9c565b60405180910390f35b34801561027257600080fd5b5061028d60048036038101906102889190612ff4565b6108e7565b60405161029a9190613062565b60405180910390f35b6102bd60048036038101906102b891906130a9565b610966565b005b6102c7610a70565b6040516102d491906130f8565b60405180910390f35b3480156102e957600080fd5b5061030460048036038101906102ff9190613113565b610b33565b60405161031191906130f8565b60405180910390f35b34801561032657600080fd5b5061032f610b3f565b60405161033c91906130f8565b60405180910390f35b61035f600480360381019061035a9190613140565b610b4e565b005b61037b60048036038101906103769190613193565b610c9e565b005b34801561038957600080fd5b50610392610df5565b60405161039f9190613245565b60405180910390f35b6103c260048036038101906103bd9190613140565b610e07565b005b3480156103d057600080fd5b506103eb60048036038101906103e69190612ff4565b610f57565b6040516103f89190613062565b60405180910390f35b34801561040d57600080fd5b50610416610f69565b60405161042391906130f8565b60405180910390f35b34801561043857600080fd5b50610453600480360381019061044e9190613113565b610f6f565b60405161046091906130f8565b60405180910390f35b34801561047557600080fd5b5061047e611027565b005b34801561048c57600080fd5b5061049561103b565b6040516104a29190612f9c565b60405180910390f35b3480156104b757600080fd5b506104c06110c9565b6040516104cd9190613062565b60405180910390f35b3480156104e257600080fd5b506104fd60048036038101906104f89190613395565b6110f3565b005b34801561050b57600080fd5b506105266004803603810190610521919061341c565b61110e565b005b34801561053457600080fd5b5061053d61118c565b60405161054a9190612f9c565b60405180910390f35b34801561055f57600080fd5b5061056861121e565b60405161057591906130f8565b60405180910390f35b34801561058a57600080fd5b506105a560048036038101906105a09190612ff4565b611224565b005b3480156105b357600080fd5b506105ce60048036038101906105c9919061349b565b611236565b005b3480156105dc57600080fd5b506105e5611340565b6040516105f291906134fc565b60405180910390f35b34801561060757600080fd5b50610622600480360381019061061d9190613555565b611366565b005b34801561063057600080fd5b5061064b60048036038101906106469190612ff4565b6113b2565b60405161065891906130f8565b60405180910390f35b61067b60048036038101906106769190613623565b6113cf565b005b34801561068957600080fd5b506106a4600480360381019061069f9190612ff4565b611522565b6040516106b19190612f9c565b60405180910390f35b3480156106c657600080fd5b506106e160048036038101906106dc9190612ff4565b6115e7565b6040516106ef9291906136a6565b60405180910390f35b34801561070457600080fd5b5061070d61160c565b60405161071a9190613062565b60405180910390f35b34801561072f57600080fd5b5061074a600480360381019061074591906136d6565b611632565b6040516107579190612ef1565b60405180910390f35b34801561076c57600080fd5b5061078760048036038101906107829190613113565b6116c6565b005b34801561079557600080fd5b506107b060048036038101906107ab9190612ff4565b611749565b005b3480156107be57600080fd5b506107d960048036038101906107d49190613716565b61175b565b005b60007fe019895a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061084e575061084d826117ed565b5b9050919050565b60606002805461086490613785565b80601f016020809104026020016040519081016040528092919081815260200182805461089090613785565b80156108dd5780601f106108b2576101008083540402835291602001916108dd565b820191906000526020600020905b8154815290600101906020018083116108c057829003601f168201915b5050505050905090565b60006108f28261187f565b610928576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b8160006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115610a61576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b81526004016109de9291906137b6565b602060405180830381865afa1580156109fb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a1f91906137f4565b610a6057806040517fede71dcc000000000000000000000000000000000000000000000000000000008152600401610a579190613062565b60405180910390fd5b5b610a6b83836118de565b505050565b6000600b54341015610ab7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aae9061386d565b60405180910390fd5b6000600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508073ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015610b24573d6000803e3d6000fd5b50610b2d611a22565b91505090565b6000600b549050919050565b6000610b49611a93565b905090565b8260006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115610c8c573373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610bc057610bbb848484611a9c565b610c98565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430336040518363ffffffff1660e01b8152600401610c099291906137b6565b602060405180830381865afa158015610c26573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c4a91906137f4565b610c8b57336040517fede71dcc000000000000000000000000000000000000000000000000000000008152600401610c829190613062565b60405180910390fd5b5b610c97848484611a9c565b5b50505050565b60006009600085815260200190815260200160002054905060008111610cf9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cf0906138d9565b60405180910390fd5b80341015610d3c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d3390613945565b60405180910390fd5b6000610d483484611dbe565b90506000610d563487611e63565b90506000610d6387610f57565b905060008190508073ffffffffffffffffffffffffffffffffffffffff166108fc848634610d919190613994565b610d9b9190613994565b9081150290604051600060405180830381858888f19350505050158015610dc6573d6000803e3d6000fd5b506000600960008a815260200190815260200160002081905550610deb82888a611e6b565b5050505050505050565b6daaeb6d7670e522a718067333cd4e81565b8260006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115610f45573373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610e7957610e7484848461212f565b610f51565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430336040518363ffffffff1660e01b8152600401610ec29291906137b6565b602060405180830381865afa158015610edf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f0391906137f4565b610f4457336040517fede71dcc000000000000000000000000000000000000000000000000000000008152600401610f3b9190613062565b60405180910390fd5b5b610f5084848461212f565b5b50505050565b6000610f628261214f565b9050919050565b600b5481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610fd6576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b61102f61221b565b6110396000612299565b565b600a805461104890613785565b80601f016020809104026020016040519081016040528092919081815260200182805461107490613785565b80156110c15780601f10611096576101008083540402835291602001916110c1565b820191906000526020600020905b8154815290600101906020018083116110a457829003601f168201915b505050505081565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6110fb61221b565b80600a908161110a9190613b6a565b5050565b611118838261175b565b8173ffffffffffffffffffffffffffffffffffffffff16633c6fc8173085846040518463ffffffff1660e01b815260040161115593929190613c5d565b600060405180830381600087803b15801561116f57600080fd5b505af1158015611183573d6000803e3d6000fd5b50505050505050565b60606003805461119b90613785565b80601f01602080910402602001604051908101604052809291908181526020018280546111c790613785565b80156112145780601f106111e957610100808354040283529160200191611214565b820191906000526020600020905b8154815290600101906020018083116111f757829003601f168201915b5050505050905090565b600c5481565b61122c61221b565b80600c8190555050565b8160006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b1115611331576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430836040518363ffffffff1660e01b81526004016112ae9291906137b6565b602060405180830381865afa1580156112cb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112ef91906137f4565b61133057806040517fede71dcc0000000000000000000000000000000000000000000000000000000081526004016113279190613062565b60405180910390fd5b5b61133b838361235f565b505050565b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61136e61221b565b80600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600060096000838152602001908152602001600020549050919050565b8360006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b111561150e573373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036114425761143d8585858561246a565b61151b565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663c617113430336040518363ffffffff1660e01b815260040161148b9291906137b6565b602060405180830381865afa1580156114a8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114cc91906137f4565b61150d57336040517fede71dcc0000000000000000000000000000000000000000000000000000000081526004016115049190613062565b60405180910390fd5b5b61151a8585858561246a565b5b5050505050565b606061152d8261187f565b61156c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161156390613d06565b60405180910390fd5b6000611577836124dd565b90506115c0611585846125cc565b600a611590866125fd565b611599856126a7565b6040516020016115ac9493929190613fce565b6040516020818303038152906040526126a7565b6040516020016115d0919061408f565b604051602081830303815290604052915050919050565b606060005a90506115f783611522565b91505a816116059190613994565b9050915091565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6116ce61221b565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361173d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161173490614123565b60405180910390fd5b61174681612299565b50565b61175161221b565b80600b8190555050565b3373ffffffffffffffffffffffffffffffffffffffff1661177b83610f57565b73ffffffffffffffffffffffffffffffffffffffff16146117d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117c89061418f565b60405180910390fd5b8060096000848152602001908152602001600020819055505050565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061184857506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806118785750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60008161188a61281f565b11158015611899575060005482105b80156118d7575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b60006118e982610f57565b90508073ffffffffffffffffffffffffffffffffffffffff1661190a612824565b73ffffffffffffffffffffffffffffffffffffffff161461196d5761193681611931612824565b611632565b61196c576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000600c54611a2f611a93565b10611a6f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a66906141fb565b60405180910390fd5b611a7a33600161282c565b6001611a84611a93565b611a8e9190613994565b905090565b60008054905090565b6000611aa78261214f565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611b0e576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080611b1a8461284a565b91509150611b308187611b2b612824565b612871565b611b7c57611b4586611b40612824565b611632565b611b7b576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603611be2576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611bef86868660016128b5565b8015611bfa57600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550611cc885611ca48888876128bb565b7c0200000000000000000000000000000000000000000000000000000000176128e3565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603611d4e5760006001850190506000600460008381526020019081526020016000205403611d4c576000548114611d4b578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611db6868686600161290e565b505050505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614611e5d576103e8601984611e03919061421b565b611e0d919061428c565b905060008290508073ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f19350505050158015611e5a573d6000803e3d6000fd5b50505b92915050565b600092915050565b6000611e768261214f565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611edd576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080611ee98461284a565b91509150600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603611f53576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611f6086868660016128b5565b8015611f6b57600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550612039856120158888876128bb565b7c0200000000000000000000000000000000000000000000000000000000176128e3565b600460008681526020019081526020016000208190555060007c02000000000000000000000000000000000000000000000000000000008416036120bf57600060018501905060006004600083815260200190815260200160002054036120bd5760005481146120bc578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612127868686600161290e565b505050505050565b61214a838383604051806020016040528060008152506113cf565b505050565b6000808290508061215e61281f565b116121e4576000548110156121e35760006004600083815260200190815260200160002054905060007c01000000000000000000000000000000000000000000000000000000008216036121e1575b600081036121d75760046000836001900393508381526020019081526020016000205490506121ad565b8092505050612216565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b612223612914565b73ffffffffffffffffffffffffffffffffffffffff166122416110c9565b73ffffffffffffffffffffffffffffffffffffffff1614612297576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161228e90614309565b60405180910390fd5b565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b806007600061236c612824565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16612419612824565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161245e9190612ef1565b60405180910390a35050565b612475848484610b4e565b60008373ffffffffffffffffffffffffffffffffffffffff163b146124d7576124a08484848461291c565b6124d6576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b6060600080600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e3f24f02856040518263ffffffff1660e01b815260040161253d91906130f8565b600060405180830381865afa15801561255a573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906125839190614399565b9150915060405180608001604052806049815260200161479c6049913982826040516020016125b4939291906144a9565b60405160208183030381529060405292505050919050565b60606125d782612a6c565b6040516020016125e7919061453c565b6040516020818303038152906040529050919050565b6060600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166379b92f27836040518263ffffffff1660e01b815260040161265a91906130f8565b600060405180830381865afa158015612677573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906126a0919061455e565b9050919050565b606060008251036126c95760405180602001604052806000815250905061281a565b600060405180606001604052806040815260200161475c60409139905060006003600285516126f891906145a7565b612702919061428c565b600461270e919061421b565b9050600060208261271f91906145a7565b67ffffffffffffffff8111156127385761273761326a565b5b6040519080825280601f01601f19166020018201604052801561276a5781602001600182028036833780820191505090505b509050818152600183018586518101602084015b818310156127d9576003830192508251603f8160121c168501518253600182019150603f81600c1c168501518253600182019150603f8160061c168501518253600182019150603f811685015182536001820191505061277e565b6003895106600181146127f357600281146128035761280e565b613d3d60f01b600283035261280e565b603d60f81b60018303525b50505050508093505050505b919050565b600090565b600033905090565b612846828260405180602001604052806000815250612bcc565b5050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e86128d2868684612c69565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b600033905090565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612942612824565b8786866040518563ffffffff1660e01b81526004016129649493929190614625565b6020604051808303816000875af19250505080156129a057506040513d601f19601f8201168201806040525081019061299d9190614686565b60015b612a19573d80600081146129d0576040519150601f19603f3d011682016040523d82523d6000602084013e6129d5565b606091505b506000815103612a11576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b606060008203612ab3576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612bc7565b600082905060005b60008214612ae5578080612ace906146b3565b915050600a82612ade919061428c565b9150612abb565b60008167ffffffffffffffff811115612b0157612b0061326a565b5b6040519080825280601f01601f191660200182016040528015612b335781602001600182028036833780820191505090505b5090505b60008514612bc057600182612b4c9190613994565b9150600a85612b5b91906146fb565b6030612b6791906145a7565b60f81b818381518110612b7d57612b7c61472c565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612bb9919061428c565b9450612b37565b8093505050505b919050565b612bd68383612c72565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612c6457600080549050600083820390505b612c16600086838060010194508661291c565b612c4c576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818110612c03578160005414612c6157600080fd5b50505b505050565b60009392505050565b60008054905060008203612cb2576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612cbf60008483856128b5565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612d3683612d2760008660006128bb565b612d3085612e2d565b176128e3565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b818114612dd757808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050612d9c565b5060008203612e12576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806000819055505050612e28600084838561290e565b505050565b60006001821460e11b9050919050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612e8681612e51565b8114612e9157600080fd5b50565b600081359050612ea381612e7d565b92915050565b600060208284031215612ebf57612ebe612e47565b5b6000612ecd84828501612e94565b91505092915050565b60008115159050919050565b612eeb81612ed6565b82525050565b6000602082019050612f066000830184612ee2565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612f46578082015181840152602081019050612f2b565b60008484015250505050565b6000601f19601f8301169050919050565b6000612f6e82612f0c565b612f788185612f17565b9350612f88818560208601612f28565b612f9181612f52565b840191505092915050565b60006020820190508181036000830152612fb68184612f63565b905092915050565b6000819050919050565b612fd181612fbe565b8114612fdc57600080fd5b50565b600081359050612fee81612fc8565b92915050565b60006020828403121561300a57613009612e47565b5b600061301884828501612fdf565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061304c82613021565b9050919050565b61305c81613041565b82525050565b60006020820190506130776000830184613053565b92915050565b61308681613041565b811461309157600080fd5b50565b6000813590506130a38161307d565b92915050565b600080604083850312156130c0576130bf612e47565b5b60006130ce85828601613094565b92505060206130df85828601612fdf565b9150509250929050565b6130f281612fbe565b82525050565b600060208201905061310d60008301846130e9565b92915050565b60006020828403121561312957613128612e47565b5b600061313784828501613094565b91505092915050565b60008060006060848603121561315957613158612e47565b5b600061316786828701613094565b935050602061317886828701613094565b925050604061318986828701612fdf565b9150509250925092565b6000806000606084860312156131ac576131ab612e47565b5b60006131ba86828701612fdf565b93505060206131cb86828701613094565b92505060406131dc86828701613094565b9150509250925092565b6000819050919050565b600061320b61320661320184613021565b6131e6565b613021565b9050919050565b600061321d826131f0565b9050919050565b600061322f82613212565b9050919050565b61323f81613224565b82525050565b600060208201905061325a6000830184613236565b92915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6132a282612f52565b810181811067ffffffffffffffff821117156132c1576132c061326a565b5b80604052505050565b60006132d4612e3d565b90506132e08282613299565b919050565b600067ffffffffffffffff821115613300576132ff61326a565b5b61330982612f52565b9050602081019050919050565b82818337600083830152505050565b6000613338613333846132e5565b6132ca565b90508281526020810184848401111561335457613353613265565b5b61335f848285613316565b509392505050565b600082601f83011261337c5761337b613260565b5b813561338c848260208601613325565b91505092915050565b6000602082840312156133ab576133aa612e47565b5b600082013567ffffffffffffffff8111156133c9576133c8612e4c565b5b6133d584828501613367565b91505092915050565b60006133e982613041565b9050919050565b6133f9816133de565b811461340457600080fd5b50565b600081359050613416816133f0565b92915050565b60008060006060848603121561343557613434612e47565b5b600061344386828701612fdf565b935050602061345486828701613407565b925050604061346586828701612fdf565b9150509250925092565b61347881612ed6565b811461348357600080fd5b50565b6000813590506134958161346f565b92915050565b600080604083850312156134b2576134b1612e47565b5b60006134c085828601613094565b92505060206134d185828601613486565b9150509250929050565b60006134e682613212565b9050919050565b6134f6816134db565b82525050565b600060208201905061351160008301846134ed565b92915050565b600061352282613041565b9050919050565b61353281613517565b811461353d57600080fd5b50565b60008135905061354f81613529565b92915050565b60006020828403121561356b5761356a612e47565b5b600061357984828501613540565b91505092915050565b600067ffffffffffffffff82111561359d5761359c61326a565b5b6135a682612f52565b9050602081019050919050565b60006135c66135c184613582565b6132ca565b9050828152602081018484840111156135e2576135e1613265565b5b6135ed848285613316565b509392505050565b600082601f83011261360a57613609613260565b5b813561361a8482602086016135b3565b91505092915050565b6000806000806080858703121561363d5761363c612e47565b5b600061364b87828801613094565b945050602061365c87828801613094565b935050604061366d87828801612fdf565b925050606085013567ffffffffffffffff81111561368e5761368d612e4c565b5b61369a878288016135f5565b91505092959194509250565b600060408201905081810360008301526136c08185612f63565b90506136cf60208301846130e9565b9392505050565b600080604083850312156136ed576136ec612e47565b5b60006136fb85828601613094565b925050602061370c85828601613094565b9150509250929050565b6000806040838503121561372d5761372c612e47565b5b600061373b85828601612fdf565b925050602061374c85828601612fdf565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061379d57607f821691505b6020821081036137b0576137af613756565b5b50919050565b60006040820190506137cb6000830185613053565b6137d86020830184613053565b9392505050565b6000815190506137ee8161346f565b92915050565b60006020828403121561380a57613809612e47565b5b6000613818848285016137df565b91505092915050565b7f4d7573742073656e6420746865206d696e742070726963650000000000000000600082015250565b6000613857601883612f17565b915061386282613821565b602082019050919050565b600060208201905081810360008301526138868161384a565b9050919050565b7f546f6b656e206973206e6f74206f6e2073616c65000000000000000000000000600082015250565b60006138c3601483612f17565b91506138ce8261388d565b602082019050919050565b600060208201905081810360008301526138f2816138b6565b9050919050565b7f4e6f7420656e6f7567682066756e640000000000000000000000000000000000600082015250565b600061392f600f83612f17565b915061393a826138f9565b602082019050919050565b6000602082019050818103600083015261395e81613922565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061399f82612fbe565b91506139aa83612fbe565b92508282039050818111156139c2576139c1613965565b5b92915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302613a2a7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826139ed565b613a3486836139ed565b95508019841693508086168417925050509392505050565b6000613a67613a62613a5d84612fbe565b6131e6565b612fbe565b9050919050565b6000819050919050565b613a8183613a4c565b613a95613a8d82613a6e565b8484546139fa565b825550505050565b600090565b613aaa613a9d565b613ab5818484613a78565b505050565b5b81811015613ad957613ace600082613aa2565b600181019050613abb565b5050565b601f821115613b1e57613aef816139c8565b613af8846139dd565b81016020851015613b07578190505b613b1b613b13856139dd565b830182613aba565b50505b505050565b600082821c905092915050565b6000613b4160001984600802613b23565b1980831691505092915050565b6000613b5a8383613b30565b9150826002028217905092915050565b613b7382612f0c565b67ffffffffffffffff811115613b8c57613b8b61326a565b5b613b968254613785565b613ba1828285613add565b600060209050601f831160018114613bd45760008415613bc2578287015190505b613bcc8582613b4e565b865550613c34565b601f198416613be2866139c8565b60005b82811015613c0a57848901518255600182019150602085019450602081019050613be5565b86831015613c275784890151613c23601f891682613b30565b8355505b6001600288020188555050505b505050505050565b6000613c4782613212565b9050919050565b613c5781613c3c565b82525050565b6000606082019050613c726000830186613c4e565b613c7f60208301856130e9565b613c8c60408301846130e9565b949350505050565b7f50726f7669646572546f6b656e2e746f6b656e5552493a206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b6000613cf0602983612f17565b9150613cfb82613c94565b604082019050919050565b60006020820190508181036000830152613d1f81613ce3565b9050919050565b600081905092915050565b7f7b226e616d65223a220000000000000000000000000000000000000000000000600082015250565b6000613d67600983613d26565b9150613d7282613d31565b600982019050919050565b6000613d8882612f0c565b613d928185613d26565b9350613da2818560208601612f28565b80840191505092915050565b7f222c226465736372697074696f6e223a22000000000000000000000000000000600082015250565b6000613de4601183613d26565b9150613def82613dae565b601182019050919050565b60008154613e0781613785565b613e118186613d26565b94506001821660008114613e2c5760018114613e4157613e74565b60ff1983168652811515820286019350613e74565b613e4a856139c8565b60005b83811015613e6c57815481890152600182019150602081019050613e4d565b838801955050505b50505092915050565b7f222c2261747472696275746573223a5b00000000000000000000000000000000600082015250565b6000613eb3601083613d26565b9150613ebe82613e7d565b601082019050919050565b600081519050919050565b600081905092915050565b6000613eea82613ec9565b613ef48185613ed4565b9350613f04818560208601612f28565b80840191505092915050565b7f5d2c22696d616765223a22646174613a696d6167652f7376672b786d6c3b626160008201527f736536342c000000000000000000000000000000000000000000000000000000602082015250565b6000613f6c602583613d26565b9150613f7782613f10565b602582019050919050565b7f227d000000000000000000000000000000000000000000000000000000000000600082015250565b6000613fb8600283613d26565b9150613fc382613f82565b600282019050919050565b6000613fd982613d5a565b9150613fe58287613d7d565b9150613ff082613dd7565b9150613ffc8286613dfa565b915061400782613ea6565b91506140138285613edf565b915061401e82613f5f565b915061402a8284613d7d565b915061403582613fab565b915081905095945050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000600082015250565b6000614079601d83613d26565b915061408482614043565b601d82019050919050565b600061409a8261406c565b91506140a68284613d7d565b915081905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061410d602683612f17565b9150614118826140b1565b604082019050919050565b6000602082019050818103600083015261413c81614100565b9050919050565b7f4f6e6c7920746865206f6e7765722063616e2073657420746865207072696365600082015250565b6000614179602083612f17565b915061418482614143565b602082019050919050565b600060208201905081810360008301526141a88161416c565b9050919050565b7f536f6c64206f7574000000000000000000000000000000000000000000000000600082015250565b60006141e5600883612f17565b91506141f0826141af565b602082019050919050565b60006020820190508181036000830152614214816141d8565b9050919050565b600061422682612fbe565b915061423183612fbe565b925082820261423f81612fbe565b9150828204841483151761425657614255613965565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061429782612fbe565b91506142a283612fbe565b9250826142b2576142b161425d565b5b828204905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006142f3602083612f17565b91506142fe826142bd565b602082019050919050565b60006020820190508181036000830152614322816142e6565b9050919050565b600061433c614337846132e5565b6132ca565b90508281526020810184848401111561435857614357613265565b5b614363848285612f28565b509392505050565b600082601f8301126143805761437f613260565b5b8151614390848260208601614329565b91505092915050565b600080604083850312156143b0576143af612e47565b5b600083015167ffffffffffffffff8111156143ce576143cd612e4c565b5b6143da8582860161436b565b925050602083015167ffffffffffffffff8111156143fb576143fa612e4c565b5b6144078582860161436b565b9150509250929050565b7f3c2f646566733e0a3c75736520687265663d2223000000000000000000000000600082015250565b6000614447601483613d26565b915061445282614411565b601482019050919050565b7f22202f3e0a3c2f7376673e0a0000000000000000000000000000000000000000600082015250565b6000614493600c83613d26565b915061449e8261445d565b600c82019050919050565b60006144b58286613d7d565b91506144c18285613d7d565b91506144cc8261443a565b91506144d88284613d7d565b91506144e382614486565b9150819050949350505050565b7f4c6169646261636b204c75200000000000000000000000000000000000000000600082015250565b6000614526600c83613d26565b9150614531826144f0565b600c82019050919050565b600061454782614519565b91506145538284613d7d565b915081905092915050565b60006020828403121561457457614573612e47565b5b600082015167ffffffffffffffff81111561459257614591612e4c565b5b61459e8482850161436b565b91505092915050565b60006145b282612fbe565b91506145bd83612fbe565b92508282019050808211156145d5576145d4613965565b5b92915050565b600082825260208201905092915050565b60006145f782613ec9565b61460181856145db565b9350614611818560208601612f28565b61461a81612f52565b840191505092915050565b600060808201905061463a6000830187613053565b6146476020830186613053565b61465460408301856130e9565b818103606083015261466681846145ec565b905095945050505050565b60008151905061468081612e7d565b92915050565b60006020828403121561469c5761469b612e47565b5b60006146aa84828501614671565b91505092915050565b60006146be82612fbe565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036146f0576146ef613965565b5b600182019050919050565b600061470682612fbe565b915061471183612fbe565b9250826147215761472061425d565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f3c7376672076696577426f783d2230203020313032342031303234222020786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f737667223e0a3c646566733e0aa26469706673582212207f41ca0c1bcce3b17b6c0daec85089f3d09561adbbca1248423983f983e10b8764736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000763aea91d2a87f3826f93b7f44ec72fd7f7086ae00000000000000000000000056bb106d2cc0a1209de6962a49634321ad0d9082
-----Decoded View---------------
Arg [0] : _assetProvider (address): 0x763AEA91d2A87F3826f93b7f44Ec72fD7F7086ae
Arg [1] : _committee (address): 0x56BB106d2Cc0a1209De6962a49634321AD0d9082
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000763aea91d2a87f3826f93b7f44ec72fd7f7086ae
Arg [1] : 00000000000000000000000056bb106d2cc0a1209de6962a49634321ad0d9082
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.