ERC-1155
Overview
Max Total Supply
1,000 FOUNT
Holders
599
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
FountCard
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; /* ▄▄▄██ ████████████████▄▄▄▄ ▄█████████ █████████▀▀▀▀█████████▄ ▀████████ ▐███████▌ ▀████████▄ ▐███████ ▐███████▌ █████████▄ ▐███████ ▐███████▌ ▀████████▌ ▄▄▄▄ ▄▄▄ ▐███████ ▄▄▄▄ ▐███████▌ █████████▌ ▄█████▀▀█████▄▄ ▄█████▀▀███████████ ▄█████▀▀██████▄ ▐███████▌ █████████ ▐██████ ▐██████▄ ▄█████▌ ▀████████ ▄██████ ▐██████ ▐███████▌ █████████ ▐█████ ███████▌ ███████ ████████ ▐███████▌ ▀█████ ▐███████▌ ▐████████ ▄▄▄▄ ▐███████ ▐███████ ▐███████ ██████████▄▄ ▐███████▌ ▐███████▌ ▄███████▀█████████ ████████ ▐███████ ██████████████▄▄ ▐███████▌ ███████▌ ▄███████ ▐███████▌ ▐███████ ▐███████ ▀▀█████████████ ▐███████▌ ▄██████▀ ████████ ████████ ████████ ▐███████ ████▄ ▀▀███████▌ ▐████████▄ ▄██████▀ ████████ ████████ ███████▌ ▐███████ ███████ ▐██████▌ ▄██████████████████████▀ ▀███████▄ ▄█████████▄ ▀███████▄ ▄█████████ ▀██████▄ ██████▀ ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ▀▀▀████▀▀▀ ▀▀▀▀▀▀▀▀ ▀▀▀████▀▀ ▀▀▀▀▀▀▀▀ ▀▀▀▀████▀▀▀▀ */ import "./GenericCollection.sol"; contract FountCard is GenericCollection { constructor( string memory baseUri, string memory contractUri, address payable royaltiesReceiver ) GenericCollection("Fount Card", "FOUNT", baseUri, contractUri, royaltiesReceiver, 750) {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; /* ▄▄▄██ ████████████████▄▄▄▄ ▄█████████ █████████▀▀▀▀█████████▄ ▀████████ ▐███████▌ ▀████████▄ ▐███████ ▐███████▌ █████████▄ ▐███████ ▐███████▌ ▀████████▌ ▄▄▄▄ ▄▄▄ ▐███████ ▄▄▄▄ ▐███████▌ █████████▌ ▄█████▀▀█████▄▄ ▄█████▀▀███████████ ▄█████▀▀██████▄ ▐███████▌ █████████ ▐██████ ▐██████▄ ▄█████▌ ▀████████ ▄██████ ▐██████ ▐███████▌ █████████ ▐█████ ███████▌ ███████ ████████ ▐███████▌ ▀█████ ▐███████▌ ▐████████ ▄▄▄▄ ▐███████ ▐███████ ▐███████ ██████████▄▄ ▐███████▌ ▐███████▌ ▄███████▀█████████ ████████ ▐███████ ██████████████▄▄ ▐███████▌ ███████▌ ▄███████ ▐███████▌ ▐███████ ▐███████ ▀▀█████████████ ▐███████▌ ▄██████▀ ████████ ████████ ████████ ▐███████ ████▄ ▀▀███████▌ ▐████████▄ ▄██████▀ ████████ ████████ ███████▌ ▐███████ ███████ ▐██████▌ ▄██████████████████████▀ ▀███████▄ ▄█████████▄ ▀███████▄ ▄█████████ ▀██████▄ ██████▀ ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ▀▀▀████▀▀▀ ▀▀▀▀▀▀▀▀ ▀▀▀████▀▀ ▀▀▀▀▀▀▀▀ ▀▀▀▀████▀▀▀▀ */ import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/token/common/ERC2981.sol"; contract GenericCollection is ERC1155, AccessControl, ERC2981 { string public name; string public symbol; string private _uri; bytes32 public constant MINTWORTHY = keccak256("MINTWORTHY"); mapping(uint256 => string) private _customURIs; string private _contractURI; constructor( string memory name_, string memory symbol_, string memory initialBaseURI, string memory initialContractURI, address payable royaltiesReceiver, uint96 royaltiesNumerator ) ERC1155("") { name = name_; symbol = symbol_; _grantRole(DEFAULT_ADMIN_ROLE, _msgSender()); _grantRole(MINTWORTHY, _msgSender()); setBaseURI(initialBaseURI); setContractURI(initialContractURI); setRoyaltyInfo(royaltiesReceiver, royaltiesNumerator); } // Minting function mint( uint256 id, uint256 amount, address destination ) public onlyRole(MINTWORTHY) { _mint(destination, id, amount, ""); } function mint( uint256 id, uint256 amount, address destination, string memory tokenUri ) public onlyRole(MINTWORTHY) { setCustomUri(id, tokenUri); _mint(destination, id, amount, ""); } // Metadata function setBaseURI(string memory baseURI) public onlyRole(DEFAULT_ADMIN_ROLE) { _uri = baseURI; } function setCustomUri(uint256 id, string memory tokenUri) public onlyRole(MINTWORTHY) { _customURIs[id] = tokenUri; } function uri(uint256 id) public view virtual override returns (string memory) { string memory customURI = _customURIs[id]; if (keccak256(bytes(customURI)) != keccak256(bytes(""))) { return customURI; } return _uri; } function contractURI() public view returns (string memory) { return _contractURI; } function setContractURI(string memory contractURI_) public onlyRole(DEFAULT_ADMIN_ROLE) { _contractURI = contractURI_; } // IERC2981 function setRoyaltyInfo(address payable receiver, uint96 numerator) public onlyRole(DEFAULT_ADMIN_ROLE) { _setDefaultRoyalty(receiver, numerator); } // ERC165 function supportsInterface(bytes4 interfaceId) public view virtual override(ERC1155, ERC2981, AccessControl) returns (bool) { return ERC1155.supportsInterface(interfaceId) || ERC2981.supportsInterface(interfaceId) || AccessControl.supportsInterface(interfaceId) || super.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC1155/ERC1155.sol) pragma solidity ^0.8.0; import "./IERC1155.sol"; import "./IERC1155Receiver.sol"; import "./extensions/IERC1155MetadataURI.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the basic standard multi-token. * See https://eips.ethereum.org/EIPS/eip-1155 * Originally based on code by Enjin: https://github.com/enjin/erc-1155 * * _Available since v3.1._ */ contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI { using Address for address; // Mapping from token ID to account balances mapping(uint256 => mapping(address => uint256)) private _balances; // Mapping from account to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json string private _uri; /** * @dev See {_setURI}. */ constructor(string memory uri_) { _setURI(uri_); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC1155).interfaceId || interfaceId == type(IERC1155MetadataURI).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC1155MetadataURI-uri}. * * This implementation returns the same URI for *all* token types. It relies * on the token type ID substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * Clients calling this function must replace the `\{id\}` substring with the * actual token type ID. */ function uri(uint256) public view virtual override returns (string memory) { return _uri; } /** * @dev See {IERC1155-balanceOf}. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) public view virtual override returns (uint256) { require(account != address(0), "ERC1155: balance query for the zero address"); return _balances[id][account]; } /** * @dev See {IERC1155-balanceOfBatch}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] memory accounts, uint256[] memory ids) public view virtual override returns (uint256[] memory) { require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch"); uint256[] memory batchBalances = new uint256[](accounts.length); for (uint256 i = 0; i < accounts.length; ++i) { batchBalances[i] = balanceOf(accounts[i], ids[i]); } return batchBalances; } /** * @dev See {IERC1155-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC1155-isApprovedForAll}. */ function isApprovedForAll(address account, address operator) public view virtual override returns (bool) { return _operatorApprovals[account][operator]; } /** * @dev See {IERC1155-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: caller is not owner nor approved" ); _safeTransferFrom(from, to, id, amount, data); } /** * @dev See {IERC1155-safeBatchTransferFrom}. */ function safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: transfer caller is not owner nor approved" ); _safeBatchTransferFrom(from, to, ids, amounts, data); } /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); uint256[] memory ids = _asSingletonArray(id); uint256[] memory amounts = _asSingletonArray(amount); _beforeTokenTransfer(operator, from, to, ids, amounts, data); uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; emit TransferSingle(operator, from, to, id, amount); _afterTokenTransfer(operator, from, to, ids, amounts, data); _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, to, ids, amounts, data); for (uint256 i = 0; i < ids.length; ++i) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; } emit TransferBatch(operator, from, to, ids, amounts); _afterTokenTransfer(operator, from, to, ids, amounts, data); _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data); } /** * @dev Sets a new URI for all token types, by relying on the token type ID * substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * By this mechanism, any occurrence of the `\{id\}` substring in either the * URI or any of the amounts in the JSON file at said URI will be replaced by * clients with the token type ID. * * For example, the `https://token-cdn-domain/\{id\}.json` URI would be * interpreted by clients as * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json` * for token type ID 0x4cce0. * * See {uri}. * * Because these URIs cannot be meaningfully represented by the {URI} event, * this function emits no events. */ function _setURI(string memory newuri) internal virtual { _uri = newuri; } /** * @dev Creates `amount` tokens of token type `id`, and assigns them to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _mint( address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); address operator = _msgSender(); uint256[] memory ids = _asSingletonArray(id); uint256[] memory amounts = _asSingletonArray(amount); _beforeTokenTransfer(operator, address(0), to, ids, amounts, data); _balances[id][to] += amount; emit TransferSingle(operator, address(0), to, id, amount); _afterTokenTransfer(operator, address(0), to, ids, amounts, data); _doSafeTransferAcceptanceCheck(operator, address(0), to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _mintBatch( address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), to, ids, amounts, data); for (uint256 i = 0; i < ids.length; i++) { _balances[ids[i]][to] += amounts[i]; } emit TransferBatch(operator, address(0), to, ids, amounts); _afterTokenTransfer(operator, address(0), to, ids, amounts, data); _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data); } /** * @dev Destroys `amount` tokens of token type `id` from `from` * * Requirements: * * - `from` cannot be the zero address. * - `from` must have at least `amount` tokens of token type `id`. */ function _burn( address from, uint256 id, uint256 amount ) internal virtual { require(from != address(0), "ERC1155: burn from the zero address"); address operator = _msgSender(); uint256[] memory ids = _asSingletonArray(id); uint256[] memory amounts = _asSingletonArray(amount); _beforeTokenTransfer(operator, from, address(0), ids, amounts, ""); uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][from] = fromBalance - amount; } emit TransferSingle(operator, from, address(0), id, amount); _afterTokenTransfer(operator, from, address(0), ids, amounts, ""); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}. * * Requirements: * * - `ids` and `amounts` must have the same length. */ function _burnBatch( address from, uint256[] memory ids, uint256[] memory amounts ) internal virtual { require(from != address(0), "ERC1155: burn from the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, address(0), ids, amounts, ""); for (uint256 i = 0; i < ids.length; i++) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][from] = fromBalance - amount; } } emit TransferBatch(operator, from, address(0), ids, amounts); _afterTokenTransfer(operator, from, address(0), ids, amounts, ""); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC1155: setting approval status for self"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Hook that is called before any token transfer. This includes minting * and burning, as well as batched variants. * * The same hook is called on both single and batched variants. For single * transfers, the length of the `id` and `amount` arrays will be 1. * * Calling conditions (for each `id` and `amount` pair): * * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens * of token type `id` will be transferred to `to`. * - When `from` is zero, `amount` tokens of token type `id` will be minted * for `to`. * - when `to` is zero, `amount` of ``from``'s tokens of token type `id` * will be burned. * - `from` and `to` are never both zero. * - `ids` and `amounts` have the same, non-zero length. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual {} /** * @dev Hook that is called after any token transfer. This includes minting * and burning, as well as batched variants. * * The same hook is called on both single and batched variants. For single * transfers, the length of the `id` and `amount` arrays will be 1. * * Calling conditions (for each `id` and `amount` pair): * * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens * of token type `id` will be transferred to `to`. * - When `from` is zero, `amount` tokens of token type `id` will be minted * for `to`. * - when `to` is zero, `amount` of ``from``'s tokens of token type `id` * will be burned. * - `from` and `to` are never both zero. * - `ids` and `amounts` have the same, non-zero length. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual {} function _doSafeTransferAcceptanceCheck( address operator, address from, address to, uint256 id, uint256 amount, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) { if (response != IERC1155Receiver.onERC1155Received.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _doSafeBatchTransferAcceptanceCheck( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns ( bytes4 response ) { if (response != IERC1155Receiver.onERC1155BatchReceived.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) { uint256[] memory array = new uint256[](1); array[0] = element; return array; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (access/AccessControl.sol) pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view virtual override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `_msgSender()` is missing `role`. * Overriding this function changes the behavior of the {onlyRole} modifier. * * Format of the revert message is described in {_checkRole}. * * _Available since v4.6._ */ function _checkRole(bytes32 role) internal view virtual { _checkRole(role, _msgSender()); } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view virtual { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/common/ERC2981.sol) pragma solidity ^0.8.0; import "../../interfaces/IERC2981.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC2981 is IERC2981, ERC165 { struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981 */ function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: invalid receiver"); _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `tokenId` must be already minted. * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: Invalid parameters"); _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Resets royalty information for the token id back to the global default. */ function _resetTokenRoyalty(uint256 tokenId) internal virtual { delete _tokenRoyaltyInfo[tokenId]; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. * * _Available since v3.1._ */ interface IERC1155 is IERC165 { /** * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch( address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values ); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll(address indexed account, address indexed operator, bool approved); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the amount of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes calldata data ) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev _Available since v3.1._ */ interface IERC1155Receiver is IERC165 { /** * @dev Handles the receipt of a single ERC1155 token type. This function is * called at the end of a `safeTransferFrom` after the balance has been updated. * * NOTE: To accept the transfer, this must return * `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` * (i.e. 0xf23a6e61, or its own function selector). * * @param operator The address which initiated the transfer (i.e. msg.sender) * @param from The address which previously owned the token * @param id The ID of the token being transferred * @param value The amount of tokens being transferred * @param data Additional data with no specified format * @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed */ function onERC1155Received( address operator, address from, uint256 id, uint256 value, bytes calldata data ) external returns (bytes4); /** * @dev Handles the receipt of a multiple ERC1155 token types. This function * is called at the end of a `safeBatchTransferFrom` after the balances have * been updated. * * NOTE: To accept the transfer(s), this must return * `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` * (i.e. 0xbc197c81, or its own function selector). * * @param operator The address which initiated the batch transfer (i.e. msg.sender) * @param from The address which previously owned the token * @param ids An array containing ids of each token being transferred (order and length must match values array) * @param values An array containing amounts of each token being transferred (order and length must match ids array) * @param data Additional data with no specified format * @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed */ function onERC1155BatchReceived( address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol) pragma solidity ^0.8.0; import "../IERC1155.sol"; /** * @dev Interface of the optional ERC1155MetadataExtension interface, as defined * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP]. * * _Available since v3.1._ */ interface IERC1155MetadataURI is IERC1155 { /** * @dev Returns the URI for token type `id`. * * If the `\{id\}` substring is present in the URI, it must be replaced by * clients with the actual token type ID. */ function uri(uint256 id) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) 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 // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) 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 // OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"baseUri","type":"string"},{"internalType":"string","name":"contractUri","type":"string"},{"internalType":"address payable","name":"royaltiesReceiver","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTWORTHY","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"destination","type":"address"},{"internalType":"string","name":"tokenUri","type":"string"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"destination","type":"address"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"contractURI_","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"string","name":"tokenUri","type":"string"}],"name":"setCustomUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"receiver","type":"address"},{"internalType":"uint96","name":"numerator","type":"uint96"}],"name":"setRoyaltyInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040516200538138038062005381833981810160405281019062000037919062000b59565b6040518060400160405280600a81526020017f466f756e742043617264000000000000000000000000000000000000000000008152506040518060400160405280600581526020017f464f554e540000000000000000000000000000000000000000000000000000008152508484846102ee60405180602001604052806000815250620000ca81620001a560201b60201c565b508560069080519060200190620000e3929190620008a7565b508460079080519060200190620000fc929190620008a7565b50620001216000801b62000115620001c160201b60201c565b620001c960201b60201c565b620001627fc2181ece9849e7e3c0907e94ba6d6dadfefb51cf36ac9f67858e3098cfc6441862000156620001c160201b60201c565b620001c960201b60201c565b6200017384620002bb60201b60201c565b6200018483620002ed60201b60201c565b6200019682826200031f60201b60201c565b505050505050505050620010ce565b8060029080519060200190620001bd929190620008a7565b5050565b600033905090565b620001db82826200034b60201b60201c565b620002b75760016003600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506200025c620001c160201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6000801b620002d081620003b660201b60201c565b8160089080519060200190620002e8929190620008a7565b505050565b6000801b6200030281620003b660201b60201c565b81600a90805190602001906200031a929190620008a7565b505050565b6000801b6200033481620003b660201b60201c565b620003468383620003da60201b60201c565b505050565b60006003600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b620003d781620003cb620001c160201b60201c565b6200057e60201b60201c565b50565b620003ea6200064260201b60201c565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff1611156200044b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620004429062000c7a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415620004be576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620004b59062000cec565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600460008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b6200059082826200034b60201b60201c565b6200063e57620005c38173ffffffffffffffffffffffffffffffffffffffff1660146200064c60201b620010c91760201c565b620005de8360001c60206200064c60201b620010c91760201c565b604051602001620005f192919062000dfb565b6040516020818303038152906040526040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000635919062000e7e565b60405180910390fd5b5050565b6000612710905090565b60606000600283600262000661919062000edb565b6200066d919062000f3c565b67ffffffffffffffff81111562000689576200068862000986565b5b6040519080825280601f01601f191660200182016040528015620006bc5781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110620006f757620006f662000f99565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106200075e576200075d62000f99565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006001846002620007a0919062000edb565b620007ac919062000f3c565b90505b600181111562000856577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110620007f257620007f162000f99565b5b1a60f81b8282815181106200080c576200080b62000f99565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c9450806200084e9062000fc8565b9050620007af565b50600084146200089d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620008949062001047565b60405180910390fd5b8091505092915050565b828054620008b59062001098565b90600052602060002090601f016020900481019282620008d9576000855562000925565b82601f10620008f457805160ff191683800117855562000925565b8280016001018555821562000925579182015b828111156200092457825182559160200191906001019062000907565b5b50905062000934919062000938565b5090565b5b808211156200095357600081600090555060010162000939565b5090565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620009c08262000975565b810181811067ffffffffffffffff82111715620009e257620009e162000986565b5b80604052505050565b6000620009f762000957565b905062000a058282620009b5565b919050565b600067ffffffffffffffff82111562000a285762000a2762000986565b5b62000a338262000975565b9050602081019050919050565b60005b8381101562000a6057808201518184015260208101905062000a43565b8381111562000a70576000848401525b50505050565b600062000a8d62000a878462000a0a565b620009eb565b90508281526020810184848401111562000aac5762000aab62000970565b5b62000ab984828562000a40565b509392505050565b600082601f83011262000ad95762000ad86200096b565b5b815162000aeb84826020860162000a76565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062000b218262000af4565b9050919050565b62000b338162000b14565b811462000b3f57600080fd5b50565b60008151905062000b538162000b28565b92915050565b60008060006060848603121562000b755762000b7462000961565b5b600084015167ffffffffffffffff81111562000b965762000b9562000966565b5b62000ba48682870162000ac1565b935050602084015167ffffffffffffffff81111562000bc85762000bc762000966565b5b62000bd68682870162000ac1565b925050604062000be98682870162000b42565b9150509250925092565b600082825260208201905092915050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b600062000c62602a8362000bf3565b915062000c6f8262000c04565b604082019050919050565b6000602082019050818103600083015262000c958162000c53565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b600062000cd460198362000bf3565b915062000ce18262000c9c565b602082019050919050565b6000602082019050818103600083015262000d078162000cc5565b9050919050565b600081905092915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b600062000d5160178362000d0e565b915062000d5e8262000d19565b601782019050919050565b600081519050919050565b600062000d818262000d69565b62000d8d818562000d0e565b935062000d9f81856020860162000a40565b80840191505092915050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b600062000de360118362000d0e565b915062000df08262000dab565b601182019050919050565b600062000e088262000d42565b915062000e16828562000d74565b915062000e238262000dd4565b915062000e31828462000d74565b91508190509392505050565b600062000e4a8262000d69565b62000e56818562000bf3565b935062000e6881856020860162000a40565b62000e738162000975565b840191505092915050565b6000602082019050818103600083015262000e9a818462000e3d565b905092915050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600062000ee88262000ea2565b915062000ef58362000ea2565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161562000f315762000f3062000eac565b5b828202905092915050565b600062000f498262000ea2565b915062000f568362000ea2565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111562000f8e5762000f8d62000eac565b5b828201905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600062000fd58262000ea2565b9150600082141562000fec5762000feb62000eac565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b60006200102f60208362000bf3565b91506200103c8262000ff7565b602082019050919050565b60006020820190508181036000830152620010628162001020565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620010b157607f821691505b60208210811415620010c857620010c762001069565b5b50919050565b6142a380620010de6000396000f3fe608060405234801561001057600080fd5b50600436106101725760003560e01c806391d14854116100de578063d547741f11610097578063e8a3d48511610071578063e8a3d48514610458578063e985e9c514610476578063eed3a1ae146104a6578063f242432a146104c257610172565b8063d547741f14610402578063e1c1c1911461041e578063e7d3fe6b1461043c57610172565b806391d1485414610342578063938e3d7b1461037257806395d89b411461038e578063a217fddf146103ac578063a22cb465146103ca578063a382a4d9146103e657610172565b80632a55205a116101305780632a55205a146102715780632eb2c2d6146102a25780632f2ff15d146102be57806336568abe146102da5780634e1273f4146102f657806355f804b31461032657610172565b8062fdd58e1461017757806301ffc9a7146101a757806302fa7c47146101d757806306fdde03146101f35780630e89341c14610211578063248a9ca314610241575b600080fd5b610191600480360381019061018c9190612803565b6104de565b60405161019e9190612852565b60405180910390f35b6101c160048036038101906101bc91906128c5565b6105a7565b6040516101ce919061290d565b60405180910390f35b6101f160048036038101906101ec91906129aa565b6105e9565b005b6101fb610605565b6040516102089190612a83565b60405180910390f35b61022b60048036038101906102269190612aa5565b610693565b6040516102389190612a83565b60405180910390f35b61025b60048036038101906102569190612b08565b6107f6565b6040516102689190612b44565b60405180910390f35b61028b60048036038101906102869190612b5f565b610816565b604051610299929190612bae565b60405180910390f35b6102bc60048036038101906102b79190612dd4565b610a01565b005b6102d860048036038101906102d39190612ea3565b610aa2565b005b6102f460048036038101906102ef9190612ea3565b610ac3565b005b610310600480360381019061030b9190612fa6565b610b46565b60405161031d91906130dc565b60405180910390f35b610340600480360381019061033b919061319f565b610c5f565b005b61035c60048036038101906103579190612ea3565b610c87565b604051610369919061290d565b60405180910390f35b61038c6004803603810190610387919061319f565b610cf2565b005b610396610d1a565b6040516103a39190612a83565b60405180910390f35b6103b4610da8565b6040516103c19190612b44565b60405180910390f35b6103e460048036038101906103df9190613214565b610daf565b005b61040060048036038101906103fb9190613254565b610dc5565b005b61041c60048036038101906104179190612ea3565b610e1b565b005b610426610e3c565b6040516104339190612b44565b60405180910390f35b610456600480360381019061045191906132d7565b610e60565b005b610460610eab565b60405161046d9190612a83565b60405180910390f35b610490600480360381019061048b919061332a565b610f3d565b60405161049d919061290d565b60405180910390f35b6104c060048036038101906104bb919061336a565b610fd1565b005b6104dc60048036038101906104d791906133c6565b611028565b005b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561054f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610546906134cf565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60006105b282611305565b806105c257506105c1826113e7565b5b806105d257506105d182611461565b5b806105e257506105e1826113e7565b5b9050919050565b6000801b6105f6816114db565b61060083836114ef565b505050565b600680546106129061351e565b80601f016020809104026020016040519081016040528092919081815260200182805461063e9061351e565b801561068b5780601f106106605761010080835404028352916020019161068b565b820191906000526020600020905b81548152906001019060200180831161066e57829003601f168201915b505050505081565b606060006009600084815260200190815260200160002080546106b59061351e565b80601f01602080910402602001604051908101604052809291908181526020018280546106e19061351e565b801561072e5780601f106107035761010080835404028352916020019161072e565b820191906000526020600020905b81548152906001019060200180831161071157829003601f168201915b50505050509050604051806020016040528060008152508051906020012081805190602001201461076257809150506107f1565b6008805461076f9061351e565b80601f016020809104026020016040519081016040528092919081815260200182805461079b9061351e565b80156107e85780601f106107bd576101008083540402835291602001916107e8565b820191906000526020600020905b8154815290600101906020018083116107cb57829003601f168201915b50505050509150505b919050565b600060036000838152602001908152602001600020600101549050919050565b6000806000600560008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614156109ac5760046040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b60006109b6611685565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff16866109e2919061357f565b6109ec9190613608565b90508160000151819350935050509250929050565b610a0961168f565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480610a4f5750610a4e85610a4961168f565b610f3d565b5b610a8e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a85906136ab565b60405180910390fd5b610a9b8585858585611697565b5050505050565b610aab826107f6565b610ab4816114db565b610abe83836119b9565b505050565b610acb61168f565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610b38576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b2f9061373d565b60405180910390fd5b610b428282611a9a565b5050565b60608151835114610b8c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b83906137cf565b60405180910390fd5b6000835167ffffffffffffffff811115610ba957610ba8612bdc565b5b604051908082528060200260200182016040528015610bd75781602001602082028036833780820191505090505b50905060005b8451811015610c5457610c24858281518110610bfc57610bfb6137ef565b5b6020026020010151858381518110610c1757610c166137ef565b5b60200260200101516104de565b828281518110610c3757610c366137ef565b5b60200260200101818152505080610c4d9061381e565b9050610bdd565b508091505092915050565b6000801b610c6c816114db565b8160089080519060200190610c829291906126b8565b505050565b60006003600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000801b610cff816114db565b81600a9080519060200190610d159291906126b8565b505050565b60078054610d279061351e565b80601f0160208091040260200160405190810160405280929190818152602001828054610d539061351e565b8015610da05780601f10610d7557610100808354040283529160200191610da0565b820191906000526020600020905b815481529060010190602001808311610d8357829003601f168201915b505050505081565b6000801b81565b610dc1610dba61168f565b8383611b7c565b5050565b7fc2181ece9849e7e3c0907e94ba6d6dadfefb51cf36ac9f67858e3098cfc64418610def816114db565b610df98583610fd1565b610e1483868660405180602001604052806000815250611ce9565b5050505050565b610e24826107f6565b610e2d816114db565b610e378383611a9a565b505050565b7fc2181ece9849e7e3c0907e94ba6d6dadfefb51cf36ac9f67858e3098cfc6441881565b7fc2181ece9849e7e3c0907e94ba6d6dadfefb51cf36ac9f67858e3098cfc64418610e8a816114db565b610ea582858560405180602001604052806000815250611ce9565b50505050565b6060600a8054610eba9061351e565b80601f0160208091040260200160405190810160405280929190818152602001828054610ee69061351e565b8015610f335780601f10610f0857610100808354040283529160200191610f33565b820191906000526020600020905b815481529060010190602001808311610f1657829003601f168201915b5050505050905090565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b7fc2181ece9849e7e3c0907e94ba6d6dadfefb51cf36ac9f67858e3098cfc64418610ffb816114db565b816009600085815260200190815260200160002090805190602001906110229291906126b8565b50505050565b61103061168f565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16148061107657506110758561107061168f565b610f3d565b5b6110b5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110ac906138d9565b60405180910390fd5b6110c28585858585611e9a565b5050505050565b6060600060028360026110dc919061357f565b6110e691906138f9565b67ffffffffffffffff8111156110ff576110fe612bdc565b5b6040519080825280601f01601f1916602001820160405280156111315781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110611169576111686137ef565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106111cd576111cc6137ef565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000600184600261120d919061357f565b61121791906138f9565b90505b60018111156112b7577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110611259576112586137ef565b5b1a60f81b8282815181106112705761126f6137ef565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c9450806112b09061394f565b905061121a565b50600084146112fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112f2906139c5565b60405180910390fd5b8091505092915050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806113d057507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806113e057506113df82612136565b5b9050919050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061145a575061145982611461565b5b9050919050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806114d457506114d382611305565b5b9050919050565b6114ec816114e761168f565b6121a0565b50565b6114f7611685565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115611555576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161154c90613a57565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156115c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115bc90613ac3565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600460008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b6000612710905090565b600033905090565b81518351146116db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116d290613b55565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16141561174b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161174290613be7565b60405180910390fd5b600061175561168f565b905061176581878787878761223d565b60005b8451811015611916576000858281518110611786576117856137ef565b5b6020026020010151905060008583815181106117a5576117a46137ef565b5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611846576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161183d90613c79565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546118fb91906138f9565b925050819055505050508061190f9061381e565b9050611768565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161198d929190613c99565b60405180910390a46119a3818787878787612245565b6119b181878787878761224d565b505050505050565b6119c38282610c87565b611a965760016003600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611a3b61168f565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b611aa48282610c87565b15611b785760006003600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611b1d61168f565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611beb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611be290613d42565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611cdc919061290d565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611d59576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d5090613dd4565b60405180910390fd5b6000611d6361168f565b90506000611d7085612434565b90506000611d7d85612434565b9050611d8e8360008985858961223d565b8460008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611ded91906138f9565b925050819055508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628989604051611e6b929190613df4565b60405180910390a4611e8283600089858589612245565b611e91836000898989896124ae565b50505050505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611f0a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f0190613be7565b60405180910390fd5b6000611f1461168f565b90506000611f2185612434565b90506000611f2e85612434565b9050611f3e83898985858961223d565b600080600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905085811015611fd5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fcc90613c79565b60405180910390fd5b85810360008089815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508560008089815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461208a91906138f9565b925050819055508773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628a8a604051612107929190613df4565b60405180910390a461211d848a8a86868a612245565b61212b848a8a8a8a8a6124ae565b505050505050505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6121aa8282610c87565b612239576121cf8173ffffffffffffffffffffffffffffffffffffffff1660146110c9565b6121dd8360001c60206110c9565b6040516020016121ee929190613ef1565b6040516020818303038152906040526040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122309190612a83565b60405180910390fd5b5050565b505050505050565b505050505050565b61226c8473ffffffffffffffffffffffffffffffffffffffff16612695565b1561242c578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b81526004016122b2959493929190613f80565b602060405180830381600087803b1580156122cc57600080fd5b505af19250505080156122fd57506040513d601f19601f820116820180604052508101906122fa9190613ffd565b60015b6123a357612309614037565b806308c379a01415612366575061231e614059565b806123295750612368565b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161235d9190612a83565b60405180910390fd5b505b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161239a90614161565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161461242a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612421906141f3565b60405180910390fd5b505b505050505050565b60606000600167ffffffffffffffff81111561245357612452612bdc565b5b6040519080825280602002602001820160405280156124815781602001602082028036833780820191505090505b5090508281600081518110612499576124986137ef565b5b60200260200101818152505080915050919050565b6124cd8473ffffffffffffffffffffffffffffffffffffffff16612695565b1561268d578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b8152600401612513959493929190614213565b602060405180830381600087803b15801561252d57600080fd5b505af192505050801561255e57506040513d601f19601f8201168201806040525081019061255b9190613ffd565b60015b6126045761256a614037565b806308c379a014156125c7575061257f614059565b8061258a57506125c9565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125be9190612a83565b60405180910390fd5b505b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125fb90614161565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161461268b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612682906141f3565b60405180910390fd5b505b505050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b8280546126c49061351e565b90600052602060002090601f0160209004810192826126e6576000855561272d565b82601f106126ff57805160ff191683800117855561272d565b8280016001018555821561272d579182015b8281111561272c578251825591602001919060010190612711565b5b50905061273a919061273e565b5090565b5b8082111561275757600081600090555060010161273f565b5090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061279a8261276f565b9050919050565b6127aa8161278f565b81146127b557600080fd5b50565b6000813590506127c7816127a1565b92915050565b6000819050919050565b6127e0816127cd565b81146127eb57600080fd5b50565b6000813590506127fd816127d7565b92915050565b6000806040838503121561281a57612819612765565b5b6000612828858286016127b8565b9250506020612839858286016127ee565b9150509250929050565b61284c816127cd565b82525050565b60006020820190506128676000830184612843565b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6128a28161286d565b81146128ad57600080fd5b50565b6000813590506128bf81612899565b92915050565b6000602082840312156128db576128da612765565b5b60006128e9848285016128b0565b91505092915050565b60008115159050919050565b612907816128f2565b82525050565b600060208201905061292260008301846128fe565b92915050565b60006129338261276f565b9050919050565b61294381612928565b811461294e57600080fd5b50565b6000813590506129608161293a565b92915050565b60006bffffffffffffffffffffffff82169050919050565b61298781612966565b811461299257600080fd5b50565b6000813590506129a48161297e565b92915050565b600080604083850312156129c1576129c0612765565b5b60006129cf85828601612951565b92505060206129e085828601612995565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612a24578082015181840152602081019050612a09565b83811115612a33576000848401525b50505050565b6000601f19601f8301169050919050565b6000612a55826129ea565b612a5f81856129f5565b9350612a6f818560208601612a06565b612a7881612a39565b840191505092915050565b60006020820190508181036000830152612a9d8184612a4a565b905092915050565b600060208284031215612abb57612aba612765565b5b6000612ac9848285016127ee565b91505092915050565b6000819050919050565b612ae581612ad2565b8114612af057600080fd5b50565b600081359050612b0281612adc565b92915050565b600060208284031215612b1e57612b1d612765565b5b6000612b2c84828501612af3565b91505092915050565b612b3e81612ad2565b82525050565b6000602082019050612b596000830184612b35565b92915050565b60008060408385031215612b7657612b75612765565b5b6000612b84858286016127ee565b9250506020612b95858286016127ee565b9150509250929050565b612ba88161278f565b82525050565b6000604082019050612bc36000830185612b9f565b612bd06020830184612843565b9392505050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612c1482612a39565b810181811067ffffffffffffffff82111715612c3357612c32612bdc565b5b80604052505050565b6000612c4661275b565b9050612c528282612c0b565b919050565b600067ffffffffffffffff821115612c7257612c71612bdc565b5b602082029050602081019050919050565b600080fd5b6000612c9b612c9684612c57565b612c3c565b90508083825260208201905060208402830185811115612cbe57612cbd612c83565b5b835b81811015612ce75780612cd388826127ee565b845260208401935050602081019050612cc0565b5050509392505050565b600082601f830112612d0657612d05612bd7565b5b8135612d16848260208601612c88565b91505092915050565b600080fd5b600067ffffffffffffffff821115612d3f57612d3e612bdc565b5b612d4882612a39565b9050602081019050919050565b82818337600083830152505050565b6000612d77612d7284612d24565b612c3c565b905082815260208101848484011115612d9357612d92612d1f565b5b612d9e848285612d55565b509392505050565b600082601f830112612dbb57612dba612bd7565b5b8135612dcb848260208601612d64565b91505092915050565b600080600080600060a08688031215612df057612def612765565b5b6000612dfe888289016127b8565b9550506020612e0f888289016127b8565b945050604086013567ffffffffffffffff811115612e3057612e2f61276a565b5b612e3c88828901612cf1565b935050606086013567ffffffffffffffff811115612e5d57612e5c61276a565b5b612e6988828901612cf1565b925050608086013567ffffffffffffffff811115612e8a57612e8961276a565b5b612e9688828901612da6565b9150509295509295909350565b60008060408385031215612eba57612eb9612765565b5b6000612ec885828601612af3565b9250506020612ed9858286016127b8565b9150509250929050565b600067ffffffffffffffff821115612efe57612efd612bdc565b5b602082029050602081019050919050565b6000612f22612f1d84612ee3565b612c3c565b90508083825260208201905060208402830185811115612f4557612f44612c83565b5b835b81811015612f6e5780612f5a88826127b8565b845260208401935050602081019050612f47565b5050509392505050565b600082601f830112612f8d57612f8c612bd7565b5b8135612f9d848260208601612f0f565b91505092915050565b60008060408385031215612fbd57612fbc612765565b5b600083013567ffffffffffffffff811115612fdb57612fda61276a565b5b612fe785828601612f78565b925050602083013567ffffffffffffffff8111156130085761300761276a565b5b61301485828601612cf1565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613053816127cd565b82525050565b6000613065838361304a565b60208301905092915050565b6000602082019050919050565b60006130898261301e565b6130938185613029565b935061309e8361303a565b8060005b838110156130cf5781516130b68882613059565b97506130c183613071565b9250506001810190506130a2565b5085935050505092915050565b600060208201905081810360008301526130f6818461307e565b905092915050565b600067ffffffffffffffff82111561311957613118612bdc565b5b61312282612a39565b9050602081019050919050565b600061314261313d846130fe565b612c3c565b90508281526020810184848401111561315e5761315d612d1f565b5b613169848285612d55565b509392505050565b600082601f83011261318657613185612bd7565b5b813561319684826020860161312f565b91505092915050565b6000602082840312156131b5576131b4612765565b5b600082013567ffffffffffffffff8111156131d3576131d261276a565b5b6131df84828501613171565b91505092915050565b6131f1816128f2565b81146131fc57600080fd5b50565b60008135905061320e816131e8565b92915050565b6000806040838503121561322b5761322a612765565b5b6000613239858286016127b8565b925050602061324a858286016131ff565b9150509250929050565b6000806000806080858703121561326e5761326d612765565b5b600061327c878288016127ee565b945050602061328d878288016127ee565b935050604061329e878288016127b8565b925050606085013567ffffffffffffffff8111156132bf576132be61276a565b5b6132cb87828801613171565b91505092959194509250565b6000806000606084860312156132f0576132ef612765565b5b60006132fe868287016127ee565b935050602061330f868287016127ee565b9250506040613320868287016127b8565b9150509250925092565b6000806040838503121561334157613340612765565b5b600061334f858286016127b8565b9250506020613360858286016127b8565b9150509250929050565b6000806040838503121561338157613380612765565b5b600061338f858286016127ee565b925050602083013567ffffffffffffffff8111156133b0576133af61276a565b5b6133bc85828601613171565b9150509250929050565b600080600080600060a086880312156133e2576133e1612765565b5b60006133f0888289016127b8565b9550506020613401888289016127b8565b9450506040613412888289016127ee565b9350506060613423888289016127ee565b925050608086013567ffffffffffffffff8111156134445761344361276a565b5b61345088828901612da6565b9150509295509295909350565b7f455243313135353a2062616c616e636520717565727920666f7220746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b60006134b9602b836129f5565b91506134c48261345d565b604082019050919050565b600060208201905081810360008301526134e8816134ac565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061353657607f821691505b6020821081141561354a576135496134ef565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061358a826127cd565b9150613595836127cd565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156135ce576135cd613550565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613613826127cd565b915061361e836127cd565b92508261362e5761362d6135d9565b5b828204905092915050565b7f455243313135353a207472616e736665722063616c6c6572206973206e6f742060008201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000602082015250565b60006136956032836129f5565b91506136a082613639565b604082019050919050565b600060208201905081810360008301526136c481613688565b9050919050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000613727602f836129f5565b9150613732826136cb565b604082019050919050565b600060208201905081810360008301526137568161371a565b9050919050565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b60006137b96029836129f5565b91506137c48261375d565b604082019050919050565b600060208201905081810360008301526137e8816137ac565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000613829826127cd565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561385c5761385b613550565b5b600182019050919050565b7f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260008201527f20617070726f7665640000000000000000000000000000000000000000000000602082015250565b60006138c36029836129f5565b91506138ce82613867565b604082019050919050565b600060208201905081810360008301526138f2816138b6565b9050919050565b6000613904826127cd565b915061390f836127cd565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561394457613943613550565b5b828201905092915050565b600061395a826127cd565b9150600082141561396e5761396d613550565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b60006139af6020836129f5565b91506139ba82613979565b602082019050919050565b600060208201905081810360008301526139de816139a2565b9050919050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b6000613a41602a836129f5565b9150613a4c826139e5565b604082019050919050565b60006020820190508181036000830152613a7081613a34565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b6000613aad6019836129f5565b9150613ab882613a77565b602082019050919050565b60006020820190508181036000830152613adc81613aa0565b9050919050565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b6000613b3f6028836129f5565b9150613b4a82613ae3565b604082019050919050565b60006020820190508181036000830152613b6e81613b32565b9050919050565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000613bd16025836129f5565b9150613bdc82613b75565b604082019050919050565b60006020820190508181036000830152613c0081613bc4565b9050919050565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b6000613c63602a836129f5565b9150613c6e82613c07565b604082019050919050565b60006020820190508181036000830152613c9281613c56565b9050919050565b60006040820190508181036000830152613cb3818561307e565b90508181036020830152613cc7818461307e565b90509392505050565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b6000613d2c6029836129f5565b9150613d3782613cd0565b604082019050919050565b60006020820190508181036000830152613d5b81613d1f565b9050919050565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b6000613dbe6021836129f5565b9150613dc982613d62565b604082019050919050565b60006020820190508181036000830152613ded81613db1565b9050919050565b6000604082019050613e096000830185612843565b613e166020830184612843565b9392505050565b600081905092915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b6000613e5e601783613e1d565b9150613e6982613e28565b601782019050919050565b6000613e7f826129ea565b613e898185613e1d565b9350613e99818560208601612a06565b80840191505092915050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b6000613edb601183613e1d565b9150613ee682613ea5565b601182019050919050565b6000613efc82613e51565b9150613f088285613e74565b9150613f1382613ece565b9150613f1f8284613e74565b91508190509392505050565b600081519050919050565b600082825260208201905092915050565b6000613f5282613f2b565b613f5c8185613f36565b9350613f6c818560208601612a06565b613f7581612a39565b840191505092915050565b600060a082019050613f956000830188612b9f565b613fa26020830187612b9f565b8181036040830152613fb4818661307e565b90508181036060830152613fc8818561307e565b90508181036080830152613fdc8184613f47565b90509695505050505050565b600081519050613ff781612899565b92915050565b60006020828403121561401357614012612765565b5b600061402184828501613fe8565b91505092915050565b60008160e01c9050919050565b600060033d11156140565760046000803e61405360005161402a565b90505b90565b600060443d1015614069576140ec565b61407161275b565b60043d036004823e80513d602482011167ffffffffffffffff821117156140995750506140ec565b808201805167ffffffffffffffff8111156140b757505050506140ec565b80602083010160043d0385018111156140d45750505050506140ec565b6140e382602001850186612c0b565b82955050505050505b90565b7f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b600061414b6034836129f5565b9150614156826140ef565b604082019050919050565b6000602082019050818103600083015261417a8161413e565b9050919050565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b60006141dd6028836129f5565b91506141e882614181565b604082019050919050565b6000602082019050818103600083015261420c816141d0565b9050919050565b600060a0820190506142286000830188612b9f565b6142356020830187612b9f565b6142426040830186612843565b61424f6060830185612843565b81810360808301526142618184613f47565b9050969550505050505056fea2646970667358221220d2627e5aa2761396e8a0ed191e352672da57ca8119cfe85f94780fe8ccc50fb164736f6c63430008090033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000003b1bd4c99c059ed58155240fd01d6fc86a430d4d000000000000000000000000000000000000000000000000000000000000001f68747470733a2f2f646164732e6172742f6170692f666f756e742f7b69647d00000000000000000000000000000000000000000000000000000000000000002468747470733a2f2f646164732e6172742f6170692f666f756e742f466f756e744361726400000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101725760003560e01c806391d14854116100de578063d547741f11610097578063e8a3d48511610071578063e8a3d48514610458578063e985e9c514610476578063eed3a1ae146104a6578063f242432a146104c257610172565b8063d547741f14610402578063e1c1c1911461041e578063e7d3fe6b1461043c57610172565b806391d1485414610342578063938e3d7b1461037257806395d89b411461038e578063a217fddf146103ac578063a22cb465146103ca578063a382a4d9146103e657610172565b80632a55205a116101305780632a55205a146102715780632eb2c2d6146102a25780632f2ff15d146102be57806336568abe146102da5780634e1273f4146102f657806355f804b31461032657610172565b8062fdd58e1461017757806301ffc9a7146101a757806302fa7c47146101d757806306fdde03146101f35780630e89341c14610211578063248a9ca314610241575b600080fd5b610191600480360381019061018c9190612803565b6104de565b60405161019e9190612852565b60405180910390f35b6101c160048036038101906101bc91906128c5565b6105a7565b6040516101ce919061290d565b60405180910390f35b6101f160048036038101906101ec91906129aa565b6105e9565b005b6101fb610605565b6040516102089190612a83565b60405180910390f35b61022b60048036038101906102269190612aa5565b610693565b6040516102389190612a83565b60405180910390f35b61025b60048036038101906102569190612b08565b6107f6565b6040516102689190612b44565b60405180910390f35b61028b60048036038101906102869190612b5f565b610816565b604051610299929190612bae565b60405180910390f35b6102bc60048036038101906102b79190612dd4565b610a01565b005b6102d860048036038101906102d39190612ea3565b610aa2565b005b6102f460048036038101906102ef9190612ea3565b610ac3565b005b610310600480360381019061030b9190612fa6565b610b46565b60405161031d91906130dc565b60405180910390f35b610340600480360381019061033b919061319f565b610c5f565b005b61035c60048036038101906103579190612ea3565b610c87565b604051610369919061290d565b60405180910390f35b61038c6004803603810190610387919061319f565b610cf2565b005b610396610d1a565b6040516103a39190612a83565b60405180910390f35b6103b4610da8565b6040516103c19190612b44565b60405180910390f35b6103e460048036038101906103df9190613214565b610daf565b005b61040060048036038101906103fb9190613254565b610dc5565b005b61041c60048036038101906104179190612ea3565b610e1b565b005b610426610e3c565b6040516104339190612b44565b60405180910390f35b610456600480360381019061045191906132d7565b610e60565b005b610460610eab565b60405161046d9190612a83565b60405180910390f35b610490600480360381019061048b919061332a565b610f3d565b60405161049d919061290d565b60405180910390f35b6104c060048036038101906104bb919061336a565b610fd1565b005b6104dc60048036038101906104d791906133c6565b611028565b005b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561054f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610546906134cf565b60405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60006105b282611305565b806105c257506105c1826113e7565b5b806105d257506105d182611461565b5b806105e257506105e1826113e7565b5b9050919050565b6000801b6105f6816114db565b61060083836114ef565b505050565b600680546106129061351e565b80601f016020809104026020016040519081016040528092919081815260200182805461063e9061351e565b801561068b5780601f106106605761010080835404028352916020019161068b565b820191906000526020600020905b81548152906001019060200180831161066e57829003601f168201915b505050505081565b606060006009600084815260200190815260200160002080546106b59061351e565b80601f01602080910402602001604051908101604052809291908181526020018280546106e19061351e565b801561072e5780601f106107035761010080835404028352916020019161072e565b820191906000526020600020905b81548152906001019060200180831161071157829003601f168201915b50505050509050604051806020016040528060008152508051906020012081805190602001201461076257809150506107f1565b6008805461076f9061351e565b80601f016020809104026020016040519081016040528092919081815260200182805461079b9061351e565b80156107e85780601f106107bd576101008083540402835291602001916107e8565b820191906000526020600020905b8154815290600101906020018083116107cb57829003601f168201915b50505050509150505b919050565b600060036000838152602001908152602001600020600101549050919050565b6000806000600560008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614156109ac5760046040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b60006109b6611685565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff16866109e2919061357f565b6109ec9190613608565b90508160000151819350935050509250929050565b610a0961168f565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480610a4f5750610a4e85610a4961168f565b610f3d565b5b610a8e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a85906136ab565b60405180910390fd5b610a9b8585858585611697565b5050505050565b610aab826107f6565b610ab4816114db565b610abe83836119b9565b505050565b610acb61168f565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610b38576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b2f9061373d565b60405180910390fd5b610b428282611a9a565b5050565b60608151835114610b8c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b83906137cf565b60405180910390fd5b6000835167ffffffffffffffff811115610ba957610ba8612bdc565b5b604051908082528060200260200182016040528015610bd75781602001602082028036833780820191505090505b50905060005b8451811015610c5457610c24858281518110610bfc57610bfb6137ef565b5b6020026020010151858381518110610c1757610c166137ef565b5b60200260200101516104de565b828281518110610c3757610c366137ef565b5b60200260200101818152505080610c4d9061381e565b9050610bdd565b508091505092915050565b6000801b610c6c816114db565b8160089080519060200190610c829291906126b8565b505050565b60006003600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000801b610cff816114db565b81600a9080519060200190610d159291906126b8565b505050565b60078054610d279061351e565b80601f0160208091040260200160405190810160405280929190818152602001828054610d539061351e565b8015610da05780601f10610d7557610100808354040283529160200191610da0565b820191906000526020600020905b815481529060010190602001808311610d8357829003601f168201915b505050505081565b6000801b81565b610dc1610dba61168f565b8383611b7c565b5050565b7fc2181ece9849e7e3c0907e94ba6d6dadfefb51cf36ac9f67858e3098cfc64418610def816114db565b610df98583610fd1565b610e1483868660405180602001604052806000815250611ce9565b5050505050565b610e24826107f6565b610e2d816114db565b610e378383611a9a565b505050565b7fc2181ece9849e7e3c0907e94ba6d6dadfefb51cf36ac9f67858e3098cfc6441881565b7fc2181ece9849e7e3c0907e94ba6d6dadfefb51cf36ac9f67858e3098cfc64418610e8a816114db565b610ea582858560405180602001604052806000815250611ce9565b50505050565b6060600a8054610eba9061351e565b80601f0160208091040260200160405190810160405280929190818152602001828054610ee69061351e565b8015610f335780601f10610f0857610100808354040283529160200191610f33565b820191906000526020600020905b815481529060010190602001808311610f1657829003601f168201915b5050505050905090565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b7fc2181ece9849e7e3c0907e94ba6d6dadfefb51cf36ac9f67858e3098cfc64418610ffb816114db565b816009600085815260200190815260200160002090805190602001906110229291906126b8565b50505050565b61103061168f565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16148061107657506110758561107061168f565b610f3d565b5b6110b5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110ac906138d9565b60405180910390fd5b6110c28585858585611e9a565b5050505050565b6060600060028360026110dc919061357f565b6110e691906138f9565b67ffffffffffffffff8111156110ff576110fe612bdc565b5b6040519080825280601f01601f1916602001820160405280156111315781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110611169576111686137ef565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106111cd576111cc6137ef565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000600184600261120d919061357f565b61121791906138f9565b90505b60018111156112b7577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110611259576112586137ef565b5b1a60f81b8282815181106112705761126f6137ef565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c9450806112b09061394f565b905061121a565b50600084146112fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112f2906139c5565b60405180910390fd5b8091505092915050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806113d057507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806113e057506113df82612136565b5b9050919050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061145a575061145982611461565b5b9050919050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806114d457506114d382611305565b5b9050919050565b6114ec816114e761168f565b6121a0565b50565b6114f7611685565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115611555576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161154c90613a57565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156115c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115bc90613ac3565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600460008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b6000612710905090565b600033905090565b81518351146116db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116d290613b55565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16141561174b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161174290613be7565b60405180910390fd5b600061175561168f565b905061176581878787878761223d565b60005b8451811015611916576000858281518110611786576117856137ef565b5b6020026020010151905060008583815181106117a5576117a46137ef565b5b60200260200101519050600080600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611846576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161183d90613c79565b60405180910390fd5b81810360008085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508160008085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546118fb91906138f9565b925050819055505050508061190f9061381e565b9050611768565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161198d929190613c99565b60405180910390a46119a3818787878787612245565b6119b181878787878761224d565b505050505050565b6119c38282610c87565b611a965760016003600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611a3b61168f565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b611aa48282610c87565b15611b785760006003600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611b1d61168f565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611beb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611be290613d42565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611cdc919061290d565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611d59576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d5090613dd4565b60405180910390fd5b6000611d6361168f565b90506000611d7085612434565b90506000611d7d85612434565b9050611d8e8360008985858961223d565b8460008088815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611ded91906138f9565b925050819055508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628989604051611e6b929190613df4565b60405180910390a4611e8283600089858589612245565b611e91836000898989896124ae565b50505050505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415611f0a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f0190613be7565b60405180910390fd5b6000611f1461168f565b90506000611f2185612434565b90506000611f2e85612434565b9050611f3e83898985858961223d565b600080600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905085811015611fd5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fcc90613c79565b60405180910390fd5b85810360008089815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508560008089815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461208a91906138f9565b925050819055508773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628a8a604051612107929190613df4565b60405180910390a461211d848a8a86868a612245565b61212b848a8a8a8a8a6124ae565b505050505050505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6121aa8282610c87565b612239576121cf8173ffffffffffffffffffffffffffffffffffffffff1660146110c9565b6121dd8360001c60206110c9565b6040516020016121ee929190613ef1565b6040516020818303038152906040526040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122309190612a83565b60405180910390fd5b5050565b505050505050565b505050505050565b61226c8473ffffffffffffffffffffffffffffffffffffffff16612695565b1561242c578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b81526004016122b2959493929190613f80565b602060405180830381600087803b1580156122cc57600080fd5b505af19250505080156122fd57506040513d601f19601f820116820180604052508101906122fa9190613ffd565b60015b6123a357612309614037565b806308c379a01415612366575061231e614059565b806123295750612368565b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161235d9190612a83565b60405180910390fd5b505b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161239a90614161565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161461242a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612421906141f3565b60405180910390fd5b505b505050505050565b60606000600167ffffffffffffffff81111561245357612452612bdc565b5b6040519080825280602002602001820160405280156124815781602001602082028036833780820191505090505b5090508281600081518110612499576124986137ef565b5b60200260200101818152505080915050919050565b6124cd8473ffffffffffffffffffffffffffffffffffffffff16612695565b1561268d578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b8152600401612513959493929190614213565b602060405180830381600087803b15801561252d57600080fd5b505af192505050801561255e57506040513d601f19601f8201168201806040525081019061255b9190613ffd565b60015b6126045761256a614037565b806308c379a014156125c7575061257f614059565b8061258a57506125c9565b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125be9190612a83565b60405180910390fd5b505b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125fb90614161565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161461268b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612682906141f3565b60405180910390fd5b505b505050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b8280546126c49061351e565b90600052602060002090601f0160209004810192826126e6576000855561272d565b82601f106126ff57805160ff191683800117855561272d565b8280016001018555821561272d579182015b8281111561272c578251825591602001919060010190612711565b5b50905061273a919061273e565b5090565b5b8082111561275757600081600090555060010161273f565b5090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061279a8261276f565b9050919050565b6127aa8161278f565b81146127b557600080fd5b50565b6000813590506127c7816127a1565b92915050565b6000819050919050565b6127e0816127cd565b81146127eb57600080fd5b50565b6000813590506127fd816127d7565b92915050565b6000806040838503121561281a57612819612765565b5b6000612828858286016127b8565b9250506020612839858286016127ee565b9150509250929050565b61284c816127cd565b82525050565b60006020820190506128676000830184612843565b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6128a28161286d565b81146128ad57600080fd5b50565b6000813590506128bf81612899565b92915050565b6000602082840312156128db576128da612765565b5b60006128e9848285016128b0565b91505092915050565b60008115159050919050565b612907816128f2565b82525050565b600060208201905061292260008301846128fe565b92915050565b60006129338261276f565b9050919050565b61294381612928565b811461294e57600080fd5b50565b6000813590506129608161293a565b92915050565b60006bffffffffffffffffffffffff82169050919050565b61298781612966565b811461299257600080fd5b50565b6000813590506129a48161297e565b92915050565b600080604083850312156129c1576129c0612765565b5b60006129cf85828601612951565b92505060206129e085828601612995565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612a24578082015181840152602081019050612a09565b83811115612a33576000848401525b50505050565b6000601f19601f8301169050919050565b6000612a55826129ea565b612a5f81856129f5565b9350612a6f818560208601612a06565b612a7881612a39565b840191505092915050565b60006020820190508181036000830152612a9d8184612a4a565b905092915050565b600060208284031215612abb57612aba612765565b5b6000612ac9848285016127ee565b91505092915050565b6000819050919050565b612ae581612ad2565b8114612af057600080fd5b50565b600081359050612b0281612adc565b92915050565b600060208284031215612b1e57612b1d612765565b5b6000612b2c84828501612af3565b91505092915050565b612b3e81612ad2565b82525050565b6000602082019050612b596000830184612b35565b92915050565b60008060408385031215612b7657612b75612765565b5b6000612b84858286016127ee565b9250506020612b95858286016127ee565b9150509250929050565b612ba88161278f565b82525050565b6000604082019050612bc36000830185612b9f565b612bd06020830184612843565b9392505050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612c1482612a39565b810181811067ffffffffffffffff82111715612c3357612c32612bdc565b5b80604052505050565b6000612c4661275b565b9050612c528282612c0b565b919050565b600067ffffffffffffffff821115612c7257612c71612bdc565b5b602082029050602081019050919050565b600080fd5b6000612c9b612c9684612c57565b612c3c565b90508083825260208201905060208402830185811115612cbe57612cbd612c83565b5b835b81811015612ce75780612cd388826127ee565b845260208401935050602081019050612cc0565b5050509392505050565b600082601f830112612d0657612d05612bd7565b5b8135612d16848260208601612c88565b91505092915050565b600080fd5b600067ffffffffffffffff821115612d3f57612d3e612bdc565b5b612d4882612a39565b9050602081019050919050565b82818337600083830152505050565b6000612d77612d7284612d24565b612c3c565b905082815260208101848484011115612d9357612d92612d1f565b5b612d9e848285612d55565b509392505050565b600082601f830112612dbb57612dba612bd7565b5b8135612dcb848260208601612d64565b91505092915050565b600080600080600060a08688031215612df057612def612765565b5b6000612dfe888289016127b8565b9550506020612e0f888289016127b8565b945050604086013567ffffffffffffffff811115612e3057612e2f61276a565b5b612e3c88828901612cf1565b935050606086013567ffffffffffffffff811115612e5d57612e5c61276a565b5b612e6988828901612cf1565b925050608086013567ffffffffffffffff811115612e8a57612e8961276a565b5b612e9688828901612da6565b9150509295509295909350565b60008060408385031215612eba57612eb9612765565b5b6000612ec885828601612af3565b9250506020612ed9858286016127b8565b9150509250929050565b600067ffffffffffffffff821115612efe57612efd612bdc565b5b602082029050602081019050919050565b6000612f22612f1d84612ee3565b612c3c565b90508083825260208201905060208402830185811115612f4557612f44612c83565b5b835b81811015612f6e5780612f5a88826127b8565b845260208401935050602081019050612f47565b5050509392505050565b600082601f830112612f8d57612f8c612bd7565b5b8135612f9d848260208601612f0f565b91505092915050565b60008060408385031215612fbd57612fbc612765565b5b600083013567ffffffffffffffff811115612fdb57612fda61276a565b5b612fe785828601612f78565b925050602083013567ffffffffffffffff8111156130085761300761276a565b5b61301485828601612cf1565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613053816127cd565b82525050565b6000613065838361304a565b60208301905092915050565b6000602082019050919050565b60006130898261301e565b6130938185613029565b935061309e8361303a565b8060005b838110156130cf5781516130b68882613059565b97506130c183613071565b9250506001810190506130a2565b5085935050505092915050565b600060208201905081810360008301526130f6818461307e565b905092915050565b600067ffffffffffffffff82111561311957613118612bdc565b5b61312282612a39565b9050602081019050919050565b600061314261313d846130fe565b612c3c565b90508281526020810184848401111561315e5761315d612d1f565b5b613169848285612d55565b509392505050565b600082601f83011261318657613185612bd7565b5b813561319684826020860161312f565b91505092915050565b6000602082840312156131b5576131b4612765565b5b600082013567ffffffffffffffff8111156131d3576131d261276a565b5b6131df84828501613171565b91505092915050565b6131f1816128f2565b81146131fc57600080fd5b50565b60008135905061320e816131e8565b92915050565b6000806040838503121561322b5761322a612765565b5b6000613239858286016127b8565b925050602061324a858286016131ff565b9150509250929050565b6000806000806080858703121561326e5761326d612765565b5b600061327c878288016127ee565b945050602061328d878288016127ee565b935050604061329e878288016127b8565b925050606085013567ffffffffffffffff8111156132bf576132be61276a565b5b6132cb87828801613171565b91505092959194509250565b6000806000606084860312156132f0576132ef612765565b5b60006132fe868287016127ee565b935050602061330f868287016127ee565b9250506040613320868287016127b8565b9150509250925092565b6000806040838503121561334157613340612765565b5b600061334f858286016127b8565b9250506020613360858286016127b8565b9150509250929050565b6000806040838503121561338157613380612765565b5b600061338f858286016127ee565b925050602083013567ffffffffffffffff8111156133b0576133af61276a565b5b6133bc85828601613171565b9150509250929050565b600080600080600060a086880312156133e2576133e1612765565b5b60006133f0888289016127b8565b9550506020613401888289016127b8565b9450506040613412888289016127ee565b9350506060613423888289016127ee565b925050608086013567ffffffffffffffff8111156134445761344361276a565b5b61345088828901612da6565b9150509295509295909350565b7f455243313135353a2062616c616e636520717565727920666f7220746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b60006134b9602b836129f5565b91506134c48261345d565b604082019050919050565b600060208201905081810360008301526134e8816134ac565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061353657607f821691505b6020821081141561354a576135496134ef565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061358a826127cd565b9150613595836127cd565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156135ce576135cd613550565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613613826127cd565b915061361e836127cd565b92508261362e5761362d6135d9565b5b828204905092915050565b7f455243313135353a207472616e736665722063616c6c6572206973206e6f742060008201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000602082015250565b60006136956032836129f5565b91506136a082613639565b604082019050919050565b600060208201905081810360008301526136c481613688565b9050919050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000613727602f836129f5565b9150613732826136cb565b604082019050919050565b600060208201905081810360008301526137568161371a565b9050919050565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b60006137b96029836129f5565b91506137c48261375d565b604082019050919050565b600060208201905081810360008301526137e8816137ac565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000613829826127cd565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561385c5761385b613550565b5b600182019050919050565b7f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260008201527f20617070726f7665640000000000000000000000000000000000000000000000602082015250565b60006138c36029836129f5565b91506138ce82613867565b604082019050919050565b600060208201905081810360008301526138f2816138b6565b9050919050565b6000613904826127cd565b915061390f836127cd565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561394457613943613550565b5b828201905092915050565b600061395a826127cd565b9150600082141561396e5761396d613550565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b60006139af6020836129f5565b91506139ba82613979565b602082019050919050565b600060208201905081810360008301526139de816139a2565b9050919050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b6000613a41602a836129f5565b9150613a4c826139e5565b604082019050919050565b60006020820190508181036000830152613a7081613a34565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b6000613aad6019836129f5565b9150613ab882613a77565b602082019050919050565b60006020820190508181036000830152613adc81613aa0565b9050919050565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b6000613b3f6028836129f5565b9150613b4a82613ae3565b604082019050919050565b60006020820190508181036000830152613b6e81613b32565b9050919050565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b6000613bd16025836129f5565b9150613bdc82613b75565b604082019050919050565b60006020820190508181036000830152613c0081613bc4565b9050919050565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b6000613c63602a836129f5565b9150613c6e82613c07565b604082019050919050565b60006020820190508181036000830152613c9281613c56565b9050919050565b60006040820190508181036000830152613cb3818561307e565b90508181036020830152613cc7818461307e565b90509392505050565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b6000613d2c6029836129f5565b9150613d3782613cd0565b604082019050919050565b60006020820190508181036000830152613d5b81613d1f565b9050919050565b7f455243313135353a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b6000613dbe6021836129f5565b9150613dc982613d62565b604082019050919050565b60006020820190508181036000830152613ded81613db1565b9050919050565b6000604082019050613e096000830185612843565b613e166020830184612843565b9392505050565b600081905092915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b6000613e5e601783613e1d565b9150613e6982613e28565b601782019050919050565b6000613e7f826129ea565b613e898185613e1d565b9350613e99818560208601612a06565b80840191505092915050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b6000613edb601183613e1d565b9150613ee682613ea5565b601182019050919050565b6000613efc82613e51565b9150613f088285613e74565b9150613f1382613ece565b9150613f1f8284613e74565b91508190509392505050565b600081519050919050565b600082825260208201905092915050565b6000613f5282613f2b565b613f5c8185613f36565b9350613f6c818560208601612a06565b613f7581612a39565b840191505092915050565b600060a082019050613f956000830188612b9f565b613fa26020830187612b9f565b8181036040830152613fb4818661307e565b90508181036060830152613fc8818561307e565b90508181036080830152613fdc8184613f47565b90509695505050505050565b600081519050613ff781612899565b92915050565b60006020828403121561401357614012612765565b5b600061402184828501613fe8565b91505092915050565b60008160e01c9050919050565b600060033d11156140565760046000803e61405360005161402a565b90505b90565b600060443d1015614069576140ec565b61407161275b565b60043d036004823e80513d602482011167ffffffffffffffff821117156140995750506140ec565b808201805167ffffffffffffffff8111156140b757505050506140ec565b80602083010160043d0385018111156140d45750505050506140ec565b6140e382602001850186612c0b565b82955050505050505b90565b7f455243313135353a207472616e7366657220746f206e6f6e204552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b600061414b6034836129f5565b9150614156826140ef565b604082019050919050565b6000602082019050818103600083015261417a8161413e565b9050919050565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b60006141dd6028836129f5565b91506141e882614181565b604082019050919050565b6000602082019050818103600083015261420c816141d0565b9050919050565b600060a0820190506142286000830188612b9f565b6142356020830187612b9f565b6142426040830186612843565b61424f6060830185612843565b81810360808301526142618184613f47565b9050969550505050505056fea2646970667358221220d2627e5aa2761396e8a0ed191e352672da57ca8119cfe85f94780fe8ccc50fb164736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000003b1bd4c99c059ed58155240fd01d6fc86a430d4d000000000000000000000000000000000000000000000000000000000000001f68747470733a2f2f646164732e6172742f6170692f666f756e742f7b69647d00000000000000000000000000000000000000000000000000000000000000002468747470733a2f2f646164732e6172742f6170692f666f756e742f466f756e744361726400000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : baseUri (string): https://dads.art/api/fount/{id}
Arg [1] : contractUri (string): https://dads.art/api/fount/FountCard
Arg [2] : royaltiesReceiver (address): 0x3B1Bd4C99c059ED58155240FD01D6fC86A430D4D
-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 0000000000000000000000003b1bd4c99c059ed58155240fd01d6fc86a430d4d
Arg [3] : 000000000000000000000000000000000000000000000000000000000000001f
Arg [4] : 68747470733a2f2f646164732e6172742f6170692f666f756e742f7b69647d00
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000024
Arg [6] : 68747470733a2f2f646164732e6172742f6170692f666f756e742f466f756e74
Arg [7] : 4361726400000000000000000000000000000000000000000000000000000000
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.