ERC-1155
NFT
Overview
Max Total Supply
199
Holders
137
Market
Volume (24H)
0.083 ETH
Min Price (24H)
$59.31 @ 0.023000 ETH
Max Price (24H)
$154.72 @ 0.060000 ETH
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
ChampionsArena
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 "./Common.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/token/ERC1155/IERC1155Receiver.sol"; import "@openzeppelin/contracts/token/ERC1155/extensions/IERC1155MetadataURI.sol"; import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; import "@openzeppelin/contracts/token/ERC1155/utils/ERC1155Receiver.sol"; import "@openzeppelin/contracts/token/ERC1155/utils/ERC1155Holder.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "operator-filter-registry/src/UpdatableOperatorFilterer.sol"; contract ChampionsArena is IERC1155, ERC165, Pausable, CommonConstants, Ownable, IERC1155MetadataURI, UpdatableOperatorFilterer { using Address for address; uint256 constant TYPE_MASK = uint256(type(uint128).max) << 128; uint256 public constant NF_INDEX_MASK = type(uint128).max; uint256 constant TYPE_NF_BIT = 1 << 255; uint256 nonce; string public client; mapping(uint256 => mapping(address => uint256)) internal balances; // id => (owner => balance) mapping(address => mapping(address => bool)) internal operatorApproval; // owner => (operator => approved) mapping(uint256 => address) public nfOwners; mapping(uint256 => bool) public nfExists; mapping(uint256 => uint256) public tokenSupply; mapping(address => bool) internal creators; //URI mapping string private baseContractURI = ""; string private baseURI = ""; event Client(string _clientName); event Creator(address _creator, bool _authorized); event BaseURI(string baseURI); event ContractURI(string contractURI); event BaseTypeCreated(uint256 baseType); address private constant DEFAULT_REGISTRY = 0x000000000000AAeB6D7670E522A718067333cd4E; address private constant DEFAULT_SUBSCRIPTION = 0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6; constructor(string memory _client) UpdatableOperatorFilterer(DEFAULT_REGISTRY, DEFAULT_SUBSCRIPTION, true) { require(bytes(_client).length > 0, "Contract client name is required!"); creators[msg.sender] = true; client = _client; emit Client(_client); } modifier creatorOnly() { require(creators[msg.sender], "Creator permission required"); _; } function create(bool _isNF) external whenNotPaused creatorOnly returns (uint256 _type) { _type = (++nonce << 128); if (_isNF) { _type = _type | TYPE_NF_BIT; nfExists[_type] = true; } else { emit TransferSingle(msg.sender, address(0x0), address(0x0), _type, 0); } emit BaseTypeCreated(_type); return _type; } function mintNonFungible( uint256[] calldata _ids, address[] calldata _to, bytes calldata _data ) external whenNotPaused creatorOnly { require(_ids.length == _to.length, "IDs and recipients must be of same length"); for (uint256 i = 0; i < _to.length; ++i) { uint256 tokenType = getNonFungibleBaseType(_ids[i]); require(nfExists[tokenType], "NF token must exist"); require(isNonFungible(tokenType), "TokenType not non-fungible"); require(_to[i] != address(0x0), "Cannot mint to zero address"); require(nfOwners[_ids[i]] == address(0x0), "Token already owned"); address distributeTo = _to[i]; nfOwners[_ids[i]] = distributeTo; tokenSupply[tokenType] = tokenSupply[tokenType] + 1; balances[tokenType][distributeTo] = balances[tokenType][distributeTo] + 1; emit TransferSingle(msg.sender, address(0x0), distributeTo, _ids[i], 1); broadcastURIEvent(_ids[i]); if (distributeTo.isContract()) { _doSafeTransferAcceptanceCheck(msg.sender, msg.sender, distributeTo, _ids[i], 1, _data); } } } function mintFungible( uint256 _id, address[] calldata _to, uint256[] calldata _quantities, bytes calldata _data ) external whenNotPaused creatorOnly { require(isFungible(_id), "ID must be a non-fungible ID"); require(_to.length == _quantities.length, "Address and quantity length mismatch"); for (uint256 i = 0; i < _to.length; ++i) { require(_to[i] != address(0x0), "Recipient address cannot be zero"); balances[_id][_to[i]] = _quantities[i] + balances[_id][_to[i]]; tokenSupply[_id] = tokenSupply[_id] + _quantities[i]; emit TransferSingle(msg.sender, address(0x0), _to[i], _id, _quantities[i]); if (_to[i].isContract()) { _doSafeTransferAcceptanceCheck(msg.sender, msg.sender, _to[i], _id, _quantities[i], _data); } } } function safeTransferFrom( address _from, address _to, uint256 _id, uint256 _value, bytes calldata _data ) external override whenNotPaused onlyAllowedOperator(_from) { require(_to != address(0x0), "cannot send to zero address"); require(_from == msg.sender || operatorApproval[_from][msg.sender] == true, "Need operator approval for 3rd party transfers"); if (isNonFungible(_id)) { require(nfOwners[_id] == _from, "Invalid owner"); require(_value > 0, "quantity must be greater than zero"); nfOwners[_id] = _to; // You could keep balance of NF type in base type id like so: uint256 baseType = getNonFungibleBaseType(_id); balances[baseType][_from] = balances[baseType][_from] - _value; balances[baseType][_to] = balances[baseType][_to] + _value; } else { balances[_id][_from] = balances[_id][_from] - _value; balances[_id][_to] = balances[_id][_to] + _value; } emit TransferSingle(msg.sender, _from, _to, _id, _value); if (_to.isContract()) { _doSafeTransferAcceptanceCheck(msg.sender, _from, _to, _id, _value, _data); } } function safeBatchTransferFrom( address _from, address _to, uint256[] calldata _ids, uint256[] calldata _values, bytes calldata _data ) external override whenNotPaused onlyAllowedOperator(_from) { require(_to != address(0x0), "Cannot send to zero address"); require(_ids.length == _values.length, "Array length must match"); require(_from == msg.sender || operatorApproval[_from][msg.sender] == true, "Need operator approval for 3rd party transfers"); for (uint256 i = 0; i < _ids.length; ++i) { if (isNonFungible(_ids[i])) { require(nfOwners[_ids[i]] == _from, "Invalid owner"); require(_values[i] > 0, "quantity must be greater than zero"); nfOwners[_ids[i]] = _to; balances[getNonFungibleBaseType(_ids[i])][_from] = balances[getNonFungibleBaseType(_ids[i])][_from] - _values[i]; balances[getNonFungibleBaseType(_ids[i])][_to] = balances[getNonFungibleBaseType(_ids[i])][_to] + _values[i]; } else { balances[_ids[i]][_from] = balances[_ids[i]][_from] - _values[i]; balances[_ids[i]][_to] = _values[i] + balances[_ids[i]][_to]; } } emit TransferBatch(msg.sender, _from, _to, _ids, _values); if (_to.isContract()) { _doSafeBatchTransferAcceptanceCheck(msg.sender, _from, _to, _ids, _values, _data); } } function balanceOf(address _owner, uint256 _id) external view override returns (uint256) { if (isNonFungibleItem(_id)) return nfOwners[_id] == _owner ? 1 : 0; return balances[_id][_owner]; } function balanceOfBatch(address[] calldata _owners, uint256[] calldata _ids) external view override returns (uint256[] memory) { require(_owners.length == _ids.length, "Owners and ids length mismatch"); uint256[] memory balances_ = new uint256[](_owners.length); for (uint256 i = 0; i < _owners.length; ++i) { uint256 id = _ids[i]; if (isNonFungibleItem(id)) { balances_[i] = nfOwners[id] == _owners[i] ? 1 : 0; } else { balances_[i] = balances[id][_owners[i]]; } } return balances_; } function setApprovalForAll(address _operator, bool _approved) external override whenNotPaused onlyAllowedOperatorApproval(_operator) { require(msg.sender != _operator, "ERC1155: setting approval status for self"); operatorApproval[msg.sender][_operator] = _approved; emit ApprovalForAll(msg.sender, _operator, _approved); } function isApprovedForAll(address _owner, address _operator) external view override returns (bool) { return operatorApproval[_owner][_operator]; } function isNonFungible(uint256 _id) public pure returns (bool) { return _id & TYPE_NF_BIT == TYPE_NF_BIT; } function isFungible(uint256 _id) public pure returns (bool) { return _id & TYPE_NF_BIT == 0; } function getNonFungibleIndex(uint256 _id) public pure returns (uint256) { return _id & NF_INDEX_MASK; } function getNonFungibleBaseType(uint256 _id) public pure returns (uint256) { return _id & TYPE_MASK; } function isNonFungibleBaseType(uint256 _id) external pure returns (bool) { // A base type has the NF bit but does not have an index. return (_id & TYPE_NF_BIT == TYPE_NF_BIT) && (_id & NF_INDEX_MASK == 0); } function isNonFungibleItem(uint256 _id) public pure returns (bool) { // A base type has the NF bit but does has an index. return (_id & TYPE_NF_BIT == TYPE_NF_BIT) && (_id & NF_INDEX_MASK != 0); } function ownerOf(uint256 _id) external view returns (address) { return nfOwners[_id]; } function _doSafeTransferAcceptanceCheck( address _operator, address _from, address _to, uint256 _id, uint256 _value, bytes memory _data ) internal { require( ERC1155Receiver(_to).onERC1155Received(_operator, _from, _id, _value, _data) == ERC1155_ACCEPTED, "contract returned an unknown value from onERC1155Received" ); } function _doSafeBatchTransferAcceptanceCheck( address _operator, address _from, address _to, uint256[] memory _ids, uint256[] memory _values, bytes memory _data ) internal { require( ERC1155Receiver(_to).onERC1155BatchReceived(_operator, _from, _ids, _values, _data) == ERC1155_BATCH_ACCEPTED, "contract returned an unknown value from onERC1155BatchReceived" ); } function batchAuthorizeCreators(address[] calldata _addresses) external whenNotPaused onlyOwner { for (uint256 i = 0; i < _addresses.length; ++i) { emit Creator(_addresses[i], true); creators[_addresses[i]] = true; } } function batchDeauthorizeCreators(address[] calldata _addresses) external whenNotPaused onlyOwner { for (uint256 i = 0; i < _addresses.length; ++i) { delete creators[_addresses[i]]; emit Creator(_addresses[i], false); } } function burn( address _from, uint256[] calldata _ids, uint256[] calldata _values ) external whenNotPaused { require(_from == msg.sender || operatorApproval[_from][msg.sender] == true, "Need operator approval for 3rd party burn"); require(_ids.length > 0 && _ids.length == _values.length, "Ids and values mismatch"); for (uint256 i = 0; i < _ids.length; i++) { if (isFungible(_ids[i])) { require(balances[_ids[i]][_from] >= _values[i],"balance must be greater than value"); balances[_ids[i]][_from] = balances[_ids[i]][_from] - _values[i]; tokenSupply[_ids[i]] = tokenSupply[_ids[i]] - _values[i]; } else { require(isNonFungible(_ids[i]), "Id must be non fungible"); require(_values[i] == 1,"value must be 1"); uint256 baseType = getNonFungibleBaseType(_ids[i]); balances[baseType][_from] = balances[baseType][_from] - 1; tokenSupply[baseType] = tokenSupply[baseType] - _values[i]; delete nfOwners[_ids[i]]; } emit TransferSingle(msg.sender, _from, address(0x0), _ids[i], _values[i]); } } function uri(uint256 _tokenId) public override view returns (string memory) { if (isNonFungible(_tokenId)) { uint256 baseType = getNonFungibleBaseType(_tokenId); uint256 instanceId = getNonFungibleIndex(_tokenId); return string(abi.encodePacked(baseURI, Strings.toString(baseType), "/", Strings.toString(instanceId))); } else { return string(abi.encodePacked(baseURI, Strings.toString(_tokenId))); } } function broadcastURIEvent(uint256 _tokenId) public creatorOnly { string memory _uri = uri(_tokenId); emit URI(_uri, _tokenId); } function setBaseURI(string memory _baseURI) external creatorOnly { baseURI = _baseURI; emit BaseURI(baseURI); } function contractURI() external view returns (string memory) { return baseContractURI; } function setContractURI(string memory _contractUri) external onlyOwner { baseContractURI = _contractUri; emit ContractURI(baseContractURI); } function updateClientName(string calldata _newClientName) external whenNotPaused onlyOwner { require(bytes(_newClientName).length > 0, "Client name cannot be empty"); client = _newClientName; emit Client(_newClientName); } function pause() external onlyOwner { _pause(); } function unpause() external onlyOwner { _unpause(); } function supportsInterface(bytes4 _interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return _interfaceId == type(IERC1155).interfaceId || _interfaceId == type(IERC1155MetadataURI).interfaceId ||super.supportsInterface(_interfaceId); } function owner() public override(Ownable, UpdatableOperatorFilterer) view virtual returns (address) { return Ownable.owner(); } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.13; contract CommonConstants { bytes4 internal constant ERC1155_ACCEPTED = 0xf23a6e61; bytes4 internal constant ERC1155_BATCH_ACCEPTED = 0xbc197c81; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol"; /** * @title UpdatableOperatorFilterer * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another * registrant's entries in the OperatorFilterRegistry. This contract allows the Owner to update the * OperatorFilterRegistry address via updateOperatorFilterRegistryAddress, including to the zero address, * which will bypass registry checks. * Note that OpenSea will still disable creator fee enforcement if filtered operators begin fulfilling orders * on-chain, eg, if the registry is revoked or bypassed. * @dev This smart contract is meant to be inherited by token contracts so they can use the following: * - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods. * - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods. */ abstract contract UpdatableOperatorFilterer { error OperatorNotAllowed(address operator); error OnlyOwner(); IOperatorFilterRegistry public operatorFilterRegistry; constructor(address _registry, address subscriptionOrRegistrantToCopy, bool subscribe) { IOperatorFilterRegistry registry = IOperatorFilterRegistry(_registry); operatorFilterRegistry = registry; // If an inheriting token contract is deployed to a network without the registry deployed, the modifier // will not revert, but the contract will need to be registered with the registry once it is deployed in // order for the modifier to filter addresses. if (address(registry).code.length > 0) { if (subscribe) { registry.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy); } else { if (subscriptionOrRegistrantToCopy != address(0)) { registry.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy); } else { registry.register(address(this)); } } } } modifier onlyAllowedOperator(address from) virtual { // Allow spending tokens from addresses with balance // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred // from an EOA. if (from != msg.sender) { _checkFilterOperator(msg.sender); } _; } modifier onlyAllowedOperatorApproval(address operator) virtual { _checkFilterOperator(operator); _; } /** * @notice Update the address that the contract will make OperatorFilter checks against. When set to the zero * address, checks will be bypassed. OnlyOwner. */ function updateOperatorFilterRegistryAddress(address newRegistry) public virtual { if (msg.sender != owner()) { revert OnlyOwner(); } operatorFilterRegistry = IOperatorFilterRegistry(newRegistry); } /** * @dev assume the contract has an owner, but leave specific Ownable implementation up to inheriting contract */ function owner() public view virtual returns (address); function _checkFilterOperator(address operator) internal view virtual { IOperatorFilterRegistry registry = operatorFilterRegistry; // Check registry code length to facilitate testing in environments without a deployed registry. if (address(registry) != address(0) && address(registry).code.length > 0) { if (!registry.isOperatorAllowed(address(this), operator)) { revert OperatorNotAllowed(operator); } } } }
// 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.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// 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 (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 (last updated v4.7.0) (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 Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { 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 (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 (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 (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 (token/ERC1155/utils/ERC1155Receiver.sol) pragma solidity ^0.8.0; import "../IERC1155Receiver.sol"; import "../../../utils/introspection/ERC165.sol"; /** * @dev _Available since v3.1._ */ abstract contract ERC1155Receiver is ERC165, IERC1155Receiver { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC1155Receiver).interfaceId || super.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/utils/ERC1155Holder.sol) pragma solidity ^0.8.0; import "./ERC1155Receiver.sol"; /** * Simple implementation of `ERC1155Receiver` that will allow a contract to hold ERC1155 tokens. * * IMPORTANT: When inheriting this contract, you must include a way to use the received tokens, otherwise they will be * stuck. * * @dev _Available since v3.1._ */ contract ERC1155Holder is ERC1155Receiver { function onERC1155Received( address, address, uint256, uint256, bytes memory ) public virtual override returns (bytes4) { return this.onERC1155Received.selector; } function onERC1155BatchReceived( address, address, uint256[] memory, uint256[] memory, bytes memory ) public virtual override returns (bytes4) { return this.onERC1155BatchReceived.selector; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; interface IOperatorFilterRegistry { function isOperatorAllowed(address registrant, address operator) external view returns (bool); function register(address registrant) external; function registerAndSubscribe(address registrant, address subscription) external; function registerAndCopyEntries(address registrant, address registrantToCopy) external; function unregister(address addr) external; function updateOperator(address registrant, address operator, bool filtered) external; function updateOperators(address registrant, address[] calldata operators, bool filtered) external; function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external; function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external; function subscribe(address registrant, address registrantToSubscribe) external; function unsubscribe(address registrant, bool copyExistingEntries) external; function subscriptionOf(address addr) external returns (address registrant); function subscribers(address registrant) external returns (address[] memory); function subscriberAt(address registrant, uint256 index) external returns (address); function copyEntriesOf(address registrant, address registrantToCopy) external; function isOperatorFiltered(address registrant, address operator) external returns (bool); function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool); function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool); function filteredOperators(address addr) external returns (address[] memory); function filteredCodeHashes(address addr) external returns (bytes32[] memory); function filteredOperatorAt(address registrant, uint256 index) external returns (address); function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32); function isRegistered(address addr) external returns (bool); function codeHashOf(address addr) external returns (bytes32); }
// 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 (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; } }
{ "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":"_client","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"OnlyOwner","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"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":false,"internalType":"uint256","name":"baseType","type":"uint256"}],"name":"BaseTypeCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"baseURI","type":"string"}],"name":"BaseURI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"_clientName","type":"string"}],"name":"Client","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"contractURI","type":"string"}],"name":"ContractURI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_creator","type":"address"},{"indexed":false,"internalType":"bool","name":"_authorized","type":"bool"}],"name":"Creator","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":"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":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"NF_INDEX_MASK","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_owners","type":"address[]"},{"internalType":"uint256[]","name":"_ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"}],"name":"batchAuthorizeCreators","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"}],"name":"batchDeauthorizeCreators","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"broadcastURIEvent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"uint256[]","name":"_ids","type":"uint256[]"},{"internalType":"uint256[]","name":"_values","type":"uint256[]"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"client","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_isNF","type":"bool"}],"name":"create","outputs":[{"internalType":"uint256","name":"_type","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"getNonFungibleBaseType","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"getNonFungibleIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"isFungible","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"isNonFungible","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"isNonFungibleBaseType","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"isNonFungibleItem","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"address[]","name":"_to","type":"address[]"},{"internalType":"uint256[]","name":"_quantities","type":"uint256[]"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"mintFungible","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_ids","type":"uint256[]"},{"internalType":"address[]","name":"_to","type":"address[]"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"mintNonFungible","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"nfExists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"nfOwners","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operatorFilterRegistry","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":"_values","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":"_value","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_operator","type":"address"},{"internalType":"bool","name":"_approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_contractUri","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"_interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenSupply","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":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newClientName","type":"string"}],"name":"updateClientName","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newRegistry","type":"address"}],"name":"updateOperatorFilterRegistryAddress","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
60a06040819052600060808190526200001b91600a9162000310565b506040805160208101918290526000908190526200003c91600b9162000310565b503480156200004a57600080fd5b5060405162004001380380620040018339810160408190526200006d91620003ff565b6000805460ff191690556daaeb6d7670e522a718067333cd4e733cc6cdda760b79bafa08df41ecfa224f810dceb66001620000a833620002b7565b600180546001600160a01b0319166001600160a01b03851690811790915583903b15620001e15781156200014057604051633e9f1edf60e11b81523060048201526001600160a01b038481166024830152821690637d3e3dbe906044015b600060405180830381600087803b1580156200012157600080fd5b505af115801562000136573d6000803e3d6000fd5b50505050620001e1565b6001600160a01b03831615620001855760405163a0af290360e01b81523060048201526001600160a01b03848116602483015282169063a0af29039060440162000106565b604051632210724360e11b81523060048201526001600160a01b03821690634420e48690602401600060405180830381600087803b158015620001c757600080fd5b505af1158015620001dc573d6000803e3d6000fd5b505050505b505050506000815111620002455760405162461bcd60e51b815260206004820152602160248201527f436f6e747261637420636c69656e74206e616d652069732072657175697265646044820152602160f81b606482015260840160405180910390fd5b336000908152600960209081526040909120805460ff19166001179055815162000276916003919084019062000310565b507f5511538576a121f5d7bb3470453c3d6cd751879ac3f90737f6518ffcc3b9277b81604051620002a89190620004b7565b60405180910390a15062000528565b600080546001600160a01b03838116610100818102610100600160a81b0319851617855560405193049190911692909183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35050565b8280546200031e90620004ec565b90600052602060002090601f0160209004810192826200034257600085556200038d565b82601f106200035d57805160ff19168380011785556200038d565b828001600101855582156200038d579182015b828111156200038d57825182559160200191906001019062000370565b506200039b9291506200039f565b5090565b5b808211156200039b5760008155600101620003a0565b634e487b7160e01b600052604160045260246000fd5b60005b83811015620003e9578181015183820152602001620003cf565b83811115620003f9576000848401525b50505050565b6000602082840312156200041257600080fd5b81516001600160401b03808211156200042a57600080fd5b818401915084601f8301126200043f57600080fd5b815181811115620004545762000454620003b6565b604051601f8201601f19908116603f011681019083821181831017156200047f576200047f620003b6565b816040528281528760208487010111156200049957600080fd5b620004ac836020830160208801620003cc565b979650505050505050565b6020815260008251806020840152620004d8816040850160208701620003cc565b601f01601f19169190910160400192915050565b600181811c908216806200050157607f821691505b6020821081036200052257634e487b7160e01b600052602260045260246000fd5b50919050565b613ac980620005386000396000f3fe608060405234801561001057600080fd5b506004361061023c5760003560e01c80637269a3271161013b578063b0ccc31e116100b8578063e8a3d4851161007c578063e8a3d4851461054c578063e985e9c514610554578063f242432a14610590578063f2fde38b146105a3578063fd6a009a146105b657600080fd5b8063b0ccc31e146104e6578063b8d1e532146104f9578063c5d549651461050c578063db5a4ce61461051f578063e44591f01461053257600080fd5b806395d817bc116100ff57806395d817bc146104655780639cca1c641461048e578063a22cb465146104a8578063a9e7d531146104bb578063adebf6f2146104ce57600080fd5b80637269a3271461040e5780638456cb59146104215780638da5cb5b14610429578063938e3d7b1461043f578063951f4f961461045257600080fd5b80633f4ba83a116101c95780635c975abb1161018d5780635c975abb1461038c5780635e81b958146103975780636352211e146103aa5780636f969c2d146103eb578063715018a61461040657600080fd5b80633f4ba83a1461032057806346a9af86146103285780634e1273f41461034b57806352fb73991461036b57806355f804b31461037957600080fd5b8063183fb25411610210578063183fb254146102b25780632693ebf2146102c75780632eb2c2d6146102e7578063352949d3146102fa5780633db0f8ab1461030d57600080fd5b8062fdd58e1461024157806301ffc9a7146102675780630e89341c1461028a578063109e94cf146102aa575b600080fd5b61025461024f366004612f00565b6105c9565b6040519081526020015b60405180910390f35b61027a610275366004612f40565b610639565b604051901515815260200161025e565b61029d610298366004612f64565b610689565b60405161025e9190612fd9565b61029d610722565b6102c56102c0366004613078565b6107b0565b005b6102546102d5366004612f64565b60086020526000908152604090205481565b6102c56102f536600461311b565b610b8e565b6102c56103083660046131d5565b611219565b6102c561031b366004613216565b6112fe565b6102c5611870565b61027a610336366004612f64565b60076020526000908152604090205460ff1681565b61035e610359366004613296565b611882565b60405161025e919061333c565b6102546001600160801b0381565b6102c5610387366004613365565b611a58565b60005460ff1661027a565b61027a6103a5366004612f64565b611ad6565b6103d36103b8366004612f64565b6000908152600660205260409020546001600160a01b031690565b6040516001600160a01b03909116815260200161025e565b6102546103f9366004612f64565b6001600160801b03191690565b6102c5611af7565b61027a61041c366004612f64565b611b09565b6102c5611b29565b60005461010090046001600160a01b03166103d3565b6102c561044d366004613365565b611b39565b6102c5610460366004612f64565b611b85565b6103d3610473366004612f64565b6006602052600090815260409020546001600160a01b031681565b61025461049c366004612f64565b6001600160801b031690565b6102c56104b6366004613423565b611bfd565b6102c56104c93660046131d5565b611ce6565b61027a6104dc366004612f64565b600160ff1b161590565b6001546103d3906001600160a01b031681565b6102c561050736600461345a565b611dcf565b6102c561051a366004613475565b611e33565b61025461052d36600461350e565b612281565b61027a610540366004612f64565b600160ff1b9081161490565b61029d612365565b61027a61056236600461352b565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6102c561059e36600461355e565b6123f7565b6102c56105b136600461345a565b61272b565b6102c56105c43660046135c3565b6127a4565b60006105d482611ad6565b1561060e576000828152600660205260409020546001600160a01b03848116911614610601576000610604565b60015b60ff169050610633565b5060008181526004602090815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b03198216636cdb3d1360e11b148061066a57506001600160e01b031982166303a24d0760e21b145b8061063357506301ffc9a760e01b6001600160e01b0319831614610633565b6060600160ff1b808316036106eb576001600160801b031982166001600160801b038316600b6106b88361284b565b6106c18361284b565b6040516020016106d3939291906136a1565b60405160208183030381529060405292505050919050565b600b6106f68361284b565b6040516020016107079291906136e7565b6040516020818303038152906040529050919050565b919050565b6003805461072f906135f8565b80601f016020809104026020016040519081016040528092919081815260200182805461075b906135f8565b80156107a85780601f1061077d576101008083540402835291602001916107a8565b820191906000526020600020905b81548152906001019060200180831161078b57829003601f168201915b505050505081565b6107b8612953565b3360009081526009602052604090205460ff166107f05760405162461bcd60e51b81526004016107e79061370c565b60405180910390fd5b600160ff1b8716156108445760405162461bcd60e51b815260206004820152601c60248201527f4944206d7573742062652061206e6f6e2d66756e6769626c652049440000000060448201526064016107e7565b84831461089f5760405162461bcd60e51b8152602060048201526024808201527f4164647265737320616e64207175616e74697479206c656e677468206d69736d6044820152630c2e8c6d60e31b60648201526084016107e7565b60005b85811015610b845760008787838181106108be576108be613743565b90506020020160208101906108d3919061345a565b6001600160a01b0316036109295760405162461bcd60e51b815260206004820181905260248201527f526563697069656e7420616464726573732063616e6e6f74206265207a65726f60448201526064016107e7565b60008881526004602052604081209088888481811061094a5761094a613743565b905060200201602081019061095f919061345a565b6001600160a01b03166001600160a01b031681526020019081526020016000205485858381811061099257610992613743565b905060200201356109a3919061376f565b6000898152600460205260408120908989858181106109c4576109c4613743565b90506020020160208101906109d9919061345a565b6001600160a01b03168152602081019190915260400160002055848482818110610a0557610a05613743565b90506020020135600860008a815260200190815260200160002054610a2a919061376f565b600089815260086020526040902055868682818110610a4b57610a4b613743565b9050602002016020810190610a60919061345a565b6001600160a01b0316600033600080516020613a748339815191528b898987818110610a8e57610a8e613743565b90506020020135604051610aac929190918252602082015260400190565b60405180910390a4610aed878783818110610ac957610ac9613743565b9050602002016020810190610ade919061345a565b6001600160a01b03163b151590565b15610b7457610b743333898985818110610b0957610b09613743565b9050602002016020810190610b1e919061345a565b8b898987818110610b3157610b31613743565b9050602002013588888080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061299992505050565b610b7d81613787565b90506108a2565b5050505050505050565b610b96612953565b876001600160a01b0381163314610bb057610bb033612a8f565b6001600160a01b038816610c065760405162461bcd60e51b815260206004820152601b60248201527f43616e6e6f742073656e6420746f207a65726f2061646472657373000000000060448201526064016107e7565b858414610c555760405162461bcd60e51b815260206004820152601760248201527f4172726179206c656e677468206d757374206d6174636800000000000000000060448201526064016107e7565b6001600160a01b038916331480610c9457506001600160a01b038916600090815260056020908152604080832033845290915290205460ff1615156001145b610cb05760405162461bcd60e51b81526004016107e7906137a0565b60005b868110156110fe57610ce3888883818110610cd057610cd0613743565b90506020020135600160ff1b9081161490565b15610f6557896001600160a01b0316600660008a8a85818110610d0857610d08613743565b60209081029290920135835250810191909152604001600020546001600160a01b031614610d685760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b21037bbb732b960991b60448201526064016107e7565b6000868683818110610d7c57610d7c613743565b9050602002013511610da05760405162461bcd60e51b81526004016107e7906137ee565b88600660008a8a85818110610db757610db7613743565b90506020020135815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b03160217905550858582818110610e0257610e02613743565b9050602002013560046000610e368b8b86818110610e2257610e22613743565b905060200201356001600160801b03191690565b815260200190815260200160002060008c6001600160a01b03166001600160a01b0316815260200190815260200160002054610e729190613830565b60046000610e8b8b8b86818110610e2257610e22613743565b8152602080820192909252604090810160009081206001600160a01b038f168252909252902055858582818110610ec457610ec4613743565b9050602002013560046000610ee48b8b86818110610e2257610e22613743565b815260200190815260200160002060008b6001600160a01b03166001600160a01b0316815260200190815260200160002054610f20919061376f565b60046000610f398b8b86818110610e2257610e22613743565b8152602080820192909252604090810160009081206001600160a01b038e1682529092529020556110ee565b858582818110610f7757610f77613743565b90506020020135600460008a8a85818110610f9457610f94613743565b90506020020135815260200190815260200160002060008c6001600160a01b03166001600160a01b0316815260200190815260200160002054610fd79190613830565b600460008a8a85818110610fed57610fed613743565b90506020020135815260200190815260200160002060008c6001600160a01b03166001600160a01b03168152602001908152602001600020819055506004600089898481811061103f5761103f613743565b90506020020135815260200190815260200160002060008a6001600160a01b03166001600160a01b031681526020019081526020016000205486868381811061108a5761108a613743565b9050602002013561109b919061376f565b600460008a8a858181106110b1576110b1613743565b90506020020135815260200190815260200160002060008b6001600160a01b03166001600160a01b03168152602001908152602001600020819055505b6110f781613787565b9050610cb3565b50876001600160a01b0316896001600160a01b0316336001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8a8a8a8a604051611152949392919061387d565b60405180910390a46001600160a01b0388163b1561120e5761120e338a8a8a8a8080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050604080516020808e0282810182019093528d82529093508d92508c91829185019084908082843760009201919091525050604080516020601f8d018190048102820181019092528b815292508b91508a9081908401838280828437600092019190915250612b5592505050565b505050505050505050565b611221612953565b611229612c4b565b60005b818110156112f9576009600084848481811061124a5761124a613743565b905060200201602081019061125f919061345a565b6001600160a01b031681526020810191909152604001600020805460ff191690557fb5763ba23a8384e26e9f2f5bfcd8e3795e4248ce7bb99a61c9ee6488d352a5b18383838181106112b3576112b3613743565b90506020020160208101906112c8919061345a565b604080516001600160a01b039092168252600060208301520160405180910390a16112f281613787565b905061122c565b505050565b611306612953565b6001600160a01b03851633148061134557506001600160a01b038516600090815260056020908152604080832033845290915290205460ff1615156001145b6113a35760405162461bcd60e51b815260206004820152602960248201527f4e656564206f70657261746f7220617070726f76616c20666f7220337264207060448201526830b93a3c90313ab93760b91b60648201526084016107e7565b82158015906113b157508281145b6113fd5760405162461bcd60e51b815260206004820152601760248201527f49647320616e642076616c756573206d69736d6174636800000000000000000060448201526064016107e7565b60005b838110156118685761142e85858381811061141d5761141d613743565b90506020020135600160ff1b161590565b1561163b5782828281811061144557611445613743565b905060200201356004600087878581811061146257611462613743565b9050602002013581526020019081526020016000206000886001600160a01b03166001600160a01b031681526020019081526020016000205410156114f45760405162461bcd60e51b815260206004820152602260248201527f62616c616e6365206d7573742062652067726561746572207468616e2076616c604482015261756560f01b60648201526084016107e7565b82828281811061150657611506613743565b905060200201356004600087878581811061152357611523613743565b9050602002013581526020019081526020016000206000886001600160a01b03166001600160a01b03168152602001908152602001600020546115669190613830565b6004600087878581811061157c5761157c613743565b9050602002013581526020019081526020016000206000886001600160a01b03166001600160a01b03168152602001908152602001600020819055508282828181106115ca576115ca613743565b90506020020135600860008787858181106115e7576115e7613743565b905060200201358152602001908152602001600020546116079190613830565b6008600087878581811061161d5761161d613743565b905060200201358152602001908152602001600020819055506117e9565b611650858583818110610cd057610cd0613743565b61169c5760405162461bcd60e51b815260206004820152601760248201527f4964206d757374206265206e6f6e2066756e6769626c6500000000000000000060448201526064016107e7565b8282828181106116ae576116ae613743565b905060200201356001146116f65760405162461bcd60e51b815260206004820152600f60248201526e76616c7565206d757374206265203160881b60448201526064016107e7565b600061170d868684818110610e2257610e22613743565b60008181526004602090815260408083206001600160a01b038c16845290915290205490915061173f90600190613830565b60008281526004602090815260408083206001600160a01b038c16845290915290205583838381811061177457611774613743565b9050602002013560086000838152602001908152602001600020546117999190613830565b6000828152600860205260408120919091556006908787858181106117c0576117c0613743565b6020908102929092013583525081019190915260400160002080546001600160a01b0319169055505b60006001600160a01b03871633600080516020613a7483398151915288888681811061181757611817613743565b9050602002013587878781811061183057611830613743565b9050602002013560405161184e929190918252602082015260400190565b60405180910390a48061186081613787565b915050611400565b505050505050565b611878612c4b565b611880612cab565b565b60608382146118d35760405162461bcd60e51b815260206004820152601e60248201527f4f776e65727320616e6420696473206c656e677468206d69736d61746368000060448201526064016107e7565b6000846001600160401b038111156118ed576118ed61334f565b604051908082528060200260200182016040528015611916578160200160208202803683370190505b50905060005b85811015611a4e57600085858381811061193857611938613743565b90506020020135905061194a81611ad6565b156119c75787878381811061196157611961613743565b9050602002016020810190611976919061345a565b6000828152600660205260409020546001600160a01b0390811691161461199e5760006119a1565b60015b60ff168383815181106119b6576119b6613743565b602002602001018181525050611a3d565b6000818152600460205260408120908989858181106119e8576119e8613743565b90506020020160208101906119fd919061345a565b6001600160a01b03166001600160a01b0316815260200190815260200160002054838381518110611a3057611a30613743565b6020026020010181815250505b50611a4781613787565b905061191c565b5095945050505050565b3360009081526009602052604090205460ff16611a875760405162461bcd60e51b81526004016107e79061370c565b8051611a9a90600b906020840190612ddc565b507f01e56a02aca7f26a28165a040851ba78f30282b55ca81c63a804cdc1e2dcea72600b604051611acb91906138af565b60405180910390a150565b6000600160ff1b8083161480156106335750506001600160801b0316151590565b611aff612c4b565b6118806000612cfd565b6000600160ff1b8083161480156106335750506001600160801b03161590565b611b31612c4b565b611880612d56565b611b41612c4b565b8051611b5490600a906020840190612ddc565b507f8bc80d02691adbcd8631bd956c34f729b47b1cdac70440a8410f85571e56543e600a604051611acb91906138af565b3360009081526009602052604090205460ff16611bb45760405162461bcd60e51b81526004016107e79061370c565b6000611bbf82610689565b9050817f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b82604051611bf19190612fd9565b60405180910390a25050565b611c05612953565b81611c0f81612a8f565b6001600160a01b0383163303611c795760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b60648201526084016107e7565b3360008181526005602090815260408083206001600160a01b03881680855290835292819020805460ff191687151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611cee612953565b611cf6612c4b565b60005b818110156112f9577fb5763ba23a8384e26e9f2f5bfcd8e3795e4248ce7bb99a61c9ee6488d352a5b1838383818110611d3457611d34613743565b9050602002016020810190611d49919061345a565b604080516001600160a01b039092168252600160208301520160405180910390a1600160096000858585818110611d8257611d82613743565b9050602002016020810190611d97919061345a565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055611dc881613787565b9050611cf9565b60005461010090046001600160a01b03166001600160a01b0316336001600160a01b031614611e1157604051635fc483c560e01b815260040160405180910390fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b611e3b612953565b3360009081526009602052604090205460ff16611e6a5760405162461bcd60e51b81526004016107e79061370c565b848314611ecb5760405162461bcd60e51b815260206004820152602960248201527f49447320616e6420726563697069656e7473206d757374206265206f662073616044820152680daca40d8cadccee8d60bb1b60648201526084016107e7565b60005b83811015612278576000611eed888884818110610e2257610e22613743565b60008181526007602052604090205490915060ff16611f445760405162461bcd60e51b81526020600482015260136024820152721391881d1bdad95b881b5d5cdd08195e1a5cdd606a1b60448201526064016107e7565b600160ff1b80821614611f995760405162461bcd60e51b815260206004820152601a60248201527f546f6b656e54797065206e6f74206e6f6e2d66756e6769626c6500000000000060448201526064016107e7565b6000868684818110611fad57611fad613743565b9050602002016020810190611fc2919061345a565b6001600160a01b0316036120185760405162461bcd60e51b815260206004820152601b60248201527f43616e6e6f74206d696e7420746f207a65726f2061646472657373000000000060448201526064016107e7565b60006006818a8a8681811061202f5761202f613743565b60209081029290920135835250810191909152604001600020546001600160a01b0316146120955760405162461bcd60e51b8152602060048201526013602482015272151bdad95b88185b1c9958591e481bdddb9959606a1b60448201526064016107e7565b60008686848181106120a9576120a9613743565b90506020020160208101906120be919061345a565b905080600660008b8b878181106120d7576120d7613743565b90506020020135815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060086000838152602001908152602001600020546001612130919061376f565b600083815260086020908152604080832093909355600481528282206001600160a01b03851683529052205461216790600161376f565b60008381526004602090815260408083206001600160a01b038616808552925282209290925533600080516020613a748339815191528c8c888181106121af576121af613743565b9050602002013560016040516121cf929190918252602082015260400190565b60405180910390a46121f88989858181106121ec576121ec613743565b90506020020135611b85565b6001600160a01b0381163b15612265576122653333838c8c8881811061222057612220613743565b9050602002013560018a8a8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061299992505050565b50508061227190613787565b9050611ece565b50505050505050565b600061228b612953565b3360009081526009602052604090205460ff166122ba5760405162461bcd60e51b81526004016107e79061370c565b60806002600081546122cb90613787565b9182905550901b905081156122fe57600160ff1b176000818152600760205260409020805460ff1916600117905561232d565b604080518281526000602082018190529182913391600080516020613a74833981519152910160405180910390a45b6040518181527ff6615ae155db21bc1a31ec4b1060f4469cd58b9e726ec7545ea32f33190048fe9060200160405180910390a1919050565b6060600a8054612374906135f8565b80601f01602080910402602001604051908101604052809291908181526020018280546123a0906135f8565b80156123ed5780601f106123c2576101008083540402835291602001916123ed565b820191906000526020600020905b8154815290600101906020018083116123d057829003601f168201915b5050505050905090565b6123ff612953565b856001600160a01b03811633146124195761241933612a8f565b6001600160a01b03861661246f5760405162461bcd60e51b815260206004820152601b60248201527f63616e6e6f742073656e6420746f207a65726f2061646472657373000000000060448201526064016107e7565b6001600160a01b0387163314806124ae57506001600160a01b038716600090815260056020908152604080832033845290915290205460ff1615156001145b6124ca5760405162461bcd60e51b81526004016107e7906137a0565b600160ff1b80861603612614576000858152600660205260409020546001600160a01b038881169116146125305760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b21037bbb732b960991b60448201526064016107e7565b600084116125505760405162461bcd60e51b81526004016107e7906137ee565b600085815260066020526040812080546001600160a01b0319166001600160a01b0389161790556001600160801b0319861660008181526004602090815260408083206001600160a01b038d1684529091529020549091506125b3908690613830565b60008281526004602090815260408083206001600160a01b038d811685529252808320939093558916815220546125eb90869061376f565b60009182526004602090815260408084206001600160a01b038b1685529091529091205561269e565b60008581526004602090815260408083206001600160a01b038b168452909152902054612642908590613830565b60008681526004602090815260408083206001600160a01b038c8116855292528083209390935588168152205461267a90859061376f565b60008681526004602090815260408083206001600160a01b038b1684529091529020555b60408051868152602081018690526001600160a01b0380891692908a16913391600080516020613a74833981519152910160405180910390a46001600160a01b0386163b1561227857612278338888888888888080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061299992505050565b612733612c4b565b6001600160a01b0381166127985760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107e7565b6127a181612cfd565b50565b6127ac612953565b6127b4612c4b565b806128015760405162461bcd60e51b815260206004820152601b60248201527f436c69656e74206e616d652063616e6e6f7420626520656d707479000000000060448201526064016107e7565b61280d60038383612e60565b507f5511538576a121f5d7bb3470453c3d6cd751879ac3f90737f6518ffcc3b9277b828260405161283f929190613934565b60405180910390a15050565b6060816000036128725750506040805180820190915260018152600360fc1b602082015290565b8160005b811561289c578061288681613787565b91506128959050600a83613979565b9150612876565b6000816001600160401b038111156128b6576128b661334f565b6040519080825280601f01601f1916602001820160405280156128e0576020820181803683370190505b5090505b841561294b576128f5600183613830565b9150612902600a8661398d565b61290d90603061376f565b60f81b81838151811061292257612922613743565b60200101906001600160f81b031916908160001a905350612944600a86613979565b94506128e4565b949350505050565b60005460ff16156118805760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016107e7565b60405163f23a6e6160e01b808252906001600160a01b0386169063f23a6e61906129cf908a908a908990899089906004016139a1565b6020604051808303816000875af11580156129ee573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a1291906139db565b6001600160e01b031916146118685760405162461bcd60e51b815260206004820152603960248201527f636f6e74726163742072657475726e656420616e20756e6b6e6f776e2076616c60448201527f75652066726f6d206f6e4552433131353552656365697665640000000000000060648201526084016107e7565b6001546001600160a01b03168015801590612ab457506000816001600160a01b03163b115b15612b5157604051633185c44d60e21b81523060048201526001600160a01b03838116602483015282169063c617113490604401602060405180830381865afa158015612b05573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b2991906139f8565b612b5157604051633b79c77360e21b81526001600160a01b03831660048201526024016107e7565b5050565b60405163bc197c8160e01b808252906001600160a01b0386169063bc197c8190612b8b908a908a90899089908990600401613a15565b6020604051808303816000875af1158015612baa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612bce91906139db565b6001600160e01b031916146118685760405162461bcd60e51b815260206004820152603e60248201527f636f6e74726163742072657475726e656420616e20756e6b6e6f776e2076616c60448201527f75652066726f6d206f6e4552433131353542617463685265636569766564000060648201526084016107e7565b6000546001600160a01b036101009091041633146118805760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107e7565b612cb3612d93565b6000805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600080546001600160a01b03838116610100818102610100600160a81b0319851617855560405193049190911692909183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35050565b612d5e612953565b6000805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612ce03390565b60005460ff166118805760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016107e7565b828054612de8906135f8565b90600052602060002090601f016020900481019282612e0a5760008555612e50565b82601f10612e2357805160ff1916838001178555612e50565b82800160010185558215612e50579182015b82811115612e50578251825591602001919060010190612e35565b50612e5c929150612ed4565b5090565b828054612e6c906135f8565b90600052602060002090601f016020900481019282612e8e5760008555612e50565b82601f10612ea75782800160ff19823516178555612e50565b82800160010185558215612e50579182015b82811115612e50578235825591602001919060010190612eb9565b5b80821115612e5c5760008155600101612ed5565b80356001600160a01b038116811461071d57600080fd5b60008060408385031215612f1357600080fd5b612f1c83612ee9565b946020939093013593505050565b6001600160e01b0319811681146127a157600080fd5b600060208284031215612f5257600080fd5b8135612f5d81612f2a565b9392505050565b600060208284031215612f7657600080fd5b5035919050565b60005b83811015612f98578181015183820152602001612f80565b83811115612fa7576000848401525b50505050565b60008151808452612fc5816020860160208601612f7d565b601f01601f19169290920160200192915050565b602081526000612f5d6020830184612fad565b60008083601f840112612ffe57600080fd5b5081356001600160401b0381111561301557600080fd5b6020830191508360208260051b850101111561303057600080fd5b9250929050565b60008083601f84011261304957600080fd5b5081356001600160401b0381111561306057600080fd5b60208301915083602082850101111561303057600080fd5b60008060008060008060006080888a03121561309357600080fd5b8735965060208801356001600160401b03808211156130b157600080fd5b6130bd8b838c01612fec565b909850965060408a01359150808211156130d657600080fd5b6130e28b838c01612fec565b909650945060608a01359150808211156130fb57600080fd5b506131088a828b01613037565b989b979a50959850939692959293505050565b60008060008060008060008060a0898b03121561313757600080fd5b61314089612ee9565b975061314e60208a01612ee9565b965060408901356001600160401b038082111561316a57600080fd5b6131768c838d01612fec565b909850965060608b013591508082111561318f57600080fd5b61319b8c838d01612fec565b909650945060808b01359150808211156131b457600080fd5b506131c18b828c01613037565b999c989b5096995094979396929594505050565b600080602083850312156131e857600080fd5b82356001600160401b038111156131fe57600080fd5b61320a85828601612fec565b90969095509350505050565b60008060008060006060868803121561322e57600080fd5b61323786612ee9565b945060208601356001600160401b038082111561325357600080fd5b61325f89838a01612fec565b9096509450604088013591508082111561327857600080fd5b5061328588828901612fec565b969995985093965092949392505050565b600080600080604085870312156132ac57600080fd5b84356001600160401b03808211156132c357600080fd5b6132cf88838901612fec565b909650945060208701359150808211156132e857600080fd5b506132f587828801612fec565b95989497509550505050565b600081518084526020808501945080840160005b8381101561333157815187529582019590820190600101613315565b509495945050505050565b602081526000612f5d6020830184613301565b634e487b7160e01b600052604160045260246000fd5b60006020828403121561337757600080fd5b81356001600160401b038082111561338e57600080fd5b818401915084601f8301126133a257600080fd5b8135818111156133b4576133b461334f565b604051601f8201601f19908116603f011681019083821181831017156133dc576133dc61334f565b816040528281528760208487010111156133f557600080fd5b826020860160208301376000928101602001929092525095945050505050565b80151581146127a157600080fd5b6000806040838503121561343657600080fd5b61343f83612ee9565b9150602083013561344f81613415565b809150509250929050565b60006020828403121561346c57600080fd5b612f5d82612ee9565b6000806000806000806060878903121561348e57600080fd5b86356001600160401b03808211156134a557600080fd5b6134b18a838b01612fec565b909850965060208901359150808211156134ca57600080fd5b6134d68a838b01612fec565b909650945060408901359150808211156134ef57600080fd5b506134fc89828a01613037565b979a9699509497509295939492505050565b60006020828403121561352057600080fd5b8135612f5d81613415565b6000806040838503121561353e57600080fd5b61354783612ee9565b915061355560208401612ee9565b90509250929050565b60008060008060008060a0878903121561357757600080fd5b61358087612ee9565b955061358e60208801612ee9565b9450604087013593506060870135925060808701356001600160401b038111156135b757600080fd5b6134fc89828a01613037565b600080602083850312156135d657600080fd5b82356001600160401b038111156135ec57600080fd5b61320a85828601613037565b600181811c9082168061360c57607f821691505b60208210810361362c57634e487b7160e01b600052602260045260246000fd5b50919050565b6000815461363f816135f8565b60018281168015613657576001811461366857613697565b60ff19841687528287019450613697565b8560005260208060002060005b8581101561368e5781548a820152908401908201613675565b50505082870194505b5050505092915050565b60006136ad8286613632565b84516136bd818360208901612f7d565b602f60f81b910190815283516136da816001840160208801612f7d565b0160010195945050505050565b60006136f38285613632565b8351613703818360208801612f7d565b01949350505050565b6020808252601b908201527f43726561746f72207065726d697373696f6e2072657175697265640000000000604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000821982111561378257613782613759565b500190565b60006001820161379957613799613759565b5060010190565b6020808252602e908201527f4e656564206f70657261746f7220617070726f76616c20666f7220337264207060408201526d61727479207472616e736665727360901b606082015260800190565b60208082526022908201527f7175616e74697479206d7573742062652067726561746572207468616e207a65604082015261726f60f01b606082015260800190565b60008282101561384257613842613759565b500390565b81835260006001600160fb1b0383111561386057600080fd5b8260051b8083602087013760009401602001938452509192915050565b604081526000613891604083018688613847565b82810360208401526138a4818587613847565b979650505050505050565b60006020808352600084546138c3816135f8565b808487015260406001808416600081146138e457600181146138f857613926565b60ff19851689840152606089019550613926565b896000528660002060005b8581101561391e5781548b8201860152908301908801613903565b8a0184019650505b509398975050505050505050565b60208152816020820152818360408301376000818301604090810191909152601f909201601f19160101919050565b634e487b7160e01b600052601260045260246000fd5b60008261398857613988613963565b500490565b60008261399c5761399c613963565b500690565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906138a490830184612fad565b6000602082840312156139ed57600080fd5b8151612f5d81612f2a565b600060208284031215613a0a57600080fd5b8151612f5d81613415565b6001600160a01b0386811682528516602082015260a060408201819052600090613a4190830186613301565b8281036060840152613a538186613301565b90508281036080840152613a678185612fad565b9897505050505050505056fec3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62a26469706673582212203b829dd796809f7669681f811b6a703285cd7ab40c6888bad99e247d305fa7f564736f6c634300080d00330000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000e4368616d70696f6e734172656e61000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061023c5760003560e01c80637269a3271161013b578063b0ccc31e116100b8578063e8a3d4851161007c578063e8a3d4851461054c578063e985e9c514610554578063f242432a14610590578063f2fde38b146105a3578063fd6a009a146105b657600080fd5b8063b0ccc31e146104e6578063b8d1e532146104f9578063c5d549651461050c578063db5a4ce61461051f578063e44591f01461053257600080fd5b806395d817bc116100ff57806395d817bc146104655780639cca1c641461048e578063a22cb465146104a8578063a9e7d531146104bb578063adebf6f2146104ce57600080fd5b80637269a3271461040e5780638456cb59146104215780638da5cb5b14610429578063938e3d7b1461043f578063951f4f961461045257600080fd5b80633f4ba83a116101c95780635c975abb1161018d5780635c975abb1461038c5780635e81b958146103975780636352211e146103aa5780636f969c2d146103eb578063715018a61461040657600080fd5b80633f4ba83a1461032057806346a9af86146103285780634e1273f41461034b57806352fb73991461036b57806355f804b31461037957600080fd5b8063183fb25411610210578063183fb254146102b25780632693ebf2146102c75780632eb2c2d6146102e7578063352949d3146102fa5780633db0f8ab1461030d57600080fd5b8062fdd58e1461024157806301ffc9a7146102675780630e89341c1461028a578063109e94cf146102aa575b600080fd5b61025461024f366004612f00565b6105c9565b6040519081526020015b60405180910390f35b61027a610275366004612f40565b610639565b604051901515815260200161025e565b61029d610298366004612f64565b610689565b60405161025e9190612fd9565b61029d610722565b6102c56102c0366004613078565b6107b0565b005b6102546102d5366004612f64565b60086020526000908152604090205481565b6102c56102f536600461311b565b610b8e565b6102c56103083660046131d5565b611219565b6102c561031b366004613216565b6112fe565b6102c5611870565b61027a610336366004612f64565b60076020526000908152604090205460ff1681565b61035e610359366004613296565b611882565b60405161025e919061333c565b6102546001600160801b0381565b6102c5610387366004613365565b611a58565b60005460ff1661027a565b61027a6103a5366004612f64565b611ad6565b6103d36103b8366004612f64565b6000908152600660205260409020546001600160a01b031690565b6040516001600160a01b03909116815260200161025e565b6102546103f9366004612f64565b6001600160801b03191690565b6102c5611af7565b61027a61041c366004612f64565b611b09565b6102c5611b29565b60005461010090046001600160a01b03166103d3565b6102c561044d366004613365565b611b39565b6102c5610460366004612f64565b611b85565b6103d3610473366004612f64565b6006602052600090815260409020546001600160a01b031681565b61025461049c366004612f64565b6001600160801b031690565b6102c56104b6366004613423565b611bfd565b6102c56104c93660046131d5565b611ce6565b61027a6104dc366004612f64565b600160ff1b161590565b6001546103d3906001600160a01b031681565b6102c561050736600461345a565b611dcf565b6102c561051a366004613475565b611e33565b61025461052d36600461350e565b612281565b61027a610540366004612f64565b600160ff1b9081161490565b61029d612365565b61027a61056236600461352b565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6102c561059e36600461355e565b6123f7565b6102c56105b136600461345a565b61272b565b6102c56105c43660046135c3565b6127a4565b60006105d482611ad6565b1561060e576000828152600660205260409020546001600160a01b03848116911614610601576000610604565b60015b60ff169050610633565b5060008181526004602090815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b03198216636cdb3d1360e11b148061066a57506001600160e01b031982166303a24d0760e21b145b8061063357506301ffc9a760e01b6001600160e01b0319831614610633565b6060600160ff1b808316036106eb576001600160801b031982166001600160801b038316600b6106b88361284b565b6106c18361284b565b6040516020016106d3939291906136a1565b60405160208183030381529060405292505050919050565b600b6106f68361284b565b6040516020016107079291906136e7565b6040516020818303038152906040529050919050565b919050565b6003805461072f906135f8565b80601f016020809104026020016040519081016040528092919081815260200182805461075b906135f8565b80156107a85780601f1061077d576101008083540402835291602001916107a8565b820191906000526020600020905b81548152906001019060200180831161078b57829003601f168201915b505050505081565b6107b8612953565b3360009081526009602052604090205460ff166107f05760405162461bcd60e51b81526004016107e79061370c565b60405180910390fd5b600160ff1b8716156108445760405162461bcd60e51b815260206004820152601c60248201527f4944206d7573742062652061206e6f6e2d66756e6769626c652049440000000060448201526064016107e7565b84831461089f5760405162461bcd60e51b8152602060048201526024808201527f4164647265737320616e64207175616e74697479206c656e677468206d69736d6044820152630c2e8c6d60e31b60648201526084016107e7565b60005b85811015610b845760008787838181106108be576108be613743565b90506020020160208101906108d3919061345a565b6001600160a01b0316036109295760405162461bcd60e51b815260206004820181905260248201527f526563697069656e7420616464726573732063616e6e6f74206265207a65726f60448201526064016107e7565b60008881526004602052604081209088888481811061094a5761094a613743565b905060200201602081019061095f919061345a565b6001600160a01b03166001600160a01b031681526020019081526020016000205485858381811061099257610992613743565b905060200201356109a3919061376f565b6000898152600460205260408120908989858181106109c4576109c4613743565b90506020020160208101906109d9919061345a565b6001600160a01b03168152602081019190915260400160002055848482818110610a0557610a05613743565b90506020020135600860008a815260200190815260200160002054610a2a919061376f565b600089815260086020526040902055868682818110610a4b57610a4b613743565b9050602002016020810190610a60919061345a565b6001600160a01b0316600033600080516020613a748339815191528b898987818110610a8e57610a8e613743565b90506020020135604051610aac929190918252602082015260400190565b60405180910390a4610aed878783818110610ac957610ac9613743565b9050602002016020810190610ade919061345a565b6001600160a01b03163b151590565b15610b7457610b743333898985818110610b0957610b09613743565b9050602002016020810190610b1e919061345a565b8b898987818110610b3157610b31613743565b9050602002013588888080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061299992505050565b610b7d81613787565b90506108a2565b5050505050505050565b610b96612953565b876001600160a01b0381163314610bb057610bb033612a8f565b6001600160a01b038816610c065760405162461bcd60e51b815260206004820152601b60248201527f43616e6e6f742073656e6420746f207a65726f2061646472657373000000000060448201526064016107e7565b858414610c555760405162461bcd60e51b815260206004820152601760248201527f4172726179206c656e677468206d757374206d6174636800000000000000000060448201526064016107e7565b6001600160a01b038916331480610c9457506001600160a01b038916600090815260056020908152604080832033845290915290205460ff1615156001145b610cb05760405162461bcd60e51b81526004016107e7906137a0565b60005b868110156110fe57610ce3888883818110610cd057610cd0613743565b90506020020135600160ff1b9081161490565b15610f6557896001600160a01b0316600660008a8a85818110610d0857610d08613743565b60209081029290920135835250810191909152604001600020546001600160a01b031614610d685760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b21037bbb732b960991b60448201526064016107e7565b6000868683818110610d7c57610d7c613743565b9050602002013511610da05760405162461bcd60e51b81526004016107e7906137ee565b88600660008a8a85818110610db757610db7613743565b90506020020135815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b03160217905550858582818110610e0257610e02613743565b9050602002013560046000610e368b8b86818110610e2257610e22613743565b905060200201356001600160801b03191690565b815260200190815260200160002060008c6001600160a01b03166001600160a01b0316815260200190815260200160002054610e729190613830565b60046000610e8b8b8b86818110610e2257610e22613743565b8152602080820192909252604090810160009081206001600160a01b038f168252909252902055858582818110610ec457610ec4613743565b9050602002013560046000610ee48b8b86818110610e2257610e22613743565b815260200190815260200160002060008b6001600160a01b03166001600160a01b0316815260200190815260200160002054610f20919061376f565b60046000610f398b8b86818110610e2257610e22613743565b8152602080820192909252604090810160009081206001600160a01b038e1682529092529020556110ee565b858582818110610f7757610f77613743565b90506020020135600460008a8a85818110610f9457610f94613743565b90506020020135815260200190815260200160002060008c6001600160a01b03166001600160a01b0316815260200190815260200160002054610fd79190613830565b600460008a8a85818110610fed57610fed613743565b90506020020135815260200190815260200160002060008c6001600160a01b03166001600160a01b03168152602001908152602001600020819055506004600089898481811061103f5761103f613743565b90506020020135815260200190815260200160002060008a6001600160a01b03166001600160a01b031681526020019081526020016000205486868381811061108a5761108a613743565b9050602002013561109b919061376f565b600460008a8a858181106110b1576110b1613743565b90506020020135815260200190815260200160002060008b6001600160a01b03166001600160a01b03168152602001908152602001600020819055505b6110f781613787565b9050610cb3565b50876001600160a01b0316896001600160a01b0316336001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8a8a8a8a604051611152949392919061387d565b60405180910390a46001600160a01b0388163b1561120e5761120e338a8a8a8a8080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050604080516020808e0282810182019093528d82529093508d92508c91829185019084908082843760009201919091525050604080516020601f8d018190048102820181019092528b815292508b91508a9081908401838280828437600092019190915250612b5592505050565b505050505050505050565b611221612953565b611229612c4b565b60005b818110156112f9576009600084848481811061124a5761124a613743565b905060200201602081019061125f919061345a565b6001600160a01b031681526020810191909152604001600020805460ff191690557fb5763ba23a8384e26e9f2f5bfcd8e3795e4248ce7bb99a61c9ee6488d352a5b18383838181106112b3576112b3613743565b90506020020160208101906112c8919061345a565b604080516001600160a01b039092168252600060208301520160405180910390a16112f281613787565b905061122c565b505050565b611306612953565b6001600160a01b03851633148061134557506001600160a01b038516600090815260056020908152604080832033845290915290205460ff1615156001145b6113a35760405162461bcd60e51b815260206004820152602960248201527f4e656564206f70657261746f7220617070726f76616c20666f7220337264207060448201526830b93a3c90313ab93760b91b60648201526084016107e7565b82158015906113b157508281145b6113fd5760405162461bcd60e51b815260206004820152601760248201527f49647320616e642076616c756573206d69736d6174636800000000000000000060448201526064016107e7565b60005b838110156118685761142e85858381811061141d5761141d613743565b90506020020135600160ff1b161590565b1561163b5782828281811061144557611445613743565b905060200201356004600087878581811061146257611462613743565b9050602002013581526020019081526020016000206000886001600160a01b03166001600160a01b031681526020019081526020016000205410156114f45760405162461bcd60e51b815260206004820152602260248201527f62616c616e6365206d7573742062652067726561746572207468616e2076616c604482015261756560f01b60648201526084016107e7565b82828281811061150657611506613743565b905060200201356004600087878581811061152357611523613743565b9050602002013581526020019081526020016000206000886001600160a01b03166001600160a01b03168152602001908152602001600020546115669190613830565b6004600087878581811061157c5761157c613743565b9050602002013581526020019081526020016000206000886001600160a01b03166001600160a01b03168152602001908152602001600020819055508282828181106115ca576115ca613743565b90506020020135600860008787858181106115e7576115e7613743565b905060200201358152602001908152602001600020546116079190613830565b6008600087878581811061161d5761161d613743565b905060200201358152602001908152602001600020819055506117e9565b611650858583818110610cd057610cd0613743565b61169c5760405162461bcd60e51b815260206004820152601760248201527f4964206d757374206265206e6f6e2066756e6769626c6500000000000000000060448201526064016107e7565b8282828181106116ae576116ae613743565b905060200201356001146116f65760405162461bcd60e51b815260206004820152600f60248201526e76616c7565206d757374206265203160881b60448201526064016107e7565b600061170d868684818110610e2257610e22613743565b60008181526004602090815260408083206001600160a01b038c16845290915290205490915061173f90600190613830565b60008281526004602090815260408083206001600160a01b038c16845290915290205583838381811061177457611774613743565b9050602002013560086000838152602001908152602001600020546117999190613830565b6000828152600860205260408120919091556006908787858181106117c0576117c0613743565b6020908102929092013583525081019190915260400160002080546001600160a01b0319169055505b60006001600160a01b03871633600080516020613a7483398151915288888681811061181757611817613743565b9050602002013587878781811061183057611830613743565b9050602002013560405161184e929190918252602082015260400190565b60405180910390a48061186081613787565b915050611400565b505050505050565b611878612c4b565b611880612cab565b565b60608382146118d35760405162461bcd60e51b815260206004820152601e60248201527f4f776e65727320616e6420696473206c656e677468206d69736d61746368000060448201526064016107e7565b6000846001600160401b038111156118ed576118ed61334f565b604051908082528060200260200182016040528015611916578160200160208202803683370190505b50905060005b85811015611a4e57600085858381811061193857611938613743565b90506020020135905061194a81611ad6565b156119c75787878381811061196157611961613743565b9050602002016020810190611976919061345a565b6000828152600660205260409020546001600160a01b0390811691161461199e5760006119a1565b60015b60ff168383815181106119b6576119b6613743565b602002602001018181525050611a3d565b6000818152600460205260408120908989858181106119e8576119e8613743565b90506020020160208101906119fd919061345a565b6001600160a01b03166001600160a01b0316815260200190815260200160002054838381518110611a3057611a30613743565b6020026020010181815250505b50611a4781613787565b905061191c565b5095945050505050565b3360009081526009602052604090205460ff16611a875760405162461bcd60e51b81526004016107e79061370c565b8051611a9a90600b906020840190612ddc565b507f01e56a02aca7f26a28165a040851ba78f30282b55ca81c63a804cdc1e2dcea72600b604051611acb91906138af565b60405180910390a150565b6000600160ff1b8083161480156106335750506001600160801b0316151590565b611aff612c4b565b6118806000612cfd565b6000600160ff1b8083161480156106335750506001600160801b03161590565b611b31612c4b565b611880612d56565b611b41612c4b565b8051611b5490600a906020840190612ddc565b507f8bc80d02691adbcd8631bd956c34f729b47b1cdac70440a8410f85571e56543e600a604051611acb91906138af565b3360009081526009602052604090205460ff16611bb45760405162461bcd60e51b81526004016107e79061370c565b6000611bbf82610689565b9050817f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b82604051611bf19190612fd9565b60405180910390a25050565b611c05612953565b81611c0f81612a8f565b6001600160a01b0383163303611c795760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b60648201526084016107e7565b3360008181526005602090815260408083206001600160a01b03881680855290835292819020805460ff191687151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611cee612953565b611cf6612c4b565b60005b818110156112f9577fb5763ba23a8384e26e9f2f5bfcd8e3795e4248ce7bb99a61c9ee6488d352a5b1838383818110611d3457611d34613743565b9050602002016020810190611d49919061345a565b604080516001600160a01b039092168252600160208301520160405180910390a1600160096000858585818110611d8257611d82613743565b9050602002016020810190611d97919061345a565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055611dc881613787565b9050611cf9565b60005461010090046001600160a01b03166001600160a01b0316336001600160a01b031614611e1157604051635fc483c560e01b815260040160405180910390fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b611e3b612953565b3360009081526009602052604090205460ff16611e6a5760405162461bcd60e51b81526004016107e79061370c565b848314611ecb5760405162461bcd60e51b815260206004820152602960248201527f49447320616e6420726563697069656e7473206d757374206265206f662073616044820152680daca40d8cadccee8d60bb1b60648201526084016107e7565b60005b83811015612278576000611eed888884818110610e2257610e22613743565b60008181526007602052604090205490915060ff16611f445760405162461bcd60e51b81526020600482015260136024820152721391881d1bdad95b881b5d5cdd08195e1a5cdd606a1b60448201526064016107e7565b600160ff1b80821614611f995760405162461bcd60e51b815260206004820152601a60248201527f546f6b656e54797065206e6f74206e6f6e2d66756e6769626c6500000000000060448201526064016107e7565b6000868684818110611fad57611fad613743565b9050602002016020810190611fc2919061345a565b6001600160a01b0316036120185760405162461bcd60e51b815260206004820152601b60248201527f43616e6e6f74206d696e7420746f207a65726f2061646472657373000000000060448201526064016107e7565b60006006818a8a8681811061202f5761202f613743565b60209081029290920135835250810191909152604001600020546001600160a01b0316146120955760405162461bcd60e51b8152602060048201526013602482015272151bdad95b88185b1c9958591e481bdddb9959606a1b60448201526064016107e7565b60008686848181106120a9576120a9613743565b90506020020160208101906120be919061345a565b905080600660008b8b878181106120d7576120d7613743565b90506020020135815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060086000838152602001908152602001600020546001612130919061376f565b600083815260086020908152604080832093909355600481528282206001600160a01b03851683529052205461216790600161376f565b60008381526004602090815260408083206001600160a01b038616808552925282209290925533600080516020613a748339815191528c8c888181106121af576121af613743565b9050602002013560016040516121cf929190918252602082015260400190565b60405180910390a46121f88989858181106121ec576121ec613743565b90506020020135611b85565b6001600160a01b0381163b15612265576122653333838c8c8881811061222057612220613743565b9050602002013560018a8a8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061299992505050565b50508061227190613787565b9050611ece565b50505050505050565b600061228b612953565b3360009081526009602052604090205460ff166122ba5760405162461bcd60e51b81526004016107e79061370c565b60806002600081546122cb90613787565b9182905550901b905081156122fe57600160ff1b176000818152600760205260409020805460ff1916600117905561232d565b604080518281526000602082018190529182913391600080516020613a74833981519152910160405180910390a45b6040518181527ff6615ae155db21bc1a31ec4b1060f4469cd58b9e726ec7545ea32f33190048fe9060200160405180910390a1919050565b6060600a8054612374906135f8565b80601f01602080910402602001604051908101604052809291908181526020018280546123a0906135f8565b80156123ed5780601f106123c2576101008083540402835291602001916123ed565b820191906000526020600020905b8154815290600101906020018083116123d057829003601f168201915b5050505050905090565b6123ff612953565b856001600160a01b03811633146124195761241933612a8f565b6001600160a01b03861661246f5760405162461bcd60e51b815260206004820152601b60248201527f63616e6e6f742073656e6420746f207a65726f2061646472657373000000000060448201526064016107e7565b6001600160a01b0387163314806124ae57506001600160a01b038716600090815260056020908152604080832033845290915290205460ff1615156001145b6124ca5760405162461bcd60e51b81526004016107e7906137a0565b600160ff1b80861603612614576000858152600660205260409020546001600160a01b038881169116146125305760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b21037bbb732b960991b60448201526064016107e7565b600084116125505760405162461bcd60e51b81526004016107e7906137ee565b600085815260066020526040812080546001600160a01b0319166001600160a01b0389161790556001600160801b0319861660008181526004602090815260408083206001600160a01b038d1684529091529020549091506125b3908690613830565b60008281526004602090815260408083206001600160a01b038d811685529252808320939093558916815220546125eb90869061376f565b60009182526004602090815260408084206001600160a01b038b1685529091529091205561269e565b60008581526004602090815260408083206001600160a01b038b168452909152902054612642908590613830565b60008681526004602090815260408083206001600160a01b038c8116855292528083209390935588168152205461267a90859061376f565b60008681526004602090815260408083206001600160a01b038b1684529091529020555b60408051868152602081018690526001600160a01b0380891692908a16913391600080516020613a74833981519152910160405180910390a46001600160a01b0386163b1561227857612278338888888888888080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061299992505050565b612733612c4b565b6001600160a01b0381166127985760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107e7565b6127a181612cfd565b50565b6127ac612953565b6127b4612c4b565b806128015760405162461bcd60e51b815260206004820152601b60248201527f436c69656e74206e616d652063616e6e6f7420626520656d707479000000000060448201526064016107e7565b61280d60038383612e60565b507f5511538576a121f5d7bb3470453c3d6cd751879ac3f90737f6518ffcc3b9277b828260405161283f929190613934565b60405180910390a15050565b6060816000036128725750506040805180820190915260018152600360fc1b602082015290565b8160005b811561289c578061288681613787565b91506128959050600a83613979565b9150612876565b6000816001600160401b038111156128b6576128b661334f565b6040519080825280601f01601f1916602001820160405280156128e0576020820181803683370190505b5090505b841561294b576128f5600183613830565b9150612902600a8661398d565b61290d90603061376f565b60f81b81838151811061292257612922613743565b60200101906001600160f81b031916908160001a905350612944600a86613979565b94506128e4565b949350505050565b60005460ff16156118805760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016107e7565b60405163f23a6e6160e01b808252906001600160a01b0386169063f23a6e61906129cf908a908a908990899089906004016139a1565b6020604051808303816000875af11580156129ee573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a1291906139db565b6001600160e01b031916146118685760405162461bcd60e51b815260206004820152603960248201527f636f6e74726163742072657475726e656420616e20756e6b6e6f776e2076616c60448201527f75652066726f6d206f6e4552433131353552656365697665640000000000000060648201526084016107e7565b6001546001600160a01b03168015801590612ab457506000816001600160a01b03163b115b15612b5157604051633185c44d60e21b81523060048201526001600160a01b03838116602483015282169063c617113490604401602060405180830381865afa158015612b05573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b2991906139f8565b612b5157604051633b79c77360e21b81526001600160a01b03831660048201526024016107e7565b5050565b60405163bc197c8160e01b808252906001600160a01b0386169063bc197c8190612b8b908a908a90899089908990600401613a15565b6020604051808303816000875af1158015612baa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612bce91906139db565b6001600160e01b031916146118685760405162461bcd60e51b815260206004820152603e60248201527f636f6e74726163742072657475726e656420616e20756e6b6e6f776e2076616c60448201527f75652066726f6d206f6e4552433131353542617463685265636569766564000060648201526084016107e7565b6000546001600160a01b036101009091041633146118805760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107e7565b612cb3612d93565b6000805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600080546001600160a01b03838116610100818102610100600160a81b0319851617855560405193049190911692909183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35050565b612d5e612953565b6000805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612ce03390565b60005460ff166118805760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016107e7565b828054612de8906135f8565b90600052602060002090601f016020900481019282612e0a5760008555612e50565b82601f10612e2357805160ff1916838001178555612e50565b82800160010185558215612e50579182015b82811115612e50578251825591602001919060010190612e35565b50612e5c929150612ed4565b5090565b828054612e6c906135f8565b90600052602060002090601f016020900481019282612e8e5760008555612e50565b82601f10612ea75782800160ff19823516178555612e50565b82800160010185558215612e50579182015b82811115612e50578235825591602001919060010190612eb9565b5b80821115612e5c5760008155600101612ed5565b80356001600160a01b038116811461071d57600080fd5b60008060408385031215612f1357600080fd5b612f1c83612ee9565b946020939093013593505050565b6001600160e01b0319811681146127a157600080fd5b600060208284031215612f5257600080fd5b8135612f5d81612f2a565b9392505050565b600060208284031215612f7657600080fd5b5035919050565b60005b83811015612f98578181015183820152602001612f80565b83811115612fa7576000848401525b50505050565b60008151808452612fc5816020860160208601612f7d565b601f01601f19169290920160200192915050565b602081526000612f5d6020830184612fad565b60008083601f840112612ffe57600080fd5b5081356001600160401b0381111561301557600080fd5b6020830191508360208260051b850101111561303057600080fd5b9250929050565b60008083601f84011261304957600080fd5b5081356001600160401b0381111561306057600080fd5b60208301915083602082850101111561303057600080fd5b60008060008060008060006080888a03121561309357600080fd5b8735965060208801356001600160401b03808211156130b157600080fd5b6130bd8b838c01612fec565b909850965060408a01359150808211156130d657600080fd5b6130e28b838c01612fec565b909650945060608a01359150808211156130fb57600080fd5b506131088a828b01613037565b989b979a50959850939692959293505050565b60008060008060008060008060a0898b03121561313757600080fd5b61314089612ee9565b975061314e60208a01612ee9565b965060408901356001600160401b038082111561316a57600080fd5b6131768c838d01612fec565b909850965060608b013591508082111561318f57600080fd5b61319b8c838d01612fec565b909650945060808b01359150808211156131b457600080fd5b506131c18b828c01613037565b999c989b5096995094979396929594505050565b600080602083850312156131e857600080fd5b82356001600160401b038111156131fe57600080fd5b61320a85828601612fec565b90969095509350505050565b60008060008060006060868803121561322e57600080fd5b61323786612ee9565b945060208601356001600160401b038082111561325357600080fd5b61325f89838a01612fec565b9096509450604088013591508082111561327857600080fd5b5061328588828901612fec565b969995985093965092949392505050565b600080600080604085870312156132ac57600080fd5b84356001600160401b03808211156132c357600080fd5b6132cf88838901612fec565b909650945060208701359150808211156132e857600080fd5b506132f587828801612fec565b95989497509550505050565b600081518084526020808501945080840160005b8381101561333157815187529582019590820190600101613315565b509495945050505050565b602081526000612f5d6020830184613301565b634e487b7160e01b600052604160045260246000fd5b60006020828403121561337757600080fd5b81356001600160401b038082111561338e57600080fd5b818401915084601f8301126133a257600080fd5b8135818111156133b4576133b461334f565b604051601f8201601f19908116603f011681019083821181831017156133dc576133dc61334f565b816040528281528760208487010111156133f557600080fd5b826020860160208301376000928101602001929092525095945050505050565b80151581146127a157600080fd5b6000806040838503121561343657600080fd5b61343f83612ee9565b9150602083013561344f81613415565b809150509250929050565b60006020828403121561346c57600080fd5b612f5d82612ee9565b6000806000806000806060878903121561348e57600080fd5b86356001600160401b03808211156134a557600080fd5b6134b18a838b01612fec565b909850965060208901359150808211156134ca57600080fd5b6134d68a838b01612fec565b909650945060408901359150808211156134ef57600080fd5b506134fc89828a01613037565b979a9699509497509295939492505050565b60006020828403121561352057600080fd5b8135612f5d81613415565b6000806040838503121561353e57600080fd5b61354783612ee9565b915061355560208401612ee9565b90509250929050565b60008060008060008060a0878903121561357757600080fd5b61358087612ee9565b955061358e60208801612ee9565b9450604087013593506060870135925060808701356001600160401b038111156135b757600080fd5b6134fc89828a01613037565b600080602083850312156135d657600080fd5b82356001600160401b038111156135ec57600080fd5b61320a85828601613037565b600181811c9082168061360c57607f821691505b60208210810361362c57634e487b7160e01b600052602260045260246000fd5b50919050565b6000815461363f816135f8565b60018281168015613657576001811461366857613697565b60ff19841687528287019450613697565b8560005260208060002060005b8581101561368e5781548a820152908401908201613675565b50505082870194505b5050505092915050565b60006136ad8286613632565b84516136bd818360208901612f7d565b602f60f81b910190815283516136da816001840160208801612f7d565b0160010195945050505050565b60006136f38285613632565b8351613703818360208801612f7d565b01949350505050565b6020808252601b908201527f43726561746f72207065726d697373696f6e2072657175697265640000000000604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000821982111561378257613782613759565b500190565b60006001820161379957613799613759565b5060010190565b6020808252602e908201527f4e656564206f70657261746f7220617070726f76616c20666f7220337264207060408201526d61727479207472616e736665727360901b606082015260800190565b60208082526022908201527f7175616e74697479206d7573742062652067726561746572207468616e207a65604082015261726f60f01b606082015260800190565b60008282101561384257613842613759565b500390565b81835260006001600160fb1b0383111561386057600080fd5b8260051b8083602087013760009401602001938452509192915050565b604081526000613891604083018688613847565b82810360208401526138a4818587613847565b979650505050505050565b60006020808352600084546138c3816135f8565b808487015260406001808416600081146138e457600181146138f857613926565b60ff19851689840152606089019550613926565b896000528660002060005b8581101561391e5781548b8201860152908301908801613903565b8a0184019650505b509398975050505050505050565b60208152816020820152818360408301376000818301604090810191909152601f909201601f19160101919050565b634e487b7160e01b600052601260045260246000fd5b60008261398857613988613963565b500490565b60008261399c5761399c613963565b500690565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906138a490830184612fad565b6000602082840312156139ed57600080fd5b8151612f5d81612f2a565b600060208284031215613a0a57600080fd5b8151612f5d81613415565b6001600160a01b0386811682528516602082015260a060408201819052600090613a4190830186613301565b8281036060840152613a538186613301565b90508281036080840152613a678185612fad565b9897505050505050505056fec3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62a26469706673582212203b829dd796809f7669681f811b6a703285cd7ab40c6888bad99e247d305fa7f564736f6c634300080d0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000e4368616d70696f6e734172656e61000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _client (string): ChampionsArena
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 000000000000000000000000000000000000000000000000000000000000000e
Arg [2] : 4368616d70696f6e734172656e61000000000000000000000000000000000000
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.