Contract
0x2762732c426cfc6a773317800bcca8160e40dc5a
4
[ Download CSV Export ]
OVERVIEW
Onerare is building the Foodverse Game.Contract Name:
ORareNft
Compiler Version
v0.8.13+commit.abaa5c0e
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.13; import "@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Pausable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "../interfaces/IORareNft.sol"; /** * @title ORareNft- ERC1155 contract for Orare */ contract ORareNft is ERC1155Pausable, Ownable, IORareNft { mapping(uint256 => uint256) private _tokenSupply; mapping(uint256 => string) private _tokenURIs; mapping(address => bool) public admins; mapping(address => bool) public gameContracts; uint256 public nextId; constructor(string memory uri_) ERC1155(uri_) {} /** * @dev Throws if called by any account other than the admin or owner. */ modifier onlyAdminOrOwner() { require(admins[_msgSender()] || _msgSender() == owner(), "Caller is not admin nor owner"); _; } /** * @dev Throws if called by any account other than the game contract, admin or owner. */ modifier onlyGameContractOrAdminOrOwner() { require( gameContracts[_msgSender()] || admins[_msgSender()] || _msgSender() == owner(), "Caller is not authorized" ); _; } /** * @dev Returns the total quantity for a token ID * @param id_ uint256 ID of the token to query * @return amount of token in existence */ function totalSupply(uint256 id_) public view returns (uint256) { return _tokenSupply[id_]; } /** * @dev Returns the total uri for a token ID */ function tokenURI(uint256 id_) public view returns (string memory) { return _tokenURIs[id_]; } function uri(uint256 id_) public view override returns (string memory) { return tokenURI(id_); } /** * @dev Returns the ids and balances of all tokens owned by the `account_` */ function getAllTokensOwned(address account_) public view returns (uint256[] memory, uint256[] memory) { uint256 index; uint256 balance; uint256[] memory tempIds = new uint256[](nextId); for (uint256 id; id < nextId; id++) { balance = balanceOf(account_, id); if (balanceOf(account_, id) > 0) { tempIds[index] = id; index++; } } uint256[] memory ids = new uint256[](index); uint256[] memory balances = new uint256[](index); for (uint256 i; i < index; i++) { ids[i] = tempIds[i]; balances[i] = balanceOf(account_, ids[i]); } return (ids, balances); } /** * @dev This function is used when the owner_ wants to add a new admin */ function addAdmins(address[] calldata accounts_) external onlyOwner { _setAdmin(accounts_, true); emit AdminAdded(accounts_); } /** * @dev This function is used when pool owner_ wants to remove an admin */ function removeAdmins(address[] calldata accounts_) external onlyOwner { _setAdmin(accounts_, false); emit AdminRemoved(accounts_); } /** * @dev Sets a new URI for all token types */ function updateURI(string memory newuri_) public onlyOwner { _setURI(newuri_); emit URIUpdated(newuri_); } /** * @dev set contract account that can create, mint & burn */ function setGameContractStatus(address gameContract_, bool status_) external onlyOwner { gameContracts[gameContract_] = status_; emit GameContractUpdated(gameContract_, status_); } /** * @dev Sets a new URI for token */ function updateTokenURI(uint256 id_, string memory newUri_) public onlyAdminOrOwner { require(id_ < nextId, "Setting URI for non existent token"); _tokenURIs[id_] = newUri_; emit TokenURIUpdated(id_, newUri_); } /** * @dev Creates a new token type and assigns initialSupply to an address * NOTE: remove onlyOwner if you want third parties to create new tokens on your contract (which may change your IDs) * @param to_ which account NFT to be minted * @param initialSupply_ amount to supply the first owner_ * @param uri_ Optional URI for this token type * @param data_ Data to pass if receiver is contract * @return id of newly created token */ function create( address to_, uint256 initialSupply_, string calldata uri_, bytes calldata data_ ) external onlyGameContractOrAdminOrOwner returns (uint256) { uint256 id = nextId; if (bytes(uri_).length > 0) { emit URI(uri_, id); } _tokenURIs[id] = uri_; _tokenSupply[id] = initialSupply_; nextId++; _mint(to_, id, initialSupply_, data_); emit TokenCreated(to_, id, initialSupply_, uri_); return id; } /** * @dev Batch version of create function **/ function createBatch( address to_, uint256[] calldata initialSupply_, string[] calldata uri_, bytes calldata data_ ) external onlyGameContractOrAdminOrOwner { require(initialSupply_.length > 0, "Args array can't be empty"); require(initialSupply_.length > 0 && initialSupply_.length == uri_.length, "Args length dont match"); uint256 id = nextId; uint256[] memory ids = new uint256[](initialSupply_.length); for (uint256 i; i < ids.length; i++) { ids[i] = id; if (bytes(uri_[i]).length > 0) { emit URI(uri_[i], id); } _tokenURIs[id] = uri_[i]; _tokenSupply[id] = initialSupply_[i]; id++; } nextId = id; _mintBatch(to_, ids, initialSupply_, data_); emit TokenBatchCreated(to_, ids, initialSupply_, uri_); } /** * @dev Creates `amount` tokens of token type `id_`, and assigns them to `to`. */ function mint( address to_, uint256 id_, uint256 value_, bytes memory data ) public onlyGameContractOrAdminOrOwner returns (bool) { require(id_ < nextId, "Minting non existent token"); _tokenSupply[id_] += value_; _mint(to_, id_, value_, data); emit TokenMinted(to_, id_, value_); return true; } /** * @dev batch version of mint */ function mintBatch( address to_, uint256[] memory ids_, uint256[] memory values_, bytes memory data ) public onlyGameContractOrAdminOrOwner returns (bool) { require(ids_.length == values_.length, "Ids and values length mismatch"); for (uint256 i = 0; i < ids_.length; i++) { require(ids_[i] < nextId, "Minting non existent token"); _tokenSupply[ids_[i]] += values_[i]; } _mintBatch(to_, ids_, values_, data); emit TokenBatchMinted(to_, ids_, values_); return true; } /** * @dev Destroys `amount` tokens of token type `id_` from `from` */ function burn( address owner_, uint256 id_, uint256 value_ ) public returns (bool) { require( owner_ == _msgSender() || isApprovedForAll(owner_, _msgSender()), "ORareNft: transfer caller is not owner nor approved" ); _burn(owner_, id_, value_); _tokenSupply[id_] -= value_; emit TokenBurned(owner_, id_, value_); return true; } /** * @dev batch version of burn */ function burnBatch( address owner_, uint256[] memory ids_, uint256[] memory values_ ) public returns (bool) { require( owner_ == _msgSender() || isApprovedForAll(owner_, _msgSender()), "ORareNft: transfer caller is not owner nor approved" ); _burnBatch(owner_, ids_, values_); for (uint256 i = 0; i < ids_.length; i++) { _tokenSupply[ids_[i]] -= values_[i]; } emit TokenBatchBurned(owner_, ids_, values_); return true; } function _setAdmin(address[] calldata accounts_, bool state_) private { for (uint256 i; i < accounts_.length; i++) { require(accounts_[i] != address(0), "Invalid address"); admins[accounts_[i]] = state_; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/ERC1155Pausable.sol) pragma solidity ^0.8.0; import "../ERC1155.sol"; import "../../../security/Pausable.sol"; /** * @dev ERC1155 token with pausable token transfers, minting and burning. * * Useful for scenarios such as preventing trades until the end of an evaluation * period, or having an emergency switch for freezing all token transfers in the * event of a large bug. * * _Available since v3.1._ */ abstract contract ERC1155Pausable is ERC1155, Pausable { /** * @dev See {ERC1155-_beforeTokenTransfer}. * * Requirements: * * - the contract must not be paused. */ function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual override { super._beforeTokenTransfer(operator, from, to, ids, amounts, data); require(!paused(), "ERC1155Pausable: token transfer while paused"); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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 Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _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); } }
/* Copyright 2022 https://propel.xyz SPDX-License-Identifier: MIT */ pragma solidity 0.8.13; import "@openzeppelin/contracts/interfaces/IERC1155.sol"; interface IORareNft is IERC1155 { event AdminAdded(address[] accounts); event AdminRemoved(address[] accounts); event URIUpdated(string uri); event TokenURIUpdated(uint256 indexed id, string uri); event GameContractUpdated(address indexed gameContract, bool status); event TokenCreated(address indexed to, uint256 indexed id, uint256 initialSupply, string uri); event TokenBatchCreated(address indexed to, uint256[] ids_, uint256[] value, string[] uri); event TokenMinted(address indexed to, uint256 indexed id, uint256 value); event TokenBatchMinted(address indexed to, uint256[] ids_, uint256[] value); event TokenBurned(address indexed to, uint256 indexed id, uint256 value); event TokenBatchBurned(address indexed owner, uint256[] ids_, uint256[] value); function nextId() external view returns (uint256); function totalSupply(uint256 id_) external view returns (uint256); function tokenURI(uint256 id_) external view returns (string memory); function getAllTokensOwned(address account_) external view returns (uint256[] memory, uint256[] memory); function updateURI(string memory newuri_) external; function updateTokenURI(uint256 id_, string memory newuri_) external; function setGameContractStatus(address gameContract_, bool status_) external; function create( address to_, uint256 initialSupply_, string calldata uri_, bytes calldata data_ ) external returns (uint256); function createBatch( address to_, uint256[] calldata initialSupply_, string[] calldata uri_, bytes calldata data_ ) external; function mint( address to_, uint256 id_, uint256 value_, bytes memory data_ ) external returns (bool); function mintBatch( address to_, uint256[] memory ids_, uint256[] memory values_, bytes memory data_ ) external returns (bool); function burn( address owner_, uint256 id_, uint256 value_ ) external returns (bool); function burnBatch( address owner_, uint256[] memory ids_, uint256[] memory values_ ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/ERC1155.sol) pragma solidity ^0.8.0; import "./IERC1155.sol"; import "./IERC1155Receiver.sol"; import "./extensions/IERC1155MetadataURI.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the basic standard multi-token. * See https://eips.ethereum.org/EIPS/eip-1155 * Originally based on code by Enjin: https://github.com/enjin/erc-1155 * * _Available since v3.1._ */ contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI { using Address for address; // Mapping from token ID to account balances mapping(uint256 => mapping(address => uint256)) private _balances; // Mapping from account to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json string private _uri; /** * @dev See {_setURI}. */ constructor(string memory uri_) { _setURI(uri_); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC1155).interfaceId || interfaceId == type(IERC1155MetadataURI).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC1155MetadataURI-uri}. * * This implementation returns the same URI for *all* token types. It relies * on the token type ID substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * Clients calling this function must replace the `\{id\}` substring with the * actual token type ID. */ function uri(uint256) public view virtual override returns (string memory) { return _uri; } /** * @dev See {IERC1155-balanceOf}. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) public view virtual override returns (uint256) { require(account != address(0), "ERC1155: balance query for the zero address"); return _balances[id][account]; } /** * @dev See {IERC1155-balanceOfBatch}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] memory accounts, uint256[] memory ids) public view virtual override returns (uint256[] memory) { require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch"); uint256[] memory batchBalances = new uint256[](accounts.length); for (uint256 i = 0; i < accounts.length; ++i) { batchBalances[i] = balanceOf(accounts[i], ids[i]); } return batchBalances; } /** * @dev See {IERC1155-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC1155-isApprovedForAll}. */ function isApprovedForAll(address account, address operator) public view virtual override returns (bool) { return _operatorApprovals[account][operator]; } /** * @dev See {IERC1155-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: caller is not owner nor approved" ); _safeTransferFrom(from, to, id, amount, data); } /** * @dev See {IERC1155-safeBatchTransferFrom}. */ function safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: transfer caller is not owner nor approved" ); _safeBatchTransferFrom(from, to, ids, amounts, data); } /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, to, _asSingletonArray(id), _asSingletonArray(amount), 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); _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); _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(); _beforeTokenTransfer(operator, address(0), to, _asSingletonArray(id), _asSingletonArray(amount), data); _balances[id][to] += amount; emit TransferSingle(operator, address(0), to, id, amount); _doSafeTransferAcceptanceCheck(operator, address(0), to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _mintBatch( address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), to, ids, amounts, data); for (uint256 i = 0; i < ids.length; i++) { _balances[ids[i]][to] += amounts[i]; } emit TransferBatch(operator, address(0), to, ids, amounts); _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data); } /** * @dev Destroys `amount` tokens of token type `id` from `from` * * Requirements: * * - `from` cannot be the zero address. * - `from` must have at least `amount` tokens of token type `id`. */ function _burn( address from, uint256 id, uint256 amount ) internal virtual { require(from != address(0), "ERC1155: burn from the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, address(0), _asSingletonArray(id), _asSingletonArray(amount), ""); 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); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}. * * Requirements: * * - `ids` and `amounts` must have the same length. */ function _burnBatch( address from, uint256[] memory ids, uint256[] memory amounts ) internal virtual { require(from != address(0), "ERC1155: burn from the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, address(0), ids, amounts, ""); for (uint256 i = 0; i < ids.length; i++) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][from] = fromBalance - amount; } } emit TransferBatch(operator, from, address(0), ids, amounts); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC1155: setting approval status for self"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Hook that is called before any token transfer. This includes minting * and burning, as well as batched variants. * * The same hook is called on both single and batched variants. For single * transfers, the length of the `id` and `amount` arrays will be 1. * * Calling conditions (for each `id` and `amount` pair): * * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens * of token type `id` will be transferred to `to`. * - When `from` is zero, `amount` tokens of token type `id` will be minted * for `to`. * - when `to` is zero, `amount` of ``from``'s tokens of token type `id` * will be burned. * - `from` and `to` are never both zero. * - `ids` and `amounts` have the same, non-zero length. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual {} 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 v4.4.1 (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. * * _Available since v3.1._ */ interface IERC1155 is IERC165 { /** * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch( address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values ); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll(address indexed account, address indexed operator, bool approved); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the amount of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes calldata data ) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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. 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. To accept the transfer(s), this must return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` (i.e. 0xbc197c81, or its own function selector). @param operator The address which initiated the batch transfer (i.e. msg.sender) @param from The address which previously owned the token @param ids An array containing ids of each token being transferred (order and length must match values array) @param values An array containing amounts of each token being transferred (order and length must match ids array) @param data Additional data with no specified format @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed */ function onERC1155BatchReceived( address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol) pragma solidity ^0.8.0; import "../IERC1155.sol"; /** * @dev Interface of the optional ERC1155MetadataExtension interface, as defined * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP]. * * _Available since v3.1._ */ interface IERC1155MetadataURI is IERC1155 { /** * @dev Returns the URI for token type `id`. * * If the `\{id\}` substring is present in the URI, it must be replaced by * clients with the actual token type ID. */ function uri(uint256 id) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC1155.sol) pragma solidity ^0.8.0; import "../token/ERC1155/IERC1155.sol";
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"uri_","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address[]","name":"accounts","type":"address[]"}],"name":"AdminAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address[]","name":"accounts","type":"address[]"}],"name":"AdminRemoved","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":"gameContract","type":"address"},{"indexed":false,"internalType":"bool","name":"status","type":"bool"}],"name":"GameContractUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids_","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"value","type":"uint256[]"}],"name":"TokenBatchBurned","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids_","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"value","type":"uint256[]"},{"indexed":false,"internalType":"string[]","name":"uri","type":"string[]"}],"name":"TokenBatchCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids_","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"value","type":"uint256[]"}],"name":"TokenBatchMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TokenBurned","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"initialSupply","type":"uint256"},{"indexed":false,"internalType":"string","name":"uri","type":"string"}],"name":"TokenCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TokenMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"string","name":"uri","type":"string"}],"name":"TokenURIUpdated","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"uri","type":"string"}],"name":"URIUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"address[]","name":"accounts_","type":"address[]"}],"name":"addAdmins","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"admins","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner_","type":"address"},{"internalType":"uint256","name":"id_","type":"uint256"},{"internalType":"uint256","name":"value_","type":"uint256"}],"name":"burn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner_","type":"address"},{"internalType":"uint256[]","name":"ids_","type":"uint256[]"},{"internalType":"uint256[]","name":"values_","type":"uint256[]"}],"name":"burnBatch","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to_","type":"address"},{"internalType":"uint256","name":"initialSupply_","type":"uint256"},{"internalType":"string","name":"uri_","type":"string"},{"internalType":"bytes","name":"data_","type":"bytes"}],"name":"create","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to_","type":"address"},{"internalType":"uint256[]","name":"initialSupply_","type":"uint256[]"},{"internalType":"string[]","name":"uri_","type":"string[]"},{"internalType":"bytes","name":"data_","type":"bytes"}],"name":"createBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"gameContracts","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account_","type":"address"}],"name":"getAllTokensOwned","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"}],"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":"id_","type":"uint256"},{"internalType":"uint256","name":"value_","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"mint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to_","type":"address"},{"internalType":"uint256[]","name":"ids_","type":"uint256[]"},{"internalType":"uint256[]","name":"values_","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"mintBatch","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"nextId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts_","type":"address[]"}],"name":"removeAdmins","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"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":"address","name":"gameContract_","type":"address"},{"internalType":"bool","name":"status_","type":"bool"}],"name":"setGameContractStatus","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":[{"internalType":"uint256","name":"id_","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id_","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":"uint256","name":"id_","type":"uint256"},{"internalType":"string","name":"newUri_","type":"string"}],"name":"updateTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newuri_","type":"string"}],"name":"updateURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id_","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b50604051620038823803806200388283398101604081905262000034916200018c565b8062000040816200005d565b506003805460ff19169055620000563362000076565b50620002a4565b805162000072906002906020840190620000d0565b5050565b600380546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620000de9062000268565b90600052602060002090601f0160209004810192826200010257600085556200014d565b82601f106200011d57805160ff19168380011785556200014d565b828001600101855582156200014d579182015b828111156200014d57825182559160200191906001019062000130565b506200015b9291506200015f565b5090565b5b808211156200015b576000815560010162000160565b634e487b7160e01b600052604160045260246000fd5b60006020808385031215620001a057600080fd5b82516001600160401b0380821115620001b857600080fd5b818501915085601f830112620001cd57600080fd5b815181811115620001e257620001e262000176565b604051601f8201601f19908116603f011681019083821181831017156200020d576200020d62000176565b8160405282815288868487010111156200022657600080fd5b600093505b828410156200024a57848401860151818501870152928501926200022b565b828411156200025c5760008684830101525b98975050505050505050565b600181811c908216806200027d57607f821691505b6020821081036200029e57634e487b7160e01b600052602260045260246000fd5b50919050565b6135ce80620002b46000396000f3fe608060405234801561001057600080fd5b50600436106101ce5760003560e01c8063715018a611610104578063bd85b039116100a2578063e985e9c511610071578063e985e9c514610421578063f242432a1461045d578063f2fde38b14610470578063f5298aca1461048357600080fd5b8063bd85b039146103c8578063c30f4a5a146103e8578063c87b56dd146103fb578063e38e3b241461040e57600080fd5b80638da5cb5b116100de5780638da5cb5b146103665780639c54df641461038f578063a22cb465146103a2578063b089a0c5146103b557600080fd5b8063715018a61461032a578063729efebf14610332578063731133e91461035357600080fd5b8063429b62e5116101715780635c975abb1161014b5780635c975abb146102e057806361b8ce8c146102eb5780636b20c454146102f45780636ddd474d1461030757600080fd5b8063429b62e51461028a57806343f79a8c146102ad5780634e1273f4146102c057600080fd5b806318e97fd1116101ad57806318e97fd11461023c5780631f7fdffa146102515780632eb2c2d614610264578063377e11e01461027757600080fd5b8062fdd58e146101d357806301ffc9a7146101f95780630e89341c1461021c575b600080fd5b6101e66101e1366004612609565b610496565b6040519081526020015b60405180910390f35b61020c610207366004612649565b61052d565b60405190151581526020016101f0565b61022f61022a36600461266d565b61057f565b6040516101f091906126d3565b61024f61024a36600461279b565b61058a565b005b61020c61025f366004612875565b6106cd565b61024f61027236600461290d565b6108d1565b61024f610285366004612a01565b610968565b61020c610298366004612a42565b60066020526000908152604090205460ff1681565b61024f6102bb366004612a9e565b6109e1565b6102d36102ce366004612b48565b610d4f565b6040516101f09190612c43565b60035460ff1661020c565b6101e660085481565b61020c610302366004612c56565b610e78565b61020c610315366004612a42565b60076020526000908152604090205460ff1681565b61024f610f84565b610345610340366004612a42565b610fc0565b6040516101f0929190612cc9565b61020c610361366004612cf7565b61119a565b60035461010090046001600160a01b03166040516001600160a01b0390911681526020016101f0565b61024f61039d366004612a01565b6112df565b61024f6103b0366004612d4b565b61134c565b61024f6103c3366004612d4b565b61135b565b6101e66103d636600461266d565b60009081526004602052604090205490565b61024f6103f6366004612d87565b6113e3565b61022f61040936600461266d565b611456565b6101e661041c366004612dc3565b6114f8565b61020c61042f366004612e4c565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b61024f61046b366004612e7f565b611682565b61024f61047e366004612a42565b611709565b61020c610491366004612ee3565b6117aa565b60006001600160a01b0383166105075760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b148061055e57506001600160e01b031982166303a24d0760e21b145b8061057957506301ffc9a760e01b6001600160e01b03198316145b92915050565b606061057982611456565b3360009081526006602052604090205460ff16806105c9575060035461010090046001600160a01b03166001600160a01b0316336001600160a01b0316145b6106155760405162461bcd60e51b815260206004820152601d60248201527f43616c6c6572206973206e6f742061646d696e206e6f72206f776e657200000060448201526064016104fe565b60085482106106715760405162461bcd60e51b815260206004820152602260248201527f53657474696e672055524920666f72206e6f6e206578697374656e7420746f6b60448201526132b760f11b60648201526084016104fe565b60008281526005602090815260409091208251610690928401906124e0565b50817f931f495b9a8e5d8e61946ea5d61e021f636cfe213a801f97589c18c152e408bd826040516106c191906126d3565b60405180910390a25050565b3360009081526007602052604081205460ff16806106fa57503360009081526006602052604090205460ff165b80610726575060035461010090046001600160a01b03166001600160a01b0316336001600160a01b0316145b6107425760405162461bcd60e51b81526004016104fe90612f16565b82518451146107935760405162461bcd60e51b815260206004820152601e60248201527f49647320616e642076616c756573206c656e677468206d69736d61746368000060448201526064016104fe565b60005b8451811015610876576008548582815181106107b4576107b4612f4d565b6020026020010151106108095760405162461bcd60e51b815260206004820152601a60248201527f4d696e74696e67206e6f6e206578697374656e7420746f6b656e00000000000060448201526064016104fe565b83818151811061081b5761081b612f4d565b60200260200101516004600087848151811061083957610839612f4d565b60200260200101518152602001908152602001600020600082825461085e9190612f79565b9091555081905061086e81612f91565b915050610796565b506108838585858561185c565b846001600160a01b03167f975b10251631af0537a231daef9c6280fe469de096617cf778249f61cb60886e85856040516108be929190612cc9565b60405180910390a2506001949350505050565b6001600160a01b0385163314806108ed57506108ed853361042f565b6109545760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b60648201526084016104fe565b61096185858585856119b6565b5050505050565b6003546001600160a01b036101009091041633146109985760405162461bcd60e51b81526004016104fe90612faa565b6109a482826000611b60565b7fbc302ee0d426b6f39f889e747050982023133dfc8fc46d1848d8e182c06af7be82826040516109d5929190612fdf565b60405180910390a15050565b3360009081526007602052604090205460ff1680610a0e57503360009081526006602052604090205460ff165b80610a3a575060035461010090046001600160a01b03166001600160a01b0316336001600160a01b0316145b610a565760405162461bcd60e51b81526004016104fe90612f16565b84610aa35760405162461bcd60e51b815260206004820152601a60248201527f417267732061727261792063616e27742062652020656d70747900000000000060448201526064016104fe565b8415801590610ab157508483145b610af65760405162461bcd60e51b8152602060048201526016602482015275082e4cee640d8cadccee8d040c8dedce840dac2e8c6d60531b60448201526064016104fe565b6008546000866001600160401b03811115610b1357610b136126e6565b604051908082528060200260200182016040528015610b3c578160200160208202803683370190505b50905060005b8151811015610c815782828281518110610b5e57610b5e612f4d565b6020026020010181815250506000878783818110610b7e57610b7e612f4d565b9050602002810190610b909190613020565b90501115610bf557827f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b888884818110610bcc57610bcc612f4d565b9050602002810190610bde9190613020565b604051610bec92919061308f565b60405180910390a25b868682818110610c0757610c07612f4d565b9050602002810190610c199190613020565b6000858152600560205260409020610c32929091612564565b50888882818110610c4557610c45612f4d565b6000868152600460209081526040909120910292909201359091555082610c6b81612f91565b9350508080610c7990612f91565b915050610b42565b5081600881905550610cfb89828a8a8080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050604080516020601f8c018190048102820181019092528a815292508a915089908190840183828082843760009201919091525061185c92505050565b886001600160a01b03167f99560660bc023edcf92f7604bad1ba8c16bdc68b9e50a02aa4eb4bb5f251a21a828a8a8a8a604051610d3c9594939291906130a3565b60405180910390a2505050505050505050565b60608151835114610db45760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b60648201526084016104fe565b600083516001600160401b03811115610dcf57610dcf6126e6565b604051908082528060200260200182016040528015610df8578160200160208202803683370190505b50905060005b8451811015610e7057610e43858281518110610e1c57610e1c612f4d565b6020026020010151858381518110610e3657610e36612f4d565b6020026020010151610496565b828281518110610e5557610e55612f4d565b6020908102919091010152610e6981612f91565b9050610dfe565b509392505050565b60006001600160a01b038416331480610e965750610e96843361042f565b610eb25760405162461bcd60e51b81526004016104fe9061318e565b610ebd848484611c48565b60005b8351811015610f3657828181518110610edb57610edb612f4d565b602002602001015160046000868481518110610ef957610ef9612f4d565b602002602001015181526020019081526020016000206000828254610f1e91906131e1565b90915550819050610f2e81612f91565b915050610ec0565b50836001600160a01b03167f47d6b76eb7b528d9210c10fd7d6d6d20982b39f6927928e79f37033ccb9521968484604051610f72929190612cc9565b60405180910390a25060019392505050565b6003546001600160a01b03610100909104163314610fb45760405162461bcd60e51b81526004016104fe90612faa565b610fbe6000611dd6565b565b60608060008060006008546001600160401b03811115610fe257610fe26126e6565b60405190808252806020026020018201604052801561100b578160200160208202803683370190505b50905060005b600854811015611077576110258782610496565b925060006110338883610496565b1115611065578082858151811061104c5761104c612f4d565b60209081029190910101528361106181612f91565b9450505b8061106f81612f91565b915050611011565b506000836001600160401b03811115611092576110926126e6565b6040519080825280602002602001820160405280156110bb578160200160208202803683370190505b5090506000846001600160401b038111156110d8576110d86126e6565b604051908082528060200260200182016040528015611101578160200160208202803683370190505b50905060005b8581101561118c5783818151811061112157611121612f4d565b602002602001015183828151811061113b5761113b612f4d565b60200260200101818152505061115d89848381518110610e3657610e36612f4d565b82828151811061116f5761116f612f4d565b60209081029190910101528061118481612f91565b915050611107565b509097909650945050505050565b3360009081526007602052604081205460ff16806111c757503360009081526006602052604090205460ff165b806111f3575060035461010090046001600160a01b03166001600160a01b0316336001600160a01b0316145b61120f5760405162461bcd60e51b81526004016104fe90612f16565b60085484106112605760405162461bcd60e51b815260206004820152601a60248201527f4d696e74696e67206e6f6e206578697374656e7420746f6b656e00000000000060448201526064016104fe565b6000848152600460205260408120805485929061127e908490612f79565b90915550611290905085858585611e30565b83856001600160a01b03167f96234cb3d6c373a1aaa06497a540bc166d4b0359243a088eaf95e21d7253d0be856040516112cc91815260200190565b60405180910390a3506001949350505050565b6003546001600160a01b0361010090910416331461130f5760405162461bcd60e51b81526004016104fe90612faa565b61131b82826001611b60565b7f6e2ec61f3f6e11676f4885a93cf08ec3f6c54e783610709609ec4aca83efea4082826040516109d5929190612fdf565b611357338383611f06565b5050565b6003546001600160a01b0361010090910416331461138b5760405162461bcd60e51b81526004016104fe90612faa565b6001600160a01b038216600081815260076020908152604091829020805460ff191685151590811790915591519182527fa339a61dd1bc01ee8eb8d6131676752de8c9efa60e6259db7965a6df3c37702691016106c1565b6003546001600160a01b036101009091041633146114135760405162461bcd60e51b81526004016104fe90612faa565b61141c81611fe6565b7fe3afa94108b5f5e82e5f6e539d161ff4b5402a85f696c67b9768ec3ae54ce3668160405161144b91906126d3565b60405180910390a150565b6000818152600560205260409020805460609190611473906131f8565b80601f016020809104026020016040519081016040528092919081815260200182805461149f906131f8565b80156114ec5780601f106114c1576101008083540402835291602001916114ec565b820191906000526020600020905b8154815290600101906020018083116114cf57829003601f168201915b50505050509050919050565b3360009081526007602052604081205460ff168061152557503360009081526006602052604090205460ff165b80611551575060035461010090046001600160a01b03166001600160a01b0316336001600160a01b0316145b61156d5760405162461bcd60e51b81526004016104fe90612f16565b60085484156115b157807f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b87876040516115a892919061308f565b60405180910390a25b60008181526005602052604090206115ca908787612564565b50600081815260046020526040812088905560088054916115ea83612f91565b919050555061163188828987878080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611e3092505050565b80886001600160a01b03167f982356893a0e3295378991b6ae7b7d4b6867833c4e38d5b1ccdeb8bdd185f29e89898960405161166f93929190613232565b60405180910390a3979650505050505050565b6001600160a01b03851633148061169e575061169e853361042f565b6116fc5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b60648201526084016104fe565b6109618585858585611ff9565b6003546001600160a01b036101009091041633146117395760405162461bcd60e51b81526004016104fe90612faa565b6001600160a01b03811661179e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016104fe565b6117a781611dd6565b50565b60006001600160a01b0384163314806117c857506117c8843361042f565b6117e45760405162461bcd60e51b81526004016104fe9061318e565b6117ef848484612116565b6000838152600460205260408120805484929061180d9084906131e1565b909155505060405182815283906001600160a01b038616907fde3ca466246b0da455138dbea78dacd91d3c40dc98d5846ff0193bf67c24b0e79060200160405180910390a35060019392505050565b6001600160a01b0384166118825760405162461bcd60e51b81526004016104fe9061324c565b81518351146118a35760405162461bcd60e51b81526004016104fe9061328d565b336118b381600087878787612217565b60005b845181101561194e578381815181106118d1576118d1612f4d565b60200260200101516000808784815181106118ee576118ee612f4d565b602002602001015181526020019081526020016000206000886001600160a01b03166001600160a01b0316815260200190815260200160002060008282546119369190612f79565b9091555081905061194681612f91565b9150506118b6565b50846001600160a01b031660006001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161199f929190612cc9565b60405180910390a46109618160008787878761227f565b81518351146119d75760405162461bcd60e51b81526004016104fe9061328d565b6001600160a01b0384166119fd5760405162461bcd60e51b81526004016104fe906132d5565b33611a0c818787878787612217565b60005b8451811015611af2576000858281518110611a2c57611a2c612f4d565b602002602001015190506000858381518110611a4a57611a4a612f4d565b602090810291909101810151600084815280835260408082206001600160a01b038e168352909352919091205490915081811015611a9a5760405162461bcd60e51b81526004016104fe9061331a565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611ad7908490612f79565b9250508190555050505080611aeb90612f91565b9050611a0f565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611b42929190612cc9565b60405180910390a4611b5881878787878761227f565b505050505050565b60005b82811015611c42576000848483818110611b7f57611b7f612f4d565b9050602002016020810190611b949190612a42565b6001600160a01b031603611bdc5760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b60448201526064016104fe565b8160066000868685818110611bf357611bf3612f4d565b9050602002016020810190611c089190612a42565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580611c3a81612f91565b915050611b63565b50505050565b6001600160a01b038316611c6e5760405162461bcd60e51b81526004016104fe90613364565b8051825114611c8f5760405162461bcd60e51b81526004016104fe9061328d565b6000339050611cb281856000868660405180602001604052806000815250612217565b60005b8351811015611d77576000848281518110611cd257611cd2612f4d565b602002602001015190506000848381518110611cf057611cf0612f4d565b602090810291909101810151600084815280835260408082206001600160a01b038c168352909352919091205490915081811015611d405760405162461bcd60e51b81526004016104fe906133a7565b6000928352602083815260408085206001600160a01b038b1686529091529092209103905580611d6f81612f91565b915050611cb5565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051611dc8929190612cc9565b60405180910390a450505050565b600380546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038416611e565760405162461bcd60e51b81526004016104fe9061324c565b33611e7681600087611e67886123da565b611e70886123da565b87612217565b6000848152602081815260408083206001600160a01b038916845290915281208054859290611ea6908490612f79565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461096181600087878787612425565b816001600160a01b0316836001600160a01b031603611f795760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b60648201526084016104fe565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b80516113579060029060208401906124e0565b6001600160a01b03841661201f5760405162461bcd60e51b81526004016104fe906132d5565b3361202f818787611e67886123da565b6000848152602081815260408083206001600160a01b038a168452909152902054838110156120705760405162461bcd60e51b81526004016104fe9061331a565b6000858152602081815260408083206001600160a01b038b81168552925280832087850390559088168252812080548692906120ad908490612f79565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461210d828888888888612425565b50505050505050565b6001600160a01b03831661213c5760405162461bcd60e51b81526004016104fe90613364565b3361216b8185600061214d876123da565b612156876123da565b60405180602001604052806000815250612217565b6000838152602081815260408083206001600160a01b0388168452909152902054828110156121ac5760405162461bcd60e51b81526004016104fe906133a7565b6000848152602081815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b60035460ff1615611b585760405162461bcd60e51b815260206004820152602c60248201527f455243313135355061757361626c653a20746f6b656e207472616e736665722060448201526b1dda1a5b19481c185d5cd95960a21b60648201526084016104fe565b6001600160a01b0384163b15611b585760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906122c390899089908890889088906004016133eb565b6020604051808303816000875af19250505080156122fe575060408051601f3d908101601f191682019092526122fb91810190613449565b60015b6123aa5761230a613466565b806308c379a003612343575061231e613482565b806123295750612345565b8060405162461bcd60e51b81526004016104fe91906126d3565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60648201526084016104fe565b6001600160e01b0319811663bc197c8160e01b1461210d5760405162461bcd60e51b81526004016104fe9061350b565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061241457612414612f4d565b602090810291909101015292915050565b6001600160a01b0384163b15611b585760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906124699089908990889088908890600401613553565b6020604051808303816000875af19250505080156124a4575060408051601f3d908101601f191682019092526124a191810190613449565b60015b6124b05761230a613466565b6001600160e01b0319811663f23a6e6160e01b1461210d5760405162461bcd60e51b81526004016104fe9061350b565b8280546124ec906131f8565b90600052602060002090601f01602090048101928261250e5760008555612554565b82601f1061252757805160ff1916838001178555612554565b82800160010185558215612554579182015b82811115612554578251825591602001919060010190612539565b506125609291506125d8565b5090565b828054612570906131f8565b90600052602060002090601f0160209004810192826125925760008555612554565b82601f106125ab5782800160ff19823516178555612554565b82800160010185558215612554579182015b828111156125545782358255916020019190600101906125bd565b5b8082111561256057600081556001016125d9565b80356001600160a01b038116811461260457600080fd5b919050565b6000806040838503121561261c57600080fd5b612625836125ed565b946020939093013593505050565b6001600160e01b0319811681146117a757600080fd5b60006020828403121561265b57600080fd5b813561266681612633565b9392505050565b60006020828403121561267f57600080fd5b5035919050565b6000815180845260005b818110156126ac57602081850181015186830182015201612690565b818111156126be576000602083870101525b50601f01601f19169290920160200192915050565b6020815260006126666020830184612686565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b0381118282101715612721576127216126e6565b6040525050565b600082601f83011261273957600080fd5b81356001600160401b03811115612752576127526126e6565b604051612769601f8301601f1916602001826126fc565b81815284602083860101111561277e57600080fd5b816020850160208301376000918101602001919091529392505050565b600080604083850312156127ae57600080fd5b8235915060208301356001600160401b038111156127cb57600080fd5b6127d785828601612728565b9150509250929050565b60006001600160401b038211156127fa576127fa6126e6565b5060051b60200190565b600082601f83011261281557600080fd5b81356020612822826127e1565b60405161282f82826126fc565b83815260059390931b850182019282810191508684111561284f57600080fd5b8286015b8481101561286a5780358352918301918301612853565b509695505050505050565b6000806000806080858703121561288b57600080fd5b612894856125ed565b935060208501356001600160401b03808211156128b057600080fd5b6128bc88838901612804565b945060408701359150808211156128d257600080fd5b6128de88838901612804565b935060608701359150808211156128f457600080fd5b5061290187828801612728565b91505092959194509250565b600080600080600060a0868803121561292557600080fd5b61292e866125ed565b945061293c602087016125ed565b935060408601356001600160401b038082111561295857600080fd5b61296489838a01612804565b9450606088013591508082111561297a57600080fd5b61298689838a01612804565b9350608088013591508082111561299c57600080fd5b506129a988828901612728565b9150509295509295909350565b60008083601f8401126129c857600080fd5b5081356001600160401b038111156129df57600080fd5b6020830191508360208260051b85010111156129fa57600080fd5b9250929050565b60008060208385031215612a1457600080fd5b82356001600160401b03811115612a2a57600080fd5b612a36858286016129b6565b90969095509350505050565b600060208284031215612a5457600080fd5b612666826125ed565b60008083601f840112612a6f57600080fd5b5081356001600160401b03811115612a8657600080fd5b6020830191508360208285010111156129fa57600080fd5b60008060008060008060006080888a031215612ab957600080fd5b612ac2886125ed565b965060208801356001600160401b0380821115612ade57600080fd5b612aea8b838c016129b6565b909850965060408a0135915080821115612b0357600080fd5b612b0f8b838c016129b6565b909650945060608a0135915080821115612b2857600080fd5b50612b358a828b01612a5d565b989b979a50959850939692959293505050565b60008060408385031215612b5b57600080fd5b82356001600160401b0380821115612b7257600080fd5b818501915085601f830112612b8657600080fd5b81356020612b93826127e1565b604051612ba082826126fc565b83815260059390931b8501820192828101915089841115612bc057600080fd5b948201945b83861015612be557612bd6866125ed565b82529482019490820190612bc5565b96505086013592505080821115612bfb57600080fd5b506127d785828601612804565b600081518084526020808501945080840160005b83811015612c3857815187529582019590820190600101612c1c565b509495945050505050565b6020815260006126666020830184612c08565b600080600060608486031215612c6b57600080fd5b612c74846125ed565b925060208401356001600160401b0380821115612c9057600080fd5b612c9c87838801612804565b93506040860135915080821115612cb257600080fd5b50612cbf86828701612804565b9150509250925092565b604081526000612cdc6040830185612c08565b8281036020840152612cee8185612c08565b95945050505050565b60008060008060808587031215612d0d57600080fd5b612d16856125ed565b9350602085013592506040850135915060608501356001600160401b03811115612d3f57600080fd5b61290187828801612728565b60008060408385031215612d5e57600080fd5b612d67836125ed565b915060208301358015158114612d7c57600080fd5b809150509250929050565b600060208284031215612d9957600080fd5b81356001600160401b03811115612daf57600080fd5b612dbb84828501612728565b949350505050565b60008060008060008060808789031215612ddc57600080fd5b612de5876125ed565b95506020870135945060408701356001600160401b0380821115612e0857600080fd5b612e148a838b01612a5d565b90965094506060890135915080821115612e2d57600080fd5b50612e3a89828a01612a5d565b979a9699509497509295939492505050565b60008060408385031215612e5f57600080fd5b612e68836125ed565b9150612e76602084016125ed565b90509250929050565b600080600080600060a08688031215612e9757600080fd5b612ea0866125ed565b9450612eae602087016125ed565b9350604086013592506060860135915060808601356001600160401b03811115612ed757600080fd5b6129a988828901612728565b600080600060608486031215612ef857600080fd5b612f01846125ed565b95602085013595506040909401359392505050565b60208082526018908201527f43616c6c6572206973206e6f7420617574686f72697a65640000000000000000604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60008219821115612f8c57612f8c612f63565b500190565b600060018201612fa357612fa3612f63565b5060010190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082528181018390526000908460408401835b8681101561286a576001600160a01b0361300d846125ed565b1682529183019190830190600101612ff4565b6000808335601e1984360301811261303757600080fd5b8301803591506001600160401b0382111561305157600080fd5b6020019150368190038213156129fa57600080fd5b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b602081526000612dbb602083018486613066565b6060815260006130b66060830188612c08565b8281036020848101919091528682526001600160fb1b038711156130d957600080fd5b8660051b808983850137808301925050808201818584030160408601528086825260408401905060408760051b85010191508760005b8881101561317d57858403603f190183528135368b9003601e1901811261313557600080fd5b8a0180356001600160401b0381111561314d57600080fd5b8036038c131561315c57600080fd5b6131698682898501613066565b95505050918401919084019060010161310f565b50919b9a5050505050505050505050565b60208082526033908201527f4f526172654e66743a207472616e736665722063616c6c6572206973206e6f74604082015272081bdddb995c881b9bdc88185c1c1c9bdd9959606a1b606082015260800190565b6000828210156131f3576131f3612f63565b500390565b600181811c9082168061320c57607f821691505b60208210810361322c57634e487b7160e01b600052602260045260246000fd5b50919050565b838152604060208201526000612cee604083018486613066565b60208082526021908201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736040820152607360f81b606082015260800190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b6001600160a01b0386811682528516602082015260a06040820181905260009061341790830186612c08565b82810360608401526134298186612c08565b9050828103608084015261343d8185612686565b98975050505050505050565b60006020828403121561345b57600080fd5b815161266681612633565b600060033d111561347f5760046000803e5060005160e01c5b90565b600060443d10156134905790565b6040516003193d81016004833e81513d6001600160401b0381602484011181841117156134bf57505050505090565b82850191508151818111156134d75750505050505090565b843d87010160208285010111156134f15750505050505090565b613500602082860101876126fc565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a06080820181905260009061358d90830184612686565b97965050505050505056fea26469706673582212206d9dc93e36ddaa6a01051cd72a2d2948002b4bc2c9bc3d7bb804086fa6db09ed64736f6c634300080d003300000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : uri_ (string):
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000000
Age | Block | Fee Address | BC Fee Address | Voting Power | Jailed | Incoming |
---|
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.