ERC-1155
Overview
Max Total Supply
0 RSRC
Holders
3,380
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:
Resources
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /// @author: manifold.xyz //////////////////////////////////////////////////////////////////////////////////////// // // // ████████████████████████████████████████████████████████████████████████████████ // // ████████████████████████████████████████████████████████████████████████████████ // // ████████████████████████████████████████████████████████████████████████████████ // // ████████████████████████████████████████████████████████████████████████████████ // // ████████████████████████████████████████████████████████████████████████████████ // // ████████████████████████████████████████████████████████████████████████████████ // // ████████████████████████████████████████████████████████████████████████████████ // // ████████████████████████████████████████████████████████████████████████████████ // // ██████████████▌ ╟██ ████████████████ j██████████████ // // ██████████████▌ ╟███ ███████████████ j██████████████ // // ██████████████▌ ╟███▌ ██████████████ j██████████████ // // ██████████████▌ ╟████▌ █████████████ j██████████████ // // ██████████████▌ ╟█████▌ ╙████████████ j██████████████ // // ██████████████▌ ╟██████▄ ╙███████████ j██████████████ // // ██████████████▌ ╟███████ ╙██████████ j██████████████ // // ██████████████▌ ╟████████ ╟█████████ j██████████████ // // ██████████████▌ ╟█████████ █████████ j██████████████ // // ██████████████▌ ╟██████████ ████████ j██████████████ // // ██████████████▌ ╟██████████▌ ███████ j██████████████ // // ██████████████▌ ╟███████████▌ ██████ j██████████████ // // ██████████████▌ ╟████████████▄ ╙█████ ,████████████████ // // ██████████████▌ ╟█████████████ ╙████ ▄██████████████████ // // ██████████████▌ ╟██████████████ ╙███ ▄████████████████████ // // ██████████████▌ ╟███████████████ ╟██ ,███████████████████████ // // ██████████████▌ ,████ ███████████████████████████ // // ██████████████▌ ▄██████▌ ██████████████████████████ // // ██████████████▌ ▄█████████▌ █████████████████████████ // // ██████████████▌ ,█████████████▄ ████████████████████████ // // ████████████████████████████████████████████████████████████████████████████████ // // ████████████████████████████████████████████████████████████████████████████████ // // ████████████████████████████████████████████████████████████████████████████████ // // ████████████████████████████████████████████████████████████████████████████████ // // ████████████████████████████████████████████████████████████████████████████████ // // ████████████████████████████████████████████████████████████████████████████████ // // ████████████████████████████████████████████████████████████████████████████████ // // ████████████████████████████████████████████████████████████████████████████████ // // // //////////////////////////////////////////////////////////////////////////////////////// import "@manifoldxyz/libraries-solidity/contracts/access/AdminControl.sol"; import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; import "./IResources.sol"; contract Resources is ERC1155, AdminControl, IResources { string constant public name = "LVCIDIA// RESOURCES"; string constant public symbol = "RSRC"; // Mapping for individual token URIs mapping (uint256 => string) internal _tokenURIs; // Mapping of token total supplies mapping(uint256 => uint256) private _totalSupply; // Mapping of token burned supplies, public to allow querying entire map mapping(uint256 => uint256) public _burnedSupply; // Royalty uint256 private _royaltyBps; address payable private _royaltyRecipient; bytes4 private constant _INTERFACE_ID_ROYALTIES_CREATORCORE = 0xbb3bafd6; bytes4 private constant _INTERFACE_ID_ROYALTIES_EIP2981 = 0x2a55205a; bytes4 private constant _INTERFACE_ID_ROYALTIES_RARIBLE = 0xb7799584; constructor () ERC1155("") {} /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC1155, AdminControl, IERC165) returns (bool) { return interfaceId == type(IResources).interfaceId || interfaceId == type(IERC165).interfaceId || AdminControl.supportsInterface(interfaceId) || ERC1155.supportsInterface(interfaceId) || interfaceId == _INTERFACE_ID_ROYALTIES_CREATORCORE || interfaceId == _INTERFACE_ID_ROYALTIES_EIP2981 || interfaceId == _INTERFACE_ID_ROYALTIES_RARIBLE; } /** * @dev See {IResrouces-mint} */ function mint(address to, uint256[] memory tokenIds, uint256[] memory amounts) external override onlyOwner { if (tokenIds.length == 1 && amounts.length == 1) { // Single mint _mint(to, tokenIds[0], amounts[0], new bytes(0)); } else if (tokenIds.length == amounts.length) { // Batch mint to same receiver _mintBatch(to, tokenIds, amounts, new bytes(0)); } else { revert("Invalid input"); } for (uint i = 0; i < tokenIds.length;) { _totalSupply[tokenIds[i]] += amounts[i]; // burned supply is naturally 0 by default and does not need setting unchecked { i++; } } } /** * @dev Total amount of tokens of resource with a given id. */ function totalSupply(uint256 tokenId) external view virtual override returns (uint256) { return _totalSupply[tokenId]; } /** * @dev Total amount of burned tokens of resource with a given id. */ function burnedSupply(uint256 tokenId) external view override returns (uint256) { return _burnedSupply[tokenId]; } /** * @dev See {IResrouces-setTokenURI}. */ function setTokenURI(uint256 tokenId, string calldata uri_) external override adminRequired { _tokenURIs[tokenId] = uri_; } /** * @dev See {IResrouces-setTokenURIs}. */ function setTokenURIs(uint256[] memory tokenIds, string[] calldata uris) external override adminRequired { require(tokenIds.length == uris.length, "Invalid input"); for (uint i = 0; i < tokenIds.length;) { _tokenURIs[tokenIds[i]] = uris[i]; unchecked { i++; } } } /** * @dev See {IResourecs-burn}. */ function burn(address account, uint256[] memory tokenIds, uint256[] memory amounts) public virtual override { require(account == msg.sender || isApprovedForAll(account, msg.sender), "Caller is not owner nor approved"); require(tokenIds.length == amounts.length && tokenIds.length > 0, "Invalid input"); if (tokenIds.length == 1) { _burn(account, tokenIds[0], amounts[0]); } else { _burnBatch(account, tokenIds, amounts); } } /** * @dev See {ERC1155-_burn}. */ function _burn(address account, uint256 id, uint256 amount) internal virtual override { super._burn(account, id, amount); _totalSupply[id] -= amount; _burnedSupply[id] += amount; } /** * @dev See {ERC1155-_burnBatch}. */ function _burnBatch(address account, uint256[] memory ids, uint256[] memory amounts) internal virtual override { super._burnBatch(account, ids, amounts); uint256 length = ids.length; for (uint256 i = 0; i < length;) { _totalSupply[ids[i]] -= amounts[i]; _burnedSupply[ids[i]] += amounts[i]; unchecked { i++; } } } /** * @dev See {IERC1155-uri}. */ function uri(uint256 tokenId) public view virtual override returns (string memory) { return _tokenURIs[tokenId]; } /** * @dev Update royalties */ function updateRoyalties(address payable recipient, uint256 bps) external adminRequired { _royaltyRecipient = recipient; _royaltyBps = bps; } /** * ROYALTY FUNCTIONS */ function getRoyalties(uint256) external view returns (address payable[] memory recipients, uint256[] memory bps) { if (_royaltyRecipient != address(0x0)) { recipients = new address payable[](1); recipients[0] = _royaltyRecipient; bps = new uint256[](1); bps[0] = _royaltyBps; } return (recipients, bps); } function getFeeRecipients(uint256) external view returns (address payable[] memory recipients) { if (_royaltyRecipient != address(0x0)) { recipients = new address payable[](1); recipients[0] = _royaltyRecipient; } return recipients; } function getFeeBps(uint256) external view returns (uint[] memory bps) { if (_royaltyRecipient != address(0x0)) { bps = new uint256[](1); bps[0] = _royaltyBps; } return bps; } function royaltyInfo(uint256, uint256 value) external view returns (address, uint256) { return (_royaltyRecipient, value*_royaltyBps/10000); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /// @author: manifold.xyz //////////////////////////////////////////////////////////////////////////////////////// // // // ████████████████████████████████████████████████████████████████████████████████ // // ████████████████████████████████████████████████████████████████████████████████ // // ████████████████████████████████████████████████████████████████████████████████ // // ████████████████████████████████████████████████████████████████████████████████ // // ████████████████████████████████████████████████████████████████████████████████ // // ████████████████████████████████████████████████████████████████████████████████ // // ████████████████████████████████████████████████████████████████████████████████ // // ████████████████████████████████████████████████████████████████████████████████ // // ██████████████▌ ╟██ ████████████████ j██████████████ // // ██████████████▌ ╟███ ███████████████ j██████████████ // // ██████████████▌ ╟███▌ ██████████████ j██████████████ // // ██████████████▌ ╟████▌ █████████████ j██████████████ // // ██████████████▌ ╟█████▌ ╙████████████ j██████████████ // // ██████████████▌ ╟██████▄ ╙███████████ j██████████████ // // ██████████████▌ ╟███████ ╙██████████ j██████████████ // // ██████████████▌ ╟████████ ╟█████████ j██████████████ // // ██████████████▌ ╟█████████ █████████ j██████████████ // // ██████████████▌ ╟██████████ ████████ j██████████████ // // ██████████████▌ ╟██████████▌ ███████ j██████████████ // // ██████████████▌ ╟███████████▌ ██████ j██████████████ // // ██████████████▌ ╟████████████▄ ╙█████ ,████████████████ // // ██████████████▌ ╟█████████████ ╙████ ▄██████████████████ // // ██████████████▌ ╟██████████████ ╙███ ▄████████████████████ // // ██████████████▌ ╟███████████████ ╟██ ,███████████████████████ // // ██████████████▌ ,████ ███████████████████████████ // // ██████████████▌ ▄██████▌ ██████████████████████████ // // ██████████████▌ ▄█████████▌ █████████████████████████ // // ██████████████▌ ,█████████████▄ ████████████████████████ // // ████████████████████████████████████████████████████████████████████████████████ // // ████████████████████████████████████████████████████████████████████████████████ // // ████████████████████████████████████████████████████████████████████████████████ // // ████████████████████████████████████████████████████████████████████████████████ // // ████████████████████████████████████████████████████████████████████████████████ // // ████████████████████████████████████████████████████████████████████████████████ // // ████████████████████████████████████████████████████████████████████████████████ // // ████████████████████████████████████████████████████████████████████████████████ // // // //////////////////////////////////////////////////////////////////////////////////////// import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol"; interface IResources is IERC1155 { /** * @dev Mint tokens */ function mint(address to, uint256[] memory tokenIds, uint256[] memory amounts) external; /** * @dev Set the tokenURI of a token. */ function setTokenURI(uint256 tokenId, string calldata uri_) external; /** * @dev set the tokenURI of multiple tokens. */ function setTokenURIs(uint256[] memory tokenIds, string[] calldata uris) external; /** * @dev burn tokens. Can only be called by token owner or approved address. * On burn, calls back to the registered extension's onBurn method */ function burn(address account, uint256[] calldata tokenIds, uint256[] calldata amounts) external; /** * @dev Total amount of tokens of resource with a given id. */ function totalSupply(uint256 tokenId) external view returns (uint256); /** * @dev Total amount of burned tokens of resource with a given id. */ function burnedSupply(uint256 tokenId) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /// @author: manifold.xyz import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "./IAdminControl.sol"; abstract contract AdminControl is Ownable, IAdminControl, ERC165 { using EnumerableSet for EnumerableSet.AddressSet; // Track registered admins EnumerableSet.AddressSet private _admins; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IAdminControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Only allows approved admins to call the specified function */ modifier adminRequired() { require(owner() == msg.sender || _admins.contains(msg.sender), "AdminControl: Must be owner or admin"); _; } /** * @dev See {IAdminControl-getAdmins}. */ function getAdmins() external view override returns (address[] memory admins) { admins = new address[](_admins.length()); for (uint i = 0; i < _admins.length(); i++) { admins[i] = _admins.at(i); } return admins; } /** * @dev See {IAdminControl-approveAdmin}. */ function approveAdmin(address admin) external override onlyOwner { if (!_admins.contains(admin)) { emit AdminApproved(admin, msg.sender); _admins.add(admin); } } /** * @dev See {IAdminControl-revokeAdmin}. */ function revokeAdmin(address admin) external override onlyOwner { if (_admins.contains(admin)) { emit AdminRevoked(admin, msg.sender); _admins.remove(admin); } } /** * @dev See {IAdminControl-isAdmin}. */ function isAdmin(address admin) public override view returns (bool) { return (owner() == admin || _admins.contains(admin)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.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: address zero is not a valid owner"); 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 token 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: caller is not token 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}. * * 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 _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` * * Emits a {TransferSingle} event. * * 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}. * * Emits a {TransferBatch} event. * * 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 an {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 `ids` and `amounts` 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.7.0) (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 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 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 (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// 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 pragma solidity ^0.8.0; /// @author: manifold.xyz import "@openzeppelin/contracts/utils/introspection/IERC165.sol"; /** * @dev Interface for admin control */ interface IAdminControl is IERC165 { event AdminApproved(address indexed account, address indexed sender); event AdminRevoked(address indexed account, address indexed sender); /** * @dev gets address of all admins */ function getAdmins() external view returns (address[] memory); /** * @dev add an admin. Can only be called by contract owner. */ function approveAdmin(address admin) external; /** * @dev remove an admin. Can only be called by contract owner. */ function revokeAdmin(address admin) external; /** * @dev checks whether or not given address is an admin * Returns True if they are */ function isAdmin(address admin) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/structs/EnumerableSet.sol) pragma solidity ^0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. * * [WARNING] * ==== * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure unusable. * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info. * * In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an array of EnumerableSet. * ==== */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping(bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; if (lastIndex != toDeleteIndex) { bytes32 lastValue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastValue; // Update the index for the moved value set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex } // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { return set._values[index]; } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function _values(Set storage set) private view returns (bytes32[] memory) { return set._values; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(Bytes32Set storage set) internal view returns (bytes32[] memory) { return _values(set._inner); } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(AddressSet storage set) internal view returns (address[] memory) { bytes32[] memory store = _values(set._inner); address[] memory result; /// @solidity memory-safe-assembly assembly { result := store } return result; } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(UintSet storage set) internal view returns (uint256[] memory) { bytes32[] memory store = _values(set._inner); uint256[] memory result; /// @solidity memory-safe-assembly assembly { result := store } return result; } }
// 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 (last updated v4.7.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 /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// 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); }
{ "viaIR": true, "optimizer": { "enabled": true, "runs": 1000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"AdminApproved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"AdminRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"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":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"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":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"_burnedSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"admin","type":"address"}],"name":"approveAdmin","outputs":[],"stateMutability":"nonpayable","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":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burnedSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAdmins","outputs":[{"internalType":"address[]","name":"admins","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getFeeBps","outputs":[{"internalType":"uint256[]","name":"bps","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getFeeRecipients","outputs":[{"internalType":"address payable[]","name":"recipients","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getRoyalties","outputs":[{"internalType":"address payable[]","name":"recipients","type":"address[]"},{"internalType":"uint256[]","name":"bps","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"admin","type":"address"}],"name":"isAdmin","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"admin","type":"address"}],"name":"revokeAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"value","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":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"uri_","type":"string"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"string[]","name":"uris","type":"string[]"}],"name":"setTokenURIs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"recipient","type":"address"},{"internalType":"uint256","name":"bps","type":"uint256"}],"name":"updateRoyalties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
6080346200012257602081016001600160401b038111828210176200010c576040526000908190528054336001600160a01b0319821681178355906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a36003546001908181811c9116801562000101575b6020821014620000ed57601f8111620000a3575b82600355604051612a719081620001288239f35b60038352601f0160051c7fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b908101905b818110620000e257506200008f565b8381558201620000d3565b634e487b7160e01b83526022600452602483fd5b90607f16906200007b565b634e487b7160e01b600052604160045260246000fd5b600080fdfe6040608081526004908136101561001557600080fd5b600091823560e01c8062fdd58e14611f1e57806301ffc9a714611dbb57806306fdde0314611d5e5780630e89341c14611c865780630ebd4c7f14611c1e578063162094c414611a9757806324d7806c14611a365780632a55205a146119d95780632d345670146119605780632eb2c2d6146116c057806331ae450b146115db5780633808449614610fa65780633db0f8ab146112db5780634e1273f41461112e5780636c2f5acd146110b15780636d73e66914611033578063715018a614610fcd5780637f2d0e6214610fa65780638da5cb5b14610f8057806395d89b4114610f235780639727756a14610a01578063a22cb46514610910578063b9c4d9fb146108a8578063bb3bafd614610802578063bd85b039146107db578063db3e4c84146105a6578063e985e9c514610554578063f242432a146102485763f2fde38b1461015f57600080fd5b3461024457602036600319011261024457610178611f4e565b90610181612223565b6001600160a01b038092169283156101db57505082548273ffffffffffffffffffffffffffffffffffffffff198216178455167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b906020608492519162461bcd60e51b8352820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152fd5b8280fd5b5090346102445760a036600319011261024457610263611f4e565b8361026c611f69565b916044359060643560843567ffffffffffffffff81116105505761029390369089016120d9565b926001600160a01b03809316923384148015610531575b6102b390612312565b8616906102c1821515612383565b6102ca816125b5565b506102d4836125b5565b5080865260209660018852888720858852885283898820546102f8828210156123f4565b83895260018a528a8920878a528a520389882055818752600188528887208388528852888720610329858254612465565b905582858a51848152868b8201527fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628c3392a43b610365578580f35b889587946103a68a519788968795869463f23a6e6160e01b9c8d8752339087015260248601526044850152606484015260a0608484015260a4830190611fef565b03925af1869181610502575b5061048d5750506001906103c4612528565b6308c379a01461045a575b506103e45750505b3880808381808080808580f35b61045692505191829162461bcd60e51b8352820160809060208152603460208201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560408201527f526563656976657220696d706c656d656e74657200000000000000000000000060608201520190565b0390fd5b610462612546565b8061046d57506103cf565b6104568591855193849362461bcd60e51b85528401526024830190611fef565b6001600160e01b0319160390506104a55750506103d7565b61045692505191829162461bcd60e51b8352820160809060208152602860208201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b60608201520190565b610523919250843d861161052a575b61051b8183611fcd565b810190612508565b90386103b2565b503d610511565b508386526002602090815288872033885290528786205460ff166102aa565b8480fd5b5050346105a257806003193601126105a25760ff81602093610574611f4e565b61057c611f69565b6001600160a01b0391821683526002875283832091168252855220549151911615158152f35b5080fd5b50903461024457806003193601126102445767ffffffffffffffff8235818111610550576105d7903690850161207b565b9360248035918383116107d857366023840112156107d857828601358481116105a257600593368483871b83010111610244576001600160a01b03835416331480156107c4575b61062a90989298612874565b610636888a511461291e565b368190036042190191835b8a518110156107c057898110156107ae578581881b84010135848112156107aa5783019086820135918983116107a657604492803603848301136107a257610689838f61220f565b5188526020600681528c8920926106a084546128e4565b91601f92838111610762575b508a9284116001146106ee57509482916001968b936106e1575b505050600019600383901b1c191690841b1790555b01610641565b01013590503880806106c6565b929394959091601f198516868c52848c20948c905b82821061074857505090856001989796959493921061072c575b50505050831b830190556106db565b60001960f88660031b161c19920101351690553880808061071d565b8060018598878395978a0101358155019701930190610703565b858c528d828d209085808801821c830193858910610799575b01901c01905b81811061078e57506106ac565b8c8155600101610781565b9350829361077b565b8780fd5b8680fd5b8580fd5b8585603284634e487b7160e01b835252fd5b8480f35b50338352602085905286832054151561061e565b80fd5b50346102445760203660031901126102445760209282913581526007845220549051908152f35b5050346105a257602091826003193601126107d85750606091826001600160a01b03600a541680610858575b509061085491610847845195858796875286019061218a565b918483039085015261202f565b0390f35b9350506108549082519361086b85611f7f565b6001855281368187013761087e856121ec565b52825161088a81611f7f565b600181528136818301376009546108a0826121ec565b52909161082e565b5050346105a25760203660031901126105a25761085491506060906001600160a01b03600a5416806108e8575b505191829160208352602083019061218a565b815192506108f583611f7f565b6001835260203681850137610909836121ec565b52386108d5565b50903461024457806003193601126102445761092a611f4e565b9060243591821515809303610550576001600160a01b0316928333146109995750338452600260205280842083855260205280842060ff1981541660ff8416179055519081527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a380f35b6020608492519162461bcd60e51b8352820152602960248201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360448201527f20666f722073656c6600000000000000000000000000000000000000000000006064820152fd5b508290346105a257610a1236612130565b909192610a1d612223565b82519360019485811480610f19575b15610cf15750610a3b846121ec565b51610a45846121ec565b51885190610a5282611fb1565b8882526001600160a01b03841690610a6b821515612803565b610a74846125b5565b50610a7e816125b5565b50838a526020948986528b8b20838c5286528b8b20610a9e838254612465565b9055828b8d7fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62815191898352868b8401523392a43b610b32575b505050505050938293945b85935b610aee578580f35b8251841015610b2e578484610b0482968461220f565b51610b0f828761220f565b5189526007602052610b25858a20918254612465565b90550193610ae6565b8580f35b918491610b75938b8d5180968195829463f23a6e6160e01b9a8b85528d33908601528560248601526044850152606484015260a0608484015260a4830190611fef565b03925af1889181610cd2575b50610c5a5750508490610b92612528565b6308c379a014610c27575b50610bb55750938293945b9094938680808080610ad8565b61045690865191829162461bcd60e51b8352820160809060208152603460208201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560408201527f526563656976657220696d706c656d656e74657200000000000000000000000060608201520190565b610c2f612546565b80610c3a5750610b9d565b61045684918a5193849362461bcd60e51b85528401526024830190611fef565b6001600160e01b031916039050610c75575093829394610ba8565b61045690865191829162461bcd60e51b8352820160809060208152602860208201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b60608201520190565b610cea919250843d861161052a5761051b8183611fcd565b908a610b81565b835103610edd57865190610d0482611fb1565b8682526001600160a01b03811690610d1d821515612803565b610d2a8651865114612472565b8688815b610e8a575b505081888a517f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb339180610d688b8d836124e3565b0390a43b610d7d575b50505093829394610ae3565b906020610dd28493610dbf8a89610de18a8f519889978896879563bc197c8160e01b9d8e8852339088015287602488015260a0604488015260a487019061202f565b600319938487830301606488015261202f565b91848303016084850152611fef565b03925af1879181610e6a575b50610e5157505083610dfd612528565b6308c379a014610e1c575b610bb55750938293945b9094938680610d71565b610e24612546565b80610e2f5750610e08565b826104566020928a5193849362461bcd60e51b85528401526024830190611fef565b6001600160e01b03191603610c75575093829394610e12565b610e8391925060203d811161052a5761051b8183611fcd565b9089610ded565b8751811015610ed85780610ea1610ed2928961220f565b51610eac828b61220f565b518c528b8d876020918783528320925252610ecb8d8d20918254612465565b90556121c7565b81610d2e565b610d33565b61045682885191829162461bcd60e51b8352820160609060208152600d60208201526c125b9d985b1a59081a5b9c1d5d609a1b60408201520190565b5085845114610a2c565b5090346102445782600319360112610244576108549250805191610f4683611f7f565b82527f5253524300000000000000000000000000000000000000000000000000000000602083015251918291602083526020830190611fef565b5050346105a257816003193601126105a2576001600160a01b0360209254169051908152f35b50346102445760203660031901126102445760209282913581526008845220549051908152f35b83346107d857806003193601126107d857610fe6612223565b806001600160a01b03815473ffffffffffffffffffffffffffffffffffffffff1981168355167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b83346107d85760203660031901126107d8576001600160a01b03611055611f4e565b61105d612223565b16611075816000526005602052604060002054151590565b1561107e575080f35b6110ad9033817f7e1a1a08d52e4ba0e21554733d66165fd5151f99460116223d9e3a608eec5cb18580a3612611565b5080f35b503461024457816003193601126102445735906001600160a01b039081831680930361112a576110ee918454163314908115611115575b50612874565b73ffffffffffffffffffffffffffffffffffffffff19600a541617600a5560243560095580f35b905033845260056020528320541515386110e8565b8380fd5b5034610244578160031936011261024457803567ffffffffffffffff808211610550573660238301121561055057818301359061116a82612063565b9261117786519485611fcd565b82845260209260248486019160051b830101913683116112d757602401905b8282106112b4575050506024359081116107aa576111b7903690850161207b565b92825184510361124d57508151946111ce86612063565b956111db86519788611fcd565b8087526111ea601f1991612063565b0136838801375b825181101561123b57806112266001600160a01b03611213611236948761220f565b511661121f838861220f565b519061227b565b611230828961220f565b526121c7565b6111f1565b8451828152806108548185018961202f565b60849185519162461bcd60e51b8352820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e67746860448201527f206d69736d6174636800000000000000000000000000000000000000000000006064820152fd5b81356001600160a01b03811681036112d3578152908401908401611196565b8980fd5b8880fd5b5034610244576001600160a01b03916112f336612130565b91949094169233841480156115bd575b1561157a575061131f8451825181149081611570575b5061291e565b8460019485815114600014611412579161140d94959161134a6113436008956121ec565b51926121ec565b519661135781151561295a565b611360836125b5565b5061136a886125b5565b5081865161137781611fb1565b52828252876020948086528784208385528652878420549061139b838310156129cb565b858552865287842083855286520386832055855183815288858201527fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62873392a48684516113e881611fb1565b52808752600782528387206113fe878254612695565b90558652528320918254612465565b905580f35b92919361142081151561295a565b61142d8451865114612472565b81835161143981611fb1565b528582815b6114fe575b505082517f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb3391806114768989836124e3565b0390a484815161148581611fb1565b52815192855b84811061149b5750505050505080f35b806114a787928461220f565b516114b2828761220f565b518952602090600782526114ca868b20918254612695565b905560086114d8838661220f565b51916114e4848961220f565b518b52526114f6858a20918254612465565b90550161148b565b909192855182101561156857508061151961155e928761220f565b51611524828961220f565b5190808b526020858152878c20878d528152878c205491611547848410156129cb565b8c52858152878c2090878d525203858a20556121c7565b908792918161143e565b929190611443565b9050151538611319565b606490602084519162461bcd60e51b8352820152602060248201527f43616c6c6572206973206e6f74206f776e6572206e6f7220617070726f7665646044820152fd5b50838652600260205282862033875260205260ff8387205416611303565b5082346107d857806003193601126107d85781929154906115fb82612063565b61160784519182611fcd565b82815261161383612063565b6020958287019491601f1901368637835b8281106116725750505083519485948186019282875251809352850193925b82811061165257505050500390f35b83516001600160a01b031685528695509381019392810192600101611643565b6116b59082869597989996526001600160a01b03817f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b015416611230828961220f565b969594929396611624565b5034610244576003199160a03684011261112a576116dc611f4e565b926116e5611f69565b9367ffffffffffffffff936044358581116107a257611707903690830161207b565b906064358681116112d75761171f903690830161207b565b956084359081116112d75761173790369083016120d9565b936001600160a01b03809416933385148015611941575b61175790612312565b6117648451895114612472565b881694611772861515612383565b895b8a85518210156117f3579089610ecb8a6117ee948a61179e86611797818e61220f565b519661220f565b519480835260019086602093838552868620818752855286862054906117c6838310156123f4565b8387528486528787209087528552038585205583528152828220908d83525220918254612465565b611774565b50509094939596929197848789517f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb3391806118308a8a836124e3565b0390a43b61183c578880f35b8651948593849363bc197c8160e01b98898652338c87015260248601526044850160a0905260a4850161186e9161202f565b828582030160648601526118819161202f565b9083820301608484015261189491611fef565b0381885a94602095f1859181611921575b5061190b57505060016118b6612528565b6308c379a0146118d4575b6103e45750505b38808080808080808880f35b6118dc612546565b806118e757506118c1565b905061045691602094505193849362461bcd60e51b85528401526024830190611fef565b6001600160e01b031916036104a55750506118c8565b61193a91925060203d811161052a5761051b8183611fcd565b90386118a5565b50848a5260026020908152878b20338c529052868a205460ff1661174e565b83346107d85760203660031901126107d8576001600160a01b03611982611f4e565b61198a612223565b166119a2816000526005602052604060002054151590565b6119aa575080f35b6110ad9033817f7c0c3c84c67c85fcac635147348bfe374c24a1a93d0366d1cfe9d8853cbf89d58580a36126a2565b5082346107d857826003193601126107d857602435906001600160a01b03600a54169260095492838102938185041490151715611a23575050612710908351928352046020820152f35b906011602492634e487b7160e01b835252fd5b5050346105a25760203660031901126105a25790602091611a55611f4e565b91546001600160a01b0392831692168214918215611a77575b50519015158152f35b611a909192506000526005602052604060002054151590565b9038611a6e565b508290346105a257826003193601126105a25760249081359167ffffffffffffffff91828411610550573660238501121561055057838101359283116105505736828486010111610550576001600160a01b0385541633148015611c0a575b611aff90612874565b35845260209460068652842092611b1684546128e4565b601f8111611bc7575b508495601f8411600114611b5f575094849583949593611b52575b5050508160011b916000199060031b1c191617905580f35b0101359050848080611b3a565b91601f198416968587528387209387905b898210611bad57505084600196979810611b91575b50505050811b01905580f35b60001960f88660031b161c199201013516905584808080611b85565b806001849786839596890101358155019601920190611b70565b848652868620601f850160051c810191888610611c00575b601f0160051c01905b818110611bf55750611b1f565b868155600101611be8565b9091508190611bdf565b503385526005602052858520541515611af6565b5050346105a25760203660031901126105a25761085491506060906001600160a01b03600a5416611c5c575b5191829160208352602083019061202f565b80519150611c6982611f7f565b6001825260203681840137600954611c80836121ec565b52611c4a565b509034610244576020918260031936011261112a5735835260068252808320815193849181815490611cb7826128e4565b92838652600192888482169182600014611d34575050600114611cf6575b858861085489611ce7848a0385611fcd565b51928284938452830190611fef565b87945081939291528383205b828410611d1c5750505082010181611ce761085438611cd5565b8054848a018601528895508794909301928101611d02565b60ff19168882015294151560051b87019094019450859350611ce792506108549150389050611cd5565b5050346105a257816003193601126105a257805161085491611d7f82611f7f565b601382527f4c5643494449412f2f205245534f555243455300000000000000000000000000602083015251918291602083526020830190611fef565b50346102445760203660031901126102445735906001600160e01b0319821680830361112a57602093507fe204a12e000000000000000000000000000000000000000000000000000000008114928315611f0d575b8315611ecc575b8315611eba575b508215611e90575b8215611e66575b8215611e3c5750519015158152f35b7fb77995840000000000000000000000000000000000000000000000000000000014915038611a6e565b7f2a55205a0000000000000000000000000000000000000000000000000000000081149250611e2d565b7fbb3bafd60000000000000000000000000000000000000000000000000000000081149250611e26565b611ec591935061278c565b9138611e1e565b92507f553e757e0000000000000000000000000000000000000000000000000000000081148015611efe575b92611e17565b50611f088361278c565b611ef8565b6301ffc9a760e01b82149350611e10565b5050346105a257806003193601126105a257602090611f47611f3e611f4e565b6024359061227b565b9051908152f35b600435906001600160a01b0382168203611f6457565b600080fd5b602435906001600160a01b0382168203611f6457565b6040810190811067ffffffffffffffff821117611f9b57604052565b634e487b7160e01b600052604160045260246000fd5b6020810190811067ffffffffffffffff821117611f9b57604052565b90601f8019910116810190811067ffffffffffffffff821117611f9b57604052565b919082519283825260005b84811061201b575050826000602080949584010152601f8019910116010190565b602081830181015184830182015201611ffa565b90815180825260208080930193019160005b82811061204f575050505090565b835185529381019392810192600101612041565b67ffffffffffffffff8111611f9b5760051b60200190565b81601f82011215611f645780359161209283612063565b926120a06040519485611fcd565b808452602092838086019260051b820101928311611f64578301905b8282106120ca575050505090565b813581529083019083016120bc565b81601f82011215611f645780359067ffffffffffffffff8211611f9b576040519261210e601f8401601f191660200185611fcd565b82845260208383010111611f6457816000926020809301838601378301015290565b6060600319820112611f64576004356001600160a01b0381168103611f64579167ffffffffffffffff602435818111611f6457836121709160040161207b565b92604435918211611f64576121879160040161207b565b90565b90815180825260208080930193019160005b8281106121aa575050505090565b83516001600160a01b03168552938101939281019260010161219c565b60001981146121d65760010190565b634e487b7160e01b600052601160045260246000fd5b8051156121f95760200190565b634e487b7160e01b600052603260045260246000fd5b80518210156121f95760209160051b010190565b6001600160a01b0360005416330361223757565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b6001600160a01b03169081156122a857600052600160205260406000209060005260205260406000205490565b608460405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201527f616c6964206f776e6572000000000000000000000000000000000000000000006064820152fd5b1561231957565b608460405162461bcd60e51b815260206004820152602f60248201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60448201527f6572206e6f7220617070726f76656400000000000000000000000000000000006064820152fd5b1561238a57565b608460405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152fd5b156123fb57565b608460405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201527f72207472616e73666572000000000000000000000000000000000000000000006064820152fd5b919082018092116121d657565b1561247957565b608460405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060448201527f6d69736d617463680000000000000000000000000000000000000000000000006064820152fd5b90916124fa6121879360408452604084019061202f565b91602081840391015261202f565b90816020910312611f6457516001600160e01b031981168103611f645790565b60009060033d1161253557565b905060046000803e60005160e01c90565b600060443d1061218757604051600319913d83016004833e815167ffffffffffffffff918282113d6024840111176125a4578184019485519384116125ac573d850101602084870101116125a4575061218792910160200190611fcd565b949350505050565b50949350505050565b604051906125c282611f7f565b600182526020820160203682378251156121f9575290565b6004548110156121f95760046000527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0190600090565b600081815260056020526040812054612690576004546801000000000000000081101561267c57908261266861264f846001604096016004556125da565b819391549060031b600019811b9283911b169119161790565b905560045492815260056020522055600190565b602482634e487b7160e01b81526041600452fd5b905090565b919082039182116121d657565b60008181526005602052604081205490919080156127875760001990808201818111612773576004549083820191821161275f5780820361272b575b5050506004548015612717578101906126f6826125da565b909182549160031b1b19169055600455815260056020526040812055600190565b602484634e487b7160e01b81526031600452fd5b61274961273a61264f936125da565b90549060031b1c9283926125da565b90558452600560205260408420553880806126de565b602486634e487b7160e01b81526011600452fd5b602485634e487b7160e01b81526011600452fd5b505090565b6001600160e01b0319167fd9b67a260000000000000000000000000000000000000000000000000000000081149081156127d9575b81156127cb575090565b6301ffc9a760e01b91501490565b7f0e89341c00000000000000000000000000000000000000000000000000000000811491506127c1565b1561280a57565b608460405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152fd5b1561287b57565b608460405162461bcd60e51b8152602060048201526024808201527f41646d696e436f6e74726f6c3a204d757374206265206f776e6572206f72206160448201527f646d696e000000000000000000000000000000000000000000000000000000006064820152fd5b90600182811c92168015612914575b60208310146128fe57565b634e487b7160e01b600052602260045260246000fd5b91607f16916128f3565b1561292557565b60405162461bcd60e51b815260206004820152600d60248201526c125b9d985b1a59081a5b9c1d5d609a1b6044820152606490fd5b1561296157565b608460405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152fd5b156129d257565b608460405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c60448201527f616e6365000000000000000000000000000000000000000000000000000000006064820152fdfea2646970667358221220265be937ce9a8992358c3d9c2706d772248bb5a1563e24e17e55c6ee7875a7e664736f6c63430008110033
Deployed Bytecode
0x6040608081526004908136101561001557600080fd5b600091823560e01c8062fdd58e14611f1e57806301ffc9a714611dbb57806306fdde0314611d5e5780630e89341c14611c865780630ebd4c7f14611c1e578063162094c414611a9757806324d7806c14611a365780632a55205a146119d95780632d345670146119605780632eb2c2d6146116c057806331ae450b146115db5780633808449614610fa65780633db0f8ab146112db5780634e1273f41461112e5780636c2f5acd146110b15780636d73e66914611033578063715018a614610fcd5780637f2d0e6214610fa65780638da5cb5b14610f8057806395d89b4114610f235780639727756a14610a01578063a22cb46514610910578063b9c4d9fb146108a8578063bb3bafd614610802578063bd85b039146107db578063db3e4c84146105a6578063e985e9c514610554578063f242432a146102485763f2fde38b1461015f57600080fd5b3461024457602036600319011261024457610178611f4e565b90610181612223565b6001600160a01b038092169283156101db57505082548273ffffffffffffffffffffffffffffffffffffffff198216178455167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b906020608492519162461bcd60e51b8352820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152fd5b8280fd5b5090346102445760a036600319011261024457610263611f4e565b8361026c611f69565b916044359060643560843567ffffffffffffffff81116105505761029390369089016120d9565b926001600160a01b03809316923384148015610531575b6102b390612312565b8616906102c1821515612383565b6102ca816125b5565b506102d4836125b5565b5080865260209660018852888720858852885283898820546102f8828210156123f4565b83895260018a528a8920878a528a520389882055818752600188528887208388528852888720610329858254612465565b905582858a51848152868b8201527fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628c3392a43b610365578580f35b889587946103a68a519788968795869463f23a6e6160e01b9c8d8752339087015260248601526044850152606484015260a0608484015260a4830190611fef565b03925af1869181610502575b5061048d5750506001906103c4612528565b6308c379a01461045a575b506103e45750505b3880808381808080808580f35b61045692505191829162461bcd60e51b8352820160809060208152603460208201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560408201527f526563656976657220696d706c656d656e74657200000000000000000000000060608201520190565b0390fd5b610462612546565b8061046d57506103cf565b6104568591855193849362461bcd60e51b85528401526024830190611fef565b6001600160e01b0319160390506104a55750506103d7565b61045692505191829162461bcd60e51b8352820160809060208152602860208201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b60608201520190565b610523919250843d861161052a575b61051b8183611fcd565b810190612508565b90386103b2565b503d610511565b508386526002602090815288872033885290528786205460ff166102aa565b8480fd5b5050346105a257806003193601126105a25760ff81602093610574611f4e565b61057c611f69565b6001600160a01b0391821683526002875283832091168252855220549151911615158152f35b5080fd5b50903461024457806003193601126102445767ffffffffffffffff8235818111610550576105d7903690850161207b565b9360248035918383116107d857366023840112156107d857828601358481116105a257600593368483871b83010111610244576001600160a01b03835416331480156107c4575b61062a90989298612874565b610636888a511461291e565b368190036042190191835b8a518110156107c057898110156107ae578581881b84010135848112156107aa5783019086820135918983116107a657604492803603848301136107a257610689838f61220f565b5188526020600681528c8920926106a084546128e4565b91601f92838111610762575b508a9284116001146106ee57509482916001968b936106e1575b505050600019600383901b1c191690841b1790555b01610641565b01013590503880806106c6565b929394959091601f198516868c52848c20948c905b82821061074857505090856001989796959493921061072c575b50505050831b830190556106db565b60001960f88660031b161c19920101351690553880808061071d565b8060018598878395978a0101358155019701930190610703565b858c528d828d209085808801821c830193858910610799575b01901c01905b81811061078e57506106ac565b8c8155600101610781565b9350829361077b565b8780fd5b8680fd5b8580fd5b8585603284634e487b7160e01b835252fd5b8480f35b50338352602085905286832054151561061e565b80fd5b50346102445760203660031901126102445760209282913581526007845220549051908152f35b5050346105a257602091826003193601126107d85750606091826001600160a01b03600a541680610858575b509061085491610847845195858796875286019061218a565b918483039085015261202f565b0390f35b9350506108549082519361086b85611f7f565b6001855281368187013761087e856121ec565b52825161088a81611f7f565b600181528136818301376009546108a0826121ec565b52909161082e565b5050346105a25760203660031901126105a25761085491506060906001600160a01b03600a5416806108e8575b505191829160208352602083019061218a565b815192506108f583611f7f565b6001835260203681850137610909836121ec565b52386108d5565b50903461024457806003193601126102445761092a611f4e565b9060243591821515809303610550576001600160a01b0316928333146109995750338452600260205280842083855260205280842060ff1981541660ff8416179055519081527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a380f35b6020608492519162461bcd60e51b8352820152602960248201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360448201527f20666f722073656c6600000000000000000000000000000000000000000000006064820152fd5b508290346105a257610a1236612130565b909192610a1d612223565b82519360019485811480610f19575b15610cf15750610a3b846121ec565b51610a45846121ec565b51885190610a5282611fb1565b8882526001600160a01b03841690610a6b821515612803565b610a74846125b5565b50610a7e816125b5565b50838a526020948986528b8b20838c5286528b8b20610a9e838254612465565b9055828b8d7fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62815191898352868b8401523392a43b610b32575b505050505050938293945b85935b610aee578580f35b8251841015610b2e578484610b0482968461220f565b51610b0f828761220f565b5189526007602052610b25858a20918254612465565b90550193610ae6565b8580f35b918491610b75938b8d5180968195829463f23a6e6160e01b9a8b85528d33908601528560248601526044850152606484015260a0608484015260a4830190611fef565b03925af1889181610cd2575b50610c5a5750508490610b92612528565b6308c379a014610c27575b50610bb55750938293945b9094938680808080610ad8565b61045690865191829162461bcd60e51b8352820160809060208152603460208201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560408201527f526563656976657220696d706c656d656e74657200000000000000000000000060608201520190565b610c2f612546565b80610c3a5750610b9d565b61045684918a5193849362461bcd60e51b85528401526024830190611fef565b6001600160e01b031916039050610c75575093829394610ba8565b61045690865191829162461bcd60e51b8352820160809060208152602860208201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b60608201520190565b610cea919250843d861161052a5761051b8183611fcd565b908a610b81565b835103610edd57865190610d0482611fb1565b8682526001600160a01b03811690610d1d821515612803565b610d2a8651865114612472565b8688815b610e8a575b505081888a517f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb339180610d688b8d836124e3565b0390a43b610d7d575b50505093829394610ae3565b906020610dd28493610dbf8a89610de18a8f519889978896879563bc197c8160e01b9d8e8852339088015287602488015260a0604488015260a487019061202f565b600319938487830301606488015261202f565b91848303016084850152611fef565b03925af1879181610e6a575b50610e5157505083610dfd612528565b6308c379a014610e1c575b610bb55750938293945b9094938680610d71565b610e24612546565b80610e2f5750610e08565b826104566020928a5193849362461bcd60e51b85528401526024830190611fef565b6001600160e01b03191603610c75575093829394610e12565b610e8391925060203d811161052a5761051b8183611fcd565b9089610ded565b8751811015610ed85780610ea1610ed2928961220f565b51610eac828b61220f565b518c528b8d876020918783528320925252610ecb8d8d20918254612465565b90556121c7565b81610d2e565b610d33565b61045682885191829162461bcd60e51b8352820160609060208152600d60208201526c125b9d985b1a59081a5b9c1d5d609a1b60408201520190565b5085845114610a2c565b5090346102445782600319360112610244576108549250805191610f4683611f7f565b82527f5253524300000000000000000000000000000000000000000000000000000000602083015251918291602083526020830190611fef565b5050346105a257816003193601126105a2576001600160a01b0360209254169051908152f35b50346102445760203660031901126102445760209282913581526008845220549051908152f35b83346107d857806003193601126107d857610fe6612223565b806001600160a01b03815473ffffffffffffffffffffffffffffffffffffffff1981168355167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b83346107d85760203660031901126107d8576001600160a01b03611055611f4e565b61105d612223565b16611075816000526005602052604060002054151590565b1561107e575080f35b6110ad9033817f7e1a1a08d52e4ba0e21554733d66165fd5151f99460116223d9e3a608eec5cb18580a3612611565b5080f35b503461024457816003193601126102445735906001600160a01b039081831680930361112a576110ee918454163314908115611115575b50612874565b73ffffffffffffffffffffffffffffffffffffffff19600a541617600a5560243560095580f35b905033845260056020528320541515386110e8565b8380fd5b5034610244578160031936011261024457803567ffffffffffffffff808211610550573660238301121561055057818301359061116a82612063565b9261117786519485611fcd565b82845260209260248486019160051b830101913683116112d757602401905b8282106112b4575050506024359081116107aa576111b7903690850161207b565b92825184510361124d57508151946111ce86612063565b956111db86519788611fcd565b8087526111ea601f1991612063565b0136838801375b825181101561123b57806112266001600160a01b03611213611236948761220f565b511661121f838861220f565b519061227b565b611230828961220f565b526121c7565b6111f1565b8451828152806108548185018961202f565b60849185519162461bcd60e51b8352820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e67746860448201527f206d69736d6174636800000000000000000000000000000000000000000000006064820152fd5b81356001600160a01b03811681036112d3578152908401908401611196565b8980fd5b8880fd5b5034610244576001600160a01b03916112f336612130565b91949094169233841480156115bd575b1561157a575061131f8451825181149081611570575b5061291e565b8460019485815114600014611412579161140d94959161134a6113436008956121ec565b51926121ec565b519661135781151561295a565b611360836125b5565b5061136a886125b5565b5081865161137781611fb1565b52828252876020948086528784208385528652878420549061139b838310156129cb565b858552865287842083855286520386832055855183815288858201527fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62873392a48684516113e881611fb1565b52808752600782528387206113fe878254612695565b90558652528320918254612465565b905580f35b92919361142081151561295a565b61142d8451865114612472565b81835161143981611fb1565b528582815b6114fe575b505082517f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb3391806114768989836124e3565b0390a484815161148581611fb1565b52815192855b84811061149b5750505050505080f35b806114a787928461220f565b516114b2828761220f565b518952602090600782526114ca868b20918254612695565b905560086114d8838661220f565b51916114e4848961220f565b518b52526114f6858a20918254612465565b90550161148b565b909192855182101561156857508061151961155e928761220f565b51611524828961220f565b5190808b526020858152878c20878d528152878c205491611547848410156129cb565b8c52858152878c2090878d525203858a20556121c7565b908792918161143e565b929190611443565b9050151538611319565b606490602084519162461bcd60e51b8352820152602060248201527f43616c6c6572206973206e6f74206f776e6572206e6f7220617070726f7665646044820152fd5b50838652600260205282862033875260205260ff8387205416611303565b5082346107d857806003193601126107d85781929154906115fb82612063565b61160784519182611fcd565b82815261161383612063565b6020958287019491601f1901368637835b8281106116725750505083519485948186019282875251809352850193925b82811061165257505050500390f35b83516001600160a01b031685528695509381019392810192600101611643565b6116b59082869597989996526001600160a01b03817f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b015416611230828961220f565b969594929396611624565b5034610244576003199160a03684011261112a576116dc611f4e565b926116e5611f69565b9367ffffffffffffffff936044358581116107a257611707903690830161207b565b906064358681116112d75761171f903690830161207b565b956084359081116112d75761173790369083016120d9565b936001600160a01b03809416933385148015611941575b61175790612312565b6117648451895114612472565b881694611772861515612383565b895b8a85518210156117f3579089610ecb8a6117ee948a61179e86611797818e61220f565b519661220f565b519480835260019086602093838552868620818752855286862054906117c6838310156123f4565b8387528486528787209087528552038585205583528152828220908d83525220918254612465565b611774565b50509094939596929197848789517f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb3391806118308a8a836124e3565b0390a43b61183c578880f35b8651948593849363bc197c8160e01b98898652338c87015260248601526044850160a0905260a4850161186e9161202f565b828582030160648601526118819161202f565b9083820301608484015261189491611fef565b0381885a94602095f1859181611921575b5061190b57505060016118b6612528565b6308c379a0146118d4575b6103e45750505b38808080808080808880f35b6118dc612546565b806118e757506118c1565b905061045691602094505193849362461bcd60e51b85528401526024830190611fef565b6001600160e01b031916036104a55750506118c8565b61193a91925060203d811161052a5761051b8183611fcd565b90386118a5565b50848a5260026020908152878b20338c529052868a205460ff1661174e565b83346107d85760203660031901126107d8576001600160a01b03611982611f4e565b61198a612223565b166119a2816000526005602052604060002054151590565b6119aa575080f35b6110ad9033817f7c0c3c84c67c85fcac635147348bfe374c24a1a93d0366d1cfe9d8853cbf89d58580a36126a2565b5082346107d857826003193601126107d857602435906001600160a01b03600a54169260095492838102938185041490151715611a23575050612710908351928352046020820152f35b906011602492634e487b7160e01b835252fd5b5050346105a25760203660031901126105a25790602091611a55611f4e565b91546001600160a01b0392831692168214918215611a77575b50519015158152f35b611a909192506000526005602052604060002054151590565b9038611a6e565b508290346105a257826003193601126105a25760249081359167ffffffffffffffff91828411610550573660238501121561055057838101359283116105505736828486010111610550576001600160a01b0385541633148015611c0a575b611aff90612874565b35845260209460068652842092611b1684546128e4565b601f8111611bc7575b508495601f8411600114611b5f575094849583949593611b52575b5050508160011b916000199060031b1c191617905580f35b0101359050848080611b3a565b91601f198416968587528387209387905b898210611bad57505084600196979810611b91575b50505050811b01905580f35b60001960f88660031b161c199201013516905584808080611b85565b806001849786839596890101358155019601920190611b70565b848652868620601f850160051c810191888610611c00575b601f0160051c01905b818110611bf55750611b1f565b868155600101611be8565b9091508190611bdf565b503385526005602052858520541515611af6565b5050346105a25760203660031901126105a25761085491506060906001600160a01b03600a5416611c5c575b5191829160208352602083019061202f565b80519150611c6982611f7f565b6001825260203681840137600954611c80836121ec565b52611c4a565b509034610244576020918260031936011261112a5735835260068252808320815193849181815490611cb7826128e4565b92838652600192888482169182600014611d34575050600114611cf6575b858861085489611ce7848a0385611fcd565b51928284938452830190611fef565b87945081939291528383205b828410611d1c5750505082010181611ce761085438611cd5565b8054848a018601528895508794909301928101611d02565b60ff19168882015294151560051b87019094019450859350611ce792506108549150389050611cd5565b5050346105a257816003193601126105a257805161085491611d7f82611f7f565b601382527f4c5643494449412f2f205245534f555243455300000000000000000000000000602083015251918291602083526020830190611fef565b50346102445760203660031901126102445735906001600160e01b0319821680830361112a57602093507fe204a12e000000000000000000000000000000000000000000000000000000008114928315611f0d575b8315611ecc575b8315611eba575b508215611e90575b8215611e66575b8215611e3c5750519015158152f35b7fb77995840000000000000000000000000000000000000000000000000000000014915038611a6e565b7f2a55205a0000000000000000000000000000000000000000000000000000000081149250611e2d565b7fbb3bafd60000000000000000000000000000000000000000000000000000000081149250611e26565b611ec591935061278c565b9138611e1e565b92507f553e757e0000000000000000000000000000000000000000000000000000000081148015611efe575b92611e17565b50611f088361278c565b611ef8565b6301ffc9a760e01b82149350611e10565b5050346105a257806003193601126105a257602090611f47611f3e611f4e565b6024359061227b565b9051908152f35b600435906001600160a01b0382168203611f6457565b600080fd5b602435906001600160a01b0382168203611f6457565b6040810190811067ffffffffffffffff821117611f9b57604052565b634e487b7160e01b600052604160045260246000fd5b6020810190811067ffffffffffffffff821117611f9b57604052565b90601f8019910116810190811067ffffffffffffffff821117611f9b57604052565b919082519283825260005b84811061201b575050826000602080949584010152601f8019910116010190565b602081830181015184830182015201611ffa565b90815180825260208080930193019160005b82811061204f575050505090565b835185529381019392810192600101612041565b67ffffffffffffffff8111611f9b5760051b60200190565b81601f82011215611f645780359161209283612063565b926120a06040519485611fcd565b808452602092838086019260051b820101928311611f64578301905b8282106120ca575050505090565b813581529083019083016120bc565b81601f82011215611f645780359067ffffffffffffffff8211611f9b576040519261210e601f8401601f191660200185611fcd565b82845260208383010111611f6457816000926020809301838601378301015290565b6060600319820112611f64576004356001600160a01b0381168103611f64579167ffffffffffffffff602435818111611f6457836121709160040161207b565b92604435918211611f64576121879160040161207b565b90565b90815180825260208080930193019160005b8281106121aa575050505090565b83516001600160a01b03168552938101939281019260010161219c565b60001981146121d65760010190565b634e487b7160e01b600052601160045260246000fd5b8051156121f95760200190565b634e487b7160e01b600052603260045260246000fd5b80518210156121f95760209160051b010190565b6001600160a01b0360005416330361223757565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b6001600160a01b03169081156122a857600052600160205260406000209060005260205260406000205490565b608460405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201527f616c6964206f776e6572000000000000000000000000000000000000000000006064820152fd5b1561231957565b608460405162461bcd60e51b815260206004820152602f60248201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60448201527f6572206e6f7220617070726f76656400000000000000000000000000000000006064820152fd5b1561238a57565b608460405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152fd5b156123fb57565b608460405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201527f72207472616e73666572000000000000000000000000000000000000000000006064820152fd5b919082018092116121d657565b1561247957565b608460405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060448201527f6d69736d617463680000000000000000000000000000000000000000000000006064820152fd5b90916124fa6121879360408452604084019061202f565b91602081840391015261202f565b90816020910312611f6457516001600160e01b031981168103611f645790565b60009060033d1161253557565b905060046000803e60005160e01c90565b600060443d1061218757604051600319913d83016004833e815167ffffffffffffffff918282113d6024840111176125a4578184019485519384116125ac573d850101602084870101116125a4575061218792910160200190611fcd565b949350505050565b50949350505050565b604051906125c282611f7f565b600182526020820160203682378251156121f9575290565b6004548110156121f95760046000527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0190600090565b600081815260056020526040812054612690576004546801000000000000000081101561267c57908261266861264f846001604096016004556125da565b819391549060031b600019811b9283911b169119161790565b905560045492815260056020522055600190565b602482634e487b7160e01b81526041600452fd5b905090565b919082039182116121d657565b60008181526005602052604081205490919080156127875760001990808201818111612773576004549083820191821161275f5780820361272b575b5050506004548015612717578101906126f6826125da565b909182549160031b1b19169055600455815260056020526040812055600190565b602484634e487b7160e01b81526031600452fd5b61274961273a61264f936125da565b90549060031b1c9283926125da565b90558452600560205260408420553880806126de565b602486634e487b7160e01b81526011600452fd5b602485634e487b7160e01b81526011600452fd5b505090565b6001600160e01b0319167fd9b67a260000000000000000000000000000000000000000000000000000000081149081156127d9575b81156127cb575090565b6301ffc9a760e01b91501490565b7f0e89341c00000000000000000000000000000000000000000000000000000000811491506127c1565b1561280a57565b608460405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152fd5b1561287b57565b608460405162461bcd60e51b8152602060048201526024808201527f41646d696e436f6e74726f6c3a204d757374206265206f776e6572206f72206160448201527f646d696e000000000000000000000000000000000000000000000000000000006064820152fd5b90600182811c92168015612914575b60208310146128fe57565b634e487b7160e01b600052602260045260246000fd5b91607f16916128f3565b1561292557565b60405162461bcd60e51b815260206004820152600d60248201526c125b9d985b1a59081a5b9c1d5d609a1b6044820152606490fd5b1561296157565b608460405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152fd5b156129d257565b608460405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c60448201527f616e6365000000000000000000000000000000000000000000000000000000006064820152fdfea2646970667358221220265be937ce9a8992358c3d9c2706d772248bb5a1563e24e17e55c6ee7875a7e664736f6c63430008110033
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.