ERC-721
Overview
Max Total Supply
0 ZZZZ
Holders
90
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 ZZZZLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
DynamicSerialMintable
Compiler Version
v0.8.6+commit.11564f7e
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: GPL-3.0 pragma solidity 0.8.6; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "base64-sol/base64.sol"; import "./FundsRecoverable.sol"; import "./ISerialMintable.sol"; import "./IERC2981.sol"; /** This is a smart contract for handling dynamic contract minting. */ contract DynamicSerialMintable is ISerialMintable, ERC721, IERC2981, ReentrancyGuard { struct SerialConfig { // metadata string name; string description; // media links string animationUrl; bytes32 animationHash; string imageUrl; bytes32 imageHash; // access + serial bookkeeping address owner; // total size of serial uint256 serialSize; // current token id minted uint256 atSerialId; // id serial starts at uint256 firstReservedToken; // royalty address address payable royaltyRecipient; // royalty amount in bps uint256 royaltyBPS; // addresses allowed to mint serial address[] allowedMinters; } event MintedSerial(uint256 serialId, uint256 tokenId, address minter); event CreatedSerial( uint256 serialId, address creator, uint256 startToken, uint256 serialSize ); uint256 public tokenIdsReserved = 1; uint256 public currentSerial = 0; address public allowedCreator; SerialConfig[] private serials; mapping(uint256 => uint256) private tokenIdToSerialId; modifier serialExists(uint256 serialId) { require(serials[serialId].serialSize > 0, "Serial needs to exist"); _; } modifier ownsSerial(uint256 serialId) { require(msg.sender == serials[serialId].owner, "Serial wrong owner"); _; } constructor( string memory name, string memory symbol, address _allowedCreator ) ERC721(name, symbol) { allowedCreator = _allowedCreator; } function _isAllowedToMint(uint256 serialId) internal view returns (bool) { SerialConfig memory serial = getSerial(serialId); uint256 allowedMintersCount = serial.allowedMinters.length; if (allowedMintersCount == 0) { return true; } for (uint256 i = 0; i < allowedMintersCount; i++) { if (serial.allowedMinters[i] == msg.sender) { return true; } } return false; } function creator(uint256 tokenId) public view returns (address) { return getSerialByToken(tokenId).owner; } function setAllowedCreator(address newCreator) public { require(msg.sender == allowedCreator, "Wrong serial owner"); allowedCreator = newCreator; } function mintSerial(uint256 serialId, address to) external override nonReentrant serialExists(serialId) returns (uint256) { require(_isAllowedToMint(serialId), "Needs to be an allowed minter"); address[] memory toMint = new address[](1); toMint[0] = to; return _mintSerials(serialId, toMint); } function mintSerials(uint256 serialId, address[] memory recipients) external override nonReentrant serialExists(serialId) returns (uint256) { require(_isAllowedToMint(serialId), "Needs to be an allowed minter"); return _mintSerials(serialId, recipients); } function setOwner(uint256 serialId, address owner) public serialExists(serialId) ownsSerial(serialId) { serials[serialId].owner = owner; } function setAllowedMinters( uint256 serialId, address[] memory allowedMinters ) public serialExists(serialId) ownsSerial(serialId) { serials[serialId].allowedMinters = allowedMinters; } function updateSerialURLs( uint256 serialId, string memory imageUrl, string memory animationUrl ) public serialExists(serialId) ownsSerial(serialId) { serials[serialId].imageUrl = imageUrl; serials[serialId].animationUrl = animationUrl; } function updateRoyaltyRecipient( uint256 serialId, address payable newRecipient ) public serialExists(serialId) ownsSerial(serialId) { serials[serialId].royaltyRecipient = newRecipient; } function _mintSerials(uint256 serialId, address[] memory recipients) private returns (uint256) { SerialConfig memory serial = getSerial(serialId); uint256 startId = serial.firstReservedToken + serial.atSerialId; require( serial.atSerialId + recipients.length <= serial.serialSize, "SOLD OUT" ); uint256 toMint = 0; uint256 tokenId; while (toMint < recipients.length) { tokenId = startId + toMint; _mint(recipients[toMint], tokenId); tokenIdToSerialId[tokenId] = serialId; emit MintedSerial(serialId, tokenId, recipients[toMint]); toMint += 1; } serials[serialId].atSerialId += recipients.length; return tokenId; } function createSerial( string memory name, string memory description, string memory imageUrl, bytes32 imageHash, string memory animationUrl, bytes32 animationHash, uint256 serialSize, uint256 royaltyBPS, address payable royaltyRecipient ) public { require( allowedCreator == address(0x0) || allowedCreator == msg.sender, "Only authed" ); address[] memory allowedMinters = new address[](1); allowedMinters[0] = msg.sender; serials.push( SerialConfig({ name: name, description: description, owner: msg.sender, imageHash: imageHash, imageUrl: imageUrl, animationUrl: animationUrl, animationHash: animationHash, firstReservedToken: tokenIdsReserved, serialSize: serialSize, atSerialId: 0, royaltyRecipient: royaltyRecipient, royaltyBPS: royaltyBPS, allowedMinters: allowedMinters }) ); emit CreatedSerial( serials.length - 1, msg.sender, tokenIdsReserved, serialSize ); tokenIdsReserved += serialSize; } function getSerial(uint256 serialId) public view returns (SerialConfig memory) { return serials[serialId]; } function getSerialByToken(uint256 tokenId) public view returns (SerialConfig memory) { return serials[tokenIdToSerialId[tokenId]]; } function getURIs(uint256 tokenId) public view returns ( string memory, bytes32, string memory, bytes32 ) { SerialConfig memory serial = getSerialByToken(tokenId); return ( serial.imageUrl, serial.imageHash, serial.animationUrl, serial.animationHash ); } function _tokenMediaData(SerialConfig memory serial, uint256 tokenOfSerial) private pure returns (string memory) { bool hasImage = bytes(serial.imageUrl).length > 0; bool hasAnimation = bytes(serial.animationUrl).length > 0; if (hasImage && hasAnimation) { return string( abi.encodePacked( 'image": "', serial.imageUrl, "?id=", Strings.toString(tokenOfSerial), '", "animation_url": "', serial.animationUrl, "?id=", Strings.toString(tokenOfSerial), '", "' ) ); } if (hasImage) { return string( abi.encodePacked( 'image": "', serial.imageUrl, "?id=", Strings.toString(tokenOfSerial), '", "' ) ); } if (hasAnimation) { return string( abi.encodePacked( 'animation_url": "', serial.animationUrl, "?id=", '", "' ) ); } return ""; } function royaltyInfo(uint256 _tokenId, uint256 _salePrice) external view override returns (address receiver, uint256 royaltyAmount) { SerialConfig memory config = getSerialByToken(_tokenId); return ( config.royaltyRecipient, (_salePrice * config.royaltyBPS) / 10_000 ); } function tokenURI(uint256 tokenId) public view override returns (string memory) { require(_exists(tokenId), "NO TOKEN"); SerialConfig memory serial = serials[tokenIdToSerialId[tokenId]]; uint256 tokenOfSerial = tokenId - serial.firstReservedToken + 1; return string( abi.encodePacked( "data:application/json;base64,", Base64.encode( abi.encodePacked( '{"name": "', serial.name, " ", Strings.toString(tokenOfSerial), "/", Strings.toString(serial.serialSize), '", "', 'description": "', serial.description, '", "', _tokenMediaData(serial, tokenOfSerial), 'properties": {"number": ', Strings.toString(tokenOfSerial), ', "name": "', serial.name, '"}}' ) ) ) ); } function supportsInterface(bytes4 interfaceId) public view override(ERC721, IERC165) returns (bool) { return type(IERC2981).interfaceId == interfaceId || ERC721.supportsInterface(interfaceId); } }
// 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; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// 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(to).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 "../../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); } function _verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) private pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly 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 /// @title Base64 /// @author Brecht Devos - <[email protected]> /// @notice Provides a function for encoding some bytes in base64 library Base64 { string internal constant TABLE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; function encode(bytes memory data) internal pure returns (string memory) { if (data.length == 0) return ''; // load the table into memory string memory table = TABLE; // multiply by 4/3 rounded up uint256 encodedLen = 4 * ((data.length + 2) / 3); // add some extra buffer at the end required for the writing string memory result = new string(encodedLen + 32); assembly { // set the actual output length mstore(result, encodedLen) // prepare the lookup table let tablePtr := add(table, 1) // input ptr let dataPtr := data let endPtr := add(dataPtr, mload(data)) // result ptr, jump over length let resultPtr := add(result, 32) // run over the input, 3 bytes at a time for {} lt(dataPtr, endPtr) {} { dataPtr := add(dataPtr, 3) // read 3 bytes let input := mload(dataPtr) // write 4 characters mstore(resultPtr, shl(248, mload(add(tablePtr, and(shr(18, input), 0x3F))))) resultPtr := add(resultPtr, 1) mstore(resultPtr, shl(248, mload(add(tablePtr, and(shr(12, input), 0x3F))))) resultPtr := add(resultPtr, 1) mstore(resultPtr, shl(248, mload(add(tablePtr, and(shr( 6, input), 0x3F))))) resultPtr := add(resultPtr, 1) mstore(resultPtr, shl(248, mload(add(tablePtr, and( input, 0x3F))))) resultPtr := add(resultPtr, 1) } // padding with '=' switch mod(mload(data), 3) case 1 { mstore(sub(resultPtr, 2), shl(240, 0x3d3d)) } case 2 { mstore(sub(resultPtr, 1), shl(248, 0x3d)) } } return result; } }
// SPDX-License-Identifier: GPL-3.0 pragma solidity 0.8.6; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; contract FundsRecoverable is Ownable { /** Recover accidental tokens sent to contract */ function recoverERC20(address tokenAddress, uint256 tokenAmount) public onlyOwner { IERC20(tokenAddress).transfer(msg.sender, tokenAmount); } /** Recover accidental ETH sent to contract */ function recoverETH() public onlyOwner { uint256 balance = address(this).balance; (bool success, ) = msg.sender.call{value: balance}(""); require(success, "TransferFailed"); } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.6; import "@openzeppelin/contracts/utils/introspection/IERC165.sol"; /// /// @dev Interface for the NFT Royalty Standard /// interface IERC2981 is IERC165 { /// ERC165 bytes to add to interface array - set in parent contract /// implementing this standard /// /// bytes4(keccak256("royaltyInfo(uint256,uint256)")) == 0x2a55205a /// bytes4 private constant _INTERFACE_ID_ERC2981 = 0x2a55205a; /// _registerInterface(_INTERFACE_ID_ERC2981); /// @notice Called with the sale price to determine how much royalty // is owed and to whom. /// @param _tokenId - the NFT asset queried for royalty information /// @param _salePrice - the sale price of the NFT asset specified by _tokenId /// @return receiver - address of who should be sent the royalty payment /// @return royaltyAmount - the royalty payment amount for _salePrice function royaltyInfo( uint256 _tokenId, uint256 _salePrice ) external view returns ( address receiver, uint256 royaltyAmount ); // /// @notice Informs callers that this contract supports ERC2981 // /// @dev If `_registerInterface(_INTERFACE_ID_ERC2981)` is called // /// in the initializer, this should be automatic // /// @param interfaceID The interface identifier, as specified in ERC-165 // /// @return `true` if the contract implements // /// `_INTERFACE_ID_ERC2981` and `false` otherwise // function supportsInterface(bytes4 interfaceID) // external view override returns (bool); }
// SPDX-License-Identifier: GPL-3.0 pragma solidity 0.8.6; interface ISerialMintable { function mintSerial(uint256 collectionId, address to) external returns (uint256); function mintSerials(uint256 collectionId, address[] memory to) external returns (uint256); }
{ "evmVersion": "berlin", "libraries": {}, "metadata": { "bytecodeHash": "ipfs", "useLiteralContent": true }, "optimizer": { "enabled": true, "runs": 100 }, "remappings": [], "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"address","name":"_allowedCreator","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"serialId","type":"uint256"},{"indexed":false,"internalType":"address","name":"creator","type":"address"},{"indexed":false,"internalType":"uint256","name":"startToken","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"serialSize","type":"uint256"}],"name":"CreatedSerial","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"serialId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"address","name":"minter","type":"address"}],"name":"MintedSerial","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"allowedCreator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"description","type":"string"},{"internalType":"string","name":"imageUrl","type":"string"},{"internalType":"bytes32","name":"imageHash","type":"bytes32"},{"internalType":"string","name":"animationUrl","type":"string"},{"internalType":"bytes32","name":"animationHash","type":"bytes32"},{"internalType":"uint256","name":"serialSize","type":"uint256"},{"internalType":"uint256","name":"royaltyBPS","type":"uint256"},{"internalType":"address payable","name":"royaltyRecipient","type":"address"}],"name":"createSerial","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"creator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentSerial","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"serialId","type":"uint256"}],"name":"getSerial","outputs":[{"components":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"description","type":"string"},{"internalType":"string","name":"animationUrl","type":"string"},{"internalType":"bytes32","name":"animationHash","type":"bytes32"},{"internalType":"string","name":"imageUrl","type":"string"},{"internalType":"bytes32","name":"imageHash","type":"bytes32"},{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"serialSize","type":"uint256"},{"internalType":"uint256","name":"atSerialId","type":"uint256"},{"internalType":"uint256","name":"firstReservedToken","type":"uint256"},{"internalType":"address payable","name":"royaltyRecipient","type":"address"},{"internalType":"uint256","name":"royaltyBPS","type":"uint256"},{"internalType":"address[]","name":"allowedMinters","type":"address[]"}],"internalType":"struct DynamicSerialMintable.SerialConfig","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getSerialByToken","outputs":[{"components":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"description","type":"string"},{"internalType":"string","name":"animationUrl","type":"string"},{"internalType":"bytes32","name":"animationHash","type":"bytes32"},{"internalType":"string","name":"imageUrl","type":"string"},{"internalType":"bytes32","name":"imageHash","type":"bytes32"},{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"serialSize","type":"uint256"},{"internalType":"uint256","name":"atSerialId","type":"uint256"},{"internalType":"uint256","name":"firstReservedToken","type":"uint256"},{"internalType":"address payable","name":"royaltyRecipient","type":"address"},{"internalType":"uint256","name":"royaltyBPS","type":"uint256"},{"internalType":"address[]","name":"allowedMinters","type":"address[]"}],"internalType":"struct DynamicSerialMintable.SerialConfig","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getURIs","outputs":[{"internalType":"string","name":"","type":"string"},{"internalType":"bytes32","name":"","type":"bytes32"},{"internalType":"string","name":"","type":"string"},{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"serialId","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"mintSerial","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"serialId","type":"uint256"},{"internalType":"address[]","name":"recipients","type":"address[]"}],"name":"mintSerials","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newCreator","type":"address"}],"name":"setAllowedCreator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"serialId","type":"uint256"},{"internalType":"address[]","name":"allowedMinters","type":"address[]"}],"name":"setAllowedMinters","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":"uint256","name":"serialId","type":"uint256"},{"internalType":"address","name":"owner","type":"address"}],"name":"setOwner","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":[],"name":"tokenIdsReserved","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"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":"uint256","name":"serialId","type":"uint256"},{"internalType":"address payable","name":"newRecipient","type":"address"}],"name":"updateRoyaltyRecipient","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"serialId","type":"uint256"},{"internalType":"string","name":"imageUrl","type":"string"},{"internalType":"string","name":"animationUrl","type":"string"}],"name":"updateSerialURLs","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052600160075560006008553480156200001b57600080fd5b5060405162003677380380620036778339810160408190526200003e91620001fb565b825183908390620000579060009060208501906200009e565b5080516200006d9060019060208401906200009e565b5050600160065550600980546001600160a01b0319166001600160a01b039290921691909117905550620002db9050565b828054620000ac9062000288565b90600052602060002090601f016020900481019282620000d057600085556200011b565b82601f10620000eb57805160ff19168380011785556200011b565b828001600101855582156200011b579182015b828111156200011b578251825591602001919060010190620000fe565b50620001299291506200012d565b5090565b5b808211156200012957600081556001016200012e565b600082601f8301126200015657600080fd5b81516001600160401b0380821115620001735762000173620002c5565b604051601f8301601f19908116603f011681019082821181831017156200019e576200019e620002c5565b81604052838152602092508683858801011115620001bb57600080fd5b600091505b83821015620001df5785820183015181830184015290820190620001c0565b83821115620001f15760008385830101525b9695505050505050565b6000806000606084860312156200021157600080fd5b83516001600160401b03808211156200022957600080fd5b620002378783880162000144565b945060208601519150808211156200024e57600080fd5b506200025d8682870162000144565b604086015190935090506001600160a01b03811681146200027d57600080fd5b809150509250925092565b600181811c908216806200029d57607f821691505b60208210811415620002bf57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b61338c80620002eb6000396000f3fe608060405234801561001057600080fd5b506004361061018f5760003560e01c806370a08231116100e45780639e6dd88e116100925780639e6dd88e14610393578063a22cb4651461039c578063b84e4384146103af578063b88d4fde146103c2578063c87b56dd146103d5578063c8b4215b146103e8578063d639ba91146103fb578063e985e9c51461040457600080fd5b806370a082311461030c578063729fed2e1461031f5780637b62518c146103325780637fd3924714610345578063836860f01461035857806395d89b41146103785780639b5bfb9e1461038057600080fd5b80632a55205a116101415780632a55205a1461025857806342842e0e1461028a578063510b51581461029d578063512d2183146102b057806363407e65146102c35780636352211e146102d657806364e9293e146102e957600080fd5b806301ffc9a71461019457806306fdde03146101bc578063081812fc146101d1578063095ea7b3146101fc57806317c986901461021157806318ab307d1461023257806323b872dd14610245575b600080fd5b6101a76101a236600461282a565b610417565b60405190151581526020015b60405180910390f35b6101c4610442565b6040516101b39190612e98565b6101e46101df366004612948565b6104d4565b6040516001600160a01b0390911681526020016101b3565b61020f61020a3660046127fe565b610561565b005b61022461021f366004612961565b610672565b6040519081526020016101b3565b61020f610240366004612a4a565b610777565b61020f61025336600461270b565b610884565b61026b610266366004612ab6565b6108b5565b604080516001600160a01b0390931683526020830191909152016101b3565b61020f61029836600461270b565b6108f5565b6101e46102ab366004612948565b610910565b6102246102be366004612986565b610925565b61020f6102d1366004612986565b6109d3565b6101e46102e4366004612948565b610aa6565b6102fc6102f7366004612948565b610b1d565b6040516101b39493929190612eab565b61022461031a3660046126b5565b610b54565b6009546101e4906001600160a01b031681565b61020f610340366004612961565b610bdb565b61020f610353366004612961565b610cbe565b61036b610366366004612948565b610da1565b6040516101b39190613054565b6101c46110ed565b61036b61038e366004612948565b6110fc565b61022460075481565b61020f6103aa3660046127cb565b611128565b61020f6103bd366004612864565b6111e9565b61020f6103d036600461274c565b6114a8565b6101c46103e3366004612948565b6114e0565b61020f6103f63660046126b5565b61191c565b61022460085481565b6101a76104123660046126d2565b61198d565b600063152a902d60e11b6001600160e01b03198316148061043c575061043c826119bb565b92915050565b60606000805461045190613226565b80601f016020809104026020016040519081016040528092919081815260200182805461047d90613226565b80156104ca5780601f1061049f576101008083540402835291602001916104ca565b820191906000526020600020905b8154815290600101906020018083116104ad57829003601f168201915b5050505050905090565b60006104df82611a0b565b6105455760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061056c82610aa6565b9050806001600160a01b0316836001600160a01b031614156105da5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161053c565b336001600160a01b03821614806105f657506105f6813361198d565b6106635760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776044820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b606482015260840161053c565b61066d8383611a28565b505050565b6000600260065414156106975760405162461bcd60e51b815260040161053c9061301d565b6002600681905550826000600a82815481106106b5576106b56132bc565b90600052602060002090600d020160070154116106e45760405162461bcd60e51b815260040161053c90612f9d565b6106ed84611a96565b6107095760405162461bcd60e51b815260040161053c90612f66565b60408051600180825281830190925260009160208083019080368337019050509050838160008151811061073f5761073f6132bc565b60200260200101906001600160a01b031690816001600160a01b0316815250506107698582611b26565b600160065595945050505050565b826000600a828154811061078d5761078d6132bc565b90600052602060002090600d020160070154116107bc5760405162461bcd60e51b815260040161053c90612f9d565b83600a81815481106107d0576107d06132bc565b60009182526020909120600d90910201600601546001600160a01b0316331461080b5760405162461bcd60e51b815260040161053c90612f3a565b83600a868154811061081f5761081f6132bc565b90600052602060002090600d020160040190805190602001906108439291906124b9565b5082600a8681548110610858576108586132bc565b90600052602060002090600d0201600201908051906020019061087c9291906124b9565b505050505050565b61088e3382611cb5565b6108aa5760405162461bcd60e51b815260040161053c90612fcc565b61066d838383611d7f565b60008060006108c3856110fc565b9050806101400151612710826101600151866108df91906131c4565b6108e991906131b0565b92509250509250929050565b61066d838383604051806020016040528060008152506114a8565b600061091b826110fc565b60c0015192915050565b60006002600654141561094a5760405162461bcd60e51b815260040161053c9061301d565b6002600681905550826000600a8281548110610968576109686132bc565b90600052602060002090600d020160070154116109975760405162461bcd60e51b815260040161053c90612f9d565b6109a084611a96565b6109bc5760405162461bcd60e51b815260040161053c90612f66565b6109c68484611b26565b6001600655949350505050565b816000600a82815481106109e9576109e96132bc565b90600052602060002090600d02016007015411610a185760405162461bcd60e51b815260040161053c90612f9d565b82600a8181548110610a2c57610a2c6132bc565b60009182526020909120600d90910201600601546001600160a01b03163314610a675760405162461bcd60e51b815260040161053c90612f3a565b82600a8581548110610a7b57610a7b6132bc565b90600052602060002090600d0201600c019080519060200190610a9f92919061253d565b5050505050565b6000818152600260205260408120546001600160a01b03168061043c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161053c565b606060006060600080610b2f866110fc565b608081015160a082015160408301516060909301519199909850919650945092505050565b60006001600160a01b038216610bbf5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161053c565b506001600160a01b031660009081526003602052604090205490565b816000600a8281548110610bf157610bf16132bc565b90600052602060002090600d02016007015411610c205760405162461bcd60e51b815260040161053c90612f9d565b82600a8181548110610c3457610c346132bc565b60009182526020909120600d90910201600601546001600160a01b03163314610c6f5760405162461bcd60e51b815260040161053c90612f3a565b82600a8581548110610c8357610c836132bc565b90600052602060002090600d0201600a0160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555050505050565b816000600a8281548110610cd457610cd46132bc565b90600052602060002090600d02016007015411610d035760405162461bcd60e51b815260040161053c90612f9d565b82600a8181548110610d1757610d176132bc565b60009182526020909120600d90910201600601546001600160a01b03163314610d525760405162461bcd60e51b815260040161053c90612f3a565b82600a8581548110610d6657610d666132bc565b90600052602060002090600d020160060160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555050505050565b610da9612592565b600a8281548110610dbc57610dbc6132bc565b90600052602060002090600d0201604051806101a0016040529081600082018054610de690613226565b80601f0160208091040260200160405190810160405280929190818152602001828054610e1290613226565b8015610e5f5780601f10610e3457610100808354040283529160200191610e5f565b820191906000526020600020905b815481529060010190602001808311610e4257829003601f168201915b50505050508152602001600182018054610e7890613226565b80601f0160208091040260200160405190810160405280929190818152602001828054610ea490613226565b8015610ef15780601f10610ec657610100808354040283529160200191610ef1565b820191906000526020600020905b815481529060010190602001808311610ed457829003601f168201915b50505050508152602001600282018054610f0a90613226565b80601f0160208091040260200160405190810160405280929190818152602001828054610f3690613226565b8015610f835780601f10610f5857610100808354040283529160200191610f83565b820191906000526020600020905b815481529060010190602001808311610f6657829003601f168201915b5050505050815260200160038201548152602001600482018054610fa690613226565b80601f0160208091040260200160405190810160405280929190818152602001828054610fd290613226565b801561101f5780601f10610ff45761010080835404028352916020019161101f565b820191906000526020600020905b81548152906001019060200180831161100257829003601f168201915b5050509183525050600582015460208083019190915260068301546001600160a01b039081166040808501919091526007850154606085015260088501546080850152600985015460a0850152600a85015490911660c0840152600b84015460e0840152600c840180548251818502810185019093528083526101009094019391929091908301828280156110dd57602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116110bf575b5050505050815250509050919050565b60606001805461045190613226565b611104612592565b6000828152600b6020526040902054600a80549091908110610dbc57610dbc6132bc565b6001600160a01b03821633141561117d5760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b604482015260640161053c565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6009546001600160a01b0316158061120b57506009546001600160a01b031633145b6112455760405162461bcd60e51b815260206004820152600b60248201526a13db9b1e48185d5d1a195960aa1b604482015260640161053c565b60408051600180825281830190925260009160208083019080368337019050509050338160008151811061127b5761127b6132bc565b6001600160a01b03928316602091820292909201810191909152604080516101a0810182528d81528083018d905290810189905260608101889052608081018b905260a081018a90523360c082015260e081018790526000610100820181905260075461012083015292851661014082015261016081018690526101808101849052600a80546001810182559352805180519193600d027fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a80192611344928492909101906124b9565b50602082810151805161135d92600185019201906124b9565b50604082015180516113799160028401916020909101906124b9565b50606082015160038201556080820151805161139f9160048401916020909101906124b9565b5060a0820151600582015560c08201516006820180546001600160a01b039283166001600160a01b03199182161790915560e0840151600784015561010084015160088401556101208401516009840155610140840151600a84018054919093169116179055610160820151600b820155610180820151805161142c91600c84019160209091019061253d565b5050600a547f304edfc7a6ed6447c7453a7b1cf337fba55d44ce291f2e41c9711c2e93aafb819150611460906001906131e3565b600754604080519283523360208401528201526060810186905260800160405180910390a183600760008282546114979190613198565b909155505050505050505050505050565b6114b23383611cb5565b6114ce5760405162461bcd60e51b815260040161053c90612fcc565b6114da84848484611f1f565b50505050565b60606114eb82611a0b565b6115225760405162461bcd60e51b81526020600482015260086024820152672727902a27a5a2a760c11b604482015260640161053c565b6000828152600b6020526040812054600a80549091908110611546576115466132bc565b90600052602060002090600d0201604051806101a001604052908160008201805461157090613226565b80601f016020809104026020016040519081016040528092919081815260200182805461159c90613226565b80156115e95780601f106115be576101008083540402835291602001916115e9565b820191906000526020600020905b8154815290600101906020018083116115cc57829003601f168201915b5050505050815260200160018201805461160290613226565b80601f016020809104026020016040519081016040528092919081815260200182805461162e90613226565b801561167b5780601f106116505761010080835404028352916020019161167b565b820191906000526020600020905b81548152906001019060200180831161165e57829003601f168201915b5050505050815260200160028201805461169490613226565b80601f01602080910402602001604051908101604052809291908181526020018280546116c090613226565b801561170d5780601f106116e25761010080835404028352916020019161170d565b820191906000526020600020905b8154815290600101906020018083116116f057829003601f168201915b505050505081526020016003820154815260200160048201805461173090613226565b80601f016020809104026020016040519081016040528092919081815260200182805461175c90613226565b80156117a95780601f1061177e576101008083540402835291602001916117a9565b820191906000526020600020905b81548152906001019060200180831161178c57829003601f168201915b5050509183525050600582015460208083019190915260068301546001600160a01b039081166040808501919091526007850154606085015260088501546080850152600985015460a0850152600a85015490911660c0840152600b84015460e0840152600c8401805482518185028101850190935280835261010090940193919290919083018282801561186757602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611849575b505050505081525050905060008161012001518461188591906131e3565b611890906001613198565b90506118f482600001516118a383611f52565b6118b08560e00151611f52565b85602001516118bf878761204f565b6118c887611f52565b88516040516118e09796959493929190602001612c85565b604051602081830303815290604052612112565b6040516020016119049190612dc1565b60405160208183030381529060405292505050919050565b6009546001600160a01b0316331461196b5760405162461bcd60e51b81526020600482015260126024820152712bb937b7339039b2b934b0b61037bbb732b960711b604482015260640161053c565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b60006001600160e01b031982166380ac58cd60e01b14806119ec57506001600160e01b03198216635b5e139f60e01b145b8061043c57506301ffc9a760e01b6001600160e01b031983161461043c565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611a5d82610aa6565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080611aa283610da1565b6101808101515190915080611abb575060019392505050565b60005b81811015611b1b57336001600160a01b03168361018001518281518110611ae757611ae76132bc565b60200260200101516001600160a01b03161415611b0957506001949350505050565b80611b1381613261565b915050611abe565b506000949350505050565b600080611b3284610da1565b90506000816101000151826101200151611b4c9190613198565b90508160e001518451836101000151611b659190613198565b1115611b9e5760405162461bcd60e51b815260206004820152600860248201526714d3d3110813d55560c21b604482015260640161053c565b6000805b8551821015611c7057611bb58284613198565b9050611bda868381518110611bcc57611bcc6132bc565b602002602001015182612279565b6000818152600b6020526040902087905585517f324082de3a4de96b605b60a5caea156c737d3cabcd463779a47206a8d6e8c6c89088908390899086908110611c2557611c256132bc565b6020026020010151604051611c569392919092835260208301919091526001600160a01b0316604082015260600190565b60405180910390a1611c69600183613198565b9150611ba2565b8551600a8881548110611c8557611c856132bc565b90600052602060002090600d02016008016000828254611ca59190613198565b9091555090979650505050505050565b6000611cc082611a0b565b611d215760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161053c565b6000611d2c83610aa6565b9050806001600160a01b0316846001600160a01b03161480611d675750836001600160a01b0316611d5c846104d4565b6001600160a01b0316145b80611d775750611d77818561198d565b949350505050565b826001600160a01b0316611d9282610aa6565b6001600160a01b031614611dfa5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b606482015260840161053c565b6001600160a01b038216611e5c5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161053c565b611e67600082611a28565b6001600160a01b0383166000908152600360205260408120805460019290611e909084906131e3565b90915550506001600160a01b0382166000908152600360205260408120805460019290611ebe908490613198565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b611f2a848484611d7f565b611f36848484846123ac565b6114da5760405162461bcd60e51b815260040161053c90612ee8565b606081611f765750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611fa05780611f8a81613261565b9150611f999050600a836131b0565b9150611f7a565b6000816001600160401b03811115611fba57611fba6132d2565b6040519080825280601f01601f191660200182016040528015611fe4576020820181803683370190505b5090505b8415611d7757611ff96001836131e3565b9150612006600a8661327c565b612011906030613198565b60f81b818381518110612026576120266132bc565b60200101906001600160f81b031916908160001a905350612048600a866131b0565b9450611fe8565b60808201515160408301515160609115801591151590829061206e5750805b156120ba57846080015161208185611f52565b866040015161208f87611f52565b6040516020016120a29493929190612bca565b6040516020818303038152906040529250505061043c565b81156120df5784608001516120ce85611f52565b6040516020016120a2929190612b64565b80156120fa5784604001516040516020016120a29190612e06565b50506040805160208101909152600081529392505050565b606081516000141561213257505060408051602081019091526000815290565b600060405180606001604052806040815260200161331760409139905060006003845160026121619190613198565b61216b91906131b0565b6121769060046131c4565b90506000612185826020613198565b6001600160401b0381111561219c5761219c6132d2565b6040519080825280601f01601f1916602001820160405280156121c6576020820181803683370190505b509050818152600183018586518101602084015b818310156122345760039283018051603f601282901c811687015160f890811b8552600c83901c8216880151811b6001860152600683901c8216880151811b60028601529116860151901b938201939093526004016121da565b60038951066001811461224e576002811461225f5761226b565b613d3d60f01b60011983015261226b565b603d60f81b6000198301525b509398975050505050505050565b6001600160a01b0382166122cf5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161053c565b6122d881611a0b565b156123255760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161053c565b6001600160a01b038216600090815260036020526040812080546001929061234e908490613198565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b156124ae57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906123f0903390899088908890600401612e5b565b602060405180830381600087803b15801561240a57600080fd5b505af192505050801561243a575060408051601f3d908101601f1916820190925261243791810190612847565b60015b612494573d808015612468576040519150601f19603f3d011682016040523d82523d6000602084013e61246d565b606091505b50805161248c5760405162461bcd60e51b815260040161053c90612ee8565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611d77565b506001949350505050565b8280546124c590613226565b90600052602060002090601f0160209004810192826124e7576000855561252d565b82601f1061250057805160ff191683800117855561252d565b8280016001018555821561252d579182015b8281111561252d578251825591602001919060010190612512565b50612539929150612612565b5090565b82805482825590600052602060002090810192821561252d579160200282015b8281111561252d57825182546001600160a01b0319166001600160a01b0390911617825560209092019160019091019061255d565b604051806101a0016040528060608152602001606081526020016060815260200160008019168152602001606081526020016000801916815260200160006001600160a01b0316815260200160008152602001600081526020016000815260200160006001600160a01b0316815260200160008152602001606081525090565b5b808211156125395760008155600101612613565b60006001600160401b03831115612640576126406132d2565b612653601f8401601f1916602001613168565b905082815283838301111561266757600080fd5b828260208301376000602084830101529392505050565b8035612689816132e8565b919050565b600082601f83011261269f57600080fd5b6126ae83833560208501612627565b9392505050565b6000602082840312156126c757600080fd5b81356126ae816132e8565b600080604083850312156126e557600080fd5b82356126f0816132e8565b91506020830135612700816132e8565b809150509250929050565b60008060006060848603121561272057600080fd5b833561272b816132e8565b9250602084013561273b816132e8565b929592945050506040919091013590565b6000806000806080858703121561276257600080fd5b843561276d816132e8565b9350602085013561277d816132e8565b92506040850135915060608501356001600160401b0381111561279f57600080fd5b8501601f810187136127b057600080fd5b6127bf87823560208401612627565b91505092959194509250565b600080604083850312156127de57600080fd5b82356127e9816132e8565b91506020830135801515811461270057600080fd5b6000806040838503121561281157600080fd5b823561281c816132e8565b946020939093013593505050565b60006020828403121561283c57600080fd5b81356126ae81613300565b60006020828403121561285957600080fd5b81516126ae81613300565b60008060008060008060008060006101208a8c03121561288357600080fd5b89356001600160401b038082111561289a57600080fd5b6128a68d838e0161268e565b9a5060208c01359150808211156128bc57600080fd5b6128c88d838e0161268e565b995060408c01359150808211156128de57600080fd5b6128ea8d838e0161268e565b985060608c0135975060808c013591508082111561290757600080fd5b506129148c828d0161268e565b95505060a08a0135935060c08a0135925060e08a013591506129396101008b0161267e565b90509295985092959850929598565b60006020828403121561295a57600080fd5b5035919050565b6000806040838503121561297457600080fd5b823591506020830135612700816132e8565b6000806040838503121561299957600080fd5b823591506020808401356001600160401b03808211156129b857600080fd5b818601915086601f8301126129cc57600080fd5b8135818111156129de576129de6132d2565b8060051b91506129ef848301613168565b8181528481019084860184860187018b1015612a0a57600080fd5b600095505b83861015612a395780359450612a24856132e8565b84835260019590950194918601918601612a0f565b508096505050505050509250929050565b600080600060608486031215612a5f57600080fd5b8335925060208401356001600160401b0380821115612a7d57600080fd5b612a898783880161268e565b93506040860135915080821115612a9f57600080fd5b50612aac8682870161268e565b9150509250925092565b60008060408385031215612ac957600080fd5b50508035926020909101359150565b600081518084526020808501945080840160005b83811015612b115781516001600160a01b031687529582019590820190600101612aec565b509495945050505050565b60008151808452612b348160208601602086016131fa565b601f01601f19169290920160200192915050565b60008151612b5a8185602086016131fa565b9290920192915050565b6834b6b0b3b2911d101160b91b81528251600090612b898160098501602088016131fa565b633f69643d60e01b6009918401918201528351612bad81600d8401602088016131fa565b631116101160e11b600d9290910191820152601101949350505050565b6834b6b0b3b2911d101160b91b81528451600090612bef816009850160208a016131fa565b8083019050633f69643d60e01b8060098301528651612c1581600d850160208b016131fa565b741116101130b734b6b0ba34b7b72fbab936111d101160591b600d93909101928301528551612c4b816022850160208a016131fa565b60229201918201528351612c668160268401602088016131fa565b631116101160e11b60269290910191820152602a019695505050505050565b693d913730b6b2911d101160b11b81528751600090612cab81600a850160208d016131fa565b600160fd1b600a918401918201528851612ccc81600b840160208d016131fa565b602f60f81b600b92909101918201528751612cee81600c840160208c016131fa565b631116101160e11b600c92909101918201526e3232b9b1b934b83a34b7b7111d101160891b60108201528651612d2b81601f840160208b016131fa565b612db2612da3612d9d612d86612d80612d5c612d56601f888a0101631116101160e11b815260040190565b8d612b48565b770383937b832b93a34b2b9911d103d91373ab6b132b9111d160451b815260180190565b8a612b48565b6a1610113730b6b2911d101160a91b8152600b0190565b87612b48565b62227d7d60e81b815260030190565b9b9a5050505050505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000815260008251612df981601d8501602087016131fa565b91909101601d0192915050565b7030b734b6b0ba34b7b72fbab936111d101160791b81528151600090612e338160118501602087016131fa565b633f69643d60e01b6011939091019283015250631116101160e11b6015820152601901919050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612e8e90830184612b1c565b9695505050505050565b6020815260006126ae6020830184612b1c565b608081526000612ebe6080830187612b1c565b8560208401528281036040840152612ed68186612b1c565b91505082606083015295945050505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526012908201527129b2b934b0b6103bb937b7339037bbb732b960711b604082015260600190565b6020808252601d908201527f4e6565647320746f20626520616e20616c6c6f776564206d696e746572000000604082015260600190565b60208082526015908201527414d95c9a585b081b9959591cc81d1bc8195e1a5cdd605a1b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208152600082516101a08060208501526130736101c0850183612b1c565b91506020850151601f19808685030160408701526130918483612b1c565b935060408701519150808685030160608701526130ae8483612b1c565b93506060870151608087015260808701519150808685030160a08701526130d58483612b1c565b935060a087015160c087015260c087015191506130fd60e08701836001600160a01b03169052565b60e08701516101008781019190915287015161012080880191909152870151610140808801919091528701519150610160613142818801846001600160a01b03169052565b87015161018087810191909152870151868503909101838701529050612e8e8382612ad8565b604051601f8201601f191681016001600160401b0381118282101715613190576131906132d2565b604052919050565b600082198211156131ab576131ab613290565b500190565b6000826131bf576131bf6132a6565b500490565b60008160001904831182151516156131de576131de613290565b500290565b6000828210156131f5576131f5613290565b500390565b60005b838110156132155781810151838201526020016131fd565b838111156114da5750506000910152565b600181811c9082168061323a57607f821691505b6020821081141561325b57634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561327557613275613290565b5060010190565b60008261328b5761328b6132a6565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146132fd57600080fd5b50565b6001600160e01b0319811681146132fd57600080fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220cf66150ebae96903d7468baf4f38e640cbd09bc33541080125ccae50c40586e964736f6c63430008060033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000007a6f726121030cadf9923333d5b6f29277024027000000000000000000000000000000000000000000000000000000000000000d5a4f52412045646974696f6e730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000045a5a5a5a00000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061018f5760003560e01c806370a08231116100e45780639e6dd88e116100925780639e6dd88e14610393578063a22cb4651461039c578063b84e4384146103af578063b88d4fde146103c2578063c87b56dd146103d5578063c8b4215b146103e8578063d639ba91146103fb578063e985e9c51461040457600080fd5b806370a082311461030c578063729fed2e1461031f5780637b62518c146103325780637fd3924714610345578063836860f01461035857806395d89b41146103785780639b5bfb9e1461038057600080fd5b80632a55205a116101415780632a55205a1461025857806342842e0e1461028a578063510b51581461029d578063512d2183146102b057806363407e65146102c35780636352211e146102d657806364e9293e146102e957600080fd5b806301ffc9a71461019457806306fdde03146101bc578063081812fc146101d1578063095ea7b3146101fc57806317c986901461021157806318ab307d1461023257806323b872dd14610245575b600080fd5b6101a76101a236600461282a565b610417565b60405190151581526020015b60405180910390f35b6101c4610442565b6040516101b39190612e98565b6101e46101df366004612948565b6104d4565b6040516001600160a01b0390911681526020016101b3565b61020f61020a3660046127fe565b610561565b005b61022461021f366004612961565b610672565b6040519081526020016101b3565b61020f610240366004612a4a565b610777565b61020f61025336600461270b565b610884565b61026b610266366004612ab6565b6108b5565b604080516001600160a01b0390931683526020830191909152016101b3565b61020f61029836600461270b565b6108f5565b6101e46102ab366004612948565b610910565b6102246102be366004612986565b610925565b61020f6102d1366004612986565b6109d3565b6101e46102e4366004612948565b610aa6565b6102fc6102f7366004612948565b610b1d565b6040516101b39493929190612eab565b61022461031a3660046126b5565b610b54565b6009546101e4906001600160a01b031681565b61020f610340366004612961565b610bdb565b61020f610353366004612961565b610cbe565b61036b610366366004612948565b610da1565b6040516101b39190613054565b6101c46110ed565b61036b61038e366004612948565b6110fc565b61022460075481565b61020f6103aa3660046127cb565b611128565b61020f6103bd366004612864565b6111e9565b61020f6103d036600461274c565b6114a8565b6101c46103e3366004612948565b6114e0565b61020f6103f63660046126b5565b61191c565b61022460085481565b6101a76104123660046126d2565b61198d565b600063152a902d60e11b6001600160e01b03198316148061043c575061043c826119bb565b92915050565b60606000805461045190613226565b80601f016020809104026020016040519081016040528092919081815260200182805461047d90613226565b80156104ca5780601f1061049f576101008083540402835291602001916104ca565b820191906000526020600020905b8154815290600101906020018083116104ad57829003601f168201915b5050505050905090565b60006104df82611a0b565b6105455760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061056c82610aa6565b9050806001600160a01b0316836001600160a01b031614156105da5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161053c565b336001600160a01b03821614806105f657506105f6813361198d565b6106635760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776044820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b606482015260840161053c565b61066d8383611a28565b505050565b6000600260065414156106975760405162461bcd60e51b815260040161053c9061301d565b6002600681905550826000600a82815481106106b5576106b56132bc565b90600052602060002090600d020160070154116106e45760405162461bcd60e51b815260040161053c90612f9d565b6106ed84611a96565b6107095760405162461bcd60e51b815260040161053c90612f66565b60408051600180825281830190925260009160208083019080368337019050509050838160008151811061073f5761073f6132bc565b60200260200101906001600160a01b031690816001600160a01b0316815250506107698582611b26565b600160065595945050505050565b826000600a828154811061078d5761078d6132bc565b90600052602060002090600d020160070154116107bc5760405162461bcd60e51b815260040161053c90612f9d565b83600a81815481106107d0576107d06132bc565b60009182526020909120600d90910201600601546001600160a01b0316331461080b5760405162461bcd60e51b815260040161053c90612f3a565b83600a868154811061081f5761081f6132bc565b90600052602060002090600d020160040190805190602001906108439291906124b9565b5082600a8681548110610858576108586132bc565b90600052602060002090600d0201600201908051906020019061087c9291906124b9565b505050505050565b61088e3382611cb5565b6108aa5760405162461bcd60e51b815260040161053c90612fcc565b61066d838383611d7f565b60008060006108c3856110fc565b9050806101400151612710826101600151866108df91906131c4565b6108e991906131b0565b92509250509250929050565b61066d838383604051806020016040528060008152506114a8565b600061091b826110fc565b60c0015192915050565b60006002600654141561094a5760405162461bcd60e51b815260040161053c9061301d565b6002600681905550826000600a8281548110610968576109686132bc565b90600052602060002090600d020160070154116109975760405162461bcd60e51b815260040161053c90612f9d565b6109a084611a96565b6109bc5760405162461bcd60e51b815260040161053c90612f66565b6109c68484611b26565b6001600655949350505050565b816000600a82815481106109e9576109e96132bc565b90600052602060002090600d02016007015411610a185760405162461bcd60e51b815260040161053c90612f9d565b82600a8181548110610a2c57610a2c6132bc565b60009182526020909120600d90910201600601546001600160a01b03163314610a675760405162461bcd60e51b815260040161053c90612f3a565b82600a8581548110610a7b57610a7b6132bc565b90600052602060002090600d0201600c019080519060200190610a9f92919061253d565b5050505050565b6000818152600260205260408120546001600160a01b03168061043c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161053c565b606060006060600080610b2f866110fc565b608081015160a082015160408301516060909301519199909850919650945092505050565b60006001600160a01b038216610bbf5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161053c565b506001600160a01b031660009081526003602052604090205490565b816000600a8281548110610bf157610bf16132bc565b90600052602060002090600d02016007015411610c205760405162461bcd60e51b815260040161053c90612f9d565b82600a8181548110610c3457610c346132bc565b60009182526020909120600d90910201600601546001600160a01b03163314610c6f5760405162461bcd60e51b815260040161053c90612f3a565b82600a8581548110610c8357610c836132bc565b90600052602060002090600d0201600a0160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555050505050565b816000600a8281548110610cd457610cd46132bc565b90600052602060002090600d02016007015411610d035760405162461bcd60e51b815260040161053c90612f9d565b82600a8181548110610d1757610d176132bc565b60009182526020909120600d90910201600601546001600160a01b03163314610d525760405162461bcd60e51b815260040161053c90612f3a565b82600a8581548110610d6657610d666132bc565b90600052602060002090600d020160060160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555050505050565b610da9612592565b600a8281548110610dbc57610dbc6132bc565b90600052602060002090600d0201604051806101a0016040529081600082018054610de690613226565b80601f0160208091040260200160405190810160405280929190818152602001828054610e1290613226565b8015610e5f5780601f10610e3457610100808354040283529160200191610e5f565b820191906000526020600020905b815481529060010190602001808311610e4257829003601f168201915b50505050508152602001600182018054610e7890613226565b80601f0160208091040260200160405190810160405280929190818152602001828054610ea490613226565b8015610ef15780601f10610ec657610100808354040283529160200191610ef1565b820191906000526020600020905b815481529060010190602001808311610ed457829003601f168201915b50505050508152602001600282018054610f0a90613226565b80601f0160208091040260200160405190810160405280929190818152602001828054610f3690613226565b8015610f835780601f10610f5857610100808354040283529160200191610f83565b820191906000526020600020905b815481529060010190602001808311610f6657829003601f168201915b5050505050815260200160038201548152602001600482018054610fa690613226565b80601f0160208091040260200160405190810160405280929190818152602001828054610fd290613226565b801561101f5780601f10610ff45761010080835404028352916020019161101f565b820191906000526020600020905b81548152906001019060200180831161100257829003601f168201915b5050509183525050600582015460208083019190915260068301546001600160a01b039081166040808501919091526007850154606085015260088501546080850152600985015460a0850152600a85015490911660c0840152600b84015460e0840152600c840180548251818502810185019093528083526101009094019391929091908301828280156110dd57602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116110bf575b5050505050815250509050919050565b60606001805461045190613226565b611104612592565b6000828152600b6020526040902054600a80549091908110610dbc57610dbc6132bc565b6001600160a01b03821633141561117d5760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b604482015260640161053c565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6009546001600160a01b0316158061120b57506009546001600160a01b031633145b6112455760405162461bcd60e51b815260206004820152600b60248201526a13db9b1e48185d5d1a195960aa1b604482015260640161053c565b60408051600180825281830190925260009160208083019080368337019050509050338160008151811061127b5761127b6132bc565b6001600160a01b03928316602091820292909201810191909152604080516101a0810182528d81528083018d905290810189905260608101889052608081018b905260a081018a90523360c082015260e081018790526000610100820181905260075461012083015292851661014082015261016081018690526101808101849052600a80546001810182559352805180519193600d027fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a80192611344928492909101906124b9565b50602082810151805161135d92600185019201906124b9565b50604082015180516113799160028401916020909101906124b9565b50606082015160038201556080820151805161139f9160048401916020909101906124b9565b5060a0820151600582015560c08201516006820180546001600160a01b039283166001600160a01b03199182161790915560e0840151600784015561010084015160088401556101208401516009840155610140840151600a84018054919093169116179055610160820151600b820155610180820151805161142c91600c84019160209091019061253d565b5050600a547f304edfc7a6ed6447c7453a7b1cf337fba55d44ce291f2e41c9711c2e93aafb819150611460906001906131e3565b600754604080519283523360208401528201526060810186905260800160405180910390a183600760008282546114979190613198565b909155505050505050505050505050565b6114b23383611cb5565b6114ce5760405162461bcd60e51b815260040161053c90612fcc565b6114da84848484611f1f565b50505050565b60606114eb82611a0b565b6115225760405162461bcd60e51b81526020600482015260086024820152672727902a27a5a2a760c11b604482015260640161053c565b6000828152600b6020526040812054600a80549091908110611546576115466132bc565b90600052602060002090600d0201604051806101a001604052908160008201805461157090613226565b80601f016020809104026020016040519081016040528092919081815260200182805461159c90613226565b80156115e95780601f106115be576101008083540402835291602001916115e9565b820191906000526020600020905b8154815290600101906020018083116115cc57829003601f168201915b5050505050815260200160018201805461160290613226565b80601f016020809104026020016040519081016040528092919081815260200182805461162e90613226565b801561167b5780601f106116505761010080835404028352916020019161167b565b820191906000526020600020905b81548152906001019060200180831161165e57829003601f168201915b5050505050815260200160028201805461169490613226565b80601f01602080910402602001604051908101604052809291908181526020018280546116c090613226565b801561170d5780601f106116e25761010080835404028352916020019161170d565b820191906000526020600020905b8154815290600101906020018083116116f057829003601f168201915b505050505081526020016003820154815260200160048201805461173090613226565b80601f016020809104026020016040519081016040528092919081815260200182805461175c90613226565b80156117a95780601f1061177e576101008083540402835291602001916117a9565b820191906000526020600020905b81548152906001019060200180831161178c57829003601f168201915b5050509183525050600582015460208083019190915260068301546001600160a01b039081166040808501919091526007850154606085015260088501546080850152600985015460a0850152600a85015490911660c0840152600b84015460e0840152600c8401805482518185028101850190935280835261010090940193919290919083018282801561186757602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611849575b505050505081525050905060008161012001518461188591906131e3565b611890906001613198565b90506118f482600001516118a383611f52565b6118b08560e00151611f52565b85602001516118bf878761204f565b6118c887611f52565b88516040516118e09796959493929190602001612c85565b604051602081830303815290604052612112565b6040516020016119049190612dc1565b60405160208183030381529060405292505050919050565b6009546001600160a01b0316331461196b5760405162461bcd60e51b81526020600482015260126024820152712bb937b7339039b2b934b0b61037bbb732b960711b604482015260640161053c565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b60006001600160e01b031982166380ac58cd60e01b14806119ec57506001600160e01b03198216635b5e139f60e01b145b8061043c57506301ffc9a760e01b6001600160e01b031983161461043c565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611a5d82610aa6565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080611aa283610da1565b6101808101515190915080611abb575060019392505050565b60005b81811015611b1b57336001600160a01b03168361018001518281518110611ae757611ae76132bc565b60200260200101516001600160a01b03161415611b0957506001949350505050565b80611b1381613261565b915050611abe565b506000949350505050565b600080611b3284610da1565b90506000816101000151826101200151611b4c9190613198565b90508160e001518451836101000151611b659190613198565b1115611b9e5760405162461bcd60e51b815260206004820152600860248201526714d3d3110813d55560c21b604482015260640161053c565b6000805b8551821015611c7057611bb58284613198565b9050611bda868381518110611bcc57611bcc6132bc565b602002602001015182612279565b6000818152600b6020526040902087905585517f324082de3a4de96b605b60a5caea156c737d3cabcd463779a47206a8d6e8c6c89088908390899086908110611c2557611c256132bc565b6020026020010151604051611c569392919092835260208301919091526001600160a01b0316604082015260600190565b60405180910390a1611c69600183613198565b9150611ba2565b8551600a8881548110611c8557611c856132bc565b90600052602060002090600d02016008016000828254611ca59190613198565b9091555090979650505050505050565b6000611cc082611a0b565b611d215760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161053c565b6000611d2c83610aa6565b9050806001600160a01b0316846001600160a01b03161480611d675750836001600160a01b0316611d5c846104d4565b6001600160a01b0316145b80611d775750611d77818561198d565b949350505050565b826001600160a01b0316611d9282610aa6565b6001600160a01b031614611dfa5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b606482015260840161053c565b6001600160a01b038216611e5c5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161053c565b611e67600082611a28565b6001600160a01b0383166000908152600360205260408120805460019290611e909084906131e3565b90915550506001600160a01b0382166000908152600360205260408120805460019290611ebe908490613198565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b611f2a848484611d7f565b611f36848484846123ac565b6114da5760405162461bcd60e51b815260040161053c90612ee8565b606081611f765750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611fa05780611f8a81613261565b9150611f999050600a836131b0565b9150611f7a565b6000816001600160401b03811115611fba57611fba6132d2565b6040519080825280601f01601f191660200182016040528015611fe4576020820181803683370190505b5090505b8415611d7757611ff96001836131e3565b9150612006600a8661327c565b612011906030613198565b60f81b818381518110612026576120266132bc565b60200101906001600160f81b031916908160001a905350612048600a866131b0565b9450611fe8565b60808201515160408301515160609115801591151590829061206e5750805b156120ba57846080015161208185611f52565b866040015161208f87611f52565b6040516020016120a29493929190612bca565b6040516020818303038152906040529250505061043c565b81156120df5784608001516120ce85611f52565b6040516020016120a2929190612b64565b80156120fa5784604001516040516020016120a29190612e06565b50506040805160208101909152600081529392505050565b606081516000141561213257505060408051602081019091526000815290565b600060405180606001604052806040815260200161331760409139905060006003845160026121619190613198565b61216b91906131b0565b6121769060046131c4565b90506000612185826020613198565b6001600160401b0381111561219c5761219c6132d2565b6040519080825280601f01601f1916602001820160405280156121c6576020820181803683370190505b509050818152600183018586518101602084015b818310156122345760039283018051603f601282901c811687015160f890811b8552600c83901c8216880151811b6001860152600683901c8216880151811b60028601529116860151901b938201939093526004016121da565b60038951066001811461224e576002811461225f5761226b565b613d3d60f01b60011983015261226b565b603d60f81b6000198301525b509398975050505050505050565b6001600160a01b0382166122cf5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161053c565b6122d881611a0b565b156123255760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161053c565b6001600160a01b038216600090815260036020526040812080546001929061234e908490613198565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006001600160a01b0384163b156124ae57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906123f0903390899088908890600401612e5b565b602060405180830381600087803b15801561240a57600080fd5b505af192505050801561243a575060408051601f3d908101601f1916820190925261243791810190612847565b60015b612494573d808015612468576040519150601f19603f3d011682016040523d82523d6000602084013e61246d565b606091505b50805161248c5760405162461bcd60e51b815260040161053c90612ee8565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611d77565b506001949350505050565b8280546124c590613226565b90600052602060002090601f0160209004810192826124e7576000855561252d565b82601f1061250057805160ff191683800117855561252d565b8280016001018555821561252d579182015b8281111561252d578251825591602001919060010190612512565b50612539929150612612565b5090565b82805482825590600052602060002090810192821561252d579160200282015b8281111561252d57825182546001600160a01b0319166001600160a01b0390911617825560209092019160019091019061255d565b604051806101a0016040528060608152602001606081526020016060815260200160008019168152602001606081526020016000801916815260200160006001600160a01b0316815260200160008152602001600081526020016000815260200160006001600160a01b0316815260200160008152602001606081525090565b5b808211156125395760008155600101612613565b60006001600160401b03831115612640576126406132d2565b612653601f8401601f1916602001613168565b905082815283838301111561266757600080fd5b828260208301376000602084830101529392505050565b8035612689816132e8565b919050565b600082601f83011261269f57600080fd5b6126ae83833560208501612627565b9392505050565b6000602082840312156126c757600080fd5b81356126ae816132e8565b600080604083850312156126e557600080fd5b82356126f0816132e8565b91506020830135612700816132e8565b809150509250929050565b60008060006060848603121561272057600080fd5b833561272b816132e8565b9250602084013561273b816132e8565b929592945050506040919091013590565b6000806000806080858703121561276257600080fd5b843561276d816132e8565b9350602085013561277d816132e8565b92506040850135915060608501356001600160401b0381111561279f57600080fd5b8501601f810187136127b057600080fd5b6127bf87823560208401612627565b91505092959194509250565b600080604083850312156127de57600080fd5b82356127e9816132e8565b91506020830135801515811461270057600080fd5b6000806040838503121561281157600080fd5b823561281c816132e8565b946020939093013593505050565b60006020828403121561283c57600080fd5b81356126ae81613300565b60006020828403121561285957600080fd5b81516126ae81613300565b60008060008060008060008060006101208a8c03121561288357600080fd5b89356001600160401b038082111561289a57600080fd5b6128a68d838e0161268e565b9a5060208c01359150808211156128bc57600080fd5b6128c88d838e0161268e565b995060408c01359150808211156128de57600080fd5b6128ea8d838e0161268e565b985060608c0135975060808c013591508082111561290757600080fd5b506129148c828d0161268e565b95505060a08a0135935060c08a0135925060e08a013591506129396101008b0161267e565b90509295985092959850929598565b60006020828403121561295a57600080fd5b5035919050565b6000806040838503121561297457600080fd5b823591506020830135612700816132e8565b6000806040838503121561299957600080fd5b823591506020808401356001600160401b03808211156129b857600080fd5b818601915086601f8301126129cc57600080fd5b8135818111156129de576129de6132d2565b8060051b91506129ef848301613168565b8181528481019084860184860187018b1015612a0a57600080fd5b600095505b83861015612a395780359450612a24856132e8565b84835260019590950194918601918601612a0f565b508096505050505050509250929050565b600080600060608486031215612a5f57600080fd5b8335925060208401356001600160401b0380821115612a7d57600080fd5b612a898783880161268e565b93506040860135915080821115612a9f57600080fd5b50612aac8682870161268e565b9150509250925092565b60008060408385031215612ac957600080fd5b50508035926020909101359150565b600081518084526020808501945080840160005b83811015612b115781516001600160a01b031687529582019590820190600101612aec565b509495945050505050565b60008151808452612b348160208601602086016131fa565b601f01601f19169290920160200192915050565b60008151612b5a8185602086016131fa565b9290920192915050565b6834b6b0b3b2911d101160b91b81528251600090612b898160098501602088016131fa565b633f69643d60e01b6009918401918201528351612bad81600d8401602088016131fa565b631116101160e11b600d9290910191820152601101949350505050565b6834b6b0b3b2911d101160b91b81528451600090612bef816009850160208a016131fa565b8083019050633f69643d60e01b8060098301528651612c1581600d850160208b016131fa565b741116101130b734b6b0ba34b7b72fbab936111d101160591b600d93909101928301528551612c4b816022850160208a016131fa565b60229201918201528351612c668160268401602088016131fa565b631116101160e11b60269290910191820152602a019695505050505050565b693d913730b6b2911d101160b11b81528751600090612cab81600a850160208d016131fa565b600160fd1b600a918401918201528851612ccc81600b840160208d016131fa565b602f60f81b600b92909101918201528751612cee81600c840160208c016131fa565b631116101160e11b600c92909101918201526e3232b9b1b934b83a34b7b7111d101160891b60108201528651612d2b81601f840160208b016131fa565b612db2612da3612d9d612d86612d80612d5c612d56601f888a0101631116101160e11b815260040190565b8d612b48565b770383937b832b93a34b2b9911d103d91373ab6b132b9111d160451b815260180190565b8a612b48565b6a1610113730b6b2911d101160a91b8152600b0190565b87612b48565b62227d7d60e81b815260030190565b9b9a5050505050505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000815260008251612df981601d8501602087016131fa565b91909101601d0192915050565b7030b734b6b0ba34b7b72fbab936111d101160791b81528151600090612e338160118501602087016131fa565b633f69643d60e01b6011939091019283015250631116101160e11b6015820152601901919050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612e8e90830184612b1c565b9695505050505050565b6020815260006126ae6020830184612b1c565b608081526000612ebe6080830187612b1c565b8560208401528281036040840152612ed68186612b1c565b91505082606083015295945050505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526012908201527129b2b934b0b6103bb937b7339037bbb732b960711b604082015260600190565b6020808252601d908201527f4e6565647320746f20626520616e20616c6c6f776564206d696e746572000000604082015260600190565b60208082526015908201527414d95c9a585b081b9959591cc81d1bc8195e1a5cdd605a1b604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208152600082516101a08060208501526130736101c0850183612b1c565b91506020850151601f19808685030160408701526130918483612b1c565b935060408701519150808685030160608701526130ae8483612b1c565b93506060870151608087015260808701519150808685030160a08701526130d58483612b1c565b935060a087015160c087015260c087015191506130fd60e08701836001600160a01b03169052565b60e08701516101008781019190915287015161012080880191909152870151610140808801919091528701519150610160613142818801846001600160a01b03169052565b87015161018087810191909152870151868503909101838701529050612e8e8382612ad8565b604051601f8201601f191681016001600160401b0381118282101715613190576131906132d2565b604052919050565b600082198211156131ab576131ab613290565b500190565b6000826131bf576131bf6132a6565b500490565b60008160001904831182151516156131de576131de613290565b500290565b6000828210156131f5576131f5613290565b500390565b60005b838110156132155781810151838201526020016131fd565b838111156114da5750506000910152565b600181811c9082168061323a57607f821691505b6020821081141561325b57634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561327557613275613290565b5060010190565b60008261328b5761328b6132a6565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146132fd57600080fd5b50565b6001600160e01b0319811681146132fd57600080fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220cf66150ebae96903d7468baf4f38e640cbd09bc33541080125ccae50c40586e964736f6c63430008060033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000007a6f726121030cadf9923333d5b6f29277024027000000000000000000000000000000000000000000000000000000000000000d5a4f52412045646974696f6e730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000045a5a5a5a00000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name (string): ZORA Editions
Arg [1] : symbol (string): ZZZZ
Arg [2] : _allowedCreator (address): 0x7A6f726121030CaDf9923333d5b6F29277024027
-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 0000000000000000000000007a6f726121030cadf9923333d5b6f29277024027
Arg [3] : 000000000000000000000000000000000000000000000000000000000000000d
Arg [4] : 5a4f52412045646974696f6e7300000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [6] : 5a5a5a5a00000000000000000000000000000000000000000000000000000000
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.