Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
NFT
Overview
Max Total Supply
0 KOLECTIV
Holders
619
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 KOLECTIVLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
KolectivToken
Compiler Version
v0.8.0+commit.c7dfd78e
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
pragma solidity ^0.8.0; // SPDX-License-Identifier: UNLICENSED import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Pausable.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; contract KolectivToken is ERC721, ERC721Pausable, Ownable { event TokenCreated(string uuid, address to); event BaseURISet(string uri); address public proxyMinter; // only account that can call mintFor() string private _baseTokenURI; mapping (uint256 => bytes32) private tokenIdToUuid; // Maps token id to UUID mapping (bytes32 => uint256) private uuidToTokenId; // Maps UUID to token id constructor(string memory baseTokenURI) ERC721("Kolectiv", "KOLECTIV") { _baseTokenURI = baseTokenURI; proxyMinter = _msgSender(); } function createToken(uint256 tokenId, string memory uuid, address to) public onlyOwner { bytes32 uuidBytes32 = UUIDStringToBytes32(uuid); createTokenWithId(tokenId, uuidBytes32, to); } function mintFor(address to, uint256 amount, bytes memory mintingBlob) public { require(proxyMinter == _msgSender(), "Caller is not the proxy minter."); (uint256[] memory tokenIds, bytes32[] memory uuids) = parseMintingBlob(mintingBlob, amount); for (uint i; i < tokenIds.length; i++) { createTokenWithId(tokenIds[i], uuids[i], to); } } function getTokenIdOfUUID(string memory uuid) public view returns (uint256) { bytes32 uuid32 = UUIDStringToBytes32(uuid); require(uuidExists(uuid32), "UUID does not exist."); return uuidToTokenId[uuid32]; } function getUUIDOfTokenId(uint256 tokenId) public view returns (string memory) { require(_exists(tokenId), "Token does not exist."); return bytes32ToUUIDString(tokenIdToUuid[tokenId]); } function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory uuid = bytes32ToUUIDString(tokenIdToUuid[tokenId]); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, uuid)) : ''; } function setBaseTokenURI(string memory uri) public onlyOwner { _baseTokenURI = uri; emit BaseURISet(uri); } function pause() public virtual onlyOwner { _pause(); } function unpause() public virtual onlyOwner { _unpause(); } function setProxyMinter(address proxy) public onlyOwner { proxyMinter = proxy; } // ------- Internal functions below here: function createTokenWithId(uint256 tokenId, bytes32 uuid, address to) internal { require(!_exists(tokenId), "Token already exists."); _safeMint(to, tokenId); uuidToTokenId[uuid] = tokenId; tokenIdToUuid[tokenId] = uuid; emit TokenCreated(bytes32ToUUIDString(uuid), to); } // Parses a mintingBlob with {tokenId1}:{uuid1}{tokenId2}:{uuid2} and then returns them // Example: {1}:{e9071858-e63b-4f27-92d7-0603235c0b8c}{2}:{f23a1b52-e63b-3f77-42d7-3603235c1b42} function parseMintingBlob(bytes memory mintingBlob, uint256 amount) internal pure returns (uint256[] memory, bytes32[] memory) { uint256 offset = 0; uint256[] memory tokenIds = new uint256[](amount); bytes32[] memory uuids = new bytes32[](amount); bool isTokenId = true; for (uint i; i < mintingBlob.length; i++) { if (mintingBlob[i] == "{") { if (isTokenId) { (uint256 tokenId, uint256 nextItem) = parseMintingBlobTokenId(mintingBlob, i + 1); tokenIds[offset] = tokenId; isTokenId = false; i = nextItem; } else { (bytes32 uuid, uint256 nextItem) = parseMintingBlobUUID(mintingBlob, i + 1); uuids[offset] = uuid; isTokenId = true; offset++; i = nextItem; } } } return (tokenIds, uuids); } function parseMintingBlobTokenId(bytes memory mintingBlob, uint start) internal pure returns (uint256, uint256) { uint256 result = 0; for (uint256 i = start; i < mintingBlob.length; i++) { if (mintingBlob[i] == "}") { return (result, i); } result = (result * 10) + (uint8(mintingBlob[i]) - 48); } return (result, mintingBlob.length); } function parseMintingBlobUUID(bytes memory mintingBlob, uint start) internal pure returns (bytes32, uint256) { bytes memory temp = new bytes(32); bytes32 result; uint32 index; for (uint i = start; i < mintingBlob.length; i++) { if (mintingBlob[i] == "}") { assembly { result := mload(add(temp, 32)) } return (result, i); } if (mintingBlob[i] == "-") { continue; } temp[index] = mintingBlob[i]; index++; } assembly { result := mload(add(temp, 32)) } return (result, mintingBlob.length); } function uuidExists(bytes32 uuid) internal view returns (bool) { return uuidToTokenId[uuid] != 0; } function _baseURI() internal view virtual override returns (string memory) { return _baseTokenURI; } function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual override(ERC721, ERC721Pausable) { super._beforeTokenTransfer(from, to, tokenId); } // Converts a bytes32 UUID to a UUID string with dashes // e9071858e63b4f2792d70603235c0b8c => e9071858-e63b-4f27-92d7-0603235c0b8c function bytes32ToUUIDString(bytes32 b) internal pure returns (string memory) { bytes memory bytesArray = new bytes(36); uint j; for (uint256 i; i < 32; i++) { bytesArray[j] = b[i]; // Add back in dashes at correct positions if (i == 7 || i == 11 || i == 15 || i == 19) { j++; bytesArray[j] = "-"; } j++; } return string(bytesArray); } // Converts a UUID string with dashes into a bytes32 UUID without dashes // e9071858-e63b-4f27-92d7-0603235c0b8c => e9071858e63b4f2792d70603235c0b8c function UUIDStringToBytes32(string memory s) internal pure returns (bytes32) { bytes memory bytesArray = bytes(s); bytes memory noDashes = new bytes(32); uint index; for (uint256 i; i < bytesArray.length; i++) { if (bytesArray[i] == "-") { continue; } noDashes[index] = bytesArray[i]; index++; } bytes32 result; assembly { result := mload(add(noDashes, 32)) } return result; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), 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 { emit OwnershipTransferred(_owner, address(0)); _owner = 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"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor () { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "./extensions/IERC721Enumerable.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping (uint256 => address) private _owners; // Mapping owner address to token count mapping (address => uint256) private _balances; // 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 Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor (string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @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 || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @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}. 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 virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require(_msgSender() == owner || ERC721.isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: 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 virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 tokenId) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @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. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer(address from, address to, uint256 tokenId, bytes memory _data) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: 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`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || ERC721.isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint(address to, uint256 tokenId, bytes memory _data) internal virtual { _mint(to, tokenId); require(_checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * 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) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), 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("ERC721: transfer to non ERC721Receiver implementer"); } else { // solhint-disable-next-line no-inline-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual { } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, 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; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @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); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC721.sol"; import "../../../security/Pausable.sol"; /** * @dev ERC721 token with pausable token transfers, minting and burning. * * Useful for scenarios such as preventing trades until the end of an evaluation * period, or having an emergency switch for freezing all token transfers in the * event of a large bug. */ abstract contract ERC721Pausable is ERC721, Pausable { /** * @dev See {ERC721-_beforeTokenTransfer}. * * Requirements: * * - the contract must not be paused. */ function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); require(!paused(), "ERC721Pausable: token transfer while paused"); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.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 tokenId); /** * @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); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.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); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @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 * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 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"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (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"); // solhint-disable-next-line avoid-low-level-calls (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"); // solhint-disable-next-line avoid-low-level-calls (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"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private 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 // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant alphabet = "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] = alphabet[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.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; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "istanbul", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"baseTokenURI","type":"string"}],"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":"string","name":"uri","type":"string"}],"name":"BaseURISet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"uuid","type":"string"},{"indexed":false,"internalType":"address","name":"to","type":"address"}],"name":"TokenCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"uuid","type":"string"},{"internalType":"address","name":"to","type":"address"}],"name":"createToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"uuid","type":"string"}],"name":"getTokenIdOfUUID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getUUIDOfTokenId","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"mintingBlob","type":"bytes"}],"name":"mintFor","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":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxyMinter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"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":"uri","type":"string"}],"name":"setBaseTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"proxy","type":"address"}],"name":"setProxyMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040516200286838038062002868833981016040819052620000349162000204565b6040518060400160405280600881526020016725b7b632b1ba34bb60c11b8152506040518060400160405280600881526020016725a7a622a1aa24ab60c11b81525081600090805190602001906200008e9291906200015e565b508051620000a49060019060208401906200015e565b50506006805460ff19169055506000620000bd6200015a565b60068054610100600160a81b0319166101006001600160a01b03841690810291909117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3508051620001289060089060208401906200015e565b50620001336200015a565b600780546001600160a01b0319166001600160a01b03929092169190911790555062000326565b3390565b8280546200016c90620002d3565b90600052602060002090601f016020900481019282620001905760008555620001db565b82601f10620001ab57805160ff1916838001178555620001db565b82800160010185558215620001db579182015b82811115620001db578251825591602001919060010190620001be565b50620001e9929150620001ed565b5090565b5b80821115620001e95760008155600101620001ee565b6000602080838503121562000217578182fd5b82516001600160401b03808211156200022e578384fd5b818501915085601f83011262000242578384fd5b81518181111562000257576200025762000310565b604051601f8201601f19168101850183811182821017156200027d576200027d62000310565b604052818152838201850188101562000294578586fd5b8592505b81831015620002b7578383018501518184018601529184019162000298565b81831115620002c857858583830101525b979650505050505050565b600281046001821680620002e857607f821691505b602082108114156200030a57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b61253280620003366000396000f3fe608060405234801561001057600080fd5b506004361061018e5760003560e01c806370a08231116100de578063a22cb46511610097578063c87b56dd11610071578063c87b56dd14610327578063c91b1c011461033a578063e985e9c514610342578063f2fde38b146103555761018e565b8063a22cb465146102ee578063a6e23daf14610301578063b88d4fde146103145761018e565b806370a082311461029b578063715018a6146102bb57806380eae808146102c35780638456cb59146102d65780638da5cb5b146102de57806395d89b41146102e65761018e565b806323b872dd1161014b5780633f4ba83a116101255780633f4ba83a1461026557806342842e0e1461026d5780635c975abb146102805780636352211e146102885761018e565b806323b872dd1461022c578063299b1a861461023f57806330176e13146102525761018e565b806301ffc9a71461019357806306fdde03146101bc578063081812fc146101d1578063095ea7b3146101f157806314c00ed31461020657806319ee6e3f14610219575b600080fd5b6101a66101a1366004611bff565b610368565b6040516101b39190611d83565b60405180910390f35b6101c46103b0565b6040516101b39190611d8e565b6101e46101df366004611c6a565b610442565b6040516101b39190611d32565b6102046101ff366004611b81565b61048e565b005b6101c4610214366004611c6a565b610526565b610204610227366004611baa565b610565565b61020461023a366004611aa6565b61062a565b61020461024d366004611c82565b610662565b610204610260366004611c37565b6106bf565b61020461074c565b61020461027b366004611aa6565b610795565b6101a66107b0565b6101e4610296366004611c6a565b6107b9565b6102ae6102a9366004611a53565b6107ee565b6040516101b39190612397565b610204610832565b6102046102d1366004611a53565b6108c1565b610204610922565b6101e4610969565b6101c461097d565b6102046102fc366004611b47565b61098c565b6102ae61030f366004611c37565b610a5a565b610204610322366004611ae1565b610aa2565b6101c4610335366004611c6a565b610adb565b6101e4610b71565b6101a6610350366004611a74565b610b80565b610204610363366004611a53565b610bae565b60006001600160e01b031982166380ac58cd60e01b148061039957506001600160e01b03198216635b5e139f60e01b145b806103a857506103a882610c7a565b90505b919050565b6060600080546103bf9061243d565b80601f01602080910402602001604051908101604052809291908181526020018280546103eb9061243d565b80156104385780601f1061040d57610100808354040283529160200191610438565b820191906000526020600020905b81548152906001019060200180831161041b57829003601f168201915b5050505050905090565b600061044d82610c93565b6104725760405162461bcd60e51b8152600401610469906121be565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610499826107b9565b9050806001600160a01b0316836001600160a01b031614156104cd5760405162461bcd60e51b8152600401610469906122d7565b806001600160a01b03166104df610cb0565b6001600160a01b031614806104fb57506104fb81610350610cb0565b6105175760405162461bcd60e51b815260040161046990612004565b6105218383610cb4565b505050565b606061053182610c93565b61054d5760405162461bcd60e51b81526004016104699061218f565b6000828152600960205260409020546103a890610d22565b61056d610cb0565b6007546001600160a01b0390811691161461059a5760405162461bcd60e51b815260040161046990612061565b6000806105a78385610e4b565b9150915060005b8251811015610622576106108382815181106105da57634e487b7160e01b600052603260045260246000fd5b602002602001015183838151811061060257634e487b7160e01b600052603260045260246000fd5b60200260200101518861101b565b8061061a81612478565b9150506105ae565b505050505050565b61063b610635610cb0565b826110b2565b6106575760405162461bcd60e51b815260040161046990612318565b61052183838361112f565b61066a610cb0565b6001600160a01b031661067b610969565b6001600160a01b0316146106a15760405162461bcd60e51b81526004016104699061220a565b60006106ac8361125c565b90506106b984828461101b565b50505050565b6106c7610cb0565b6001600160a01b03166106d8610969565b6001600160a01b0316146106fe5760405162461bcd60e51b81526004016104699061220a565b8051610711906008906020840190611922565b507ff9c7803e94e0d3c02900d8a90893a6d5e90dd04d32a4cfe825520f82bf9f32f6816040516107419190611d8e565b60405180910390a150565b610754610cb0565b6001600160a01b0316610765610969565b6001600160a01b03161461078b5760405162461bcd60e51b81526004016104699061220a565b61079361135d565b565b61052183838360405180602001604052806000815250610aa2565b60065460ff1690565b6000818152600260205260408120546001600160a01b0316806103a85760405162461bcd60e51b8152600401610469906120e2565b60006001600160a01b0382166108165760405162461bcd60e51b815260040161046990612098565b506001600160a01b031660009081526003602052604090205490565b61083a610cb0565b6001600160a01b031661084b610969565b6001600160a01b0316146108715760405162461bcd60e51b81526004016104699061220a565b60065460405160009161010090046001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a360068054610100600160a81b0319169055565b6108c9610cb0565b6001600160a01b03166108da610969565b6001600160a01b0316146109005760405162461bcd60e51b81526004016104699061220a565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b61092a610cb0565b6001600160a01b031661093b610969565b6001600160a01b0316146109615760405162461bcd60e51b81526004016104699061220a565b6107936113cb565b60065461010090046001600160a01b031690565b6060600180546103bf9061243d565b610994610cb0565b6001600160a01b0316826001600160a01b031614156109c55760405162461bcd60e51b815260040161046990611f57565b80600560006109d2610cb0565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610a16610cb0565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610a4e9190611d83565b60405180910390a35050565b600080610a668361125c565b9050610a7181611426565b610a8d5760405162461bcd60e51b815260040161046990612369565b6000908152600a602052604090205492915050565b610ab3610aad610cb0565b836110b2565b610acf5760405162461bcd60e51b815260040161046990612318565b6106b98484848461143a565b6060610ae682610c93565b610b025760405162461bcd60e51b815260040161046990612288565b600082815260096020526040812054610b1a90610d22565b90506000610b2661146d565b90506000815111610b465760405180602001604052806000815250610b69565b8082604051602001610b59929190611d03565b6040516020818303038152906040525b949350505050565b6007546001600160a01b031681565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b610bb6610cb0565b6001600160a01b0316610bc7610969565b6001600160a01b031614610bed5760405162461bcd60e51b81526004016104699061220a565b6001600160a01b038116610c135760405162461bcd60e51b815260040161046990611e96565b6006546040516001600160a01b0380841692610100900416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600680546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b6001600160e01b031981166301ffc9a760e01b14919050565b6000908152600260205260409020546001600160a01b0316151590565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610ce9826107b9565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6040805160248082526060828101909352600091906020820181803683370190505090506000805b6020811015610e4257848160208110610d7357634e487b7160e01b600052603260045260246000fd5b1a60f81b838381518110610d9757634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053508060071480610dbd575080600b145b80610dc8575080600f145b80610dd35750806013145b15610e225781610de281612478565b925050602d60f81b838381518110610e0a57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053505b81610e2c81612478565b9250508080610e3a90612478565b915050610d4a565b50909392505050565b6060806000808467ffffffffffffffff811115610e7857634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610ea1578160200160208202803683370190505b50905060008567ffffffffffffffff811115610ecd57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610ef6578160200160208202803683370190505b509050600160005b885181101561100b57888181518110610f2757634e487b7160e01b600052603260045260246000fd5b6020910101516001600160f81b031916607b60f81b1415610ff9578115610f9c57600080610f5f8b610f5a8560016123a0565b61147c565b9150915081868881518110610f8457634e487b7160e01b600052603260045260246000fd5b6020908102919091010152600093509150610ff99050565b600080610fb38b610fae8560016123a0565b61153b565b9150915081858881518110610fd857634e487b7160e01b600052603260045260246000fd5b60209081029190910101526001935086610ff181612478565b975090925050505b8061100381612478565b915050610efe565b50919450925050505b9250929050565b61102483610c93565b156110415760405162461bcd60e51b81526004016104699061212b565b61104b8184611696565b6000828152600a60209081526040808320869055858352600990915290208290557ffdc90d498a1602314464a0907c52c51090745809fb1655b49df42e9333129f7061109683610d22565b826040516110a5929190611da1565b60405180910390a1505050565b60006110bd82610c93565b6110d95760405162461bcd60e51b815260040161046990611f8e565b60006110e4836107b9565b9050806001600160a01b0316846001600160a01b0316148061111f5750836001600160a01b031661111484610442565b6001600160a01b0316145b80610b695750610b698185610b80565b826001600160a01b0316611142826107b9565b6001600160a01b0316146111685760405162461bcd60e51b81526004016104699061223f565b6001600160a01b03821661118e5760405162461bcd60e51b815260040161046990611f13565b6111998383836116b4565b6111a4600082610cb4565b6001600160a01b03831660009081526003602052604081208054600192906111cd9084906123d7565b90915550506001600160a01b03821660009081526003602052604081208054600192906111fb9084906123a0565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b604080516020808252818301909252600091839183916020820181803683370190505090506000805b8351811015611350578381815181106112ae57634e487b7160e01b600052603260045260246000fd5b6020910101516001600160f81b031916602d60f81b14156112ce5761133e565b8381815181106112ee57634e487b7160e01b600052603260045260246000fd5b602001015160f81c60f81b83838151811061131957634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053508161133a81612478565b9250505b8061134881612478565b915050611285565b5050602001519392505050565b6113656107b0565b6113815760405162461bcd60e51b815260040161046990611e16565b6006805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6113b4610cb0565b6040516113c19190611d32565b60405180910390a1565b6113d36107b0565b156113f05760405162461bcd60e51b815260040161046990611fda565b6006805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586113b4610cb0565b6000908152600a6020526040902054151590565b61144584848461112f565b611451848484846116bf565b6106b95760405162461bcd60e51b815260040161046990611e44565b6060600880546103bf9061243d565b60008080835b8551811015611530578581815181106114ab57634e487b7160e01b600052603260045260246000fd5b6020910101516001600160f81b031916607d60f81b14156114d0579092509050611014565b60308682815181106114f257634e487b7160e01b600052603260045260246000fd5b0160200151611504919060f81c6123ee565b60ff1661151283600a6123b8565b61151c91906123a0565b91508061152881612478565b915050611482565b509351939492505050565b60408051602080825281830190925260009182918291602082018180368337019050509050600080855b87518110156116855787818151811061158e57634e487b7160e01b600052603260045260246000fd5b6020910101516001600160f81b031916607d60f81b14156115bd57602093909301519450919250611014915050565b8781815181106115dd57634e487b7160e01b600052603260045260246000fd5b6020910101516001600160f81b031916602d60f81b14156115fd57611673565b87818151811061161d57634e487b7160e01b600052603260045260246000fd5b602001015160f81c60f81b848363ffffffff168151811061164e57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053508161166f81612493565b9250505b8061167d81612478565b915050611565565b505050602001519351939492505050565b6116b08282604051806020016040528060008152506117da565b5050565b61052183838361180d565b60006116d3846001600160a01b031661183d565b156117cf57836001600160a01b031663150b7a026116ef610cb0565b8786866040518563ffffffff1660e01b81526004016117119493929190611d46565b602060405180830381600087803b15801561172b57600080fd5b505af192505050801561175b575060408051601f3d908101601f1916820190925261175891810190611c1b565b60015b6117b5573d808015611789576040519150601f19603f3d011682016040523d82523d6000602084013e61178e565b606091505b5080516117ad5760405162461bcd60e51b815260040161046990611e44565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610b69565b506001949350505050565b6117e48383611843565b6117f160008484846116bf565b6105215760405162461bcd60e51b815260040161046990611e44565b611818838383610521565b6118206107b0565b156105215760405162461bcd60e51b815260040161046990611dcb565b3b151590565b6001600160a01b0382166118695760405162461bcd60e51b81526004016104699061215a565b61187281610c93565b1561188f5760405162461bcd60e51b815260040161046990611edc565b61189b600083836116b4565b6001600160a01b03821660009081526003602052604081208054600192906118c49084906123a0565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461192e9061243d565b90600052602060002090601f0160209004810192826119505760008555611996565b82601f1061196957805160ff1916838001178555611996565b82800160010185558215611996579182015b8281111561199657825182559160200191906001019061197b565b506119a29291506119a6565b5090565b5b808211156119a257600081556001016119a7565b80356001600160a01b03811681146103ab57600080fd5b600082601f8301126119e2578081fd5b813567ffffffffffffffff808211156119fd576119fd6124cd565b604051601f8301601f191681016020018281118282101715611a2157611a216124cd565b604052828152848301602001861015611a38578384fd5b82602086016020830137918201602001929092529392505050565b600060208284031215611a64578081fd5b611a6d826119bb565b9392505050565b60008060408385031215611a86578081fd5b611a8f836119bb565b9150611a9d602084016119bb565b90509250929050565b600080600060608486031215611aba578081fd5b611ac3846119bb565b9250611ad1602085016119bb565b9150604084013590509250925092565b60008060008060808587031215611af6578081fd5b611aff856119bb565b9350611b0d602086016119bb565b925060408501359150606085013567ffffffffffffffff811115611b2f578182fd5b611b3b878288016119d2565b91505092959194509250565b60008060408385031215611b59578182fd5b611b62836119bb565b915060208301358015158114611b76578182fd5b809150509250929050565b60008060408385031215611b93578182fd5b611b9c836119bb565b946020939093013593505050565b600080600060608486031215611bbe578283fd5b611bc7846119bb565b925060208401359150604084013567ffffffffffffffff811115611be9578182fd5b611bf5868287016119d2565b9150509250925092565b600060208284031215611c10578081fd5b8135611a6d816124e3565b600060208284031215611c2c578081fd5b8151611a6d816124e3565b600060208284031215611c48578081fd5b813567ffffffffffffffff811115611c5e578182fd5b610b69848285016119d2565b600060208284031215611c7b578081fd5b5035919050565b600080600060608486031215611c96578283fd5b83359250602084013567ffffffffffffffff811115611cb3578283fd5b611cbf868287016119d2565b925050611cce604085016119bb565b90509250925092565b60008151808452611cef816020860160208601612411565b601f01601f19169290920160200192915050565b60008351611d15818460208801612411565b835190830190611d29818360208801612411565b01949350505050565b6001600160a01b0391909116815260200190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611d7990830184611cd7565b9695505050505050565b901515815260200190565b600060208252611a6d6020830184611cd7565b600060408252611db46040830185611cd7565b905060018060a01b03831660208301529392505050565b6020808252602b908201527f4552433732315061757361626c653a20746f6b656e207472616e73666572207760408201526a1a1a5b19481c185d5cd95960aa1b606082015260800190565b60208082526014908201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604082015260600190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252601f908201527f43616c6c6572206973206e6f74207468652070726f7879206d696e7465722e00604082015260600190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b6020808252601590820152742a37b5b2b71030b63932b0b23c9032bc34b9ba399760591b604082015260600190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252601590820152742a37b5b2b7103237b2b9903737ba1032bc34b9ba1760591b604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601490820152732aaaa4a2103237b2b9903737ba1032bc34b9ba1760611b604082015260600190565b90815260200190565b600082198211156123b3576123b36124b7565b500190565b60008160001904831182151516156123d2576123d26124b7565b500290565b6000828210156123e9576123e96124b7565b500390565b600060ff821660ff841680821015612408576124086124b7565b90039392505050565b60005b8381101561242c578181015183820152602001612414565b838111156106b95750506000910152565b60028104600182168061245157607f821691505b6020821081141561247257634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561248c5761248c6124b7565b5060010190565b600063ffffffff808316818114156124ad576124ad6124b7565b6001019392505050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b0319811681146124f957600080fd5b5056fea264697066735822122081111d8ed36e692af63511070ce2b922fe58daa3ab8119e17e0e31940a11956f64736f6c634300080000330000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002e68747470733a2f2f6170692e6b6f6c65637469762e67672f6170692f76312f657468657265756d2f746f6b656e2f000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061018e5760003560e01c806370a08231116100de578063a22cb46511610097578063c87b56dd11610071578063c87b56dd14610327578063c91b1c011461033a578063e985e9c514610342578063f2fde38b146103555761018e565b8063a22cb465146102ee578063a6e23daf14610301578063b88d4fde146103145761018e565b806370a082311461029b578063715018a6146102bb57806380eae808146102c35780638456cb59146102d65780638da5cb5b146102de57806395d89b41146102e65761018e565b806323b872dd1161014b5780633f4ba83a116101255780633f4ba83a1461026557806342842e0e1461026d5780635c975abb146102805780636352211e146102885761018e565b806323b872dd1461022c578063299b1a861461023f57806330176e13146102525761018e565b806301ffc9a71461019357806306fdde03146101bc578063081812fc146101d1578063095ea7b3146101f157806314c00ed31461020657806319ee6e3f14610219575b600080fd5b6101a66101a1366004611bff565b610368565b6040516101b39190611d83565b60405180910390f35b6101c46103b0565b6040516101b39190611d8e565b6101e46101df366004611c6a565b610442565b6040516101b39190611d32565b6102046101ff366004611b81565b61048e565b005b6101c4610214366004611c6a565b610526565b610204610227366004611baa565b610565565b61020461023a366004611aa6565b61062a565b61020461024d366004611c82565b610662565b610204610260366004611c37565b6106bf565b61020461074c565b61020461027b366004611aa6565b610795565b6101a66107b0565b6101e4610296366004611c6a565b6107b9565b6102ae6102a9366004611a53565b6107ee565b6040516101b39190612397565b610204610832565b6102046102d1366004611a53565b6108c1565b610204610922565b6101e4610969565b6101c461097d565b6102046102fc366004611b47565b61098c565b6102ae61030f366004611c37565b610a5a565b610204610322366004611ae1565b610aa2565b6101c4610335366004611c6a565b610adb565b6101e4610b71565b6101a6610350366004611a74565b610b80565b610204610363366004611a53565b610bae565b60006001600160e01b031982166380ac58cd60e01b148061039957506001600160e01b03198216635b5e139f60e01b145b806103a857506103a882610c7a565b90505b919050565b6060600080546103bf9061243d565b80601f01602080910402602001604051908101604052809291908181526020018280546103eb9061243d565b80156104385780601f1061040d57610100808354040283529160200191610438565b820191906000526020600020905b81548152906001019060200180831161041b57829003601f168201915b5050505050905090565b600061044d82610c93565b6104725760405162461bcd60e51b8152600401610469906121be565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610499826107b9565b9050806001600160a01b0316836001600160a01b031614156104cd5760405162461bcd60e51b8152600401610469906122d7565b806001600160a01b03166104df610cb0565b6001600160a01b031614806104fb57506104fb81610350610cb0565b6105175760405162461bcd60e51b815260040161046990612004565b6105218383610cb4565b505050565b606061053182610c93565b61054d5760405162461bcd60e51b81526004016104699061218f565b6000828152600960205260409020546103a890610d22565b61056d610cb0565b6007546001600160a01b0390811691161461059a5760405162461bcd60e51b815260040161046990612061565b6000806105a78385610e4b565b9150915060005b8251811015610622576106108382815181106105da57634e487b7160e01b600052603260045260246000fd5b602002602001015183838151811061060257634e487b7160e01b600052603260045260246000fd5b60200260200101518861101b565b8061061a81612478565b9150506105ae565b505050505050565b61063b610635610cb0565b826110b2565b6106575760405162461bcd60e51b815260040161046990612318565b61052183838361112f565b61066a610cb0565b6001600160a01b031661067b610969565b6001600160a01b0316146106a15760405162461bcd60e51b81526004016104699061220a565b60006106ac8361125c565b90506106b984828461101b565b50505050565b6106c7610cb0565b6001600160a01b03166106d8610969565b6001600160a01b0316146106fe5760405162461bcd60e51b81526004016104699061220a565b8051610711906008906020840190611922565b507ff9c7803e94e0d3c02900d8a90893a6d5e90dd04d32a4cfe825520f82bf9f32f6816040516107419190611d8e565b60405180910390a150565b610754610cb0565b6001600160a01b0316610765610969565b6001600160a01b03161461078b5760405162461bcd60e51b81526004016104699061220a565b61079361135d565b565b61052183838360405180602001604052806000815250610aa2565b60065460ff1690565b6000818152600260205260408120546001600160a01b0316806103a85760405162461bcd60e51b8152600401610469906120e2565b60006001600160a01b0382166108165760405162461bcd60e51b815260040161046990612098565b506001600160a01b031660009081526003602052604090205490565b61083a610cb0565b6001600160a01b031661084b610969565b6001600160a01b0316146108715760405162461bcd60e51b81526004016104699061220a565b60065460405160009161010090046001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a360068054610100600160a81b0319169055565b6108c9610cb0565b6001600160a01b03166108da610969565b6001600160a01b0316146109005760405162461bcd60e51b81526004016104699061220a565b600780546001600160a01b0319166001600160a01b0392909216919091179055565b61092a610cb0565b6001600160a01b031661093b610969565b6001600160a01b0316146109615760405162461bcd60e51b81526004016104699061220a565b6107936113cb565b60065461010090046001600160a01b031690565b6060600180546103bf9061243d565b610994610cb0565b6001600160a01b0316826001600160a01b031614156109c55760405162461bcd60e51b815260040161046990611f57565b80600560006109d2610cb0565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610a16610cb0565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610a4e9190611d83565b60405180910390a35050565b600080610a668361125c565b9050610a7181611426565b610a8d5760405162461bcd60e51b815260040161046990612369565b6000908152600a602052604090205492915050565b610ab3610aad610cb0565b836110b2565b610acf5760405162461bcd60e51b815260040161046990612318565b6106b98484848461143a565b6060610ae682610c93565b610b025760405162461bcd60e51b815260040161046990612288565b600082815260096020526040812054610b1a90610d22565b90506000610b2661146d565b90506000815111610b465760405180602001604052806000815250610b69565b8082604051602001610b59929190611d03565b6040516020818303038152906040525b949350505050565b6007546001600160a01b031681565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b610bb6610cb0565b6001600160a01b0316610bc7610969565b6001600160a01b031614610bed5760405162461bcd60e51b81526004016104699061220a565b6001600160a01b038116610c135760405162461bcd60e51b815260040161046990611e96565b6006546040516001600160a01b0380841692610100900416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600680546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b6001600160e01b031981166301ffc9a760e01b14919050565b6000908152600260205260409020546001600160a01b0316151590565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610ce9826107b9565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6040805160248082526060828101909352600091906020820181803683370190505090506000805b6020811015610e4257848160208110610d7357634e487b7160e01b600052603260045260246000fd5b1a60f81b838381518110610d9757634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053508060071480610dbd575080600b145b80610dc8575080600f145b80610dd35750806013145b15610e225781610de281612478565b925050602d60f81b838381518110610e0a57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053505b81610e2c81612478565b9250508080610e3a90612478565b915050610d4a565b50909392505050565b6060806000808467ffffffffffffffff811115610e7857634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610ea1578160200160208202803683370190505b50905060008567ffffffffffffffff811115610ecd57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610ef6578160200160208202803683370190505b509050600160005b885181101561100b57888181518110610f2757634e487b7160e01b600052603260045260246000fd5b6020910101516001600160f81b031916607b60f81b1415610ff9578115610f9c57600080610f5f8b610f5a8560016123a0565b61147c565b9150915081868881518110610f8457634e487b7160e01b600052603260045260246000fd5b6020908102919091010152600093509150610ff99050565b600080610fb38b610fae8560016123a0565b61153b565b9150915081858881518110610fd857634e487b7160e01b600052603260045260246000fd5b60209081029190910101526001935086610ff181612478565b975090925050505b8061100381612478565b915050610efe565b50919450925050505b9250929050565b61102483610c93565b156110415760405162461bcd60e51b81526004016104699061212b565b61104b8184611696565b6000828152600a60209081526040808320869055858352600990915290208290557ffdc90d498a1602314464a0907c52c51090745809fb1655b49df42e9333129f7061109683610d22565b826040516110a5929190611da1565b60405180910390a1505050565b60006110bd82610c93565b6110d95760405162461bcd60e51b815260040161046990611f8e565b60006110e4836107b9565b9050806001600160a01b0316846001600160a01b0316148061111f5750836001600160a01b031661111484610442565b6001600160a01b0316145b80610b695750610b698185610b80565b826001600160a01b0316611142826107b9565b6001600160a01b0316146111685760405162461bcd60e51b81526004016104699061223f565b6001600160a01b03821661118e5760405162461bcd60e51b815260040161046990611f13565b6111998383836116b4565b6111a4600082610cb4565b6001600160a01b03831660009081526003602052604081208054600192906111cd9084906123d7565b90915550506001600160a01b03821660009081526003602052604081208054600192906111fb9084906123a0565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b604080516020808252818301909252600091839183916020820181803683370190505090506000805b8351811015611350578381815181106112ae57634e487b7160e01b600052603260045260246000fd5b6020910101516001600160f81b031916602d60f81b14156112ce5761133e565b8381815181106112ee57634e487b7160e01b600052603260045260246000fd5b602001015160f81c60f81b83838151811061131957634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053508161133a81612478565b9250505b8061134881612478565b915050611285565b5050602001519392505050565b6113656107b0565b6113815760405162461bcd60e51b815260040161046990611e16565b6006805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6113b4610cb0565b6040516113c19190611d32565b60405180910390a1565b6113d36107b0565b156113f05760405162461bcd60e51b815260040161046990611fda565b6006805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586113b4610cb0565b6000908152600a6020526040902054151590565b61144584848461112f565b611451848484846116bf565b6106b95760405162461bcd60e51b815260040161046990611e44565b6060600880546103bf9061243d565b60008080835b8551811015611530578581815181106114ab57634e487b7160e01b600052603260045260246000fd5b6020910101516001600160f81b031916607d60f81b14156114d0579092509050611014565b60308682815181106114f257634e487b7160e01b600052603260045260246000fd5b0160200151611504919060f81c6123ee565b60ff1661151283600a6123b8565b61151c91906123a0565b91508061152881612478565b915050611482565b509351939492505050565b60408051602080825281830190925260009182918291602082018180368337019050509050600080855b87518110156116855787818151811061158e57634e487b7160e01b600052603260045260246000fd5b6020910101516001600160f81b031916607d60f81b14156115bd57602093909301519450919250611014915050565b8781815181106115dd57634e487b7160e01b600052603260045260246000fd5b6020910101516001600160f81b031916602d60f81b14156115fd57611673565b87818151811061161d57634e487b7160e01b600052603260045260246000fd5b602001015160f81c60f81b848363ffffffff168151811061164e57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053508161166f81612493565b9250505b8061167d81612478565b915050611565565b505050602001519351939492505050565b6116b08282604051806020016040528060008152506117da565b5050565b61052183838361180d565b60006116d3846001600160a01b031661183d565b156117cf57836001600160a01b031663150b7a026116ef610cb0565b8786866040518563ffffffff1660e01b81526004016117119493929190611d46565b602060405180830381600087803b15801561172b57600080fd5b505af192505050801561175b575060408051601f3d908101601f1916820190925261175891810190611c1b565b60015b6117b5573d808015611789576040519150601f19603f3d011682016040523d82523d6000602084013e61178e565b606091505b5080516117ad5760405162461bcd60e51b815260040161046990611e44565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610b69565b506001949350505050565b6117e48383611843565b6117f160008484846116bf565b6105215760405162461bcd60e51b815260040161046990611e44565b611818838383610521565b6118206107b0565b156105215760405162461bcd60e51b815260040161046990611dcb565b3b151590565b6001600160a01b0382166118695760405162461bcd60e51b81526004016104699061215a565b61187281610c93565b1561188f5760405162461bcd60e51b815260040161046990611edc565b61189b600083836116b4565b6001600160a01b03821660009081526003602052604081208054600192906118c49084906123a0565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461192e9061243d565b90600052602060002090601f0160209004810192826119505760008555611996565b82601f1061196957805160ff1916838001178555611996565b82800160010185558215611996579182015b8281111561199657825182559160200191906001019061197b565b506119a29291506119a6565b5090565b5b808211156119a257600081556001016119a7565b80356001600160a01b03811681146103ab57600080fd5b600082601f8301126119e2578081fd5b813567ffffffffffffffff808211156119fd576119fd6124cd565b604051601f8301601f191681016020018281118282101715611a2157611a216124cd565b604052828152848301602001861015611a38578384fd5b82602086016020830137918201602001929092529392505050565b600060208284031215611a64578081fd5b611a6d826119bb565b9392505050565b60008060408385031215611a86578081fd5b611a8f836119bb565b9150611a9d602084016119bb565b90509250929050565b600080600060608486031215611aba578081fd5b611ac3846119bb565b9250611ad1602085016119bb565b9150604084013590509250925092565b60008060008060808587031215611af6578081fd5b611aff856119bb565b9350611b0d602086016119bb565b925060408501359150606085013567ffffffffffffffff811115611b2f578182fd5b611b3b878288016119d2565b91505092959194509250565b60008060408385031215611b59578182fd5b611b62836119bb565b915060208301358015158114611b76578182fd5b809150509250929050565b60008060408385031215611b93578182fd5b611b9c836119bb565b946020939093013593505050565b600080600060608486031215611bbe578283fd5b611bc7846119bb565b925060208401359150604084013567ffffffffffffffff811115611be9578182fd5b611bf5868287016119d2565b9150509250925092565b600060208284031215611c10578081fd5b8135611a6d816124e3565b600060208284031215611c2c578081fd5b8151611a6d816124e3565b600060208284031215611c48578081fd5b813567ffffffffffffffff811115611c5e578182fd5b610b69848285016119d2565b600060208284031215611c7b578081fd5b5035919050565b600080600060608486031215611c96578283fd5b83359250602084013567ffffffffffffffff811115611cb3578283fd5b611cbf868287016119d2565b925050611cce604085016119bb565b90509250925092565b60008151808452611cef816020860160208601612411565b601f01601f19169290920160200192915050565b60008351611d15818460208801612411565b835190830190611d29818360208801612411565b01949350505050565b6001600160a01b0391909116815260200190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611d7990830184611cd7565b9695505050505050565b901515815260200190565b600060208252611a6d6020830184611cd7565b600060408252611db46040830185611cd7565b905060018060a01b03831660208301529392505050565b6020808252602b908201527f4552433732315061757361626c653a20746f6b656e207472616e73666572207760408201526a1a1a5b19481c185d5cd95960aa1b606082015260800190565b60208082526014908201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604082015260600190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252601f908201527f43616c6c6572206973206e6f74207468652070726f7879206d696e7465722e00604082015260600190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b6020808252601590820152742a37b5b2b71030b63932b0b23c9032bc34b9ba399760591b604082015260600190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252601590820152742a37b5b2b7103237b2b9903737ba1032bc34b9ba1760591b604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601490820152732aaaa4a2103237b2b9903737ba1032bc34b9ba1760611b604082015260600190565b90815260200190565b600082198211156123b3576123b36124b7565b500190565b60008160001904831182151516156123d2576123d26124b7565b500290565b6000828210156123e9576123e96124b7565b500390565b600060ff821660ff841680821015612408576124086124b7565b90039392505050565b60005b8381101561242c578181015183820152602001612414565b838111156106b95750506000910152565b60028104600182168061245157607f821691505b6020821081141561247257634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561248c5761248c6124b7565b5060010190565b600063ffffffff808316818114156124ad576124ad6124b7565b6001019392505050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b0319811681146124f957600080fd5b5056fea264697066735822122081111d8ed36e692af63511070ce2b922fe58daa3ab8119e17e0e31940a11956f64736f6c63430008000033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002e68747470733a2f2f6170692e6b6f6c65637469762e67672f6170692f76312f657468657265756d2f746f6b656e2f000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : baseTokenURI (string): https://api.kolectiv.gg/api/v1/ethereum/token/
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 000000000000000000000000000000000000000000000000000000000000002e
Arg [2] : 68747470733a2f2f6170692e6b6f6c65637469762e67672f6170692f76312f65
Arg [3] : 7468657265756d2f746f6b656e2f000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.