Feature Tip: Add private address tag to any address under My Name Tag !
ERC-1155
Overview
Max Total Supply
263 CNPT
Holders
131
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:
CNPtakarajima2024
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/token/common/ERC2981.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; contract CNPtakarajima2024 is ERC1155, AccessControl, Ownable, Pausable, ERC2981 { using Strings for uint256; struct WithdrawSetting { address receiver; uint256 ratio; } // Role bytes32 public constant ADMIN = "ADMIN"; bytes32 public constant PIEMENT = "PIEMENT"; // Metadata string public name = "CNPtakarajima2024"; string public symbol = "CNPT"; string public baseURI; string public baseExtension; // Mint bool public isPublicSale = false; bytes32 private merkleRoot; // NormalMint uint256 public mintCost = 0.01 ether; uint256 public maxSupply = 70; mapping(uint256 => uint256) public totalSupply; // PackMint uint256 public fromTokenId = 1; uint256 public toTokenId = 5; uint256 public packMintCost = 0.04 ether; uint256 public packMaxSupply = 30; uint256 public packTotalSupply; // Withdraw WithdrawSetting[] public withdrawSettings; // Modifier modifier isValidProof(address _address, bytes32[] calldata _merkleProof) { require(MerkleProof.verify(_merkleProof, merkleRoot, keccak256(abi.encodePacked(_address))), "Invalid proof"); _; } modifier withinMaxSupply(uint256[] calldata _tokenIds, uint256[] calldata _amounts) { for (uint256 i = 0; i < _tokenIds.length; i++) { require(totalSupply[_tokenIds[i]] + _amounts[i] <= maxSupply, 'Over Max Supply'); } _; } modifier enoughEth( uint256[] calldata _amounts) { uint256 _amount = 0; for (uint256 i = 0; i < _amounts.length; i++) { _amount += _amounts[i]; } require(msg.value >= _amount * mintCost, 'Not Enough Eth'); _; } modifier withinMaxSupplyPack(uint256 _amount) { require(packTotalSupply + _amount <= packMaxSupply, 'Over Max Supply'); _; } modifier enoughEthPack( uint256 _amount) { require(msg.value >= _amount * packMintCost, 'Not Enough Eth'); _; } constructor() ERC1155("") { _grantRole(DEFAULT_ADMIN_ROLE, msg.sender); _grantRole(ADMIN, msg.sender); _setDefaultRoyalty(msg.sender, 1000); } // Airdrop function airdrop(uint256[] calldata _tokenIds, address[] calldata _addresses, uint256[] calldata _amounts) external onlyRole(ADMIN) { require(_tokenIds.length == _addresses.length && _addresses.length == _amounts.length, "Invalid Length"); for (uint256 i = 0; i < _addresses.length; i++) { _mint(_addresses[i], _tokenIds[i], _amounts[i], ""); totalSupply[_tokenIds[i]] += _amounts[i]; } } function packAirdrop(address[] calldata _addresses, uint256[] calldata _amounts) external onlyRole(ADMIN) { for (uint256 i = 0; i < _addresses.length; i++) { for (uint256 _tokenId = fromTokenId; _tokenId <= toTokenId; _tokenId++) { _mint(_addresses[i], _tokenId, _amounts[i], ""); } packTotalSupply += _amounts[i]; } } // NornalMint function _mintCommon(address _receiver, uint256[] calldata _tokenIds, uint256[] calldata _amounts) internal whenNotPaused withinMaxSupply(_tokenIds, _amounts) enoughEth(_amounts) { require(_tokenIds.length == _amounts.length, "Invalid Length"); for (uint256 i = 0; i < _tokenIds.length; i++) { _mint(_receiver, _tokenIds[i], _amounts[i], ""); totalSupply[_tokenIds[i]] += _amounts[i]; } } function piementAllowlistMint(address _receiver, uint256[] calldata _tokenIds, uint256[] calldata _amounts, bytes32[] calldata _merkleProof) external payable isValidProof(_receiver, _merkleProof) onlyRole(PIEMENT) { require(!isPublicSale, "Not Allowlist Sale"); _mintCommon(_receiver, _tokenIds, _amounts); } function allowlistMint(address _receiver, uint256[] calldata _tokenIds, uint256[] calldata _amounts, bytes32[] calldata _merkleProof) external payable isValidProof(msg.sender, _merkleProof) { require(!isPublicSale, "Not Allowlist Sale"); _mintCommon(_receiver, _tokenIds, _amounts); } function mint(address _receiver, uint256[] calldata _tokenIds, uint256[] calldata _amounts) external payable { require(isPublicSale, "Not Public Sale"); _mintCommon(_receiver, _tokenIds, _amounts); } // PackMint function _mintCommonPack(address _receiver, uint256 _amount) internal whenNotPaused withinMaxSupplyPack(_amount) enoughEthPack(_amount) { for (uint256 _tokenId = fromTokenId; _tokenId <= toTokenId; _tokenId++) { _mint(_receiver, _tokenId, _amount, ""); } packTotalSupply += _amount; } function piementAllowlistMintPack(address _receiver, uint256 _amount, bytes32[] calldata _merkleProof) external payable isValidProof(_receiver, _merkleProof) onlyRole(PIEMENT) { require(!isPublicSale, "Not Allowlist Sale"); _mintCommonPack(_receiver, _amount); } function allowlistMintPack(address _receiver, uint256 _amount, bytes32[] calldata _merkleProof) external payable isValidProof(msg.sender, _merkleProof) { require(!isPublicSale, "Not Allowlist Sale"); _mintCommonPack(_receiver, _amount); } function mintPack(address _receiver, uint256 _amount) external payable { require(isPublicSale, "Not Public Sale"); _mintCommonPack(_receiver, _amount); } // withdraw function withdraw() public onlyRole(ADMIN) { uint256 _balance = address(this).balance; require(_balance > 0, "Not Enough Balance"); uint256 _remainAmount = _balance; bool success; uint256 _totalDistribution = _remainAmount; uint256 _totalRatio = 0; for (uint256 i = 0; i < withdrawSettings.length; i++) { _totalRatio += withdrawSettings[i].ratio; } for (uint256 i = 0; i < withdrawSettings.length; i++) { WithdrawSetting memory _withdrawSetting = withdrawSettings[i]; if (i == withdrawSettings.length - 1) { (success, ) = payable(_withdrawSetting.receiver).call{value: _remainAmount}(""); require(success); } else { uint256 payAmount = _totalDistribution * _withdrawSetting.ratio / _totalRatio; (success, ) = payable(_withdrawSetting.receiver).call{value: payAmount}(""); require(success); _remainAmount -= payAmount; } } } // Getter function uri(uint256 tokenId) public view virtual override returns (string memory) { return string(abi.encodePacked(baseURI, tokenId.toString(), baseExtension)); } // Setter function setDefaultRoyalty(address _receiver, uint96 _feeNumerator) external onlyRole(ADMIN) { _setDefaultRoyalty(_receiver, _feeNumerator); } function setMetadataBase(string memory _baseURI, string memory _baseExtension) external onlyRole(ADMIN) { baseURI = _baseURI; baseExtension = _baseExtension; } function setIsPublicSale(bool _value) external onlyRole(ADMIN) { isPublicSale = _value; } function setMerkleRoot(bytes32 _value) external onlyRole(ADMIN) { merkleRoot = _value; } function setMintCost(uint256 _value) external onlyRole(ADMIN) { mintCost = _value; } function setMaxSupply(uint256 _value) external onlyRole(ADMIN) { maxSupply = _value; } function setTokenIds(uint256 _fromTokenId, uint256 _toTokenId) external onlyRole(ADMIN) { fromTokenId = _fromTokenId; toTokenId = _toTokenId; } function setPackMintCost(uint256 _value) external onlyRole(ADMIN) { packMintCost = _value; } function setPackMaxSupply(uint256 _value) external onlyRole(ADMIN) { packMaxSupply = _value; } function setWithdrawSettings(WithdrawSetting[] memory _value) public onlyRole(ADMIN) { withdrawSettings = _value; } // interface function supportsInterface(bytes4 interfaceId) public view virtual override(ERC1155, AccessControl, ERC2981) returns (bool) { return ERC1155.supportsInterface(interfaceId) || AccessControl.supportsInterface(interfaceId) || ERC2981.supportsInterface(interfaceId) || super.supportsInterface(interfaceId); } }
// 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/common/ERC2981.sol) pragma solidity ^0.8.0; import "../../interfaces/IERC2981.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC2981 is IERC2981, ERC165 { struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981 */ function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: invalid receiver"); _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: Invalid parameters"); _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Resets royalty information for the token id back to the global default. */ function _resetTokenRoyalty(uint256 tokenId) internal virtual { delete _tokenRoyaltyInfo[tokenId]; } }
// 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) (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) (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 (last updated v4.7.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`, * consuming from one or the other at each step according to the instructions given by * `proofFlags`. * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof} * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// 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 v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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 (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":[],"name":"PIEMENT","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"},{"internalType":"address[]","name":"_addresses","type":"address[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"allowlistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"allowlistMintPack","outputs":[],"stateMutability":"payable","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":[],"name":"fromTokenId","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":[],"name":"isPublicSale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mintPack","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"}],"name":"packAirdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"packMaxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"packMintCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"packTotalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"piementAllowlistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"piementAllowlistMintPack","outputs":[],"stateMutability":"payable","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":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint96","name":"_feeNumerator","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_value","type":"bool"}],"name":"setIsPublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_value","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"},{"internalType":"string","name":"_baseExtension","type":"string"}],"name":"setMetadataBase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"setMintCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"setPackMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"setPackMintCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fromTokenId","type":"uint256"},{"internalType":"uint256","name":"_toTokenId","type":"uint256"}],"name":"setTokenIds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"ratio","type":"uint256"}],"internalType":"struct CNPtakarajima2024.WithdrawSetting[]","name":"_value","type":"tuple[]"}],"name":"setWithdrawSettings","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":"toTokenId","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":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"withdrawSettings","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"ratio","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
608034620002f0576020818101906001600160401b0380831184841017620002da576040928352600080945262000038600254620002f5565b601f90818111620002b9575b506002859055600454336001600160a01b0382167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08880a36001600160a81b0319163360ff60a01b191617600455600754620000a090620002f5565b81811162000298575b507f434e5074616b6172616a696d6132303234000000000000000000000000000022600755600854620000dc90620002f5565b81811162000276575b505060086310d3941560e21b0160085560ff1980600b5416600b55662386f26fc10000600d556046600e5560016010556005601155668e1bc9bf040000601255601e60135584805260038352838520338652835260ff8486205416156200023f575b6420a226a4a760d91b9081865260038452848620338752845260ff85872054161562000205575b50503315620001c25782519081840190811182821017620001ae57836103e8949550523381520152607d60a31b331760055551613b9b90816200034c8239f35b634e487b7160e01b85526041600452602485fd5b50606491519062461bcd60e51b82526004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152fd5b8186526003845284862033875284526001858720918254161790553390339060008051602062003ee78339815191528780a438806200016e565b84805260038352838520338652835283852060018282541617905533338660008051602062003ee78339815191528180a462000147565b620002909160088752848720910160051c81019062000332565b3880620000e5565b60078652838620620002b291830160051c81019062000332565b38620000a9565b60028652838620620002d391830160051c81019062000332565b3862000044565b634e487b7160e01b600052604160045260246000fd5b600080fd5b90600182811c9216801562000327575b60208310146200031157565b634e487b7160e01b600052602260045260246000fd5b91607f169162000305565b8181106200033e575050565b600081556001016200033256fe6040608081526004908136101561001557600080fd5b600091823560e01c8062fdd58e1461273e57806301ffc9a7146126b957806304634d8d1461259857806306fdde03146124ee5780630bae74c2146124cf5780630e89341c14612331578063112e0dee146123125780631455815a1461226a5780631683c1a31461219a5780631f3f88701461217b578063248a9ca31461215157806327449858146121305780632a0acc6a1461210d5780632a55205a1461204a5780632b41a368146120255780632eb2c2d614611d0c5780632f2ff15d14611c6257806336568abe14611bc25780633a813b76146118ce5780633ccfd60b1461172d5780634e1273f41461158c5780635c975abb146115665780635ca68965146114d55780635d10fe2b146114b357806364f73ce7146113cb5780636c0360eb146113215780636f8b44b0146112ff57838163715018a6146112a15750806371620410146112825780637b4802281461124b5780637cb64759146112295780638545f4ea146112075780638727a4fb146110095780638da5cb5b14610fe257806391d1485414610f9d578063952ea94f14610f0457806395d89b4114610e5a5780639727756a14610cff578063980f370014610ce0578063a217fddf14610cc5578063a22cb46514610bd4578063a4c3f31e14610b35578063a5a865dc14610b11578063bd85b03914610aea578063bdb4b84814610acb578063c6682862146109e2578063d10507a9146108c9578063d1299aec146108a7578063d547741f14610869578063d5abeb011461084a578063e985e9c5146107f8578063edb245c914610659578063f242432a146103505763f2fde38b1461027457600080fd5b3461034c57602036600319011261034c5761028d61276e565b90610296612fef565b6001600160a01b038092169283156102e35750805490836001600160a01b03198316179055167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b906020608492519162461bcd60e51b8352820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152fd5b8280fd5b50903461034c5760a036600319011261034c5761036b61276e565b83610374612789565b916044359060643560843567ffffffffffffffff81116106555761039b90369089016129e1565b926001600160a01b03809316923384148015610636575b6103bb90613118565b8616906103c982151561318a565b6103d28161332b565b506103dc8361332b565b50808652602096868852888720858852885283898820546103ff828210156131fc565b838952888a528a8920878a528a520389882055818752868852888720838852885288872061042e85825461326e565b905582858a51848152868b8201527fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628c3392a43b61046a578580f35b889587946104ab8a519788968795869463f23a6e6160e01b9c8d8752339087015260248601526044850152606484015260a0608484015260a483019061289c565b03925af1869181610607575b506105925750506001906104c961329b565b6308c379a01461055f575b506104e95750505b3880808381808080808580f35b61055b92505191829162461bcd60e51b8352820160809060208152603460208201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560408201527f526563656976657220696d706c656d656e74657200000000000000000000000060608201520190565b0390fd5b6105676132b9565b8061057257506104d4565b61055b8591855193849362461bcd60e51b8552840152602483019061289c565b6001600160e01b0319160390506105aa5750506104dc565b61055b92505191829162461bcd60e51b8352820160809060208152602860208201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b60608201520190565b610628919250843d861161062f575b6106208183612857565b81019061327b565b90386104b7565b503d610616565b508386526001602090815288872033885290528786205460ff166103b2565b8480fd5b836106ba6106b58561066a36612a5c565b600c9992949598919699546106b08951988c60209a8b8101916bffffffffffffffffffffffff199060601b168252601481526106a5816127ed565b51902093369161377a565b613860565b6137c8565b6106c2612d32565b6106d160ff600b541615613814565b6106d9613954565b600e5485895b8a868a8184106107ba57505092505050885b838110610795575061070961071191600d5490613350565b341015613908565b61071c828414613483565b875b838110610729578880f35b8061075d61073b61079093878b6134cf565b356107478387876134cf565b358951916107548361281f565b8d83528c6134f3565b6107688185856134cf565b3561077482878b6134cf565b358b52600f8752610789888c2091825461326e565b90556130df565b61071e565b906107af6107b5916107a88487876134cf565b359061326e565b916130df565b6106f1565b6107f1946107ec936107d18689956107e5956134cf565b358152600f8c5220546107a8858a8a6134cf565b11156138bc565b6130df565b86906106df565b50503461084657806003193601126108465760ff8160209361081861276e565b610820612789565b6001600160a01b0391821683526001875283832091168252855220549151911615158152f35b5080fd5b505034610846578160031936011261084657602090600e549051908152f35b50903461034c578060031936011261034c576108a4913561089f600161088d612789565b93838752600360205286200154612e67565b612f78565b80f35b838234610846576020366003190112610846576108c2612b21565b3560125580f35b50903461034c57606036600319011261034c5767ffffffffffffffff908235828111610655576108fc90369085016128c1565b90926024358181116109de5761091590369087016128c1565b9190956044359182116109da5761092e913691016128c1565b91610937612b21565b808414806109d1575b61094990613483565b87805b828110610957575080f35b61099d6109ca9261097161096c84878e6134cf565b6134df565b61097c848a8d6134cf565b35610988858a8a6134cf565b35918b51936109968561281f565b84526134f3565b6109a88186866134cf565b356109b482888b6134cf565b358b52600f602052610789888c2091825461326e565b889061094c565b50808314610940565b8780fd5b8680fd5b50503461084657816003193601126108465780519082600a54610a04816127b3565b80855291600191808316908115610aa35750600114610a46575b505050610a3082610a42940383612857565b5191829160208352602083019061289c565b0390f35b9450600a85527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a85b828610610a8b57505050610a30826020610a429582010194610a1e565b80546020878701810191909152909501948101610a6e565b610a42975086935060209250610a3094915060ff191682840152151560051b82010194610a1e565b505034610846578160031936011261084657602090600d549051908152f35b503461034c57602036600319011261034c576020928291358152600f845220549051908152f35b50503461084657816003193601126108465760209060ff600b541690519015158152f35b50829034610846576020366003190112610846573590601554821015610bd1576015905260011b610a427f55f448fdea98c4d29eb340757ef0a66cd03dbb9538908a6a81d96026b71ec4766001600160a01b03837f55f448fdea98c4d29eb340757ef0a66cd03dbb9538908a6a81d96026b71ec475015416920154925192839283602090939291936001600160a01b0360408201951681520152565b80fd5b50903461034c578060031936011261034c57610bee61276e565b9060243591821515809303610655576001600160a01b031692833314610c5d5750338452600160205280842083855260205280842060ff1981541660ff8416179055519081527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a380f35b6020608492519162461bcd60e51b8352820152602960248201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360448201527f20666f722073656c6600000000000000000000000000000000000000000000006064820152fd5b50503461084657816003193601126108465751908152602090f35b5050346108465781600319360112610846576020906011549051908152f35b50606036600319011261034c57610d1461276e565b9167ffffffffffffffff602435818111610e5657610d3590369085016128c1565b9190936044359182116109de57610d4e913691016128c1565b90610d5d60ff600b54166139a8565b610d65613954565b600e54875b848110610e2457505086875b838110610e0c5750610709610d8e91600d5490613350565b610d99828414613483565b865b838110610da6578780f35b80610dda610db8610e0793878a6134cf565b35610dc48387876134cf565b35885191610dd18361281f565b8c83528b6134f3565b610de58185856134cf565b35610df182878a6134cf565b358a52600f602052610789878b2091825461326e565b610d9b565b906107af610e1f916107a88487876134cf565b610d76565b80610e33610e5192878a6134cf565b358a52600f6020526107ec836107e5898d20546107a8858a8a6134cf565b610d6a565b8580fd5b50503461084657816003193601126108465780519082600854610e7c816127b3565b80855291600191808316908115610aa35750600114610ea757505050610a3082610a42940383612857565b9450600885527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee35b828610610eec57505050610a30826020610a429582010194610a1e565b80546020878701810191909152909501948101610ecf565b50508060031936011261084657610f1961276e565b60243590610f2b60ff600b54166139a8565b610f33613954565b610f4c610f428360145461326e565b60135410156138bc565b610f5b61070960125484613350565b6010545b6011548111610f8a57610f85906107ec8551610f7a8161281f565b8781528583866134f3565b610f5f565b84610f978460145461326e565b60145580f35b503461034c578160031936011261034c578160209360ff92610fbd612789565b90358252600386526001600160a01b0383832091168252855220541690519015158152f35b509134610bd15780600319360112610bd157506001600160a01b0360209254169051908152f35b50903461034c576020908160031936011261120357823567ffffffffffffffff811161065557366023820112156106555780840135916110488361294f565b9161105582519384612857565b8383528483016024819560061b830101913683116111ff57602401905b8282106111ca5750505050611085612b21565b51926801000000000000000084116111b7576015549084601555818510611112575b505090601584527f55f448fdea98c4d29eb340757ef0a66cd03dbb9538908a6a81d96026b71ec47584925b8484106110dd578580f35b6002838281600194516001600160a01b038151166001600160a01b0319885416178755015184860155019201930192906110d2565b7f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff80831683036111a45785168503611191575060017f55f448fdea98c4d29eb340757ef0a66cd03dbb9538908a6a81d96026b71ec47591811b82019185821b015b82811061118057506110a7565b808760029255878382015501611173565b634e487b7160e01b865260119052602485fd5b634e487b7160e01b875260118252602487fd5b634e487b7160e01b855260419052602484fd5b83823603126111ff5786849182516111e1816127ed565b6111ea8561279f565b81528285013583820152815201910190611072565b8880fd5b8380fd5b83823461084657602036600319011261084657611222612b21565b35600d5580f35b83823461084657602036600319011261084657611244612b21565b35600c5580f35b838234610846576020366003190112610846573580151580910361084657611271612b21565b60ff8019600b5416911617600b5580f35b5050346108465781600319360112610846576020906013549051908152f35b8083346112fc57816003193601126112fc576001600160a01b03906112c4612fef565b8054906001600160a01b031982169055167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b50fd5b8382346108465760203660031901126108465761131a612b21565b35600e5580f35b50503461084657816003193601126108465780519082600954611343816127b3565b80855291600191808316908115610aa3575060011461136e57505050610a3082610a42940383612857565b9450600985527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af5b8286106113b357505050610a30826020610a429582010194610a1e565b80546020878701810191909152909501948101611396565b836114076106b5856113dc36612a5c565b600c9992949598919699546106b08951986020998a8101903360601b8252601481526106a5816127ed565b61141660ff600b541615613814565b61141e613954565b600e5485895b8a868a81841061149557505092505050885b83811061147d575061070961144e91600d5490613350565b611459828414613483565b875b838110611466578880f35b8061075d61073b61147893878b6134cf565b61145b565b906107af611490916107a88487876134cf565b611436565b6114ac946107ec936107d18689956107e5956134cf565b8690611424565b838234610846576020366003190112610846576114ce612b21565b3560135580f35b505061150d6106b56114e6366128f2565b906106b0600c96949593965491885160208101903360601b8252601481526106a5816127ed565b61151c60ff600b541615613814565b611524613954565b611533610f428360145461326e565b61154261070960125484613350565b6010545b6011548111610f8a57611561906107ec8551610f7a8161281f565b611546565b509134610bd15780600319360112610bd1575060ff6020925460a01c1690519015158152f35b503461034c578160031936011261034c57803567ffffffffffffffff80821161065557366023830112156106555781830135906115c88261294f565b926115d586519485612857565b82845260209260248486019160051b830101913683116111ff576024859101915b8383106117155750505050602435908111610e56576116189036908501612967565b9282518451036116ae575081519461162f8661294f565b9561163c86519788612857565b80875261164b601f199161294f565b0136838801375b825181101561169c57806116876001600160a01b036116746116979487613104565b51166116808388613104565b5190613047565b6116918289613104565b526130df565b611652565b845182815280610a4281850189612a28565b60849185519162461bcd60e51b8352820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e67746860448201527f206d69736d6174636800000000000000000000000000000000000000000000006064820152fd5b81906117208461279f565b81520191019084906115f6565b50903461034c578260031936011261034c57611747612b21565b4790811561188c57818493859460159586545b808210611863575050865b86548082101561185f5761177882612ad1565b5090865190611786826127ed565b60016001600160a01b039384815416845201549060208301918252600019810190811161184c578b9392919085036117df575082898193829351165af16117cb6139f4565b50156109da576117da906130df565b611765565b6117f0919293509893985187613350565b8415611839578a8080938782940495869151165af161180d6139f4565b50156111ff578103908111611826576117da90956130df565b634e487b7160e01b885260118352602488fd5b634e487b7160e01b8b526012865260248bfd5b634e487b7160e01b8c526011875260248cfd5b8880f35b909161188061188691600161187786612ad1565b5001549061326e565b926130df565b9061175a565b5162461bcd60e51b8152602081840152601260248201527f4e6f7420456e6f7567682042616c616e636500000000000000000000000000006044820152606490fd5b5091903461084657366003190112610bd15767ffffffffffffffff823581811161034c576118ff90369085016129e1565b926024358281116112035761191790369083016129e1565b90611920612b21565b8451838111611baf57806119356009546127b3565b96601f97888111611b43575b50602090888311600114611ac0578792611ab5575b50508160011b916000199060031b1c1916176009555b8151928311611aa25750611981600a546127b3565b848111611a42575b5060209382116001146119c4579282938293926119b9575b50508160011b916000199060031b1c191617600a5580f35b0151905038806119a1565b600a8352601f198216937fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a891845b868110611a2a5750836001959610611a11575b505050811b01600a5580f35b015160001960f88460031b161c19169055388080611a05565b919260206001819286850151815501940192016119f2565b600a84527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a88580850160051c82019260208610611a99575b0160051c01905b818110611a8e5750611989565b848155600101611a81565b92508192611a7a565b634e487b7160e01b845260419052602483fd5b015190503880611956565b600988527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af9250601f198416885b818110611b2b5750908460019594939210611b12575b505050811b0160095561196c565b015160001960f88460031b161c19169055388080611b04565b92936020600181928786015181550195019301611aee565b909150600987527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af8880850160051c82019260208610611ba6575b9085949392910160051c01905b818110611b985750611941565b888155849350600101611b8b565b92508192611b7e565b634e487b7160e01b855260418252602485fd5b50829034610846578260031936011261084657611bdd612789565b90336001600160a01b03831603611bf957906108a49135612f78565b608490602085519162461bcd60e51b8352820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152fd5b503461034c578160031936011261034c573590611c7d612789565b908284526003602052611c9560018286200154612e67565b82845260036020526001600160a01b0381852092169182855260205260ff818520541615611cc1578380f35b82845260036020528084208285526020528320600160ff1982541617905533917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d8480a43880808380f35b503461034c576003199160a03684011261120357611d2861276e565b92611d31612789565b9367ffffffffffffffff936044358581116109da57611d539036908301612967565b906064358681116111ff57611d6b9036908301612967565b956084359081116111ff57611d8390369083016129e1565b936001600160a01b03809416933385148015612006575b611da390613118565b8351885103611f9d57881694611dba86151561318a565b895b8a8551821015611e395790896107898a611e3494611de585611dde818d613104565b5195613104565b51938082526020908282528383208d84528252858d8585205490611e0b838310156131fc565b838652858552868620908652845203848420558252818152828220908d8352522091825461326e565b611dbc565b50509094939596929197848789518a81527f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb611e778c830188612a28565b91808303602082015280611e8c33948b612a28565b0390a43b611e98578880f35b8651948593849363bc197c8160e01b98898652338c87015260248601526044850160a0905260a48501611eca91612a28565b82858203016064860152611edd91612a28565b90838203016084840152611ef09161289c565b0381885a94602095f1859181611f7d575b50611f675750506001611f1261329b565b6308c379a014611f30575b6104e95750505b38808080808080808880f35b611f386132b9565b80611f435750611f1d565b905061055b91602094505193849362461bcd60e51b8552840152602483019061289c565b6001600160e01b031916036105aa575050611f24565b611f9691925060203d811161062f576106208183612857565b9038611f01565b865162461bcd60e51b8152602081850152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060448201527f6d69736d617463680000000000000000000000000000000000000000000000006064820152608490fd5b50848a5260016020908152878b20338c529052868a205460ff16611d9a565b50503461084657816003193601126108465760209051661412515351539560ca1b8152f35b505034610846578061205b36612939565b93908152600660205220815190612071826127ed565b54926001600160a01b03918285169485825260a01c602082015293156120db575b906127106120b6610a42936bffffffffffffffffffffffff60208801511690613350565b04935116915192839283602090939291936001600160a01b0360408201951681520152565b9250610a42906127106120b684516120f2816127ed565b600554848116825260a01c6020820152959293505050612092565b505034610846578160031936011261084657602090516420a226a4a760d91b8152f35b8334610bd15761213f36612939565b90612148612b21565b60105560115580f35b503461034c57602036600319011261034c5781602093600192358152600385522001549051908152f35b5050346108465781600319360112610846576020906012549051908152f35b50903461034c578060031936011261034c5767ffffffffffffffff8235818111610655576121cb90369085016128c1565b919093602435918211610e56576121e4913691016128c1565b6121ef929192612b21565b85915b8083106121fd578680f35b6010545b601154811161224557612240906107ec61221f61096c87868c6134cf565b61222a87878a6134cf565b35838a51926122388461281f565b8d84526134f3565b612201565b5091612264906122568184876134cf565b35610789601491825461326e565b916121f2565b50506122b16106b561227b366128f2565b906106b0600c96949593965491885160208101906bffffffffffffffffffffffff198960601b168252601481526106a5816127ed565b6122b9612d32565b6122c860ff600b541615613814565b6122d0613954565b6122df610f428360145461326e565b6122ee61070960125484613350565b6010545b6011548111610f8a5761230d906107ec8551610f7a8161281f565b6122f2565b5050346108465781600319360112610846576020906010549051908152f35b50903461034c5760209182600319360112611203576123509035613a24565b8151938491848260095492612364846127b3565b6001948486821691826000146124b0575050600114612458575b50808261238f925194859201612879565b0182600a549261239e846127b3565b9381811690811561243957506001146123da575b8588610a42896123cb848a03601f198101865285612857565b5192828493845283019061289c565b600a82527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a8969594505b878483106124235750949550929350019050816123cb610a42386123b2565b8754838501529681019689955090910190612404565b60ff19168452505050811515909102019050816123cb610a42386123b2565b60098652909150847f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af5b828210612498575050850182019061238f61237e565b80548b83018601528a97508994909101908501612482565b60ff1916898201528215159092028801909101925061238f905061237e565b5050346108465781600319360112610846576020906014549051908152f35b50503461084657816003193601126108465780519082600754612510816127b3565b80855291600191808316908115610aa3575060011461253b57505050610a3082610a42940383612857565b9450600785527fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c6885b82861061258057505050610a30826020610a429582010194610a1e565b80546020878701810191909152909501948101612563565b50903461034c578060031936011261034c576125b261276e565b90602435916bffffffffffffffffffffffff8316808403610e5657612710906125d9612b21565b11612650576001600160a01b031692831561260e5750906126036001600160a01b031992516127ed565b60a01b161760055580f35b6020606492519162461bcd60e51b8352820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152fd5b815162461bcd60e51b8152602081860152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c2065786365656460448201527f2073616c655072696365000000000000000000000000000000000000000000006064820152608490fd5b503461034c57602036600319011261034c5735906001600160e01b03198216820361034c57602092506126eb82613b21565b91821561272d575b821561271c575b821561270a575b50519015158152f35b612715919250613b65565b9038612701565b915061272782613b65565b916126fa565b915061273882613afc565b916126f3565b50503461084657806003193601126108465760209061276761275e61276e565b60243590613047565b9051908152f35b600435906001600160a01b038216820361278457565b600080fd5b602435906001600160a01b038216820361278457565b35906001600160a01b038216820361278457565b90600182811c921680156127e3575b60208310146127cd57565b634e487b7160e01b600052602260045260246000fd5b91607f16916127c2565b6040810190811067ffffffffffffffff82111761280957604052565b634e487b7160e01b600052604160045260246000fd5b6020810190811067ffffffffffffffff82111761280957604052565b6080810190811067ffffffffffffffff82111761280957604052565b90601f8019910116810190811067ffffffffffffffff82111761280957604052565b60005b83811061288c5750506000910152565b818101518382015260200161287c565b906020916128b581518092818552858086019101612879565b601f01601f1916010190565b9181601f840112156127845782359167ffffffffffffffff8311612784576020808501948460051b01011161278457565b6060600319820112612784576004356001600160a01b03811681036127845791602435916044359067ffffffffffffffff821161278457612935916004016128c1565b9091565b6040906003190112612784576004359060243590565b67ffffffffffffffff81116128095760051b60200190565b81601f820112156127845780359161297e8361294f565b9261298c6040519485612857565b808452602092838086019260051b820101928311612784578301905b8282106129b6575050505090565b813581529083019083016129a8565b67ffffffffffffffff811161280957601f01601f191660200190565b81601f82011215612784578035906129f8826129c5565b92612a066040519485612857565b8284526020838301011161278457816000926020809301838601378301015290565b90815180825260208080930193019160005b828110612a48575050505090565b835185529381019392810192600101612a3a565b6080600319820112612784576004356001600160a01b0381168103612784579167ffffffffffffffff6024358181116127845783612a9c916004016128c1565b939093926044358381116127845782612ab7916004016128c1565b9390939260643591821161278457612935916004016128c1565b601554811015612b0b57601560005260011b7f55f448fdea98c4d29eb340757ef0a66cd03dbb9538908a6a81d96026b71ec4750190600090565b634e487b7160e01b600052603260045260246000fd5b3360009081527f63f6944974ed01e0c77f5fd425d412bc87a2a97469803ba02a51ba75d9154da4602090815260408083205490926420a226a4a760d91b9160ff1615612b6d5750505050565b612b7633613374565b91845190612b838261283b565b60428252848201926060368537825115612d1e5760308453825190600191821015612d1e5790607860218501536041915b818311612cb057505050612c6e57604861055b938693612c5293612c4398519889937f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008a860152612c0e815180928c603789019101612879565b8401917f206973206d697373696e6720726f6c6520000000000000000000000000000000603784015251809386840190612879565b01036028810187520185612857565b5192839262461bcd60e51b84526004840152602483019061289c565b60648486519062461bcd60e51b825280600483015260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152fd5b909192600f81166010811015612d0a576f181899199a1a9b1b9c1cb0b131b232b360811b901a612ce08587613363565b5360041c928015612cf657600019019190612bb4565b634e487b7160e01b82526011600452602482fd5b634e487b7160e01b83526032600452602483fd5b634e487b7160e01b81526032600452602490fd5b3360009081527fbe1ba6d8735927a0016c83c1af91eb9db335e6be4442381ab93313d37726a50d60209081526040808320549092661412515351539560ca1b9160ff1615612d805750505050565b612d8933613374565b91845190612d968261283b565b60428252848201926060368537825115612d1e5760308453825190600191821015612d1e5790607860218501536041915b818311612e2157505050612c6e57604861055b938693612c5293612c4398519889937f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008a860152612c0e815180928c603789019101612879565b909192600f81166010811015612d0a576f181899199a1a9b1b9c1cb0b131b232b360811b901a612e518587613363565b5360041c928015612cf657600019019190612dc7565b60009080825260209060038252604092838120338252835260ff848220541615612e915750505050565b612e9a33613374565b91845190612ea78261283b565b60428252848201926060368537825115612d1e5760308453825190600191821015612d1e5790607860218501536041915b818311612f3257505050612c6e57604861055b938693612c5293612c4398519889937f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008a860152612c0e815180928c603789019101612879565b909192600f81166010811015612d0a576f181899199a1a9b1b9c1cb0b131b232b360811b901a612f628587613363565b5360041c928015612cf657600019019190612ed8565b9060009180835260036020526001600160a01b036040842092169182845260205260ff604084205416612faa57505050565b8083526003602052604083208284526020526040832060ff1981541690557ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b339380a4565b6001600160a01b0360045416330361300357565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b6001600160a01b031690811561307457600052600060205260406000209060005260205260406000205490565b60405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201527f616c6964206f776e6572000000000000000000000000000000000000000000006064820152608490fd5b60001981146130ee5760010190565b634e487b7160e01b600052601160045260246000fd5b8051821015612b0b5760209160051b010190565b1561311f57565b60405162461bcd60e51b815260206004820152602f60248201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60448201527f6572206e6f7220617070726f76656400000000000000000000000000000000006064820152608490fd5b1561319157565b60405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608490fd5b1561320357565b60405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201527f72207472616e73666572000000000000000000000000000000000000000000006064820152608490fd5b919082018092116130ee57565b9081602091031261278457516001600160e01b0319811681036127845790565b60009060033d116132a857565b905060046000803e60005160e01c90565b600060443d1061331757604051600319913d83016004833e815167ffffffffffffffff918282113d60248401111761331a57818401948551938411613322573d8501016020848701011161331a575061331792910160200190612857565b90565b949350505050565b50949350505050565b60405190613338826127ed565b60018252602082016020368237825115612b0b575290565b818102929181159184041417156130ee57565b908151811015612b0b570160200190565b604051906060820182811067ffffffffffffffff82111761280957604052602a8252602082016040368237825115612b0b57603090538151600190811015612b0b57607860218401536029905b8082116134155750506133d15790565b606460405162461bcd60e51b815260206004820152602060248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152fd5b9091600f8116601081101561346e576f181899199a1a9b1b9c1cb0b131b232b360811b901a6134448486613363565b5360041c9180156134595760001901906133c1565b60246000634e487b7160e01b81526011600452fd5b60246000634e487b7160e01b81526032600452fd5b1561348a57565b60405162461bcd60e51b815260206004820152600e60248201527f496e76616c6964204c656e6774680000000000000000000000000000000000006044820152606490fd5b9190811015612b0b5760051b0190565b356001600160a01b03811681036127845790565b9291906001600160a01b038416801561372b5761350f8261332b565b506135198361332b565b50600092828452602094848652604096878620848752875287862061353f84825461326e565b905583868951878152858a8201527fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628b3392a43b613581575b50505050505050565b6135c392869286895180968195829463f23a6e6160e01b9a8b85523360048601528560248601526044850152606484015260a0608484015260a483019061289c565b03925af183918161370c575b5061369f5750506001916135e161329b565b6308c379a014613669575b505061360057505b38808080808080613578565b5162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560448201527f526563656976657220696d706c656d656e7465720000000000000000000000006064820152608490fd5b6136716132b9565b918261367d57506135ec565b8461055b91505192839262461bcd60e51b84526004840152602483019061289c565b6001600160e01b0319160391506136b8905057506135f4565b5162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b6064820152608490fd5b613724919250853d871161062f576106208183612857565b90386135cf565b60405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608490fd5b92916137858261294f565b916137936040519384612857565b829481845260208094019160051b810192831161278457905b8282106137b95750505050565b813581529083019083016137ac565b156137cf57565b60405162461bcd60e51b815260206004820152600d60248201527f496e76616c69642070726f6f66000000000000000000000000000000000000006044820152606490fd5b1561381b57565b60405162461bcd60e51b815260206004820152601260248201527f4e6f7420416c6c6f776c6973742053616c6500000000000000000000000000006044820152606490fd5b929091906000915b84518310156138b45761387b8386613104565b51906000828210156138a2575060005260205261389c6040600020926130df565b91613868565b60409161389c93825260205220611880565b915092501490565b156138c357565b60405162461bcd60e51b815260206004820152600f60248201527f4f766572204d617820537570706c7900000000000000000000000000000000006044820152606490fd5b1561390f57565b60405162461bcd60e51b815260206004820152600e60248201527f4e6f7420456e6f756768204574680000000000000000000000000000000000006044820152606490fd5b60ff60045460a01c1661396357565b60405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606490fd5b156139af57565b60405162461bcd60e51b815260206004820152600f60248201527f4e6f74205075626c69632053616c6500000000000000000000000000000000006044820152606490fd5b3d15613a1f573d90613a05826129c5565b91613a136040519384612857565b82523d6000602084013e565b606090565b8015613ade5780816000925b613ac85750613a3e826129c5565b91613a4c6040519384612857565b80835281601f19613a5c836129c5565b013660208601375b613a6d57505090565b60001981019081116130ee578091600a91603083830681018091116130ee5760f81b7fff000000000000000000000000000000000000000000000000000000000000001660001a90613abf9086613363565b53049081613a64565b9091613ad5600a916130df565b92910480613a30565b50604051613aeb816127ed565b60018152600360fc1b602082015290565b6001600160e01b03198116637965db0b60e01b14908115613b1b575090565b61331791505b63ffffffff60e01b16636cdb3d1360e11b8114908115613b54575b8115613b46575090565b6301ffc9a760e01b14919050565b6303a24d0760e21b81149150613b3c565b6001600160e01b0319811663152a902d60e11b14908115613b84575090565b6133179150613afc56fea164736f6c6343000811000a2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d
Deployed Bytecode
0x6040608081526004908136101561001557600080fd5b600091823560e01c8062fdd58e1461273e57806301ffc9a7146126b957806304634d8d1461259857806306fdde03146124ee5780630bae74c2146124cf5780630e89341c14612331578063112e0dee146123125780631455815a1461226a5780631683c1a31461219a5780631f3f88701461217b578063248a9ca31461215157806327449858146121305780632a0acc6a1461210d5780632a55205a1461204a5780632b41a368146120255780632eb2c2d614611d0c5780632f2ff15d14611c6257806336568abe14611bc25780633a813b76146118ce5780633ccfd60b1461172d5780634e1273f41461158c5780635c975abb146115665780635ca68965146114d55780635d10fe2b146114b357806364f73ce7146113cb5780636c0360eb146113215780636f8b44b0146112ff57838163715018a6146112a15750806371620410146112825780637b4802281461124b5780637cb64759146112295780638545f4ea146112075780638727a4fb146110095780638da5cb5b14610fe257806391d1485414610f9d578063952ea94f14610f0457806395d89b4114610e5a5780639727756a14610cff578063980f370014610ce0578063a217fddf14610cc5578063a22cb46514610bd4578063a4c3f31e14610b35578063a5a865dc14610b11578063bd85b03914610aea578063bdb4b84814610acb578063c6682862146109e2578063d10507a9146108c9578063d1299aec146108a7578063d547741f14610869578063d5abeb011461084a578063e985e9c5146107f8578063edb245c914610659578063f242432a146103505763f2fde38b1461027457600080fd5b3461034c57602036600319011261034c5761028d61276e565b90610296612fef565b6001600160a01b038092169283156102e35750805490836001600160a01b03198316179055167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b906020608492519162461bcd60e51b8352820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152fd5b8280fd5b50903461034c5760a036600319011261034c5761036b61276e565b83610374612789565b916044359060643560843567ffffffffffffffff81116106555761039b90369089016129e1565b926001600160a01b03809316923384148015610636575b6103bb90613118565b8616906103c982151561318a565b6103d28161332b565b506103dc8361332b565b50808652602096868852888720858852885283898820546103ff828210156131fc565b838952888a528a8920878a528a520389882055818752868852888720838852885288872061042e85825461326e565b905582858a51848152868b8201527fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628c3392a43b61046a578580f35b889587946104ab8a519788968795869463f23a6e6160e01b9c8d8752339087015260248601526044850152606484015260a0608484015260a483019061289c565b03925af1869181610607575b506105925750506001906104c961329b565b6308c379a01461055f575b506104e95750505b3880808381808080808580f35b61055b92505191829162461bcd60e51b8352820160809060208152603460208201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560408201527f526563656976657220696d706c656d656e74657200000000000000000000000060608201520190565b0390fd5b6105676132b9565b8061057257506104d4565b61055b8591855193849362461bcd60e51b8552840152602483019061289c565b6001600160e01b0319160390506105aa5750506104dc565b61055b92505191829162461bcd60e51b8352820160809060208152602860208201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b60608201520190565b610628919250843d861161062f575b6106208183612857565b81019061327b565b90386104b7565b503d610616565b508386526001602090815288872033885290528786205460ff166103b2565b8480fd5b836106ba6106b58561066a36612a5c565b600c9992949598919699546106b08951988c60209a8b8101916bffffffffffffffffffffffff199060601b168252601481526106a5816127ed565b51902093369161377a565b613860565b6137c8565b6106c2612d32565b6106d160ff600b541615613814565b6106d9613954565b600e5485895b8a868a8184106107ba57505092505050885b838110610795575061070961071191600d5490613350565b341015613908565b61071c828414613483565b875b838110610729578880f35b8061075d61073b61079093878b6134cf565b356107478387876134cf565b358951916107548361281f565b8d83528c6134f3565b6107688185856134cf565b3561077482878b6134cf565b358b52600f8752610789888c2091825461326e565b90556130df565b61071e565b906107af6107b5916107a88487876134cf565b359061326e565b916130df565b6106f1565b6107f1946107ec936107d18689956107e5956134cf565b358152600f8c5220546107a8858a8a6134cf565b11156138bc565b6130df565b86906106df565b50503461084657806003193601126108465760ff8160209361081861276e565b610820612789565b6001600160a01b0391821683526001875283832091168252855220549151911615158152f35b5080fd5b505034610846578160031936011261084657602090600e549051908152f35b50903461034c578060031936011261034c576108a4913561089f600161088d612789565b93838752600360205286200154612e67565b612f78565b80f35b838234610846576020366003190112610846576108c2612b21565b3560125580f35b50903461034c57606036600319011261034c5767ffffffffffffffff908235828111610655576108fc90369085016128c1565b90926024358181116109de5761091590369087016128c1565b9190956044359182116109da5761092e913691016128c1565b91610937612b21565b808414806109d1575b61094990613483565b87805b828110610957575080f35b61099d6109ca9261097161096c84878e6134cf565b6134df565b61097c848a8d6134cf565b35610988858a8a6134cf565b35918b51936109968561281f565b84526134f3565b6109a88186866134cf565b356109b482888b6134cf565b358b52600f602052610789888c2091825461326e565b889061094c565b50808314610940565b8780fd5b8680fd5b50503461084657816003193601126108465780519082600a54610a04816127b3565b80855291600191808316908115610aa35750600114610a46575b505050610a3082610a42940383612857565b5191829160208352602083019061289c565b0390f35b9450600a85527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a85b828610610a8b57505050610a30826020610a429582010194610a1e565b80546020878701810191909152909501948101610a6e565b610a42975086935060209250610a3094915060ff191682840152151560051b82010194610a1e565b505034610846578160031936011261084657602090600d549051908152f35b503461034c57602036600319011261034c576020928291358152600f845220549051908152f35b50503461084657816003193601126108465760209060ff600b541690519015158152f35b50829034610846576020366003190112610846573590601554821015610bd1576015905260011b610a427f55f448fdea98c4d29eb340757ef0a66cd03dbb9538908a6a81d96026b71ec4766001600160a01b03837f55f448fdea98c4d29eb340757ef0a66cd03dbb9538908a6a81d96026b71ec475015416920154925192839283602090939291936001600160a01b0360408201951681520152565b80fd5b50903461034c578060031936011261034c57610bee61276e565b9060243591821515809303610655576001600160a01b031692833314610c5d5750338452600160205280842083855260205280842060ff1981541660ff8416179055519081527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a380f35b6020608492519162461bcd60e51b8352820152602960248201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360448201527f20666f722073656c6600000000000000000000000000000000000000000000006064820152fd5b50503461084657816003193601126108465751908152602090f35b5050346108465781600319360112610846576020906011549051908152f35b50606036600319011261034c57610d1461276e565b9167ffffffffffffffff602435818111610e5657610d3590369085016128c1565b9190936044359182116109de57610d4e913691016128c1565b90610d5d60ff600b54166139a8565b610d65613954565b600e54875b848110610e2457505086875b838110610e0c5750610709610d8e91600d5490613350565b610d99828414613483565b865b838110610da6578780f35b80610dda610db8610e0793878a6134cf565b35610dc48387876134cf565b35885191610dd18361281f565b8c83528b6134f3565b610de58185856134cf565b35610df182878a6134cf565b358a52600f602052610789878b2091825461326e565b610d9b565b906107af610e1f916107a88487876134cf565b610d76565b80610e33610e5192878a6134cf565b358a52600f6020526107ec836107e5898d20546107a8858a8a6134cf565b610d6a565b8580fd5b50503461084657816003193601126108465780519082600854610e7c816127b3565b80855291600191808316908115610aa35750600114610ea757505050610a3082610a42940383612857565b9450600885527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee35b828610610eec57505050610a30826020610a429582010194610a1e565b80546020878701810191909152909501948101610ecf565b50508060031936011261084657610f1961276e565b60243590610f2b60ff600b54166139a8565b610f33613954565b610f4c610f428360145461326e565b60135410156138bc565b610f5b61070960125484613350565b6010545b6011548111610f8a57610f85906107ec8551610f7a8161281f565b8781528583866134f3565b610f5f565b84610f978460145461326e565b60145580f35b503461034c578160031936011261034c578160209360ff92610fbd612789565b90358252600386526001600160a01b0383832091168252855220541690519015158152f35b509134610bd15780600319360112610bd157506001600160a01b0360209254169051908152f35b50903461034c576020908160031936011261120357823567ffffffffffffffff811161065557366023820112156106555780840135916110488361294f565b9161105582519384612857565b8383528483016024819560061b830101913683116111ff57602401905b8282106111ca5750505050611085612b21565b51926801000000000000000084116111b7576015549084601555818510611112575b505090601584527f55f448fdea98c4d29eb340757ef0a66cd03dbb9538908a6a81d96026b71ec47584925b8484106110dd578580f35b6002838281600194516001600160a01b038151166001600160a01b0319885416178755015184860155019201930192906110d2565b7f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff80831683036111a45785168503611191575060017f55f448fdea98c4d29eb340757ef0a66cd03dbb9538908a6a81d96026b71ec47591811b82019185821b015b82811061118057506110a7565b808760029255878382015501611173565b634e487b7160e01b865260119052602485fd5b634e487b7160e01b875260118252602487fd5b634e487b7160e01b855260419052602484fd5b83823603126111ff5786849182516111e1816127ed565b6111ea8561279f565b81528285013583820152815201910190611072565b8880fd5b8380fd5b83823461084657602036600319011261084657611222612b21565b35600d5580f35b83823461084657602036600319011261084657611244612b21565b35600c5580f35b838234610846576020366003190112610846573580151580910361084657611271612b21565b60ff8019600b5416911617600b5580f35b5050346108465781600319360112610846576020906013549051908152f35b8083346112fc57816003193601126112fc576001600160a01b03906112c4612fef565b8054906001600160a01b031982169055167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b50fd5b8382346108465760203660031901126108465761131a612b21565b35600e5580f35b50503461084657816003193601126108465780519082600954611343816127b3565b80855291600191808316908115610aa3575060011461136e57505050610a3082610a42940383612857565b9450600985527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af5b8286106113b357505050610a30826020610a429582010194610a1e565b80546020878701810191909152909501948101611396565b836114076106b5856113dc36612a5c565b600c9992949598919699546106b08951986020998a8101903360601b8252601481526106a5816127ed565b61141660ff600b541615613814565b61141e613954565b600e5485895b8a868a81841061149557505092505050885b83811061147d575061070961144e91600d5490613350565b611459828414613483565b875b838110611466578880f35b8061075d61073b61147893878b6134cf565b61145b565b906107af611490916107a88487876134cf565b611436565b6114ac946107ec936107d18689956107e5956134cf565b8690611424565b838234610846576020366003190112610846576114ce612b21565b3560135580f35b505061150d6106b56114e6366128f2565b906106b0600c96949593965491885160208101903360601b8252601481526106a5816127ed565b61151c60ff600b541615613814565b611524613954565b611533610f428360145461326e565b61154261070960125484613350565b6010545b6011548111610f8a57611561906107ec8551610f7a8161281f565b611546565b509134610bd15780600319360112610bd1575060ff6020925460a01c1690519015158152f35b503461034c578160031936011261034c57803567ffffffffffffffff80821161065557366023830112156106555781830135906115c88261294f565b926115d586519485612857565b82845260209260248486019160051b830101913683116111ff576024859101915b8383106117155750505050602435908111610e56576116189036908501612967565b9282518451036116ae575081519461162f8661294f565b9561163c86519788612857565b80875261164b601f199161294f565b0136838801375b825181101561169c57806116876001600160a01b036116746116979487613104565b51166116808388613104565b5190613047565b6116918289613104565b526130df565b611652565b845182815280610a4281850189612a28565b60849185519162461bcd60e51b8352820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e67746860448201527f206d69736d6174636800000000000000000000000000000000000000000000006064820152fd5b81906117208461279f565b81520191019084906115f6565b50903461034c578260031936011261034c57611747612b21565b4790811561188c57818493859460159586545b808210611863575050865b86548082101561185f5761177882612ad1565b5090865190611786826127ed565b60016001600160a01b039384815416845201549060208301918252600019810190811161184c578b9392919085036117df575082898193829351165af16117cb6139f4565b50156109da576117da906130df565b611765565b6117f0919293509893985187613350565b8415611839578a8080938782940495869151165af161180d6139f4565b50156111ff578103908111611826576117da90956130df565b634e487b7160e01b885260118352602488fd5b634e487b7160e01b8b526012865260248bfd5b634e487b7160e01b8c526011875260248cfd5b8880f35b909161188061188691600161187786612ad1565b5001549061326e565b926130df565b9061175a565b5162461bcd60e51b8152602081840152601260248201527f4e6f7420456e6f7567682042616c616e636500000000000000000000000000006044820152606490fd5b5091903461084657366003190112610bd15767ffffffffffffffff823581811161034c576118ff90369085016129e1565b926024358281116112035761191790369083016129e1565b90611920612b21565b8451838111611baf57806119356009546127b3565b96601f97888111611b43575b50602090888311600114611ac0578792611ab5575b50508160011b916000199060031b1c1916176009555b8151928311611aa25750611981600a546127b3565b848111611a42575b5060209382116001146119c4579282938293926119b9575b50508160011b916000199060031b1c191617600a5580f35b0151905038806119a1565b600a8352601f198216937fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a891845b868110611a2a5750836001959610611a11575b505050811b01600a5580f35b015160001960f88460031b161c19169055388080611a05565b919260206001819286850151815501940192016119f2565b600a84527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a88580850160051c82019260208610611a99575b0160051c01905b818110611a8e5750611989565b848155600101611a81565b92508192611a7a565b634e487b7160e01b845260419052602483fd5b015190503880611956565b600988527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af9250601f198416885b818110611b2b5750908460019594939210611b12575b505050811b0160095561196c565b015160001960f88460031b161c19169055388080611b04565b92936020600181928786015181550195019301611aee565b909150600987527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af8880850160051c82019260208610611ba6575b9085949392910160051c01905b818110611b985750611941565b888155849350600101611b8b565b92508192611b7e565b634e487b7160e01b855260418252602485fd5b50829034610846578260031936011261084657611bdd612789565b90336001600160a01b03831603611bf957906108a49135612f78565b608490602085519162461bcd60e51b8352820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c6600000000000000000000000000000000006064820152fd5b503461034c578160031936011261034c573590611c7d612789565b908284526003602052611c9560018286200154612e67565b82845260036020526001600160a01b0381852092169182855260205260ff818520541615611cc1578380f35b82845260036020528084208285526020528320600160ff1982541617905533917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d8480a43880808380f35b503461034c576003199160a03684011261120357611d2861276e565b92611d31612789565b9367ffffffffffffffff936044358581116109da57611d539036908301612967565b906064358681116111ff57611d6b9036908301612967565b956084359081116111ff57611d8390369083016129e1565b936001600160a01b03809416933385148015612006575b611da390613118565b8351885103611f9d57881694611dba86151561318a565b895b8a8551821015611e395790896107898a611e3494611de585611dde818d613104565b5195613104565b51938082526020908282528383208d84528252858d8585205490611e0b838310156131fc565b838652858552868620908652845203848420558252818152828220908d8352522091825461326e565b611dbc565b50509094939596929197848789518a81527f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb611e778c830188612a28565b91808303602082015280611e8c33948b612a28565b0390a43b611e98578880f35b8651948593849363bc197c8160e01b98898652338c87015260248601526044850160a0905260a48501611eca91612a28565b82858203016064860152611edd91612a28565b90838203016084840152611ef09161289c565b0381885a94602095f1859181611f7d575b50611f675750506001611f1261329b565b6308c379a014611f30575b6104e95750505b38808080808080808880f35b611f386132b9565b80611f435750611f1d565b905061055b91602094505193849362461bcd60e51b8552840152602483019061289c565b6001600160e01b031916036105aa575050611f24565b611f9691925060203d811161062f576106208183612857565b9038611f01565b865162461bcd60e51b8152602081850152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060448201527f6d69736d617463680000000000000000000000000000000000000000000000006064820152608490fd5b50848a5260016020908152878b20338c529052868a205460ff16611d9a565b50503461084657816003193601126108465760209051661412515351539560ca1b8152f35b505034610846578061205b36612939565b93908152600660205220815190612071826127ed565b54926001600160a01b03918285169485825260a01c602082015293156120db575b906127106120b6610a42936bffffffffffffffffffffffff60208801511690613350565b04935116915192839283602090939291936001600160a01b0360408201951681520152565b9250610a42906127106120b684516120f2816127ed565b600554848116825260a01c6020820152959293505050612092565b505034610846578160031936011261084657602090516420a226a4a760d91b8152f35b8334610bd15761213f36612939565b90612148612b21565b60105560115580f35b503461034c57602036600319011261034c5781602093600192358152600385522001549051908152f35b5050346108465781600319360112610846576020906012549051908152f35b50903461034c578060031936011261034c5767ffffffffffffffff8235818111610655576121cb90369085016128c1565b919093602435918211610e56576121e4913691016128c1565b6121ef929192612b21565b85915b8083106121fd578680f35b6010545b601154811161224557612240906107ec61221f61096c87868c6134cf565b61222a87878a6134cf565b35838a51926122388461281f565b8d84526134f3565b612201565b5091612264906122568184876134cf565b35610789601491825461326e565b916121f2565b50506122b16106b561227b366128f2565b906106b0600c96949593965491885160208101906bffffffffffffffffffffffff198960601b168252601481526106a5816127ed565b6122b9612d32565b6122c860ff600b541615613814565b6122d0613954565b6122df610f428360145461326e565b6122ee61070960125484613350565b6010545b6011548111610f8a5761230d906107ec8551610f7a8161281f565b6122f2565b5050346108465781600319360112610846576020906010549051908152f35b50903461034c5760209182600319360112611203576123509035613a24565b8151938491848260095492612364846127b3565b6001948486821691826000146124b0575050600114612458575b50808261238f925194859201612879565b0182600a549261239e846127b3565b9381811690811561243957506001146123da575b8588610a42896123cb848a03601f198101865285612857565b5192828493845283019061289c565b600a82527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a8969594505b878483106124235750949550929350019050816123cb610a42386123b2565b8754838501529681019689955090910190612404565b60ff19168452505050811515909102019050816123cb610a42386123b2565b60098652909150847f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af5b828210612498575050850182019061238f61237e565b80548b83018601528a97508994909101908501612482565b60ff1916898201528215159092028801909101925061238f905061237e565b5050346108465781600319360112610846576020906014549051908152f35b50503461084657816003193601126108465780519082600754612510816127b3565b80855291600191808316908115610aa3575060011461253b57505050610a3082610a42940383612857565b9450600785527fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c6885b82861061258057505050610a30826020610a429582010194610a1e565b80546020878701810191909152909501948101612563565b50903461034c578060031936011261034c576125b261276e565b90602435916bffffffffffffffffffffffff8316808403610e5657612710906125d9612b21565b11612650576001600160a01b031692831561260e5750906126036001600160a01b031992516127ed565b60a01b161760055580f35b6020606492519162461bcd60e51b8352820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152fd5b815162461bcd60e51b8152602081860152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c2065786365656460448201527f2073616c655072696365000000000000000000000000000000000000000000006064820152608490fd5b503461034c57602036600319011261034c5735906001600160e01b03198216820361034c57602092506126eb82613b21565b91821561272d575b821561271c575b821561270a575b50519015158152f35b612715919250613b65565b9038612701565b915061272782613b65565b916126fa565b915061273882613afc565b916126f3565b50503461084657806003193601126108465760209061276761275e61276e565b60243590613047565b9051908152f35b600435906001600160a01b038216820361278457565b600080fd5b602435906001600160a01b038216820361278457565b35906001600160a01b038216820361278457565b90600182811c921680156127e3575b60208310146127cd57565b634e487b7160e01b600052602260045260246000fd5b91607f16916127c2565b6040810190811067ffffffffffffffff82111761280957604052565b634e487b7160e01b600052604160045260246000fd5b6020810190811067ffffffffffffffff82111761280957604052565b6080810190811067ffffffffffffffff82111761280957604052565b90601f8019910116810190811067ffffffffffffffff82111761280957604052565b60005b83811061288c5750506000910152565b818101518382015260200161287c565b906020916128b581518092818552858086019101612879565b601f01601f1916010190565b9181601f840112156127845782359167ffffffffffffffff8311612784576020808501948460051b01011161278457565b6060600319820112612784576004356001600160a01b03811681036127845791602435916044359067ffffffffffffffff821161278457612935916004016128c1565b9091565b6040906003190112612784576004359060243590565b67ffffffffffffffff81116128095760051b60200190565b81601f820112156127845780359161297e8361294f565b9261298c6040519485612857565b808452602092838086019260051b820101928311612784578301905b8282106129b6575050505090565b813581529083019083016129a8565b67ffffffffffffffff811161280957601f01601f191660200190565b81601f82011215612784578035906129f8826129c5565b92612a066040519485612857565b8284526020838301011161278457816000926020809301838601378301015290565b90815180825260208080930193019160005b828110612a48575050505090565b835185529381019392810192600101612a3a565b6080600319820112612784576004356001600160a01b0381168103612784579167ffffffffffffffff6024358181116127845783612a9c916004016128c1565b939093926044358381116127845782612ab7916004016128c1565b9390939260643591821161278457612935916004016128c1565b601554811015612b0b57601560005260011b7f55f448fdea98c4d29eb340757ef0a66cd03dbb9538908a6a81d96026b71ec4750190600090565b634e487b7160e01b600052603260045260246000fd5b3360009081527f63f6944974ed01e0c77f5fd425d412bc87a2a97469803ba02a51ba75d9154da4602090815260408083205490926420a226a4a760d91b9160ff1615612b6d5750505050565b612b7633613374565b91845190612b838261283b565b60428252848201926060368537825115612d1e5760308453825190600191821015612d1e5790607860218501536041915b818311612cb057505050612c6e57604861055b938693612c5293612c4398519889937f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008a860152612c0e815180928c603789019101612879565b8401917f206973206d697373696e6720726f6c6520000000000000000000000000000000603784015251809386840190612879565b01036028810187520185612857565b5192839262461bcd60e51b84526004840152602483019061289c565b60648486519062461bcd60e51b825280600483015260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152fd5b909192600f81166010811015612d0a576f181899199a1a9b1b9c1cb0b131b232b360811b901a612ce08587613363565b5360041c928015612cf657600019019190612bb4565b634e487b7160e01b82526011600452602482fd5b634e487b7160e01b83526032600452602483fd5b634e487b7160e01b81526032600452602490fd5b3360009081527fbe1ba6d8735927a0016c83c1af91eb9db335e6be4442381ab93313d37726a50d60209081526040808320549092661412515351539560ca1b9160ff1615612d805750505050565b612d8933613374565b91845190612d968261283b565b60428252848201926060368537825115612d1e5760308453825190600191821015612d1e5790607860218501536041915b818311612e2157505050612c6e57604861055b938693612c5293612c4398519889937f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008a860152612c0e815180928c603789019101612879565b909192600f81166010811015612d0a576f181899199a1a9b1b9c1cb0b131b232b360811b901a612e518587613363565b5360041c928015612cf657600019019190612dc7565b60009080825260209060038252604092838120338252835260ff848220541615612e915750505050565b612e9a33613374565b91845190612ea78261283b565b60428252848201926060368537825115612d1e5760308453825190600191821015612d1e5790607860218501536041915b818311612f3257505050612c6e57604861055b938693612c5293612c4398519889937f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008a860152612c0e815180928c603789019101612879565b909192600f81166010811015612d0a576f181899199a1a9b1b9c1cb0b131b232b360811b901a612f628587613363565b5360041c928015612cf657600019019190612ed8565b9060009180835260036020526001600160a01b036040842092169182845260205260ff604084205416612faa57505050565b8083526003602052604083208284526020526040832060ff1981541690557ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b339380a4565b6001600160a01b0360045416330361300357565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b6001600160a01b031690811561307457600052600060205260406000209060005260205260406000205490565b60405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201527f616c6964206f776e6572000000000000000000000000000000000000000000006064820152608490fd5b60001981146130ee5760010190565b634e487b7160e01b600052601160045260246000fd5b8051821015612b0b5760209160051b010190565b1561311f57565b60405162461bcd60e51b815260206004820152602f60248201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60448201527f6572206e6f7220617070726f76656400000000000000000000000000000000006064820152608490fd5b1561319157565b60405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608490fd5b1561320357565b60405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201527f72207472616e73666572000000000000000000000000000000000000000000006064820152608490fd5b919082018092116130ee57565b9081602091031261278457516001600160e01b0319811681036127845790565b60009060033d116132a857565b905060046000803e60005160e01c90565b600060443d1061331757604051600319913d83016004833e815167ffffffffffffffff918282113d60248401111761331a57818401948551938411613322573d8501016020848701011161331a575061331792910160200190612857565b90565b949350505050565b50949350505050565b60405190613338826127ed565b60018252602082016020368237825115612b0b575290565b818102929181159184041417156130ee57565b908151811015612b0b570160200190565b604051906060820182811067ffffffffffffffff82111761280957604052602a8252602082016040368237825115612b0b57603090538151600190811015612b0b57607860218401536029905b8082116134155750506133d15790565b606460405162461bcd60e51b815260206004820152602060248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152fd5b9091600f8116601081101561346e576f181899199a1a9b1b9c1cb0b131b232b360811b901a6134448486613363565b5360041c9180156134595760001901906133c1565b60246000634e487b7160e01b81526011600452fd5b60246000634e487b7160e01b81526032600452fd5b1561348a57565b60405162461bcd60e51b815260206004820152600e60248201527f496e76616c6964204c656e6774680000000000000000000000000000000000006044820152606490fd5b9190811015612b0b5760051b0190565b356001600160a01b03811681036127845790565b9291906001600160a01b038416801561372b5761350f8261332b565b506135198361332b565b50600092828452602094848652604096878620848752875287862061353f84825461326e565b905583868951878152858a8201527fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628b3392a43b613581575b50505050505050565b6135c392869286895180968195829463f23a6e6160e01b9a8b85523360048601528560248601526044850152606484015260a0608484015260a483019061289c565b03925af183918161370c575b5061369f5750506001916135e161329b565b6308c379a014613669575b505061360057505b38808080808080613578565b5162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560448201527f526563656976657220696d706c656d656e7465720000000000000000000000006064820152608490fd5b6136716132b9565b918261367d57506135ec565b8461055b91505192839262461bcd60e51b84526004840152602483019061289c565b6001600160e01b0319160391506136b8905057506135f4565b5162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b6064820152608490fd5b613724919250853d871161062f576106208183612857565b90386135cf565b60405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608490fd5b92916137858261294f565b916137936040519384612857565b829481845260208094019160051b810192831161278457905b8282106137b95750505050565b813581529083019083016137ac565b156137cf57565b60405162461bcd60e51b815260206004820152600d60248201527f496e76616c69642070726f6f66000000000000000000000000000000000000006044820152606490fd5b1561381b57565b60405162461bcd60e51b815260206004820152601260248201527f4e6f7420416c6c6f776c6973742053616c6500000000000000000000000000006044820152606490fd5b929091906000915b84518310156138b45761387b8386613104565b51906000828210156138a2575060005260205261389c6040600020926130df565b91613868565b60409161389c93825260205220611880565b915092501490565b156138c357565b60405162461bcd60e51b815260206004820152600f60248201527f4f766572204d617820537570706c7900000000000000000000000000000000006044820152606490fd5b1561390f57565b60405162461bcd60e51b815260206004820152600e60248201527f4e6f7420456e6f756768204574680000000000000000000000000000000000006044820152606490fd5b60ff60045460a01c1661396357565b60405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606490fd5b156139af57565b60405162461bcd60e51b815260206004820152600f60248201527f4e6f74205075626c69632053616c6500000000000000000000000000000000006044820152606490fd5b3d15613a1f573d90613a05826129c5565b91613a136040519384612857565b82523d6000602084013e565b606090565b8015613ade5780816000925b613ac85750613a3e826129c5565b91613a4c6040519384612857565b80835281601f19613a5c836129c5565b013660208601375b613a6d57505090565b60001981019081116130ee578091600a91603083830681018091116130ee5760f81b7fff000000000000000000000000000000000000000000000000000000000000001660001a90613abf9086613363565b53049081613a64565b9091613ad5600a916130df565b92910480613a30565b50604051613aeb816127ed565b60018152600360fc1b602082015290565b6001600160e01b03198116637965db0b60e01b14908115613b1b575090565b61331791505b63ffffffff60e01b16636cdb3d1360e11b8114908115613b54575b8115613b46575090565b6301ffc9a760e01b14919050565b6303a24d0760e21b81149150613b3c565b6001600160e01b0319811663152a902d60e11b14908115613b84575090565b6133179150613afc56fea164736f6c6343000811000a
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.