ERC-721
Overview
Max Total Supply
508 ART
Holders
272
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 ARTLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
LGNDCreator
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 300 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "./access/AdminControl.sol"; import "./core/CreatorCore.sol"; contract OwnableDelegateProxy {} contract ProxyRegistry { mapping(address => OwnableDelegateProxy) public proxies; } /** * @dev LGNDCreator implementation */ contract LGNDCreator is AdminControl, ERC721, CreatorCore { address private _proxyRegistryAddress; bool private _bridgeEnabled; string private _contractURI; uint256 private _supply; uint256 private _burns; uint256 public imports; uint256 public exports; mapping(address => string) private _linkedAccounts; mapping(uint256 => bool) private _creatorBridgeEnabled; constructor (string memory _name, string memory _symbol) ERC721(_name, _symbol) { } function setProxy(address proxyRegistryAddress) external adminRequired { _proxyRegistryAddress = proxyRegistryAddress; } function setCreator(uint256 creatorId, address creator) external adminRequired { _setCreator(creatorId, creator); } function setBridge(bool enabled) external adminRequired { _bridgeEnabled = enabled; } function getBridge() public view returns (bool enabled) { return _bridgeEnabled; } function setCreatorBridge(uint256 creatorId, bool enabled) external adminRequired { _creatorBridgeEnabled[creatorId] = enabled; } function getCreatorBridge(uint256 creatorId) public view returns (bool enabled) { return _creatorBridgeEnabled[creatorId]; } function getCreator(uint256 creatorId) public view returns (address creator) { return _creatorAddresses[creatorId]; } function getTokenCreator(uint256 tokenId) public view returns (address creator) { require(_exists(tokenId), "Nonexistent token"); uint256 creatorId; if(tokenId > MAX_TOKEN_ID) { creatorId = _creatorTokens[tokenId]; } else { creatorId = tokenId / CREATOR_SCALE; } return _creatorAddresses[creatorId]; } function setContractURI(string memory uri) external adminRequired { _contractURI = uri; } function contractURI() public view returns (string memory) { return _contractURI; } function setLinkedAccount(string memory account) external { _linkedAccounts[msg.sender] = account; } function getLinkedAccount(address owner) public view returns (string memory account) { return _linkedAccounts[owner]; } function totalSupply() public view returns (uint256 supply) { return _supply; } function creatorSupply(uint256 creatorId, uint256 templateId) public view returns (uint256 supply) { return _creatorTokenCount[creatorId][templateId]; } function totalBurns() public view returns (uint256 burns) { return _burns; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721, CreatorCore, AdminControl) returns (bool) { return CreatorCore.supportsInterface(interfaceId) || ERC721.supportsInterface(interfaceId) || AdminControl.supportsInterface(interfaceId); } /** * @dev See {ICreatorCore-setBaseTokenURICreator}. */ function setBaseTokenURICreator(uint256 creatorId, string calldata uri) external override adminRequired { _setBaseTokenURICreator(creatorId, uri); } /** * @dev See {ICreatorCore-setBaseTokenURI}. */ function setBaseTokenURI(string calldata uri) external override adminRequired { _setBaseTokenURI(uri); } /** * @dev See {ICreatorCore-setTokenURI}. */ function setTokenURI(uint256 tokenId, string calldata uri) external override adminRequired { _setTokenURI(tokenId, uri); } /** * @dev See {ICreatorCore-setTokenURI}. */ function setTokenURI(uint256[] memory tokenIds, string[] calldata uris) external override adminRequired { require(tokenIds.length == uris.length, "LGNDToken: Invalid input"); for (uint i = 0; i < tokenIds.length; i++) { _setTokenURI(tokenIds[i], uris[i]); } } function mintCreator(address to, uint256 creatorId, uint256 templateId) external override returns (uint256) { return _mintCreator(to,creatorId,templateId,""); } function mintCreatorURI(address to, uint256 creatorId, uint256 templateId, string calldata uri ) external override returns (uint256) { return _mintCreator(to,creatorId,templateId,uri); } function mintBridge(address to, uint256 creatorId, uint256 tokenId, string calldata linkedAccount) external override returns (uint256) { return _mintBridge(to, creatorId, tokenId, linkedAccount, ""); } function mintBridgeURI(address to, uint256 creatorId, uint256 tokenId, string calldata linkedAccount, string calldata uri) external override returns (uint256) { return _mintBridge(to, creatorId, tokenId, linkedAccount, uri); } function mintCreatorBatch(address to, uint256 creatorId, uint256 templateId, uint256 count) external override returns (uint256[] memory tokenIds) { tokenIds = new uint256[](count); for (uint256 i = 0; i < count; i++) { tokenIds[i] = _mintCreator(to,creatorId,templateId,""); } return tokenIds; } function mintCreatorBatchURI(address to, uint256 creatorId, uint256 templateId, string[] calldata uris) external override returns (uint256[] memory tokenIds) { tokenIds = new uint256[](uris.length); for (uint256 i = 0; i < uris.length; i++) { tokenIds[i] = _mintCreator(to,creatorId,templateId,uris[i]); } return tokenIds; } function mintBridgeBatch(address to, uint256 creatorId, uint256[] memory tokenIds, string calldata linkedAccount) external override returns (uint256[] memory) { for (uint256 i = 0; i < tokenIds.length; i++) { _mintBridge(to,creatorId,tokenIds[i],linkedAccount,""); } return tokenIds; } function mintBridgeBatchURI(address to, uint256 creatorId, uint256[] memory tokenIds, string calldata linkedAccount, string[] calldata uris) external override returns (uint256[] memory) { require(tokenIds.length == uris.length, "LGNDToken: Invalid Input"); for (uint256 i = 0; i < tokenIds.length; i++) { _mintBridge(to,creatorId,tokenIds[i],linkedAccount,uris[i]); } return tokenIds; } /** * @dev Mint token */ function _mintCreator(address to, uint256 creatorId, uint256 templateId, string memory uri) internal virtual returns(uint256 tokenId) { require(_creatorAddresses[creatorId] == msg.sender, "LGNDToken: Must be creator"); require(templateId <= MAX_TEMPLATE_ID, "LGNDToken: templateId exceeds maximum"); uint256 mintId = _creatorTokenCount[creatorId][templateId] + 1; require(mintId <= MAX_MINT_ID, "LGNDToken: no remaining mints available"); _creatorTokenCount[creatorId][templateId] = mintId; tokenId = (creatorId * CREATOR_SCALE) + (templateId * TEMPLATE_SCALE) + mintId; _supply++; _safeMint(to, tokenId); if (bytes(uri).length > 0) { _tokenURIs[tokenId] = uri; } return tokenId; } /** * @dev Mint token */ function _mintBridge(address to, uint256 creatorId, uint256 tokenId, string memory linkedAccount, string memory uri) internal virtual returns(uint256) { require(_creatorAddresses[creatorId] == msg.sender, "LGNDToken: Must be creator"); require(!_exists(tokenId), "Pre-existing token"); _supply++; _safeMint(to, tokenId); if (bytes(uri).length > 0) { _tokenURIs[tokenId] = uri; } emit ImportedToken(to, imports++, tokenId, linkedAccount); return tokenId; } /** * @dev See {IERC721CreatorCore-burn}. */ function burn(uint256 tokenId) external override { require(_isApprovedOrOwner(msg.sender, tokenId), "LGNDToken: caller is not owner nor approved"); address owner = ERC721.ownerOf(tokenId); require(bytes(_linkedAccounts[owner]).length != 0, "LGNDToken: Must link account with setLinkedAccount"); if(tokenId > MAX_TOKEN_ID) { require(_bridgeEnabled, "LGNDToken: Bridge has not been enabled for this token"); // Delete token origin extension tracking delete _creatorTokens[tokenId]; } else { require(_creatorBridgeEnabled[tokenId / CREATOR_SCALE], "LGNDToken: Bridge has not been enabled for this token"); } _burns++; if (bytes(_tokenURIs[tokenId]).length != 0) { delete _tokenURIs[tokenId]; } emit ExportedToken(owner, exports++, tokenId, _linkedAccounts[owner]); _burn(tokenId); } /** * @dev See {ICreatorCore-setRoyalties}. */ function setRoyalties(address payable[] calldata receivers, uint256[] calldata basisPoints) external override adminRequired { _setRoyaltiesCreator(0, receivers, basisPoints); } /** * @dev See {ICreatorCore-setRoyalties}. */ function setRoyalties(uint256 tokenId, address payable[] calldata receivers, uint256[] calldata basisPoints) external override adminRequired { require(_exists(tokenId), "Nonexistent token"); _setRoyalties(tokenId, receivers, basisPoints); } /** * @dev See {ICreatorCore-setRoyaltiesExtension}. */ function setRoyaltiesCreator(uint256 creatorId, address payable[] calldata receivers, uint256[] calldata basisPoints) external override adminRequired { _setRoyaltiesCreator(creatorId, receivers, basisPoints); } /** * @dev {See ICreatorCore-getRoyalties}. */ function getRoyalties(uint256 tokenId) external view virtual override returns (address payable[] memory, uint256[] memory) { require(_exists(tokenId), "Nonexistent token"); return _getRoyalties(tokenId); } /** * @dev {See ICreatorCore-getFees}. */ function getFees(uint256 tokenId) external view virtual override returns (address payable[] memory, uint256[] memory) { require(_exists(tokenId), "Nonexistent token"); return _getRoyalties(tokenId); } /** * @dev {See ICreatorCore-getFeeRecipients}. */ function getFeeRecipients(uint256 tokenId) external view virtual override returns (address payable[] memory) { require(_exists(tokenId), "Nonexistent token"); return _getRoyaltyReceivers(tokenId); } /** * @dev {See ICreatorCore-getFeeBps}. */ function getFeeBps(uint256 tokenId) external view virtual override returns (uint[] memory) { require(_exists(tokenId), "Nonexistent token"); return _getRoyaltyBPS(tokenId); } /** * @dev {See ICreatorCore-royaltyInfo}. */ function royaltyInfo(uint256 tokenId, uint256 value, bytes calldata) external view virtual override returns (address, uint256, bytes memory) { require(_exists(tokenId), "Nonexistent token"); return _getRoyaltyInfo(tokenId, value); } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "Nonexistent token"); return _tokenURI(tokenId); } /** * Override isApprovedForAll to whitelist user's OpenSea proxy accounts to enable gas-less listings. */ function isApprovedForAll(address owner, address operator) override public view returns (bool) { // Whitelist OpenSea proxy contract for easy trading. if(_proxyRegistryAddress != address(0)) { ProxyRegistry proxyRegistry = ProxyRegistry(_proxyRegistryAddress); if (address(proxyRegistry.proxies(owner)) == operator) { return true; } } return super.isApprovedForAll(owner, operator); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.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}. 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 virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || 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 || 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.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { 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` and `to` are never both zero. * * 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 "@openzeppelin/contracts/utils/introspection/ERC165.sol"; import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "./IAdminControl.sol"; abstract contract AdminControl is Ownable, IAdminControl, ERC165 { using EnumerableSet for EnumerableSet.AddressSet; // Track registered admins EnumerableSet.AddressSet private _admins; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IAdminControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Only allows approved admins to call the specified function */ modifier adminRequired() { require(owner() == msg.sender || _admins.contains(msg.sender), "AdminControl: Must be owner or admin"); _; } /** * @dev See {IAdminControl-getAdmins}. */ function getAdmins() external view override returns (address[] memory admins) { admins = new address[](_admins.length()); for (uint i = 0; i < _admins.length(); i++) { admins[i] = _admins.at(i); } return admins; } /** * @dev See {IAdminControl-approveAdmin}. */ function approveAdmin(address admin) external override onlyOwner { if (!_admins.contains(admin)) { emit AdminApproved(admin, msg.sender); _admins.add(admin); } } /** * @dev See {IAdminControl-revokeAdmin}. */ function revokeAdmin(address admin) external override onlyOwner { if (_admins.contains(admin)) { emit AdminRevoked(admin, msg.sender); _admins.remove(admin); } } /** * @dev See {IAdminControl-isAdmin}. */ function isAdmin(address admin) public override view returns (bool) { return (owner() == admin || _admins.contains(admin)); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165Checker.sol"; import "./ICreatorCore.sol"; /** * @dev Core creator implementation */ abstract contract CreatorCore is ICreatorCore, ERC165 { using Strings for uint256; uint256 internal constant CREATOR_SCALE = 1e6; uint256 internal constant TEMPLATE_SCALE = 1e4; uint256 internal constant MAX_MINT_ID = 9999; uint256 internal constant MAX_TEMPLATE_ID = 99; uint256 internal constant MAX_TOKEN_ID = 1e10; // For tracking bridged tokenids to a creator mapping (uint256 => uint256) internal _creatorTokens; // For tracking which address mints for a creator mapping (uint256 => address) internal _creatorAddresses; // Mapping from creator ID to template ID to mint number mapping(uint256 => mapping(uint256 => uint256)) internal _creatorTokenCount; // Mapping for creator token URIs mapping (uint256 => string) internal _creatorURIs; // Creator royalty configurations mapping (uint256 => address payable[]) internal _creatorRoyaltyReceivers; mapping (uint256 => uint256[]) internal _creatorRoyaltyBPS; // Mapping for individual token URIs mapping (uint256 => string) internal _tokenURIs; // Token royalty configurations mapping (uint256 => address payable[]) internal _tokenRoyaltyReceivers; mapping (uint256 => uint256[]) internal _tokenRoyaltyBPS; /** * External interface identifiers for royalties */ /** * @dev CreatorCore * * bytes4(keccak256('getRoyalties(uint256)')) == 0xbb3bafd6 * * => 0xbb3bafd6 = 0xbb3bafd6 */ bytes4 private constant _INTERFACE_ID_ROYALTIES_CREATORCORE = 0xbb3bafd6; /** * @dev Rarible: RoyaltiesV1 * * bytes4(keccak256('getFeeRecipients(uint256)')) == 0xb9c4d9fb * bytes4(keccak256('getFeeBps(uint256)')) == 0x0ebd4c7f * * => 0xb9c4d9fb ^ 0x0ebd4c7f = 0xb7799584 */ bytes4 private constant _INTERFACE_ID_ROYALTIES_RARIBLE = 0xb7799584; /** * @dev Foundation * * bytes4(keccak256('getFees(uint256)')) == 0xd5a06d4c * * => 0xd5a06d4c = 0xd5a06d4c */ bytes4 private constant _INTERFACE_ID_ROYALTIES_FOUNDATION = 0xd5a06d4c; /** * @dev EIP-2981 * * bytes4(keccak256("royaltyInfo(uint256,uint256,bytes)")) == 0x6057361d * * => 0x6057361d = 0x6057361d */ bytes4 private constant _INTERFACE_ID_ROYALTIES_EIP2981 = 0x6057361d; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(ICreatorCore).interfaceId || super.supportsInterface(interfaceId) || interfaceId == _INTERFACE_ID_ROYALTIES_CREATORCORE || interfaceId == _INTERFACE_ID_ROYALTIES_EIP2981 || interfaceId == _INTERFACE_ID_ROYALTIES_FOUNDATION || interfaceId == _INTERFACE_ID_ROYALTIES_EIP2981; } /** * @dev Set address for creator id */ function _setCreator(uint256 creatorId, address creator) internal { _creatorAddresses[creatorId] = creator; emit CreatorUpdated(creatorId, creator); } /** * @dev Set base token uri for a creator */ function _setBaseTokenURICreator(uint256 creatorId, string calldata uri) internal { _creatorURIs[creatorId] = uri; } /** * @dev Set base token uri for tokens with no creator */ function _setBaseTokenURI(string calldata uri) internal { _creatorURIs[0] = uri; } /** * @dev Set token uri for a token with no creator */ function _setTokenURI(uint256 tokenId, string calldata uri) internal { _tokenURIs[tokenId] = uri; } /** * @dev Retrieve a token's URI */ function _tokenURI(uint256 tokenId) internal view returns (string memory) { if (bytes(_tokenURIs[tokenId]).length != 0) { return _tokenURIs[tokenId]; } uint256 creatorId; if(tokenId > MAX_TOKEN_ID) { creatorId = _creatorTokens[tokenId]; } else { creatorId = tokenId / CREATOR_SCALE; } if (bytes(_creatorURIs[creatorId]).length != 0) { return string(abi.encodePacked(_creatorURIs[creatorId], tokenId.toString())); } return string(abi.encodePacked(_creatorURIs[0], tokenId.toString())); } /** * Helper to get royalties for a token */ function _getRoyalties(uint256 tokenId) view internal returns (address payable[] storage, uint256[] storage) { return (_getRoyaltyReceivers(tokenId), _getRoyaltyBPS(tokenId)); } /** * Helper to get royalty receivers for a token */ function _getRoyaltyReceivers(uint256 tokenId) view internal returns (address payable[] storage) { uint256 creatorId; if(tokenId > MAX_TOKEN_ID) { creatorId = _creatorTokens[tokenId]; } else { creatorId = tokenId / CREATOR_SCALE; } if (_tokenRoyaltyReceivers[tokenId].length > 0) { return _tokenRoyaltyReceivers[tokenId]; } else if (_creatorRoyaltyReceivers[creatorId].length > 0) { return _creatorRoyaltyReceivers[creatorId]; } return _creatorRoyaltyReceivers[0]; } /** * Helper to get royalty basis points for a token */ function _getRoyaltyBPS(uint256 tokenId) view internal returns (uint256[] storage) { uint256 creatorId; if(tokenId > MAX_TOKEN_ID) { creatorId = _creatorTokens[tokenId]; } else { creatorId = tokenId / CREATOR_SCALE; } if (_tokenRoyaltyBPS[tokenId].length > 0) { return _tokenRoyaltyBPS[tokenId]; } else if (_creatorRoyaltyBPS[creatorId].length > 0) { return _creatorRoyaltyBPS[creatorId]; } return _creatorRoyaltyBPS[0]; } function _getRoyaltyInfo(uint256 tokenId, uint256 value) view internal returns (address receiver, uint256 amount, bytes memory data){ address payable[] storage receivers = _getRoyaltyReceivers(tokenId); require(receivers.length <= 1, "CreatorCore: Only works if there are at most 1 royalty receivers"); if (receivers.length == 0) { return (address(this), 0, data); } return (receivers[0], _getRoyaltyBPS(tokenId)[0]*value/10000, data); } /** * Helper to shorten royalties arrays if it is too long */ function _shortenRoyalties(address payable[] storage receivers, uint256[] storage basisPoints, uint256 targetLength) internal { require(receivers.length == basisPoints.length, "CreatorCore: Invalid input"); if (targetLength < receivers.length) { for (uint i = receivers.length; i > targetLength; i--) { receivers.pop(); basisPoints.pop(); } } } /** * Helper to update royalites */ function _updateRoyalties(address payable[] storage receivers, uint256[] storage basisPoints, address payable[] calldata newReceivers, uint256[] calldata newBPS) internal { require(receivers.length == basisPoints.length, "CreatorCore: Invalid input"); require(newReceivers.length == newBPS.length, "CreatorCore: Invalid input"); uint256 totalRoyalties; for (uint i = 0; i < newReceivers.length; i++) { if (i < receivers.length) { receivers[i] = newReceivers[i]; basisPoints[i] = newBPS[i]; } else { receivers.push(newReceivers[i]); basisPoints.push(newBPS[i]); } totalRoyalties += newBPS[i]; } require(totalRoyalties < 10000, "CreatorCore: Invalid total royalties"); } /** * Set royalties for a token */ function _setRoyalties(uint256 tokenId, address payable[] calldata receivers, uint256[] calldata basisPoints) internal { require(receivers.length == basisPoints.length, "CreatorCore: Invalid input"); _shortenRoyalties(_tokenRoyaltyReceivers[tokenId], _tokenRoyaltyBPS[tokenId], receivers.length); _updateRoyalties(_tokenRoyaltyReceivers[tokenId], _tokenRoyaltyBPS[tokenId], receivers, basisPoints); emit RoyaltiesUpdated(tokenId, receivers, basisPoints); } /** * Set royalties for all tokens of an extension */ function _setRoyaltiesCreator(uint256 creatorId, address payable[] calldata receivers, uint256[] calldata basisPoints) internal { require(receivers.length == basisPoints.length, "CreatorCore: Invalid input"); _shortenRoyalties(_creatorRoyaltyReceivers[creatorId], _creatorRoyaltyBPS[creatorId], receivers.length); _updateRoyalties(_creatorRoyaltyReceivers[creatorId], _creatorRoyaltyBPS[creatorId], receivers, basisPoints); if (creatorId == 0) { emit DefaultRoyaltiesUpdated(receivers, basisPoints); } else { emit CreatorRoyaltiesUpdated(creatorId, receivers, basisPoints); } } }
// 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 "../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; 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"); (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); } } } }
// 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) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @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); } }
// 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); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping(bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; if (lastIndex != toDeleteIndex) { bytes32 lastvalue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastvalue; // Update the index for the moved value set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex } // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { return set._values[index]; } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function _values(Set storage set) private view returns (bytes32[] memory) { return set._values; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(Bytes32Set storage set) internal view returns (bytes32[] memory) { return _values(set._inner); } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(AddressSet storage set) internal view returns (address[] memory) { bytes32[] memory store = _values(set._inner); address[] memory result; assembly { result := store } return result; } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(UintSet storage set) internal view returns (uint256[] memory) { bytes32[] memory store = _values(set._inner); uint256[] memory result; assembly { result := store } 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() { _setOwner(_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 { _setOwner(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"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/utils/introspection/IERC165.sol"; /** * @dev Interface for admin control */ interface IAdminControl is IERC165 { event AdminApproved(address indexed account, address indexed sender); event AdminRevoked(address indexed account, address indexed sender); /** * @dev gets address of all admins */ function getAdmins() external view returns (address[] memory); /** * @dev add an admin. Can only be called by contract owner. */ function approveAdmin(address admin) external; /** * @dev remove an admin. Can only be called by contract owner. */ function revokeAdmin(address admin) external; /** * @dev checks whether or not given address is an admin * Returns True if they are */ function isAdmin(address admin) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Library used to query support of an interface declared via {IERC165}. * * Note that these functions return the actual result of the query: they do not * `revert` if an interface is not supported. It is up to the caller to decide * what to do in these cases. */ library ERC165Checker { // As per the EIP-165 spec, no interface should ever match 0xffffffff bytes4 private constant _INTERFACE_ID_INVALID = 0xffffffff; /** * @dev Returns true if `account` supports the {IERC165} interface, */ function supportsERC165(address account) internal view returns (bool) { // Any contract that implements ERC165 must explicitly indicate support of // InterfaceId_ERC165 and explicitly indicate non-support of InterfaceId_Invalid return _supportsERC165Interface(account, type(IERC165).interfaceId) && !_supportsERC165Interface(account, _INTERFACE_ID_INVALID); } /** * @dev Returns true if `account` supports the interface defined by * `interfaceId`. Support for {IERC165} itself is queried automatically. * * See {IERC165-supportsInterface}. */ function supportsInterface(address account, bytes4 interfaceId) internal view returns (bool) { // query support of both ERC165 as per the spec and support of _interfaceId return supportsERC165(account) && _supportsERC165Interface(account, interfaceId); } /** * @dev Returns a boolean array where each value corresponds to the * interfaces passed in and whether they're supported or not. This allows * you to batch check interfaces for a contract where your expectation * is that some interfaces may not be supported. * * See {IERC165-supportsInterface}. * * _Available since v3.4._ */ function getSupportedInterfaces(address account, bytes4[] memory interfaceIds) internal view returns (bool[] memory) { // an array of booleans corresponding to interfaceIds and whether they're supported or not bool[] memory interfaceIdsSupported = new bool[](interfaceIds.length); // query support of ERC165 itself if (supportsERC165(account)) { // query support of each interface in interfaceIds for (uint256 i = 0; i < interfaceIds.length; i++) { interfaceIdsSupported[i] = _supportsERC165Interface(account, interfaceIds[i]); } } return interfaceIdsSupported; } /** * @dev Returns true if `account` supports all the interfaces defined in * `interfaceIds`. Support for {IERC165} itself is queried automatically. * * Batch-querying can lead to gas savings by skipping repeated checks for * {IERC165} support. * * See {IERC165-supportsInterface}. */ function supportsAllInterfaces(address account, bytes4[] memory interfaceIds) internal view returns (bool) { // query support of ERC165 itself if (!supportsERC165(account)) { return false; } // query support of each interface in _interfaceIds for (uint256 i = 0; i < interfaceIds.length; i++) { if (!_supportsERC165Interface(account, interfaceIds[i])) { return false; } } // all interfaces supported return true; } /** * @notice Query if a contract implements an interface, does not check ERC165 support * @param account The address of the contract to query for support of an interface * @param interfaceId The interface identifier, as specified in ERC-165 * @return true if the contract at account indicates support of the interface with * identifier interfaceId, false otherwise * @dev Assumes that account contains a contract that supports ERC165, otherwise * the behavior of this method is undefined. This precondition can be checked * with {supportsERC165}. * Interface identification is specified in ERC-165. */ function _supportsERC165Interface(address account, bytes4 interfaceId) private view returns (bool) { bytes memory encodedParams = abi.encodeWithSelector(IERC165.supportsInterface.selector, interfaceId); (bool success, bytes memory result) = account.staticcall{gas: 30000}(encodedParams); if (result.length < 32) return false; return success && abi.decode(result, (bool)); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/utils/introspection/IERC165.sol"; /** * @dev Core creator interface */ interface ICreatorCore is IERC165 { event CreatorUpdated(uint256 indexed creatorId, address indexed creator); event RoyaltiesUpdated(uint256 indexed tokenId, address payable[] receivers, uint256[] basisPoints); event CreatorRoyaltiesUpdated(uint256 indexed creatorId, address payable[] receivers, uint256[] basisPoints); event DefaultRoyaltiesUpdated(address payable[] receivers, uint256[] basisPoints); event ImportedToken(address indexed to, uint256 indexed eventId, uint256 indexed tokenId, string linkedAccount); event ExportedToken(address indexed to, uint256 indexed eventId, uint256 indexed tokenId, string linkedAccount); function mintCreator(address to, uint256 creatorId, uint256 templateId) external returns (uint256); function mintCreatorURI(address to, uint256 creatorId, uint256 templateId, string calldata uri ) external returns (uint256); function mintBridge(address to, uint256 creatorId, uint256 tokenId, string calldata linkedAccount) external returns (uint256); function mintBridgeURI(address to, uint256 creatorId, uint256 tokenId, string calldata linkedAccount, string calldata uri) external returns (uint256); function mintCreatorBatch(address to, uint256 creatorId, uint256 templateId, uint256 count) external returns (uint256[] memory); function mintCreatorBatchURI(address to, uint256 creatorId, uint256 templateId, string[] calldata uris) external returns (uint256[] memory); function mintBridgeBatch(address to, uint256 creatorId, uint256[] memory tokenIds, string calldata linkedAccount) external returns (uint256[] memory); function mintBridgeBatchURI(address to, uint256 creatorId, uint256[] memory tokenIds, string calldata linkedAccount, string[] calldata uris) external returns (uint256[] memory); /** * @dev burn a token. Can only be called by token owner or approved address. * On burn, calls back to the registered extension's onBurn method */ function burn(uint256 tokenId) external; /** * @dev set the baseTokenURI for tokens. Can only be called by owner/admin. * For tokens with no uri configured, tokenURI will return "uri+tokenId" */ function setBaseTokenURI(string calldata uri) external; /** * @dev set the common uri for tokens with a creator. Can only be called by owner/admin. * For tokens with no uri configured, tokenURI will return "commonURI+tokenId" */ function setBaseTokenURICreator(uint256 creatorId, string calldata uri) external; /** * @dev set the tokenURI of a token. Can only be called by owner/admin. */ function setTokenURI(uint256 tokenId, string calldata uri) external; /** * @dev set the tokenURI of multiple tokens. Can only be called by owner/admin. */ function setTokenURI(uint256[] memory tokenIds, string[] calldata uris) external; /** * @dev Set default royalties */ function setRoyalties(address payable[] calldata receivers, uint256[] calldata basisPoints) external; /** * @dev Set royalties of a token */ function setRoyalties(uint256 tokenId, address payable[] calldata receivers, uint256[] calldata basisPoints) external; /** * @dev Set royalties of an creator */ function setRoyaltiesCreator(uint256 creatorId, address payable[] calldata receivers, uint256[] calldata basisPoints) external; /** * @dev Get royalites of a token. Returns list of receivers and basisPoints */ function getRoyalties(uint256 tokenId) external view returns (address payable[] memory, uint256[] memory); // Royalty support for various other standards function getFeeRecipients(uint256 tokenId) external view returns (address payable[] memory); function getFeeBps(uint256 tokenId) external view returns (uint[] memory); function getFees(uint256 tokenId) external view returns (address payable[] memory, uint256[] memory); function royaltyInfo(uint256 tokenId, uint256 value, bytes calldata data) external view returns (address, uint256, bytes memory); }
{ "optimizer": { "enabled": true, "runs": 300 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"AdminApproved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"AdminRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"creatorId","type":"uint256"},{"indexed":false,"internalType":"address payable[]","name":"receivers","type":"address[]"},{"indexed":false,"internalType":"uint256[]","name":"basisPoints","type":"uint256[]"}],"name":"CreatorRoyaltiesUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"creatorId","type":"uint256"},{"indexed":true,"internalType":"address","name":"creator","type":"address"}],"name":"CreatorUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address payable[]","name":"receivers","type":"address[]"},{"indexed":false,"internalType":"uint256[]","name":"basisPoints","type":"uint256[]"}],"name":"DefaultRoyaltiesUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"eventId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"string","name":"linkedAccount","type":"string"}],"name":"ExportedToken","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"eventId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"string","name":"linkedAccount","type":"string"}],"name":"ImportedToken","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"address payable[]","name":"receivers","type":"address[]"},{"indexed":false,"internalType":"uint256[]","name":"basisPoints","type":"uint256[]"}],"name":"RoyaltiesUpdated","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":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"admin","type":"address"}],"name":"approveAdmin","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"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"creatorId","type":"uint256"},{"internalType":"uint256","name":"templateId","type":"uint256"}],"name":"creatorSupply","outputs":[{"internalType":"uint256","name":"supply","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"exports","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAdmins","outputs":[{"internalType":"address[]","name":"admins","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBridge","outputs":[{"internalType":"bool","name":"enabled","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"creatorId","type":"uint256"}],"name":"getCreator","outputs":[{"internalType":"address","name":"creator","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"creatorId","type":"uint256"}],"name":"getCreatorBridge","outputs":[{"internalType":"bool","name":"enabled","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getFeeBps","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getFeeRecipients","outputs":[{"internalType":"address payable[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getFees","outputs":[{"internalType":"address payable[]","name":"","type":"address[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"getLinkedAccount","outputs":[{"internalType":"string","name":"account","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getRoyalties","outputs":[{"internalType":"address payable[]","name":"","type":"address[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getTokenCreator","outputs":[{"internalType":"address","name":"creator","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"imports","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"admin","type":"address"}],"name":"isAdmin","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"creatorId","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"linkedAccount","type":"string"}],"name":"mintBridge","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"creatorId","type":"uint256"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"string","name":"linkedAccount","type":"string"}],"name":"mintBridgeBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"creatorId","type":"uint256"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"string","name":"linkedAccount","type":"string"},{"internalType":"string[]","name":"uris","type":"string[]"}],"name":"mintBridgeBatchURI","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"creatorId","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"linkedAccount","type":"string"},{"internalType":"string","name":"uri","type":"string"}],"name":"mintBridgeURI","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"creatorId","type":"uint256"},{"internalType":"uint256","name":"templateId","type":"uint256"}],"name":"mintCreator","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"creatorId","type":"uint256"},{"internalType":"uint256","name":"templateId","type":"uint256"},{"internalType":"uint256","name":"count","type":"uint256"}],"name":"mintCreatorBatch","outputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"creatorId","type":"uint256"},{"internalType":"uint256","name":"templateId","type":"uint256"},{"internalType":"string[]","name":"uris","type":"string[]"}],"name":"mintCreatorBatchURI","outputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"creatorId","type":"uint256"},{"internalType":"uint256","name":"templateId","type":"uint256"},{"internalType":"string","name":"uri","type":"string"}],"name":"mintCreatorURI","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"admin","type":"address"}],"name":"revokeAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"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":"uri","type":"string"}],"name":"setBaseTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"creatorId","type":"uint256"},{"internalType":"string","name":"uri","type":"string"}],"name":"setBaseTokenURICreator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"enabled","type":"bool"}],"name":"setBridge","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"creatorId","type":"uint256"},{"internalType":"address","name":"creator","type":"address"}],"name":"setCreator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"creatorId","type":"uint256"},{"internalType":"bool","name":"enabled","type":"bool"}],"name":"setCreatorBridge","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"account","type":"string"}],"name":"setLinkedAccount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"proxyRegistryAddress","type":"address"}],"name":"setProxy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address payable[]","name":"receivers","type":"address[]"},{"internalType":"uint256[]","name":"basisPoints","type":"uint256[]"}],"name":"setRoyalties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable[]","name":"receivers","type":"address[]"},{"internalType":"uint256[]","name":"basisPoints","type":"uint256[]"}],"name":"setRoyalties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"creatorId","type":"uint256"},{"internalType":"address payable[]","name":"receivers","type":"address[]"},{"internalType":"uint256[]","name":"basisPoints","type":"uint256[]"}],"name":"setRoyaltiesCreator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"uri","type":"string"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"string[]","name":"uris","type":"string[]"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalBurns","outputs":[{"internalType":"uint256","name":"burns","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"supply","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"}]
Contract Creation Code
60806040523480156200001157600080fd5b5060405162004df938038062004df9833981016040819052620000349162000220565b8181620000413362000077565b815162000056906003906020850190620000c7565b5080516200006c906004906020840190620000c7565b5050505050620002da565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b828054620000d59062000287565b90600052602060002090601f016020900481019282620000f9576000855562000144565b82601f106200011457805160ff191683800117855562000144565b8280016001018555821562000144579182015b828111156200014457825182559160200191906001019062000127565b506200015292915062000156565b5090565b5b8082111562000152576000815560010162000157565b600082601f8301126200017e578081fd5b81516001600160401b03808211156200019b576200019b620002c4565b604051601f8301601f19908116603f01168101908282118183101715620001c657620001c6620002c4565b81604052838152602092508683858801011115620001e2578485fd5b8491505b83821015620002055785820183015181830184015290820190620001e6565b838211156200021657848385830101525b9695505050505050565b6000806040838503121562000233578182fd5b82516001600160401b03808211156200024a578384fd5b62000258868387016200016d565b935060208501519150808211156200026e578283fd5b506200027d858286016200016d565b9150509250929050565b600181811c908216806200029c57607f821691505b60208210811415620002be57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b614b0f80620002ea6000396000f3fe608060405234801561001057600080fd5b506004361061038e5760003560e01c8063715018a6116101de578063abd44cda1161010f578063d48e638a116100ad578063e8a3d4851161007c578063e8a3d485146107fb578063e985e9c514610803578063f274290b14610816578063f2fde38b1461081f57600080fd5b8063d48e638a1461079c578063d5516105146107c5578063d5a06d4c14610746578063deec5f42146107d857600080fd5b8063b9c4d9fb116100e9578063b9c4d9fb14610726578063bb3bafd614610746578063c155531d14610767578063c87b56dd1461078957600080fd5b8063abd44cda146106d5578063aeab688a14610700578063b88d4fde1461071357600080fd5b806395d89b411161017c5780639df32e26116101565780639df32e26146106895780639f6482221461069c578063a22cb465146106af578063aafb2d44146106c257600080fd5b806395d89b411461065b57806397107d6d146106635780639974df221461067657600080fd5b80638da5cb5b116101b85780638da5cb5b1461061157806391686f5314610622578063934689a914610635578063938e3d7b1461064857600080fd5b8063715018a6146105e3578063770b894b146105eb5780638d70ea48146105fe57600080fd5b80632d345670116102c35780634857578e116102615780636352211e116102305780636352211e146105a2578063694ca01d146105b55780636d73e669146105bd57806370a08231146105d057600080fd5b80634857578e146105605780635681e217146105735780635c2973251461058657806360a95ad91461058f57600080fd5b806332dac3dc1161029d57806332dac3dc14610514578063332dd1ae1461052757806342842e0e1461053a57806342966c681461054d57600080fd5b80632d345670146104d957806330176e13146104ec57806331ae450b146104ff57600080fd5b8063162094c41161033057806320e4afe21161030a57806320e4afe21461048d57806323b872dd146104a057806324d7806c146104b35780632962cfbd146104c657600080fd5b8063162094c41461045557806318160ddd1461046857806319201a8c1461047a57600080fd5b8063095ea7b31161036c578063095ea7b3146103fb5780630ebd4c7f146104105780630fffbaf3146104305780631453fff11461044257600080fd5b806301ffc9a71461039357806306fdde03146103bb578063081812fc146103d0575b600080fd5b6103a66103a13660046141f2565b610832565b60405190151581526020015b60405180910390f35b6103c3610861565b6040516103b291906146c6565b6103e36103de3660046142ca565b6108f3565b6040516001600160a01b0390911681526020016103b2565b61040e610409366004613e18565b61098d565b005b61042361041e3660046142ca565b610aa3565b6040516103b291906146b3565b601254600160a01b900460ff166103a6565b61040e610450366004614306565b610b39565b61040e61046336600461438d565b610b97565b6014545b6040519081526020016103b2565b61046c610488366004613ffc565b610bec565b61040e61049b366004614306565b610c48565b61040e6104ae366004613d28565b610cd3565b6103a66104c1366004613cd4565b610d04565b6103c36104d4366004613cd4565b610d3d565b61040e6104e7366004613cd4565b610ddf565b61040e6104fa366004614246565b610e8f565b610507610ee3565b6040516103b291906145af565b61046c610522366004614052565b610fad565b61040e61053536600461410b565b611031565b61040e610548366004613d28565b61108f565b61040e61055b3660046142ca565b6110aa565b61040e61056e36600461438d565b6112f5565b610423610581366004613ec6565b61134a565b61046c60165481565b61040e61059d366004614285565b61149b565b6103e36105b03660046142ca565b6114bb565b60155461046c565b61040e6105cb366004613cd4565b611532565b61046c6105de366004613cd4565b6115dc565b61040e611663565b61046c6105f9366004613f72565b6116c9565b61046c61060c366004613ffc565b6116ee565b6000546001600160a01b03166103e3565b61040e6106303660046142e2565b611732565b6103e36106433660046142ca565b611786565b61040e610656366004614285565b61180c565b6103c3611869565b61040e610671366004613cd4565b611878565b61040e6106843660046141d8565b6118e4565b610423610697366004613e43565b61194c565b61040e6106aa36600461436b565b6119ef565b61040e6106bd366004613de4565b611a59565b61040e6106d0366004614173565b611b1e565b61046c6106e33660046143c9565b6000918252600b6020908152604080842092845291905290205490565b61042361070e366004613fa6565b611c38565b61040e610721366004613d68565b611d50565b6107396107343660046142ca565b611d82565b6040516103b2919061467b565b6107596107543660046142ca565b611e21565b6040516103b292919061468e565b61077a6107753660046143ea565b611f1d565b6040516103b29392919061457e565b6103c36107973660046142ca565b611f70565b6103e36107aa3660046142ca565b6000908152600a60205260409020546001600160a01b031690565b6104236107d33660046140d1565b611fb0565b6103a66107e63660046142ca565b60009081526019602052604090205460ff1690565b6103c3612070565b6103a6610811366004613cf0565b61207f565b61046c60175481565b61040e61082d366004613cd4565b612161565b600061083d82612229565b8061084c575061084c826122bf565b8061085b575061085b826122fa565b92915050565b606060038054610870906149e2565b80601f016020809104026020016040519081016040528092919081815260200182805461089c906149e2565b80156108e95780601f106108be576101008083540402835291602001916108e9565b820191906000526020600020905b8154815290600101906020018083116108cc57829003601f168201915b5050505050905090565b6000818152600560205260408120546001600160a01b03166109715760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600760205260409020546001600160a01b031690565b6000610998826114bb565b9050806001600160a01b0316836001600160a01b03161415610a065760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610968565b336001600160a01b0382161480610a225750610a22813361207f565b610a945760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610968565b610a9e838361232f565b505050565b6000818152600560205260409020546060906001600160a01b0316610ada5760405162461bcd60e51b815260040161096890614809565b610ae38261239d565b805480602002602001604051908101604052809291908181526020018280548015610b2d57602002820191906000526020600020905b815481526020019060010190808311610b19575b50505050509050919050565b33610b4c6000546001600160a01b031690565b6001600160a01b03161480610b675750610b67600133612451565b610b835760405162461bcd60e51b815260040161096890614885565b610b908585858585612473565b5050505050565b33610baa6000546001600160a01b031690565b6001600160a01b03161480610bc55750610bc5600133612451565b610be15760405162461bcd60e51b815260040161096890614885565b610a9e838383612587565b6000610c3e86868686868080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920182905250604080516020810190915290815292506125a0915050565b9695505050505050565b33610c5b6000546001600160a01b031690565b6001600160a01b03161480610c765750610c76600133612451565b610c925760405162461bcd60e51b815260040161096890614885565b6000858152600560205260409020546001600160a01b0316610cc65760405162461bcd60e51b815260040161096890614809565b610b908585858585612707565b610cdd33826127c5565b610cf95760405162461bcd60e51b815260040161096890614834565b610a9e838383612894565b6000816001600160a01b0316610d226000546001600160a01b031690565b6001600160a01b0316148061085b575061085b600183612451565b6001600160a01b0381166000908152601860205260409020805460609190610d64906149e2565b80601f0160208091040260200160405190810160405280929190818152602001828054610d90906149e2565b8015610b2d5780601f10610db257610100808354040283529160200191610b2d565b820191906000526020600020905b815481529060010190602001808311610dc05750939695505050505050565b6000546001600160a01b03163314610e395760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610968565b610e44600182612451565b15610e8c5760405133906001600160a01b038316907f7c0c3c84c67c85fcac635147348bfe374c24a1a93d0366d1cfe9d8853cbf89d590600090a3610e8a600182612a34565b505b50565b33610ea26000546001600160a01b031690565b6001600160a01b03161480610ebd5750610ebd600133612451565b610ed95760405162461bcd60e51b815260040161096890614885565b610e8a8282612a49565b6060610eef6001612a7d565b6001600160401b03811115610f1457634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610f3d578160200160208202803683370190505b50905060005b610f4d6001612a7d565b811015610fa957610f5f600182612a87565b828281518110610f7f57634e487b7160e01b600052603260045260246000fd5b6001600160a01b039092166020928302919091019091015280610fa181614a1d565b915050610f43565b5090565b600061102588888888888080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080516020601f8c018190048102820181019092528a815292508a91508990819084018382808284376000920191909152506125a092505050565b98975050505050505050565b336110446000546001600160a01b031690565b6001600160a01b0316148061105f575061105f600133612451565b61107b5760405162461bcd60e51b815260040161096890614885565b611089600085858585612473565b50505050565b610a9e83838360405180602001604052806000815250611d50565b6110b433826127c5565b6111145760405162461bcd60e51b815260206004820152602b60248201527f4c474e44546f6b656e3a2063616c6c6572206973206e6f74206f776e6572206e60448201526a1bdc88185c1c1c9bdd995960aa1b6064820152608401610968565b600061111f826114bb565b6001600160a01b0381166000908152601860205260409020805491925090611146906149e2565b151590506111b15760405162461bcd60e51b815260206004820152603260248201527f4c474e44546f6b656e3a204d757374206c696e6b206163636f756e74207769746044820152711a081cd95d131a5b9ad9591058d8dbdd5b9d60721b6064820152608401610968565b6402540be4008211156111fb57601254600160a01b900460ff166111e75760405162461bcd60e51b8152600401610968906147ac565b60008281526009602052604081205561123c565b6019600061120c620f424085614955565b815260208101919091526040016000205460ff1661123c5760405162461bcd60e51b8152600401610968906147ac565b6015805490600061124c83614a1d565b90915550506000828152600f60205260409020805461126a906149e2565b159050611288576000828152600f6020526040812061128891613a1b565b601780548391600061129983614a1d565b909155506001600160a01b0383166000818152601860205260409081902090517f4638ef7a3a1c6f71c431bae6fcd8153597010b8f6f9764b2b17e3f756e55f3e0916112e4916146d9565b60405180910390a4610e8a82612a93565b336113086000546001600160a01b031690565b6001600160a01b031614806113235750611323600133612451565b61133f5760405162461bcd60e51b815260040161096890614885565b610a9e838383612b2e565b8451606090821461139d5760405162461bcd60e51b815260206004820152601860248201527f4c474e44546f6b656e3a20496e76616c696420496e70757400000000000000006044820152606401610968565b60005b865181101561148e5761147b89898984815181106113ce57634e487b7160e01b600052603260045260246000fd5b602002602001015189898080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508b92508a915088905081811061142f57634e487b7160e01b600052603260045260246000fd5b905060200281019061144191906148c9565b8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506125a092505050565b508061148681614a1d565b9150506113a0565b5094979650505050505050565b3360009081526018602090815260409091208251610e8a92840190613a55565b6000818152600560205260408120546001600160a01b03168061085b5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610968565b6000546001600160a01b0316331461158c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610968565b611597600182612451565b610e8c5760405133906001600160a01b038316907f7e1a1a08d52e4ba0e21554733d66165fd5151f99460116223d9e3a608eec5cb190600090a3610e8a600182612b47565b60006001600160a01b0382166116475760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610968565b506001600160a01b031660009081526006602052604090205490565b6000546001600160a01b031633146116bd5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610968565b6116c76000612b5c565b565b60006116e684848460405180602001604052806000815250612bac565b949350505050565b6000610c3e86868686868080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612bac92505050565b336117456000546001600160a01b031690565b6001600160a01b031614806117605750611760600133612451565b61177c5760405162461bcd60e51b815260040161096890614885565b610e8a8282612d95565b6000818152600560205260408120546001600160a01b03166117ba5760405162461bcd60e51b815260040161096890614809565b60006402540be4008311156117de57506000828152600960205260409020546117ee565b6117eb620f424084614955565b90505b6000908152600a60205260409020546001600160a01b031692915050565b3361181f6000546001600160a01b031690565b6001600160a01b0316148061183a575061183a600133612451565b6118565760405162461bcd60e51b815260040161096890614885565b8051610e8a906013906020840190613a55565b606060048054610870906149e2565b3361188b6000546001600160a01b031690565b6001600160a01b031614806118a657506118a6600133612451565b6118c25760405162461bcd60e51b815260040161096890614885565b601280546001600160a01b0319166001600160a01b0392909216919091179055565b336118f76000546001600160a01b031690565b6001600160a01b031614806119125750611912600133612451565b61192e5760405162461bcd60e51b815260040161096890614885565b60128054911515600160a01b0260ff60a01b19909216919091179055565b606060005b84518110156119e4576119d1878787848151811061197f57634e487b7160e01b600052603260045260246000fd5b602002602001015187878080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920182905250604080516020810190915290815292506125a0915050565b50806119dc81614a1d565b915050611951565b509295945050505050565b33611a026000546001600160a01b031690565b6001600160a01b03161480611a1d5750611a1d600133612451565b611a395760405162461bcd60e51b815260040161096890614885565b600091825260196020526040909120805460ff1916911515919091179055565b6001600160a01b038216331415611ab25760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610968565b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b33611b316000546001600160a01b031690565b6001600160a01b03161480611b4c5750611b4c600133612451565b611b685760405162461bcd60e51b815260040161096890614885565b82518114611bb85760405162461bcd60e51b815260206004820152601860248201527f4c474e44546f6b656e3a20496e76616c696420696e70757400000000000000006044820152606401610968565b60005b835181101561108957611c26848281518110611be757634e487b7160e01b600052603260045260246000fd5b6020026020010151848484818110611c0f57634e487b7160e01b600052603260045260246000fd5b9050602002810190611c2191906148c9565b612587565b80611c3081614a1d565b915050611bbb565b6060816001600160401b03811115611c6057634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611c89578160200160208202803683370190505b50905060005b82811015611d4657611d09878787878786818110611cbd57634e487b7160e01b600052603260045260246000fd5b9050602002810190611ccf91906148c9565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612bac92505050565b828281518110611d2957634e487b7160e01b600052603260045260246000fd5b602090810291909101015280611d3e81614a1d565b915050611c8f565b5095945050505050565b611d5a33836127c5565b611d765760405162461bcd60e51b815260040161096890614834565b61108984848484612dee565b6000818152600560205260409020546060906001600160a01b0316611db95760405162461bcd60e51b815260040161096890614809565b611dc282612e21565b805480602002602001604051908101604052809291908181526020018280548015610b2d57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611df85750505050509050919050565b606080611e45836000908152600560205260409020546001600160a01b0316151590565b611e615760405162461bcd60e51b815260040161096890614809565b611e6a83612ed5565b815460408051602080840282018101909252828152918491830182828015611ebb57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611e9d575b5050505050915080805480602002602001604051908101604052809291908181526020018280548015611f0d57602002820191906000526020600020905b815481526020019060010190808311611ef9575b5050505050905091509150915091565b60008481526005602052604081205481906060906001600160a01b0316611f565760405162461bcd60e51b815260040161096890614809565b611f608787612ef3565b9250925092509450945094915050565b6000818152600560205260409020546060906001600160a01b0316611fa75760405162461bcd60e51b815260040161096890614809565b61085b82613022565b6060816001600160401b03811115611fd857634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015612001578160200160208202803683370190505b50905060005b828110156120675761202a86868660405180602001604052806000815250612bac565b82828151811061204a57634e487b7160e01b600052603260045260246000fd5b60209081029190910101528061205f81614a1d565b915050612007565b50949350505050565b606060138054610870906149e2565b6012546000906001600160a01b0316156121305760125460405163c455279160e01b81526001600160a01b03858116600483015291821691841690829063c45527919060240160206040518083038186803b1580156120dd57600080fd5b505afa1580156120f1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612115919061422a565b6001600160a01b0316141561212e57600191505061085b565b505b6001600160a01b0380841660009081526008602090815260408083209386168352929052205460ff165b9392505050565b6000546001600160a01b031633146121bb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610968565b6001600160a01b0381166122205760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610968565b610e8c81612b5c565b60006001600160e01b03198216637c148b1360e11b148061224e575061224e826122bf565b8061226957506001600160e01b03198216635d9dd7eb60e11b145b8061228457506001600160e01b03198216636057361d60e01b145b8061229f57506001600160e01b031982166335681b5360e21b145b8061085b57506001600160e01b03198216636057361d60e01b1492915050565b60006001600160e01b031982166380ac58cd60e01b148061084c57506001600160e01b03198216635b5e139f60e01b148061085b575061085b825b60006001600160e01b03198216632a9f3abf60e11b148061085b57506301ffc9a760e01b6001600160e01b031983161461085b565b600081815260076020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612364826114bb565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000806402540be4008311156123c257506000828152600960205260409020546123d2565b6123cf620f424084614955565b90505b600083815260116020526040902054156123f9575050600090815260116020526040902090565b6000818152600e602052604090205415612421576000908152600e6020526040902092915050565b50506000805250600e6020527fe710864318d4a32f37d6ce54cb3fadbef648dd12d8dbdf53973564d56b7f881c90565b6001600160a01b0381166000908152600183016020526040812054151561215a565b8281146124b05760405162461bcd60e51b815260206004820152601a6024820152600080516020614aba8339815191526044820152606401610968565b6000858152600d60209081526040808320600e9092529091206124d4919085613125565b6000858152600d60209081526040808320600e9092529091206124fb919086868686613200565b84612542577f2b6849d5976d799a5b0ca4dfd6b40a3d7afe9ea72c091fa01a958594f9a2659b8484848460405161253594939291906145fc565b60405180910390a1610b90565b847f87cff20dc7bc4caef76dcedb28343154605e5f94c08921eff30e5b34f081e2938585858560405161257894939291906145fc565b60405180910390a25050505050565b6000838152600f60205260409020611089908383613ad5565b6000848152600a60205260408120546001600160a01b031633146126065760405162461bcd60e51b815260206004820152601a60248201527f4c474e44546f6b656e3a204d7573742062652063726561746f720000000000006044820152606401610968565b6000848152600560205260409020546001600160a01b0316156126605760405162461bcd60e51b815260206004820152601260248201527128393296b2bc34b9ba34b733903a37b5b2b760711b6044820152606401610968565b6014805490600061267083614a1d565b919050555061267f86856134c5565b8151156126a7576000848152600f6020908152604090912083516126a592850190613a55565b505b60168054859160006126b883614a1d565b91905055876001600160a01b03167fa7141af30fcc82b884950f8dc4ad98f44473a51f9edd7b0c9ce9cfd17560b357866040516126f591906146c6565b60405180910390a45091949350505050565b8281146127445760405162461bcd60e51b815260206004820152601a6024820152600080516020614aba8339815191526044820152606401610968565b60008581526010602090815260408083206011909252909120612768919085613125565b6000858152601060209081526040808320601190925290912061278f919086868686613200565b847fabb46fe0761d77584bde75697647804ffd8113abd4d8d06bc664150395eccdee8585858560405161257894939291906145fc565b6000818152600560205260408120546001600160a01b031661283e5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610968565b6000612849836114bb565b9050806001600160a01b0316846001600160a01b031614806128845750836001600160a01b0316612879846108f3565b6001600160a01b0316145b806116e657506116e6818561207f565b826001600160a01b03166128a7826114bb565b6001600160a01b03161461290f5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610968565b6001600160a01b0382166129715760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610968565b61297c60008261232f565b6001600160a01b03831660009081526006602052604081208054600192906129a5908490614988565b90915550506001600160a01b03821660009081526006602052604081208054600192906129d390849061493d565b909155505060008181526005602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600061215a836001600160a01b0384166134df565b60008052600c602052610a9e7f13649b2456f1b42fef0f0040b3aaeabcd21a76a0f3f5defd4f583839455116e88383613ad5565b600061085b825490565b600061215a83836135fc565b6000612a9e826114bb565b9050612aab60008361232f565b6001600160a01b0381166000908152600660205260408120805460019290612ad4908490614988565b909155505060008281526005602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6000838152600c60205260409020611089908383613ad5565b600061215a836001600160a01b038416613634565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000838152600a60205260408120546001600160a01b03163314612c125760405162461bcd60e51b815260206004820152601a60248201527f4c474e44546f6b656e3a204d7573742062652063726561746f720000000000006044820152606401610968565b6063831115612c715760405162461bcd60e51b815260206004820152602560248201527f4c474e44546f6b656e3a2074656d706c61746549642065786365656473206d6160448201526478696d756d60d81b6064820152608401610968565b6000848152600b60209081526040808320868452909152812054612c9690600161493d565b905061270f811115612cfa5760405162461bcd60e51b815260206004820152602760248201527f4c474e44546f6b656e3a206e6f2072656d61696e696e67206d696e747320617660448201526661696c61626c6560c81b6064820152608401610968565b6000858152600b60209081526040808320878452909152902081905580612d2361271086614969565b612d30620f424088614969565b612d3a919061493d565b612d44919061493d565b601480549193506000612d5683614a1d565b9190505550612d6586836134c5565b825115612067576000828152600f602090815260409091208451612d8b92860190613a55565b5050949350505050565b6000828152600a602052604080822080546001600160a01b0319166001600160a01b0385169081179091559051909184917fc0186d9ba7364ebd80a7010121367f481af81e1028bf368b2172fedf2c6fc7de9190a35050565b612df9848484612894565b612e0584848484613683565b6110895760405162461bcd60e51b81526004016109689061475a565b6000806402540be400831115612e465750600082815260096020526040902054612e56565b612e53620f424084614955565b90505b60008381526010602052604090205415612e7d575050600090815260106020526040902090565b6000818152600d602052604090205415612ea5576000908152600d6020526040902092915050565b50506000805250600d6020527f81955a0a11e65eac625c29e8882660bae4e165a75d72780094acae8ece9a29ee90565b600080612ee183612e21565b612eea8461239d565b91509150915091565b60008060606000612f0386612e21565b805490915060011015612f80576040805162461bcd60e51b81526020600482015260248101919091527f43726561746f72436f72653a204f6e6c7920776f726b7320696620746865726560448201527f20617265206174206d6f7374203120726f79616c7479207265636569766572736064820152608401610968565b8054612f9357306000935093505061301b565b80600081548110612fb457634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031661271086612fd68961239d565b600081548110612ff657634e487b7160e01b600052603260045260246000fd5b906000526020600020015461300b9190614969565b6130159190614955565b93509350505b9250925092565b6000818152600f6020526040902080546060919061303f906149e2565b15905061305f576000828152600f602052604090208054610d64906149e2565b60006402540be4008311156130835750600082815260096020526040902054613093565b613090620f424084614955565b90505b6000818152600c6020526040902080546130ac906149e2565b1590506130f2576000818152600c602052604090206130ca8461378d565b6040516020016130db9291906144cc565b604051602081830303815290604052915050919050565b60008052600c6020527f13649b2456f1b42fef0f0040b3aaeabcd21a76a0f3f5defd4f583839455116e86130ca8461378d565b81548354146131645760405162461bcd60e51b815260206004820152601a6024820152600080516020614aba8339815191526044820152606401610968565b8254811015610a9e5782545b81811115611089578380548061319657634e487b7160e01b600052603160045260246000fd5b600082815260209020810160001990810180546001600160a01b031916905501905582548390806131d757634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905580806131f8906149cb565b915050613170565b845486541461323f5760405162461bcd60e51b815260206004820152601a6024820152600080516020614aba8339815191526044820152606401610968565b82811461327c5760405162461bcd60e51b815260206004820152601a6024820152600080516020614aba8339815191526044820152606401610968565b6000805b8481101561345e57875481101561336c578585828181106132b157634e487b7160e01b600052603260045260246000fd5b90506020020160208101906132c69190613cd4565b8882815481106132e657634e487b7160e01b600052603260045260246000fd5b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555083838281811061333457634e487b7160e01b600052603260045260246000fd5b9050602002013587828154811061335b57634e487b7160e01b600052603260045260246000fd5b600091825260209091200155613418565b8786868381811061338d57634e487b7160e01b600052603260045260246000fd5b90506020020160208101906133a29190613cd4565b81546001810183556000928352602090922090910180546001600160a01b0319166001600160a01b03909216919091179055868484838181106133f557634e487b7160e01b600052603260045260246000fd5b835460018101855560009485526020948590209190940292909201359190920155505b83838281811061343857634e487b7160e01b600052603260045260246000fd5b905060200201358261344a919061493d565b91508061345681614a1d565b915050613280565b5061271081106134bc5760405162461bcd60e51b8152602060048201526024808201527f43726561746f72436f72653a20496e76616c696420746f74616c20726f79616c6044820152637469657360e01b6064820152608401610968565b50505050505050565b610e8a8282604051806020016040528060008152506138a6565b600081815260018301602052604081205480156135f2576000613503600183614988565b855490915060009061351790600190614988565b905081811461359857600086600001828154811061354557634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508087600001848154811061357657634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255918252600188019052604090208390555b85548690806135b757634e487b7160e01b600052603160045260246000fd5b60019003818190600052602060002001600090559055856001016000868152602001908152602001600020600090556001935050505061085b565b600091505061085b565b600082600001828154811061362157634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905092915050565b600081815260018301602052604081205461367b5750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561085b565b50600061085b565b60006001600160a01b0384163b1561378557604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906136c790339089908890889060040161454c565b602060405180830381600087803b1580156136e157600080fd5b505af1925050508015613711575060408051601f3d908101601f1916820190925261370e9181019061420e565b60015b61376b573d80801561373f576040519150601f19603f3d011682016040523d82523d6000602084013e613744565b606091505b5080516137635760405162461bcd60e51b81526004016109689061475a565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506116e6565b5060016116e6565b6060816137b15750506040805180820190915260018152600360fc1b602082015290565b8160005b81156137db57806137c581614a1d565b91506137d49050600a83614955565b91506137b5565b6000816001600160401b0381111561380357634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561382d576020820181803683370190505b5090505b84156116e657613842600183614988565b915061384f600a86614a38565b61385a90603061493d565b60f81b81838151811061387d57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535061389f600a86614955565b9450613831565b6138b083836138d9565b6138bd6000848484613683565b610a9e5760405162461bcd60e51b81526004016109689061475a565b6001600160a01b03821661392f5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610968565b6000818152600560205260409020546001600160a01b0316156139945760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610968565b6001600160a01b03821660009081526006602052604081208054600192906139bd90849061493d565b909155505060008181526005602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b508054613a27906149e2565b6000825580601f10613a37575050565b601f016020900490600052602060002090810190610e8c9190613b49565b828054613a61906149e2565b90600052602060002090601f016020900481019282613a835760008555613ac9565b82601f10613a9c57805160ff1916838001178555613ac9565b82800160010185558215613ac9579182015b82811115613ac9578251825591602001919060010190613aae565b50610fa9929150613b49565b828054613ae1906149e2565b90600052602060002090601f016020900481019282613b035760008555613ac9565b82601f10613b1c5782800160ff19823516178555613ac9565b82800160010185558215613ac9579182015b82811115613ac9578235825591602001919060010190613b2e565b5b80821115610fa95760008155600101613b4a565b60006001600160401b03831115613b7757613b77614a78565b613b8a601f8401601f191660200161490d565b9050828152838383011115613b9e57600080fd5b828260208301376000602084830101529392505050565b60008083601f840112613bc6578182fd5b5081356001600160401b03811115613bdc578182fd5b6020830191508360208260051b8501011115613bf757600080fd5b9250929050565b600082601f830112613c0e578081fd5b813560206001600160401b03821115613c2957613c29614a78565b8160051b613c3882820161490d565b838152828101908684018388018501891015613c52578687fd5b8693505b85841015613c74578035835260019390930192918401918401613c56565b50979650505050505050565b80358015158114613c9057600080fd5b919050565b60008083601f840112613ca6578182fd5b5081356001600160401b03811115613cbc578182fd5b602083019150836020828501011115613bf757600080fd5b600060208284031215613ce5578081fd5b813561215a81614a8e565b60008060408385031215613d02578081fd5b8235613d0d81614a8e565b91506020830135613d1d81614a8e565b809150509250929050565b600080600060608486031215613d3c578081fd5b8335613d4781614a8e565b92506020840135613d5781614a8e565b929592945050506040919091013590565b60008060008060808587031215613d7d578081fd5b8435613d8881614a8e565b93506020850135613d9881614a8e565b92506040850135915060608501356001600160401b03811115613db9578182fd5b8501601f81018713613dc9578182fd5b613dd887823560208401613b5e565b91505092959194509250565b60008060408385031215613df6578182fd5b8235613e0181614a8e565b9150613e0f60208401613c80565b90509250929050565b60008060408385031215613e2a578182fd5b8235613e3581614a8e565b946020939093013593505050565b600080600080600060808688031215613e5a578283fd5b8535613e6581614a8e565b94506020860135935060408601356001600160401b0380821115613e87578485fd5b613e9389838a01613bfe565b94506060880135915080821115613ea8578283fd5b50613eb588828901613c95565b969995985093965092949392505050565b600080600080600080600060a0888a031215613ee0578485fd5b8735613eeb81614a8e565b96506020880135955060408801356001600160401b0380821115613f0d578687fd5b613f198b838c01613bfe565b965060608a0135915080821115613f2e578384fd5b613f3a8b838c01613c95565b909650945060808a0135915080821115613f52578384fd5b50613f5f8a828b01613bb5565b989b979a50959850939692959293505050565b600080600060608486031215613f86578081fd5b8335613f9181614a8e565b95602085013595506040909401359392505050565b600080600080600060808688031215613fbd578283fd5b8535613fc881614a8e565b9450602086013593506040860135925060608601356001600160401b03811115613ff0578182fd5b613eb588828901613bb5565b600080600080600060808688031215614013578283fd5b853561401e81614a8e565b9450602086013593506040860135925060608601356001600160401b03811115614046578182fd5b613eb588828901613c95565b600080600080600080600060a0888a03121561406c578081fd5b873561407781614a8e565b9650602088013595506040880135945060608801356001600160401b03808211156140a0578283fd5b6140ac8b838c01613c95565b909650945060808a01359150808211156140c4578283fd5b50613f5f8a828b01613c95565b600080600080608085870312156140e6578182fd5b84356140f181614a8e565b966020860135965060408601359560600135945092505050565b60008060008060408587031215614120578182fd5b84356001600160401b0380821115614136578384fd5b61414288838901613bb5565b9096509450602087013591508082111561415a578384fd5b5061416787828801613bb5565b95989497509550505050565b600080600060408486031215614187578081fd5b83356001600160401b038082111561419d578283fd5b6141a987838801613bfe565b945060208601359150808211156141be578283fd5b506141cb86828701613bb5565b9497909650939450505050565b6000602082840312156141e9578081fd5b61215a82613c80565b600060208284031215614203578081fd5b813561215a81614aa3565b60006020828403121561421f578081fd5b815161215a81614aa3565b60006020828403121561423b578081fd5b815161215a81614a8e565b60008060208385031215614258578182fd5b82356001600160401b0381111561426d578283fd5b61427985828601613c95565b90969095509350505050565b600060208284031215614296578081fd5b81356001600160401b038111156142ab578182fd5b8201601f810184136142bb578182fd5b6116e684823560208401613b5e565b6000602082840312156142db578081fd5b5035919050565b600080604083850312156142f4578182fd5b823591506020830135613d1d81614a8e565b60008060008060006060868803121561431d578283fd5b8535945060208601356001600160401b038082111561433a578485fd5b61434689838a01613bb5565b9096509450604088013591508082111561435e578283fd5b50613eb588828901613bb5565b6000806040838503121561437d578182fd5b82359150613e0f60208401613c80565b6000806000604084860312156143a1578081fd5b8335925060208401356001600160401b038111156143bd578182fd5b6141cb86828701613c95565b600080604083850312156143db578182fd5b50508035926020909101359150565b600080600080606085870312156143ff578182fd5b843593506020850135925060408501356001600160401b03811115614422578283fd5b61416787828801613c95565b6000815180845260208085019450808401835b838110156144665781516001600160a01b031687529582019590820190600101614441565b509495945050505050565b6000815180845260208085019450808401835b8381101561446657815187529582019590820190600101614484565b600081518084526144b881602086016020860161499f565b601f01601f19169290920160200192915050565b60008084546144da816149e2565b600182811680156144f257600181146145035761452f565b60ff1984168752828701945061452f565b8886526020808720875b858110156145265781548a82015290840190820161450d565b50505082870194505b50505050835161454381836020880161499f565b01949350505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152610c3e60808301846144a0565b6001600160a01b03841681528260208201526060604082015260006145a660608301846144a0565b95945050505050565b6020808252825182820181905260009190848201906040850190845b818110156145f05783516001600160a01b0316835292840192918401916001016145cb565b50909695505050505050565b6040808252810184905260008560608301825b8781101561463f57823561462281614a8e565b6001600160a01b031682526020928301929091019060010161460f565b5083810360208501528481526001600160fb1b0385111561465e578283fd5b8460051b9150818660208301370160200190815295945050505050565b60208152600061215a602083018461442e565b6040815260006146a1604083018561442e565b82810360208401526145a68185614471565b60208152600061215a6020830184614471565b60208152600061215a60208301846144a0565b600060208083528184546146ec816149e2565b8084870152604060018084166000811461470d57600181146147215761474c565b60ff1985168984015260608901955061474c565b898852868820885b858110156147445781548b8201860152908301908801614729565b8a0184019650505b509398975050505050505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526035908201527f4c474e44546f6b656e3a2042726964676520686173206e6f74206265656e206560408201527f6e61626c656420666f72207468697320746f6b656e0000000000000000000000606082015260800190565b6020808252601190820152702737b732bc34b9ba32b73a103a37b5b2b760791b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60208082526024908201527f41646d696e436f6e74726f6c3a204d757374206265206f776e6572206f7220616040820152633236b4b760e11b606082015260800190565b6000808335601e198436030181126148df578283fd5b8301803591506001600160401b038211156148f8578283fd5b602001915036819003821315613bf757600080fd5b604051601f8201601f191681016001600160401b038111828210171561493557614935614a78565b604052919050565b6000821982111561495057614950614a4c565b500190565b60008261496457614964614a62565b500490565b600081600019048311821515161561498357614983614a4c565b500290565b60008282101561499a5761499a614a4c565b500390565b60005b838110156149ba5781810151838201526020016149a2565b838111156110895750506000910152565b6000816149da576149da614a4c565b506000190190565b600181811c908216806149f657607f821691505b60208210811415614a1757634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415614a3157614a31614a4c565b5060010190565b600082614a4757614a47614a62565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610e8c57600080fd5b6001600160e01b031981168114610e8c57600080fdfe43726561746f72436f72653a20496e76616c696420696e707574000000000000a26469706673582212206801593285c3a4c715616acb928ac9e257b1d03267e886efd4c52c9a6160deb064736f6c634300080400330000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000084c474e442e61727400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034152540000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061038e5760003560e01c8063715018a6116101de578063abd44cda1161010f578063d48e638a116100ad578063e8a3d4851161007c578063e8a3d485146107fb578063e985e9c514610803578063f274290b14610816578063f2fde38b1461081f57600080fd5b8063d48e638a1461079c578063d5516105146107c5578063d5a06d4c14610746578063deec5f42146107d857600080fd5b8063b9c4d9fb116100e9578063b9c4d9fb14610726578063bb3bafd614610746578063c155531d14610767578063c87b56dd1461078957600080fd5b8063abd44cda146106d5578063aeab688a14610700578063b88d4fde1461071357600080fd5b806395d89b411161017c5780639df32e26116101565780639df32e26146106895780639f6482221461069c578063a22cb465146106af578063aafb2d44146106c257600080fd5b806395d89b411461065b57806397107d6d146106635780639974df221461067657600080fd5b80638da5cb5b116101b85780638da5cb5b1461061157806391686f5314610622578063934689a914610635578063938e3d7b1461064857600080fd5b8063715018a6146105e3578063770b894b146105eb5780638d70ea48146105fe57600080fd5b80632d345670116102c35780634857578e116102615780636352211e116102305780636352211e146105a2578063694ca01d146105b55780636d73e669146105bd57806370a08231146105d057600080fd5b80634857578e146105605780635681e217146105735780635c2973251461058657806360a95ad91461058f57600080fd5b806332dac3dc1161029d57806332dac3dc14610514578063332dd1ae1461052757806342842e0e1461053a57806342966c681461054d57600080fd5b80632d345670146104d957806330176e13146104ec57806331ae450b146104ff57600080fd5b8063162094c41161033057806320e4afe21161030a57806320e4afe21461048d57806323b872dd146104a057806324d7806c146104b35780632962cfbd146104c657600080fd5b8063162094c41461045557806318160ddd1461046857806319201a8c1461047a57600080fd5b8063095ea7b31161036c578063095ea7b3146103fb5780630ebd4c7f146104105780630fffbaf3146104305780631453fff11461044257600080fd5b806301ffc9a71461039357806306fdde03146103bb578063081812fc146103d0575b600080fd5b6103a66103a13660046141f2565b610832565b60405190151581526020015b60405180910390f35b6103c3610861565b6040516103b291906146c6565b6103e36103de3660046142ca565b6108f3565b6040516001600160a01b0390911681526020016103b2565b61040e610409366004613e18565b61098d565b005b61042361041e3660046142ca565b610aa3565b6040516103b291906146b3565b601254600160a01b900460ff166103a6565b61040e610450366004614306565b610b39565b61040e61046336600461438d565b610b97565b6014545b6040519081526020016103b2565b61046c610488366004613ffc565b610bec565b61040e61049b366004614306565b610c48565b61040e6104ae366004613d28565b610cd3565b6103a66104c1366004613cd4565b610d04565b6103c36104d4366004613cd4565b610d3d565b61040e6104e7366004613cd4565b610ddf565b61040e6104fa366004614246565b610e8f565b610507610ee3565b6040516103b291906145af565b61046c610522366004614052565b610fad565b61040e61053536600461410b565b611031565b61040e610548366004613d28565b61108f565b61040e61055b3660046142ca565b6110aa565b61040e61056e36600461438d565b6112f5565b610423610581366004613ec6565b61134a565b61046c60165481565b61040e61059d366004614285565b61149b565b6103e36105b03660046142ca565b6114bb565b60155461046c565b61040e6105cb366004613cd4565b611532565b61046c6105de366004613cd4565b6115dc565b61040e611663565b61046c6105f9366004613f72565b6116c9565b61046c61060c366004613ffc565b6116ee565b6000546001600160a01b03166103e3565b61040e6106303660046142e2565b611732565b6103e36106433660046142ca565b611786565b61040e610656366004614285565b61180c565b6103c3611869565b61040e610671366004613cd4565b611878565b61040e6106843660046141d8565b6118e4565b610423610697366004613e43565b61194c565b61040e6106aa36600461436b565b6119ef565b61040e6106bd366004613de4565b611a59565b61040e6106d0366004614173565b611b1e565b61046c6106e33660046143c9565b6000918252600b6020908152604080842092845291905290205490565b61042361070e366004613fa6565b611c38565b61040e610721366004613d68565b611d50565b6107396107343660046142ca565b611d82565b6040516103b2919061467b565b6107596107543660046142ca565b611e21565b6040516103b292919061468e565b61077a6107753660046143ea565b611f1d565b6040516103b29392919061457e565b6103c36107973660046142ca565b611f70565b6103e36107aa3660046142ca565b6000908152600a60205260409020546001600160a01b031690565b6104236107d33660046140d1565b611fb0565b6103a66107e63660046142ca565b60009081526019602052604090205460ff1690565b6103c3612070565b6103a6610811366004613cf0565b61207f565b61046c60175481565b61040e61082d366004613cd4565b612161565b600061083d82612229565b8061084c575061084c826122bf565b8061085b575061085b826122fa565b92915050565b606060038054610870906149e2565b80601f016020809104026020016040519081016040528092919081815260200182805461089c906149e2565b80156108e95780601f106108be576101008083540402835291602001916108e9565b820191906000526020600020905b8154815290600101906020018083116108cc57829003601f168201915b5050505050905090565b6000818152600560205260408120546001600160a01b03166109715760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600760205260409020546001600160a01b031690565b6000610998826114bb565b9050806001600160a01b0316836001600160a01b03161415610a065760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610968565b336001600160a01b0382161480610a225750610a22813361207f565b610a945760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610968565b610a9e838361232f565b505050565b6000818152600560205260409020546060906001600160a01b0316610ada5760405162461bcd60e51b815260040161096890614809565b610ae38261239d565b805480602002602001604051908101604052809291908181526020018280548015610b2d57602002820191906000526020600020905b815481526020019060010190808311610b19575b50505050509050919050565b33610b4c6000546001600160a01b031690565b6001600160a01b03161480610b675750610b67600133612451565b610b835760405162461bcd60e51b815260040161096890614885565b610b908585858585612473565b5050505050565b33610baa6000546001600160a01b031690565b6001600160a01b03161480610bc55750610bc5600133612451565b610be15760405162461bcd60e51b815260040161096890614885565b610a9e838383612587565b6000610c3e86868686868080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920182905250604080516020810190915290815292506125a0915050565b9695505050505050565b33610c5b6000546001600160a01b031690565b6001600160a01b03161480610c765750610c76600133612451565b610c925760405162461bcd60e51b815260040161096890614885565b6000858152600560205260409020546001600160a01b0316610cc65760405162461bcd60e51b815260040161096890614809565b610b908585858585612707565b610cdd33826127c5565b610cf95760405162461bcd60e51b815260040161096890614834565b610a9e838383612894565b6000816001600160a01b0316610d226000546001600160a01b031690565b6001600160a01b0316148061085b575061085b600183612451565b6001600160a01b0381166000908152601860205260409020805460609190610d64906149e2565b80601f0160208091040260200160405190810160405280929190818152602001828054610d90906149e2565b8015610b2d5780601f10610db257610100808354040283529160200191610b2d565b820191906000526020600020905b815481529060010190602001808311610dc05750939695505050505050565b6000546001600160a01b03163314610e395760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610968565b610e44600182612451565b15610e8c5760405133906001600160a01b038316907f7c0c3c84c67c85fcac635147348bfe374c24a1a93d0366d1cfe9d8853cbf89d590600090a3610e8a600182612a34565b505b50565b33610ea26000546001600160a01b031690565b6001600160a01b03161480610ebd5750610ebd600133612451565b610ed95760405162461bcd60e51b815260040161096890614885565b610e8a8282612a49565b6060610eef6001612a7d565b6001600160401b03811115610f1457634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610f3d578160200160208202803683370190505b50905060005b610f4d6001612a7d565b811015610fa957610f5f600182612a87565b828281518110610f7f57634e487b7160e01b600052603260045260246000fd5b6001600160a01b039092166020928302919091019091015280610fa181614a1d565b915050610f43565b5090565b600061102588888888888080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080516020601f8c018190048102820181019092528a815292508a91508990819084018382808284376000920191909152506125a092505050565b98975050505050505050565b336110446000546001600160a01b031690565b6001600160a01b0316148061105f575061105f600133612451565b61107b5760405162461bcd60e51b815260040161096890614885565b611089600085858585612473565b50505050565b610a9e83838360405180602001604052806000815250611d50565b6110b433826127c5565b6111145760405162461bcd60e51b815260206004820152602b60248201527f4c474e44546f6b656e3a2063616c6c6572206973206e6f74206f776e6572206e60448201526a1bdc88185c1c1c9bdd995960aa1b6064820152608401610968565b600061111f826114bb565b6001600160a01b0381166000908152601860205260409020805491925090611146906149e2565b151590506111b15760405162461bcd60e51b815260206004820152603260248201527f4c474e44546f6b656e3a204d757374206c696e6b206163636f756e74207769746044820152711a081cd95d131a5b9ad9591058d8dbdd5b9d60721b6064820152608401610968565b6402540be4008211156111fb57601254600160a01b900460ff166111e75760405162461bcd60e51b8152600401610968906147ac565b60008281526009602052604081205561123c565b6019600061120c620f424085614955565b815260208101919091526040016000205460ff1661123c5760405162461bcd60e51b8152600401610968906147ac565b6015805490600061124c83614a1d565b90915550506000828152600f60205260409020805461126a906149e2565b159050611288576000828152600f6020526040812061128891613a1b565b601780548391600061129983614a1d565b909155506001600160a01b0383166000818152601860205260409081902090517f4638ef7a3a1c6f71c431bae6fcd8153597010b8f6f9764b2b17e3f756e55f3e0916112e4916146d9565b60405180910390a4610e8a82612a93565b336113086000546001600160a01b031690565b6001600160a01b031614806113235750611323600133612451565b61133f5760405162461bcd60e51b815260040161096890614885565b610a9e838383612b2e565b8451606090821461139d5760405162461bcd60e51b815260206004820152601860248201527f4c474e44546f6b656e3a20496e76616c696420496e70757400000000000000006044820152606401610968565b60005b865181101561148e5761147b89898984815181106113ce57634e487b7160e01b600052603260045260246000fd5b602002602001015189898080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508b92508a915088905081811061142f57634e487b7160e01b600052603260045260246000fd5b905060200281019061144191906148c9565b8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506125a092505050565b508061148681614a1d565b9150506113a0565b5094979650505050505050565b3360009081526018602090815260409091208251610e8a92840190613a55565b6000818152600560205260408120546001600160a01b03168061085b5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610968565b6000546001600160a01b0316331461158c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610968565b611597600182612451565b610e8c5760405133906001600160a01b038316907f7e1a1a08d52e4ba0e21554733d66165fd5151f99460116223d9e3a608eec5cb190600090a3610e8a600182612b47565b60006001600160a01b0382166116475760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610968565b506001600160a01b031660009081526006602052604090205490565b6000546001600160a01b031633146116bd5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610968565b6116c76000612b5c565b565b60006116e684848460405180602001604052806000815250612bac565b949350505050565b6000610c3e86868686868080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612bac92505050565b336117456000546001600160a01b031690565b6001600160a01b031614806117605750611760600133612451565b61177c5760405162461bcd60e51b815260040161096890614885565b610e8a8282612d95565b6000818152600560205260408120546001600160a01b03166117ba5760405162461bcd60e51b815260040161096890614809565b60006402540be4008311156117de57506000828152600960205260409020546117ee565b6117eb620f424084614955565b90505b6000908152600a60205260409020546001600160a01b031692915050565b3361181f6000546001600160a01b031690565b6001600160a01b0316148061183a575061183a600133612451565b6118565760405162461bcd60e51b815260040161096890614885565b8051610e8a906013906020840190613a55565b606060048054610870906149e2565b3361188b6000546001600160a01b031690565b6001600160a01b031614806118a657506118a6600133612451565b6118c25760405162461bcd60e51b815260040161096890614885565b601280546001600160a01b0319166001600160a01b0392909216919091179055565b336118f76000546001600160a01b031690565b6001600160a01b031614806119125750611912600133612451565b61192e5760405162461bcd60e51b815260040161096890614885565b60128054911515600160a01b0260ff60a01b19909216919091179055565b606060005b84518110156119e4576119d1878787848151811061197f57634e487b7160e01b600052603260045260246000fd5b602002602001015187878080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920182905250604080516020810190915290815292506125a0915050565b50806119dc81614a1d565b915050611951565b509295945050505050565b33611a026000546001600160a01b031690565b6001600160a01b03161480611a1d5750611a1d600133612451565b611a395760405162461bcd60e51b815260040161096890614885565b600091825260196020526040909120805460ff1916911515919091179055565b6001600160a01b038216331415611ab25760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610968565b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b33611b316000546001600160a01b031690565b6001600160a01b03161480611b4c5750611b4c600133612451565b611b685760405162461bcd60e51b815260040161096890614885565b82518114611bb85760405162461bcd60e51b815260206004820152601860248201527f4c474e44546f6b656e3a20496e76616c696420696e70757400000000000000006044820152606401610968565b60005b835181101561108957611c26848281518110611be757634e487b7160e01b600052603260045260246000fd5b6020026020010151848484818110611c0f57634e487b7160e01b600052603260045260246000fd5b9050602002810190611c2191906148c9565b612587565b80611c3081614a1d565b915050611bbb565b6060816001600160401b03811115611c6057634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611c89578160200160208202803683370190505b50905060005b82811015611d4657611d09878787878786818110611cbd57634e487b7160e01b600052603260045260246000fd5b9050602002810190611ccf91906148c9565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612bac92505050565b828281518110611d2957634e487b7160e01b600052603260045260246000fd5b602090810291909101015280611d3e81614a1d565b915050611c8f565b5095945050505050565b611d5a33836127c5565b611d765760405162461bcd60e51b815260040161096890614834565b61108984848484612dee565b6000818152600560205260409020546060906001600160a01b0316611db95760405162461bcd60e51b815260040161096890614809565b611dc282612e21565b805480602002602001604051908101604052809291908181526020018280548015610b2d57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611df85750505050509050919050565b606080611e45836000908152600560205260409020546001600160a01b0316151590565b611e615760405162461bcd60e51b815260040161096890614809565b611e6a83612ed5565b815460408051602080840282018101909252828152918491830182828015611ebb57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611e9d575b5050505050915080805480602002602001604051908101604052809291908181526020018280548015611f0d57602002820191906000526020600020905b815481526020019060010190808311611ef9575b5050505050905091509150915091565b60008481526005602052604081205481906060906001600160a01b0316611f565760405162461bcd60e51b815260040161096890614809565b611f608787612ef3565b9250925092509450945094915050565b6000818152600560205260409020546060906001600160a01b0316611fa75760405162461bcd60e51b815260040161096890614809565b61085b82613022565b6060816001600160401b03811115611fd857634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015612001578160200160208202803683370190505b50905060005b828110156120675761202a86868660405180602001604052806000815250612bac565b82828151811061204a57634e487b7160e01b600052603260045260246000fd5b60209081029190910101528061205f81614a1d565b915050612007565b50949350505050565b606060138054610870906149e2565b6012546000906001600160a01b0316156121305760125460405163c455279160e01b81526001600160a01b03858116600483015291821691841690829063c45527919060240160206040518083038186803b1580156120dd57600080fd5b505afa1580156120f1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612115919061422a565b6001600160a01b0316141561212e57600191505061085b565b505b6001600160a01b0380841660009081526008602090815260408083209386168352929052205460ff165b9392505050565b6000546001600160a01b031633146121bb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610968565b6001600160a01b0381166122205760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610968565b610e8c81612b5c565b60006001600160e01b03198216637c148b1360e11b148061224e575061224e826122bf565b8061226957506001600160e01b03198216635d9dd7eb60e11b145b8061228457506001600160e01b03198216636057361d60e01b145b8061229f57506001600160e01b031982166335681b5360e21b145b8061085b57506001600160e01b03198216636057361d60e01b1492915050565b60006001600160e01b031982166380ac58cd60e01b148061084c57506001600160e01b03198216635b5e139f60e01b148061085b575061085b825b60006001600160e01b03198216632a9f3abf60e11b148061085b57506301ffc9a760e01b6001600160e01b031983161461085b565b600081815260076020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612364826114bb565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000806402540be4008311156123c257506000828152600960205260409020546123d2565b6123cf620f424084614955565b90505b600083815260116020526040902054156123f9575050600090815260116020526040902090565b6000818152600e602052604090205415612421576000908152600e6020526040902092915050565b50506000805250600e6020527fe710864318d4a32f37d6ce54cb3fadbef648dd12d8dbdf53973564d56b7f881c90565b6001600160a01b0381166000908152600183016020526040812054151561215a565b8281146124b05760405162461bcd60e51b815260206004820152601a6024820152600080516020614aba8339815191526044820152606401610968565b6000858152600d60209081526040808320600e9092529091206124d4919085613125565b6000858152600d60209081526040808320600e9092529091206124fb919086868686613200565b84612542577f2b6849d5976d799a5b0ca4dfd6b40a3d7afe9ea72c091fa01a958594f9a2659b8484848460405161253594939291906145fc565b60405180910390a1610b90565b847f87cff20dc7bc4caef76dcedb28343154605e5f94c08921eff30e5b34f081e2938585858560405161257894939291906145fc565b60405180910390a25050505050565b6000838152600f60205260409020611089908383613ad5565b6000848152600a60205260408120546001600160a01b031633146126065760405162461bcd60e51b815260206004820152601a60248201527f4c474e44546f6b656e3a204d7573742062652063726561746f720000000000006044820152606401610968565b6000848152600560205260409020546001600160a01b0316156126605760405162461bcd60e51b815260206004820152601260248201527128393296b2bc34b9ba34b733903a37b5b2b760711b6044820152606401610968565b6014805490600061267083614a1d565b919050555061267f86856134c5565b8151156126a7576000848152600f6020908152604090912083516126a592850190613a55565b505b60168054859160006126b883614a1d565b91905055876001600160a01b03167fa7141af30fcc82b884950f8dc4ad98f44473a51f9edd7b0c9ce9cfd17560b357866040516126f591906146c6565b60405180910390a45091949350505050565b8281146127445760405162461bcd60e51b815260206004820152601a6024820152600080516020614aba8339815191526044820152606401610968565b60008581526010602090815260408083206011909252909120612768919085613125565b6000858152601060209081526040808320601190925290912061278f919086868686613200565b847fabb46fe0761d77584bde75697647804ffd8113abd4d8d06bc664150395eccdee8585858560405161257894939291906145fc565b6000818152600560205260408120546001600160a01b031661283e5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610968565b6000612849836114bb565b9050806001600160a01b0316846001600160a01b031614806128845750836001600160a01b0316612879846108f3565b6001600160a01b0316145b806116e657506116e6818561207f565b826001600160a01b03166128a7826114bb565b6001600160a01b03161461290f5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610968565b6001600160a01b0382166129715760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610968565b61297c60008261232f565b6001600160a01b03831660009081526006602052604081208054600192906129a5908490614988565b90915550506001600160a01b03821660009081526006602052604081208054600192906129d390849061493d565b909155505060008181526005602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600061215a836001600160a01b0384166134df565b60008052600c602052610a9e7f13649b2456f1b42fef0f0040b3aaeabcd21a76a0f3f5defd4f583839455116e88383613ad5565b600061085b825490565b600061215a83836135fc565b6000612a9e826114bb565b9050612aab60008361232f565b6001600160a01b0381166000908152600660205260408120805460019290612ad4908490614988565b909155505060008281526005602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6000838152600c60205260409020611089908383613ad5565b600061215a836001600160a01b038416613634565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000838152600a60205260408120546001600160a01b03163314612c125760405162461bcd60e51b815260206004820152601a60248201527f4c474e44546f6b656e3a204d7573742062652063726561746f720000000000006044820152606401610968565b6063831115612c715760405162461bcd60e51b815260206004820152602560248201527f4c474e44546f6b656e3a2074656d706c61746549642065786365656473206d6160448201526478696d756d60d81b6064820152608401610968565b6000848152600b60209081526040808320868452909152812054612c9690600161493d565b905061270f811115612cfa5760405162461bcd60e51b815260206004820152602760248201527f4c474e44546f6b656e3a206e6f2072656d61696e696e67206d696e747320617660448201526661696c61626c6560c81b6064820152608401610968565b6000858152600b60209081526040808320878452909152902081905580612d2361271086614969565b612d30620f424088614969565b612d3a919061493d565b612d44919061493d565b601480549193506000612d5683614a1d565b9190505550612d6586836134c5565b825115612067576000828152600f602090815260409091208451612d8b92860190613a55565b5050949350505050565b6000828152600a602052604080822080546001600160a01b0319166001600160a01b0385169081179091559051909184917fc0186d9ba7364ebd80a7010121367f481af81e1028bf368b2172fedf2c6fc7de9190a35050565b612df9848484612894565b612e0584848484613683565b6110895760405162461bcd60e51b81526004016109689061475a565b6000806402540be400831115612e465750600082815260096020526040902054612e56565b612e53620f424084614955565b90505b60008381526010602052604090205415612e7d575050600090815260106020526040902090565b6000818152600d602052604090205415612ea5576000908152600d6020526040902092915050565b50506000805250600d6020527f81955a0a11e65eac625c29e8882660bae4e165a75d72780094acae8ece9a29ee90565b600080612ee183612e21565b612eea8461239d565b91509150915091565b60008060606000612f0386612e21565b805490915060011015612f80576040805162461bcd60e51b81526020600482015260248101919091527f43726561746f72436f72653a204f6e6c7920776f726b7320696620746865726560448201527f20617265206174206d6f7374203120726f79616c7479207265636569766572736064820152608401610968565b8054612f9357306000935093505061301b565b80600081548110612fb457634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031661271086612fd68961239d565b600081548110612ff657634e487b7160e01b600052603260045260246000fd5b906000526020600020015461300b9190614969565b6130159190614955565b93509350505b9250925092565b6000818152600f6020526040902080546060919061303f906149e2565b15905061305f576000828152600f602052604090208054610d64906149e2565b60006402540be4008311156130835750600082815260096020526040902054613093565b613090620f424084614955565b90505b6000818152600c6020526040902080546130ac906149e2565b1590506130f2576000818152600c602052604090206130ca8461378d565b6040516020016130db9291906144cc565b604051602081830303815290604052915050919050565b60008052600c6020527f13649b2456f1b42fef0f0040b3aaeabcd21a76a0f3f5defd4f583839455116e86130ca8461378d565b81548354146131645760405162461bcd60e51b815260206004820152601a6024820152600080516020614aba8339815191526044820152606401610968565b8254811015610a9e5782545b81811115611089578380548061319657634e487b7160e01b600052603160045260246000fd5b600082815260209020810160001990810180546001600160a01b031916905501905582548390806131d757634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905580806131f8906149cb565b915050613170565b845486541461323f5760405162461bcd60e51b815260206004820152601a6024820152600080516020614aba8339815191526044820152606401610968565b82811461327c5760405162461bcd60e51b815260206004820152601a6024820152600080516020614aba8339815191526044820152606401610968565b6000805b8481101561345e57875481101561336c578585828181106132b157634e487b7160e01b600052603260045260246000fd5b90506020020160208101906132c69190613cd4565b8882815481106132e657634e487b7160e01b600052603260045260246000fd5b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555083838281811061333457634e487b7160e01b600052603260045260246000fd5b9050602002013587828154811061335b57634e487b7160e01b600052603260045260246000fd5b600091825260209091200155613418565b8786868381811061338d57634e487b7160e01b600052603260045260246000fd5b90506020020160208101906133a29190613cd4565b81546001810183556000928352602090922090910180546001600160a01b0319166001600160a01b03909216919091179055868484838181106133f557634e487b7160e01b600052603260045260246000fd5b835460018101855560009485526020948590209190940292909201359190920155505b83838281811061343857634e487b7160e01b600052603260045260246000fd5b905060200201358261344a919061493d565b91508061345681614a1d565b915050613280565b5061271081106134bc5760405162461bcd60e51b8152602060048201526024808201527f43726561746f72436f72653a20496e76616c696420746f74616c20726f79616c6044820152637469657360e01b6064820152608401610968565b50505050505050565b610e8a8282604051806020016040528060008152506138a6565b600081815260018301602052604081205480156135f2576000613503600183614988565b855490915060009061351790600190614988565b905081811461359857600086600001828154811061354557634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508087600001848154811061357657634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255918252600188019052604090208390555b85548690806135b757634e487b7160e01b600052603160045260246000fd5b60019003818190600052602060002001600090559055856001016000868152602001908152602001600020600090556001935050505061085b565b600091505061085b565b600082600001828154811061362157634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905092915050565b600081815260018301602052604081205461367b5750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561085b565b50600061085b565b60006001600160a01b0384163b1561378557604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906136c790339089908890889060040161454c565b602060405180830381600087803b1580156136e157600080fd5b505af1925050508015613711575060408051601f3d908101601f1916820190925261370e9181019061420e565b60015b61376b573d80801561373f576040519150601f19603f3d011682016040523d82523d6000602084013e613744565b606091505b5080516137635760405162461bcd60e51b81526004016109689061475a565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506116e6565b5060016116e6565b6060816137b15750506040805180820190915260018152600360fc1b602082015290565b8160005b81156137db57806137c581614a1d565b91506137d49050600a83614955565b91506137b5565b6000816001600160401b0381111561380357634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561382d576020820181803683370190505b5090505b84156116e657613842600183614988565b915061384f600a86614a38565b61385a90603061493d565b60f81b81838151811061387d57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535061389f600a86614955565b9450613831565b6138b083836138d9565b6138bd6000848484613683565b610a9e5760405162461bcd60e51b81526004016109689061475a565b6001600160a01b03821661392f5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610968565b6000818152600560205260409020546001600160a01b0316156139945760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610968565b6001600160a01b03821660009081526006602052604081208054600192906139bd90849061493d565b909155505060008181526005602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b508054613a27906149e2565b6000825580601f10613a37575050565b601f016020900490600052602060002090810190610e8c9190613b49565b828054613a61906149e2565b90600052602060002090601f016020900481019282613a835760008555613ac9565b82601f10613a9c57805160ff1916838001178555613ac9565b82800160010185558215613ac9579182015b82811115613ac9578251825591602001919060010190613aae565b50610fa9929150613b49565b828054613ae1906149e2565b90600052602060002090601f016020900481019282613b035760008555613ac9565b82601f10613b1c5782800160ff19823516178555613ac9565b82800160010185558215613ac9579182015b82811115613ac9578235825591602001919060010190613b2e565b5b80821115610fa95760008155600101613b4a565b60006001600160401b03831115613b7757613b77614a78565b613b8a601f8401601f191660200161490d565b9050828152838383011115613b9e57600080fd5b828260208301376000602084830101529392505050565b60008083601f840112613bc6578182fd5b5081356001600160401b03811115613bdc578182fd5b6020830191508360208260051b8501011115613bf757600080fd5b9250929050565b600082601f830112613c0e578081fd5b813560206001600160401b03821115613c2957613c29614a78565b8160051b613c3882820161490d565b838152828101908684018388018501891015613c52578687fd5b8693505b85841015613c74578035835260019390930192918401918401613c56565b50979650505050505050565b80358015158114613c9057600080fd5b919050565b60008083601f840112613ca6578182fd5b5081356001600160401b03811115613cbc578182fd5b602083019150836020828501011115613bf757600080fd5b600060208284031215613ce5578081fd5b813561215a81614a8e565b60008060408385031215613d02578081fd5b8235613d0d81614a8e565b91506020830135613d1d81614a8e565b809150509250929050565b600080600060608486031215613d3c578081fd5b8335613d4781614a8e565b92506020840135613d5781614a8e565b929592945050506040919091013590565b60008060008060808587031215613d7d578081fd5b8435613d8881614a8e565b93506020850135613d9881614a8e565b92506040850135915060608501356001600160401b03811115613db9578182fd5b8501601f81018713613dc9578182fd5b613dd887823560208401613b5e565b91505092959194509250565b60008060408385031215613df6578182fd5b8235613e0181614a8e565b9150613e0f60208401613c80565b90509250929050565b60008060408385031215613e2a578182fd5b8235613e3581614a8e565b946020939093013593505050565b600080600080600060808688031215613e5a578283fd5b8535613e6581614a8e565b94506020860135935060408601356001600160401b0380821115613e87578485fd5b613e9389838a01613bfe565b94506060880135915080821115613ea8578283fd5b50613eb588828901613c95565b969995985093965092949392505050565b600080600080600080600060a0888a031215613ee0578485fd5b8735613eeb81614a8e565b96506020880135955060408801356001600160401b0380821115613f0d578687fd5b613f198b838c01613bfe565b965060608a0135915080821115613f2e578384fd5b613f3a8b838c01613c95565b909650945060808a0135915080821115613f52578384fd5b50613f5f8a828b01613bb5565b989b979a50959850939692959293505050565b600080600060608486031215613f86578081fd5b8335613f9181614a8e565b95602085013595506040909401359392505050565b600080600080600060808688031215613fbd578283fd5b8535613fc881614a8e565b9450602086013593506040860135925060608601356001600160401b03811115613ff0578182fd5b613eb588828901613bb5565b600080600080600060808688031215614013578283fd5b853561401e81614a8e565b9450602086013593506040860135925060608601356001600160401b03811115614046578182fd5b613eb588828901613c95565b600080600080600080600060a0888a03121561406c578081fd5b873561407781614a8e565b9650602088013595506040880135945060608801356001600160401b03808211156140a0578283fd5b6140ac8b838c01613c95565b909650945060808a01359150808211156140c4578283fd5b50613f5f8a828b01613c95565b600080600080608085870312156140e6578182fd5b84356140f181614a8e565b966020860135965060408601359560600135945092505050565b60008060008060408587031215614120578182fd5b84356001600160401b0380821115614136578384fd5b61414288838901613bb5565b9096509450602087013591508082111561415a578384fd5b5061416787828801613bb5565b95989497509550505050565b600080600060408486031215614187578081fd5b83356001600160401b038082111561419d578283fd5b6141a987838801613bfe565b945060208601359150808211156141be578283fd5b506141cb86828701613bb5565b9497909650939450505050565b6000602082840312156141e9578081fd5b61215a82613c80565b600060208284031215614203578081fd5b813561215a81614aa3565b60006020828403121561421f578081fd5b815161215a81614aa3565b60006020828403121561423b578081fd5b815161215a81614a8e565b60008060208385031215614258578182fd5b82356001600160401b0381111561426d578283fd5b61427985828601613c95565b90969095509350505050565b600060208284031215614296578081fd5b81356001600160401b038111156142ab578182fd5b8201601f810184136142bb578182fd5b6116e684823560208401613b5e565b6000602082840312156142db578081fd5b5035919050565b600080604083850312156142f4578182fd5b823591506020830135613d1d81614a8e565b60008060008060006060868803121561431d578283fd5b8535945060208601356001600160401b038082111561433a578485fd5b61434689838a01613bb5565b9096509450604088013591508082111561435e578283fd5b50613eb588828901613bb5565b6000806040838503121561437d578182fd5b82359150613e0f60208401613c80565b6000806000604084860312156143a1578081fd5b8335925060208401356001600160401b038111156143bd578182fd5b6141cb86828701613c95565b600080604083850312156143db578182fd5b50508035926020909101359150565b600080600080606085870312156143ff578182fd5b843593506020850135925060408501356001600160401b03811115614422578283fd5b61416787828801613c95565b6000815180845260208085019450808401835b838110156144665781516001600160a01b031687529582019590820190600101614441565b509495945050505050565b6000815180845260208085019450808401835b8381101561446657815187529582019590820190600101614484565b600081518084526144b881602086016020860161499f565b601f01601f19169290920160200192915050565b60008084546144da816149e2565b600182811680156144f257600181146145035761452f565b60ff1984168752828701945061452f565b8886526020808720875b858110156145265781548a82015290840190820161450d565b50505082870194505b50505050835161454381836020880161499f565b01949350505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152610c3e60808301846144a0565b6001600160a01b03841681528260208201526060604082015260006145a660608301846144a0565b95945050505050565b6020808252825182820181905260009190848201906040850190845b818110156145f05783516001600160a01b0316835292840192918401916001016145cb565b50909695505050505050565b6040808252810184905260008560608301825b8781101561463f57823561462281614a8e565b6001600160a01b031682526020928301929091019060010161460f565b5083810360208501528481526001600160fb1b0385111561465e578283fd5b8460051b9150818660208301370160200190815295945050505050565b60208152600061215a602083018461442e565b6040815260006146a1604083018561442e565b82810360208401526145a68185614471565b60208152600061215a6020830184614471565b60208152600061215a60208301846144a0565b600060208083528184546146ec816149e2565b8084870152604060018084166000811461470d57600181146147215761474c565b60ff1985168984015260608901955061474c565b898852868820885b858110156147445781548b8201860152908301908801614729565b8a0184019650505b509398975050505050505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526035908201527f4c474e44546f6b656e3a2042726964676520686173206e6f74206265656e206560408201527f6e61626c656420666f72207468697320746f6b656e0000000000000000000000606082015260800190565b6020808252601190820152702737b732bc34b9ba32b73a103a37b5b2b760791b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60208082526024908201527f41646d696e436f6e74726f6c3a204d757374206265206f776e6572206f7220616040820152633236b4b760e11b606082015260800190565b6000808335601e198436030181126148df578283fd5b8301803591506001600160401b038211156148f8578283fd5b602001915036819003821315613bf757600080fd5b604051601f8201601f191681016001600160401b038111828210171561493557614935614a78565b604052919050565b6000821982111561495057614950614a4c565b500190565b60008261496457614964614a62565b500490565b600081600019048311821515161561498357614983614a4c565b500290565b60008282101561499a5761499a614a4c565b500390565b60005b838110156149ba5781810151838201526020016149a2565b838111156110895750506000910152565b6000816149da576149da614a4c565b506000190190565b600181811c908216806149f657607f821691505b60208210811415614a1757634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415614a3157614a31614a4c565b5060010190565b600082614a4757614a47614a62565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610e8c57600080fd5b6001600160e01b031981168114610e8c57600080fdfe43726561746f72436f72653a20496e76616c696420696e707574000000000000a26469706673582212206801593285c3a4c715616acb928ac9e257b1d03267e886efd4c52c9a6160deb064736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000084c474e442e61727400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034152540000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): LGND.art
Arg [1] : _symbol (string): ART
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [3] : 4c474e442e617274000000000000000000000000000000000000000000000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [5] : 4152540000000000000000000000000000000000000000000000000000000000
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.