Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 1,277 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Create | 21366353 | 15 hrs ago | IN | 0 ETH | 0.00208786 | ||||
Safe Transfer Fr... | 21338819 | 4 days ago | IN | 0 ETH | 0.0013589 | ||||
Set Approval For... | 21334773 | 5 days ago | IN | 0 ETH | 0.00117959 | ||||
Set Approval For... | 21327409 | 6 days ago | IN | 0 ETH | 0.00118154 | ||||
Set Approval For... | 21314983 | 7 days ago | IN | 0 ETH | 0.00110016 | ||||
Set Approval For... | 21313946 | 7 days ago | IN | 0 ETH | 0.0008606 | ||||
Set Approval For... | 21298088 | 10 days ago | IN | 0 ETH | 0.00046538 | ||||
Safe Transfer Fr... | 21294799 | 10 days ago | IN | 0 ETH | 0.00100419 | ||||
Set Approval For... | 21276728 | 13 days ago | IN | 0 ETH | 0.00065088 | ||||
Safe Transfer Fr... | 21262246 | 15 days ago | IN | 0 ETH | 0.00040277 | ||||
Set Approval For... | 21256079 | 16 days ago | IN | 0 ETH | 0.00058824 | ||||
Safe Transfer Fr... | 21256033 | 16 days ago | IN | 0 ETH | 0.00049927 | ||||
Set Approval For... | 21253656 | 16 days ago | IN | 0 ETH | 0.00065624 | ||||
Set Approval For... | 21252153 | 16 days ago | IN | 0 ETH | 0.00116158 | ||||
Set Approval For... | 21250142 | 16 days ago | IN | 0 ETH | 0.00065424 | ||||
Safe Transfer Fr... | 21247547 | 17 days ago | IN | 0 ETH | 0.00088824 | ||||
Set Approval For... | 21243030 | 17 days ago | IN | 0 ETH | 0.00068478 | ||||
Create | 21237162 | 18 days ago | IN | 0 ETH | 0.00121738 | ||||
Set Approval For... | 21232916 | 19 days ago | IN | 0 ETH | 0.00056175 | ||||
Safe Transfer Fr... | 21232893 | 19 days ago | IN | 0 ETH | 0.00044818 | ||||
Safe Transfer Fr... | 21226591 | 20 days ago | IN | 0 ETH | 0.00059083 | ||||
Safe Transfer Fr... | 21226591 | 20 days ago | IN | 0 ETH | 0.00059083 | ||||
Create | 21224793 | 20 days ago | IN | 0 ETH | 0.00121312 | ||||
Set Approval For... | 21221982 | 20 days ago | IN | 0 ETH | 0.00174893 | ||||
Set Approval For... | 21217368 | 21 days ago | IN | 0 ETH | 0.0011687 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
TownStarItems
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 TownStarItems 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 // OpenZeppelin Contracts (last updated v4.8.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 functionCallWithValue(target, data, 0, "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"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or 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 { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev _Available since v3.1._ */ interface IERC1155Receiver is IERC165 { /** * @dev Handles the receipt of a single ERC1155 token type. This function is * called at the end of a `safeTransferFrom` after the balance has been updated. * * NOTE: To accept the transfer, this must return * `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` * (i.e. 0xf23a6e61, or its own function selector). * * @param operator The address which initiated the transfer (i.e. msg.sender) * @param from The address which previously owned the token * @param id The ID of the token being transferred * @param value The amount of tokens being transferred * @param data Additional data with no specified format * @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed */ function onERC1155Received( address operator, address from, uint256 id, uint256 value, bytes calldata data ) external returns (bytes4); /** * @dev Handles the receipt of a multiple ERC1155 token types. This function * is called at the end of a `safeBatchTransferFrom` after the balances have * been updated. * * NOTE: To accept the transfer(s), this must return * `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` * (i.e. 0xbc197c81, or its own function selector). * * @param operator The address which initiated the batch transfer (i.e. msg.sender) * @param from The address which previously owned the token * @param ids An array containing ids of each token being transferred (order and length must match values array) * @param values An array containing amounts of each token being transferred (order and length must match ids array) * @param data Additional data with no specified format * @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed */ function onERC1155BatchReceived( address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol) pragma solidity ^0.8.0; import "../IERC1155.sol"; /** * @dev Interface of the optional ERC1155MetadataExtension interface, as defined * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP]. * * _Available since v3.1._ */ interface IERC1155MetadataURI is IERC1155 { /** * @dev Returns the URI for token type `id`. * * If the `\{id\}` substring is present in the URI, it must be replaced by * clients with the actual token type ID. */ function uri(uint256 id) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/IERC1155.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. * * _Available since v3.1._ */ interface IERC1155 is IERC165 { /** * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch( address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values ); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll(address indexed account, address indexed operator, bool approved); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the amount of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes calldata data ) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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 // 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 (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.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./math/Math.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant _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) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @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] = _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 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 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; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } }
// 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); }
{ "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
60a06040819052600060808190526200001b91600a9162000310565b506040805160208101918290526000908190526200003c91600b9162000310565b503480156200004a57600080fd5b5060405162004025380380620040258339810160408190526200006d91620003ff565b6000805460ff191690556daaeb6d7670e522a718067333cd4e733cc6cdda760b79bafa08df41ecfa224f810dceb66001620000a833620002b7565b600180546001600160a01b0319166001600160a01b03851690811790915583903b15620001e15781156200014057604051633e9f1edf60e11b81523060048201526001600160a01b038481166024830152821690637d3e3dbe906044015b600060405180830381600087803b1580156200012157600080fd5b505af115801562000136573d6000803e3d6000fd5b50505050620001e1565b6001600160a01b03831615620001855760405163a0af290360e01b81523060048201526001600160a01b03848116602483015282169063a0af29039060440162000106565b604051632210724360e11b81523060048201526001600160a01b03821690634420e48690602401600060405180830381600087803b158015620001c757600080fd5b505af1158015620001dc573d6000803e3d6000fd5b505050505b505050506000815111620002455760405162461bcd60e51b815260206004820152602160248201527f436f6e747261637420636c69656e74206e616d652069732072657175697265646044820152602160f81b606482015260840160405180910390fd5b336000908152600960209081526040909120805460ff19166001179055815162000276916003919084019062000310565b507f5511538576a121f5d7bb3470453c3d6cd751879ac3f90737f6518ffcc3b9277b81604051620002a89190620004b7565b60405180910390a15062000528565b600080546001600160a01b03838116610100818102610100600160a81b0319851617855560405193049190911692909183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35050565b8280546200031e90620004ec565b90600052602060002090601f0160209004810192826200034257600085556200038d565b82601f106200035d57805160ff19168380011785556200038d565b828001600101855582156200038d579182015b828111156200038d57825182559160200191906001019062000370565b506200039b9291506200039f565b5090565b5b808211156200039b5760008155600101620003a0565b634e487b7160e01b600052604160045260246000fd5b60005b83811015620003e9578181015183820152602001620003cf565b83811115620003f9576000848401525b50505050565b6000602082840312156200041257600080fd5b81516001600160401b03808211156200042a57600080fd5b818401915084601f8301126200043f57600080fd5b815181811115620004545762000454620003b6565b604051601f8201601f19908116603f011681019083821181831017156200047f576200047f620003b6565b816040528281528760208487010111156200049957600080fd5b620004ac836020830160208801620003cc565b979650505050505050565b6020815260008251806020840152620004d8816040850160208701620003cc565b601f01601f19169190910160400192915050565b600181811c908216806200050157607f821691505b6020821081036200052257634e487b7160e01b600052602260045260246000fd5b50919050565b613aed80620005386000396000f3fe608060405234801561001057600080fd5b506004361061023c5760003560e01c80637269a3271161013b578063b0ccc31e116100b8578063e8a3d4851161007c578063e8a3d4851461054c578063e985e9c514610554578063f242432a14610590578063f2fde38b146105a3578063fd6a009a146105b657600080fd5b8063b0ccc31e146104e6578063b8d1e532146104f9578063c5d549651461050c578063db5a4ce61461051f578063e44591f01461053257600080fd5b806395d817bc116100ff57806395d817bc146104655780639cca1c641461048e578063a22cb465146104a8578063a9e7d531146104bb578063adebf6f2146104ce57600080fd5b80637269a3271461040e5780638456cb59146104215780638da5cb5b14610429578063938e3d7b1461043f578063951f4f961461045257600080fd5b80633f4ba83a116101c95780635c975abb1161018d5780635c975abb1461038c5780635e81b958146103975780636352211e146103aa5780636f969c2d146103eb578063715018a61461040657600080fd5b80633f4ba83a1461032057806346a9af86146103285780634e1273f41461034b57806352fb73991461036b57806355f804b31461037957600080fd5b8063183fb25411610210578063183fb254146102b25780632693ebf2146102c75780632eb2c2d6146102e7578063352949d3146102fa5780633db0f8ab1461030d57600080fd5b8062fdd58e1461024157806301ffc9a7146102675780630e89341c1461028a578063109e94cf146102aa575b600080fd5b61025461024f366004612f62565b6105c9565b6040519081526020015b60405180910390f35b61027a610275366004612fa2565b610639565b604051901515815260200161025e565b61029d610298366004612fc6565b610689565b60405161025e919061303b565b61029d610722565b6102c56102c03660046130da565b6107b0565b005b6102546102d5366004612fc6565b60086020526000908152604090205481565b6102c56102f536600461317d565b610b8e565b6102c5610308366004613237565b611219565b6102c561031b366004613278565b6112fe565b6102c5611870565b61027a610336366004612fc6565b60076020526000908152604090205460ff1681565b61035e6103593660046132f8565b611882565b60405161025e919061339e565b6102546001600160801b0381565b6102c56103873660046133c7565b611a58565b60005460ff1661027a565b61027a6103a5366004612fc6565b611ad6565b6103d36103b8366004612fc6565b6000908152600660205260409020546001600160a01b031690565b6040516001600160a01b03909116815260200161025e565b6102546103f9366004612fc6565b6001600160801b03191690565b6102c5611af7565b61027a61041c366004612fc6565b611b09565b6102c5611b29565b60005461010090046001600160a01b03166103d3565b6102c561044d3660046133c7565b611b39565b6102c5610460366004612fc6565b611b85565b6103d3610473366004612fc6565b6006602052600090815260409020546001600160a01b031681565b61025461049c366004612fc6565b6001600160801b031690565b6102c56104b6366004613485565b611bfd565b6102c56104c9366004613237565b611ce6565b61027a6104dc366004612fc6565b600160ff1b161590565b6001546103d3906001600160a01b031681565b6102c56105073660046134bc565b611dcf565b6102c561051a3660046134d7565b611e33565b61025461052d366004613570565b612281565b61027a610540366004612fc6565b600160ff1b9081161490565b61029d612365565b61027a61056236600461358d565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6102c561059e3660046135c0565b6123f7565b6102c56105b13660046134bc565b61272b565b6102c56105c4366004613625565b6127a4565b60006105d482611ad6565b1561060e576000828152600660205260409020546001600160a01b03848116911614610601576000610604565b60015b60ff169050610633565b5060008181526004602090815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b03198216636cdb3d1360e11b148061066a57506001600160e01b031982166303a24d0760e21b145b8061063357506301ffc9a760e01b6001600160e01b0319831614610633565b6060600160ff1b808316036106eb576001600160801b031982166001600160801b038316600b6106b88361284b565b6106c18361284b565b6040516020016106d393929190613703565b60405160208183030381529060405292505050919050565b600b6106f68361284b565b604051602001610707929190613749565b6040516020818303038152906040529050919050565b919050565b6003805461072f9061365a565b80601f016020809104026020016040519081016040528092919081815260200182805461075b9061365a565b80156107a85780601f1061077d576101008083540402835291602001916107a8565b820191906000526020600020905b81548152906001019060200180831161078b57829003601f168201915b505050505081565b6107b86128dd565b3360009081526009602052604090205460ff166107f05760405162461bcd60e51b81526004016107e79061376e565b60405180910390fd5b600160ff1b8716156108445760405162461bcd60e51b815260206004820152601c60248201527f4944206d7573742062652061206e6f6e2d66756e6769626c652049440000000060448201526064016107e7565b84831461089f5760405162461bcd60e51b8152602060048201526024808201527f4164647265737320616e64207175616e74697479206c656e677468206d69736d6044820152630c2e8c6d60e31b60648201526084016107e7565b60005b85811015610b845760008787838181106108be576108be6137a5565b90506020020160208101906108d391906134bc565b6001600160a01b0316036109295760405162461bcd60e51b815260206004820181905260248201527f526563697069656e7420616464726573732063616e6e6f74206265207a65726f60448201526064016107e7565b60008881526004602052604081209088888481811061094a5761094a6137a5565b905060200201602081019061095f91906134bc565b6001600160a01b03166001600160a01b0316815260200190815260200160002054858583818110610992576109926137a5565b905060200201356109a391906137d1565b6000898152600460205260408120908989858181106109c4576109c46137a5565b90506020020160208101906109d991906134bc565b6001600160a01b03168152602081019190915260400160002055848482818110610a0557610a056137a5565b90506020020135600860008a815260200190815260200160002054610a2a91906137d1565b600089815260086020526040902055868682818110610a4b57610a4b6137a5565b9050602002016020810190610a6091906134bc565b6001600160a01b0316600033600080516020613a988339815191528b898987818110610a8e57610a8e6137a5565b90506020020135604051610aac929190918252602082015260400190565b60405180910390a4610aed878783818110610ac957610ac96137a5565b9050602002016020810190610ade91906134bc565b6001600160a01b03163b151590565b15610b7457610b743333898985818110610b0957610b096137a5565b9050602002016020810190610b1e91906134bc565b8b898987818110610b3157610b316137a5565b9050602002013588888080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061292392505050565b610b7d816137e9565b90506108a2565b5050505050505050565b610b966128dd565b876001600160a01b0381163314610bb057610bb033612a19565b6001600160a01b038816610c065760405162461bcd60e51b815260206004820152601b60248201527f43616e6e6f742073656e6420746f207a65726f2061646472657373000000000060448201526064016107e7565b858414610c555760405162461bcd60e51b815260206004820152601760248201527f4172726179206c656e677468206d757374206d6174636800000000000000000060448201526064016107e7565b6001600160a01b038916331480610c9457506001600160a01b038916600090815260056020908152604080832033845290915290205460ff1615156001145b610cb05760405162461bcd60e51b81526004016107e790613802565b60005b868110156110fe57610ce3888883818110610cd057610cd06137a5565b90506020020135600160ff1b9081161490565b15610f6557896001600160a01b0316600660008a8a85818110610d0857610d086137a5565b60209081029290920135835250810191909152604001600020546001600160a01b031614610d685760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b21037bbb732b960991b60448201526064016107e7565b6000868683818110610d7c57610d7c6137a5565b9050602002013511610da05760405162461bcd60e51b81526004016107e790613850565b88600660008a8a85818110610db757610db76137a5565b90506020020135815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b03160217905550858582818110610e0257610e026137a5565b9050602002013560046000610e368b8b86818110610e2257610e226137a5565b905060200201356001600160801b03191690565b815260200190815260200160002060008c6001600160a01b03166001600160a01b0316815260200190815260200160002054610e729190613892565b60046000610e8b8b8b86818110610e2257610e226137a5565b8152602080820192909252604090810160009081206001600160a01b038f168252909252902055858582818110610ec457610ec46137a5565b9050602002013560046000610ee48b8b86818110610e2257610e226137a5565b815260200190815260200160002060008b6001600160a01b03166001600160a01b0316815260200190815260200160002054610f2091906137d1565b60046000610f398b8b86818110610e2257610e226137a5565b8152602080820192909252604090810160009081206001600160a01b038e1682529092529020556110ee565b858582818110610f7757610f776137a5565b90506020020135600460008a8a85818110610f9457610f946137a5565b90506020020135815260200190815260200160002060008c6001600160a01b03166001600160a01b0316815260200190815260200160002054610fd79190613892565b600460008a8a85818110610fed57610fed6137a5565b90506020020135815260200190815260200160002060008c6001600160a01b03166001600160a01b03168152602001908152602001600020819055506004600089898481811061103f5761103f6137a5565b90506020020135815260200190815260200160002060008a6001600160a01b03166001600160a01b031681526020019081526020016000205486868381811061108a5761108a6137a5565b9050602002013561109b91906137d1565b600460008a8a858181106110b1576110b16137a5565b90506020020135815260200190815260200160002060008b6001600160a01b03166001600160a01b03168152602001908152602001600020819055505b6110f7816137e9565b9050610cb3565b50876001600160a01b0316896001600160a01b0316336001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8a8a8a8a60405161115294939291906138df565b60405180910390a46001600160a01b0388163b1561120e5761120e338a8a8a8a8080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050604080516020808e0282810182019093528d82529093508d92508c91829185019084908082843760009201919091525050604080516020601f8d018190048102820181019092528b815292508b91508a9081908401838280828437600092019190915250612adf92505050565b505050505050505050565b6112216128dd565b611229612bd5565b60005b818110156112f9576009600084848481811061124a5761124a6137a5565b905060200201602081019061125f91906134bc565b6001600160a01b031681526020810191909152604001600020805460ff191690557fb5763ba23a8384e26e9f2f5bfcd8e3795e4248ce7bb99a61c9ee6488d352a5b18383838181106112b3576112b36137a5565b90506020020160208101906112c891906134bc565b604080516001600160a01b039092168252600060208301520160405180910390a16112f2816137e9565b905061122c565b505050565b6113066128dd565b6001600160a01b03851633148061134557506001600160a01b038516600090815260056020908152604080832033845290915290205460ff1615156001145b6113a35760405162461bcd60e51b815260206004820152602960248201527f4e656564206f70657261746f7220617070726f76616c20666f7220337264207060448201526830b93a3c90313ab93760b91b60648201526084016107e7565b82158015906113b157508281145b6113fd5760405162461bcd60e51b815260206004820152601760248201527f49647320616e642076616c756573206d69736d6174636800000000000000000060448201526064016107e7565b60005b838110156118685761142e85858381811061141d5761141d6137a5565b90506020020135600160ff1b161590565b1561163b57828282818110611445576114456137a5565b9050602002013560046000878785818110611462576114626137a5565b9050602002013581526020019081526020016000206000886001600160a01b03166001600160a01b031681526020019081526020016000205410156114f45760405162461bcd60e51b815260206004820152602260248201527f62616c616e6365206d7573742062652067726561746572207468616e2076616c604482015261756560f01b60648201526084016107e7565b828282818110611506576115066137a5565b9050602002013560046000878785818110611523576115236137a5565b9050602002013581526020019081526020016000206000886001600160a01b03166001600160a01b03168152602001908152602001600020546115669190613892565b6004600087878581811061157c5761157c6137a5565b9050602002013581526020019081526020016000206000886001600160a01b03166001600160a01b03168152602001908152602001600020819055508282828181106115ca576115ca6137a5565b90506020020135600860008787858181106115e7576115e76137a5565b905060200201358152602001908152602001600020546116079190613892565b6008600087878581811061161d5761161d6137a5565b905060200201358152602001908152602001600020819055506117e9565b611650858583818110610cd057610cd06137a5565b61169c5760405162461bcd60e51b815260206004820152601760248201527f4964206d757374206265206e6f6e2066756e6769626c6500000000000000000060448201526064016107e7565b8282828181106116ae576116ae6137a5565b905060200201356001146116f65760405162461bcd60e51b815260206004820152600f60248201526e76616c7565206d757374206265203160881b60448201526064016107e7565b600061170d868684818110610e2257610e226137a5565b60008181526004602090815260408083206001600160a01b038c16845290915290205490915061173f90600190613892565b60008281526004602090815260408083206001600160a01b038c168452909152902055838383818110611774576117746137a5565b9050602002013560086000838152602001908152602001600020546117999190613892565b6000828152600860205260408120919091556006908787858181106117c0576117c06137a5565b6020908102929092013583525081019190915260400160002080546001600160a01b0319169055505b60006001600160a01b03871633600080516020613a98833981519152888886818110611817576118176137a5565b90506020020135878787818110611830576118306137a5565b9050602002013560405161184e929190918252602082015260400190565b60405180910390a480611860816137e9565b915050611400565b505050505050565b611878612bd5565b611880612c35565b565b60608382146118d35760405162461bcd60e51b815260206004820152601e60248201527f4f776e65727320616e6420696473206c656e677468206d69736d61746368000060448201526064016107e7565b6000846001600160401b038111156118ed576118ed6133b1565b604051908082528060200260200182016040528015611916578160200160208202803683370190505b50905060005b85811015611a4e576000858583818110611938576119386137a5565b90506020020135905061194a81611ad6565b156119c757878783818110611961576119616137a5565b905060200201602081019061197691906134bc565b6000828152600660205260409020546001600160a01b0390811691161461199e5760006119a1565b60015b60ff168383815181106119b6576119b66137a5565b602002602001018181525050611a3d565b6000818152600460205260408120908989858181106119e8576119e86137a5565b90506020020160208101906119fd91906134bc565b6001600160a01b03166001600160a01b0316815260200190815260200160002054838381518110611a3057611a306137a5565b6020026020010181815250505b50611a47816137e9565b905061191c565b5095945050505050565b3360009081526009602052604090205460ff16611a875760405162461bcd60e51b81526004016107e79061376e565b8051611a9a90600b906020840190612e3e565b507f01e56a02aca7f26a28165a040851ba78f30282b55ca81c63a804cdc1e2dcea72600b604051611acb9190613911565b60405180910390a150565b6000600160ff1b8083161480156106335750506001600160801b0316151590565b611aff612bd5565b6118806000612c87565b6000600160ff1b8083161480156106335750506001600160801b03161590565b611b31612bd5565b611880612ce0565b611b41612bd5565b8051611b5490600a906020840190612e3e565b507f8bc80d02691adbcd8631bd956c34f729b47b1cdac70440a8410f85571e56543e600a604051611acb9190613911565b3360009081526009602052604090205460ff16611bb45760405162461bcd60e51b81526004016107e79061376e565b6000611bbf82610689565b9050817f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b82604051611bf1919061303b565b60405180910390a25050565b611c056128dd565b81611c0f81612a19565b6001600160a01b0383163303611c795760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b60648201526084016107e7565b3360008181526005602090815260408083206001600160a01b03881680855290835292819020805460ff191687151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611cee6128dd565b611cf6612bd5565b60005b818110156112f9577fb5763ba23a8384e26e9f2f5bfcd8e3795e4248ce7bb99a61c9ee6488d352a5b1838383818110611d3457611d346137a5565b9050602002016020810190611d4991906134bc565b604080516001600160a01b039092168252600160208301520160405180910390a1600160096000858585818110611d8257611d826137a5565b9050602002016020810190611d9791906134bc565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055611dc8816137e9565b9050611cf9565b60005461010090046001600160a01b03166001600160a01b0316336001600160a01b031614611e1157604051635fc483c560e01b815260040160405180910390fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b611e3b6128dd565b3360009081526009602052604090205460ff16611e6a5760405162461bcd60e51b81526004016107e79061376e565b848314611ecb5760405162461bcd60e51b815260206004820152602960248201527f49447320616e6420726563697069656e7473206d757374206265206f662073616044820152680daca40d8cadccee8d60bb1b60648201526084016107e7565b60005b83811015612278576000611eed888884818110610e2257610e226137a5565b60008181526007602052604090205490915060ff16611f445760405162461bcd60e51b81526020600482015260136024820152721391881d1bdad95b881b5d5cdd08195e1a5cdd606a1b60448201526064016107e7565b600160ff1b80821614611f995760405162461bcd60e51b815260206004820152601a60248201527f546f6b656e54797065206e6f74206e6f6e2d66756e6769626c6500000000000060448201526064016107e7565b6000868684818110611fad57611fad6137a5565b9050602002016020810190611fc291906134bc565b6001600160a01b0316036120185760405162461bcd60e51b815260206004820152601b60248201527f43616e6e6f74206d696e7420746f207a65726f2061646472657373000000000060448201526064016107e7565b60006006818a8a8681811061202f5761202f6137a5565b60209081029290920135835250810191909152604001600020546001600160a01b0316146120955760405162461bcd60e51b8152602060048201526013602482015272151bdad95b88185b1c9958591e481bdddb9959606a1b60448201526064016107e7565b60008686848181106120a9576120a96137a5565b90506020020160208101906120be91906134bc565b905080600660008b8b878181106120d7576120d76137a5565b90506020020135815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b031602179055506008600083815260200190815260200160002054600161213091906137d1565b600083815260086020908152604080832093909355600481528282206001600160a01b0385168352905220546121679060016137d1565b60008381526004602090815260408083206001600160a01b038616808552925282209290925533600080516020613a988339815191528c8c888181106121af576121af6137a5565b9050602002013560016040516121cf929190918252602082015260400190565b60405180910390a46121f88989858181106121ec576121ec6137a5565b90506020020135611b85565b6001600160a01b0381163b15612265576122653333838c8c88818110612220576122206137a5565b9050602002013560018a8a8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061292392505050565b505080612271906137e9565b9050611ece565b50505050505050565b600061228b6128dd565b3360009081526009602052604090205460ff166122ba5760405162461bcd60e51b81526004016107e79061376e565b60806002600081546122cb906137e9565b9182905550901b905081156122fe57600160ff1b176000818152600760205260409020805460ff1916600117905561232d565b604080518281526000602082018190529182913391600080516020613a98833981519152910160405180910390a45b6040518181527ff6615ae155db21bc1a31ec4b1060f4469cd58b9e726ec7545ea32f33190048fe9060200160405180910390a1919050565b6060600a80546123749061365a565b80601f01602080910402602001604051908101604052809291908181526020018280546123a09061365a565b80156123ed5780601f106123c2576101008083540402835291602001916123ed565b820191906000526020600020905b8154815290600101906020018083116123d057829003601f168201915b5050505050905090565b6123ff6128dd565b856001600160a01b03811633146124195761241933612a19565b6001600160a01b03861661246f5760405162461bcd60e51b815260206004820152601b60248201527f63616e6e6f742073656e6420746f207a65726f2061646472657373000000000060448201526064016107e7565b6001600160a01b0387163314806124ae57506001600160a01b038716600090815260056020908152604080832033845290915290205460ff1615156001145b6124ca5760405162461bcd60e51b81526004016107e790613802565b600160ff1b80861603612614576000858152600660205260409020546001600160a01b038881169116146125305760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b21037bbb732b960991b60448201526064016107e7565b600084116125505760405162461bcd60e51b81526004016107e790613850565b600085815260066020526040812080546001600160a01b0319166001600160a01b0389161790556001600160801b0319861660008181526004602090815260408083206001600160a01b038d1684529091529020549091506125b3908690613892565b60008281526004602090815260408083206001600160a01b038d811685529252808320939093558916815220546125eb9086906137d1565b60009182526004602090815260408084206001600160a01b038b1685529091529091205561269e565b60008581526004602090815260408083206001600160a01b038b168452909152902054612642908590613892565b60008681526004602090815260408083206001600160a01b038c8116855292528083209390935588168152205461267a9085906137d1565b60008681526004602090815260408083206001600160a01b038b1684529091529020555b60408051868152602081018690526001600160a01b0380891692908a16913391600080516020613a98833981519152910160405180910390a46001600160a01b0386163b1561227857612278338888888888888080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061292392505050565b612733612bd5565b6001600160a01b0381166127985760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107e7565b6127a181612c87565b50565b6127ac6128dd565b6127b4612bd5565b806128015760405162461bcd60e51b815260206004820152601b60248201527f436c69656e74206e616d652063616e6e6f7420626520656d707479000000000060448201526064016107e7565b61280d60038383612ec2565b507f5511538576a121f5d7bb3470453c3d6cd751879ac3f90737f6518ffcc3b9277b828260405161283f929190613996565b60405180910390a15050565b6060600061285883612d1d565b60010190506000816001600160401b03811115612877576128776133b1565b6040519080825280601f01601f1916602001820160405280156128a1576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846128ab57509392505050565b60005460ff16156118805760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016107e7565b60405163f23a6e6160e01b808252906001600160a01b0386169063f23a6e6190612959908a908a908990899089906004016139c5565b6020604051808303816000875af1158015612978573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061299c91906139ff565b6001600160e01b031916146118685760405162461bcd60e51b815260206004820152603960248201527f636f6e74726163742072657475726e656420616e20756e6b6e6f776e2076616c60448201527f75652066726f6d206f6e4552433131353552656365697665640000000000000060648201526084016107e7565b6001546001600160a01b03168015801590612a3e57506000816001600160a01b03163b115b15612adb57604051633185c44d60e21b81523060048201526001600160a01b03838116602483015282169063c617113490604401602060405180830381865afa158015612a8f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ab39190613a1c565b612adb57604051633b79c77360e21b81526001600160a01b03831660048201526024016107e7565b5050565b60405163bc197c8160e01b808252906001600160a01b0386169063bc197c8190612b15908a908a90899089908990600401613a39565b6020604051808303816000875af1158015612b34573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b5891906139ff565b6001600160e01b031916146118685760405162461bcd60e51b815260206004820152603e60248201527f636f6e74726163742072657475726e656420616e20756e6b6e6f776e2076616c60448201527f75652066726f6d206f6e4552433131353542617463685265636569766564000060648201526084016107e7565b6000546001600160a01b036101009091041633146118805760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107e7565b612c3d612df5565b6000805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600080546001600160a01b03838116610100818102610100600160a81b0319851617855560405193049190911692909183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35050565b612ce86128dd565b6000805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612c6a3390565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310612d5c5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310612d88576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310612da657662386f26fc10000830492506010015b6305f5e1008310612dbe576305f5e100830492506008015b6127108310612dd257612710830492506004015b60648310612de4576064830492506002015b600a83106106335760010192915050565b60005460ff166118805760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016107e7565b828054612e4a9061365a565b90600052602060002090601f016020900481019282612e6c5760008555612eb2565b82601f10612e8557805160ff1916838001178555612eb2565b82800160010185558215612eb2579182015b82811115612eb2578251825591602001919060010190612e97565b50612ebe929150612f36565b5090565b828054612ece9061365a565b90600052602060002090601f016020900481019282612ef05760008555612eb2565b82601f10612f095782800160ff19823516178555612eb2565b82800160010185558215612eb2579182015b82811115612eb2578235825591602001919060010190612f1b565b5b80821115612ebe5760008155600101612f37565b80356001600160a01b038116811461071d57600080fd5b60008060408385031215612f7557600080fd5b612f7e83612f4b565b946020939093013593505050565b6001600160e01b0319811681146127a157600080fd5b600060208284031215612fb457600080fd5b8135612fbf81612f8c565b9392505050565b600060208284031215612fd857600080fd5b5035919050565b60005b83811015612ffa578181015183820152602001612fe2565b83811115613009576000848401525b50505050565b60008151808452613027816020860160208601612fdf565b601f01601f19169290920160200192915050565b602081526000612fbf602083018461300f565b60008083601f84011261306057600080fd5b5081356001600160401b0381111561307757600080fd5b6020830191508360208260051b850101111561309257600080fd5b9250929050565b60008083601f8401126130ab57600080fd5b5081356001600160401b038111156130c257600080fd5b60208301915083602082850101111561309257600080fd5b60008060008060008060006080888a0312156130f557600080fd5b8735965060208801356001600160401b038082111561311357600080fd5b61311f8b838c0161304e565b909850965060408a013591508082111561313857600080fd5b6131448b838c0161304e565b909650945060608a013591508082111561315d57600080fd5b5061316a8a828b01613099565b989b979a50959850939692959293505050565b60008060008060008060008060a0898b03121561319957600080fd5b6131a289612f4b565b97506131b060208a01612f4b565b965060408901356001600160401b03808211156131cc57600080fd5b6131d88c838d0161304e565b909850965060608b01359150808211156131f157600080fd5b6131fd8c838d0161304e565b909650945060808b013591508082111561321657600080fd5b506132238b828c01613099565b999c989b5096995094979396929594505050565b6000806020838503121561324a57600080fd5b82356001600160401b0381111561326057600080fd5b61326c8582860161304e565b90969095509350505050565b60008060008060006060868803121561329057600080fd5b61329986612f4b565b945060208601356001600160401b03808211156132b557600080fd5b6132c189838a0161304e565b909650945060408801359150808211156132da57600080fd5b506132e78882890161304e565b969995985093965092949392505050565b6000806000806040858703121561330e57600080fd5b84356001600160401b038082111561332557600080fd5b6133318883890161304e565b9096509450602087013591508082111561334a57600080fd5b506133578782880161304e565b95989497509550505050565b600081518084526020808501945080840160005b8381101561339357815187529582019590820190600101613377565b509495945050505050565b602081526000612fbf6020830184613363565b634e487b7160e01b600052604160045260246000fd5b6000602082840312156133d957600080fd5b81356001600160401b03808211156133f057600080fd5b818401915084601f83011261340457600080fd5b813581811115613416576134166133b1565b604051601f8201601f19908116603f0116810190838211818310171561343e5761343e6133b1565b8160405282815287602084870101111561345757600080fd5b826020860160208301376000928101602001929092525095945050505050565b80151581146127a157600080fd5b6000806040838503121561349857600080fd5b6134a183612f4b565b915060208301356134b181613477565b809150509250929050565b6000602082840312156134ce57600080fd5b612fbf82612f4b565b600080600080600080606087890312156134f057600080fd5b86356001600160401b038082111561350757600080fd5b6135138a838b0161304e565b9098509650602089013591508082111561352c57600080fd5b6135388a838b0161304e565b9096509450604089013591508082111561355157600080fd5b5061355e89828a01613099565b979a9699509497509295939492505050565b60006020828403121561358257600080fd5b8135612fbf81613477565b600080604083850312156135a057600080fd5b6135a983612f4b565b91506135b760208401612f4b565b90509250929050565b60008060008060008060a087890312156135d957600080fd5b6135e287612f4b565b95506135f060208801612f4b565b9450604087013593506060870135925060808701356001600160401b0381111561361957600080fd5b61355e89828a01613099565b6000806020838503121561363857600080fd5b82356001600160401b0381111561364e57600080fd5b61326c85828601613099565b600181811c9082168061366e57607f821691505b60208210810361368e57634e487b7160e01b600052602260045260246000fd5b50919050565b600081546136a18161365a565b600182811680156136b957600181146136ca576136f9565b60ff198416875282870194506136f9565b8560005260208060002060005b858110156136f05781548a8201529084019082016136d7565b50505082870194505b5050505092915050565b600061370f8286613694565b845161371f818360208901612fdf565b602f60f81b9101908152835161373c816001840160208801612fdf565b0160010195945050505050565b60006137558285613694565b8351613765818360208801612fdf565b01949350505050565b6020808252601b908201527f43726561746f72207065726d697373696f6e2072657175697265640000000000604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600082198211156137e4576137e46137bb565b500190565b6000600182016137fb576137fb6137bb565b5060010190565b6020808252602e908201527f4e656564206f70657261746f7220617070726f76616c20666f7220337264207060408201526d61727479207472616e736665727360901b606082015260800190565b60208082526022908201527f7175616e74697479206d7573742062652067726561746572207468616e207a65604082015261726f60f01b606082015260800190565b6000828210156138a4576138a46137bb565b500390565b81835260006001600160fb1b038311156138c257600080fd5b8260051b8083602087013760009401602001938452509192915050565b6040815260006138f36040830186886138a9565b82810360208401526139068185876138a9565b979650505050505050565b60006020808352600084546139258161365a565b80848701526040600180841660008114613946576001811461395a57613988565b60ff19851689840152606089019550613988565b896000528660002060005b858110156139805781548b8201860152908301908801613965565b8a0184019650505b509398975050505050505050565b60208152816020820152818360408301376000818301604090810191909152601f909201601f19160101919050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906139069083018461300f565b600060208284031215613a1157600080fd5b8151612fbf81612f8c565b600060208284031215613a2e57600080fd5b8151612fbf81613477565b6001600160a01b0386811682528516602082015260a060408201819052600090613a6590830186613363565b8281036060840152613a778186613363565b90508281036080840152613a8b818561300f565b9897505050505050505056fec3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62a2646970667358221220a20c9e1930a946ba6b1214063b8b16430636646ce61b3cc67fc1c8947ff39dd264736f6c634300080d00330000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000d546f776e537461724974656d7300000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061023c5760003560e01c80637269a3271161013b578063b0ccc31e116100b8578063e8a3d4851161007c578063e8a3d4851461054c578063e985e9c514610554578063f242432a14610590578063f2fde38b146105a3578063fd6a009a146105b657600080fd5b8063b0ccc31e146104e6578063b8d1e532146104f9578063c5d549651461050c578063db5a4ce61461051f578063e44591f01461053257600080fd5b806395d817bc116100ff57806395d817bc146104655780639cca1c641461048e578063a22cb465146104a8578063a9e7d531146104bb578063adebf6f2146104ce57600080fd5b80637269a3271461040e5780638456cb59146104215780638da5cb5b14610429578063938e3d7b1461043f578063951f4f961461045257600080fd5b80633f4ba83a116101c95780635c975abb1161018d5780635c975abb1461038c5780635e81b958146103975780636352211e146103aa5780636f969c2d146103eb578063715018a61461040657600080fd5b80633f4ba83a1461032057806346a9af86146103285780634e1273f41461034b57806352fb73991461036b57806355f804b31461037957600080fd5b8063183fb25411610210578063183fb254146102b25780632693ebf2146102c75780632eb2c2d6146102e7578063352949d3146102fa5780633db0f8ab1461030d57600080fd5b8062fdd58e1461024157806301ffc9a7146102675780630e89341c1461028a578063109e94cf146102aa575b600080fd5b61025461024f366004612f62565b6105c9565b6040519081526020015b60405180910390f35b61027a610275366004612fa2565b610639565b604051901515815260200161025e565b61029d610298366004612fc6565b610689565b60405161025e919061303b565b61029d610722565b6102c56102c03660046130da565b6107b0565b005b6102546102d5366004612fc6565b60086020526000908152604090205481565b6102c56102f536600461317d565b610b8e565b6102c5610308366004613237565b611219565b6102c561031b366004613278565b6112fe565b6102c5611870565b61027a610336366004612fc6565b60076020526000908152604090205460ff1681565b61035e6103593660046132f8565b611882565b60405161025e919061339e565b6102546001600160801b0381565b6102c56103873660046133c7565b611a58565b60005460ff1661027a565b61027a6103a5366004612fc6565b611ad6565b6103d36103b8366004612fc6565b6000908152600660205260409020546001600160a01b031690565b6040516001600160a01b03909116815260200161025e565b6102546103f9366004612fc6565b6001600160801b03191690565b6102c5611af7565b61027a61041c366004612fc6565b611b09565b6102c5611b29565b60005461010090046001600160a01b03166103d3565b6102c561044d3660046133c7565b611b39565b6102c5610460366004612fc6565b611b85565b6103d3610473366004612fc6565b6006602052600090815260409020546001600160a01b031681565b61025461049c366004612fc6565b6001600160801b031690565b6102c56104b6366004613485565b611bfd565b6102c56104c9366004613237565b611ce6565b61027a6104dc366004612fc6565b600160ff1b161590565b6001546103d3906001600160a01b031681565b6102c56105073660046134bc565b611dcf565b6102c561051a3660046134d7565b611e33565b61025461052d366004613570565b612281565b61027a610540366004612fc6565b600160ff1b9081161490565b61029d612365565b61027a61056236600461358d565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6102c561059e3660046135c0565b6123f7565b6102c56105b13660046134bc565b61272b565b6102c56105c4366004613625565b6127a4565b60006105d482611ad6565b1561060e576000828152600660205260409020546001600160a01b03848116911614610601576000610604565b60015b60ff169050610633565b5060008181526004602090815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b03198216636cdb3d1360e11b148061066a57506001600160e01b031982166303a24d0760e21b145b8061063357506301ffc9a760e01b6001600160e01b0319831614610633565b6060600160ff1b808316036106eb576001600160801b031982166001600160801b038316600b6106b88361284b565b6106c18361284b565b6040516020016106d393929190613703565b60405160208183030381529060405292505050919050565b600b6106f68361284b565b604051602001610707929190613749565b6040516020818303038152906040529050919050565b919050565b6003805461072f9061365a565b80601f016020809104026020016040519081016040528092919081815260200182805461075b9061365a565b80156107a85780601f1061077d576101008083540402835291602001916107a8565b820191906000526020600020905b81548152906001019060200180831161078b57829003601f168201915b505050505081565b6107b86128dd565b3360009081526009602052604090205460ff166107f05760405162461bcd60e51b81526004016107e79061376e565b60405180910390fd5b600160ff1b8716156108445760405162461bcd60e51b815260206004820152601c60248201527f4944206d7573742062652061206e6f6e2d66756e6769626c652049440000000060448201526064016107e7565b84831461089f5760405162461bcd60e51b8152602060048201526024808201527f4164647265737320616e64207175616e74697479206c656e677468206d69736d6044820152630c2e8c6d60e31b60648201526084016107e7565b60005b85811015610b845760008787838181106108be576108be6137a5565b90506020020160208101906108d391906134bc565b6001600160a01b0316036109295760405162461bcd60e51b815260206004820181905260248201527f526563697069656e7420616464726573732063616e6e6f74206265207a65726f60448201526064016107e7565b60008881526004602052604081209088888481811061094a5761094a6137a5565b905060200201602081019061095f91906134bc565b6001600160a01b03166001600160a01b0316815260200190815260200160002054858583818110610992576109926137a5565b905060200201356109a391906137d1565b6000898152600460205260408120908989858181106109c4576109c46137a5565b90506020020160208101906109d991906134bc565b6001600160a01b03168152602081019190915260400160002055848482818110610a0557610a056137a5565b90506020020135600860008a815260200190815260200160002054610a2a91906137d1565b600089815260086020526040902055868682818110610a4b57610a4b6137a5565b9050602002016020810190610a6091906134bc565b6001600160a01b0316600033600080516020613a988339815191528b898987818110610a8e57610a8e6137a5565b90506020020135604051610aac929190918252602082015260400190565b60405180910390a4610aed878783818110610ac957610ac96137a5565b9050602002016020810190610ade91906134bc565b6001600160a01b03163b151590565b15610b7457610b743333898985818110610b0957610b096137a5565b9050602002016020810190610b1e91906134bc565b8b898987818110610b3157610b316137a5565b9050602002013588888080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061292392505050565b610b7d816137e9565b90506108a2565b5050505050505050565b610b966128dd565b876001600160a01b0381163314610bb057610bb033612a19565b6001600160a01b038816610c065760405162461bcd60e51b815260206004820152601b60248201527f43616e6e6f742073656e6420746f207a65726f2061646472657373000000000060448201526064016107e7565b858414610c555760405162461bcd60e51b815260206004820152601760248201527f4172726179206c656e677468206d757374206d6174636800000000000000000060448201526064016107e7565b6001600160a01b038916331480610c9457506001600160a01b038916600090815260056020908152604080832033845290915290205460ff1615156001145b610cb05760405162461bcd60e51b81526004016107e790613802565b60005b868110156110fe57610ce3888883818110610cd057610cd06137a5565b90506020020135600160ff1b9081161490565b15610f6557896001600160a01b0316600660008a8a85818110610d0857610d086137a5565b60209081029290920135835250810191909152604001600020546001600160a01b031614610d685760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b21037bbb732b960991b60448201526064016107e7565b6000868683818110610d7c57610d7c6137a5565b9050602002013511610da05760405162461bcd60e51b81526004016107e790613850565b88600660008a8a85818110610db757610db76137a5565b90506020020135815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b03160217905550858582818110610e0257610e026137a5565b9050602002013560046000610e368b8b86818110610e2257610e226137a5565b905060200201356001600160801b03191690565b815260200190815260200160002060008c6001600160a01b03166001600160a01b0316815260200190815260200160002054610e729190613892565b60046000610e8b8b8b86818110610e2257610e226137a5565b8152602080820192909252604090810160009081206001600160a01b038f168252909252902055858582818110610ec457610ec46137a5565b9050602002013560046000610ee48b8b86818110610e2257610e226137a5565b815260200190815260200160002060008b6001600160a01b03166001600160a01b0316815260200190815260200160002054610f2091906137d1565b60046000610f398b8b86818110610e2257610e226137a5565b8152602080820192909252604090810160009081206001600160a01b038e1682529092529020556110ee565b858582818110610f7757610f776137a5565b90506020020135600460008a8a85818110610f9457610f946137a5565b90506020020135815260200190815260200160002060008c6001600160a01b03166001600160a01b0316815260200190815260200160002054610fd79190613892565b600460008a8a85818110610fed57610fed6137a5565b90506020020135815260200190815260200160002060008c6001600160a01b03166001600160a01b03168152602001908152602001600020819055506004600089898481811061103f5761103f6137a5565b90506020020135815260200190815260200160002060008a6001600160a01b03166001600160a01b031681526020019081526020016000205486868381811061108a5761108a6137a5565b9050602002013561109b91906137d1565b600460008a8a858181106110b1576110b16137a5565b90506020020135815260200190815260200160002060008b6001600160a01b03166001600160a01b03168152602001908152602001600020819055505b6110f7816137e9565b9050610cb3565b50876001600160a01b0316896001600160a01b0316336001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8a8a8a8a60405161115294939291906138df565b60405180910390a46001600160a01b0388163b1561120e5761120e338a8a8a8a8080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050604080516020808e0282810182019093528d82529093508d92508c91829185019084908082843760009201919091525050604080516020601f8d018190048102820181019092528b815292508b91508a9081908401838280828437600092019190915250612adf92505050565b505050505050505050565b6112216128dd565b611229612bd5565b60005b818110156112f9576009600084848481811061124a5761124a6137a5565b905060200201602081019061125f91906134bc565b6001600160a01b031681526020810191909152604001600020805460ff191690557fb5763ba23a8384e26e9f2f5bfcd8e3795e4248ce7bb99a61c9ee6488d352a5b18383838181106112b3576112b36137a5565b90506020020160208101906112c891906134bc565b604080516001600160a01b039092168252600060208301520160405180910390a16112f2816137e9565b905061122c565b505050565b6113066128dd565b6001600160a01b03851633148061134557506001600160a01b038516600090815260056020908152604080832033845290915290205460ff1615156001145b6113a35760405162461bcd60e51b815260206004820152602960248201527f4e656564206f70657261746f7220617070726f76616c20666f7220337264207060448201526830b93a3c90313ab93760b91b60648201526084016107e7565b82158015906113b157508281145b6113fd5760405162461bcd60e51b815260206004820152601760248201527f49647320616e642076616c756573206d69736d6174636800000000000000000060448201526064016107e7565b60005b838110156118685761142e85858381811061141d5761141d6137a5565b90506020020135600160ff1b161590565b1561163b57828282818110611445576114456137a5565b9050602002013560046000878785818110611462576114626137a5565b9050602002013581526020019081526020016000206000886001600160a01b03166001600160a01b031681526020019081526020016000205410156114f45760405162461bcd60e51b815260206004820152602260248201527f62616c616e6365206d7573742062652067726561746572207468616e2076616c604482015261756560f01b60648201526084016107e7565b828282818110611506576115066137a5565b9050602002013560046000878785818110611523576115236137a5565b9050602002013581526020019081526020016000206000886001600160a01b03166001600160a01b03168152602001908152602001600020546115669190613892565b6004600087878581811061157c5761157c6137a5565b9050602002013581526020019081526020016000206000886001600160a01b03166001600160a01b03168152602001908152602001600020819055508282828181106115ca576115ca6137a5565b90506020020135600860008787858181106115e7576115e76137a5565b905060200201358152602001908152602001600020546116079190613892565b6008600087878581811061161d5761161d6137a5565b905060200201358152602001908152602001600020819055506117e9565b611650858583818110610cd057610cd06137a5565b61169c5760405162461bcd60e51b815260206004820152601760248201527f4964206d757374206265206e6f6e2066756e6769626c6500000000000000000060448201526064016107e7565b8282828181106116ae576116ae6137a5565b905060200201356001146116f65760405162461bcd60e51b815260206004820152600f60248201526e76616c7565206d757374206265203160881b60448201526064016107e7565b600061170d868684818110610e2257610e226137a5565b60008181526004602090815260408083206001600160a01b038c16845290915290205490915061173f90600190613892565b60008281526004602090815260408083206001600160a01b038c168452909152902055838383818110611774576117746137a5565b9050602002013560086000838152602001908152602001600020546117999190613892565b6000828152600860205260408120919091556006908787858181106117c0576117c06137a5565b6020908102929092013583525081019190915260400160002080546001600160a01b0319169055505b60006001600160a01b03871633600080516020613a98833981519152888886818110611817576118176137a5565b90506020020135878787818110611830576118306137a5565b9050602002013560405161184e929190918252602082015260400190565b60405180910390a480611860816137e9565b915050611400565b505050505050565b611878612bd5565b611880612c35565b565b60608382146118d35760405162461bcd60e51b815260206004820152601e60248201527f4f776e65727320616e6420696473206c656e677468206d69736d61746368000060448201526064016107e7565b6000846001600160401b038111156118ed576118ed6133b1565b604051908082528060200260200182016040528015611916578160200160208202803683370190505b50905060005b85811015611a4e576000858583818110611938576119386137a5565b90506020020135905061194a81611ad6565b156119c757878783818110611961576119616137a5565b905060200201602081019061197691906134bc565b6000828152600660205260409020546001600160a01b0390811691161461199e5760006119a1565b60015b60ff168383815181106119b6576119b66137a5565b602002602001018181525050611a3d565b6000818152600460205260408120908989858181106119e8576119e86137a5565b90506020020160208101906119fd91906134bc565b6001600160a01b03166001600160a01b0316815260200190815260200160002054838381518110611a3057611a306137a5565b6020026020010181815250505b50611a47816137e9565b905061191c565b5095945050505050565b3360009081526009602052604090205460ff16611a875760405162461bcd60e51b81526004016107e79061376e565b8051611a9a90600b906020840190612e3e565b507f01e56a02aca7f26a28165a040851ba78f30282b55ca81c63a804cdc1e2dcea72600b604051611acb9190613911565b60405180910390a150565b6000600160ff1b8083161480156106335750506001600160801b0316151590565b611aff612bd5565b6118806000612c87565b6000600160ff1b8083161480156106335750506001600160801b03161590565b611b31612bd5565b611880612ce0565b611b41612bd5565b8051611b5490600a906020840190612e3e565b507f8bc80d02691adbcd8631bd956c34f729b47b1cdac70440a8410f85571e56543e600a604051611acb9190613911565b3360009081526009602052604090205460ff16611bb45760405162461bcd60e51b81526004016107e79061376e565b6000611bbf82610689565b9050817f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b82604051611bf1919061303b565b60405180910390a25050565b611c056128dd565b81611c0f81612a19565b6001600160a01b0383163303611c795760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b60648201526084016107e7565b3360008181526005602090815260408083206001600160a01b03881680855290835292819020805460ff191687151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611cee6128dd565b611cf6612bd5565b60005b818110156112f9577fb5763ba23a8384e26e9f2f5bfcd8e3795e4248ce7bb99a61c9ee6488d352a5b1838383818110611d3457611d346137a5565b9050602002016020810190611d4991906134bc565b604080516001600160a01b039092168252600160208301520160405180910390a1600160096000858585818110611d8257611d826137a5565b9050602002016020810190611d9791906134bc565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055611dc8816137e9565b9050611cf9565b60005461010090046001600160a01b03166001600160a01b0316336001600160a01b031614611e1157604051635fc483c560e01b815260040160405180910390fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b611e3b6128dd565b3360009081526009602052604090205460ff16611e6a5760405162461bcd60e51b81526004016107e79061376e565b848314611ecb5760405162461bcd60e51b815260206004820152602960248201527f49447320616e6420726563697069656e7473206d757374206265206f662073616044820152680daca40d8cadccee8d60bb1b60648201526084016107e7565b60005b83811015612278576000611eed888884818110610e2257610e226137a5565b60008181526007602052604090205490915060ff16611f445760405162461bcd60e51b81526020600482015260136024820152721391881d1bdad95b881b5d5cdd08195e1a5cdd606a1b60448201526064016107e7565b600160ff1b80821614611f995760405162461bcd60e51b815260206004820152601a60248201527f546f6b656e54797065206e6f74206e6f6e2d66756e6769626c6500000000000060448201526064016107e7565b6000868684818110611fad57611fad6137a5565b9050602002016020810190611fc291906134bc565b6001600160a01b0316036120185760405162461bcd60e51b815260206004820152601b60248201527f43616e6e6f74206d696e7420746f207a65726f2061646472657373000000000060448201526064016107e7565b60006006818a8a8681811061202f5761202f6137a5565b60209081029290920135835250810191909152604001600020546001600160a01b0316146120955760405162461bcd60e51b8152602060048201526013602482015272151bdad95b88185b1c9958591e481bdddb9959606a1b60448201526064016107e7565b60008686848181106120a9576120a96137a5565b90506020020160208101906120be91906134bc565b905080600660008b8b878181106120d7576120d76137a5565b90506020020135815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b031602179055506008600083815260200190815260200160002054600161213091906137d1565b600083815260086020908152604080832093909355600481528282206001600160a01b0385168352905220546121679060016137d1565b60008381526004602090815260408083206001600160a01b038616808552925282209290925533600080516020613a988339815191528c8c888181106121af576121af6137a5565b9050602002013560016040516121cf929190918252602082015260400190565b60405180910390a46121f88989858181106121ec576121ec6137a5565b90506020020135611b85565b6001600160a01b0381163b15612265576122653333838c8c88818110612220576122206137a5565b9050602002013560018a8a8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061292392505050565b505080612271906137e9565b9050611ece565b50505050505050565b600061228b6128dd565b3360009081526009602052604090205460ff166122ba5760405162461bcd60e51b81526004016107e79061376e565b60806002600081546122cb906137e9565b9182905550901b905081156122fe57600160ff1b176000818152600760205260409020805460ff1916600117905561232d565b604080518281526000602082018190529182913391600080516020613a98833981519152910160405180910390a45b6040518181527ff6615ae155db21bc1a31ec4b1060f4469cd58b9e726ec7545ea32f33190048fe9060200160405180910390a1919050565b6060600a80546123749061365a565b80601f01602080910402602001604051908101604052809291908181526020018280546123a09061365a565b80156123ed5780601f106123c2576101008083540402835291602001916123ed565b820191906000526020600020905b8154815290600101906020018083116123d057829003601f168201915b5050505050905090565b6123ff6128dd565b856001600160a01b03811633146124195761241933612a19565b6001600160a01b03861661246f5760405162461bcd60e51b815260206004820152601b60248201527f63616e6e6f742073656e6420746f207a65726f2061646472657373000000000060448201526064016107e7565b6001600160a01b0387163314806124ae57506001600160a01b038716600090815260056020908152604080832033845290915290205460ff1615156001145b6124ca5760405162461bcd60e51b81526004016107e790613802565b600160ff1b80861603612614576000858152600660205260409020546001600160a01b038881169116146125305760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b21037bbb732b960991b60448201526064016107e7565b600084116125505760405162461bcd60e51b81526004016107e790613850565b600085815260066020526040812080546001600160a01b0319166001600160a01b0389161790556001600160801b0319861660008181526004602090815260408083206001600160a01b038d1684529091529020549091506125b3908690613892565b60008281526004602090815260408083206001600160a01b038d811685529252808320939093558916815220546125eb9086906137d1565b60009182526004602090815260408084206001600160a01b038b1685529091529091205561269e565b60008581526004602090815260408083206001600160a01b038b168452909152902054612642908590613892565b60008681526004602090815260408083206001600160a01b038c8116855292528083209390935588168152205461267a9085906137d1565b60008681526004602090815260408083206001600160a01b038b1684529091529020555b60408051868152602081018690526001600160a01b0380891692908a16913391600080516020613a98833981519152910160405180910390a46001600160a01b0386163b1561227857612278338888888888888080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061292392505050565b612733612bd5565b6001600160a01b0381166127985760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107e7565b6127a181612c87565b50565b6127ac6128dd565b6127b4612bd5565b806128015760405162461bcd60e51b815260206004820152601b60248201527f436c69656e74206e616d652063616e6e6f7420626520656d707479000000000060448201526064016107e7565b61280d60038383612ec2565b507f5511538576a121f5d7bb3470453c3d6cd751879ac3f90737f6518ffcc3b9277b828260405161283f929190613996565b60405180910390a15050565b6060600061285883612d1d565b60010190506000816001600160401b03811115612877576128776133b1565b6040519080825280601f01601f1916602001820160405280156128a1576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846128ab57509392505050565b60005460ff16156118805760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016107e7565b60405163f23a6e6160e01b808252906001600160a01b0386169063f23a6e6190612959908a908a908990899089906004016139c5565b6020604051808303816000875af1158015612978573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061299c91906139ff565b6001600160e01b031916146118685760405162461bcd60e51b815260206004820152603960248201527f636f6e74726163742072657475726e656420616e20756e6b6e6f776e2076616c60448201527f75652066726f6d206f6e4552433131353552656365697665640000000000000060648201526084016107e7565b6001546001600160a01b03168015801590612a3e57506000816001600160a01b03163b115b15612adb57604051633185c44d60e21b81523060048201526001600160a01b03838116602483015282169063c617113490604401602060405180830381865afa158015612a8f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ab39190613a1c565b612adb57604051633b79c77360e21b81526001600160a01b03831660048201526024016107e7565b5050565b60405163bc197c8160e01b808252906001600160a01b0386169063bc197c8190612b15908a908a90899089908990600401613a39565b6020604051808303816000875af1158015612b34573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b5891906139ff565b6001600160e01b031916146118685760405162461bcd60e51b815260206004820152603e60248201527f636f6e74726163742072657475726e656420616e20756e6b6e6f776e2076616c60448201527f75652066726f6d206f6e4552433131353542617463685265636569766564000060648201526084016107e7565b6000546001600160a01b036101009091041633146118805760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107e7565b612c3d612df5565b6000805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600080546001600160a01b03838116610100818102610100600160a81b0319851617855560405193049190911692909183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35050565b612ce86128dd565b6000805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612c6a3390565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310612d5c5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310612d88576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310612da657662386f26fc10000830492506010015b6305f5e1008310612dbe576305f5e100830492506008015b6127108310612dd257612710830492506004015b60648310612de4576064830492506002015b600a83106106335760010192915050565b60005460ff166118805760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016107e7565b828054612e4a9061365a565b90600052602060002090601f016020900481019282612e6c5760008555612eb2565b82601f10612e8557805160ff1916838001178555612eb2565b82800160010185558215612eb2579182015b82811115612eb2578251825591602001919060010190612e97565b50612ebe929150612f36565b5090565b828054612ece9061365a565b90600052602060002090601f016020900481019282612ef05760008555612eb2565b82601f10612f095782800160ff19823516178555612eb2565b82800160010185558215612eb2579182015b82811115612eb2578235825591602001919060010190612f1b565b5b80821115612ebe5760008155600101612f37565b80356001600160a01b038116811461071d57600080fd5b60008060408385031215612f7557600080fd5b612f7e83612f4b565b946020939093013593505050565b6001600160e01b0319811681146127a157600080fd5b600060208284031215612fb457600080fd5b8135612fbf81612f8c565b9392505050565b600060208284031215612fd857600080fd5b5035919050565b60005b83811015612ffa578181015183820152602001612fe2565b83811115613009576000848401525b50505050565b60008151808452613027816020860160208601612fdf565b601f01601f19169290920160200192915050565b602081526000612fbf602083018461300f565b60008083601f84011261306057600080fd5b5081356001600160401b0381111561307757600080fd5b6020830191508360208260051b850101111561309257600080fd5b9250929050565b60008083601f8401126130ab57600080fd5b5081356001600160401b038111156130c257600080fd5b60208301915083602082850101111561309257600080fd5b60008060008060008060006080888a0312156130f557600080fd5b8735965060208801356001600160401b038082111561311357600080fd5b61311f8b838c0161304e565b909850965060408a013591508082111561313857600080fd5b6131448b838c0161304e565b909650945060608a013591508082111561315d57600080fd5b5061316a8a828b01613099565b989b979a50959850939692959293505050565b60008060008060008060008060a0898b03121561319957600080fd5b6131a289612f4b565b97506131b060208a01612f4b565b965060408901356001600160401b03808211156131cc57600080fd5b6131d88c838d0161304e565b909850965060608b01359150808211156131f157600080fd5b6131fd8c838d0161304e565b909650945060808b013591508082111561321657600080fd5b506132238b828c01613099565b999c989b5096995094979396929594505050565b6000806020838503121561324a57600080fd5b82356001600160401b0381111561326057600080fd5b61326c8582860161304e565b90969095509350505050565b60008060008060006060868803121561329057600080fd5b61329986612f4b565b945060208601356001600160401b03808211156132b557600080fd5b6132c189838a0161304e565b909650945060408801359150808211156132da57600080fd5b506132e78882890161304e565b969995985093965092949392505050565b6000806000806040858703121561330e57600080fd5b84356001600160401b038082111561332557600080fd5b6133318883890161304e565b9096509450602087013591508082111561334a57600080fd5b506133578782880161304e565b95989497509550505050565b600081518084526020808501945080840160005b8381101561339357815187529582019590820190600101613377565b509495945050505050565b602081526000612fbf6020830184613363565b634e487b7160e01b600052604160045260246000fd5b6000602082840312156133d957600080fd5b81356001600160401b03808211156133f057600080fd5b818401915084601f83011261340457600080fd5b813581811115613416576134166133b1565b604051601f8201601f19908116603f0116810190838211818310171561343e5761343e6133b1565b8160405282815287602084870101111561345757600080fd5b826020860160208301376000928101602001929092525095945050505050565b80151581146127a157600080fd5b6000806040838503121561349857600080fd5b6134a183612f4b565b915060208301356134b181613477565b809150509250929050565b6000602082840312156134ce57600080fd5b612fbf82612f4b565b600080600080600080606087890312156134f057600080fd5b86356001600160401b038082111561350757600080fd5b6135138a838b0161304e565b9098509650602089013591508082111561352c57600080fd5b6135388a838b0161304e565b9096509450604089013591508082111561355157600080fd5b5061355e89828a01613099565b979a9699509497509295939492505050565b60006020828403121561358257600080fd5b8135612fbf81613477565b600080604083850312156135a057600080fd5b6135a983612f4b565b91506135b760208401612f4b565b90509250929050565b60008060008060008060a087890312156135d957600080fd5b6135e287612f4b565b95506135f060208801612f4b565b9450604087013593506060870135925060808701356001600160401b0381111561361957600080fd5b61355e89828a01613099565b6000806020838503121561363857600080fd5b82356001600160401b0381111561364e57600080fd5b61326c85828601613099565b600181811c9082168061366e57607f821691505b60208210810361368e57634e487b7160e01b600052602260045260246000fd5b50919050565b600081546136a18161365a565b600182811680156136b957600181146136ca576136f9565b60ff198416875282870194506136f9565b8560005260208060002060005b858110156136f05781548a8201529084019082016136d7565b50505082870194505b5050505092915050565b600061370f8286613694565b845161371f818360208901612fdf565b602f60f81b9101908152835161373c816001840160208801612fdf565b0160010195945050505050565b60006137558285613694565b8351613765818360208801612fdf565b01949350505050565b6020808252601b908201527f43726561746f72207065726d697373696f6e2072657175697265640000000000604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600082198211156137e4576137e46137bb565b500190565b6000600182016137fb576137fb6137bb565b5060010190565b6020808252602e908201527f4e656564206f70657261746f7220617070726f76616c20666f7220337264207060408201526d61727479207472616e736665727360901b606082015260800190565b60208082526022908201527f7175616e74697479206d7573742062652067726561746572207468616e207a65604082015261726f60f01b606082015260800190565b6000828210156138a4576138a46137bb565b500390565b81835260006001600160fb1b038311156138c257600080fd5b8260051b8083602087013760009401602001938452509192915050565b6040815260006138f36040830186886138a9565b82810360208401526139068185876138a9565b979650505050505050565b60006020808352600084546139258161365a565b80848701526040600180841660008114613946576001811461395a57613988565b60ff19851689840152606089019550613988565b896000528660002060005b858110156139805781548b8201860152908301908801613965565b8a0184019650505b509398975050505050505050565b60208152816020820152818360408301376000818301604090810191909152601f909201601f19160101919050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906139069083018461300f565b600060208284031215613a1157600080fd5b8151612fbf81612f8c565b600060208284031215613a2e57600080fd5b8151612fbf81613477565b6001600160a01b0386811682528516602082015260a060408201819052600090613a6590830186613363565b8281036060840152613a778186613363565b90508281036080840152613a8b818561300f565b9897505050505050505056fec3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62a2646970667358221220a20c9e1930a946ba6b1214063b8b16430636646ce61b3cc67fc1c8947ff39dd264736f6c634300080d0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000d546f776e537461724974656d7300000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _client (string): TownStarItems
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 000000000000000000000000000000000000000000000000000000000000000d
Arg [2] : 546f776e537461724974656d7300000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.