Address Details
contract
0x8C6aa071aB7De666c1618C02182048a8ad4b778e
- Contract Name
- CyberBoxNFTBox
- Creator
- 0x8b2f36–66963a at 0x779f89–d675ac
- Balance
- 0 CELO ( )
- Tokens
-
Fetching tokens...
- Transactions
- 0 Transactions
- Transfers
- 0 Transfers
- Gas Used
- Fetching gas used...
- Last Balance Update
- 14125410
This contract has been verified via Sourcify.
View contract in Sourcify repository
- Contract name:
- CyberBoxNFTBox
- Optimization enabled
- false
- Compiler version
- v0.8.3+commit.8d00100c
- EVM Version
- istanbul
- Verified at
- 2023-01-24T05:34:47.499380Z
contracts/CyberBoxNFTBox.sol
// SPDX-License-Identifier: AGPL-3.0-or-later pragma solidity 0.8.3; pragma experimental ABIEncoderV2; import {ERC1155Upgradeable} from "@openzeppelin/contracts-upgradeable/token/ERC1155/ERC1155Upgradeable.sol"; import {OwnableUpgradeable} from "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; contract CyberBoxNFTBox is ERC1155Upgradeable { address public linkedCollection; address public linkedNFT; string public boxName; string public boxDescription; string public boxAboutAutor; string public boxImage; string public boxCoverImage; uint256 public boxRoyalty; bool public hasPreSale; uint256 public boxPreSaleStartDate; uint256 public boxPreSaleEndtDate; uint256 public boxPreSalePrice; address[] public boxPreSaleAddresses; uint256 public boxPubSaleStartDate; uint256 public boxPubSaleEndtDate; uint256 public boxPubSalePrice; uint256 public create_fee_co2; uint256 public legendary_count; uint256 public epic_count; uint256 public rare_count; uint256 public common_count; uint256 public total_nft_count; string[] public legendary_images; string[] public epic_images; string[] public rare_images; string[] public common_images; struct Image_range { uint256 start_index; uint256 end_index; string image; } Image_range[] private nftImages; address public manager; // developer address modifier onlyManager() { require(msg.sender == manager, "auction: wrong manager contract"); _; } function changeManager(address _newManager) public onlyManager { manager = _newManager; } constructor() public { } function initialize() public initializer { __ERC1155_init(""); manager = msg.sender; } /* common fee: 0.1 tco2 rare fee: 1 tco2 epic fee: 10 tco2 legendary fee: 100 tco2 */ function setFeeAndNFTCounts( uint256 _fee_co2, uint256 _legendary_count, string[] memory _legandery_images, uint256 _epic_count, string[] memory _epic_images, uint256 _rare_count, string[] memory _rare_images, uint256 _common_count, string[] memory _common_images ) public { uint256 max_co2 = (_common_count / 10) + _rare_count + (_epic_count * 10) + (_legendary_count * 100); require( _fee_co2 >= max_co2, "CyberBox Fee is less than limitation." ); create_fee_co2 = _fee_co2; legendary_count = _legendary_count; epic_count = _epic_count; rare_count = _rare_count; common_count = _common_count; total_nft_count = legendary_count + epic_count + rare_count + common_count; legendary_images = _legandery_images; epic_images = _epic_images; rare_images = _rare_images; common_images = _common_images; uint256 start_index = 0; setTypeImage(start_index, legendary_count, legendary_images); start_index = start_index + legendary_count; setTypeImage(start_index, epic_count, epic_images); start_index = start_index + epic_count; setTypeImage(start_index, rare_count, rare_images); start_index = start_index + rare_count; setTypeImage(start_index, common_count, common_images); start_index = start_index + common_count; } function getBoxNFTCount() public view returns(uint256){ return total_nft_count; } function setTypeImage(uint256 startIndex, uint256 imageCount, string[] memory images) private { uint256 start_index = startIndex; uint256 part_count = uint256(imageCount / images.length); for(uint256 i=0;i<images.length;i++){ uint256 st_id = start_index + part_count * i; uint256 ed_id = st_id + part_count; Image_range memory range = Image_range(st_id , ed_id, legendary_images[i]); nftImages.push(range); start_index = start_index + part_count; } nftImages[nftImages.length].end_index = imageCount; } function getBoxNFTImages() public view returns (Image_range[] memory){ return nftImages; } function getNFTImage(uint256 index) public returns (string memory) { string memory image; for(uint256 i=0;i<nftImages.length;i++){ Image_range memory range = nftImages[i]; if(index >= range.start_index && index <= range.end_index){ image = range.image; } } return image; } function setCyberBoxTitle( string memory _name, string memory _description, string memory _aboutAutor, string memory _image, string memory _coverImage, uint256 royalty ) public { boxName = _name; boxDescription = _description; boxAboutAutor = _aboutAutor; boxImage = _image; boxCoverImage = _coverImage; boxRoyalty = royalty; } function setPreSaleInfo( uint256 _preSale_st_date, uint256 _preSale_ed_date, uint256 _preSale_price, address[] memory _preSale_addresses ) public { hasPreSale = true; boxPreSaleStartDate = _preSale_st_date; boxPreSaleEndtDate = _preSale_ed_date; boxPreSalePrice = _preSale_price; boxPreSaleAddresses = _preSale_addresses; } function setSaleInfo( uint256 _sale_st_date, uint256 _sele_ed_date, uint256 _sale_price ) public { boxPubSaleStartDate = _sale_st_date; boxPubSaleEndtDate = _sele_ed_date; boxPubSalePrice = _sale_price; } function setLinkedCollection(address _collection) public{linkedCollection = _collection;} function getLinkedCollection() public view returns (address) {return linkedCollection;} function setLinkedNFT(address _nft) public{linkedNFT = _nft;} function getLinkedNFT() public view returns(address) {return linkedNFT;} }
/_openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/ContextUpgradeable.sol"; import "../proxy/utils/Initializable.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 OwnableUpgradeable is Initializable, ContextUpgradeable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ function __Ownable_init() internal onlyInitializing { __Ownable_init_unchained(); } function __Ownable_init_unchained() internal onlyInitializing { _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); } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[49] private __gap; }
/_openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0-rc.1) (proxy/utils/Initializable.sol) pragma solidity ^0.8.2; import "../../utils/AddressUpgradeable.sol"; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in * case an upgrade adds a module that needs to be initialized. * * For example: * * [.hljs-theme-light.nopadding] * ``` * contract MyToken is ERC20Upgradeable { * function initialize() initializer public { * __ERC20_init("MyToken", "MTK"); * } * } * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable { * function initializeV2() reinitializer(2) public { * __ERC20Permit_init("MyToken"); * } * } * ``` * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. * * [CAUTION] * ==== * Avoid leaving a contract uninitialized. * * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed: * * [.hljs-theme-light.nopadding] * ``` * /// @custom:oz-upgrades-unsafe-allow constructor * constructor() { * _disableInitializers(); * } * ``` * ==== */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. * @custom:oz-retyped-from bool */ uint8 private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Triggered when the contract has been initialized or reinitialized. */ event Initialized(uint8 version); /** * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope, * `onlyInitializing` functions can be used to initialize parent contracts. * * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a * constructor. * * Emits an {Initialized} event. */ modifier initializer() { bool isTopLevelCall = !_initializing; require( (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1), "Initializable: contract is already initialized" ); _initialized = 1; if (isTopLevelCall) { _initializing = true; } _; if (isTopLevelCall) { _initializing = false; emit Initialized(1); } } /** * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be * used to initialize parent contracts. * * A reinitializer may be used after the original initialization step. This is essential to configure modules that * are added through upgrades and that require initialization. * * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer` * cannot be nested. If one is invoked in the context of another, execution will revert. * * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in * a contract, executing them in the right order is up to the developer or operator. * * WARNING: setting the version to 255 will prevent any future reinitialization. * * Emits an {Initialized} event. */ modifier reinitializer(uint8 version) { require(!_initializing && _initialized < version, "Initializable: contract is already initialized"); _initialized = version; _initializing = true; _; _initializing = false; emit Initialized(version); } /** * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the * {initializer} and {reinitializer} modifiers, directly or indirectly. */ modifier onlyInitializing() { require(_initializing, "Initializable: contract is not initializing"); _; } /** * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call. * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized * to any version. It is recommended to use this to lock implementation contracts that are designed to be called * through proxies. * * Emits an {Initialized} event the first time it is successfully executed. */ function _disableInitializers() internal virtual { require(!_initializing, "Initializable: contract is initializing"); if (_initialized < type(uint8).max) { _initialized = type(uint8).max; emit Initialized(type(uint8).max); } } /** * @dev Internal function that returns the initialized version. Returns `_initialized` */ function _getInitializedVersion() internal view returns (uint8) { return _initialized; } /** * @dev Internal function that returns the initialized version. Returns `_initializing` */ function _isInitializing() internal view returns (bool) { return _initializing; } }
/_openzeppelin/contracts-upgradeable/token/ERC1155/ERC1155Upgradeable.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0-rc.1) (token/ERC1155/ERC1155.sol) pragma solidity ^0.8.0; import "./IERC1155Upgradeable.sol"; import "./IERC1155ReceiverUpgradeable.sol"; import "./extensions/IERC1155MetadataURIUpgradeable.sol"; import "../../utils/AddressUpgradeable.sol"; import "../../utils/ContextUpgradeable.sol"; import "../../utils/introspection/ERC165Upgradeable.sol"; import "../../proxy/utils/Initializable.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 ERC1155Upgradeable is Initializable, ContextUpgradeable, ERC165Upgradeable, IERC1155Upgradeable, IERC1155MetadataURIUpgradeable { using AddressUpgradeable 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}. */ function __ERC1155_init(string memory uri_) internal onlyInitializing { __ERC1155_init_unchained(uri_); } function __ERC1155_init_unchained(string memory uri_) internal onlyInitializing { _setURI(uri_); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165Upgradeable, IERC165Upgradeable) returns (bool) { return interfaceId == type(IERC1155Upgradeable).interfaceId || interfaceId == type(IERC1155MetadataURIUpgradeable).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 or 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 or 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 IERC1155ReceiverUpgradeable(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) { if (response != IERC1155ReceiverUpgradeable.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 IERC1155ReceiverUpgradeable(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns ( bytes4 response ) { if (response != IERC1155ReceiverUpgradeable.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; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[47] private __gap; }
/_openzeppelin/contracts-upgradeable/token/ERC1155/IERC1155ReceiverUpgradeable.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165Upgradeable.sol"; /** * @dev _Available since v3.1._ */ interface IERC1155ReceiverUpgradeable is IERC165Upgradeable { /** * @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); }
/_openzeppelin/contracts-upgradeable/token/ERC1155/IERC1155Upgradeable.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/IERC1155.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165Upgradeable.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 IERC1155Upgradeable is IERC165Upgradeable { /** * @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; }
/_openzeppelin/contracts-upgradeable/token/ERC1155/extensions/IERC1155MetadataURIUpgradeable.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol) pragma solidity ^0.8.0; import "../IERC1155Upgradeable.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 IERC1155MetadataURIUpgradeable is IERC1155Upgradeable { /** * @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); }
/_openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0-rc.1) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library AddressUpgradeable { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
/_openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; import "../proxy/utils/Initializable.sol"; /** * @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 ContextUpgradeable is Initializable { function __Context_init() internal onlyInitializing { } function __Context_init_unchained() internal onlyInitializing { } function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; }
/_openzeppelin/contracts-upgradeable/utils/introspection/ERC165Upgradeable.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165Upgradeable.sol"; import "../../proxy/utils/Initializable.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 ERC165Upgradeable is Initializable, IERC165Upgradeable { function __ERC165_init() internal onlyInitializing { } function __ERC165_init_unchained() internal onlyInitializing { } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165Upgradeable).interfaceId; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; }
/_openzeppelin/contracts-upgradeable/utils/introspection/IERC165Upgradeable.sol
// 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 IERC165Upgradeable { /** * @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); }
Contract ABI
[{"type":"constructor","stateMutability":"nonpayable","inputs":[]},{"type":"event","name":"ApprovalForAll","inputs":[{"type":"address","name":"account","internalType":"address","indexed":true},{"type":"address","name":"operator","internalType":"address","indexed":true},{"type":"bool","name":"approved","internalType":"bool","indexed":false}],"anonymous":false},{"type":"event","name":"Initialized","inputs":[{"type":"uint8","name":"version","internalType":"uint8","indexed":false}],"anonymous":false},{"type":"event","name":"TransferBatch","inputs":[{"type":"address","name":"operator","internalType":"address","indexed":true},{"type":"address","name":"from","internalType":"address","indexed":true},{"type":"address","name":"to","internalType":"address","indexed":true},{"type":"uint256[]","name":"ids","internalType":"uint256[]","indexed":false},{"type":"uint256[]","name":"values","internalType":"uint256[]","indexed":false}],"anonymous":false},{"type":"event","name":"TransferSingle","inputs":[{"type":"address","name":"operator","internalType":"address","indexed":true},{"type":"address","name":"from","internalType":"address","indexed":true},{"type":"address","name":"to","internalType":"address","indexed":true},{"type":"uint256","name":"id","internalType":"uint256","indexed":false},{"type":"uint256","name":"value","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"URI","inputs":[{"type":"string","name":"value","internalType":"string","indexed":false},{"type":"uint256","name":"id","internalType":"uint256","indexed":true}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"balanceOf","inputs":[{"type":"address","name":"account","internalType":"address"},{"type":"uint256","name":"id","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256[]","name":"","internalType":"uint256[]"}],"name":"balanceOfBatch","inputs":[{"type":"address[]","name":"accounts","internalType":"address[]"},{"type":"uint256[]","name":"ids","internalType":"uint256[]"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"boxAboutAutor","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"boxCoverImage","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"boxDescription","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"boxImage","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"boxName","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"boxPreSaleAddresses","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"boxPreSaleEndtDate","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"boxPreSalePrice","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"boxPreSaleStartDate","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"boxPubSaleEndtDate","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"boxPubSalePrice","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"boxPubSaleStartDate","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"boxRoyalty","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"changeManager","inputs":[{"type":"address","name":"_newManager","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"common_count","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"common_images","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"create_fee_co2","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"epic_count","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"epic_images","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getBoxNFTCount","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"tuple[]","name":"","internalType":"struct CyberBoxNFTBox.Image_range[]","components":[{"type":"uint256","name":"start_index","internalType":"uint256"},{"type":"uint256","name":"end_index","internalType":"uint256"},{"type":"string","name":"image","internalType":"string"}]}],"name":"getBoxNFTImages","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"getLinkedCollection","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"getLinkedNFT","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"getNFTImage","inputs":[{"type":"uint256","name":"index","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"hasPreSale","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"initialize","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isApprovedForAll","inputs":[{"type":"address","name":"account","internalType":"address"},{"type":"address","name":"operator","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"legendary_count","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"legendary_images","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"linkedCollection","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"linkedNFT","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"manager","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"rare_count","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"rare_images","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"safeBatchTransferFrom","inputs":[{"type":"address","name":"from","internalType":"address"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256[]","name":"ids","internalType":"uint256[]"},{"type":"uint256[]","name":"amounts","internalType":"uint256[]"},{"type":"bytes","name":"data","internalType":"bytes"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"safeTransferFrom","inputs":[{"type":"address","name":"from","internalType":"address"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"id","internalType":"uint256"},{"type":"uint256","name":"amount","internalType":"uint256"},{"type":"bytes","name":"data","internalType":"bytes"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setApprovalForAll","inputs":[{"type":"address","name":"operator","internalType":"address"},{"type":"bool","name":"approved","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setCyberBoxTitle","inputs":[{"type":"string","name":"_name","internalType":"string"},{"type":"string","name":"_description","internalType":"string"},{"type":"string","name":"_aboutAutor","internalType":"string"},{"type":"string","name":"_image","internalType":"string"},{"type":"string","name":"_coverImage","internalType":"string"},{"type":"uint256","name":"royalty","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setFeeAndNFTCounts","inputs":[{"type":"uint256","name":"_fee_co2","internalType":"uint256"},{"type":"uint256","name":"_legendary_count","internalType":"uint256"},{"type":"string[]","name":"_legandery_images","internalType":"string[]"},{"type":"uint256","name":"_epic_count","internalType":"uint256"},{"type":"string[]","name":"_epic_images","internalType":"string[]"},{"type":"uint256","name":"_rare_count","internalType":"uint256"},{"type":"string[]","name":"_rare_images","internalType":"string[]"},{"type":"uint256","name":"_common_count","internalType":"uint256"},{"type":"string[]","name":"_common_images","internalType":"string[]"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setLinkedCollection","inputs":[{"type":"address","name":"_collection","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setLinkedNFT","inputs":[{"type":"address","name":"_nft","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setPreSaleInfo","inputs":[{"type":"uint256","name":"_preSale_st_date","internalType":"uint256"},{"type":"uint256","name":"_preSale_ed_date","internalType":"uint256"},{"type":"uint256","name":"_preSale_price","internalType":"uint256"},{"type":"address[]","name":"_preSale_addresses","internalType":"address[]"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setSaleInfo","inputs":[{"type":"uint256","name":"_sale_st_date","internalType":"uint256"},{"type":"uint256","name":"_sele_ed_date","internalType":"uint256"},{"type":"uint256","name":"_sale_price","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"supportsInterface","inputs":[{"type":"bytes4","name":"interfaceId","internalType":"bytes4"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"total_nft_count","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"uri","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]}]
Deployed ByteCode
0x608060405234801561001057600080fd5b506004361061029f5760003560e01c806386e0e8c211610167578063b6fdf7d3116100ce578063e227a24311610087578063e227a2431461080c578063e985e9c51461082a578063ecc27df91461085a578063f242432a14610878578063f3034ece14610894578063f415187b146108c45761029f565b8063b6fdf7d314610748578063bfe3969814610766578063c8d031ed14610796578063cdda4170146107b2578063d71f3c27146107d0578063d736cbc2146107ee5761029f565b8063a22cb46511610120578063a22cb46514610698578063a3fbbaae146106b4578063ab1ef542146106d0578063b2011d28146106ee578063b2b59a221461070c578063b36425741461072a5761029f565b806386e0e8c2146105d6578063880510e7146105f45780638ac7dd7c14610612578063909ef2d71461064257806396a2e9a41461065e5780639a5304191461067a5761029f565b806333532ae11161020b5780634f5a016e116101c45780634f5a016e146105385780636a91bfff1461055657806374913fb9146105725780637c673a37146105905780638129fc1c146105ae57806384391ea6146105b85761029f565b806333532ae114610474578063354f8bec1461049257806343c50b0f146104b0578063481c6a75146104cc57806349432260146104ea5780634e1273f4146105085761029f565b806316d6ffaf1161025d57806316d6ffaf146103b25780631a727448146103e2578063237728ee146103fe57806327c845d31461041c578063289b7de71461043a5780632eb2c2d6146104585761029f565b8062fdd58e146102a457806301ffc9a7146102d457806302c3bfc21461030457806305e497e8146103345780630e89341c146103645780630f408dab14610394575b600080fd5b6102be60048036038101906102b9919061373d565b6108e2565b6040516102cb91906142ad565b60405180910390f35b6102ee60048036038101906102e991906137e5565b6109ac565b6040516102fb91906140b5565b60405180910390f35b61031e60048036038101906103199190613938565b610a8e565b60405161032b91906140eb565b60405180910390f35b61034e60048036038101906103499190613938565b610b3a565b60405161035b9190613f5d565b60405180910390f35b61037e60048036038101906103799190613938565b610b79565b60405161038b91906140eb565b60405180910390f35b61039c610c0d565b6040516103a991906140eb565b60405180910390f35b6103cc60048036038101906103c79190613938565b610c9b565b6040516103d991906140eb565b60405180910390f35b6103fc60048036038101906103f79190613ad6565b610d47565b005b610406610d94565b60405161041391906142ad565b60405180910390f35b610424610d9a565b60405161043191906140eb565b60405180910390f35b610442610e28565b60405161044f91906142ad565b60405180910390f35b610472600480360381019061046d91906135b3565b610e2e565b005b61047c610ecf565b60405161048991906142ad565b60405180910390f35b61049a610ed5565b6040516104a791906142ad565b60405180910390f35b6104ca60048036038101906104c59190613961565b610edb565b005b6104d46113de565b6040516104e19190613f5d565b60405180910390f35b6104f2611404565b6040516104ff91906142ad565b60405180910390f35b610522600480360381019061051d9190613779565b61140a565b60405161052f919061405c565b60405180910390f35b6105406115bb565b60405161054d9190613f5d565b60405180910390f35b610570600480360381019061056b9190613a87565b6115e5565b005b61057a6115ff565b60405161058791906142ad565b60405180910390f35b610598611605565b6040516105a591906142ad565b60405180910390f35b6105b661160b565b005b6105c061179a565b6040516105cd919061403a565b60405180910390f35b6105de61189f565b6040516105eb91906140eb565b60405180910390f35b6105fc61192d565b6040516106099190613f5d565b60405180910390f35b61062c60048036038101906106279190613938565b611953565b60405161063991906140eb565b60405180910390f35b61065c6004803603810190610657919061354e565b6119ff565b005b6106786004803603810190610673919061354e565b611a43565b005b610682611a87565b60405161068f91906140eb565b60405180910390f35b6106b260048036038101906106ad9190613701565b611b15565b005b6106ce60048036038101906106c9919061354e565b611b2b565b005b6106d8611bff565b6040516106e59190613f5d565b60405180910390f35b6106f6611c25565b60405161070391906142ad565b60405180910390f35b610714611c2b565b60405161072191906142ad565b60405180910390f35b610732611c31565b60405161073f91906140b5565b60405180910390f35b610750611c44565b60405161075d9190613f5d565b60405180910390f35b610780600480360381019061077b9190613938565b611c6e565b60405161078d91906140eb565b60405180910390f35b6107b060048036038101906107ab9190613837565b611dc1565b005b6107ba611e43565b6040516107c791906142ad565b60405180910390f35b6107d8611e4d565b6040516107e591906142ad565b60405180910390f35b6107f6611e53565b60405161080391906140eb565b60405180910390f35b610814611ee1565b60405161082191906142ad565b60405180910390f35b610844600480360381019061083f9190613577565b611ee7565b60405161085191906140b5565b60405180910390f35b610862611f7b565b60405161086f91906142ad565b60405180910390f35b610892600480360381019061088d9190613672565b611f81565b005b6108ae60048036038101906108a99190613938565b612022565b6040516108bb91906140eb565b60405180910390f35b6108cc6120ce565b6040516108d991906142ad565b60405180910390f35b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610953576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161094a9061416d565b60405180910390fd5b6065600083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60007fd9b67a26000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610a7757507f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610a875750610a86826120d4565b5b9050919050565b60b08181548110610a9e57600080fd5b906000526020600020016000915090508054610ab99061466d565b80601f0160208091040260200160405190810160405280929190818152602001828054610ae59061466d565b8015610b325780601f10610b0757610100808354040283529160200191610b32565b820191906000526020600020905b815481529060010190602001808311610b1557829003601f168201915b505050505081565b60a38181548110610b4a57600080fd5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b606060678054610b889061466d565b80601f0160208091040260200160405190810160405280929190818152602001828054610bb49061466d565b8015610c015780601f10610bd657610100808354040283529160200191610c01565b820191906000526020600020905b815481529060010190602001808311610be457829003601f168201915b50505050509050919050565b609b8054610c1a9061466d565b80601f0160208091040260200160405190810160405280929190818152602001828054610c469061466d565b8015610c935780601f10610c6857610100808354040283529160200191610c93565b820191906000526020600020905b815481529060010190602001808311610c7657829003601f168201915b505050505081565b60ae8181548110610cab57600080fd5b906000526020600020016000915090508054610cc69061466d565b80601f0160208091040260200160405190810160405280929190818152602001828054610cf29061466d565b8015610d3f5780601f10610d1457610100808354040283529160200191610d3f565b820191906000526020600020905b815481529060010190602001808311610d2257829003601f168201915b505050505081565b6001609f60006101000a81548160ff0219169083151502179055508360a0819055508260a1819055508160a2819055508060a39080519060200190610d8d929190613071565b5050505050565b60a65481565b609c8054610da79061466d565b80601f0160208091040260200160405190810160405280929190818152602001828054610dd39061466d565b8015610e205780601f10610df557610100808354040283529160200191610e20565b820191906000526020600020905b815481529060010190602001808311610e0357829003601f168201915b505050505081565b60ab5481565b610e3661213e565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480610e7c5750610e7b85610e7661213e565b611ee7565b5b610ebb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eb29061418d565b60405180910390fd5b610ec88585858585612146565b5050505050565b609e5481565b60a25481565b6000606489610eea919061453e565b600a88610ef7919061453e565b86600a86610f05919061450d565b610f0f91906144b7565b610f1991906144b7565b610f2391906144b7565b9050808a1015610f68576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f5f9061412d565b60405180910390fd5b8960a7819055508860a8819055508660a9819055508460aa819055508260ab8190555060ab5460aa5460a95460a854610fa191906144b7565b610fab91906144b7565b610fb591906144b7565b60ac819055508760ad9080519060200190610fd19291906130fb565b508560ae9080519060200190610fe89291906130fb565b508360af9080519060200190610fff9291906130fb565b508160b090805190602001906110169291906130fb565b5060006110f78160a85460ad805480602002602001604051908101604052809291908181526020016000905b828210156110ee5783829060005260206000200180546110619061466d565b80601f016020809104026020016040519081016040528092919081815260200182805461108d9061466d565b80156110da5780601f106110af576101008083540402835291602001916110da565b820191906000526020600020905b8154815290600101906020018083116110bd57829003601f168201915b505050505081526020019060010190611042565b505050506124b7565b60a8548161110591906144b7565b90506111e58160a95460ae805480602002602001604051908101604052809291908181526020016000905b828210156111dc57838290600052602060002001805461114f9061466d565b80601f016020809104026020016040519081016040528092919081815260200182805461117b9061466d565b80156111c85780601f1061119d576101008083540402835291602001916111c8565b820191906000526020600020905b8154815290600101906020018083116111ab57829003601f168201915b505050505081526020019060010190611130565b505050506124b7565b60a954816111f391906144b7565b90506112d38160aa5460af805480602002602001604051908101604052809291908181526020016000905b828210156112ca57838290600052602060002001805461123d9061466d565b80601f01602080910402602001604051908101604052809291908181526020018280546112699061466d565b80156112b65780601f1061128b576101008083540402835291602001916112b6565b820191906000526020600020905b81548152906001019060200180831161129957829003601f168201915b50505050508152602001906001019061121e565b505050506124b7565b60aa54816112e191906144b7565b90506113c18160ab5460b0805480602002602001604051908101604052809291908181526020016000905b828210156113b857838290600052602060002001805461132b9061466d565b80601f01602080910402602001604051908101604052809291908181526020018280546113579061466d565b80156113a45780601f10611379576101008083540402835291602001916113a4565b820191906000526020600020905b81548152906001019060200180831161138757829003601f168201915b50505050508152602001906001019061130c565b505050506124b7565b60ab54816113cf91906144b7565b90505050505050505050505050565b60b260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60a05481565b60608151835114611450576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114479061424d565b60405180910390fd5b6000835167ffffffffffffffff811115611493577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280602002602001820160405280156114c15781602001602082028036833780820191505090505b50905060005b84518110156115b05761155a85828151811061150c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015185838151811061154d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101516108e2565b828281518110611593577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001018181525050806115a9906146d0565b90506114c7565b508091505092915050565b6000609760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b8260a4819055508160a5819055508060a681905550505050565b60a55481565b60ac5481565b60008060019054906101000a900460ff1615905080801561163c5750600160008054906101000a900460ff1660ff16105b80611669575061164b306126ce565b1580156116685750600160008054906101000a900460ff1660ff16145b5b6116a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161169f906141cd565b60405180910390fd5b60016000806101000a81548160ff021916908360ff16021790555080156116e5576001600060016101000a81548160ff0219169083151502179055505b6116fd604051806020016040528060008152506126f1565b3360b260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080156117975760008060016101000a81548160ff0219169083151502179055507f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498600160405161178e91906140d0565b60405180910390a15b50565b606060b1805480602002602001604051908101604052809291908181526020016000905b82821015611896578382906000526020600020906003020160405180606001604052908160008201548152602001600182015481526020016002820180546118059061466d565b80601f01602080910402602001604051908101604052809291908181526020018280546118319061466d565b801561187e5780601f106118535761010080835404028352916020019161187e565b820191906000526020600020905b81548152906001019060200180831161186157829003601f168201915b505050505081525050815260200190600101906117be565b50505050905090565b609a80546118ac9061466d565b80601f01602080910402602001604051908101604052809291908181526020018280546118d89061466d565b80156119255780601f106118fa57610100808354040283529160200191611925565b820191906000526020600020905b81548152906001019060200180831161190857829003601f168201915b505050505081565b609760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60ad818154811061196357600080fd5b90600052602060002001600091509050805461197e9061466d565b80601f01602080910402602001604051908101604052809291908181526020018280546119aa9061466d565b80156119f75780601f106119cc576101008083540402835291602001916119f7565b820191906000526020600020905b8154815290600101906020018083116119da57829003601f168201915b505050505081565b80609860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b80609760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60998054611a949061466d565b80601f0160208091040260200160405190810160405280929190818152602001828054611ac09061466d565b8015611b0d5780601f10611ae257610100808354040283529160200191611b0d565b820191906000526020600020905b815481529060010190602001808311611af057829003601f168201915b505050505081565b611b27611b2061213e565b838361274c565b5050565b60b260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611bbb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bb29061414d565b60405180910390fd5b8060b260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b609860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60a15481565b60a95481565b609f60009054906101000a900460ff1681565b6000609860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60608060005b60b180549050811015611db757600060b18281548110611cbd577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002090600302016040518060600160405290816000820154815260200160018201548152602001600282018054611cfa9061466d565b80601f0160208091040260200160405190810160405280929190818152602001828054611d269061466d565b8015611d735780601f10611d4857610100808354040283529160200191611d73565b820191906000526020600020905b815481529060010190602001808311611d5657829003601f168201915b505050505081525050905080600001518510158015611d96575080602001518511155b15611da357806040015192505b508080611daf906146d0565b915050611c74565b5080915050919050565b8560999080519060200190611dd792919061315b565b5084609a9080519060200190611dee92919061315b565b5083609b9080519060200190611e0592919061315b565b5082609c9080519060200190611e1c92919061315b565b5081609d9080519060200190611e3392919061315b565b5080609e81905550505050505050565b600060ac54905090565b60a45481565b609d8054611e609061466d565b80601f0160208091040260200160405190810160405280929190818152602001828054611e8c9061466d565b8015611ed95780601f10611eae57610100808354040283529160200191611ed9565b820191906000526020600020905b815481529060010190602001808311611ebc57829003601f168201915b505050505081565b60aa5481565b6000606660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60a75481565b611f8961213e565b73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161480611fcf5750611fce85611fc961213e565b611ee7565b5b61200e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120059061418d565b60405180910390fd5b61201b85858585856128b9565b5050505050565b60af818154811061203257600080fd5b90600052602060002001600091509050805461204d9061466d565b80601f01602080910402602001604051908101604052809291908181526020018280546120799061466d565b80156120c65780601f1061209b576101008083540402835291602001916120c6565b820191906000526020600020905b8154815290600101906020018083116120a957829003601f168201915b505050505081565b60a85481565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b815183511461218a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121819061426d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156121fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121f1906141ad565b60405180910390fd5b600061220461213e565b9050612214818787878787612b58565b60005b845181101561241457600085828151811061225b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151905060008583815181106122a0577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151905060006065600084815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015612342576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612339906141ed565b60405180910390fd5b8181036065600085815260200190815260200160002060008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816065600085815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546123f991906144b7565b925050819055505050508061240d906146d0565b9050612217565b508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb878760405161248b92919061407e565b60405180910390a46124a1818787878787612b60565b6124af818787878787612b68565b505050505050565b600083905060008251846124cb919061450d565b905060005b835181101561267257600081836124e7919061453e565b846124f291906144b7565b90506000838261250291906144b7565b90506000604051806060016040528084815260200183815260200160ad8681548110612557577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001805461256c9061466d565b80601f01602080910402602001604051908101604052809291908181526020018280546125989061466d565b80156125e55780601f106125ba576101008083540402835291602001916125e5565b820191906000526020600020905b8154815290600101906020018083116125c857829003601f168201915b5050505050815250905060b18190806001815401808255809150506001900390600052602060002090600302016000909190919091506000820151816000015560208201518160010155604082015181600201908051906020019061264b92919061315b565b505050848661265a91906144b7565b9550505050808061266a906146d0565b9150506124d0565b508360b18080549050815481106126b2577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000209060030201600101819055505050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600060019054906101000a900460ff16612740576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127379061420d565b60405180910390fd5b61274981612d4f565b50565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156127bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127b29061422d565b60405180910390fd5b80606660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516128ac91906140b5565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612929576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612920906141ad565b60405180910390fd5b600061293361213e565b9050600061294085612daa565b9050600061294d85612daa565b905061295d838989858589612b58565b60006065600088815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050858110156129f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129ec906141ed565b60405180910390fd5b8581036065600089815260200190815260200160002060008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550856065600089815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612aac91906144b7565b925050819055508773ffffffffffffffffffffffffffffffffffffffff168973ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628a8a604051612b299291906142c8565b60405180910390a4612b3f848a8a86868a612b60565b612b4d848a8a8a8a8a612e70565b505050505050505050565b505050505050565b505050505050565b612b878473ffffffffffffffffffffffffffffffffffffffff166126ce565b15612d47578373ffffffffffffffffffffffffffffffffffffffff1663bc197c8187878686866040518663ffffffff1660e01b8152600401612bcd959493929190613f78565b602060405180830381600087803b158015612be757600080fd5b505af1925050508015612c1857506040513d601f19601f82011682018060405250810190612c15919061380e565b60015b612cbe57612c246147d5565b806308c379a01415612c815750612c39614bf2565b80612c445750612c83565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c7891906140eb565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cb59061428d565b60405180910390fd5b63bc197c8160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612d45576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d3c9061410d565b60405180910390fd5b505b505050505050565b600060019054906101000a900460ff16612d9e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d959061420d565b60405180910390fd5b612da781613057565b50565b60606000600167ffffffffffffffff811115612def577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051908082528060200260200182016040528015612e1d5781602001602082028036833780820191505090505b5090508281600081518110612e5b577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101818152505080915050919050565b612e8f8473ffffffffffffffffffffffffffffffffffffffff166126ce565b1561304f578373ffffffffffffffffffffffffffffffffffffffff1663f23a6e6187878686866040518663ffffffff1660e01b8152600401612ed5959493929190613fe0565b602060405180830381600087803b158015612eef57600080fd5b505af1925050508015612f2057506040513d601f19601f82011682018060405250810190612f1d919061380e565b60015b612fc657612f2c6147d5565b806308c379a01415612f895750612f41614bf2565b80612f4c5750612f8b565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f8091906140eb565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fbd9061428d565b60405180910390fd5b63f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161461304d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130449061410d565b60405180910390fd5b505b505050505050565b806067908051906020019061306d92919061315b565b5050565b8280548282559060005260206000209081019282156130ea579160200282015b828111156130e95782518260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555091602001919060010190613091565b5b5090506130f791906131e1565b5090565b82805482825590600052602060002090810192821561314a579160200282015b8281111561314957825182908051906020019061313992919061315b565b509160200191906001019061311b565b5b50905061315791906131fe565b5090565b8280546131679061466d565b90600052602060002090601f01602090048101928261318957600085556131d0565b82601f106131a257805160ff19168380011785556131d0565b828001600101855582156131d0579182015b828111156131cf5782518255916020019190600101906131b4565b5b5090506131dd91906131e1565b5090565b5b808211156131fa5760008160009055506001016131e2565b5090565b5b8082111561321e57600081816132159190613222565b506001016131ff565b5090565b50805461322e9061466d565b6000825580601f10613240575061325f565b601f01602090049060005260206000209081019061325e91906131e1565b5b50565b600061327561327084614316565b6142f1565b9050808382526020820190508285602086028201111561329457600080fd5b60005b858110156132c457816132aa8882613413565b845260208401935060208301925050600181019050613297565b5050509392505050565b60006132e16132dc84614342565b6142f1565b9050808382526020820190508260005b858110156133215781358501613307888261350f565b8452602084019350602083019250506001810190506132f1565b5050509392505050565b600061333e6133398461436e565b6142f1565b9050808382526020820190508285602086028201111561335d57600080fd5b60005b8581101561338d57816133738882613539565b845260208401935060208301925050600181019050613360565b5050509392505050565b60006133aa6133a58461439a565b6142f1565b9050828152602081018484840111156133c257600080fd5b6133cd84828561462b565b509392505050565b60006133e86133e3846143cb565b6142f1565b90508281526020810184848401111561340057600080fd5b61340b84828561462b565b509392505050565b60008135905061342281614c88565b92915050565b600082601f83011261343957600080fd5b8135613449848260208601613262565b91505092915050565b600082601f83011261346357600080fd5b81356134738482602086016132ce565b91505092915050565b600082601f83011261348d57600080fd5b813561349d84826020860161332b565b91505092915050565b6000813590506134b581614c9f565b92915050565b6000813590506134ca81614cb6565b92915050565b6000815190506134df81614cb6565b92915050565b600082601f8301126134f657600080fd5b8135613506848260208601613397565b91505092915050565b600082601f83011261352057600080fd5b81356135308482602086016133d5565b91505092915050565b60008135905061354881614ccd565b92915050565b60006020828403121561356057600080fd5b600061356e84828501613413565b91505092915050565b6000806040838503121561358a57600080fd5b600061359885828601613413565b92505060206135a985828601613413565b9150509250929050565b600080600080600060a086880312156135cb57600080fd5b60006135d988828901613413565b95505060206135ea88828901613413565b945050604086013567ffffffffffffffff81111561360757600080fd5b6136138882890161347c565b935050606086013567ffffffffffffffff81111561363057600080fd5b61363c8882890161347c565b925050608086013567ffffffffffffffff81111561365957600080fd5b613665888289016134e5565b9150509295509295909350565b600080600080600060a0868803121561368a57600080fd5b600061369888828901613413565b95505060206136a988828901613413565b94505060406136ba88828901613539565b93505060606136cb88828901613539565b925050608086013567ffffffffffffffff8111156136e857600080fd5b6136f4888289016134e5565b9150509295509295909350565b6000806040838503121561371457600080fd5b600061372285828601613413565b9250506020613733858286016134a6565b9150509250929050565b6000806040838503121561375057600080fd5b600061375e85828601613413565b925050602061376f85828601613539565b9150509250929050565b6000806040838503121561378c57600080fd5b600083013567ffffffffffffffff8111156137a657600080fd5b6137b285828601613428565b925050602083013567ffffffffffffffff8111156137cf57600080fd5b6137db8582860161347c565b9150509250929050565b6000602082840312156137f757600080fd5b6000613805848285016134bb565b91505092915050565b60006020828403121561382057600080fd5b600061382e848285016134d0565b91505092915050565b60008060008060008060c0878903121561385057600080fd5b600087013567ffffffffffffffff81111561386a57600080fd5b61387689828a0161350f565b965050602087013567ffffffffffffffff81111561389357600080fd5b61389f89828a0161350f565b955050604087013567ffffffffffffffff8111156138bc57600080fd5b6138c889828a0161350f565b945050606087013567ffffffffffffffff8111156138e557600080fd5b6138f189828a0161350f565b935050608087013567ffffffffffffffff81111561390e57600080fd5b61391a89828a0161350f565b92505060a061392b89828a01613539565b9150509295509295509295565b60006020828403121561394a57600080fd5b600061395884828501613539565b91505092915050565b60008060008060008060008060006101208a8c03121561398057600080fd5b600061398e8c828d01613539565b995050602061399f8c828d01613539565b98505060408a013567ffffffffffffffff8111156139bc57600080fd5b6139c88c828d01613452565b97505060606139d98c828d01613539565b96505060808a013567ffffffffffffffff8111156139f657600080fd5b613a028c828d01613452565b95505060a0613a138c828d01613539565b94505060c08a013567ffffffffffffffff811115613a3057600080fd5b613a3c8c828d01613452565b93505060e0613a4d8c828d01613539565b9250506101008a013567ffffffffffffffff811115613a6b57600080fd5b613a778c828d01613452565b9150509295985092959850929598565b600080600060608486031215613a9c57600080fd5b6000613aaa86828701613539565b9350506020613abb86828701613539565b9250506040613acc86828701613539565b9150509250925092565b60008060008060808587031215613aec57600080fd5b6000613afa87828801613539565b9450506020613b0b87828801613539565b9350506040613b1c87828801613539565b925050606085013567ffffffffffffffff811115613b3957600080fd5b613b4587828801613428565b91505092959194509250565b6000613b5d8383613eef565b905092915050565b6000613b718383613f3f565b60208301905092915050565b613b8681614598565b82525050565b6000613b978261441c565b613ba18185614462565b935083602082028501613bb3856143fc565b8060005b85811015613bef5784840389528151613bd08582613b51565b9450613bdb83614448565b925060208a01995050600181019050613bb7565b50829750879550505050505092915050565b6000613c0c82614427565b613c168185614473565b9350613c218361440c565b8060005b83811015613c52578151613c398882613b65565b9750613c4483614455565b925050600181019050613c25565b5085935050505092915050565b613c68816145aa565b82525050565b6000613c7982614432565b613c838185614484565b9350613c9381856020860161463a565b613c9c816147f7565b840191505092915050565b613cb081614619565b82525050565b6000613cc18261443d565b613ccb8185614495565b9350613cdb81856020860161463a565b613ce4816147f7565b840191505092915050565b6000613cfa8261443d565b613d0481856144a6565b9350613d1481856020860161463a565b613d1d816147f7565b840191505092915050565b6000613d356028836144a6565b9150613d4082614815565b604082019050919050565b6000613d586025836144a6565b9150613d6382614864565b604082019050919050565b6000613d7b601f836144a6565b9150613d86826148b3565b602082019050919050565b6000613d9e602a836144a6565b9150613da9826148dc565b604082019050919050565b6000613dc1602e836144a6565b9150613dcc8261492b565b604082019050919050565b6000613de46025836144a6565b9150613def8261497a565b604082019050919050565b6000613e07602e836144a6565b9150613e12826149c9565b604082019050919050565b6000613e2a602a836144a6565b9150613e3582614a18565b604082019050919050565b6000613e4d602b836144a6565b9150613e5882614a67565b604082019050919050565b6000613e706029836144a6565b9150613e7b82614ab6565b604082019050919050565b6000613e936029836144a6565b9150613e9e82614b05565b604082019050919050565b6000613eb66028836144a6565b9150613ec182614b54565b604082019050919050565b6000613ed96034836144a6565b9150613ee482614ba3565b604082019050919050565b6000606083016000830151613f076000860182613f3f565b506020830151613f1a6020860182613f3f565b5060408301518482036040860152613f328282613cb6565b9150508091505092915050565b613f4881614602565b82525050565b613f5781614602565b82525050565b6000602082019050613f726000830184613b7d565b92915050565b600060a082019050613f8d6000830188613b7d565b613f9a6020830187613b7d565b8181036040830152613fac8186613c01565b90508181036060830152613fc08185613c01565b90508181036080830152613fd48184613c6e565b90509695505050505050565b600060a082019050613ff56000830188613b7d565b6140026020830187613b7d565b61400f6040830186613f4e565b61401c6060830185613f4e565b818103608083015261402e8184613c6e565b90509695505050505050565b600060208201905081810360008301526140548184613b8c565b905092915050565b600060208201905081810360008301526140768184613c01565b905092915050565b600060408201905081810360008301526140988185613c01565b905081810360208301526140ac8184613c01565b90509392505050565b60006020820190506140ca6000830184613c5f565b92915050565b60006020820190506140e56000830184613ca7565b92915050565b600060208201905081810360008301526141058184613cef565b905092915050565b6000602082019050818103600083015261412681613d28565b9050919050565b6000602082019050818103600083015261414681613d4b565b9050919050565b6000602082019050818103600083015261416681613d6e565b9050919050565b6000602082019050818103600083015261418681613d91565b9050919050565b600060208201905081810360008301526141a681613db4565b9050919050565b600060208201905081810360008301526141c681613dd7565b9050919050565b600060208201905081810360008301526141e681613dfa565b9050919050565b6000602082019050818103600083015261420681613e1d565b9050919050565b6000602082019050818103600083015261422681613e40565b9050919050565b6000602082019050818103600083015261424681613e63565b9050919050565b6000602082019050818103600083015261426681613e86565b9050919050565b6000602082019050818103600083015261428681613ea9565b9050919050565b600060208201905081810360008301526142a681613ecc565b9050919050565b60006020820190506142c26000830184613f4e565b92915050565b60006040820190506142dd6000830185613f4e565b6142ea6020830184613f4e565b9392505050565b60006142fb61430c565b9050614307828261469f565b919050565b6000604051905090565b600067ffffffffffffffff821115614331576143306147a6565b5b602082029050602081019050919050565b600067ffffffffffffffff82111561435d5761435c6147a6565b5b602082029050602081019050919050565b600067ffffffffffffffff821115614389576143886147a6565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156143b5576143b46147a6565b5b6143be826147f7565b9050602081019050919050565b600067ffffffffffffffff8211156143e6576143e56147a6565b5b6143ef826147f7565b9050602081019050919050565b6000819050602082019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b60006144c282614602565b91506144cd83614602565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561450257614501614719565b5b828201905092915050565b600061451882614602565b915061452383614602565b92508261453357614532614748565b5b828204905092915050565b600061454982614602565b915061455483614602565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561458d5761458c614719565b5b828202905092915050565b60006145a3826145e2565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b60006146248261460c565b9050919050565b82818337600083830152505050565b60005b8381101561465857808201518184015260208101905061463d565b83811115614667576000848401525b50505050565b6000600282049050600182168061468557607f821691505b6020821081141561469957614698614777565b5b50919050565b6146a8826147f7565b810181811067ffffffffffffffff821117156146c7576146c66147a6565b5b80604052505050565b60006146db82614602565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561470e5761470d614719565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600060033d11156147f45760046000803e6147f1600051614808565b90505b90565b6000601f19601f8301169050919050565b60008160e01c9050919050565b7f455243313135353a204552433131353552656365697665722072656a6563746560008201527f6420746f6b656e73000000000000000000000000000000000000000000000000602082015250565b7f4379626572426f7820466565206973206c657373207468616e206c696d69746160008201527f74696f6e2e000000000000000000000000000000000000000000000000000000602082015250565b7f61756374696f6e3a2077726f6e67206d616e6167657220636f6e747261637400600082015250565b7f455243313135353a2061646472657373207a65726f206973206e6f742061207660008201527f616c6964206f776e657200000000000000000000000000000000000000000000602082015250565b7f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60008201527f6572206f7220617070726f766564000000000000000000000000000000000000602082015250565b7f455243313135353a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b7f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160008201527f647920696e697469616c697a6564000000000000000000000000000000000000602082015250565b7f455243313135353a20696e73756666696369656e742062616c616e636520666f60008201527f72207472616e7366657200000000000000000000000000000000000000000000602082015250565b7f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960008201527f6e697469616c697a696e67000000000000000000000000000000000000000000602082015250565b7f455243313135353a2073657474696e6720617070726f76616c2073746174757360008201527f20666f722073656c660000000000000000000000000000000000000000000000602082015250565b7f455243313135353a206163636f756e747320616e6420696473206c656e67746860008201527f206d69736d617463680000000000000000000000000000000000000000000000602082015250565b7f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060008201527f6d69736d61746368000000000000000000000000000000000000000000000000602082015250565b7f455243313135353a207472616e7366657220746f206e6f6e2d4552433131353560008201527f526563656976657220696d706c656d656e746572000000000000000000000000602082015250565b600060443d1015614c0257614c85565b614c0a61430c565b60043d036004823e80513d602482011167ffffffffffffffff82111715614c32575050614c85565b808201805167ffffffffffffffff811115614c505750505050614c85565b80602083010160043d038501811115614c6d575050505050614c85565b614c7c8260200185018661469f565b82955050505050505b90565b614c9181614598565b8114614c9c57600080fd5b50565b614ca8816145aa565b8114614cb357600080fd5b50565b614cbf816145b6565b8114614cca57600080fd5b50565b614cd681614602565b8114614ce157600080fd5b5056fea2646970667358221220f7037995424ae4dfd12160bb4d3d97d9cac28b07c5f71d00acd1c5a2f009a76564736f6c63430008030033