Feature Tip: Add private address tag to any address under My Name Tag !
ERC-1155
Overview
Max Total Supply
402 30/30
Holders
371
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
The3030Badge
Compiler Version
v0.8.14+commit.80d49f37
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.0; import '@openzeppelin/contracts/token/ERC1155/ERC1155.sol'; import './Blimpie/Delegated.sol'; import './Blimpie/Signed.sol'; contract The3030Badge is ERC1155, Delegated, Signed{ struct Token{ uint64 burnPrice; uint64 mintPrice; uint16 balance; uint16 supply; uint16 maxMint; bool isBurnActive; bool isMintActive; bool isMintAuthorized; string name; string uri; } string public name; string public symbol; Token[] public tokens; mapping(address => mapping(uint8 => uint16)) public claimed; constructor() Delegated() ERC1155("") Signed( 0xD81C3e92968D16bE26178c88c97F1a1C1a7311Cf ){ name = "The 30/30 Badge"; symbol = "30/30"; setToken( 0, Token( 1 ether, 1 ether, 0, //ignored 9000, 1, false, false, true, "The 30/30 Badge", "" )); } //external receive() external payable {} function withdraw() external onlyOwner { require(address(this).balance >= 0, "no funds available"); Address.sendValue(payable(owner()), address(this).balance); } function exists(uint id) public view returns (bool) { return id < tokens.length; } function tokenSupply( uint id ) external view returns( uint ){ require( exists( id ), "Specified token (id) does not exist" ); return tokens[id].supply; } function totalSupply( uint id ) external view returns( uint ){ require( exists( id ), "Specified token (id) does not exist" ); return tokens[id].supply; } function uri( uint id ) public view override returns( string memory ){ require( exists( id ), "Specified token (id) does not exist" ); return tokens[id].uri; } //payable function mint( uint8 id, uint16 quantity, bytes calldata signature ) external payable { require( exists( id ), "Specified token (id) does not exist" ); Token storage token = tokens[id]; require( token.isMintActive, "Sale is not active" ); require( token.balance + quantity <= token.supply, "Not enough supply" ); require( claimed[ msg.sender ][ id ] + quantity <= token.maxMint, "Already claimed" ); require( msg.value >= token.mintPrice * quantity, "Ether sent is not correct" ); if( token.isMintAuthorized ) require( _isAuthorizedSigner( abi.encodePacked(quantity), signature ), "Account not authorized" ); token.balance += quantity; claimed[ msg.sender ][ id ] += quantity; _mint( msg.sender, id, quantity, "" ); } //delegated function burnFrom( address account, uint[] calldata ids, uint[] calldata quantities ) external payable onlyDelegates { require( ids.length == quantities.length, "Must provide equal ids and quantities"); for(uint i; i < ids.length; ++i ){ _burn( account, ids[i], quantities[i] ); } } function mintTo( address[] calldata accounts, uint[] calldata ids, uint[] calldata quantities ) external payable onlyDelegates { require( accounts.length == ids.length, "Must provide equal accounts and ids" ); require( ids.length == quantities.length, "Must provide equal ids and quantities"); for(uint i; i < ids.length; ++i ){ _mint( accounts[i], ids[i], quantities[i], "" ); } } function setToken(uint id, Token memory token_ ) public onlyDelegates{ require( id < tokens.length || id == tokens.length, "Invalid token id" ); if( id == tokens.length ) tokens.push(); Token storage token = tokens[id]; require( token.balance <= token_.supply, "Specified supply is lower than current balance" ); token.burnPrice = token_.burnPrice; token.mintPrice = token_.mintPrice; //balance token.supply = token_.supply; token.maxMint = token_.maxMint; token.isBurnActive = token_.isBurnActive; token.isMintActive = token_.isMintActive; token.isMintAuthorized = token_.isMintAuthorized; token.name = token_.name; token.uri = token_.uri; if( bytes(token_.uri).length > 0 ) emit URI( token_.uri, id ); } function setSupply(uint id, uint16 supply) public onlyDelegates { require( exists( id ), "Specified token (id) does not exist" ); Token storage token = tokens[id]; require( token.balance <= supply, "Specified supply is lower than current balance" ); token.supply = supply; } function setURI(uint id, string calldata uri_) external onlyDelegates{ require( exists( id ), "Specified token (id) does not exist" ); tokens[id].uri = uri_; if( bytes( uri_ ).length > 0 ) emit URI( uri_, id ); } //onlyOwner function transferOwnership( address newOwner ) public override( Delegated, Ownable ) onlyOwner{ Ownable.transferOwnership( newOwner ); } }
// SPDX-License-Identifier: BSD-3 pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; contract Signed is Ownable{ using ECDSA for bytes32; address internal _signer; constructor( address signer ){ setSigner( signer ); } function setSigner( address signer ) public onlyOwner{ _signer = signer; } function _createHash( bytes memory data ) internal virtual view returns ( bytes32 ){ return keccak256( abi.encodePacked( address(this), msg.sender, data ) ); } function _isAuthorizedSigner( bytes memory data, bytes calldata signature ) internal view virtual returns( bool ){ return _signer == _recoverSigner( _createHash( data ), signature ); } function _recoverSigner( bytes32 hashed, bytes memory signature ) internal pure returns( address ){ return hashed.toEthSignedMessageHash().recover( signature ); } }
// SPDX-License-Identifier: BSD-3-Clause pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; contract Delegated is Ownable{ mapping(address => bool) internal _delegates; constructor(){ _delegates[owner()] = true; } modifier onlyDelegates { require(_delegates[msg.sender], "Invalid delegate" ); _; } //onlyOwner function isDelegate( address addr ) external view onlyOwner returns ( bool ){ return _delegates[addr]; } function setDelegate( address addr, bool isDelegate_ ) external onlyOwner{ _delegates[addr] = isDelegate_; } function transferOwnership(address newOwner) public virtual override onlyOwner { _delegates[newOwner] = true; super.transferOwnership( newOwner ); } }
// 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/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "../Strings.sol"; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return tryRecover(hash, r, vs); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 27); return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts 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.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol) pragma solidity ^0.8.0; import "../IERC1155.sol"; /** * @dev Interface of the optional ERC1155MetadataExtension interface, as defined * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP]. * * _Available since v3.1._ */ interface IERC1155MetadataURI is IERC1155 { /** * @dev Returns the URI for token type `id`. * * If the `\{id\}` substring is present in the URI, it must be replaced by * clients with the actual token type ID. */ function uri(uint256 id) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (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/IERC1155.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. * * _Available since v3.1._ */ interface IERC1155 is IERC165 { /** * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch( address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values ); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll(address indexed account, address indexed operator, bool approved); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the amount of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes calldata data ) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC1155/ERC1155.sol) pragma solidity ^0.8.0; import "./IERC1155.sol"; import "./IERC1155Receiver.sol"; import "./extensions/IERC1155MetadataURI.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the basic standard multi-token. * See https://eips.ethereum.org/EIPS/eip-1155 * Originally based on code by Enjin: https://github.com/enjin/erc-1155 * * _Available since v3.1._ */ contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI { using Address for address; // Mapping from token ID to account balances mapping(uint256 => mapping(address => uint256)) private _balances; // Mapping from account to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json string private _uri; /** * @dev See {_setURI}. */ constructor(string memory uri_) { _setURI(uri_); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC1155).interfaceId || interfaceId == type(IERC1155MetadataURI).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC1155MetadataURI-uri}. * * This implementation returns the same URI for *all* token types. It relies * on the token type ID substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * Clients calling this function must replace the `\{id\}` substring with the * actual token type ID. */ function uri(uint256) public view virtual override returns (string memory) { return _uri; } /** * @dev See {IERC1155-balanceOf}. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) public view virtual override returns (uint256) { require(account != address(0), "ERC1155: balance query for the zero address"); return _balances[id][account]; } /** * @dev See {IERC1155-balanceOfBatch}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] memory accounts, uint256[] memory ids) public view virtual override returns (uint256[] memory) { require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch"); uint256[] memory batchBalances = new uint256[](accounts.length); for (uint256 i = 0; i < accounts.length; ++i) { batchBalances[i] = balanceOf(accounts[i], ids[i]); } return batchBalances; } /** * @dev See {IERC1155-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC1155-isApprovedForAll}. */ function isApprovedForAll(address account, address operator) public view virtual override returns (bool) { return _operatorApprovals[account][operator]; } /** * @dev See {IERC1155-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: caller is not owner nor approved" ); _safeTransferFrom(from, to, id, amount, data); } /** * @dev See {IERC1155-safeBatchTransferFrom}. */ function safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: transfer caller is not owner nor approved" ); _safeBatchTransferFrom(from, to, ids, amounts, data); } /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); uint256[] memory ids = _asSingletonArray(id); uint256[] memory amounts = _asSingletonArray(amount); _beforeTokenTransfer(operator, from, to, ids, amounts, data); uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; emit TransferSingle(operator, from, to, id, amount); _afterTokenTransfer(operator, from, to, ids, amounts, data); _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, to, ids, amounts, data); for (uint256 i = 0; i < ids.length; ++i) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; } emit TransferBatch(operator, from, to, ids, amounts); _afterTokenTransfer(operator, from, to, ids, amounts, data); _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data); } /** * @dev Sets a new URI for all token types, by relying on the token type ID * substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * By this mechanism, any occurrence of the `\{id\}` substring in either the * URI or any of the amounts in the JSON file at said URI will be replaced by * clients with the token type ID. * * For example, the `https://token-cdn-domain/\{id\}.json` URI would be * interpreted by clients as * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json` * for token type ID 0x4cce0. * * See {uri}. * * Because these URIs cannot be meaningfully represented by the {URI} event, * this function emits no events. */ function _setURI(string memory newuri) internal virtual { _uri = newuri; } /** * @dev Creates `amount` tokens of token type `id`, and assigns them to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _mint( address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); address operator = _msgSender(); uint256[] memory ids = _asSingletonArray(id); uint256[] memory amounts = _asSingletonArray(amount); _beforeTokenTransfer(operator, address(0), to, ids, amounts, data); _balances[id][to] += amount; emit TransferSingle(operator, address(0), to, id, amount); _afterTokenTransfer(operator, address(0), to, ids, amounts, data); _doSafeTransferAcceptanceCheck(operator, address(0), to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _mintBatch( address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), to, ids, amounts, data); for (uint256 i = 0; i < ids.length; i++) { _balances[ids[i]][to] += amounts[i]; } emit TransferBatch(operator, address(0), to, ids, amounts); _afterTokenTransfer(operator, address(0), to, ids, amounts, data); _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data); } /** * @dev Destroys `amount` tokens of token type `id` from `from` * * Requirements: * * - `from` cannot be the zero address. * - `from` must have at least `amount` tokens of token type `id`. */ function _burn( address from, uint256 id, uint256 amount ) internal virtual { require(from != address(0), "ERC1155: burn from the zero address"); address operator = _msgSender(); uint256[] memory ids = _asSingletonArray(id); uint256[] memory amounts = _asSingletonArray(amount); _beforeTokenTransfer(operator, from, address(0), ids, amounts, ""); uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][from] = fromBalance - amount; } emit TransferSingle(operator, from, address(0), id, amount); _afterTokenTransfer(operator, from, address(0), ids, amounts, ""); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}. * * Requirements: * * - `ids` and `amounts` must have the same length. */ function _burnBatch( address from, uint256[] memory ids, uint256[] memory amounts ) internal virtual { require(from != address(0), "ERC1155: burn from the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, address(0), ids, amounts, ""); for (uint256 i = 0; i < ids.length; i++) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][from] = fromBalance - amount; } } emit TransferBatch(operator, from, address(0), ids, amounts); _afterTokenTransfer(operator, from, address(0), ids, amounts, ""); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC1155: setting approval status for self"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Hook that is called before any token transfer. This includes minting * and burning, as well as batched variants. * * The same hook is called on both single and batched variants. For single * transfers, the length of the `id` and `amount` arrays will be 1. * * Calling conditions (for each `id` and `amount` pair): * * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens * of token type `id` will be transferred to `to`. * - When `from` is zero, `amount` tokens of token type `id` will be minted * for `to`. * - when `to` is zero, `amount` of ``from``'s tokens of token type `id` * will be burned. * - `from` and `to` are never both zero. * - `ids` and `amounts` have the same, non-zero length. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual {} /** * @dev Hook that is called after any token transfer. This includes minting * and burning, as well as batched variants. * * The same hook is called on both single and batched variants. For single * transfers, the length of the `id` and `amount` arrays will be 1. * * Calling conditions (for each `id` and `amount` pair): * * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens * of token type `id` will be transferred to `to`. * - When `from` is zero, `amount` tokens of token type `id` will be minted * for `to`. * - when `to` is zero, `amount` of ``from``'s tokens of token type `id` * will be burned. * - `from` and `to` are never both zero. * - `ids` and `amounts` have the same, non-zero length. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual {} function _doSafeTransferAcceptanceCheck( address operator, address from, address to, uint256 id, uint256 amount, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) { if (response != IERC1155Receiver.onERC1155Received.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _doSafeBatchTransferAcceptanceCheck( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns ( bytes4 response ) { if (response != IERC1155Receiver.onERC1155BatchReceived.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) { uint256[] memory array = new uint256[](1); array[0] = element; return array; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "london", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"quantities","type":"uint256[]"}],"name":"burnFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint8","name":"","type":"uint8"}],"name":"claimed","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"isDelegate","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"id","type":"uint8"},{"internalType":"uint16","name":"quantity","type":"uint16"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"quantities","type":"uint256[]"}],"name":"mintTo","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"bool","name":"isDelegate_","type":"bool"}],"name":"setDelegate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"signer","type":"address"}],"name":"setSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint16","name":"supply","type":"uint16"}],"name":"setSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"components":[{"internalType":"uint64","name":"burnPrice","type":"uint64"},{"internalType":"uint64","name":"mintPrice","type":"uint64"},{"internalType":"uint16","name":"balance","type":"uint16"},{"internalType":"uint16","name":"supply","type":"uint16"},{"internalType":"uint16","name":"maxMint","type":"uint16"},{"internalType":"bool","name":"isBurnActive","type":"bool"},{"internalType":"bool","name":"isMintActive","type":"bool"},{"internalType":"bool","name":"isMintAuthorized","type":"bool"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"uri","type":"string"}],"internalType":"struct The3030Badge.Token","name":"token_","type":"tuple"}],"name":"setToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"string","name":"uri_","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"tokenSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokens","outputs":[{"internalType":"uint64","name":"burnPrice","type":"uint64"},{"internalType":"uint64","name":"mintPrice","type":"uint64"},{"internalType":"uint16","name":"balance","type":"uint16"},{"internalType":"uint16","name":"supply","type":"uint16"},{"internalType":"uint16","name":"maxMint","type":"uint16"},{"internalType":"bool","name":"isBurnActive","type":"bool"},{"internalType":"bool","name":"isMintActive","type":"bool"},{"internalType":"bool","name":"isMintAuthorized","type":"bool"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"uri","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60806040523480156200001157600080fd5b5060408051602081019091526000815273d81c3e92968d16be26178c88c97f1a1c1a7311cf9062000042816200019a565b506200004e33620001b3565b600160046000620000676003546001600160a01b031690565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790556200009a8162000205565b5060408051808201909152600f8082526e5468652033302f333020426164676560881b6020909201918252620000d39160069162000543565b5060408051808201909152600580825264033302f33360dc1b6020909201918252620001029160079162000543565b506040805161014081018252670de0b6b3a76400008082526020808301919091526000828401819052612328606084015260016080840181905260a0840182905260c0840182905260e084015283518085018552600f81526e5468652033302f333020426164676560881b81840152610100840152835191820190935282815261012082015262000194919062000287565b62000693565b8051620001af90600290602084019062000543565b5050565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6003546001600160a01b03163314620002655760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b600580546001600160a01b0319166001600160a01b0392909216919091179055565b3360009081526004602052604090205460ff16620002db5760405162461bcd60e51b815260206004820152601060248201526f496e76616c69642064656c656761746560801b60448201526064016200025c565b600854821080620002ed575060085482145b6200032e5760405162461bcd60e51b815260206004820152601060248201526f125b9d985b1a59081d1bdad95b881a5960821b60448201526064016200025c565b600854820362000345576008805460010181556000525b6000600883815481106200035d576200035d620005e9565b90600052602060002090600302019050816060015161ffff168160000160109054906101000a900461ffff1661ffff161115620003f45760405162461bcd60e51b815260206004820152602e60248201527f53706563696669656420737570706c79206973206c6f776572207468616e206360448201526d757272656e742062616c616e636560901b60648201526084016200025c565b815181546020808501516060860151608087015160a088015160c089015160e08a01516001600160401b039889166001600160801b0319909816979097176801000000000000000098909516979097029390931763ffffffff60901b1916600160901b61ffff9384160261ffff60a01b191617600160a01b92909116919091021761ffff60b01b1916600160b01b9115159190910260ff60b81b191617600160b81b931515939093029290921760ff60c01b1916600160c01b911515919091021782556101008301518051620004d1926001850192019062000543565b506101208201518051620004f091600284019160209091019062000543565b5061012082015151156200053e57827f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b836101200151604051620005359190620005ff565b60405180910390a25b505050565b828054620005519062000657565b90600052602060002090601f016020900481019282620005755760008555620005c0565b82601f106200059057805160ff1916838001178555620005c0565b82800160010185558215620005c0579182015b82811115620005c0578251825591602001919060010190620005a3565b50620005ce929150620005d2565b5090565b5b80821115620005ce5760008155600101620005d3565b634e487b7160e01b600052603260045260246000fd5b600060208083528351808285015260005b818110156200062e5785810183015185820160400152820162000610565b8181111562000641576000604083870101525b50601f01601f1916929092016040019392505050565b600181811c908216806200066c57607f821691505b6020821081036200068d57634e487b7160e01b600052602260045260246000fd5b50919050565b6135df80620006a36000396000f3fe6080604052600436106101ba5760003560e01c80636c19e783116100ec578063a7f5cbde1161008a578063f242432a11610064578063f242432a146104e8578063f2fde38b14610508578063f5f5f49814610528578063fbb905e31461053b57600080fd5b8063a7f5cbde1461047f578063bd85b039146102a0578063e985e9c51461049f57600080fd5b80638da5cb5b116100c65780638da5cb5b1461040257806395d89b411461042a578063a22cb4651461043f578063a6d279c61461045f57600080fd5b80636c19e783146103ad578063715018a6146103cd578063862440e2146103e257600080fd5b80632eb2c2d6116101595780634e1273f4116101335780634e1273f4146103155780634f558e79146103425780634f64b2be14610364578063666abf231461039a57600080fd5b80632eb2c2d6146102c05780633ccfd60b146102e05780634a994eef146102f557600080fd5b80630777962711610195578063077796271461024b5780630e89341c1461026b5780631c88d6fb1461028b5780632693ebf2146102a057600080fd5b8062fdd58e146101c657806301ffc9a7146101f957806306fdde031461022957600080fd5b366101c157005b600080fd5b3480156101d257600080fd5b506101e66101e1366004612710565b61058a565b6040519081526020015b60405180910390f35b34801561020557600080fd5b50610219610214366004612750565b610621565b60405190151581526020016101f0565b34801561023557600080fd5b5061023e610673565b6040516101f091906127c9565b34801561025757600080fd5b506102196102663660046127dc565b610701565b34801561027757600080fd5b5061023e6102863660046127f7565b610751565b61029e610299366004612874565b61082e565b005b3480156102ac57600080fd5b506101e66102bb3660046127f7565b610b66565b3480156102cc57600080fd5b5061029e6102db366004612a46565b610bc4565b3480156102ec57600080fd5b5061029e610c54565b34801561030157600080fd5b5061029e610310366004612aff565b610c9b565b34801561032157600080fd5b50610335610330366004612b32565b610cf0565b6040516101f09190612c37565b34801561034e57600080fd5b5061021961035d3660046127f7565b6008541190565b34801561037057600080fd5b5061038461037f3660046127f7565b610e19565b6040516101f09a99989796959493929190612c4a565b61029e6103a8366004612d14565b610fb7565b3480156103b957600080fd5b5061029e6103c83660046127dc565b611063565b3480156103d957600080fd5b5061029e6110af565b3480156103ee57600080fd5b5061029e6103fd366004612d94565b6110e3565b34801561040e57600080fd5b506003546040516001600160a01b0390911681526020016101f0565b34801561043657600080fd5b5061023e6111b3565b34801561044b57600080fd5b5061029e61045a366004612aff565b6111c0565b34801561046b57600080fd5b5061029e61047a366004612ddf565b6111cf565b34801561048b57600080fd5b5061029e61049a366004612e19565b61129d565b3480156104ab57600080fd5b506102196104ba366004612f42565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b3480156104f457600080fd5b5061029e610503366004612f6c565b6114d3565b34801561051457600080fd5b5061029e6105233660046127dc565b61155a565b61029e610536366004612fd0565b611590565b34801561054757600080fd5b50610577610556366004613069565b600960209081526000928352604080842090915290825290205461ffff1681565b60405161ffff90911681526020016101f0565b60006001600160a01b0383166105fb5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b148061065257506001600160e01b031982166303a24d0760e21b145b8061066d57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6006805461068090613093565b80601f01602080910402602001604051908101604052809291908181526020018280546106ac90613093565b80156106f95780601f106106ce576101008083540402835291602001916106f9565b820191906000526020600020905b8154815290600101906020018083116106dc57829003601f168201915b505050505081565b6003546000906001600160a01b0316331461072e5760405162461bcd60e51b81526004016105f2906130cd565b506001600160a01b03811660009081526004602052604090205460ff165b919050565b606061075e826008541190565b61077a5760405162461bcd60e51b81526004016105f290613102565b6008828154811061078d5761078d613145565b906000526020600020906003020160020180546107a990613093565b80601f01602080910402602001604051908101604052809291908181526020018280546107d590613093565b80156108225780601f106107f757610100808354040283529160200191610822565b820191906000526020600020905b81548152906001019060200180831161080557829003601f168201915b50505050509050919050565b61083c8460ff166008541190565b6108585760405162461bcd60e51b81526004016105f290613102565b600060088560ff168154811061087057610870613145565b600091825260209091206003909102018054909150600160b81b900460ff166108d05760405162461bcd60e51b815260206004820152601260248201527153616c65206973206e6f742061637469766560701b60448201526064016105f2565b805461ffff600160901b82048116916108f2918791600160801b900416613171565b61ffff1611156109385760405162461bcd60e51b81526020600482015260116024820152704e6f7420656e6f75676820737570706c7960781b60448201526064016105f2565b805433600090815260096020908152604080832060ff8a16845290915290205461ffff600160a01b90920482169161097291879116613171565b61ffff1611156109b65760405162461bcd60e51b815260206004820152600f60248201526e105b1c9958591e4818db185a5b5959608a1b60448201526064016105f2565b80546109d79061ffff861690600160401b90046001600160401b0316613197565b6001600160401b0316341015610a2f5760405162461bcd60e51b815260206004820152601960248201527f45746865722073656e74206973206e6f7420636f72726563740000000000000060448201526064016105f2565b8054600160c01b900460ff1615610ab9576040516001600160f01b031960f086901b166020820152610a749060220160405160208183030381529060405284846116ce565b610ab95760405162461bcd60e51b81526020600482015260166024820152751058d8dbdd5b9d081b9bdd08185d5d1a1bdc9a5e995960521b60448201526064016105f2565b805484908290601090610ad8908490600160801b900461ffff16613171565b82546101009290920a61ffff81810219909316918316021790915533600090815260096020908152604080832060ff8b168452909152812080548894509092610b2391859116613171565b92506101000a81548161ffff021916908361ffff160217905550610b5f338660ff168661ffff1660405180602001604052806000815250611731565b5050505050565b6000610b73826008541190565b610b8f5760405162461bcd60e51b81526004016105f290613102565b60088281548110610ba257610ba2613145565b6000918252602090912060039091020154600160901b900461ffff1692915050565b6001600160a01b038516331480610be05750610be085336104ba565b610c475760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b60648201526084016105f2565b610b5f858585858561183c565b6003546001600160a01b03163314610c7e5760405162461bcd60e51b81526004016105f2906130cd565b610c99610c936003546001600160a01b031690565b47611a11565b565b6003546001600160a01b03163314610cc55760405162461bcd60e51b81526004016105f2906130cd565b6001600160a01b03919091166000908152600460205260409020805460ff1916911515919091179055565b60608151835114610d555760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b60648201526084016105f2565b600083516001600160401b03811115610d7057610d706128d4565b604051908082528060200260200182016040528015610d99578160200160208202803683370190505b50905060005b8451811015610e1157610de4858281518110610dbd57610dbd613145565b6020026020010151858381518110610dd757610dd7613145565b602002602001015161058a565b828281518110610df657610df6613145565b6020908102919091010152610e0a816131c6565b9050610d9f565b509392505050565b60088181548110610e2957600080fd5b6000918252602090912060039091020180546001820180546001600160401b038084169550600160401b8404169361ffff600160801b8504811694600160901b8104821694600160a01b82049092169360ff600160b01b8304811694600160b81b8404821694600160c01b909404909116929091610ea690613093565b80601f0160208091040260200160405190810160405280929190818152602001828054610ed290613093565b8015610f1f5780601f10610ef457610100808354040283529160200191610f1f565b820191906000526020600020905b815481529060010190602001808311610f0257829003601f168201915b505050505090806002018054610f3490613093565b80601f0160208091040260200160405190810160405280929190818152602001828054610f6090613093565b8015610fad5780601f10610f8257610100808354040283529160200191610fad565b820191906000526020600020905b815481529060010190602001808311610f9057829003601f168201915b505050505090508a565b3360009081526004602052604090205460ff16610fe65760405162461bcd60e51b81526004016105f2906131df565b8281146110055760405162461bcd60e51b81526004016105f290613209565b60005b8381101561105b5761104b8686868481811061102657611026613145565b9050602002013585858581811061103f5761103f613145565b90506020020135611b2a565b611054816131c6565b9050611008565b505050505050565b6003546001600160a01b0316331461108d5760405162461bcd60e51b81526004016105f2906130cd565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b6003546001600160a01b031633146110d95760405162461bcd60e51b81526004016105f2906130cd565b610c996000611ca6565b3360009081526004602052604090205460ff166111125760405162461bcd60e51b81526004016105f2906131df565b61111d836008541190565b6111395760405162461bcd60e51b81526004016105f290613102565b81816008858154811061114e5761114e613145565b9060005260206000209060030201600201919061116c9291906125ec565b5080156111ae57827f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b83836040516111a592919061324e565b60405180910390a25b505050565b6007805461068090613093565b6111cb338383611cf8565b5050565b3360009081526004602052604090205460ff166111fe5760405162461bcd60e51b81526004016105f2906131df565b611209826008541190565b6112255760405162461bcd60e51b81526004016105f290613102565b60006008838154811061123a5761123a613145565b60009182526020909120600390910201805490915061ffff808416600160801b90920416111561127c5760405162461bcd60e51b81526004016105f29061327d565b805461ffff909216600160901b0261ffff60901b1990921691909117905550565b3360009081526004602052604090205460ff166112cc5760405162461bcd60e51b81526004016105f2906131df565b6008548210806112dd575060085482145b61131c5760405162461bcd60e51b815260206004820152601060248201526f125b9d985b1a59081d1bdad95b881a5960821b60448201526064016105f2565b6008548203611332576008805460010181556000525b60006008838154811061134757611347613145565b90600052602060002090600302019050816060015161ffff168160000160109054906101000a900461ffff1661ffff1611156113955760405162461bcd60e51b81526004016105f29061327d565b815181546020808501516060860151608087015160a088015160c089015160e08a01516001600160401b039889166fffffffffffffffffffffffffffffffff1990981697909717600160401b98909516979097029390931763ffffffff60901b1916600160901b61ffff9384160261ffff60a01b191617600160a01b92909116919091021761ffff60b01b1916600160b01b9115159190910260ff60b81b191617600160b81b931515939093029290921760ff60c01b1916600160c01b9115159190910217825561010083015180516114749260018501920190612670565b506101208201518051611491916002840191602090910190612670565b5061012082015151156111ae57827f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b8361012001516040516111a591906127c9565b6001600160a01b0385163314806114ef57506114ef85336104ba565b61154d5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b60648201526084016105f2565b610b5f8585858585611dd8565b6003546001600160a01b031633146115845760405162461bcd60e51b81526004016105f2906130cd565b61158d81611f02565b50565b3360009081526004602052604090205460ff166115bf5760405162461bcd60e51b81526004016105f2906131df565b84831461161a5760405162461bcd60e51b815260206004820152602360248201527f4d7573742070726f7669646520657175616c206163636f756e747320616e642060448201526269647360e81b60648201526084016105f2565b8281146116395760405162461bcd60e51b81526004016105f290613209565b60005b838110156116c5576116b587878381811061165957611659613145565b905060200201602081019061166e91906127dc565b86868481811061168057611680613145565b9050602002013585858581811061169957611699613145565b9050602002013560405180602001604052806000815250611731565b6116be816131c6565b905061163c565b50505050505050565b60006117186116dc85611f9a565b84848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611fce92505050565b6005546001600160a01b03918216911614949350505050565b6001600160a01b0384166117915760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b60648201526084016105f2565b33600061179d85611fea565b905060006117aa85611fea565b90506000868152602081815260408083206001600160a01b038b168452909152812080548792906117dc9084906132cb565b909155505060408051878152602081018790526001600160a01b03808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46116c583600089898989612035565b815183511461189e5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b60648201526084016105f2565b6001600160a01b0384166118c45760405162461bcd60e51b81526004016105f2906132e3565b3360005b84518110156119ab5760008582815181106118e5576118e5613145565b60200260200101519050600085838151811061190357611903613145565b602090810291909101810151600084815280835260408082206001600160a01b038e1683529093529190912054909150818110156119535760405162461bcd60e51b81526004016105f290613328565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b168252812080548492906119909084906132cb565b92505081905550505050806119a4906131c6565b90506118c8565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516119fb929190613372565b60405180910390a461105b818787878787612190565b80471015611a615760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016105f2565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611aae576040519150601f19603f3d011682016040523d82523d6000602084013e611ab3565b606091505b50509050806111ae5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016105f2565b6001600160a01b038316611b8c5760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b60648201526084016105f2565b336000611b9884611fea565b90506000611ba584611fea565b60408051602080820183526000918290528882528181528282206001600160a01b038b1683529052205490915084811015611c2e5760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b60648201526084016105f2565b6000868152602081815260408083206001600160a01b038b81168086529184528285208a8703905582518b81529384018a90529092908816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46040805160208101909152600090526116c5565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031603611d6b5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b60648201526084016105f2565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b038416611dfe5760405162461bcd60e51b81526004016105f2906132e3565b336000611e0a85611fea565b90506000611e1785611fea565b90506000868152602081815260408083206001600160a01b038c16845290915290205485811015611e5a5760405162461bcd60e51b81526004016105f290613328565b6000878152602081815260408083206001600160a01b038d8116855292528083208985039055908a16825281208054889290611e979084906132cb565b909155505060408051888152602081018890526001600160a01b03808b16928c821692918816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4611ef7848a8a8a8a8a612035565b505050505050505050565b6003546001600160a01b03163314611f2c5760405162461bcd60e51b81526004016105f2906130cd565b6001600160a01b038116611f915760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105f2565b61158d81611ca6565b6000303383604051602001611fb1939291906133a0565b604051602081830303815290604052805190602001209050919050565b6000611fe382611fdd8561224b565b90612286565b9392505050565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061202457612024613145565b602090810291909101015292915050565b6001600160a01b0384163b1561105b5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e619061207990899089908890889088906004016133e6565b6020604051808303816000875af19250505080156120b4575060408051601f3d908101601f191682019092526120b19181019061342b565b60015b612160576120c0613448565b806308c379a0036120f957506120d4613464565b806120df57506120fb565b8060405162461bcd60e51b81526004016105f291906127c9565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60648201526084016105f2565b6001600160e01b0319811663f23a6e6160e01b146116c55760405162461bcd60e51b81526004016105f2906134ed565b6001600160a01b0384163b1561105b5760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906121d49089908990889088908890600401613535565b6020604051808303816000875af192505050801561220f575060408051601f3d908101601f1916820190925261220c9181019061342b565b60015b61221b576120c0613448565b6001600160e01b0319811663bc197c8160e01b146116c55760405162461bcd60e51b81526004016105f2906134ed565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01611fb1565b600080600061229585856122a2565b91509150610e1181612310565b60008082516041036122d85760208301516040840151606085015160001a6122cc878285856124c6565b94509450505050612309565b825160400361230157602083015160408401516122f68683836125b3565b935093505050612309565b506000905060025b9250929050565b600081600481111561232457612324613593565b0361232c5750565b600181600481111561234057612340613593565b0361238d5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016105f2565b60028160048111156123a1576123a1613593565b036123ee5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016105f2565b600381600481111561240257612402613593565b0361245a5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016105f2565b600481600481111561246e5761246e613593565b0361158d5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016105f2565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156124fd57506000905060036125aa565b8460ff16601b1415801561251557508460ff16601c14155b1561252657506000905060046125aa565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa15801561257a573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166125a3576000600192509250506125aa565b9150600090505b94509492505050565b6000806001600160ff1b038316816125d060ff86901c601b6132cb565b90506125de878288856124c6565b935093505050935093915050565b8280546125f890613093565b90600052602060002090601f01602090048101928261261a5760008555612660565b82601f106126335782800160ff19823516178555612660565b82800160010185558215612660579182015b82811115612660578235825591602001919060010190612645565b5061266c9291506126e4565b5090565b82805461267c90613093565b90600052602060002090601f01602090048101928261269e5760008555612660565b82601f106126b757805160ff1916838001178555612660565b82800160010185558215612660579182015b828111156126605782518255916020019190600101906126c9565b5b8082111561266c57600081556001016126e5565b80356001600160a01b038116811461074c57600080fd5b6000806040838503121561272357600080fd5b61272c836126f9565b946020939093013593505050565b6001600160e01b03198116811461158d57600080fd5b60006020828403121561276257600080fd5b8135611fe38161273a565b60005b83811015612788578181015183820152602001612770565b83811115612797576000848401525b50505050565b600081518084526127b581602086016020860161276d565b601f01601f19169290920160200192915050565b602081526000611fe3602083018461279d565b6000602082840312156127ee57600080fd5b611fe3826126f9565b60006020828403121561280957600080fd5b5035919050565b803560ff8116811461074c57600080fd5b803561ffff8116811461074c57600080fd5b60008083601f84011261284557600080fd5b5081356001600160401b0381111561285c57600080fd5b60208301915083602082850101111561230957600080fd5b6000806000806060858703121561288a57600080fd5b61289385612810565b93506128a160208601612821565b925060408501356001600160401b038111156128bc57600080fd5b6128c887828801612833565b95989497509550505050565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b038111828210171561290f5761290f6128d4565b6040525050565b60405161014081016001600160401b0381118282101715612939576129396128d4565b60405290565b60006001600160401b03821115612958576129586128d4565b5060051b60200190565b600082601f83011261297357600080fd5b813560206129808261293f565b60405161298d82826128ea565b83815260059390931b85018201928281019150868411156129ad57600080fd5b8286015b848110156129c857803583529183019183016129b1565b509695505050505050565b600082601f8301126129e457600080fd5b81356001600160401b038111156129fd576129fd6128d4565b604051612a14601f8301601f1916602001826128ea565b818152846020838601011115612a2957600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a08688031215612a5e57600080fd5b612a67866126f9565b9450612a75602087016126f9565b935060408601356001600160401b0380821115612a9157600080fd5b612a9d89838a01612962565b94506060880135915080821115612ab357600080fd5b612abf89838a01612962565b93506080880135915080821115612ad557600080fd5b50612ae2888289016129d3565b9150509295509295909350565b8035801515811461074c57600080fd5b60008060408385031215612b1257600080fd5b612b1b836126f9565b9150612b2960208401612aef565b90509250929050565b60008060408385031215612b4557600080fd5b82356001600160401b0380821115612b5c57600080fd5b818501915085601f830112612b7057600080fd5b81356020612b7d8261293f565b604051612b8a82826128ea565b83815260059390931b8501820192828101915089841115612baa57600080fd5b948201945b83861015612bcf57612bc0866126f9565b82529482019490820190612baf565b96505086013592505080821115612be557600080fd5b50612bf285828601612962565b9150509250929050565b600081518084526020808501945080840160005b83811015612c2c57815187529582019590820190600101612c10565b509495945050505050565b602081526000611fe36020830184612bfc565b6001600160401b038b811682528a16602082015261ffff898116604083015288811660608301528716608082015285151560a082015284151560c082015283151560e08201526101406101008201819052600090612caa8382018661279d565b9050828103610120840152612cbf818561279d565b9d9c50505050505050505050505050565b60008083601f840112612ce257600080fd5b5081356001600160401b03811115612cf957600080fd5b6020830191508360208260051b850101111561230957600080fd5b600080600080600060608688031215612d2c57600080fd5b612d35866126f9565b945060208601356001600160401b0380821115612d5157600080fd5b612d5d89838a01612cd0565b90965094506040880135915080821115612d7657600080fd5b50612d8388828901612cd0565b969995985093965092949392505050565b600080600060408486031215612da957600080fd5b8335925060208401356001600160401b03811115612dc657600080fd5b612dd286828701612833565b9497909650939450505050565b60008060408385031215612df257600080fd5b82359150612b2960208401612821565b80356001600160401b038116811461074c57600080fd5b60008060408385031215612e2c57600080fd5b8235915060208301356001600160401b0380821115612e4a57600080fd5b908401906101408287031215612e5f57600080fd5b612e67612916565b612e7083612e02565b8152612e7e60208401612e02565b6020820152612e8f60408401612821565b6040820152612ea060608401612821565b6060820152612eb160808401612821565b6080820152612ec260a08401612aef565b60a0820152612ed360c08401612aef565b60c0820152612ee460e08401612aef565b60e08201526101008084013583811115612efd57600080fd5b612f09898287016129d3565b8284015250506101208084013583811115612f2357600080fd5b612f2f898287016129d3565b8284015250508093505050509250929050565b60008060408385031215612f5557600080fd5b612f5e836126f9565b9150612b29602084016126f9565b600080600080600060a08688031215612f8457600080fd5b612f8d866126f9565b9450612f9b602087016126f9565b9350604086013592506060860135915060808601356001600160401b03811115612fc457600080fd5b612ae2888289016129d3565b60008060008060008060608789031215612fe957600080fd5b86356001600160401b038082111561300057600080fd5b61300c8a838b01612cd0565b9098509650602089013591508082111561302557600080fd5b6130318a838b01612cd0565b9096509450604089013591508082111561304a57600080fd5b5061305789828a01612cd0565b979a9699509497509295939492505050565b6000806040838503121561307c57600080fd5b613085836126f9565b9150612b2960208401612810565b600181811c908216806130a757607f821691505b6020821081036130c757634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526023908201527f53706563696669656420746f6b656e202869642920646f6573206e6f742065786040820152621a5cdd60ea1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600061ffff80831681851680830382111561318e5761318e61315b565b01949350505050565b60006001600160401b03808316818516818304811182151516156131bd576131bd61315b565b02949350505050565b6000600182016131d8576131d861315b565b5060010190565b60208082526010908201526f496e76616c69642064656c656761746560801b604082015260600190565b60208082526025908201527f4d7573742070726f7669646520657175616c2069647320616e64207175616e74604082015264697469657360d81b606082015260800190565b60208152816020820152818360408301376000818301604090810191909152601f909201601f19160101919050565b6020808252602e908201527f53706563696669656420737570706c79206973206c6f776572207468616e206360408201526d757272656e742062616c616e636560901b606082015260800190565b600082198211156132de576132de61315b565b500190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6040815260006133856040830185612bfc565b82810360208401526133978185612bfc565b95945050505050565b60006bffffffffffffffffffffffff19808660601b168352808560601b1660148401525082516133d781602885016020870161276d565b91909101602801949350505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906134209083018461279d565b979650505050505050565b60006020828403121561343d57600080fd5b8151611fe38161273a565b600060033d11156134615760046000803e5060005160e01c5b90565b600060443d10156134725790565b6040516003193d81016004833e81513d6001600160401b0381602484011181841117156134a157505050505090565b82850191508151818111156134b95750505050505090565b843d87010160208285010111156134d35750505050505090565b6134e2602082860101876128ea565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b0386811682528516602082015260a06040820181905260009061356190830186612bfc565b82810360608401526135738186612bfc565b90508281036080840152613587818561279d565b98975050505050505050565b634e487b7160e01b600052602160045260246000fdfea264697066735822122050fcbe3b5802eabfcc4c8e211cf9de6b3eb0136a988dc8c9bb5c33634e14ab8c64736f6c634300080e0033
Deployed Bytecode
0x6080604052600436106101ba5760003560e01c80636c19e783116100ec578063a7f5cbde1161008a578063f242432a11610064578063f242432a146104e8578063f2fde38b14610508578063f5f5f49814610528578063fbb905e31461053b57600080fd5b8063a7f5cbde1461047f578063bd85b039146102a0578063e985e9c51461049f57600080fd5b80638da5cb5b116100c65780638da5cb5b1461040257806395d89b411461042a578063a22cb4651461043f578063a6d279c61461045f57600080fd5b80636c19e783146103ad578063715018a6146103cd578063862440e2146103e257600080fd5b80632eb2c2d6116101595780634e1273f4116101335780634e1273f4146103155780634f558e79146103425780634f64b2be14610364578063666abf231461039a57600080fd5b80632eb2c2d6146102c05780633ccfd60b146102e05780634a994eef146102f557600080fd5b80630777962711610195578063077796271461024b5780630e89341c1461026b5780631c88d6fb1461028b5780632693ebf2146102a057600080fd5b8062fdd58e146101c657806301ffc9a7146101f957806306fdde031461022957600080fd5b366101c157005b600080fd5b3480156101d257600080fd5b506101e66101e1366004612710565b61058a565b6040519081526020015b60405180910390f35b34801561020557600080fd5b50610219610214366004612750565b610621565b60405190151581526020016101f0565b34801561023557600080fd5b5061023e610673565b6040516101f091906127c9565b34801561025757600080fd5b506102196102663660046127dc565b610701565b34801561027757600080fd5b5061023e6102863660046127f7565b610751565b61029e610299366004612874565b61082e565b005b3480156102ac57600080fd5b506101e66102bb3660046127f7565b610b66565b3480156102cc57600080fd5b5061029e6102db366004612a46565b610bc4565b3480156102ec57600080fd5b5061029e610c54565b34801561030157600080fd5b5061029e610310366004612aff565b610c9b565b34801561032157600080fd5b50610335610330366004612b32565b610cf0565b6040516101f09190612c37565b34801561034e57600080fd5b5061021961035d3660046127f7565b6008541190565b34801561037057600080fd5b5061038461037f3660046127f7565b610e19565b6040516101f09a99989796959493929190612c4a565b61029e6103a8366004612d14565b610fb7565b3480156103b957600080fd5b5061029e6103c83660046127dc565b611063565b3480156103d957600080fd5b5061029e6110af565b3480156103ee57600080fd5b5061029e6103fd366004612d94565b6110e3565b34801561040e57600080fd5b506003546040516001600160a01b0390911681526020016101f0565b34801561043657600080fd5b5061023e6111b3565b34801561044b57600080fd5b5061029e61045a366004612aff565b6111c0565b34801561046b57600080fd5b5061029e61047a366004612ddf565b6111cf565b34801561048b57600080fd5b5061029e61049a366004612e19565b61129d565b3480156104ab57600080fd5b506102196104ba366004612f42565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b3480156104f457600080fd5b5061029e610503366004612f6c565b6114d3565b34801561051457600080fd5b5061029e6105233660046127dc565b61155a565b61029e610536366004612fd0565b611590565b34801561054757600080fd5b50610577610556366004613069565b600960209081526000928352604080842090915290825290205461ffff1681565b60405161ffff90911681526020016101f0565b60006001600160a01b0383166105fb5760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b506000908152602081815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b148061065257506001600160e01b031982166303a24d0760e21b145b8061066d57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6006805461068090613093565b80601f01602080910402602001604051908101604052809291908181526020018280546106ac90613093565b80156106f95780601f106106ce576101008083540402835291602001916106f9565b820191906000526020600020905b8154815290600101906020018083116106dc57829003601f168201915b505050505081565b6003546000906001600160a01b0316331461072e5760405162461bcd60e51b81526004016105f2906130cd565b506001600160a01b03811660009081526004602052604090205460ff165b919050565b606061075e826008541190565b61077a5760405162461bcd60e51b81526004016105f290613102565b6008828154811061078d5761078d613145565b906000526020600020906003020160020180546107a990613093565b80601f01602080910402602001604051908101604052809291908181526020018280546107d590613093565b80156108225780601f106107f757610100808354040283529160200191610822565b820191906000526020600020905b81548152906001019060200180831161080557829003601f168201915b50505050509050919050565b61083c8460ff166008541190565b6108585760405162461bcd60e51b81526004016105f290613102565b600060088560ff168154811061087057610870613145565b600091825260209091206003909102018054909150600160b81b900460ff166108d05760405162461bcd60e51b815260206004820152601260248201527153616c65206973206e6f742061637469766560701b60448201526064016105f2565b805461ffff600160901b82048116916108f2918791600160801b900416613171565b61ffff1611156109385760405162461bcd60e51b81526020600482015260116024820152704e6f7420656e6f75676820737570706c7960781b60448201526064016105f2565b805433600090815260096020908152604080832060ff8a16845290915290205461ffff600160a01b90920482169161097291879116613171565b61ffff1611156109b65760405162461bcd60e51b815260206004820152600f60248201526e105b1c9958591e4818db185a5b5959608a1b60448201526064016105f2565b80546109d79061ffff861690600160401b90046001600160401b0316613197565b6001600160401b0316341015610a2f5760405162461bcd60e51b815260206004820152601960248201527f45746865722073656e74206973206e6f7420636f72726563740000000000000060448201526064016105f2565b8054600160c01b900460ff1615610ab9576040516001600160f01b031960f086901b166020820152610a749060220160405160208183030381529060405284846116ce565b610ab95760405162461bcd60e51b81526020600482015260166024820152751058d8dbdd5b9d081b9bdd08185d5d1a1bdc9a5e995960521b60448201526064016105f2565b805484908290601090610ad8908490600160801b900461ffff16613171565b82546101009290920a61ffff81810219909316918316021790915533600090815260096020908152604080832060ff8b168452909152812080548894509092610b2391859116613171565b92506101000a81548161ffff021916908361ffff160217905550610b5f338660ff168661ffff1660405180602001604052806000815250611731565b5050505050565b6000610b73826008541190565b610b8f5760405162461bcd60e51b81526004016105f290613102565b60088281548110610ba257610ba2613145565b6000918252602090912060039091020154600160901b900461ffff1692915050565b6001600160a01b038516331480610be05750610be085336104ba565b610c475760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b60648201526084016105f2565b610b5f858585858561183c565b6003546001600160a01b03163314610c7e5760405162461bcd60e51b81526004016105f2906130cd565b610c99610c936003546001600160a01b031690565b47611a11565b565b6003546001600160a01b03163314610cc55760405162461bcd60e51b81526004016105f2906130cd565b6001600160a01b03919091166000908152600460205260409020805460ff1916911515919091179055565b60608151835114610d555760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b60648201526084016105f2565b600083516001600160401b03811115610d7057610d706128d4565b604051908082528060200260200182016040528015610d99578160200160208202803683370190505b50905060005b8451811015610e1157610de4858281518110610dbd57610dbd613145565b6020026020010151858381518110610dd757610dd7613145565b602002602001015161058a565b828281518110610df657610df6613145565b6020908102919091010152610e0a816131c6565b9050610d9f565b509392505050565b60088181548110610e2957600080fd5b6000918252602090912060039091020180546001820180546001600160401b038084169550600160401b8404169361ffff600160801b8504811694600160901b8104821694600160a01b82049092169360ff600160b01b8304811694600160b81b8404821694600160c01b909404909116929091610ea690613093565b80601f0160208091040260200160405190810160405280929190818152602001828054610ed290613093565b8015610f1f5780601f10610ef457610100808354040283529160200191610f1f565b820191906000526020600020905b815481529060010190602001808311610f0257829003601f168201915b505050505090806002018054610f3490613093565b80601f0160208091040260200160405190810160405280929190818152602001828054610f6090613093565b8015610fad5780601f10610f8257610100808354040283529160200191610fad565b820191906000526020600020905b815481529060010190602001808311610f9057829003601f168201915b505050505090508a565b3360009081526004602052604090205460ff16610fe65760405162461bcd60e51b81526004016105f2906131df565b8281146110055760405162461bcd60e51b81526004016105f290613209565b60005b8381101561105b5761104b8686868481811061102657611026613145565b9050602002013585858581811061103f5761103f613145565b90506020020135611b2a565b611054816131c6565b9050611008565b505050505050565b6003546001600160a01b0316331461108d5760405162461bcd60e51b81526004016105f2906130cd565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b6003546001600160a01b031633146110d95760405162461bcd60e51b81526004016105f2906130cd565b610c996000611ca6565b3360009081526004602052604090205460ff166111125760405162461bcd60e51b81526004016105f2906131df565b61111d836008541190565b6111395760405162461bcd60e51b81526004016105f290613102565b81816008858154811061114e5761114e613145565b9060005260206000209060030201600201919061116c9291906125ec565b5080156111ae57827f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b83836040516111a592919061324e565b60405180910390a25b505050565b6007805461068090613093565b6111cb338383611cf8565b5050565b3360009081526004602052604090205460ff166111fe5760405162461bcd60e51b81526004016105f2906131df565b611209826008541190565b6112255760405162461bcd60e51b81526004016105f290613102565b60006008838154811061123a5761123a613145565b60009182526020909120600390910201805490915061ffff808416600160801b90920416111561127c5760405162461bcd60e51b81526004016105f29061327d565b805461ffff909216600160901b0261ffff60901b1990921691909117905550565b3360009081526004602052604090205460ff166112cc5760405162461bcd60e51b81526004016105f2906131df565b6008548210806112dd575060085482145b61131c5760405162461bcd60e51b815260206004820152601060248201526f125b9d985b1a59081d1bdad95b881a5960821b60448201526064016105f2565b6008548203611332576008805460010181556000525b60006008838154811061134757611347613145565b90600052602060002090600302019050816060015161ffff168160000160109054906101000a900461ffff1661ffff1611156113955760405162461bcd60e51b81526004016105f29061327d565b815181546020808501516060860151608087015160a088015160c089015160e08a01516001600160401b039889166fffffffffffffffffffffffffffffffff1990981697909717600160401b98909516979097029390931763ffffffff60901b1916600160901b61ffff9384160261ffff60a01b191617600160a01b92909116919091021761ffff60b01b1916600160b01b9115159190910260ff60b81b191617600160b81b931515939093029290921760ff60c01b1916600160c01b9115159190910217825561010083015180516114749260018501920190612670565b506101208201518051611491916002840191602090910190612670565b5061012082015151156111ae57827f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b8361012001516040516111a591906127c9565b6001600160a01b0385163314806114ef57506114ef85336104ba565b61154d5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201526808185c1c1c9bdd995960ba1b60648201526084016105f2565b610b5f8585858585611dd8565b6003546001600160a01b031633146115845760405162461bcd60e51b81526004016105f2906130cd565b61158d81611f02565b50565b3360009081526004602052604090205460ff166115bf5760405162461bcd60e51b81526004016105f2906131df565b84831461161a5760405162461bcd60e51b815260206004820152602360248201527f4d7573742070726f7669646520657175616c206163636f756e747320616e642060448201526269647360e81b60648201526084016105f2565b8281146116395760405162461bcd60e51b81526004016105f290613209565b60005b838110156116c5576116b587878381811061165957611659613145565b905060200201602081019061166e91906127dc565b86868481811061168057611680613145565b9050602002013585858581811061169957611699613145565b9050602002013560405180602001604052806000815250611731565b6116be816131c6565b905061163c565b50505050505050565b60006117186116dc85611f9a565b84848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611fce92505050565b6005546001600160a01b03918216911614949350505050565b6001600160a01b0384166117915760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b60648201526084016105f2565b33600061179d85611fea565b905060006117aa85611fea565b90506000868152602081815260408083206001600160a01b038b168452909152812080548792906117dc9084906132cb565b909155505060408051878152602081018790526001600160a01b03808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46116c583600089898989612035565b815183511461189e5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206044820152670dad2e6dac2e8c6d60c31b60648201526084016105f2565b6001600160a01b0384166118c45760405162461bcd60e51b81526004016105f2906132e3565b3360005b84518110156119ab5760008582815181106118e5576118e5613145565b60200260200101519050600085838151811061190357611903613145565b602090810291909101810151600084815280835260408082206001600160a01b038e1683529093529190912054909150818110156119535760405162461bcd60e51b81526004016105f290613328565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b168252812080548492906119909084906132cb565b92505081905550505050806119a4906131c6565b90506118c8565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516119fb929190613372565b60405180910390a461105b818787878787612190565b80471015611a615760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016105f2565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611aae576040519150601f19603f3d011682016040523d82523d6000602084013e611ab3565b606091505b50509050806111ae5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016105f2565b6001600160a01b038316611b8c5760405162461bcd60e51b815260206004820152602360248201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260448201526265737360e81b60648201526084016105f2565b336000611b9884611fea565b90506000611ba584611fea565b60408051602080820183526000918290528882528181528282206001600160a01b038b1683529052205490915084811015611c2e5760405162461bcd60e51b8152602060048201526024808201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604482015263616e636560e01b60648201526084016105f2565b6000868152602081815260408083206001600160a01b038b81168086529184528285208a8703905582518b81529384018a90529092908816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46040805160208101909152600090526116c5565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031603611d6b5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b60648201526084016105f2565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b038416611dfe5760405162461bcd60e51b81526004016105f2906132e3565b336000611e0a85611fea565b90506000611e1785611fea565b90506000868152602081815260408083206001600160a01b038c16845290915290205485811015611e5a5760405162461bcd60e51b81526004016105f290613328565b6000878152602081815260408083206001600160a01b038d8116855292528083208985039055908a16825281208054889290611e979084906132cb565b909155505060408051888152602081018890526001600160a01b03808b16928c821692918816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4611ef7848a8a8a8a8a612035565b505050505050505050565b6003546001600160a01b03163314611f2c5760405162461bcd60e51b81526004016105f2906130cd565b6001600160a01b038116611f915760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105f2565b61158d81611ca6565b6000303383604051602001611fb1939291906133a0565b604051602081830303815290604052805190602001209050919050565b6000611fe382611fdd8561224b565b90612286565b9392505050565b6040805160018082528183019092526060916000919060208083019080368337019050509050828160008151811061202457612024613145565b602090810291909101015292915050565b6001600160a01b0384163b1561105b5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e619061207990899089908890889088906004016133e6565b6020604051808303816000875af19250505080156120b4575060408051601f3d908101601f191682019092526120b19181019061342b565b60015b612160576120c0613448565b806308c379a0036120f957506120d4613464565b806120df57506120fb565b8060405162461bcd60e51b81526004016105f291906127c9565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b60648201526084016105f2565b6001600160e01b0319811663f23a6e6160e01b146116c55760405162461bcd60e51b81526004016105f2906134ed565b6001600160a01b0384163b1561105b5760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906121d49089908990889088908890600401613535565b6020604051808303816000875af192505050801561220f575060408051601f3d908101601f1916820190925261220c9181019061342b565b60015b61221b576120c0613448565b6001600160e01b0319811663bc197c8160e01b146116c55760405162461bcd60e51b81526004016105f2906134ed565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01611fb1565b600080600061229585856122a2565b91509150610e1181612310565b60008082516041036122d85760208301516040840151606085015160001a6122cc878285856124c6565b94509450505050612309565b825160400361230157602083015160408401516122f68683836125b3565b935093505050612309565b506000905060025b9250929050565b600081600481111561232457612324613593565b0361232c5750565b600181600481111561234057612340613593565b0361238d5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016105f2565b60028160048111156123a1576123a1613593565b036123ee5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016105f2565b600381600481111561240257612402613593565b0361245a5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016105f2565b600481600481111561246e5761246e613593565b0361158d5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016105f2565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156124fd57506000905060036125aa565b8460ff16601b1415801561251557508460ff16601c14155b1561252657506000905060046125aa565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa15801561257a573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166125a3576000600192509250506125aa565b9150600090505b94509492505050565b6000806001600160ff1b038316816125d060ff86901c601b6132cb565b90506125de878288856124c6565b935093505050935093915050565b8280546125f890613093565b90600052602060002090601f01602090048101928261261a5760008555612660565b82601f106126335782800160ff19823516178555612660565b82800160010185558215612660579182015b82811115612660578235825591602001919060010190612645565b5061266c9291506126e4565b5090565b82805461267c90613093565b90600052602060002090601f01602090048101928261269e5760008555612660565b82601f106126b757805160ff1916838001178555612660565b82800160010185558215612660579182015b828111156126605782518255916020019190600101906126c9565b5b8082111561266c57600081556001016126e5565b80356001600160a01b038116811461074c57600080fd5b6000806040838503121561272357600080fd5b61272c836126f9565b946020939093013593505050565b6001600160e01b03198116811461158d57600080fd5b60006020828403121561276257600080fd5b8135611fe38161273a565b60005b83811015612788578181015183820152602001612770565b83811115612797576000848401525b50505050565b600081518084526127b581602086016020860161276d565b601f01601f19169290920160200192915050565b602081526000611fe3602083018461279d565b6000602082840312156127ee57600080fd5b611fe3826126f9565b60006020828403121561280957600080fd5b5035919050565b803560ff8116811461074c57600080fd5b803561ffff8116811461074c57600080fd5b60008083601f84011261284557600080fd5b5081356001600160401b0381111561285c57600080fd5b60208301915083602082850101111561230957600080fd5b6000806000806060858703121561288a57600080fd5b61289385612810565b93506128a160208601612821565b925060408501356001600160401b038111156128bc57600080fd5b6128c887828801612833565b95989497509550505050565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b038111828210171561290f5761290f6128d4565b6040525050565b60405161014081016001600160401b0381118282101715612939576129396128d4565b60405290565b60006001600160401b03821115612958576129586128d4565b5060051b60200190565b600082601f83011261297357600080fd5b813560206129808261293f565b60405161298d82826128ea565b83815260059390931b85018201928281019150868411156129ad57600080fd5b8286015b848110156129c857803583529183019183016129b1565b509695505050505050565b600082601f8301126129e457600080fd5b81356001600160401b038111156129fd576129fd6128d4565b604051612a14601f8301601f1916602001826128ea565b818152846020838601011115612a2957600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a08688031215612a5e57600080fd5b612a67866126f9565b9450612a75602087016126f9565b935060408601356001600160401b0380821115612a9157600080fd5b612a9d89838a01612962565b94506060880135915080821115612ab357600080fd5b612abf89838a01612962565b93506080880135915080821115612ad557600080fd5b50612ae2888289016129d3565b9150509295509295909350565b8035801515811461074c57600080fd5b60008060408385031215612b1257600080fd5b612b1b836126f9565b9150612b2960208401612aef565b90509250929050565b60008060408385031215612b4557600080fd5b82356001600160401b0380821115612b5c57600080fd5b818501915085601f830112612b7057600080fd5b81356020612b7d8261293f565b604051612b8a82826128ea565b83815260059390931b8501820192828101915089841115612baa57600080fd5b948201945b83861015612bcf57612bc0866126f9565b82529482019490820190612baf565b96505086013592505080821115612be557600080fd5b50612bf285828601612962565b9150509250929050565b600081518084526020808501945080840160005b83811015612c2c57815187529582019590820190600101612c10565b509495945050505050565b602081526000611fe36020830184612bfc565b6001600160401b038b811682528a16602082015261ffff898116604083015288811660608301528716608082015285151560a082015284151560c082015283151560e08201526101406101008201819052600090612caa8382018661279d565b9050828103610120840152612cbf818561279d565b9d9c50505050505050505050505050565b60008083601f840112612ce257600080fd5b5081356001600160401b03811115612cf957600080fd5b6020830191508360208260051b850101111561230957600080fd5b600080600080600060608688031215612d2c57600080fd5b612d35866126f9565b945060208601356001600160401b0380821115612d5157600080fd5b612d5d89838a01612cd0565b90965094506040880135915080821115612d7657600080fd5b50612d8388828901612cd0565b969995985093965092949392505050565b600080600060408486031215612da957600080fd5b8335925060208401356001600160401b03811115612dc657600080fd5b612dd286828701612833565b9497909650939450505050565b60008060408385031215612df257600080fd5b82359150612b2960208401612821565b80356001600160401b038116811461074c57600080fd5b60008060408385031215612e2c57600080fd5b8235915060208301356001600160401b0380821115612e4a57600080fd5b908401906101408287031215612e5f57600080fd5b612e67612916565b612e7083612e02565b8152612e7e60208401612e02565b6020820152612e8f60408401612821565b6040820152612ea060608401612821565b6060820152612eb160808401612821565b6080820152612ec260a08401612aef565b60a0820152612ed360c08401612aef565b60c0820152612ee460e08401612aef565b60e08201526101008084013583811115612efd57600080fd5b612f09898287016129d3565b8284015250506101208084013583811115612f2357600080fd5b612f2f898287016129d3565b8284015250508093505050509250929050565b60008060408385031215612f5557600080fd5b612f5e836126f9565b9150612b29602084016126f9565b600080600080600060a08688031215612f8457600080fd5b612f8d866126f9565b9450612f9b602087016126f9565b9350604086013592506060860135915060808601356001600160401b03811115612fc457600080fd5b612ae2888289016129d3565b60008060008060008060608789031215612fe957600080fd5b86356001600160401b038082111561300057600080fd5b61300c8a838b01612cd0565b9098509650602089013591508082111561302557600080fd5b6130318a838b01612cd0565b9096509450604089013591508082111561304a57600080fd5b5061305789828a01612cd0565b979a9699509497509295939492505050565b6000806040838503121561307c57600080fd5b613085836126f9565b9150612b2960208401612810565b600181811c908216806130a757607f821691505b6020821081036130c757634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526023908201527f53706563696669656420746f6b656e202869642920646f6573206e6f742065786040820152621a5cdd60ea1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600061ffff80831681851680830382111561318e5761318e61315b565b01949350505050565b60006001600160401b03808316818516818304811182151516156131bd576131bd61315b565b02949350505050565b6000600182016131d8576131d861315b565b5060010190565b60208082526010908201526f496e76616c69642064656c656761746560801b604082015260600190565b60208082526025908201527f4d7573742070726f7669646520657175616c2069647320616e64207175616e74604082015264697469657360d81b606082015260800190565b60208152816020820152818360408301376000818301604090810191909152601f909201601f19160101919050565b6020808252602e908201527f53706563696669656420737570706c79206973206c6f776572207468616e206360408201526d757272656e742062616c616e636560901b606082015260800190565b600082198211156132de576132de61315b565b500190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6040815260006133856040830185612bfc565b82810360208401526133978185612bfc565b95945050505050565b60006bffffffffffffffffffffffff19808660601b168352808560601b1660148401525082516133d781602885016020870161276d565b91909101602801949350505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906134209083018461279d565b979650505050505050565b60006020828403121561343d57600080fd5b8151611fe38161273a565b600060033d11156134615760046000803e5060005160e01c5b90565b600060443d10156134725790565b6040516003193d81016004833e81513d6001600160401b0381602484011181841117156134a157505050505090565b82850191508151818111156134b95750505050505090565b843d87010160208285010111156134d35750505050505090565b6134e2602082860101876128ea565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b0386811682528516602082015260a06040820181905260009061356190830186612bfc565b82810360608401526135738186612bfc565b90508281036080840152613587818561279d565b98975050505050505050565b634e487b7160e01b600052602160045260246000fdfea264697066735822122050fcbe3b5802eabfcc4c8e211cf9de6b3eb0136a988dc8c9bb5c33634e14ab8c64736f6c634300080e0033
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.