Address Details
contract
0xF2963e5F9008435ef544E35CB6D1958Be6932a11
- Contract Name
- NFTMarket
- Creator
- 0x7d6740–c9cfce at 0x28cb6a–edceee
- Balance
- 0 CELO ( )
- Locked CELO Balance
- 0.00 CELO
- Voting CELO Balance
- 0.00 CELO
- Pending Unlocked Gold
- 0.00 CELO
- Tokens
-
Fetching tokens...
- Transactions
- Fetching transactions...
- Transfers
- Fetching transfers...
- Gas Used
- Fetching gas used...
- Last Balance Update
- 8964378
This contract has been verified via Sourcify.
View contract in Sourcify repository
- Contract name:
- NFTMarket
- Optimization enabled
- false
- Compiler version
- v0.8.7+commit.e28d00a7
- EVM Version
- london
- Verified at
- 2022-08-19T06:21:44.236659Z
contracts/StarNFTMarket.sol
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol"; import "@openzeppelin/contracts-upgradeable/utils/math/SafeMathUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC721/IERC721Upgradeable.sol"; import "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol"; interface IBonus { function getBonus(uint256 _tokenId) view external returns (uint256); function getlockRatio() view external returns (uint256); } interface INFTLogic { function setBonusToke(uint256 _tokenId,uint256 _amountBonus) external; function getAllTokenId() view external returns (uint256[] memory); function disposeBonusToke(uint256 _tokenId) view external returns (uint256); } contract NFTMarket is OwnableUpgradeable, ReentrancyGuardUpgradeable { using SafeMathUpgradeable for uint256; IERC20Upgradeable public starToken; IERC721Upgradeable public starNFT; address public bonusAddr; uint256 public fee; IBonus private Bonus; INFTLogic private NFTLogic; struct TokenInfo { address owner; uint256 price; } // tokenId => price mapping (uint256 => TokenInfo) public tokenInfo; uint256[] public marketTokens; // tokenid => marketToken Index mapping(uint256 => uint256) public tokensIndex; mapping(address => uint256[]) public userTokens; mapping(address => mapping(uint256 => uint256)) public userTokensIndex; mapping(address => uint256) public userStar; function initialize(address _starToken, address _bonus, address _starNFT, uint256 _fee) public initializer { __starMarket_init(_starToken, _bonus, _starNFT, _fee); } function __starMarket_init(address _starToken, address _bonus, address _starNFT, uint256 _fee) internal initializer { __Ownable_init(); __ReentrancyGuard_init(); __starMarket_init_unchained(_starToken, _bonus, _starNFT, _fee); } function __starMarket_init_unchained(address _starToken, address _bonus, address _starNFT, uint256 _fee) internal initializer { starToken = IERC20Upgradeable(_starToken); starNFT = IERC721Upgradeable(_starNFT); bonusAddr = _bonus; Bonus = IBonus(bonusAddr); fee = _fee; } function _addToken(address _user, uint256 _tokenId) private { marketTokens.push(_tokenId); tokensIndex[_tokenId] = marketTokens.length - 1; userTokens[_user].push(_tokenId); userTokensIndex[_user][_tokenId] = userTokens[_msgSender()].length - 1; } function _removeToken(address _user, uint256 _tokenId) private { uint256 tokenIndex = tokensIndex[_tokenId]; uint256 lastTokenId = marketTokens[marketTokens.length - 1]; marketTokens[tokenIndex] = lastTokenId; tokensIndex[lastTokenId] = tokenIndex; delete tokensIndex[_tokenId]; marketTokens.pop(); uint256 userTokenIndex = userTokensIndex[_user][_tokenId]; uint256 userLastTokenId = userTokens[_user][userTokens[_user].length - 1]; userTokens[_user][userTokenIndex] = userLastTokenId; userTokensIndex[_user][userLastTokenId] = userTokenIndex; delete userTokensIndex[_user][_tokenId]; userTokens[_user].pop(); } function getMarketTokensLength() view public returns (uint256) { return marketTokens.length; } function getUserTokensLength(address _user) view public returns (uint256) { return userTokens[_user].length; } function setTokenSale(uint256 _tokenId, bool _sale, uint256 _price) public { if (_sale) { require(starNFT.ownerOf(_tokenId) == _msgSender(), "not your token"); require(_price > 0, "price not allow 0"); _addToken(_msgSender(), _tokenId); tokenInfo[_tokenId].owner = _msgSender(); tokenInfo[_tokenId].price = _price; starNFT.transferFrom(_msgSender(), address(this), _tokenId); } else { require(tokenInfo[_tokenId].owner == _msgSender(), "not your token"); _removeToken(_msgSender(), _tokenId); tokenInfo[_tokenId].owner = address(0); tokenInfo[_tokenId].price = 0; starNFT.transferFrom(address(this), _msgSender(), _tokenId); } } function purchaseToken(uint256 _tokenId) public nonReentrant { require(_msgSender() != address(0)); require(tokenInfo[_tokenId].owner != address(0), "not sale"); // add fee uint256 _price = tokenInfo[_tokenId].price; starToken.transferFrom(_msgSender(), address(this), _price); uint256 _fee = _price.mul(fee).div(100); starToken.transfer(bonusAddr, _fee); userStar[tokenInfo[_tokenId].owner] = userStar[tokenInfo[_tokenId].owner].add(_price.sub(_fee)); starNFT.transferFrom(address(this), _msgSender(), _tokenId); _removeToken(tokenInfo[_tokenId].owner, _tokenId); uint256 amountBonus = Bonus.getBonus(_tokenId); if(amountBonus > 0){ starToken.transferFrom(_msgSender(), tokenInfo[_tokenId].owner, amountBonus); NFTLogic.setBonusToke(_tokenId,0); } uint256 indexLength = NFTLogic.getAllTokenId().length; if(indexLength > 0){ uint256 lockRatio =Bonus.getlockRatio(); uint256 divAmountBonus = _fee.mul(100 - lockRatio).div(100).mul(1e12).div(indexLength); for(uint256 i = 0;i< indexLength;i++){ uint256 tokenId = NFTLogic.getAllTokenId()[i]; uint256 UserBonusToken = NFTLogic.disposeBonusToke(tokenId); NFTLogic.setBonusToke(tokenId,divAmountBonus.div(1e12).add(UserBonusToken)); } } } function withdraw() public { uint256 _star = userStar[_msgSender()]; require(_star > 0, "no star"); userStar[_msgSender()] = 0; starToken.transfer(_msgSender(), _star); } function setFee(uint256 _fee) public onlyOwner { fee = _fee; } function setStarNFT(address _starNFT) onlyOwner public { require(_starNFT != address(0), ""); starNFT = IERC721Upgradeable(_starNFT); } function setNFTLogic(address _NFTLogic) onlyOwner public { require(_NFTLogic != address(0), ""); NFTLogic = INFTLogic(_NFTLogic); } }
/_openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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 { __Context_init_unchained(); __Ownable_init_unchained(); } function __Ownable_init_unchained() internal onlyInitializing { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } uint256[49] private __gap; }
/_openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (proxy/utils/Initializable.sol) pragma solidity ^0.8.0; 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 a proxied contract can't have 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. * * 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 initialize the implementation contract, you can either invoke the * initializer manually, or you can include a constructor to automatically mark it as initialized when it is deployed: * * [.hljs-theme-light.nopadding] * ``` * /// @custom:oz-upgrades-unsafe-allow constructor * constructor() initializer {} * ``` * ==== */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. */ bool private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Modifier to protect an initializer function from being invoked twice. */ modifier initializer() { // If the contract is initializing we ignore whether _initialized is set in order to support multiple // inheritance patterns, but we only do this in the context of a constructor, because in other contexts the // contract may have been reentered. require(_initializing ? _isConstructor() : !_initialized, "Initializable: contract is already initialized"); bool isTopLevelCall = !_initializing; if (isTopLevelCall) { _initializing = true; _initialized = true; } _; if (isTopLevelCall) { _initializing = false; } } /** * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the * {initializer} modifier, directly or indirectly. */ modifier onlyInitializing() { require(_initializing, "Initializable: contract is not initializing"); _; } function _isConstructor() private view returns (bool) { return !AddressUpgradeable.isContract(address(this)); } }
/_openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; import "../proxy/utils/Initializable.sol"; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuardUpgradeable is Initializable { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; function __ReentrancyGuard_init() internal onlyInitializing { __ReentrancyGuard_init_unchained(); } function __ReentrancyGuard_init_unchained() internal onlyInitializing { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } uint256[49] private __gap; }
/_openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20Upgradeable { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
/_openzeppelin/contracts-upgradeable/token/ERC721/IERC721Upgradeable.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165Upgradeable.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721Upgradeable is IERC165Upgradeable { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
/_openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) pragma solidity ^0.8.0; /** * @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 * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
/_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 { __Context_init_unchained(); } 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; } 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); }
/_openzeppelin/contracts-upgradeable/utils/math/SafeMathUpgradeable.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMathUpgradeable { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
Contract ABI
[{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"bonusAddr","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"fee","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getMarketTokensLength","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getUserTokensLength","inputs":[{"type":"address","name":"_user","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"initialize","inputs":[{"type":"address","name":"_starToken","internalType":"address"},{"type":"address","name":"_bonus","internalType":"address"},{"type":"address","name":"_starNFT","internalType":"address"},{"type":"uint256","name":"_fee","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"marketTokens","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"purchaseToken","inputs":[{"type":"uint256","name":"_tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setFee","inputs":[{"type":"uint256","name":"_fee","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setNFTLogic","inputs":[{"type":"address","name":"_NFTLogic","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setStarNFT","inputs":[{"type":"address","name":"_starNFT","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setTokenSale","inputs":[{"type":"uint256","name":"_tokenId","internalType":"uint256"},{"type":"bool","name":"_sale","internalType":"bool"},{"type":"uint256","name":"_price","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IERC721Upgradeable"}],"name":"starNFT","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IERC20Upgradeable"}],"name":"starToken","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"owner","internalType":"address"},{"type":"uint256","name":"price","internalType":"uint256"}],"name":"tokenInfo","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"tokensIndex","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"userStar","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"userTokens","inputs":[{"type":"address","name":"","internalType":"address"},{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"userTokensIndex","inputs":[{"type":"address","name":"","internalType":"address"},{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"withdraw","inputs":[]}]
Contract Creation Code
0x608060405234801561001057600080fd5b506134a9806100206000396000f3fe608060405234801561001057600080fd5b50600436106101425760003560e01c80638da5cb5b116100b8578063cc33c8751161007c578063cc33c8751461033d578063cf756fdf1461036e578063ddca3f431461038a578063df3bd706146103a8578063f2fde38b146103d8578063f9f411d8146103f457610142565b80638da5cb5b146102ab5780639af8b6b7146102c9578063b0bf74e3146102e7578063b7ca51e814610303578063c2db2c421461032157610142565b8063615b7c2b1161010a578063615b7c2b146101eb5780636387ede61461021b57806369fe0e2d1461023757806370dca97414610253578063715018a6146102715780637c7437831461027b57610142565b806313eaabb81461014757806317911cd01461016557806337ef75c8146101955780633ccfd60b146101b15780635f06018a146101bb575b600080fd5b61014f610424565b60405161015c9190612c47565b60405180910390f35b61017f600480360381019061017a919061287a565b61044a565b60405161018c9190612e38565b60405180910390f35b6101af60048036038101906101aa919061287a565b610496565b005b6101b96105c6565b005b6101d560048036038101906101d091906129f1565b61075a565b6040516101e29190612e38565b60405180910390f35b6102056004803603810190610200919061293b565b61077e565b6040516102129190612e38565b60405180910390f35b61023560048036038101906102309190612a4b565b6107a3565b005b610251600480360381019061024c91906129f1565b610bfc565b005b61025b610c82565b6040516102689190612cdd565b60405180910390f35b610279610ca8565b005b6102956004803603810190610290919061287a565b610d30565b6040516102a29190612e38565b60405180910390f35b6102b3610d48565b6040516102c09190612c47565b60405180910390f35b6102d1610d72565b6040516102de9190612e38565b60405180910390f35b61030160048036038101906102fc919061287a565b610d7f565b005b61030b610eaf565b6040516103189190612cc2565b60405180910390f35b61033b600480360381019061033691906129f1565b610ed5565b005b610357600480360381019061035291906129f1565b611a12565b604051610365929190612c99565b60405180910390f35b610388600480360381019061038391906128d4565b611a56565b005b610392611b4a565b60405161039f9190612e38565b60405180910390f35b6103c260048036038101906103bd91906129f1565b611b50565b6040516103cf9190612e38565b60405180910390f35b6103f260048036038101906103ed919061287a565b611b68565b005b61040e6004803603810190610409919061293b565b611c60565b60405161041b9190612e38565b60405180910390f35b609960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600060a060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805490509050919050565b61049e611c91565b73ffffffffffffffffffffffffffffffffffffffff166104bc610d48565b73ffffffffffffffffffffffffffffffffffffffff1614610512576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161050990612d58565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610582576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161057990612d78565b60405180910390fd5b80609c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600060a260006105d4611c91565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905060008111610654576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161064b90612d98565b60405180910390fd5b600060a26000610662611c91565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550609760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb6106e6611c91565b836040518363ffffffff1660e01b8152600401610704929190612c99565b602060405180830381600087803b15801561071e57600080fd5b505af1158015610732573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061075691906129c4565b5050565b609e818154811061076a57600080fd5b906000526020600020016000915090505481565b60a1602052816000526040600020602052806000526040600020600091509150505481565b8115610a30576107b1611c91565b73ffffffffffffffffffffffffffffffffffffffff16609860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e856040518263ffffffff1660e01b81526004016108229190612e38565b60206040518083038186803b15801561083a57600080fd5b505afa15801561084e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061087291906128a7565b73ffffffffffffffffffffffffffffffffffffffff16146108c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108bf90612d18565b60405180910390fd5b6000811161090b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161090290612df8565b60405180910390fd5b61091c610916611c91565b84611c99565b610924611c91565b609d600085815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080609d600085815260200190815260200160002060010181905550609860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd6109d9611c91565b30866040518463ffffffff1660e01b81526004016109f993929190612c62565b600060405180830381600087803b158015610a1357600080fd5b505af1158015610a27573d6000803e3d6000fd5b50505050610bf7565b610a38611c91565b73ffffffffffffffffffffffffffffffffffffffff16609d600085815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610adb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ad290612d18565b60405180910390fd5b610aec610ae6611c91565b84611dff565b6000609d600085815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000609d600085815260200190815260200160002060010181905550609860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd30610ba5611c91565b866040518463ffffffff1660e01b8152600401610bc493929190612c62565b600060405180830381600087803b158015610bde57600080fd5b505af1158015610bf2573d6000803e3d6000fd5b505050505b505050565b610c04611c91565b73ffffffffffffffffffffffffffffffffffffffff16610c22610d48565b73ffffffffffffffffffffffffffffffffffffffff1614610c78576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c6f90612d58565b60405180910390fd5b80609a8190555050565b609860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610cb0611c91565b73ffffffffffffffffffffffffffffffffffffffff16610cce610d48565b73ffffffffffffffffffffffffffffffffffffffff1614610d24576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d1b90612d58565b60405180910390fd5b610d2e600061213e565b565b60a26020528060005260406000206000915090505481565b6000603360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000609e80549050905090565b610d87611c91565b73ffffffffffffffffffffffffffffffffffffffff16610da5610d48565b73ffffffffffffffffffffffffffffffffffffffff1614610dfb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610df290612d58565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610e6b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e6290612d78565b60405180910390fd5b80609860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b609760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60026065541415610f1b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f1290612e18565b60405180910390fd5b6002606581905550600073ffffffffffffffffffffffffffffffffffffffff16610f43611c91565b73ffffffffffffffffffffffffffffffffffffffff161415610f6457600080fd5b600073ffffffffffffffffffffffffffffffffffffffff16609d600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561100a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100190612db8565b60405180910390fd5b6000609d6000838152602001908152602001600020600101549050609760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd61106b611c91565b30846040518463ffffffff1660e01b815260040161108b93929190612c62565b602060405180830381600087803b1580156110a557600080fd5b505af11580156110b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110dd91906129c4565b50600061110860646110fa609a548561220490919063ffffffff16565b61221a90919063ffffffff16565b9050609760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb609960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16836040518363ffffffff1660e01b8152600401611189929190612c99565b602060405180830381600087803b1580156111a357600080fd5b505af11580156111b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111db91906129c4565b506112766111f2828461223090919063ffffffff16565b60a26000609d600088815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461224690919063ffffffff16565b60a26000609d600087815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550609860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd30611336611c91565b866040518463ffffffff1660e01b815260040161135593929190612c62565b600060405180830381600087803b15801561136f57600080fd5b505af1158015611383573d6000803e3d6000fd5b505050506113c7609d600085815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1684611dff565b6000609b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16634aa66b28856040518263ffffffff1660e01b81526004016114249190612e38565b60206040518083038186803b15801561143c57600080fd5b505afa158015611450573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114749190612a1e565b905060008111156115ff57609760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd6114c5611c91565b609d600088815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16846040518463ffffffff1660e01b815260040161151b93929190612c62565b602060405180830381600087803b15801561153557600080fd5b505af1158015611549573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061156d91906129c4565b50609c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16631e2f29128560006040518363ffffffff1660e01b81526004016115cc929190612e53565b600060405180830381600087803b1580156115e657600080fd5b505af11580156115fa573d6000803e3d6000fd5b505050505b6000609c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663047640896040518163ffffffff1660e01b815260040160006040518083038186803b15801561166957600080fd5b505afa15801561167d573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906116a6919061297b565b5190506000811115611a03576000609b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340ee7ce26040518163ffffffff1660e01b815260040160206040518083038186803b15801561171c57600080fd5b505afa158015611730573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117549190612a1e565b905060006117b3836117a564e8d4a51000611797606461178988606461177a9190612fe8565b8c61220490919063ffffffff16565b61221a90919063ffffffff16565b61220490919063ffffffff16565b61221a90919063ffffffff16565b905060005b838110156119ff576000609c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663047640896040518163ffffffff1660e01b815260040160006040518083038186803b15801561182a57600080fd5b505afa15801561183e573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611867919061297b565b8281518110611879576118786131c5565b5b602002602001015190506000609c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c9f09b9c836040518263ffffffff1660e01b81526004016118e09190612e38565b60206040518083038186803b1580156118f857600080fd5b505afa15801561190c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119309190612a1e565b9050609c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16631e2f29128361199b8461198d64e8d4a510008a61221a90919063ffffffff16565b61224690919063ffffffff16565b6040518363ffffffff1660e01b81526004016119b8929190612e7c565b600060405180830381600087803b1580156119d257600080fd5b505af11580156119e6573d6000803e3d6000fd5b50505050505080806119f7906130ef565b9150506117b8565b5050505b50505050600160658190555050565b609d6020528060005260406000206000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154905082565b600060019054906101000a900460ff16611a7e5760008054906101000a900460ff1615611a87565b611a8661225c565b5b611ac6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611abd90612d38565b60405180910390fd5b60008060019054906101000a900460ff161590508015611b16576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b611b228585858561226d565b8015611b435760008060016101000a81548160ff0219169083151502179055505b5050505050565b609a5481565b609f6020528060005260406000206000915090505481565b611b70611c91565b73ffffffffffffffffffffffffffffffffffffffff16611b8e610d48565b73ffffffffffffffffffffffffffffffffffffffff1614611be4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bdb90612d58565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611c54576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c4b90612cf8565b60405180910390fd5b611c5d8161213e565b50565b60a06020528160005260406000208181548110611c7c57600080fd5b90600052602060002001600091509150505481565b600033905090565b609e8190806001815401808255809150506001900390600052602060002001600090919091909150556001609e80549050611cd49190612fe8565b609f60008381526020019081526020016000208190555060a060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819080600181540180825580915050600190039060005260206000200160009091909190915055600160a06000611d5f611c91565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080549050611da79190612fe8565b60a160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000838152602001908152602001600020819055505050565b6000609f60008381526020019081526020016000205490506000609e6001609e80549050611e2d9190612fe8565b81548110611e3e57611e3d6131c5565b5b9060005260206000200154905080609e8381548110611e6057611e5f6131c5565b5b906000526020600020018190555081609f600083815260200190815260200160002081905550609f600084815260200190815260200160002060009055609e805480611eaf57611eae613196565b5b60019003818190600052602060002001600090559055600060a160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000858152602001908152602001600020549050600060a060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600160a060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080549050611faa9190612fe8565b81548110611fbb57611fba6131c5565b5b906000526020600020015490508060a060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020838154811061201a576120196131c5565b5b90600052602060002001819055508160a160008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000208190555060a160008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008681526020019081526020016000206000905560a060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054806121205761211f613196565b5b60019003818190600052602060002001600090559055505050505050565b6000603360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081603360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600081836122129190612f8e565b905092915050565b600081836122289190612f5d565b905092915050565b6000818361223e9190612fe8565b905092915050565b600081836122549190612f07565b905092915050565b600061226730612371565b15905090565b600060019054906101000a900460ff166122955760008054906101000a900460ff161561229e565b61229d61225c565b5b6122dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122d490612d38565b60405180910390fd5b60008060019054906101000a900460ff16159050801561232d576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b612335612384565b61233d6123e5565b6123498585858561243e565b801561236a5760008060016101000a81548160ff0219169083151502179055505b5050505050565b600080823b905060008111915050919050565b600060019054906101000a900460ff166123d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123ca90612dd8565b60405180910390fd5b6123db612653565b6123e36126a4565b565b600060019054906101000a900460ff16612434576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161242b90612dd8565b60405180910390fd5b61243c612705565b565b600060019054906101000a900460ff166124665760008054906101000a900460ff161561246f565b61246e61225c565b5b6124ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124a590612d38565b60405180910390fd5b60008060019054906101000a900460ff1615905080156124fe576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b84609760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082609860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555083609960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550609960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16609b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081609a81905550801561264c5760008060016101000a81548160ff0219169083151502179055505b5050505050565b600060019054906101000a900460ff166126a2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161269990612dd8565b60405180910390fd5b565b600060019054906101000a900460ff166126f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126ea90612dd8565b60405180910390fd5b6127036126fe611c91565b61213e565b565b600060019054906101000a900460ff16612754576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161274b90612dd8565b60405180910390fd5b6001606581905550565b600061277161276c84612eca565b612ea5565b9050808382526020820190508285602086028201111561279457612793613228565b5b60005b858110156127c457816127aa8882612865565b845260208401935060208301925050600181019050612797565b5050509392505050565b6000813590506127dd8161342e565b92915050565b6000815190506127f28161342e565b92915050565b600082601f83011261280d5761280c613223565b5b815161281d84826020860161275e565b91505092915050565b60008135905061283581613445565b92915050565b60008151905061284a81613445565b92915050565b60008135905061285f8161345c565b92915050565b6000815190506128748161345c565b92915050565b6000602082840312156128905761288f613232565b5b600061289e848285016127ce565b91505092915050565b6000602082840312156128bd576128bc613232565b5b60006128cb848285016127e3565b91505092915050565b600080600080608085870312156128ee576128ed613232565b5b60006128fc878288016127ce565b945050602061290d878288016127ce565b935050604061291e878288016127ce565b925050606061292f87828801612850565b91505092959194509250565b6000806040838503121561295257612951613232565b5b6000612960858286016127ce565b925050602061297185828601612850565b9150509250929050565b60006020828403121561299157612990613232565b5b600082015167ffffffffffffffff8111156129af576129ae61322d565b5b6129bb848285016127f8565b91505092915050565b6000602082840312156129da576129d9613232565b5b60006129e88482850161283b565b91505092915050565b600060208284031215612a0757612a06613232565b5b6000612a1584828501612850565b91505092915050565b600060208284031215612a3457612a33613232565b5b6000612a4284828501612865565b91505092915050565b600080600060608486031215612a6457612a63613232565b5b6000612a7286828701612850565b9350506020612a8386828701612826565b9250506040612a9486828701612850565b9150509250925092565b612aa78161301c565b82525050565b612ab681613064565b82525050565b612ac581613076565b82525050565b612ad481613088565b82525050565b6000612ae7602683612ef6565b9150612af282613248565b604082019050919050565b6000612b0a600e83612ef6565b9150612b1582613297565b602082019050919050565b6000612b2d602e83612ef6565b9150612b38826132c0565b604082019050919050565b6000612b50602083612ef6565b9150612b5b8261330f565b602082019050919050565b6000612b73600083612ef6565b9150612b7e82613338565b600082019050919050565b6000612b96600783612ef6565b9150612ba18261333b565b602082019050919050565b6000612bb9600883612ef6565b9150612bc482613364565b602082019050919050565b6000612bdc602b83612ef6565b9150612be78261338d565b604082019050919050565b6000612bff601183612ef6565b9150612c0a826133dc565b602082019050919050565b6000612c22601f83612ef6565b9150612c2d82613405565b602082019050919050565b612c418161305a565b82525050565b6000602082019050612c5c6000830184612a9e565b92915050565b6000606082019050612c776000830186612a9e565b612c846020830185612a9e565b612c916040830184612c38565b949350505050565b6000604082019050612cae6000830185612a9e565b612cbb6020830184612c38565b9392505050565b6000602082019050612cd76000830184612aad565b92915050565b6000602082019050612cf26000830184612abc565b92915050565b60006020820190508181036000830152612d1181612ada565b9050919050565b60006020820190508181036000830152612d3181612afd565b9050919050565b60006020820190508181036000830152612d5181612b20565b9050919050565b60006020820190508181036000830152612d7181612b43565b9050919050565b60006020820190508181036000830152612d9181612b66565b9050919050565b60006020820190508181036000830152612db181612b89565b9050919050565b60006020820190508181036000830152612dd181612bac565b9050919050565b60006020820190508181036000830152612df181612bcf565b9050919050565b60006020820190508181036000830152612e1181612bf2565b9050919050565b60006020820190508181036000830152612e3181612c15565b9050919050565b6000602082019050612e4d6000830184612c38565b92915050565b6000604082019050612e686000830185612c38565b612e756020830184612acb565b9392505050565b6000604082019050612e916000830185612c38565b612e9e6020830184612c38565b9392505050565b6000612eaf612ec0565b9050612ebb82826130be565b919050565b6000604051905090565b600067ffffffffffffffff821115612ee557612ee46131f4565b5b602082029050602081019050919050565b600082825260208201905092915050565b6000612f128261305a565b9150612f1d8361305a565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115612f5257612f51613138565b5b828201905092915050565b6000612f688261305a565b9150612f738361305a565b925082612f8357612f82613167565b5b828204905092915050565b6000612f998261305a565b9150612fa48361305a565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615612fdd57612fdc613138565b5b828202905092915050565b6000612ff38261305a565b9150612ffe8361305a565b92508282101561301157613010613138565b5b828203905092915050565b60006130278261303a565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600061306f8261309a565b9050919050565b60006130818261309a565b9050919050565b60006130938261305a565b9050919050565b60006130a5826130ac565b9050919050565b60006130b78261303a565b9050919050565b6130c782613237565b810181811067ffffffffffffffff821117156130e6576130e56131f4565b5b80604052505050565b60006130fa8261305a565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561312d5761312c613138565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f6e6f7420796f757220746f6b656e000000000000000000000000000000000000600082015250565b7f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160008201527f647920696e697469616c697a6564000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b50565b7f6e6f207374617200000000000000000000000000000000000000000000000000600082015250565b7f6e6f742073616c65000000000000000000000000000000000000000000000000600082015250565b7f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960008201527f6e697469616c697a696e67000000000000000000000000000000000000000000602082015250565b7f7072696365206e6f7420616c6c6f772030000000000000000000000000000000600082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6134378161301c565b811461344257600080fd5b50565b61344e8161302e565b811461345957600080fd5b50565b6134658161305a565b811461347057600080fd5b5056fea26469706673582212204a827ad792cfcd8b86358dffa8aa39e402383ac8d091da97fca2c0178673f07664736f6c63430008070033
Deployed ByteCode
0x608060405234801561001057600080fd5b50600436106101425760003560e01c80638da5cb5b116100b8578063cc33c8751161007c578063cc33c8751461033d578063cf756fdf1461036e578063ddca3f431461038a578063df3bd706146103a8578063f2fde38b146103d8578063f9f411d8146103f457610142565b80638da5cb5b146102ab5780639af8b6b7146102c9578063b0bf74e3146102e7578063b7ca51e814610303578063c2db2c421461032157610142565b8063615b7c2b1161010a578063615b7c2b146101eb5780636387ede61461021b57806369fe0e2d1461023757806370dca97414610253578063715018a6146102715780637c7437831461027b57610142565b806313eaabb81461014757806317911cd01461016557806337ef75c8146101955780633ccfd60b146101b15780635f06018a146101bb575b600080fd5b61014f610424565b60405161015c9190612c47565b60405180910390f35b61017f600480360381019061017a919061287a565b61044a565b60405161018c9190612e38565b60405180910390f35b6101af60048036038101906101aa919061287a565b610496565b005b6101b96105c6565b005b6101d560048036038101906101d091906129f1565b61075a565b6040516101e29190612e38565b60405180910390f35b6102056004803603810190610200919061293b565b61077e565b6040516102129190612e38565b60405180910390f35b61023560048036038101906102309190612a4b565b6107a3565b005b610251600480360381019061024c91906129f1565b610bfc565b005b61025b610c82565b6040516102689190612cdd565b60405180910390f35b610279610ca8565b005b6102956004803603810190610290919061287a565b610d30565b6040516102a29190612e38565b60405180910390f35b6102b3610d48565b6040516102c09190612c47565b60405180910390f35b6102d1610d72565b6040516102de9190612e38565b60405180910390f35b61030160048036038101906102fc919061287a565b610d7f565b005b61030b610eaf565b6040516103189190612cc2565b60405180910390f35b61033b600480360381019061033691906129f1565b610ed5565b005b610357600480360381019061035291906129f1565b611a12565b604051610365929190612c99565b60405180910390f35b610388600480360381019061038391906128d4565b611a56565b005b610392611b4a565b60405161039f9190612e38565b60405180910390f35b6103c260048036038101906103bd91906129f1565b611b50565b6040516103cf9190612e38565b60405180910390f35b6103f260048036038101906103ed919061287a565b611b68565b005b61040e6004803603810190610409919061293b565b611c60565b60405161041b9190612e38565b60405180910390f35b609960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600060a060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805490509050919050565b61049e611c91565b73ffffffffffffffffffffffffffffffffffffffff166104bc610d48565b73ffffffffffffffffffffffffffffffffffffffff1614610512576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161050990612d58565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610582576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161057990612d78565b60405180910390fd5b80609c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600060a260006105d4611c91565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905060008111610654576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161064b90612d98565b60405180910390fd5b600060a26000610662611c91565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550609760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb6106e6611c91565b836040518363ffffffff1660e01b8152600401610704929190612c99565b602060405180830381600087803b15801561071e57600080fd5b505af1158015610732573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061075691906129c4565b5050565b609e818154811061076a57600080fd5b906000526020600020016000915090505481565b60a1602052816000526040600020602052806000526040600020600091509150505481565b8115610a30576107b1611c91565b73ffffffffffffffffffffffffffffffffffffffff16609860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e856040518263ffffffff1660e01b81526004016108229190612e38565b60206040518083038186803b15801561083a57600080fd5b505afa15801561084e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061087291906128a7565b73ffffffffffffffffffffffffffffffffffffffff16146108c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108bf90612d18565b60405180910390fd5b6000811161090b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161090290612df8565b60405180910390fd5b61091c610916611c91565b84611c99565b610924611c91565b609d600085815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080609d600085815260200190815260200160002060010181905550609860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd6109d9611c91565b30866040518463ffffffff1660e01b81526004016109f993929190612c62565b600060405180830381600087803b158015610a1357600080fd5b505af1158015610a27573d6000803e3d6000fd5b50505050610bf7565b610a38611c91565b73ffffffffffffffffffffffffffffffffffffffff16609d600085815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610adb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ad290612d18565b60405180910390fd5b610aec610ae6611c91565b84611dff565b6000609d600085815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000609d600085815260200190815260200160002060010181905550609860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd30610ba5611c91565b866040518463ffffffff1660e01b8152600401610bc493929190612c62565b600060405180830381600087803b158015610bde57600080fd5b505af1158015610bf2573d6000803e3d6000fd5b505050505b505050565b610c04611c91565b73ffffffffffffffffffffffffffffffffffffffff16610c22610d48565b73ffffffffffffffffffffffffffffffffffffffff1614610c78576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c6f90612d58565b60405180910390fd5b80609a8190555050565b609860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610cb0611c91565b73ffffffffffffffffffffffffffffffffffffffff16610cce610d48565b73ffffffffffffffffffffffffffffffffffffffff1614610d24576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d1b90612d58565b60405180910390fd5b610d2e600061213e565b565b60a26020528060005260406000206000915090505481565b6000603360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000609e80549050905090565b610d87611c91565b73ffffffffffffffffffffffffffffffffffffffff16610da5610d48565b73ffffffffffffffffffffffffffffffffffffffff1614610dfb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610df290612d58565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610e6b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e6290612d78565b60405180910390fd5b80609860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b609760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60026065541415610f1b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f1290612e18565b60405180910390fd5b6002606581905550600073ffffffffffffffffffffffffffffffffffffffff16610f43611c91565b73ffffffffffffffffffffffffffffffffffffffff161415610f6457600080fd5b600073ffffffffffffffffffffffffffffffffffffffff16609d600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561100a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100190612db8565b60405180910390fd5b6000609d6000838152602001908152602001600020600101549050609760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd61106b611c91565b30846040518463ffffffff1660e01b815260040161108b93929190612c62565b602060405180830381600087803b1580156110a557600080fd5b505af11580156110b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110dd91906129c4565b50600061110860646110fa609a548561220490919063ffffffff16565b61221a90919063ffffffff16565b9050609760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb609960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16836040518363ffffffff1660e01b8152600401611189929190612c99565b602060405180830381600087803b1580156111a357600080fd5b505af11580156111b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111db91906129c4565b506112766111f2828461223090919063ffffffff16565b60a26000609d600088815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461224690919063ffffffff16565b60a26000609d600087815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550609860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd30611336611c91565b866040518463ffffffff1660e01b815260040161135593929190612c62565b600060405180830381600087803b15801561136f57600080fd5b505af1158015611383573d6000803e3d6000fd5b505050506113c7609d600085815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1684611dff565b6000609b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16634aa66b28856040518263ffffffff1660e01b81526004016114249190612e38565b60206040518083038186803b15801561143c57600080fd5b505afa158015611450573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114749190612a1e565b905060008111156115ff57609760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd6114c5611c91565b609d600088815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16846040518463ffffffff1660e01b815260040161151b93929190612c62565b602060405180830381600087803b15801561153557600080fd5b505af1158015611549573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061156d91906129c4565b50609c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16631e2f29128560006040518363ffffffff1660e01b81526004016115cc929190612e53565b600060405180830381600087803b1580156115e657600080fd5b505af11580156115fa573d6000803e3d6000fd5b505050505b6000609c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663047640896040518163ffffffff1660e01b815260040160006040518083038186803b15801561166957600080fd5b505afa15801561167d573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906116a6919061297b565b5190506000811115611a03576000609b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340ee7ce26040518163ffffffff1660e01b815260040160206040518083038186803b15801561171c57600080fd5b505afa158015611730573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117549190612a1e565b905060006117b3836117a564e8d4a51000611797606461178988606461177a9190612fe8565b8c61220490919063ffffffff16565b61221a90919063ffffffff16565b61220490919063ffffffff16565b61221a90919063ffffffff16565b905060005b838110156119ff576000609c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663047640896040518163ffffffff1660e01b815260040160006040518083038186803b15801561182a57600080fd5b505afa15801561183e573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611867919061297b565b8281518110611879576118786131c5565b5b602002602001015190506000609c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c9f09b9c836040518263ffffffff1660e01b81526004016118e09190612e38565b60206040518083038186803b1580156118f857600080fd5b505afa15801561190c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119309190612a1e565b9050609c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16631e2f29128361199b8461198d64e8d4a510008a61221a90919063ffffffff16565b61224690919063ffffffff16565b6040518363ffffffff1660e01b81526004016119b8929190612e7c565b600060405180830381600087803b1580156119d257600080fd5b505af11580156119e6573d6000803e3d6000fd5b50505050505080806119f7906130ef565b9150506117b8565b5050505b50505050600160658190555050565b609d6020528060005260406000206000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154905082565b600060019054906101000a900460ff16611a7e5760008054906101000a900460ff1615611a87565b611a8661225c565b5b611ac6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611abd90612d38565b60405180910390fd5b60008060019054906101000a900460ff161590508015611b16576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b611b228585858561226d565b8015611b435760008060016101000a81548160ff0219169083151502179055505b5050505050565b609a5481565b609f6020528060005260406000206000915090505481565b611b70611c91565b73ffffffffffffffffffffffffffffffffffffffff16611b8e610d48565b73ffffffffffffffffffffffffffffffffffffffff1614611be4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bdb90612d58565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611c54576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c4b90612cf8565b60405180910390fd5b611c5d8161213e565b50565b60a06020528160005260406000208181548110611c7c57600080fd5b90600052602060002001600091509150505481565b600033905090565b609e8190806001815401808255809150506001900390600052602060002001600090919091909150556001609e80549050611cd49190612fe8565b609f60008381526020019081526020016000208190555060a060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819080600181540180825580915050600190039060005260206000200160009091909190915055600160a06000611d5f611c91565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080549050611da79190612fe8565b60a160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000838152602001908152602001600020819055505050565b6000609f60008381526020019081526020016000205490506000609e6001609e80549050611e2d9190612fe8565b81548110611e3e57611e3d6131c5565b5b9060005260206000200154905080609e8381548110611e6057611e5f6131c5565b5b906000526020600020018190555081609f600083815260200190815260200160002081905550609f600084815260200190815260200160002060009055609e805480611eaf57611eae613196565b5b60019003818190600052602060002001600090559055600060a160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000858152602001908152602001600020549050600060a060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600160a060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080549050611faa9190612fe8565b81548110611fbb57611fba6131c5565b5b906000526020600020015490508060a060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020838154811061201a576120196131c5565b5b90600052602060002001819055508160a160008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000208190555060a160008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008681526020019081526020016000206000905560a060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054806121205761211f613196565b5b60019003818190600052602060002001600090559055505050505050565b6000603360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081603360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600081836122129190612f8e565b905092915050565b600081836122289190612f5d565b905092915050565b6000818361223e9190612fe8565b905092915050565b600081836122549190612f07565b905092915050565b600061226730612371565b15905090565b600060019054906101000a900460ff166122955760008054906101000a900460ff161561229e565b61229d61225c565b5b6122dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122d490612d38565b60405180910390fd5b60008060019054906101000a900460ff16159050801561232d576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b612335612384565b61233d6123e5565b6123498585858561243e565b801561236a5760008060016101000a81548160ff0219169083151502179055505b5050505050565b600080823b905060008111915050919050565b600060019054906101000a900460ff166123d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123ca90612dd8565b60405180910390fd5b6123db612653565b6123e36126a4565b565b600060019054906101000a900460ff16612434576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161242b90612dd8565b60405180910390fd5b61243c612705565b565b600060019054906101000a900460ff166124665760008054906101000a900460ff161561246f565b61246e61225c565b5b6124ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124a590612d38565b60405180910390fd5b60008060019054906101000a900460ff1615905080156124fe576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b84609760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082609860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555083609960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550609960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16609b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081609a81905550801561264c5760008060016101000a81548160ff0219169083151502179055505b5050505050565b600060019054906101000a900460ff166126a2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161269990612dd8565b60405180910390fd5b565b600060019054906101000a900460ff166126f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126ea90612dd8565b60405180910390fd5b6127036126fe611c91565b61213e565b565b600060019054906101000a900460ff16612754576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161274b90612dd8565b60405180910390fd5b6001606581905550565b600061277161276c84612eca565b612ea5565b9050808382526020820190508285602086028201111561279457612793613228565b5b60005b858110156127c457816127aa8882612865565b845260208401935060208301925050600181019050612797565b5050509392505050565b6000813590506127dd8161342e565b92915050565b6000815190506127f28161342e565b92915050565b600082601f83011261280d5761280c613223565b5b815161281d84826020860161275e565b91505092915050565b60008135905061283581613445565b92915050565b60008151905061284a81613445565b92915050565b60008135905061285f8161345c565b92915050565b6000815190506128748161345c565b92915050565b6000602082840312156128905761288f613232565b5b600061289e848285016127ce565b91505092915050565b6000602082840312156128bd576128bc613232565b5b60006128cb848285016127e3565b91505092915050565b600080600080608085870312156128ee576128ed613232565b5b60006128fc878288016127ce565b945050602061290d878288016127ce565b935050604061291e878288016127ce565b925050606061292f87828801612850565b91505092959194509250565b6000806040838503121561295257612951613232565b5b6000612960858286016127ce565b925050602061297185828601612850565b9150509250929050565b60006020828403121561299157612990613232565b5b600082015167ffffffffffffffff8111156129af576129ae61322d565b5b6129bb848285016127f8565b91505092915050565b6000602082840312156129da576129d9613232565b5b60006129e88482850161283b565b91505092915050565b600060208284031215612a0757612a06613232565b5b6000612a1584828501612850565b91505092915050565b600060208284031215612a3457612a33613232565b5b6000612a4284828501612865565b91505092915050565b600080600060608486031215612a6457612a63613232565b5b6000612a7286828701612850565b9350506020612a8386828701612826565b9250506040612a9486828701612850565b9150509250925092565b612aa78161301c565b82525050565b612ab681613064565b82525050565b612ac581613076565b82525050565b612ad481613088565b82525050565b6000612ae7602683612ef6565b9150612af282613248565b604082019050919050565b6000612b0a600e83612ef6565b9150612b1582613297565b602082019050919050565b6000612b2d602e83612ef6565b9150612b38826132c0565b604082019050919050565b6000612b50602083612ef6565b9150612b5b8261330f565b602082019050919050565b6000612b73600083612ef6565b9150612b7e82613338565b600082019050919050565b6000612b96600783612ef6565b9150612ba18261333b565b602082019050919050565b6000612bb9600883612ef6565b9150612bc482613364565b602082019050919050565b6000612bdc602b83612ef6565b9150612be78261338d565b604082019050919050565b6000612bff601183612ef6565b9150612c0a826133dc565b602082019050919050565b6000612c22601f83612ef6565b9150612c2d82613405565b602082019050919050565b612c418161305a565b82525050565b6000602082019050612c5c6000830184612a9e565b92915050565b6000606082019050612c776000830186612a9e565b612c846020830185612a9e565b612c916040830184612c38565b949350505050565b6000604082019050612cae6000830185612a9e565b612cbb6020830184612c38565b9392505050565b6000602082019050612cd76000830184612aad565b92915050565b6000602082019050612cf26000830184612abc565b92915050565b60006020820190508181036000830152612d1181612ada565b9050919050565b60006020820190508181036000830152612d3181612afd565b9050919050565b60006020820190508181036000830152612d5181612b20565b9050919050565b60006020820190508181036000830152612d7181612b43565b9050919050565b60006020820190508181036000830152612d9181612b66565b9050919050565b60006020820190508181036000830152612db181612b89565b9050919050565b60006020820190508181036000830152612dd181612bac565b9050919050565b60006020820190508181036000830152612df181612bcf565b9050919050565b60006020820190508181036000830152612e1181612bf2565b9050919050565b60006020820190508181036000830152612e3181612c15565b9050919050565b6000602082019050612e4d6000830184612c38565b92915050565b6000604082019050612e686000830185612c38565b612e756020830184612acb565b9392505050565b6000604082019050612e916000830185612c38565b612e9e6020830184612c38565b9392505050565b6000612eaf612ec0565b9050612ebb82826130be565b919050565b6000604051905090565b600067ffffffffffffffff821115612ee557612ee46131f4565b5b602082029050602081019050919050565b600082825260208201905092915050565b6000612f128261305a565b9150612f1d8361305a565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115612f5257612f51613138565b5b828201905092915050565b6000612f688261305a565b9150612f738361305a565b925082612f8357612f82613167565b5b828204905092915050565b6000612f998261305a565b9150612fa48361305a565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615612fdd57612fdc613138565b5b828202905092915050565b6000612ff38261305a565b9150612ffe8361305a565b92508282101561301157613010613138565b5b828203905092915050565b60006130278261303a565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600061306f8261309a565b9050919050565b60006130818261309a565b9050919050565b60006130938261305a565b9050919050565b60006130a5826130ac565b9050919050565b60006130b78261303a565b9050919050565b6130c782613237565b810181811067ffffffffffffffff821117156130e6576130e56131f4565b5b80604052505050565b60006130fa8261305a565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561312d5761312c613138565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f6e6f7420796f757220746f6b656e000000000000000000000000000000000000600082015250565b7f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160008201527f647920696e697469616c697a6564000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b50565b7f6e6f207374617200000000000000000000000000000000000000000000000000600082015250565b7f6e6f742073616c65000000000000000000000000000000000000000000000000600082015250565b7f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960008201527f6e697469616c697a696e67000000000000000000000000000000000000000000602082015250565b7f7072696365206e6f7420616c6c6f772030000000000000000000000000000000600082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6134378161301c565b811461344257600080fd5b50565b61344e8161302e565b811461345957600080fd5b50565b6134658161305a565b811461347057600080fd5b5056fea26469706673582212204a827ad792cfcd8b86358dffa8aa39e402383ac8d091da97fca2c0178673f07664736f6c63430008070033