Overview
TokenID
124
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
SilkRoad
Compiler Version
v0.8.12+commit.f00d7308
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.12; // .-"""""""---,. n, ..--------.. // \- ,,'''-.. n '\. ,.n ..--'' ) // \- . .,;)) ''-, \ ''.. .'"'. .,-'' .n ..-'' (( o _/ // \- ' ''''':' ''-.'"|'--_ ' ' ,.--'''..-'' ' ' ' - . _/ // \- ''->. \' ,--. '/' >..'' _/ // \ (, / /. .\ \ '' ,) ./ // ''. . .. ') \ .. / (' .. ./ // ''-... . ._ .__ .''. //..\\ ,'. __ _ _,__.--' // /' (( ..'' ' ' '-' 6 \/__\/ ' '- - -' ' ','' - '\ // '(. 6, '.. /. '' .' ,,' ) ) ) // '\ \'C_,_ ==, / '_ _|\ ,'', ,,_.;-' _/ // '._ , ') E /'|_ ')()('_' \ C ,I''' _.-' // ''''''\ ((' ,/ '' (()) '' '-._ _ __---''' // '' '' ' '==='()'==' // '( )' // '6 ' JM 10/28 // \ / // ' ' // Silk Road ' ' // by ' ' // Ezra Miller and Steve Klebanoff ' ' // silkroad.art '..' // ERC721A Creator: Chiru Labs // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) /** * @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); } /** * @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`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @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 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); /** * @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; } // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @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); } // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Enumerable.sol) /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); } // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require( address(this).balance >= amount, "Address: insufficient balance" ); (bool success, ) = recipient.call{value: amount}(""); require( success, "Address: unable to send value, recipient may have reverted" ); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue( target, data, value, "Address: low-level call with value failed" ); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require( address(this).balance >= value, "Address: insufficient balance for call" ); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}( data ); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall( target, data, "Address: low-level static call failed" ); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall( target, data, "Address: low-level delegate call failed" ); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) /** * @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; } } // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @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); } } // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } } /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..). * * Does not support burning tokens to address(0). * * Assumes that an owner cannot have more than the 2**128 (max value of uint128) of supply */ contract ERC721A is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable { using Address for address; using Strings for uint256; struct TokenOwnership { address addr; uint64 startTimestamp; } struct AddressData { uint128 balance; uint128 numberMinted; } uint256 internal currentIndex = 0; uint256 internal immutable maxBatchSize; // 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 ownershipOf implementation for details. mapping(uint256 => TokenOwnership) internal _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev * `maxBatchSize` refers to how much a minter can mint at a time. */ constructor( string memory name_, string memory symbol_, uint256 maxBatchSize_ ) { require(maxBatchSize_ > 0, "ERC721A: max batch size must be nonzero"); _name = name_; _symbol = symbol_; maxBatchSize = maxBatchSize_; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view override returns (uint256) { return currentIndex; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view override returns (uint256) { require(index < totalSupply(), "ERC721A: global index out of bounds"); return index; } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. * This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first. * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) { require(index < balanceOf(owner), "ERC721A: owner index out of bounds"); uint256 numMintedSoFar = totalSupply(); uint256 tokenIdsIdx = 0; address currOwnershipAddr = address(0); for (uint256 i = 0; i < numMintedSoFar; i++) { TokenOwnership memory ownership = _ownerships[i]; if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { if (tokenIdsIdx == index) { return i; } tokenIdsIdx++; } } revert("ERC721A: unable to get token of owner by index"); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { require( owner != address(0), "ERC721A: balance query for the zero address" ); return uint256(_addressData[owner].balance); } function _numberMinted(address owner) internal view returns (uint256) { require( owner != address(0), "ERC721A: number minted query for the zero address" ); return uint256(_addressData[owner].numberMinted); } function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { require(_exists(tokenId), "ERC721A: owner query for nonexistent token"); uint256 lowestTokenToCheck; if (tokenId >= maxBatchSize) { lowestTokenToCheck = tokenId - maxBatchSize + 1; } for (uint256 curr = tokenId; curr >= lowestTokenToCheck; curr--) { TokenOwnership memory ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } revert("ERC721A: unable to determine the owner of token"); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return ownershipOf(tokenId).addr; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require( _exists(tokenId), "ERC721Metadata: URI query for nonexistent token" ); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @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, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721A.ownerOf(tokenId); require(to != owner, "ERC721A: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721A: approve caller is not owner nor approved for all" ); _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { require( _exists(tokenId), "ERC721A: approved query for nonexistent token" ); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public override { require(operator != _msgSender(), "ERC721A: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public override { _transfer(from, to, tokenId); require( _checkOnERC721Received(from, to, tokenId, _data), "ERC721A: transfer to non ERC721Receiver implementer" ); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return tokenId < currentIndex; } function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ""); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` cannot be larger than the max batch size. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { uint256 startTokenId = currentIndex; require(to != address(0), "ERC721A: mint to the zero address"); // We know if the first token in the batch doesn't exist, the other ones don't as well, because of serial ordering. require(!_exists(startTokenId), "ERC721A: token already minted"); require(quantity <= maxBatchSize, "ERC721A: quantity to mint too high"); _beforeTokenTransfers(address(0), to, startTokenId, quantity); AddressData memory addressData = _addressData[to]; _addressData[to] = AddressData( addressData.balance + uint128(quantity), addressData.numberMinted + uint128(quantity) ); _ownerships[startTokenId] = TokenOwnership(to, uint64(block.timestamp)); uint256 updatedIndex = startTokenId; for (uint256 i = 0; i < quantity; i++) { emit Transfer(address(0), to, updatedIndex); require( _checkOnERC721Received(address(0), to, updatedIndex, _data), "ERC721A: transfer to non ERC721Receiver implementer" ); updatedIndex++; } currentIndex = updatedIndex; _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) private { TokenOwnership memory prevOwnership = ownershipOf(tokenId); bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr || getApproved(tokenId) == _msgSender() || isApprovedForAll(prevOwnership.addr, _msgSender())); require( isApprovedOrOwner, "ERC721A: transfer caller is not owner nor approved" ); require( prevOwnership.addr == from, "ERC721A: transfer from incorrect owner" ); require(to != address(0), "ERC721A: transfer to the zero address"); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. unchecked { _addressData[from].balance -= 1; _addressData[to].balance += 1; } _ownerships[tokenId] = TokenOwnership(to, uint64(block.timestamp)); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; if (_ownerships[nextTokenId].addr == address(0)) { if (_exists(nextTokenId)) { _ownerships[nextTokenId] = TokenOwnership( prevOwnership.addr, prevOwnership.startTimestamp ); } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received( _msgSender(), from, tokenId, _data ) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert( "ERC721A: transfer to non ERC721Receiver implementer" ); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * * 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`. */ 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. * * 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` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} } // OpenZeppelin Contracts v4.4.1 (access/Ownable.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 Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { 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); } } // OpenZeppelin Contracts v4.4.1 (interfaces/IERC2981.sol) // OpenZeppelin Contracts v4.4.1 (interfaces/IERC165.sol) /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be payed in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); } /* * String shenanigans * Author: Zac Williamson, AZTEC * Licensed under the Unlicense */ contract StringUtils { /** * Convert an integer into an ASCII encoded base10 string * @param input integer * @return result base10-encoded string */ function toString(uint256 input) public pure returns (string memory result) { if (input < 10) { assembly { result := mload(0x40) mstore(result, 0x01) mstore8(add(result, 0x20), add(input, 0x30)) mstore(0x40, add(result, 0x40)) } return result; } assembly { result := mload(0x40) let mptr := add(result, 0x80) let table := add(result, 0xe0) // Store lookup table that maps an integer from 0 to 99 into a 2-byte ASCII equivalent mstore( table, 0x0000000000000000000000000000000000000000000000000000000000003030 ) mstore( add(table, 0x20), 0x3031303230333034303530363037303830393130313131323133313431353136 ) mstore( add(table, 0x40), 0x3137313831393230323132323233323432353236323732383239333033313332 ) mstore( add(table, 0x60), 0x3333333433353336333733383339343034313432343334343435343634373438 ) mstore( add(table, 0x80), 0x3439353035313532353335343535353635373538353936303631363236333634 ) mstore( add(table, 0xa0), 0x3635363636373638363937303731373237333734373537363737373837393830 ) mstore( add(table, 0xc0), 0x3831383238333834383538363837383838393930393139323933393439353936 ) mstore( add(table, 0xe0), 0x3937393839390000000000000000000000000000000000000000000000000000 ) /** * Convert `input` into ASCII. * * Slice 2 base-10 digits off of the input, use to index the ASCII lookup table. * * We start from the least significant digits, write results into mem backwards, * this prevents us from overwriting memory despite the fact that each mload * only contains 2 byteso f useful data. **/ { let v := input mstore(0x1e, mload(add(table, shl(1, mod(v, 100))))) mstore(0x1c, mload(add(table, shl(1, mod(div(v, 100), 100))))) mstore(0x1a, mload(add(table, shl(1, mod(div(v, 10000), 100))))) mstore( 0x18, mload(add(table, shl(1, mod(div(v, 1000000), 100)))) ) mstore( 0x16, mload(add(table, shl(1, mod(div(v, 100000000), 100)))) ) mstore( 0x14, mload(add(table, shl(1, mod(div(v, 10000000000), 100)))) ) mstore( 0x12, mload(add(table, shl(1, mod(div(v, 1000000000000), 100)))) ) mstore( 0x10, mload(add(table, shl(1, mod(div(v, 100000000000000), 100)))) ) mstore( 0x0e, mload( add(table, shl(1, mod(div(v, 10000000000000000), 100))) ) ) mstore( 0x0c, mload( add( table, shl(1, mod(div(v, 1000000000000000000), 100)) ) ) ) mstore( 0x0a, mload( add( table, shl(1, mod(div(v, 100000000000000000000), 100)) ) ) ) mstore( 0x08, mload( add( table, shl(1, mod(div(v, 10000000000000000000000), 100)) ) ) ) mstore( 0x06, mload( add( table, shl(1, mod(div(v, 1000000000000000000000000), 100)) ) ) ) mstore( 0x04, mload( add( table, shl( 1, mod(div(v, 100000000000000000000000000), 100) ) ) ) ) mstore( 0x02, mload( add( table, shl( 1, mod(div(v, 10000000000000000000000000000), 100) ) ) ) ) mstore( 0x00, mload( add( table, shl( 1, mod( div(v, 1000000000000000000000000000000), 100 ) ) ) ) ) mstore(add(mptr, 0x40), mload(0x1e)) v := div(v, 100000000000000000000000000000000) if v { mstore(0x1e, mload(add(table, shl(1, mod(v, 100))))) mstore( 0x1c, mload(add(table, shl(1, mod(div(v, 100), 100)))) ) mstore( 0x1a, mload(add(table, shl(1, mod(div(v, 10000), 100)))) ) mstore( 0x18, mload(add(table, shl(1, mod(div(v, 1000000), 100)))) ) mstore( 0x16, mload(add(table, shl(1, mod(div(v, 100000000), 100)))) ) mstore( 0x14, mload(add(table, shl(1, mod(div(v, 10000000000), 100)))) ) mstore( 0x12, mload( add(table, shl(1, mod(div(v, 1000000000000), 100))) ) ) mstore( 0x10, mload( add( table, shl(1, mod(div(v, 100000000000000), 100)) ) ) ) mstore( 0x0e, mload( add( table, shl(1, mod(div(v, 10000000000000000), 100)) ) ) ) mstore( 0x0c, mload( add( table, shl(1, mod(div(v, 1000000000000000000), 100)) ) ) ) mstore( 0x0a, mload( add( table, shl(1, mod(div(v, 100000000000000000000), 100)) ) ) ) mstore( 0x08, mload( add( table, shl( 1, mod(div(v, 10000000000000000000000), 100) ) ) ) ) mstore( 0x06, mload( add( table, shl( 1, mod(div(v, 1000000000000000000000000), 100) ) ) ) ) mstore( 0x04, mload( add( table, shl( 1, mod( div(v, 100000000000000000000000000), 100 ) ) ) ) ) mstore( 0x02, mload( add( table, shl( 1, mod( div(v, 10000000000000000000000000000), 100 ) ) ) ) ) mstore( 0x00, mload( add( table, shl( 1, mod( div(v, 1000000000000000000000000000000), 100 ) ) ) ) ) mstore(add(mptr, 0x20), mload(0x1e)) } v := div(v, 100000000000000000000000000000000) if v { mstore(0x1e, mload(add(table, shl(1, mod(v, 100))))) mstore( 0x1c, mload(add(table, shl(1, mod(div(v, 100), 100)))) ) mstore( 0x1a, mload(add(table, shl(1, mod(div(v, 10000), 100)))) ) mstore( 0x18, mload(add(table, shl(1, mod(div(v, 1000000), 100)))) ) mstore( 0x16, mload(add(table, shl(1, mod(div(v, 100000000), 100)))) ) mstore( 0x14, mload(add(table, shl(1, mod(div(v, 10000000000), 100)))) ) mstore( 0x12, mload( add(table, shl(1, mod(div(v, 1000000000000), 100))) ) ) mstore(mptr, mload(0x1e)) } } // get the length of the input let len := 1 { if gt(input, 999999999999999999999999999999999999999) { len := add(len, 39) input := div( input, 1000000000000000000000000000000000000000 ) } if gt(input, 99999999999999999999) { len := add(len, 20) input := div(input, 100000000000000000000) } if gt(input, 9999999999) { len := add(len, 10) input := div(input, 10000000000) } if gt(input, 99999) { len := add(len, 5) input := div(input, 100000) } if gt(input, 999) { len := add(len, 3) input := div(input, 1000) } if gt(input, 99) { len := add(len, 2) input := div(input, 100) } len := add(len, gt(input, 9)) } let offset := sub(96, len) mstore(result, len) mstore(add(result, 0x20), mload(add(mptr, offset))) mstore(add(result, 0x40), mload(add(add(mptr, 0x20), offset))) mstore(add(result, 0x60), mload(add(add(mptr, 0x40), offset))) // clear the junk off at the end of the string. Probs not neccessary but might confuse some debuggers mstore(add(result, add(0x20, len)), 0x00) mstore(0x40, add(result, 0x80)) } } /** * Convert a bytes32 into an ASCII encoded hex string * @param input bytes32 variable * @return result hex-encoded string */ function toHexString(bytes32 input) public pure returns (string memory result) { if (uint256(input) == 0x00) { assembly { result := mload(0x40) mstore(result, 0x40) mstore( add(result, 0x20), 0x3030303030303030303030303030303030303030303030303030303030303030 ) mstore( add(result, 0x40), 0x3030303030303030303030303030303030303030303030303030303030303030 ) mstore(0x40, add(result, 0x60)) } return result; } assembly { result := mload(0x40) let table := add(result, 0x60) // Store lookup table that maps an integer from 0 to 99 into a 2-byte ASCII equivalent // Store lookup table that maps an integer from 0 to ff into a 2-byte ASCII equivalent mstore( add(table, 0x1e), 0x3030303130323033303430353036303730383039306130623063306430653066 ) mstore( add(table, 0x3e), 0x3130313131323133313431353136313731383139316131623163316431653166 ) mstore( add(table, 0x5e), 0x3230323132323233323432353236323732383239326132623263326432653266 ) mstore( add(table, 0x7e), 0x3330333133323333333433353336333733383339336133623363336433653366 ) mstore( add(table, 0x9e), 0x3430343134323433343434353436343734383439346134623463346434653466 ) mstore( add(table, 0xbe), 0x3530353135323533353435353536353735383539356135623563356435653566 ) mstore( add(table, 0xde), 0x3630363136323633363436353636363736383639366136623663366436653666 ) mstore( add(table, 0xfe), 0x3730373137323733373437353736373737383739376137623763376437653766 ) mstore( add(table, 0x11e), 0x3830383138323833383438353836383738383839386138623863386438653866 ) mstore( add(table, 0x13e), 0x3930393139323933393439353936393739383939396139623963396439653966 ) mstore( add(table, 0x15e), 0x6130613161326133613461356136613761386139616161626163616461656166 ) mstore( add(table, 0x17e), 0x6230623162326233623462356236623762386239626162626263626462656266 ) mstore( add(table, 0x19e), 0x6330633163326333633463356336633763386339636163626363636463656366 ) mstore( add(table, 0x1be), 0x6430643164326433643464356436643764386439646164626463646464656466 ) mstore( add(table, 0x1de), 0x6530653165326533653465356536653765386539656165626563656465656566 ) mstore( add(table, 0x1fe), 0x6630663166326633663466356636663766386639666166626663666466656666 ) /** * Convert `input` into ASCII. * * Slice 2 base-10 digits off of the input, use to index the ASCII lookup table. * * We start from the least significant digits, write results into mem backwards, * this prevents us from overwriting memory despite the fact that each mload * only contains 2 byteso f useful data. **/ let base := input function slice(v, tableptr) { mstore(0x1e, mload(add(tableptr, shl(1, and(v, 0xff))))) mstore(0x1c, mload(add(tableptr, shl(1, and(shr(8, v), 0xff))))) mstore( 0x1a, mload(add(tableptr, shl(1, and(shr(16, v), 0xff)))) ) mstore( 0x18, mload(add(tableptr, shl(1, and(shr(24, v), 0xff)))) ) mstore( 0x16, mload(add(tableptr, shl(1, and(shr(32, v), 0xff)))) ) mstore( 0x14, mload(add(tableptr, shl(1, and(shr(40, v), 0xff)))) ) mstore( 0x12, mload(add(tableptr, shl(1, and(shr(48, v), 0xff)))) ) mstore( 0x10, mload(add(tableptr, shl(1, and(shr(56, v), 0xff)))) ) mstore( 0x0e, mload(add(tableptr, shl(1, and(shr(64, v), 0xff)))) ) mstore( 0x0c, mload(add(tableptr, shl(1, and(shr(72, v), 0xff)))) ) mstore( 0x0a, mload(add(tableptr, shl(1, and(shr(80, v), 0xff)))) ) mstore( 0x08, mload(add(tableptr, shl(1, and(shr(88, v), 0xff)))) ) mstore( 0x06, mload(add(tableptr, shl(1, and(shr(96, v), 0xff)))) ) mstore( 0x04, mload(add(tableptr, shl(1, and(shr(104, v), 0xff)))) ) mstore( 0x02, mload(add(tableptr, shl(1, and(shr(112, v), 0xff)))) ) mstore( 0x00, mload(add(tableptr, shl(1, and(shr(120, v), 0xff)))) ) } mstore(result, 0x40) slice(base, table) mstore(add(result, 0x40), mload(0x1e)) base := shr(128, base) slice(base, table) mstore(add(result, 0x20), mload(0x1e)) mstore(0x40, add(result, 0x60)) } } } interface IHashGenerator { function generateHash(uint256 i) external returns (bytes32); } interface IRonin { function mint() external; } contract SilkRoad is ERC721A, IERC2981, Ownable, StringUtils { uint256 public constant MAX_MINTS_PER_PRESALE = 2; uint256 public constant MAX_MINTS_PER_PUBLIC_SALE = 5; uint256 public constant NUM_ARTIST_PROOFS = 28; address public presaleAuthorizer; address payable public withdrawalAddress; bool public artLocked; IHashGenerator public hashGenerator; mapping(address => uint256) public presalesUsed; mapping(uint256 => bytes32) public tokenIdToHash; string public arweaveId; string public baseUri; string public artLicense; uint256 public immutable maxSupply; uint256 public presaleStartTime; uint256 public immutable pricePerPiece; uint256 public publicStartTime; uint256 public royaltyFeeBp = 750; event ArtCreated(address sentTo, uint256 amount, uint256 startIndex); constructor( string memory _baseUri, string memory _arweaveId, uint256 _pricePerPiece, uint256 _maxSupply, address payable _withdrawalAddress, address _presaleAuthorizer, IHashGenerator _hashGenerator, uint256 _presaleStartTime, uint256 _publicStartTime ) ERC721A("Silk Road by Ezra Miller", "SILK", NUM_ARTIST_PROOFS) { require( _presaleStartTime < _publicStartTime, "presale must be before public sale" ); require( _presaleStartTime > block.timestamp, "presale must be in future" ); baseUri = _baseUri; arweaveId = _arweaveId; pricePerPiece = _pricePerPiece; maxSupply = _maxSupply; withdrawalAddress = _withdrawalAddress; hashGenerator = _hashGenerator; presaleAuthorizer = _presaleAuthorizer; presaleStartTime = _presaleStartTime; publicStartTime = _publicStartTime; } function presale( uint256 numPieces, bytes32 r, bytes32 s, uint8 v ) public payable { require(presaleActive(), "presale not active"); require(msg.sender == tx.origin, "can not mint via contract"); require( (getSigner(msg.sender, r, s, v) == presaleAuthorizer), "signature must match" ); require( (presalesUsed[msg.sender] + numPieces) <= MAX_MINTS_PER_PRESALE, "already minted max amout of presales" ); presalesUsed[msg.sender] += numPieces; _makeArt(numPieces, msg.sender, true); } function publicSale(uint256 numPieces) public payable { require( publicSaleActive() || msg.sender == owner(), "sale must be active" ); require( numPieces <= MAX_MINTS_PER_PUBLIC_SALE, "cant mint that many at once" ); require(msg.sender == tx.origin, "can not mint via contract"); _makeArt(numPieces, msg.sender, true); } function amountLeft() public view returns (uint256) { return maxSupply - currentIndex; } function arweaveURI(uint256 tokenId) public view returns (string memory) { bytes32 seed = tokenIdToHash[tokenId]; require(!(seed == bytes32(0)), "no hash found"); return string( abi.encodePacked( "ar://", arweaveId, "/?seed=0x", toHexString(seed) ) ); } function withdrawEth() public { (bool sent, ) = withdrawalAddress.call{value: address(this).balance}( "" ); require(sent, "send failed"); } function tokenInfo(uint256 tokenId) public view returns (address, bytes32) { return (ownerOf(tokenId), tokenIdToHash[tokenId]); } function getOwners(uint256 start, uint256 end) public view returns (address[] memory) { address[] memory re = new address[](end - start); for (uint256 i = start; i < end; i++) { re[i - start] = ownerOf(i); } return re; } function getTokenHashes(uint256 start, uint256 end) public view returns (bytes32[] memory) { bytes32[] memory re = new bytes32[](end - start); for (uint256 i = start; i < end; i++) { re[i - start] = tokenIdToHash[i]; } return re; } function royaltyInfo(uint256 tokenId, uint256 salePrice) external view override returns (address receiver, uint256 royaltyAmount) { require(_exists(tokenId), "Nonexistent token"); return (withdrawalAddress, (salePrice * royaltyFeeBp) / 10000); } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721A, IERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } function getSigner( address aCustomAddress, bytes32 r, bytes32 s, uint8 v ) public pure returns (address) { bytes memory prefix = "\x19Ethereum Signed Message:\n32"; bytes32 hash = keccak256(abi.encodePacked(aCustomAddress)); bytes32 prefixedHash = keccak256(abi.encodePacked(prefix, hash)); return ecrecover(prefixedHash, v, r, s); } function presaleActive() public view returns (bool) { return block.timestamp >= presaleStartTime; } function publicSaleActive() public view returns (bool) { return block.timestamp >= publicStartTime; } // admin functions function setPresaleAuthorizer(address newAddress) public onlyOwner { presaleAuthorizer = newAddress; } function mintArtistProofs(address roninAddress) public onlyOwner { if (roninAddress != address(0)) { IRonin(roninAddress).mint(); } require(totalSupply() == 0, "cant mint proofs more than once"); _makeArt(NUM_ARTIST_PROOFS, msg.sender, false); } function setWithdrawalAddress(address payable givenWithdrawalAddress) public onlyOwner { withdrawalAddress = givenWithdrawalAddress; } function setArtLicense(string memory _artLicense) public onlyOwner { artLicense = _artLicense; } function setBaseUri(string memory newBaseUri) public onlyOwner { require(!artLocked, "metadata locked"); baseUri = newBaseUri; } function setPresaleStartTime(uint256 _presaleStartTime) public onlyOwner { presaleStartTime = _presaleStartTime; } function setPublicStartTime(uint256 _publicStartTime) public onlyOwner { publicStartTime = _publicStartTime; } function setArweaveId(string memory newArweaveId) public onlyOwner { require(!artLocked, "metadata locked"); arweaveId = newArweaveId; } function lockArt() public onlyOwner { artLocked = true; } function setRoyaltyFeeBp(uint256 _royaltyFeeBp) public onlyOwner { royaltyFeeBp = _royaltyFeeBp; } function _baseURI() internal view override returns (string memory) { return baseUri; } function _makeArt( uint256 numPieces, address mintTo, bool requirePayment ) private { require(amountLeft() >= numPieces, "sold out"); if (requirePayment) { require( msg.value == numPieces * pricePerPiece, "must send in correct amount" ); } uint256 startIndex = currentIndex; uint256 endIndex = startIndex + numPieces; _safeMint(mintTo, numPieces); _assignPsuedoRandomHashes(startIndex, endIndex); emit ArtCreated(mintTo, numPieces, startIndex); } function _assignPsuedoRandomHashes(uint256 startIndex, uint256 endIndex) private { for (uint256 i = startIndex; i < endIndex; i++) { tokenIdToHash[i] = hashGenerator.generateHash(i); } } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_baseUri","type":"string"},{"internalType":"string","name":"_arweaveId","type":"string"},{"internalType":"uint256","name":"_pricePerPiece","type":"uint256"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"},{"internalType":"address payable","name":"_withdrawalAddress","type":"address"},{"internalType":"address","name":"_presaleAuthorizer","type":"address"},{"internalType":"contract IHashGenerator","name":"_hashGenerator","type":"address"},{"internalType":"uint256","name":"_presaleStartTime","type":"uint256"},{"internalType":"uint256","name":"_publicStartTime","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"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":false,"internalType":"address","name":"sentTo","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"startIndex","type":"uint256"}],"name":"ArtCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_MINTS_PER_PRESALE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_MINTS_PER_PUBLIC_SALE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NUM_ARTIST_PROOFS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"amountLeft","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"artLicense","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"artLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"arweaveId","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"arweaveURI","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"baseUri","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":"start","type":"uint256"},{"internalType":"uint256","name":"end","type":"uint256"}],"name":"getOwners","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"aCustomAddress","type":"address"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"},{"internalType":"uint8","name":"v","type":"uint8"}],"name":"getSigner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"end","type":"uint256"}],"name":"getTokenHashes","outputs":[{"internalType":"bytes32[]","name":"","type":"bytes32[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hashGenerator","outputs":[{"internalType":"contract IHashGenerator","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockArt","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"roninAddress","type":"address"}],"name":"mintArtistProofs","outputs":[],"stateMutability":"nonpayable","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":"numPieces","type":"uint256"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"},{"internalType":"uint8","name":"v","type":"uint8"}],"name":"presale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"presaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleAuthorizer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"presalesUsed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pricePerPiece","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numPieces","type":"uint256"}],"name":"publicSale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"royaltyFeeBp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","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":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_artLicense","type":"string"}],"name":"setArtLicense","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newArweaveId","type":"string"}],"name":"setArweaveId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newBaseUri","type":"string"}],"name":"setBaseUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAddress","type":"address"}],"name":"setPresaleAuthorizer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_presaleStartTime","type":"uint256"}],"name":"setPresaleStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_publicStartTime","type":"uint256"}],"name":"setPublicStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_royaltyFeeBp","type":"uint256"}],"name":"setRoyaltyFeeBp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"givenWithdrawalAddress","type":"address"}],"name":"setWithdrawalAddress","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":"bytes32","name":"input","type":"bytes32"}],"name":"toHexString","outputs":[{"internalType":"string","name":"result","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"input","type":"uint256"}],"name":"toString","outputs":[{"internalType":"string","name":"result","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenIdToHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawEth","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawalAddress","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60e0604052600080556102ee6012553480156200001b57600080fd5b50604051620042aa380380620042aa8339810160408190526200003e9162000457565b6040518060400160405280601881526020017f53696c6b20526f616420627920457a7261204d696c6c657200000000000000008152506040518060400160405280600481526020016353494c4b60e01b815250601c60008111620000f95760405162461bcd60e51b815260206004820152602760248201527f455243373231413a206d61782062617463682073697a65206d757374206265206044820152666e6f6e7a65726f60c81b60648201526084015b60405180910390fd5b82516200010e906001906020860190620002b9565b50815162000124906002906020850190620002b9565b50608052506200013690503362000267565b808210620001925760405162461bcd60e51b815260206004820152602260248201527f70726573616c65206d757374206265206265666f7265207075626c69632073616044820152616c6560f01b6064820152608401620000f0565b428211620001e35760405162461bcd60e51b815260206004820152601960248201527f70726573616c65206d75737420626520696e20667574757265000000000000006044820152606401620000f0565b8851620001f890600e9060208c0190620002b9565b5087516200020e90600d9060208b0190620002b9565b5060c09690965260a094909452600980546001600160a01b039485166001600160a01b031991821617909155600a8054928516928216929092179091556008805492909316911617905560105560115550620005629050565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620002c79062000525565b90600052602060002090601f016020900481019282620002eb576000855562000336565b82601f106200030657805160ff191683800117855562000336565b8280016001018555821562000336579182015b828111156200033657825182559160200191906001019062000319565b506200034492915062000348565b5090565b5b8082111562000344576000815560010162000349565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200038757600080fd5b81516001600160401b0380821115620003a457620003a46200035f565b604051601f8301601f19908116603f01168101908282118183101715620003cf57620003cf6200035f565b81604052838152602092508683858801011115620003ec57600080fd5b600091505b83821015620004105785820183015181830184015290820190620003f1565b83821115620004225760008385830101525b9695505050505050565b6001600160a01b03811681146200044257600080fd5b50565b805162000452816200042c565b919050565b60008060008060008060008060006101208a8c0312156200047757600080fd5b89516001600160401b03808211156200048f57600080fd5b6200049d8d838e0162000375565b9a5060208c0151915080821115620004b457600080fd5b50620004c38c828d0162000375565b98505060408a0151965060608a0151955060808a0151620004e4816200042c565b60a08b0151909550620004f7816200042c565b93506200050760c08b0162000445565b925060e08a015191506101008a015190509295985092959850929598565b600181811c908216806200053a57607f821691505b602082108114156200055c57634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c051613cfc620005ae600039600081816106650152612deb0152600081816109dd0152612133015260008181612c2401528181612c4e015261324d0152613cfc6000f3fe6080604052600436106103975760003560e01c80638da5cb5b116101dc578063bcb7388c11610102578063e011ac87116100a0578063ef8a187c1161006f578063ef8a187c14610abd578063f2bcd02214610add578063f2fde38b14610afd578063f860580114610b1d57600080fd5b8063e011ac8714610a1f578063e985e9c514610a34578063ea57ee8b14610a7d578063edb961ff14610a9d57600080fd5b8063cb0daa57116100dc578063cb0daa5714610995578063cc33c875146109ab578063d5abeb01146109cb578063db8cc8fa146109ff57600080fd5b8063bcb7388c14610928578063c7ce46c814610955578063c87b56dd1461097557600080fd5b8063a546993e1161017a578063b287c8ed11610149578063b287c8ed146108b0578063b5c904b9146108c3578063b88d4fde146108f0578063bc8893b41461091057600080fd5b8063a546993e1461083a578063a80012111461085a578063a82524b21461087a578063a96d60b01461089057600080fd5b80639f300a56116101b65780639f300a56146107c4578063a0bcfc7f146107e5578063a0ef91df14610805578063a22cb4651461081a57600080fd5b80638da5cb5b1461077c57806395d89b411461079a5780639abc8320146107af57600080fd5b80633482624d116102c1578063621a1f741161025f57806370a082311161022e57806370a082311461071f578063715018a61461073f5780637bafb9df1461075457806381632a051461076757600080fd5b8063621a1f741461069d5780636352211e146106ca5780636900a3ae146106ea5780636b1786be1461070a57600080fd5b80634f6ccce71161029b5780634f6ccce71461061b57806353135ca01461063b578063575ca2c7146106535780635fd1bbc41461068757600080fd5b80633482624d146105d15780633ecb79e7146105e657806342842e0e146105fb57600080fd5b806318160ddd11610339578063296cab5511610308578063296cab55146105325780632a55205a146105525780632f745c591461059157806333814bec146105b157600080fd5b806318160ddd146104bd57806321b8092e146104d257806323b872dd146104f2578063261a80d51461051257600080fd5b8063081812fc11610375578063081812fc14610420578063095ea7b3146104585780630d5463611461047a578063126d7c701461049a57600080fd5b806301ffc9a71461039c57806304822058146103d157806306fdde03146103fe575b600080fd5b3480156103a857600080fd5b506103bc6103b7366004613511565b610b32565b60405190151581526020015b60405180910390f35b3480156103dd57600080fd5b506103f16103ec36600461352e565b610b5d565b6040516103c89190613550565b34801561040a57600080fd5b50610413610c0f565b6040516103c891906135f5565b34801561042c57600080fd5b5061044061043b366004613608565b610ca1565b6040516001600160a01b0390911681526020016103c8565b34801561046457600080fd5b50610478610473366004613636565b610d31565b005b34801561048657600080fd5b506104786104953660046136ee565b610e49565b3480156104a657600080fd5b506104af600581565b6040519081526020016103c8565b3480156104c957600080fd5b506000546104af565b3480156104de57600080fd5b506104786104ed366004613737565b610e8a565b3480156104fe57600080fd5b5061047861050d366004613754565b610ed6565b34801561051e57600080fd5b5061047861052d366004613737565b610ee1565b34801561053e57600080fd5b5061047861054d366004613608565b610f2d565b34801561055e57600080fd5b5061057261056d36600461352e565b610f5c565b604080516001600160a01b0390931683526020830191909152016103c8565b34801561059d57600080fd5b506104af6105ac366004613636565b610fdf565b3480156105bd57600080fd5b50600854610440906001600160a01b031681565b3480156105dd57600080fd5b506104af601c81565b3480156105f257600080fd5b5061041361114d565b34801561060757600080fd5b50610478610616366004613754565b6111db565b34801561062757600080fd5b506104af610636366004613608565b6111f6565b34801561064757600080fd5b506010544210156103bc565b34801561065f57600080fd5b506104af7f000000000000000000000000000000000000000000000000000000000000000081565b34801561069357600080fd5b506104af60115481565b3480156106a957600080fd5b506104af6106b8366004613608565b600c6020526000908152604090205481565b3480156106d657600080fd5b506104406106e5366004613608565b611258565b3480156106f657600080fd5b50610413610705366004613608565b61126a565b34801561071657600080fd5b50610413611803565b34801561072b57600080fd5b506104af61073a366004613737565b611810565b34801561074b57600080fd5b506104786118a1565b6104786107623660046137ab565b6118d7565b34801561077357600080fd5b506104af600281565b34801561078857600080fd5b506007546001600160a01b0316610440565b3480156107a657600080fd5b50610413611a7d565b3480156107bb57600080fd5b50610413611a8c565b3480156107d057600080fd5b506009546103bc90600160a01b900460ff1681565b3480156107f157600080fd5b506104786108003660046136ee565b611a99565b34801561081157600080fd5b50610478611b22565b34801561082657600080fd5b506104786108353660046137ea565b611bb6565b34801561084657600080fd5b50610413610855366004613608565b611c7b565b34801561086657600080fd5b50610478610875366004613608565b611cfd565b34801561088657600080fd5b506104af60105481565b34801561089c57600080fd5b50600a54610440906001600160a01b031681565b6104786108be366004613608565b611d2c565b3480156108cf57600080fd5b506108e36108de36600461352e565b611e31565b6040516103c89190613828565b3480156108fc57600080fd5b5061047861090b366004613860565b611ed4565b34801561091c57600080fd5b506011544210156103bc565b34801561093457600080fd5b506104af610943366004613737565b600b6020526000908152604090205481565b34801561096157600080fd5b506104406109703660046138e0565b611f07565b34801561098157600080fd5b50610413610990366004613608565b61201a565b3480156109a157600080fd5b506104af60125481565b3480156109b757600080fd5b506105726109c6366004613608565b6120d7565b3480156109d757600080fd5b506104af7f000000000000000000000000000000000000000000000000000000000000000081565b348015610a0b57600080fd5b50610478610a1a366004613608565b6120fa565b348015610a2b57600080fd5b506104af612129565b348015610a4057600080fd5b506103bc610a4f36600461391d565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b348015610a8957600080fd5b50610478610a98366004613737565b61215c565b348015610aa957600080fd5b50610413610ab8366004613608565b612246565b348015610ac957600080fd5b50610478610ad83660046136ee565b612634565b348015610ae957600080fd5b50600954610440906001600160a01b031681565b348015610b0957600080fd5b50610478610b18366004613737565b6126bd565b348015610b2957600080fd5b50610478612755565b60006001600160e01b0319821663152a902d60e11b1480610b575750610b5782612794565b92915050565b60606000610b6b8484613961565b67ffffffffffffffff811115610b8357610b83613662565b604051908082528060200260200182016040528015610bac578160200160208202803683370190505b509050835b83811015610c0757610bc281611258565b82610bcd8784613961565b81518110610bdd57610bdd613978565b6001600160a01b039092166020928302919091019091015280610bff8161398e565b915050610bb1565b509392505050565b606060018054610c1e906139a9565b80601f0160208091040260200160405190810160405280929190818152602001828054610c4a906139a9565b8015610c975780601f10610c6c57610100808354040283529160200191610c97565b820191906000526020600020905b815481529060010190602001808311610c7a57829003601f168201915b5050505050905090565b6000610cae826000541190565b610d155760405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201526c3c34b9ba32b73a103a37b5b2b760991b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b6000610d3c82611258565b9050806001600160a01b0316836001600160a01b03161415610dab5760405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201526132b960f11b6064820152608401610d0c565b336001600160a01b0382161480610dc75750610dc78133610a4f565b610e395760405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c000000000000006064820152608401610d0c565b610e448383836127ff565b505050565b6007546001600160a01b03163314610e735760405162461bcd60e51b8152600401610d0c906139e4565b8051610e8690600f90602084019061346b565b5050565b6007546001600160a01b03163314610eb45760405162461bcd60e51b8152600401610d0c906139e4565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b610e4483838361285b565b6007546001600160a01b03163314610f0b5760405162461bcd60e51b8152600401610d0c906139e4565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b6007546001600160a01b03163314610f575760405162461bcd60e51b8152600401610d0c906139e4565b601055565b600080610f6a846000541190565b610faa5760405162461bcd60e51b81526020600482015260116024820152702737b732bc34b9ba32b73a103a37b5b2b760791b6044820152606401610d0c565b6009546012546001600160a01b039091169061271090610fca9086613a19565b610fd49190613a4e565b915091509250929050565b6000610fea83611810565b82106110435760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e604482015261647360f01b6064820152608401610d0c565b600080549080805b838110156110ed576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff16918301919091521561109e57805192505b876001600160a01b0316836001600160a01b031614156110da57868414156110cc57509350610b5792505050565b836110d68161398e565b9450505b50806110e58161398e565b91505061104b565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201526d0deeedccae440c4f240d2dcc8caf60931b6064820152608401610d0c565b600f805461115a906139a9565b80601f0160208091040260200160405190810160405280929190818152602001828054611186906139a9565b80156111d35780601f106111a8576101008083540402835291602001916111d3565b820191906000526020600020905b8154815290600101906020018083116111b657829003601f168201915b505050505081565b610e4483838360405180602001604052806000815250611ed4565b6000805482106112545760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f756044820152626e647360e81b6064820152608401610d0c565b5090565b600061126382612ba2565b5192915050565b6060600a82101561129257506040516001815260308201602082015360408101604052919050565b60405190506080810160e0820161303081527f303130323033303430353036303730383039313031313132313331343135313660208201527f313731383139323032313232323332343235323632373238323933303331333260408201527f333333343335333633373338333934303431343234333434343534363437343860608201527f343935303531353235333534353535363537353835393630363136323633363460808201527f363536363637363836393730373137323733373437353736373737383739383060a08201527f383138323833383438353836383738383839393039313932393339343935393660c08201526539373938393960d01b60e0820152836064810660011b820151601e5260648082040660011b820151601c52606461271082040660011b820151601a526064620f424082040660011b82015160185260646305f5e10082040660011b82015160165260646402540be40082040660011b820151601452606464e8d4a5100082040660011b8201516012526064655af3107a400082040660011b8201516010526064662386f26fc1000082040660011b820151600e526064670de0b6b3a764000082040660011b820151600c52606468056bc75e2d6310000082040660011b820151600a52606469021e19e0c9bab240000082040660011b820151600852606469d3c21bcecceda100000082040660011b82015160065260646a52b7d2dcc80cd2e400000082040660011b82015160045260646b204fce5e3e2502611000000082040660011b82015160025260646c0c9f2c9cd04674edea4000000082040660011b820151600052601e5160408401526d04ee2d6d415b85acef8100000000810490508015611670576064810660011b820151601e5260648082040660011b820151601c52606461271082040660011b820151601a526064620f424082040660011b82015160185260646305f5e10082040660011b82015160165260646402540be40082040660011b820151601452606464e8d4a5100082040660011b8201516012526064655af3107a400082040660011b8201516010526064662386f26fc1000082040660011b820151600e526064670de0b6b3a764000082040660011b820151600c52606468056bc75e2d6310000082040660011b820151600a52606469021e19e0c9bab240000082040660011b820151600852606469d3c21bcecceda100000082040660011b82015160065260646a52b7d2dcc80cd2e400000082040660011b82015160045260646b204fce5e3e2502611000000082040660011b82015160025260646c0c9f2c9cd04674edea4000000082040660011b820151600052601e5160208401525b6d04ee2d6d415b85acef810000000090048015611707576064810660011b820151601e5260648082040660011b820151601c52606461271082040660011b820151601a526064620f424082040660011b82015160185260646305f5e10082040660011b82015160165260646402540be40082040660011b820151601452606464e8d4a5100082040660011b820151601252601e5183525b505060017002f050fe938943acc45f65567fffffffff84111561173e577002f050fe938943acc45f65568000000000909304926027015b68056bc75e2d630fffff8411156117615768056bc75e2d63100000909304926014015b6402540be3ff84111561177c576402540be40090930492600a015b6201869f84111561179357620186a0909304926005015b6103e78411156117a8576103e8909304926003015b60638411156117bb576064909304926002015b60098411810190508060600381845280830151602085015280602084010151604085015280604084010151606085015250600081602001840152505060808101604052919050565b600d805461115a906139a9565b60006001600160a01b03821661187c5760405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b6064820152608401610d0c565b506001600160a01b03166000908152600460205260409020546001600160801b031690565b6007546001600160a01b031633146118cb5760405162461bcd60e51b8152600401610d0c906139e4565b6118d56000612d4c565b565b60105442101561191e5760405162461bcd60e51b815260206004820152601260248201527170726573616c65206e6f742061637469766560701b6044820152606401610d0c565b3332146119695760405162461bcd60e51b815260206004820152601960248201527818d85b881b9bdd081b5a5b9d081d9a584818dbdb9d1c9858dd603a1b6044820152606401610d0c565b6008546001600160a01b031661198133858585611f07565b6001600160a01b0316146119ce5760405162461bcd60e51b81526020600482015260146024820152730e6d2cedcc2e8eae4ca40daeae6e840dac2e8c6d60631b6044820152606401610d0c565b336000908152600b60205260409020546002906119ec908690613a62565b1115611a465760405162461bcd60e51b8152602060048201526024808201527f616c7265616479206d696e746564206d617820616d6f7574206f662070726573604482015263616c657360e01b6064820152608401610d0c565b336000908152600b602052604081208054869290611a65908490613a62565b90915550611a77905084336001612d9e565b50505050565b606060028054610c1e906139a9565b600e805461115a906139a9565b6007546001600160a01b03163314611ac35760405162461bcd60e51b8152600401610d0c906139e4565b600954600160a01b900460ff1615611b0f5760405162461bcd60e51b815260206004820152600f60248201526e1b595d1859185d18481b1bd8dad959608a1b6044820152606401610d0c565b8051610e8690600e90602084019061346b565b6009546040516000916001600160a01b03169047908381818185875af1925050503d8060008114611b6f576040519150601f19603f3d011682016040523d82523d6000602084013e611b74565b606091505b5050905080611bb35760405162461bcd60e51b815260206004820152600b60248201526a1cd95b990819985a5b195960aa1b6044820152606401610d0c565b50565b6001600160a01b038216331415611c0f5760405162461bcd60e51b815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c65720000000000006044820152606401610d0c565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000818152600c602052604090205460609080611cca5760405162461bcd60e51b815260206004820152600d60248201526c1b9bc81a185cda08199bdd5b99609a1b6044820152606401610d0c565b600d611cd582612246565b604051602001611ce6929190613a96565b604051602081830303815290604052915050919050565b6007546001600160a01b03163314611d275760405162461bcd60e51b8152600401610d0c906139e4565b601255565b60115442101580611d4757506007546001600160a01b031633145b611d895760405162461bcd60e51b815260206004820152601360248201527273616c65206d7573742062652061637469766560681b6044820152606401610d0c565b6005811115611dda5760405162461bcd60e51b815260206004820152601b60248201527f63616e74206d696e742074686174206d616e79206174206f6e636500000000006044820152606401610d0c565b333214611e255760405162461bcd60e51b815260206004820152601960248201527818d85b881b9bdd081b5a5b9d081d9a584818dbdb9d1c9858dd603a1b6044820152606401610d0c565b611bb381336001612d9e565b60606000611e3f8484613961565b67ffffffffffffffff811115611e5757611e57613662565b604051908082528060200260200182016040528015611e80578160200160208202803683370190505b509050835b83811015610c07576000818152600c602052604090205482611ea78784613961565b81518110611eb757611eb7613978565b602090810291909101015280611ecc8161398e565b915050611e85565b611edf84848461285b565b611eeb84848484612ed4565b611a775760405162461bcd60e51b8152600401610d0c90613b6c565b6000806040518060400160405280601c81526020017f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152509050600086604051602001611f6d919060609190911b6bffffffffffffffffffffffff1916815260140190565b60405160208183030381529060405280519060200120905060008282604051602001611f9a929190613bbf565b60408051601f1981840301815282825280516020918201206000845290830180835281905260ff8816918301919091526060820189905260808201889052915060019060a0016020604051602081039080840390855afa158015612002573d6000803e3d6000fd5b5050506020604051035193505050505b949350505050565b6060612027826000541190565b61208b5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610d0c565b6000612095612fcf565b905060008151116120b557604051806020016040528060008152506120d0565b806120bf84612fde565b604051602001611ce6929190613be1565b9392505050565b6000806120e383611258565b6000938452600c6020526040909320549293915050565b6007546001600160a01b031633146121245760405162461bcd60e51b8152600401610d0c906139e4565b601155565b60008054612157907f0000000000000000000000000000000000000000000000000000000000000000613961565b905090565b6007546001600160a01b031633146121865760405162461bcd60e51b8152600401610d0c906139e4565b6001600160a01b038116156121e957806001600160a01b0316631249c58b6040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156121d057600080fd5b505af11580156121e4573d6000803e3d6000fd5b505050505b600054156122395760405162461bcd60e51b815260206004820152601f60248201527f63616e74206d696e742070726f6f6673206d6f7265207468616e206f6e6365006044820152606401610d0c565b611bb3601c336000612d9e565b6060816122ae576040519050604081527f303030303030303030303030303030303030303030303030303030303030303060208201527f3030303030303030303030303030303030303030303030303030303030303030604082015260608101604052919050565b506040517f3030303130323033303430353036303730383039306130623063306430653066607e8201527f3130313131323133313431353136313731383139316131623163316431653166609e8201527f323032313232323332343235323632373238323932613262326332643265326660be8201527f333033313332333333343335333633373338333933613362336333643365336660de8201527f343034313432343334343435343634373438343934613462346334643465346660fe8201527f353035313532353335343535353635373538353935613562356335643565356661011e8201527f363036313632363336343635363636373638363936613662366336643665366661013e8201527f373037313732373337343735373637373738373937613762376337643765376661015e8201527f383038313832383338343835383638373838383938613862386338643865386661017e8201527f393039313932393339343935393639373938393939613962396339643965396661019e8201527f61306131613261336134613561366137613861396161616261636164616561666101be8201527f62306231623262336234623562366237623862396261626262636264626562666101de8201527f63306331633263336334633563366337633863396361636263636364636563666101fe8201527f643064316432643364346435643664376438643964616462646364646465646661021e8201527f653065316532653365346535653665376538653965616562656365646565656661023e8201527f663066316632663366346635663666376638663966616662666366646665666661025e82015260608101826125fb565b6101fe600182901b8116830151601e52600782901c8116830151601c52600f82901c8116830151601a52601782901c8116830151601852601f82901c8116830151601652602782901c8116830151601452602f82901c8116830151601252603782901c8116830151601052603f82901c8116830151600e52604782901c8116830151600c52604f82901c8116830151600a52605782901c8116830151600852605f82901c8116830151600652606782901c8116830151600452606f82901c811683015160025260779190911c160151600052565b604083526126098282612527565b601e51604084015260801c61261e8282612527565b5050601e51602082015260608101604052919050565b6007546001600160a01b0316331461265e5760405162461bcd60e51b8152600401610d0c906139e4565b600954600160a01b900460ff16156126aa5760405162461bcd60e51b815260206004820152600f60248201526e1b595d1859185d18481b1bd8dad959608a1b6044820152606401610d0c565b8051610e8690600d90602084019061346b565b6007546001600160a01b031633146126e75760405162461bcd60e51b8152600401610d0c906139e4565b6001600160a01b03811661274c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610d0c565b611bb381612d4c565b6007546001600160a01b0316331461277f5760405162461bcd60e51b8152600401610d0c906139e4565b6009805460ff60a01b1916600160a01b179055565b60006001600160e01b031982166380ac58cd60e01b14806127c557506001600160e01b03198216635b5e139f60e01b145b806127e057506001600160e01b0319821663780e9d6360e01b145b80610b5757506301ffc9a760e01b6001600160e01b0319831614610b57565b60008281526005602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061286682612ba2565b80519091506000906001600160a01b0316336001600160a01b0316148061289d57503361289284610ca1565b6001600160a01b0316145b806128af575081516128af9033610a4f565b9050806129195760405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610d0c565b846001600160a01b031682600001516001600160a01b03161461298d5760405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f72726563746044820152651037bbb732b960d11b6064820152608401610d0c565b6001600160a01b0384166129f15760405162461bcd60e51b815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608401610d0c565b612a0160008484600001516127ff565b6001600160a01b03858116600090815260046020908152604080832080546fffffffffffffffffffffffffffffffff198082166001600160801b03928316600019018316179092558986168086528386208054938416938316600190810190931693909317909255825180840184529182524267ffffffffffffffff9081168386019081528a8752600390955292852091518254945196166001600160e01b031990941693909317600160a01b95909216949094021790925590612ac6908590613a62565b6000818152600360205260409020549091506001600160a01b0316612b5857612af0816000541190565b15612b585760408051808201825284516001600160a01b03908116825260208087015167ffffffffffffffff9081168285019081526000878152600390935294909120925183549451909116600160a01b026001600160e01b03199094169116179190911790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b6040805180820190915260008082526020820152612bc1826000541190565b612c205760405162461bcd60e51b815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e657869736044820152693a32b73a103a37b5b2b760b11b6064820152608401610d0c565b60007f00000000000000000000000000000000000000000000000000000000000000008310612c8157612c737f000000000000000000000000000000000000000000000000000000000000000084613961565b612c7e906001613a62565b90505b825b818110612ceb576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff169183019190915215612cd857949350505050565b5080612ce381613c10565b915050612c83565b5060405162461bcd60e51b815260206004820152602f60248201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560448201526e1037bbb732b91037b3103a37b5b2b760891b6064820152608401610d0c565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b82612da7612129565b1015612de05760405162461bcd60e51b81526020600482015260086024820152671cdbdb19081bdd5d60c21b6044820152606401610d0c565b8015612e5e57612e107f000000000000000000000000000000000000000000000000000000000000000084613a19565b3414612e5e5760405162461bcd60e51b815260206004820152601b60248201527f6d7573742073656e6420696e20636f727265637420616d6f756e7400000000006044820152606401610d0c565b6000805490612e6d8583613a62565b9050612e7984866130dc565b612e8382826130f6565b604080516001600160a01b0386168152602081018790529081018390527fd4edfa830a0369bb56cf2931d6c77b8c76cb5f233ddcff884534488218118b899060600160405180910390a15050505050565b60006001600160a01b0384163b15612fc757604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612f18903390899088908890600401613c27565b6020604051808303816000875af1925050508015612f53575060408051601f3d908101601f19168201909252612f5091810190613c5a565b60015b612fad573d808015612f81576040519150601f19603f3d011682016040523d82523d6000602084013e612f86565b606091505b508051612fa55760405162461bcd60e51b8152600401610d0c90613b6c565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612012565b506001612012565b6060600e8054610c1e906139a9565b6060816130025750506040805180820190915260018152600360fc1b602082015290565b8160005b811561302c57806130168161398e565b91506130259050600a83613a4e565b9150613006565b60008167ffffffffffffffff81111561304757613047613662565b6040519080825280601f01601f191660200182016040528015613071576020820181803683370190505b5090505b841561201257613086600183613961565b9150613093600a86613c77565b61309e906030613a62565b60f81b8183815181106130b3576130b3613978565b60200101906001600160f81b031916908160001a9053506130d5600a86613a4e565b9450613075565b610e86828260405180602001604052806000815250613190565b815b81811015610e4457600a546040516320325e0360e11b8152600481018390526001600160a01b0390911690634064bc06906024016020604051808303816000875af115801561314b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061316f9190613c8b565b6000828152600c6020526040902055806131888161398e565b9150506130f8565b6000546001600160a01b0384166131f35760405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610d0c565b6131fe816000541190565b1561324b5760405162461bcd60e51b815260206004820152601d60248201527f455243373231413a20746f6b656e20616c7265616479206d696e7465640000006044820152606401610d0c565b7f00000000000000000000000000000000000000000000000000000000000000008311156132c65760405162461bcd60e51b815260206004820152602260248201527f455243373231413a207175616e7469747920746f206d696e7420746f6f2068696044820152610ced60f31b6064820152608401610d0c565b6001600160a01b0384166000908152600460209081526040918290208251808401845290546001600160801b038082168352600160801b9091041691810191909152815180830190925280519091908190613322908790613ca4565b6001600160801b031681526020018583602001516133409190613ca4565b6001600160801b039081169091526001600160a01b0380881660008181526004602090815260408083208751978301518716600160801b0297909616969096179094558451808601865291825267ffffffffffffffff4281168386019081528883526003909552948120915182549451909516600160a01b026001600160e01b031990941694909216939093179190911790915582905b858110156134605760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46134246000888488612ed4565b6134405760405162461bcd60e51b8152600401610d0c90613b6c565b8161344a8161398e565b92505080806134589061398e565b9150506133d7565b506000819055612b9a565b828054613477906139a9565b90600052602060002090601f01602090048101928261349957600085556134df565b82601f106134b257805160ff19168380011785556134df565b828001600101855582156134df579182015b828111156134df5782518255916020019190600101906134c4565b506112549291505b8082111561125457600081556001016134e7565b6001600160e01b031981168114611bb357600080fd5b60006020828403121561352357600080fd5b81356120d0816134fb565b6000806040838503121561354157600080fd5b50508035926020909101359150565b6020808252825182820181905260009190848201906040850190845b818110156135915783516001600160a01b03168352928401929184019160010161356c565b50909695505050505050565b60005b838110156135b85781810151838201526020016135a0565b83811115611a775750506000910152565b600081518084526135e181602086016020860161359d565b601f01601f19169290920160200192915050565b6020815260006120d060208301846135c9565b60006020828403121561361a57600080fd5b5035919050565b6001600160a01b0381168114611bb357600080fd5b6000806040838503121561364957600080fd5b823561365481613621565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561369357613693613662565b604051601f8501601f19908116603f011681019082821181831017156136bb576136bb613662565b816040528093508581528686860111156136d457600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561370057600080fd5b813567ffffffffffffffff81111561371757600080fd5b8201601f8101841361372857600080fd5b61201284823560208401613678565b60006020828403121561374957600080fd5b81356120d081613621565b60008060006060848603121561376957600080fd5b833561377481613621565b9250602084013561378481613621565b929592945050506040919091013590565b803560ff811681146137a657600080fd5b919050565b600080600080608085870312156137c157600080fd5b8435935060208501359250604085013591506137df60608601613795565b905092959194509250565b600080604083850312156137fd57600080fd5b823561380881613621565b91506020830135801515811461381d57600080fd5b809150509250929050565b6020808252825182820181905260009190848201906040850190845b8181101561359157835183529284019291840191600101613844565b6000806000806080858703121561387657600080fd5b843561388181613621565b9350602085013561389181613621565b925060408501359150606085013567ffffffffffffffff8111156138b457600080fd5b8501601f810187136138c557600080fd5b6138d487823560208401613678565b91505092959194509250565b600080600080608085870312156138f657600080fd5b843561390181613621565b935060208501359250604085013591506137df60608601613795565b6000806040838503121561393057600080fd5b823561393b81613621565b9150602083013561381d81613621565b634e487b7160e01b600052601160045260246000fd5b6000828210156139735761397361394b565b500390565b634e487b7160e01b600052603260045260246000fd5b60006000198214156139a2576139a261394b565b5060010190565b600181811c908216806139bd57607f821691505b602082108114156139de57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6000816000190483118215151615613a3357613a3361394b565b500290565b634e487b7160e01b600052601260045260246000fd5b600082613a5d57613a5d613a38565b500490565b60008219821115613a7557613a7561394b565b500190565b60008151613a8c81856020860161359d565b9290920192915050565b6461723a2f2f60d81b8152600060056000855481600182811c915080831680613ac057607f831692505b6020808410821415613ae057634e487b7160e01b86526022600452602486fd5b818015613af45760018114613b0957613b3a565b60ff1986168a890152848a0188019650613b3a565b60008c81526020902060005b86811015613b305781548c82018b0152908501908301613b15565b505087858b010196505b505050505050613b62613b5c826805e7ee6cacac87a60f60bb1b815260090190565b86613a7a565b9695505050505050565b60208082526033908201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260408201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b606082015260800190565b60008351613bd181846020880161359d565b9190910191825250602001919050565b60008351613bf381846020880161359d565b835190830190613c0781836020880161359d565b01949350505050565b600081613c1f57613c1f61394b565b506000190190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613b62908301846135c9565b600060208284031215613c6c57600080fd5b81516120d0816134fb565b600082613c8657613c86613a38565b500690565b600060208284031215613c9d57600080fd5b5051919050565b60006001600160801b03808316818516808303821115613c0757613c0761394b56fea2646970667358221220cf4296f37dc34837a253eb4726a4905c24865811f7f4c1d684d54c4efba15cd764736f6c634300080c003300000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000058d15e1762800000000000000000000000000000000000000000000000000000000000000000404000000000000000000000000c1566143287cc4f2626b36a1f7f43ed95b9f731d0000000000000000000000002bae342e4b36a768c386ae15b8dfcb04362c8d63000000000000000000000000ca8868d659ef9c649e9288104214e14abb61403e00000000000000000000000000000000000000000000000000000000625701900000000000000000000000000000000000000000000000000000000062585310000000000000000000000000000000000000000000000000000000000000001968747470733a2f2f73696c6b726f61642e6172742f6170692f00000000000000000000000000000000000000000000000000000000000000000000000000002b6d3167737953413145366663355445386c7a514652655f467756554e76484864696c71432d6d504b334773000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106103975760003560e01c80638da5cb5b116101dc578063bcb7388c11610102578063e011ac87116100a0578063ef8a187c1161006f578063ef8a187c14610abd578063f2bcd02214610add578063f2fde38b14610afd578063f860580114610b1d57600080fd5b8063e011ac8714610a1f578063e985e9c514610a34578063ea57ee8b14610a7d578063edb961ff14610a9d57600080fd5b8063cb0daa57116100dc578063cb0daa5714610995578063cc33c875146109ab578063d5abeb01146109cb578063db8cc8fa146109ff57600080fd5b8063bcb7388c14610928578063c7ce46c814610955578063c87b56dd1461097557600080fd5b8063a546993e1161017a578063b287c8ed11610149578063b287c8ed146108b0578063b5c904b9146108c3578063b88d4fde146108f0578063bc8893b41461091057600080fd5b8063a546993e1461083a578063a80012111461085a578063a82524b21461087a578063a96d60b01461089057600080fd5b80639f300a56116101b65780639f300a56146107c4578063a0bcfc7f146107e5578063a0ef91df14610805578063a22cb4651461081a57600080fd5b80638da5cb5b1461077c57806395d89b411461079a5780639abc8320146107af57600080fd5b80633482624d116102c1578063621a1f741161025f57806370a082311161022e57806370a082311461071f578063715018a61461073f5780637bafb9df1461075457806381632a051461076757600080fd5b8063621a1f741461069d5780636352211e146106ca5780636900a3ae146106ea5780636b1786be1461070a57600080fd5b80634f6ccce71161029b5780634f6ccce71461061b57806353135ca01461063b578063575ca2c7146106535780635fd1bbc41461068757600080fd5b80633482624d146105d15780633ecb79e7146105e657806342842e0e146105fb57600080fd5b806318160ddd11610339578063296cab5511610308578063296cab55146105325780632a55205a146105525780632f745c591461059157806333814bec146105b157600080fd5b806318160ddd146104bd57806321b8092e146104d257806323b872dd146104f2578063261a80d51461051257600080fd5b8063081812fc11610375578063081812fc14610420578063095ea7b3146104585780630d5463611461047a578063126d7c701461049a57600080fd5b806301ffc9a71461039c57806304822058146103d157806306fdde03146103fe575b600080fd5b3480156103a857600080fd5b506103bc6103b7366004613511565b610b32565b60405190151581526020015b60405180910390f35b3480156103dd57600080fd5b506103f16103ec36600461352e565b610b5d565b6040516103c89190613550565b34801561040a57600080fd5b50610413610c0f565b6040516103c891906135f5565b34801561042c57600080fd5b5061044061043b366004613608565b610ca1565b6040516001600160a01b0390911681526020016103c8565b34801561046457600080fd5b50610478610473366004613636565b610d31565b005b34801561048657600080fd5b506104786104953660046136ee565b610e49565b3480156104a657600080fd5b506104af600581565b6040519081526020016103c8565b3480156104c957600080fd5b506000546104af565b3480156104de57600080fd5b506104786104ed366004613737565b610e8a565b3480156104fe57600080fd5b5061047861050d366004613754565b610ed6565b34801561051e57600080fd5b5061047861052d366004613737565b610ee1565b34801561053e57600080fd5b5061047861054d366004613608565b610f2d565b34801561055e57600080fd5b5061057261056d36600461352e565b610f5c565b604080516001600160a01b0390931683526020830191909152016103c8565b34801561059d57600080fd5b506104af6105ac366004613636565b610fdf565b3480156105bd57600080fd5b50600854610440906001600160a01b031681565b3480156105dd57600080fd5b506104af601c81565b3480156105f257600080fd5b5061041361114d565b34801561060757600080fd5b50610478610616366004613754565b6111db565b34801561062757600080fd5b506104af610636366004613608565b6111f6565b34801561064757600080fd5b506010544210156103bc565b34801561065f57600080fd5b506104af7f000000000000000000000000000000000000000000000000058d15e17628000081565b34801561069357600080fd5b506104af60115481565b3480156106a957600080fd5b506104af6106b8366004613608565b600c6020526000908152604090205481565b3480156106d657600080fd5b506104406106e5366004613608565b611258565b3480156106f657600080fd5b50610413610705366004613608565b61126a565b34801561071657600080fd5b50610413611803565b34801561072b57600080fd5b506104af61073a366004613737565b611810565b34801561074b57600080fd5b506104786118a1565b6104786107623660046137ab565b6118d7565b34801561077357600080fd5b506104af600281565b34801561078857600080fd5b506007546001600160a01b0316610440565b3480156107a657600080fd5b50610413611a7d565b3480156107bb57600080fd5b50610413611a8c565b3480156107d057600080fd5b506009546103bc90600160a01b900460ff1681565b3480156107f157600080fd5b506104786108003660046136ee565b611a99565b34801561081157600080fd5b50610478611b22565b34801561082657600080fd5b506104786108353660046137ea565b611bb6565b34801561084657600080fd5b50610413610855366004613608565b611c7b565b34801561086657600080fd5b50610478610875366004613608565b611cfd565b34801561088657600080fd5b506104af60105481565b34801561089c57600080fd5b50600a54610440906001600160a01b031681565b6104786108be366004613608565b611d2c565b3480156108cf57600080fd5b506108e36108de36600461352e565b611e31565b6040516103c89190613828565b3480156108fc57600080fd5b5061047861090b366004613860565b611ed4565b34801561091c57600080fd5b506011544210156103bc565b34801561093457600080fd5b506104af610943366004613737565b600b6020526000908152604090205481565b34801561096157600080fd5b506104406109703660046138e0565b611f07565b34801561098157600080fd5b50610413610990366004613608565b61201a565b3480156109a157600080fd5b506104af60125481565b3480156109b757600080fd5b506105726109c6366004613608565b6120d7565b3480156109d757600080fd5b506104af7f000000000000000000000000000000000000000000000000000000000000040481565b348015610a0b57600080fd5b50610478610a1a366004613608565b6120fa565b348015610a2b57600080fd5b506104af612129565b348015610a4057600080fd5b506103bc610a4f36600461391d565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b348015610a8957600080fd5b50610478610a98366004613737565b61215c565b348015610aa957600080fd5b50610413610ab8366004613608565b612246565b348015610ac957600080fd5b50610478610ad83660046136ee565b612634565b348015610ae957600080fd5b50600954610440906001600160a01b031681565b348015610b0957600080fd5b50610478610b18366004613737565b6126bd565b348015610b2957600080fd5b50610478612755565b60006001600160e01b0319821663152a902d60e11b1480610b575750610b5782612794565b92915050565b60606000610b6b8484613961565b67ffffffffffffffff811115610b8357610b83613662565b604051908082528060200260200182016040528015610bac578160200160208202803683370190505b509050835b83811015610c0757610bc281611258565b82610bcd8784613961565b81518110610bdd57610bdd613978565b6001600160a01b039092166020928302919091019091015280610bff8161398e565b915050610bb1565b509392505050565b606060018054610c1e906139a9565b80601f0160208091040260200160405190810160405280929190818152602001828054610c4a906139a9565b8015610c975780601f10610c6c57610100808354040283529160200191610c97565b820191906000526020600020905b815481529060010190602001808311610c7a57829003601f168201915b5050505050905090565b6000610cae826000541190565b610d155760405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201526c3c34b9ba32b73a103a37b5b2b760991b60648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b6000610d3c82611258565b9050806001600160a01b0316836001600160a01b03161415610dab5760405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201526132b960f11b6064820152608401610d0c565b336001600160a01b0382161480610dc75750610dc78133610a4f565b610e395760405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c000000000000006064820152608401610d0c565b610e448383836127ff565b505050565b6007546001600160a01b03163314610e735760405162461bcd60e51b8152600401610d0c906139e4565b8051610e8690600f90602084019061346b565b5050565b6007546001600160a01b03163314610eb45760405162461bcd60e51b8152600401610d0c906139e4565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b610e4483838361285b565b6007546001600160a01b03163314610f0b5760405162461bcd60e51b8152600401610d0c906139e4565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b6007546001600160a01b03163314610f575760405162461bcd60e51b8152600401610d0c906139e4565b601055565b600080610f6a846000541190565b610faa5760405162461bcd60e51b81526020600482015260116024820152702737b732bc34b9ba32b73a103a37b5b2b760791b6044820152606401610d0c565b6009546012546001600160a01b039091169061271090610fca9086613a19565b610fd49190613a4e565b915091509250929050565b6000610fea83611810565b82106110435760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e604482015261647360f01b6064820152608401610d0c565b600080549080805b838110156110ed576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff16918301919091521561109e57805192505b876001600160a01b0316836001600160a01b031614156110da57868414156110cc57509350610b5792505050565b836110d68161398e565b9450505b50806110e58161398e565b91505061104b565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201526d0deeedccae440c4f240d2dcc8caf60931b6064820152608401610d0c565b600f805461115a906139a9565b80601f0160208091040260200160405190810160405280929190818152602001828054611186906139a9565b80156111d35780601f106111a8576101008083540402835291602001916111d3565b820191906000526020600020905b8154815290600101906020018083116111b657829003601f168201915b505050505081565b610e4483838360405180602001604052806000815250611ed4565b6000805482106112545760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f756044820152626e647360e81b6064820152608401610d0c565b5090565b600061126382612ba2565b5192915050565b6060600a82101561129257506040516001815260308201602082015360408101604052919050565b60405190506080810160e0820161303081527f303130323033303430353036303730383039313031313132313331343135313660208201527f313731383139323032313232323332343235323632373238323933303331333260408201527f333333343335333633373338333934303431343234333434343534363437343860608201527f343935303531353235333534353535363537353835393630363136323633363460808201527f363536363637363836393730373137323733373437353736373737383739383060a08201527f383138323833383438353836383738383839393039313932393339343935393660c08201526539373938393960d01b60e0820152836064810660011b820151601e5260648082040660011b820151601c52606461271082040660011b820151601a526064620f424082040660011b82015160185260646305f5e10082040660011b82015160165260646402540be40082040660011b820151601452606464e8d4a5100082040660011b8201516012526064655af3107a400082040660011b8201516010526064662386f26fc1000082040660011b820151600e526064670de0b6b3a764000082040660011b820151600c52606468056bc75e2d6310000082040660011b820151600a52606469021e19e0c9bab240000082040660011b820151600852606469d3c21bcecceda100000082040660011b82015160065260646a52b7d2dcc80cd2e400000082040660011b82015160045260646b204fce5e3e2502611000000082040660011b82015160025260646c0c9f2c9cd04674edea4000000082040660011b820151600052601e5160408401526d04ee2d6d415b85acef8100000000810490508015611670576064810660011b820151601e5260648082040660011b820151601c52606461271082040660011b820151601a526064620f424082040660011b82015160185260646305f5e10082040660011b82015160165260646402540be40082040660011b820151601452606464e8d4a5100082040660011b8201516012526064655af3107a400082040660011b8201516010526064662386f26fc1000082040660011b820151600e526064670de0b6b3a764000082040660011b820151600c52606468056bc75e2d6310000082040660011b820151600a52606469021e19e0c9bab240000082040660011b820151600852606469d3c21bcecceda100000082040660011b82015160065260646a52b7d2dcc80cd2e400000082040660011b82015160045260646b204fce5e3e2502611000000082040660011b82015160025260646c0c9f2c9cd04674edea4000000082040660011b820151600052601e5160208401525b6d04ee2d6d415b85acef810000000090048015611707576064810660011b820151601e5260648082040660011b820151601c52606461271082040660011b820151601a526064620f424082040660011b82015160185260646305f5e10082040660011b82015160165260646402540be40082040660011b820151601452606464e8d4a5100082040660011b820151601252601e5183525b505060017002f050fe938943acc45f65567fffffffff84111561173e577002f050fe938943acc45f65568000000000909304926027015b68056bc75e2d630fffff8411156117615768056bc75e2d63100000909304926014015b6402540be3ff84111561177c576402540be40090930492600a015b6201869f84111561179357620186a0909304926005015b6103e78411156117a8576103e8909304926003015b60638411156117bb576064909304926002015b60098411810190508060600381845280830151602085015280602084010151604085015280604084010151606085015250600081602001840152505060808101604052919050565b600d805461115a906139a9565b60006001600160a01b03821661187c5760405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b6064820152608401610d0c565b506001600160a01b03166000908152600460205260409020546001600160801b031690565b6007546001600160a01b031633146118cb5760405162461bcd60e51b8152600401610d0c906139e4565b6118d56000612d4c565b565b60105442101561191e5760405162461bcd60e51b815260206004820152601260248201527170726573616c65206e6f742061637469766560701b6044820152606401610d0c565b3332146119695760405162461bcd60e51b815260206004820152601960248201527818d85b881b9bdd081b5a5b9d081d9a584818dbdb9d1c9858dd603a1b6044820152606401610d0c565b6008546001600160a01b031661198133858585611f07565b6001600160a01b0316146119ce5760405162461bcd60e51b81526020600482015260146024820152730e6d2cedcc2e8eae4ca40daeae6e840dac2e8c6d60631b6044820152606401610d0c565b336000908152600b60205260409020546002906119ec908690613a62565b1115611a465760405162461bcd60e51b8152602060048201526024808201527f616c7265616479206d696e746564206d617820616d6f7574206f662070726573604482015263616c657360e01b6064820152608401610d0c565b336000908152600b602052604081208054869290611a65908490613a62565b90915550611a77905084336001612d9e565b50505050565b606060028054610c1e906139a9565b600e805461115a906139a9565b6007546001600160a01b03163314611ac35760405162461bcd60e51b8152600401610d0c906139e4565b600954600160a01b900460ff1615611b0f5760405162461bcd60e51b815260206004820152600f60248201526e1b595d1859185d18481b1bd8dad959608a1b6044820152606401610d0c565b8051610e8690600e90602084019061346b565b6009546040516000916001600160a01b03169047908381818185875af1925050503d8060008114611b6f576040519150601f19603f3d011682016040523d82523d6000602084013e611b74565b606091505b5050905080611bb35760405162461bcd60e51b815260206004820152600b60248201526a1cd95b990819985a5b195960aa1b6044820152606401610d0c565b50565b6001600160a01b038216331415611c0f5760405162461bcd60e51b815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c65720000000000006044820152606401610d0c565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000818152600c602052604090205460609080611cca5760405162461bcd60e51b815260206004820152600d60248201526c1b9bc81a185cda08199bdd5b99609a1b6044820152606401610d0c565b600d611cd582612246565b604051602001611ce6929190613a96565b604051602081830303815290604052915050919050565b6007546001600160a01b03163314611d275760405162461bcd60e51b8152600401610d0c906139e4565b601255565b60115442101580611d4757506007546001600160a01b031633145b611d895760405162461bcd60e51b815260206004820152601360248201527273616c65206d7573742062652061637469766560681b6044820152606401610d0c565b6005811115611dda5760405162461bcd60e51b815260206004820152601b60248201527f63616e74206d696e742074686174206d616e79206174206f6e636500000000006044820152606401610d0c565b333214611e255760405162461bcd60e51b815260206004820152601960248201527818d85b881b9bdd081b5a5b9d081d9a584818dbdb9d1c9858dd603a1b6044820152606401610d0c565b611bb381336001612d9e565b60606000611e3f8484613961565b67ffffffffffffffff811115611e5757611e57613662565b604051908082528060200260200182016040528015611e80578160200160208202803683370190505b509050835b83811015610c07576000818152600c602052604090205482611ea78784613961565b81518110611eb757611eb7613978565b602090810291909101015280611ecc8161398e565b915050611e85565b611edf84848461285b565b611eeb84848484612ed4565b611a775760405162461bcd60e51b8152600401610d0c90613b6c565b6000806040518060400160405280601c81526020017f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152509050600086604051602001611f6d919060609190911b6bffffffffffffffffffffffff1916815260140190565b60405160208183030381529060405280519060200120905060008282604051602001611f9a929190613bbf565b60408051601f1981840301815282825280516020918201206000845290830180835281905260ff8816918301919091526060820189905260808201889052915060019060a0016020604051602081039080840390855afa158015612002573d6000803e3d6000fd5b5050506020604051035193505050505b949350505050565b6060612027826000541190565b61208b5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610d0c565b6000612095612fcf565b905060008151116120b557604051806020016040528060008152506120d0565b806120bf84612fde565b604051602001611ce6929190613be1565b9392505050565b6000806120e383611258565b6000938452600c6020526040909320549293915050565b6007546001600160a01b031633146121245760405162461bcd60e51b8152600401610d0c906139e4565b601155565b60008054612157907f0000000000000000000000000000000000000000000000000000000000000404613961565b905090565b6007546001600160a01b031633146121865760405162461bcd60e51b8152600401610d0c906139e4565b6001600160a01b038116156121e957806001600160a01b0316631249c58b6040518163ffffffff1660e01b8152600401600060405180830381600087803b1580156121d057600080fd5b505af11580156121e4573d6000803e3d6000fd5b505050505b600054156122395760405162461bcd60e51b815260206004820152601f60248201527f63616e74206d696e742070726f6f6673206d6f7265207468616e206f6e6365006044820152606401610d0c565b611bb3601c336000612d9e565b6060816122ae576040519050604081527f303030303030303030303030303030303030303030303030303030303030303060208201527f3030303030303030303030303030303030303030303030303030303030303030604082015260608101604052919050565b506040517f3030303130323033303430353036303730383039306130623063306430653066607e8201527f3130313131323133313431353136313731383139316131623163316431653166609e8201527f323032313232323332343235323632373238323932613262326332643265326660be8201527f333033313332333333343335333633373338333933613362336333643365336660de8201527f343034313432343334343435343634373438343934613462346334643465346660fe8201527f353035313532353335343535353635373538353935613562356335643565356661011e8201527f363036313632363336343635363636373638363936613662366336643665366661013e8201527f373037313732373337343735373637373738373937613762376337643765376661015e8201527f383038313832383338343835383638373838383938613862386338643865386661017e8201527f393039313932393339343935393639373938393939613962396339643965396661019e8201527f61306131613261336134613561366137613861396161616261636164616561666101be8201527f62306231623262336234623562366237623862396261626262636264626562666101de8201527f63306331633263336334633563366337633863396361636263636364636563666101fe8201527f643064316432643364346435643664376438643964616462646364646465646661021e8201527f653065316532653365346535653665376538653965616562656365646565656661023e8201527f663066316632663366346635663666376638663966616662666366646665666661025e82015260608101826125fb565b6101fe600182901b8116830151601e52600782901c8116830151601c52600f82901c8116830151601a52601782901c8116830151601852601f82901c8116830151601652602782901c8116830151601452602f82901c8116830151601252603782901c8116830151601052603f82901c8116830151600e52604782901c8116830151600c52604f82901c8116830151600a52605782901c8116830151600852605f82901c8116830151600652606782901c8116830151600452606f82901c811683015160025260779190911c160151600052565b604083526126098282612527565b601e51604084015260801c61261e8282612527565b5050601e51602082015260608101604052919050565b6007546001600160a01b0316331461265e5760405162461bcd60e51b8152600401610d0c906139e4565b600954600160a01b900460ff16156126aa5760405162461bcd60e51b815260206004820152600f60248201526e1b595d1859185d18481b1bd8dad959608a1b6044820152606401610d0c565b8051610e8690600d90602084019061346b565b6007546001600160a01b031633146126e75760405162461bcd60e51b8152600401610d0c906139e4565b6001600160a01b03811661274c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610d0c565b611bb381612d4c565b6007546001600160a01b0316331461277f5760405162461bcd60e51b8152600401610d0c906139e4565b6009805460ff60a01b1916600160a01b179055565b60006001600160e01b031982166380ac58cd60e01b14806127c557506001600160e01b03198216635b5e139f60e01b145b806127e057506001600160e01b0319821663780e9d6360e01b145b80610b5757506301ffc9a760e01b6001600160e01b0319831614610b57565b60008281526005602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061286682612ba2565b80519091506000906001600160a01b0316336001600160a01b0316148061289d57503361289284610ca1565b6001600160a01b0316145b806128af575081516128af9033610a4f565b9050806129195760405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b6064820152608401610d0c565b846001600160a01b031682600001516001600160a01b03161461298d5760405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f72726563746044820152651037bbb732b960d11b6064820152608401610d0c565b6001600160a01b0384166129f15760405162461bcd60e51b815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b6064820152608401610d0c565b612a0160008484600001516127ff565b6001600160a01b03858116600090815260046020908152604080832080546fffffffffffffffffffffffffffffffff198082166001600160801b03928316600019018316179092558986168086528386208054938416938316600190810190931693909317909255825180840184529182524267ffffffffffffffff9081168386019081528a8752600390955292852091518254945196166001600160e01b031990941693909317600160a01b95909216949094021790925590612ac6908590613a62565b6000818152600360205260409020549091506001600160a01b0316612b5857612af0816000541190565b15612b585760408051808201825284516001600160a01b03908116825260208087015167ffffffffffffffff9081168285019081526000878152600390935294909120925183549451909116600160a01b026001600160e01b03199094169116179190911790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b6040805180820190915260008082526020820152612bc1826000541190565b612c205760405162461bcd60e51b815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e657869736044820152693a32b73a103a37b5b2b760b11b6064820152608401610d0c565b60007f000000000000000000000000000000000000000000000000000000000000001c8310612c8157612c737f000000000000000000000000000000000000000000000000000000000000001c84613961565b612c7e906001613a62565b90505b825b818110612ceb576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b90910467ffffffffffffffff169183019190915215612cd857949350505050565b5080612ce381613c10565b915050612c83565b5060405162461bcd60e51b815260206004820152602f60248201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560448201526e1037bbb732b91037b3103a37b5b2b760891b6064820152608401610d0c565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b82612da7612129565b1015612de05760405162461bcd60e51b81526020600482015260086024820152671cdbdb19081bdd5d60c21b6044820152606401610d0c565b8015612e5e57612e107f000000000000000000000000000000000000000000000000058d15e17628000084613a19565b3414612e5e5760405162461bcd60e51b815260206004820152601b60248201527f6d7573742073656e6420696e20636f727265637420616d6f756e7400000000006044820152606401610d0c565b6000805490612e6d8583613a62565b9050612e7984866130dc565b612e8382826130f6565b604080516001600160a01b0386168152602081018790529081018390527fd4edfa830a0369bb56cf2931d6c77b8c76cb5f233ddcff884534488218118b899060600160405180910390a15050505050565b60006001600160a01b0384163b15612fc757604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612f18903390899088908890600401613c27565b6020604051808303816000875af1925050508015612f53575060408051601f3d908101601f19168201909252612f5091810190613c5a565b60015b612fad573d808015612f81576040519150601f19603f3d011682016040523d82523d6000602084013e612f86565b606091505b508051612fa55760405162461bcd60e51b8152600401610d0c90613b6c565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612012565b506001612012565b6060600e8054610c1e906139a9565b6060816130025750506040805180820190915260018152600360fc1b602082015290565b8160005b811561302c57806130168161398e565b91506130259050600a83613a4e565b9150613006565b60008167ffffffffffffffff81111561304757613047613662565b6040519080825280601f01601f191660200182016040528015613071576020820181803683370190505b5090505b841561201257613086600183613961565b9150613093600a86613c77565b61309e906030613a62565b60f81b8183815181106130b3576130b3613978565b60200101906001600160f81b031916908160001a9053506130d5600a86613a4e565b9450613075565b610e86828260405180602001604052806000815250613190565b815b81811015610e4457600a546040516320325e0360e11b8152600481018390526001600160a01b0390911690634064bc06906024016020604051808303816000875af115801561314b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061316f9190613c8b565b6000828152600c6020526040902055806131888161398e565b9150506130f8565b6000546001600160a01b0384166131f35760405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610d0c565b6131fe816000541190565b1561324b5760405162461bcd60e51b815260206004820152601d60248201527f455243373231413a20746f6b656e20616c7265616479206d696e7465640000006044820152606401610d0c565b7f000000000000000000000000000000000000000000000000000000000000001c8311156132c65760405162461bcd60e51b815260206004820152602260248201527f455243373231413a207175616e7469747920746f206d696e7420746f6f2068696044820152610ced60f31b6064820152608401610d0c565b6001600160a01b0384166000908152600460209081526040918290208251808401845290546001600160801b038082168352600160801b9091041691810191909152815180830190925280519091908190613322908790613ca4565b6001600160801b031681526020018583602001516133409190613ca4565b6001600160801b039081169091526001600160a01b0380881660008181526004602090815260408083208751978301518716600160801b0297909616969096179094558451808601865291825267ffffffffffffffff4281168386019081528883526003909552948120915182549451909516600160a01b026001600160e01b031990941694909216939093179190911790915582905b858110156134605760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46134246000888488612ed4565b6134405760405162461bcd60e51b8152600401610d0c90613b6c565b8161344a8161398e565b92505080806134589061398e565b9150506133d7565b506000819055612b9a565b828054613477906139a9565b90600052602060002090601f01602090048101928261349957600085556134df565b82601f106134b257805160ff19168380011785556134df565b828001600101855582156134df579182015b828111156134df5782518255916020019190600101906134c4565b506112549291505b8082111561125457600081556001016134e7565b6001600160e01b031981168114611bb357600080fd5b60006020828403121561352357600080fd5b81356120d0816134fb565b6000806040838503121561354157600080fd5b50508035926020909101359150565b6020808252825182820181905260009190848201906040850190845b818110156135915783516001600160a01b03168352928401929184019160010161356c565b50909695505050505050565b60005b838110156135b85781810151838201526020016135a0565b83811115611a775750506000910152565b600081518084526135e181602086016020860161359d565b601f01601f19169290920160200192915050565b6020815260006120d060208301846135c9565b60006020828403121561361a57600080fd5b5035919050565b6001600160a01b0381168114611bb357600080fd5b6000806040838503121561364957600080fd5b823561365481613621565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561369357613693613662565b604051601f8501601f19908116603f011681019082821181831017156136bb576136bb613662565b816040528093508581528686860111156136d457600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561370057600080fd5b813567ffffffffffffffff81111561371757600080fd5b8201601f8101841361372857600080fd5b61201284823560208401613678565b60006020828403121561374957600080fd5b81356120d081613621565b60008060006060848603121561376957600080fd5b833561377481613621565b9250602084013561378481613621565b929592945050506040919091013590565b803560ff811681146137a657600080fd5b919050565b600080600080608085870312156137c157600080fd5b8435935060208501359250604085013591506137df60608601613795565b905092959194509250565b600080604083850312156137fd57600080fd5b823561380881613621565b91506020830135801515811461381d57600080fd5b809150509250929050565b6020808252825182820181905260009190848201906040850190845b8181101561359157835183529284019291840191600101613844565b6000806000806080858703121561387657600080fd5b843561388181613621565b9350602085013561389181613621565b925060408501359150606085013567ffffffffffffffff8111156138b457600080fd5b8501601f810187136138c557600080fd5b6138d487823560208401613678565b91505092959194509250565b600080600080608085870312156138f657600080fd5b843561390181613621565b935060208501359250604085013591506137df60608601613795565b6000806040838503121561393057600080fd5b823561393b81613621565b9150602083013561381d81613621565b634e487b7160e01b600052601160045260246000fd5b6000828210156139735761397361394b565b500390565b634e487b7160e01b600052603260045260246000fd5b60006000198214156139a2576139a261394b565b5060010190565b600181811c908216806139bd57607f821691505b602082108114156139de57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6000816000190483118215151615613a3357613a3361394b565b500290565b634e487b7160e01b600052601260045260246000fd5b600082613a5d57613a5d613a38565b500490565b60008219821115613a7557613a7561394b565b500190565b60008151613a8c81856020860161359d565b9290920192915050565b6461723a2f2f60d81b8152600060056000855481600182811c915080831680613ac057607f831692505b6020808410821415613ae057634e487b7160e01b86526022600452602486fd5b818015613af45760018114613b0957613b3a565b60ff1986168a890152848a0188019650613b3a565b60008c81526020902060005b86811015613b305781548c82018b0152908501908301613b15565b505087858b010196505b505050505050613b62613b5c826805e7ee6cacac87a60f60bb1b815260090190565b86613a7a565b9695505050505050565b60208082526033908201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260408201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b606082015260800190565b60008351613bd181846020880161359d565b9190910191825250602001919050565b60008351613bf381846020880161359d565b835190830190613c0781836020880161359d565b01949350505050565b600081613c1f57613c1f61394b565b506000190190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613b62908301846135c9565b600060208284031215613c6c57600080fd5b81516120d0816134fb565b600082613c8657613c86613a38565b500690565b600060208284031215613c9d57600080fd5b5051919050565b60006001600160801b03808316818516808303821115613c0757613c0761394b56fea2646970667358221220cf4296f37dc34837a253eb4726a4905c24865811f7f4c1d684d54c4efba15cd764736f6c634300080c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000058d15e1762800000000000000000000000000000000000000000000000000000000000000000404000000000000000000000000c1566143287cc4f2626b36a1f7f43ed95b9f731d0000000000000000000000002bae342e4b36a768c386ae15b8dfcb04362c8d63000000000000000000000000ca8868d659ef9c649e9288104214e14abb61403e00000000000000000000000000000000000000000000000000000000625701900000000000000000000000000000000000000000000000000000000062585310000000000000000000000000000000000000000000000000000000000000001968747470733a2f2f73696c6b726f61642e6172742f6170692f00000000000000000000000000000000000000000000000000000000000000000000000000002b6d3167737953413145366663355445386c7a514652655f467756554e76484864696c71432d6d504b334773000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _baseUri (string): https://silkroad.art/api/
Arg [1] : _arweaveId (string): m1gsySA1E6fc5TE8lzQFRe_FwVUNvHHdilqC-mPK3Gs
Arg [2] : _pricePerPiece (uint256): 400000000000000000
Arg [3] : _maxSupply (uint256): 1028
Arg [4] : _withdrawalAddress (address): 0xc1566143287cC4F2626b36a1F7F43Ed95b9F731D
Arg [5] : _presaleAuthorizer (address): 0x2BaE342e4b36A768c386aE15b8dfCB04362C8d63
Arg [6] : _hashGenerator (address): 0xca8868d659ef9C649E9288104214e14ABb61403E
Arg [7] : _presaleStartTime (uint256): 1649869200
Arg [8] : _publicStartTime (uint256): 1649955600
-----Encoded View---------------
14 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [2] : 000000000000000000000000000000000000000000000000058d15e176280000
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000404
Arg [4] : 000000000000000000000000c1566143287cc4f2626b36a1f7f43ed95b9f731d
Arg [5] : 0000000000000000000000002bae342e4b36a768c386ae15b8dfcb04362c8d63
Arg [6] : 000000000000000000000000ca8868d659ef9c649e9288104214e14abb61403e
Arg [7] : 0000000000000000000000000000000000000000000000000000000062570190
Arg [8] : 0000000000000000000000000000000000000000000000000000000062585310
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000019
Arg [10] : 68747470733a2f2f73696c6b726f61642e6172742f6170692f00000000000000
Arg [11] : 000000000000000000000000000000000000000000000000000000000000002b
Arg [12] : 6d3167737953413145366663355445386c7a514652655f467756554e76484864
Arg [13] : 696c71432d6d504b334773000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
[ 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.