ERC-1155
Overview
Max Total Supply
140 NINDAOEP
Holders
109
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:
NinjaDaoEntertainmentPassport
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 800 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.17; import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; contract NinjaDaoEntertainmentPassport is ERC1155, AccessControl, Ownable, Pausable { using Strings for uint256; using ECDSA for bytes32; // Role bytes32 public constant ADMIN = "ADMIN"; // Sell mapping(uint256 => uint256) public mintCosts; address public withdrawAddress; address private signer; uint256 public mintLimitPerTerm = 1; uint256 public timezoneOffsetSec = 13 hours; // Mint mapping(uint256 => uint256) public mintedAmount; mapping(uint256 => uint256) public totalSupply; // Metadata string public name = "Ninja DAO Entertainment Passport"; string public symbol = "NINDAOEP"; string public baseURI; string public baseExtension; // Modifier modifier tokenExists(uint256 _tokenId) { require(mintCosts[_tokenId] > 0, 'Token Not Exists'); _; } modifier enoughEth(uint256 _tokenId) { require(msg.value >= mintCosts[_tokenId], 'Not Enough Eth'); _; } modifier withinMintLimit() { require(mintedAmount[getCurrentTerm()] < mintLimitPerTerm, 'Over Mint Limit'); _; } modifier isValidSignature (uint256 _tokenId, bytes calldata _signature) { address recoveredAddress = keccak256( abi.encodePacked( msg.sender, _tokenId, getCurrentTerm() ) ).toEthSignedMessageHash().recover(_signature); require(recoveredAddress == signer, "Invalid Signature"); _; } // Constructor constructor() ERC1155("") { _grantRole(ADMIN, msg.sender); setWithdrawAddress(msg.sender); } // Mint function mint(uint256 _tokenId, bytes calldata _signature) external payable whenNotPaused tokenExists(_tokenId) enoughEth(_tokenId) withinMintLimit() isValidSignature(_tokenId, _signature) { _mintCommon(msg.sender, _tokenId, 1); mintedAmount[getCurrentTerm()]++; } function airdrop(address[] calldata _addresses, uint256 _tokenId, uint256 _amount) external onlyRole(ADMIN) tokenExists(_tokenId) { for (uint256 i = 0; i < _addresses.length; i++) { _mintCommon(_addresses[i], _tokenId, _amount); } } function _mintCommon(address _to, uint256 _tokenId, uint256 _amount) private { _mint(_to, _tokenId, _amount, ""); totalSupply[_tokenId] += _amount; } function withdraw() public payable onlyRole(ADMIN) { (bool os, ) = payable(withdrawAddress).call{value: address(this).balance}(""); require(os); } // Getter function uri(uint256 tokenId) public view virtual override returns (string memory) { return string(abi.encodePacked(baseURI, tokenId.toString(), baseExtension)); } function getCurrentTerm() public view returns (uint256) { return (block.timestamp + timezoneOffsetSec) / 1 days; } function getAdjustedTimestamp(uint256 timestamp) external view returns (uint256) { return timestamp + timezoneOffsetSec; } function getRemainMintLimit() external view returns (uint256) { return mintLimitPerTerm - mintedAmount[getCurrentTerm()]; } // Setter function setBaseURI(string memory _value) external onlyRole(ADMIN) { baseURI = _value; } function setBaseExtension(string memory _value) external onlyRole(ADMIN) { baseExtension = _value; } function resetBaseExtension() external onlyRole(ADMIN) { baseExtension = ""; } function setMintCost(uint256 _tokenId, uint256 _cost) external onlyRole(ADMIN) { mintCosts[_tokenId] = _cost; } function setWithdrawAddress(address _value) public onlyRole(ADMIN) { withdrawAddress = _value; } function setSigner(address _value) external onlyRole(ADMIN) { signer = _value; } function setMintLimitPerTerm(uint256 _value) external onlyRole(ADMIN) { mintLimitPerTerm = _value; } function setTimezoneOffsetMin(uint256 _value) external onlyRole(ADMIN) { timezoneOffsetSec = _value; } // Pausable function pause() public onlyRole(ADMIN) { _pause(); } function unpause() public onlyRole(ADMIN) { _unpause(); } // AccessControl function grantRole(bytes32 role, address account) public override onlyOwner { _grantRole(role, account); } function revokeRole(bytes32 role, address account) public override onlyOwner { _revokeRole(role, account); } // interface function supportsInterface(bytes4 interfaceId) public view virtual override(ERC1155, AccessControl) returns (bool) { return ERC1155.supportsInterface(interfaceId) || AccessControl.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/AccessControl.sol) pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view virtual override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `_msgSender()` is missing `role`. * Overriding this function changes the behavior of the {onlyRole} modifier. * * Format of the revert message is described in {_checkRole}. * * _Available since v4.6._ */ function _checkRole(bytes32 role) internal view virtual { _checkRole(role, _msgSender()); } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view virtual { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleGranted} event. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleRevoked} event. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. * * May emit a {RoleRevoked} event. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * May emit a {RoleGranted} event. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. * * May emit a {RoleGranted} event. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. * * May emit a {RoleRevoked} event. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.3) (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) { 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. /// @solidity memory-safe-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 { 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 (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/ERC1155.sol) pragma solidity ^0.8.0; import "./IERC1155.sol"; import "./IERC1155Receiver.sol"; import "./extensions/IERC1155MetadataURI.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the basic standard multi-token. * See https://eips.ethereum.org/EIPS/eip-1155 * Originally based on code by Enjin: https://github.com/enjin/erc-1155 * * _Available since v3.1._ */ contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI { using Address for address; // Mapping from token ID to account balances mapping(uint256 => mapping(address => uint256)) private _balances; // Mapping from account to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json string private _uri; /** * @dev See {_setURI}. */ constructor(string memory uri_) { _setURI(uri_); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC1155).interfaceId || interfaceId == type(IERC1155MetadataURI).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC1155MetadataURI-uri}. * * This implementation returns the same URI for *all* token types. It relies * on the token type ID substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * Clients calling this function must replace the `\{id\}` substring with the * actual token type ID. */ function uri(uint256) public view virtual override returns (string memory) { return _uri; } /** * @dev See {IERC1155-balanceOf}. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) public view virtual override returns (uint256) { require(account != address(0), "ERC1155: address zero is not a valid owner"); return _balances[id][account]; } /** * @dev See {IERC1155-balanceOfBatch}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] memory accounts, uint256[] memory ids) public view virtual override returns (uint256[] memory) { require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch"); uint256[] memory batchBalances = new uint256[](accounts.length); for (uint256 i = 0; i < accounts.length; ++i) { batchBalances[i] = balanceOf(accounts[i], ids[i]); } return batchBalances; } /** * @dev See {IERC1155-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC1155-isApprovedForAll}. */ function isApprovedForAll(address account, address operator) public view virtual override returns (bool) { return _operatorApprovals[account][operator]; } /** * @dev See {IERC1155-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: caller is not token owner nor approved" ); _safeTransferFrom(from, to, id, amount, data); } /** * @dev See {IERC1155-safeBatchTransferFrom}. */ function safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: caller is not token owner nor approved" ); _safeBatchTransferFrom(from, to, ids, amounts, data); } /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); uint256[] memory ids = _asSingletonArray(id); uint256[] memory amounts = _asSingletonArray(amount); _beforeTokenTransfer(operator, from, to, ids, amounts, data); uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; emit TransferSingle(operator, from, to, id, amount); _afterTokenTransfer(operator, from, to, ids, amounts, data); _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, to, ids, amounts, data); for (uint256 i = 0; i < ids.length; ++i) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; } emit TransferBatch(operator, from, to, ids, amounts); _afterTokenTransfer(operator, from, to, ids, amounts, data); _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data); } /** * @dev Sets a new URI for all token types, by relying on the token type ID * substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * By this mechanism, any occurrence of the `\{id\}` substring in either the * URI or any of the amounts in the JSON file at said URI will be replaced by * clients with the token type ID. * * For example, the `https://token-cdn-domain/\{id\}.json` URI would be * interpreted by clients as * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json` * for token type ID 0x4cce0. * * See {uri}. * * Because these URIs cannot be meaningfully represented by the {URI} event, * this function emits no events. */ function _setURI(string memory newuri) internal virtual { _uri = newuri; } /** * @dev Creates `amount` tokens of token type `id`, and assigns them to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _mint( address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); address operator = _msgSender(); uint256[] memory ids = _asSingletonArray(id); uint256[] memory amounts = _asSingletonArray(amount); _beforeTokenTransfer(operator, address(0), to, ids, amounts, data); _balances[id][to] += amount; emit TransferSingle(operator, address(0), to, id, amount); _afterTokenTransfer(operator, address(0), to, ids, amounts, data); _doSafeTransferAcceptanceCheck(operator, address(0), to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _mintBatch( address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), to, ids, amounts, data); for (uint256 i = 0; i < ids.length; i++) { _balances[ids[i]][to] += amounts[i]; } emit TransferBatch(operator, address(0), to, ids, amounts); _afterTokenTransfer(operator, address(0), to, ids, amounts, data); _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data); } /** * @dev Destroys `amount` tokens of token type `id` from `from` * * Emits a {TransferSingle} event. * * Requirements: * * - `from` cannot be the zero address. * - `from` must have at least `amount` tokens of token type `id`. */ function _burn( address from, uint256 id, uint256 amount ) internal virtual { require(from != address(0), "ERC1155: burn from the zero address"); address operator = _msgSender(); uint256[] memory ids = _asSingletonArray(id); uint256[] memory amounts = _asSingletonArray(amount); _beforeTokenTransfer(operator, from, address(0), ids, amounts, ""); uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][from] = fromBalance - amount; } emit TransferSingle(operator, from, address(0), id, amount); _afterTokenTransfer(operator, from, address(0), ids, amounts, ""); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. */ function _burnBatch( address from, uint256[] memory ids, uint256[] memory amounts ) internal virtual { require(from != address(0), "ERC1155: burn from the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, address(0), ids, amounts, ""); for (uint256 i = 0; i < ids.length; i++) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][from] = fromBalance - amount; } } emit TransferBatch(operator, from, address(0), ids, amounts); _afterTokenTransfer(operator, from, address(0), ids, amounts, ""); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC1155: setting approval status for self"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Hook that is called before any token transfer. This includes minting * and burning, as well as batched variants. * * The same hook is called on both single and batched variants. For single * transfers, the length of the `ids` and `amounts` arrays will be 1. * * Calling conditions (for each `id` and `amount` pair): * * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens * of token type `id` will be transferred to `to`. * - When `from` is zero, `amount` tokens of token type `id` will be minted * for `to`. * - when `to` is zero, `amount` of ``from``'s tokens of token type `id` * will be burned. * - `from` and `to` are never both zero. * - `ids` and `amounts` have the same, non-zero length. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual {} /** * @dev Hook that is called after any token transfer. This includes minting * and burning, as well as batched variants. * * The same hook is called on both single and batched variants. For single * transfers, the length of the `id` and `amount` arrays will be 1. * * Calling conditions (for each `id` and `amount` pair): * * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens * of token type `id` will be transferred to `to`. * - When `from` is zero, `amount` tokens of token type `id` will be minted * for `to`. * - when `to` is zero, `amount` of ``from``'s tokens of token type `id` * will be burned. * - `from` and `to` are never both zero. * - `ids` and `amounts` have the same, non-zero length. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual {} function _doSafeTransferAcceptanceCheck( address operator, address from, address to, uint256 id, uint256 amount, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) { if (response != IERC1155Receiver.onERC1155Received.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _doSafeBatchTransferAcceptanceCheck( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns ( bytes4 response ) { if (response != IERC1155Receiver.onERC1155BatchReceived.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) { uint256[] memory array = new uint256[](1); array[0] = element; return array; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/IERC1155.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. * * _Available since v3.1._ */ interface IERC1155 is IERC165 { /** * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch( address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values ); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll(address indexed account, address indexed operator, bool approved); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the amount of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes calldata data ) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev _Available since v3.1._ */ interface IERC1155Receiver is IERC165 { /** * @dev Handles the receipt of a single ERC1155 token type. This function is * called at the end of a `safeTransferFrom` after the balance has been updated. * * NOTE: To accept the transfer, this must return * `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` * (i.e. 0xf23a6e61, or its own function selector). * * @param operator The address which initiated the transfer (i.e. msg.sender) * @param from The address which previously owned the token * @param id The ID of the token being transferred * @param value The amount of tokens being transferred * @param data Additional data with no specified format * @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed */ function onERC1155Received( address operator, address from, uint256 id, uint256 value, bytes calldata data ) external returns (bytes4); /** * @dev Handles the receipt of a multiple ERC1155 token types. This function * is called at the end of a `safeBatchTransferFrom` after the balances have * been updated. * * NOTE: To accept the transfer(s), this must return * `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` * (i.e. 0xbc197c81, or its own function selector). * * @param operator The address which initiated the batch transfer (i.e. msg.sender) * @param from The address which previously owned the token * @param ids An array containing ids of each token being transferred (order and length must match values array) * @param values An array containing amounts of each token being transferred (order and length must match ids array) * @param data Additional data with no specified format * @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed */ function onERC1155BatchReceived( address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol) pragma solidity ^0.8.0; import "../IERC1155.sol"; /** * @dev Interface of the optional ERC1155MetadataExtension interface, as defined * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP]. * * _Available since v3.1._ */ interface IERC1155MetadataURI is IERC1155 { /** * @dev Returns the URI for token type `id`. * * If the `\{id\}` substring is present in the URI, it must be replaced by * clients with the actual token type ID. */ function uri(uint256 id) external view returns (string memory); }
{ "metadata": { "bytecodeHash": "none" }, "optimizer": { "enabled": true, "runs": 800 }, "viaIR": true, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"ADMIN","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseExtension","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"getAdjustedTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentTerm","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRemainMintLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","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":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"mintCosts","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintLimitPerTerm","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"mintedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"resetBaseExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","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":"string","name":"_value","type":"string"}],"name":"setBaseExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_value","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_cost","type":"uint256"}],"name":"setMintCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"setMintLimitPerTerm","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_value","type":"address"}],"name":"setSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"setTimezoneOffsetMin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_value","type":"address"}],"name":"setWithdrawAddress","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":[],"name":"timezoneOffsetSec","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","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":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdrawAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60803462000563576020818101916001600160401b0390818411818510176200054d57604093845260008091526200003960025462000568565b90601f918281116200052c575b50600281905560048054909490336001600160a01b0382167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08580a36001600160a81b0319163360ff60a01b19161785556001600881905561b6d0600955600c54909290620000b59062000568565b84811162000509575b506041600c55600c81527f4e696e6a612044414f20456e7465727461696e6d656e742050617373706f727482822055620000fa600d5462000568565b848111620004e8575b507f4e494e44414f4550000000000000000000000000000000000000000000000010600d556420a226a4a760d91b8082526003835287822033835283528782205490939060109060ff16156200049f575b84835260038452888320338452845260ff8984205416156200019157600680546001600160a01b03191633179055885161312190816200060c8239f35b3391895195606087018781108a8211176200048c578b52602a8752858701938b368637875115620004795760308553875183101562000479576078602189015360295b8381116200040e5750620003de578a5191608083018381108b821117620003cb578c5260428352868301936060368637835115620003b857603085538351821015620003b85790607860218501536041915b8183116200034857505050620003185791620002ad9493918a936067999a9b51968793620002828886019a7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008c525180926037880190620005be565b8401917001034b99036b4b9b9b4b733903937b6329607d1b60378401525180936048840190620005be565b0103602881018552601f1997889101168401978489109089111762000305575086949260449694928987620002fc945262461bcd60e51b885287015251809281602488015287870190620005be565b01168101030190fd5b634e487b7160e01b815260418952602490fd5b60648986808d519262461bcd60e51b845283015260248201526000805160206200372d8339815191526044820152fd5b909192600f811682811015620003a4576f181899199a1a9b1b9c1cb0b131b232b360811b901a6200037a8587620005e3565b538c1c928015620003915760001901919062000226565b634e487b7160e01b885260118d52602488fd5b50634e487b7160e01b885260328d52602488fd5b634e487b7160e01b875260328c52602487fd5b634e487b7160e01b875260418c52602487fd5b60648a87808e519262461bcd60e51b845283015260248201526000805160206200372d8339815191526044820152fd5b90600f81168581101562000466576f181899199a1a9b1b9c1cb0b131b232b360811b901a6200043e838b620005e3565b538b1c908015620004535760001901620001d4565b634e487b7160e01b875260118c52602487fd5b634e487b7160e01b885260328d52602488fd5b634e487b7160e01b865260328b52602486fd5b634e487b7160e01b865260418b52602486fd5b8483526003845288832033845284528883208260ff198254161790553333867f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d8680a462000154565b600d82528282206200050291860160051c810190620005a5565b3862000103565b600c82528282206200052591860160051c8101908501620005a5565b38620000be565b600282528482206200054691840160051c810190620005a5565b3862000046565b634e487b7160e01b600052604160045260246000fd5b600080fd5b90600182811c921680156200059a575b60208310146200058457565b634e487b7160e01b600052602260045260246000fd5b91607f169162000578565b818110620005b1575050565b60008155600101620005a5565b60005b838110620005d25750506000910152565b8181015183820152602001620005c1565b908151811015620005f5570160200190565b634e487b7160e01b600052603260045260246000fdfe6080604052600436101561001257600080fd5b60003560e01c8062fdd58e1461237657806301ffc9a7146122df57806306fdde03146122395780630745933b1461220d5780630e89341c1461206c578063126327d71461204b5780631581b60014612024578063248a9ca314611ff55780632a0acc6a14611fd25780632eb2c2d614611c795780632f2ff15d14611bd757806336568abe14611b375780633ab1a49414611af75780633ccfd60b14611aa85780633f4ba83a14611a055780634e1273f41461185257806355f804b3146117095780635b701c97146116d75780635c975abb146116b15780635f1b1b86146116385780636c0360eb146115925780636c19e78314611552578063715018a6146114f75780638456cb59146114865780638da5cb5b1461145f57806391d148541461141157806392ecf577146113e557806395d89b411461133f578063a217fddf14611323578063a22cb4651461122b578063a496dedf14610f06578063a6192da414610ea9578063a8fb0ce414610e8b578063b6f774ee14610e6d578063b929e4ce14610e44578063bd85b03914610e18578063c668286214610d32578063c70a2cf714610d06578063d547741f14610cda578063da3ef23f14610b70578063db7fd40814610664578063e985e9c51461060d578063f242432a14610309578063f2fde38b146102305763f7d9e3af1461020a57600080fd5b3461022b57602036600319011261022b57610223612cb4565b600435600955005b600080fd5b3461022b57602036600319011261022b5761024961239d565b610251612657565b6001600160a01b0380911690811561029e57600454826001600160a01b0319821617600455167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3005b60405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608490fd5b3461022b5760a036600319011261022b5761032261239d565b61032a6123b3565b9060643560443560843567ffffffffffffffff811161022b57610351903690600401612552565b6001600160a01b038094169333851480156105e4575b61037090612780565b851661037d8115156127f2565b61038683612990565b5061039084612990565b5082600052602095600087526040600020866000528752846040600020546103ba82821015612864565b85600052600089526040600020886000528952036040600020558360005260008752604060002082600052875260406000206103f78682546128d6565b90558186604051868152878a8201527fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6260403392a43b61043357005b61047793600087946040519687958694859363f23a6e6160e01b9b8c865233600487015260248601526044850152606484015260a0608484015260a4830190612464565b03925af1600091816105b5575b5061054d575050600190610496612903565b6308c379a014610518575b506104a9575b005b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560448201527f526563656976657220696d706c656d656e7465720000000000000000000000006064820152608490fd5b0390fd5b610520612921565b908161052c57506104a1565b61051460405192839262461bcd60e51b845260048401526024830190612464565b6001600160e01b0319161490506104a7575b60405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b6064820152608490fd5b6105d6919250843d86116105dd575b6105ce818361241f565b8101906128e3565b9084610484565b503d6105c4565b5084600052600160205260406000203360005260205261037060ff604060002054169050610367565b3461022b57604036600319011261022b5761062661239d565b61062e6123b3565b906001600160a01b03809116600052600160205260406000209116600052602052602060ff604060002054166040519015158152f35b604036600319011261022b576024803560043567ffffffffffffffff80831161022b573660238401121561022b5782600401359181831161022b573685848601011161022b576106b2612a01565b80600052602093600585526106cd60406000205415156129b5565b81600052600585526040600020543410610b2c57600954936201518094856106f582426128d6565b04600052600a87526040600020546008541115610ae8576107178691426128d6565b049060405192878401923360601b8452856034860152605485015260548452608084019284841087851117610ad35760e09084604052855190209460a08101957f19457468657265756d205369676e6564204d6573736167653a0a333200000000875260bc820152603c8552019083821087831117610ad3576107ba946107b2946107ac93604052519020928a36920161251b565b90612bc7565b919091612a55565b6001600160a01b038060075416911603610a8f576040519184830190811183821017610a7a57604052600082523315610a2c576107f681612990565b506040519161080483612403565b60019283815285810190863683375115610a1757839052816000526000855260406000203360005285526040600020805490848201809211610a0257556040518281528386820152600033917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6260403392a4333b6108d4575b50600052600b8352604060002080549182018092116108bf57600a9450556108a7600954426128d6565b046000525260406000206108bb8154612747565b9055005b84634e487b7160e01b60005260116004526000fd5b60405185818061091263f23a6e6160e01b9586835233600484015260008c84015287604484015288606484015260a0608484015260a4830190612464565b03816000335af1600091816109e3575b5061097e57505081610932612903565b6308c379a014610948575b6104a9575b8561087d565b610950612921565b8061095b575061093d565b60405162461bcd60e51b81526004810187905290819061051490828a0190612464565b6001600160e01b031916146109425760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b6064820152608490fd5b6109fb919250873d89116105dd576105ce818361241f565b9088610922565b87634e487b7160e01b60005260116004526000fd5b86634e487b7160e01b60005260326004526000fd5b60405162461bcd60e51b8152600481018590526021818701527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608490fd5b85634e487b7160e01b60005260416004526000fd5b60405162461bcd60e51b8152600481018590526011818701527f496e76616c6964205369676e61747572650000000000000000000000000000006044820152606490fd5b89634e487b7160e01b60005260416004526000fd5b60405162461bcd60e51b815260048101889052600f818a01527f4f766572204d696e74204c696d697400000000000000000000000000000000006044820152606490fd5b60405162461bcd60e51b815260048101869052600e818801527f4e6f7420456e6f756768204574680000000000000000000000000000000000006044820152606490fd5b3461022b57610b7e366125a4565b610b86612cb4565b805167ffffffffffffffff8111610cc457610ba2600f546123c9565b601f8111610c6a575b50602080601f8311600114610be957508192600092610bde575b5050600019600383901b1c191660019190911b17600f55005b015190508280610bc5565b90601f19831693600f6000527f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac802926000905b868210610c525750508360019510610c39575b505050811b01600f55005b015160001960f88460031b161c19169055828080610c2e565b80600185968294968601518155019501930190610c1b565b610cb490600f6000527f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac802601f840160051c81019160208510610cba575b601f0160051c01906130fd565b82610bab565b9091508190610ca7565b634e487b7160e01b600052604160045260246000fd5b3461022b57604036600319011261022b576104a7610cf66123b3565b610cfe612657565b6004356125e0565b3461022b57602036600319011261022b5760043560005260056020526020604060002054604051908152f35b3461022b57600036600319011261022b576040516000600f54610d54816123c9565b80845290600190818116908115610df15750600114610d96575b610d9284610d7e8186038261241f565b604051918291602083526020830190612464565b0390f35b600f600090815292507f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac8025b828410610dd9575050508101602001610d7e82610d6e565b80546020858701810191909152909301928101610dc1565b60ff191660208087019190915292151560051b85019092019250610d7e9150839050610d6e565b3461022b57602036600319011261022b57600435600052600b6020526020604060002054604051908152f35b3461022b57602036600319011261022b576020610e656009546004356128d6565b604051908152f35b3461022b57600036600319011261022b576020600854604051908152f35b3461022b57600036600319011261022b576020600954604051908152f35b3461022b57600036600319011261022b5760085462015180610ecd600954426128d6565b04600052600a6020526040600020548103908111610ef057602090604051908152f35b634e487b7160e01b600052601160045260246000fd5b3461022b57606036600319011261022b5767ffffffffffffffff6004351161022b5736602360043501121561022b5767ffffffffffffffff600435600401351161022b573660246004356004013560051b60043501011161022b57610f69612cb4565b6024356000526005602052610f8460406000205415156129b5565b60005b600435600401358110610f9657005b600435600582901b01602401356001600160a01b038116900361022b5760405180602081011067ffffffffffffffff602083011117610cc45760208101604052600081526001600160a01b0360248360051b60043501013516156111dc57610fff602435612990565b5061100b604435612990565b50602435600052600060205260406000206001600160a01b0360248460051b60043501013516600052602052604060002061104960443582546128d6565b90556040516024358152604435602082015260006001600160a01b0360248560051b60043501013516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6260403392a460248260051b6004350101353b6110d9575b506110d490602435600052600b60205260406000206110cd60443582546128d6565b9055612747565b610f87565b6040516020818061111d63f23a6e6160e01b95868352336004840152600060248401526024356044840152604435606484015260a0608484015260a4830190612464565b038160006001600160a01b0360248960051b600435010135165af1600091816111bb575b506111a35750506001611152612903565b6308c379a01461116c575b6104a9576110d4905b906110ab565b611174612921565b8061117f575061115d565b60405162461bcd60e51b815260206004820152908190610514906024830190612464565b6001600160e01b0319160361055f576110d490611166565b6111d591925060203d6020116105dd576105ce818361241f565b9084611141565b60405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608490fd5b3461022b57604036600319011261022b5761124461239d565b6024359081151580920361022b576001600160a01b0316908133146112b857336000526001602052604060002082600052602052604060002060ff1981541660ff83161790556040519081527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a3005b60405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360448201527f20666f722073656c6600000000000000000000000000000000000000000000006064820152608490fd5b3461022b57600036600319011261022b57602060405160008152f35b3461022b57600036600319011261022b576040516000600d54611361816123c9565b80845290600190818116908115610df1575060011461138a57610d9284610d7e8186038261241f565b600d600090815292507fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb55b8284106113cd575050508101602001610d7e82610d6e565b805460208587018101919091529093019281016113b5565b3461022b57600036600319011261022b57602062015180611408600954426128d6565b04604051908152f35b3461022b57604036600319011261022b5761142a6123b3565b60043560005260036020526001600160a01b0360406000209116600052602052602060ff604060002054166040519015158152f35b3461022b57600036600319011261022b5760206001600160a01b0360045416604051908152f35b3461022b57600036600319011261022b5761149f612cb4565b6114a7612a01565b7401000000000000000000000000000000000000000060ff60a01b1960045416176004557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586020604051338152a1005b3461022b57600036600319011261022b57611510612657565b60006001600160a01b036004546001600160a01b03198116600455167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a3005b3461022b57602036600319011261022b576001600160a01b0361157361239d565b61157b612cb4565b166001600160a01b03196007541617600755600080f35b3461022b57600036600319011261022b576040516000600e546115b4816123c9565b80845290600190818116908115610df157506001146115dd57610d9284610d7e8186038261241f565b600e600090815292507fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd5b828410611620575050508101602001610d7e82610d6e565b80546020858701810191909152909301928101611608565b3461022b57600036600319011261022b57611651612cb4565b61165c600f546123c9565b601f811161166c575b6000600f55005b601f7f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac802910160051c8101905b8181106116a55750611665565b60008155600101611698565b3461022b57600036600319011261022b57602060ff60045460a01c166040519015158152f35b3461022b57604036600319011261022b576116f0612cb4565b6004356000526005602052602435604060002055600080f35b3461022b57611717366125a4565b61171f612cb4565b805167ffffffffffffffff8111610cc45761173b600e546123c9565b601f8111611803575b50602080601f831160011461178257508192600092611777575b5050600019600383901b1c191660019190911b17600e55005b01519050828061175e565b90601f19831693600e6000527fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd926000905b8682106117eb57505083600195106117d2575b505050811b01600e55005b015160001960f88460031b161c191690558280806117c7565b806001859682949686015181550195019301906117b4565b61184c90600e6000527fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd601f840160051c81019160208510610cba57601f0160051c01906130fd565b82611744565b3461022b57604036600319011261022b5760043567ffffffffffffffff80821161022b573660238301121561022b5781600401359061189082612489565b9261189e604051948561241f565b82845260209260248486019160051b8301019136831161022b57602401905b8282106119e65750505060243590811161022b576118df9036906004016124a1565b825181510361197b578251926118f484612489565b93611902604051958661241f565b808552611911601f1991612489565b01368486013760005b8151811015611964578061194f6001600160a01b0361193c61195f9486612756565b51166119488387612756565b51906126af565b6119598288612756565b52612747565b61191a565b505050610d92604051928284938452830190612570565b60405162461bcd60e51b815260048101839052602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e67746860448201527f206d69736d6174636800000000000000000000000000000000000000000000006064820152608490fd5b81356001600160a01b038116810361022b5781529084019084016118bd565b3461022b57600036600319011261022b57611a1e612cb4565b60045460ff8160a01c1615611a635760ff60a01b19166004557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6020604051338152a1005b60405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606490fd5b600036600319011261022b57611abc612cb4565b60008080806001600160a01b036006541647905af13d15611af257611aeb611ae33d6124ff565b60405161241f565b1561022b57005b611aeb565b3461022b57602036600319011261022b576001600160a01b03611b1861239d565b611b20612cb4565b166001600160a01b03196006541617600655600080f35b3461022b57604036600319011261022b57611b506123b3565b336001600160a01b03821603611b6c576104a7906004356125e0565b60405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608490fd5b3461022b57604036600319011261022b57600435611bf36123b3565b611bfb612657565b8160005260036020526001600160a01b0360406000209116908160005260205260ff6040600020541615611c2b57005b8160005260036020526040600020816000526020526040600020600160ff1982541617905533917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d600080a4005b3461022b5760031960a03682011261022b57611c9361239d565b90611c9c6123b3565b9067ffffffffffffffff9060443582811161022b57611cbf9036906004016124a1565b60643583811161022b57611cd79036906004016124a1565b9260843590811161022b57611cf0903690600401612552565b916001600160a01b03809616953387148015611fa9575b611d1090612780565b8251855103611f3e57851692611d278415156127f2565b60005b8351811015611db95780611d41611db49286612756565b51611d4c8289612756565b5190806000526020906000825260406000208c600052825282604060002054611d7782821015612864565b82600052600084528d6040600020906000528452036040600020556000526000815260406000209088600052526110cd60406000209182546128d6565b611d2a565b509094939291938287604051604081527f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb611df7604083018a612570565b91808303602082015280611e0c33948b612570565b0390a43b611e1657005b6000602094611e77611e6897611e5894604051998a988997889663bc197c8160e01b9e8f89523360048a0152602489015260a0604489015260a4880190612570565b9084878303016064880152612570565b91848303016084850152612464565b03925af160009181611f1e575b50611eb95750506001611e95612903565b6308c379a014611ea6575b6104a957005b611eae612921565b8061117f5750611ea0565b6001600160e01b031916146104a75760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b6064820152608490fd5b611f3791925060203d81116105dd576105ce818361241f565b9083611e84565b60405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060448201527f6d69736d617463680000000000000000000000000000000000000000000000006064820152608490fd5b50866000526001602052604060002033600052602052611d1060ff604060002054169050611d07565b3461022b57600036600319011261022b5760206040516420a226a4a760d91b8152f35b3461022b57602036600319011261022b5760043560005260036020526020600160406000200154604051908152f35b3461022b57600036600319011261022b5760206001600160a01b0360065416604051908152f35b3461022b57602036600319011261022b57612064612cb4565b600435600855005b3461022b5760208060031936011261022b57612089600435613025565b906040519182826000600e549361209f856123c9565b6001958487821691826000146121ee575050600114612190575b5080826120ca925194859201612441565b01600090600f54936120db856123c9565b948181169081156121745750600114612118575b5050612104925003601f19810184528361241f565b610d92604051928284938452830190612464565b939150600f6000527f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac802936000905b8684831061215e5750505061210493500185806120ef565b8654838501529581019588955090910190612146565b9150506121049491925060ff19168252801515020185806120ef565b909150600e6000527fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd856000915b8383106121d55750505083018201906120ca6120b9565b80548a84018701528996508895909201918791016121be565b60ff191687820152821515909202860190910192506120ca90506120b9565b3461022b57602036600319011261022b57600435600052600a6020526020604060002054604051908152f35b3461022b57600036600319011261022b576040516000600c5461225b816123c9565b80845290600190818116908115610df1575060011461228457610d9284610d7e8186038261241f565b600c600090815292507fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c75b8284106122c7575050508101602001610d7e82610d6e565b805460208587018101919091529093019281016122af565b3461022b57602036600319011261022b5760043563ffffffff60e01b811680910361022b57602090636cdb3d1360e11b81148015612366575b8015612356575b80918115612334575b50506040519015158152f35b637965db0b60e01b149150811561234e575b508280612328565b905082612346565b506301ffc9a760e01b811461231f565b506303a24d0760e21b8114612318565b3461022b57604036600319011261022b576020610e6561239461239d565b602435906126af565b600435906001600160a01b038216820361022b57565b602435906001600160a01b038216820361022b57565b90600182811c921680156123f9575b60208310146123e357565b634e487b7160e01b600052602260045260246000fd5b91607f16916123d8565b6040810190811067ffffffffffffffff821117610cc457604052565b90601f8019910116810190811067ffffffffffffffff821117610cc457604052565b60005b8381106124545750506000910152565b8181015183820152602001612444565b9060209161247d81518092818552858086019101612441565b601f01601f1916010190565b67ffffffffffffffff8111610cc45760051b60200190565b81601f8201121561022b578035916124b883612489565b926124c6604051948561241f565b808452602092838086019260051b82010192831161022b578301905b8282106124f0575050505090565b813581529083019083016124e2565b67ffffffffffffffff8111610cc457601f01601f191660200190565b929192612527826124ff565b91612535604051938461241f565b82948184528183011161022b578281602093846000960137010152565b9080601f8301121561022b5781602061256d9335910161251b565b90565b90815180825260208080930193019160005b828110612590575050505090565b835185529381019392810192600101612582565b602060031982011261022b576004359067ffffffffffffffff821161022b578060238301121561022b5781602461256d9360040135910161251b565b9060009180835260036020526001600160a01b036040842092169182845260205260ff60408420541661261257505050565b8083526003602052604083208284526020526040832060ff1981541690557ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b339380a4565b6001600160a01b0360045416330361266b57565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b6001600160a01b03169081156126dc57600052600060205260406000209060005260205260406000205490565b60405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201527f616c6964206f776e6572000000000000000000000000000000000000000000006064820152608490fd5b6000198114610ef05760010190565b805182101561276a5760209160051b010190565b634e487b7160e01b600052603260045260246000fd5b1561278757565b60405162461bcd60e51b815260206004820152602f60248201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60448201527f6572206e6f7220617070726f76656400000000000000000000000000000000006064820152608490fd5b156127f957565b60405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608490fd5b1561286b57565b60405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201527f72207472616e73666572000000000000000000000000000000000000000000006064820152608490fd5b91908201809211610ef057565b9081602091031261022b57516001600160e01b03198116810361022b5790565b60009060033d1161291057565b905060046000803e60005160e01c90565b600060443d1061256d57604051600319913d83016004833e815167ffffffffffffffff918282113d60248401111761297f57818401948551938411612987573d8501016020848701011161297f575061256d9291016020019061241f565b949350505050565b50949350505050565b6040519061299d82612403565b6001825260208201602036823782511561276a575290565b156129bc57565b60405162461bcd60e51b815260206004820152601060248201527f546f6b656e204e6f7420457869737473000000000000000000000000000000006044820152606490fd5b60ff60045460a01c16612a1057565b60405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606490fd5b6005811015612bb15780612a665750565b60018103612ab35760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606490fd5b60028103612b005760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606490fd5b60038103612b585760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608490fd5b600414612b6157565b60405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608490fd5b634e487b7160e01b600052602160045260246000fd5b906041815114600014612bf557612bf1916020820151906060604084015193015160001a90612bff565b9091565b5050600090600290565b9291907f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311612ca85760ff16601b81141580612c9d575b612c91579160809493916020936040519384528484015260408301526060820152600093849182805260015afa15612c845781516001600160a01b03811615612c7e579190565b50600190565b50604051903d90823e3d90fd5b50505050600090600490565b50601c811415612c37565b50505050600090600390565b3360009081527f63f6944974ed01e0c77f5fd425d412bc87a2a97469803ba02a51ba75d9154da4602090815260408083205490926420a226a4a760d91b9160ff1615612d005750505050565b83519167ffffffffffffffff90336060850183811186821017613000578752602a85528585019187368437855115612fec5760308353855191600192831015612fd8576078602188015360295b838111612f6e5750612f2c5790875193608085019085821090821117612f1857885260428452868401946060368737845115612f0457603086538451821015612f045790607860218601536041915b818311612e9657505050612e5457610514938693612e3893612e29604894612df49a519a8b957f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008c8801525180926037880190612441565b8401917f206973206d697373696e6720726f6c6520000000000000000000000000000000603784015251809386840190612441565b0103602881018752018561241f565b5192839262461bcd60e51b845260048401526024830190612464565b60648587519062461bcd60e51b825280600483015260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152fd5b909192600f81166010811015612ef0576f181899199a1a9b1b9c1cb0b131b232b360811b901a612ec68588613014565b5360041c928015612edc57600019019190612d9c565b634e487b7160e01b82526011600452602482fd5b634e487b7160e01b83526032600452602483fd5b634e487b7160e01b81526032600452602490fd5b634e487b7160e01b86526041600452602486fd5b60648789519062461bcd60e51b825280600483015260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152fd5b90600f81166010811015612fc4576f181899199a1a9b1b9c1cb0b131b232b360811b901a612f9c838a613014565b5360041c908015612fb05760001901612d4d565b634e487b7160e01b87526011600452602487fd5b634e487b7160e01b88526032600452602488fd5b634e487b7160e01b86526032600452602486fd5b634e487b7160e01b85526032600452602485fd5b634e487b7160e01b85526041600452602485fd5b90815181101561276a570160200190565b80156130df5780816000925b6130c9575061303f826124ff565b9161304d604051938461241f565b80835281601f1961305d836124ff565b013660208601375b61306e57505090565b6000198101908111610ef0578091600a9160308383068101809111610ef05760f81b7fff000000000000000000000000000000000000000000000000000000000000001660001a906130c09086613014565b53049081613065565b90916130d6600a91612747565b92910480613031565b506040516130ec81612403565b60018152600360fc1b602082015290565b818110613108575050565b600081556001016130fd56fea164736f6c6343000811000a537472696e67733a20686578206c656e67746820696e73756666696369656e74
Deployed Bytecode
0x6080604052600436101561001257600080fd5b60003560e01c8062fdd58e1461237657806301ffc9a7146122df57806306fdde03146122395780630745933b1461220d5780630e89341c1461206c578063126327d71461204b5780631581b60014612024578063248a9ca314611ff55780632a0acc6a14611fd25780632eb2c2d614611c795780632f2ff15d14611bd757806336568abe14611b375780633ab1a49414611af75780633ccfd60b14611aa85780633f4ba83a14611a055780634e1273f41461185257806355f804b3146117095780635b701c97146116d75780635c975abb146116b15780635f1b1b86146116385780636c0360eb146115925780636c19e78314611552578063715018a6146114f75780638456cb59146114865780638da5cb5b1461145f57806391d148541461141157806392ecf577146113e557806395d89b411461133f578063a217fddf14611323578063a22cb4651461122b578063a496dedf14610f06578063a6192da414610ea9578063a8fb0ce414610e8b578063b6f774ee14610e6d578063b929e4ce14610e44578063bd85b03914610e18578063c668286214610d32578063c70a2cf714610d06578063d547741f14610cda578063da3ef23f14610b70578063db7fd40814610664578063e985e9c51461060d578063f242432a14610309578063f2fde38b146102305763f7d9e3af1461020a57600080fd5b3461022b57602036600319011261022b57610223612cb4565b600435600955005b600080fd5b3461022b57602036600319011261022b5761024961239d565b610251612657565b6001600160a01b0380911690811561029e57600454826001600160a01b0319821617600455167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3005b60405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608490fd5b3461022b5760a036600319011261022b5761032261239d565b61032a6123b3565b9060643560443560843567ffffffffffffffff811161022b57610351903690600401612552565b6001600160a01b038094169333851480156105e4575b61037090612780565b851661037d8115156127f2565b61038683612990565b5061039084612990565b5082600052602095600087526040600020866000528752846040600020546103ba82821015612864565b85600052600089526040600020886000528952036040600020558360005260008752604060002082600052875260406000206103f78682546128d6565b90558186604051868152878a8201527fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6260403392a43b61043357005b61047793600087946040519687958694859363f23a6e6160e01b9b8c865233600487015260248601526044850152606484015260a0608484015260a4830190612464565b03925af1600091816105b5575b5061054d575050600190610496612903565b6308c379a014610518575b506104a9575b005b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560448201527f526563656976657220696d706c656d656e7465720000000000000000000000006064820152608490fd5b0390fd5b610520612921565b908161052c57506104a1565b61051460405192839262461bcd60e51b845260048401526024830190612464565b6001600160e01b0319161490506104a7575b60405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b6064820152608490fd5b6105d6919250843d86116105dd575b6105ce818361241f565b8101906128e3565b9084610484565b503d6105c4565b5084600052600160205260406000203360005260205261037060ff604060002054169050610367565b3461022b57604036600319011261022b5761062661239d565b61062e6123b3565b906001600160a01b03809116600052600160205260406000209116600052602052602060ff604060002054166040519015158152f35b604036600319011261022b576024803560043567ffffffffffffffff80831161022b573660238401121561022b5782600401359181831161022b573685848601011161022b576106b2612a01565b80600052602093600585526106cd60406000205415156129b5565b81600052600585526040600020543410610b2c57600954936201518094856106f582426128d6565b04600052600a87526040600020546008541115610ae8576107178691426128d6565b049060405192878401923360601b8452856034860152605485015260548452608084019284841087851117610ad35760e09084604052855190209460a08101957f19457468657265756d205369676e6564204d6573736167653a0a333200000000875260bc820152603c8552019083821087831117610ad3576107ba946107b2946107ac93604052519020928a36920161251b565b90612bc7565b919091612a55565b6001600160a01b038060075416911603610a8f576040519184830190811183821017610a7a57604052600082523315610a2c576107f681612990565b506040519161080483612403565b60019283815285810190863683375115610a1757839052816000526000855260406000203360005285526040600020805490848201809211610a0257556040518281528386820152600033917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6260403392a4333b6108d4575b50600052600b8352604060002080549182018092116108bf57600a9450556108a7600954426128d6565b046000525260406000206108bb8154612747565b9055005b84634e487b7160e01b60005260116004526000fd5b60405185818061091263f23a6e6160e01b9586835233600484015260008c84015287604484015288606484015260a0608484015260a4830190612464565b03816000335af1600091816109e3575b5061097e57505081610932612903565b6308c379a014610948575b6104a9575b8561087d565b610950612921565b8061095b575061093d565b60405162461bcd60e51b81526004810187905290819061051490828a0190612464565b6001600160e01b031916146109425760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b6064820152608490fd5b6109fb919250873d89116105dd576105ce818361241f565b9088610922565b87634e487b7160e01b60005260116004526000fd5b86634e487b7160e01b60005260326004526000fd5b60405162461bcd60e51b8152600481018590526021818701527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608490fd5b85634e487b7160e01b60005260416004526000fd5b60405162461bcd60e51b8152600481018590526011818701527f496e76616c6964205369676e61747572650000000000000000000000000000006044820152606490fd5b89634e487b7160e01b60005260416004526000fd5b60405162461bcd60e51b815260048101889052600f818a01527f4f766572204d696e74204c696d697400000000000000000000000000000000006044820152606490fd5b60405162461bcd60e51b815260048101869052600e818801527f4e6f7420456e6f756768204574680000000000000000000000000000000000006044820152606490fd5b3461022b57610b7e366125a4565b610b86612cb4565b805167ffffffffffffffff8111610cc457610ba2600f546123c9565b601f8111610c6a575b50602080601f8311600114610be957508192600092610bde575b5050600019600383901b1c191660019190911b17600f55005b015190508280610bc5565b90601f19831693600f6000527f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac802926000905b868210610c525750508360019510610c39575b505050811b01600f55005b015160001960f88460031b161c19169055828080610c2e565b80600185968294968601518155019501930190610c1b565b610cb490600f6000527f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac802601f840160051c81019160208510610cba575b601f0160051c01906130fd565b82610bab565b9091508190610ca7565b634e487b7160e01b600052604160045260246000fd5b3461022b57604036600319011261022b576104a7610cf66123b3565b610cfe612657565b6004356125e0565b3461022b57602036600319011261022b5760043560005260056020526020604060002054604051908152f35b3461022b57600036600319011261022b576040516000600f54610d54816123c9565b80845290600190818116908115610df15750600114610d96575b610d9284610d7e8186038261241f565b604051918291602083526020830190612464565b0390f35b600f600090815292507f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac8025b828410610dd9575050508101602001610d7e82610d6e565b80546020858701810191909152909301928101610dc1565b60ff191660208087019190915292151560051b85019092019250610d7e9150839050610d6e565b3461022b57602036600319011261022b57600435600052600b6020526020604060002054604051908152f35b3461022b57602036600319011261022b576020610e656009546004356128d6565b604051908152f35b3461022b57600036600319011261022b576020600854604051908152f35b3461022b57600036600319011261022b576020600954604051908152f35b3461022b57600036600319011261022b5760085462015180610ecd600954426128d6565b04600052600a6020526040600020548103908111610ef057602090604051908152f35b634e487b7160e01b600052601160045260246000fd5b3461022b57606036600319011261022b5767ffffffffffffffff6004351161022b5736602360043501121561022b5767ffffffffffffffff600435600401351161022b573660246004356004013560051b60043501011161022b57610f69612cb4565b6024356000526005602052610f8460406000205415156129b5565b60005b600435600401358110610f9657005b600435600582901b01602401356001600160a01b038116900361022b5760405180602081011067ffffffffffffffff602083011117610cc45760208101604052600081526001600160a01b0360248360051b60043501013516156111dc57610fff602435612990565b5061100b604435612990565b50602435600052600060205260406000206001600160a01b0360248460051b60043501013516600052602052604060002061104960443582546128d6565b90556040516024358152604435602082015260006001600160a01b0360248560051b60043501013516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6260403392a460248260051b6004350101353b6110d9575b506110d490602435600052600b60205260406000206110cd60443582546128d6565b9055612747565b610f87565b6040516020818061111d63f23a6e6160e01b95868352336004840152600060248401526024356044840152604435606484015260a0608484015260a4830190612464565b038160006001600160a01b0360248960051b600435010135165af1600091816111bb575b506111a35750506001611152612903565b6308c379a01461116c575b6104a9576110d4905b906110ab565b611174612921565b8061117f575061115d565b60405162461bcd60e51b815260206004820152908190610514906024830190612464565b6001600160e01b0319160361055f576110d490611166565b6111d591925060203d6020116105dd576105ce818361241f565b9084611141565b60405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608490fd5b3461022b57604036600319011261022b5761124461239d565b6024359081151580920361022b576001600160a01b0316908133146112b857336000526001602052604060002082600052602052604060002060ff1981541660ff83161790556040519081527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a3005b60405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360448201527f20666f722073656c6600000000000000000000000000000000000000000000006064820152608490fd5b3461022b57600036600319011261022b57602060405160008152f35b3461022b57600036600319011261022b576040516000600d54611361816123c9565b80845290600190818116908115610df1575060011461138a57610d9284610d7e8186038261241f565b600d600090815292507fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb55b8284106113cd575050508101602001610d7e82610d6e565b805460208587018101919091529093019281016113b5565b3461022b57600036600319011261022b57602062015180611408600954426128d6565b04604051908152f35b3461022b57604036600319011261022b5761142a6123b3565b60043560005260036020526001600160a01b0360406000209116600052602052602060ff604060002054166040519015158152f35b3461022b57600036600319011261022b5760206001600160a01b0360045416604051908152f35b3461022b57600036600319011261022b5761149f612cb4565b6114a7612a01565b7401000000000000000000000000000000000000000060ff60a01b1960045416176004557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586020604051338152a1005b3461022b57600036600319011261022b57611510612657565b60006001600160a01b036004546001600160a01b03198116600455167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a3005b3461022b57602036600319011261022b576001600160a01b0361157361239d565b61157b612cb4565b166001600160a01b03196007541617600755600080f35b3461022b57600036600319011261022b576040516000600e546115b4816123c9565b80845290600190818116908115610df157506001146115dd57610d9284610d7e8186038261241f565b600e600090815292507fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd5b828410611620575050508101602001610d7e82610d6e565b80546020858701810191909152909301928101611608565b3461022b57600036600319011261022b57611651612cb4565b61165c600f546123c9565b601f811161166c575b6000600f55005b601f7f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac802910160051c8101905b8181106116a55750611665565b60008155600101611698565b3461022b57600036600319011261022b57602060ff60045460a01c166040519015158152f35b3461022b57604036600319011261022b576116f0612cb4565b6004356000526005602052602435604060002055600080f35b3461022b57611717366125a4565b61171f612cb4565b805167ffffffffffffffff8111610cc45761173b600e546123c9565b601f8111611803575b50602080601f831160011461178257508192600092611777575b5050600019600383901b1c191660019190911b17600e55005b01519050828061175e565b90601f19831693600e6000527fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd926000905b8682106117eb57505083600195106117d2575b505050811b01600e55005b015160001960f88460031b161c191690558280806117c7565b806001859682949686015181550195019301906117b4565b61184c90600e6000527fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd601f840160051c81019160208510610cba57601f0160051c01906130fd565b82611744565b3461022b57604036600319011261022b5760043567ffffffffffffffff80821161022b573660238301121561022b5781600401359061189082612489565b9261189e604051948561241f565b82845260209260248486019160051b8301019136831161022b57602401905b8282106119e65750505060243590811161022b576118df9036906004016124a1565b825181510361197b578251926118f484612489565b93611902604051958661241f565b808552611911601f1991612489565b01368486013760005b8151811015611964578061194f6001600160a01b0361193c61195f9486612756565b51166119488387612756565b51906126af565b6119598288612756565b52612747565b61191a565b505050610d92604051928284938452830190612570565b60405162461bcd60e51b815260048101839052602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e67746860448201527f206d69736d6174636800000000000000000000000000000000000000000000006064820152608490fd5b81356001600160a01b038116810361022b5781529084019084016118bd565b3461022b57600036600319011261022b57611a1e612cb4565b60045460ff8160a01c1615611a635760ff60a01b19166004557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6020604051338152a1005b60405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606490fd5b600036600319011261022b57611abc612cb4565b60008080806001600160a01b036006541647905af13d15611af257611aeb611ae33d6124ff565b60405161241f565b1561022b57005b611aeb565b3461022b57602036600319011261022b576001600160a01b03611b1861239d565b611b20612cb4565b166001600160a01b03196006541617600655600080f35b3461022b57604036600319011261022b57611b506123b3565b336001600160a01b03821603611b6c576104a7906004356125e0565b60405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152608490fd5b3461022b57604036600319011261022b57600435611bf36123b3565b611bfb612657565b8160005260036020526001600160a01b0360406000209116908160005260205260ff6040600020541615611c2b57005b8160005260036020526040600020816000526020526040600020600160ff1982541617905533917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d600080a4005b3461022b5760031960a03682011261022b57611c9361239d565b90611c9c6123b3565b9067ffffffffffffffff9060443582811161022b57611cbf9036906004016124a1565b60643583811161022b57611cd79036906004016124a1565b9260843590811161022b57611cf0903690600401612552565b916001600160a01b03809616953387148015611fa9575b611d1090612780565b8251855103611f3e57851692611d278415156127f2565b60005b8351811015611db95780611d41611db49286612756565b51611d4c8289612756565b5190806000526020906000825260406000208c600052825282604060002054611d7782821015612864565b82600052600084528d6040600020906000528452036040600020556000526000815260406000209088600052526110cd60406000209182546128d6565b611d2a565b509094939291938287604051604081527f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb611df7604083018a612570565b91808303602082015280611e0c33948b612570565b0390a43b611e1657005b6000602094611e77611e6897611e5894604051998a988997889663bc197c8160e01b9e8f89523360048a0152602489015260a0604489015260a4880190612570565b9084878303016064880152612570565b91848303016084850152612464565b03925af160009181611f1e575b50611eb95750506001611e95612903565b6308c379a014611ea6575b6104a957005b611eae612921565b8061117f5750611ea0565b6001600160e01b031916146104a75760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b6064820152608490fd5b611f3791925060203d81116105dd576105ce818361241f565b9083611e84565b60405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060448201527f6d69736d617463680000000000000000000000000000000000000000000000006064820152608490fd5b50866000526001602052604060002033600052602052611d1060ff604060002054169050611d07565b3461022b57600036600319011261022b5760206040516420a226a4a760d91b8152f35b3461022b57602036600319011261022b5760043560005260036020526020600160406000200154604051908152f35b3461022b57600036600319011261022b5760206001600160a01b0360065416604051908152f35b3461022b57602036600319011261022b57612064612cb4565b600435600855005b3461022b5760208060031936011261022b57612089600435613025565b906040519182826000600e549361209f856123c9565b6001958487821691826000146121ee575050600114612190575b5080826120ca925194859201612441565b01600090600f54936120db856123c9565b948181169081156121745750600114612118575b5050612104925003601f19810184528361241f565b610d92604051928284938452830190612464565b939150600f6000527f8d1108e10bcb7c27dddfc02ed9d693a074039d026cf4ea4240b40f7d581ac802936000905b8684831061215e5750505061210493500185806120ef565b8654838501529581019588955090910190612146565b9150506121049491925060ff19168252801515020185806120ef565b909150600e6000527fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd856000915b8383106121d55750505083018201906120ca6120b9565b80548a84018701528996508895909201918791016121be565b60ff191687820152821515909202860190910192506120ca90506120b9565b3461022b57602036600319011261022b57600435600052600a6020526020604060002054604051908152f35b3461022b57600036600319011261022b576040516000600c5461225b816123c9565b80845290600190818116908115610df1575060011461228457610d9284610d7e8186038261241f565b600c600090815292507fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c75b8284106122c7575050508101602001610d7e82610d6e565b805460208587018101919091529093019281016122af565b3461022b57602036600319011261022b5760043563ffffffff60e01b811680910361022b57602090636cdb3d1360e11b81148015612366575b8015612356575b80918115612334575b50506040519015158152f35b637965db0b60e01b149150811561234e575b508280612328565b905082612346565b506301ffc9a760e01b811461231f565b506303a24d0760e21b8114612318565b3461022b57604036600319011261022b576020610e6561239461239d565b602435906126af565b600435906001600160a01b038216820361022b57565b602435906001600160a01b038216820361022b57565b90600182811c921680156123f9575b60208310146123e357565b634e487b7160e01b600052602260045260246000fd5b91607f16916123d8565b6040810190811067ffffffffffffffff821117610cc457604052565b90601f8019910116810190811067ffffffffffffffff821117610cc457604052565b60005b8381106124545750506000910152565b8181015183820152602001612444565b9060209161247d81518092818552858086019101612441565b601f01601f1916010190565b67ffffffffffffffff8111610cc45760051b60200190565b81601f8201121561022b578035916124b883612489565b926124c6604051948561241f565b808452602092838086019260051b82010192831161022b578301905b8282106124f0575050505090565b813581529083019083016124e2565b67ffffffffffffffff8111610cc457601f01601f191660200190565b929192612527826124ff565b91612535604051938461241f565b82948184528183011161022b578281602093846000960137010152565b9080601f8301121561022b5781602061256d9335910161251b565b90565b90815180825260208080930193019160005b828110612590575050505090565b835185529381019392810192600101612582565b602060031982011261022b576004359067ffffffffffffffff821161022b578060238301121561022b5781602461256d9360040135910161251b565b9060009180835260036020526001600160a01b036040842092169182845260205260ff60408420541661261257505050565b8083526003602052604083208284526020526040832060ff1981541690557ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b339380a4565b6001600160a01b0360045416330361266b57565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b6001600160a01b03169081156126dc57600052600060205260406000209060005260205260406000205490565b60405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201527f616c6964206f776e6572000000000000000000000000000000000000000000006064820152608490fd5b6000198114610ef05760010190565b805182101561276a5760209160051b010190565b634e487b7160e01b600052603260045260246000fd5b1561278757565b60405162461bcd60e51b815260206004820152602f60248201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60448201527f6572206e6f7220617070726f76656400000000000000000000000000000000006064820152608490fd5b156127f957565b60405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608490fd5b1561286b57565b60405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201527f72207472616e73666572000000000000000000000000000000000000000000006064820152608490fd5b91908201809211610ef057565b9081602091031261022b57516001600160e01b03198116810361022b5790565b60009060033d1161291057565b905060046000803e60005160e01c90565b600060443d1061256d57604051600319913d83016004833e815167ffffffffffffffff918282113d60248401111761297f57818401948551938411612987573d8501016020848701011161297f575061256d9291016020019061241f565b949350505050565b50949350505050565b6040519061299d82612403565b6001825260208201602036823782511561276a575290565b156129bc57565b60405162461bcd60e51b815260206004820152601060248201527f546f6b656e204e6f7420457869737473000000000000000000000000000000006044820152606490fd5b60ff60045460a01c16612a1057565b60405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606490fd5b6005811015612bb15780612a665750565b60018103612ab35760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606490fd5b60028103612b005760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606490fd5b60038103612b585760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608490fd5b600414612b6157565b60405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608490fd5b634e487b7160e01b600052602160045260246000fd5b906041815114600014612bf557612bf1916020820151906060604084015193015160001a90612bff565b9091565b5050600090600290565b9291907f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311612ca85760ff16601b81141580612c9d575b612c91579160809493916020936040519384528484015260408301526060820152600093849182805260015afa15612c845781516001600160a01b03811615612c7e579190565b50600190565b50604051903d90823e3d90fd5b50505050600090600490565b50601c811415612c37565b50505050600090600390565b3360009081527f63f6944974ed01e0c77f5fd425d412bc87a2a97469803ba02a51ba75d9154da4602090815260408083205490926420a226a4a760d91b9160ff1615612d005750505050565b83519167ffffffffffffffff90336060850183811186821017613000578752602a85528585019187368437855115612fec5760308353855191600192831015612fd8576078602188015360295b838111612f6e5750612f2c5790875193608085019085821090821117612f1857885260428452868401946060368737845115612f0457603086538451821015612f045790607860218601536041915b818311612e9657505050612e5457610514938693612e3893612e29604894612df49a519a8b957f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008c8801525180926037880190612441565b8401917f206973206d697373696e6720726f6c6520000000000000000000000000000000603784015251809386840190612441565b0103602881018752018561241f565b5192839262461bcd60e51b845260048401526024830190612464565b60648587519062461bcd60e51b825280600483015260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152fd5b909192600f81166010811015612ef0576f181899199a1a9b1b9c1cb0b131b232b360811b901a612ec68588613014565b5360041c928015612edc57600019019190612d9c565b634e487b7160e01b82526011600452602482fd5b634e487b7160e01b83526032600452602483fd5b634e487b7160e01b81526032600452602490fd5b634e487b7160e01b86526041600452602486fd5b60648789519062461bcd60e51b825280600483015260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152fd5b90600f81166010811015612fc4576f181899199a1a9b1b9c1cb0b131b232b360811b901a612f9c838a613014565b5360041c908015612fb05760001901612d4d565b634e487b7160e01b87526011600452602487fd5b634e487b7160e01b88526032600452602488fd5b634e487b7160e01b86526032600452602486fd5b634e487b7160e01b85526032600452602485fd5b634e487b7160e01b85526041600452602485fd5b90815181101561276a570160200190565b80156130df5780816000925b6130c9575061303f826124ff565b9161304d604051938461241f565b80835281601f1961305d836124ff565b013660208601375b61306e57505090565b6000198101908111610ef0578091600a9160308383068101809111610ef05760f81b7fff000000000000000000000000000000000000000000000000000000000000001660001a906130c09086613014565b53049081613065565b90916130d6600a91612747565b92910480613031565b506040516130ec81612403565b60018152600360fc1b602082015290565b818110613108575050565b600081556001016130fd56fea164736f6c6343000811000a
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.